-
Notifications
You must be signed in to change notification settings - Fork 274
Goto checker interface enhancements [blocks: 3794] #3860
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
peterschrammel
merged 3 commits into
diffblue:develop
from
peterschrammel:goto-checker-interface-fixes
Jan 20, 2019
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
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,32 @@ | ||
/*******************************************************************\ | ||
|
||
Module: Interface for returning Goto Traces from Goto Checkers | ||
|
||
Author: Daniel Kroening, Peter Schrammel | ||
|
||
\*******************************************************************/ | ||
|
||
/// \file | ||
/// Interface for returning Goto Traces from Goto Checkers | ||
|
||
#ifndef CPROVER_GOTO_CHECKER_GOTO_TRACE_PROVIDER_H | ||
#define CPROVER_GOTO_CHECKER_GOTO_TRACE_PROVIDER_H | ||
|
||
class goto_tracet; | ||
class namespacet; | ||
|
||
/// An implementation of `incremental_goto_checkert` | ||
/// may implement this interface to provide goto traces. | ||
class goto_trace_providert | ||
{ | ||
public: | ||
/// Builds and returns a trace | ||
virtual goto_tracet build_trace() const = 0; | ||
|
||
/// Returns the namespace associated with the traces | ||
virtual const namespacet &get_namespace() const = 0; | ||
|
||
virtual ~goto_trace_providert() = default; | ||
}; | ||
|
||
#endif // CPROVER_GOTO_CHECKER_GOTO_TRACE_PROVIDER_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,31 @@ | ||
/*******************************************************************\ | ||
|
||
Module: Interface for outputting GraphML Witnesses for Goto Checkers | ||
|
||
Author: Daniel Kroening, Peter Schrammel | ||
|
||
\*******************************************************************/ | ||
|
||
/// \file | ||
/// Interface for outputting GraphML Witnesses for Goto Checkers | ||
|
||
#ifndef CPROVER_GOTO_CHECKER_WITNESS_PROVIDER_H | ||
#define CPROVER_GOTO_CHECKER_WITNESS_PROVIDER_H | ||
|
||
class goto_tracet; | ||
|
||
/// An implementation of `incremental_goto_checkert` | ||
/// may implement this interface to provide GraphML witnesses. | ||
class witness_providert | ||
{ | ||
public: | ||
virtual ~witness_providert() = default; | ||
|
||
// Outputs an error witness in GraphML format (see `graphml_witnesst`) | ||
virtual void output_error_witness(const goto_tracet &) = 0; | ||
|
||
// Outputs a proof in GraphML format (see `graphml_witnesst`) | ||
virtual void output_proof() = 0; | ||
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. Missing virtual destructor. |
||
}; | ||
|
||
#endif // CPROVER_GOTO_CHECKER_WITNESS_PROVIDER_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.
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.
Missing virtual destructor