xunge/DecIR huggingface dataset:
/* Variables and functions */
int Add(int, int);
double Sub(int, int);
int /*<<< orphan*/ printf(char *, int, int, double);
int main() {
  int i, j, k;
  double dk;
  i = 10;
  j = 13;
  k = Add(i, j);
  printf("%d + %d = %d\n", i, j, k);
  dk = Sub(i, j);
  printf("%d - %d = %f\n", i, j, dk);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0xd,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <Add@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
cvtsi2sdl -0x10(%rbp),%xmm0
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <Sub@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
movsd  -0x18(%rbp),%xmm0
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
mov    $0xd,%esi
call   1050 <Add@plt>
cvtsi2sd %eax,%xmm0
lea    0xeb5(%rip),%rdi
mov    $0xa,%esi
mov    $0xd,%edx
call   1030 <printf@plt>
mov    $0xa,%edi
mov    $0xd,%esi
call   1040 <Sub@plt>
lea    0xe9e(%rip),%rdi
mov    $0xa,%esi
mov    $0xd,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"%d + %d = %d\0A\00"
@.str.1 = [14 x i8] c"%d - %d = %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
store i32 0, i32* %1
store i32 10, i32* %2
store i32 13, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = call i32 @Add(i32 %6, i32 %7)
store i32 %8, i32* %4
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = sitofp i32 %11 to double
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %10, double %12)
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = call double @Sub(i32 %14, i32 %15)
store double %16, double* %5
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = load double, double* %5
%20 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 %17, i32 %18, double %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"%d + %d = %d\0A\00"
@.str.1 = [14 x i8] c"%d - %d = %f\0A\00"
define i32 @main() {
%1 = tail call i32 @Add(i32 10, i32 13)
%2 = sitofp i32 %1 to double
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 10, i32 13, double %2)
%4 = tail call double @Sub(i32 10, i32 13)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 10, i32 13, double %4)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ GENERAL_NAMES;

/* Variables and functions */
scalar_t__ ASN1_item_new(int /*<<< orphan*/ *);
int /*<<< orphan*/ GENERAL_NAMES_it;
GENERAL_NAMES *GENERAL_NAMES_new(void) {
  return (GENERAL_NAMES *)ASN1_item_new(&GENERAL_NAMES_it);
}


x86 assembly (clang, -O0):
<GENERAL_NAMES_new>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rdi
call   1030 <ASN1_item_new@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<GENERAL_NAMES_new>:
mov    0x2ec9(%rip),%rdi
jmp    1030 <ASN1_item_new@plt>

LLVM IR (-O0):
@GENERAL_NAMES_it = global i32 0
define i32* @GENERAL_NAMES_new() {
%1 = call i64 @ASN1_item_new(i32* @GENERAL_NAMES_it)
%2 = inttoptr i64 %1 to i32*
ret i32* %2
}

LLVM IR (-O2):
@GENERAL_NAMES_it = global i32 0
define i32* @GENERAL_NAMES_new() {
%1 = tail call i64 @ASN1_item_new(i32* @GENERAL_NAMES_it)
%2 = inttoptr i64 %1 to i32*
ret i32* %2
}
/* Variables and functions */
int block_set(void *, char const *, char const *);
int bar_click_copy_cb(const char *key, const char *value, void *data) {
  return block_set(data, key, value);
}


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

x86 assembly (clang, -O2):
<bar_click_copy_cb>:
mov    %rdx,%rax
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    %rax,%rdi
jmp    1030 <block_set@plt>

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

LLVM IR (-O2):
define i32 @bar_click_copy_cb(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 @block_set(i8* %2, i8* %0, i8* %1)
ret i32 %4
}
/* Type definitions */
struct rx_hash_rules {
  int dummy;
};
struct rx_hash {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(char *);
void default_free_hash(struct rx_hash *tab, struct rx_hash_rules *rules) {
  free((char *)tab);
}


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

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

LLVM IR (-O0):
%struct.rx_hash = type { i32 }
%struct.rx_hash_rules = type { i32 }
define void @default_free_hash(%struct.rx_hash* %0, %struct.rx_hash_rules* %1) {
%3 = alloca %struct.rx_hash*
%4 = alloca %struct.rx_hash_rules*
store %struct.rx_hash* %0, %struct.rx_hash** %3
store %struct.rx_hash_rules* %1, %struct.rx_hash_rules** %4
%5 = load %struct.rx_hash*, %struct.rx_hash** %3
%6 = bitcast %struct.rx_hash* %5 to i8*
%7 = call i32 @free(i8* %6)
ret void
}

LLVM IR (-O2):
%struct.rx_hash = type { i32 }
%struct.rx_hash_rules = type { i32 }
define void @default_free_hash(%struct.rx_hash* nocapture %0, %struct.rx_hash_rules* nocapture readnone %1) {
%3 = bitcast %struct.rx_hash* %0 to i8*
%4 = tail call i32 @free(i8* %3)
ret void
}
printable(c) { return (c > 040 && c < 0177); }


x86 assembly (clang, -O0):
<printable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1120 <printable+0x20>
cmpl   $0x7f,-0x4(%rbp)
setl   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<printable>:
add    $0xffffffdf,%edi
xor    %eax,%eax
cmp    $0x5e,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @printable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 32
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 127
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @printable(i32 %0) {
%2 = add i32 %0, -33
%3 = icmp ult i32 %2, 94
%4 = zext i1 %3 to i32
ret i32 %4
}
int test_imm_54uint16_mem(unsigned short *val) {
  return ((*val) & (-0x54 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_54uint16_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzwl (%rax),%edx
and    $0xffffffac,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_54uint16_mem>:
movzwl (%rdi),%eax
test   $0xffac,%eax
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_54uint16_mem(i16* %0) {
%2 = alloca i16*
store i16* %0, i16** %2
%3 = load i16*, i16** %2
%4 = load i16, i16* %3
%5 = zext i16 %4 to i32
%6 = and i32 %5, -84
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_54uint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, -84
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
__attribute__((always_)) void insb(int port, void *addr, unsigned long count) {
  __asm__ __volatile__("rep; ins"
                       "b"
                       : "+D"(addr), "+c"(count)
                       : "d"(port));
}


x86 assembly (clang, -O0):
<insb>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    -0x4(%rbp),%edx
rep insb (%dx),%es:(%rdi)
mov    %rdi,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<insb>:
mov    %rdx,%rcx
mov    %edi,%edx
mov    %rsi,%rdi
rep insb (%dx),%es:(%rdi)
ret

LLVM IR (-O0):
define void @insb(i32 %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
store i32 %0, i32* %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %5
%8 = load i64, i64* %6
%9 = load i32, i32* %4
%10 = call { i8*, i64 } asm sideeffect "rep; insb", "={di},={cx},{dx},0,1,~{dirflag},~{fpsr},~{flags}"(i32 %9, i8* %7, i64 %8)
%11 = extractvalue { i8*, i64 } %10, 0
%12 = extractvalue { i8*, i64 } %10, 1
store i8* %11, i8** %5
store i64 %12, i64* %6
ret void
}

LLVM IR (-O2):
define void @insb(i32 %0, i8* %1, i64 %2) {
%4 = tail call { i8*, i64 } asm sideeffect "rep; insb", "={di},={cx},{dx},0,1,~{dirflag},~{fpsr},~{flags}"(i32 %0, i8* %1, i64 %2)
ret void
}
/* Variables and functions */
size_t strlen(char *);
void advance(char **buffer, size_t *buffer_size) {
  const size_t increment = strlen(*buffer);
  *buffer += increment;
  *buffer_size -= increment;
}


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

x86 assembly (clang, -O2):
<advance>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    (%rdi),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
add    %rax,%rbx
mov    %rbx,(%r15)
sub    %rax,(%r14)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @advance(i8** %0, i64* %1) {
%3 = alloca i8**
%4 = alloca i64*
%5 = alloca i64
store i8** %0, i8*** %3
store i64* %1, i64** %4
%6 = load i8**, i8*** %3
%7 = load i8*, i8** %6
%8 = call i64 @strlen(i8* %7)
store i64 %8, i64* %5
%9 = load i64, i64* %5
%10 = load i8**, i8*** %3
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8, i8* %11, i64 %9
store i8* %12, i8** %10
%13 = load i64, i64* %5
%14 = load i64*, i64** %4
%15 = load i64, i64* %14
%16 = sub i64 %15, %13
store i64 %16, i64* %14
ret void
}

LLVM IR (-O2):
define void @advance(i8** nocapture %0, i64* nocapture %1) {
%3 = load i8*, i8** %0
%4 = tail call i64 @strlen(i8* dereferenceable(1) %3)
%5 = getelementptr inbounds i8, i8* %3, i64 %4
store i8* %5, i8** %0
%6 = load i64, i64* %1
%7 = sub i64 %6, %4
store i64 %7, i64* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_cos();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  do {
    printf("%s:%d ",
           "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
           "2022-01-22/02-19-57/repos/fengbohello/practice/refs/heads/master/"
           "clang/posix/cos.c",
           52);
    printf("cos:");
    printf("\n");
  } while (0);
  print_cos();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xec8(%rip),%rsi
mov    $0x34,%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf48(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <print_cos@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%s:%d \00"
@.str.1 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fengbohello/practice/refs/heads/master/clang/posix/cos.c\00"
@.str.2 = [5 x i8] c"cos:\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.1, i64 0, i64 0), i32 52)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %6
6: ; preds = %2
%7 = call i32 (...) @print_cos()
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s:%d \00"
@.str.1 = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fengbohello/practice/refs/heads/master/clang/posix/cos.c\00"
@.str.2 = [5 x i8] c"cos:\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str.1, i64 0, i64 0), i32 52)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 (...) @print_cos()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ DEBUG_ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ UARTBaseValid(unsigned long);
void UARTEnable(unsigned long ulBase) {
  DEBUG_ASSERT(UARTBaseValid(ulBase));
  (*((volatile unsigned long *)(ulBase + 0x0000002C))) |= 0x00000010;
  (*((volatile unsigned long *)(ulBase + 0x00000030))) |=
      (0x00000001 | 0x00000100 | 0x00000200);
}


x86 assembly (clang, -O0):
<UARTEnable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <UARTBaseValid@plt>
mov    %eax,%edi
call   1030 <DEBUG_ASSERT@plt>
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%rcx
or     $0x10,%rcx
mov    %rcx,0x2c(%rax)
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%rcx
or     $0x301,%rcx
mov    %rcx,0x30(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UARTEnable>:
push   %rbx
mov    %rdi,%rbx
call   1040 <UARTBaseValid@plt>
mov    %eax,%edi
call   1030 <DEBUG_ASSERT@plt>
orq    $0x10,0x2c(%rbx)
orq    $0x301,0x30(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @UARTEnable(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @UARTBaseValid(i64 %3)
%5 = call i32 @DEBUG_ASSERT(i32 %4)
%6 = load i64, i64* %2
%7 = add i64 %6, 44
%8 = inttoptr i64 %7 to i64*
%9 = load volatile i64, i64* %8
%10 = or i64 %9, 16
store volatile i64 %10, i64* %8
%11 = load i64, i64* %2
%12 = add i64 %11, 48
%13 = inttoptr i64 %12 to i64*
%14 = load volatile i64, i64* %13
%15 = or i64 %14, 769
store volatile i64 %15, i64* %13
ret void
}

LLVM IR (-O2):
define void @UARTEnable(i64 %0) {
%2 = tail call i32 @UARTBaseValid(i64 %0)
%3 = tail call i32 @DEBUG_ASSERT(i32 %2)
%4 = add i64 %0, 44
%5 = inttoptr i64 %4 to i64*
%6 = load volatile i64, i64* %5
%7 = or i64 %6, 16
store volatile i64 %7, i64* %5
%8 = add i64 %0, 48
%9 = inttoptr i64 %8 to i64*
%10 = load volatile i64, i64* %9
%11 = or i64 %10, 769
store volatile i64 %11, i64* %9
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void eat(int positionOfP) { printf("Philosopher %d eats\n", positionOfP); }


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

x86 assembly (clang, -O2):
<eat>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Philosopher %d eats\0A\00"
define void @eat(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Philosopher %d eats\0A\00"
define void @eat(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
void gtk_menu_set_active() {}


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

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

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

LLVM IR (-O2):
define void @gtk_menu_set_active() {
ret void
}
double flnot(double a) { return !a; }


x86 assembly (clang, -O0):
<flnot>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
setne  %al
setp   %cl
or     %cl,%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cvtsi2sd %eax,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<flnot>:
xorpd  %xmm1,%xmm1
cmpeqsd %xmm1,%xmm0
movsd  0xeef(%rip),%xmm1
andpd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @flnot(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp une double %3, 0.000000e+00
%5 = xor i1 %4, true
%6 = zext i1 %5 to i32
%7 = sitofp i32 %6 to double
ret double %7
}

LLVM IR (-O2):
define double @flnot(double %0) {
%2 = fcmp oeq double %0, 0.000000e+00
%3 = uitofp i1 %2 to double
ret double %3
}
int max(int first, int second) { return first > second ? first : second; }


x86 assembly (clang, -O0):
<max>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1121 <max+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <max+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<max>:
mov    %esi,%eax
cmp    %esi,%edi
cmovg  %edi,%eax
ret

LLVM IR (-O0):
define i32 @max(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 = icmp sgt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @max(i32 %0, i32 %1) {
%3 = icmp sgt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void print_usage() {
  fprintf(stderr,
          "Usage: rabinfingerprint -o binary output file -w window size -a "
          "average block size -m minimum block size -x maximum block size \n");
  fprintf(stderr, "Window size must be between %u and %u\n", 17, 63);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%edi
lea    0xf46(%rip),%rsi
mov    $0x11,%edx
mov    $0x3f,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf50(%rip),%rsi
mov    $0x11,%edx
mov    $0x3f,%ecx
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [129 x i8] c"Usage: rabinfingerprint -o binary output file -w window size -a average block size -m minimum block size -x maximum block size \0A\00"
@.str.1 = [39 x i8] c"Window size must be between %u and %u\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 63)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [129 x i8] c"Usage: rabinfingerprint -o binary output file -w window size -a average block size -m minimum block size -x maximum block size \0A\00"
@.str.1 = [39 x i8] c"Window size must be between %u and %u\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 17, i32 63)
ret void
}
void RTTestIPassed(void) {}


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

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

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

LLVM IR (-O2):
define void @RTTestIPassed() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int main() {
  char *escapedString = "The \"use\" of quotations causes difficulties. \\n, "
                        "\\t and \\ are also special characters.";
  printf("%s\n", escapedString);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [87 x i8] c"The \22use\22 of quotations causes difficulties. \\n, \\t and \\ are also special characters.\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
ret i32 0
}

LLVM IR (-O2):
@.str = [87 x i8] c"The \22use\22 of quotations causes difficulties. \\n, \\t and \\ are also special characters.\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
struct ansiseq {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ screen_go(int, int /*<<< orphan*/);
void termop_curright(struct ansiseq *s) { screen_go(1, 0); }


x86 assembly (clang, -O0):
<termop_curright>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <screen_go@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.ansiseq = type { i32 }
define void @termop_curright(%struct.ansiseq* %0) {
%2 = alloca %struct.ansiseq*
store %struct.ansiseq* %0, %struct.ansiseq** %2
%3 = call i32 @screen_go(i32 1, i32 0)
ret void
}

LLVM IR (-O2):
%struct.ansiseq = type { i32 }
define void @termop_curright(%struct.ansiseq* nocapture readnone %0) {
%2 = tail call i32 @screen_go(i32 1, i32 0)
ret void
}
int pcie_pme_platform_notify(struct pcie_device *srv) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.pcie_device = type opaque
define i32 @pcie_pme_platform_notify(%struct.pcie_device* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
unsigned long long parse(char *, char *);
unsigned long long parse2(char *s, char *match1, char *match2) {
  char match[3];
  match[0] = *match1;
  match[1] = *match2;
  match[2] = '\0';
  return parse(s, match);
}


x86 assembly (clang, -O0):
<parse2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x1b(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x1a(%rbp)
movb   $0x0,-0x19(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x1b(%rbp),%rsi
call   1030 <parse@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse2>:
push   %rax
mov    (%rsi),%al
mov    %al,0x5(%rsp)
mov    (%rdx),%al
mov    %al,0x6(%rsp)
movb   $0x0,0x7(%rsp)
lea    0x5(%rsp),%rsi
call   1030 <parse@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i64 @parse2(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [3 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%8 = load i8*, i8** %5
%9 = load i8, i8* %8
%10 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
store i8 %9, i8* %10
%11 = load i8*, i8** %6
%12 = load i8, i8* %11
%13 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 1
store i8 %12, i8* %13
%14 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 2
store i8 0, i8* %14
%15 = load i8*, i8** %4
%16 = getelementptr inbounds [3 x i8], [3 x i8]* %7, i64 0, i64 0
%17 = call i64 @parse(i8* %15, i8* %16)
ret i64 %17
}

LLVM IR (-O2):
define i64 @parse2(i8* %0, i8* nocapture %1, i8* nocapture %2) {
%4 = alloca [3 x i8]
%5 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%6 = load i8, i8* %1
store i8 %6, i8* %5
%7 = load i8, i8* %2
%8 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 1
store i8 %7, i8* %8
%9 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 2
store i8 0, i8* %9
%10 = call i64 @parse(i8* %0, i8* %5)
ret i64 %10
}
/* Variables and functions */
int /*<<< orphan*/ io_program_out(int, int);
void pic14_bulk_erase_setup1(void) { io_program_out(0x01, 6); }


x86 assembly (clang, -O0):
<pic14_bulk_erase_setup1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
mov    $0x6,%esi
call   1030 <io_program_out@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @pic14_bulk_erase_setup1() {
%1 = call i32 @io_program_out(i32 1, i32 6)
ret void
}

LLVM IR (-O2):
define void @pic14_bulk_erase_setup1() {
%1 = tail call i32 @io_program_out(i32 1, i32 6)
ret void
}
/* Variables and functions */
int getsockname(int, void *, void *);
int idrnet_getsockname(int sockfd, void *address, void *len) {
  int res = getsockname(sockfd, address, len);
  if (res != 0) {
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<idrnet_getsockname>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <getsockname@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     114c <idrnet_getsockname+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1153 <idrnet_getsockname+0x43>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<idrnet_getsockname>:
push   %rax
call   1030 <getsockname@plt>
neg    %eax
sbb    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @idrnet_getsockname(i32 %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i32 %0, i32* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
%9 = load i32, i32* %5
%10 = load i8*, i8** %6
%11 = load i8*, i8** %7
%12 = call i32 @getsockname(i32 %9, i8* %10, i8* %11)
store i32 %12, i32* %8
%13 = load i32, i32* %8
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 -1, i32* %4
br label %17
16: ; preds = %3
store i32 0, i32* %4
br label %17
17: ; preds = %16, %15
%18 = load i32, i32* %4
ret i32 %18
}

LLVM IR (-O2):
define i32 @idrnet_getsockname(i32 %0, i8* %1, i8* %2) {
%4 = tail call i32 @getsockname(i32 %0, i8* %1, i8* %2)
%5 = icmp ne i32 %4, 0
%6 = sext i1 %5 to i32
ret i32 %6
}
void problem2() {}


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

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

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

LLVM IR (-O2):
define void @problem2() {
ret void
}
/* Variables and functions */
double M_PI_2;
double cos(double);
double JHKeyframeAnimationFunctionEaseInSine(double t, double b, double c,
                                             double d) {
  return -c * cos(t / d * (M_PI_2)) + c + b;
}


x86 assembly (clang, -O0):
<JHKeyframeAnimationFunctionEaseInSine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
mov    0x2e8a(%rip),%rax
mulsd  (%rax),%xmm0
call   1030 <cos@plt>
movaps %xmm0,%xmm2
movsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x10(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<JHKeyframeAnimationFunctionEaseInSine>:
sub    $0x18,%rsp
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
divsd  %xmm3,%xmm0
mov    0x2ebd(%rip),%rax
mulsd  (%rax),%xmm0
call   1030 <cos@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
subsd  %xmm0,%xmm1
addsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
@M_PI_2 = global double 0.000000e+00
define double @JHKeyframeAnimationFunctionEaseInSine(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %7
%10 = fneg double %9
%11 = load double, double* %5
%12 = load double, double* %8
%13 = fdiv double %11, %12
%14 = load double, double* @M_PI_2
%15 = fmul double %13, %14
%16 = call double @cos(double %15)
%17 = load double, double* %7
%18 = call double @llvm.fmuladd.f64(double %10, double %16, double %17)
%19 = load double, double* %6
%20 = fadd double %18, %19
ret double %20
}

LLVM IR (-O2):
@M_PI_2 = global double 0.000000e+00
define double @JHKeyframeAnimationFunctionEaseInSine(double %0, double %1, double %2, double %3) {
%5 = fneg double %2
%6 = fdiv double %0, %3
%7 = load double, double* @M_PI_2
%8 = fmul double %6, %7
%9 = tail call double @cos(double %8)
%10 = tail call double @llvm.fmuladd.f64(double %5, double %9, double %2)
%11 = fadd double %10, %1
ret double %11
}
/* Variables and functions */
scalar_t__ ccnl_ndntlv_dehead(unsigned char **, int *, int *, int *);
int ndntlv_isData(unsigned char *buf, int len) {
  int typ;
  int vallen;
  if (len < 0 || ccnl_ndntlv_dehead(&buf, &len, &typ, &vallen))
    return -1;
  if (typ != 0x06)
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<ndntlv_isData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     1148 <ndntlv_isData+0x38>
lea    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
call   1030 <ccnl_ndntlv_dehead@plt>
cmp    $0x0,%rax
je     1154 <ndntlv_isData+0x44>
movl   $0xffffffff,-0x4(%rbp)
jmp    1171 <ndntlv_isData+0x61>
cmpl   $0x6,-0x18(%rbp)
je     116a <ndntlv_isData+0x5a>
movl   $0x0,-0x4(%rbp)
jmp    1171 <ndntlv_isData+0x61>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ndntlv_isData>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,0x10(%rsp)
mov    %esi,0xc(%rsp)
mov    $0xffffffff,%ebx
test   %esi,%esi
js     114f <ndntlv_isData+0x3f>
lea    0x10(%rsp),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x1c(%rsp),%rcx
call   1030 <ccnl_ndntlv_dehead@plt>
test   %rax,%rax
jne    114f <ndntlv_isData+0x3f>
xor    %ebx,%ebx
cmpl   $0x6,0x8(%rsp)
sete   %bl
mov    %ebx,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @ndntlv_isData(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%7 = bitcast i32* %5 to i8*
%8 = bitcast i32* %6 to i8*
%9 = icmp slt i32 %1, 0
br i1 %9, label %17, label %10
10: ; preds = %2
%11 = call i64 @ccnl_ndntlv_dehead(i8** %3, i32* %4, i32* %5, i32* %6)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, i32* %5
%15 = icmp eq i32 %14, 6
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %13, %2, %10
%18 = phi i32 [ -1, %10 ], [ -1, %2 ], [ %16, %13 ]
ret i32 %18
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/
nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3(
    int /*<<< orphan*/ *, int /*<<< orphan*/ *);
extern void
nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3_sse41(
    __m128i *in, __m128i *out) {
  nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3(
      in, out);
}


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

x86 assembly (clang, -O2):
<nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3_sse41>:
jmp    1030 <nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3@plt>

LLVM IR (-O0):
define void @nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3_sse41(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 @nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3(i32* %5, i32* %6)
ret void
}

LLVM IR (-O2):
define void @nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3_sse41(i32* %0, i32* %1) {
%3 = tail call i32 @nnb_upsample_n_convert_10bit_y_uv_vectors_to_8bit_rgb_vectors_bt709_sse2_ssse3(i32* %0, i32* %1)
ret void
}
int config_READER_GRIFFIN(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @config_READER_GRIFFIN() {
ret i32 0
}
/* Type definitions */
struct snmp_session {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ snmp_error(struct snmp_session *, int /*<<< orphan*/,
                              int /*<<< orphan*/, char **);
int /*<<< orphan*/ snmp_log(int, char *, char const *, char *);
void snmp_sess_perror(const char *prog_string, struct snmp_session *ss) {
  char *err;
  snmp_error(ss, 0, 0, &err);
  snmp_log(3, "%s: %s\n", prog_string, err);
  free(err);
}


x86 assembly (clang, -O0):
<snmp_sess_perror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %edx,%edx
lea    -0x18(%rbp),%rcx
mov    %edx,%esi
call   1050 <snmp_error@plt>
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x3,%edi
lea    0xe9b(%rip),%rsi
call   1040 <snmp_log@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<snmp_sess_perror>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0x8(%rsp),%rcx
mov    %rsi,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1050 <snmp_error@plt>
mov    0x8(%rsp),%rcx
lea    0xeab(%rip),%rsi
mov    $0x3,%edi
mov    %rbx,%rdx
call   1040 <snmp_log@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.snmp_session = type { i32 }
@.str = [8 x i8] c"%s: %s\0A\00"
define void @snmp_sess_perror(i8* %0, %struct.snmp_session* %1) {
%3 = alloca i8*
%4 = alloca %struct.snmp_session*
%5 = alloca i8*
store i8* %0, i8** %3
store %struct.snmp_session* %1, %struct.snmp_session** %4
%6 = load %struct.snmp_session*, %struct.snmp_session** %4
%7 = call i32 @snmp_error(%struct.snmp_session* %6, i32 0, i32 0, i8** %5)
%8 = load i8*, i8** %3
%9 = load i8*, i8** %5
%10 = call i32 @snmp_log(i32 3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9)
%11 = load i8*, i8** %5
%12 = call i32 @free(i8* %11)
ret void
}

LLVM IR (-O2):
%struct.snmp_session = type { i32 }
@.str = [8 x i8] c"%s: %s\0A\00"
define void @snmp_sess_perror(i8* %0, %struct.snmp_session* %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
%5 = call i32 @snmp_error(%struct.snmp_session* %1, i32 0, i32 0, i8** %3)
%6 = load i8*, i8** %3
%7 = call i32 @snmp_log(i32 3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %6)
%8 = load i8*, i8** %3
%9 = call i32 @free(i8* %8)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;
typedef int ssize_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ vfprintf(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
void vfindentf(FILE *fd, int depth, char *fmt, va_list ap) {
  ssize_t i;
  for (i = 0; i < depth; i++)
    fprintf(fd, "\t");
  vfprintf(fd, fmt, ap);
}


x86 assembly (clang, -O0):
<vfindentf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1167 <vfindentf+0x47>
mov    -0x8(%rbp),%rdi
lea    0xeac(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    113d <vfindentf+0x1d>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1040 <vfprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vfindentf>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rdi,%rbp
test   %esi,%esi
jle    1152 <vfindentf+0x32>
mov    %esi,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    $0x9,%edi
mov    %rbp,%rsi
call   1030 <fputc@plt>
add    $0xffffffff,%ebx
jne    1140 <vfindentf+0x20>
mov    %rbp,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <vfprintf@plt>

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

LLVM IR (-O2):
define void @vfindentf(i32* nocapture %0, i32 %1, i8* nocapture %2, i32 %3) {
%5 = icmp sgt i32 %1, 0
br i1 %5, label %6, label %11
6: ; preds = %4, %6
%7 = phi i32 [ %9, %6 ], [ 0, %4 ]
%8 = tail call i32 @fputc(i32 9, i32* %0)
%9 = add nuw nsw i32 %7, 1
%10 = icmp eq i32 %9, %1
br i1 %10, label %11, label %6
11: ; preds = %6, %4
%12 = tail call i32 @vfprintf(i32* %0, i8* %2, i32 %3)
ret void
}
int main(int argc, char **argv) {
  int x;
  double r = argc;
  if (!(0 < r)) {
    x = 7;
  } else {
    x = 42;
  }
  return x;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
ja     113a <main+0x3a>
movl   $0x7,-0x14(%rbp)
jmp    1141 <main+0x41>
movl   $0x2a,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
test   %edi,%edi
mov    $0x2a,%ecx
mov    $0x7,%eax
cmovg  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = sitofp i32 %8 to double
store double %9, double* %7
%10 = load double, double* %7
%11 = fcmp olt double 0.000000e+00, %10
br i1 %11, label %13, label %12
12: ; preds = %2
store i32 7, i32* %6
br label %14
13: ; preds = %2
store i32 42, i32* %6
br label %14
14: ; preds = %13, %12
%15 = load i32, i32* %6
ret i32 %15
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp sgt i32 %0, 0
%4 = select i1 %3, i32 42, i32 7
ret i32 %4
}
/* Variables and functions */
int xyzo_to_meta(char *, size_t, char const *, char const *, char *, int, int,
                 int);
int xyz_to_meta(char *path, size_t len, const char *tile_dir,
                const char *xmlconfig, int x, int y, int z) {
  return xyzo_to_meta(path, len, tile_dir, xmlconfig, "", x, y, z);
}


x86 assembly (clang, -O0):
<xyz_to_meta>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r9d
mov    -0x28(%rbp),%r10d
mov    0x10(%rbp),%eax
lea    0xeab(%rip),%r8
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <xyzo_to_meta@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xyz_to_meta>:
push   %rax
mov    %r9d,%eax
mov    %r8d,%r9d
mov    0x10(%rsp),%r10d
lea    0xedd(%rip),%r8
push   %r10
push   %rax
call   1030 <xyzo_to_meta@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @xyz_to_meta(i8* %0, i64 %1, i8* %2, i8* %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i8* %0, i8** %8
store i64 %1, i64* %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%15 = load i8*, i8** %8
%16 = load i64, i64* %9
%17 = load i8*, i8** %10
%18 = load i8*, i8** %11
%19 = load i32, i32* %12
%20 = load i32, i32* %13
%21 = load i32, i32* %14
%22 = call i32 @xyzo_to_meta(i8* %15, i64 %16, i8* %17, i8* %18, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20, i32 %21)
ret i32 %22
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i32 @xyz_to_meta(i8* %0, i64 %1, i8* %2, i8* %3, i32 %4, i32 %5, i32 %6) {
%8 = tail call i32 @xyzo_to_meta(i8* %0, i64 %1, i8* %2, i8* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %5, i32 %6)
ret i32 %8
}
int funca(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @funca() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ lmrgam_(double *, double *, int *);
void clmrgam(double *para, double *xmom, int nmom) {
  lmrgam_(para, xmom, &nmom);
}


x86 assembly (clang, -O0):
<clmrgam>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
call   1030 <lmrgam_@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clmrgam>:
push   %rax
mov    %edx,0x4(%rsp)
lea    0x4(%rsp),%rdx
call   1030 <lmrgam_@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @clmrgam(double* %0, double* %1, i32 %2) {
%4 = alloca double*
%5 = alloca double*
%6 = alloca i32
store double* %0, double** %4
store double* %1, double** %5
store i32 %2, i32* %6
%7 = load double*, double** %4
%8 = load double*, double** %5
%9 = call i32 @lmrgam_(double* %7, double* %8, i32* %6)
ret void
}

LLVM IR (-O2):
define void @clmrgam(double* %0, double* %1, i32 %2) {
%4 = alloca i32
store i32 %2, i32* %4
%5 = call i32 @lmrgam_(double* %0, double* %1, i32* %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ADC_ETC_ERROR_IRQ_DriverIRQHandler();
__attribute__((weak)) void ADC_ETC_ERROR_IRQ_IRQHandler(void) {
  ADC_ETC_ERROR_IRQ_DriverIRQHandler();
}


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

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

LLVM IR (-O0):
define weak void @ADC_ETC_ERROR_IRQ_IRQHandler() {
%1 = call i32 (...) @ADC_ETC_ERROR_IRQ_DriverIRQHandler()
ret void
}

LLVM IR (-O2):
define weak void @ADC_ETC_ERROR_IRQ_IRQHandler() {
%1 = tail call i32 (...) @ADC_ETC_ERROR_IRQ_DriverIRQHandler()
ret void
}
void gtk_text_view_get_editable() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_view_get_editable() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int fun1(int (*fp3)()) {
  printf("\nin fun1\n");
  return 2 * fp3();
}


x86 assembly (clang, -O0):
<fun1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   *-0x8(%rbp)
shl    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun1>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   *%rbx
add    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"\0Ain fun1\0A\00"
define i32 @fun1(i32 (...)* %0) {
%2 = alloca i32 (...)*
store i32 (...)* %0, i32 (...)** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = load i32 (...)*, i32 (...)** %2
%5 = call i32 (...) %4()
%6 = mul nsw i32 2, %5
ret i32 %6
}

LLVM IR (-O2):
@str = [9 x i8] c"\0Ain fun1\00"
define i32 @fun1(i32 (...)* nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (...) %0()
%4 = shl nsw i32 %3, 1
ret i32 %4
}