Commit c3ea1c87 authored by erwan's avatar erwan
Browse files

Fix: even for built-in demons, a '#q' should be issued in case of Silence with -rif

parent d29ca960
......@@ -20,8 +20,9 @@ let () =
| Failure msg -> Printf.printf "Error: %s\n" msg
| Silent i ->
let str = if args.rif then "#" else "" in
Printf.printf "%sThis algo is silent after %i steps\n" str i ;
Printf.eprintf "\n%sThis algo is silent after %i steps\n" str i ;
flush stderr;
flush stdout;
if args.rif && args.demon = Custom then (
if args.rif then (
print_string "#q\n"; flush stdout
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment