Bug in Verilator that leads to a vrong runtime value. To run, have Icarus and Verilator installed (alternatively, you can only run only Verilator by editing the bash script accordingly). Then run bash run.sh Expected an output of 0, but got 1.