Skip to content

Commit 0a2d59e

Browse files
Merge pull request #1154 from sosy-lab/fix-max-score-witness-category
Document some design decisions regarding witness category
2 parents bdeb75d + 0dccf0f commit 0a2d59e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

benchexec/result.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@
108108
_SCORE_WRONG_FALSE = -16
109109
_SCORE_WRONG_TRUE = -32
110110
# Score factor for validation results on invalid witnesses
111-
# as described in https://doi.org/10.1007/978-3-031-22308-2_8 (page 171, last paragraph, factor q)
112-
# Factor was updated to 1 for SV-COMP 2024.
111+
# as described in https://doi.org/10.1007/978-3-031-22308-2_8 (page 171, last paragraph, factor q).
112+
# Factor was updated to 1 for SV-COMP 2024, as defined in
113+
# https://doi.org/10.1007/978-3-031-57256-2_15 (page 317).
113114
_SCORE_FACTOR_WRONG_WITNESS = 1
114115

115116

@@ -166,6 +167,8 @@ def max_score(self, expected_result, witness_category=None):
166167
Return the maximum possible score for a task that uses this property.
167168
@param expected_result:
168169
an ExpectedResult indicating whether the property is expected to hold for the task
170+
@param witness_category:
171+
a WITNESS_CATEGORY string indicating whether the witness is correct, wrong, etc.
169172
"""
170173
if not self.is_svcomp or not expected_result:
171174
return None

0 commit comments

Comments
 (0)