prodigy.pgcl.pgcl_operations¶
- make_else_if(instructions)[source]¶
Creates an else-if chain from a list of conditions and bodies for if-instructions
- cav_phi(program, invariant)[source]¶
The characteristic loop functional. It unrolls a loop exactly once.
The result is
if (G) { B; I } else { skip }for a programwhile (G) { B }and an invariant programI. Declarations, constants, parameters and functions are taken from the invariant. The instructions are copied, so the result shares no nodes with its inputs.- Parameters:
program (
Program)invariant (
Program)
- Return type:
Program