Move malloc from terminator to assign instructions