Skip to content

Commit

Permalink
Use the same z3 options as Solidity does
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoalt committed Aug 17, 2020
1 parent 0cf4948 commit 972e5f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smtsolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const timeout = 10000;
var potentialSolvers = [
{
name: 'z3',
params: '-smt2 -t:' + timeout
params: '-smt2 rlimit=20000000 rewriter.pull_cheap_ite=true fp.spacer.q3.use_qgen=true fp.spacer.mbqi=false fp.spacer.ground_pobs=false'
},
{
name: 'cvc4',
Expand All @@ -33,7 +33,7 @@ function solve (query) {
try {
solverOutput = execSync(
solvers[0].name + ' ' + solvers[0].params + ' ' + tmpFile.name, {
timeout: 10000
stdio: 'pipe'
}
).toString();
} catch (e) {
Expand Down

0 comments on commit 972e5f6

Please sign in to comment.