Skip to content

Commit

Permalink
Implement widen for threads with int and address similarly to the Add…
Browse files Browse the repository at this point in the history
…ress and Int case
  • Loading branch information
karoliineh committed Oct 29, 2023
1 parent 4cb8c97 commit ae7a406
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 @@ -583,11 +583,9 @@ struct
| (Blob x, Blob y) -> Blob (Blobs.widen x y) (* TODO: why no blob special cases like in join? *)
| (Thread x, Thread y) -> Thread (Threads.widen x y)
| (Int x, Thread y)
| (Thread y, Int x) ->
Thread y (* TODO: ignores int! *)
| (Thread y, Int x) -> Thread (Threads.widen y (Threads.join y (Threads.top ())))
| (Address x, Thread y)
| (Thread y, Address x) ->
Thread y (* TODO: ignores address! *)
| (Thread y, Address x) -> Thread (Threads.widen y (Threads.join y (Threads.top ())))
| (Mutex, Mutex) -> Mutex
| (JmpBuf x, JmpBuf y) -> JmpBuf (JmpBufs.widen x y)
| (MutexAttr x, MutexAttr y) -> MutexAttr (MutexAttr.widen x y)
Expand Down

0 comments on commit ae7a406

Please sign in to comment.