aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java
diff options
context:
space:
mode:
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java')
-rw-r--r--Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java28
1 files changed, 24 insertions, 4 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java
index cecd3623..f30e390b 100644
--- a/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java
+++ b/Framework/hu.bme.mit.inf.dslreasoner.viatra2logic/src/hu/bme/mit/inf/dslreasoner/viatra2logic/NumericDrealProblemSolver.java
@@ -365,8 +365,8 @@ public class NumericDrealProblemSolver extends NumericProblemSolver{
365 Iterable<Map<JvmIdentifiableElement, PrimitiveElement>> matchSets = matches.get(e); 365 Iterable<Map<JvmIdentifiableElement, PrimitiveElement>> matchSets = matches.get(e);
366 for (Map<JvmIdentifiableElement, PrimitiveElement> aMatch: matchSets) { 366 for (Map<JvmIdentifiableElement, PrimitiveElement> aMatch: matchSets) {
367 String constraint = formNumericConstraint(e, aMatch); 367 String constraint = formNumericConstraint(e, aMatch);
368 if (constraint != null) { 368 if (constraint != null) {
369 String negAssert = "(assert " + constraint + ")"; 369 String negAssert = "(assert " + constraint + ")";
370 curConstraints.add(negAssert); 370 curConstraints.add(negAssert);
371 } 371 }
372 } 372 }
@@ -426,8 +426,8 @@ public class NumericDrealProblemSolver extends NumericProblemSolver{
426 426
427 boolean result = false; 427 boolean result = false;
428 List<List<String>> outputs = null; 428 List<List<String>> outputs = null;
429 if (outputProcess != null) { 429 if (outputProcess != null) {
430 outputs = getProcessOutput(outputProcess); 430 outputs = getProcessOutput(outputProcess);
431 result = getDrealResult(outputProcess.exitValue(), outputs); 431 result = getDrealResult(outputProcess.exitValue(), outputs);
432// } else { 432// } else {
433// System.err.print("Timeout, RETRYING..."); 433// System.err.print("Timeout, RETRYING...");
@@ -575,4 +575,24 @@ public class NumericDrealProblemSolver extends NumericProblemSolver{
575 //TODO Check if above went well? 575 //TODO Check if above went well?
576 } 576 }
577 577
578 @Override
579 protected void initialize() {
580 // TODO Auto-generated method stub
581
582 }
583
584 @Override
585 protected boolean internalIsSatisfiable(
586 Map<XExpression, Iterable<Map<JvmIdentifiableElement, PrimitiveElement>>> matches) throws Exception {
587 // TODO Auto-generated method stub
588 return false;
589 }
590
591 @Override
592 protected Map<PrimitiveElement, Number> internalGetOneSolution(List<PrimitiveElement> objs,
593 Map<XExpression, Iterable<Map<JvmIdentifiableElement, PrimitiveElement>>> matches) throws Exception {
594 // TODO Auto-generated method stub
595 return null;
596 }
597
578} 598}