session_name: bc_afl_continue
start_directory: ./

windows:
  - window_name: control
    layout: even-horizontal
    panes:
      - shell_command:
        - echo core | doas tee /proc/sys/kernel/core_pattern
        - echo performance | doas tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  - window_name: bc11
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 4
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs1 -p fast -M bc11 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc12
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 5
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs1 -p coe -z -S bc12 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc13
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 6
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs1 -p exploit -z -S bc13 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc14
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 7
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs1 -p explore -z -S bc14 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc15
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 9
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs1 -p exploit -S bc15 bin/bc -lqC -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc21
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 10
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs2 -p fast -M bc21 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc22
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 11
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs2 -p coe -z -S bc22 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc23
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 12
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs2 -p exploit -z -S bc23 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc24
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 13
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs2 -p explore -z -S bc24 bin/bc -lqc -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: bc25
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset POSIXLY_CORRECT
        - unset BC_BANNER
        - unset BC_ENV_ARGS
        - unset BC_LINE_LENGTH
        - unset BC_SIGINT_RESET
        - unset BC_TTY_MODE
        - unset BC_PROMPT
        - unset BC_EXPR_EXIT
        - unset BC_DIGIT_CLAMP
        - sleep 14
        - afl-fuzz -i- -o tests/fuzzing/bc_outputs2 -p exploit -S bc25 bin/bc -lqC -e "seed = 1280937142.20981723890730892738902938071028973408912703984712093" -f-
  - window_name: dc11
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset DC_ENV_ARGS
        - unset DC_LINE_LENGTH
        - unset DC_SIGINT_RESET
        - unset DC_TTY_MODE
        - unset DC_PROMPT
        - unset DC_EXPR_EXIT
        - unset DC_DIGIT_CLAMP
        - sleep 15
        - afl-fuzz -i- -o tests/fuzzing/dc_outputs -p fast -M dc11 bin/dc -xc -e "1280937142.20981723890730892738902938071028973408912703984712093j" -f-
  - window_name: dc12
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset DC_ENV_ARGS
        - unset DC_LINE_LENGTH
        - unset DC_SIGINT_RESET
        - unset DC_TTY_MODE
        - unset DC_PROMPT
        - unset DC_EXPR_EXIT
        - unset DC_DIGIT_CLAMP
        - sleep 16
        - afl-fuzz -i- -o tests/fuzzing/dc_outputs -p coe -z -S dc12 bin/dc -xc -e "1280937142.20981723890730892738902938071028973408912703984712093j" -f-
  - window_name: dc13
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset DC_ENV_ARGS
        - unset DC_LINE_LENGTH
        - unset DC_SIGINT_RESET
        - unset DC_TTY_MODE
        - unset DC_PROMPT
        - unset DC_EXPR_EXIT
        - unset DC_DIGIT_CLAMP
        - sleep 17
        - afl-fuzz -i- -o tests/fuzzing/dc_outputs -p exploit -z -S dc13 bin/dc -xc -e "1280937142.20981723890730892738902938071028973408912703984712093j" -f-
  - window_name: dc14
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset DC_ENV_ARGS
        - unset DC_LINE_LENGTH
        - unset DC_SIGINT_RESET
        - unset DC_TTY_MODE
        - unset DC_PROMPT
        - unset DC_EXPR_EXIT
        - unset DC_DIGIT_CLAMP
        - sleep 18
        - afl-fuzz -i- -o tests/fuzzing/dc_outputs -p explore -z -S dc14 bin/dc -xc -e "1280937142.20981723890730892738902938071028973408912703984712093j" -f-
  - window_name: dc15
    layout: even-horizontal
    panes:
      - shell_command:
        - export AFL_AUTORESUME=1
        - export AFL_MAP_SIZE=5000000
        - unset DC_ENV_ARGS
        - unset DC_LINE_LENGTH
        - unset DC_SIGINT_RESET
        - unset DC_TTY_MODE
        - unset DC_PROMPT
        - unset DC_EXPR_EXIT
        - unset DC_DIGIT_CLAMP
        - sleep 19
        - afl-fuzz -i- -o tests/fuzzing/dc_outputs -p exploit -S dc15 bin/dc -xC -e "1280937142.20981723890730892738902938071028973408912703984712093j" -f-
