-
Notifications
You must be signed in to change notification settings - Fork 285
Make goto_symext::language_mode protected #8646
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,6 @@ single_loop_incremental_symex_checkert::single_loop_incremental_symex_checkert( | |
| unwindset.parse_unwind(options.get_option("unwind")); | ||
| unwindset.parse_unwindset( | ||
| options.get_list_option("unwindset"), goto_model, ui_message_handler); | ||
| setup_symex(symex, ns, ui_message_handler); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's fine, there is no need for doing so. |
||
|
|
||
| // Freeze all symbols if we are using a prop_conv_solvert | ||
| prop_conv_solvert *prop_conv_solver = dynamic_cast<prop_conv_solvert *>( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,10 @@ class single_path_symex_only_checkert : public incremental_goto_checkert | |
| const symex_bmct &symex, | ||
| const symex_target_equationt &equation); | ||
|
|
||
| virtual void setup_symex(symex_bmct &symex); | ||
| virtual void setup_symex(symex_bmct &symex) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this even called anywhere now?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it's called from
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, when writing my earlier comment I had failed to consider that
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, yes. |
||
| { | ||
| // deriving classes may do extra work here | ||
| } | ||
|
|
||
| /// Adds the initial goto-symex state as a path to the worklist | ||
| virtual void initialize_worklist(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ Author: Daniel Kroening, [email protected] | |
|
|
||
| #include <goto-programs/unwindset.h> | ||
|
|
||
| #include <linking/static_lifetime_init.h> | ||
|
|
||
| #include <limits> | ||
|
|
||
| symex_bmct::symex_bmct( | ||
|
|
@@ -33,10 +35,17 @@ symex_bmct::symex_bmct( | |
| options, | ||
| path_storage, | ||
| guard_manager), | ||
| last_source_location(source_locationt::nil()), | ||
| record_coverage(!options.get_option("symex-coverage-report").empty()), | ||
| unwindset(unwindset), | ||
| symex_coverage(ns) | ||
| { | ||
| const symbolt *init_symbol = outer_symbol_table.lookup(INITIALIZE_FUNCTION); | ||
| if(init_symbol) | ||
| language_mode = init_symbol->mode; | ||
|
|
||
| messaget msg{mh}; | ||
| msg.status() << "Starting Bounded Model Checking" << messaget::eom; | ||
| } | ||
|
|
||
| /// show progress | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you remove this then the virtual function won't even be called...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, there is no need for doing so.