Skip to content

Conversation

@kroening
Copy link
Collaborator

@kroening kroening commented Nov 5, 2025

This adds NuSMV's word constants to scanner, parser, type checker.

@kroening kroening added the SMV label Nov 5, 2025
@kroening kroening force-pushed the smv-word-constants branch 5 times, most recently from 2aa4e08 to d128ef8 Compare November 5, 2025 22:31
@kroening kroening marked this pull request as ready for review November 5, 2025 22:33
Comment on lines 699 to 701
auto result = from_integer(digits_int, type);
result.add_source_location() = src_expr.source_location();
return result;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
auto result = from_integer(digits_int, type);
result.add_source_location() = src_expr.source_location();
return result;
return from_integer(digits_int, type).with_source_location(src_expr.source_location());

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unfortunately won't work since we are returning a constant_exprt.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Then we should add with_source_location to constant_exprt (as we already have for some others)! (Obviously not a blocker for this PR here).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed return type to exprt

This adds NuSMV's word constants to scanner, parser, type checker.
@kroening kroening merged commit 2be0696 into main Nov 6, 2025
7 checks passed
@kroening kroening deleted the smv-word-constants branch November 6, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants