Skip to content

Commit

Permalink
Deduplicate Mval.to_cil conversion in mutexEvents analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed May 7, 2024
1 parent 66107c8 commit f8f39eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analyses/mutexEventsAnalysis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ struct
| Addr a ->
let arg_e = AddrOf (PreValueDomain.Mval.to_cil a) in
if not (CilType.Exp.equal arg arg_e) then
let e' = BinOp(Eq, arg, AddrOf (PreValueDomain.Mval.to_cil a), intType) in
[Events.SplitBranch (e',true)]
let e' = BinOp (Eq, arg, arg_e, intType) in
[Events.SplitBranch (e', true)]
else
[]
| _ -> []
Expand Down

0 comments on commit f8f39eb

Please sign in to comment.