Skip to content

Commit

Permalink
Add option ana.race.call
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Oct 5, 2023
1 parent 11164fd commit 94307d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conf/svcomp.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
}
},
"race": {
"free": false
"free": false,
"call": false
},
"autotune": {
"enabled": true,
Expand Down
2 changes: 2 additions & 0 deletions src/domains/access.ml
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ let may_race A.{kind; acc; _} A.{kind=kind2; acc=acc2; _} =
false (* two read/read accesses do not race *)
else if not (get_bool "ana.race.free") && (kind = Free || kind2 = Free) then
false
else if not (get_bool "ana.race.call") && (kind = Call || kind2 = Call) then
false
else if not (MCPAccess.A.may_race acc acc2) then
false (* analysis-specific information excludes race *)
else
Expand Down
6 changes: 6 additions & 0 deletions src/util/options.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,12 @@
"type": "boolean",
"default": true
},
"call": {
"title": "ana.race.call",
"description": "Report races for thread-unsafe function calls.",
"type": "boolean",
"default": true
},
"direct-arithmetic": {
"title": "ana.race.direct-arithmetic",
"description": "Collect and distribute direct (i.e. not in a field) accesses to arithmetic types.",
Expand Down

0 comments on commit 94307d0

Please sign in to comment.