xunge/DecIR huggingface dataset:
int is_number_even(long int num) {
  if (num % 2 == 0) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<is_number_even>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    112c <is_number_even+0x2c>
movl   $0x1,-0x4(%rbp)
jmp    1133 <is_number_even+0x33>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_number_even>:
mov    %rdi,%rax
not    %eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @is_number_even(i64 %0) {
%2 = alloca i32
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = srem i64 %4, 2
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @is_number_even(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = and i32 %2, 1
%4 = xor i32 %3, 1
ret i32 %4
}
char *boolToStr(void *value) {
  if ((char *)value == 0)
    return (char *)"FALSE";
  else
    return (char *)"TRUE";
}


x86 assembly (clang, -O0):
<boolToStr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1123 <boolToStr+0x23>
lea    0xee6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    112e <boolToStr+0x2e>
lea    0xedc(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<boolToStr>:
test   %rdi,%rdi
lea    0xef6(%rip),%rcx
lea    0xef5(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@.str = [6 x i8] c"FALSE\00"
@.str.1 = [5 x i8] c"TRUE\00"
define i8* @boolToStr(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %2
br label %8
7: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %8
8: ; preds = %7, %6
%9 = load i8*, i8** %2
ret i8* %9
}

LLVM IR (-O2):
@.str = [6 x i8] c"FALSE\00"
@.str.1 = [5 x i8] c"TRUE\00"
define i8* @boolToStr(i8* readnone %0) {
%2 = icmp eq i8* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0)
ret i8* %3
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_maskmoveu_si128(int /*<<< orphan*/, int /*<<< orphan*/,
                                       char *);
void test_mm_maskmoveu_si128(__m128i A, __m128i B, char *C) {
  _mm_maskmoveu_si128(A, B, C);
}


x86 assembly (clang, -O0):
<test_mm_maskmoveu_si128>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1030 <_mm_maskmoveu_si128@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_mm_maskmoveu_si128>:
jmp    1030 <_mm_maskmoveu_si128@plt>

LLVM IR (-O0):
define void @test_mm_maskmoveu_si128(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i8*, i8** %6
%10 = call i32 @_mm_maskmoveu_si128(i32 %7, i32 %8, i8* %9)
ret void
}

LLVM IR (-O2):
define void @test_mm_maskmoveu_si128(i32 %0, i32 %1, i8* %2) {
%4 = tail call i32 @_mm_maskmoveu_si128(i32 %0, i32 %1, i8* %2)
ret void
}
const unsigned long __ia64_get_io_port_base(void) {
  extern unsigned long ia64_iobase;
  return ia64_iobase;
}


x86 assembly (clang, -O0):
<__ia64_get_io_port_base>:
push   %rbp
mov    %rsp,%rbp
mov    0x2edd(%rip),%rax
mov    (%rax),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ia64_get_io_port_base>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%rax
ret

LLVM IR (-O0):
@ia64_iobase = external global i64
define i64 @__ia64_get_io_port_base() {
%1 = load i64, i64* @ia64_iobase
ret i64 %1
}

LLVM IR (-O2):
@ia64_iobase = external global i64
define i64 @__ia64_get_io_port_base() {
%1 = load i64, i64* @ia64_iobase
ret i64 %1
}
struct VDir *VDirOpenArchive(const char *path) {
  struct VDir *dir = 0;
  return dir;
}


x86 assembly (clang, -O0):
<VDirOpenArchive>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<VDirOpenArchive>:
xor    %eax,%eax
ret

LLVM IR (-O0):
%struct.VDir = type opaque
define %struct.VDir* @VDirOpenArchive(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.VDir*
store i8* %0, i8** %2
store %struct.VDir* null, %struct.VDir** %3
%4 = load %struct.VDir*, %struct.VDir** %3
ret %struct.VDir* %4
}

LLVM IR (-O2):
%struct.VDir = type opaque
define noalias %struct.VDir* @VDirOpenArchive(i8* nocapture readnone %0) {
ret %struct.VDir* null
}
void dev_terminal_reset(void *dev) {}


x86 assembly (clang, -O0):
<dev_terminal_reset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<dev_terminal_reset>:
ret

LLVM IR (-O0):
define void @dev_terminal_reset(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret void
}

LLVM IR (-O2):
define void @dev_terminal_reset(i8* nocapture %0) {
ret void
}
/* Variables and functions */
scalar_t__ ai_get_player_score(int);
int /*<<< orphan*/ ai_set_player_score(int, scalar_t__);
void ai_add_player_score(int player, int addscore) {
  if (addscore)
    ai_set_player_score(player, ai_get_player_score(player) + addscore);
}


x86 assembly (clang, -O0):
<ai_add_player_score>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1158 <ai_add_player_score+0x38>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <ai_get_player_score@plt>
mov    -0xc(%rbp),%edi
mov    %rax,%rsi
movslq -0x8(%rbp),%rax
add    %rax,%rsi
call   1030 <ai_set_player_score@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ai_add_player_score>:
test   %esi,%esi
je     1143 <ai_add_player_score+0x23>
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %edi,%ebx
call   1040 <ai_get_player_score@plt>
movslq %ebp,%rsi
add    %rax,%rsi
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <ai_set_player_score@plt>
ret

LLVM IR (-O0):
define void @ai_add_player_score(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %2
%8 = load i32, i32* %3
%9 = load i32, i32* %3
%10 = call i64 @ai_get_player_score(i32 %9)
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = add nsw i64 %10, %12
%14 = call i32 @ai_set_player_score(i32 %8, i64 %13)
br label %15
15: ; preds = %7, %2
ret void
}

LLVM IR (-O2):
define void @ai_add_player_score(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = tail call i64 @ai_get_player_score(i32 %0)
%6 = sext i32 %1 to i64
%7 = add nsw i64 %5, %6
%8 = tail call i32 @ai_set_player_score(i32 %0, i64 %7)
br label %9
9: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ LOG_INFO;
int /*<<< orphan*/ _debug(char *, int, int /*<<< orphan*/, char *);
int /*<<< orphan*/ iptables_fw_set_authservers();
void fw_set_authservers(void) {
  _debug("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/heads/master/src/"
         "firewall.c",
         194, LOG_INFO, "Setting the authservers list");
  iptables_fw_set_authservers();
}


x86 assembly (clang, -O0):
<fw_set_authservers>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edx
lea    0xecc(%rip),%rdi
mov    $0xc2,%esi
lea    0xf4e(%rip),%rcx
call   1040 <_debug@plt>
mov    $0x0,%al
call   1030 <iptables_fw_set_authservers@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fw_set_authservers>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edx
lea    0xecf(%rip),%rdi
lea    0xf56(%rip),%rcx
mov    $0xc2,%esi
call   1040 <_debug@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <iptables_fw_set_authservers@plt>

LLVM IR (-O0):
@.str = [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/heads/master/src/firewall.c\00"
@LOG_INFO = global i32 0
@.str.1 = [29 x i8] c"Setting the authservers list\00"
define void @fw_set_authservers() {
%1 = load i32, i32* @LOG_INFO
%2 = call i32 @_debug(i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str, i64 0, i64 0), i32 194, i32 %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @iptables_fw_set_authservers()
ret void
}

LLVM IR (-O2):
@.str = [142 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/heads/master/src/firewall.c\00"
@LOG_INFO = global i32 0
@.str.1 = [29 x i8] c"Setting the authservers list\00"
define void @fw_set_authservers() {
%1 = load i32, i32* @LOG_INFO
%2 = tail call i32 @_debug(i8* getelementptr inbounds ([142 x i8], [142 x i8]* @.str, i64 0, i64 0), i32 194, i32 %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @iptables_fw_set_authservers()
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *, int /*<<< orphan*/);
int read_multprec_start_system(int decimals) {
  int *b, fail;
  double *c;
  fail = _ada_use_c2phc(493, &decimals, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<read_multprec_start_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x1ed,%edi
lea    -0x4(%rbp),%rsi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_multprec_start_system>:
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x1ed,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @read_multprec_start_system(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = alloca double*
store i32 %0, i32* %2
%6 = load i32*, i32** %3
%7 = load double*, double** %5
%8 = call i32 @_ada_use_c2phc(i32 493, i32* %2, i32* %6, double* %7, i32 0)
store i32 %8, i32* %4
%9 = load i32, i32* %4
ret i32 %9
}

LLVM IR (-O2):
define i32 @read_multprec_start_system(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @_ada_use_c2phc(i32 493, i32* %2, i32* undef, double* undef, i32 0)
ret i32 %3
}
int getMax(int a, int b) { return a > b ? a : b; }


x86 assembly (clang, -O0):
<getMax>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1121 <getMax+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <getMax+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getMax>:
mov    %esi,%eax
cmp    %esi,%edi
cmovg  %edi,%eax
ret

LLVM IR (-O0):
define i32 @getMax(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @getMax(i32 %0, i32 %1) {
%3 = icmp sgt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
int baz(void) { return -21; }


x86 assembly (clang, -O0):
<baz>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffffffeb,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<baz>:
mov    $0xffffffeb,%eax
ret

LLVM IR (-O0):
define i32 @baz() {
ret i32 -21
}

LLVM IR (-O2):
define i32 @baz() {
ret i32 -21
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  printf("%d", a + b);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%esi
add    -0x8(%rbp),%esi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    (%rsp),%esi
add    0x4(%rsp),%esi
lea    0xebf(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%4 = load i32, i32* %1
%5 = load i32, i32* %2
%6 = add nsw i32 %4, %5
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = add nsw i32 %7, %6
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %8)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int main() {
  int a;
  float b;
  a = 76;
  b = 45.43;
  b = (int)a;
  printf("%.2f", b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x4c,-0x8(%rbp)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeec(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 76, i32* %2
store float 0x4046B70A40000000, float* %3
%4 = load i32, i32* %2
%5 = sitofp i32 %4 to float
store float %5, float* %3
%6 = load float, float* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%.2f\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float 7.600000e+01)
ret i32 0
}
int trie_entier(const void *a, const void *b) {
  const int *i1 = a;
  const int *i2 = b;
  return *i1 - *i2;
}


x86 assembly (clang, -O0):
<trie_entier>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    -0x20(%rbp),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<trie_entier>:
mov    (%rdi),%eax
sub    (%rsi),%eax
ret

LLVM IR (-O0):
define i32 @trie_entier(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i32*
store i32* %8, i32** %5
%9 = load i8*, i8** %4
%10 = bitcast i8* %9 to i32*
store i32* %10, i32** %6
%11 = load i32*, i32** %5
%12 = load i32, i32* %11
%13 = load i32*, i32** %6
%14 = load i32, i32* %13
%15 = sub nsw i32 %12, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @trie_entier(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = bitcast i8* %1 to i32*
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = sub nsw i32 %5, %6
ret i32 %7
}
/* Type definitions */
struct hashlimit {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct hashlimit *);
void hashlimit_free(struct hashlimit *hl) { free(hl); }


x86 assembly (clang, -O0):
<hashlimit_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hashlimit_free>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.hashlimit = type { i32 }
define void @hashlimit_free(%struct.hashlimit* %0) {
%2 = alloca %struct.hashlimit*
store %struct.hashlimit* %0, %struct.hashlimit** %2
%3 = load %struct.hashlimit*, %struct.hashlimit** %2
%4 = call i32 @free(%struct.hashlimit* %3)
ret void
}

LLVM IR (-O2):
%struct.hashlimit = type { i32 }
define void @hashlimit_free(%struct.hashlimit* nocapture %0) {
%2 = tail call i32 @free(%struct.hashlimit* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PrintErrorCode();
int dxl_read_word(int, int);
int MaxLoad(int Id) {
  int MAXload;
  MAXload = dxl_read_word(Id, 14);
  PrintErrorCode();
  return MAXload;
}


x86 assembly (clang, -O0):
<MaxLoad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0xe,%esi
call   1030 <dxl_read_word@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <PrintErrorCode@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MaxLoad>:
push   %rbx
mov    $0xe,%esi
call   1030 <dxl_read_word@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <PrintErrorCode@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @MaxLoad(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @dxl_read_word(i32 %4, i32 14)
store i32 %5, i32* %3
%6 = call i32 (...) @PrintErrorCode()
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
define i32 @MaxLoad(i32 %0) {
%2 = tail call i32 @dxl_read_word(i32 %0, i32 14)
%3 = tail call i32 (...) @PrintErrorCode()
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ Embedded_Console_WriteChar(char);
int _write(int file, char *ptr, int len) {
  for (int todo = 0; todo < len; todo++) {
    char Ch = *ptr++;
    Embedded_Console_WriteChar(Ch);
  }
  return len;
}


x86 assembly (clang, -O0):
<_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1160 <_write+0x50>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
movsbl -0x19(%rbp),%edi
call   1030 <Embedded_Console_WriteChar@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1129 <_write+0x19>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_write>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
test   %edx,%edx
jle    1142 <_write+0x32>
mov    %rsi,%r15
mov    %r14d,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
movsbl (%r15,%rbx,1),%edi
call   1030 <Embedded_Console_WriteChar@plt>
add    $0x1,%rbx
cmp    %ebx,%ebp
jne    1130 <_write+0x20>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @_write(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
store i32 0, i32* %7
br label %9
9: ; preds = %19, %3
%10 = load i32, i32* %7
%11 = load i32, i32* %6
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = load i8*, i8** %5
%15 = getelementptr inbounds i8, i8* %14, i32 1
store i8* %15, i8** %5
%16 = load i8, i8* %14
store i8 %16, i8* %8
%17 = load i8, i8* %8
%18 = call i32 @Embedded_Console_WriteChar(i8 signext %17)
br label %19
19: ; preds = %13
%20 = load i32, i32* %7
%21 = add nsw i32 %20, 1
store i32 %21, i32* %7
br label %9
22: ; preds = %9
%23 = load i32, i32* %6
ret i32 %23
}

LLVM IR (-O2):
define i32 @_write(i32 %0, i8* nocapture %1, i32 returned %2) {
%4 = icmp sgt i32 %2, 0
br i1 %4, label %6, label %5
5: ; preds = %6, %3
ret i32 %2
6: ; preds = %3, %6
%7 = phi i8* [ %9, %6 ], [ %1, %3 ]
%8 = phi i32 [ %12, %6 ], [ 0, %3 ]
%9 = getelementptr inbounds i8, i8* %7, i64 1
%10 = load i8, i8* %7
%11 = tail call i32 @Embedded_Console_WriteChar(i8 signext %10)
%12 = add nuw nsw i32 %8, 1
%13 = icmp eq i32 %12, %2
br i1 %13, label %5, label %6
}
/* Variables and functions */
int get_line(char *);
int /*<<< orphan*/ printf(char *, int, char *);
int main() {
  int current_line_length = 0;
  char current_line[1024];
  while ((current_line_length = get_line(current_line)) > 0) {
    if (current_line_length >= 80) {
      printf("%-4d %s\n", current_line_length, current_line);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    -0x410(%rbp),%rdi
call   1030 <get_line@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jle    1176 <main+0x56>
cmpl   $0x50,-0x8(%rbp)
jl     1171 <main+0x51>
mov    -0x8(%rbp),%esi
lea    -0x410(%rbp),%rdx
lea    0xe94(%rip),%rdi
call   1040 <printf@plt>
jmp    1139 <main+0x19>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x408,%rsp
mov    %rsp,%rdi
call   1030 <get_line@plt>
test   %eax,%eax
jle    1170 <main+0x50>
lea    0xec3(%rip),%r14
mov    %rsp,%rbx
jmp    115c <main+0x3c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <get_line@plt>
test   %eax,%eax
jle    1170 <main+0x50>
cmp    $0x50,%eax
jb     1150 <main+0x30>
mov    %r14,%rdi
mov    %eax,%esi
mov    %rbx,%rdx
call   1040 <printf@plt>
jmp    1150 <main+0x30>
xor    %eax,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%-4d %s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [1024 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %15, %0
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%6 = call i32 @get_line(i8* %5)
store i32 %6, i32* %2
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %16
8: ; preds = %4
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 80
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, i32* %2
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%14 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %12, i8* %13)
br label %15
15: ; preds = %11, %8
br label %4
16: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%-4d %s\0A\00"
define i32 @main() {
%1 = alloca [1024 x i8]
%2 = getelementptr inbounds [1024 x i8], [1024 x i8]* %1, i64 0, i64 0
%3 = call i32 @get_line(i8* %2)
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %13
5: ; preds = %0, %10
%6 = phi i32 [ %11, %10 ], [ %3, %0 ]
%7 = icmp ugt i32 %6, 79
br i1 %7, label %8, label %10
8: ; preds = %5
%9 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %6, i8* %2)
br label %10
10: ; preds = %8, %5
%11 = call i32 @get_line(i8* %2)
%12 = icmp sgt i32 %11, 0
br i1 %12, label %5, label %13
13: ; preds = %10, %0
ret i32 0
}
int do_758() { return 758; }


x86 assembly (clang, -O0):
<do_758>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2f6,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_758>:
mov    $0x2f6,%eax
ret

LLVM IR (-O0):
define i32 @do_758() {
ret i32 758
}

LLVM IR (-O2):
define i32 @do_758() {
ret i32 758
}
/* Variables and functions */
int /*<<< orphan*/ iothub_devicetwin_sample_run();
int main(void) {
  iothub_devicetwin_sample_run();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <iothub_devicetwin_sample_run@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <iothub_devicetwin_sample_run@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @iothub_devicetwin_sample_run()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @iothub_devicetwin_sample_run()
ret i32 0
}
void glutDetachMenu(int button) {}


x86 assembly (clang, -O0):
<glutDetachMenu>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<glutDetachMenu>:
ret

LLVM IR (-O0):
define void @glutDetachMenu(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret void
}

LLVM IR (-O2):
define void @glutDetachMenu(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ test12();
int main(int argc, char **argv) {
  if (!test12())
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <test12@plt>
cmp    $0x0,%eax
jne    114d <main+0x2d>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <test12@plt>
test   %eax,%eax
je     1130 <main+0x10>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @test12()
%7 = icmp ne i32 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = call i32 (...) @abort()
unreachable
10: ; preds = %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test12()
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ __svgalib_driver32p_getbox(int, int, int, int, void *, int);
void __svgalib_driver32p_getboxpart(int x, int y, int w, int h, int ow, int oh,
                                    void *b, int xo, int yo) {
  __svgalib_driver32p_getbox(x, y, w, h, b + yo * ow * 4 + xo * 4, ow);
}


x86 assembly (clang, -O0):
<__svgalib_driver32p_getboxpart>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    0x10(%rbp),%r8
mov    0x20(%rbp),%eax
imul   -0x14(%rbp),%eax
shl    $0x2,%eax
cltq
add    %rax,%r8
mov    0x18(%rbp),%eax
shl    $0x2,%eax
cltq
add    %rax,%r8
mov    -0x14(%rbp),%r9d
call   1030 <__svgalib_driver32p_getbox@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__svgalib_driver32p_getboxpart>:
mov    %r8d,%r9d
mov    0x18(%rsp),%eax
imul   %r8d,%eax
shl    $0x2,%eax
movslq %eax,%r10
add    0x8(%rsp),%r10
mov    0x10(%rsp),%eax
shl    $0x2,%eax
movslq %eax,%r8
add    %r10,%r8
jmp    1030 <__svgalib_driver32p_getbox@plt>

LLVM IR (-O0):
define void @__svgalib_driver32p_getboxpart(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i8* %6, i32 %7, i32 %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8*
%17 = alloca i32
%18 = alloca i32
store i32 %0, i32* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store i32 %3, i32* %13
store i32 %4, i32* %14
store i32 %5, i32* %15
store i8* %6, i8** %16
store i32 %7, i32* %17
store i32 %8, i32* %18
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = load i32, i32* %12
%22 = load i32, i32* %13
%23 = load i8*, i8** %16
%24 = load i32, i32* %18
%25 = load i32, i32* %14
%26 = mul nsw i32 %24, %25
%27 = mul nsw i32 %26, 4
%28 = sext i32 %27 to i64
%29 = getelementptr i8, i8* %23, i64 %28
%30 = load i32, i32* %17
%31 = mul nsw i32 %30, 4
%32 = sext i32 %31 to i64
%33 = getelementptr i8, i8* %29, i64 %32
%34 = load i32, i32* %14
%35 = call i32 @__svgalib_driver32p_getbox(i32 %19, i32 %20, i32 %21, i32 %22, i8* %33, i32 %34)
ret void
}

LLVM IR (-O2):
define void @__svgalib_driver32p_getboxpart(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i8* %6, i32 %7, i32 %8) {
%10 = shl i32 %4, 2
%11 = mul i32 %10, %8
%12 = sext i32 %11 to i64
%13 = getelementptr i8, i8* %6, i64 %12
%14 = shl nsw i32 %7, 2
%15 = sext i32 %14 to i64
%16 = getelementptr i8, i8* %13, i64 %15
%17 = tail call i32 @__svgalib_driver32p_getbox(i32 %0, i32 %1, i32 %2, i32 %3, i8* %16, i32 %4)
ret void
}
void b43_debugfs_log_txstat(struct b43_wldev *dev,
                            const struct b43_txstatus *status) {}


x86 assembly (clang, -O0):
<b43_debugfs_log_txstat>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<b43_debugfs_log_txstat>:
ret

LLVM IR (-O0):
%struct.b43_wldev = type opaque
%struct.b43_txstatus = type opaque
define void @b43_debugfs_log_txstat(%struct.b43_wldev* %0, %struct.b43_txstatus* %1) {
%3 = alloca %struct.b43_wldev*
%4 = alloca %struct.b43_txstatus*
store %struct.b43_wldev* %0, %struct.b43_wldev** %3
store %struct.b43_txstatus* %1, %struct.b43_txstatus** %4
ret void
}

LLVM IR (-O2):
%struct.b43_wldev = type opaque
%struct.b43_txstatus = type opaque
define void @b43_debugfs_log_txstat(%struct.b43_wldev* nocapture %0, %struct.b43_txstatus* nocapture %1) {
ret void
}
void arm_ldc2() {}


x86 assembly (clang, -O0):
<arm_ldc2>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arm_ldc2>:
ret

LLVM IR (-O0):
define void @arm_ldc2() {
ret void
}

LLVM IR (-O2):
define void @arm_ldc2() {
ret void
}
void SmartMac_Input(void) {}


x86 assembly (clang, -O0):
<SmartMac_Input>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SmartMac_Input>:
ret

LLVM IR (-O0):
define void @SmartMac_Input() {
ret void
}

LLVM IR (-O2):
define void @SmartMac_Input() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void so_fini2(void) {
  printf("so_fini2"
         "\n");
}


x86 assembly (clang, -O0):
<so_fini2>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<so_fini2>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"so_fini2\0A\00"
define void @so_fini2() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"so_fini2\00"
define void @so_fini2() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
ret void
}
void snd_un_init() { return; }


x86 assembly (clang, -O0):
<snd_un_init>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<snd_un_init>:
ret

LLVM IR (-O0):
define void @snd_un_init() {
ret void
}

LLVM IR (-O2):
define void @snd_un_init() {
ret void
}
void recupererPositionCoupJoueurMorpion(int *ligne, int *colonne,
                                        int position) {
  int placement[9][2] = {{0, 0}, {0, 1}, {0, 2}, {1, 0}, {1, 1},
                         {1, 2}, {2, 0}, {2, 1}, {2, 2}};
  *ligne = placement[position - 1][0];
  *colonne = placement[position - 1][1];
}


x86 assembly (clang, -O0):
<recupererPositionCoupJoueurMorpion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xed2(%rip),%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x60(%rbp,%rax,8),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x5c(%rbp,%rax,8),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recupererPositionCoupJoueurMorpion>:
movslq %edx,%rax
lea    0xef6(%rip),%rcx
mov    -0x8(%rcx,%rax,8),%edx
mov    -0x4(%rcx,%rax,8),%eax
mov    %edx,(%rdi)
mov    %eax,(%rsi)
ret

LLVM IR (-O0):
@__const.recupererPositionCoupJoueurMorpion.placement = [9 x [2 x i32]] [[2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 2], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 2, i32 0], [2 x i32] [i32 2, i32 1], [2 x i32] [i32 2, i32 2]]
define void @recupererPositionCoupJoueurMorpion(i32* %0, i32* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca [9 x [2 x i32]]
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32 %2, i32* %6
%8 = bitcast [9 x [2 x i32]]* %7 to i8*
%9 = load i32, i32* %6
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [9 x [2 x i32]], [9 x [2 x i32]]* %7, i64 0, i64 %11
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %12, i64 0, i64 0
%14 = load i32, i32* %13
%15 = load i32*, i32** %4
store i32 %14, i32* %15
%16 = load i32, i32* %6
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [9 x [2 x i32]], [9 x [2 x i32]]* %7, i64 0, i64 %18
%20 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 1
%21 = load i32, i32* %20
%22 = load i32*, i32** %5
store i32 %21, i32* %22
ret void
}

LLVM IR (-O2):
@__const.recupererPositionCoupJoueurMorpion.placement = [9 x [2 x i32]] [[2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 2], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 2, i32 0], [2 x i32] [i32 2, i32 1], [2 x i32] [i32 2, i32 2]]
define void @recupererPositionCoupJoueurMorpion(i32* nocapture writeonly %0, i32* nocapture writeonly %1, i32 %2) {
%4 = add nsw i32 %2, -1
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds [9 x [2 x i32]], [9 x [2 x i32]]* @__const.recupererPositionCoupJoueurMorpion.placement, i64 0, i64 %5, i64 0
%7 = load i32, i32* %6
store i32 %7, i32* %0
%8 = getelementptr inbounds [9 x [2 x i32]], [9 x [2 x i32]]* @__const.recupererPositionCoupJoueurMorpion.placement, i64 0, i64 %5, i64 1
%9 = load i32, i32* %8
store i32 %9, i32* %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ GLfloat;

/* Variables and functions */
int /*<<< orphan*/ glTexCoord3f(int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/);
void TexCoord3f(GLfloat s, GLfloat t, GLfloat r) { glTexCoord3f(s, t, r); }


x86 assembly (clang, -O0):
<TexCoord3f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <glTexCoord3f@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TexCoord3f>:
jmp    1030 <glTexCoord3f@plt>

LLVM IR (-O0):
define void @TexCoord3f(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i32, i32* %6
%10 = call i32 @glTexCoord3f(i32 %7, i32 %8, i32 %9)
ret void
}

LLVM IR (-O2):
define void @TexCoord3f(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @glTexCoord3f(i32 %0, i32 %1, i32 %2)
ret void
}
char *langDbgDevRamMapper() { return "RAM Mapper"; }


x86 assembly (clang, -O0):
<langDbgDevRamMapper>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<langDbgDevRamMapper>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [11 x i8] c"RAM Mapper\00"
define i8* @langDbgDevRamMapper() {
ret i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [11 x i8] c"RAM Mapper\00"
define i8* @langDbgDevRamMapper() {
ret i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0)
}
int vde_chain_nm4_alloc(void **mem, const int *idata, const double *rdata) {
  if (mem)
    *mem = 0;
  (void)idata;
  (void)rdata;
  return 0;
}


x86 assembly (clang, -O0):
<vde_chain_nm4_alloc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1126 <vde_chain_nm4_alloc+0x26>
mov    -0x8(%rbp),%rax
movq   $0x0,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<vde_chain_nm4_alloc>:
test   %rdi,%rdi
je     110c <vde_chain_nm4_alloc+0xc>
movq   $0x0,(%rdi)
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @vde_chain_nm4_alloc(i8** %0, i32* %1, double* %2) {
%4 = alloca i8**
%5 = alloca i32*
%6 = alloca double*
store i8** %0, i8*** %4
store i32* %1, i32** %5
store double* %2, double** %6
%7 = load i8**, i8*** %4
%8 = icmp ne i8** %7, null
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = load i8**, i8*** %4
store i8* null, i8** %10
br label %11
11: ; preds = %9, %3
%12 = load i32*, i32** %5
%13 = load double*, double** %6
ret i32 0
}

LLVM IR (-O2):
define i32 @vde_chain_nm4_alloc(i8** writeonly %0, i32* nocapture readnone %1, double* nocapture readnone %2) {
%4 = icmp eq i8** %0, null
br i1 %4, label %6, label %5
5: ; preds = %3
store i8* null, i8** %0
br label %6
6: ; preds = %5, %3
ret i32 0
}
int xlist_number_key_cmp(int identifier1, int identifier2) {
  return (identifier1 == identifier2) ? 0 : 1;
}


x86 assembly (clang, -O0):
<xlist_number_key_cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%esi
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    %esi,%edx
cmove  %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xlist_number_key_cmp>:
xor    %eax,%eax
cmp    %esi,%edi
setne  %al
ret

LLVM IR (-O0):
define i32 @xlist_number_key_cmp(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp eq i32 %5, %6
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 0, i32 1
ret i32 %9
}

LLVM IR (-O2):
define i32 @xlist_number_key_cmp(i32 %0, i32 %1) {
%3 = icmp ne i32 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
void redLoop() {}


x86 assembly (clang, -O0):
<redLoop>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<redLoop>:
ret

LLVM IR (-O0):
define void @redLoop() {
ret void
}

LLVM IR (-O2):
define void @redLoop() {
ret void
}
int main(int argc, char *argv[]) {
  int arg_c = argc;
  char *prog_name = argv[0];
  char *file_name = argv[1];
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
store i32 %9, i32* %6
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
store i8* %12, i8** %7
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
store i8* %15, i8** %8
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void badusage(void) {
  fprintf(
      stderr,
      "Usage: gpsubpres [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l] [-f]\n");
  fprintf(stderr, "\t\t  groupname [subname].\n");
  exit(1);
}


x86 assembly (clang, -O0):
<badusage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xefa(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<badusage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf04(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [67 x i8] c"Usage: gpsubpres [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l] [-f]\0A\00"
@.str.1 = [26 x i8] c"\09\09 groupname [subname].\0A\00"
define void @badusage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [67 x i8] c"Usage: gpsubpres [-ip d/s[dr]] [-op d/s] [-silent] [-v] [-l] [-f]\0A\00"
@.str.1 = [26 x i8] c"\09\09 groupname [subname].\0A\00"
define void @badusage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}
unsigned int lshift(unsigned int x, int s) {
  x &= 0xFFFFFFFF;
  return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s));
}


x86 assembly (clang, -O0):
<lshift>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
and    $0xffffffff,%eax
mov    -0x4(%rbp),%edx
mov    $0x20,%ecx
sub    -0x8(%rbp),%ecx
shr    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lshift>:
mov    %esi,%ecx
mov    %edi,%eax
rol    %cl,%eax
ret

LLVM IR (-O0):
define i32 @lshift(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = and i32 %5, -1
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = shl i32 %7, %8
%10 = and i32 %9, -1
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = sub nsw i32 32, %12
%14 = lshr i32 %11, %13
%15 = or i32 %10, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @lshift(i32 %0, i32 %1) {
%3 = shl i32 %0, %1
%4 = sub nsw i32 32, %1
%5 = lshr i32 %0, %4
%6 = or i32 %5, %3
ret i32 %6
}
unsigned int wcnss_get_serial_number(void) { return 0; }


x86 assembly (clang, -O0):
<wcnss_get_serial_number>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wcnss_get_serial_number>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @wcnss_get_serial_number() {
ret i32 0
}

LLVM IR (-O2):
define i32 @wcnss_get_serial_number() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ ccvt_yuyv(int, int, unsigned char const *, unsigned char *,
                             int);
void ccvt_yuyv_bgr32(int width, int height, const void *src, void *dst) {
  ccvt_yuyv(width, height, (const unsigned char *)src, (unsigned char *)dst, 4);
}


x86 assembly (clang, -O0):
<ccvt_yuyv_bgr32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <ccvt_yuyv@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ccvt_yuyv_bgr32>:
mov    $0x4,%r8d
jmp    1030 <ccvt_yuyv@plt>

LLVM IR (-O0):
define void @ccvt_yuyv_bgr32(i32 %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = load i8*, i8** %7
%12 = load i8*, i8** %8
%13 = call i32 @ccvt_yuyv(i32 %9, i32 %10, i8* %11, i8* %12, i32 4)
ret void
}

LLVM IR (-O2):
define void @ccvt_yuyv_bgr32(i32 %0, i32 %1, i8* %2, i8* %3) {
%5 = tail call i32 @ccvt_yuyv(i32 %0, i32 %1, i8* %2, i8* %3, i32 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ eliminarLock(char *);
void eliminarLogger() { eliminarLock("log.txt"); }


x86 assembly (clang, -O0):
<eliminarLogger>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <eliminarLock@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<eliminarLogger>:
lea    0xee9(%rip),%rdi
jmp    1030 <eliminarLock@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"log.txt\00"
define void @eliminarLogger() {
%1 = call i32 @eliminarLock(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"log.txt\00"
define void @eliminarLogger() {
%1 = tail call i32 @eliminarLock(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int pow(float, int);
float sin(float);
float f(float x) { return 2 * pow(x, 2) + sin(x) - 10; }


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
shl    $0x1,%eax
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <sin@plt>
movaps %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
addss  %xmm1,%xmm0
movss  0xe9a(%rip),%xmm1
subss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rax
movss  %xmm0,0x4(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
add    %eax,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm0,(%rsp)
movss  0x4(%rsp),%xmm0
call   1030 <sin@plt>
addss  (%rsp),%xmm0
addss  0xea9(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @f(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i32 @pow(float %3, i32 2)
%5 = mul nsw i32 2, %4
%6 = sitofp i32 %5 to float
%7 = load float, float* %2
%8 = call float @sin(float %7)
%9 = fadd float %6, %8
%10 = fsub float %9, 1.000000e+01
ret float %10
}

LLVM IR (-O2):
define float @f(float %0) {
%2 = tail call i32 @pow(float %0, i32 2)
%3 = shl nsw i32 %2, 1
%4 = sitofp i32 %3 to float
%5 = tail call float @sin(float %0)
%6 = fadd float %5, %4
%7 = fadd float %6, -1.000000e+01
ret float %7
}
/* Type definitions */
struct stat {
  scalar_t__ st_mtime;
};

/* Variables and functions */
int file_older(const struct stat *left, const struct stat *right) {
  return left->st_mtime >= right->st_mtime;
}


x86 assembly (clang, -O0):
<file_older>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%rax
setge  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_older>:
mov    (%rdi),%rcx
xor    %eax,%eax
cmp    (%rsi),%rcx
setge  %al
ret

LLVM IR (-O0):
%struct.stat = type { i64 }
define i32 @file_older(%struct.stat* %0, %struct.stat* %1) {
%3 = alloca %struct.stat*
%4 = alloca %struct.stat*
store %struct.stat* %0, %struct.stat** %3
store %struct.stat* %1, %struct.stat** %4
%5 = load %struct.stat*, %struct.stat** %3
%6 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 0
%7 = load i64, i64* %6
%8 = load %struct.stat*, %struct.stat** %4
%9 = getelementptr inbounds %struct.stat, %struct.stat* %8, i32 0, i32 0
%10 = load i64, i64* %9
%11 = icmp sge i64 %7, %10
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
%struct.stat = type { i64 }
define i32 @file_older(%struct.stat* nocapture %0, %struct.stat* nocapture %1) {
%3 = getelementptr inbounds %struct.stat, %struct.stat* %0, i64 0, i32 0
%4 = load i64, i64* %3
%5 = getelementptr inbounds %struct.stat, %struct.stat* %1, i64 0, i32 0
%6 = load i64, i64* %5
%7 = icmp sge i64 %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}