Skip to content

Commit

Permalink
Join threads with top when joining with int or address
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Oct 29, 2023
1 parent 741781e commit 4cb8c97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cdomains/valueDomain.ml
Original file line number Diff line number Diff line change
Expand Up @@ -552,11 +552,9 @@ struct
| y, Blob (x,s,o) -> Blob (join (x:t) y, s, o)
| (Thread x, Thread y) -> Thread (Threads.join x y)
| (Int x, Thread y)
| (Thread y, Int x) ->
Thread y (* TODO: ignores int! *)
| (Thread y, Int x) -> Thread (Threads.join y (Threads.top ()))
| (Address x, Thread y)
| (Thread y, Address x) ->
Thread y (* TODO: ignores address! *)
| (Thread y, Address x) -> Thread (Threads.join y (Threads.top ()))
| (JmpBuf x, JmpBuf y) -> JmpBuf (JmpBufs.join x y)
| (Mutex, Mutex) -> Mutex
| (MutexAttr x, MutexAttr y) -> MutexAttr (MutexAttr.join x y)
Expand Down

0 comments on commit 4cb8c97

Please sign in to comment.