-
Notifications
You must be signed in to change notification settings - Fork 46
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
Extend Solver Independent SMTLib2 Parser/Generator #436
base: master
Are you sure you want to change the base?
Extend Solver Independent SMTLib2 Parser/Generator #436
Conversation
…r and logEqualBV to Generator
- minor bugfixes
…SMTLIb2 Strings when generating them
-FloatingPoints can now log values.
…and once parsed and regeneratated and then given to Z3 as part of an evaluation.
…t added to the variables Hashmap in the Visitor.java
-bugfix where all String tests would evaluate negative in Parser Test
-introduced new Type, which holds all important information for handling formulaTypes
… generate them...
-deleted many methods that had no usages
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.
@DavidGalllob
I found some points to address.
Also, please run ant all-checks
and fix all issues found.
The checks tell you several problems still present.
@@ -482,15 +483,17 @@ public int getLength(BitvectorFormula pNumber) { | |||
public final BooleanFormula distinct(List<BitvectorFormula> pBits) throws GeneratorException { | |||
// optimization | |||
if (pBits.size() <= 1) { | |||
BooleanFormula nativeTrue = bmgr.makeTrue(); |
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.
Since the results for true and false are immutable and static, you most likely don't need the changes in this class.
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.
Ich habe in dieser Klasse überhaupt keine Änderungen vorgenommen. Soll ich dennoch dieses Anliegen beheben?
@@ -135,6 +172,9 @@ protected TFormulaInfo makeNumberImpl( | |||
|
|||
protected static boolean isNegativeZero(Double pN) { | |||
Preconditions.checkNotNull(pN); | |||
if(Generator.isLoggingEnabled()){ | |||
throw new GeneratorException("Logging isNegativeZero ist not supported yet"); |
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.
Neg zero is quite important for FP. You should try to include it.
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.
Das Problem ist, dass SMT-LIB nur isZero unterstützt. Es gibt keine eigene Funktion für isNegativeZero, deshalb wird hier diese Exception geworfen. Ich kann gerne isZero verwenden, was jedoch nicht äquivalent ist.
TODO: Description