but nobody seemed to even give a simple sample program.
I believe you are using the wrong term here, GENERIC algorithms determine possible outcomes from specific situations by fuzzy logic and starcastic matrix algebra.
The example I like is the FPGA design that used an EM quirk:
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16