Skip to content

Commit fb03adb

Browse files
Fix crash: return startcontext() instead of [] for no-context functions
Agent-Logs-Url: https://github.com/goblint/analyzer/sessions/4161111b-3a6f-4977-8bbd-afdce86a7533 Co-authored-by: michael-schwarz <13812333+michael-schwarz@users.noreply.github.com>
1 parent a5f34a2 commit fb03adb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/analyses/mCP.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ struct
244244
|| List.mem fd.svar.vname (get_string_list "ana.context.no_fun")
245245
in
246246
if no_ctx then
247-
[] (* context-insensitive: return empty context list *)
247+
startcontext () (* context-insensitive: return a fixed context so all callers share one analysis node *)
248248
else
249249
filter_map (fun (n,(module S:MCPSpec),d) ->
250250
if Set.is_empty !act_cont_sens || not (Set.mem n !act_cont_sens) then (*n is insensitive*)

0 commit comments

Comments
 (0)