Add CBMC viewer configuration files (#683)

* Revert cbmc-viewer flags

* Add cbmc-viewer configuration files

* Repair CBMC patch to prvCopyDataToQueue

Authored-by: Mark R. Tuttle <mrtuttle@amazon.com>
This commit is contained in:
Mark Tuttle 2021-09-13 21:23:35 -04:00 committed by GitHub
parent fe6e501488
commit 0390b0fc9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 1084 additions and 14 deletions

View file

@ -129,10 +129,15 @@ def process(folder, files):
pathlib.Path(new_config_folder).mkdir(exist_ok=True, parents=True)
harness_copied = False
for file in files:
# Copy cbmc proof harness into configuration directory
if file.endswith("harness.c"):
shutil.copy(os.path.join(folder, file),
os.path.join(new_config_folder, file))
harness_copied = True
# Copy cbmc-viewer configuration file into configuration directory
if file == "cbmc-viewer.json":
shutil.copy(os.path.join(folder, file),
os.path.join(new_config_folder, file))
if not harness_copied:
LOGGER.error("Could not find a harness in folder %s.", folder)