- Install Rust: Rust
- Install clang:
xxx@XXX:~$ sudo apt install clang
- Install SMT-Language:
xxx@XXX:~$ cargo install smt-lang
xxx@XXX:~$ smt-lang --file problem_file.sl
let b: Bool
let i: 1..100
let r: Real
constraint C1 = (
i >= 10
)
constraint C2 = (
r <= 20.0 and b
)
xxx@XXX:~$ smt-lang --file example.sl
let b: Bool = true
let i: 1..100 = 10
let r: Real = 20
- --verbose 0 : display nothing except the result
- --verbose 1 : display analysis result
- --verbose 2 : display loaded problem
- --verbose 3 : display SMT problem and SMT model if a solution is found