Add codegen for logical and