Skip to content

Label properties before using property slicer #998

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

Merged

Conversation

peterschrammel
Copy link
Member

No description provided.

@@ -839,6 +832,19 @@ bool cbmc_parse_optionst::process_goto_program(
// add loop ids
goto_functions.compute_loop_numbers();

// label the assertions
label_properties(goto_functions);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't the call in line 459 thus be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I fixed this one and I added comments to explain the current behaviour regarding labelling properties.

The labelling must happen after assertions are introduced
(goto_check, cover, etc), but not relabelled after using
the property slicer; otherwise the argument to the
"property" option would be invalid.
@peterschrammel peterschrammel force-pushed the label-properties-before-full-slice branch from 81e8933 to 996f944 Compare June 9, 2017 10:20
The same property given as argument to --property had a different
name when displayed with --show-properties after using --full-slice
in the same invocation of goto-instrument.

Property identifiers should at least be consistent w.r.t. input
arguments and log file output in the same invocation of a
tool. However, the consistency ends as soon as a goto binary
is stored and used (where they are relabelled). This could be
fixed by storing property identifiers and preventing them from
being touched after loading a goto binary.
@peterschrammel peterschrammel force-pushed the label-properties-before-full-slice branch from 996f944 to 40983dd Compare June 9, 2017 10:31
@kroening kroening merged commit 74e21ce into diffblue:master Jun 9, 2017
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