-- pgbench function/operator test
-- pgbench -f <this file> -t 1
\set i debug(~ 1)
\set i debug(~ 0)
\set i debug(0.0 && 1.0)
\set i debug(0 || 1.0)
\set i debug(10 & 6)
\set i debug(1 # 2)
\set i debug(3 + (0 < 1))
\set i debug(if(1, 4|1, 0))
\set i debug(if(0, 0, 4 + (1 = 1) + (1.0 == 0.5 * 2)))
\set i debug((1 > 0) + (1 >= 0) + (0 < 1) + (0 <= 1) + (0 != 1) + (0 == 0) + (0 <> 1))
\set i debug((1.0 > 0.0) + (1.0 >= 0.0) + (0.0 < 1.0) + (0.0 <= 1.0) + (0.0 != 1.0) + (0.0 == 0.0) + (0.0 <> 1.0) + (0.0 = 0.0))
\set d debug(if(1, 3 * 3.0, 10))
\set d debug(if(0, 3 * 3.0, 10))
\set i debug(2 + 1 * 2 + 3 | 4 * 2 & 11)
\set i debug(0 > 1)
\set i debug(1 <= 1)
\set i debug(0 >= 1)
\set i debug(0 < 1)
\set i debug(0 and 1)
\set i debug(0 or 1)
\set i debug(1 xor 1)
\set i debug(! 0)
\set i debug(not 1)
\set d debug(exp(1.0))
\set d debug(ln(1.0))
\set d debug(ln(-1.0))
