Skip to content

Commit

Permalink
repair S5.actionToEvent: also avoid props in postconditions
Browse files Browse the repository at this point in the history
  • Loading branch information
m4lvin committed Jan 11, 2019
1 parent df71fbb commit 53a9ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SMCDEL/Translations/S5.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ actionToEvent (ActMS5 acts actrel, faction) = (KnTrf addprops addlaw changeprops
actions = map fst acts
ags = map fst actrel
addprops = actionprops ++ actrelprops
(P fstnewp) = freshp $ propsInForms (map (fst.snd) acts)
(P fstnewp) = freshp . propsInForms $ concat [ pre : map snd posts | (_,(pre,posts)) <- acts] -- avoid props in pre- and postconditions
actionprops = [P fstnewp..P maxactprop] -- new props to distinguish all actions
maxactprop = fstnewp + ceiling (logBase 2 (fromIntegral $ length actions) :: Float) -1
actpropsRel = zip actions (powerset actionprops)
Expand Down

0 comments on commit 53a9ac8

Please sign in to comment.