src/serializer/logger.cpp
/* 
 * returns true if file end false otherwise, 
 * places the token into read_result 
 */
returns true if file end false otherwise,
places the token into read_result
returns true if file end false otherwise places the token into read_result
bool Logger::isReadfileEnd(char * read_result, int size) {
    char * result = fgets(read_result, size, readfile);
    int isEndLog = (strncmp(read_result, "end_log", 7) == 0);
    int isSafeAssert = (strncmp(read_result, "thrille assert", 14) == 0); 
    int isDeadlock = (strncmp(read_result, "program deadlock", 16) == 0);
    int isSegfault = (strncmp(read_result, "segfault", 8) == 0);
    int isProgAssert = (strncmp(read_result, "program assert", 14) == 0);
    if (result == NULL || isEndLog || isSafeAssert || isDeadlock ||
            isSegfault || isProgAssert) {
        return true;
    }
    return false;
}
bool Logger :: isReadfileEnd ( char * read_result , int size ) { char * result = fgets ( read_result , size , readfile ) ; int isEndLog = ( strncmp ( read_result , " " , 7 ) == 0 ) ; int isSafeAssert = ( strncmp ( read_result , " " , 14 ) == 0 ) ; int isDeadlock = ( strncmp ( read_result , " " , 16 ) == 0 ) ; int isSegfault = ( strncmp ( read_result , " " , 8 ) == 0 ) ; int isProgAssert = ( strncmp ( read_result , " " , 14 ) == 0 ) ; if ( result == NULL || isEndLog || isSafeAssert || isDeadlock || isSegfault || isProgAssert ) { return true ; } return false ; }
returns true if file end false otherwise,
 places the token into read_result
returns true if file end false otherwise places the token into read_result