Skip to content

Commit

Permalink
ctx -> man
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMichaelPetter committed Dec 19, 2024
1 parent b2b3519 commit f7666fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/analyses/apron/linearTwoVarEqualityAnalysis.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ let spec_module: (module MCPSpec) Lazy.t =
struct
include SpecFunctor (Priv) (AD) (RelationPrecCompareUtil.DummyUtil)
let name () = "lin2vareq"
let branch ctx e b =
let branch man e b =
if M.tracing then M.trace "lin2vareq" "Branching";
let res = branch ctx e b in
let st = ctx.local in
let ask = Analyses.ask_of_ctx ctx in
let _ = assign_from_globals_wrapper ask ctx.global st e (fun d e' ->
let res = branch man e b in
let st = man.local in
let ask = Analyses.ask_of_man man in
let _ = assign_from_globals_wrapper ask man.global st e (fun d e' ->
try
let tcons = AD.tcons1_of_cil_exp ask d d.env e (not b) (no_overflow ask e) in
let constraintlist = AD.refine_value_domains ctx d tcons in
List.iter (fun e -> ctx.emit (Events.Assert e)) constraintlist;
let constraintlist = AD.refine_value_domains man d tcons in
List.iter (fun e -> man.emit (Events.Assert e)) constraintlist;
d
with _ -> d)
in
Expand Down
2 changes: 1 addition & 1 deletion src/cdomains/apron/linearTwoVarEqualityDomain.apron.ml
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ struct

let substitute_exp ask t var exp no_ov = timing_wrap "substitution" (substitute_exp ask t var exp) no_ov

let refine_value_domains (ctx:('a,'b,'c,'d) Analyses.ctx) t tcons =
let refine_value_domains (man:('a,'b,'c,'d) Analyses.man) t tcons =
match t.d with
| None -> []
| Some d ->
Expand Down

0 comments on commit f7666fd

Please sign in to comment.