@ -631,7 +631,7 @@ let fold_reportable_summaries analyze_ondemand tenv clazz ~init ~f =
| > Option . value_map ~ default : acc ~ f : ( fun other_attrs ->
| > Option . value_map ~ default : acc ~ f : ( fun other_attrs ->
if should_report other_attrs then
if should_report other_attrs then
analyze_ondemand mthd
analyze_ondemand mthd
| > Option . map ~ f : ( fun ( _ , payload ) -> ( mthd , payload ) )
| > Option . map ~ f : ( fun payload -> ( mthd , payload ) )
| > Option . fold ~ init : acc ~ f
| > Option . fold ~ init : acc ~ f
else acc )
else acc )
in
in
@ -825,9 +825,9 @@ let report_on_pair ~analyze_ondemand tenv pattrs (pair : Domain.CriticalPair.t)
let reporting { InterproceduralAnalysis . procedures ; file_exe_env ; analyze_file_dependency } =
let reporting { InterproceduralAnalysis . procedures ; file_exe_env ; analyze_file_dependency } =
if Config . starvation_whole_program then IssueLog . empty
if Config . starvation_whole_program then IssueLog . empty
else
else
let report_on_proc tenv p roc_de sc report_map payload =
let report_on_proc tenv p att rs report_map payload =
Domain . fold_critical_pairs_of_summary
Domain . fold_critical_pairs_of_summary
( report_on_pair ~ analyze_ondemand : analyze_file_dependency tenv p roc_de sc )
( report_on_pair ~ analyze_ondemand : analyze_file_dependency tenv p att rs)
payload report_map
payload report_map
in
in
let report_procedure report_map procname =
let report_procedure report_map procname =
@ -836,7 +836,7 @@ let reporting {InterproceduralAnalysis.procedures; file_exe_env; analyze_file_de
report_map
report_map
| Some attributes ->
| Some attributes ->
analyze_file_dependency procname
analyze_file_dependency procname
| > Option . value_map ~ default : report_map ~ f : ( fun ( _ proc_desc , summary ) ->
| > Option . value_map ~ default : report_map ~ f : ( fun summary ->
let tenv = Exe_env . get_proc_tenv file_exe_env procname in
let tenv = Exe_env . get_proc_tenv file_exe_env procname in
if should_report attributes then report_on_proc tenv attributes report_map summary
if should_report attributes then report_on_proc tenv attributes report_map summary
else report_map )
else report_map )