-
Notifications
You must be signed in to change notification settings - Fork 43
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
Enumtype smtlib #272
Enumtype smtlib #272
Conversation
RipplB
commented
Jun 26, 2024
•
edited
Loading
edited
- Introduce domain size for types
- Introduce EnumType for enumerations
- Remove enumerated type wrappers from xsts, use EnumType directly
- Have all solver types support EnumType
- Fix Name collision checks for XSTS, enum type rework #122
- Partially solve JavaSMT term transforming: inproper handling of function declarations #270
- Fix floating point number equality simplifications, see 285b991
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.
Did a very rough first review
subprojects/common/core/src/main/java/hu/bme/mit/theta/core/type/enumtype/EnumNeqExpr.java
Outdated
Show resolved
Hide resolved
subprojects/common/core/src/main/java/hu/bme/mit/theta/core/type/enumtype/EnumType.java
Outdated
Show resolved
Hide resolved
subprojects/common/core/src/main/java/hu/bme/mit/theta/core/utils/ExprSimplifier.java
Show resolved
Hide resolved
subprojects/xsts/xsts-analysis/src/test/java/hu/bme/mit/theta/xsts/analysis/XstsTest.java
Outdated
Show resolved
Hide resolved
...n/java/hu/bme/mit/theta/solver/smtlib/impl/smtinterpol/SMTInterpolSmtLibSolverInstaller.java
Show resolved
Hide resolved
...lib/src/main/java/hu/bme/mit/theta/solver/smtlib/impl/generic/GenericSmtLibSolverBinary.java
Outdated
Show resolved
Hide resolved
...olver-smtlib/src/main/java/hu/bme/mit/theta/solver/smtlib/impl/cvc5/CVC5SmtLibItpSolver.java
Outdated
Show resolved
Hide resolved
...s/solver/solver-smtlib/src/main/java/hu/bme/mit/theta/solver/smtlib/solver/SmtLibSolver.java
Outdated
Show resolved
Hide resolved
Now the test uses solvermanagers and a constant string can be set to easily define which solver to run the tests with. If it is set to an SMTLib solver, a helper BeforeClass method checks if specified version is installed, and if not, installs it.
Tests fail for |
The generic smtlib solver binary checks process health after starting it. If the process didn't fail fast enough, this check reported a running status, but later calls failed. Now introduced a 50ms thread sleep after starting the process, to make sure it catches all startup fails.
NaN floating point values should not be equal to any other value. This behavior is correctly implemented in the FpLitExpr #eq and #neq methods. To utilize that, manual comparison in simplification is now swapped to call these methods, resulting in correct behaviour: (= (NaN) (NaN)) for example now simplifies to false.
Quality Gate failedFailed conditions |