Skip to content

Commit

Permalink
Fix smtprc-tid unsoundness
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 26, 2023
1 parent 0cf9bc4 commit 2a958bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ struct
Int (if AD.is_bot (AD.meet p1 p2) then ID.of_int ik BI.one else match eq p1 p2 with Some x when x -> ID.of_int ik BI.zero | _ -> bool_top ik)
| IndexPI when AD.to_string p2 = ["all_index"] ->
addToAddrOp p1 (ID.top_of (Cilfacade.ptrdiff_ikind ()))
| IndexPI | PlusPI ->
addToAddrOp p1 (AD.to_int p2) (* sometimes index is AD for some reason... *)
| _ -> VD.top ()
end
(* For other values, we just give up! *)
Expand Down

0 comments on commit 2a958bd

Please sign in to comment.