ethereum/cpp-ethereum — pull request #458 by chriseth (2014-11-03 11:57:40+00:00)
Title: Bugfix: Swap before mod and div.

To compute `a % b`, the compiler first evaluates `a` and then `b` which results in `PUSH1 a PUSH1 b MOD`. This is incorrect since `MOD` computes `stack[0] % stack[1]`. Added `SWAP1` to fix this (can hopefully be optimized out at some later stage).