generate llvm with if statements and icmp