Adding fflush() to make sure stdout responses appear on time.

This commit is contained in:
Alan Mishchenko 2015-02-20 12:16:17 -08:00
parent 746707b383
commit d33d66f46e
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ int Wlc_StdinProcessSmt( Abc_Frame_t * pAbc, char * pCmd )
else if ( Abc_FrameReadProbStatus(pAbc) == 0 )
printf( "sat\n" );
else assert( 0 );
fflush( stdout );
// wait for stdin for give directions
while ( (vInput = Wlc_StdinCollectQuery()) != NULL )
{
@ -240,6 +241,7 @@ int Wlc_StdinProcessSmt( Abc_Frame_t * pAbc, char * pCmd )
// report value of this variable
Wlc_NtkReport( (Wlc_Ntk_t *)pAbc->pAbcWlc, Abc_FrameReadCex(pAbc), pName, 16 );
Vec_StrFree( vInput );
fflush( stdout );
}
return 1;
}