Result

WA

Duration

516ms

Code [DL]

define i32 @main() {
  %1 = alloca i8, align 1
  call i32 @getchar(i8* %1)
  %3 = load i8, i8* %1, align 1
  %4 = sext i8 %3 to i32
  %5 = call i32 @putchar(i32 %4)
  ret i32 0
}

declare i32 @putchar(i8)
declare i32 @getchar(i8*)

stdin

95 15 57
74 02 65
70 84 91
51 73 09

stdout

stderr

/usr/bin/llc: /tmp/code.ll:6:17: error: invalid forward reference to function 'putchar' with wrong type!
  %5 = call i32 @putchar(i32 %4)
                ^
gcc: error: /tmp/code.o: No such file or directory
gcc: fatal error: no input files
compilation terminated.
/bin/script: line 17: /tmp/code: not found

strace