Skip to content
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

addsimp with non-equation theorem causes REPL to exit #560

Closed
brianhuffman opened this issue Oct 3, 2019 · 1 comment
Closed

addsimp with non-equation theorem causes REPL to exit #560

brianhuffman opened this issue Oct 3, 2019 · 1 comment

Comments

@brianhuffman
Copy link
Contributor

Function ruleOfProp calls error due to a problem with a user-provided rewrite rule. This should be a user-level error, not a panic. For an example, see #511, or run the following commands at the saw repl:

sawscript> thm <- prove_print z3 {{ True }}
[15:34:02.187] Valid
sawscript> addsimp thm empty_ss
[15:34:06.810] Rewrite Rules
=============
saw: ruleOfProp: Predicate not an equation: Prelude.True
CallStack (from HasCallStack):
  error, called at src/Verifier/SAW/Rewriter.hs:306:16 in saw-core-0.1-9trtP7WRb9qGDvQurwxUK4:Verifier.SAW.Rewriter
@brianhuffman
Copy link
Contributor Author

Duplicate of #319.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant