Skip to content

Commit d899355

Browse files
committed
Assert type bounds in relationAnalysis combine_assign
1 parent c3385b6 commit d899355

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/analyses/apron/relationAnalysis.apron.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,10 @@ struct
440440
if RD.Tracked.type_tracked (Cilfacade.fundec_return_type f) then (
441441
let unify_st' = match r with
442442
| Some lv ->
443-
assign_to_global_wrapper (Analyses.ask_of_ctx ctx) ctx.global ctx.sideg unify_st lv (fun st v ->
444-
RD.assign_var st.rel (RV.local v) RV.return
443+
let ask = Analyses.ask_of_ctx ctx in
444+
assign_to_global_wrapper ask ctx.global ctx.sideg unify_st lv (fun st v ->
445+
let rel = RD.assign_var st.rel (RV.local v) RV.return in
446+
assert_type_bounds ask rel v (* TODO: should be done in return instead *)
445447
)
446448
| None ->
447449
unify_st

0 commit comments

Comments
 (0)