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

[Eva] Results: minor simplification.

parent bdc04dc4
No related branches found
No related tags found
No related merge requests found
...@@ -381,7 +381,7 @@ struct ...@@ -381,7 +381,7 @@ struct
assert (Int_Base.equal loc2.size size); assert (Int_Base.equal loc2.size size);
make_loc loc size make_loc loc size
and extract loc = and extract loc =
loc >>>-: get >>>-: Precise_locs.imprecise_location loc >>>-: get >>>-: Precise_locs.imprecise_location
in in
extract_loc res |> fst |> Response.map_join' extract join |> convert extract_loc res |> fst |> Response.map_join' extract join |> convert
...@@ -429,14 +429,10 @@ struct ...@@ -429,14 +429,10 @@ struct
match r with match r with
| `Bottom | `Top -> [] | `Bottom | `Top -> []
| `Value alarmset -> | `Value alarmset ->
let open Alarmset in let add alarm status acc =
let l = ref [] in if status <> Alarmset.True then alarm :: acc else acc
let add alarm = function
| True -> ()
| False | Unknown -> l := alarm :: !l
in in
Alarmset.iter add alarmset; Alarmset.fold add [] alarmset
!l
let is_bottom : type a c. (a,c) evaluation -> bool = let is_bottom : type a c. (a,c) evaluation -> bool =
fun res -> fun res ->
......
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