-- pgbench function/operator test
-- pgbench -f <this file> -t 1
-- -2
\set i debug(~ 1)
\set i debug(~ 0)
-- 0
\set i debug(1.0 = 0.0 and 1.0 != 0.0)
\set i debug(0 = 1 Or 1.0 = 1)
\set i debug(10 & 6)
\set i debug(1 # 2)
\set i debug(3 + case when 0 < 1 then 1 else 0 end)
\set i debug(case when true then (4|1) else 0 end)
\set d debug(case when false THEN -1 when 1 = 1 then 4 + 1 + 1.0 end )
\set i debug(case when (1 > 0) and (1 >= 0) and (0 < 1) and (0 <= 1) and (0 != 1) and (0 = 0) and (0 <> 1) then 7 else 0 end)
\set i debug(CASE WHEN (1.0 > 0.0) AND (1.0 >= 0.0) AND (0.0 < 1.0) AND (0.0 <= 1.0) AND (0.0 != 1.0) AND (0.0 = 0.0) AND (0.0 <> 1.0) AND (0.0 = 0.0) THEN 8 ELSE 0 END)
\set d debug(CASE WHEN NOT FALSE THEN 3 * 3.0 END)
-- 10
\set i debug(case when false then 3 * 3.0 when 1-1 <> 0 then 8 else 10 end)
\set i debug((2 + 1 * 2 + 3 | 4 * (2 & 11)) - 4)
\set i debug(mod(13 * 7 + 12, 13))
\set b debug(0 > 1)
\set b debug(1 <= 1)
\set b debug(0 >= 1)
\set b debug(0 < 1)
\set b debug(false and true)
\set b debug(false or true)
\set i debug(not :b)
\set i debug(not false)
\set i debug(not true)
\set i debug(7 >> 2)
\set i debug(1 >> 1)
\set d debug(exp(1.0))
\set d debug(lN(1.0))
\set d debug(ln(-1.0))
