loop2

Translate simple nondeterministic Prolog into deterministic recursive loops

Examples:
Input Prolog
Translated Output

What loop2 supports