1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | (defrule readin ?f<-(initial-fact) => (retract ?f) (assert (number (read))) ) (defrule writeout ?f<-(number ?n)(test (<> ?n 42)) => (retract ?f) (printout t ?n crlf) (assert (initial-fact)) ) (reset) (run) (exit) |
KGRlZnJ1bGUgcmVhZGluCiAgICAgICAgP2Y8LShpbml0aWFsLWZhY3QpCj0+CiAgICAgICAgKHJldHJhY3QgP2YpCiAgICAgICAgKGFzc2VydCAobnVtYmVyIChyZWFkKSkpCikKIAooZGVmcnVsZSB3cml0ZW91dAogICAgICAgID9mPC0obnVtYmVyID9uKSh0ZXN0ICg8PiA/biA0MikpCj0+CiAgICAgICAgKHJldHJhY3QgP2YpCiAgICAgICAgKHByaW50b3V0IHQgP24gY3JsZikKICAgICAgICAoYXNzZXJ0IChpbml0aWFsLWZhY3QpKQopCiAKKHJlc2V0KQogCihydW4pCiAKKGV4aXQp
-
upload with new input
-
result: Success time: 0s memory: 3076 kB returned value: 255
4 1 2 42
4 1 2
-
result: Success time: 0s memory: 3076 kB returned value: 255
1 2 3 4
1 2 3 4 [ARGACCES5] Function <> expected argument #1 to be of type integer or float [DRIVE1] This error occurred in the join network Problem resides in join #1 in rule(s): writeout [PRCCODE4] Execution halted during the actions of defrule readin.



