@@ -115,13 +115,18 @@ public static void checkResult(boolean isUnsat) {
115115 System .out .println ("SUCCESS: isUnsat = " + isUnsat );
116116 System .exit (0 );
117117 }
118+
118119 public static boolean checkNativeParseAndIsUnsat (Solvers solver , String smt2 )
119120 throws SolverException , InterruptedException , InvalidConfigurationException {
120- switch (solver ){
121- case Z3 : return nativeZ3ParseAndIsUnsat (smt2 );
122- case MATHSAT5 : return nativeMathSatParseAndIsUnsat (smt2 );
123- case BITWUZLA : return nativeBitwuzlaParseAndIsUnsat (smt2 );
124- default : throw new SolverException ("Unsupported solver: " + solver );
121+ switch (solver ) {
122+ case Z3 :
123+ return nativeZ3ParseAndIsUnsat (smt2 );
124+ case MATHSAT5 :
125+ return nativeMathSatParseAndIsUnsat (smt2 );
126+ case BITWUZLA :
127+ return nativeBitwuzlaParseAndIsUnsat (smt2 );
128+ default :
129+ throw new SolverException ("Unsupported solver: " + solver );
125130 }
126131 }
127132
@@ -133,6 +138,7 @@ public static boolean nativeZ3ParseAndIsUnsat(String smt2) {
133138 return status == Status .UNSATISFIABLE ;
134139 }
135140 }
141+
136142 public static boolean nativeBitwuzlaParseAndIsUnsat (String smt2 )
137143 throws InvalidConfigurationException , InterruptedException , SolverException {
138144 SolverContext bitwuz = SolverContextFactory .createSolverContext (Solvers .BITWUZLA );
@@ -150,9 +156,9 @@ public static boolean nativeMathSatParseAndIsUnsat(String smt2)
150156 }
151157
152158 public static void printError (Exception pE ) {
153- if (pE instanceof UnsupportedOperationException ){
159+ if (pE instanceof UnsupportedOperationException ) {
154160 System .out .println ("UNSUPPORTED: " );
155- }else {
161+ } else {
156162 System .out .println ("ERROR: " );
157163 }
158164 pE .printStackTrace ();
0 commit comments