🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math
Article #446

fuzzer for halt problem...

#446
From: Chris M. Thomasson
Date: Fri, 23 Oct 2026 22:50
52 lines
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!"
_________________________
Technical Details
Message-ID: <11bgob6$282c5$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

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: fuzzer for halt problem...
Date: Fri, 23 Oct 2026 15:50:14 -0700
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <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 22:50:16 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2361733"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19a/LTdRZi1TmwCBwMlt/00oYV03Ruwqjs="; posting-host="3dd5314fd073053f92065654fb7303e4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NTkMI4nlCXxH+19tkE0ih4vYSt8= sha256:+urtyJhQX/+EqdGBwNLotHymv5diLHmhUUHtPN5J+iA=
	sha1:W9nYVaZCXpVRgwensvKmRUMCf0s= sha256:PoU/ghp4KTWocP2x+tpu5eIEcxAuC5WsuhVBJb2sMIA=
Content-Language: en-US