File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/cdomain/value/domains Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,19 @@ let var_may_be_shadowed scope vi =
3030 let vi_original_name = Cilfacade. find_original_name vi in
3131 let local_may_shadow local =
3232 not (CilType.Varinfo. equal vi local) && (* exclude self-equality by vid because the original names would always equal *)
33- vi_original_name = Cilfacade. find_original_name local
33+ vi_original_name = Cilfacade. find_original_name local
3434 in
3535 List. exists local_may_shadow scope.sformals || List. exists local_may_shadow scope.slocals
3636
3737let var_is_in_scope scope vi =
3838 match Cilfacade. find_scope_fundec vi with
3939 | None ->
4040 vi.vstorage <> Static && (* CIL pulls static locals into globals, but they aren't syntactically in global scope *)
41- not (var_may_be_shadowed scope vi)
41+ not (var_may_be_shadowed scope vi)
4242 | Some fd ->
4343 CilType.Fundec. equal fd scope &&
44- (GobConfig. get_bool " witness.invariant.all-locals" || (not @@ hasAttribute " goblint_cil_nested" vi.vattr)) &&
45- not (var_may_be_shadowed scope vi) (* TODO: could distinguish non-nested and nested? *)
44+ (GobConfig. get_bool " witness.invariant.all-locals" || (not @@ hasAttribute " goblint_cil_nested" vi.vattr)) &&
45+ not (var_may_be_shadowed scope vi) (* TODO: could distinguish non-nested and nested? *)
4646
4747class exp_is_in_scope_visitor (scope : fundec ) (acc : bool ref ) = object
4848 inherit nopCilVisitor
You can’t perform that action at this time.
0 commit comments