Skip to content

Commit fa3eb9e

Browse files
committed
Fix to Z3_model_eval
1 parent 5b2ed7a commit fa3eb9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/post_ref_bindings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let Z3 = ffi.Library(libPath, GeneratedBindings);
33
Z3.bindings_model_eval = function(ctx, mdl, expr) {
44
var pAST = ref.alloc(Z3.Ast, null);
55
var result = Z3.Z3_model_eval(ctx, mdl, expr, true, pAST);
6-
return result > 0 ? pAST.deref() : null;
6+
return result != 0 ? pAST.deref() : null;
77
}
88

99
//////// End Z3 function definitions

0 commit comments

Comments
 (0)