Skip to content

Commit

Permalink
Delay next_state in check_disagree in case of exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmid committed Oct 10, 2023
1 parent c549513 commit 62e747a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/STM.ml
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ struct
| c::cs ->
let res = Spec.run c sut in
let b = Spec.postcond c s res in
let s' = Spec.next_state c s in
if b
then
let s' = Spec.next_state c s in
match check_disagree s' sut cs with
| None -> None
| Some rest -> Some ((c,res)::rest)
Expand Down

0 comments on commit 62e747a

Please sign in to comment.