#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 INT_MAX;
int /*<<< orphan*/ printf(char *, int);
int threefourths(int);
int main(void) {
  int x;
  x = INT_MAX;
  printf("%d\n", threefourths(x));
  x = 4 + 1;
  printf("%d\n", threefourths(x));
  x = 4 + 2;
  printf("%d\n", threefourths(x));
  x = 4 + 3;
  printf("%d\n", threefourths(x));
  x = -4 - 1;
  printf("%d\n", threefourths(x));
  x = -4 - 2;
  printf("%d\n", threefourths(x));
  x = -4 - 3;
  printf("%d\n", threefourths(x));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
movl   $0x5,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
movl   $0x6,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
movl   $0x7,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
movl   $0xfffffffb,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xe40(%rip),%rdi
call   1030 <printf@plt>
movl   $0xfffffffa,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
movl   $0xfffffff9,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <threefourths@plt>
mov    %eax,%esi
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ec0(%rip),%rax
mov    (%rax),%edi
call   1040 <threefourths@plt>
lea    0xeca(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <threefourths@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x6,%edi
call   1040 <threefourths@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x7,%edi
call   1040 <threefourths@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0xfffffffb,%edi
call   1040 <threefourths@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0xfffffffa,%edi
call   1040 <threefourths@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0xfffffff9,%edi
call   1040 <threefourths@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@INT_MAX = global i32 0
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* @INT_MAX
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @threefourths(i32 %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %5)
store i32 5, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @threefourths(i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
store i32 6, i32* %2
%10 = load i32, i32* %2
%11 = call i32 @threefourths(i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %11)
store i32 7, i32* %2
%13 = load i32, i32* %2
%14 = call i32 @threefourths(i32 %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %14)
store i32 -5, i32* %2
%16 = load i32, i32* %2
%17 = call i32 @threefourths(i32 %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %17)
store i32 -6, i32* %2
%19 = load i32, i32* %2
%20 = call i32 @threefourths(i32 %19)
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %20)
store i32 -7, i32* %2
%22 = load i32, i32* %2
%23 = call i32 @threefourths(i32 %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
ret i32 0
}

LLVM IR (-O2):
@INT_MAX = global i32 0
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = load i32, i32* @INT_MAX
%2 = tail call i32 @threefourths(i32 %1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @threefourths(i32 5)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i32 @threefourths(i32 6)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = tail call i32 @threefourths(i32 7)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = tail call i32 @threefourths(i32 -5)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = tail call i32 @threefourths(i32 -6)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
%14 = tail call i32 @threefourths(i32 -7)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %14)
ret i32 0
}