emit and interpret code for boolean operations