add gencode for boolop