This is a funny way to allow the human to have to make sure all paths were hit. The fuzzer only halts when all paths of the program logic were hit. Actually, fuzzing is useful in programming. Especially in lock-free work. Its all in AppleSoft BASIC. You can run it online here:
https://www.calormen.com/jsbasic/
_________________________
1 HOME
2 DIM S$(3, 2)
3 REM Trash talk array per path
4 S$(0,0) = "NICE TRY! STILL NEED OTHER BRANCHES."
5 S$(0,1) = "NOPE AGAIN? COVERAGE IS STARVING!"
6 S$(1,0) = "NOT SO FAST... THAT WAS TOO EASY."
7 S$(1,1) = "HALT HIT AGAIN, BUT I NEED ALL THREE!"
8 S$(2,0) = "HMMM... UNDECIDED, BUT ARE WE DONE?"
9 S$(2,1) = "MAYBE IS NOT ENOUGH ON ITS OWN!"
10 PRINT "ct_dr_fuzz v5 sassy edition lol. ;^)"
15 P0 = 0 : P1 = 0 : P2 = 0
20 PRINT: PRINT "Enter YES, MAYBE, or NOPE."
30 INPUT "Shall DD halt or not? "; A$
200 IF A$ = "YES" GOTO 666
300 IF A$ = "MAYBE" GOTO 777
400 REM Else = NOPE (non-halting)
410 P0 = P0 + 1
420 PRINT "NON_HALT P0 = "; P0
425 R = INT(RND(1) * 2) : PRINT S$(0, R)
430 GOTO 900
666 PRINT "OK! (halts)"
667 P1 = P1 + 1
668 PRINT "HALT P1 = "; P1
670 R = INT(RND(1) * 2) : PRINT S$(1, R)
675 GOTO 900
777 PRINT "hmmm... (undecidable)"
778 P2 = P2 + 1
779 PRINT "MAYBE P2 = "; P2
780 R = INT(RND(1) * 2) : PRINT S$(2, R)
900 IF P0 > 0 AND P1 > 0 AND P2 > 0 GOTO 1000
910 GOTO 30
1000 PRINT: PRINT "FIN... ALL THREE PATHS HIT!"
1010 PRINT "NON_HALT P0 = "; P0
1020 PRINT "HALT P1 = "; P1
1030 PRINT "MAYBE P2 = "; P2
1040 PRINT "Human fuzzer survived the gaslighting!"
_________________________
fuzzer for halt problem...
- From
- "Chris M. Thomasson" <chri…@gmail.com>
- Organization
- A noiseless patient Spider
- Message-ID
- <11bg…@dont-email.me>
- Date
- Newsgroups
- sci.math