#!/bin/sh
set -e -u
cp 'test-instr.c' "$ADTTMP"
cd "$ADTTMP"
make 'test-instr' CC=afl-gcc
echo 0 | AFL_SINK_OUTPUT=1 AFL_QUIET=1 afl-showmap ./test-instr 2>out0
echo 1 | AFL_SINK_OUTPUT=1 AFL_QUIET=1 afl-showmap ./test-instr 2>out1
! diff -u out0 out1
