set num runs to 10 when averaging runtimes
redundant braces are redundant
refactoring: namedtuples for the IR

Breaks all optimizations but compiles well without.
refactoring: clearloop and contract on new IR
refactoring: comments and whitespace
refactoring: offsetopts cleanup and new IR
refactoring: multiloop cleanup and new IR