enum class State { Ready = 17 }; template concept HasReady = requires { T::Ready; }; template consteval int reflected_value(int bias) { constexpr auto entity = ^^T::Ready; return static_cast([:entity:]) + bias; } template consteval int twice(int bias) { return 2 * reflected_value(bias); } // The predicates stay true for both 17 and the edited value 41. They expose // neither the intermediate result nor its type to the trace verifier. static_assert(twice(0) > 0); static_assert(twice(5) > 0); #ifdef VLS_CHECK_REJECTED_CONSTRAINT constexpr auto rejected = twice(0); #endif