Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/DeveloperGuide/TestingCI/Fuzzer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Validating Dynamatic Using a Random Program Generator

Dynamatic has a C-based random program generator (i.e., a "fuzzer") to detect
miscompilation.
This document provides instruction for using and extending the fuzzer.

## Using HLSFuzzer to Find Functional Bugs

HLSFuzzer can perform differential test against Clang. To generate random C
code to test Dynamatic

```
build/bin/hls-fuzzer --functional --target random-c
```

**Number of threads**

```
build/bin/hls-fuzzer -j <num-threads>
```
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- [Testing & CI]()
- [Introduction](DeveloperGuide/TestingCI/Introduction.md)
- [Integration Tests](DeveloperGuide/TestingCI/IntegrationTests.md)
- [Fuzzer](DeveloperGuide/TestingCI/Fuzzer.md)
- [Formatting Checks](DeveloperGuide/TestingCI/Formatting.md)
- [GitHub Actions](DeveloperGuide/TestingCI/Actions.md)

Expand Down
Loading