-
Notifications
You must be signed in to change notification settings - Fork 274
All-properties verifier [depends: 3584, blocks: 3794] #3585
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
tautschnig
merged 10 commits into
diffblue:develop
from
peterschrammel:all-properties-verifier
Jan 14, 2019
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cc1a90e
Add count_properties with given result
peterschrammel 4da669d
Add property output functions
peterschrammel 519fb98
Add report_util for outputting verification results
peterschrammel 0ba2e84
Move reporting functions to report_util
peterschrammel 0ba0833
Add report_error and report_inconclusive to report_util
peterschrammel 02bc690
Add result_to_exit_code
peterschrammel b1587fa
Utility for printing overall result
peterschrammel 3c2778e
Add functions to combine property results
peterschrammel 4b55962
Add has_properties_to_check
peterschrammel c61ca64
Add all_properties_verifier
peterschrammel 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 |
---|---|---|
|
@@ -15,6 +15,7 @@ Author: Daniel Kroening, [email protected] | |
#include <chrono> | ||
|
||
#include <goto-checker/bmc_util.h> | ||
#include <goto-checker/report_util.h> | ||
|
||
#include <util/xml.h> | ||
#include <util/json.h> | ||
|
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 |
---|---|---|
|
@@ -25,6 +25,7 @@ Author: Daniel Kroening, [email protected] | |
#include <linking/static_lifetime_init.h> | ||
|
||
#include <goto-checker/bmc_util.h> | ||
#include <goto-checker/report_util.h> | ||
#include <goto-checker/solver_factory.h> | ||
|
||
#include "counterexample_beautification.h" | ||
|
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/*******************************************************************\ | ||
|
||
Module: Goto Verifier for Verifying all Properties | ||
|
||
Author: Daniel Kroening, Peter Schrammel | ||
|
||
\*******************************************************************/ | ||
|
||
/// \file | ||
/// Goto Verifier for Verifying all Properties | ||
|
||
#ifndef CPROVER_GOTO_CHECKER_ALL_PROPERTIES_VERIFIER_H | ||
#define CPROVER_GOTO_CHECKER_ALL_PROPERTIES_VERIFIER_H | ||
|
||
#include "goto_verifier.h" | ||
|
||
#include "incremental_goto_checker.h" | ||
#include "properties.h" | ||
#include "report_util.h" | ||
|
||
template <class incremental_goto_checkerT> | ||
class all_properties_verifiert : public goto_verifiert | ||
{ | ||
public: | ||
all_properties_verifiert( | ||
const optionst &options, | ||
ui_message_handlert &ui_message_handler, | ||
abstract_goto_modelt &goto_model) | ||
: goto_verifiert(options, ui_message_handler), | ||
goto_model(goto_model), | ||
incremental_goto_checker(options, ui_message_handler, goto_model) | ||
{ | ||
properties = initialize_properties(goto_model); | ||
} | ||
|
||
resultt operator()() override | ||
{ | ||
// have we got anything to check? otherwise we return PASS | ||
if(!has_properties_to_check(properties)) | ||
return resultt::PASS; | ||
|
||
while(incremental_goto_checker(properties) != | ||
incremental_goto_checkert::resultt::DONE) | ||
{ | ||
// loop until we are done | ||
} | ||
return determine_result(properties); | ||
} | ||
|
||
void report() override | ||
{ | ||
output_properties(properties, ui_message_handler); | ||
output_overall_result(determine_result(properties), ui_message_handler); | ||
} | ||
|
||
protected: | ||
abstract_goto_modelt &goto_model; | ||
incremental_goto_checkerT incremental_goto_checker; | ||
}; | ||
|
||
#endif // CPROVER_GOTO_CHECKER_ALL_PROPERTIES_VERIFIER_H |
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
Oops, something went wrong.
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.