Blackbox equivalence checking of program optimizations