Skip to content

Commit

Permalink
Fix more var_eq eq_set_clos indentation (PR #724)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed May 19, 2022
1 parent 41d3cd4 commit da790e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/analyses/varEq.ml
Original file line number Diff line number Diff line change
Expand Up @@ -534,12 +534,12 @@ struct
(* convert IndexPI to Index offset *)
(* TODO: this applies eq_set_clos under the offset, unlike cases below; should generalize? *)
Queries.ES.fold (fun e acc -> (* filter_map *)
match e with
| CastE (_, StartOf a') -> (* eq_set adds casts *)
let e' = AddrOf (Cil.addOffsetLval (Index (i, os)) a') in (* TODO: re-add cast? *)
Queries.ES.add e' acc
| _ -> acc
) (eq_set_clos a s) (Queries.ES.empty ())
match e with
| CastE (_, StartOf a') -> (* eq_set adds casts *)
let e' = AddrOf (Cil.addOffsetLval (Index (i, os)) a') in (* TODO: re-add cast? *)
Queries.ES.add e' acc
| _ -> acc
) (eq_set_clos a s) (Queries.ES.empty ())
| SizeOf _
| SizeOfE _
| SizeOfStr _
Expand Down

0 comments on commit da790e0

Please sign in to comment.