Description
Perses is a language-agnostic program reducer. It takes a program and a test script that encodes the constraints the program has to keep satisfying, and it produces a smaller program that still meets those constraints. Compared with Delta Debugging and Hierarchical Delta Debugging, the README says Perses uses the syntax information in an ANTLR grammar. It prunes the search space so it does not generate syntactically invalid programs. The README lists supported languages including C, C++, GLSL, Go, Java, JavaScript, Python 3, Rust, Ruby, Scala, Solidity, SQLite, SystemVerilog and WebAssembly, and says support for other languages is coming soon. You can run Perses from a prebuilt release JAR file, build it from source, or use the perses-trunk option, which downloads and builds the latest version and needs Bazelisk. The main flags include the test script, which both the original program and the reduced version must satisfy. The README also links a publication that describes the approach.…
Highlights
- Shrinks a program while keeping it valid against a test script
- Uses ANTLR grammar syntax to avoid invalid programs
- Supports C, C++, Go, Java, Python, Rust and many more languages
- Runs from a release JAR, a source build or perses-trunk
Ratings & Reviews
No ratings yet
Be the first to rate Perses.
People also visit
Ultimate Bug Scanner
Static analysis tool that catches 1000+ bug patterns across all popular
Perses FAQ
What does Perses do?
Perses takes a program and a test script that defines the constraints, then produces a minimized program that still satisfies those constraints. It is language-agnostic.
Which languages are supported?
The README lists C, C++, GLSL, Go, Jackson YAML, Java, JavaScript, Line, Makefile, MySQL, One Token, PHP, Python 3, Ruby, Rust, Scala, SMT-LIB v2, Solidity, SQLite, SystemVerilog, WebAssembly and XML. Support for other languages is coming soon.
How do I run it?
Download a prebuilt release JAR from the release page, clone the repository and build from source, or use perses-trunk, which downloads and builds the latest version. perses-trunk needs Bazelisk.
What is the test script?
The test script encodes the constraints that both the original program and the reduced version must satisfy. Perses outputs a minimized program that still meets those constraints.
How is it different from delta debugging?
The README says Perses uses the syntax information in the ANTLR grammar and avoids generating syntactically invalid programs, which narrows the search compared with Delta Debugging and Hierarchical Delta Debugging.
What are the best Perses alternatives?
Popular alternatives to Perses include Cvise, Programming Languages DB and wispbit. See all Perses alternatives







