Skip to content
Snippets Groups Projects
Commit 291f12d9 authored by David Bühler's avatar David Bühler
Browse files

[Eva] Fixes indentation.

parent 152eacaa
No related branches found
No related tags found
No related merge requests found
...@@ -283,7 +283,7 @@ let state_pretty cas fmt m = ...@@ -283,7 +283,7 @@ let state_pretty cas fmt m =
| Z.Overflow | Z.Overflow
| Too_large_to_enumerate -> | Too_large_to_enumerate ->
Self.warning "base %s too large, \ Self.warning "base %s too large, \
will not print it" name will not print it" name
end end
| _ -> ()) | _ -> ())
m m
......
...@@ -87,7 +87,7 @@ let create_hidden_base ~libc ~valid ~hidden_var_name ~name_desc pointed_typ = ...@@ -87,7 +87,7 @@ let create_hidden_base ~libc ~valid ~hidden_var_name ~name_desc pointed_typ =
) )
| Base.Unknown _ -> (* Unknown validity is caused by strange type *) | Base.Unknown _ -> (* Unknown validity is caused by strange type *)
Self.result ~dkey "creating variable %s with imprecise \ Self.result ~dkey "creating variable %s with imprecise \
size (type %a)" hidden_var_name Printer.pp_typ pointed_typ; size (type %a)" hidden_var_name Printer.pp_typ pointed_typ;
validity validity
| Base.Empty | Base.Known _ | Base.Invalid -> validity | Base.Empty | Base.Known _ | Base.Invalid -> validity
| Base.Variable _ -> (* should never happen (validity_from_type cannot | Base.Variable _ -> (* should never happen (validity_from_type cannot
......
...@@ -67,7 +67,7 @@ let check_from pre_state asgn assigns_zone from found_froms = ...@@ -67,7 +67,7 @@ let check_from pre_state asgn assigns_zone from found_froms =
let found_indirect_deps = found_deps.Function_Froms.Deps.indirect in let found_indirect_deps = found_deps.Function_Froms.Deps.indirect in
let res_for_unknown txt = let res_for_unknown txt =
Self.debug "found_direct deps %a stated_direct_deps %a \ Self.debug "found_direct deps %a stated_direct_deps %a \
found_indirect_deps %a stated_indirect_deps %a" found_indirect_deps %a stated_indirect_deps %a"
Zone.pretty found_direct_deps Zone.pretty stated_direct_deps Zone.pretty found_direct_deps Zone.pretty stated_direct_deps
Zone.pretty found_indirect_deps Zone.pretty stated_indirect_deps; Zone.pretty found_indirect_deps Zone.pretty stated_indirect_deps;
"unknown (cannot validate "^txt^" dependencies)", "unknown (cannot validate "^txt^" dependencies)",
......
...@@ -387,7 +387,7 @@ let add_domain (type v) dname mode (abstraction: v abstraction) (module Acc: Acc ...@@ -387,7 +387,7 @@ let add_domain (type v) dname mode (abstraction: v abstraction) (module Acc: Acc
let warn_experimental flag = let warn_experimental flag =
if flag.experimental then if flag.experimental then
Self.(warning ~wkey:wkey_experimental Self.(warning ~wkey:wkey_experimental
"The %s domain is experimental." flag.name) "The %s domain is experimental." flag.name)
let build_domain config abstract = let build_domain config abstract =
let build (Flag flag, mode) acc = let build (Flag flag, mode) acc =
......
...@@ -48,8 +48,8 @@ let options_ok () = ...@@ -48,8 +48,8 @@ let options_ok () =
let check_assigns kf = let check_assigns kf =
if need_assigns kf then if need_assigns kf then
Self.error "@[no assigns@ specified@ for function '%a',@ for \ Self.error "@[no assigns@ specified@ for function '%a',@ for \
which@ a builtin@ or the specification@ will be used.@ \ which@ a builtin@ or the specification@ will be used.@ \
Potential unsoundness.@]" Kernel_function.pretty kf Potential unsoundness.@]" Kernel_function.pretty kf
in in
Parameters.BuiltinsOverrides.iter (fun (kf, _) -> check_assigns kf); Parameters.BuiltinsOverrides.iter (fun (kf, _) -> check_assigns kf);
Parameters.UsePrototype.iter (fun kf -> check_assigns kf) Parameters.UsePrototype.iter (fun kf -> check_assigns kf)
...@@ -67,7 +67,7 @@ let generate_specs () = ...@@ -67,7 +67,7 @@ let generate_specs () =
if need_assigns kf then begin if need_assigns kf then begin
let spec = Annotations.funspec ~populate:false kf in let spec = Annotations.funspec ~populate:false kf in
Self.warning "Generating potentially incorrect assigns \ Self.warning "Generating potentially incorrect assigns \
for function '%a' for which option %s is set" for function '%a' for which option %s is set"
Kernel_function.pretty kf Parameters.UsePrototype.option_name; Kernel_function.pretty kf Parameters.UsePrototype.option_name;
(* The function populate_spec may emit a warning. Position a loc. *) (* The function populate_spec may emit a warning. Position a loc. *)
Cil.CurrentLoc.set (Kernel_function.get_location kf); Cil.CurrentLoc.set (Kernel_function.get_location kf);
...@@ -382,7 +382,7 @@ module Make (Abstract: Abstractions.Eva) = struct ...@@ -382,7 +382,7 @@ module Make (Abstract: Abstractions.Eva) = struct
| `Bottom -> | `Bottom ->
Abstract.Dom.Store.mark_as_computed (); Abstract.Dom.Store.mark_as_computed ();
Self.result "Eva not started because globals \ Self.result "Eva not started because globals \
initialization is not computable."; initialization is not computable.";
Eval_annots.mark_invalid_initializers () Eval_annots.mark_invalid_initializers ()
| `Value init_state -> | `Value init_state ->
compute kf init_state compute kf init_state
......
...@@ -274,7 +274,7 @@ module Make ...@@ -274,7 +274,7 @@ module Make
let add_supplied_main_formals kf actuals state = let add_supplied_main_formals kf actuals state =
match Domain.get_cvalue with match Domain.get_cvalue with
| None -> Self.abort "Function Db.Value.fun_set_args cannot be \ | None -> Self.abort "Function Db.Value.fun_set_args cannot be \
used without the Cvalue domain" used without the Cvalue domain"
| Some get_cvalue -> | Some get_cvalue ->
let formals = Kernel_function.get_formals kf in let formals = Kernel_function.get_formals kf in
if (List.length formals) <> List.length actuals then if (List.length formals) <> List.length actuals then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment