#smt-solver #smt-lib #cli

app oxiz-cli

CLI for OxiZ SMT Solver (SMT-LIB2 compliant)

4 releases

Uses new Rust 2024

0.1.3 Feb 6, 2026
0.1.2 Jan 21, 2026
0.1.1 Jan 12, 2026
0.1.0 Jan 12, 2026

#4 in #smt-lib

Apache-2.0

5MB
119K SLoC

oxiz-cli

Command-line interface for OxiZ SMT solver.

Installation

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

Usage

Solve SMT-LIB2 Files

# Solve a single file
oxiz input.smt2

# Solve multiple files
oxiz file1.smt2 file2.smt2 file3.smt2

# Read from stdin
cat input.smt2 | oxiz -

Interactive Mode

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)

Options

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

Examples

Basic Satisfiability

echo '
(set-logic QF_LIA)
(declare-const x Int)
(assert (> x 0))
(assert (< x 10))
(check-sat)
' | oxiz -

Output:

sat

Unsatisfiable Problem

echo '
(set-logic QF_LIA)
(declare-const x Int)
(assert (> x 10))
(assert (< x 5))
(check-sat)
' | oxiz -

Output:

unsat

Exit Codes

Code Meaning
0 Success (satisfiable or completed)
1 Unsatisfiable
2 Unknown/Timeout
3 Parse error
4 Other error

License

Apache-2.0

Dependencies

~43–64MB
~1M SLoC