|
|
|
@ -417,7 +417,7 @@ let forward_tabulate summary exe_env tenv proc_cfg wl =
|
|
|
|
|
L.d_strln "SIL INSTR:" ;
|
|
|
|
|
Procdesc.Node.d_instrs ~sub_instrs:true (State.get_instr ()) curr_node ;
|
|
|
|
|
L.d_ln () ;
|
|
|
|
|
Reporting.log_error_deprecated pname exn ;
|
|
|
|
|
Reporting.log_issue_deprecated Exceptions.Error pname exn ;
|
|
|
|
|
State.mark_instr_fail exn
|
|
|
|
|
in
|
|
|
|
|
let exe_iter f pathset =
|
|
|
|
@ -525,7 +525,7 @@ let remove_locals_formals_and_check tenv proc_cfg p =
|
|
|
|
|
let dexp_opt, _ = Errdesc.vpath_find tenv p (Exp.Lvar pvar) in
|
|
|
|
|
let desc = Errdesc.explain_stack_variable_address_escape loc pvar dexp_opt in
|
|
|
|
|
let exn = Exceptions.Stack_variable_address_escape (desc, __POS__) in
|
|
|
|
|
Reporting.log_warning_deprecated pname exn
|
|
|
|
|
Reporting.log_issue_deprecated Exceptions.Warning pname exn
|
|
|
|
|
in
|
|
|
|
|
List.iter ~f:check_pvar pvars ; p'
|
|
|
|
|
|
|
|
|
@ -861,7 +861,7 @@ let perform_analysis_phase exe_env tenv (summary: Summary.t) (proc_cfg: ProcCfg.
|
|
|
|
|
forward_tabulate summary exe_env tenv proc_cfg wl
|
|
|
|
|
in
|
|
|
|
|
let get_results (wl: Worklist.t) () =
|
|
|
|
|
State.process_execution_failures Reporting.log_warning_deprecated pname ;
|
|
|
|
|
State.process_execution_failures (Reporting.log_issue_deprecated Exceptions.Warning) pname ;
|
|
|
|
|
let results = collect_analysis_result tenv wl proc_cfg in
|
|
|
|
|
let specs =
|
|
|
|
|
try extract_specs tenv (ProcCfg.Exceptional.proc_desc proc_cfg) results
|
|
|
|
@ -870,7 +870,7 @@ let perform_analysis_phase exe_env tenv (summary: Summary.t) (proc_cfg: ProcCfg.
|
|
|
|
|
Exceptions.Internal_error
|
|
|
|
|
(Localise.verbatim_desc "Leak_while_collecting_specs_after_footprint")
|
|
|
|
|
in
|
|
|
|
|
Reporting.log_error_deprecated pname exn ;
|
|
|
|
|
Reporting.log_issue_deprecated Exceptions.Error pname exn ;
|
|
|
|
|
(* retuning no specs *) []
|
|
|
|
|
in
|
|
|
|
|
(specs, BiabductionSummary.FOOTPRINT)
|
|
|
|
@ -1029,7 +1029,7 @@ let report_runtime_exceptions tenv pdesc summary =
|
|
|
|
|
in
|
|
|
|
|
let exn_desc = Localise.java_unchecked_exn_desc pname runtime_exception pre_str in
|
|
|
|
|
let exn = Exceptions.Java_runtime_exception (runtime_exception, pre_str, exn_desc) in
|
|
|
|
|
Reporting.log_error_deprecated pname exn
|
|
|
|
|
Reporting.log_issue_deprecated Exceptions.Error pname exn
|
|
|
|
|
in
|
|
|
|
|
List.iter ~f:report exn_preconditions
|
|
|
|
|
|
|
|
|
@ -1042,7 +1042,7 @@ let report_custom_errors tenv summary =
|
|
|
|
|
let loc = Summary.get_loc summary in
|
|
|
|
|
let err_desc = Localise.desc_custom_error loc in
|
|
|
|
|
let exn = Exceptions.Custom_error (custom_error, err_desc) in
|
|
|
|
|
Reporting.log_error_deprecated pname exn
|
|
|
|
|
Reporting.log_issue_deprecated Exceptions.Error pname exn
|
|
|
|
|
in
|
|
|
|
|
List.iter ~f:report error_preconditions
|
|
|
|
|
|
|
|
|
|