| Crates.io | oxiz-cli |
| lib.rs | oxiz-cli |
| version | 0.1.2 |
| created_at | 2026-01-12 05:23:51.891183+00 |
| updated_at | 2026-01-21 05:30:11.800231+00 |
| description | CLI for OxiZ SMT Solver (SMT-LIB2 compliant) |
| homepage | |
| repository | https://github.com/cool-japan/oxiz |
| max_upload_size | |
| id | 2037034 |
| size | 606,900 |
Command-line interface for OxiZ SMT solver.
From crates.io:
cargo install oxiz-cli
Or build from source:
git clone https://github.com/cool-japan/oxiz
cd oxiz/oxiz-cli
cargo build --release
# Binary will be at: target/release/oxiz
# Solve a single file
oxiz input.smt2
# Solve multiple files
oxiz file1.smt2 file2.smt2 file3.smt2
# Read from stdin
cat input.smt2 | oxiz -
oxiz --interactive
# Or use short flag
oxiz -i
In interactive mode, enter SMT-LIB2 commands directly:
oxiz> (set-logic QF_LIA)
oxiz> (declare-const x Int)
oxiz> (assert (> x 0))
oxiz> (check-sat)
sat
oxiz> (exit)
USAGE:
oxiz [OPTIONS] [FILES]...
ARGS:
<FILES>... Input SMT-LIB2 files (use - for stdin)
OPTIONS:
-i, --interactive Run in interactive mode
-v, --verbose Enable verbose output
-t, --timeout <MS> Set timeout in milliseconds
-h, --help Print help information
-V, --version Print version information
echo '
(set-logic QF_LIA)
(declare-const x Int)
(assert (> x 0))
(assert (< x 10))
(check-sat)
' | oxiz -
Output:
sat
echo '
(set-logic QF_LIA)
(declare-const x Int)
(assert (> x 10))
(assert (< x 5))
(check-sat)
' | oxiz -
Output:
unsat
| Code | Meaning |
|---|---|
| 0 | Success (satisfiable or completed) |
| 1 | Unsatisfiable |
| 2 | Unknown/Timeout |
| 3 | Parse error |
| 4 | Other error |
MIT OR Apache-2.0