diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericZ3ProblemSolver.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericZ3ProblemSolver.java b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericZ3ProblemSolver.java index 0b093859..0e47e820 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericZ3ProblemSolver.java +++ b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericZ3ProblemSolver.java | |||
@@ -1,5 +1,6 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.viatra2logic; | 1 | package hu.bme.mit.inf.dslreasoner.viatra2logic; |
2 | 2 | ||
3 | import java.io.File; | ||
3 | import java.util.ArrayList; | 4 | import java.util.ArrayList; |
4 | import java.util.HashMap; | 5 | import java.util.HashMap; |
5 | import java.util.List; | 6 | import java.util.List; |
@@ -36,6 +37,13 @@ public class NumericZ3ProblemSolver extends NumericProblemSolver{ | |||
36 | private Map<Object, Expr> varMap; | 37 | private Map<Object, Expr> varMap; |
37 | 38 | ||
38 | public NumericZ3ProblemSolver() { | 39 | public NumericZ3ProblemSolver() { |
40 | //FOR LINUX VM | ||
41 | //Not Elegant, but this is working for now | ||
42 | String root = (new File(System.getProperty("user.dir"))).getParentFile().getParent(); | ||
43 | System.load(root + "/Solvers/SMT-Solver/com.microsoft.z3/lib/libz3.so"); | ||
44 | System.load(root + "/Solvers/SMT-Solver/com.microsoft.z3/lib/libz3java.so"); | ||
45 | //End non-elegance | ||
46 | |||
39 | HashMap<String, String> cfg = new HashMap<String, String>(); | 47 | HashMap<String, String> cfg = new HashMap<String, String>(); |
40 | cfg.put("model", "true"); | 48 | cfg.put("model", "true"); |
41 | ctx = new Context(cfg); | 49 | ctx = new Context(cfg); |