rules

Generate the PIR code that matches the various rules we have.