You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/analyses/commonPriv.ml
+3-1
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,14 @@ struct
19
19
ifnot mutex_active then failwith "Privatization (to be useful) requires the 'mutex' analysis to be enabled (it is currently disabled)"
20
20
end
21
21
22
-
moduleRequireMutexPathSensInit=
22
+
moduleRequireMutexPathSensOneMainInit=
23
23
struct
24
24
letinit()=
25
25
RequireMutexActivatedInit.init ();
26
26
let mutex_path_sens =List.mem "mutex" (GobConfig.get_string_list "ana.path_sens") in
27
27
ifnot mutex_path_sens then failwith "The activated privatization requires the 'mutex' analysis to be enabled & path sensitive (it is currently enabled, but not path sensitive)";
28
+
let mainfuns =List.length @@GobConfig.get_list "mainfun"in
29
+
ifnot (mainfuns =1) then failwith "The activated privatization requires exactly one main function to be specified";
0 commit comments