Added support for tac generation of ternaries, added traversal for x64 generation.