xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMRCE_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


x86 assembly (clang, -O0):
<U_WMRCE_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_WMRCE_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

LLVM IR (-O0):
define void @U_WMRCE_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_WMRCE_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
int mountMightSucceedLater(int mountRc) {
  int rc;
  switch (mountRc) {
  case 9:
    rc = 1;
    break;
  default:
    rc = 0;
  }
  return rc;
}


x86 assembly (clang, -O0):
<mountMightSucceedLater>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x9,%eax
jne    1124 <mountMightSucceedLater+0x24>
jmp    1118 <mountMightSucceedLater+0x18>
movl   $0x1,-0x8(%rbp)
jmp    112b <mountMightSucceedLater+0x2b>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mountMightSucceedLater>:
xor    %eax,%eax
cmp    $0x9,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @mountMightSucceedLater(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
switch i32 %4, label %6 [
i32 9, label %5
]
5: ; preds = %1
store i32 1, i32* %3
br label %7
6: ; preds = %1
store i32 0, i32* %3
br label %7
7: ; preds = %6, %5
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @mountMightSucceedLater(i32 %0) {
%2 = icmp eq i32 %0, 9
%3 = zext i1 %2 to i32
ret i32 %3
}
__attribute__((always_)) int write_pidfile(const char *path) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @write_pidfile(i8* nocapture readnone %0) {
ret i32 1
}
/* Variables and functions */
int ioCanRenameImage();
int secCanRenameImage(void) { return ioCanRenameImage(); }


x86 assembly (clang, -O0):
<secCanRenameImage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <ioCanRenameImage@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<secCanRenameImage>:
xor    %eax,%eax
jmp    1030 <ioCanRenameImage@plt>

LLVM IR (-O0):
define i32 @secCanRenameImage() {
%1 = call i32 (...) @ioCanRenameImage()
ret i32 %1
}

LLVM IR (-O2):
define i32 @secCanRenameImage() {
%1 = tail call i32 (...) @ioCanRenameImage()
ret i32 %1
}
/* Variables and functions */
double roundedMax(double);
double roundedMin(double val) {
  if (val < 0)
    return -roundedMax(-val);
  if (val < 1.0)
    return 0.0;
  else
    return 1.0;
}


x86 assembly (clang, -O0):
<roundedMin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    116d <roundedMin+0x5d>
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
call   1030 <roundedMax@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    119a <roundedMin+0x8a>
movsd  0xe8b(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    118d <roundedMin+0x7d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    119a <roundedMin+0x8a>
movsd  0xe6b(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<roundedMin>:
push   %rax
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1132 <roundedMin+0x22>
xorpd  0xeed(%rip),%xmm0
call   1030 <roundedMax@plt>
xorpd  0xee0(%rip),%xmm0
pop    %rax
ret
movsd  0xec6(%rip),%xmm1
cmpltsd %xmm1,%xmm0
andnpd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @roundedMin(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load double, double* %3
%8 = fneg double %7
%9 = call double @roundedMax(double %8)
%10 = fneg double %9
store double %10, double* %2
br label %16
11: ; preds = %1
%12 = load double, double* %3
%13 = fcmp olt double %12, 1.000000e+00
br i1 %13, label %14, label %15
14: ; preds = %11
store double 0.000000e+00, double* %2
br label %16
15: ; preds = %11
store double 1.000000e+00, double* %2
br label %16
16: ; preds = %15, %14, %6
%17 = load double, double* %2
ret double %17
}

LLVM IR (-O2):
define double @roundedMin(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = fneg double %0
%5 = tail call double @roundedMax(double %4)
%6 = fneg double %5
br label %10
7: ; preds = %1
%8 = fcmp olt double %0, 1.000000e+00
%9 = select i1 %8, double 0.000000e+00, double 1.000000e+00
br label %10
10: ; preds = %7, %3
%11 = phi double [ %6, %3 ], [ %9, %7 ]
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ islower(int);
void t_islower_0x87() {
  Assert_real((islower(135) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_islower.c",
              680, ("islower should be 0 for 0x87"));
}


x86 assembly (clang, -O0):
<t_islower_0x87>:
push   %rbp
mov    %rsp,%rbp
mov    $0x87,%edi
call   1030 <islower@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x2a8,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_islower_0x87>:
push   %rax
mov    $0x87,%edi
call   1030 <islower@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x2a8,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0x87\00"
define void @t_islower_0x87() {
%1 = call i64 @islower(i32 135)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 680, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0x87\00"
define void @t_islower_0x87() {
%1 = tail call i64 @islower(i32 135)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 680, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ check_expected(int);
scalar_t__ mock();
char *concat(int num_args, ...) {
  check_expected(num_args);
  return (char *)mock();
}


x86 assembly (clang, -O0):
<concat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <check_expected@plt>
xor    %eax,%eax
call   1030 <mock@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<concat>:
push   %rax
call   1040 <check_expected@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <mock@plt>

LLVM IR (-O0):
define i8* @concat(i32 %0, ...) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @check_expected(i32 %3)
%5 = call i64 (...) @mock()
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}

LLVM IR (-O2):
define i8* @concat(i32 %0, ...) {
%2 = tail call i32 @check_expected(i32 %0)
%3 = tail call i64 (...) @mock()
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ stderr_write(char);
int /*<<< orphan*/ stdout_write(char);
void writechar(int file, char c) {
  switch (file) {
  case 1:
    stdout_write(c);
    break;
  case 2:
    stderr_write(c);
    break;
  }
}


x86 assembly (clang, -O0):
<writechar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %edi,-0x4(%rbp)
mov    %al,-0x5(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x1,%eax
je     1156 <writechar+0x36>
jmp    1145 <writechar+0x25>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
je     1164 <writechar+0x44>
jmp    116d <writechar+0x4d>
movsbl -0x5(%rbp),%edi
call   1040 <stdout_write@plt>
jmp    116d <writechar+0x4d>
movsbl -0x5(%rbp),%edi
call   1030 <stderr_write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writechar>:
cmp    $0x2,%edi
je     1133 <writechar+0x13>
cmp    $0x1,%edi
jne    113c <writechar+0x1c>
movsbl %sil,%edi
jmp    1040 <stdout_write@plt>
movsbl %sil,%edi
jmp    1030 <stderr_write@plt>
ret

LLVM IR (-O0):
define void @writechar(i32 %0, i8 signext %1) {
%3 = alloca i32
%4 = alloca i8
store i32 %0, i32* %3
store i8 %1, i8* %4
%5 = load i32, i32* %3
switch i32 %5, label %12 [
i32 1, label %6
i32 2, label %9
]
6: ; preds = %2
%7 = load i8, i8* %4
%8 = call i32 @stdout_write(i8 signext %7)
br label %12
9: ; preds = %2
%10 = load i8, i8* %4
%11 = call i32 @stderr_write(i8 signext %10)
br label %12
12: ; preds = %2, %9, %6
ret void
}

LLVM IR (-O2):
define void @writechar(i32 %0, i8 signext %1) {
switch i32 %0, label %7 [
i32 1, label %3
i32 2, label %5
]
3: ; preds = %2
%4 = tail call i32 @stdout_write(i8 signext %1)
br label %7
5: ; preds = %2
%6 = tail call i32 @stderr_write(i8 signext %1)
br label %7
7: ; preds = %2, %5, %3
ret void
}
unsigned char getBaseCharacter(unsigned char character) { return 0; }


x86 assembly (clang, -O0):
<getBaseCharacter>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
xor    %eax,%eax
movzbl %al,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define zeroext i8 @getBaseCharacter(i8 zeroext %0) {
ret i8 0
}
double func_p2(double x) { return x; }


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

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

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

LLVM IR (-O2):
define double @func_p2(double returned %0) {
ret double %0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void grpcsharp_test_nop() {
  fprintf(stderr, "Should never reach here");
  abort();
}


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

x86 assembly (clang, -O2):
<grpcsharp_test_nop>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_test_nop() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"Should never reach here\00"
define void @grpcsharp_test_nop() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (...) @abort()
unreachable
}
unsigned long long g4(unsigned long long *p, int i) { return p[i]; }


x86 assembly (clang, -O0):
<g4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<g4>:
movslq %esi,%rax
mov    (%rdi,%rax,8),%rax
ret

LLVM IR (-O0):
define i64 @g4(i64* %0, i32 %1) {
%3 = alloca i64*
%4 = alloca i32
store i64* %0, i64** %3
store i32 %1, i32* %4
%5 = load i64*, i64** %3
%6 = load i32, i32* %4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i64, i64* %5, i64 %7
%9 = load i64, i64* %8
ret i64 %9
}

LLVM IR (-O2):
define i64 @g4(i64* nocapture %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i64, i64* %0, i64 %3
%5 = load i64, i64* %4
ret i64 %5
}
char *skiproot(path) const char *path;
{
  while (((*path) == '/'))
    path++;
  return (char *)path;
}


x86 assembly (clang, -O0):
<skiproot>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    1129 <skiproot+0x29>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <skiproot+0x8>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<skiproot>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
cmpb   $0x2f,0x1(%rax)
lea    0x1(%rax),%rax
je     1110 <skiproot+0x10>
ret

LLVM IR (-O0):
define i8* @skiproot(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 47
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %2
br label %3
11: ; preds = %3
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
define i8* @skiproot(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %6, %2 ]
%4 = load i8, i8* %3
%5 = icmp eq i8 %4, 47
%6 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %5, label %2, label %7
7: ; preds = %2
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ determine_model();
int find_alsa_card();
int find_input_dir(char const *);
int ylsysfs_find_device(const char *uniq) {
  int ret;
  if ((ret = find_input_dir(uniq)) != 0)
    return ret;
  if ((ret = find_alsa_card()) != 0)
    return ret;
  determine_model();
  return 0;
}


x86 assembly (clang, -O0):
<ylsysfs_find_device>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <find_input_dir@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     115c <ylsysfs_find_device+0x2c>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1188 <ylsysfs_find_device+0x58>
mov    $0x0,%al
call   1050 <find_alsa_card@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     117a <ylsysfs_find_device+0x4a>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1188 <ylsysfs_find_device+0x58>
mov    $0x0,%al
call   1030 <determine_model@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ylsysfs_find_device>:
push   %rax
call   1040 <find_input_dir@plt>
test   %eax,%eax
je     113c <ylsysfs_find_device+0xc>
pop    %rcx
ret
xor    %eax,%eax
call   1050 <find_alsa_card@plt>
test   %eax,%eax
jne    113a <ylsysfs_find_device+0xa>
xor    %eax,%eax
call   1030 <determine_model@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @ylsysfs_find_device(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i32 @find_input_dir(i8* %5)
store i32 %6, i32* %4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load i32, i32* %4
store i32 %9, i32* %2
br label %17
10: ; preds = %1
%11 = call i32 (...) @find_alsa_card()
store i32 %11, i32* %4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = load i32, i32* %4
store i32 %14, i32* %2
br label %17
15: ; preds = %10
%16 = call i32 (...) @determine_model()
store i32 0, i32* %2
br label %17
17: ; preds = %15, %13, %8
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
define i32 @ylsysfs_find_device(i8* %0) {
%2 = tail call i32 @find_input_dir(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %9
4: ; preds = %1
%5 = tail call i32 (...) @find_alsa_card()
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %4
%8 = tail call i32 (...) @determine_model()
br label %9
9: ; preds = %4, %1, %7
%10 = phi i32 [ 0, %7 ], [ %2, %1 ], [ %5, %4 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ HplAtm128InterruptPinP__1__Irq__default__fired();
void HplAtm128InterruptPinP__1__Irq__fired(void) {
  HplAtm128InterruptPinP__1__Irq__default__fired();
}


x86 assembly (clang, -O0):
<HplAtm128InterruptPinP__1__Irq__fired>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <HplAtm128InterruptPinP__1__Irq__default__fired@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<HplAtm128InterruptPinP__1__Irq__fired>:
xor    %eax,%eax
jmp    1030 <HplAtm128InterruptPinP__1__Irq__default__fired@plt>

LLVM IR (-O0):
define void @HplAtm128InterruptPinP__1__Irq__fired() {
%1 = call i32 (...) @HplAtm128InterruptPinP__1__Irq__default__fired()
ret void
}

LLVM IR (-O2):
define void @HplAtm128InterruptPinP__1__Irq__fired() {
%1 = tail call i32 (...) @HplAtm128InterruptPinP__1__Irq__default__fired()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  for (int i = 0; i < 1; ++i) {
    printf("Hello World from GNU99\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jge    114a <main+0x3a>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [24 x i8] c"Hello World from GNU99\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %8, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 1
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
br label %3
11: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@str = [23 x i8] c"Hello World from GNU99\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}
int fun738() { return 738; }


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

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

LLVM IR (-O0):
define i32 @fun738() {
ret i32 738
}

LLVM IR (-O2):
define i32 @fun738() {
ret i32 738
}
/* Variables and functions */
int PAPI_start(int);
void PAPIF_START(int *EventSet, int *check) { *check = PAPI_start(*EventSet); }


x86 assembly (clang, -O0):
<PAPIF_START>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
call   1030 <PAPI_start@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PAPIF_START>:
push   %rbx
mov    %rsi,%rbx
mov    (%rdi),%edi
call   1030 <PAPI_start@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @PAPIF_START(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* %5
%7 = call i32 @PAPI_start(i32 %6)
%8 = load i32*, i32** %4
store i32 %7, i32* %8
ret void
}

LLVM IR (-O2):
define void @PAPIF_START(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
%4 = tail call i32 @PAPI_start(i32 %3)
store i32 %4, i32* %1
ret void
}
int cal3(double a) {
  double b = 3.2;
  double c = 2.2;
  if ((a + b) != c)
    return 0;
  else
    return 1;
}


x86 assembly (clang, -O0):
<cal3>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  0xef7(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xee2(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jne    1143 <cal3+0x43>
jp     1143 <cal3+0x43>
jmp    114f <cal3+0x4f>
movl   $0x0,-0x4(%rbp)
jmp    1156 <cal3+0x56>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cal3>:
addsd  0xef8(%rip),%xmm0
cmpeqsd 0xef7(%rip),%xmm0
movq   %xmm0,%rax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @cal3(double %0) {
%2 = alloca i32
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double 3.200000e+00, double* %4
store double 2.200000e+00, double* %5
%6 = load double, double* %3
%7 = load double, double* %4
%8 = fadd double %6, %7
%9 = load double, double* %5
%10 = fcmp une double %8, %9
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 0, i32* %2
br label %13
12: ; preds = %1
store i32 1, i32* %2
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @cal3(double %0) {
%2 = fadd double %0, 3.200000e+00
%3 = fcmp oeq double %2, 2.200000e+00
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct list_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __list_del_entry(struct list_head *);
int /*<<< orphan*/ _list_add(struct list_head *, struct list_head *);
void list_move(struct list_head *list, struct list_head *head) {
  __list_del_entry(list);
  _list_add(list, head);
}


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

x86 assembly (clang, -O2):
<list_move>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <__list_del_entry@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <_list_add@plt>

LLVM IR (-O0):
%struct.list_head = type { i32 }
define void @list_move(%struct.list_head* %0, %struct.list_head* %1) {
%3 = alloca %struct.list_head*
%4 = alloca %struct.list_head*
store %struct.list_head* %0, %struct.list_head** %3
store %struct.list_head* %1, %struct.list_head** %4
%5 = load %struct.list_head*, %struct.list_head** %3
%6 = call i32 @__list_del_entry(%struct.list_head* %5)
%7 = load %struct.list_head*, %struct.list_head** %3
%8 = load %struct.list_head*, %struct.list_head** %4
%9 = call i32 @_list_add(%struct.list_head* %7, %struct.list_head* %8)
ret void
}

LLVM IR (-O2):
%struct.list_head = type { i32 }
define void @list_move(%struct.list_head* %0, %struct.list_head* %1) {
%3 = tail call i32 @__list_del_entry(%struct.list_head* %0)
%4 = tail call i32 @_list_add(%struct.list_head* %0, %struct.list_head* %1)
ret void
}
void av_image_check_size2() {}


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

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

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

LLVM IR (-O2):
define void @av_image_check_size2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int fwrite(unsigned short *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
void write_short(unsigned short value) {
  if (fwrite(&value, sizeof(unsigned short), 1, stdout) != 1) {
    fprintf(stderr, "fwrite() failed -- exiting!\n");
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<write_short>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    0x2e92(%rip),%rax
mov    (%rax),%ecx
lea    -0x2(%rbp),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1050 <fwrite@plt>
cmp    $0x1,%eax
je     1183 <write_short+0x53>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
lea    0xe8c(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_short>:
push   %rax
mov    %di,0x6(%rsp)
mov    0x2e9b(%rip),%rax
mov    (%rax),%ecx
lea    0x6(%rsp),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1050 <fwrite@plt>
cmp    $0x1,%eax
jne    115a <write_short+0x2a>
pop    %rax
ret
mov    0x2e7f(%rip),%rax
mov    (%rax),%edi
lea    0xe96(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@stderr = global i32 0
@.str = [29 x i8] c"fwrite() failed -- exiting!\0A\00"
define void @write_short(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i32, i32* @stdout
%4 = call i32 @fwrite(i16* %2, i32 2, i32 1, i32 %3)
%5 = icmp ne i32 %4, 1
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @exit(i32 -1)
unreachable
10: ; preds = %1
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@stderr = global i32 0
@.str = [29 x i8] c"fwrite() failed -- exiting!\0A\00"
define void @write_short(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i32, i32* @stdout
%4 = call i32 @fwrite(i16* %2, i32 2, i32 1, i32 %3)
%5 = icmp eq i32 %4, 1
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @exit(i32 -1)
unreachable
10: ; preds = %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int x3(void) {
  printf(" x3");
  return 3;
}


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

x86 assembly (clang, -O2):
<x3>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c" x3\00"
define i32 @x3() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i32 3
}
/* Variables and functions */
int /*<<< orphan*/ a_unlock(int /*<<< orphan*/, int /*<<< orphan*/);
void b_unlock(void) { a_unlock(0, 0); }


x86 assembly (clang, -O0):
<b_unlock>:
push   %rbp
mov    %rsp,%rbp
xor    %esi,%esi
mov    %esi,%edi
call   1030 <a_unlock@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<b_unlock>:
xor    %edi,%edi
xor    %esi,%esi
jmp    1030 <a_unlock@plt>

LLVM IR (-O0):
define void @b_unlock() {
%1 = call i32 @a_unlock(i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @b_unlock() {
%1 = tail call i32 @a_unlock(i32 0, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DEC8(int /*<<< orphan*/);
int /*<<< orphan*/ SA1Absolute(int);
void OpCEM1(void) { DEC8(SA1Absolute(3)); }


x86 assembly (clang, -O0):
<OpCEM1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1030 <SA1Absolute@plt>
mov    %eax,%edi
call   1040 <DEC8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<OpCEM1>:
push   %rax
mov    $0x3,%edi
call   1030 <SA1Absolute@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <DEC8@plt>

LLVM IR (-O0):
define void @OpCEM1() {
%1 = call i32 @SA1Absolute(i32 3)
%2 = call i32 @DEC8(i32 %1)
ret void
}

LLVM IR (-O2):
define void @OpCEM1() {
%1 = tail call i32 @SA1Absolute(i32 3)
%2 = tail call i32 @DEC8(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ vecNd_add_new(double *, double const *, double const *, int);
void vec4d_add_new(double result[4], const double a[4], const double b[4]) {
  vecNd_add_new(result, a, b, 4);
}


x86 assembly (clang, -O0):
<vec4d_add_new>:
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
mov    $0x4,%ecx
call   1030 <vecNd_add_new@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec4d_add_new>:
mov    $0x4,%ecx
jmp    1030 <vecNd_add_new@plt>

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

LLVM IR (-O2):
define void @vec4d_add_new(double* %0, double* %1, double* %2) {
%4 = tail call i32 @vecNd_add_new(double* %0, double* %1, double* %2, i32 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ jffs2_lzari_exit();
int /*<<< orphan*/ jffs2_lzma_exit();
int /*<<< orphan*/ jffs2_lzo_exit();
int /*<<< orphan*/ jffs2_rtime_exit();
int /*<<< orphan*/ jffs2_zlib_exit();
int jffs2_compressors_exit(void) {
  jffs2_lzo_exit();
  jffs2_lzari_exit();
  jffs2_rtime_exit();
  jffs2_zlib_exit();
  jffs2_lzma_exit();
  return 0;
}


x86 assembly (clang, -O0):
<jffs2_compressors_exit>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <jffs2_lzo_exit@plt>
mov    $0x0,%al
call   1060 <jffs2_lzari_exit@plt>
mov    $0x0,%al
call   1070 <jffs2_rtime_exit@plt>
mov    $0x0,%al
call   1030 <jffs2_zlib_exit@plt>
mov    $0x0,%al
call   1040 <jffs2_lzma_exit@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<jffs2_compressors_exit>:
push   %rax
xor    %eax,%eax
call   1050 <jffs2_lzo_exit@plt>
xor    %eax,%eax
call   1060 <jffs2_lzari_exit@plt>
xor    %eax,%eax
call   1070 <jffs2_rtime_exit@plt>
xor    %eax,%eax
call   1030 <jffs2_zlib_exit@plt>
xor    %eax,%eax
call   1040 <jffs2_lzma_exit@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @jffs2_compressors_exit() {
%1 = call i32 (...) @jffs2_lzo_exit()
%2 = call i32 (...) @jffs2_lzari_exit()
%3 = call i32 (...) @jffs2_rtime_exit()
%4 = call i32 (...) @jffs2_zlib_exit()
%5 = call i32 (...) @jffs2_lzma_exit()
ret i32 0
}

LLVM IR (-O2):
define i32 @jffs2_compressors_exit() {
%1 = tail call i32 (...) @jffs2_lzo_exit()
%2 = tail call i32 (...) @jffs2_lzari_exit()
%3 = tail call i32 (...) @jffs2_rtime_exit()
%4 = tail call i32 (...) @jffs2_zlib_exit()
%5 = tail call i32 (...) @jffs2_lzma_exit()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int write(int, unsigned char *, int);
int SendRawPacket(int rawsock, unsigned char *pkt, int pkt_len) {
  int sent = 0;
  if ((sent = write(rawsock, pkt, pkt_len)) != pkt_len) {
    printf("could only send %d bytes of packet of length %d \n", sent, pkt_len);
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<SendRawPacket>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <write@plt>
mov    %eax,-0x18(%rbp)
cmp    -0x14(%rbp),%eax
je     1172 <SendRawPacket+0x52>
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1179 <SendRawPacket+0x59>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SendRawPacket>:
push   %rbx
mov    %edx,%ebx
call   1030 <write@plt>
mov    $0x1,%ecx
cmp    %ebx,%eax
je     1143 <SendRawPacket+0x23>
lea    0xec8(%rip),%rdi
mov    %eax,%esi
mov    %ebx,%edx
call   1040 <printf@plt>
xor    %ecx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [50 x i8] c"could only send %d bytes of packet of length %d \0A\00"
define i32 @SendRawPacket(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 0, i32* %8
%9 = load i32, i32* %5
%10 = load i8*, i8** %6
%11 = load i32, i32* %7
%12 = call i32 @write(i32 %9, i8* %10, i32 %11)
store i32 %12, i32* %8
%13 = load i32, i32* %7
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = load i32, i32* %8
%17 = load i32, i32* %7
%18 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17)
store i32 0, i32* %4
br label %20
19: ; preds = %3
store i32 1, i32* %4
br label %20
20: ; preds = %19, %15
%21 = load i32, i32* %4
ret i32 %21
}

LLVM IR (-O2):
@.str = [50 x i8] c"could only send %d bytes of packet of length %d \0A\00"
define i32 @SendRawPacket(i32 %0, i8* nocapture %1, i32 %2) {
%4 = tail call i32 @write(i32 %0, i8* %1, i32 %2)
%5 = icmp eq i32 %4, %2
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %2)
br label %8
8: ; preds = %3, %6
%9 = phi i32 [ 0, %6 ], [ 1, %3 ]
ret i32 %9
}
void dd_pbl_ios_appflyer_track_eventAppLaunch() {}


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

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

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

LLVM IR (-O2):
define void @dd_pbl_ios_appflyer_track_eventAppLaunch() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ucdigit_lookup(unsigned long, int *);
int ucgetdigit(unsigned long code) {
  int dig;
  dig = -111;
  (void)ucdigit_lookup(code, &dig);
  return dig;
}


x86 assembly (clang, -O0):
<ucgetdigit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0xffffff91,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1030 <ucdigit_lookup@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ucgetdigit>:
push   %rax
movl   $0xffffff91,0x4(%rsp)
ff
lea    0x4(%rsp),%rsi
call   1030 <ucdigit_lookup@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @ucgetdigit(i64 %0) {
%2 = alloca i64
%3 = alloca i32
store i64 %0, i64* %2
store i32 -111, i32* %3
%4 = load i64, i64* %2
%5 = call i32 @ucdigit_lookup(i64 %4, i32* %3)
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @ucgetdigit(i64 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 -111, i32* %2
%4 = call i32 @ucdigit_lookup(i64 %0, i32* %2)
%5 = load i32, i32* %2
ret i32 %5
}
void capturing2capturingNegbehind_rv_endCapturing() {}


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

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

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

LLVM IR (-O2):
define void @capturing2capturingNegbehind_rv_endCapturing() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cprintf(char *);
int /*<<< orphan*/ nandc_test_case_033();
int /*<<< orphan*/ nandc_test_case_034();
void test_nandc(void) {
  cprintf(" wsq nandc_test_case_033 \n");
  nandc_test_case_033();
  cprintf(" wsq nandc_test_case_034 \n");
  nandc_test_case_034();
}


x86 assembly (clang, -O0):
<test_nandc>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <cprintf@plt>
mov    $0x0,%al
call   1030 <nandc_test_case_033@plt>
lea    0xecd(%rip),%rdi
call   1040 <cprintf@plt>
mov    $0x0,%al
call   1050 <nandc_test_case_034@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_nandc>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <cprintf@plt>
xor    %eax,%eax
call   1030 <nandc_test_case_033@plt>
lea    0xed0(%rip),%rdi
call   1040 <cprintf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <nandc_test_case_034@plt>

LLVM IR (-O0):
@.str = [27 x i8] c" wsq nandc_test_case_033 \0A\00"
@.str.1 = [27 x i8] c" wsq nandc_test_case_034 \0A\00"
define void @test_nandc() {
%1 = call i32 @cprintf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @nandc_test_case_033()
%3 = call i32 @cprintf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @nandc_test_case_034()
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c" wsq nandc_test_case_033 \0A\00"
@.str.1 = [27 x i8] c" wsq nandc_test_case_034 \0A\00"
define void @test_nandc() {
%1 = tail call i32 @cprintf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @nandc_test_case_033()
%3 = tail call i32 @cprintf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @nandc_test_case_034()
ret void
}
float serieS(float n) {
  if (n == 0)
    return 0;
  return ((n * n + 1) / n) + serieS(n - 1);
}


x86 assembly (clang, -O0):
<serieS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1141 <serieS+0x31>
jp     1141 <serieS+0x31>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    118c <serieS+0x7c>
movss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xea9(%rip),%xmm1
addss  %xmm1,%xmm0
divss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xe8e(%rip),%xmm1
subss  %xmm1,%xmm0
call   1030 <serieS@plt>
movaps %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<serieS>:
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    111e <serieS+0xe>
jp     111e <serieS+0xe>
movaps %xmm1,%xmm0
ret
push   %rax
movaps %xmm0,%xmm1
mulss  %xmm0,%xmm1
addss  0xed2(%rip),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
addss  0xec4(%rip),%xmm0
call   1030 <serieS@plt>
movaps %xmm0,%xmm1
addss  0x4(%rsp),%xmm1
add    $0x8,%rsp
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @serieS(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp oeq float %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
store float 0.000000e+00, float* %2
br label %17
7: ; preds = %1
%8 = load float, float* %3
%9 = load float, float* %3
%10 = call float @llvm.fmuladd.f32(float %8, float %9, float 1.000000e+00)
%11 = load float, float* %3
%12 = fdiv float %10, %11
%13 = load float, float* %3
%14 = fsub float %13, 1.000000e+00
%15 = call float @serieS(float %14)
%16 = fadd float %12, %15
store float %16, float* %2
br label %17
17: ; preds = %7, %6
%18 = load float, float* %2
ret float %18
}

LLVM IR (-O2):
define float @serieS(float %0) {
%2 = fcmp oeq float %0, 0.000000e+00
br i1 %2, label %3, label %5
3: ; preds = %1, %5
%4 = phi float [ %10, %5 ], [ 0.000000e+00, %1 ]
ret float %4
5: ; preds = %1
%6 = tail call float @llvm.fmuladd.f32(float %0, float %0, float 1.000000e+00)
%7 = fdiv float %6, %0
%8 = fadd float %0, -1.000000e+00
%9 = tail call float @serieS(float %8)
%10 = fadd float %7, %9
br label %3
}
/* Variables and functions */
void *malloc(int);
void *cow_malloc(int size) { return (malloc(size)); }


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

x86 assembly (clang, -O2):
<cow_malloc>:
jmp    1030 <malloc@plt>

LLVM IR (-O0):
define i8* @cow_malloc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i8* @malloc(i32 %3)
ret i8* %4
}

LLVM IR (-O2):
define noalias i8* @cow_malloc(i32 %0) {
%2 = tail call i8* @malloc(i32 %0)
ret i8* %2
}
int main() { return 3 + 'a'; }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    $0x64,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 100
}
/* Variables and functions */
long long doubleToRawLongBits(double);
double longBitsToDouble(long long);
double mulsign(double x, double y) {
  return longBitsToDouble(doubleToRawLongBits(x) ^
                          (doubleToRawLongBits(y) & (1LL << 63)));
}


x86 assembly (clang, -O0):
<mulsign>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1040 <doubleToRawLongBits@plt>
mov    %rax,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1040 <doubleToRawLongBits@plt>
mov    -0x18(%rbp),%rdi
movabs $0x8000000000000000,%rcx
and    %rcx,%rax
xor    %rax,%rdi
call   1030 <longBitsToDouble@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mulsign>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm1,0x8(%rsp)
call   1040 <doubleToRawLongBits@plt>
mov    %rax,%rbx
movsd  0x8(%rsp),%xmm0
call   1040 <doubleToRawLongBits@plt>
movabs $0x8000000000000000,%rdi
and    %rax,%rdi
xor    %rbx,%rdi
add    $0x10,%rsp
pop    %rbx
jmp    1030 <longBitsToDouble@plt>

LLVM IR (-O0):
define double @mulsign(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call i64 @doubleToRawLongBits(double %5)
%7 = load double, double* %4
%8 = call i64 @doubleToRawLongBits(double %7)
%9 = and i64 %8, -9223372036854775808
%10 = xor i64 %6, %9
%11 = call double @longBitsToDouble(i64 %10)
ret double %11
}

LLVM IR (-O2):
define double @mulsign(double %0, double %1) {
%3 = tail call i64 @doubleToRawLongBits(double %0)
%4 = tail call i64 @doubleToRawLongBits(double %1)
%5 = and i64 %4, -9223372036854775808
%6 = xor i64 %5, %3
%7 = tail call double @longBitsToDouble(i64 %6)
ret double %7
}
void XtResolvePathname() {}


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

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

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

LLVM IR (-O2):
define void @XtResolvePathname() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *generate_raw(unsigned char *, unsigned int *);
int /*<<< orphan*/ printf(char *, char *);
void debug_print_table_name(unsigned char *table_str) {
  unsigned int tmp_len;
  char *name = generate_raw(table_str, &tmp_len);
  printf("DEBUG_TABLE_NAME_IS='%s'\n", name);
  free(name);
}


x86 assembly (clang, -O0):
<debug_print_table_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <generate_raw@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xea8(%rip),%rdi
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_print_table_name>:
push   %rbx
sub    $0x10,%rsp
lea    0xc(%rsp),%rsi
call   1040 <generate_raw@plt>
mov    %rax,%rbx
lea    0xeb7(%rip),%rdi
mov    %rax,%rsi
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"DEBUG_TABLE_NAME_IS='%s'\0A\00"
define void @debug_print_table_name(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i8* @generate_raw(i8* %5, i32* %3)
store i8* %6, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %4
%10 = call i32 @free(i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"DEBUG_TABLE_NAME_IS='%s'\0A\00"
define void @debug_print_table_name(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i8* @generate_raw(i8* %0, i32* %2)
%5 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @free(i8* %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ INC8(int /*<<< orphan*/);
int /*<<< orphan*/ SA1Absolute(int);
void OpEEM1(void) { INC8(SA1Absolute(3)); }


x86 assembly (clang, -O0):
<OpEEM1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1030 <SA1Absolute@plt>
mov    %eax,%edi
call   1040 <INC8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<OpEEM1>:
push   %rax
mov    $0x3,%edi
call   1030 <SA1Absolute@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <INC8@plt>

LLVM IR (-O0):
define void @OpEEM1() {
%1 = call i32 @SA1Absolute(i32 3)
%2 = call i32 @INC8(i32 %1)
ret void
}

LLVM IR (-O2):
define void @OpEEM1() {
%1 = tail call i32 @SA1Absolute(i32 3)
%2 = tail call i32 @INC8(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PrintStr(char *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  int iRandom;
  srand(time(NULL));
  iRandom = (rand() % (argc - 1)) + 1;
  PrintStr(argv[iRandom]);
  fflush(stdout);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
mov    $0x0,%al
call   1070 <rand@plt>
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1060 <PrintStr@plt>
mov    0x2e3c(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
xor    %eax,%eax
call   1070 <rand@plt>
add    $0xffffffff,%ebp
cltd
idiv   %ebp
movslq %edx,%rax
mov    0x8(%rbx,%rax,8),%rdi
call   1060 <PrintStr@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @time(i32* null)
%8 = call i32 @srand(i32 %7)
%9 = call i32 (...) @rand()
%10 = load i32, i32* %4
%11 = sub nsw i32 %10, 1
%12 = srem i32 %9, %11
%13 = add nsw i32 %12, 1
store i32 %13, i32* %6
%14 = load i8**, i8*** %5
%15 = load i32, i32* %6
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %14, i64 %16
%18 = load i8*, i8** %17
%19 = call i32 @PrintStr(i8* %18)
%20 = load i32, i32* @stdout
%21 = call i32 @fflush(i32 %20)
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @time(i32* null)
%4 = tail call i32 @srand(i32 %3)
%5 = tail call i32 (...) @rand()
%6 = add nsw i32 %0, -1
%7 = srem i32 %5, %6
%8 = add nsw i32 %7, 1
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8*, i8** %1, i64 %9
%11 = load i8*, i8** %10
%12 = tail call i32 @PrintStr(i8* %11)
%13 = load i32, i32* @stdout
%14 = tail call i32 @fflush(i32 %13)
ret i32 0
}
int get_nproc(void) { return -1; }


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

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

LLVM IR (-O0):
define i32 @get_nproc() {
ret i32 -1
}

LLVM IR (-O2):
define i32 @get_nproc() {
ret i32 -1
}