xunge/DecIR huggingface dataset:
/* Variables and functions */
size_t pbbase64_encoded_length(size_t length) { return ((length + 2) / 3) * 4; }


x86 assembly (clang, -O0):
<pbbase64_encoded_length>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x2,%rax
mov    $0x3,%ecx
xor    %edx,%edx
div    %rcx
shl    $0x2,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pbbase64_encoded_length>:
lea    0x2(%rdi),%rax
movabs $0xaaaaaaaaaaaaaaab,%rcx
aa aa aa
mul    %rcx
lea    (%rdx,%rdx,1),%rax
and    $0xfffffffffffffffc,%rax
ret

LLVM IR (-O0):
define i64 @pbbase64_encoded_length(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add i64 %3, 2
%5 = udiv i64 %4, 3
%6 = mul i64 %5, 4
ret i64 %6
}

LLVM IR (-O2):
define i64 @pbbase64_encoded_length(i64 %0) {
%2 = add i64 %0, 2
%3 = udiv i64 %2, 3
%4 = shl i64 %3, 2
ret i64 %4
}
/* Variables and functions */
size_t hash2size(unsigned short hash) {
  if (hash <= 128)
    return hash * 16;
  return (hash - 128) * 64 + (16 * 128);
}


x86 assembly (clang, -O0):
<hash2size>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0xa(%rbp)
movzwl -0xa(%rbp),%eax
cmp    $0x80,%eax
jg     112c <hash2size+0x2c>
movzwl -0xa(%rbp),%eax
shl    $0x4,%eax
cltq
mov    %rax,-0x8(%rbp)
jmp    1143 <hash2size+0x43>
movzwl -0xa(%rbp),%eax
sub    $0x80,%eax
shl    $0x6,%eax
add    $0x800,%eax
cltq
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash2size>:
mov    %edi,%ecx
shl    $0x4,%ecx
mov    %edi,%eax
shl    $0x6,%eax
add    $0xffffe800,%eax
cmp    $0x81,%edi
cmovb  %ecx,%eax
ret

LLVM IR (-O0):
define i64 @hash2size(i16 zeroext %0) {
%2 = alloca i64
%3 = alloca i16
store i16 %0, i16* %3
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
%6 = icmp sle i32 %5, 128
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i16, i16* %3
%9 = zext i16 %8 to i32
%10 = mul nsw i32 %9, 16
%11 = sext i32 %10 to i64
store i64 %11, i64* %2
br label %19
12: ; preds = %1
%13 = load i16, i16* %3
%14 = zext i16 %13 to i32
%15 = sub nsw i32 %14, 128
%16 = mul nsw i32 %15, 64
%17 = add nsw i32 %16, 2048
%18 = sext i32 %17 to i64
store i64 %18, i64* %2
br label %19
19: ; preds = %12, %7
%20 = load i64, i64* %2
ret i64 %20
}

LLVM IR (-O2):
define i64 @hash2size(i16 zeroext %0) {
%2 = zext i16 %0 to i32
%3 = icmp ult i16 %0, 129
%4 = shl nuw nsw i32 %2, 4
%5 = shl nuw nsw i32 %2, 6
%6 = add nsw i32 %5, -6144
%7 = select i1 %3, i32 %4, i32 %6
%8 = zext i32 %7 to i64
ret i64 %8
}
/* Variables and functions */
int test(int, int, int);
void main() {
  int a, b, c, ret;
  ret = test(a, b, c);
}


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

x86 assembly (clang, -O2):
<main>:
jmp    1030 <test@plt>

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = call i32 @test(i32 %5, i32 %6, i32 %7)
store i32 %8, i32* %4
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 @test(i32 undef, i32 undef, i32 undef)
ret void
}
int solo5_app_main(const struct solo5_start_info *si __attribute__((unused))) {
  puts("\n**** Solo5 standalone test_seccomp ****\n\n");
  int ret;
  __asm__ __volatile__("syscall"
                       : "=a"(ret)
                       : "a"(32), "D"(1)
                       : "rcx", "r11", "memory");
  puts("FAILURE\n");
  return 1;
}


x86 assembly (clang, -O0):
<solo5_app_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
mov    $0x20,%eax
mov    $0x1,%edi
syscall
mov    %eax,-0xc(%rbp)
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solo5_app_main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    $0x20,%eax
mov    $0x1,%edi
syscall
lea    0xef9(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.solo5_start_info = type opaque
@.str = [43 x i8] c"\0A**** Solo5 standalone test_seccomp ****\0A\0A\00"
@.str.1 = [9 x i8] c"FAILURE\0A\00"
define i32 @solo5_app_main(%struct.solo5_start_info* %0) {
%2 = alloca %struct.solo5_start_info*
%3 = alloca i32
store %struct.solo5_start_info* %0, %struct.solo5_start_info** %2
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%5 = call i32 asm sideeffect "syscall", "={ax},{ax},{di},~{rcx},~{r11},~{memory},~{dirflag},~{fpsr},~{flags}"(i32 32, i32 1)
store i32 %5, i32* %3
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
%struct.solo5_start_info = type opaque
@.str = [43 x i8] c"\0A**** Solo5 standalone test_seccomp ****\0A\0A\00"
@.str.1 = [9 x i8] c"FAILURE\0A\00"
define i32 @solo5_app_main(%struct.solo5_start_info* nocapture readnone %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 asm sideeffect "syscall", "={ax},{ax},{di},~{rcx},~{r11},~{memory},~{dirflag},~{fpsr},~{flags}"(i32 32, i32 1)
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret i32 1
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int _ROR32(int, int);
void ROR_C(uint32_t val, int shift, uint32_t *result, int *carry_out) {
  *carry_out = val >> (shift - 1) & (0x1UL);
  *result = _ROR32(val, shift);
}


x86 assembly (clang, -O0):
<ROR_C>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
sar    %cl,%eax
cltq
and    $0x1,%rax
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <_ROR32@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ROR_C>:
push   %rbx
mov    %rcx,%r8
lea    -0x1(%rsi),%ecx
mov    %edi,%eax
shr    %cl,%eax
mov    %rdx,%rbx
and    $0x1,%eax
mov    %eax,(%r8)
call   1030 <_ROR32@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @ROR_C(i32 %0, i32 %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = sub nsw i32 %10, 1
%12 = ashr i32 %9, %11
%13 = sext i32 %12 to i64
%14 = and i64 %13, 1
%15 = trunc i64 %14 to i32
%16 = load i32*, i32** %8
store i32 %15, i32* %16
%17 = load i32, i32* %5
%18 = load i32, i32* %6
%19 = call i32 @_ROR32(i32 %17, i32 %18)
%20 = load i32*, i32** %7
store i32 %19, i32* %20
ret void
}

LLVM IR (-O2):
define void @ROR_C(i32 %0, i32 %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = add nsw i32 %1, -1
%6 = lshr i32 %0, %5
%7 = and i32 %6, 1
store i32 %7, i32* %3
%8 = tail call i32 @_ROR32(i32 %0, i32 %1)
store i32 %8, i32* %2
ret void
}
double sqr(double r) { return r * r; }


x86 assembly (clang, -O0):
<sqr>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<sqr>:
mulsd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @sqr(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = fmul double %3, %4
ret double %5
}

LLVM IR (-O2):
define double @sqr(double %0) {
%2 = fmul double %0, %0
ret double %2
}
int plugin_getTunTap() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @plugin_getTunTap() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char const *, int);
void errexit(int err, const char *indicator) {
  printf("%s error %d\n", indicator, err);
  exit(1);
}


x86 assembly (clang, -O0):
<errexit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x4(%rbp),%edx
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<errexit>:
push   %rax
mov    %edi,%edx
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%s error %d\0A\00"
define void @errexit(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i32, i32* %3
%7 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %6)
%8 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [13 x i8] c"%s error %d\0A\00"
define void @errexit(i32 %0, i8* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ tests_url_normalize();
int main(int argc, char **argv) {
  int failures;
  failures = 0;
  failures += tests_url_normalize();
  if (failures)
    exit(EXIT_FAILURE);
  else
    exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   1030 <tests_url_normalize@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1169 <main+0x49>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2e68(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <tests_url_normalize@plt>
test   %eax,%eax
jne    113a <main+0x1a>
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i64 (...) @tests_url_normalize()
%8 = load i32, i32* %6
%9 = sext i32 %8 to i64
%10 = add nsw i64 %9, %7
%11 = trunc i64 %10 to i32
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, i32* @EXIT_FAILURE
%16 = call i32 @exit(i32 %15)
unreachable
17: ; preds = %2
%18 = load i32, i32* @EXIT_SUCCESS
%19 = call i32 @exit(i32 %18)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 (...) @tests_url_normalize()
%4 = trunc i64 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %2
%10 = load i32, i32* @EXIT_SUCCESS
%11 = tail call i32 @exit(i32 %10)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ record_linux_param_description(char *, char *, char *);
void module_param_desc_gamma(void) {
  record_linux_param_description("tcp_vegas.c", "gamma",
                                 "limit on increase (scale by 2)");
}


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

x86 assembly (clang, -O2):
<module_param_desc_gamma>:
lea    0xee9(%rip),%rdi
lea    0xeee(%rip),%rsi
lea    0xeed(%rip),%rdx
jmp    1030 <record_linux_param_description@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"tcp_vegas.c\00"
@.str.1 = [6 x i8] c"gamma\00"
@.str.2 = [31 x i8] c"limit on increase (scale by 2)\00"
define void @module_param_desc_gamma() {
%1 = call i32 @record_linux_param_description(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"tcp_vegas.c\00"
@.str.1 = [6 x i8] c"gamma\00"
@.str.2 = [31 x i8] c"limit on increase (scale by 2)\00"
define void @module_param_desc_gamma() {
%1 = tail call i32 @record_linux_param_description(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ledsCycle(unsigned int, unsigned char);
void ledsConditionalCycle(register unsigned int pattern, register char doIt,
                          register unsigned char timeDiv) {
  if (doIt) {
    ledsCycle(pattern, timeDiv);
  }
}


x86 assembly (clang, -O0):
<ledsConditionalCycle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %edi,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
cmpb   $0x0,-0x5(%rbp)
je     113c <ledsConditionalCycle+0x2c>
mov    -0x4(%rbp),%edi
movzbl -0x6(%rbp),%esi
call   1030 <ledsCycle@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ledsConditionalCycle>:
test   %sil,%sil
je     111d <ledsConditionalCycle+0xd>
movzbl %dl,%esi
jmp    1030 <ledsCycle@plt>
ret

LLVM IR (-O0):
define void @ledsConditionalCycle(i32 %0, i8 signext %1, i8 zeroext %2) {
%4 = alloca i32
%5 = alloca i8
%6 = alloca i8
store i32 %0, i32* %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%7 = load i8, i8* %5
%8 = icmp ne i8 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i32, i32* %4
%11 = load i8, i8* %6
%12 = call i32 @ledsCycle(i32 %10, i8 zeroext %11)
br label %13
13: ; preds = %9, %3
ret void
}

LLVM IR (-O2):
define void @ledsConditionalCycle(i32 %0, i8 signext %1, i8 zeroext %2) {
%4 = icmp eq i8 %1, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @ledsCycle(i32 %0, i8 zeroext %2)
br label %7
7: ; preds = %5, %3
ret void
}
/* Variables and functions */
unsigned int cap1166_get_leds();
int led_get_state(int i) {
  unsigned int l;
  l = cap1166_get_leds();
  l &= (1 << i);
  if (l == 0) {
    return 0;
  } else {
    return 1;
  };
}


x86 assembly (clang, -O0):
<led_get_state>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <cap1166_get_leds@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
and    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    114b <led_get_state+0x3b>
movl   $0x0,-0x4(%rbp)
jmp    1152 <led_get_state+0x42>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<led_get_state>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <cap1166_get_leds@plt>
mov    %ebx,%ecx
shr    %cl,%eax
and    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @led_get_state(i32 %0) {
%2 = tail call i32 (...) @cap1166_get_leds()
%3 = lshr i32 %2, %0
%4 = and i32 %3, 1
ret i32 %4
}
void main() {
  while (1) {
  }
}


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

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

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

LLVM IR (-O2):
define void @main() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  scalar_t__ clip_x_origin;
};
typedef TYPE_1__ XGCValues;

/* Variables and functions */
int get_XGCValues_clip_x_origin(void *_p) {
  return (int)((XGCValues *)_p)->clip_x_origin;
}


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

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

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

LLVM IR (-O2):
define i32 @get_XGCValues_clip_x_origin(i8* nocapture %0) {
%2 = bitcast i8* %0 to i64*
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void discard(void *thing) { free(thing); }


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

x86 assembly (clang, -O2):
<discard>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @discard(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
void ff_hevc_put_hevc_uni_epel_h8_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_epel_h8_8_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int code;
  printf("Input the ASCII code: ");
  scanf("%d", &code);
  printf("ASCII char: %c\n", code);
  return 0;
}


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

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

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

LLVM IR (-O2):
@.str = [23 x i8] c"Input the ASCII code: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [16 x i8] c"ASCII char: %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ sqlite3_free(void *);
void fuzzFree(void *p) { sqlite3_free(p); }


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

x86 assembly (clang, -O2):
<fuzzFree>:
jmp    1030 <sqlite3_free@plt>

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

LLVM IR (-O2):
define void @fuzzFree(i8* %0) {
%2 = tail call i32 @sqlite3_free(i8* %0)
ret void
}
void __monitorx(const void *eax, unsigned long ecx, unsigned long edx) {
  asm volatile(".byte 0x0f, 0x01, 0xfa;" ::"a"(eax), "c"(ecx), "d"(edx));
}


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

x86 assembly (clang, -O2):
<__monitorx>:
mov    %rsi,%rcx
mov    %rdi,%rax
monitorx %rax,%ecx,%edx
ret

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

LLVM IR (-O2):
define void @__monitorx(i8* %0, i64 %1, i64 %2) {
tail call void asm sideeffect ".byte 0x0f, 0x01, 0xfa;", "{ax},{cx},{dx},~{dirflag},~{fpsr},~{flags}"(i8* %0, i64 %1, i64 %2)
ret void
}
void wpa_cli_show_network_variables(void) {}


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

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

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

LLVM IR (-O2):
define void @wpa_cli_show_network_variables() {
ret void
}
int main() {
  int a = 3;
  while (a)
    a--;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     112a <main+0x2a>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <main+0x12>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
double fabs(double);
double step(double fromVal, double toVal, double speed) {
  if (fabs(fromVal - toVal) < 0.01) {
    return 0.0;
  }
  return fabs(fromVal - toVal) / speed;
}


x86 assembly (clang, -O0):
<step>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
movaps 0xeec(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xed0(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1147 <step+0x47>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1166 <step+0x66>
movsd  -0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movaps 0xeb8(%rip),%xmm1
pand   %xmm1,%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<step>:
subsd  %xmm1,%xmm0
andpd  0xef4(%rip),%xmm0
xorpd  %xmm1,%xmm1
movsd  0xef8(%rip),%xmm3
ucomisd %xmm0,%xmm3
ja     1126 <step+0x26>
divsd  %xmm2,%xmm0
movapd %xmm0,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @step(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
%8 = load double, double* %5
%9 = load double, double* %6
%10 = fsub double %8, %9
%11 = call double @llvm.fabs.f64(double %10)
%12 = fcmp olt double %11, 1.000000e-02
br i1 %12, label %13, label %14
13: ; preds = %3
store double 0.000000e+00, double* %4
br label %21
14: ; preds = %3
%15 = load double, double* %5
%16 = load double, double* %6
%17 = fsub double %15, %16
%18 = call double @llvm.fabs.f64(double %17)
%19 = load double, double* %7
%20 = fdiv double %18, %19
store double %20, double* %4
br label %21
21: ; preds = %14, %13
%22 = load double, double* %4
ret double %22
}

LLVM IR (-O2):
define double @step(double %0, double %1, double %2) {
%4 = fsub double %0, %1
%5 = tail call double @llvm.fabs.f64(double %4)
%6 = fcmp olt double %5, 1.000000e-02
%7 = fdiv double %5, %2
%8 = select i1 %6, double 0.000000e+00, double %7
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ assume(int);
void main() {
  int x = 0;
  int n;
  assume(n > 0);
  while (x < n) {
    x++;
  }
  assert(x <= n);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x8(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assume@plt>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    115a <main+0x3a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1140 <main+0x20>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @assume(i32 %5)
br label %7
7: ; preds = %11, %0
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
br label %7
14: ; preds = %7
%15 = load i32, i32* %1
%16 = load i32, i32* %2
%17 = icmp sle i32 %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 @assume(i32 0)
%2 = tail call i32 @assert(i32 1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ putc(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
void uconcat(FILE *fp1, const char *s1, FILE *fp2, const char *s2) {
  int c;
  setbuf(fp2, NULL);
  while ((c = getc(fp1)) != EOF)
    putc(c, fp2);
}


x86 assembly (clang, -O0):
<uconcat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <setbuf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
mov    %eax,-0x24(%rbp)
mov    0x2e80(%rip),%rcx
cmp    (%rcx),%eax
je     1181 <uconcat+0x51>
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1040 <putc@plt>
jmp    1155 <uconcat+0x25>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uconcat>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rdi,%rbx
mov    %rdx,%rdi
xor    %esi,%esi
call   1030 <setbuf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
mov    0x2e94(%rip),%r15
cmp    (%r15),%eax
je     1177 <uconcat+0x47>
nopl   0x0(%rax)
mov    %eax,%edi
mov    %r14,%rsi
call   1040 <putc@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
cmp    (%r15),%eax
jne    1160 <uconcat+0x30>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@EOF = global i32 0
define void @uconcat(i32* nocapture %0, i8* nocapture readnone %1, i32* nocapture %2, i8* nocapture readnone %3) {
%5 = tail call i32 @setbuf(i32* %2, i32* null)
%6 = tail call i32 @getc(i32* %0)
%7 = load i32, i32* @EOF
%8 = icmp eq i32 %6, %7
br i1 %8, label %15, label %9
9: ; preds = %4, %9
%10 = phi i32 [ %12, %9 ], [ %6, %4 ]
%11 = tail call i32 @putc(i32 %10, i32* %2)
%12 = tail call i32 @getc(i32* %0)
%13 = load i32, i32* @EOF
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %9
15: ; preds = %9, %4
ret void
}
double acos(double x) {
  puts("# ");
  puts(__FUNCTION__);
  puts("()\n");
  (void)(x);
  return 0;
}


x86 assembly (clang, -O0):
<acos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
xorps  %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [3 x i8] c"# \00"
@__FUNCTION__.acos = [5 x i8] c"acos\00"
@.str.1 = [4 x i8] c"()\0A\00"
define double @acos(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.acos, i64 0, i64 0))
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%6 = load double, double* %2
ret double 0.000000e+00
}

LLVM IR (-O2):
@.str = [3 x i8] c"# \00"
@__FUNCTION__.acos = [5 x i8] c"acos\00"
@.str.1 = [4 x i8] c"()\0A\00"
define double @acos(double %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @__FUNCTION__.acos, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
ret double 0.000000e+00
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void print_usage(void) {
  fprintf(
      stderr,
      "\n"
      "Usage: bntools index [options] <ref>\n"
      "\n"
      "Options:\n"
      "   <ref>   reference genome, in tsv/cmap format\n"
      "   -v      show verbose message\n"
      "   -h      show this help\n"
      "\n"
      "Note:\n"
      "   Index file will be saved as '<NAME>.idx.gz', unless input <ref>\n"
      "is '-' or 'stdin'. In such case, the index will be output to stdout.\n"
      "\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [299 x i8] c"\0AUsage: bntools index [options] <ref>\0A\0AOptions:\0A <ref> reference genome, in tsv/cmap format\0A -v show verbose message\0A -h show this help\0A\0ANote:\0A Index file will be saved as '<NAME>.idx.gz', unless input <ref>\0Ais '-' or 'stdin'. In such case, the index will be output to stdout.\0A\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([299 x i8], [299 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [299 x i8] c"\0AUsage: bntools index [options] <ref>\0A\0AOptions:\0A <ref> reference genome, in tsv/cmap format\0A -v show verbose message\0A -h show this help\0A\0ANote:\0A Index file will be saved as '<NAME>.idx.gz', unless input <ref>\0Ais '-' or 'stdin'. In such case, the index will be output to stdout.\0A\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([299 x i8], [299 x i8]* @.str, i64 0, i64 0))
ret void
}
unsigned int m_atoi(unsigned char *in) {
  int toret = 0;
  while (*in >= '0' && *in <= '9') {
    toret *= 10;
    toret += *in - '0';
    in++;
  }
  return (toret);
}


x86 assembly (clang, -O0):
<m_atoi>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0xd(%rbp)
jl     1134 <m_atoi+0x34>
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1144 <m_atoi+0x44>
jmp    116c <m_atoi+0x6c>
imul   $0xa,-0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
sub    $0x30,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110f <m_atoi+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_atoi>:
mov    (%rdi),%cl
lea    -0x30(%rcx),%edx
xor    %eax,%eax
cmp    $0x9,%dl
ja     113b <m_atoi+0x3b>
add    $0x1,%rdi
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl %cl,%ecx
lea    (%rax,%rax,4),%eax
lea    (%rcx,%rax,2),%eax
add    $0xffffffd0,%eax
movzbl (%rdi),%ecx
lea    -0x30(%rcx),%edx
add    $0x1,%rdi
cmp    $0xa,%dl
jb     1120 <m_atoi+0x20>
ret

LLVM IR (-O0):
define i32 @m_atoi(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %16, %1
%5 = load i8*, i8** %2
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
%8 = icmp sge i32 %7, 48
br i1 %8, label %9, label %14
9: ; preds = %4
%10 = load i8*, i8** %2
%11 = load i8, i8* %10
%12 = zext i8 %11 to i32
%13 = icmp sle i32 %12, 57
br label %14
14: ; preds = %9, %4
%15 = phi i1 [ false, %4 ], [ %13, %9 ]
br i1 %15, label %16, label %27
16: ; preds = %14
%17 = load i32, i32* %3
%18 = mul nsw i32 %17, 10
store i32 %18, i32* %3
%19 = load i8*, i8** %2
%20 = load i8, i8* %19
%21 = zext i8 %20 to i32
%22 = sub nsw i32 %21, 48
%23 = load i32, i32* %3
%24 = add nsw i32 %23, %22
store i32 %24, i32* %3
%25 = load i8*, i8** %2
%26 = getelementptr inbounds i8, i8* %25, i32 1
store i8* %26, i8** %2
br label %4
27: ; preds = %14
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
define i32 @m_atoi(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = add i8 %2, -48
%4 = icmp ult i8 %3, 10
br i1 %4, label %5, label %17
5: ; preds = %1, %5
%6 = phi i8 [ %14, %5 ], [ %2, %1 ]
%7 = phi i32 [ %12, %5 ], [ 0, %1 ]
%8 = phi i8* [ %13, %5 ], [ %0, %1 ]
%9 = zext i8 %6 to i32
%10 = mul nsw i32 %7, 10
%11 = add i32 %10, -48
%12 = add i32 %11, %9
%13 = getelementptr inbounds i8, i8* %8, i64 1
%14 = load i8, i8* %13
%15 = add i8 %14, -48
%16 = icmp ult i8 %15, 10
br i1 %16, label %5, label %17
17: ; preds = %5, %1
%18 = phi i32 [ 0, %1 ], [ %12, %5 ]
ret i32 %18
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
__attribute__((no)) int t3(void) {
  int modified_undef_stack_int;
  modified_undef_stack_int++;
  fprintf(stderr, "\nUndef 3 of 3 (int)\n");
  return (modified_undef_stack_int == 0x1234 ? 11 : 22);
}


x86 assembly (clang, -O0):
<t3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%edx
mov    $0x16,%eax
mov    $0xb,%ecx
cmp    $0x1234,%edx
cmove  %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t3>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x16,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c"\0AUndef 3 of 3 (int)\0A\00"
define i32 @t3() {
%1 = alloca i32
%2 = load i32, i32* %1
%3 = add nsw i32 %2, 1
store i32 %3, i32* %1
%4 = load i32, i32* @stderr
%5 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* %1
%7 = icmp eq i32 %6, 4660
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 11, i32 22
ret i32 %9
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c"\0AUndef 3 of 3 (int)\0A\00"
define i32 @t3() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret i32 22
}
/* Variables and functions */
int /*<<< orphan*/ ERR_getErrorCode(size_t);
char const *ERR_getErrorString(int /*<<< orphan*/);
__attribute__((unused)) const char *ERR_getErrorName(size_t code) {
  return ERR_getErrorString(ERR_getErrorCode(code));
}


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

x86 assembly (clang, -O2):
<ERR_getErrorName>:
push   %rax
call   1040 <ERR_getErrorCode@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <ERR_getErrorString@plt>

LLVM IR (-O0):
define i8* @ERR_getErrorName(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @ERR_getErrorCode(i64 %3)
%5 = call i8* @ERR_getErrorString(i32 %4)
ret i8* %5
}

LLVM IR (-O2):
define i8* @ERR_getErrorName(i64 %0) {
%2 = tail call i32 @ERR_getErrorCode(i64 %0)
%3 = tail call i8* @ERR_getErrorString(i32 %2)
ret i8* %3
}
/* Type definitions */
struct rtas_event_exthdr {
  int dummy;
};
struct rtas_event {
  int dummy;
};

/* Variables and functions */
scalar_t__ get_re_scn(struct rtas_event *, int);
struct rtas_event_exthdr *rtas_get_event_exthdr_scn(struct rtas_event *re) {
  return (struct rtas_event_exthdr *)get_re_scn(re, 2);
}


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

x86 assembly (clang, -O2):
<rtas_get_event_exthdr_scn>:
mov    $0x2,%esi
jmp    1030 <get_re_scn@plt>

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

LLVM IR (-O2):
%struct.rtas_event_exthdr = type { i32 }
%struct.rtas_event = type { i32 }
define %struct.rtas_event_exthdr* @rtas_get_event_exthdr_scn(%struct.rtas_event* %0) {
%2 = tail call i64 @get_re_scn(%struct.rtas_event* %0, i32 2)
%3 = inttoptr i64 %2 to %struct.rtas_event_exthdr*
ret %struct.rtas_event_exthdr* %3
}
void cpustat_noop(void) {}


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

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

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

LLVM IR (-O2):
define void @cpustat_noop() {
ret void
}
void CFilterDestroy(void *arg) { (void)arg; }


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

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

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

LLVM IR (-O2):
define void @CFilterDestroy(i8* nocapture %0) {
ret void
}
int C_Utils_compare_uint(const unsigned int item1, const unsigned int item2) {
  if (item1 == item2)
    return 0;
  return item1 < item2 ? -1 : 1;
}


x86 assembly (clang, -O0):
<C_Utils_compare_uint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jne    1122 <C_Utils_compare_uint+0x22>
movl   $0x0,-0x4(%rbp)
jmp    113a <C_Utils_compare_uint+0x3a>
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%esi
mov    $0x1,%eax
mov    $0xffffffff,%ecx
cmp    %esi,%edx
cmovb  %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<C_Utils_compare_uint>:
xor    %ecx,%ecx
xor    %eax,%eax
cmp    %esi,%edi
setae  %al
lea    -0x1(%rax,%rax,1),%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @C_Utils_compare_uint(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = load i32, i32* %5
%8 = icmp eq i32 %6, %7
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, i32* %3
br label %16
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = icmp ult i32 %11, %12
%14 = zext i1 %13 to i64
%15 = select i1 %13, i32 -1, i32 1
store i32 %15, i32* %3
br label %16
16: ; preds = %10, %9
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @C_Utils_compare_uint(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
%4 = icmp ult i32 %0, %1
%5 = select i1 %4, i32 -1, i32 1
%6 = select i1 %3, i32 0, i32 %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ fp_msg(char *);
int fu_hint(void) {
  fp_msg("      `funpack -H' for help\n");
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [29 x i8] c" `funpack -H' for help\0A\00"
define i32 @fu_hint() {
%1 = call i32 @fp_msg(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c" `funpack -H' for help\0A\00"
define i32 @fu_hint() {
%1 = tail call i32 @fp_msg(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
DIR *opendir(const char *dir) {
  fprintf(stderr, "opendir not supported %s\n", dir);
  return 0;
}


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

x86 assembly (clang, -O2):
<opendir>:
push   %rax
mov    %rdi,%rdx
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [26 x i8] c"opendir not supported %s\0A\00"
define i32* @opendir(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32* null
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [26 x i8] c"opendir not supported %s\0A\00"
define noalias i32* @opendir(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i32* null
}
/* Variables and functions */
int max_value(int *, int);
int /*<<< orphan*/ printf(char *, int);
void main() {
  int array[5] = {-1, 2, 1, 3, 0};
  printf("%d ", max_value(array, 5));
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecc(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x5,%esi
call   1040 <max_value@plt>
mov    %eax,%esi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
mov    0xee6(%rip),%eax
mov    %eax,0x10(%rsp)
movaps 0xecb(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x5,%esi
call   1040 <max_value@plt>
lea    0xec7(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.array = [5 x i32] [i32 -1, i32 2, i32 1, i32 3, i32 0]
@.str = [4 x i8] c"%d \00"
define void @main() {
%1 = alloca [5 x i32]
%2 = bitcast [5 x i32]* %1 to i8*
%3 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%4 = call i32 @max_value(i32* %3, i32 5)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}

LLVM IR (-O2):
@__const.main.array = [5 x i32] [i32 -1, i32 2, i32 1, i32 3, i32 0]
@.str = [4 x i8] c"%d \00"
define void @main() {
%1 = alloca [5 x i32]
%2 = bitcast [5 x i32]* %1 to i8*
%3 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%4 = call i32 @max_value(i32* %3, i32 5)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}
int conf_is_path_rooted(const char *fn) {
  if (fn[0] == '/' || fn[0] == '.')
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<conf_is_path_rooted>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
je     1128 <conf_is_path_rooted+0x28>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1134 <conf_is_path_rooted+0x34>
movl   $0x1,-0x4(%rbp)
jmp    113b <conf_is_path_rooted+0x3b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<conf_is_path_rooted>:
mov    (%rdi),%cl
and    $0xfe,%cl
xor    %eax,%eax
cmp    $0x2e,%cl
sete   %al
ret

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

LLVM IR (-O2):
define i32 @conf_is_path_rooted(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = and i8 %2, -2
%4 = icmp eq i8 %3, 46
%5 = zext i1 %4 to i32
ret i32 %5
}