(final CompileContext cc)
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | public final Expr optimize(final CompileContext cc) throws QueryException { |
| 41 | flatten(cc); |
| 42 | exprs = simplifyAll(Simplify.EBV, cc); |
| 43 | |
| 44 | final boolean or = or(); |
| 45 | if(optimizeEbv(or, false, cc)) return cc.replaceWith(this, Bln.get(or)); |
| 46 | |
| 47 | final int el = exprs.length; |
| 48 | if(el == 0) return Bln.get(!or); |
| 49 | if(el == 1) return cc.function(Function.BOOLEAN, info, exprs); |
| 50 | return this; |
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public final Bln item(final QueryContext qc, final InputInfo ii) throws QueryException { |
no test coverage detected