Skip to content
Snippets Groups Projects
Commit fbccdea9 authored by David Bühler's avatar David Bühler
Browse files

[Eva] Results: functions [*_deps] return Zone.top if no cvalue domain is available.

parent 7b761861
No related branches found
No related tags found
No related merge requests found
...@@ -452,27 +452,19 @@ struct ...@@ -452,27 +452,19 @@ struct
(* Dependencies *) (* Dependencies *)
let lval_deps lval req = let compute_deps eval_deps arg req =
let compute_deps cvalue = let error = function
Register.eval_deps_lval (cvalue, Locals_scoping.bottom ()) lval | Bottom -> Locations.Zone.bottom
| Top | DisabledDomain -> Locations.Zone.top
in in
req |> as_cvalue_model |> let compute cvalue =
Result.fold ~error:(fun _ -> Locations.Zone.bottom) ~ok:compute_deps eval_deps (cvalue, Locals_scoping.bottom ()) arg
let expr_deps exp req =
let compute_deps cvalue =
Register.eval_deps (cvalue, Locals_scoping.bottom ()) exp
in
req |> as_cvalue_model |>
Result.fold ~error:(fun _ -> Locations.Zone.bottom) ~ok:compute_deps
let address_deps lval req =
let compute_deps cvalue =
Register.eval_deps_addr (cvalue, Locals_scoping.bottom ()) lval
in in
req |> as_cvalue_model |> req |> as_cvalue_model |> Result.fold ~error ~ok:compute
Result.fold ~error:(fun _ -> Locations.Zone.bottom) ~ok:compute_deps
let lval_deps = compute_deps Register.eval_deps_lval
let expr_deps = compute_deps Register.eval_deps
let address_deps = compute_deps Register.eval_deps_addr
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment