xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ fftss_cleanup_threads();
void dfftss_cleanup_threads(void) { fftss_cleanup_threads(); }


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

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

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

LLVM IR (-O2):
define void @dfftss_cleanup_threads() {
%1 = tail call i32 (...) @fftss_cleanup_threads()
ret void
}
/* Variables and functions */
int chkadd(unsigned char *, int);
int chkxor(unsigned char *, int);
int /*<<< orphan*/ printf(char *, int);
void dmchk(void) {
  unsigned char buf[9] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09};
  printf("%d  ... chkadd\n", chkadd(buf, 9));
  printf("%d  ... chkxor\n", chkxor(buf, 9));
}


x86 assembly (clang, -O0):
<dmchk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xec1(%rip),%rax
mov    %rax,-0x9(%rbp)
mov    0xebf(%rip),%al
mov    %al,-0x1(%rbp)
lea    -0x9(%rbp),%rdi
mov    $0x9,%esi
call   1040 <chkadd@plt>
mov    %eax,%esi
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
lea    -0x9(%rbp),%rdi
mov    $0x9,%esi
call   1050 <chkxor@plt>
mov    %eax,%esi
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dmchk>:
push   %rbx
sub    $0x10,%rsp
movabs $0x807060504030201,%rax
06 07 08
mov    %rax,(%rsp)
movb   $0x9,0x8(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x9,%esi
call   1040 <chkadd@plt>
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1050 <chkxor@plt>
lea    0xe9f(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.dmchk.buf = [9 x i8] c"\01\02\03\04\05\06\07\08\09"
@.str = [16 x i8] c"%d ... chkadd\0A\00"
@.str.1 = [16 x i8] c"%d ... chkxor\0A\00"
define void @dmchk() {
%1 = alloca [9 x i8]
%2 = bitcast [9 x i8]* %1 to i8*
%3 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
%4 = call i32 @chkadd(i8* %3, i32 9)
%5 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
%7 = call i32 @chkxor(i8* %6, i32 9)
%8 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@__const.dmchk.buf = [9 x i8] c"\01\02\03\04\05\06\07\08\09"
@.str = [16 x i8] c"%d ... chkadd\0A\00"
@.str.1 = [16 x i8] c"%d ... chkxor\0A\00"
define void @dmchk() {
%1 = alloca [9 x i8]
%2 = getelementptr inbounds [9 x i8], [9 x i8]* %1, i64 0, i64 0
%3 = call i32 @chkadd(i8* %2, i32 9)
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = call i32 @chkxor(i8* %2, i32 9)
%6 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
char *gettext(char *);
int /*<<< orphan*/ stderr;
void usage() {
  (void)fprintf(stderr, gettext("usage: col [-bfpx] [-l nline]\n"));
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
lea    0xeb5(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ea8(%rip),%rax
mov    (%rax),%ebx
lea    0xebf(%rip),%rdi
call   1030 <gettext@plt>
mov    %ebx,%edi
mov    %rax,%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [31 x i8] c"usage: col [-bfpx] [-l nline]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i8* @gettext(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @fprintf(i32 %1, i8* %2)
%4 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [31 x i8] c"usage: col [-bfpx] [-l nline]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i8* @gettext(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @fprintf(i32 %1, i8* %2)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ AirspeedActualHandle();
int /*<<< orphan*/ UAVObjUpdated(int /*<<< orphan*/);
void AirspeedActualUpdated() { UAVObjUpdated(AirspeedActualHandle()); }


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

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

LLVM IR (-O0):
define void @AirspeedActualUpdated() {
%1 = call i32 (...) @AirspeedActualHandle()
%2 = call i32 @UAVObjUpdated(i32 %1)
ret void
}

LLVM IR (-O2):
define void @AirspeedActualUpdated() {
%1 = tail call i32 (...) @AirspeedActualHandle()
%2 = tail call i32 @UAVObjUpdated(i32 %1)
ret void
}
int clamp1023_signed(int x) {
  if (x < -1023)
    return -1023;
  if (x > 1023)
    return 1023;
  return x;
}


x86 assembly (clang, -O0):
<clamp1023_signed>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0xfffffc01,-0x8(%rbp)
jge    1120 <clamp1023_signed+0x20>
movl   $0xfffffc01,-0x4(%rbp)
jmp    113f <clamp1023_signed+0x3f>
cmpl   $0x3ff,-0x8(%rbp)
jle    1139 <clamp1023_signed+0x39>
movl   $0x3ff,-0x4(%rbp)
jmp    113f <clamp1023_signed+0x3f>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clamp1023_signed>:
cmp    $0x3ff,%edi
mov    $0x3ff,%ecx
cmovl  %edi,%ecx
cmp    $0xfffffc02,%ecx
mov    $0xfffffc01,%eax
cmovge %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @clamp1023_signed(i32 %0) {
%2 = icmp slt i32 %0, 1023
%3 = select i1 %2, i32 %0, i32 1023
%4 = icmp sgt i32 %3, -1023
%5 = select i1 %4, i32 %3, i32 -1023
ret i32 %5
}
int tohex(char c) {
  if (c >= '0' && c <= '9')
    return c - '0';
  else
    return c - 'a' + 10;
}


x86 assembly (clang, -O0):
<tohex>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1133 <tohex+0x33>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1133 <tohex+0x33>
movsbl -0x5(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x4(%rbp)
jmp    1140 <tohex+0x40>
movsbl -0x5(%rbp),%eax
sub    $0x61,%eax
add    $0xa,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tohex>:
lea    -0x30(%rdi),%ecx
lea    -0x57(%rdi),%edx
lea    -0x30(%rdi),%eax
cmp    $0xa,%cl
cmovae %edx,%eax
ret

LLVM IR (-O0):
define i32 @tohex(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 48
store i32 %14, i32* %2
br label %20
15: ; preds = %7, %1
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %17, 97
%19 = add nsw i32 %18, 10
store i32 %19, i32* %2
br label %20
20: ; preds = %15, %11
%21 = load i32, i32* %2
ret i32 %21
}

LLVM IR (-O2):
define i32 @tohex(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add i8 %0, -48
%4 = icmp ult i8 %3, 10
%5 = select i1 %4, i32 -48, i32 -87
%6 = add nsw i32 %5, %2
ret i32 %6
}
int cmp(const void *a, const void *b) { return *(int *)a < *(int *)b ? -1 : 1; }


x86 assembly (clang, -O0):
<cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edx
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    $0x1,%eax
mov    $0xffffffff,%ecx
cmp    %esi,%edx
cmovl  %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp>:
mov    (%rdi),%eax
xor    %ecx,%ecx
cmp    (%rsi),%eax
setge  %cl
lea    (%rcx,%rcx,1),%eax
add    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @cmp(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 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = icmp slt i32 %7, %10
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 -1, i32 1
ret i32 %13
}

LLVM IR (-O2):
define i32 @cmp(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = icmp slt i32 %4, %6
%8 = select i1 %7, i32 -1, i32 1
ret i32 %8
}
/* Type definitions */
struct termios {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ TCGETS;
scalar_t__ ioctl(int, int /*<<< orphan*/, struct termios *);
int tcgetattr(int fd, struct termios *tio) {
  if (ioctl(fd, TCGETS, tio))
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<tcgetattr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2ebf(%rip),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
call   1030 <ioctl@plt>
cmp    $0x0,%rax
je     114a <tcgetattr+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1151 <tcgetattr+0x41>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcgetattr>:
push   %rax
mov    %rsi,%rdx
mov    0x2ecd(%rip),%rax
mov    (%rax),%esi
call   1030 <ioctl@plt>
neg    %rax
sbb    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.termios = type { i32 }
@TCGETS = global i32 0
define i32 @tcgetattr(i32 %0, %struct.termios* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca %struct.termios*
store i32 %0, i32* %4
store %struct.termios* %1, %struct.termios** %5
%6 = load i32, i32* %4
%7 = load i32, i32* @TCGETS
%8 = load %struct.termios*, %struct.termios** %5
%9 = call i64 @ioctl(i32 %6, i32 %7, %struct.termios* %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, i32* %3
br label %13
12: ; preds = %2
store i32 0, i32* %3
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
%struct.termios = type { i32 }
@TCGETS = global i32 0
define i32 @tcgetattr(i32 %0, %struct.termios* %1) {
%3 = load i32, i32* @TCGETS
%4 = tail call i64 @ioctl(i32 %0, i32 %3, %struct.termios* %1)
%5 = icmp ne i64 %4, 0
%6 = sext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ logwtmp(char *, char *, char *);
void foo(void) { logwtmp("", "", ""); }


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

x86 assembly (clang, -O2):
<foo>:
lea    0xee9(%rip),%rdi
mov    %rdi,%rsi
mov    %rdi,%rdx
jmp    1030 <logwtmp@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define void @foo() {
%1 = call i32 @logwtmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define void @foo() {
%1 = tail call i32 @logwtmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
unsigned int fib_recursive(int, int, unsigned int);
unsigned int fib(unsigned int n) {
  return ((n == 0) ? 0 : fib_recursive(1, 1, n));
}


x86 assembly (clang, -O0):
<fib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    112f <fib+0x1f>
xor    %eax,%eax
mov    %eax,-0x8(%rbp)
jmp    1141 <fib+0x31>
mov    -0x4(%rbp),%edx
mov    $0x1,%esi
mov    %esi,%edi
call   1030 <fib_recursive@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fib>:
test   %edi,%edi
je     1125 <fib+0x15>
mov    %edi,%edx
mov    $0x1,%edi
mov    $0x1,%esi
jmp    1030 <fib_recursive@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @fib(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @fib_recursive(i32 1, i32 1, i32 %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ 0, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ Done(int /*<<< orphan*/);
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ signal(int /*<<< orphan*/, void (*)());
void SigTermCaught() {
  Done(0);
  signal(SIGTERM, SigTermCaught);
}


x86 assembly (clang, -O0):
<SigTermCaught>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <Done@plt>
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
mov    0x2ea5(%rip),%rsi
call   1040 <signal@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<SigTermCaught>:
push   %rax
xor    %edi,%edi
call   1030 <Done@plt>
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
mov    0x2ea8(%rip),%rsi
pop    %rax
jmp    1040 <signal@plt>

LLVM IR (-O0):
@SIGTERM = global i32 0
define void @SigTermCaught() {
%1 = call i32 @Done(i32 0)
%2 = load i32, i32* @SIGTERM
%3 = call i32 @signal(i32 %2, void (...)* bitcast (void ()* @SigTermCaught to void (...)*))
ret void
}

LLVM IR (-O2):
@SIGTERM = global i32 0
define void @SigTermCaught() {
%1 = tail call i32 @Done(i32 0)
%2 = load i32, i32* @SIGTERM
%3 = tail call i32 @signal(i32 %2, void (...)* bitcast (void ()* @SigTermCaught to void (...)*))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void set_hint_flat(FILE *fp, unsigned char *buf, int argc, char *argv[]) {
  fprintf(stderr, "%s: set hint not supported on flat binaries.\n", argv[0]);
  exit(1);
}


x86 assembly (clang, -O0):
<set_hint_flat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
lea    0xeb2(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<set_hint_flat>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
mov    (%rcx),%rdx
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [46 x i8] c"%s: set hint not supported on flat binaries.\0A\00"
define void @set_hint_flat(i32* %0, i8* %1, i32 %2, i8** %3) {
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
store i32* %0, i32** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8** %3, i8*** %8
%9 = load i32, i32* @stderr
%10 = load i8**, i8*** %8
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [46 x i8] c"%s: set hint not supported on flat binaries.\0A\00"
define void @set_hint_flat(i32* nocapture readnone %0, i8* nocapture readnone %1, i32 %2, i8** nocapture %3) {
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, unsigned int);
void *realloc(void *, size_t);
int /*<<< orphan*/ stderr;
void *xrealloc(void *p, size_t size) {
  void *result = realloc(p, size);
  if (result == NULL && size > 0) {
    fprintf(stderr,
            "error: realloc failed to reallocate %ud bytes, now abort\n",
            (unsigned int)size);
    abort();
  }
  return result;
}


x86 assembly (clang, -O0):
<xrealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1189 <xrealloc+0x59>
cmpq   $0x0,-0x10(%rbp)
jbe    1189 <xrealloc+0x59>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    %eax,%edx
lea    0xe83(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrealloc>:
push   %rbx
mov    %rsi,%rbx
call   1050 <realloc@plt>
test   %rbx,%rbx
je     1143 <xrealloc+0x13>
test   %rax,%rax
je     1145 <xrealloc+0x15>
pop    %rbx
ret
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
mov    %ebx,%edx
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [58 x i8] c"error: realloc failed to reallocate %ud bytes, now abort\0A\00"
define i8* @xrealloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @realloc(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %20
11: ; preds = %2
%12 = load i64, i64* %4
%13 = icmp ugt i64 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = load i32, i32* @stderr
%16 = load i64, i64* %4
%17 = trunc i64 %16 to i32
%18 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = call i32 (...) @abort()
unreachable
20: ; preds = %11, %2
%21 = load i8*, i8** %5
ret i8* %21
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [58 x i8] c"error: realloc failed to reallocate %ud bytes, now abort\0A\00"
define noalias i8* @xrealloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
%5 = icmp ne i64 %1, 0
%6 = and i1 %5, %4
br i1 %6, label %7, label %12
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = trunc i64 %1 to i32
%10 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = tail call i32 (...) @abort()
unreachable
12: ; preds = %2
ret i8* %3
}
/* Variables and functions */
int gsm_hex2_to_byte(char const *);
int gsm_hex4_to_short(const char *hex) {
  int hi = gsm_hex2_to_byte(hex);
  int lo = gsm_hex2_to_byte(hex + 2);
  if (hi < 0 || lo < 0)
    return -1;
  return ((hi << 8) | lo);
}


x86 assembly (clang, -O0):
<gsm_hex4_to_short>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <gsm_hex2_to_byte@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x2,%rdi
call   1030 <gsm_hex2_to_byte@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     114c <gsm_hex4_to_short+0x3c>
cmpl   $0x0,-0x18(%rbp)
jge    1158 <gsm_hex4_to_short+0x48>
movl   $0xffffffff,-0x4(%rbp)
jmp    1164 <gsm_hex4_to_short+0x54>
mov    -0x14(%rbp),%eax
shl    $0x8,%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gsm_hex4_to_short>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <gsm_hex2_to_byte@plt>
mov    %eax,%ebp
add    $0x2,%rbx
mov    %rbx,%rdi
call   1030 <gsm_hex2_to_byte@plt>
mov    %ebp,%ecx
shl    $0x8,%ecx
or     %eax,%ecx
or     %eax,%ebp
mov    $0xffffffff,%eax
cmovns %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @gsm_hex4_to_short(i8* %0) {
%2 = tail call i32 @gsm_hex2_to_byte(i8* %0)
%3 = getelementptr inbounds i8, i8* %0, i64 2
%4 = tail call i32 @gsm_hex2_to_byte(i8* %3)
%5 = icmp slt i32 %2, 0
%6 = icmp slt i32 %4, 0
%7 = select i1 %5, i1 true, i1 %6
%8 = shl i32 %2, 8
%9 = or i32 %8, %4
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "%s\n%s\n",
                "usage: date [-jnRu] [-d dst] [-r seconds] [-t west] "
                "[-v[+|-]val[ymwdHMS]] ... ",
                "            "
                "[-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]");
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [7 x i8] c"%s\0A%s\0A\00"
@.str.1 = [79 x i8] c"usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... \00"
@.str.2 = [66 x i8] c" [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [7 x i8] c"%s\0A%s\0A\00"
@.str.1 = [79 x i8] c"usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... \00"
@.str.2 = [66 x i8] c" [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int binop_s32(int, int);
int /*<<< orphan*/ exit(int);
void test_binops(void) {
  int tmp_s32 = binop_s32(987123, 234);
  if (tmp_s32 != -1470599007)
    exit(2);
}


x86 assembly (clang, -O0):
<test_binops>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xf0ff3,%edi
mov    $0xea,%esi
call   1030 <binop_s32@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0xa85870a1,-0x4(%rbp)
je     1151 <test_binops+0x31>
mov    $0x2,%edi
call   1040 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_binops>:
push   %rax
mov    $0xf0ff3,%edi
mov    $0xea,%esi
call   1030 <binop_s32@plt>
cmp    $0xa85870a1,%eax
jne    1139 <test_binops+0x19>
pop    %rax
ret
mov    $0x2,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @test_binops() {
%1 = alloca i32
%2 = call i32 @binop_s32(i32 987123, i32 234)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = icmp ne i32 %3, -1470599007
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @exit(i32 2)
unreachable
7: ; preds = %0
ret void
}

LLVM IR (-O2):
define void @test_binops() {
%1 = tail call i32 @binop_s32(i32 987123, i32 234)
%2 = icmp eq i32 %1, -1470599007
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 @exit(i32 2)
unreachable
5: ; preds = %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ circle(int, int, int);
int popNumber();
int /*<<< orphan*/ pushNumber(int /*<<< orphan*/);
void basCircle() {
  int x, y, r;
  r = popNumber();
  y = popNumber();
  x = popNumber();
  pushNumber(circle(x, y, r));
}


x86 assembly (clang, -O0):
<basCircle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <circle@plt>
mov    %eax,%edi
call   1040 <pushNumber@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<basCircle>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%edi
mov    %ebp,%esi
mov    %ebx,%edx
call   1030 <circle@plt>
mov    %eax,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <pushNumber@plt>

LLVM IR (-O0):
define void @basCircle() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (...) @popNumber()
store i32 %4, i32* %3
%5 = call i32 (...) @popNumber()
store i32 %5, i32* %2
%6 = call i32 (...) @popNumber()
store i32 %6, i32* %1
%7 = load i32, i32* %1
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = call i32 @circle(i32 %7, i32 %8, i32 %9)
%11 = call i32 @pushNumber(i32 %10)
ret void
}

LLVM IR (-O2):
define void @basCircle() {
%1 = tail call i32 (...) @popNumber()
%2 = tail call i32 (...) @popNumber()
%3 = tail call i32 (...) @popNumber()
%4 = tail call i32 @circle(i32 %3, i32 %2, i32 %1)
%5 = tail call i32 @pushNumber(i32 %4)
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int clear_4d_facets(void) {
  int fail, *a, *b;
  double *c;
  fail = _ada_use_c2phc(585, a, b, c);
  return fail;
}


x86 assembly (clang, -O0):
<clear_4d_facets>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x249,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear_4d_facets>:
mov    $0x249,%edi
jmp    1030 <_ada_use_c2phc@plt>

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

LLVM IR (-O2):
define i32 @clear_4d_facets() {
%1 = tail call i32 @_ada_use_c2phc(i32 585, i32* undef, i32* undef, double* undef)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ f1(int);
int main() {
  f1(4);
  f1(3);
  f1(5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4,%edi
call   1030 <f1@plt>
mov    $0x3,%edi
call   1030 <f1@plt>
mov    $0x5,%edi
call   1030 <f1@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 @f1(i32 4)
%2 = call i32 @f1(i32 3)
%3 = call i32 @f1(i32 5)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @f1(i32 4)
%2 = tail call i32 @f1(i32 3)
%3 = tail call i32 @f1(i32 5)
ret i32 0
}
int oid_part_length(int part) {
  int len = 1;
  while (part > 127) {
    part >>= 7;
    len++;
  }
  return len;
}


x86 assembly (clang, -O0):
<oid_part_length>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x7f,-0x4(%rbp)
jle    112f <oid_part_length+0x2f>
mov    -0x4(%rbp),%eax
sar    $0x7,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <oid_part_length+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<oid_part_length>:
mov    $0x1,%eax
cmp    $0x80,%edi
jl     1130 <oid_part_length+0x30>
mov    $0x1,%eax
mov    %edi,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
shr    $0x7,%ecx
add    $0x1,%eax
cmp    $0x3fff,%edi
mov    %ecx,%edi
ja     1120 <oid_part_length+0x20>
ret

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

LLVM IR (-O2):
define i32 @oid_part_length(i32 %0) {
%2 = icmp sgt i32 %0, 127
br i1 %2, label %3, label %9
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 1, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = lshr i32 %5, 7
%7 = add nuw nsw i32 %4, 1
%8 = icmp ugt i32 %5, 16383
br i1 %8, label %3, label %9
9: ; preds = %3, %1
%10 = phi i32 [ 1, %1 ], [ %7, %3 ]
ret i32 %10
}
void glmMultVectorByScalar4f(float v[4], float a) {
  v[0] *= a;
  v[1] *= a;
  v[2] *= a;
  v[3] *= a;
}


x86 assembly (clang, -O0):
<glmMultVectorByScalar4f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulss  (%rax),%xmm0
movss  %xmm0,(%rax)
movss  -0xc(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulss  0x4(%rax),%xmm0
movss  %xmm0,0x4(%rax)
movss  -0xc(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulss  0x8(%rax),%xmm0
movss  %xmm0,0x8(%rax)
movss  -0xc(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mulss  0xc(%rax),%xmm0
movss  %xmm0,0xc(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmMultVectorByScalar4f>:
movups (%rdi),%xmm1
shufps $0x0,%xmm0,%xmm0
mulps  %xmm1,%xmm0
movups %xmm0,(%rdi)
ret

LLVM IR (-O0):
define void @glmMultVectorByScalar4f(float* %0, float %1) {
%3 = alloca float*
%4 = alloca float
store float* %0, float** %3
store float %1, float* %4
%5 = load float, float* %4
%6 = load float*, float** %3
%7 = getelementptr inbounds float, float* %6, i64 0
%8 = load float, float* %7
%9 = fmul float %8, %5
store float %9, float* %7
%10 = load float, float* %4
%11 = load float*, float** %3
%12 = getelementptr inbounds float, float* %11, i64 1
%13 = load float, float* %12
%14 = fmul float %13, %10
store float %14, float* %12
%15 = load float, float* %4
%16 = load float*, float** %3
%17 = getelementptr inbounds float, float* %16, i64 2
%18 = load float, float* %17
%19 = fmul float %18, %15
store float %19, float* %17
%20 = load float, float* %4
%21 = load float*, float** %3
%22 = getelementptr inbounds float, float* %21, i64 3
%23 = load float, float* %22
%24 = fmul float %23, %20
store float %24, float* %22
ret void
}

LLVM IR (-O2):
define void @glmMultVectorByScalar4f(float* nocapture %0, float %1) {
%3 = bitcast float* %0 to <4 x float>*
%4 = load <4 x float>, <4 x float>* %3
%5 = insertelement <4 x float> poison, float %1, i64 0
%6 = shufflevector <4 x float> %5, <4 x float> poison, <4 x i32> zeroinitializer
%7 = fmul <4 x float> %4, %6
%8 = bitcast float* %0 to <4 x float>*
store <4 x float> %7, <4 x float>* %8
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void proc_head(char *mes) {
  fprintf(
      stderr,
      "\n**************************************************************\n\n    "
      " European digital cellular telecommunications system\n           4750 "
      "... 12200 bits/s speech codec for\n         Adaptive Multi-Rate speech "
      "traffic channels\n\n     Bit-Exact C Simulation Code - %s\n\n     R98:  "
      " Version 7.6.0  \n     R99:   Version 3.3.0  \n     REL-4: Version "
      "4.1.0   December 12, 2001\n     REL-5: Version 5.1.0   March 26, "
      "2003\n**************************************************************"
      "\n\n",
      mes);
}


x86 assembly (clang, -O0):
<proc_head>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xed0(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proc_head>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [475 x i8] c"\0A**************************************************************\0A\0A European digital cellular telecommunications system\0A 4750 ... 12200 bits/s speech codec for\0A Adaptive Multi-Rate speech traffic channels\0A\0A Bit-Exact C Simulation Code - %s\0A\0A R98: Version 7.6.0 \0A R99: Version 3.3.0 \0A REL-4: Version 4.1.0 December 12, 2001\0A REL-5: Version 5.1.0 March 26, 2003\0A**************************************************************\0A\0A\00"
define void @proc_head(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([475 x i8], [475 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [475 x i8] c"\0A**************************************************************\0A\0A European digital cellular telecommunications system\0A 4750 ... 12200 bits/s speech codec for\0A Adaptive Multi-Rate speech traffic channels\0A\0A Bit-Exact C Simulation Code - %s\0A\0A R98: Version 7.6.0 \0A R99: Version 3.3.0 \0A REL-4: Version 4.1.0 December 12, 2001\0A REL-5: Version 5.1.0 March 26, 2003\0A**************************************************************\0A\0A\00"
define void @proc_head(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([475 x i8], [475 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void av_probe_input_format() {}


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

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

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

LLVM IR (-O2):
define void @av_probe_input_format() {
ret void
}
int user_choice(char c) {
  if (c == 'y' || c == 'Y')
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<user_choice>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x79,%eax
je     1124 <user_choice+0x24>
movsbl -0x5(%rbp),%eax
cmp    $0x59,%eax
jne    1130 <user_choice+0x30>
movl   $0x0,-0x4(%rbp)
jmp    1137 <user_choice+0x37>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<user_choice>:
and    $0xdf,%dil
xor    %eax,%eax
cmp    $0x59,%dil
setne  %al
ret

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

LLVM IR (-O2):
define i32 @user_choice(i8 signext %0) {
%2 = and i8 %0, -33
%3 = icmp ne i8 %2, 89
%4 = zext i1 %3 to i32
ret i32 %4
}
void cc_arduino_Lifecycle_pollen__reset__E() {}


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

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

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

LLVM IR (-O2):
define void @cc_arduino_Lifecycle_pollen__reset__E() {
ret void
}
/* Variables and functions */
bool nrf52_errata_1(void) { return false; }


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

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

LLVM IR (-O0):
define i32 @nrf52_errata_1() {
ret i32 0
}

LLVM IR (-O2):
define i32 @nrf52_errata_1() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
int isqrt(int);
void t_sqrt_25() {
  Assert_real((isqrt(25) == 5),
              "/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/stdlib/isqrt.c",
              130, ("Integer square root of 25 should be 5"));
}


x86 assembly (clang, -O0):
<t_sqrt_25>:
push   %rbp
mov    %rsp,%rbp
mov    $0x19,%edi
call   1030 <isqrt@plt>
cmp    $0x5,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xec0(%rip),%rsi
mov    $0x82,%edx
lea    0xf56(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_sqrt_25>:
push   %rax
mov    $0x19,%edi
call   1030 <isqrt@plt>
xor    %edi,%edi
cmp    $0x5,%eax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf60(%rip),%rcx
mov    $0x82,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [38 x i8] c"Integer square root of 25 should be 5\00"
define void @t_sqrt_25() {
%1 = call i32 @isqrt(i32 25)
%2 = icmp eq i32 %1, 5
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 130, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [162 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/stdlib/isqrt.c\00"
@.str.1 = [38 x i8] c"Integer square root of 25 should be 5\00"
define void @t_sqrt_25() {
%1 = tail call i32 @isqrt(i32 25)
%2 = icmp eq i32 %1, 5
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([162 x i8], [162 x i8]* @.str, i64 0, i64 0), i32 130, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void crc32_init(uint32_t *crc) { *crc = 0xFFFFFFFF; }


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

x86 assembly (clang, -O2):
<crc32_init>:
movl   $0xffffffff,(%rdi)
ret

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_color_selection_set_current_alpha() {
ret void
}
int compareFloats(const void *elem1, const void *elem2) {
  return ((*((float *)elem1)) - (*((float *)elem2)));
}


x86 assembly (clang, -O0):
<compareFloats>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
subss  (%rax),%xmm0
cvttss2si %xmm0,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compareFloats>:
movss  (%rdi),%xmm0
subss  (%rsi),%xmm0
cvttss2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @compareFloats(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 = bitcast i8* %5 to float*
%7 = load float, float* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to float*
%10 = load float, float* %9
%11 = fsub float %7, %10
%12 = fptosi float %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @compareFloats(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to float*
%4 = load float, float* %3
%5 = bitcast i8* %1 to float*
%6 = load float, float* %5
%7 = fsub float %4, %6
%8 = fptosi float %7 to i32
ret i32 %8
}
void gtk_anchor_type_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_anchor_type_get_type() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void sigsegv(int s) { printf("sigsegv caught\n"); }


x86 assembly (clang, -O0):
<sigsegv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [16 x i8] c"sigsegv caught\0A\00"
define void @sigsegv(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [15 x i8] c"sigsegv caught\00"
define void @sigsegv(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int CL_SUCCESS;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, int, char *);
int /*<<< orphan*/ stderr;
int cl_err_fun(int err, int line, char *msg) {
  if (err != CL_SUCCESS)
    fprintf(stderr, "Error %d at %d: %s\n", err, line, msg);
  return (err != CL_SUCCESS);
}


x86 assembly (clang, -O0):
<cl_err_fun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2eac(%rip),%rcx
cmp    (%rcx),%eax
je     1153 <cl_err_fun+0x43>
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%r8
lea    0xeb2(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
mov    0x2e7b(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cl_err_fun>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r8
mov    %edi,%ebx
mov    0x2eb8(%rip),%r14
mov    %edi,%edx
cmp    %edi,(%r14)
je     1143 <cl_err_fun+0x33>
mov    %esi,%ecx
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xec7(%rip),%rsi
mov    %ebx,%edx
call   1030 <fprintf@plt>
mov    (%r14),%edx
xor    %eax,%eax
cmp    %ebx,%edx
setne  %al
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@CL_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [20 x i8] c"Error %d at %d: %s\0A\00"
define i32 @cl_err_fun(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %4
%8 = load i32, i32* @CL_SUCCESS
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %16
10: ; preds = %3
%11 = load i32, i32* @stderr
%12 = load i32, i32* %4
%13 = load i32, i32* %5
%14 = load i8*, i8** %6
%15 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %13, i8* %14)
br label %16
16: ; preds = %10, %3
%17 = load i32, i32* %4
%18 = load i32, i32* @CL_SUCCESS
%19 = icmp ne i32 %17, %18
%20 = zext i1 %19 to i32
ret i32 %20
}

LLVM IR (-O2):
@CL_SUCCESS = global i32 0
@stderr = global i32 0
@.str = [20 x i8] c"Error %d at %d: %s\0A\00"
define i32 @cl_err_fun(i32 %0, i32 %1, i8* %2) {
%4 = load i32, i32* @CL_SUCCESS
%5 = icmp eq i32 %4, %0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i8* %2)
%9 = load i32, i32* @CL_SUCCESS
br label %10
10: ; preds = %6, %3
%11 = phi i32 [ %9, %6 ], [ %0, %3 ]
%12 = icmp ne i32 %11, %0
%13 = zext i1 %12 to i32
ret i32 %13
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int UINT64_C(int);
uint64_t rev8(uint64_t a) {
  uint64_t m;
  m = UINT64_C(0xff00ff00ff00ff);
  a = ((a >> 8) & m) | (a & m) << 8;
  m = UINT64_C(0xffff0000ffff);
  a = ((a >> 16) & m) | (a & m) << 16;
  return a >> 32 | a << 32;
}


x86 assembly (clang, -O0):
<rev8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0xff00ff,%edi
call   1030 <UINT64_C@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x8,%eax
and    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
and    -0x8(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    $0xffff,%edi
call   1030 <UINT64_C@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x10,%eax
and    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
and    -0x8(%rbp),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x20,%ecx
sar    %cl,%eax
mov    -0x4(%rbp),%edx
mov    $0x20,%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rev8>:
push   %rax
mov    $0xff00ff,%edi
call   1030 <UINT64_C@plt>
mov    $0xffff,%edi
pop    %rax
jmp    1030 <UINT64_C@plt>

LLVM IR (-O0):
define i32 @rev8(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 @UINT64_C(i32 16711935)
store i32 %4, i32* %3
%5 = load i32, i32* %2
%6 = ashr i32 %5, 8
%7 = load i32, i32* %3
%8 = and i32 %6, %7
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = and i32 %9, %10
%12 = shl i32 %11, 8
%13 = or i32 %8, %12
store i32 %13, i32* %2
%14 = call i32 @UINT64_C(i32 65535)
store i32 %14, i32* %3
%15 = load i32, i32* %2
%16 = ashr i32 %15, 16
%17 = load i32, i32* %3
%18 = and i32 %16, %17
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = and i32 %19, %20
%22 = shl i32 %21, 16
%23 = or i32 %18, %22
store i32 %23, i32* %2
%24 = load i32, i32* %2
%25 = ashr i32 %24, 32
%26 = load i32, i32* %2
%27 = shl i32 %26, 32
%28 = or i32 %25, %27
ret i32 %28
}

LLVM IR (-O2):
define i32 @rev8(i32 %0) {
%2 = tail call i32 @UINT64_C(i32 16711935)
%3 = tail call i32 @UINT64_C(i32 65535)
ret i32 poison
}