@ -2332,7 +2332,7 @@ module MemReach = struct
end
module Mem = struct
type ' has_oenv t0 = Unreachable | E rror | E xcRaised | Reachable of ' has_oenv MemReach . t0
type ' has_oenv t0 = Unreachable | E xcRaised | Reachable of ' has_oenv MemReach . t0
type no_oenv_t = GOption . none t0
@ -2340,8 +2340,6 @@ module Mem = struct
let unreachable : t = Unreachable
let error : t = Error
let exc_raised : t = ExcRaised
let is_exc_raised = function ExcRaised -> true | _ -> false
@ -2354,10 +2352,6 @@ module Mem = struct
true
| _ , Unreachable ->
false
| Error , _ ->
true
| _ , Error ->
false
| ExcRaised , _ ->
true
| _ , ExcRaised ->
@ -2372,8 +2366,6 @@ module Mem = struct
match ( x , y ) with
| Unreachable , m | m , Unreachable ->
m
| Error , m | m , Error ->
m
| ExcRaised , m | m , ExcRaised ->
m
| Reachable m1 , Reachable m2 ->
@ -2386,8 +2378,6 @@ module Mem = struct
match ( prev0 , next0 ) with
| Unreachable , m | m , Unreachable ->
m
| Error , m | m , Error ->
m
| ExcRaised , m | m , ExcRaised ->
m
| Reachable prev , Reachable next ->
@ -2396,7 +2386,7 @@ module Mem = struct
let map ~ f x =
match x with
| Unreachable | E rror | E xcRaised ->
| Unreachable | E xcRaised ->
x
| Reachable m ->
let m' = f m in
@ -2414,8 +2404,7 @@ module Mem = struct
let f_lift_default : default : ' a -> ( ' h MemReach . t0 -> ' a ) -> ' h t0 -> ' a =
fun ~ default f m ->
match m with Unreachable | Error | ExcRaised -> default | Reachable m' -> f m'
fun ~ default f m -> match m with Unreachable | ExcRaised -> default | Reachable m' -> f m'
let is_stack_loc : Loc . t -> _ t0 -> bool =
@ -2460,7 +2449,7 @@ module Mem = struct
let find_ret_alias : _ t0 -> AliasTargets . t bottom_lifted =
fun m ->
match m with
| Unreachable | E rror | E xcRaised ->
| Unreachable | E xcRaised ->
Bottom
| Reachable m' ->
NonBottom ( MemReach . find_ret_alias m' )
@ -2566,7 +2555,7 @@ module Mem = struct
let apply_latest_prune : Exp . t -> t -> t * PrunePairs . t =
fun e -> function
| ( Unreachable | E rror | E xcRaised) as x ->
| ( Unreachable | E xcRaised) as x ->
( x , PrunePairs . empty )
| Reachable m ->
let m , prune_pairs = MemReach . apply_latest_prune e m in
@ -2592,7 +2581,7 @@ module Mem = struct
let forget_size_alias arr_locs = map ~ f : ( MemReach . forget_size_alias arr_locs )
let unset_oenv = function
| ( Unreachable | E rror | E xcRaised) as x ->
| ( Unreachable | E xcRaised) as x ->
x
| Reachable m ->
Reachable ( MemReach . unset_oenv m )
@ -2613,8 +2602,6 @@ module Mem = struct
match m with
| Unreachable ->
F . fprintf f " %s_unreachable " SpecialChars . up_tack
| Error ->
F . fprintf f " %s_our_fault " SpecialChars . up_tack
| ExcRaised ->
F . pp_print_string f ( SpecialChars . up_tack ^ " by exception " )
| Reachable m ->