We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5240ca commit 2795d8dCopy full SHA for 2795d8d
smt/lip6.smtlib.SMT/src/org/smtlib/solvers/Solver_z3_4_3.java
@@ -212,6 +212,12 @@ protected IResponse parseResponse(String response) {
212
try {
213
if (response.startsWith("stderr")) response = response.replace("stderr", "\"stderr\"");
214
else if (response.startsWith("stdout")) response = response.replace("stdout", "\"stdout\"");
215
+
216
+ // check if we have timeout within last 50 char of the response
217
+ if (response.substring(Math.max(0, response.length()-50)).contains("timeout")) {
218
+ return smtConfig.responseFactory.error("Timeout of Z3 solver reached");
219
+ }
220
221
Pattern oldbv = Pattern.compile("bv([0-9]+)\\[([0-9]+)\\]");
222
Matcher mm = oldbv.matcher(response);
223
while (mm.find()) {
0 commit comments