Skip to main content

A poly-language execution-based violation-witness validator.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polywit-1.0.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

polywit-1.0.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file polywit-1.0.0.tar.gz.

File metadata

  • Download URL: polywit-1.0.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for polywit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4538a206c329678356488f7497b5b7cca7526da5af67b1eb4df3a98cb1fe9b94
MD5 ddfd918f82f47b427f4ebec921ac7197
BLAKE2b-256 63176757a52180e2c8c8bbb1e54d0c4ae44ee0fa278311c7b4d4a9f589e27107

See more details on using hashes here.

File details

Details for the file polywit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: polywit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for polywit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 202ac54595c557ab0f856eb5f80645845bf7c282cfc8c64cf83a9230d4a829f7
MD5 353ca029bfc34448e6ae3d5488d24edf
BLAKE2b-256 cb6c54b5377d88dda66cf43ed53ecd8cd169458e1e1d8af7c1c6b8a6bcce3f8e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page