-
Notifications
You must be signed in to change notification settings - Fork 44
Fix Ac Unification error and Add new integration test #2493
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
Changes from all commits
57e0cd4
b3dc5f0
0f8e890
59ebd44
75cda60
6a470e3
5d0d7cf
d8f4384
afd3c55
9536110
4089366
a848905
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -499,10 +499,9 @@ internalize :: | |
TermLike variable -> | ||
TermLike variable | ||
internalize tools termLike | ||
| fromMaybe False (isMapSort tools sort') | ||
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. Are we just removing this check because it is redundant? Or is there another reason? 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. This is the check that I asked you about the other day, the one that Evan removed in his PR that I then had to revert. You suggested I leave it in even if it doesn't solve the Issue linked to this PR. 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. Oh, that is not the check I thought you were removing. It is redundant, and I'm glad to be rid of it, but it doesn't have anything to do with this issue in particular. 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. So, is it fine to leave it in this PR or should I open a new PR? |
||
, -- Ac.toNormalized is greedy about 'normalizing' opaque terms, we should only | ||
-- apply it if we know the term head is a constructor-like symbol. | ||
App_ symbol _ <- termLike | ||
-- Ac.toNormalized is greedy about 'normalizing' opaque terms, we should only | ||
-- apply it if we know the term head is a constructor-like symbol. | ||
| App_ symbol _ <- termLike | ||
, isConstructorModulo_ symbol = | ||
case Ac.toNormalized @NormalizedMap termLike of | ||
Ac.Bottom -> TermLike.mkBottom sort' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include $(CURDIR)/../include.mk |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module VERIFICATION | ||
imports TEST | ||
|
||
endmodule | ||
|
||
module TEST-SPEC | ||
imports VERIFICATION | ||
|
||
claim b(keys(_M:Map)) => c | ||
|
||
endmodule |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#Not ( #Exists _0 . #Exists S . { | ||
keys ( _M ) | ||
#Equals | ||
S | ||
SetItem ( _0 ) | ||
} ) | ||
#And | ||
#Not ( { | ||
.Set | ||
#Equals | ||
keys ( _M ) | ||
} ) | ||
#And | ||
<k> | ||
b ( keys ( _M ) ) ~> _DotVar1 ~> . | ||
</k> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) 2020 K Team. All Rights Reserved. | ||
|
||
module TEST | ||
imports SET | ||
imports MAP | ||
|
||
syntax B ::= b(Set) | ||
| "c" | ||
syntax KItem ::= B | ||
|
||
rule b(.Set) => c | ||
rule b(SetItem(_:KItem) S:Set) => b(S) | ||
|
||
endmodule |
Uh oh!
There was an error while loading. Please reload this page.