-
Notifications
You must be signed in to change notification settings - Fork 42
Emit a different warning type for each case of stuck proof state #1959
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
rv-jenkins
merged 10 commits into
runtimeverification:master
from
andreiburdusa:distinguish-stuck-proof-states
Jul 13, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
aef3366
Redo
andreiburdusa 3d8d3d0
New module
andreiburdusa 1b4b8b5
Stylish
andreiburdusa 42c9b93
Update kore/src/Kore/Log/WarnStuckProofState.hs
ttuegel 71415a1
Update kore/src/Kore/Log/WarnStuckProofState.hs
ttuegel 2f74b32
Update kore/src/Kore/Log/WarnStuckProofState.hs
ttuegel abbcaf5
Update kore/src/Kore/Log/WarnStuckProofState.hs
ttuegel 05b9e77
Update kore/src/Kore/Log/WarnStuckProofState.hs
ttuegel d3d9387
Update kore/src/Kore/Log/WarnStuckProofState.hs
ttuegel 9caee63
Merge branch 'master' into distinguish-stuck-proof-states
andreiburdusa 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,49 @@ | ||
| {- | | ||
| Copyright : (c) Runtime Verification, 2019 | ||
| License : NCSA | ||
|
|
||
| -} | ||
|
|
||
| module Kore.Log.WarnStuckProofState | ||
| ( WarnStuckProofState (..) | ||
| , warnStuckProofStateTermsUnifiable | ||
| , warnStuckProofStateTermsNotUnifiable | ||
| ) where | ||
|
|
||
| import Prelude.Kore | ||
|
|
||
| import Log | ||
| import Pretty | ||
| ( Pretty | ||
| ) | ||
| import qualified Pretty | ||
|
|
||
| {- | @WarnStuckProofState@ is emitted when a proof gets stuck. | ||
|
|
||
| The warning message distinguishes for the user the ways that a proof can be stuck. | ||
|
|
||
| -} | ||
| data WarnStuckProofState | ||
| = TermsUnifiableStuck | ||
| -- ^ The terms of the left- and right-hand sides do not unify, | ||
| -- and the left-hand side cannot be rewritten any further. | ||
| | TermsNotUnifiableStuck | ||
| -- ^ The left- and right-hand side terms are unifiable, but the left-hand side | ||
| -- condition does not imply the right-hand side condition. | ||
| deriving Show | ||
|
|
||
| instance Pretty WarnStuckProofState where | ||
| pretty TermsUnifiableStuck = | ||
| "The proof has reached the final configuration, but the claimed implication is not valid." | ||
| pretty TermsNotUnifiableStuck = | ||
| "The claim cannot be rewritten further, and the claimed implication is not valid." | ||
|
|
||
| instance Entry WarnStuckProofState where | ||
| entrySeverity _ = Warning | ||
| helpDoc _ = "distinguish the ways a proof can become stuck" | ||
|
|
||
| warnStuckProofStateTermsUnifiable :: MonadLog log => log () | ||
| warnStuckProofStateTermsUnifiable = logEntry TermsUnifiableStuck | ||
|
|
||
| warnStuckProofStateTermsNotUnifiable :: MonadLog log => log () | ||
| warnStuckProofStateTermsNotUnifiable = logEntry TermsNotUnifiableStuck | ||
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
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.