xunge/DecIR huggingface dataset:
void StartModeDetectionTriggerHost(unsigned long MMIOBase,
                                   unsigned long offset) {
  *(volatile unsigned long *)((unsigned long)(0x1E700000) +
                              (unsigned long)(offset)) =
      (((*(volatile unsigned long *)((unsigned long)(0x1E700000) +
                                     (unsigned long)(offset))) &
        (~0x00000001)) |
       (unsigned long)((0) & (0x00000001)));
  *(volatile unsigned long *)((unsigned long)(0x1E700000) +
                              (unsigned long)(offset)) =
      (((*(volatile unsigned long *)((unsigned long)(0x1E700000) +
                                     (unsigned long)(offset))) &
        (~0x00000001)) |
       (unsigned long)((0x00000001) & (0x00000001)));
}


x86 assembly (clang, -O0):
<StartModeDetectionTriggerHost>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1e700000,%rax
mov    (%rax),%rcx
and    $0xfffffffffffffffe,%rcx
or     $0x0,%rcx
mov    -0x10(%rbp),%rax
add    $0x1e700000,%rax
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1e700000,%rax
mov    (%rax),%rcx
and    $0xfffffffffffffffe,%rcx
or     $0x1,%rcx
mov    -0x10(%rbp),%rax
add    $0x1e700000,%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<StartModeDetectionTriggerHost>:
andq   $0xfffffffffffffffe,0x1e700000(%rsi)
fe
orq    $0x1,0x1e700000(%rsi)
01
ret

LLVM IR (-O0):
define void @StartModeDetectionTriggerHost(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = add i64 510656512, %5
%7 = inttoptr i64 %6 to i64*
%8 = load volatile i64, i64* %7
%9 = and i64 %8, -2
%10 = or i64 %9, 0
%11 = load i64, i64* %4
%12 = add i64 510656512, %11
%13 = inttoptr i64 %12 to i64*
store volatile i64 %10, i64* %13
%14 = load i64, i64* %4
%15 = add i64 510656512, %14
%16 = inttoptr i64 %15 to i64*
%17 = load volatile i64, i64* %16
%18 = and i64 %17, -2
%19 = or i64 %18, 1
%20 = load i64, i64* %4
%21 = add i64 510656512, %20
%22 = inttoptr i64 %21 to i64*
store volatile i64 %19, i64* %22
ret void
}

LLVM IR (-O2):
define void @StartModeDetectionTriggerHost(i64 %0, i64 %1) {
%3 = add i64 %1, 510656512
%4 = inttoptr i64 %3 to i64*
%5 = load volatile i64, i64* %4
%6 = and i64 %5, -2
store volatile i64 %6, i64* %4
%7 = load volatile i64, i64* %4
%8 = or i64 %7, 1
store volatile i64 %8, i64* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fec_stop();
void network_stop() { fec_stop(); }


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

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

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

LLVM IR (-O2):
define void @network_stop() {
%1 = tail call i32 (...) @fec_stop()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ ofl_instruction_type_print(int /*<<< orphan*/ *,
                                              int /*<<< orphan*/);
int /*<<< orphan*/ *open_memstream(char **, size_t *);
char *ofl_instruction_type_to_string(uint16_t type) {
  char *str;
  size_t str_size;
  FILE *stream = open_memstream(&str, &str_size);
  ofl_instruction_type_print(stream, type);
  fclose(stream);
  return str;
}


x86 assembly (clang, -O0):
<ofl_instruction_type_to_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <open_memstream@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1050 <ofl_instruction_type_print@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ofl_instruction_type_to_string>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %edi,%ebp
lea    0x8(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1030 <open_memstream@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %ebp,%esi
call   1050 <ofl_instruction_type_print@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    0x8(%rsp),%rax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i8* @ofl_instruction_type_to_string(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32*
store i32 %0, i32* %2
%6 = call i32* @open_memstream(i8** %3, i64* %4)
store i32* %6, i32** %5
%7 = load i32*, i32** %5
%8 = load i32, i32* %2
%9 = call i32 @ofl_instruction_type_print(i32* %7, i32 %8)
%10 = load i32*, i32** %5
%11 = call i32 @fclose(i32* %10)
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
define i8* @ofl_instruction_type_to_string(i32 %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = bitcast i8** %2 to i8*
%5 = bitcast i64* %3 to i8*
%6 = call i32* @open_memstream(i8** %2, i64* %3)
%7 = call i32 @ofl_instruction_type_print(i32* %6, i32 %0)
%8 = call i32 @fclose(i32* %6)
%9 = load i8*, i8** %2
ret i8* %9
}
/* Variables and functions */
char *strrchr(char *, char);
char *strippath(char *filename) {
  char *tmp;
  if (!(tmp = strrchr(filename, '/')))
    tmp = filename;
  else
    tmp++;
  return tmp;
}


x86 assembly (clang, -O0):
<strippath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
jne    1145 <strippath+0x35>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    1151 <strippath+0x41>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i8* @strippath(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%3 = icmp eq i8* %2, null
%4 = getelementptr inbounds i8, i8* %2, i64 1
%5 = select i1 %3, i8* %0, i8* %4
ret i8* %5
}
/* Type definitions */
struct user_desc {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ SYS_set_thread_area;
int syscall(int /*<<< orphan*/, struct user_desc *);
int set_thread_area(struct user_desc *u_info) {
  return syscall(SYS_set_thread_area, u_info);
}


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

x86 assembly (clang, -O2):
<set_thread_area>:
mov    %rdi,%rsi
mov    0x2ed6(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
%struct.user_desc = type { i32 }
@SYS_set_thread_area = global i32 0
define i32 @set_thread_area(%struct.user_desc* %0) {
%2 = alloca %struct.user_desc*
store %struct.user_desc* %0, %struct.user_desc** %2
%3 = load i32, i32* @SYS_set_thread_area
%4 = load %struct.user_desc*, %struct.user_desc** %2
%5 = call i32 @syscall(i32 %3, %struct.user_desc* %4)
ret i32 %5
}

LLVM IR (-O2):
%struct.user_desc = type { i32 }
@SYS_set_thread_area = global i32 0
define i32 @set_thread_area(%struct.user_desc* %0) {
%2 = load i32, i32* @SYS_set_thread_area
%3 = tail call i32 @syscall(i32 %2, %struct.user_desc* %0)
ret i32 %3
}
int test(int foo, int bar) { return foo + bar; }


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

x86 assembly (clang, -O2):
<test>:
lea    (%rdi,%rsi,1),%eax
ret

LLVM IR (-O0):
define i32 @test(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @test(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ crc32c_sb8_64_bit(scalar_t__, unsigned char const *, unsigned int,
                             scalar_t__);
uint32_t multitable_crc32c(uint32_t crc32c, const unsigned char *buffer,
                           unsigned int length) {
  uint32_t to_even_word;
  if (length == 0) {
    return (crc32c);
  }
  to_even_word = (uint32_t)(4 - (((uintptr_t)buffer) & 0x3));
  return (crc32c_sb8_64_bit(crc32c, buffer, length, to_even_word));
}


x86 assembly (clang, -O0):
<multitable_crc32c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    113a <multitable_crc32c+0x2a>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1166 <multitable_crc32c+0x56>
mov    -0x18(%rbp),%rcx
and    $0x3,%rcx
mov    $0x4,%eax
sub    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rcx
call   1030 <crc32c_sb8_64_bit@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<multitable_crc32c>:
test   %edx,%edx
je     1126 <multitable_crc32c+0x16>
mov    %esi,%eax
and    $0x3,%eax
mov    $0x4,%ecx
sub    %rax,%rcx
jmp    1030 <crc32c_sb8_64_bit@plt>
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i64 @multitable_crc32c(i64 %0, i8* %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %10, label %5
5: ; preds = %3
%6 = ptrtoint i8* %1 to i64
%7 = and i64 %6, 3
%8 = sub nuw nsw i64 4, %7
%9 = tail call i64 @crc32c_sb8_64_bit(i64 %0, i8* %1, i32 %2, i64 %8)
br label %10
10: ; preds = %3, %5
%11 = phi i64 [ %9, %5 ], [ %0, %3 ]
ret i64 %11
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
#pragma omp parallel
  { printf("Hello\n"); }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@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 = [7 x i8] c"Hello\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [6 x i8] c"Hello\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ val;
typedef scalar_t__ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(scalar_t__ *, void *, int);
int /*<<< orphan*/ printf(char *);
void print_bool(void *buf) {
  uint32_t val;
  memcpy(&val, buf, sizeof(val));
  if (val) {
    printf("TRUE");
  } else {
    printf("FALSE");
  }
}


x86 assembly (clang, -O0):
<print_bool>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    -0x10(%rbp),%rdi
mov    $0x8,%edx
call   1040 <memcpy@plt>
cmpq   $0x0,-0x10(%rbp)
je     115a <print_bool+0x3a>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
jmp    1166 <print_bool+0x46>
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_bool>:
push   %rax
mov    %rdi,%rsi
mov    %rsp,%rdi
mov    $0x8,%edx
call   1040 <memcpy@plt>
cmpq   $0x0,(%rsp)
lea    0xec8(%rip),%rax
lea    0xebc(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
pop    %rax
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"TRUE\00"
@.str.1 = [6 x i8] c"FALSE\00"
define void @print_bool(i8* %0) {
%2 = alloca i64
%3 = bitcast i64* %2 to i8*
%4 = call i32 @memcpy(i64* %2, i8* %0, i32 8)
%5 = load i64, i64* %2
%6 = icmp eq i64 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
%8 = call i32 @printf(i8* dereferenceable(1) %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int some_number;
  printf("Please enter a number: ");
  scanf("%d", &some_number);
  printf("You entered %d.\n", some_number);
  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    0xed4(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%esi
lea    0xec4(%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    0xee2(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Please enter a number: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [17 x i8] c"You entered %d.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 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 ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"Please enter a number: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [17 x i8] c"You entered %d.\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 ([24 x i8], [24 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 ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %5)
ret i32 0
}
int IsPowerOfTwo(int x) {
  if (x < 2)
    return 0;
  return !(x & (x - 1));
}


x86 assembly (clang, -O0):
<IsPowerOfTwo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    111d <IsPowerOfTwo+0x1d>
movl   $0x0,-0x4(%rbp)
jmp    1138 <IsPowerOfTwo+0x38>
mov    -0x8(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsPowerOfTwo>:
xor    %eax,%eax
cmp    $0x2,%edi
jl     1111 <IsPowerOfTwo+0x11>
lea    -0x1(%rdi),%ecx
xor    %eax,%eax
test   %ecx,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @IsPowerOfTwo(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp slt i32 %4, 2
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, i32* %2
br label %15
7: ; preds = %1
%8 = load i32, i32* %3
%9 = load i32, i32* %3
%10 = sub nsw i32 %9, 1
%11 = and i32 %8, %10
%12 = icmp ne i32 %11, 0
%13 = xor i1 %12, true
%14 = zext i1 %13 to i32
store i32 %14, i32* %2
br label %15
15: ; preds = %7, %6
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @IsPowerOfTwo(i32 %0) {
%2 = icmp slt i32 %0, 2
br i1 %2, label %7, label %3
3: ; preds = %1
%4 = tail call i32 @llvm.ctpop.i32(i32 %0)
%5 = icmp ult i32 %4, 2
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %1, %3
%8 = phi i32 [ %6, %3 ], [ 0, %1 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ test();
int main() {
  test();
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <test@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test()
ret i32 1
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test()
ret i32 1
}
SILC_TASK_CALLBACK(foo) {}


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

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

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

LLVM IR (-O2):
define i32 @SILC_TASK_CALLBACK(i32 %0) {
ret i32 undef
}
/* Variables and functions */
long odd(long);
long even(long x) {
  if (x == 0)
    return 1;
  return odd(x - 1);
}


x86 assembly (clang, -O0):
<even>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1134 <even+0x24>
movq   $0x1,-0x8(%rbp)
jmp    1145 <even+0x35>
mov    -0x10(%rbp),%rdi
sub    $0x1,%rdi
call   1030 <odd@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<even>:
test   %rdi,%rdi
je     111e <even+0xe>
add    $0xffffffffffffffff,%rdi
jmp    1030 <odd@plt>
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i64 @even(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %3
%4 = load i64, i64* %3
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i64 1, i64* %2
br label %11
7: ; preds = %1
%8 = load i64, i64* %3
%9 = sub nsw i64 %8, 1
%10 = call i64 @odd(i64 %9)
store i64 %10, i64* %2
br label %11
11: ; preds = %7, %6
%12 = load i64, i64* %2
ret i64 %12
}

LLVM IR (-O2):
define i64 @even(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = add nsw i64 %0, -1
%5 = tail call i64 @odd(i64 %4)
br label %6
6: ; preds = %1, %3
%7 = phi i64 [ %5, %3 ], [ 1, %1 ]
ret i64 %7
}
int main() {
  int id = 44;
  float gpa = 3.76;
  printf("Address of id is : %x\n", &id);
  printf("Address of gpa is: %x", &gpa);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2c,-0x8(%rbp)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x2c,0x4(%rsp)
movl   $0x4070a3d7,(%rsp)
lea    0xed9(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Address of id is : %x\0A\00"
@.str.1 = [22 x i8] c"Address of gpa is: %x\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 44, i32* %2
store float 0x400E147AE0000000, float* %3
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), float* %3)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Address of id is : %x\0A\00"
@.str.1 = [22 x i8] c"Address of gpa is: %x\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = bitcast i32* %1 to i8*
store i32 44, i32* %1
%4 = bitcast float* %2 to i8*
store float 0x400E147AE0000000, float* %2
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), float* %2)
ret i32 0
}
char *ffiPrintString(char *string) {
  ;
  return string;
}


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

x86 assembly (clang, -O2):
<ffiPrintString>:
mov    %rdi,%rax
ret

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

LLVM IR (-O2):
define i8* @ffiPrintString(i8* readnone returned %0) {
ret i8* %0
}
int is_LWS(const char ch) { return ch == '\n' || ch == ' ' || ch == '\t'; }


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

x86 assembly (clang, -O2):
<is_LWS>:
mov    $0x1,%eax
cmp    $0xa,%dil
je     1111 <is_LWS+0x11>
cmp    $0x20,%dil
jne    1112 <is_LWS+0x12>
ret
xor    %eax,%eax
cmp    $0x9,%dil
sete   %al
ret

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

LLVM IR (-O2):
define i32 @is_LWS(i8 signext %0) {
switch i8 %0, label %2 [
i8 32, label %5
i8 10, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 9
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ]
ret i32 %6
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
void bzero(void *s, size_t n) {
  uint8_t *p = s;
  for (size_t i = 0; i < n; i++) {
    p[i] = 0;
  }
}


x86 assembly (clang, -O0):
<bzero>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    114b <bzero+0x4b>
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    111c <bzero+0x1c>
pop    %rbp
ret

x86 assembly (clang, -O2):
<bzero>:
test   %rsi,%rsi
je     1128 <bzero+0x18>
push   %rax
mov    %rsi,%rdx
shl    $0x3,%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

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

LLVM IR (-O2):
define void @bzero(i8* nocapture writeonly %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = shl nuw i64 %1, 3
br label %6
6: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ KeccakP400_OverwriteBytes(void *, unsigned char const *,
                                             unsigned int, unsigned int);
void Ket_StateOverwrite(void *state, unsigned int offset,
                        const unsigned char *data, unsigned int length) {
  KeccakP400_OverwriteBytes(state, data, offset, length);
}


x86 assembly (clang, -O0):
<Ket_StateOverwrite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1030 <KeccakP400_OverwriteBytes@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Ket_StateOverwrite>:
mov    %esi,%eax
mov    %rdx,%rsi
mov    %eax,%edx
jmp    1030 <KeccakP400_OverwriteBytes@plt>

LLVM IR (-O0):
define void @Ket_StateOverwrite(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %5
%10 = load i8*, i8** %7
%11 = load i32, i32* %6
%12 = load i32, i32* %8
%13 = call i32 @KeccakP400_OverwriteBytes(i8* %9, i8* %10, i32 %11, i32 %12)
ret void
}

LLVM IR (-O2):
define void @Ket_StateOverwrite(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = tail call i32 @KeccakP400_OverwriteBytes(i8* %0, i8* %2, i32 %1, i32 %3)
ret void
}
int mysum(int a, int b) { return a + b; }


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

x86 assembly (clang, -O2):
<mysum>:
lea    (%rdi,%rsi,1),%eax
ret

LLVM IR (-O0):
define i32 @mysum(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = add nsw i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @mysum(i32 %0, i32 %1) {
%3 = add nsw i32 %1, %0
ret i32 %3
}
void input_device_write(unsigned int value) { (void)value; }


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

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

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

LLVM IR (-O2):
define void @input_device_write(i32 %0) {
ret void
}
char *test_hashmap_insert() {}


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

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

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

LLVM IR (-O2):
define noalias i8* @test_hashmap_insert() {
ret i8* undef
}
/* Variables and functions */
int exp(double);
int pow(double, int);
double blackbody(double nu, double T) {
  return 2e0 * 6.62618e-27 * pow(nu, 3e0) /
         (exp((6.62618e-27 * nu) / (1.381e-16 * T)) - 1e0) /
         ((2.997925e10) * (2.997925e10));
}


x86 assembly (clang, -O0):
<blackbody>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x3,%edi
call   1040 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xed3(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xeba(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  0xea5(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  -0x18(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
movsd  0xe7e(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xe66(%rip),%xmm1
divsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blackbody>:
sub    $0x18,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,(%rsp)
mov    $0x3,%edi
call   1040 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xeb8(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
mulsd  0xead(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xea7(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0xe97(%rip),%xmm1
movsd  0x10(%rsp),%xmm0
divsd  %xmm1,%xmm0
divsd  0xe8d(%rip),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @blackbody(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call i32 @pow(double %5, i32 3)
%7 = sitofp i32 %6 to double
%8 = fmul double 0x3A9067D72CC8E179, %7
%9 = load double, double* %3
%10 = fmul double 6.626180e-27, %9
%11 = load double, double* %4
%12 = fmul double 1.381000e-16, %11
%13 = fdiv double %10, %12
%14 = call i32 @exp(double %13)
%15 = sitofp i32 %14 to double
%16 = fsub double %15, 1.000000e+00
%17 = fdiv double %8, %16
%18 = fdiv double %17, 0x44485C5E5B24A389
ret double %18
}

LLVM IR (-O2):
define double @blackbody(double %0, double %1) {
%3 = tail call i32 @pow(double %0, i32 3)
%4 = sitofp i32 %3 to double
%5 = fmul double %4, 0x3A9067D72CC8E179
%6 = fmul double %0, 6.626180e-27
%7 = fmul double %1, 1.381000e-16
%8 = fdiv double %6, %7
%9 = tail call i32 @exp(double %8)
%10 = sitofp i32 %9 to double
%11 = fadd double %10, -1.000000e+00
%12 = fdiv double %5, %11
%13 = fdiv double %12, 0x44485C5E5B24A389
ret double %13
}
/* Variables and functions */
int dobldobl_Newton_step();
int dobldobl_sample_to_new_slices();
int dobldobl_witness_set_to_system_container();
int /*<<< orphan*/ printf(char *);
int solcon_write_dobldobl_solutions();
int swap_dobldobl_slices();
int dobldobl_track_paths(void) {
  int *a, *b, fail;
  double *c;
  fail = dobldobl_sample_to_new_slices();
  if (0 > 0)
    printf("Done tracking.\n");
  if (0 > 1)
    printf("Solutions computed :\n");
  if (0 > 1)
    fail = solcon_write_dobldobl_solutions();
  fail = swap_dobldobl_slices();
  fail = dobldobl_witness_set_to_system_container();
  fail = dobldobl_Newton_step();
  return fail;
}


x86 assembly (clang, -O0):
<dobldobl_track_paths>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1030 <dobldobl_sample_to_new_slices@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <swap_dobldobl_slices@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <dobldobl_witness_set_to_system_container@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1040 <dobldobl_Newton_step@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dobldobl_track_paths>:
push   %rax
xor    %eax,%eax
call   1030 <dobldobl_sample_to_new_slices@plt>
xor    %eax,%eax
call   1060 <swap_dobldobl_slices@plt>
xor    %eax,%eax
call   1050 <dobldobl_witness_set_to_system_container@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <dobldobl_Newton_step@plt>

LLVM IR (-O0):
define i32 @dobldobl_track_paths() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32
%4 = alloca double*
%5 = call i32 (...) @dobldobl_sample_to_new_slices()
store i32 %5, i32* %3
%6 = call i32 (...) @swap_dobldobl_slices()
store i32 %6, i32* %3
%7 = call i32 (...) @dobldobl_witness_set_to_system_container()
store i32 %7, i32* %3
%8 = call i32 (...) @dobldobl_Newton_step()
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @dobldobl_track_paths() {
%1 = tail call i32 (...) @dobldobl_sample_to_new_slices()
%2 = tail call i32 (...) @swap_dobldobl_slices()
%3 = tail call i32 (...) @dobldobl_witness_set_to_system_container()
%4 = tail call i32 (...) @dobldobl_Newton_step()
ret i32 %4
}
/* Type definitions */
struct grecs_node {
  int dummy;
};

/* Variables and functions */
struct grecs_node *grecs_node_from_path_locus(char const *, char const *,
                                              int /*<<< orphan*/ *,
                                              int /*<<< orphan*/ *);
struct grecs_node *grecs_node_from_path(const char *path, const char *value) {
  return grecs_node_from_path_locus(path, value, NULL, NULL);
}


x86 assembly (clang, -O0):
<grecs_node_from_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%ecx
mov    %rcx,%rdx
call   1030 <grecs_node_from_path_locus@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<grecs_node_from_path>:
xor    %edx,%edx
xor    %ecx,%ecx
jmp    1030 <grecs_node_from_path_locus@plt>

LLVM IR (-O0):
%struct.grecs_node = type { i32 }
define %struct.grecs_node* @grecs_node_from_path(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call %struct.grecs_node* @grecs_node_from_path_locus(i8* %5, i8* %6, i32* null, i32* null)
ret %struct.grecs_node* %7
}

LLVM IR (-O2):
%struct.grecs_node = type { i32 }
define %struct.grecs_node* @grecs_node_from_path(i8* %0, i8* %1) {
%3 = tail call %struct.grecs_node* @grecs_node_from_path_locus(i8* %0, i8* %1, i32* null, i32* null)
ret %struct.grecs_node* %3
}
/* Type definitions */
struct counter {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct counter *);
void dispose(struct counter *c) { free(c); }


x86 assembly (clang, -O0):
<dispose>:
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):
<dispose>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.counter = type { i32 }
define void @dispose(%struct.counter* %0) {
%2 = alloca %struct.counter*
store %struct.counter* %0, %struct.counter** %2
%3 = load %struct.counter*, %struct.counter** %2
%4 = call i32 @free(%struct.counter* %3)
ret void
}

LLVM IR (-O2):
%struct.counter = type { i32 }
define void @dispose(%struct.counter* nocapture %0) {
%2 = tail call i32 @free(%struct.counter* %0)
ret void
}
/* Type definitions */
struct vec3i {
  int dummy;
};
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ vec3i_max(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                             int /*<<< orphan*/ *);
__attribute__((always_)) struct vec3i *
psvec3i_max(struct vec3i *result, struct vec3i *a, struct vec3i *b) {
  vec3i_max((int32_t *)result, (int32_t *)a, (int32_t *)b);
  return result;
}


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

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

LLVM IR (-O0):
%struct.vec3i = type { i32 }
define %struct.vec3i* @psvec3i_max(%struct.vec3i* %0, %struct.vec3i* %1, %struct.vec3i* %2) {
%4 = alloca %struct.vec3i*
%5 = alloca %struct.vec3i*
%6 = alloca %struct.vec3i*
store %struct.vec3i* %0, %struct.vec3i** %4
store %struct.vec3i* %1, %struct.vec3i** %5
store %struct.vec3i* %2, %struct.vec3i** %6
%7 = load %struct.vec3i*, %struct.vec3i** %4
%8 = bitcast %struct.vec3i* %7 to i32*
%9 = load %struct.vec3i*, %struct.vec3i** %5
%10 = bitcast %struct.vec3i* %9 to i32*
%11 = load %struct.vec3i*, %struct.vec3i** %6
%12 = bitcast %struct.vec3i* %11 to i32*
%13 = call i32 @vec3i_max(i32* %8, i32* %10, i32* %12)
%14 = load %struct.vec3i*, %struct.vec3i** %4
ret %struct.vec3i* %14
}

LLVM IR (-O2):
%struct.vec3i = type { i32 }
define %struct.vec3i* @psvec3i_max(%struct.vec3i* returned %0, %struct.vec3i* %1, %struct.vec3i* %2) {
%4 = getelementptr %struct.vec3i, %struct.vec3i* %0, i64 0, i32 0
%5 = getelementptr %struct.vec3i, %struct.vec3i* %1, i64 0, i32 0
%6 = getelementptr %struct.vec3i, %struct.vec3i* %2, i64 0, i32 0
%7 = tail call i32 @vec3i_max(i32* %4, i32* %5, i32* %6)
ret %struct.vec3i* %0
}
/* Variables and functions */
int /*<<< orphan*/ japi_setborderpos(int, int);
void j_setborderpos(int arg0, int arg1) { japi_setborderpos(arg0, arg1); }


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

x86 assembly (clang, -O2):
<j_setborderpos>:
jmp    1030 <japi_setborderpos@plt>

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

LLVM IR (-O2):
define void @j_setborderpos(i32 %0, i32 %1) {
%3 = tail call i32 @japi_setborderpos(i32 %0, i32 %1)
ret void
}
/* Type definitions */
struct ct_report_producer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct ct_report_producer *);
void ct_destroy_default_report_producer(struct ct_report_producer *producer) {
  free(producer);
}


x86 assembly (clang, -O0):
<ct_destroy_default_report_producer>:
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):
<ct_destroy_default_report_producer>:
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.ct_report_producer = type { i32 }
define void @ct_destroy_default_report_producer(%struct.ct_report_producer* %0) {
%2 = alloca %struct.ct_report_producer*
store %struct.ct_report_producer* %0, %struct.ct_report_producer** %2
%3 = load %struct.ct_report_producer*, %struct.ct_report_producer** %2
%4 = call i32 @free(%struct.ct_report_producer* %3)
ret void
}

LLVM IR (-O2):
%struct.ct_report_producer = type { i32 }
define void @ct_destroy_default_report_producer(%struct.ct_report_producer* nocapture %0) {
%2 = tail call i32 @free(%struct.ct_report_producer* %0)
ret void
}
int main() { ((int (*)(int a))1)(1); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
mov    $0x1,%eax
call   *%rax
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 inttoptr (i64 1 to i32 (i32)*)(i32 1)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 inttoptr (i64 1 to i32 (i32)*)(i32 1)
ret i32 0
}
/* Variables and functions */
int fac_tailrec(int, unsigned int);
unsigned fac(unsigned n) { return fac_tailrec(1, n); }


x86 assembly (clang, -O0):
<fac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x1,%edi
call   1030 <fac_tailrec@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fac>:
mov    %edi,%esi
mov    $0x1,%edi
jmp    1030 <fac_tailrec@plt>

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

LLVM IR (-O2):
define i32 @fac(i32 %0) {
%2 = tail call i32 @fac_tailrec(i32 1, i32 %0)
ret i32 %2
}
int sub(int a, int b) { return 0; }


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

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

LLVM IR (-O0):
define i32 @sub(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 @sub(i32 %0, i32 %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ nlopt_set_stochastic_population(int const);
void nlossp(const int *pop) { nlopt_set_stochastic_population(*pop); }


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

x86 assembly (clang, -O2):
<nlossp>:
mov    (%rdi),%edi
jmp    1030 <nlopt_set_stochastic_population@plt>

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

LLVM IR (-O2):
define void @nlossp(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @nlopt_set_stochastic_population(i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ aa_la_inverse3x3_(double const *, double *);
void aa_la_inverse3x3(const double R[9], double S[9]) {
  aa_la_inverse3x3_(R, S);
}


x86 assembly (clang, -O0):
<aa_la_inverse3x3>:
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 <aa_la_inverse3x3_@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aa_la_inverse3x3>:
jmp    1030 <aa_la_inverse3x3_@plt>

LLVM IR (-O0):
define void @aa_la_inverse3x3(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = load double*, double** %4
%7 = call i32 @aa_la_inverse3x3_(double* %5, double* %6)
ret void
}

LLVM IR (-O2):
define void @aa_la_inverse3x3(double* %0, double* %1) {
%3 = tail call i32 @aa_la_inverse3x3_(double* %0, double* %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *const);
void feed_main_descriptor_cleanup(void *const p_placement) {
  free(p_placement);
}


x86 assembly (clang, -O0):
<feed_main_descriptor_cleanup>:
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):
<feed_main_descriptor_cleanup>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @feed_main_descriptor_cleanup(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 @feed_main_descriptor_cleanup(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ lda();
int /*<<< orphan*/ ldx();
void lax() {
  lda();
  ldx();
}


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

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

LLVM IR (-O0):
define void @lax() {
%1 = call i32 (...) @lda()
%2 = call i32 (...) @ldx()
ret void
}

LLVM IR (-O2):
define void @lax() {
%1 = tail call i32 (...) @lda()
%2 = tail call i32 (...) @ldx()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(unsigned int, int /*<<< orphan*/ *);
void writeword(unsigned int i, FILE *fp) {
  fputc(i % 256, fp);
  fputc(i / 256, fp);
}


x86 assembly (clang, -O0):
<writeword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%edi
and    $0xff,%edi
mov    -0x10(%rbp),%rsi
call   1030 <fputc@plt>
mov    -0x4(%rbp),%edi
shr    $0x8,%edi
mov    -0x10(%rbp),%rsi
call   1030 <fputc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeword>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
movzbl %bpl,%edi
call   1030 <fputc@plt>
shr    $0x8,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <fputc@plt>

LLVM IR (-O0):
define void @writeword(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%5 = load i32, i32* %3
%6 = urem i32 %5, 256
%7 = load i32*, i32** %4
%8 = call i32 @fputc(i32 %6, i32* %7)
%9 = load i32, i32* %3
%10 = udiv i32 %9, 256
%11 = load i32*, i32** %4
%12 = call i32 @fputc(i32 %10, i32* %11)
ret void
}

LLVM IR (-O2):
define void @writeword(i32 %0, i32* nocapture %1) {
%3 = and i32 %0, 255
%4 = tail call i32 @fputc(i32 %3, i32* %1)
%5 = lshr i32 %0, 8
%6 = tail call i32 @fputc(i32 %5, i32* %1)
ret void
}
/* Variables and functions */
float sqrt(float);
double impfunc(float intensity, float domega) {
  float w;
  float mindomega = 0.01;
  domega = (domega > mindomega) ? mindomega : domega;
  w = sqrt(domega);
  w = sqrt(w);
  return intensity * w;
}


x86 assembly (clang, -O0):
<impfunc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  0xed6(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    114d <impfunc+0x3d>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    1157 <impfunc+0x47>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
call   1030 <sqrt@plt>
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
call   1030 <sqrt@plt>
movss  %xmm0,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<impfunc>:
push   %rax
movss  %xmm0,0x4(%rsp)
movss  0xee1(%rip),%xmm0
minss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     113b <impfunc+0x2b>
sqrtss %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jae    1148 <impfunc+0x38>
call   1030 <sqrt@plt>
jmp    114c <impfunc+0x3c>
call   1030 <sqrt@plt>
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1134 <impfunc+0x24>
sqrtss %xmm0,%xmm0
mulss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @impfunc(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %3
store float %1, float* %4
store float 0x3F847AE140000000, float* %6
%7 = load float, float* %4
%8 = load float, float* %6
%9 = fcmp ogt float %7, %8
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load float, float* %6
br label %14
12: ; preds = %2
%13 = load float, float* %4
br label %14
14: ; preds = %12, %10
%15 = phi float [ %11, %10 ], [ %13, %12 ]
store float %15, float* %4
%16 = load float, float* %4
%17 = call float @sqrt(float %16)
store float %17, float* %5
%18 = load float, float* %5
%19 = call float @sqrt(float %18)
store float %19, float* %5
%20 = load float, float* %3
%21 = load float, float* %5
%22 = fmul float %20, %21
%23 = fpext float %22 to double
ret double %23
}

LLVM IR (-O2):
define double @impfunc(float %0, float %1) {
%3 = fcmp ogt float %1, 0x3F847AE140000000
%4 = select i1 %3, float 0x3F847AE140000000, float %1
%5 = tail call float @sqrt(float %4)
%6 = tail call float @sqrt(float %5)
%7 = fmul float %6, %0
%8 = fpext float %7 to double
ret double %8
}