OIL implementation in plain c suitable for hardware compilers