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

BMC: return property handles/literals #934

Merged
merged 1 commit into from
Jan 17, 2025
Merged

BMC: return property handles/literals #934

merged 1 commit into from
Jan 17, 2025

Conversation

kroening
Copy link
Member

The property handles/literals for the BMC time frames are now returned as return values, as opposed to being returned via a reference.

This removes the ambiguity about what should happen when there are values in those vectors prior to the call.

Comment on lines 151 to 152
bvt prop_bv;
prop_bv.resize(bmc_map.timeframe_map.size());
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
bvt prop_bv;
prop_bv.resize(bmc_map.timeframe_map.size());
bvt prop_bv{bmc_map.timeframe_map.size()};

or perhaps use .reserve instead of .resize and use .push_back in the loop below.

Comment on lines 698 to 699
exprt::operandst prop_handles;
prop_handles.resize(no_timeframes, true_exprt());
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
exprt::operandst prop_handles;
prop_handles.resize(no_timeframes, true_exprt());
exprt::operandst prop_handles{no_timeframes, true_exprt()};

The property handles/literals for the BMC time frames are now returned as
return values, as opposed to being returned via a reference.

This removes the ambiguity about what should happen when there are values in
those vectors prior to the call.
@tautschnig tautschnig merged commit f6c38d9 into main Jan 17, 2025
9 checks passed
@tautschnig tautschnig deleted the prop_handles branch January 17, 2025 15:16
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