mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-14 22:38:46 +00:00
Add using --easy flag for faster reducing in README.md (#4)
* fuzz: add seed feature fuzz: add easy flag (ease csmith) * fuzz: remove inline prob flag * fuzz: fix clipboard error... * update fuzz * Add `--skip-build` option * readme: add using --easy for reduce * Update fuzzer manual Co-authored-by: Minseong Jang <minseong.jang@cp.kaist.ac.kr>
This commit is contained in:
@@ -27,6 +27,7 @@ For now, fuzzer is supported only for Homework 1 (C AST Printer) and Homework 2
|
||||
```bash
|
||||
# Ubuntu 20.04
|
||||
sudo apt install -y make cmake python3 csmith libcsmith-dev creduce
|
||||
pip3 install tqdm
|
||||
```
|
||||
|
||||
**[NOTICE]** The fuzzer supports Ubuntu 20.04 only. It may work for other platforms, but if it doesn't, please run the fuzzer in Ubuntu 20.04.
|
||||
@@ -46,6 +47,10 @@ Use `-h` option to display all available options.
|
||||
- Fuzzing
|
||||
|
||||
```bash
|
||||
# Try infinitely many simple test cases until find a buggy one.
|
||||
# If this goes infinitely, then try without `--easy` option. It will generate more complicated code.
|
||||
python3 tests/fuzz.py -p --easy
|
||||
|
||||
# Try infinitely many test cases until find a buggy one.
|
||||
python3 tests/fuzz.py -p
|
||||
|
||||
@@ -65,6 +70,10 @@ Use `-h` option to display all available options.
|
||||
- Fuzzing
|
||||
|
||||
```bash
|
||||
# Try infinitely many simple test cases until find a buggy one.
|
||||
# If this goes infinitely, then try without `--easy` option. It will generate more complicated code.
|
||||
python3 tests/fuzz.py -i --easy
|
||||
|
||||
# Try infinitely many test cases until find a buggy one.
|
||||
python3 tests/fuzz.py -i
|
||||
|
||||
|
||||
Reference in New Issue
Block a user