Skip to content

Commit

Permalink
mark unsafe uses of CVal
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Sep 14, 2024
1 parent 9db6344 commit 71f0598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/SBV/Core/Operations.hs
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ svSetEqual sa sb
| not (isSet sa && isSet sb && kindOf sa == kindOf sb)
= error $ "Data.SBV.svSetEqual: Called on ill-typed args: " ++ show (kindOf sa, kindOf sb)
| Just (RegularSet a) <- getSet sa, Just (RegularSet b) <- getSet sb
= svBool (a == b)
= tODO "Don't rely on CVal eq/ord" $ svBool (a == b)
| Just (ComplementSet a) <- getSet sa, Just (ComplementSet b) <- getSet sb
= svBool (a == b)
= tODO "Don't rely on CVal eq/ord" $ svBool (a == b)
| True
= SVal KBool $ Right $ cache r
where getSet (SVal _ (Left (CV _ (CSet s)))) = Just s
Expand Down

0 comments on commit 71f0598

Please sign in to comment.