Parma Polyhedra Library requirements
C++ same-storage native integer unary arithmetic
PPL-SPEC-000835
1. Native integer floor, ceiling and truncation identity PPL-SPEC-000835

For the eleven standard native integer storage types and same-storage raw/checked argument forms in 🔗 1. Exact same-storage native integer arithmetic, floor_assign_r, ceil_assign_r and trunc_assign_r shall assign the source integer unchanged and return V_EQ. Every valid rounding request, with or without ROUND_STRICT_RELATION, shall have this identity behavior.

The entry source shall be finite under its policy and within the selected destination policy's finite interval. The source and output may be the same object; distinct sources shall remain unchanged. Named calls shall require no rounding default or policy result handler and invoke no handler. The lifetime, synchronization, initialization and hardware-direction conditions of 🔗 1. Exact same-storage native integer arithmetic shall apply.

2. Native integer negation and absolute value PPL-SPEC-000836

For the same-storage native integer argument forms and entry-value preconditions in 🔗 1. Exact same-storage native integer arithmetic, neg_assign_r shall assign  − x and abs_assign_r shall assign |x| whenever that mathematical integer is within the selected destination's finite interval. Each successful operation shall return V_EQ for every valid rounding request, with or without ROUND_STRICT_RELATION. Zero shall remain zero; unsigned absolute value shall preserve its source value.

When the selected destination enables overflow checking, an exact result outside its finite interval shall have the inward endpoint, admitted outward infinity or unrepresentability outcome of 🔗 4. Checked native arithmetic range outcomes. In particular, negating a nonzero unsigned integer shall not report a wrapped unsigned value as successful exact negation. A signed minimum's positive negation or absolute value shall be range-checked when it is outside the destination interval. If checking is disabled, the result shall be representable as a precondition. ROUND_NOT_NEEDED shall require representability, including when a strict flag is present.

The source and output may be the same object; every calculation shall use the entry source value. Distinct sources shall remain unchanged. Calls shall require no rounding default or policy result handler and shall not invoke a handler, including when a range outcome is returned. Output reusability after unrepresentability, object lifetime, synchronization, initialization and hardware-direction conditions shall follow 🔗 1. Exact same-storage native integer arithmetic and 🔗 4. Checked native arithmetic range outcomes.