PPL C Language Interface 2.0
Generated Domain Operations

The concrete domain types and functions in ppl_c.h are selected when PPL is configured. Use the configuration-dependent reference matching that installation. A conversion may approximate its source; ownership and successful execution alone do not imply an exact representation.

The core C++ manual supplies the mathematical definitions and domain-specific operation preconditions. When Polyhedron is selected, C and NNC polyhedra share the same opaque handle types. Their constructors and assignments select the topology; operations still require compatible topologies. A selected powerset domain represents a disjunctive collection of base-domain objects in one ambient space.

Results and output objects

All negative results report errors. A status-returning operation returns zero on success. Predicates return a positive value for true and zero for false. Relation queries return a combination of relation flags. Check these categories before interpreting outputs; zero is not always an error or always success.

Unless a function creates a new object through a pointer-to-handle output, coefficient, generator and domain output handles refer to existing mutable objects allocated by the caller. Read optimization coefficients, attainment flags and optional witnesses only on a positive result. An empty set or an unbounded objective produces zero; native approximation or overflow handling can also prevent a bound from being obtained. Do not interpret outputs on zero or a negative result.

Optimization retains the native domain guarantees. In particular, bounded-difference and octagonal optimization without a witness can return an outward approximation with coefficient arithmetic that rounds or overflows. Integral octagonal closure can also round. The attainment flag concerns the actual extremum, not necessarily its approximate bound. Consult the corresponding native overload for precision and witness guarantees.

The selected native domain determines representation admissibility and approximation. In particular, adding a non-equality constraint to a Grid is an error; refinement can ignore inequalities the Grid cannot represent. Operations may reorganize representations and invalidate borrowed views even when their mathematical value is unchanged; see Handle Ownership and Lifetimes.

Complexity selectors

Pass PPL_COMPLEXITY_CLASS_POLYNOMIAL, PPL_COMPLEXITY_CLASS_SIMPLEX or PPL_COMPLEXITY_CLASS_ANY to complexity-taking operations. A conversion constructor given another value reports PPL_ERROR_INVALID_ARGUMENT and leaves its output handle unchanged. Both forms of drop_some_non_integer_points reject another value before changing the receiver. Valid selectors retain the corresponding native operation policies; they do not turn an approximate operation into an exact one.