A simple dead code elimination compiler optimization for ILOC compilers.
Note : this only works with python3
$ python3 deadcode.py < input.iloc > output.iloc
You can also run the output optimized code directly into the ILCO Simulator like so
$ python3 deadcode.py < input.iloc | sim