Skip to content

Commit

Permalink
[minotaur] update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyang92 committed Apr 25, 2024
1 parent f1ce7d2 commit a67b0b3
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,27 @@ default; the pass can be enabled by setting environment variable
export ENABLE_MINOTAUR=ON
$HOME/minotaur/build/minotaur-cc <c source> [clang options]


### Offline mode

#### Extract cuts from source

To extract cuts, one can just set the environment variable
`MINOTAUR_NO_INFER` and run the same command as above.

On single LLVM IR,
For a single LLVM IR source,

export MINOTAUR_NO_INFER=ON
$HOME/llvm/build/bin/opt -load-pass-plugin $HOME/minotaur/build/minotaur.so -passes="minotaur" <LLVM bitcode>
MINOTAUR_NO_INFER=ON $HOME/llvm/build/bin/opt -load-pass-plugin $HOME/minotaur/build/minotaur.so -passes="minotaur" <LLVM bitcode>

On C/C++ programs,
For a single C/C++ source,

export MINOTAUR_NO_INFER=ON
export ENABLE_MINOTAUR=ON
$HOME/minotaur/build/minotaur-cc <c source> [clang options]
ENABLE_MINOTAUR=ON MINOTAUR_NO_INFER=ON $HOME/minotaur/build/minotaur-cc <c source> [clang options]

For a C/C++ project, simply set CC and CXX to `minotaur-cc` and `minotaur-cxx`, and run `configure` as usual. Set `ENABLE_MINOTAUR` and `MINOTAUR_NO_INFER` to `ON` for `make`.

CC=$HOME/minotaur/build/minotaur-cc CXX=$HOME/minotaur/build/minotaur-cxx ./configure
ENABLE_MINOTAUR=ON MINOTAUR_NO_INFER=ON make

#### Run synthesis on cuts

Run the `cache-infer` program to retrieve cuts from the cache and run
synthesis on them.
Expand Down

0 comments on commit a67b0b3

Please sign in to comment.