-
Notifications
You must be signed in to change notification settings - Fork 240
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
Further restrictions on theory rewriters related to safe options #11523
base: main
Are you sure you want to change the base?
Conversation
@@ -593,23 +594,10 @@ void TheoryFp::preRegisterTerm(TNode node) | |||
} | |||
if (!options().fp.fpExp) |
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.
Would it make sense to cache the option for faster access?
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.
I had considered this but I think this may be overkill. Note the same pattern is used in several other theories as well.
src/theory/fp/theory_fp_utils.cpp
Outdated
@@ -44,6 +46,27 @@ Integer getCardinality(const TypeNode& type) | |||
* (Integer(2).pow(fps.exponentWidth()) - Integer(1)); | |||
} | |||
|
|||
void checkExperimentalFloatingPointType(const Node& n) |
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.
I would rename this to either checkFloatingPointType
or checkForExperimentalFloatingPointType
Co-authored-by: Aina Niemetz <[email protected]>
Fixes cvc5/cvc5-projects#744.
Fixes cvc5/cvc5-projects#745.
Fixes cvc5/cvc5-projects#746.
Fixes cvc5/cvc5-projects#748.
Also makes it so that the FP rewriter does not rewrite experimental FP typed terms unless
fp-exp
is enabled.Updates several regressions based on this.