-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add solver independent quantifier elimination with ultimate eliminator #462
base: master
Are you sure you want to change the base?
Add solver independent quantifier elimination with ultimate eliminator #462
Conversation
format code add missing UltimateEliminator dependencies
…k most solvers (now 152 tests run over all solvers compared to 89 before)
…bles for quantifiers
…ion_with_ultimate_eliminator # Conflicts: # .idea/JavaSMT.iml # lib/ivy.xml # src/org/sosy_lab/java_smt/solvers/princess/PrincessSolverContext.java # src/org/sosy_lab/java_smt/test/RationalFormulaManagerTest.java
…er_elimination_with_ultimate_eliminator # Conflicts: # src/org/sosy_lab/java_smt/solvers/boolector/BoolectorQuantifiedFormulaManager.java # src/org/sosy_lab/java_smt/solvers/mathsat5/Mathsat5NativeApi.java # src/org/sosy_lab/java_smt/test/QuantifierManagerTest.java
…to EXTERNAL_QUANTIFIER_CREATION for more clarity
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Outdated
Show resolved
Hide resolved
@@ -32,7 +54,78 @@ private BooleanFormula wrap(TFormulaInfo formulaInfo) { | |||
@Override | |||
public BooleanFormula eliminateQuantifiers(BooleanFormula pF) | |||
throws InterruptedException, SolverException { | |||
return wrap(eliminateQuantifiers(extractInfo(pF))); | |||
if (options != null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a switch-case expression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How should I approach this? My options array is not compatible for switch-case.
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Outdated
Show resolved
Hide resolved
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Outdated
Show resolved
Hide resolved
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Outdated
Show resolved
Hide resolved
return fmgr.orElseThrow(); | ||
} | ||
|
||
public void setFmgr(AbstractFormulaManager<TFormulaInfo, TType, TEnv, TFuncDecl> pFmgr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be public. You can simply add this method to the AbstractSolverContext
s constructor, so that it is always used if there is a QuantifiedFormulaManager
present. This makes it possible to handle it fully automatically and reduce the visibility to protected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To use it in the AbstractSolverContexts constructor, I would have to add it to the QuantifiedFormulaManager Interface, which would implicitly make it public again.
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Outdated
Show resolved
Hide resolved
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Outdated
Show resolved
Hide resolved
src/org/sosy_lab/java_smt/basicimpl/AbstractQuantifiedFormulaManager.java
Show resolved
Hide resolved
This reverts commit 9d86ef4.
(To get the right formula information: with visitor get the name and type of bound variables)