ysiraichi / enfield

An OpenQASM source-to-source Compiler.
GNU General Public License v2.0
20 stars 8 forks source link

Fix continuous integration build problem. #10

Closed ysiraichi closed 6 years ago

ysiraichi commented 6 years ago

Enfield tests fail when compiled with Clang. The problem is with CNOTLBOWrapperPass which tries to order the statements. It stores the statements into a std::set of pointers. When compiled with different compilers, the order may change since it depends on the address.

Consider the following solutions:

Breaking #9

ysiraichi commented 6 years ago

The best approach for solving it seems to be the second option, since we can unify the Layer definition of CNOTLBOWrapperPass and LayerBuilderPass.