fix when IR has mixed tags (var := and defsym)

change approach at how IR code is generated so that the original node is
preserved and changed a dummy op (return true) and the defsym operation
is in the node above it.