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

Disable ThreadId check as the spec needs to be clarified first #29

Merged
merged 1 commit into from
Dec 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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