xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ islower(int);
void t_islower_0xf0() {
  Assert_real((islower(240) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_islower.c",
              1205, ("islower should be 0 for 0xf0"));
}


x86 assembly (clang, -O0):
<t_islower_0xf0>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf0,%edi
call   1030 <islower@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x4b5,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_islower_0xf0>:
push   %rax
mov    $0xf0,%edi
call   1030 <islower@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x4b5,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0xf0\00"
define void @t_islower_0xf0() {
%1 = call i64 @islower(i32 240)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1205, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_islower.c\00"
@.str.1 = [29 x i8] c"islower should be 0 for 0xf0\00"
define void @t_islower_0xf0() {
%1 = tail call i64 @islower(i32 240)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1205, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
struct cart_unif_data {
  int dummy;
};

/* Variables and functions */
struct cart_unif_data *cart_unif_add_chunk(struct cart_unif_data *, char *,
                                           int /*<<< orphan*/,
                                           int /*<<< orphan*/ *);
scalar_t__ strlen(char *);
struct cart_unif_data *
cart_unif_add_dumpername_chunk(struct cart_unif_data *chunks,
                               char *dumpername) {
  return cart_unif_add_chunk(chunks, "NAME", (uint32_t)strlen(dumpername),
                             (uint8_t *)dumpername);
}


x86 assembly (clang, -O0):
<cart_unif_add_dumpername_chunk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%edx
mov    -0x10(%rbp),%rcx
lea    0xeae(%rip),%rsi
call   1040 <cart_unif_add_chunk@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cart_unif_add_dumpername_chunk>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
lea    0xec7(%rip),%rsi
mov    %r14,%rdi
mov    %eax,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <cart_unif_add_chunk@plt>

LLVM IR (-O0):
%struct.cart_unif_data = type { i32 }
@.str = [5 x i8] c"NAME\00"
define %struct.cart_unif_data* @cart_unif_add_dumpername_chunk(%struct.cart_unif_data* %0, i8* %1) {
%3 = alloca %struct.cart_unif_data*
%4 = alloca i8*
store %struct.cart_unif_data* %0, %struct.cart_unif_data** %3
store i8* %1, i8** %4
%5 = load %struct.cart_unif_data*, %struct.cart_unif_data** %3
%6 = load i8*, i8** %4
%7 = call i64 @strlen(i8* %6)
%8 = trunc i64 %7 to i32
%9 = load i8*, i8** %4
%10 = bitcast i8* %9 to i32*
%11 = call %struct.cart_unif_data* @cart_unif_add_chunk(%struct.cart_unif_data* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %8, i32* %10)
ret %struct.cart_unif_data* %11
}

LLVM IR (-O2):
%struct.cart_unif_data = type { i32 }
@.str = [5 x i8] c"NAME\00"
define %struct.cart_unif_data* @cart_unif_add_dumpername_chunk(%struct.cart_unif_data* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%4 = trunc i64 %3 to i32
%5 = bitcast i8* %1 to i32*
%6 = tail call %struct.cart_unif_data* @cart_unif_add_chunk(%struct.cart_unif_data* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %4, i32* %5)
ret %struct.cart_unif_data* %6
}
/* Variables and functions */
int /*<<< orphan*/ getgid();
int /*<<< orphan*/ getuid();
int lchown(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int bad_lchown(void *addr) { return lchown((char *)addr, getuid(), getgid()); }


x86 assembly (clang, -O0):
<bad_lchown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1030 <getuid@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1040 <getgid@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    %eax,%edx
call   1050 <lchown@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bad_lchown>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <getuid@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1040 <getgid@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <lchown@plt>

LLVM IR (-O0):
define i32 @bad_lchown(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (...) @getuid()
%5 = call i32 (...) @getgid()
%6 = call i32 @lchown(i8* %3, i32 %4, i32 %5)
ret i32 %6
}

LLVM IR (-O2):
define i32 @bad_lchown(i8* nocapture %0) {
%2 = tail call i32 (...) @getuid()
%3 = tail call i32 (...) @getgid()
%4 = tail call i32 @lchown(i8* %0, i32 %2, i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ assert(char *);
unsigned int logic_byte_is_positive(unsigned char to_compare, char *p_result) {
  assert(p_result);
  unsigned int err_code = 0;
  if (!p_result) {
    err_code = 2;
    goto end;
  }
  *p_result = (to_compare > 0);
end:
  return err_code;
}


x86 assembly (clang, -O0):
<logic_byte_is_positive>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <assert@plt>
movl   $0x0,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1149 <logic_byte_is_positive+0x39>
movl   $0x2,-0x14(%rbp)
jmp    1160 <logic_byte_is_positive+0x50>
movzbl -0x1(%rbp),%eax
cmp    $0x0,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<logic_byte_is_positive>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rsi,%rdi
call   1030 <assert@plt>
test   %rbx,%rbx
je     112f <logic_byte_is_positive+0x1f>
test   %bpl,%bpl
setne  (%rbx)
xor    %eax,%eax
jmp    1134 <logic_byte_is_positive+0x24>
mov    $0x2,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @logic_byte_is_positive(i8 zeroext %0, i8* %1) {
%3 = tail call i32 @assert(i8* %1)
%4 = icmp eq i8* %1, null
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = icmp ne i8 %0, 0
%7 = zext i1 %6 to i8
store i8 %7, i8* %1
br label %8
8: ; preds = %2, %5
%9 = phi i32 [ 0, %5 ], [ 2, %2 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
int unifi_cfg_deinit(int fd) {
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<unifi_cfg_deinit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <close@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @unifi_cfg_deinit(i32 %0) {
%2 = tail call i32 @close(i32 %0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, int);
void child_exit_handler(int signal) {
  printf("server child recv a sig = %d", signal);
  do {
    perror("server_child exit");
    exit(EXIT_FAILURE);
  } while (0);
}


x86 assembly (clang, -O0):
<child_exit_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<child_exit_handler>:
push   %rax
mov    %edi,%esi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"server child recv a sig = %d\00"
@.str.1 = [18 x i8] c"server_child exit\00"
@EXIT_FAILURE = global i32 0
define void @child_exit_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %5
5: ; preds = %1
%6 = call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @EXIT_FAILURE
%8 = call i32 @exit(i32 %7)
unreachable
9: ; No predecessors!
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"server child recv a sig = %d\00"
@.str.1 = [18 x i8] c"server_child exit\00"
@EXIT_FAILURE = global i32 0
define void @child_exit_handler(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = tail call i32 @perror(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}
/* Variables and functions */
void *calloc(size_t, size_t);
void *avro_allocator_system_calloc(size_t count, size_t size) {
  return calloc(count, size);
}


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

x86 assembly (clang, -O2):
<avro_allocator_system_calloc>:
jmp    1030 <calloc@plt>

LLVM IR (-O0):
define i8* @avro_allocator_system_calloc(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = call i8* @calloc(i64 %5, i64 %6)
ret i8* %7
}

LLVM IR (-O2):
define noalias i8* @avro_allocator_system_calloc(i64 %0, i64 %1) {
%3 = tail call i8* @calloc(i64 %0, i64 %1)
ret i8* %3
}
int test_imm_C7int64_lowword_mem(long long *val) {
  return ((*val) & (0xC7 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_C7int64_lowword_mem>:
testb  $0xc7,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_C7int64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 199
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int compareBitVectors(unsigned int *, unsigned int *);
int compareHash(void *a, void *b) {
  return compareBitVectors((unsigned int *)a, (unsigned int *)b);
}


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

x86 assembly (clang, -O2):
<compareHash>:
jmp    1030 <compareBitVectors@plt>

LLVM IR (-O0):
define i32 @compareHash(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 = bitcast i8* %5 to i32*
%7 = load i8*, i8** %4
%8 = bitcast i8* %7 to i32*
%9 = call i32 @compareBitVectors(i32* %6, i32* %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @compareHash(i8* %0, i8* %1) {
%3 = bitcast i8* %0 to i32*
%4 = bitcast i8* %1 to i32*
%5 = tail call i32 @compareBitVectors(i32* %3, i32* %4)
ret i32 %5
}
void android_compiler_barrier(void) { __asm__ __volatile__("" : : : "memory"); }


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

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

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

LLVM IR (-O2):
define void @android_compiler_barrier() {
tail call void asm sideeffect "", "~{memory},~{dirflag},~{fpsr},~{flags}"()
ret void
}
int atoi(const char *nptr) {
  int n;
  for (n = 0; *nptr != '\0'; nptr++) {
    n *= 10;
    n += *nptr - '0';
  }
  return n;
}


x86 assembly (clang, -O0):
<atoi>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1147 <atoi+0x47>
imul   $0xa,-0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110f <atoi+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<atoi>:
mov    (%rdi),%cl
test   %cl,%cl
je     1128 <atoi+0x28>
add    $0x1,%rdi
xor    %eax,%eax
nopl   0x0(%rax)
movsbl %cl,%ecx
lea    (%rax,%rax,4),%eax
lea    (%rcx,%rax,2),%eax
add    $0xffffffd0,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <atoi+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @atoi(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %13, %4 ], [ %2, %1 ]
%6 = phi i32 [ %11, %4 ], [ 0, %1 ]
%7 = phi i8* [ %12, %4 ], [ %0, %1 ]
%8 = sext i8 %5 to i32
%9 = mul nsw i32 %6, 10
%10 = add i32 %9, -48
%11 = add i32 %10, %8
%12 = getelementptr inbounds i8, i8* %7, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %4, %1
%16 = phi i32 [ 0, %1 ], [ %11, %4 ]
ret i32 %16
}
double Newton_s_apple() {
  double g = 10.0;
  double speed_z = 0;
  double altitude = 3000;
  double delta_t = 0.1;
  double total_time = 0;
  while (altitude > 0.0) {
    speed_z += g * delta_t;
    altitude -= speed_z * delta_t;
    total_time += delta_t;
  }
  return total_time;
}


x86 assembly (clang, -O0):
<Newton_s_apple>:
push   %rbp
mov    %rsp,%rbp
movsd  0xf04(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xee7(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xed2(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    11b0 <Newton_s_apple+0xb0>
movsd  -0x8(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x20(%rbp),%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    113b <Newton_s_apple+0x3b>
movsd  -0x28(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Newton_s_apple>:
xorpd  %xmm0,%xmm0
movsd  0xef4(%rip),%xmm1
movapd 0xefc(%rip),%xmm2
movsd  0xeec(%rip),%xmm3
xorpd  %xmm4,%xmm4
addpd  %xmm2,%xmm0
movapd %xmm0,%xmm5
unpckhpd %xmm0,%xmm5
mulsd  %xmm3,%xmm5
subsd  %xmm5,%xmm1
ucomisd %xmm4,%xmm1
ja     1120 <Newton_s_apple+0x20>
ret

LLVM IR (-O0):
define double @Newton_s_apple() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double 1.000000e+01, double* %1
store double 0.000000e+00, double* %2
store double 3.000000e+03, double* %3
store double 1.000000e-01, double* %4
store double 0.000000e+00, double* %5
br label %6
6: ; preds = %9, %0
%7 = load double, double* %3
%8 = fcmp ogt double %7, 0.000000e+00
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = load double, double* %1
%11 = load double, double* %4
%12 = load double, double* %2
%13 = call double @llvm.fmuladd.f64(double %10, double %11, double %12)
store double %13, double* %2
%14 = load double, double* %2
%15 = load double, double* %4
%16 = load double, double* %3
%17 = fneg double %14
%18 = call double @llvm.fmuladd.f64(double %17, double %15, double %16)
store double %18, double* %3
%19 = load double, double* %4
%20 = load double, double* %5
%21 = fadd double %20, %19
store double %21, double* %5
br label %6
22: ; preds = %6
%23 = load double, double* %5
ret double %23
}

LLVM IR (-O2):
define double @Newton_s_apple() {
br label %1
1: ; preds = %0, %1
%2 = phi double [ 3.000000e+03, %0 ], [ %7, %1 ]
%3 = phi <2 x double> [ zeroinitializer, %0 ], [ %4, %1 ]
%4 = fadd <2 x double> %3, <double 1.000000e-01, double 1.000000e+00>
%5 = extractelement <2 x double> %4, i64 1
%6 = fneg double %5
%7 = tail call double @llvm.fmuladd.f64(double %6, double 1.000000e-01, double %2)
%8 = fcmp ogt double %7, 0.000000e+00
br i1 %8, label %1, label %9
9: ; preds = %1
%10 = extractelement <2 x double> %4, i64 0
ret double %10
}
/* Variables and functions */
int /*<<< orphan*/ readline_purge();
void purgeline(int fd) { readline_purge(); }


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

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

LLVM IR (-O0):
define void @purgeline(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 (...) @readline_purge()
ret void
}

LLVM IR (-O2):
define void @purgeline(i32 %0) {
%2 = tail call i32 (...) @readline_purge()
ret void
}
void ACCESS_DESCRIPTION_new(void) {}


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

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

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

LLVM IR (-O2):
define void @ACCESS_DESCRIPTION_new() {
ret void
}
/* Variables and functions */
long INT_MAX;
long INT_MIN;
double scalbn(double, long);
double scalbln(double x, long n) {
  if (n > INT_MAX)
    n = INT_MAX;
  else if (n < INT_MIN)
    n = INT_MIN;
  return scalbn(x, n);
}


x86 assembly (clang, -O0):
<scalbln>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x2ebc(%rip),%rcx
cmp    (%rcx),%rax
jle    1148 <scalbln+0x38>
mov    0x2eac(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
jmp    116f <scalbln+0x5f>
mov    -0x10(%rbp),%rax
mov    0x2e8d(%rip),%rcx
cmp    (%rcx),%rax
jge    116a <scalbln+0x5a>
mov    0x2e7d(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
jmp    116f <scalbln+0x5f>
movsd  -0x8(%rbp),%xmm0
mov    -0x10(%rbp),%rdi
call   1030 <scalbn@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scalbln>:
mov    0x2ed1(%rip),%rcx
mov    0x2ec2(%rip),%rax
mov    (%rax),%rax
cmp    %rdi,%rax
cmovle %rdi,%rax
mov    (%rcx),%rcx
cmp    %rdi,%rcx
cmovl  %rcx,%rax
mov    %rax,%rdi
jmp    1030 <scalbn@plt>

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

LLVM IR (-O2):
@INT_MAX = global i64 0
@INT_MIN = global i64 0
define double @scalbln(double %0, i64 %1) {
%3 = load i64, i64* @INT_MAX
%4 = icmp slt i64 %3, %1
%5 = load i64, i64* @INT_MIN
%6 = icmp sgt i64 %5, %1
%7 = select i1 %6, i64 %5, i64 %1
%8 = select i1 %4, i64 %3, i64 %7
%9 = tail call double @scalbn(double %0, i64 %8)
ret double %9
}
void gtk_progress_bar_pulse() {}


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

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

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

LLVM IR (-O2):
define void @gtk_progress_bar_pulse() {
ret void
}
int noop() { return (-1); }


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

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

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

LLVM IR (-O2):
define i32 @noop() {
ret i32 -1
}
/* Variables and functions */
double __nv_norm4d(double, double, double, double);
double norm4d(double __a, double __b, double __c, double __d) {
  return __nv_norm4d(__a, __b, __c, __d);
}


x86 assembly (clang, -O0):
<norm4d>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
call   1030 <__nv_norm4d@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<norm4d>:
jmp    1030 <__nv_norm4d@plt>

LLVM IR (-O0):
define double @norm4d(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* %5
%10 = load double, double* %6
%11 = load double, double* %7
%12 = load double, double* %8
%13 = call double @__nv_norm4d(double %9, double %10, double %11, double %12)
ret double %13
}

LLVM IR (-O2):
define double @norm4d(double %0, double %1, double %2, double %3) {
%5 = tail call double @__nv_norm4d(double %0, double %1, double %2, double %3)
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void SPI_close(int spidev_fd) { close(spidev_fd); }


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

x86 assembly (clang, -O2):
<SPI_close>:
jmp    1030 <close@plt>

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

LLVM IR (-O2):
define void @SPI_close(i32 %0) {
%2 = tail call i32 @close(i32 %0)
ret void
}
void f5(int *x __attribute__((unused))) {}


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

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

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

LLVM IR (-O2):
define void @f5(i32* nocapture %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ u_int64_t;

/* Variables and functions */
u_int64_t get_sent_bytes(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @get_sent_bytes() {
ret i32 0
}
int umoven(struct tcb *tcp, long addr, int len, char *laddr) { return 0; }


x86 assembly (clang, -O0):
<umoven>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.tcb = type opaque
define i32 @umoven(%struct.tcb* %0, i64 %1, i32 %2, i8* %3) {
%5 = alloca %struct.tcb*
%6 = alloca i64
%7 = alloca i32
%8 = alloca i8*
store %struct.tcb* %0, %struct.tcb** %5
store i64 %1, i64* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
ret i32 0
}

LLVM IR (-O2):
%struct.tcb = type opaque
define i32 @umoven(%struct.tcb* nocapture readnone %0, i64 %1, i32 %2, i8* nocapture readnone %3) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void mostraUso() {
  printf("==== Uso: ====\n\n"
         "Arg: caminho do arquivo a ser carregado\n\n"
         "Ex: trab_jander <arquivo.txt>\n");
}


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

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

LLVM IR (-O0):
@.str = [88 x i8] c"==== Uso: ====\0A\0AArg: caminho do arquivo a ser carregado\0A\0AEx: trab_jander <arquivo.txt>\0A\00"
define void @mostraUso() {
%1 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [87 x i8] c"==== Uso: ====\0A\0AArg: caminho do arquivo a ser carregado\0A\0AEx: trab_jander <arquivo.txt>\00"
define void @mostraUso() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str, i64 0, i64 0))
ret void
}
int main() {
  int a, b, c, d, e, f, r, s, t;
  c = a * b;
  e = c / d;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cltd
idivl  -0x14(%rbp)
mov    %eax,-0x18(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = mul nsw i32 %11, %12
store i32 %13, i32* %4
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = sdiv i32 %14, %15
store i32 %16, i32* %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Type definitions */
struct flock {
  int /*<<< orphan*/ l_type;
};

/* Variables and functions */
int /*<<< orphan*/ F_UNLCK;
int /*<<< orphan*/ set_lock(int, struct flock);
void index_file_unlock(int fd, struct flock lock_t) {
  lock_t.l_type = F_UNLCK;
  set_lock(fd, lock_t);
}


x86 assembly (clang, -O0):
<index_file_unlock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %esi,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    0x2ec3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <set_lock@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<index_file_unlock>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%esi
jmp    1030 <set_lock@plt>

LLVM IR (-O0):
%struct.flock = type { i32 }
@F_UNLCK = global i32 0
define void @index_file_unlock(i32 %0, i32 %1) {
%3 = alloca %struct.flock
%4 = alloca i32
%5 = getelementptr inbounds %struct.flock, %struct.flock* %3, i32 0, i32 0
store i32 %1, i32* %5
store i32 %0, i32* %4
%6 = load i32, i32* @F_UNLCK
%7 = getelementptr inbounds %struct.flock, %struct.flock* %3, i32 0, i32 0
store i32 %6, i32* %7
%8 = load i32, i32* %4
%9 = getelementptr inbounds %struct.flock, %struct.flock* %3, i32 0, i32 0
%10 = load i32, i32* %9
%11 = call i32 @set_lock(i32 %8, i32 %10)
ret void
}

LLVM IR (-O2):
@F_UNLCK = global i32 0
define void @index_file_unlock(i32 %0, i32 %1) {
%3 = load i32, i32* @F_UNLCK
%4 = tail call i32 @set_lock(i32 %0, i32 %3)
ret void
}
int main() {
  int i = 0;
  int j = 0;
  while (i <= 100) {
    while (j <= 100) {
      j++;
    }
    i++;
  }
  return i + j;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     114e <main+0x4e>
jmp    1128 <main+0x28>
cmpl   $0x64,-0xc(%rbp)
jg     1140 <main+0x40>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1128 <main+0x28>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1119 <main+0x19>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 202
}
void EVP_CipherFinal(void) {}


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

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

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

LLVM IR (-O2):
define void @EVP_CipherFinal() {
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
float celsiusFromFahrenheit(float);
float fahrenheitFromCelsius(float);
int /*<<< orphan*/ printf(char *, float, float);
int main(int argc, const char *argv[]) {
  float cel = 26.0;
  float fahr = fahrenheitFromCelsius(cel);
  float result = celsiusFromFahrenheit(fahr);
  printf("The origin is %f, The result is %f.\n", cel, result);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xeb2(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <fahrenheitFromCelsius@plt>
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
call   1050 <celsiusFromFahrenheit@plt>
movss  %xmm0,-0x1c(%rbp)
movss  -0x14(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm1
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movss  0xec7(%rip),%xmm0
call   1040 <fahrenheitFromCelsius@plt>
call   1050 <celsiusFromFahrenheit@plt>
movaps %xmm0,%xmm1
lea    0xeb7(%rip),%rdi
movss  0xeab(%rip),%xmm0
call   1030 <printf@plt>
mov    0x2e7f(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [37 x i8] c"The origin is %f, The result is %f.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 2.600000e+01, float* %6
%9 = load float, float* %6
%10 = call float @fahrenheitFromCelsius(float %9)
store float %10, float* %7
%11 = load float, float* %7
%12 = call float @celsiusFromFahrenheit(float %11)
store float %12, float* %8
%13 = load float, float* %6
%14 = load float, float* %8
%15 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), float %13, float %14)
%16 = load i32, i32* @EXIT_SUCCESS
ret i32 %16
}

LLVM IR (-O2):
@.str = [37 x i8] c"The origin is %f, The result is %f.\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call float @fahrenheitFromCelsius(float 2.600000e+01)
%4 = tail call float @celsiusFromFahrenheit(float %3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), float 2.600000e+01, float %4)
%6 = load i32, i32* @EXIT_SUCCESS
ret i32 %6
}
/* Variables and functions */
scalar_t__ roundl(long double);
long lroundl(long double x) { return (long)roundl(x); }


x86 assembly (clang, -O0):
<lroundl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <roundl@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lroundl>:
jmp    1030 <roundl@plt>

LLVM IR (-O0):
define i64 @lroundl(x86_fp80 %0) {
%2 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %2
%3 = load x86_fp80, x86_fp80* %2
%4 = call i64 @roundl(x86_fp80 %3)
ret i64 %4
}

LLVM IR (-O2):
define i64 @lroundl(x86_fp80 %0) {
%2 = tail call i64 @roundl(x86_fp80 %0)
ret i64 %2
}
/* Variables and functions */
void *calloc(size_t, int);
int /*<<< orphan*/ oom();
void *xmalloc(size_t sz) {
  void *p = calloc(sz, 1);
  if (!p)
    oom();
  return p;
}


x86 assembly (clang, -O0):
<xmalloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1150 <xmalloc+0x30>
mov    $0x0,%al
call   1030 <oom@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmalloc>:
push   %rbx
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113a <xmalloc+0x1a>
xor    %eax,%eax
call   1030 <oom@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @xmalloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @calloc(i64 %4, i32 1)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp ne i8* %6, null
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = call i32 (...) @oom()
br label %10
10: ; preds = %8, %1
%11 = load i8*, i8** %3
ret i8* %11
}

LLVM IR (-O2):
define i8* @xmalloc(i64 %0) {
%2 = tail call i8* @calloc(i64 %0, i32 1)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @oom()
br label %6
6: ; preds = %4, %1
ret i8* %2
}
main() {
#pragma omp parallel
  { ; }
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ msleep(int);
int /*<<< orphan*/ prop_request_change(int, int *, int);
void SW2(int v, int wait) {
  prop_request_change(0x80020016, &v, 2);
  msleep(wait);
}


x86 assembly (clang, -O0):
<SW2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x80020016,%edi
lea    -0x4(%rbp),%rsi
mov    $0x2,%edx
call   1040 <prop_request_change@plt>
mov    -0x8(%rbp),%edi
call   1030 <msleep@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SW2>:
push   %rbx
sub    $0x10,%rsp
mov    %esi,%ebx
mov    %edi,0xc(%rsp)
lea    0xc(%rsp),%rsi
mov    $0x80020016,%edi
mov    $0x2,%edx
call   1040 <prop_request_change@plt>
mov    %ebx,%edi
call   1030 <msleep@plt>
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define void @SW2(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 @prop_request_change(i32 -2147352554, i32* %3, i32 2)
%5 = call i32 @msleep(i32 %1)
ret void
}
int get_num_of_processors(void) {
  int nprocs = -1;
  return nprocs;
}


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

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

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

LLVM IR (-O2):
define i32 @get_num_of_processors() {
ret i32 -1
}
void cli(void) {}


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

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

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

LLVM IR (-O2):
define void @cli() {
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int uint16_t;
typedef int size;

/* Variables and functions */
uint16_t inv_icm30xxx_fifo_compute_size_byte(uint8_t size, uint8_t packet) {
  const uint16_t mult = (((size)&0xE0) >> 5);
  const uint16_t factor = ((size)&0x1F);
  return (1 << mult) * (factor + 1) * (packet + 1) - 1;
}


x86 assembly (clang, -O0):
<inv_icm30xxx_fifo_compute_size_byte>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
and    $0xe0,%eax
sar    $0x5,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1f,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
sub    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inv_icm30xxx_fifo_compute_size_byte>:
mov    %edi,%ecx
mov    %edi,%edx
and    $0x1f,%edx
add    $0x1,%edx
shr    $0x5,%cl
shl    %cl,%edx
lea    0x1(%rsi),%eax
imul   %edx,%eax
add    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @inv_icm30xxx_fifo_compute_size_byte(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = and i32 %7, 224
%9 = ashr i32 %8, 5
store i32 %9, i32* %5
%10 = load i32, i32* %3
%11 = and i32 %10, 31
store i32 %11, i32* %6
%12 = load i32, i32* %5
%13 = shl i32 1, %12
%14 = load i32, i32* %6
%15 = add nsw i32 %14, 1
%16 = mul nsw i32 %13, %15
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 1
%19 = mul nsw i32 %16, %18
%20 = sub nsw i32 %19, 1
ret i32 %20
}

LLVM IR (-O2):
define i32 @inv_icm30xxx_fifo_compute_size_byte(i32 %0, i32 %1) {
%3 = lshr i32 %0, 5
%4 = and i32 %3, 7
%5 = and i32 %0, 31
%6 = add nuw nsw i32 %5, 1
%7 = shl nuw nsw i32 %6, %4
%8 = add nsw i32 %1, 1
%9 = mul nsw i32 %7, %8
%10 = add nsw i32 %9, -1
ret i32 %10
}
void my_pthread_cleanup_push(void (*routine)(void *), void *arg) {
  while (0) {
  };
}


x86 assembly (clang, -O0):
<my_pthread_cleanup_push>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    111b <my_pthread_cleanup_push+0x1b>
jmp    1120 <my_pthread_cleanup_push+0x20>
jmp    110c <my_pthread_cleanup_push+0xc>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @my_pthread_cleanup_push(void (i8*)* %0, i8* %1) {
%3 = alloca void (i8*)*
%4 = alloca i8*
store void (i8*)* %0, void (i8*)** %3
store i8* %1, i8** %4
br label %5
5: ; preds = %6, %2
br i1 false, label %6, label %7
6: ; preds = %5
br label %5
7: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @my_pthread_cleanup_push(void (i8*)* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ shutdown();
int main(int argc, char **argv) {
  ((void)argc);
  ((void)argv);
  shutdown();
  return (EXIT_SUCCESS);
}


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

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

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 (...) @shutdown()
%9 = load i32, i32* @EXIT_SUCCESS
ret i32 %9
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @shutdown()
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}
int vbr_getquant_1pass(void *state) { return (0); }


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

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

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

LLVM IR (-O2):
define i32 @vbr_getquant_1pass(i8* nocapture readnone %0) {
ret i32 0
}
int is_english_alphanumeric(char c) {
  if (c >= '0' && c <= '9') {
    return c;
  }
  if (c >= 'A' && c <= 'Z') {
    return c;
  }
  if (c >= 'a' && c <= 'z') {
    return c;
  }
  return 0;
}


x86 assembly (clang, -O0):
<is_english_alphanumeric>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1130 <is_english_alphanumeric+0x30>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1130 <is_english_alphanumeric+0x30>
movsbl -0x5(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1183 <is_english_alphanumeric+0x83>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     1156 <is_english_alphanumeric+0x56>
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     1156 <is_english_alphanumeric+0x56>
movsbl -0x5(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1183 <is_english_alphanumeric+0x83>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     117c <is_english_alphanumeric+0x7c>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jg     117c <is_english_alphanumeric+0x7c>
movsbl -0x5(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1183 <is_english_alphanumeric+0x83>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_english_alphanumeric>:
mov    %edi,%ecx
and    $0xdf,%cl
add    $0xbf,%cl
xor    %eax,%eax
cmp    $0x1a,%cl
cmovb  %edi,%eax
lea    -0x30(%rdi),%ecx
cmp    $0xa,%cl
cmovb  %edi,%eax
ret

LLVM IR (-O0):
define i32 @is_english_alphanumeric(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
store i32 %13, i32* %2
br label %37
14: ; preds = %7, %1
%15 = load i8, i8* %3
%16 = sext i8 %15 to i32
%17 = icmp sge i32 %16, 65
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = load i8, i8* %3
%20 = sext i8 %19 to i32
%21 = icmp sle i32 %20, 90
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i8, i8* %3
%24 = sext i8 %23 to i32
store i32 %24, i32* %2
br label %37
25: ; preds = %18, %14
%26 = load i8, i8* %3
%27 = sext i8 %26 to i32
%28 = icmp sge i32 %27, 97
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = load i8, i8* %3
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i8, i8* %3
%35 = sext i8 %34 to i32
store i32 %35, i32* %2
br label %37
36: ; preds = %29, %25
store i32 0, i32* %2
br label %37
37: ; preds = %36, %33, %22, %11
%38 = load i32, i32* %2
ret i32 %38
}

LLVM IR (-O2):
define i32 @is_english_alphanumeric(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add i8 %0, -48
%4 = icmp ult i8 %3, 10
%5 = and i8 %0, -33
%6 = add i8 %5, -65
%7 = icmp ult i8 %6, 26
%8 = or i1 %4, %7
%9 = select i1 %8, i32 %2, i32 0
ret i32 %9
}
/* Variables and functions */
char *strrchr(const char *p, int ch) {
  char *save;
  char c;
  c = ch;
  for (save = NULL;; ++p) {
    if (*p == c) {
      save = (char *)p;
    }
    if (*p == '\0') {
      return (save);
    }
  }
}


x86 assembly (clang, -O0):
<strrchr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %al,-0x19(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
movsbl -0x19(%rbp),%ecx
cmp    %ecx,%eax
jne    1134 <strrchr+0x34>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    114a <strrchr+0x4a>
mov    -0x18(%rbp),%rax
pop    %rbp
ret
jmp    114f <strrchr+0x4f>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1119 <strrchr+0x19>

x86 assembly (clang, -O2):
<strrchr>:
movsbl %sil,%ecx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsbl (%rdi),%edx
cmp    %edx,%ecx
cmove  %rdi,%rax
add    $0x1,%rdi
test   %edx,%edx
jne    1110 <strrchr+0x10>
ret

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

LLVM IR (-O2):
define i8* @strrchr(i8* %0, i32 %1) {
%3 = shl i32 %1, 24
%4 = ashr exact i32 %3, 24
br label %5
5: ; preds = %5, %2
%6 = phi i8* [ null, %2 ], [ %11, %5 ]
%7 = phi i8* [ %0, %2 ], [ %13, %5 ]
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %4, %9
%11 = select i1 %10, i8* %7, i8* %6
%12 = icmp eq i8 %8, 0
%13 = getelementptr inbounds i8, i8* %7, i64 1
br i1 %12, label %14, label %5
14: ; preds = %5
ret i8* %11
}