Skip to content

Commit 52c20f1

Browse files
committed
removing sort checks for Map and Set
1 parent a1adb18 commit 52c20f1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

kore/src/Kore/Builtin/Map.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,9 @@ internalize
488488
-> TermLike variable
489489
-> TermLike variable
490490
internalize tools termLike
491-
| fromMaybe False (isMapSort tools sort')
492491
-- Ac.toNormalized is greedy about 'normalizing' opaque terms, we should only
493492
-- apply it if we know the term head is a constructor-like symbol.
494-
, App_ symbol _ <- termLike
493+
| App_ symbol _ <- termLike
495494
, isConstructorModulo_ symbol =
496495
case Ac.toNormalized @NormalizedMap termLike of
497496
Ac.Bottom -> TermLike.mkBottom sort'

kore/src/Kore/Builtin/Set.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,9 @@ internalize
486486
-> TermLike variable
487487
-> TermLike variable
488488
internalize tools termLike
489-
| fromMaybe False (isSetSort tools sort')
490489
-- Ac.toNormalized is greedy about 'normalizing' opaque terms, we should only
491490
-- apply it if we know the term head is a constructor-like symbol.
492-
, App_ symbol _ <- termLike
491+
| App_ symbol _ <- termLike
493492
, isConstructorModulo_ symbol =
494493
case Ac.toNormalized @NormalizedSet termLike of
495494
Ac.Bottom -> TermLike.mkBottom sort'

0 commit comments

Comments
 (0)