File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -438,16 +438,13 @@ struct
438438end
439439
440440
441- (* Check if two accesses may race and if yes with which confidence *)
441+ (* * Check if two accesses may race. *)
442442let may_race A. {kind; acc; _} A. {kind =kind2 ; acc =acc2 ; _} =
443- if kind = Read && kind2 = Read then
444- false (* two read/read accesses do not race *)
445- else if not (get_bool " ana.race.free" ) && (kind = Free || kind2 = Free ) then
446- false
447- else if not (MCPAccess.A. may_race acc acc2) then
448- false (* analysis-specific information excludes race *)
449- else
450- true
443+ match kind, kind2 with
444+ | Read , Read -> false (* two read/read accesses do not race *)
445+ | Free , _
446+ | _ , Free when not (get_bool " ana.race.free" ) -> false
447+ | _ , _ -> MCPAccess.A. may_race acc acc2 (* analysis-specific information excludes race *)
451448
452449(* * Access sets for race detection and warnings. *)
453450module WarnAccs =
You can’t perform that action at this time.
0 commit comments