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

Using "@" in signatures makes type mismatch #2

Open
yoni206 opened this issue Mar 15, 2018 · 0 comments
Open

Using "@" in signatures makes type mismatch #2

yoni206 opened this issue Mar 15, 2018 · 0 comments
Assignees
Labels

Comments

@yoni206
Copy link
Member

yoni206 commented Mar 15, 2018

When using "@" inside a signature, there is a mismatch between the computed and expected types.

Example (the content of tmp.plf appears below):

$ lfscc sat.plf smt.plf tmp.plf
tmp.plf, line 11, column 10:
The type expected for an application does not match the computed type.

  1. The expected type: (th_holds (= 0x22a7fb0 0x22a7f50 0x22a7f50))
  2. The computed type: (th_holds (= 0x22a7fb0 0x2273880 0x2273880))

When replacing "(th_holds (= s tt tt))" with "(th_holds (= s t t))", the check is successful (no need to remove the "@" line).

tmp.plf

(declare tmp
(! s sort
(! t (term s)
(@ tt t
(th_holds (= s tt tt))))))

(check
(% s sort
(% t (term s)
(: (th_holds (= s t t))
(tmp s t))))))

@ajreynol ajreynol self-assigned this Mar 18, 2018
@ajreynol ajreynol added the bug label Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants