Skip to content

Commit

Permalink
SCP-1731 - Static analysis checks choice bounds after picking a branc…
Browse files Browse the repository at this point in the history
…h in Choice (instead of before) (#2635)
  • Loading branch information
palas committed Jan 20, 2021
1 parent 42f4fd4 commit 84f537f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions marlowe/src/Language/Marlowe/Analysis/FSSemantics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ isValidAndFailsWhen oa hasErr (Case (Choice choId bnds) cont:rest)
hasErr (Just symInput) timeout sState pos cont
contTrace <- isValidAndFailsWhen oa hasErr rest timeout timCont
newPreviousMatch sState (pos + 1)
return (ite (newCond .&& sNot clashResult)
(ensureBounds concVal bnds .&& newTrace)
return (ite (newCond .&& sNot clashResult .&& ensureBounds concVal bnds)
newTrace
contTrace)
isValidAndFailsWhen oa hasErr (Case (Notify obs) cont:rest)
timeout timCont previousMatch sState pos =
Expand Down

0 comments on commit 84f537f

Please sign in to comment.