Skip to content

Commit 2fa1e42

Browse files
committed
Fix InvariantCil indentation (PR #1818)
1 parent 2557b9f commit 2fa1e42

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cdomain/value/domains/invariantCil.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

3737
let 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

4747
class exp_is_in_scope_visitor (scope: fundec) (acc: bool ref) = object
4848
inherit nopCilVisitor

0 commit comments

Comments
 (0)