Skip to content

Commit

Permalink
Use join to combine all points-to elements sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstanb committed Sep 29, 2023
1 parent fae7256 commit 655362e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2072,9 +2072,7 @@ struct
begin match pts_sizes with
| [] -> `Bot
| [x] -> x
| x::xs -> List.fold_left (fun acc elem ->
if ValueDomainQueries.ID.compare acc elem >= 0 then elem else acc
) x xs
| x::xs -> List.fold_left ValueDomainQueries.ID.join x xs
end
| _ ->
M.warn "Pointer %a has a points-to-set of top. An invalid memory access might occur" d_exp dest;
Expand Down

0 comments on commit 655362e

Please sign in to comment.