🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math
Article #447

Re: fuzzer for halt problem...

#447
From: Chris M. Thomasson
Date: Fri, 23 Oct 2026 23:15
77 lines
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
Technical Details
Message-ID: <11bgpr3$28ive$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11bgob6$282c5$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: sci.math
Subject: Re: fuzzer for halt problem...
Date: Fri, 23 Oct 2026 16:15:44 -0700
Organization: A noiseless patient Spider
Lines: 77
Message-ID: <11bgpr3$28ive$1@dont-email.me>
References: <11bgob6$282c5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 23 Oct 2026 23:15:48 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2378734"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19+F2ztRHqGcloJk16YSf0pLNvSh/EIA9s="; posting-host="3dd5314fd073053f92065654fb7303e4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WhvgI+uQzsmhugCXMkhKvVe5zM4= sha256:CVgRizLwT4SlKtKfB0GV88+ZKqO4srbhUF/fAMuEII8=
	sha1:7DUImHm8drmAdnfqHodkUzCqsUQ= sha256:60Fu/wcfaPwcUehRy9GoGsufW8RqztawXSCMBx5PYmI=
In-Reply-To: <11bgob6$282c5$1@dont-email.me>
Content-Language: en-US