Skip to content

Commit

Permalink
Add TODO about shallow ThreadJoin invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Dec 8, 2023
1 parent c1153a3 commit 54bcf60
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 @@ -2397,6 +2397,7 @@ struct
(* handling thread joins... sort of *)
| ThreadJoin { thread = id; ret_var }, _ ->
let st' =
(* TODO: should invalidate shallowly? https://github.com/goblint/analyzer/pull/1224#discussion_r1405826773 *)
match (eval_rv (Analyses.ask_of_ctx ctx) gs st ret_var) with
| Int n when GobOption.exists (BI.equal BI.zero) (ID.to_int n) -> st
| Address ret_a ->
Expand Down

0 comments on commit 54bcf60

Please sign in to comment.