xunge/DecIR huggingface dataset:
void cirset_(ixc1, iyc1, irad, npix, nrast) int *npix, *nrast;
int *ixc1, *iyc1, *irad;
{ circle_set(ixc1, iyc1, irad, *npix, *nrast); }


x86 assembly (clang, -O0):
<cirset_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
mov    -0x28(%rbp),%rax
mov    (%rax),%r8d
mov    $0x0,%al
call   1030 <circle_set@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cirset_>:
mov    (%rcx),%ecx
mov    (%r8),%r8d
xor    %eax,%eax
jmp    1030 <circle_set@plt>

LLVM IR (-O0):
define void @cirset_(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4) {
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
store i32* %0, i32** %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i32* %4, i32** %10
%11 = load i32*, i32** %6
%12 = load i32*, i32** %7
%13 = load i32*, i32** %8
%14 = load i32*, i32** %9
%15 = load i32, i32* %14
%16 = load i32*, i32** %10
%17 = load i32, i32* %16
%18 = call i32 (i32*, i32*, i32*, i32, i32, ...) bitcast (i32 (...)* @circle_set to i32 (i32*, i32*, i32*, i32, i32, ...)*)(i32* %11, i32* %12, i32* %13, i32 %15, i32 %17)
ret void
}

LLVM IR (-O2):
define void @cirset_(i32* %0, i32* %1, i32* %2, i32* nocapture %3, i32* nocapture %4) {
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = tail call i32 (i32*, i32*, i32*, i32, i32, ...) bitcast (i32 (...)* @circle_set to i32 (i32*, i32*, i32*, i32, i32, ...)*)(i32* %0, i32* %1, i32* %2, i32 %6, i32 %7)
ret void
}
/* Variables and functions */
unsigned long long _bzhi_u64(unsigned long long, int);
unsigned long long f32(unsigned long long x) { return _bzhi_u64(x, 257); }


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

x86 assembly (clang, -O2):
<f32>:
mov    $0x101,%esi
jmp    1030 <_bzhi_u64@plt>

LLVM IR (-O0):
define i64 @f32(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i64 @_bzhi_u64(i64 %3, i32 257)
ret i64 %4
}

LLVM IR (-O2):
define i64 @f32(i64 %0) {
%2 = tail call i64 @_bzhi_u64(i64 %0, i32 257)
ret i64 %2
}
void touch_specification() {}


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

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

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

LLVM IR (-O2):
define void @touch_specification() {
ret void
}
/* Variables and functions */
int strcmp(char const *, char const *);
int plain(const void *a, const void *b) {
  const char *sa = *(char **)a;
  const char *sb = *(char **)b;
  return strcmp(sa, sb);
}


x86 assembly (clang, -O0):
<plain>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <strcmp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plain>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @plain(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(1) %6)
ret i32 %7
}
long goodk(long n, long h, long l, long m) { return (h * m) / n; }


x86 assembly (clang, -O0):
<goodk>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
imul   -0x20(%rbp),%rax
cqto
idivq  -0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<goodk>:
mov    %rsi,%rax
imul   %rcx,%rax
mov    %rax,%rcx
or     %rdi,%rcx
shr    $0x20,%rcx
je     1119 <goodk+0x19>
cqto
idiv   %rdi
ret
xor    %edx,%edx
div    %edi
ret

LLVM IR (-O0):
define i64 @goodk(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%9 = load i64, i64* %6
%10 = load i64, i64* %8
%11 = mul nsw i64 %9, %10
%12 = load i64, i64* %5
%13 = sdiv i64 %11, %12
ret i64 %13
}

LLVM IR (-O2):
define i64 @goodk(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = mul nsw i64 %3, %1
%6 = sdiv i64 %5, %0
ret i64 %6
}
/* Variables and functions */
int /*<<< orphan*/ hash(int);
void test() {
  { hash(2); };
  { hash(1); };
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2,%edi
call   1030 <hash@plt>
mov    $0x1,%edi
call   1030 <hash@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
mov    $0x2,%edi
call   1030 <hash@plt>
mov    $0x1,%edi
pop    %rax
jmp    1030 <hash@plt>

LLVM IR (-O0):
define void @test() {
%1 = call i32 @hash(i32 2)
%2 = call i32 @hash(i32 1)
ret void
}

LLVM IR (-O2):
define void @test() {
%1 = tail call i32 @hash(i32 2)
%2 = tail call i32 @hash(i32 1)
ret void
}
int Round(double x) {
  int result;
  if (x < 0.0)
    result = (int)(x - 0.5);
  else
    result = (int)(x + 0.5);
  return result;
}


x86 assembly (clang, -O0):
<Round>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1134 <Round+0x34>
movsd  -0x8(%rbp),%xmm0
movsd  0xedc(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
jmp    1148 <Round+0x48>
movsd  0xec4(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Round>:
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm0,%xmm1
seta   %al
lea    0xeec(%rip),%rcx
addsd  (%rcx,%rax,8),%xmm0
cvttsd2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @Round(double %0) {
%2 = alloca double
%3 = alloca i32
store double %0, double* %2
%4 = load double, double* %2
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load double, double* %2
%8 = fsub double %7, 5.000000e-01
%9 = fptosi double %8 to i32
store i32 %9, i32* %3
br label %14
10: ; preds = %1
%11 = load double, double* %2
%12 = fadd double %11, 5.000000e-01
%13 = fptosi double %12 to i32
store i32 %13, i32* %3
br label %14
14: ; preds = %10, %6
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
define i32 @Round(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = select i1 %2, double -5.000000e-01, double 5.000000e-01
%4 = fadd double %3, %0
%5 = fptosi double %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ call6h(unsigned short, unsigned int, unsigned long);
void call6g(unsigned char uc, unsigned short us, unsigned int ui,
            unsigned long ul) {
  uc = uc;
  call6h(us, ui, ul);
}


x86 assembly (clang, -O0):
<call6g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %dil,%sil
mov    %sil,-0x1(%rbp)
mov    %ax,-0x4(%rbp)
mov    %edx,-0x8(%rbp)
mov    %rcx,-0x10(%rbp)
mov    -0x1(%rbp),%al
mov    %al,-0x1(%rbp)
mov    -0x4(%rbp),%ax
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
movzwl %ax,%edi
call   1030 <call6h@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call6g>:
mov    %esi,%edi
mov    %edx,%esi
mov    %rcx,%rdx
jmp    1030 <call6h@plt>

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

LLVM IR (-O2):
define void @call6g(i8 zeroext %0, i16 zeroext %1, i32 %2, i64 %3) {
%5 = tail call i32 @call6h(i16 zeroext %1, i32 %2, i64 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SuperDelay();
void Select(int row) {
  *(volatile unsigned int *)(0xFFFFFFE0 + 0x0C) = 8 | 2;
  SuperDelay();
  *(volatile unsigned int *)(0xFFFFFFE0 + 0x0C) = 2;
}


x86 assembly (clang, -O0):
<Select>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0xffffffec,%eax
movl   $0xa,(%rax)
mov    $0x0,%al
call   1030 <SuperDelay@plt>
mov    $0xffffffec,%eax
movl   $0x2,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Select>:
push   %rbx
mov    $0xffffffec,%ebx
movl   $0xa,(%rbx)
xor    %eax,%eax
call   1030 <SuperDelay@plt>
movl   $0x2,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @Select(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
store volatile i32 10, i32* inttoptr (i64 4294967276 to i32*)
%3 = call i32 (...) @SuperDelay()
store volatile i32 2, i32* inttoptr (i64 4294967276 to i32*)
ret void
}

LLVM IR (-O2):
define void @Select(i32 %0) {
store volatile i32 10, i32* inttoptr (i64 4294967276 to i32*)
%2 = tail call i32 (...) @SuperDelay()
store volatile i32 2, i32* inttoptr (i64 4294967276 to i32*)
ret void
}
void foo7(struct cell *c) {}


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

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

LLVM IR (-O0):
%struct.cell = type opaque
define void @foo7(%struct.cell* %0) {
%2 = alloca %struct.cell*
store %struct.cell* %0, %struct.cell** %2
ret void
}

LLVM IR (-O2):
%struct.cell = type opaque
define void @foo7(%struct.cell* nocapture %0) {
ret void
}
/* Variables and functions */
int getfileinfo(char const *, int *);
int fileutils___getfileinfo(const char *filename, int *i) {
  return (getfileinfo(filename, i));
}


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

x86 assembly (clang, -O2):
<fileutils___getfileinfo>:
jmp    1030 <getfileinfo@plt>

LLVM IR (-O0):
define i32 @fileutils___getfileinfo(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
%5 = load i8*, i8** %3
%6 = load i32*, i32** %4
%7 = call i32 @getfileinfo(i8* %5, i32* %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @fileutils___getfileinfo(i8* %0, i32* %1) {
%3 = tail call i32 @getfileinfo(i8* %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ __builtin_lrintf(float);
int /*<<< orphan*/ link_failure_builtin_lrintf();
void test_builtin_lrintf(float f) {
  if (__builtin_lrintf(f) != __builtin_lrintf(f))
    link_failure_builtin_lrintf();
}


x86 assembly (clang, -O0):
<test_builtin_lrintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <lrintf@plt>
mov    %rax,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <lrintf@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
je     115c <test_builtin_lrintf+0x3c>
mov    $0x0,%al
call   1040 <link_failure_builtin_lrintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_builtin_lrintf>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0xc(%rsp)
call   1030 <lrintf@plt>
mov    %rax,%rbx
movss  0xc(%rsp),%xmm0
call   1030 <lrintf@plt>
cmp    %rax,%rbx
jne    1149 <test_builtin_lrintf+0x29>
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
jmp    1040 <link_failure_builtin_lrintf@plt>

LLVM IR (-O0):
define void @test_builtin_lrintf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i64 @lrintf(float %3)
%5 = load float, float* %2
%6 = call i64 @lrintf(float %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_builtin_lrintf()
br label %10
10: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
define void @test_builtin_lrintf(float %0) {
%2 = tail call i64 @lrintf(float %0)
%3 = tail call i64 @lrintf(float %0)
%4 = icmp eq i64 %2, %3
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 (...) @link_failure_builtin_lrintf()
br label %7
7: ; preds = %5, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ msock_close_socket(int /*<<< orphan*/);
int /*<<< orphan*/ msock_get_socket();
void msock_close(void) { msock_close_socket(msock_get_socket()); }


x86 assembly (clang, -O0):
<msock_close>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <msock_get_socket@plt>
mov    %eax,%edi
call   1040 <msock_close_socket@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<msock_close>:
push   %rax
xor    %eax,%eax
call   1030 <msock_get_socket@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <msock_close_socket@plt>

LLVM IR (-O0):
define void @msock_close() {
%1 = call i32 (...) @msock_get_socket()
%2 = call i32 @msock_close_socket(i32 %1)
ret void
}

LLVM IR (-O2):
define void @msock_close() {
%1 = tail call i32 (...) @msock_get_socket()
%2 = tail call i32 @msock_close_socket(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ nullf(char *, unsigned int);
int /*<<< orphan*/ output_byte(int);
void emit_fucomip(unsigned int r) {
  nullf("fucomip %d\n", r);
  assert(r < 8);
  output_byte(0xdf);
  output_byte(0xe8 + r);
}


x86 assembly (clang, -O0):
<emit_fucomip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xebb(%rip),%rdi
call   1030 <nullf@plt>
cmpl   $0x8,-0x4(%rbp)
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    $0xdf,%edi
call   1040 <output_byte@plt>
mov    -0x4(%rbp),%edi
add    $0xe8,%edi
call   1040 <output_byte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<emit_fucomip>:
push   %rbx
mov    %edi,%ebx
lea    0xec6(%rip),%rdi
mov    %ebx,%esi
call   1030 <nullf@plt>
xor    %edi,%edi
cmp    $0x8,%ebx
setb   %dil
call   1050 <assert@plt>
mov    $0xdf,%edi
call   1040 <output_byte@plt>
add    $0xe8,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1040 <output_byte@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"fucomip %d\0A\00"
define void @emit_fucomip(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @nullf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = icmp ult i32 %5, 8
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = call i32 @output_byte(i32 223)
%10 = load i32, i32* %2
%11 = add i32 232, %10
%12 = call i32 @output_byte(i32 %11)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"fucomip %d\0A\00"
define void @emit_fucomip(i32 %0) {
%2 = tail call i32 @nullf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = icmp ult i32 %0, 8
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
%6 = tail call i32 @output_byte(i32 223)
%7 = add i32 %0, 232
%8 = tail call i32 @output_byte(i32 %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, long);
int /*<<< orphan*/ stderr;
void _checkIndexArray(long *a, long i) {
  if (i < 0 || i >= a[-1]) {
    fprintf(stderr, "indice %ld excedido!\n", i);
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<_checkIndexArray>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jl     114d <_checkIndexArray+0x2d>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
cmp    -0x8(%rcx),%rax
jl     1170 <_checkIndexArray+0x50>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe9f(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_checkIndexArray>:
push   %rax
mov    %rsi,%rdx
test   %rsi,%rsi
js     1131 <_checkIndexArray+0x11>
cmp    %rdx,-0x8(%rdi)
jle    1131 <_checkIndexArray+0x11>
pop    %rax
ret
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
lea    0xebf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [22 x i8] c"indice %ld excedido!\0A\00"
define void @_checkIndexArray(i64* %0, i64 %1) {
%3 = alloca i64*
%4 = alloca i64
store i64* %0, i64** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = icmp slt i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %2
%8 = load i64, i64* %4
%9 = load i64*, i64** %3
%10 = getelementptr inbounds i64, i64* %9, i64 -1
%11 = load i64, i64* %10
%12 = icmp sge i64 %8, %11
br i1 %12, label %13, label %18
13: ; preds = %7, %2
%14 = load i32, i32* @stderr
%15 = load i64, i64* %4
%16 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 %15)
%17 = call i32 @exit(i32 -1)
unreachable
18: ; preds = %7
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [22 x i8] c"indice %ld excedido!\0A\00"
define void @_checkIndexArray(i64* nocapture %0, i64 %1) {
%3 = icmp slt i64 %1, 0
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = getelementptr inbounds i64, i64* %0, i64 -1
%6 = load i64, i64* %5
%7 = icmp sgt i64 %6, %1
br i1 %7, label %12, label %8
8: ; preds = %4, %2
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 %1)
%11 = tail call i32 @exit(i32 -1)
unreachable
12: ; preds = %4
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ ASSERT(int);
uint32_t EMACAddrFilterGet(uint32_t ui32Base, uint32_t ui32Index) {
  ASSERT(ui32Index < 4);
  ASSERT(ui32Index);
  return ((*((volatile uint32_t *)(ui32Base +
                                   (0x00000040 + ((0x0000004C - 0x00000044) *
                                                  (ui32Index)))))) &
          (0x3F000000 | 0x80000000 | 0x40000000));
}


x86 assembly (clang, -O0):
<EMACAddrFilterGet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x4,-0x8(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <ASSERT@plt>
mov    -0x8(%rbp),%edi
call   1030 <ASSERT@plt>
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x3,%ecx
add    $0x40,%ecx
add    %ecx,%eax
cltq
mov    (%rax),%eax
and    $0xff000000,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EMACAddrFilterGet>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%r14d
xor    %edi,%edi
cmp    $0x4,%esi
setl   %dil
call   1030 <ASSERT@plt>
mov    %ebx,%edi
call   1030 <ASSERT@plt>
lea    (%r14,%rbx,8),%eax
add    $0x40,%eax
movslq %eax,%rcx
mov    $0xff000000,%eax
and    (%rcx),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @EMACAddrFilterGet(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 slt i32 %5, 4
%7 = zext i1 %6 to i32
%8 = call i32 @ASSERT(i32 %7)
%9 = load i32, i32* %4
%10 = call i32 @ASSERT(i32 %9)
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = mul nsw i32 8, %12
%14 = add nsw i32 64, %13
%15 = add nsw i32 %11, %14
%16 = sext i32 %15 to i64
%17 = inttoptr i64 %16 to i32*
%18 = load volatile i32, i32* %17
%19 = and i32 %18, -16777216
ret i32 %19
}

LLVM IR (-O2):
define i32 @EMACAddrFilterGet(i32 %0, i32 %1) {
%3 = icmp slt i32 %1, 4
%4 = zext i1 %3 to i32
%5 = tail call i32 @ASSERT(i32 %4)
%6 = tail call i32 @ASSERT(i32 %1)
%7 = shl nsw i32 %1, 3
%8 = add i32 %0, 64
%9 = add i32 %8, %7
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i32*
%12 = load volatile i32, i32* %11
%13 = and i32 %12, -16777216
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ readnext(int);
void op_readnext() { readnext(1); }


x86 assembly (clang, -O0):
<op_readnext>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <readnext@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_readnext>:
mov    $0x1,%edi
jmp    1030 <readnext@plt>

LLVM IR (-O0):
define void @op_readnext() {
%1 = call i32 @readnext(i32 1)
ret void
}

LLVM IR (-O2):
define void @op_readnext() {
%1 = tail call i32 @readnext(i32 1)
ret void
}
toomany(s) char *s;
{
  char buffer[200];
  sprintf(buffer, "limit of %d exceeded, too many %s", 32767, s);
  fatal(buffer);
}


x86 assembly (clang, -O0):
<toomany>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0xe0(%rbp),%rdi
mov    -0x10(%rbp),%rcx
lea    0xebf(%rip),%rsi
mov    $0x7fff,%edx
mov    $0x0,%al
call   1030 <sprintf@plt>
lea    -0xe0(%rbp),%rdi
mov    $0x0,%al
call   1040 <fatal@plt>
mov    -0x4(%rbp),%eax
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toomany>:
push   %rbx
sub    $0xd0,%rsp
mov    %rdi,%rcx
lea    0xece(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x7fff,%edx
xor    %eax,%eax
call   1030 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <fatal@plt>
add    $0xd0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"limit of %d exceeded, too many %s\00"
define i32 @toomany(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [200 x i8]
store i8* %0, i8** %3
%5 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%6 = load i8*, i8** %3
%7 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 32767, i8* %6)
%8 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @fatal to i32 (i8*, ...)*)(i8* %8)
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
@.str = [34 x i8] c"limit of %d exceeded, too many %s\00"
define i32 @toomany(i8* %0) {
%2 = alloca [200 x i8]
%3 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%4 = call i32 (i8*, i8*, ...) @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 32767, i8* %0)
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @fatal to i32 (i8*, ...)*)(i8* %3)
ret i32 undef
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
int /*<<< orphan*/ a(int **, int);
int main() {
  uint8_t *array = NULL;
  a(&array, sizeof(uint8_t) * 2);
  array[0] = 1;
  array[1] = 3;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movq   $0x0,-0x8(%rbp)
lea    -0x8(%rbp),%rdi
mov    $0x8,%esi
call   1030 <a@plt>
mov    -0x8(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x8(%rbp),%rax
movl   $0x3,0x4(%rax)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movq   $0x0,(%rsp)
mov    %rsp,%rdi
mov    $0x8,%esi
call   1030 <a@plt>
mov    (%rsp),%rax
movabs $0x300000001,%rcx
mov    %rcx,(%rax)
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32*
store i32* null, i32** %1
%2 = call i32 @a(i32** %1, i32 8)
%3 = load i32*, i32** %1
%4 = getelementptr inbounds i32, i32* %3, i64 0
store i32 1, i32* %4
%5 = load i32*, i32** %1
%6 = getelementptr inbounds i32, i32* %5, i64 1
store i32 3, i32* %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32*
%2 = bitcast i32** %1 to i8*
store i32* null, i32** %1
%3 = call i32 @a(i32** %1, i32 8)
%4 = load i32*, i32** %1
store i32 1, i32* %4
%5 = getelementptr inbounds i32, i32* %4, i64 1
store i32 3, i32* %5
ret i32 0
}
/* Type definitions */
typedef scalar_t__ val;
typedef int uint32_t;

/* Variables and functions */
uint32_t cpu_to_be32(uint32_t val) {
  return ((uint32_t)((((uint32_t)(val) & (uint32_t)0x000000ffUL) << 24) |
                     (((uint32_t)(val) & (uint32_t)0x0000ff00UL) << 8) |
                     (((uint32_t)(val) & (uint32_t)0x00ff0000UL) >> 8) |
                     (((uint32_t)(val) & (uint32_t)0xff000000UL) >> 24)));
}


x86 assembly (clang, -O0):
<cpu_to_be32>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
shl    $0x18,%eax
mov    -0x4(%rbp),%ecx
and    $0xff00,%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
and    $0xff0000,%ecx
sar    $0x8,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
and    $0xff000000,%ecx
sar    $0x18,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpu_to_be32>:
mov    %edi,%eax
and    $0xffffff,%eax
bswap  %eax
sar    $0x18,%edi
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @cpu_to_be32(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 255
%5 = shl i32 %4, 24
%6 = load i32, i32* %2
%7 = and i32 %6, 65280
%8 = shl i32 %7, 8
%9 = or i32 %5, %8
%10 = load i32, i32* %2
%11 = and i32 %10, 16711680
%12 = ashr i32 %11, 8
%13 = or i32 %9, %12
%14 = load i32, i32* %2
%15 = and i32 %14, -16777216
%16 = ashr i32 %15, 24
%17 = or i32 %13, %16
ret i32 %17
}

LLVM IR (-O2):
define i32 @cpu_to_be32(i32 %0) {
%2 = and i32 %0, 16777215
%3 = tail call i32 @llvm.bswap.i32(i32 %2)
%4 = ashr i32 %0, 24
%5 = or i32 %3, %4
ret i32 %5
}
int ival(int i) { return i; }


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

x86 assembly (clang, -O2):
<ival>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @ival(i32 returned %0) {
ret i32 %0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ _ProtoBufSetVarInt(int /*<<< orphan*/ *, size_t, int,
                                      size_t *);
void _ProtoBufSetInt(uint8_t *buf, size_t bufLen, uint64_t i, uint64_t key,
                     size_t *off) {
  _ProtoBufSetVarInt(buf, bufLen, (key << 3) | 0, off);
  _ProtoBufSetVarInt(buf, bufLen, i, off);
}


x86 assembly (clang, -O0):
<_ProtoBufSetInt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
shl    $0x3,%edx
or     $0x0,%edx
mov    -0x20(%rbp),%rcx
call   1030 <_ProtoBufSetVarInt@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
call   1030 <_ProtoBufSetVarInt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ProtoBufSetInt>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r8,%r15
mov    %edx,%r14d
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0x0(,%rcx,8),%edx
mov    %r8,%rcx
call   1030 <_ProtoBufSetVarInt@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
mov    %r15,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <_ProtoBufSetVarInt@plt>

LLVM IR (-O0):
define void @_ProtoBufSetInt(i32* %0, i64 %1, i32 %2, i32 %3, i64* %4) {
%6 = alloca i32*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i64*
store i32* %0, i32** %6
store i64 %1, i64* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i64* %4, i64** %10
%11 = load i32*, i32** %6
%12 = load i64, i64* %7
%13 = load i32, i32* %9
%14 = shl i32 %13, 3
%15 = or i32 %14, 0
%16 = load i64*, i64** %10
%17 = call i32 @_ProtoBufSetVarInt(i32* %11, i64 %12, i32 %15, i64* %16)
%18 = load i32*, i32** %6
%19 = load i64, i64* %7
%20 = load i32, i32* %8
%21 = load i64*, i64** %10
%22 = call i32 @_ProtoBufSetVarInt(i32* %18, i64 %19, i32 %20, i64* %21)
ret void
}

LLVM IR (-O2):
define void @_ProtoBufSetInt(i32* %0, i64 %1, i32 %2, i32 %3, i64* %4) {
%6 = shl i32 %3, 3
%7 = tail call i32 @_ProtoBufSetVarInt(i32* %0, i64 %1, i32 %6, i64* %4)
%8 = tail call i32 @_ProtoBufSetVarInt(i32* %0, i64 %1, i32 %2, i64* %4)
ret void
}
int is_valid_height(double h) { return h > 0.0; }


x86 assembly (clang, -O0):
<is_valid_height>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_valid_height>:
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
seta   %al
ret

LLVM IR (-O0):
define i32 @is_valid_height(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp ogt double %3, 0.000000e+00
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @is_valid_height(double %0) {
%2 = fcmp ogt double %0, 0.000000e+00
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Type definitions */
struct hlist_node {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _hlist_add_node(struct hlist_node *, struct hlist_node *);
void hlist_add_after(struct hlist_node *node, struct hlist_node *n) {
  _hlist_add_node(node, n);
}


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

x86 assembly (clang, -O2):
<hlist_add_after>:
jmp    1030 <_hlist_add_node@plt>

LLVM IR (-O0):
%struct.hlist_node = type { i32 }
define void @hlist_add_after(%struct.hlist_node* %0, %struct.hlist_node* %1) {
%3 = alloca %struct.hlist_node*
%4 = alloca %struct.hlist_node*
store %struct.hlist_node* %0, %struct.hlist_node** %3
store %struct.hlist_node* %1, %struct.hlist_node** %4
%5 = load %struct.hlist_node*, %struct.hlist_node** %3
%6 = load %struct.hlist_node*, %struct.hlist_node** %4
%7 = call i32 @_hlist_add_node(%struct.hlist_node* %5, %struct.hlist_node* %6)
ret void
}

LLVM IR (-O2):
%struct.hlist_node = type { i32 }
define void @hlist_add_after(%struct.hlist_node* %0, %struct.hlist_node* %1) {
%3 = tail call i32 @_hlist_add_node(%struct.hlist_node* %0, %struct.hlist_node* %1)
ret void
}
/* Variables and functions */
scalar_t__ CallBack3(int, void *, void *, void *);
int FetchNumericDataUsingVarName(const char *varName, double *realPartPtr,
                                 double *imagPartPtr) {
  return (int)CallBack3(217, (void *)varName, (void *)realPartPtr,
                        (void *)imagPartPtr);
}


x86 assembly (clang, -O0):
<FetchNumericDataUsingVarName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0xd9,%edi
call   1030 <CallBack3@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FetchNumericDataUsingVarName>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0xd9,%edi
jmp    1030 <CallBack3@plt>

LLVM IR (-O0):
define i32 @FetchNumericDataUsingVarName(i8* %0, double* %1, double* %2) {
%4 = alloca i8*
%5 = alloca double*
%6 = alloca double*
store i8* %0, i8** %4
store double* %1, double** %5
store double* %2, double** %6
%7 = load i8*, i8** %4
%8 = load double*, double** %5
%9 = bitcast double* %8 to i8*
%10 = load double*, double** %6
%11 = bitcast double* %10 to i8*
%12 = call i64 @CallBack3(i32 217, i8* %7, i8* %9, i8* %11)
%13 = trunc i64 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @FetchNumericDataUsingVarName(i8* %0, double* %1, double* %2) {
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = tail call i64 @CallBack3(i32 217, i8* %0, i8* %4, i8* %5)
%7 = trunc i64 %6 to i32
ret i32 %7
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t op_low(uint32_t a, uint32_t b) { return a & 0xff; }


x86 assembly (clang, -O0):
<op_low>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_low>:
movzbl %dil,%eax
ret

LLVM IR (-O0):
define i32 @op_low(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, 255
ret i32 %6
}

LLVM IR (-O2):
define i32 @op_low(i32 %0, i32 %1) {
%3 = and i32 %0, 255
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, char *);
int sip_contact_to_string(char *contact, char **p_buffer) {
  if (p_buffer && *p_buffer) {
    sprintf(*p_buffer,
            "Contact"
            ": %s",
            contact);
    return (int)0;
  }
  return (int)-1;
}


x86 assembly (clang, -O0):
<sip_contact_to_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     115c <sip_contact_to_string+0x4c>
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     115c <sip_contact_to_string+0x4c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rdx
lea    0xeb5(%rip),%rsi
call   1030 <sprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1163 <sip_contact_to_string+0x53>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sip_contact_to_string>:
push   %rax
mov    $0xffffffff,%eax
test   %rsi,%rsi
je     1134 <sip_contact_to_string+0x24>
mov    %rdi,%rdx
mov    (%rsi),%rdi
test   %rdi,%rdi
je     1134 <sip_contact_to_string+0x24>
lea    0xed3(%rip),%rsi
call   1030 <sprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Contact: %s\00"
define i32 @sip_contact_to_string(i8* %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8**
store i8* %0, i8** %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = icmp ne i8** %6, null
br i1 %7, label %8, label %17
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = load i8*, i8** %9
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load i8**, i8*** %5
%14 = load i8*, i8** %13
%15 = load i8*, i8** %4
%16 = call i32 @sprintf(i8* %14, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %15)
store i32 0, i32* %3
br label %18
17: ; preds = %8, %2
store i32 -1, i32* %3
br label %18
18: ; preds = %17, %12
%19 = load i32, i32* %3
ret i32 %19
}

LLVM IR (-O2):
@.str = [12 x i8] c"Contact: %s\00"
define i32 @sip_contact_to_string(i8* %0, i8** %1) {
%3 = icmp eq i8** %1, null
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = icmp eq i8* %5, null
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %9
9: ; preds = %2, %4, %7
%10 = phi i32 [ 0, %7 ], [ -1, %4 ], [ -1, %2 ]
ret i32 %10
}
int test_imm_41int8_mem(signed char *val) {
  return ((*val) & (-0x41 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_41int8_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edx
and    $0xffffffbf,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_41int8_mem>:
testb  $0xbf,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_41int8_mem(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = and i32 %5, -65
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_41int8_mem(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -65
%4 = icmp eq i8 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void __outbc(unsigned char value, unsigned short port) {
  __asm__ __volatile__("out"
                       "b"
                       " %"
                       "b"
                       "0,%"
                       ""
                       "1"
                       :
                       : "a"(value), "id"(port));
}


x86 assembly (clang, -O0):
<__outbc>:
push   %rbp
mov    %rsp,%rbp
mov    %si,%ax
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %ax,-0x4(%rbp)
mov    -0x1(%rbp),%al
mov    -0x4(%rbp),%dx
out    %al,(%dx)
pop    %rbp
ret

x86 assembly (clang, -O2):
<__outbc>:
mov    %esi,%edx
mov    %edi,%eax
out    %al,(%dx)
ret

LLVM IR (-O0):
define void @__outbc(i8 zeroext %0, i16 zeroext %1) {
%3 = alloca i8
%4 = alloca i16
store i8 %0, i8* %3
store i16 %1, i16* %4
%5 = load i8, i8* %3
%6 = load i16, i16* %4
ret void
}

LLVM IR (-O2):
define void @__outbc(i8 zeroext %0, i16 zeroext %1) {
tail call void asm sideeffect "outb ${0:b},$1", "{ax},i{dx},~{dirflag},~{fpsr},~{flags}"(i8 %0, i16 %1)
ret void
}
void ff_hevc_put_hevc_bi_epel_hv64_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_epel_hv64_10_sse4() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ vfprintf(int /*<<< orphan*/, char *, int /*<<< orphan*/);
void elm_io_err(char *preamble, va_list ap) { vfprintf(stderr, preamble, ap); }


x86 assembly (clang, -O0):
<elm_io_err>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1030 <vfprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<elm_io_err>:
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ec4(%rip),%rax
mov    (%rax),%edi
jmp    1030 <vfprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
define void @elm_io_err(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = call i32 @vfprintf(i32 %5, i8* %6, i32 %7)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
define void @elm_io_err(i8* %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @vfprintf(i32 %3, i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int AMCBase64Decode(char const *, void *, unsigned long *);
int AMCBase64Dec(const char *pIn, void *pOut, unsigned long *pOutLen) {
  return AMCBase64Decode(pIn, pOut, pOutLen);
}


x86 assembly (clang, -O0):
<AMCBase64Dec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <AMCBase64Decode@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AMCBase64Dec>:
jmp    1030 <AMCBase64Decode@plt>

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

LLVM IR (-O2):
define i32 @AMCBase64Dec(i8* %0, i8* %1, i64* %2) {
%4 = tail call i32 @AMCBase64Decode(i8* %0, i8* %1, i64* %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ OPENSSL_assert(char *);
void CRYPTO_dbg_malloc(void *addr, int num, const char *file, int line,
                       int before_p) {
  OPENSSL_assert("CRYPTO_dbg_malloc is no longer permitted");
}


x86 assembly (clang, -O0):
<CRYPTO_dbg_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
lea    0xecf(%rip),%rdi
call   1030 <OPENSSL_assert@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [41 x i8] c"CRYPTO_dbg_malloc is no longer permitted\00"
define void @CRYPTO_dbg_malloc(i8* %0, i32 %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = call i32 @OPENSSL_assert(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [41 x i8] c"CRYPTO_dbg_malloc is no longer permitted\00"
define void @CRYPTO_dbg_malloc(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3, i32 %4) {
%6 = tail call i32 @OPENSSL_assert(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMR71_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


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

x86 assembly (clang, -O2):
<U_WMR71_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

LLVM IR (-O0):
define void @U_WMR71_swap(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %5, i32 %6)
ret void
}

LLVM IR (-O2):
define void @U_WMR71_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
scalar_t__ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int write(int, char *, size_t);
void write_or_exit(int fd, char *buffer, size_t count) {
  int result = -1;
  errno = 0;
  result = write(fd, buffer, count);
  if (result < 0) {
    perror("Can't write");
    exit(6);
  }
}


x86 assembly (clang, -O0):
<write_or_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0xffffffff,-0x1c(%rbp)
mov    0x2e8f(%rip),%rax
movq   $0x0,(%rax)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    118b <write_or_exit+0x5b>
lea    0xe84(%rip),%rdi
call   1040 <perror@plt>
mov    $0x6,%edi
call   1050 <exit@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_or_exit>:
push   %rax
mov    0x2ea8(%rip),%rax
movq   $0x0,(%rax)
call   1030 <write@plt>
test   %eax,%eax
js     114a <write_or_exit+0x1a>
pop    %rax
ret
lea    0xeaf(%rip),%rdi
call   1040 <perror@plt>
mov    $0x6,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@errno = global i64 0
@.str = [12 x i8] c"Can't write\00"
define void @write_or_exit(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
store i32 -1, i32* %7
store i64 0, i64* @errno
%8 = load i32, i32* %4
%9 = load i8*, i8** %5
%10 = load i64, i64* %6
%11 = call i32 @write(i32 %8, i8* %9, i64 %10)
store i32 %11, i32* %7
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %3
%15 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 6)
unreachable
17: ; preds = %3
ret void
}

LLVM IR (-O2):
@errno = global i64 0
@.str = [12 x i8] c"Can't write\00"
define void @write_or_exit(i32 %0, i8* nocapture %1, i64 %2) {
store i64 0, i64* @errno
%4 = tail call i32 @write(i32 %0, i8* %1, i64 %2)
%5 = icmp slt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = tail call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @exit(i32 6)
unreachable
9: ; preds = %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr, "bff: slightly-opimizing Brainfuck interpreter, 1.0.3.1, "
                  "http://swapped.cc/bf\n"
                  "Usage: bff [<program file> [<input data file]]\n");
  exit(-1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [125 x i8] c"bff: slightly-opimizing Brainfuck interpreter, 1.0.3.1, http://swapped.cc/bf\0AUsage: bff [<program file> [<input data file]]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [125 x i8] c"bff: slightly-opimizing Brainfuck interpreter, 1.0.3.1, http://swapped.cc/bf\0AUsage: bff [<program file> [<input data file]]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([125 x i8], [125 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 -1)
unreachable
}
void gtk_text_view_set_pixels_above_lines() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_view_set_pixels_above_lines() {
ret void
}
int test_63_4(int *mem) { return __atomic_nand_fetch(mem + 4, 1, 4); }


x86 assembly (clang, -O0):
<test_63_4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x10,%rcx
mov    %rcx,-0x20(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    %ecx,-0x18(%rbp)
mov    0x10(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0x20(%rbp),%rcx
mov    -0x18(%rbp),%esi
mov    %eax,%edx
and    %esi,%edx
mov    %edx,-0x28(%rbp)
not    %edx
lock cmpxchg %edx,(%rcx)
sete   %cl
mov    %eax,-0x24(%rbp)
test   $0x1,%cl
mov    %eax,-0x14(%rbp)
jne    1158 <test_63_4+0x58>
jmp    112a <test_63_4+0x2a>
mov    -0x18(%rbp),%ecx
mov    -0x24(%rbp),%eax
and    %ecx,%eax
xor    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_63_4>:
mov    0x10(%rdi),%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,%ecx
not    %ecx
or     $0xfffffffe,%ecx
lock cmpxchg %ecx,0x10(%rdi)
jne    1110 <test_63_4+0x10>
not    %eax
or     $0xfffffffe,%eax
ret

LLVM IR (-O0):
define i32 @test_63_4(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
store i32* %0, i32** %2
%5 = load i32*, i32** %2
%6 = getelementptr inbounds i32, i32* %5, i64 4
store i32 1, i32* %3
%7 = load i32, i32* %3
%8 = atomicrmw nand i32* %6, i32 %7 acq_rel
%9 = and i32 %8, %7
%10 = xor i32 %9, -1
store i32 %10, i32* %4
%11 = load i32, i32* %4
ret i32 %11
}

LLVM IR (-O2):
define i32 @test_63_4(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 4
%3 = atomicrmw nand i32* %2, i32 1 acq_rel
%4 = and i32 %3, 1
%5 = xor i32 %4, -1
ret i32 %5
}
int foo5(int a, int b[10][10], int c[400]) { return sizeof(c); }


x86 assembly (clang, -O0):
<foo5>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x8,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @foo5(i32 %0, [10 x i32]* %1, i32* %2) {
%4 = alloca i32
%5 = alloca [10 x i32]*
%6 = alloca i32*
store i32 %0, i32* %4
store [10 x i32]* %1, [10 x i32]** %5
store i32* %2, i32** %6
ret i32 8
}

LLVM IR (-O2):
define i32 @foo5(i32 %0, [10 x i32]* nocapture readnone %1, i32* nocapture readnone %2) {
ret i32 8
}