Skip to content

Commit

Permalink
Handle top thread when handling thread joins in base
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Oct 29, 2023
1 parent ae7a406 commit 894e618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,7 @@ struct
| Int n when GobOption.exists (BI.equal BI.zero) (ID.to_int n) -> st
| Address ret_a ->
begin match eval_rv (Analyses.ask_of_ctx ctx) gs st id with
| Thread a when ValueDomain.Threads.is_top a -> invalidate ~ctx (Analyses.ask_of_ctx ctx) gs st [ret_var]
| Thread a ->
let v = List.fold VD.join (VD.bot ()) (List.map (fun x -> G.thread (ctx.global (V.thread x))) (ValueDomain.Threads.elements a)) in
(* TODO: is this type right? *)
Expand Down

0 comments on commit 894e618

Please sign in to comment.