working on tc-applic code gen getting seg fault