We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
combine_assign
1 parent c3385b6 commit d899355Copy full SHA for d899355
src/analyses/apron/relationAnalysis.apron.ml
@@ -440,8 +440,10 @@ struct
440
if RD.Tracked.type_tracked (Cilfacade.fundec_return_type f) then (
441
let unify_st' = match r with
442
| 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
+ let ask = Analyses.ask_of_ctx ctx in
+ 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 *)
447
)
448
| None ->
449
unify_st
0 commit comments