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

MCSAT: Preprocessor: fix equality simplification for mixed real-integer terms #481

Merged
merged 5 commits into from
Nov 30, 2023

Conversation

ahmed-irfan
Copy link
Member

It is wrong to remove integer variable by substituting a real variable.
This was happening in the mcsat preprocessor during equality propagation of the top-level equality x_int_var = y_real_var.
This PR fixes this issue by not doing propagation of such equalities.

This PR:

  • Fixes mcsat preprocessor
  • Adds regression tests
  • Adds api test

@ahmed-irfan ahmed-irfan requested a review from disteph November 30, 2023 21:48
Copy link
Contributor

@disteph disteph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@coveralls
Copy link

Coverage Status

coverage: 65.141% (+0.001%) from 65.14%
when pulling 424c006 on fix-mcsat-nira-eq-preprocessing
into f1860fe on master.

@ahmed-irfan ahmed-irfan merged commit 29357c1 into master Nov 30, 2023
26 checks passed
@ahmed-irfan ahmed-irfan deleted the fix-mcsat-nira-eq-preprocessing branch November 30, 2023 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants