pi.arbitrary.c code condensed