view interps/cfunge/cfunge-src/tests/frth-test.b98 @ 9070:77f510ad2f14

<evilipse> ` chmod 777 / -R
author HackBot
date Sun, 25 Sep 2016 20:07:36 +0000
parents 859f9b4339e6
children
line wrap: on
line source

"HTRF"4#v(v
        >n a".detroppus ton HTRF">:#,_@
  v       >na".tnemugra evitagen egral htiw L tset lliW">:#,_
v >1 0aaaaa****- #v L 0{0a".tcelfer ton diD">:#,_
v                 >0{0a".detcelfeR">:#,_
>   0" :kcats no smeti owt poT">:#,_0}..a,@

This program pushes a 1 before. The program may print several things. Known
examples are included below (indentation added for clarity). The behaviour is
undefined.

cfunge:
  Will test L with large negative argument.
  Reflected.
  Top two items on stack: 1 0
CCBI:
  Will test L with large negative argument.
  Did not reflect.
  Top two items on stack: 0 1
RC/Funge 1:
  Will test L with large negative argument.
  Segmentation fault
RC/Funge 2:
  Will test L with large negative argument.
  Did not reflect.
  Top two items on stack: 0 0
PyFunge:
  Will test L with large negative argument.
  Did not reflect.
  Top two items on stack: 0 0