xunge/DecIR huggingface dataset:
int isMulOp(char c) { return ((c == '*') || (c == '/') || (c == '^')); }


x86 assembly (clang, -O0):
<isMulOp>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2a,%ecx
mov    %al,-0x2(%rbp)
je     113b <isMulOp+0x3b>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x2f,%ecx
mov    %al,-0x2(%rbp)
je     113b <isMulOp+0x3b>
movsbl -0x1(%rbp),%eax
cmp    $0x5e,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isMulOp>:
mov    $0x1,%eax
cmp    $0x2a,%dil
je     1111 <isMulOp+0x11>
cmp    $0x2f,%dil
jne    1112 <isMulOp+0x12>
ret
xor    %eax,%eax
cmp    $0x5e,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @isMulOp(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 42
br i1 %5, label %14, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 47
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 94
br label %14
14: ; preds = %10, %6, %1
%15 = phi i1 [ true, %6 ], [ true, %1 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @isMulOp(i8 signext %0) {
switch i8 %0, label %2 [
i8 47, label %5
i8 42, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 94
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ]
ret i32 %6
}
/* Type definitions */
struct signalfd_siginfo {
  int ssi_signo;
};
typedef int /*<<< orphan*/ info;

/* Variables and functions */
#define SIGHUP 131
#define SIGINT 130
#define SIGQUIT 129
#define SIGTERM 128
int /*<<< orphan*/ read(int, struct signalfd_siginfo *, int);
int loop_sig_handler(int fd) {
  struct signalfd_siginfo info;
  read(fd, &info, sizeof(info));
  switch (info.ssi_signo) {
  case SIGINT:
  case SIGTERM:
  case SIGQUIT:
  case SIGHUP:
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<loop_sig_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1030 <read@plt>
mov    -0x10(%rbp),%eax
add    $0xffffff80,%eax
sub    $0x3,%eax
ja     114c <loop_sig_handler+0x3c>
jmp    1140 <loop_sig_handler+0x30>
movl   $0x1,-0x4(%rbp)
jmp    1153 <loop_sig_handler+0x43>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<loop_sig_handler>:
push   %rax
mov    %rsp,%rsi
mov    $0x4,%edx
call   1030 <read@plt>
mov    (%rsp),%ecx
and    $0xfffffffc,%ecx
xor    %eax,%eax
cmp    $0x80,%ecx
sete   %al
pop    %rcx
ret

LLVM IR (-O0):
%struct.signalfd_siginfo = type { i32 }
define i32 @loop_sig_handler(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca %struct.signalfd_siginfo
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = call i32 @read(i32 %5, %struct.signalfd_siginfo* %4, i32 4)
%7 = getelementptr inbounds %struct.signalfd_siginfo, %struct.signalfd_siginfo* %4, i32 0, i32 0
%8 = load i32, i32* %7
switch i32 %8, label %10 [
i32 130, label %9
i32 128, label %9
i32 129, label %9
i32 131, label %9
]
9: ; preds = %1, %1, %1, %1
store i32 1, i32* %2
br label %11
10: ; preds = %1
store i32 0, i32* %2
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
%struct.signalfd_siginfo = type { i32 }
define i32 @loop_sig_handler(i32 %0) {
%2 = alloca %struct.signalfd_siginfo
%3 = bitcast %struct.signalfd_siginfo* %2 to i8*
%4 = call i32 @read(i32 %0, %struct.signalfd_siginfo* %2, i32 4)
%5 = getelementptr inbounds %struct.signalfd_siginfo, %struct.signalfd_siginfo* %2, i64 0, i32 0
%6 = load i32, i32* %5
%7 = and i32 %6, -4
%8 = icmp eq i32 %7, 128
%9 = zext i1 %8 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ ctap_assert(int, int, char *, int, char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ plan(int);
void ctap_tests(void) {
  plan(32);
  ctap_assert(!!(1 == 1), 1,
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/"
              "premature.aux.c",
              24, "only one test");
  exit(0);
}


x86 assembly (clang, -O0):
<ctap_tests>:
push   %rbp
mov    %rsp,%rbp
mov    $0x20,%edi
call   1050 <plan@plt>
mov    $0x1,%esi
lea    0xeb6(%rip),%rdx
mov    $0x18,%ecx
lea    0xf36(%rip),%r8
mov    %esi,%edi
call   1030 <ctap_assert@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<ctap_tests>:
push   %rax
mov    $0x20,%edi
call   1050 <plan@plt>
lea    0xebe(%rip),%rdx
lea    0xf43(%rip),%r8
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x18,%ecx
call   1030 <ctap_assert@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/premature.aux.c\00"
@.str.1 = [14 x i8] c"only one test\00"
define void @ctap_tests() {
%1 = call i32 @plan(i32 32)
%2 = call i32 @ctap_assert(i32 1, i32 1, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/filefrog/ctap/refs/heads/master/t/premature.aux.c\00"
@.str.1 = [14 x i8] c"only one test\00"
define void @ctap_tests() {
%1 = tail call i32 @plan(i32 32)
%2 = tail call i32 @ctap_assert(i32 1, i32 1, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 0)
unreachable
}
float _pow(float value, int power) {
  float res = 1.0f;
  int i;
  for (i = 0; i < power; i++) {
    res *= value;
  }
  return res;
}


x86 assembly (clang, -O0):
<_pow>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
movss  0xeec(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1149 <_pow+0x49>
movss  -0x4(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <_pow+0x20>
movss  -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<_pow>:
test   %edi,%edi
jle    111b <_pow+0x1b>
lea    -0x1(%rdi),%ecx
mov    %edi,%eax
and    $0x7,%eax
cmp    $0x7,%ecx
jae    1124 <_pow+0x24>
movss  0xee7(%rip),%xmm1
jmp    1155 <_pow+0x55>
movss  0xedd(%rip),%xmm0
ret
and    $0xfffffff8,%edi
movss  0xed1(%rip),%xmm1
nop
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
add    $0xfffffff8,%edi
jne    1130 <_pow+0x30>
test   %eax,%eax
je     1169 <_pow+0x69>
nopl   0x0(%rax)
mulss  %xmm0,%xmm1
add    $0xffffffff,%eax
jne    1160 <_pow+0x60>
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @_pow(float %0, i32 %1) {
%3 = alloca float
%4 = alloca i32
%5 = alloca float
%6 = alloca i32
store float %0, float* %3
store i32 %1, i32* %4
store float 1.000000e+00, float* %5
store i32 0, i32* %6
br label %7
7: ; preds = %15, %2
%8 = load i32, i32* %6
%9 = load i32, i32* %4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = load float, float* %3
%13 = load float, float* %5
%14 = fmul float %13, %12
store float %14, float* %5
br label %15
15: ; preds = %11
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
store i32 %17, i32* %6
br label %7
18: ; preds = %7
%19 = load float, float* %5
ret float %19
}

LLVM IR (-O2):
define float @_pow(float %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %33
4: ; preds = %2
%5 = add i32 %1, -1
%6 = and i32 %1, 7
%7 = icmp ult i32 %5, 7
br i1 %7, label %23, label %8
8: ; preds = %4
%9 = and i32 %1, -8
br label %10
10: ; preds = %10, %8
%11 = phi float [ 1.000000e+00, %8 ], [ %20, %10 ]
%12 = phi i32 [ 0, %8 ], [ %21, %10 ]
%13 = fmul float %11, %0
%14 = fmul float %13, %0
%15 = fmul float %14, %0
%16 = fmul float %15, %0
%17 = fmul float %16, %0
%18 = fmul float %17, %0
%19 = fmul float %18, %0
%20 = fmul float %19, %0
%21 = add i32 %12, 8
%22 = icmp eq i32 %21, %9
br i1 %22, label %23, label %10
23: ; preds = %10, %4
%24 = phi float [ undef, %4 ], [ %20, %10 ]
%25 = phi float [ 1.000000e+00, %4 ], [ %20, %10 ]
%26 = icmp eq i32 %6, 0
br i1 %26, label %33, label %27
27: ; preds = %23, %27
%28 = phi float [ %30, %27 ], [ %25, %23 ]
%29 = phi i32 [ %31, %27 ], [ 0, %23 ]
%30 = fmul float %28, %0
%31 = add i32 %29, 1
%32 = icmp eq i32 %31, %6
br i1 %32, label %33, label %27
33: ; preds = %23, %27, %2
%34 = phi float [ 1.000000e+00, %2 ], [ %24, %23 ], [ %30, %27 ]
ret float %34
}
char *VERSION(void) { return "OPTIMIZED, VECTORIZED"; }


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"OPTIMIZED, VECTORIZED\00"
define i8* @VERSION() {
ret i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [22 x i8] c"OPTIMIZED, VECTORIZED\00"
define i8* @VERSION() {
ret i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0)
}
/* Type definitions */
typedef int /*<<< orphan*/ socklen_t;

/* Variables and functions */
int __wrap_setsockopt(int fd, int level, int optname, const void *optval,
                      socklen_t optlen) {
  return 0;
}


x86 assembly (clang, -O0):
<__wrap_setsockopt>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @__wrap_setsockopt(i32 %0, i32 %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
ret i32 0
}

LLVM IR (-O2):
define i32 @__wrap_setsockopt(i32 %0, i32 %1, i32 %2, i8* nocapture readnone %3, i32 %4) {
ret i32 0
}
unsigned int cs_get_revision(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @cs_get_revision() {
ret i32 1
}
int adis16080_initialize_ring(struct iio_ring_buffer *ring) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.iio_ring_buffer = type opaque
define i32 @adis16080_initialize_ring(%struct.iio_ring_buffer* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
uint64_t galois_field_add(uint64_t m, uint64_t n) { return m ^ n; }


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

x86 assembly (clang, -O2):
<galois_field_add>:
mov    %edi,%eax
xor    %esi,%eax
ret

LLVM IR (-O0):
define i32 @galois_field_add(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 = xor i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @galois_field_add(i32 %0, i32 %1) {
%3 = xor i32 %1, %0
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
void banner() {
  system("clear");
  printf("\x1b[36m"
         " -type about for info\n -type show for commands\n\n"
         "\x1b[0m");
}


x86 assembly (clang, -O0):
<banner>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <system@plt>
lea    0xecf(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<banner>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <system@plt>
lea    0xed2(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [58 x i8] c"\1B[36m -type about for info\0A -type show for commands\0A\0A\1B[0m\00"
define void @banner() {
%1 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.1 = [58 x i8] c"\1B[36m -type about for info\0A -type show for commands\0A\0A\1B[0m\00"
define void @banner() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ handle_WINCH(int /*<<< orphan*/);
int gen_WINCH(void) {
  handle_WINCH(0);
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @gen_WINCH() {
%1 = call i32 @handle_WINCH(i32 0)
ret i32 0
}

LLVM IR (-O2):
define i32 @gen_WINCH() {
%1 = tail call i32 @handle_WINCH(i32 0)
ret i32 0
}
/* Type definitions */
struct statfs {
  int f_type;
};

/* Variables and functions */
int /*<<< orphan*/ statfs(char *, struct statfs *);
int tst_is_cwd_ramfs(void) {
  struct statfs sf;
  statfs(".", &sf);
  return (sf.f_type == 0x858458f6);
}


x86 assembly (clang, -O0):
<tst_is_cwd_ramfs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1030 <statfs@plt>
cmpl   $0x858458f6,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tst_is_cwd_ramfs>:
push   %rax
lea    0xee8(%rip),%rdi
mov    %rsp,%rsi
call   1030 <statfs@plt>
xor    %eax,%eax
cmpl   $0x858458f6,(%rsp)
sete   %al
pop    %rcx
ret

LLVM IR (-O0):
%struct.statfs = type { i32 }
@.str = [2 x i8] c".\00"
define i32 @tst_is_cwd_ramfs() {
%1 = alloca %struct.statfs
%2 = call i32 @statfs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %struct.statfs* %1)
%3 = getelementptr inbounds %struct.statfs, %struct.statfs* %1, i32 0, i32 0
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, -2054924042
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
%struct.statfs = type { i32 }
@.str = [2 x i8] c".\00"
define i32 @tst_is_cwd_ramfs() {
%1 = alloca %struct.statfs
%2 = bitcast %struct.statfs* %1 to i8*
%3 = call i32 @statfs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %struct.statfs* %1)
%4 = getelementptr inbounds %struct.statfs, %struct.statfs* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = icmp eq i32 %5, -2054924042
%7 = zext i1 %6 to i32
ret i32 %7
}
int tile(int direction, int i, int j) {
  if (direction <= 0) {
    return 4 * i + j;
  }
  return tile(direction - 1, j, 4 - 1 - i);
}


x86 assembly (clang, -O0):
<tile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     113c <tile+0x2c>
mov    -0xc(%rbp),%eax
shl    $0x2,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1155 <tile+0x45>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%esi
mov    $0x3,%edx
sub    -0xc(%rbp),%edx
call   1030 <tile@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tile>:
test   %edi,%edi
jle    1148 <tile+0x48>
lea    -0x1(%rdi),%r8d
mov    %edi,%r9d
and    $0x7,%r9d
je     1135 <tile+0x35>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %esi,%ecx
mov    %edx,%esi
mov    $0x3,%edx
sub    %ecx,%edx
add    $0x1,%eax
cmp    %eax,%r9d
jne    1120 <tile+0x20>
sub    %eax,%edi
cmp    $0x7,%r8d
jb     1148 <tile+0x48>
add    $0x1,%edi
xchg   %ax,%ax
add    $0xfffffff8,%edi
cmp    $0x2,%edi
jae    1140 <tile+0x40>
lea    (%rdx,%rsi,4),%eax
ret

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

LLVM IR (-O2):
define i32 @tile(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, 1
br i1 %4, label %25, label %5
5: ; preds = %3
%6 = add i32 %0, -1
%7 = and i32 %0, 7
%8 = icmp eq i32 %7, 0
br i1 %8, label %18, label %9
9: ; preds = %5, %9
%10 = phi i32 [ %15, %9 ], [ %2, %5 ]
%11 = phi i32 [ %10, %9 ], [ %1, %5 ]
%12 = phi i32 [ %14, %9 ], [ %0, %5 ]
%13 = phi i32 [ %16, %9 ], [ 0, %5 ]
%14 = add nsw i32 %12, -1
%15 = sub nsw i32 3, %11
%16 = add i32 %13, 1
%17 = icmp eq i32 %16, %7
br i1 %17, label %18, label %9
18: ; preds = %9, %5
%19 = phi i32 [ undef, %5 ], [ %10, %9 ]
%20 = phi i32 [ undef, %5 ], [ %15, %9 ]
%21 = phi i32 [ %2, %5 ], [ %15, %9 ]
%22 = phi i32 [ %1, %5 ], [ %10, %9 ]
%23 = phi i32 [ %0, %5 ], [ %14, %9 ]
%24 = icmp ult i32 %6, 7
br i1 %24, label %25, label %30
25: ; preds = %18, %30, %3
%26 = phi i32 [ %1, %3 ], [ %19, %18 ], [ %22, %30 ]
%27 = phi i32 [ %2, %3 ], [ %20, %18 ], [ %21, %30 ]
%28 = shl nsw i32 %26, 2
%29 = add nsw i32 %28, %27
ret i32 %29
30: ; preds = %18, %30
%31 = phi i32 [ %33, %30 ], [ %23, %18 ]
%32 = add nsw i32 %31, -7
%33 = add nsw i32 %31, -8
%34 = icmp ult i32 %32, 2
br i1 %34, label %25, label %30
}
/* Variables and functions */
double arctanh(int);
double arccoth(double n) {
  if (n > -1 && n < 1) {
    return 0. / 0.;
  }
  return arctanh(1 / n);
}


x86 assembly (clang, -O0):
<arccoth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xed6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1159 <arccoth+0x49>
movsd  0xecc(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1159 <arccoth+0x49>
movsd  0xec1(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1174 <arccoth+0x64>
movsd  0xea7(%rip),%xmm0
divsd  -0x10(%rbp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <arctanh@plt>
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arccoth>:
ucomisd 0xee8(%rip),%xmm0
jbe    1131 <arccoth+0x21>
movsd  0xee6(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1131 <arccoth+0x21>
movsd  0xee0(%rip),%xmm0
ret
movsd  0xecf(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%edi
jmp    1030 <arctanh@plt>

LLVM IR (-O0):
define double @arccoth(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp ogt double %4, -1.000000e+00
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load double, double* %3
%8 = fcmp olt double %7, 1.000000e+00
br i1 %8, label %9, label %10
9: ; preds = %6
store double 0x7FF8000000000000, double* %2
br label %15
10: ; preds = %6, %1
%11 = load double, double* %3
%12 = fdiv double 1.000000e+00, %11
%13 = fptosi double %12 to i32
%14 = call double @arctanh(i32 %13)
store double %14, double* %2
br label %15
15: ; preds = %10, %9
%16 = load double, double* %2
ret double %16
}

LLVM IR (-O2):
define double @arccoth(double %0) {
%2 = fcmp ogt double %0, -1.000000e+00
%3 = fcmp olt double %0, 1.000000e+00
%4 = and i1 %2, %3
br i1 %4, label %9, label %5
5: ; preds = %1
%6 = fdiv double 1.000000e+00, %0
%7 = fptosi double %6 to i32
%8 = tail call double @arctanh(i32 %7)
br label %9
9: ; preds = %1, %5
%10 = phi double [ %8, %5 ], [ 0x7FF8000000000000, %1 ]
ret double %10
}
void page_tracker_reset_tracker(struct page *page, int order) {}


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

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

LLVM IR (-O0):
%struct.page = type opaque
define void @page_tracker_reset_tracker(%struct.page* %0, i32 %1) {
%3 = alloca %struct.page*
%4 = alloca i32
store %struct.page* %0, %struct.page** %3
store i32 %1, i32* %4
ret void
}

LLVM IR (-O2):
%struct.page = type opaque
define void @page_tracker_reset_tracker(%struct.page* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
int countWays(int, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int s = 4, m = 2;
  printf("Nuber of ways = %d", countWays(s, m));
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x4,%edi
mov    $0x2,%esi
call   1030 <countWays@plt>
lea    0xec9(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [19 x i8] c"Nuber of ways = %d\00"
define i32 @main() {
%1 = tail call i32 @countWays(i32 4, i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int RAND_MAX;
int rand();
int bigrand() { return RAND_MAX * rand() + rand(); }


x86 assembly (clang, -O0):
<bigrand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <rand@plt>
mov    %eax,%ecx
mov    -0x4(%rbp),%eax
add    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bigrand>:
push   %rbp
push   %rbx
push   %rax
mov    0x2ece(%rip),%rax
mov    (%rax),%ebp
xor    %eax,%eax
call   1030 <rand@plt>
mov    %eax,%ebx
imul   %ebp,%ebx
xor    %eax,%eax
call   1030 <rand@plt>
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@RAND_MAX = global i32 0
define i32 @bigrand() {
%1 = load i32, i32* @RAND_MAX
%2 = call i32 (...) @rand()
%3 = mul nsw i32 %1, %2
%4 = call i32 (...) @rand()
%5 = add nsw i32 %3, %4
ret i32 %5
}

LLVM IR (-O2):
@RAND_MAX = global i32 0
define i32 @bigrand() {
%1 = load i32, i32* @RAND_MAX
%2 = tail call i32 (...) @rand()
%3 = mul nsw i32 %2, %1
%4 = tail call i32 (...) @rand()
%5 = add nsw i32 %3, %4
ret i32 %5
}
/* Variables and functions */
int f137(int *);
int f138(int *p) { return f137(p); }


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

x86 assembly (clang, -O2):
<f138>:
jmp    1030 <f137@plt>

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

LLVM IR (-O2):
define i32 @f138(i32* %0) {
%2 = tail call i32 @f137(i32* %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ *calloc(int, int);
uint32_t *mask_new(int num) {
  uint32_t *res = calloc(sizeof *res, ((((num)) + (32) - 1) / (32)));
  return res;
}


x86 assembly (clang, -O0):
<mask_new>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%eax
sub    $0x1,%eax
mov    $0x20,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
mov    $0x4,%edi
call   1030 <calloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mask_new>:
lea    0x1f(%rdi),%eax
lea    0x3e(%rdi),%esi
test   %eax,%eax
cmovns %eax,%esi
sar    $0x5,%esi
mov    $0x4,%edi
jmp    1030 <calloc@plt>

LLVM IR (-O0):
define i32* @mask_new(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = add nsw i32 %4, 32
%6 = sub nsw i32 %5, 1
%7 = sdiv i32 %6, 32
%8 = call i32* @calloc(i32 4, i32 %7)
store i32* %8, i32** %3
%9 = load i32*, i32** %3
ret i32* %9
}

LLVM IR (-O2):
define noalias i32* @mask_new(i32 %0) {
%2 = add nsw i32 %0, 31
%3 = sdiv i32 %2, 32
%4 = tail call i32* @calloc(i32 4, i32 %3)
ret i32* %4
}
/* Type definitions */
struct kdtree {
  int dummy;
};

/* Variables and functions */
int kd_insert(struct kdtree *, float *, void *);
int kd_insert3f(struct kdtree *tree, float x, float y, float z, void *data) {
  float buf[3];
  buf[0] = x;
  buf[1] = y;
  buf[2] = z;
  return kd_insert(tree, buf, data);
}


x86 assembly (clang, -O0):
<kd_insert3f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  %xmm2,-0x14(%rbp)
mov    %rsi,-0x20(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <kd_insert@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kd_insert3f>:
sub    $0x18,%rsp
mov    %rsi,%rdx
movss  %xmm0,0xc(%rsp)
movss  %xmm1,0x10(%rsp)
movss  %xmm2,0x14(%rsp)
lea    0xc(%rsp),%rsi
call   1030 <kd_insert@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.kdtree = type { i32 }
define i32 @kd_insert3f(%struct.kdtree* %0, float %1, float %2, float %3, i8* %4) {
%6 = alloca %struct.kdtree*
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca i8*
%11 = alloca [3 x float]
store %struct.kdtree* %0, %struct.kdtree** %6
store float %1, float* %7
store float %2, float* %8
store float %3, float* %9
store i8* %4, i8** %10
%12 = load float, float* %7
%13 = getelementptr inbounds [3 x float], [3 x float]* %11, i64 0, i64 0
store float %12, float* %13
%14 = load float, float* %8
%15 = getelementptr inbounds [3 x float], [3 x float]* %11, i64 0, i64 1
store float %14, float* %15
%16 = load float, float* %9
%17 = getelementptr inbounds [3 x float], [3 x float]* %11, i64 0, i64 2
store float %16, float* %17
%18 = load %struct.kdtree*, %struct.kdtree** %6
%19 = getelementptr inbounds [3 x float], [3 x float]* %11, i64 0, i64 0
%20 = load i8*, i8** %10
%21 = call i32 @kd_insert(%struct.kdtree* %18, float* %19, i8* %20)
ret i32 %21
}

LLVM IR (-O2):
%struct.kdtree = type { i32 }
define i32 @kd_insert3f(%struct.kdtree* %0, float %1, float %2, float %3, i8* %4) {
%6 = alloca [3 x float]
%7 = bitcast [3 x float]* %6 to i8*
%8 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 0
store float %1, float* %8
%9 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 1
store float %2, float* %9
%10 = getelementptr inbounds [3 x float], [3 x float]* %6, i64 0, i64 2
store float %3, float* %10
%11 = call i32 @kd_insert(%struct.kdtree* %0, float* %8, i8* %4)
ret i32 %11
}
/* Variables and functions */
scalar_t__ access(char const *, int);
int nsxml_util_path_access_check(const char *path, int flag) {
  return (access(path, flag) == 0);
}


x86 assembly (clang, -O0):
<nsxml_util_path_access_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <access@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @nsxml_util_path_access_check(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i64 @access(i8* %5, i32 %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @nsxml_util_path_access_check(i8* nocapture %0, i32 %1) {
%3 = tail call i64 @access(i8* %0, i32 %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
char getchar();
int /*<<< orphan*/ printf(char *, char);
int main() {
  char let;
  do {
    let = getchar();
  } while (let < 'a' || let > 'z');
  let = 'a' + 'z' - let;
  printf("%c\n", let);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%ecx
mov    $0x1,%al
cmp    $0x61,%ecx
mov    %al,-0x6(%rbp)
jl     1158 <main+0x38>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
setg   %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
test   $0x1,%al
jne    112f <main+0xf>
movsbl -0x5(%rbp),%ecx
mov    $0xdb,%eax
sub    %ecx,%eax
mov    %al,-0x5(%rbp)
lea    0xe88(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
lea    -0x7b(%rax),%ecx
cmp    $0xe6,%cl
jb     1130 <main+0x10>
mov    $0xdb,%cl
sub    %al,%cl
movsbl %cl,%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
br label %3
3: ; preds = %13, %0
%4 = call signext i8 (...) @getchar()
store i8 %4, i8* %2
br label %5
5: ; preds = %3
%6 = load i8, i8* %2
%7 = sext i8 %6 to i32
%8 = icmp slt i32 %7, 97
br i1 %8, label %13, label %9
9: ; preds = %5
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = icmp sgt i32 %11, 122
br label %13
13: ; preds = %9, %5
%14 = phi i1 [ true, %5 ], [ %12, %9 ]
br i1 %14, label %3, label %15
15: ; preds = %13
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = sub nsw i32 219, %17
%19 = trunc i32 %18 to i8
store i8 %19, i8* %2
%20 = load i8, i8* %2
%21 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8 signext %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%c\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = tail call signext i8 (...) @getchar()
%3 = add i8 %2, -123
%4 = icmp ult i8 %3, -26
br i1 %4, label %1, label %5
5: ; preds = %1
%6 = sub nuw i8 -37, %2
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8 signext %6)
ret i32 0
}
int findFirstCharInd(char str[], int startInd, char letter) {
  int ind = startInd;
  while (str[ind] != '\0') {
    if (str[ind] == letter)
      return ind;
    ind++;
  }
  return -1;
}


x86 assembly (clang, -O0):
<findFirstCharInd>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %al,-0x15(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     115c <findFirstCharInd+0x5c>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x15(%rbp),%ecx
cmp    %ecx,%eax
jne    114e <findFirstCharInd+0x4e>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1163 <findFirstCharInd+0x63>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1116 <findFirstCharInd+0x16>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<findFirstCharInd>:
movslq %esi,%r8
mov    (%rdi,%r8,1),%cl
mov    $0xffffffff,%eax
test   %cl,%cl
je     1132 <findFirstCharInd+0x32>
add    %r8,%rdi
add    $0x1,%rdi
nopw   0x0(%rax,%rax,1)
cmp    %dl,%cl
je     1133 <findFirstCharInd+0x33>
movzbl (%rdi),%ecx
add    $0x1,%esi
add    $0x1,%rdi
test   %cl,%cl
jne    1120 <findFirstCharInd+0x20>
ret
mov    %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @findFirstCharInd(i8* nocapture %0, i32 %1, i8 signext %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
br i1 %7, label %19, label %8
8: ; preds = %3, %12
%9 = phi i64 [ %13, %12 ], [ %4, %3 ]
%10 = phi i8 [ %15, %12 ], [ %6, %3 ]
%11 = icmp eq i8 %10, %2
br i1 %11, label %17, label %12
12: ; preds = %8
%13 = add i64 %9, 1
%14 = getelementptr inbounds i8, i8* %0, i64 %13
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 0
br i1 %16, label %19, label %8
17: ; preds = %8
%18 = trunc i64 %9 to i32
br label %19
19: ; preds = %12, %17, %3
%20 = phi i32 [ -1, %3 ], [ %18, %17 ], [ -1, %12 ]
ret i32 %20
}
void DaoRoutine_OriginalHost(void *p) {}


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

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

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

LLVM IR (-O2):
define void @DaoRoutine_OriginalHost(i8* nocapture %0) {
ret void
}
/* Type definitions */
typedef scalar_t__ val;
typedef scalar_t__ uint8_t;

/* Variables and functions */
void put8bit(uint8_t **ptr, uint8_t val) {
  (*ptr)[0] = (val)&0xFF;
  (*ptr)++;
}


x86 assembly (clang, -O0):
<put8bit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
and    $0xff,%rcx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x8,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<put8bit>:
movzbl %sil,%eax
mov    (%rdi),%rcx
mov    %rax,(%rcx)
add    $0x8,%rcx
mov    %rcx,(%rdi)
ret

LLVM IR (-O0):
define void @put8bit(i64** %0, i64 %1) {
%3 = alloca i64**
%4 = alloca i64
store i64** %0, i64*** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = and i64 %5, 255
%7 = load i64**, i64*** %3
%8 = load i64*, i64** %7
%9 = getelementptr inbounds i64, i64* %8, i64 0
store i64 %6, i64* %9
%10 = load i64**, i64*** %3
%11 = load i64*, i64** %10
%12 = getelementptr inbounds i64, i64* %11, i32 1
store i64* %12, i64** %10
ret void
}

LLVM IR (-O2):
define void @put8bit(i64** nocapture %0, i64 %1) {
%3 = and i64 %1, 255
%4 = load i64*, i64** %0
store i64 %3, i64* %4
%5 = getelementptr inbounds i64, i64* %4, i64 1
store i64* %5, i64** %0
ret void
}
/* Variables and functions */
scalar_t__ has_flag(char *, int);
int /*<<< orphan*/ mark_invoked(char *);
int dummy_destroy(void *handle) {
  mark_invoked("rapp_destroy");
  if (has_flag("rapp_destroy", 0x04)) {
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<dummy_destroy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <mark_invoked@plt>
lea    0xec1(%rip),%rdi
mov    $0x4,%esi
call   1040 <has_flag@plt>
cmp    $0x0,%rax
je     115f <dummy_destroy+0x3f>
movl   $0xffffffff,-0x4(%rbp)
jmp    1166 <dummy_destroy+0x46>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dummy_destroy>:
push   %rbx
lea    0xed8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <mark_invoked@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
call   1040 <has_flag@plt>
neg    %rax
sbb    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [13 x i8] c"rapp_destroy\00"
define i32 @dummy_destroy(i8* nocapture readnone %0) {
%2 = tail call i32 @mark_invoked(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = tail call i64 @has_flag(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = icmp ne i64 %3, 0
%5 = sext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ ol(char *);
dec() { ol("decl %eax"); }


x86 assembly (clang, -O0):
<dec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <ol@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [10 x i8] c"decl %eax\00"
define i32 @dec() {
%1 = alloca i32
%2 = call i32 @ol(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [10 x i8] c"decl %eax\00"
define i32 @dec() {
%1 = tail call i32 @ol(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ l(char const *, char *, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int const);
void le(const char *func, const int err, const char *msg) {
  l(func, "%s: %s", msg, strerror(err));
}


x86 assembly (clang, -O0):
<le>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <strerror@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    %eax,%ecx
lea    0xea4(%rip),%rsi
call   1030 <l@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<le>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rdi,%rbx
mov    %esi,%edi
call   1040 <strerror@plt>
lea    0xec8(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
mov    %eax,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <l@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%s: %s\00"
define void @le(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %6
%9 = load i32, i32* %5
%10 = call i32 @strerror(i32 %9)
%11 = call i32 @l(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %8, i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s: %s\00"
define void @le(i8* %0, i32 %1, i8* %2) {
%4 = tail call i32 @strerror(i32 %1)
%5 = tail call i32 @l(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %2, i32 %4)
ret void
}
void arch_touch_nmi_watchdog(void) {}


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

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

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

LLVM IR (-O2):
define void @arch_touch_nmi_watchdog() {
ret void
}
/* Variables and functions */
scalar_t__ exp10l(long double);
int /*<<< orphan*/ link_failure_exp10l();
void test_exp10l(long double ld) {
  if (exp10l(ld) != exp10l(ld))
    link_failure_exp10l();
}


x86 assembly (clang, -O0):
<test_exp10l>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <exp10l@plt>
mov    %rax,-0x18(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <exp10l@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
je     1163 <test_exp10l+0x43>
mov    $0x0,%al
call   1040 <link_failure_exp10l@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_exp10l>:
push   %rbx
sub    $0x20,%rsp
fldt   0x30(%rsp)
fld    %st(0)
fstpt  0x14(%rsp)
fstpt  (%rsp)
call   1030 <exp10l@plt>
mov    %rax,%rbx
fldt   0x14(%rsp)
fstpt  (%rsp)
call   1030 <exp10l@plt>
cmp    %rax,%rbx
jne    1151 <test_exp10l+0x31>
add    $0x20,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
jmp    1040 <link_failure_exp10l@plt>

LLVM IR (-O0):
define void @test_exp10l(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = call i64 @exp10l(x86_fp80 %3)
%5 = load x86_fp80, x86_fp80* %2
%6 = call i64 @exp10l(x86_fp80 %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_exp10l()
br label %10
10: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
define void @test_exp10l(x86_fp80 %0) {
%2 = tail call i64 @exp10l(x86_fp80 %0)
%3 = tail call i64 @exp10l(x86_fp80 %0)
%4 = icmp eq i64 %2, %3
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 (...) @link_failure_exp10l()
br label %7
7: ; preds = %5, %1
ret void
}
int is_char(c)
int c;
{ return (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z')); }


x86 assembly (clang, -O0):
<is_char>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x61,-0x4(%rbp)
jl     1120 <is_char+0x20>
mov    $0x1,%al
cmpl   $0x7a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    113f <is_char+0x3f>
xor    %eax,%eax
cmpl   $0x41,-0x4(%rbp)
mov    %al,-0x6(%rbp)
jl     1139 <is_char+0x39>
cmpl   $0x5a,-0x4(%rbp)
setle  %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_char>:
and    $0xffffffdf,%edi
add    $0xffffffbf,%edi
xor    %eax,%eax
cmp    $0x1a,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @is_char(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 97
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 122
br i1 %7, label %16, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 65
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 90
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br label %16
16: ; preds = %14, %5
%17 = phi i1 [ true, %5 ], [ %15, %14 ]
%18 = zext i1 %17 to i32
ret i32 %18
}

LLVM IR (-O2):
define i32 @is_char(i32 %0) {
%2 = and i32 %0, -33
%3 = add i32 %2, -65
%4 = icmp ult i32 %3, 26
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
scalar_t__ atanh(float);
float atanhf(float x) { return (float)atanh(x); }


x86 assembly (clang, -O0):
<atanhf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <atanh@plt>
cvtsi2ss %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<atanhf>:
push   %rax
call   1030 <atanh@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @atanhf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i64 @atanh(float %3)
%5 = sitofp i64 %4 to float
ret float %5
}

LLVM IR (-O2):
define float @atanhf(float %0) {
%2 = tail call i64 @atanh(float %0)
%3 = sitofp i64 %2 to float
ret float %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_strbuf_putsn() {
  printf("NOT IMPLEMENTED:"
         "pa_strbuf_putsn"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [33 x i8] c"NOT IMPLEMENTED:pa_strbuf_putsn\0A\00"
define i32 @pa_strbuf_putsn() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [32 x i8] c"NOT IMPLEMENTED:pa_strbuf_putsn\00"
define i32 @pa_strbuf_putsn() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
ret i32 undef
}