Commit d33d66f4 by Alan Mishchenko

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

parent 746707b3
...@@ -210,6 +210,7 @@ int Wlc_StdinProcessSmt( Abc_Frame_t * pAbc, char * pCmd ) ...@@ -210,6 +210,7 @@ int Wlc_StdinProcessSmt( Abc_Frame_t * pAbc, char * pCmd )
else if ( Abc_FrameReadProbStatus(pAbc) == 0 ) else if ( Abc_FrameReadProbStatus(pAbc) == 0 )
printf( "sat\n" ); printf( "sat\n" );
else assert( 0 ); else assert( 0 );
fflush( stdout );
// wait for stdin for give directions // wait for stdin for give directions
while ( (vInput = Wlc_StdinCollectQuery()) != NULL ) while ( (vInput = Wlc_StdinCollectQuery()) != NULL )
{ {
...@@ -240,6 +241,7 @@ int Wlc_StdinProcessSmt( Abc_Frame_t * pAbc, char * pCmd ) ...@@ -240,6 +241,7 @@ int Wlc_StdinProcessSmt( Abc_Frame_t * pAbc, char * pCmd )
// report value of this variable // report value of this variable
Wlc_NtkReport( (Wlc_Ntk_t *)pAbc->pAbcWlc, Abc_FrameReadCex(pAbc), pName, 16 ); Wlc_NtkReport( (Wlc_Ntk_t *)pAbc->pAbcWlc, Abc_FrameReadCex(pAbc), pName, 16 );
Vec_StrFree( vInput ); Vec_StrFree( vInput );
fflush( stdout );
} }
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment