Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DavidD12/smt-lang
Sat Modulo Theory Language
https://github.com/DavidD12/smt-lang
Last synced: about 2 months ago
JSON representation
Sat Modulo Theory Language
- Host: GitHub
- URL: https://github.com/DavidD12/smt-lang
- Owner: DavidD12
- Created: 2022-10-28T15:18:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T09:58:08.000Z (almost 2 years ago)
- Last Synced: 2024-05-22T22:31:08.676Z (8 months ago)
- Language: Rust
- Size: 186 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rust-formalized-reasoning - SMT-language - lang) - Sat Modulo Theory Language. (Programming Language / Libraries)
README
# Install
1. Install Rust: [Rust](https://www.rust-lang.org/fr)
2. Install clang:
```console
xxx@XXX:~$ sudo apt install clang
```
3. Install SMT-Language:
```console
xxx@XXX:~$ cargo install smt-lang
```# Run SMT-language
```console
xxx@XXX:~$ smt-lang --file problem_file.sl
```# Example
## Problem
```
let b: Bool
let i: 1..100
let r: Realconstraint C1 = (
i >= 10
)
constraint C2 = (
r <= 20.0 and b
)
```## Solve
```console
xxx@XXX:~$ smt-lang --file example.sl
```## Solution
```
let b: Bool = true
let i: 1..100 = 10
let r: Real = 20
```## Options
### Verbose
- --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# Syntax
- [Documentation](doc/readme.md)