Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Disable ThreadId check as the spec needs to be clarified first
Browse files Browse the repository at this point in the history
See https://gitlab.com/sosy-lab/sv-comp/archives-2021/-/issues/30 for
discussion. Disabling the check for now discussed in SV-COMP Community
meeting held on 2020-12-01.
  • Loading branch information
tautschnig committed Dec 1, 2020
1 parent b21d16b commit 86e6612
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lint/witnesslint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,15 @@ def handle_edge_data(self, data, key, parent):
break
self.check_functionname(data.text, data.sourceline)
elif key == witness.THREADID:
if data.text not in self.witness.threads:
logging.warning(
"Thread with id {} doesn't exist".format(data.text),
data.sourceline,
)
# Check disabled for SV-COMP'21 as questions about the specification
# need to be resolved first, see
# https://gitlab.com/sosy-lab/sv-comp/archives-2021/-/issues/30
# if data.text not in self.witness.threads:
# logging.warning(
# "Thread with id {} doesn't exist".format(data.text),
# data.sourceline,
# )
pass
elif key == witness.CREATETHREAD:
if data.text in self.witness.threads:
logging.warning(
Expand Down

0 comments on commit 86e6612

Please sign in to comment.