Skip to main content

pacfix-python

Python re-implementation of pacfix.

Install

python3 -m pip install pacfix
# Or, you can install from source code
# python3 -m pip install .
pysmt-install --z3

Usage

To see how it works, check out the examples in the examples directory.

cd examples/example01
python3 -m pacfix run -i ./mem -l live-variables.txt

Inputs

live variables file

Specify the live variables file using -l or --live-vars live-variables.txt.

1 x int
2 y int
3 z bool
4 b int
5 c int

Each line lists a variable's ID, name, and type, separated by spaces.

Input directory

Specify the input directory using -i or --input-dir input-dir.

The input directory should contain neg and pos subdirectories, each with valuation files.

[begin]
1 7
2 1
3 0
4 8
5 6
[end]
[begin]
1 1
2 7
3 1
4 8
5 -6
[end]

Each file should list variable IDs and their corresponding values. Multiple iterations can be included, with each iteration separated by [begin] and [end].

Output

Specify the output file using -o or --output.

If not specified, the output will be printed to the standard output.

[metadata] [live-variables] [total 5] [int 4]
[metadata] [hypothesis-space] [original 1857] [final 1]
[metadata] [valuation] [neg 3] [pos 48] [uniq 51] [init-neg 4] [init-pos 54] [non-uniq 58]
[metadata] [pac] [delta 0.01] [eps 0.09029745462721749]
[metadata] [pac-no-uniq] [delta 0.01] [eps 0.07939948596531193]
[final] --------------
[invariant] [expr (c != 0)]

Output as SMT format

Specify the output directory as -s or --output-smt.

If not specified, it will not be stored.

python3 -m pacfix run -i ./mem -l live-variables.txt -s ./smt

In ./smt/0.smt

(set-logic QF_IDL)
(declare-fun c () Int)
(assert (let ((.def_0 (= c 0))) (let ((.def_1 (not .def_0))) .def_1)))
(check-sat)

Debug log

You can enable debug log with -d option.

Metadata

Release files for pacfix 0.0.4

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

Source distribution (sdist)

Source distribution for pacfix 0.0.4
File Size Uploaded Provenance Actions
pacfix-0.0.4.tar.gz 9.9 kB Without provenance Details for pacfix-0.0.4.tar.gz

Built distribution (wheel)

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

Total release size: 20.7 kB

Release files / pacfix-0.0.4.tar.gz

Download URL pacfix-0.0.4.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3779c8df6f849e3b67ada4f9a351cafdae924a27d0ffb77911e292a12e902e36
BLAKE2b-256 checksum
How to use checksums
f364b7590256a4a995b87913f47d253640da7a5e0a8ab68d58e7288924c8e08a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / pacfix-0.0.4-py3-none-any.whl

Download URL pacfix-0.0.4-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c3593bea9e0f4bac7222afee9ff56356e75b7019dd34ad1890b18beba54f5d3
BLAKE2b-256 checksum
How to use checksums
3b0b8f71954cecd6db8739b4c0c352c5fff72093e035ce07d5d172e35a2bc507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for pacfix 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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