Skip to content

Commit

Permalink
Add final message for exp.single-threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 2, 2023
1 parent 6c8a05b commit 7e57562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/analyses/mCP.ml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ struct
let spawn_one v d =
List.iter (fun (lval, args) -> ctx.spawn lval v args) d
in
if not (get_bool "exp.single-threaded") then
if get_bool "exp.single-threaded" then
M.msg_final Error ~category:Unsound "Thread not spawned"
else
iter (uncurry spawn_one) @@ group_assoc_eq Basetype.Variables.equal xs

let do_sideg ctx (xs:(V.t * (WideningTokens.TS.t * G.t)) list) =
Expand Down

0 comments on commit 7e57562

Please sign in to comment.