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

Callbacks: Fix side-condition events when arity is non-null #1194

Conversation

alexoltean61
Copy link
Contributor

This PR fixes a bug in calls to calls to side_condition_event_callback. Every time such a call should occur, the rewrite_event_callback is invoked instead.

This is due to a bug in the method that builds substitutions, and calls a callback once the substitution has the required size. Instead of conditionally calling either the rewrite callback or the sidecondition callback, it always calls the rewrite one.

This PR fixes the bug.

@theo25
Copy link
Collaborator

theo25 commented Jan 9, 2025

This looks as a legitimate bug fix to me. However I expect tests to fail with this fix because we would need to update their reference output. I will start the ci and let’s see what we get.

@theo25 theo25 self-requested a review January 10, 2025 15:15
Copy link
Collaborator

@theo25 theo25 left a comment

Choose a reason for hiding this comment

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

Turns out there was only need to fix some formatting. I pushed a commit with the fix and I will approve.

@alexoltean61
Copy link
Contributor Author

Thank you!

@automergerpr-permission-manager automergerpr-permission-manager bot merged commit af29ee5 into runtimeverification:develop Jan 10, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants