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

Commit

Permalink
Merge pull request #29 from tautschnig/disable-threadid-check
Browse files Browse the repository at this point in the history
Disable ThreadId check as the spec needs to be clarified first
  • Loading branch information
dbeyer authored Dec 1, 2020
2 parents 1759558 + 86e6612 commit ae2a261
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 @@ -439,11 +439,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 ae2a261

Please sign in to comment.