Finite State Machine to MCA Compiler