xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int i, j;
  scanf("%d%d", &i, &j);
  printf("%d\n%d\n", i, j);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [7 x i8] c"%d\0A%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %6, i32 %7)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ raise(int);
int /*<<< orphan*/ signal(int, void (*)(int));
int /*<<< orphan*/ stdout;
void handler(int signo) {
  printf("signal %d received\n", signo);
  fflush(stdout);
  raise(signo);
  signal(signo, handler);
}


x86 assembly (clang, -O0):
<handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xeab(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e77(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    -0x4(%rbp),%edi
call   1030 <raise@plt>
mov    -0x4(%rbp),%edi
mov    0x2e6e(%rip),%rsi
call   1050 <signal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handler>:
push   %rbx
mov    %edi,%ebx
lea    0xeb6(%rip),%rdi
mov    %ebx,%esi
call   1040 <printf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    %ebx,%edi
call   1030 <raise@plt>
mov    0x2e7b(%rip),%rsi
mov    %ebx,%edi
pop    %rbx
jmp    1050 <signal@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"signal %d received\0A\00"
@stdout = global i32 0
define void @handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = call i32 @fflush(i32 %5)
%7 = load i32, i32* %2
%8 = call i32 @raise(i32 %7)
%9 = load i32, i32* %2
%10 = call i32 @signal(i32 %9, void (i32)* @handler)
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"signal %d received\0A\00"
@stdout = global i32 0
define void @handler(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
%5 = tail call i32 @raise(i32 %0)
%6 = tail call i32 @signal(i32 %0, void (i32)* @handler)
ret void
}
/* Forward declarations */
typedef struct TYPE_4__ TYPE_2__;
typedef struct TYPE_3__ TYPE_1__;

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

/* Variables and functions */
int get_XEvent_xcirculaterequest_type(void *_p) {
  return (int)((XEvent *)_p)->xcirculaterequest.type;
}


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

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

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

LLVM IR (-O2):
define i32 @get_XEvent_xcirculaterequest_type(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
char caller_i8(char (*callback)(char), char value) {
  printf("calling i8 callback\n");
  return callback(value);
}


x86 assembly (clang, -O0):
<caller_i8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movsbl -0x9(%rbp),%edi
call   *%rax
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<caller_i8>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
mov    %ebp,%edi
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    *%rax

LLVM IR (-O0):
@.str = [21 x i8] c"calling i8 callback\0A\00"
define signext i8 @caller_i8(i8 (i8)* %0, i8 signext %1) {
%3 = alloca i8 (i8)*
%4 = alloca i8
store i8 (i8)* %0, i8 (i8)** %3
store i8 %1, i8* %4
%5 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%6 = load i8 (i8)*, i8 (i8)** %3
%7 = load i8, i8* %4
%8 = call signext i8 %6(i8 signext %7)
ret i8 %8
}

LLVM IR (-O2):
@str = [20 x i8] c"calling i8 callback\00"
define signext i8 @caller_i8(i8 (i8)* nocapture %0, i8 signext %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%4 = tail call signext i8 %0(i8 signext %1)
ret i8 %4
}
void gtk_drag_source_set_target_list() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @av_get_bits_per_pixel() {
ret void
}
unsigned int OALReadDeviceId(unsigned int devId) {
  unsigned short tmp = 0;
  tmp = 0x50;
  return tmp;
}


x86 assembly (clang, -O0):
<OALReadDeviceId>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movw   $0x0,-0x6(%rbp)
movw   $0x50,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @OALReadDeviceId(i32 %0) {
%2 = alloca i32
%3 = alloca i16
store i32 %0, i32* %2
store i16 0, i16* %3
store i16 80, i16* %3
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @OALReadDeviceId(i32 %0) {
ret i32 80
}
/* Variables and functions */
long addRange(long, long);
long subRange(long l, long h) { return (addRange(l + 1, h) - l) * -1; }


x86 assembly (clang, -O0):
<subRange>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x1,%rdi
mov    -0x10(%rbp),%rsi
call   1030 <addRange@plt>
sub    -0x8(%rbp),%rax
imul   $0xffffffffffffffff,%rax,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<subRange>:
push   %rbx
mov    %rdi,%rbx
add    $0x1,%rdi
call   1030 <addRange@plt>
sub    %rax,%rbx
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @subRange(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 = add nsw i64 %5, 1
%7 = load i64, i64* %4
%8 = call i64 @addRange(i64 %6, i64 %7)
%9 = load i64, i64* %3
%10 = sub nsw i64 %8, %9
%11 = mul nsw i64 %10, -1
ret i64 %11
}

LLVM IR (-O2):
define i64 @subRange(i64 %0, i64 %1) {
%3 = add nsw i64 %0, 1
%4 = tail call i64 @addRange(i64 %3, i64 %1)
%5 = sub i64 %0, %4
ret i64 %5
}
void swap(char m, char n) {
  int t;
  t = n;
  n = m;
  m = t;
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x1(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x8(%rbp),%eax
mov    %al,-0x1(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @swap(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
%6 = load i8, i8* %4
%7 = sext i8 %6 to i32
store i32 %7, i32* %5
%8 = load i8, i8* %3
store i8 %8, i8* %4
%9 = load i32, i32* %5
%10 = trunc i32 %9 to i8
store i8 %10, i8* %3
ret void
}

LLVM IR (-O2):
define void @swap(i8 signext %0, i8 signext %1) {
ret void
}
int bfcheck(const char *c) {
  int x = 0;
  while ((x += (*c & -6) == 89 && (*c & 6) ^ 6 ? 3 - (*c & 6) : 0) >= 0 && *c++)
    ;
  return !x;
}


x86 assembly (clang, -O0):
<bfcheck>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
and    $0xfffffffa,%eax
cmp    $0x59,%eax
jne    1151 <bfcheck+0x51>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
and    $0x6,%eax
xor    $0x6,%eax
cmp    $0x0,%eax
je     1151 <bfcheck+0x51>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
and    $0x6,%ecx
mov    $0x3,%eax
sub    %ecx,%eax
mov    %eax,-0x10(%rbp)
jmp    115b <bfcheck+0x5b>
xor    %eax,%eax
mov    %eax,-0x10(%rbp)
jmp    115b <bfcheck+0x5b>
mov    -0x10(%rbp),%ecx
add    -0xc(%rbp),%ecx
mov    %ecx,-0xc(%rbp)
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
jl     118d <bfcheck+0x8d>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    119d <bfcheck+0x9d>
jmp    11a2 <bfcheck+0xa2>
jmp    110f <bfcheck+0xf>
cmpl   $0x0,-0xc(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @bfcheck(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %37, %1
%5 = load i8*, i8** %2
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = and i32 %7, -6
%9 = icmp eq i32 %8, 89
br i1 %9, label %10, label %23
10: ; preds = %4
%11 = load i8*, i8** %2
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = and i32 %13, 6
%15 = xor i32 %14, 6
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %23
17: ; preds = %10
%18 = load i8*, i8** %2
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = and i32 %20, 6
%22 = sub nsw i32 3, %21
br label %24
23: ; preds = %10, %4
br label %24
24: ; preds = %23, %17
%25 = phi i32 [ %22, %17 ], [ 0, %23 ]
%26 = load i32, i32* %3
%27 = add nsw i32 %26, %25
store i32 %27, i32* %3
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %35
29: ; preds = %24
%30 = load i8*, i8** %2
%31 = getelementptr inbounds i8, i8* %30, i32 1
store i8* %31, i8** %2
%32 = load i8, i8* %30
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br label %35
35: ; preds = %29, %24
%36 = phi i1 [ false, %24 ], [ %34, %29 ]
br i1 %36, label %37, label %38
37: ; preds = %35
br label %4
38: ; preds = %35
%39 = load i32, i32* %3
%40 = icmp ne i32 %39, 0
%41 = xor i1 %40, true
%42 = zext i1 %41 to i32
ret i32 %42
}

LLVM IR (-O2):
define i32 @bfcheck(i8* nocapture %0) {
ret i32 1
}
/* Variables and functions */
void *calloc(size_t, size_t);
void *gssalloc_calloc(size_t count, size_t size) { return calloc(count, size); }


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

x86 assembly (clang, -O2):
<gssalloc_calloc>:
jmp    1030 <calloc@plt>

LLVM IR (-O0):
define i8* @gssalloc_calloc(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 = call i8* @calloc(i64 %5, i64 %6)
ret i8* %7
}

LLVM IR (-O2):
define noalias i8* @gssalloc_calloc(i64 %0, i64 %1) {
%3 = tail call i8* @calloc(i64 %0, i64 %1)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ buzzFizz(int);
int getUserInput();
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  int n;
  do {
    n = getUserInput();
    buzzFizz(n);
    printf("\n");
  } while (n >= 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getUserInput@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <buzzFizz@plt>
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
jge    1146 <main+0x16>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getUserInput@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1050 <buzzFizz@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %ebx,%ebx
jns    1140 <main+0x10>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %3, %2
%4 = tail call i32 (...) @getUserInput()
%5 = tail call i32 @buzzFizz(i32 %4)
%6 = tail call i32 @putchar(i32 10)
%7 = icmp sgt i32 %4, -1
br i1 %7, label %3, label %8
8: ; preds = %3
ret i32 0
}
/* Variables and functions */
int djeljiva_sa_tri(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  printf("Unesite broj n: ");
  scanf("%d", &n);
  printf("%d", djeljiva_sa_tri(n));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1040 <djeljiva_sa_tri@plt>
mov    %eax,%esi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec7(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0xc(%rsp),%edi
call   1040 <djeljiva_sa_tri@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [17 x i8] c"Unesite broj n: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 @djeljiva_sa_tri(i32 %5)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret i32 0
}
long unsigned_short_big_endian(signed char *buf, long offset) {
  return ((buf[offset] & 0xFF) << 8) | (buf[offset + 1] & 0xFF);
}


x86 assembly (clang, -O0):
<unsigned_short_big_endian>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
and    $0xff,%eax
shl    $0x8,%eax
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%rdx
movsbl 0x1(%rcx,%rdx,1),%ecx
and    $0xff,%ecx
or     %ecx,%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<unsigned_short_big_endian>:
movzwl (%rdi,%rsi,1),%eax
shl    $0x30,%rax
bswap  %rax
ret

LLVM IR (-O0):
define i64 @unsigned_short_big_endian(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = load i64, i64* %4
%7 = getelementptr inbounds i8, i8* %5, i64 %6
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = and i32 %9, 255
%11 = shl i32 %10, 8
%12 = load i8*, i8** %3
%13 = load i64, i64* %4
%14 = add nsw i64 %13, 1
%15 = getelementptr inbounds i8, i8* %12, i64 %14
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = and i32 %17, 255
%19 = or i32 %11, %18
%20 = sext i32 %19 to i64
ret i64 %20
}

LLVM IR (-O2):
define i64 @unsigned_short_big_endian(i8* nocapture %0, i64 %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 %1
%4 = load i8, i8* %3
%5 = zext i8 %4 to i64
%6 = shl nuw nsw i64 %5, 8
%7 = add nsw i64 %1, 1
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = load i8, i8* %8
%10 = zext i8 %9 to i64
%11 = or i64 %6, %10
ret i64 %11
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void *, size_t);
void *solv_malloc(size_t);
void *solv_memdup(void *buf, size_t len) {
  void *newbuf;
  if (!buf)
    return 0;
  newbuf = solv_malloc(len);
  if (len)
    memcpy(newbuf, buf, len);
  return newbuf;
}


x86 assembly (clang, -O0):
<solv_memdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1148 <solv_memdup+0x28>
movq   $0x0,-0x8(%rbp)
jmp    1179 <solv_memdup+0x59>
mov    -0x18(%rbp),%rdi
call   1030 <solv_malloc@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1171 <solv_memdup+0x51>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solv_memdup>:
push   %r15
push   %r14
push   %rbx
test   %rdi,%rdi
je     1150 <solv_memdup+0x30>
mov    %rsi,%rbx
mov    %rdi,%r15
mov    %rsi,%rdi
call   1030 <solv_malloc@plt>
mov    %rax,%r14
test   %rbx,%rbx
je     1153 <solv_memdup+0x33>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1040 <memcpy@plt>
jmp    1153 <solv_memdup+0x33>
xor    %r14d,%r14d
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define i8* @solv_memdup(i8* %0, i64 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = tail call i8* @solv_malloc(i64 %1)
%6 = icmp eq i64 %1, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 @memcpy(i8* %5, i8* %0, i64 %1)
br label %9
9: ; preds = %4, %7, %2
%10 = phi i8* [ null, %2 ], [ %5, %7 ], [ %5, %4 ]
ret i8* %10
}
/* Type definitions */
typedef int /*<<< orphan*/ PKCS8_PRIV_KEY_INFO;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int ASN1_item_i2d_bio(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                      int /*<<< orphan*/ *);
int /*<<< orphan*/ PKCS8_PRIV_KEY_INFO_it;
int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf) {
  return ASN1_item_i2d_bio(&PKCS8_PRIV_KEY_INFO_it, bp, p8inf);
}


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

x86 assembly (clang, -O2):
<i2d_PKCS8_PRIV_KEY_INFO_bio>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2ec3(%rip),%rdi
jmp    1030 <ASN1_item_i2d_bio@plt>

LLVM IR (-O0):
@PKCS8_PRIV_KEY_INFO_it = global i32 0
define i32 @i2d_PKCS8_PRIV_KEY_INFO_bio(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 @ASN1_item_i2d_bio(i32* @PKCS8_PRIV_KEY_INFO_it, i32* %5, i32* %6)
ret i32 %7
}

LLVM IR (-O2):
@PKCS8_PRIV_KEY_INFO_it = global i32 0
define i32 @i2d_PKCS8_PRIV_KEY_INFO_bio(i32* %0, i32* %1) {
%3 = tail call i32 @ASN1_item_i2d_bio(i32* @PKCS8_PRIV_KEY_INFO_it, i32* %0, i32* %1)
ret i32 %3
}
int max_int(int a, int b) {
  if (a < b) {
    return b;
  } else {
    return a;
  }
}


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

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

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

LLVM IR (-O2):
define i32 @max_int(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = select i1 %3, i32 %1, i32 %0
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ tcp4_stop();
int /*<<< orphan*/ tcp6_stop();
int /*<<< orphan*/ udp4_stop();
int /*<<< orphan*/ udp6_stop();
void manager_stop(void) {
  udp4_stop();
  tcp4_stop();
  udp6_stop();
  tcp6_stop();
}


x86 assembly (clang, -O0):
<manager_stop>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <udp4_stop@plt>
mov    $0x0,%al
call   1040 <tcp4_stop@plt>
mov    $0x0,%al
call   1060 <udp6_stop@plt>
mov    $0x0,%al
call   1050 <tcp6_stop@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<manager_stop>:
push   %rax
xor    %eax,%eax
call   1030 <udp4_stop@plt>
xor    %eax,%eax
call   1040 <tcp4_stop@plt>
xor    %eax,%eax
call   1060 <udp6_stop@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <tcp6_stop@plt>

LLVM IR (-O0):
define void @manager_stop() {
%1 = call i32 (...) @udp4_stop()
%2 = call i32 (...) @tcp4_stop()
%3 = call i32 (...) @udp6_stop()
%4 = call i32 (...) @tcp6_stop()
ret void
}

LLVM IR (-O2):
define void @manager_stop() {
%1 = tail call i32 (...) @udp4_stop()
%2 = tail call i32 (...) @tcp4_stop()
%3 = tail call i32 (...) @udp6_stop()
%4 = tail call i32 (...) @tcp6_stop()
ret void
}
/* Variables and functions */
int encode_devnode_name(char const *, char *, size_t);
__attribute__((visibility("default"))) int
udev_util_encode_string(const char *str, char *str_enc, size_t len) {
  return encode_devnode_name(str, str_enc, len);
}


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

x86 assembly (clang, -O2):
<udev_util_encode_string>:
jmp    1030 <encode_devnode_name@plt>

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

LLVM IR (-O2):
define i32 @udev_util_encode_string(i8* %0, i8* %1, i64 %2) {
%4 = tail call i32 @encode_devnode_name(i8* %0, i8* %1, i64 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  unsigned int top;
  unsigned int x;
  if (top == 3) {
    return 0;
  }
  x = top * 1073741824u;
  assert(x != 3221225472u);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x3,-0x8(%rbp)
jne    1135 <main+0x25>
movl   $0x0,-0x4(%rbp)
jmp    1159 <main+0x49>
mov    -0x8(%rbp),%eax
shl    $0x1e,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0xc0000000,-0xc(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
ret i32 0
}
/* Type definitions */
typedef scalar_t__ uint32_t;
typedef scalar_t__ const int32_t;

/* Variables and functions */
int nd();
int32_t compute2(const uint32_t t[6][2]) {
  int i2 = nd();
  return t[0][1] + t[1][1] + t[5][1];
}


x86 assembly (clang, -O0):
<compute2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <nd@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rax
mov    -0x8(%rbp),%rcx
add    0x18(%rcx),%rax
mov    -0x8(%rbp),%rcx
add    0x58(%rcx),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<compute2>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <nd@plt>
mov    0x18(%rbx),%rax
add    0x8(%rbx),%rax
add    0x58(%rbx),%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @compute2([2 x i64]* %0) {
%2 = alloca [2 x i64]*
%3 = alloca i32
store [2 x i64]* %0, [2 x i64]** %2
%4 = call i32 (...) @nd()
store i32 %4, i32* %3
%5 = load [2 x i64]*, [2 x i64]** %2
%6 = getelementptr inbounds [2 x i64], [2 x i64]* %5, i64 0
%7 = getelementptr inbounds [2 x i64], [2 x i64]* %6, i64 0, i64 1
%8 = load i64, i64* %7
%9 = load [2 x i64]*, [2 x i64]** %2
%10 = getelementptr inbounds [2 x i64], [2 x i64]* %9, i64 1
%11 = getelementptr inbounds [2 x i64], [2 x i64]* %10, i64 0, i64 1
%12 = load i64, i64* %11
%13 = add nsw i64 %8, %12
%14 = load [2 x i64]*, [2 x i64]** %2
%15 = getelementptr inbounds [2 x i64], [2 x i64]* %14, i64 5
%16 = getelementptr inbounds [2 x i64], [2 x i64]* %15, i64 0, i64 1
%17 = load i64, i64* %16
%18 = add nsw i64 %13, %17
ret i64 %18
}

LLVM IR (-O2):
define i64 @compute2([2 x i64]* nocapture %0) {
%2 = tail call i32 (...) @nd()
%3 = getelementptr inbounds [2 x i64], [2 x i64]* %0, i64 0, i64 1
%4 = load i64, i64* %3
%5 = getelementptr inbounds [2 x i64], [2 x i64]* %0, i64 1, i64 1
%6 = load i64, i64* %5
%7 = add nsw i64 %6, %4
%8 = getelementptr inbounds [2 x i64], [2 x i64]* %0, i64 5, i64 1
%9 = load i64, i64* %8
%10 = add nsw i64 %7, %9
ret i64 %10
}
void arm64_erp_local_dbe_handler(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
int smp_sio_seek(int /*<<< orphan*/ *, int /*<<< orphan*/, int /*<<< orphan*/);
int smp_sio_seek2begin(FILE *fp) { return smp_sio_seek(fp, 0, SEEK_SET); }


x86 assembly (clang, -O0):
<smp_sio_seek2begin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb9(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <smp_sio_seek@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smp_sio_seek2begin>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
jmp    1030 <smp_sio_seek@plt>

LLVM IR (-O0):
@SEEK_SET = global i32 0
define i32 @smp_sio_seek2begin(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* @SEEK_SET
%5 = call i32 @smp_sio_seek(i32* %3, i32 0, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
define i32 @smp_sio_seek2begin(i32* %0) {
%2 = load i32, i32* @SEEK_SET
%3 = tail call i32 @smp_sio_seek(i32* %0, i32 0, i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void usage() {
  printf("Usage: reaim [-h] [-m] [-a] [-e <ip>] [-l log] [-d]\n"
         "\n"
         "  -h | --help                   : Show this text.\n"
         "  -m | --disable-msn            : Disable MSN support.\n"
         "  -a | --disable-aim            : Disable AIM support.\n"
         "  -e <ip> | --external-ip <ip>  : Manually set the override ip "
         "address.\n"
         "  -l <log> | --logfile <log>    : Set logfile location.\n"
         "                                    Default: %s\n"
         "  -d                            : Do not fork into the background.\n",
         "/var/log/reaim.log");
}


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

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

LLVM IR (-O0):
@.str = [457 x i8] c"Usage: reaim [-h] [-m] [-a] [-e <ip>] [-l log] [-d]\0A\0A -h | --help : Show this text.\0A -m | --disable-msn : Disable MSN support.\0A -a | --disable-aim : Disable AIM support.\0A -e <ip> | --external-ip <ip> : Manually set the override ip address.\0A -l <log> | --logfile <log> : Set logfile location.\0A Default: %s\0A -d : Do not fork into the background.\0A\00"
@.str.1 = [19 x i8] c"/var/log/reaim.log\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([457 x i8], [457 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [457 x i8] c"Usage: reaim [-h] [-m] [-a] [-e <ip>] [-l log] [-d]\0A\0A -h | --help : Show this text.\0A -m | --disable-msn : Disable MSN support.\0A -a | --disable-aim : Disable AIM support.\0A -e <ip> | --external-ip <ip> : Manually set the override ip address.\0A -l <log> | --logfile <log> : Set logfile location.\0A Default: %s\0A -d : Do not fork into the background.\0A\00"
@.str.1 = [19 x i8] c"/var/log/reaim.log\00"
define void @usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([457 x i8], [457 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int hdate_is_hebrew_locale() {
  char *locale;
  char *language;
  locale = NULL;
  language = NULL;
  if (!((locale && (locale[0] == 'h') && (locale[1] == 'e')) ||
        (language && (language[0] == 'h') && (language[1] == 'e')))) {
    return 0;
  }
  return -1;
}


x86 assembly (clang, -O0):
<hdate_is_hebrew_locale>:
push   %rbp
mov    %rsp,%rbp
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1140 <hdate_is_hebrew_locale+0x40>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x68,%eax
jne    1140 <hdate_is_hebrew_locale+0x40>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x65,%eax
je     1178 <hdate_is_hebrew_locale+0x78>
cmpq   $0x0,-0x18(%rbp)
je     116c <hdate_is_hebrew_locale+0x6c>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x68,%eax
jne    116c <hdate_is_hebrew_locale+0x6c>
mov    -0x18(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x65,%eax
je     1178 <hdate_is_hebrew_locale+0x78>
movl   $0x0,-0x4(%rbp)
jmp    117f <hdate_is_hebrew_locale+0x7f>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @hdate_is_hebrew_locale() {
ret i32 0
}
int PDC_get_cursor_mode() {}


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

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

LLVM IR (-O0):
define i32 @PDC_get_cursor_mode() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @PDC_get_cursor_mode() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isxdigit(int);
void t_isxdigit_0xcd() {
  Assert_real((isxdigit(205) == 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_isxdigit.c",
              1030, ("isxdigit should be 0 for 0xcd"));
}


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

x86 assembly (clang, -O2):
<t_isxdigit_0xcd>:
push   %rax
mov    $0xcd,%edi
call   1030 <isxdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x406,%edx
pop    %rax
jmp    1040 <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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xcd\00"
define void @t_isxdigit_0xcd() {
%1 = call i64 @isxdigit(i32 205)
%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 1030, 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_isxdigit.c\00"
@.str.1 = [30 x i8] c"isxdigit should be 0 for 0xcd\00"
define void @t_isxdigit_0xcd() {
%1 = tail call i64 @isxdigit(i32 205)
%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 1030, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int create_multprec_homotopy_with_given_gamma(double gamma_re,
                                              double gamma_im) {
  int *a, *b, fail;
  double c[2];
  c[0] = gamma_re;
  c[1] = gamma_im;
  fail = _ada_use_c2phc(523, a, b, c);
  return fail;
}


x86 assembly (clang, -O0):
<create_multprec_homotopy_with_given_gamma>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    -0x40(%rbp),%rcx
mov    $0x20b,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_multprec_homotopy_with_given_gamma>:
sub    $0x18,%rsp
movsd  %xmm0,(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    %rsp,%rcx
mov    $0x20b,%edi
call   1030 <_ada_use_c2phc@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @create_multprec_homotopy_with_given_gamma(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32
%8 = alloca [2 x double]
store double %0, double* %3
store double %1, double* %4
%9 = load double, double* %3
%10 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
store double %9, double* %10
%11 = load double, double* %4
%12 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
store double %11, double* %12
%13 = load i32*, i32** %5
%14 = load i32*, i32** %6
%15 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%16 = call i32 @_ada_use_c2phc(i32 523, i32* %13, i32* %14, double* %15)
store i32 %16, i32* %7
%17 = load i32, i32* %7
ret i32 %17
}

LLVM IR (-O2):
define i32 @create_multprec_homotopy_with_given_gamma(double %0, double %1) {
%3 = alloca [2 x double]
%4 = bitcast [2 x double]* %3 to i8*
%5 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 0
store double %0, double* %5
%6 = getelementptr inbounds [2 x double], [2 x double]* %3, i64 0, i64 1
store double %1, double* %6
%7 = call i32 @_ada_use_c2phc(i32 523, i32* undef, i32* undef, double* %5)
ret i32 %7
}
/* Type definitions */
struct hostent {
  scalar_t__ h_addr;
};

/* Variables and functions */
struct hostent *gethostbyname(char *);
char *gethostname_a();
extern unsigned int gethostaddr(void) {
  char *hostname;
  struct hostent *hostinfo;
  hostname = gethostname_a();
  hostinfo = gethostbyname(hostname);
  return *(unsigned int *)hostinfo->h_addr;
}


x86 assembly (clang, -O0):
<gethostaddr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <gethostname_a@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <gethostbyname@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gethostaddr>:
push   %rax
xor    %eax,%eax
call   1040 <gethostname_a@plt>
mov    %rax,%rdi
call   1030 <gethostbyname@plt>
mov    (%rax),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.hostent = type { i64 }
define i32 @gethostaddr() {
%1 = alloca i8*
%2 = alloca %struct.hostent*
%3 = call i8* (...) @gethostname_a()
store i8* %3, i8** %1
%4 = load i8*, i8** %1
%5 = call %struct.hostent* @gethostbyname(i8* %4)
store %struct.hostent* %5, %struct.hostent** %2
%6 = load %struct.hostent*, %struct.hostent** %2
%7 = getelementptr inbounds %struct.hostent, %struct.hostent* %6, i32 0, i32 0
%8 = load i64, i64* %7
%9 = inttoptr i64 %8 to i32*
%10 = load i32, i32* %9
ret i32 %10
}

LLVM IR (-O2):
%struct.hostent = type { i64 }
define i32 @gethostaddr() {
%1 = tail call i8* (...) @gethostname_a()
%2 = tail call %struct.hostent* @gethostbyname(i8* %1)
%3 = getelementptr inbounds %struct.hostent, %struct.hostent* %2, i64 0, i32 0
%4 = load i64, i64* %3
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5
ret i32 %6
}
void resetPidSearch() {}


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

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

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

LLVM IR (-O2):
define void @resetPidSearch() {
ret void
}
/* Type definitions */
struct page {
  int dummy;
};
struct inode {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ BUG_ON(int /*<<< orphan*/);
int /*<<< orphan*/ PageNfsCached(struct page *);
void nfs_writepage_to_fscache(struct inode *inode, struct page *page) {
  BUG_ON(PageNfsCached(page));
}


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

x86 assembly (clang, -O2):
<nfs_writepage_to_fscache>:
push   %rax
mov    %rsi,%rdi
call   1030 <PageNfsCached@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <BUG_ON@plt>

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

LLVM IR (-O2):
%struct.inode = type { i32 }
%struct.page = type { i32 }
define void @nfs_writepage_to_fscache(%struct.inode* nocapture readnone %0, %struct.page* %1) {
%3 = tail call i32 @PageNfsCached(%struct.page* %1)
%4 = tail call i32 @BUG_ON(i32 %3)
ret void
}
/* Variables and functions */
void Reserved_Handler7(void) {
  while (1)
    ;
}


x86 assembly (clang, -O0):
<Reserved_Handler7>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <Reserved_Handler7+0x9>
jmp    1109 <Reserved_Handler7+0x9>

x86 assembly (clang, -O2):
<Reserved_Handler7>:
jmp    1100 <Reserved_Handler7>

LLVM IR (-O0):
define void @Reserved_Handler7() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @Reserved_Handler7() {
br label %1
1: ; preds = %0, %1
br label %1
}
int(_rl_lowercase_p)(c) int c;
{ return (((unsigned char)(c) == (c)) && (1 && islower(c))); }


x86 assembly (clang, -O0):
<_rl_lowercase_p>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
movzbl %al,%ecx
xor    %eax,%eax
cmp    -0x4(%rbp),%ecx
mov    %al,-0x5(%rbp)
jne    1140 <_rl_lowercase_p+0x30>
mov    -0x4(%rbp),%edi
call   1030 <islower@plt>
cmp    $0x0,%eax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_rl_lowercase_p>:
xor    %eax,%eax
cmp    $0xff,%edi
ja     112d <_rl_lowercase_p+0x1d>
push   %rax
call   1030 <islower@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i32 @_rl_lowercase_p(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = trunc i32 %3 to i8
%5 = zext i8 %4 to i32
%6 = load i32, i32* %2
%7 = icmp eq i32 %5, %6
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i32, i32* %2
%10 = call i32 @islower(i32 %9)
%11 = icmp ne i32 %10, 0
br label %12
12: ; preds = %8, %1
%13 = phi i1 [ false, %1 ], [ %11, %8 ]
%14 = zext i1 %13 to i32
ret i32 %14
}

LLVM IR (-O2):
define i32 @_rl_lowercase_p(i32 %0) {
%2 = icmp ult i32 %0, 256
br i1 %2, label %3, label %7
3: ; preds = %1
%4 = tail call i32 @islower(i32 %0)
%5 = icmp ne i32 %4, 0
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %3, %1
%8 = phi i32 [ 0, %1 ], [ %6, %3 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ _exit(int);
int main() {
  unsigned int a;
  ((unsigned short *)&a)[0] = 0x3412;
  ((unsigned short *)&a)[1] = 0x7856;
  if (a != 0x78563412) {
    _exit(-1);
  }
  _exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movw   $0x3412,-0x8(%rbp)
movw   $0x7856,-0x6(%rbp)
cmpl   $0x78563412,-0x8(%rbp)
je     1142 <main+0x32>
mov    $0xffffffff,%edi
call   1030 <_exit@plt>
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
%2 = alloca i32
store i32 0, i32* %1
%3 = bitcast i32* %2 to i16*
%4 = getelementptr inbounds i16, i16* %3, i64 0
store i16 13330, i16* %4
%5 = bitcast i32* %2 to i16*
%6 = getelementptr inbounds i16, i16* %5, i64 1
store i16 30806, i16* %6
%7 = load i32, i32* %2
%8 = icmp ne i32 %7, 2018915346
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 @_exit(i32 -1)
unreachable
11: ; preds = %0
%12 = 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*/ free(void **);
void **dynarr_destroy(void **arr) {
  free(arr[0]);
  arr[0] = NULL;
  free(arr);
  return NULL;
}


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

x86 assembly (clang, -O2):
<dynarr_destroy>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
movq   $0x0,(%rbx)
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i8** @dynarr_destroy(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = bitcast i8* %5 to i8**
%7 = call i32 @free(i8** %6)
%8 = load i8**, i8*** %2
%9 = getelementptr inbounds i8*, i8** %8, i64 0
store i8* null, i8** %9
%10 = load i8**, i8*** %2
%11 = call i32 @free(i8** %10)
ret i8** null
}

LLVM IR (-O2):
define noalias i8** @dynarr_destroy(i8** nocapture %0) {
%2 = bitcast i8** %0 to i8***
%3 = load i8**, i8*** %2
%4 = tail call i32 @free(i8** %3)
store i8* null, i8** %0
%5 = tail call i32 @free(i8** %0)
ret i8** null
}