xunge/DecIR huggingface dataset:
/* Variables and functions */
int drp_explain();
int /*<<< orphan*/ drp_value(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void handle_trap(int signum) {
  fprintf(stderr, "Trap caused by watchpoint %d (a = 0x%016lx)\n",
          drp_explain(), drp_value(drp_explain()));
}


x86 assembly (clang, -O0):
<handle_trap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2e9e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <drp_explain@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <drp_explain@plt>
mov    %eax,%edi
call   1050 <drp_value@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    %eax,%ecx
lea    0xe92(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_trap>:
push   %rbp
push   %rbx
push   %rax
mov    0x2ea6(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1030 <drp_explain@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <drp_explain@plt>
mov    %eax,%edi
call   1050 <drp_value@plt>
lea    0xea6(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %eax,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [45 x i8] c"Trap caused by watchpoint %d (a = 0x%016lx)\0A\00"
define void @handle_trap(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stderr
%4 = call i32 (...) @drp_explain()
%5 = call i32 (...) @drp_explain()
%6 = call i32 @drp_value(i32 %5)
%7 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %6)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [45 x i8] c"Trap caused by watchpoint %d (a = 0x%016lx)\0A\00"
define void @handle_trap(i32 %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (...) @drp_explain()
%4 = tail call i32 (...) @drp_explain()
%5 = tail call i32 @drp_value(i32 %4)
%6 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %5)
ret void
}
int setdisk(drive)
int drive;
{ return 0; }


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

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

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

LLVM IR (-O2):
define i32 @setdisk(i32 %0) {
ret i32 0
}
int isplusmn(int c) { return c == '+' || c == '-'; }


x86 assembly (clang, -O0):
<isplusmn>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x2b,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1120 <isplusmn+0x20>
cmpl   $0x2d,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isplusmn>:
add    $0xffffffd5,%edi
xor    %eax,%eax
test   $0xfffffffd,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @isplusmn(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 43
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 45
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ true, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @isplusmn(i32 %0) {
%2 = icmp eq i32 %0, 43
%3 = icmp eq i32 %0, 45
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ regf(int /*<<< orphan*/);
void nn_regf_nosend() { regf(0); }


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

x86 assembly (clang, -O2):
<nn_regf_nosend>:
xor    %edi,%edi
jmp    1030 <regf@plt>

LLVM IR (-O0):
define void @nn_regf_nosend() {
%1 = call i32 @regf(i32 0)
ret void
}

LLVM IR (-O2):
define void @nn_regf_nosend() {
%1 = tail call i32 @regf(i32 0)
ret void
}
void g_markup_vprintf_escaped() {}


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

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

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

LLVM IR (-O2):
define void @g_markup_vprintf_escaped() {
ret void
}
/* Variables and functions */
int A_precomp(int);
double sqrt(int);
double Aij_precomp(int spec_i, int spec_j) {
  return sqrt(A_precomp(spec_i) * A_precomp(spec_j));
}


x86 assembly (clang, -O0):
<Aij_precomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <A_precomp@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <A_precomp@plt>
mov    -0xc(%rbp),%edi
imul   %eax,%edi
call   1040 <sqrt@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Aij_precomp>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
call   1030 <A_precomp@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1030 <A_precomp@plt>
imul   %eax,%ebp
mov    %ebp,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <sqrt@plt>

LLVM IR (-O0):
define double @Aij_precomp(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 = call i32 @A_precomp(i32 %5)
%7 = load i32, i32* %4
%8 = call i32 @A_precomp(i32 %7)
%9 = mul nsw i32 %6, %8
%10 = call double @sqrt(i32 %9)
ret double %10
}

LLVM IR (-O2):
define double @Aij_precomp(i32 %0, i32 %1) {
%3 = tail call i32 @A_precomp(i32 %0)
%4 = tail call i32 @A_precomp(i32 %1)
%5 = mul nsw i32 %4, %3
%6 = tail call double @sqrt(i32 %5)
ret double %6
}
long long palindrome(long long n) {
  long long lastdigit, temp = n, s = 0;
  while (temp > 0) {
    lastdigit = temp % 10;
    s = s * 10 + lastdigit;
    temp = temp / 10;
  }
  if (s == n)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<palindrome>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jle    1159 <palindrome+0x59>
mov    -0x20(%rbp),%rax
mov    $0xa,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x18(%rbp)
imul   $0xa,-0x28(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    $0xa,%ecx
cqto
idiv   %rcx
mov    %rax,-0x20(%rbp)
jmp    1118 <palindrome+0x18>
mov    -0x28(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1174 <palindrome+0x74>
movq   $0x1,-0x8(%rbp)
jmp    117c <palindrome+0x7c>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<palindrome>:
xor    %ecx,%ecx
test   %rdi,%rdi
jle    1149 <palindrome+0x49>
movabs $0xcccccccccccccccd,%r8
cc cc cc
mov    %rdi,%rsi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%rcx,%rcx,4),%r9
mov    %rsi,%rax
mul    %r8
shr    $0x3,%rdx
lea    (%rdx,%rdx,1),%rax
lea    (%rax,%rax,4),%rax
mov    %rsi,%rcx
sub    %rax,%rcx
lea    (%rcx,%r9,2),%rcx
cmp    $0x9,%rsi
mov    %rdx,%rsi
ja     1120 <palindrome+0x20>
xor    %eax,%eax
cmp    %rdi,%rcx
sete   %al
ret

LLVM IR (-O0):
define i64 @palindrome(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %3
%7 = load i64, i64* %3
store i64 %7, i64* %5
store i64 0, i64* %6
br label %8
8: ; preds = %11, %1
%9 = load i64, i64* %5
%10 = icmp sgt i64 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = load i64, i64* %5
%13 = srem i64 %12, 10
store i64 %13, i64* %4
%14 = load i64, i64* %6
%15 = mul nsw i64 %14, 10
%16 = load i64, i64* %4
%17 = add nsw i64 %15, %16
store i64 %17, i64* %6
%18 = load i64, i64* %5
%19 = sdiv i64 %18, 10
store i64 %19, i64* %5
br label %8
20: ; preds = %8
%21 = load i64, i64* %6
%22 = load i64, i64* %3
%23 = icmp eq i64 %21, %22
br i1 %23, label %24, label %25
24: ; preds = %20
store i64 1, i64* %2
br label %26
25: ; preds = %20
store i64 0, i64* %2
br label %26
26: ; preds = %25, %24
%27 = load i64, i64* %2
ret i64 %27
}

LLVM IR (-O2):
define i64 @palindrome(i64 %0) {
%2 = icmp sgt i64 %0, 0
br i1 %2, label %3, label %11
3: ; preds = %1, %3
%4 = phi i64 [ %8, %3 ], [ 0, %1 ]
%5 = phi i64 [ %9, %3 ], [ %0, %1 ]
%6 = urem i64 %5, 10
%7 = mul nsw i64 %4, 10
%8 = add nsw i64 %7, %6
%9 = udiv i64 %5, 10
%10 = icmp ult i64 %5, 10
br i1 %10, label %11, label %3
11: ; preds = %3, %1
%12 = phi i64 [ 0, %1 ], [ %8, %3 ]
%13 = icmp eq i64 %12, %0
%14 = zext i1 %13 to i64
ret i64 %14
}
/* Variables and functions */
scalar_t__ mu_badv_if_available(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int main(void) {
  if (mu_badv_if_available(NULL, NULL)) {
    printf("TRUE");
  } else {
    printf("FALSE");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%esi
mov    %rsi,%rdi
call   1030 <mu_badv_if_available@plt>
cmp    $0x0,%rax
je     1156 <main+0x36>
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
jmp    1162 <main+0x42>
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
call   1030 <mu_badv_if_available@plt>
test   %rax,%rax
lea    0xed1(%rip),%rax
lea    0xec5(%rip),%rdi
cmove  %rax,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"TRUE\00"
@.str.1 = [6 x i8] c"FALSE\00"
define i32 @main() {
%1 = tail call i64 @mu_badv_if_available(i32* null, i32* null)
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%4 = tail call i32 @printf(i8* dereferenceable(1) %3)
ret i32 0
}
void turnLeft() {}


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

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

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

LLVM IR (-O2):
define void @turnLeft() {
ret void
}
void LPCIntClear(unsigned long ulBase, unsigned long ulIntFlags) {
  ;
  (*((volatile unsigned long *)(ulBase + 0x0000010C))) = ulIntFlags;
}


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

x86 assembly (clang, -O2):
<LPCIntClear>:
mov    %rsi,0x10c(%rdi)
ret

LLVM IR (-O0):
define void @LPCIntClear(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i64, i64* %3
%7 = add i64 %6, 268
%8 = inttoptr i64 %7 to i64*
store volatile i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @LPCIntClear(i64 %0, i64 %1) {
%3 = add i64 %0, 268
%4 = inttoptr i64 %3 to i64*
store volatile i64 %1, i64* %4
ret void
}
int rotate(int *a, int *b, int *c) {
  int tmp;
  tmp = *b;
  *b = *a;
  *a = *c;
  *c = tmp;
}


x86 assembly (clang, -O0):
<rotate>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x24(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotate>:
mov    (%rsi),%eax
mov    (%rdi),%ecx
mov    %ecx,(%rsi)
mov    (%rdx),%ecx
mov    %ecx,(%rdi)
mov    %eax,(%rdx)
ret

LLVM IR (-O0):
define i32 @rotate(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32
%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
%9 = load i32*, i32** %6
%10 = load i32, i32* %9
store i32 %10, i32* %8
%11 = load i32*, i32** %5
%12 = load i32, i32* %11
%13 = load i32*, i32** %6
store i32 %12, i32* %13
%14 = load i32*, i32** %7
%15 = load i32, i32* %14
%16 = load i32*, i32** %5
store i32 %15, i32* %16
%17 = load i32, i32* %8
%18 = load i32*, i32** %7
store i32 %17, i32* %18
%19 = load i32, i32* %4
ret i32 %19
}

LLVM IR (-O2):
define i32 @rotate(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2) {
%4 = load i32, i32* %1
%5 = load i32, i32* %0
store i32 %5, i32* %1
%6 = load i32, i32* %2
store i32 %6, i32* %0
store i32 %4, i32* %2
ret i32 undef
}
int do_818() { return 818; }


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

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

LLVM IR (-O0):
define i32 @do_818() {
ret i32 818
}

LLVM IR (-O2):
define i32 @do_818() {
ret i32 818
}
void downcase_char(char *c) {
  if (*c >= 'A' && *c <= 'Z')
    *c |= 0x20;
}


x86 assembly (clang, -O0):
<downcase_char>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jl     1134 <downcase_char+0x34>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jg     1134 <downcase_char+0x34>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
or     $0x20,%ecx
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<downcase_char>:
mov    (%rdi),%al
lea    -0x41(%rax),%ecx
cmp    $0x19,%cl
ja     110e <downcase_char+0xe>
or     $0x20,%al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @downcase_char(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 65
br i1 %6, label %7, label %18
7: ; preds = %1
%8 = load i8*, i8** %2
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp sle i32 %10, 90
br i1 %11, label %12, label %18
12: ; preds = %7
%13 = load i8*, i8** %2
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = or i32 %15, 32
%17 = trunc i32 %16 to i8
store i8 %17, i8* %13
br label %18
18: ; preds = %12, %7, %1
ret void
}

LLVM IR (-O2):
define void @downcase_char(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = add i8 %2, -65
%4 = icmp ult i8 %3, 26
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = or i8 %2, 32
store i8 %6, i8* %0
br label %7
7: ; preds = %5, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0x37() {
  Assert_real((isbdigit(55) == 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",
              280, ("isbdigit should be 0 for 7"));
}


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

x86 assembly (clang, -O2):
<t_isbdigit_0x37>:
push   %rax
mov    $0x37,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x118,%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 = [27 x i8] c"isbdigit should be 0 for 7\00"
define void @t_isbdigit_0x37() {
%1 = call i64 @isbdigit(i32 55)
%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 280, 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_isbdigit.c\00"
@.str.1 = [27 x i8] c"isbdigit should be 0 for 7\00"
define void @t_isbdigit_0x37() {
%1 = tail call i64 @isbdigit(i32 55)
%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 280, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int rand_int(int);
int make_random_bot_command() { return rand_int(16 + 1); }


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

x86 assembly (clang, -O2):
<make_random_bot_command>:
mov    $0x11,%edi
jmp    1030 <rand_int@plt>

LLVM IR (-O0):
define i32 @make_random_bot_command() {
%1 = call i32 @rand_int(i32 17)
ret i32 %1
}

LLVM IR (-O2):
define i32 @make_random_bot_command() {
%1 = tail call i32 @rand_int(i32 17)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ nrf_drv_usbd_errata_type_52840_eng_b();
bool nrf_drv_usbd_errata_154(void) {
  return (1 && (!nrf_drv_usbd_errata_type_52840_eng_b()));
}


x86 assembly (clang, -O0):
<nrf_drv_usbd_errata_154>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <nrf_drv_usbd_errata_type_52840_eng_b@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nrf_drv_usbd_errata_154>:
push   %rax
xor    %eax,%eax
call   1030 <nrf_drv_usbd_errata_type_52840_eng_b@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @nrf_drv_usbd_errata_154() {
%1 = call i32 (...) @nrf_drv_usbd_errata_type_52840_eng_b()
%2 = icmp ne i32 %1, 0
%3 = xor i1 %2, true
%4 = zext i1 %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @nrf_drv_usbd_errata_154() {
%1 = tail call i32 (...) @nrf_drv_usbd_errata_type_52840_eng_b()
%2 = icmp eq i32 %1, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
double min_d(double x, double y) { return x < y ? x : y; }


x86 assembly (clang, -O0):
<min_d>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1131 <min_d+0x31>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    113b <min_d+0x3b>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<min_d>:
minsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @min_d(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 = load double, double* %4
%7 = fcmp olt double %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load double, double* %3
br label %12
10: ; preds = %2
%11 = load double, double* %4
br label %12
12: ; preds = %10, %8
%13 = phi double [ %9, %8 ], [ %11, %10 ]
ret double %13
}

LLVM IR (-O2):
define double @min_d(double %0, double %1) {
%3 = fcmp olt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ snprintf(char *, int, char *, int);
char *opt2str(int opt, char *buf, int buflen) {
  if ((buf != NULL) && (buflen > 0)) {
    snprintf(buf, buflen, "OPT:%d", opt);
  }
  return (buf);
}


x86 assembly (clang, -O0):
<opt2str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     114d <opt2str+0x3d>
cmpl   $0x0,-0x14(%rbp)
jle    114d <opt2str+0x3d>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x4(%rbp),%ecx
lea    0xeb8(%rip),%rdx
call   1030 <snprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<opt2str>:
push   %rbx
mov    %rsi,%rbx
test   %rsi,%rsi
je     1133 <opt2str+0x23>
test   %edx,%edx
jle    1133 <opt2str+0x23>
mov    %edi,%ecx
lea    0xeda(%rip),%rax
mov    %rbx,%rdi
mov    %edx,%esi
mov    %rax,%rdx
call   1030 <snprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [7 x i8] c"OPT:%d\00"
define i8* @opt2str(i32 %0, i8* returned %1, i32 %2) {
%4 = icmp ne i8* %1, null
%5 = icmp sgt i32 %2, 0
%6 = and i1 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %9
9: ; preds = %7, %3
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ scalar_by_value_dfp_x();
int main() {
  scalar_by_value_dfp_x();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <scalar_by_value_dfp_x@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <scalar_by_value_dfp_x@plt>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @scalar_by_value_dfp_x()
%2 = tail call i32 @exit(i32 0)
unreachable
}
int invert(int x, int p, int n) { return x ^ (~(~0 << n) << p); }


x86 assembly (clang, -O0):
<invert>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    -0xc(%rbp),%ecx
mov    $0xffffffff,%edx
shl    %cl,%edx
xor    $0xffffffff,%edx
mov    -0x8(%rbp),%ecx
shl    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<invert>:
mov    %edx,%ecx
mov    $0xffffffff,%eax
shl    %cl,%eax
not    %eax
mov    %esi,%ecx
shl    %cl,%eax
xor    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @invert(i32 %0, i32 %1, i32 %2) {
%4 = shl nsw i32 -1, %2
%5 = xor i32 %4, -1
%6 = shl i32 %5, %1
%7 = xor i32 %6, %0
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
size_t msize(void *ptr) {
  assert(ptr != NULL);
  return *((size_t *)ptr - 1);
}


x86 assembly (clang, -O0):
<msize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rax
mov    -0x8(%rax),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<msize>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
test   %rbx,%rbx
setne  %dil
call   1030 <assert@plt>
mov    -0x8(%rbx),%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @msize(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
%7 = load i8*, i8** %2
%8 = bitcast i8* %7 to i64*
%9 = getelementptr inbounds i64, i64* %8, i64 -1
%10 = load i64, i64* %9
ret i64 %10
}

LLVM IR (-O2):
define i64 @msize(i8* %0) {
%2 = icmp ne i8* %0, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = getelementptr inbounds i8, i8* %0, i64 -8
%6 = bitcast i8* %5 to i64*
%7 = load i64, i64* %6
ret i64 %7
}
/* Variables and functions */
int PnameDef();
PruleNameDef() {
  int b = -1;
  ;
  b = PnameDef();
  return (b);
}


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

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

LLVM IR (-O0):
define i32 @PruleNameDef() {
%1 = alloca i32
store i32 -1, i32* %1
%2 = call i32 (...) @PnameDef()
store i32 %2, i32* %1
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @PruleNameDef() {
%1 = tail call i32 (...) @PnameDef()
ret i32 %1
}
int clad_clampi(int value, int min, int max) {
  if (value < min)
    return min;
  if (value > max)
    return max;
  return value;
}


x86 assembly (clang, -O0):
<clad_clampi>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1124 <clad_clampi+0x24>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1141 <clad_clampi+0x41>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    113b <clad_clampi+0x3b>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1141 <clad_clampi+0x41>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clad_clampi>:
mov    %edx,%eax
cmp    %edx,%edi
cmovle %edi,%eax
cmp    %esi,%edi
cmovl  %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @clad_clampi(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, %1
%5 = icmp sgt i32 %0, %2
%6 = select i1 %5, i32 %2, i32 %0
%7 = select i1 %4, i32 %1, i32 %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int main() {
  exit(0);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ __sys_buf_set_block(void **, char *, scalar_t__);
scalar_t__ strlen(char *);
void __sys_buf_set_str(void **ptr, char *str) {
  __sys_buf_set_block(ptr, str, strlen(str) + 1);
}


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

x86 assembly (clang, -O2):
<__sys_buf_set_str>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <__sys_buf_set_block@plt>

LLVM IR (-O0):
define void @__sys_buf_set_str(i8** %0, i8* %1) {
%3 = alloca i8**
%4 = alloca i8*
store i8** %0, i8*** %3
store i8* %1, i8** %4
%5 = load i8**, i8*** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i64 @strlen(i8* %7)
%9 = add nsw i64 %8, 1
%10 = call i32 @__sys_buf_set_block(i8** %5, i8* %6, i64 %9)
ret void
}

LLVM IR (-O2):
define void @__sys_buf_set_str(i8** %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%4 = add nsw i64 %3, 1
%5 = tail call i32 @__sys_buf_set_block(i8** %0, i8* %1, i64 %4)
ret void
}
void __do_global_dtors() {}


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

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

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

LLVM IR (-O2):
define void @__do_global_dtors() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SetCamera();
int /*<<< orphan*/ draw_logo();
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glutSwapBuffers();
void do_display(void) {
  SetCamera();
  draw_logo();
  glFlush();
  glutSwapBuffers();
}


x86 assembly (clang, -O0):
<do_display>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1060 <SetCamera@plt>
mov    $0x0,%al
call   1050 <draw_logo@plt>
mov    $0x0,%al
call   1040 <glFlush@plt>
mov    $0x0,%al
call   1030 <glutSwapBuffers@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_display>:
push   %rax
xor    %eax,%eax
call   1060 <SetCamera@plt>
xor    %eax,%eax
call   1050 <draw_logo@plt>
xor    %eax,%eax
call   1040 <glFlush@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <glutSwapBuffers@plt>

LLVM IR (-O0):
define void @do_display() {
%1 = call i32 (...) @SetCamera()
%2 = call i32 (...) @draw_logo()
%3 = call i32 (...) @glFlush()
%4 = call i32 (...) @glutSwapBuffers()
ret void
}

LLVM IR (-O2):
define void @do_display() {
%1 = tail call i32 (...) @SetCamera()
%2 = tail call i32 (...) @draw_logo()
%3 = tail call i32 (...) @glFlush()
%4 = tail call i32 (...) @glutSwapBuffers()
ret void
}
/* Type definitions */
struct yas_data {
  int dummy;
};

/* Variables and functions */
int yas_measure(struct yas_data *, int, int *);
int yas_measure_wrap(struct yas_data *data, int num) {
  int ouflow;
  return yas_measure(data, num, &ouflow);
}


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

x86 assembly (clang, -O2):
<yas_measure_wrap>:
push   %rax
lea    0x4(%rsp),%rdx
call   1030 <yas_measure@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.yas_data = type { i32 }
define i32 @yas_measure_wrap(%struct.yas_data* %0, i32 %1) {
%3 = alloca %struct.yas_data*
%4 = alloca i32
%5 = alloca i32
store %struct.yas_data* %0, %struct.yas_data** %3
store i32 %1, i32* %4
%6 = load %struct.yas_data*, %struct.yas_data** %3
%7 = load i32, i32* %4
%8 = call i32 @yas_measure(%struct.yas_data* %6, i32 %7, i32* %5)
ret i32 %8
}

LLVM IR (-O2):
%struct.yas_data = type { i32 }
define i32 @yas_measure_wrap(%struct.yas_data* %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = call i32 @yas_measure(%struct.yas_data* %0, i32 %1, i32* %3)
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ val;
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
void store_u16(uint8_t *buf, uint16_t val) { memcpy(buf, &val, sizeof(val)); }


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

x86 assembly (clang, -O2):
<store_u16>:
push   %rax
mov    %esi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
call   1030 <memcpy@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @store_u16(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 = call i32 @memcpy(i32* %5, i32* %4, i32 4)
ret void
}

LLVM IR (-O2):
define void @store_u16(i32* %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = call i32 @memcpy(i32* %0, i32* %3, i32 4)
ret void
}
void gpiochip_sysfs_unregister(struct gpio_device *gdev) {}


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

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

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

LLVM IR (-O2):
%struct.gpio_device = type opaque
define void @gpiochip_sysfs_unregister(%struct.gpio_device* nocapture %0) {
ret void
}
/* Variables and functions */
int f();
int caller() { return f(); }


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

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

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

LLVM IR (-O2):
define i32 @caller() {
%1 = tail call i32 (...) @f()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ mouseMotionFunc(int, int);
void passiveMotionFunc(int mousePositionX, int mousePositionY) {
  mouseMotionFunc(mousePositionX, mousePositionY);
}


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

x86 assembly (clang, -O2):
<passiveMotionFunc>:
jmp    1030 <mouseMotionFunc@plt>

LLVM IR (-O0):
define void @passiveMotionFunc(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 @mouseMotionFunc(i32 %5, i32 %6)
ret void
}

LLVM IR (-O2):
define void @passiveMotionFunc(i32 %0, i32 %1) {
%3 = tail call i32 @mouseMotionFunc(i32 %0, i32 %1)
ret void
}
char *fail() {
  return "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/"
         "test_asserts.c"
         ":"
         "35"
         ": "
         "I fail";
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:35: I fail\00"
define i8* @fail() {
ret i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:35: I fail\00"
define i8* @fail() {
ret i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int gcd(long long, long long);
long long EulerTotient_Brute(long long num) {
  long long answer = 1;
  for (long long i = 2; i < num; i++) {
    if (gcd(i, num) == 1)
      answer++;
    return answer;
  }
}


x86 assembly (clang, -O0):
<EulerTotient_Brute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
movq   $0x2,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1164 <EulerTotient_Brute+0x54>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <gcd@plt>
cmp    $0x1,%eax
jne    115c <EulerTotient_Brute+0x4c>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EulerTotient_Brute>:
cmp    $0x3,%rdi
jl     1136 <EulerTotient_Brute+0x26>
push   %rax
mov    %rdi,%rsi
mov    $0x2,%edi
call   1030 <gcd@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%ecx
sete   %al
add    $0x1,%rax
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i64 @EulerTotient_Brute(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 1, i64* %4
store i64 2, i64* %5
br label %6
6: ; preds = %20, %1
%7 = load i64, i64* %5
%8 = load i64, i64* %3
%9 = icmp slt i64 %7, %8
br i1 %9, label %10, label %23
10: ; preds = %6
%11 = load i64, i64* %5
%12 = load i64, i64* %3
%13 = call i32 @gcd(i64 %11, i64 %12)
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = load i64, i64* %4
%17 = add nsw i64 %16, 1
store i64 %17, i64* %4
br label %18
18: ; preds = %15, %10
%19 = load i64, i64* %4
store i64 %19, i64* %2
br label %23
20: ; No predecessors!
%21 = load i64, i64* %5
%22 = add nsw i64 %21, 1
store i64 %22, i64* %5
br label %6
23: ; preds = %18, %6
%24 = load i64, i64* %2
ret i64 %24
}

LLVM IR (-O2):
define i64 @EulerTotient_Brute(i64 %0) {
%2 = icmp sgt i64 %0, 2
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = tail call i32 @gcd(i64 2, i64 %0)
%5 = icmp eq i32 %4, 1
%6 = select i1 %5, i64 2, i64 1
br label %7
7: ; preds = %1, %3
%8 = phi i64 [ %6, %3 ], [ undef, %1 ]
ret i64 %8
}
/* Variables and functions */
int /*<<< orphan*/ cmiInit();
scalar_t__ dinoMain(int, char **);
int /*<<< orphan*/ guiMainLoop();
int /*<<< orphan*/ guitInit();
int main(int argc, char **argv) {
  cmiInit();
  if (dinoMain(argc, argv) < 0)
    return -1;
  guitInit();
  guiMainLoop();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1050 <cmiInit@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <dinoMain@plt>
cmp    $0x0,%rax
jge    117f <main+0x3f>
movl   $0xffffffff,-0x4(%rbp)
jmp    1194 <main+0x54>
mov    $0x0,%al
call   1030 <guitInit@plt>
mov    $0x0,%al
call   1060 <guiMainLoop@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %r14d,%r14d
xor    %eax,%eax
call   1050 <cmiInit@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
call   1040 <dinoMain@plt>
test   %rax,%rax
js     1172 <main+0x32>
xor    %eax,%eax
call   1030 <guitInit@plt>
xor    %eax,%eax
call   1060 <guiMainLoop@plt>
jmp    1178 <main+0x38>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @cmiInit()
%7 = load i32, i32* %4
%8 = load i8**, i8*** %5
%9 = call i64 @dinoMain(i32 %7, i8** %8)
%10 = icmp slt i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, i32* %3
br label %15
12: ; preds = %2
%13 = call i32 (...) @guitInit()
%14 = call i32 (...) @guiMainLoop()
store i32 0, i32* %3
br label %15
15: ; preds = %12, %11
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (...) @cmiInit()
%4 = tail call i64 @dinoMain(i32 %0, i8** %1)
%5 = icmp slt i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = tail call i32 (...) @guitInit()
%8 = tail call i32 (...) @guiMainLoop()
br label %9
9: ; preds = %2, %6
%10 = phi i32 [ 0, %6 ], [ -1, %2 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void usage(char *cmd) {
  printf("%s [-h] [-v] -i <kernel> -r <ramdisk> -p <parmfile> -o <outfile>\n",
         cmd);
}


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 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [66 x i8] c"%s [-h] [-v] -i <kernel> -r <ramdisk> -p <parmfile> -o <outfile>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [66 x i8] c"%s [-h] [-v] -i <kernel> -r <ramdisk> -p <parmfile> -o <outfile>\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ deviceIf_useGroff();
void batch(void) { deviceIf_useGroff(); }


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

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

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

LLVM IR (-O2):
define void @batch() {
%1 = tail call i32 (...) @deviceIf_useGroff()
ret void
}
const char *bitis_GetBuildDate() {
  return "Mar 17 2022"
         " "
         "07:43:29";
}


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

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

LLVM IR (-O0):
@.str = [21 x i8] c"Mar 17 2022 07:43:29\00"
define i8* @bitis_GetBuildDate() {
ret i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [21 x i8] c"Mar 17 2022 07:43:29\00"
define i8* @bitis_GetBuildDate() {
ret i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0)
}
four2(a, b, c, d) { nop(); }


x86 assembly (clang, -O0):
<four2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    $0x0,%al
call   1030 <nop@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @four2(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 (...) @nop()
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ collatz_conjecture_sequence(int);
int main() {
  int n = 15;
  collatz_conjecture_sequence(n);
  return (0);
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xf,%edi
call   1030 <collatz_conjecture_sequence@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 15, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @collatz_conjecture_sequence(i32 %3)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @collatz_conjecture_sequence(i32 15)
ret i32 0
}
/* Forward declarations */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  scalar_t__ type;
};
typedef TYPE_1__ XEvent;

/* Variables and functions */
scalar_t__ ReparentNotify;
int is_reparent_notify(XEvent *ev) { return (ev->type == ReparentNotify); }


x86 assembly (clang, -O0):
<is_reparent_notify>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    0x2eca(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_reparent_notify>:
mov    (%rdi),%rcx
mov    0x2ed6(%rip),%rdx
xor    %eax,%eax
cmp    (%rdx),%rcx
sete   %al
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i64 }
@ReparentNotify = global i64 0
define i32 @is_reparent_notify(%struct.TYPE_3__* %0) {
%2 = alloca %struct.TYPE_3__*
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %2
%3 = load %struct.TYPE_3__*, %struct.TYPE_3__** %2
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i32 0, i32 0
%5 = load i64, i64* %4
%6 = load i64, i64* @ReparentNotify
%7 = icmp eq i64 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i64 }
@ReparentNotify = global i64 0
define i32 @is_reparent_notify(%struct.TYPE_3__* nocapture %0) {
%2 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%3 = load i64, i64* %2
%4 = load i64, i64* @ReparentNotify
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int rename(char *, char *);
int /*<<< orphan*/ setgid(int);
int /*<<< orphan*/ setuid(int);
void group_test_4() {
  int res;
  do {
    setgid((100) + 1);
    setuid(101);
  } while (0);
  res = rename("DIR_046/writetest", "DIR_046/renametest");
  exit(res == 0);
}


x86 assembly (clang, -O0):
<group_test_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x65,%edi
call   1030 <setgid@plt>
mov    $0x65,%edi
call   1060 <setuid@plt>
lea    0xe9d(%rip),%rdi
lea    0xea8(%rip),%rsi
call   1040 <rename@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<group_test_4>:
push   %rax
mov    $0x65,%edi
call   1030 <setgid@plt>
mov    $0x65,%edi
call   1060 <setuid@plt>
lea    0xea4(%rip),%rdi
lea    0xeaf(%rip),%rsi
call   1040 <rename@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"DIR_046/writetest\00"
@.str.1 = [19 x i8] c"DIR_046/renametest\00"
define void @group_test_4() {
%1 = alloca i32
br label %2
2: ; preds = %0
%3 = call i32 @setgid(i32 101)
%4 = call i32 @setuid(i32 101)
br label %5
5: ; preds = %2
%6 = call i32 @rename(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
store i32 %6, i32* %1
%7 = load i32, i32* %1
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
%10 = call i32 @exit(i32 %9)
unreachable
}

LLVM IR (-O2):
@.str = [18 x i8] c"DIR_046/writetest\00"
@.str.1 = [19 x i8] c"DIR_046/renametest\00"
define void @group_test_4() {
%1 = tail call i32 @setgid(i32 101)
%2 = tail call i32 @setuid(i32 101)
%3 = tail call i32 @rename(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = tail call i32 @exit(i32 %5)
unreachable
}
void cpu_load_update_nohz_stop(void) {}


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

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

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

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