Bug fix: add input and output ports to LLVM functions