mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
add afl-fuzzer
the more, the fuzzier
This commit is contained in:
parent
8952e8082a
commit
4361e36997
6 changed files with 260 additions and 19 deletions
20
test.sl
20
test.sl
|
|
@ -1,19 +1 @@
|
|||
fn fizzbuzz() {
|
||||
let i = 0;
|
||||
while i < 100 {
|
||||
let out = single_fizzbuzz(i);
|
||||
print(out);
|
||||
}
|
||||
}
|
||||
|
||||
fn single_fizzbuzz(n) {
|
||||
if n % 15 == 0 {
|
||||
return "FizzBuzz";
|
||||
} else if n % 5 == 0 {
|
||||
return "Buzz";
|
||||
} else if n % 3 == 0 {
|
||||
return "Fizz";
|
||||
} else {
|
||||
return n;
|
||||
}
|
||||
}
|
||||
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[=f
|
||||
Loading…
Add table
Add a link
Reference in a new issue