int(main(main)) {
  printf(" %d ", main = getche(printf(" %d ", main += pow(++main, main++))));
  printf("123456789");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cvtsi2sd %eax,%xmm0
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cvtsi2sd %eax,%xmm1
call   1050 <pow@plt>
movaps %xmm0,%xmm1
cvtsi2sdl -0x8(%rbp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    %esi,-0x8(%rbp)
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1040 <getche@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %edi,%ebx
lea    0x1(%rbx),%eax
cvtsi2sd %eax,%xmm0
add    $0x2,%ebx
movapd %xmm0,%xmm1
call   1050 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
lea    0xea4(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1040 <getche@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe83(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c" %d \00"
@.str.1 = [10 x i8] c"123456789\00"
define i32 @main(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %2
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = add nsw i32 %4, 1
store i32 %5, i32* %3
%6 = sitofp i32 %5 to double
%7 = load i32, i32* %3
%8 = add nsw i32 %7, 1
store i32 %8, i32* %3
%9 = sitofp i32 %7 to double
%10 = call double @pow(double %6, double %9)
%11 = load i32, i32* %3
%12 = sitofp i32 %11 to double
%13 = fadd double %12, %10
%14 = fptosi double %13 to i32
store i32 %14, i32* %3
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = call i32 (i32, ...) bitcast (i32 (...)* @getche to i32 (i32, ...)*)(i32 %15)
store i32 %16, i32* %3
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c" %d \00"
@.str.1 = [10 x i8] c"123456789\00"
define i32 @main(i32 %0) {
%2 = add nsw i32 %0, 1
%3 = sitofp i32 %2 to double
%4 = add nsw i32 %0, 2
%5 = tail call double @pow(double %3, double %3)
%6 = sitofp i32 %4 to double
%7 = fadd double %5, %6
%8 = fptosi double %7 to i32
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @getche to i32 (i32, ...)*)(i32 %9)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}