Skip to main content
Polywit Logo

Codacy Badge PyPI version PyPI download month Python

Description

Modern verification tools report a violation witness amidst verification if a bug is encountered. Polywit employs execution-based validation to check the validity of the counterexample. This process involves extracting information on the assumptions of the verifier from the standardized exchange format for violation witnesses and building a test harness to provide a concrete execution of the program. The tool then executes the test harness on the code under verification and can either confirm or reject the violation witness if the relevant assertion is reached.

Whilst most modern execution-based validators such as wit4java and CPA-wit2test focus on specific language, polywit aims to provide an extensible, feature rich framework to allow for easy language integration and validator quality.

Framework

For a general language, the polywit implementation has the following architecture:

Polywit Architecture
  • The File Processor deals with processing of the compilation units.
  • The Witness Processor deals with processing of the witness.
  • The Test Harness deals with construction and execution of a test to check the validity of the reported violation.

Literature

Usage

usage: polywit [-h] frontend ...

Validate a given program with a witness conforming to the appropriate SV-COMP
exchange format.

positional arguments:
  frontend    Frontend language
    java      Use the java validator

options:
  -h, --help  show this help message and exit

Authors

Joss Moffatt (University of Manchester, United Kingdom) josshmoffatt@gmail.com

Tong Wu (University of Manchester, United Kingdom) wutonguom@gmail.com

Lucas Cordeiro (University of Manchester, United Kingdom) lucas.cordeiro@manchester.ac.uk

Peter Schrammel (University of Sussex, United Kingdom) P.Schrammel@sussex.ac.uk

Metadata

Release files for polywit 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polywit 1.0.0
File Size Uploaded
polywit-1.0.0.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polywit 1.0.0
File Interpreter ABI Platform
polywit-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.7 kB

Release files / polywit-1.0.0.tar.gz

Download URL polywit-1.0.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4538a206c329678356488f7497b5b7cca7526da5af67b1eb4df3a98cb1fe9b94
BLAKE2b-256 checksum
How to use checksums
63176757a52180e2c8c8bbb1e54d0c4ae44ee0fa278311c7b4d4a9f589e27107
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / polywit-1.0.0-py3-none-any.whl

Download URL polywit-1.0.0-py3-none-any.whl
Size 16.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
202ac54595c557ab0f856eb5f80645845bf7c282cfc8c64cf83a9230d4a829f7
BLAKE2b-256 checksum
How to use checksums
cb6c54b5377d88dda66cf43ed53ecd8cd169458e1e1d8af7c1c6b8a6bcce3f8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.0

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page