Refactor code emitting
Add logical negation primitive