From 18b9c612f43d865e4dec0ef996f617571f9047d9 Mon Sep 17 00:00:00 2001 From: Catherine Date: Sat, 4 Feb 2023 03:14:44 +0000 Subject: Add WASI support in Exa4_ManSolve. --- src/sat/bmc/bmcMaj.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/sat/bmc/bmcMaj.c b/src/sat/bmc/bmcMaj.c index 2525f943..1059a4ae 100644 --- a/src/sat/bmc/bmcMaj.c +++ b/src/sat/bmc/bmcMaj.c @@ -1650,7 +1650,11 @@ Vec_Int_t * Exa4_ManSolve( char * pFileNameIn, char * pFileNameOut, int TimeOut, sprintf( pCommand, "%s --time=%d %s %s > %s", pKissat, TimeOut, fVerboseSolver ? "": "-q", pFileNameIn, pFileNameOut ); else sprintf( pCommand, "%s %s %s > %s", pKissat, fVerboseSolver ? "": "-q", pFileNameIn, pFileNameOut ); +#ifdef __wasm + if ( 1 ) +#else if ( system( pCommand ) == -1 ) +#endif { fprintf( stdout, "Command \"%s\" did not succeed.\n", pCommand ); return 0; -- cgit v1.2.3