-- C code formatting for DSP block processing. module Block (z -- Delay operator ) where import Term -- Algebraic expressions import Ai -- Operations on algebraic expressions import Function -- Representation of flat code (i.e. SSA/ANF) import Complex -- Complex numbers -- Unit delay. -- Isn't it nice that this operator survives Term -> Function -- conversion? Meaning can be attached to it after flattening code. z x = Op (Sym "z") [x] -- Basic idea: -- * wrap the code in a "for (i=0; i