Make AV calculation more understandable by humans, and align AC calculation with CGEN code.
Add tracing of flag updates.
Add tracing of the frame pointer on every tick.