Skip to content

Commit

Permalink
renamed unChecksFlag to checksFlagSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy Westbrook committed Nov 16, 2021
1 parent ed9b2ac commit e547a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heapster-saw/src/Verifier/SAW/Heapster/SAWTranslation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ instance (Translate info ctx a tr, NuMatching a) =>

-- | A flag for whether or not to perform checks in the translation. We use this
-- type, rather than just 'Bool', for documentation purposes.
newtype ChecksFlag = ChecksFlag { unChecksFlag :: Bool }
newtype ChecksFlag = ChecksFlag { checksFlagSet :: Bool }

-- | The 'ChecksFlag' specifying not to perform any translation checks
noChecks :: ChecksFlag
Expand Down Expand Up @@ -1999,7 +1999,7 @@ ifChecksFlagM :: ImpTransM ext blocks tops ret ps ctx () ->
ImpTransM ext blocks tops ret ps ctx ()
ifChecksFlagM m =
(itiChecksFlag <$> ask) >>= \checks ->
if unChecksFlag checks then m else return ()
if checksFlagSet checks then m else return ()

-- | Assert a property of the current permission stack, raising an 'error' if it
-- fails to hold. The 'String' names the construct being translated.
Expand Down

0 comments on commit e547a6c

Please sign in to comment.