Thread View: sci.math
2 messages
2 total messages
Started by Chris M. Thomasson
Fri, 23 Oct 2026 22:50
fuzzer for halt problem...
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 22:50
Date: Fri, 23 Oct 2026 22:50
52 lines
2774 bytes
2774 bytes
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!" _________________________
Re: fuzzer for halt problem...
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 23:15
Date: Fri, 23 Oct 2026 23:15
77 lines
3587 bytes
3587 bytes
On 10/23/2026 3:50 PM, Chris M. Thomasson wrote: > 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/[...] rofl. Here is another one with an expanded database: __________________________________ 1 HOME 2 DIM S$(2,4) 3 REM --- NOPE path insults --- 4 S$(0,0) = "NICE TRY! STILL NEED OTHER BRANCHES." 5 S$(0,1) = "NOPE AGAIN? COVERAGE IS STARVING!" 6 S$(0,2) = "STILL MISSING BRANCHES. TRY HARDER." 7 S$(0,3) = "COVERAGE CALLED. IT WANTS THE OTHER ONES." 8 S$(0,4) = "NON-HALTING IS CUTE. NOW DO THE REST." 9 REM --- YES path insults --- 10 S$(1,0) = "NOT SO FAST... THAT WAS TOO EASY." 11 S$(1,1) = "HALT HIT AGAIN, BUT I NEED ALL THREE!" 12 S$(1,2) = "HALTING IS EASY MODE. KEEP GOING." 13 S$(1,3) = "NICE HALT. STILL NEED THE OTHER TWO." 14 S$(1,4) = "PATH COMPLETE. COVERAGE INCOMPLETE." 15 REM --- MAYBE path insults --- 16 S$(2,0) = "HMMM... UNDECIDED, BUT ARE WE DONE?" 17 S$(2,1) = "MAYBE IS NOT ENOUGH ON ITS OWN!" 18 S$(2,2) = "UNDECIDABLE IS NOT A STRATEGY." 19 S$(2,3) = "SCHRODINGER'S PATH DOESN'T COUNT TWICE." 20 S$(2,4) = "INDECISION IS NOT COVERAGE." 21 PRINT "ct_dr_fuzz v6 - more sass edition" 22 P0 = 0 : P1 = 0 : P2 = 0 30 PRINT 31 PRINT "Enter YES, MAYBE, or NOPE (uppercase)" 32 INPUT "Shall DD halt or not? "; A$ 200 IF A$ = "YES" THEN GOTO 666 300 IF A$ = "MAYBE" THEN GOTO 777 400 REM NOPE (or anything else) 410 P0 = P0 + 1 420 PRINT "NON_HALT P0 = "; P0 430 R = INT(RND(1)*5) 440 PRINT S$(0,R) 450 GOTO 900 666 PRINT "OK! (halts)" 667 P1 = P1 + 1 668 PRINT "HALT P1 = "; P1 670 R = INT(RND(1)*5) 671 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)*5) 781 PRINT S$(2,R) 900 IF P0 > 0 AND P1 > 0 AND P2 > 0 THEN GOTO 1000 910 GOTO 30 1000 PRINT 1010 PRINT "FIN... ALL THREE PATHS HIT!" 1020 PRINT "NON_HALT P0 = "; P0 1030 PRINT "HALT P1 = "; P1 1040 PRINT "MAYBE P2 = "; P2 1050 PRINT "Human fuzzer survived the gaslighting!" __________________________________ ;^D
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads