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

SAWScript thinks terms are equal when they're not #116

Closed
brianhuffman opened this issue Mar 16, 2016 · 0 comments
Closed

SAWScript thinks terms are equal when they're not #116

brianhuffman opened this issue Mar 16, 2016 · 0 comments

Comments

@brianhuffman
Copy link
Contributor

Here's an example:

   ___  __ _ _ _ _
  / __|/ _' | | | |
  \__ \ (_| | | | |
  |___/\__,_|\_,_/ version 0.1.1-dev (5137b8a)

Loading module Cryptol
sawscript> let {{ foo = 0x4 }}
sawscript> let {{ bar = 0x7 }}
sawscript> rewrite (add_prelude_eqs ["eq_refl"] (cryptol_ss())) {{ foo == bar }}
Prelude.True

Basically, the rewriter thinks that foo == bar matches the reflexivity rule for equality, because a term equality comparison between foo and bar returns True.

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