-
Notifications
You must be signed in to change notification settings - Fork 277
Refinement iteration printing #5237
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
thk123
merged 3 commits into
diffblue:develop
from
thk123:refinement-iteration-printing
Feb 21, 2020
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CORE | ||
main.c | ||
--incremental-loop main.0 --unwind-min 5 --unwind-max 10 --json-ui | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
"messageText": "VERIFICATION FAILED" | ||
"currentUnwinding": 1 | ||
-- | ||
^warning: ignoring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CORE | ||
main.c | ||
--incremental-loop main.0 --unwind-min 5 --unwind-max 10 --xml-ui | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
<text>VERIFICATION FAILED</text> | ||
<current-unwinding>1</current-unwinding> | ||
<refinement-iteration>1</refinement-iteration> | ||
-- | ||
^warning: ignoring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
#define CPROVER_GOTO_CHECKER_SYMEX_BMC_INCREMENTAL_ONE_LOOP_H | ||
|
||
#include "symex_bmc.h" | ||
#include <util/ui_message.h> | ||
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. Guess you don't need this one anymore. 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. Needed for |
||
|
||
class symex_bmc_incremental_one_loopt : public symex_bmct | ||
{ | ||
|
@@ -20,7 +21,8 @@ class symex_bmc_incremental_one_loopt : public symex_bmct | |
symex_target_equationt &, | ||
const optionst &, | ||
path_storaget &, | ||
guard_managert &); | ||
guard_managert &, | ||
ui_message_handlert::uit output_ui); | ||
|
||
/// Return true if symex can be resumed | ||
bool from_entry_point_of( | ||
|
@@ -44,6 +46,10 @@ class symex_bmc_incremental_one_loopt : public symex_bmct | |
const symex_targett::sourcet &source, | ||
const call_stackt &context, | ||
unsigned unwind) override; | ||
|
||
void log_unwinding(unsigned unwind); | ||
|
||
ui_message_handlert::uit output_ui; | ||
}; | ||
|
||
#endif // CPROVER_GOTO_CHECKER_SYMEX_BMC_INCREMENTAL_ONE_LOOP_H |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
I know there are a few other places in the codebase where this sort of switch happens, so I'm not going to block this PR on this issue :-) But it's really ugly in general... I'm wondering if we could come up with an API extension to message handlers. Perhaps some pseudo code like this:
Obviously suitable C++ plumbing needed :-) - but hopefully that explains the idea
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.
Yes I started having a go at making just a general way of logging structured data, but didn't want to hold up this PR for t