Skip to content
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

Draft
wants to merge 219 commits into
base: master
Choose a base branch
from

Conversation

baierd
Copy link
Collaborator

@baierd baierd commented Feb 17, 2025

TODO: Description

Janelle added 30 commits August 20, 2023 15:19
DavidGalllob and others added 24 commits December 8, 2024 17:10
-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
-deleted many methods that had no usages
Copy link
Collaborator Author

@baierd baierd left a 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();
Copy link
Collaborator Author

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.

Copy link
Collaborator

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");
Copy link
Collaborator Author

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.

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants