flow: put IR function decls before initializer fn

Change-Id: I81caf993d6dce5d6a0ea9902b6d687eec73529f8
flow: snap, the power of

Change-Id: I2e10eace5f254b392618d05ea2edc39bbeba6d3a