Skip to content

Commit

Permalink
Merge pull request #724 from ucsd-progsys/fd/bagop-sorts
Browse files Browse the repository at this point in the history
Fix sorts of bag theory operations in Theories.hs
  • Loading branch information
facundominguez authored Dec 3, 2024
2 parents 2acb214 + 9172c8f commit 66b710d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Language/Fixpoint/Smt/Theories.hs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ interpSymbols =
, interpSym mapSto mapSto mapStoSort

, interpSym bagEmpty bagEmpty (FAbs 0 $ FFunc intSort (bagSort $ FVar 0))
, interpSym bagSng bagSng (FAbs 0 $ FFunc (FVar 0) $ FFunc intSort (setSort $ FVar 0))
, interpSym bagSng bagSng (FAbs 0 $ FFunc (FVar 0) $ FFunc intSort (bagSort $ FVar 0))
, interpSym bagCount bagCount bagCountSort
, interpSym bagCup bagCup bagBopSort
, interpSym bagMax bagMax bagBopSort
Expand Down Expand Up @@ -504,7 +504,7 @@ interpSymbols =
$ FFunc (FVar 1)
(mapSort (FVar 0) (FVar 1))

bagCountSort = FAbs 0 $ FFunc (FVar 0) $ FFunc (bagSort $ FVar 0) intSort
bagCountSort = FAbs 0 $ FFunc (bagSort $ FVar 0) $ FFunc (FVar 0) intSort
-- cup :: forall i. Map i Int -> Map i Int -> Map i Int
bagBopSort = FAbs 0 $ FFunc (bagSort $ FVar 0)
$ FFunc (bagSort $ FVar 0)
Expand Down

0 comments on commit 66b710d

Please sign in to comment.