xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char *, int);
int /*<<< orphan*/ memmove(char *, char *, int);
int strlen(char *);
char *insert(char *dest, char *src) {
  int destLen = strlen(dest);
  int srcLen = strlen(src);
  memmove(dest + srcLen, dest, destLen + 1);
  memcpy(dest, src, srcLen);
  return dest + srcLen;
}


x86 assembly (clang, -O0):
<insert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x18(%rbp),%rax
add    %rax,%rdi
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%edx
add    $0x1,%edx
call   1050 <memmove@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
add    %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<insert>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1030 <strlen@plt>
movslq %eax,%r15
lea    (%rbx,%r15,1),%r12
add    $0x1,%ebp
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1050 <memmove@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15d,%edx
call   1040 <memcpy@plt>
mov    %r12,%rax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i8* @insert(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
store i32 %8, i32* %5
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
store i32 %10, i32* %6
%11 = load i8*, i8** %3
%12 = load i32, i32* %6
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %11, i64 %13
%15 = load i8*, i8** %3
%16 = load i32, i32* %5
%17 = add nsw i32 %16, 1
%18 = call i32 @memmove(i8* %14, i8* %15, i32 %17)
%19 = load i8*, i8** %3
%20 = load i8*, i8** %4
%21 = load i32, i32* %6
%22 = call i32 @memcpy(i8* %19, i8* %20, i32 %21)
%23 = load i8*, i8** %3
%24 = load i32, i32* %6
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %23, i64 %25
ret i8* %26
}

LLVM IR (-O2):
define i8* @insert(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = sext i32 %4 to i64
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = add nsw i32 %3, 1
%8 = tail call i32 @memmove(i8* %6, i8* %0, i32 %7)
%9 = tail call i32 @memcpy(i8* %0, i8* %1, i32 %4)
ret i8* %6
}
long double longDoubleArg(long double ld1) { return ld1; }


x86 assembly (clang, -O0):
<longDoubleArg>:
push   %rbp
mov    %rsp,%rbp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<longDoubleArg>:
fldt   0x8(%rsp)
ret

LLVM IR (-O0):
define x86_fp80 @longDoubleArg(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
ret x86_fp80 %3
}

LLVM IR (-O2):
define x86_fp80 @longDoubleArg(x86_fp80 returned %0) {
ret x86_fp80 %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ system(char *);
void geral_pausar() {
  if (strcmp("Linux", "Linux") == 0)
    printf("\nAperte \"Enter\" para continuar...\n");
  system("read pause");
}


x86 assembly (clang, -O0):
<geral_pausar>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rsi
mov    %rsi,%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1159 <geral_pausar+0x29>
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<geral_pausar>:
push   %rax
lea    0xec8(%rip),%rdi
mov    %rdi,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1151 <geral_pausar+0x21>
lea    0xec5(%rip),%rdi
call   1030 <puts@plt>
lea    0xeae(%rip),%rdi
pop    %rax
jmp    1040 <system@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"Linux\00"
@.str.1 = [35 x i8] c"\0AAperte \22Enter\22 para continuar...\0A\00"
@.str.2 = [11 x i8] c"read pause\00"
define void @geral_pausar() {
%1 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"Linux\00"
@.str.2 = [11 x i8] c"read pause\00"
@str = [34 x i8] c"\0AAperte \22Enter\22 para continuar...\00"
define void @geral_pausar() {
%1 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %5
5: ; preds = %3, %0
%6 = tail call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Type definitions */
struct drand48_data {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ drand48_r(struct drand48_data *, double *);
double generate_random_uniform(struct drand48_data *randbuffer) {
  double u;
  drand48_r(randbuffer, &u);
  return u;
}


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

x86 assembly (clang, -O2):
<generate_random_uniform>:
push   %rax
mov    %rsp,%rsi
call   1030 <drand48_r@plt>
movsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
%struct.drand48_data = type { i32 }
define double @generate_random_uniform(%struct.drand48_data* %0) {
%2 = alloca %struct.drand48_data*
%3 = alloca double
store %struct.drand48_data* %0, %struct.drand48_data** %2
%4 = load %struct.drand48_data*, %struct.drand48_data** %2
%5 = call i32 @drand48_r(%struct.drand48_data* %4, double* %3)
%6 = load double, double* %3
ret double %6
}

LLVM IR (-O2):
%struct.drand48_data = type { i32 }
define double @generate_random_uniform(%struct.drand48_data* %0) {
%2 = alloca double
%3 = bitcast double* %2 to i8*
%4 = call i32 @drand48_r(%struct.drand48_data* %0, double* %2)
%5 = load double, double* %2
ret double %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
struct nlattr {
  int dummy;
};

/* Variables and functions */
scalar_t__ libbpf_nla_data(struct nlattr const *);
uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla) {
  return *(uint8_t *)libbpf_nla_data(nla);
}


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

x86 assembly (clang, -O2):
<libbpf_nla_getattr_u8>:
push   %rax
call   1030 <libbpf_nla_data@plt>
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.nlattr = type { i32 }
define i32 @libbpf_nla_getattr_u8(%struct.nlattr* %0) {
%2 = alloca %struct.nlattr*
store %struct.nlattr* %0, %struct.nlattr** %2
%3 = load %struct.nlattr*, %struct.nlattr** %2
%4 = call i64 @libbpf_nla_data(%struct.nlattr* %3)
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5
ret i32 %6
}

LLVM IR (-O2):
%struct.nlattr = type { i32 }
define i32 @libbpf_nla_getattr_u8(%struct.nlattr* %0) {
%2 = tail call i64 @libbpf_nla_data(%struct.nlattr* %0)
%3 = inttoptr i64 %2 to i32*
%4 = load i32, i32* %3
ret i32 %4
}
const char *IndentStr(int indent) {
  static const char empty[] =
      "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
      "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"
      "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  const char *indentStr = empty + sizeof(empty) - 1;
  indentStr -= indent;
  if (indentStr < empty) {
    indentStr = empty;
  }
  return indentStr;
}


x86 assembly (clang, -O0):
<IndentStr>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
lea    0xef2(%rip),%rax
add    $0x64,%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
lea    0xecd(%rip),%rax
cmp    %rax,-0x10(%rbp)
jae    1148 <IndentStr+0x48>
lea    0xebc(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IndentStr>:
movslq %edi,%rcx
lea    0xef6(%rip),%rdx
mov    %rdx,%rax
sub    %rcx,%rax
add    $0x64,%rax
cmp    %rdx,%rax
cmovbe %rdx,%rax
ret

LLVM IR (-O0):
@IndentStr.empty = internal constant [101 x i8] c"\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\00"
define i8* @IndentStr(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
store i32 %0, i32* %2
store i8* getelementptr inbounds ([101 x i8], [101 x i8]* @IndentStr.empty, i64 1, i64 -1), i8** %3
%4 = load i32, i32* %2
%5 = load i8*, i8** %3
%6 = sext i32 %4 to i64
%7 = sub i64 0, %6
%8 = getelementptr inbounds i8, i8* %5, i64 %7
store i8* %8, i8** %3
%9 = load i8*, i8** %3
%10 = icmp ult i8* %9, getelementptr inbounds ([101 x i8], [101 x i8]* @IndentStr.empty, i64 0, i64 0)
br i1 %10, label %11, label %12
11: ; preds = %1
store i8* getelementptr inbounds ([101 x i8], [101 x i8]* @IndentStr.empty, i64 0, i64 0), i8** %3
br label %12
12: ; preds = %11, %1
%13 = load i8*, i8** %3
ret i8* %13
}

LLVM IR (-O2):
@IndentStr.empty = internal constant [101 x i8] c"\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\09\00"
define i8* @IndentStr(i32 %0) {
%2 = sext i32 %0 to i64
%3 = sub nsw i64 0, %2
%4 = getelementptr inbounds i8, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @IndentStr.empty, i64 0, i64 100), i64 %3
%5 = icmp ugt i8* %4, getelementptr inbounds ([101 x i8], [101 x i8]* @IndentStr.empty, i64 0, i64 0)
%6 = select i1 %5, i8* %4, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @IndentStr.empty, i64 0, i64 0)
ret i8* %6
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ print_2(int /*<<< orphan*/);
int /*<<< orphan*/ println_4();
void println_2(int32_t x_13) {
  print_2(x_13);
  println_4();
}


x86 assembly (clang, -O0):
<println_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <print_2@plt>
mov    $0x0,%al
call   1030 <println_4@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<println_2>:
push   %rax
call   1040 <print_2@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <println_4@plt>

LLVM IR (-O0):
define void @println_2(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @print_2(i32 %3)
%5 = call i32 (...) @println_4()
ret void
}

LLVM IR (-O2):
define void @println_2(i32 %0) {
%2 = tail call i32 @print_2(i32 %0)
%3 = tail call i32 (...) @println_4()
ret void
}
TOShello() {}


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

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

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

LLVM IR (-O2):
define i32 @TOShello() {
ret i32 undef
}
int adreno_iommu_init(struct adreno_device *adreno_dev) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.adreno_device = type opaque
define i32 @adreno_iommu_init(%struct.adreno_device* nocapture readnone %0) {
ret i32 0
}
int ascii_islower(int c) { return (c >= 'a') && (c <= 'z'); }


x86 assembly (clang, -O0):
<ascii_islower>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x61,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1120 <ascii_islower+0x20>
cmpl   $0x7a,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ascii_islower>:
add    $0xffffff9f,%edi
xor    %eax,%eax
cmp    $0x1a,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @ascii_islower(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 label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @ascii_islower(i32 %0) {
%2 = add i32 %0, -97
%3 = icmp ult i32 %2, 26
%4 = zext i1 %3 to i32
ret i32 %4
}
void stack_list_pop(struct Stack *s) {}


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

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

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

LLVM IR (-O2):
%struct.Stack = type opaque
define void @stack_list_pop(%struct.Stack* nocapture %0) {
ret void
}
/* Variables and functions */
int ioctl(int, unsigned long, int *);
int Swift_ioctl(int fildes, unsigned long request, int *val) {
  return ioctl(fildes, request, val);
}


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

x86 assembly (clang, -O2):
<Swift_ioctl>:
jmp    1030 <ioctl@plt>

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

LLVM IR (-O2):
define i32 @Swift_ioctl(i32 %0, i64 %1, i32* %2) {
%4 = tail call i32 @ioctl(i32 %0, i64 %1, i32* %2)
ret i32 %4
}
void hugehelp(void) {}


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

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

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

LLVM IR (-O2):
define void @hugehelp() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void println(int array[], int len) {
  int i = 0;
  for (i = 0; i < len; i++) {
    printf("%d ", array[i]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<println>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1160 <println+0x50>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112d <println+0x1d>
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<println>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    1157 <println+0x37>
mov    %rdi,%r15
mov    %esi,%r12d
lea    0xec7(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <println+0x20>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define void @println(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
%14 = tail call i32 @putchar(i32 10)
ret void
}
int ifc_reset_connection_by_uid(int uid, int error) { return 0; }


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

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

LLVM IR (-O0):
define i32 @ifc_reset_connection_by_uid(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
ret i32 0
}

LLVM IR (-O2):
define i32 @ifc_reset_connection_by_uid(i32 %0, i32 %1) {
ret i32 0
}
void string_replace(char **str, const char *pattern, const char *value) {}


x86 assembly (clang, -O0):
<string_replace>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @string_replace(i8** %0, i8* %1, i8* %2) {
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i8*
store i8** %0, i8*** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
ret void
}

LLVM IR (-O2):
define void @string_replace(i8** nocapture %0, i8* nocapture %1, i8* nocapture %2) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ applyPropPatch();
void rf_patch_cpe_prop(void) { applyPropPatch(); }


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

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

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

LLVM IR (-O2):
define void @rf_patch_cpe_prop() {
%1 = tail call i32 (...) @applyPropPatch()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int main(int argc, char *argv[]) {
  puts("Test requires locale; skipping");
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Test requires locale; skipping\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"Test requires locale; skipping\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ handle_USR1(int /*<<< orphan*/);
int gen_USR1() {
  handle_USR1(0);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @gen_USR1() {
%1 = tail call i32 @handle_USR1(i32 0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ mm_fatal(char *);
void fatal(char *string) {
  mm_fatal(string);
  abort();
}


x86 assembly (clang, -O0):
<fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <mm_fatal@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<fatal>:
push   %rax
call   1040 <mm_fatal@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @fatal(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @mm_fatal(i8* %3)
%5 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @fatal(i8* %0) {
%2 = tail call i32 @mm_fatal(i8* %0)
%3 = tail call i32 (...) @abort()
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
void asc_event_clear(uint32_t *p_asc_event_flags, uint32_t event) {
  *p_asc_event_flags &= ~event;
}


x86 assembly (clang, -O0):
<asc_event_clear>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
mov    -0x8(%rbp),%rax
and    (%rax),%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<asc_event_clear>:
not    %esi
and    %esi,(%rdi)
ret

LLVM IR (-O0):
define void @asc_event_clear(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = xor i32 %5, -1
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = and i32 %8, %6
store i32 %9, i32* %7
ret void
}

LLVM IR (-O2):
define void @asc_event_clear(i32* nocapture %0, i32 %1) {
%3 = xor i32 %1, -1
%4 = load i32, i32* %0
%5 = and i32 %4, %3
store i32 %5, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ my_putchar(char);
void my_aff_str(char *str) {
  int i;
  i = 0;
  while (*(str + i) != '\0') {
    my_putchar(*(str + i));
    i = i + 1;
  }
}


x86 assembly (clang, -O0):
<my_aff_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1157 <my_aff_str+0x47>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <my_putchar@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <my_aff_str+0x13>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_aff_str>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <my_aff_str+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <my_putchar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <my_aff_str+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define void @my_aff_str(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i8*, i8** %2
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %21
12: ; preds = %4
%13 = load i8*, i8** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
%17 = load i8, i8* %16
%18 = call i32 @my_putchar(i8 signext %17)
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %4
21: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @my_aff_str(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i64 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8 [ %10, %4 ], [ %2, %1 ]
%7 = tail call i32 @my_putchar(i8 signext %6)
%8 = add nuw i64 %5, 1
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
void rotr(int *a, int *b, int *c) {
  *a += *b;
  *b = *a - *b;
  *a -= *b;
  *a += *c;
  *c = *a - *c;
  *a -= *c;
}


x86 assembly (clang, -O0):
<rotr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
add    (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
sub    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sub    %edx,%ecx
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
add    (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%rax
sub    (%rax),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
sub    %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @rotr(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%7 = load i32*, i32** %5
%8 = load i32, i32* %7
%9 = load i32*, i32** %4
%10 = load i32, i32* %9
%11 = add nsw i32 %10, %8
store i32 %11, i32* %9
%12 = load i32*, i32** %4
%13 = load i32, i32* %12
%14 = load i32*, i32** %5
%15 = load i32, i32* %14
%16 = sub nsw i32 %13, %15
%17 = load i32*, i32** %5
store i32 %16, i32* %17
%18 = load i32*, i32** %5
%19 = load i32, i32* %18
%20 = load i32*, i32** %4
%21 = load i32, i32* %20
%22 = sub nsw i32 %21, %19
store i32 %22, i32* %20
%23 = load i32*, i32** %6
%24 = load i32, i32* %23
%25 = load i32*, i32** %4
%26 = load i32, i32* %25
%27 = add nsw i32 %26, %24
store i32 %27, i32* %25
%28 = load i32*, i32** %4
%29 = load i32, i32* %28
%30 = load i32*, i32** %6
%31 = load i32, i32* %30
%32 = sub nsw i32 %29, %31
%33 = load i32*, i32** %6
store i32 %32, i32* %33
%34 = load i32*, i32** %6
%35 = load i32, i32* %34
%36 = load i32*, i32** %4
%37 = load i32, i32* %36
%38 = sub nsw i32 %37, %35
store i32 %38, i32* %36
ret void
}

LLVM IR (-O2):
define void @rotr(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2) {
%4 = load i32, i32* %1
%5 = load i32, i32* %0
%6 = add nsw i32 %5, %4
store i32 %6, i32* %0
%7 = load i32, i32* %1
%8 = sub nsw i32 %6, %7
store i32 %8, i32* %1
%9 = load i32, i32* %0
%10 = sub nsw i32 %9, %8
store i32 %10, i32* %0
%11 = load i32, i32* %2
%12 = add nsw i32 %11, %10
store i32 %12, i32* %0
%13 = load i32, i32* %2
%14 = sub nsw i32 %12, %13
store i32 %14, i32* %2
%15 = load i32, i32* %0
%16 = sub nsw i32 %15, %14
store i32 %16, i32* %0
ret void
}
int parse_acl_is_ipv6(const char *p) {
  while (*p) {
    if (*p == '.')
      return 0;
    if (*p == ':')
      return 1;
    ++p;
  }
  return 0;
}


x86 assembly (clang, -O0):
<parse_acl_is_ipv6>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     115e <parse_acl_is_ipv6+0x5e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1131 <parse_acl_is_ipv6+0x31>
movl   $0x0,-0x4(%rbp)
jmp    1165 <parse_acl_is_ipv6+0x65>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    114d <parse_acl_is_ipv6+0x4d>
movl   $0x1,-0x4(%rbp)
jmp    1165 <parse_acl_is_ipv6+0x65>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1108 <parse_acl_is_ipv6+0x8>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_acl_is_ipv6>:
movzbl (%rdi),%eax
test   %al,%al
je     1115 <parse_acl_is_ipv6+0x15>
cmp    $0x2e,%al
je     1115 <parse_acl_is_ipv6+0x15>
cmp    $0x3a,%al
je     1118 <parse_acl_is_ipv6+0x18>
add    $0x1,%rdi
jmp    1100 <parse_acl_is_ipv6>
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @parse_acl_is_ipv6(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
br label %4
4: ; preds = %20, %1
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = icmp ne i8 %6, 0
br i1 %7, label %8, label %23
8: ; preds = %4
%9 = load i8*, i8** %3
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 46
br i1 %12, label %13, label %14
13: ; preds = %8
store i32 0, i32* %2
br label %24
14: ; preds = %8
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 58
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 1, i32* %2
br label %24
20: ; preds = %14
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i32 1
store i8* %22, i8** %3
br label %4
23: ; preds = %4
store i32 0, i32* %2
br label %24
24: ; preds = %23, %19, %13
%25 = load i32, i32* %2
ret i32 %25
}

LLVM IR (-O2):
define i32 @parse_acl_is_ipv6(i8* nocapture %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %7
i8 46, label %7
i8 58, label %8
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2, %2
br label %8
8: ; preds = %2, %7
%9 = phi i32 [ 0, %7 ], [ 1, %2 ]
ret i32 %9
}
/* Type definitions */
struct vec4 {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ vec4_round(float *, float *);
__attribute__((always_)) struct vec4 *psvec4_round(struct vec4 *result,
                                                   struct vec4 *a) {
  vec4_round((float *)result, (float *)a);
  return result;
}


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

x86 assembly (clang, -O2):
<psvec4_round>:
push   %rbx
mov    %rdi,%rbx
call   1030 <vec4_round@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.vec4 = type { i32 }
define %struct.vec4* @psvec4_round(%struct.vec4* %0, %struct.vec4* %1) {
%3 = alloca %struct.vec4*
%4 = alloca %struct.vec4*
store %struct.vec4* %0, %struct.vec4** %3
store %struct.vec4* %1, %struct.vec4** %4
%5 = load %struct.vec4*, %struct.vec4** %3
%6 = bitcast %struct.vec4* %5 to float*
%7 = load %struct.vec4*, %struct.vec4** %4
%8 = bitcast %struct.vec4* %7 to float*
%9 = call i32 @vec4_round(float* %6, float* %8)
%10 = load %struct.vec4*, %struct.vec4** %3
ret %struct.vec4* %10
}

LLVM IR (-O2):
%struct.vec4 = type { i32 }
define %struct.vec4* @psvec4_round(%struct.vec4* returned %0, %struct.vec4* %1) {
%3 = bitcast %struct.vec4* %0 to float*
%4 = bitcast %struct.vec4* %1 to float*
%5 = tail call i32 @vec4_round(float* %3, float* %4)
ret %struct.vec4* %0
}
/* Variables and functions */
int /*<<< orphan*/ btr(int /*<<< orphan*/, int, int, int, int,
                       int /*<<< orphan*/, int /*<<< orphan*/,
                       int /*<<< orphan*/, int /*<<< orphan*/,
                       int /*<<< orphan*/, int /*<<< orphan*/,
                       int /*<<< orphan*/, int /*<<< orphan*/, int);
int main() {
  btr(0, 14, 5, 5, 3, 0, 0, 0, 0, 0, 0, 0, 0, 20);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
xor    %r9d,%r9d
mov    $0xe,%esi
mov    $0x5,%ecx
mov    $0x3,%r8d
mov    %r9d,%edi
mov    %ecx,%edx
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x14,0x38(%rsp)
call   1030 <btr@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
mov    $0xe,%esi
mov    $0x5,%edx
mov    $0x5,%ecx
mov    $0x3,%r8d
xor    %r9d,%r9d
push   $0x14
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
push   $0x0
call   1030 <btr@plt>
add    $0x40,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @btr(i32 0, i32 14, i32 5, i32 5, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 20)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @btr(i32 0, i32 14, i32 5, i32 5, i32 3, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 20)
ret i32 0
}
void Ctypes_hook_rd_sgn_u32(void) {}


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

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

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

LLVM IR (-O2):
define void @Ctypes_hook_rd_sgn_u32() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gui_color_init_pairs_terminal();
int /*<<< orphan*/ gui_color_init_vars();
int /*<<< orphan*/ gui_color_init_weechat();
int /*<<< orphan*/ gui_color_palette_build_aliases();
scalar_t__ has_colors();
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ use_default_colors();
void gui_color_init() {
  if (has_colors()) {
    start_color();
    use_default_colors();
  }
  gui_color_init_vars();
  gui_color_init_pairs_terminal();
  gui_color_init_weechat();
  gui_color_palette_build_aliases();
}


x86 assembly (clang, -O0):
<gui_color_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <has_colors@plt>
cmp    $0x0,%rax
je     1193 <gui_color_init+0x23>
mov    $0x0,%al
call   1070 <start_color@plt>
mov    $0x0,%al
call   1040 <use_default_colors@plt>
mov    $0x0,%al
call   1080 <gui_color_init_vars@plt>
mov    $0x0,%al
call   1060 <gui_color_init_pairs_terminal@plt>
mov    $0x0,%al
call   1090 <gui_color_init_weechat@plt>
mov    $0x0,%al
call   1030 <gui_color_palette_build_aliases@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<gui_color_init>:
push   %rax
xor    %eax,%eax
call   1050 <has_colors@plt>
test   %rax,%rax
je     118b <gui_color_init+0x1b>
xor    %eax,%eax
call   1070 <start_color@plt>
xor    %eax,%eax
call   1040 <use_default_colors@plt>
xor    %eax,%eax
call   1080 <gui_color_init_vars@plt>
xor    %eax,%eax
call   1060 <gui_color_init_pairs_terminal@plt>
xor    %eax,%eax
call   1090 <gui_color_init_weechat@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <gui_color_palette_build_aliases@plt>

LLVM IR (-O0):
define void @gui_color_init() {
%1 = call i64 (...) @has_colors()
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = call i32 (...) @start_color()
%5 = call i32 (...) @use_default_colors()
br label %6
6: ; preds = %3, %0
%7 = call i32 (...) @gui_color_init_vars()
%8 = call i32 (...) @gui_color_init_pairs_terminal()
%9 = call i32 (...) @gui_color_init_weechat()
%10 = call i32 (...) @gui_color_palette_build_aliases()
ret void
}

LLVM IR (-O2):
define void @gui_color_init() {
%1 = tail call i64 (...) @has_colors()
%2 = icmp eq i64 %1, 0
br i1 %2, label %6, label %3
3: ; preds = %0
%4 = tail call i32 (...) @start_color()
%5 = tail call i32 (...) @use_default_colors()
br label %6
6: ; preds = %3, %0
%7 = tail call i32 (...) @gui_color_init_vars()
%8 = tail call i32 (...) @gui_color_init_pairs_terminal()
%9 = tail call i32 (...) @gui_color_init_weechat()
%10 = tail call i32 (...) @gui_color_palette_build_aliases()
ret void
}
/* Variables and functions */
scalar_t__ RAND_MAX;
scalar_t__ rand();
double rand_norm(void) { return (double)rand() / (double)RAND_MAX; }


x86 assembly (clang, -O0):
<rand_norm>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2ec1(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<rand_norm>:
push   %rax
xor    %eax,%eax
call   1030 <rand@plt>
cvtsi2sd %rax,%xmm0
mov    0x2ec4(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
@RAND_MAX = global i64 0
define double @rand_norm() {
%1 = call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load i64, i64* @RAND_MAX
%4 = sitofp i64 %3 to double
%5 = fdiv double %2, %4
ret double %5
}

LLVM IR (-O2):
@RAND_MAX = global i64 0
define double @rand_norm() {
%1 = tail call i64 (...) @rand()
%2 = sitofp i64 %1 to double
%3 = load i64, i64* @RAND_MAX
%4 = sitofp i64 %3 to double
%5 = fdiv double %2, %4
ret double %5
}
/* Type definitions */
struct mntent {
  int /*<<< orphan*/ mnt_dir;
};

/* Variables and functions */
char const *strstr(int /*<<< orphan*/, char const *);
int indir(struct mntent *mnt, const char *dir) {
  return strstr(mnt->mnt_dir, dir) == dir;
}


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

x86 assembly (clang, -O2):
<indir>:
push   %rbx
mov    %rsi,%rbx
mov    (%rdi),%edi
call   1030 <strstr@plt>
xor    %ecx,%ecx
cmp    %rbx,%rax
sete   %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.mntent = type { i32 }
define i32 @indir(%struct.mntent* %0, i8* %1) {
%3 = alloca %struct.mntent*
%4 = alloca i8*
store %struct.mntent* %0, %struct.mntent** %3
store i8* %1, i8** %4
%5 = load %struct.mntent*, %struct.mntent** %3
%6 = getelementptr inbounds %struct.mntent, %struct.mntent* %5, i32 0, i32 0
%7 = load i32, i32* %6
%8 = load i8*, i8** %4
%9 = call i8* @strstr(i32 %7, i8* %8)
%10 = load i8*, i8** %4
%11 = icmp eq i8* %9, %10
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
%struct.mntent = type { i32 }
define i32 @indir(%struct.mntent* nocapture %0, i8* %1) {
%3 = getelementptr inbounds %struct.mntent, %struct.mntent* %0, i64 0, i32 0
%4 = load i32, i32* %3
%5 = tail call i8* @strstr(i32 %4, i8* %1)
%6 = icmp eq i8* %5, %1
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ abort();
scalar_t__ abs(int);
void expect_func(int a, unsigned char *b) {
  if (abs((a == 0)))
    abort();
  if (abs((b == 0)))
    abort();
}


x86 assembly (clang, -O0):
<expect_func>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <abs@plt>
cmp    $0x0,%rax
je     1151 <expect_func+0x31>
mov    $0x0,%al
call   1030 <abort@plt>
cmpq   $0x0,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <abs@plt>
cmp    $0x0,%rax
je     1174 <expect_func+0x54>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expect_func>:
push   %rbx
mov    %rsi,%rbx
xor    %eax,%eax
test   %edi,%edi
sete   %al
mov    %eax,%edi
call   1040 <abs@plt>
test   %rax,%rax
jne    114c <expect_func+0x2c>
xor    %edi,%edi
test   %rbx,%rbx
sete   %dil
call   1040 <abs@plt>
test   %rax,%rax
jne    114c <expect_func+0x2c>
pop    %rbx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @expect_func(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
%8 = call i64 @abs(i32 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %2
%13 = load i8*, i8** %4
%14 = icmp eq i8* %13, null
%15 = zext i1 %14 to i32
%16 = call i64 @abs(i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = call i32 (...) @abort()
unreachable
20: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @expect_func(i32 %0, i8* readnone %1) {
%3 = icmp eq i32 %0, 0
%4 = zext i1 %3 to i32
%5 = tail call i64 @abs(i32 %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %9, label %7
7: ; preds = %2
%8 = tail call i32 (...) @abort()
unreachable
9: ; preds = %2
%10 = icmp eq i8* %1, null
%11 = zext i1 %10 to i32
%12 = tail call i64 @abs(i32 %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %9
%15 = tail call i32 (...) @abort()
unreachable
16: ; preds = %9
ret void
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMRBA_set(void) { return U_WMRCORENONE_set("U_WMRBA"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMRBA\00"
define i8* @U_WMRBA_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMRBA\00"
define i8* @U_WMRBA_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
int fork() {}


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

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

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

LLVM IR (-O2):
define i32 @fork() {
ret i32 undef
}
char *Srealloc(str, sz)
char str[];
unsigned int sz;
{ return Realloc(str, sz); }


x86 assembly (clang, -O0):
<Srealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1030 <Realloc@plt>
cltq
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i8* @Srealloc(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 i32 (i8*, i32, ...) bitcast (i32 (...)* @Realloc to i32 (i8*, i32, ...)*)(i8* %5, i32 %6)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i8*
ret i8* %9
}

LLVM IR (-O2):
define i8* @Srealloc(i8* %0, i32 %1) {
%3 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @Realloc to i32 (i8*, i32, ...)*)(i8* %0, i32 %1)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8*
ret i8* %5
}
/* Variables and functions */
char *__glmStrdup(char *);
char *strrchr(char *, char);
char *__glmDirName(char *path) {
  char *dir;
  char *s;
  dir = __glmStrdup(path);
  s = strrchr(dir, '/');
  if (s)
    s[1] = '\0';
  else
    dir[0] = '\0';
  return dir;
}


x86 assembly (clang, -O0):
<__glmDirName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <__glmStrdup@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1163 <__glmDirName+0x43>
mov    -0x18(%rbp),%rax
movb   $0x0,0x1(%rax)
jmp    116a <__glmDirName+0x4a>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__glmDirName>:
push   %rbx
call   1040 <__glmStrdup@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
lea    0x1(%rax),%rcx
test   %rax,%rax
cmove  %rbx,%rcx
movb   $0x0,(%rcx)
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @__glmDirName(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i8* @__glmStrdup(i8* %5)
store i8* %6, i8** %3
%7 = load i8*, i8** %3
%8 = call i8* @strrchr(i8* %7, i8 signext 47)
store i8* %8, i8** %4
%9 = load i8*, i8** %4
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = load i8*, i8** %4
%13 = getelementptr inbounds i8, i8* %12, i64 1
store i8 0, i8* %13
br label %17
14: ; preds = %1
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 0
store i8 0, i8* %16
br label %17
17: ; preds = %14, %11
%18 = load i8*, i8** %3
ret i8* %18
}

LLVM IR (-O2):
define i8* @__glmDirName(i8* %0) {
%2 = tail call i8* @__glmStrdup(i8* %0)
%3 = tail call i8* @strrchr(i8* dereferenceable(1) %2, i8 signext 47)
%4 = icmp eq i8* %3, null
%5 = getelementptr inbounds i8, i8* %3, i64 1
%6 = select i1 %4, i8* %2, i8* %5
store i8 0, i8* %6
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fread(unsigned long *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
void get_fucks(FILE *fp, unsigned long *fucks) {
  rewind(fp);
  if (fread(fucks, sizeof(*fucks), 1, fp) == 1) {
    return;
  }
  *fucks = 0;
}


x86 assembly (clang, -O0):
<get_fucks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <rewind@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x8,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmp    $0x1,%eax
jne    115e <get_fucks+0x3e>
jmp    1169 <get_fucks+0x49>
mov    -0x10(%rbp),%rax
movq   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_fucks>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <rewind@plt>
mov    %r14,%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fread@plt>
cmp    $0x1,%eax
je     1150 <get_fucks+0x30>
movq   $0x0,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @get_fucks(i32* nocapture %0, i64* nocapture %1) {
%3 = tail call i32 @rewind(i32* %0)
%4 = tail call i32 @fread(i64* %1, i32 8, i32 1, i32* %0)
%5 = icmp eq i32 %4, 1
br i1 %5, label %7, label %6
6: ; preds = %2
store i64 0, i64* %1
br label %7
7: ; preds = %2, %6
ret void
}
int pc_check(int error_code) {
  if (error_code < 0) {
    return (error_code);
  } else {
    return (0);
  }
}


x86 assembly (clang, -O0):
<pc_check>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    111c <pc_check+0x1c>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1123 <pc_check+0x23>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pc_check>:
mov    %edi,%eax
sar    $0x1f,%eax
and    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @pc_check(i32 %0) {
%2 = icmp slt i32 %0, 0
%3 = select i1 %2, i32 %0, i32 0
ret i32 %3
}