#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ indirect(int, int, int, int);
int /*<<< orphan*/ print_int(int);
int /*<<< orphan*/ print_string(char *);
void main(void) {
  int w, x, y, z;
  w = 5;
  x = 1;
  y = 2;
  z = 3;
  print_int(w + 4);
  print_string(" ");
  print_int((x * 2) - 3);
  print_string(" ");
  print_int(y * (2 + 1));
  print_string(" ");
  print_int(z / 3 + 2);
  print_string("\n");
  indirect(w + 4, (x * 2) - 3, y * (2 + 1), z / 3 + 2);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x5,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
mov    -0x4(%rbp),%edi
add    $0x4,%edi
call   1040 <print_int@plt>
lea    0xe9a(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x8(%rbp),%edi
shl    $0x1,%edi
sub    $0x3,%edi
call   1040 <print_int@plt>
lea    0xe80(%rip),%rdi
call   1030 <print_string@plt>
imul   $0x3,-0xc(%rbp),%edi
call   1040 <print_int@plt>
lea    0xe6b(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x10(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
add    $0x2,%edi
call   1040 <print_int@plt>
lea    0xe4c(%rip),%rdi
call   1030 <print_string@plt>
mov    -0x4(%rbp),%edi
add    $0x4,%edi
mov    -0x8(%rbp),%esi
shl    $0x1,%esi
sub    $0x3,%esi
imul   $0x3,-0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x14(%rbp),%edx
mov    %eax,%ecx
add    $0x2,%ecx
call   1050 <indirect@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x9,%edi
call   1040 <print_int@plt>
lea    0xebe(%rip),%rbx
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0xffffffff,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0x6,%edi
call   1040 <print_int@plt>
mov    %rbx,%rdi
call   1030 <print_string@plt>
mov    $0x3,%edi
call   1040 <print_int@plt>
lea    0xe83(%rip),%rdi
call   1030 <print_string@plt>
mov    $0x9,%edi
mov    $0xffffffff,%esi
mov    $0x6,%edx
mov    $0x3,%ecx
pop    %rbx
jmp    1050 <indirect@plt>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 5, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
store i32 3, i32* %4
%5 = load i32, i32* %1
%6 = add nsw i32 %5, 4
%7 = call i32 @print_int(i32 %6)
%8 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = mul nsw i32 %9, 2
%11 = sub nsw i32 %10, 3
%12 = call i32 @print_int(i32 %11)
%13 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %3
%15 = mul nsw i32 %14, 3
%16 = call i32 @print_int(i32 %15)
%17 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = load i32, i32* %4
%19 = sdiv i32 %18, 3
%20 = add nsw i32 %19, 2
%21 = call i32 @print_int(i32 %20)
%22 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%23 = load i32, i32* %1
%24 = add nsw i32 %23, 4
%25 = load i32, i32* %2
%26 = mul nsw i32 %25, 2
%27 = sub nsw i32 %26, 3
%28 = load i32, i32* %3
%29 = mul nsw i32 %28, 3
%30 = load i32, i32* %4
%31 = sdiv i32 %30, 3
%32 = add nsw i32 %31, 2
%33 = call i32 @indirect(i32 %24, i32 %27, i32 %29, i32 %32)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @main() {
%1 = tail call i32 @print_int(i32 9)
%2 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @print_int(i32 -1)
%4 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @print_int(i32 6)
%6 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @print_int(i32 3)
%8 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @indirect(i32 9, i32 -1, i32 6, i32 3)
ret void
}