Giter VIP home page Giter VIP logo

wit4java's Introduction

Wit4Java: A Violation-Witness Validator for Java Verifiers

Codacy Badge

Description

Modern verification tools report a violation witness amidst verification if a bug is encountered. To check the validity of the counterexample wit4java can be used for Java-based verifiers.

The tool employs execution-based validation to assert the violation of a witness. This process involves extracting information on the assumptions of the verifier from the standardised 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.

Literature

Usage

usage: wit4java [-h] [--packages [PACKAGE_PATHS [PACKAGE_PATHS ...]]]
                --witness WITNESS_FILE [--version]
                benchmark

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

positional arguments:
  benchmark             Path to the benchmark directory

optional arguments:
  -h, --help            show this help message and exit
  --packages [PACKAGE_PATHS [PACKAGE_PATHS ...]]
                        Path to the packages used by the benchmark
  --witness WITNESS_FILE
                        Path to the witness file. Must conform to the exchange
                        format
  --version             show program's version number and exit

Authors

Tong Wu (University of Manchester, United Kingdom) [email protected]

Lucas Cordeiro (University of Manchester, United Kingdom) [email protected]

Peter Schrammel (University of Sussex, United Kingdom) [email protected]

Maintainers

Joss Moffatt (University of Manchester, United Kingdom) [email protected]

Links

wit4java's People

Contributors

andreik44455 avatar anthonysdu avatar jossmoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wit4java's Issues

๐Ÿ“ Upgrade README

What needs changing?

Currently, the readme is not very informative and could do with upgrading.
I think adding the following could improve the look of the repository and ease of working with wit4java:

  • Badges: code quality, licence, etc.
  • A more informative description of how wit4java works
  • Link to the existing literature
  • Usage and Installation

Additional Context

N/A

Fix Linting Issue

Context

Currently have a collection of linting issues which should not exist for code quality.

๐Ÿ› Fix JBMC Floating Point Parsing

Describe the bug
On a floating point assumption JBMC returns the following:

<edge source="202.126" target="206.139">
      <data key="originfile">Main.java</data>
      <data key="startline">12</data>
      <data key="threadId">0</data>
      <data key="assumption">a = 0x1p-111f /* 3.85186e-34 */;</data>
      <data key="assumption.scope">java::Main.main:([Ljava/lang/String;)V</data>
</edge>

To Reproduce
Steps to reproduce the behaviour:

  1. Run wit4java on jdart-regression/float
  2. Output is OK

Expected behaviour
The test harness should make the Main class throw an AssertionError

Screenshots
N/A

Desktop

  • OS: Ubuntu
  • Version 3

Additional context
N/A

โœจ Regression Tests

Is your feature request related to a problem? Please describe.
Currently no support for regression tests. This would be useful to run on a PR merging as we can concretely verify nothing has broken

Describe the solution you'd like
A test suite to run all/some of the sv-benchmarks.

Describe alternatives you've considered
N/A

Additional context
N/A

๐Ÿ› Refactor to remove pylint issues

Describe the bug
Currently, pylint has suggested refactoring certain pieces of code. Before version 3 is released it would be good to fix all of these to have a clean base

To Reproduce
Steps to reproduce the behavior:

  1. Run pylint on files

Expected behaviour
Little to no pylint issues detected.

Additional context
N/A

โœจ CI/CD Support

Is your feature request related to a problem? Please describe.
Currently, there is no CI/CD support which is a problem as would be useful for on releases we can trigger jobs etc.

Describe the solution you'd like
Using Github Actions the following would be useful:

  • Have testing pipeline on merge to master
  • Packaging on release
  • Zenodo publish on release

Describe alternatives you've considered
Could use other pipelines, however, Github Actions is free and will require less setup.

Additional context
N/A

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.