eval_const_ternary