xunge/DecIR huggingface dataset:
int main(int argc, char *argv[]) {
  int a[1];
  int d = 4;
  a[1000000] = 2;
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1 x i32]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 4, i32* %7
%8 = getelementptr inbounds [1 x i32], [1 x i32]* %6, i64 0, i64 1000000
store i32 2, i32* %8
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
void Unload_SFX() {}


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

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

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

LLVM IR (-O2):
define void @Unload_SFX() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int, int, int);
int /*<<< orphan*/ sscanf(char *, char *, int *, int *, int *);
void reverseDate(char *s) {
  int d, m, y;
  sscanf(s, "%d/%d/%d", &d, &m, &y);
  if (d > 1000)
    return;
  sprintf(s, "%.4d/%.2d/%.2d", y, m, d);
}


x86 assembly (clang, -O0):
<reverseDate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
lea    -0x14(%rbp),%r8
call   1030 <sscanf@plt>
cmpl   $0x3e8,-0xc(%rbp)
jle    115a <reverseDate+0x3a>
jmp    1174 <reverseDate+0x54>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%r8d
lea    0xe9a(%rip),%rsi
call   1040 <sprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reverseDate>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0xed1(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
call   1030 <sscanf@plt>
mov    0xc(%rsp),%r8d
cmp    $0x3e8,%r8d
jg     1168 <reverseDate+0x48>
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
lea    0xea9(%rip),%rsi
mov    %rbx,%rdi
call   1040 <sprintf@plt>
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%d/%d/%d\00"
@.str.1 = [15 x i8] c"%.4d/%.2d/%.2d\00"
define void @reverseDate(i8* nocapture %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 1000
br i1 %10, label %15, label %11
11: ; preds = %1
%12 = load i32, i32* %4
%13 = load i32, i32* %3
%14 = call i32 @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %13, i32 %9)
br label %15
15: ; preds = %1, %11
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void world(void) { printf("World"); }


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

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

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

LLVM IR (-O2):
@.str = [6 x i8] c"World\00"
define void @world() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
int main() {
  printf("%s [begin]\n", __func__);
  test_px_ipc_name();
  printf("%s [end]\n", __func__);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    0xecf(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <test_px_ipc_name@plt>
lea    0xebf(%rip),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xed8(%rip),%rdi
lea    0xedd(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <test_px_ipc_name@plt>
lea    0xeca(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%s [begin]\0A\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [10 x i8] c"%s [end]\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
%3 = call i32 (...) @test_px_ipc_name()
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%s [begin]\0A\00"
@__func__.main = [5 x i8] c"main\00"
@.str.1 = [10 x i8] c"%s [end]\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
%2 = tail call i32 (...) @test_px_ipc_name()
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__func__.main, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
main() {
  puts("\nHello World!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
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 = [15 x i8] c"\0AHello World!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"\0AHello World!\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ log_f(char *);
unsigned keyb_none_count_get(void) {
  log_f("keyb:none: keyb_none_count_get()\n");
  return 1;
}


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

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

LLVM IR (-O0):
@.str = [34 x i8] c"keyb:none: keyb_none_count_get()\0A\00"
define i32 @keyb_none_count_get() {
%1 = call i32 @log_f(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str = [34 x i8] c"keyb:none: keyb_none_count_get()\0A\00"
define i32 @keyb_none_count_get() {
%1 = tail call i32 @log_f(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, double, double, char);
int /*<<< orphan*/ scanf(char *, double *, double *, char *);
int main() {
  double a, b;
  char c;
  scanf("%lf %lf %c", &a, &b, &c);
  printf("%.2lf\n%.2lf\n%c", a, b, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x19(%rbp),%rcx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xeb3(%rip),%rdi
movsbl -0x19(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x7(%rsp),%rcx
call   1040 <scanf@plt>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movsbl 0x7(%rsp),%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%lf %lf %c\00"
@.str.1 = [15 x i8] c"%.2lf\0A%.2lf\0A%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca i8
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, i8* %4)
%6 = load double, double* %2
%7 = load double, double* %3
%8 = load i8, i8* %4
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double %6, double %7, i8 signext %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"%lf %lf %c\00"
@.str.1 = [15 x i8] c"%.2lf\0A%.2lf\0A%c\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca i8
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = call i32 @scanf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, i8* %3)
%7 = load double, double* %1
%8 = load double, double* %2
%9 = load i8, i8* %3
%10 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double %7, double %8, i8 signext %9)
ret i32 0
}
/* Type definitions */
typedef scalar_t__ int32_t;

/* Variables and functions */
int32_t min(int32_t a, int32_t b) { return (a < b) ? a : b; }


x86 assembly (clang, -O0):
<min>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1127 <min+0x27>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    112f <min+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<min>:
mov    %rsi,%rax
cmp    %rsi,%rdi
cmovl  %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @min(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = select i1 %3, i64 %0, i64 %1
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void cmdBindPerlHelp() {
  printf("listens for a connection & spawns shell via perl\n");
}


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

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

LLVM IR (-O0):
@.str = [50 x i8] c"listens for a connection & spawns shell via perl\0A\00"
define void @cmdBindPerlHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [49 x i8] c"listens for a connection & spawns shell via perl\00"
define void @cmdBindPerlHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ swerr1(char *);
int /*<<< orphan*/ swerr_SetPos(char *, int);
int os_rDirName(char const *str, char *out, int size) {
  do {
    swerr_SetPos("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/stden/ejudge/refs/heads/"
                 "master/win32/reuse_rdirname.c",
                 34);
    swerr1("Not implemented");
  } while (0);
}


x86 assembly (clang, -O0):
<os_rDirName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
lea    0xec6(%rip),%rdi
mov    $0x22,%esi
call   1030 <swerr_SetPos@plt>
lea    0xf45(%rip),%rdi
call   1040 <swerr1@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<os_rDirName>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x22,%esi
call   1030 <swerr_SetPos@plt>
lea    0xf57(%rip),%rdi
pop    %rax
jmp    1040 <swerr1@plt>

LLVM IR (-O0):
@.str = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/stden/ejudge/refs/heads/master/win32/reuse_rdirname.c\00"
@.str.1 = [16 x i8] c"Not implemented\00"
define i32 @os_rDirName(i8* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
br label %8
8: ; preds = %3
%9 = call i32 @swerr_SetPos(i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str, i64 0, i64 0), i32 34)
%10 = call i32 @swerr1(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %11
11: ; preds = %8
%12 = load i32, i32* %4
ret i32 %12
}

LLVM IR (-O2):
@.str = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/stden/ejudge/refs/heads/master/win32/reuse_rdirname.c\00"
@.str.1 = [16 x i8] c"Not implemented\00"
define i32 @os_rDirName(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
%4 = tail call i32 @swerr_SetPos(i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str, i64 0, i64 0), i32 34)
%5 = tail call i32 @swerr1(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0x53() {
  Assert_real((isodigit(83) == 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_isodigit.c",
              420, ("isodigit should be 0 for S"));
}


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

x86 assembly (clang, -O2):
<t_isodigit_0x53>:
push   %rax
mov    $0x53,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x1a4,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isodigit.c\00"
@.str.1 = [27 x i8] c"isodigit should be 0 for S\00"
define void @t_isodigit_0x53() {
%1 = call i64 @isodigit(i32 83)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 420, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isodigit.c\00"
@.str.1 = [27 x i8] c"isodigit should be 0 for S\00"
define void @t_isodigit_0x53() {
%1 = tail call i64 @isodigit(i32 83)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 420, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ send_event;
};
typedef TYPE_1__ XButtonReleasedEvent;

/* Variables and functions */
int get_XButtonReleasedEvent_send_event(void *_p) {
  return (int)((XButtonReleasedEvent *)_p)->send_event;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define i32 @get_XButtonReleasedEvent_send_event(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.TYPE_2__*
%5 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %4, i32 0, i32 0
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @get_XButtonReleasedEvent_send_event(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
int test_04(int x, int y) {
  if (y == x)
    ++x;
  return x;
}


x86 assembly (clang, -O0):
<test_04>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    111f <test_04+0x1f>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_04>:
xor    %eax,%eax
cmp    %edi,%esi
sete   %al
add    %edi,%eax
ret

LLVM IR (-O0):
define i32 @test_04(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 = load i32, i32* %3
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* %3
%10 = add nsw i32 %9, 1
store i32 %10, i32* %3
br label %11
11: ; preds = %8, %2
%12 = load i32, i32* %3
ret i32 %12
}

LLVM IR (-O2):
define i32 @test_04(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, %0
%4 = zext i1 %3 to i32
%5 = add nsw i32 %4, %0
ret i32 %5
}
void RTAvlUIntPtrGetLeft(void) {}


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

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

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

LLVM IR (-O2):
define void @RTAvlUIntPtrGetLeft() {
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int dobldobl_witness_set_to_system_container(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(637, a, b, c, 0);
  return fail;
}


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

x86 assembly (clang, -O2):
<dobldobl_witness_set_to_system_container>:
mov    $0x27d,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @dobldobl_witness_set_to_system_container() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 637, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
int do_160() { return 160; }


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

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

LLVM IR (-O0):
define i32 @do_160() {
ret i32 160
}

LLVM IR (-O2):
define i32 @do_160() {
ret i32 160
}
/* Variables and functions */
int /*<<< orphan*/ draw_partial_board(int, int /*<<< orphan*/,
                                      int /*<<< orphan*/, int, int, int);
void draw_board(int current_player, int justboard) {
  draw_partial_board(current_player, 0, 0, 10000, 10000, justboard);
}


x86 assembly (clang, -O0):
<draw_board>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%r9d
xor    %edx,%edx
mov    $0x2710,%r8d
mov    %edx,%esi
mov    %r8d,%ecx
call   1030 <draw_partial_board@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_board>:
mov    %esi,%r9d
xor    %esi,%esi
xor    %edx,%edx
mov    $0x2710,%ecx
mov    $0x2710,%r8d
jmp    1030 <draw_partial_board@plt>

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

LLVM IR (-O2):
define void @draw_board(i32 %0, i32 %1) {
%3 = tail call i32 @draw_partial_board(i32 %0, i32 0, i32 0, i32 10000, i32 10000, i32 %1)
ret void
}
int QSize(char *q) {
  int k, total;
  total = 0;
  for (k = 0; k < 9000000; k++) {
    if (q[k] == '\n') {
      total++;
    }
    if (q[k] == '\0') {
      return (total);
    }
  }
  return (total);
}


x86 assembly (clang, -O0):
<QSize>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x895440,-0x14(%rbp)
jge    1174 <QSize+0x74>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    1141 <QSize+0x41>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
jne    1161 <QSize+0x61>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    117a <QSize+0x7a>
jmp    1166 <QSize+0x66>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1116 <QSize+0x16>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<QSize>:
xor    %ecx,%ecx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,%esi
movzbl (%rdi,%rcx,1),%edx
xor    %eax,%eax
cmp    $0xa,%dl
sete   %al
add    %esi,%eax
test   %dl,%dl
je     1134 <QSize+0x34>
lea    0x1(%rcx),%rdx
cmp    $0x89543f,%rcx
mov    %rdx,%rcx
jne    1110 <QSize+0x10>
ret

LLVM IR (-O0):
define i32 @QSize(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %5
store i32 0, i32* %4
br label %6
6: ; preds = %31, %1
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 9000000
br i1 %8, label %9, label %34
9: ; preds = %6
%10 = load i8*, i8** %3
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %10, i64 %12
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 10
br i1 %16, label %17, label %20
17: ; preds = %9
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %20
20: ; preds = %17, %9
%21 = load i8*, i8** %3
%22 = load i32, i32* %4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %21, i64 %23
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %20
%29 = load i32, i32* %5
store i32 %29, i32* %2
br label %36
30: ; preds = %20
br label %31
31: ; preds = %30
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %6
34: ; preds = %6
%35 = load i32, i32* %5
store i32 %35, i32* %2
br label %36
36: ; preds = %34, %28
%37 = load i32, i32* %2
ret i32 %37
}

LLVM IR (-O2):
define i32 @QSize(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ 0, %1 ], [ %11, %2 ]
%4 = phi i32 [ 0, %1 ], [ %9, %2 ]
%5 = getelementptr inbounds i8, i8* %0, i64 %3
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 10
%8 = zext i1 %7 to i32
%9 = add nuw nsw i32 %4, %8
%10 = icmp eq i8 %6, 0
%11 = add nuw nsw i64 %3, 1
%12 = icmp eq i64 %11, 9000000
%13 = select i1 %10, i1 true, i1 %12
br i1 %13, label %14, label %2
14: ; preds = %2
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ glViewport(int, int, int, int);
int gl_set_viewport(int x, int y, int w, int h) {
  glViewport(x, y, w, h);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @gl_set_viewport(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @glViewport(i32 %0, i32 %1, i32 %2, i32 %3)
ret i32 0
}
/* Type definitions */
struct timeval {
  double tv_sec;
  scalar_t__ tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/);
double now() {
  struct timeval tv;
  gettimeofday(&tv, 0);
  return tv.tv_sec + ((double)tv.tv_usec) / 1000000.0;
}


x86 assembly (clang, -O0):
<now>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movsd  -0x10(%rbp),%xmm0
cvtsi2sdq -0x8(%rbp),%xmm1
movsd  0xeca(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<now>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
cvtsi2sdq 0x10(%rsp),%xmm0
divsd  0xed1(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { double, i64 }
define double @now() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32 0)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load double, double* %3
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%6 = load i64, i64* %5
%7 = sitofp i64 %6 to double
%8 = fdiv double %7, 1.000000e+06
%9 = fadd double %4, %8
ret double %9
}

LLVM IR (-O2):
%struct.timeval = type { double, i64 }
define double @now() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32 0)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load double, double* %4
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%7 = load i64, i64* %6
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+06
%10 = fadd double %5, %9
ret double %10
}
void async_worker_pmap() {}


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

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

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

LLVM IR (-O2):
define void @async_worker_pmap() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ test_llist_add();
int /*<<< orphan*/ test_llist_exists();
int /*<<< orphan*/ test_llist_get_ith();
int /*<<< orphan*/ test_llist_init();
int /*<<< orphan*/ test_llist_print();
int /*<<< orphan*/ test_llist_remove();
int main() {
  assert(test_llist_init());
  assert(test_llist_print());
  assert(test_llist_add());
  assert(test_llist_exists());
  assert(test_llist_remove());
  assert(test_llist_get_ith());
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <test_llist_init@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    $0x0,%al
call   1080 <test_llist_print@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    $0x0,%al
call   1030 <test_llist_add@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    $0x0,%al
call   1040 <test_llist_exists@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    $0x0,%al
call   1090 <test_llist_remove@plt>
mov    %eax,%edi
call   1060 <assert@plt>
mov    $0x0,%al
call   1050 <test_llist_get_ith@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <test_llist_init@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
call   1080 <test_llist_print@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
call   1030 <test_llist_add@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
call   1040 <test_llist_exists@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
call   1090 <test_llist_remove@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
call   1050 <test_llist_get_ith@plt>
mov    %eax,%edi
call   1060 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @test_llist_init()
%2 = call i32 @assert(i32 %1)
%3 = call i32 (...) @test_llist_print()
%4 = call i32 @assert(i32 %3)
%5 = call i32 (...) @test_llist_add()
%6 = call i32 @assert(i32 %5)
%7 = call i32 (...) @test_llist_exists()
%8 = call i32 @assert(i32 %7)
%9 = call i32 (...) @test_llist_remove()
%10 = call i32 @assert(i32 %9)
%11 = call i32 (...) @test_llist_get_ith()
%12 = call i32 @assert(i32 %11)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_llist_init()
%2 = tail call i32 @assert(i32 %1)
%3 = tail call i32 (...) @test_llist_print()
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 (...) @test_llist_add()
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 (...) @test_llist_exists()
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 (...) @test_llist_remove()
%10 = tail call i32 @assert(i32 %9)
%11 = tail call i32 (...) @test_llist_get_ith()
%12 = tail call i32 @assert(i32 %11)
ret i32 0
}
int main() {
  int i = 2;
  if (i == 2) {
    i = 3;
  } else if (i == 3) {
    i = 4;
  } else {
    i = 5;
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1128 <main+0x28>
movl   $0x3,-0x8(%rbp)
jmp    114a <main+0x4a>
cmpl   $0x3,-0x8(%rbp)
jne    113e <main+0x3e>
movl   $0x4,-0x8(%rbp)
jmp    1145 <main+0x45>
movl   $0x5,-0x8(%rbp)
jmp    114a <main+0x4a>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int lowercase(int);
bool is_letter(int c) {
  c = lowercase(c);
  if (c >= 'a' && c <= 'z') {
    return true;
  }
  return false;
}


x86 assembly (clang, -O0):
<is_letter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <lowercase@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x61,-0x8(%rbp)
jl     1146 <is_letter+0x36>
cmpl   $0x7a,-0x8(%rbp)
jg     1146 <is_letter+0x36>
movl   $0x1,-0x4(%rbp)
jmp    114d <is_letter+0x3d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_letter>:
push   %rax
call   1030 <lowercase@plt>
add    $0xffffff9f,%eax
xor    %ecx,%ecx
cmp    $0x1a,%eax
setb   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @is_letter(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 @lowercase(i32 %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = icmp sge i32 %6, 97
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i32, i32* %3
%10 = icmp sle i32 %9, 122
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 1, i32* %2
br label %13
12: ; preds = %8, %1
store i32 0, i32* %2
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @is_letter(i32 %0) {
%2 = tail call i32 @lowercase(i32 %0)
%3 = add i32 %2, -97
%4 = icmp ult i32 %3, 26
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0xea() {
  Assert_real((isbdigit(234) == 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_isbdigit.c",
              1175, ("isbdigit should be 0 for 0xea"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0xea>:
push   %rax
mov    $0xea,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x497,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xea\00"
define void @t_isbdigit_0xea() {
%1 = call i64 @isbdigit(i32 234)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1175, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 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_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xea\00"
define void @t_isbdigit_0xea() {
%1 = tail call i64 @isbdigit(i32 234)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 1175, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ version();
void help(void) {
  version();
  printf("\nUsage: nutconv <-i input> [-o output] [-f format]\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <version@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
xor    %eax,%eax
call   1040 <version@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"\0AUsage: nutconv <-i input> [-o output] [-f format]\0A\00"
define void @help() {
%1 = call i32 (...) @version()
%2 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [51 x i8] c"\0AUsage: nutconv <-i input> [-o output] [-f format]\00"
define void @help() {
%1 = tail call i32 (...) @version()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef scalar_t__ int64_t;
typedef scalar_t__ int32_t;

/* Variables and functions */
scalar_t__ INT32_MAX;
scalar_t__ INT32_MIN;
int QCBOR_Int64ToInt32(int64_t src, int32_t *dest) {
  if (src > INT32_MAX || src < INT32_MIN) {
    return -1;
  } else {
    *dest = (int32_t)src;
  }
  return 0;
}


x86 assembly (clang, -O0):
<QCBOR_Int64ToInt32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2ec9(%rip),%rcx
cmp    (%rcx),%rax
jg     1134 <QCBOR_Int64ToInt32+0x34>
mov    -0x10(%rbp),%rax
mov    0x2ead(%rip),%rcx
cmp    (%rcx),%rax
jge    1140 <QCBOR_Int64ToInt32+0x40>
movl   $0xffffffff,-0x4(%rbp)
jmp    1152 <QCBOR_Int64ToInt32+0x52>
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<QCBOR_Int64ToInt32>:
mov    0x2ed9(%rip),%rcx
mov    $0xffffffff,%eax
cmp    %rdi,(%rcx)
jl     1122 <QCBOR_Int64ToInt32+0x22>
mov    0x2ec0(%rip),%rcx
cmp    %rdi,(%rcx)
jg     1122 <QCBOR_Int64ToInt32+0x22>
mov    %rdi,(%rsi)
xor    %eax,%eax
ret

LLVM IR (-O0):
@INT32_MAX = global i64 0
@INT32_MIN = global i64 0
define i32 @QCBOR_Int64ToInt32(i64 %0, i64* %1) {
%3 = alloca i32
%4 = alloca i64
%5 = alloca i64*
store i64 %0, i64* %4
store i64* %1, i64** %5
%6 = load i64, i64* %4
%7 = load i64, i64* @INT32_MAX
%8 = icmp sgt i64 %6, %7
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load i64, i64* %4
%11 = load i64, i64* @INT32_MIN
%12 = icmp slt i64 %10, %11
br i1 %12, label %13, label %14
13: ; preds = %9, %2
store i32 -1, i32* %3
br label %18
14: ; preds = %9
%15 = load i64, i64* %4
%16 = load i64*, i64** %5
store i64 %15, i64* %16
br label %17
17: ; preds = %14
store i32 0, i32* %3
br label %18
18: ; preds = %17, %13
%19 = load i32, i32* %3
ret i32 %19
}

LLVM IR (-O2):
@INT32_MAX = global i64 0
@INT32_MIN = global i64 0
define i32 @QCBOR_Int64ToInt32(i64 %0, i64* nocapture writeonly %1) {
%3 = load i64, i64* @INT32_MAX
%4 = icmp slt i64 %3, %0
%5 = load i64, i64* @INT32_MIN
%6 = icmp sgt i64 %5, %0
%7 = select i1 %4, i1 true, i1 %6
br i1 %7, label %9, label %8
8: ; preds = %2
store i64 %0, i64* %1
br label %9
9: ; preds = %2, %8
%10 = phi i32 [ 0, %8 ], [ -1, %2 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ dlg_exiterr(char *, char *);
void Usage(char *msg) {
  dlg_exiterr("Error: %s.\nUse --help to list options.\n\n", msg);
}


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

x86 assembly (clang, -O2):
<Usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <dlg_exiterr@plt>

LLVM IR (-O0):
@.str = [41 x i8] c"Error: %s.\0AUse --help to list options.\0A\0A\00"
define void @Usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @dlg_exiterr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [41 x i8] c"Error: %s.\0AUse --help to list options.\0A\0A\00"
define void @Usage(i8* %0) {
%2 = tail call i32 @dlg_exiterr(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
float inHg2atm(float inHg) {
  if (inHg < 0)
    return inHg;
  return inHg * .033421052632;
}


x86 assembly (clang, -O0):
<inHg2atm>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1125 <inHg2atm+0x25>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1143 <inHg2atm+0x43>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeca(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<inHg2atm>:
cvtss2sd %xmm0,%xmm1
mulsd  0xef4(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
xorps  %xmm2,%xmm2
movaps %xmm0,%xmm3
cmpltss %xmm2,%xmm3
andps  %xmm3,%xmm0
andnps %xmm1,%xmm3
orps   %xmm3,%xmm0
ret

LLVM IR (-O0):
define float @inHg2atm(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp olt float %4, 0.000000e+00
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = load float, float* %3
store float %7, float* %2
br label %13
8: ; preds = %1
%9 = load float, float* %3
%10 = fpext float %9 to double
%11 = fmul double %10, 0x3FA11C90701ACB9E
%12 = fptrunc double %11 to float
store float %12, float* %2
br label %13
13: ; preds = %8, %6
%14 = load float, float* %2
ret float %14
}

LLVM IR (-O2):
define float @inHg2atm(float %0) {
%2 = fcmp olt float %0, 0.000000e+00
%3 = fpext float %0 to double
%4 = fmul double %3, 0x3FA11C90701ACB9E
%5 = fptrunc double %4 to float
%6 = select i1 %2, float %0, float %5
ret float %6
}
int compare_ints(const void *p1, const void *p2) {
  int *p1_point, *p2_point;
  p1_point = (int *)p1;
  p2_point = (int *)p2;
  if (*p1_point < *p2_point) {
    return -1;
  }
  if (*p1_point > *p2_point) {
    return +1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<compare_ints>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jge    113a <compare_ints+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    115f <compare_ints+0x5f>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    -0x28(%rbp),%rcx
cmp    (%rcx),%eax
jle    1158 <compare_ints+0x58>
movl   $0x1,-0x4(%rbp)
jmp    115f <compare_ints+0x5f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compare_ints>:
mov    (%rdi),%eax
xor    %ecx,%ecx
cmp    (%rsi),%eax
setg   %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

LLVM IR (-O0):
define i32 @compare_ints(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca i32*
store i8* %0, i8** %4
store i8* %1, i8** %5
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
store i32* %9, i32** %6
%10 = load i8*, i8** %5
%11 = bitcast i8* %10 to i32*
store i32* %11, i32** %7
%12 = load i32*, i32** %6
%13 = load i32, i32* %12
%14 = load i32*, i32** %7
%15 = load i32, i32* %14
%16 = icmp slt i32 %13, %15
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 -1, i32* %3
br label %26
18: ; preds = %2
%19 = load i32*, i32** %6
%20 = load i32, i32* %19
%21 = load i32*, i32** %7
%22 = load i32, i32* %21
%23 = icmp sgt i32 %20, %22
br i1 %23, label %24, label %25
24: ; preds = %18
store i32 1, i32* %3
br label %26
25: ; preds = %18
store i32 0, i32* %3
br label %26
26: ; preds = %25, %24, %17
%27 = load i32, i32* %3
ret i32 %27
}

LLVM IR (-O2):
define i32 @compare_ints(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = bitcast i8* %1 to i32*
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp slt i32 %5, %6
%8 = icmp sgt i32 %5, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *, long);
int main(int argc, char **argv) {
  long result = 0;
  long i;
#pragma omp parallel for reduction(+ : result)
  for (i = 0; i < 100000000; i++) {
    result++;
  }
  printf("%li\n", result);
  return EXIT_SUCCESS;
}


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)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x5f5e100,-0x20(%rbp)
05
jge    1161 <main+0x51>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1136 <main+0x26>
mov    -0x18(%rbp),%rsi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [5 x i8] c"%li\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %6
store i64 0, i64* %7
br label %8
8: ; preds = %14, %2
%9 = load i64, i64* %7
%10 = icmp slt i64 %9, 100000000
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = load i64, i64* %6
%13 = add nsw i64 %12, 1
store i64 %13, i64* %6
br label %14
14: ; preds = %11
%15 = load i64, i64* %7
%16 = add nsw i64 %15, 1
store i64 %16, i64* %7
br label %8
17: ; preds = %8
%18 = load i64, i64* %6
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 %18)
%20 = load i32, i32* @EXIT_SUCCESS
ret i32 %20
}

LLVM IR (-O2):
@.str = [5 x i8] c"%li\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 100000000)
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}
/* Type definitions */
typedef long int32_t;

/* Variables and functions */
int /*<<< orphan*/ CAS(long, long, long volatile *);
long ADD_ATOMIC(volatile int32_t *val, int32_t addval) {
  int32_t actual;
  do {
    actual = *val;
  } while (!CAS(actual, actual + addval, val));
  return actual;
}


x86 assembly (clang, -O0):
<ADD_ATOMIC>:
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    -0x18(%rbp),%rdi
mov    -0x18(%rbp),%rsi
add    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
call   1030 <CAS@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1120 <ADD_ATOMIC+0x10>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ADD_ATOMIC>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
nopl   0x0(%rax,%rax,1)
mov    (%r15),%rbx
lea    (%rbx,%r14,1),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1030 <CAS@plt>
test   %eax,%eax
je     1120 <ADD_ATOMIC+0x10>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i64 @ADD_ATOMIC(i64* %0, i64 %1) {
%3 = alloca i64*
%4 = alloca i64
%5 = alloca i64
store i64* %0, i64** %3
store i64 %1, i64* %4
br label %6
6: ; preds = %9, %2
%7 = load i64*, i64** %3
%8 = load volatile i64, i64* %7
store i64 %8, i64* %5
br label %9
9: ; preds = %6
%10 = load i64, i64* %5
%11 = load i64, i64* %5
%12 = load i64, i64* %4
%13 = add nsw i64 %11, %12
%14 = load i64*, i64** %3
%15 = call i32 @CAS(i64 %10, i64 %13, i64* %14)
%16 = icmp ne i32 %15, 0
%17 = xor i1 %16, true
br i1 %17, label %6, label %18
18: ; preds = %9
%19 = load i64, i64* %5
ret i64 %19
}

LLVM IR (-O2):
define i64 @ADD_ATOMIC(i64* %0, i64 %1) {
br label %3
3: ; preds = %3, %2
%4 = load volatile i64, i64* %0
%5 = add nsw i64 %4, %1
%6 = tail call i32 @CAS(i64 %4, i64 %5, i64* %0)
%7 = icmp eq i32 %6, 0
br i1 %7, label %3, label %8
8: ; preds = %3
ret i64 %4
}
void f6(int *p, int *q) { int d = q - p; }


x86 assembly (clang, -O0):
<f6>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
mov    %eax,-0x14(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f6(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
%6 = load i32*, i32** %4
%7 = load i32*, i32** %3
%8 = ptrtoint i32* %6 to i64
%9 = ptrtoint i32* %7 to i64
%10 = sub i64 %8, %9
%11 = sdiv exact i64 %10, 4
%12 = trunc i64 %11 to i32
store i32 %12, i32* %5
ret void
}

LLVM IR (-O2):
define void @f6(i32* nocapture %0, i32* nocapture %1) {
ret void
}