xunge/DecIR huggingface dataset:
void test_conjf(_Complex float f) {
  if (conjf(f) != conjf(f))
    link_failure_conjf();
}


x86 assembly (clang, -O0):
<test_conjf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movlpd %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm2
movss  -0x4(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  -0x8(%rbp),%xmm3
movss  -0x4(%rbp),%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
ucomiss %xmm3,%xmm2
setne  %al
setp   %cl
or     %cl,%al
ucomiss %xmm1,%xmm0
setne  %cl
setp   %dl
or     %dl,%cl
or     %cl,%al
test   $0x1,%al
jne    1170 <test_conjf+0x60>
jmp    1177 <test_conjf+0x67>
mov    $0x0,%al
call   1030 <link_failure_conjf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_conjf>:
movaps %xmm0,%xmm1
shufps $0x55,%xmm0,%xmm1
ucomiss %xmm1,%xmm0
jp     111d <test_conjf+0xd>
ret
xor    %eax,%eax
jmp    1030 <link_failure_conjf@plt>

LLVM IR (-O0):
define void @test_conjf(<2 x float> %0) {
%2 = alloca { float, float }
%3 = bitcast { float, float }* %2 to <2 x float>*
store <2 x float> %0, <2 x float>* %3
%4 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%5 = load float, float* %4
%6 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
%7 = load float, float* %6
%8 = fneg float %7
%9 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%10 = load float, float* %9
%11 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
%12 = load float, float* %11
%13 = fneg float %12
%14 = fcmp une float %5, %10
%15 = fcmp une float %8, %13
%16 = or i1 %14, %15
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 (...) @link_failure_conjf()
br label %19
19: ; preds = %17, %1
ret void
}

LLVM IR (-O2):
define void @test_conjf(<2 x float> %0) {
%2 = extractelement <2 x float> %0, i64 0
%3 = extractelement <2 x float> %0, i64 1
%4 = fcmp uno float %2, %3
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 (...) @link_failure_conjf()
br label %7
7: ; preds = %5, %1
ret void
}
/* Variables and functions */
void *dllrealloc(void *, size_t);
void *__wrap_realloc(void *memblock, size_t size) {
  return dllrealloc(memblock, size);
}


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

x86 assembly (clang, -O2):
<__wrap_realloc>:
jmp    1030 <dllrealloc@plt>

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

LLVM IR (-O2):
define i8* @__wrap_realloc(i8* %0, i64 %1) {
%3 = tail call i8* @dllrealloc(i8* %0, i64 %1)
ret i8* %3
}
/* Variables and functions */
void *malloc(unsigned int);
void *PRMalloc(unsigned int size) {
  ;
  return malloc(size);
}


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

x86 assembly (clang, -O2):
<PRMalloc>:
jmp    1030 <malloc@plt>

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

LLVM IR (-O2):
define noalias i8* @PRMalloc(i32 %0) {
%2 = tail call i8* @malloc(i32 %0)
ret i8* %2
}
unsigned long long int fib(int n) {
  if (n < 2)
    return n;
  else
    return fib(n - 1) + fib(n - 2);
}


x86 assembly (clang, -O0):
<fib>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x2,-0xc(%rbp)
jge    1132 <fib+0x22>
movslq -0xc(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    115a <fib+0x4a>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
call   1030 <fib@plt>
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%edi
sub    $0x2,%edi
call   1030 <fib@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fib>:
push   %r14
push   %rbx
push   %rax
xor    %r14d,%r14d
cmp    $0x2,%edi
jl     1135 <fib+0x25>
mov    %edi,%ebx
xchg   %ax,%ax
lea    -0x1(%rbx),%edi
call   1030 <fib@plt>
lea    -0x2(%rbx),%edi
add    %rax,%r14
cmp    $0x4,%ebx
mov    %edi,%ebx
jae    1120 <fib+0x10>
movslq %edi,%rax
add    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i64 @fib(i32 %0) {
%2 = icmp slt i32 %0, 2
br i1 %2, label %3, label %8
3: ; preds = %8, %1
%4 = phi i64 [ 0, %1 ], [ %14, %8 ]
%5 = phi i32 [ %0, %1 ], [ %13, %8 ]
%6 = sext i32 %5 to i64
%7 = add i64 %4, %6
ret i64 %7
8: ; preds = %1, %8
%9 = phi i32 [ %13, %8 ], [ %0, %1 ]
%10 = phi i64 [ %14, %8 ], [ 0, %1 ]
%11 = add nsw i32 %9, -1
%12 = tail call i64 @fib(i32 %11)
%13 = add nsw i32 %9, -2
%14 = add i64 %12, %10
%15 = icmp ult i32 %9, 4
br i1 %15, label %3, label %8
}
int branch_monitor_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @branch_monitor_init() {
ret i32 0
}
unsigned int two_bytes_to_unsigned_int(unsigned char low_byte,
                                       unsigned char high_byte) {
  unsigned int num;
  num = 256 * high_byte + low_byte;
  return (num);
}


x86 assembly (clang, -O0):
<two_bytes_to_unsigned_int>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<two_bytes_to_unsigned_int>:
shl    $0x8,%esi
lea    (%rsi,%rdi,1),%eax
ret

LLVM IR (-O0):
define i32 @two_bytes_to_unsigned_int(i8 zeroext %0, i8 zeroext %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 = zext i8 %6 to i32
%8 = mul nsw i32 256, %7
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = add nsw i32 %8, %10
store i32 %11, i32* %5
%12 = load i32, i32* %5
ret i32 %12
}

LLVM IR (-O2):
define i32 @two_bytes_to_unsigned_int(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %1 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = zext i8 %0 to i32
%6 = or i32 %4, %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ execute(char *);
int /*<<< orphan*/ free(char **);
char **split(char *, int *, char *);
void shell_execute(char *line) {
  int arg_count;
  char **args = split(line, &arg_count, " ");
  execute(line);
  free(args);
}


x86 assembly (clang, -O0):
<shell_execute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    0xeb5(%rip),%rdx
call   1050 <split@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <execute@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shell_execute>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xec2(%rip),%rdx
lea    0x4(%rsp),%rsi
call   1050 <split@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1040 <execute@plt>
mov    %r14,%rdi
call   1030 <free@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
define void @shell_execute(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8**
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i8** @split(i8* %5, i32* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8** %6, i8*** %4
%7 = load i8*, i8** %2
%8 = call i32 @execute(i8* %7)
%9 = load i8**, i8*** %4
%10 = call i32 @free(i8** %9)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
define void @shell_execute(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i8** @split(i8* %0, i32* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @execute(i8* %0)
%6 = call i32 @free(i8** %4)
ret void
}
/* Type definitions */
struct wl_shell_surface {
  int dummy;
};
struct wl_proxy {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_destroy(struct wl_proxy *);
void wl_shell_surface_destroy(struct wl_shell_surface *wl_shell_surface) {
  wl_proxy_destroy((struct wl_proxy *)wl_shell_surface);
}


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

x86 assembly (clang, -O2):
<wl_shell_surface_destroy>:
jmp    1030 <wl_proxy_destroy@plt>

LLVM IR (-O0):
%struct.wl_shell_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_shell_surface_destroy(%struct.wl_shell_surface* %0) {
%2 = alloca %struct.wl_shell_surface*
store %struct.wl_shell_surface* %0, %struct.wl_shell_surface** %2
%3 = load %struct.wl_shell_surface*, %struct.wl_shell_surface** %2
%4 = bitcast %struct.wl_shell_surface* %3 to %struct.wl_proxy*
%5 = call i32 @wl_proxy_destroy(%struct.wl_proxy* %4)
ret void
}

LLVM IR (-O2):
%struct.wl_shell_surface = type { i32 }
%struct.wl_proxy = type { i32 }
define void @wl_shell_surface_destroy(%struct.wl_shell_surface* %0) {
%2 = bitcast %struct.wl_shell_surface* %0 to %struct.wl_proxy*
%3 = tail call i32 @wl_proxy_destroy(%struct.wl_proxy* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void usage() {
  printf("Usage: test_forcewrite <target_file>\n");
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Usage: test_forcewrite <target_file>\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [37 x i8] c"Usage: test_forcewrite <target_file>\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}
void testfunc_01(volatile const char *ap, volatile char *bp) {
  bp[0] = ap[15];
  bp[2] = ap[5];
  bp[9] = ap[7];
  bp[0] = ap[25];
}


x86 assembly (clang, -O0):
<testfunc_01>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    0xf(%rax),%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
mov    0x5(%rax),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%rax
mov    0x7(%rax),%cl
mov    -0x10(%rbp),%rax
mov    %cl,0x9(%rax)
mov    -0x8(%rbp),%rax
mov    0x19(%rax),%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<testfunc_01>:
mov    0xf(%rdi),%al
mov    %al,(%rsi)
mov    0x5(%rdi),%al
mov    %al,0x2(%rsi)
mov    0x7(%rdi),%al
mov    %al,0x9(%rsi)
mov    0x19(%rdi),%al
mov    %al,(%rsi)
ret

LLVM IR (-O0):
define void @testfunc_01(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 = getelementptr inbounds i8, i8* %5, i64 15
%7 = load volatile i8, i8* %6
%8 = load i8*, i8** %4
%9 = getelementptr inbounds i8, i8* %8, i64 0
store volatile i8 %7, i8* %9
%10 = load i8*, i8** %3
%11 = getelementptr inbounds i8, i8* %10, i64 5
%12 = load volatile i8, i8* %11
%13 = load i8*, i8** %4
%14 = getelementptr inbounds i8, i8* %13, i64 2
store volatile i8 %12, i8* %14
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 7
%17 = load volatile i8, i8* %16
%18 = load i8*, i8** %4
%19 = getelementptr inbounds i8, i8* %18, i64 9
store volatile i8 %17, i8* %19
%20 = load i8*, i8** %3
%21 = getelementptr inbounds i8, i8* %20, i64 25
%22 = load volatile i8, i8* %21
%23 = load i8*, i8** %4
%24 = getelementptr inbounds i8, i8* %23, i64 0
store volatile i8 %22, i8* %24
ret void
}

LLVM IR (-O2):
define void @testfunc_01(i8* %0, i8* %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 15
%4 = load volatile i8, i8* %3
store volatile i8 %4, i8* %1
%5 = getelementptr inbounds i8, i8* %0, i64 5
%6 = load volatile i8, i8* %5
%7 = getelementptr inbounds i8, i8* %1, i64 2
store volatile i8 %6, i8* %7
%8 = getelementptr inbounds i8, i8* %0, i64 7
%9 = load volatile i8, i8* %8
%10 = getelementptr inbounds i8, i8* %1, i64 9
store volatile i8 %9, i8* %10
%11 = getelementptr inbounds i8, i8* %0, i64 25
%12 = load volatile i8, i8* %11
store volatile i8 %12, i8* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
int main(void) {
  unsigned int t = 1;
  printf("Unsigned int t has a value of:%u\n", t);
  t = t - 2;
  printf("t minus 2 =:%u\n", t);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0xffffffff,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [34 x i8] c"Unsigned int t has a value of:%u\0A\00"
@.str.1 = [16 x i8] c"t minus 2 =:%u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = sub i32 %5, 2
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [34 x i8] c"Unsigned int t has a value of:%u\0A\00"
@.str.1 = [16 x i8] c"t minus 2 =:%u\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 -1)
ret i32 0
}
/* Variables and functions */
scalar_t__ isspace(char const);
void __scan_space(const char **_str) {
  while (isspace(**_str))
    (*_str)++;
}


x86 assembly (clang, -O0):
<__scan_space>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1148 <__scan_space+0x38>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    111c <__scan_space+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__scan_space>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rax
movsbl (%rax),%edi
nopw   0x0(%rax,%rax,1)
call   1030 <isspace@plt>
test   %rax,%rax
je     113a <__scan_space+0x2a>
mov    (%rbx),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rbx)
movsbl 0x1(%rax),%edi
jmp    1120 <__scan_space+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @__scan_space(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = load i8, i8* %2
%4 = tail call i64 @isspace(i8 signext %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %1, %6
%7 = load i8*, i8** %0
%8 = getelementptr inbounds i8, i8* %7, i64 1
store i8* %8, i8** %0
%9 = load i8, i8* %8
%10 = tail call i64 @isspace(i8 signext %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %6
12: ; preds = %6, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ interrupt(int);
int /*<<< orphan*/ irq_enable();
void switch_next(void) {
  irq_enable();
  interrupt(((0) + 0x20));
}


x86 assembly (clang, -O0):
<switch_next>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <irq_enable@plt>
mov    $0x20,%edi
call   1040 <interrupt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<switch_next>:
push   %rax
xor    %eax,%eax
call   1030 <irq_enable@plt>
mov    $0x20,%edi
pop    %rax
jmp    1040 <interrupt@plt>

LLVM IR (-O0):
define void @switch_next() {
%1 = call i32 (...) @irq_enable()
%2 = call i32 @interrupt(i32 32)
ret void
}

LLVM IR (-O2):
define void @switch_next() {
%1 = tail call i32 (...) @irq_enable()
%2 = tail call i32 @interrupt(i32 32)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char);
int /*<<< orphan*/ strcat(char *, char *);
int main(void) {
  char s[11] = "ABCDE";
  strcat(s + 2, "ABCDE");
  printf("%d", s[0] - s[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xec7(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xebf(%rip),%al
mov    %al,-0x5(%rbp)
lea    -0xf(%rbp),%rdi
add    $0x2,%rdi
lea    0xeae(%rip),%rsi
call   1040 <strcat@plt>
movsbl -0xf(%rbp),%eax
movsbl -0xd(%rbp),%ecx
sub    %ecx,%eax
lea    0xe9e(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x4544434241,%rax
mov    %rax,0x8(%rsp)
movl   $0x0,0xf(%rsp)
lea    0xa(%rsp),%rdi
lea    0xec4(%rip),%rsi
call   1040 <strcat@plt>
mov    0x8(%rsp),%al
sub    0xa(%rsp),%al
movsbl %al,%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.s = [11 x i8] c"ABCDE\00\00\00\00\00\00"
@.str = [6 x i8] c"ABCDE\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
store i32 0, i32* %1
%3 = bitcast [11 x i8]* %2 to i8*
%4 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds i8, i8* %4, i64 2
%6 = call i32 @strcat(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 2
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = sub nsw i32 %9, %12
%14 = trunc i32 %13 to i8
%15 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %14)
ret i32 0
}

LLVM IR (-O2):
@__const.main.s = [11 x i8] c"ABCDE\00\00\00\00\00\00"
@.str = [6 x i8] c"ABCDE\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca [11 x i8]
%2 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%3 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 2
%4 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = load i8, i8* %2
%6 = load i8, i8* %3
%7 = sub i8 %5, %6
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %7)
ret i32 0
}
/* Variables and functions */
double M_PI;
double to_degrees(double radians) { return 180.0 - radians * (180.0 / M_PI); }


x86 assembly (clang, -O0):
<to_degrees>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xeea(%rip),%xmm1
mov    0x2ecb(%rip),%rax
divsd  (%rax),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xebc(%rip),%xmm1
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<to_degrees>:
mov    0x2ee1(%rip),%rax
movsd  0xef1(%rip),%xmm1
movapd %xmm1,%xmm2
divsd  (%rax),%xmm2
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define double @to_degrees(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* @M_PI
%5 = fdiv double 1.800000e+02, %4
%6 = fneg double %3
%7 = call double @llvm.fmuladd.f64(double %6, double %5, double 1.800000e+02)
ret double %7
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define double @to_degrees(double %0) {
%2 = load double, double* @M_PI
%3 = fdiv double 1.800000e+02, %2
%4 = fneg double %0
%5 = tail call double @llvm.fmuladd.f64(double %4, double %3, double 1.800000e+02)
ret double %5
}
/* Variables and functions */
float fabsf(float);
float __ocl_fabs_float(float src) { return fabsf(src); }


x86 assembly (clang, -O0):
<__ocl_fabs_float>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movaps 0xeeb(%rip),%xmm1
pand   %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<__ocl_fabs_float>:
andps  0xef9(%rip),%xmm0
ret

LLVM IR (-O0):
define float @__ocl_fabs_float(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @llvm.fabs.f32(float %3)
ret float %4
}

LLVM IR (-O2):
define float @__ocl_fabs_float(float %0) {
%2 = tail call float @llvm.fabs.f32(float %0)
ret float %2
}
/* Variables and functions */
int display();
int main() { return display(); }


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @display()
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void usage(void) {
  puts("Usage: serial_download device_name length out_file_name1 "
       "out_file_name2 out_file_name3");
  puts("OR");
  puts("       serial_download device_name dds[123] dds_parameters");
}


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

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [87 x i8] c"Usage: serial_download device_name length out_file_name1 out_file_name2 out_file_name3\00"
@.str.1 = [3 x i8] c"OR\00"
@.str.2 = [59 x i8] c" serial_download device_name dds[123] dds_parameters\00"
define void @usage() {
%1 = call i32 @puts(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [87 x i8] c"Usage: serial_download device_name length out_file_name1 out_file_name2 out_file_name3\00"
@.str.1 = [3 x i8] c"OR\00"
@.str.2 = [59 x i8] c" serial_download device_name dds[123] dds_parameters\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
ret void
}
void movqq(double *dest, const double *src) {
  dest[0] = src[0];
  dest[1] = src[1];
  dest[2] = src[2];
  dest[3] = src[3];
}


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

x86 assembly (clang, -O2):
<movqq>:
movsd  (%rsi),%xmm0
movsd  %xmm0,(%rdi)
movsd  0x8(%rsi),%xmm0
movsd  %xmm0,0x8(%rdi)
movsd  0x10(%rsi),%xmm0
movsd  %xmm0,0x10(%rdi)
movsd  0x18(%rsi),%xmm0
movsd  %xmm0,0x18(%rdi)
ret

LLVM IR (-O0):
define void @movqq(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %4
%6 = getelementptr inbounds double, double* %5, i64 0
%7 = load double, double* %6
%8 = load double*, double** %3
%9 = getelementptr inbounds double, double* %8, i64 0
store double %7, double* %9
%10 = load double*, double** %4
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %3
%14 = getelementptr inbounds double, double* %13, i64 1
store double %12, double* %14
%15 = load double*, double** %4
%16 = getelementptr inbounds double, double* %15, i64 2
%17 = load double, double* %16
%18 = load double*, double** %3
%19 = getelementptr inbounds double, double* %18, i64 2
store double %17, double* %19
%20 = load double*, double** %4
%21 = getelementptr inbounds double, double* %20, i64 3
%22 = load double, double* %21
%23 = load double*, double** %3
%24 = getelementptr inbounds double, double* %23, i64 3
store double %22, double* %24
ret void
}

LLVM IR (-O2):
define void @movqq(double* nocapture writeonly %0, double* nocapture %1) {
%3 = load double, double* %1
store double %3, double* %0
%4 = getelementptr inbounds double, double* %1, i64 1
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %0, i64 1
store double %5, double* %6
%7 = getelementptr inbounds double, double* %1, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %0, i64 2
store double %8, double* %9
%10 = getelementptr inbounds double, double* %1, i64 3
%11 = load double, double* %10
%12 = getelementptr inbounds double, double* %0, i64 3
store double %11, double* %12
ret void
}
/* Variables and functions */
int U_WMRCORENONE_get(char *);
int U_WMR8B_get(void) { return U_WMRCORENONE_get("U_WMR8B"); }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR8B\00"
define i32 @U_WMR8B_get() {
%1 = tail call i32 @U_WMRCORENONE_get(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ glmMod3fv(float *, float *, float const *);
void glmMod3fv_(float x[3], const float y[3]) { glmMod3fv(x, x, y); }


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

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

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

LLVM IR (-O2):
define void @glmMod3fv_(float* %0, float* %1) {
%3 = tail call i32 @glmMod3fv(float* %0, float* %0, float* %1)
ret void
}
void CRYPTO_dbg_malloc(void) {}


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

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

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

LLVM IR (-O2):
define void @CRYPTO_dbg_malloc() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ hcs08_disable_interrupt();
void __nesc_disable_interrupt() { hcs08_disable_interrupt(); }


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

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

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

LLVM IR (-O2):
define void @__nesc_disable_interrupt() {
%1 = tail call i32 (...) @hcs08_disable_interrupt()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gpio_high(int, int);
int /*<<< orphan*/ gpio_init();
int /*<<< orphan*/ gpio_input(int, int);
int /*<<< orphan*/ gpio_low(int, int);
int /*<<< orphan*/ gpio_output(int, int);
int /*<<< orphan*/ usleep(int);
void c2_init(void) {
  gpio_init();
  gpio_input(4, 13);
  gpio_output(4, 11);
  gpio_low(4, 11);
  usleep(20);
  gpio_high(4, 11);
  usleep(2);
}


x86 assembly (clang, -O0):
<c2_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <gpio_init@plt>
mov    $0x4,%edi
mov    $0xd,%esi
call   1030 <gpio_input@plt>
mov    $0x4,%edi
mov    $0xb,%esi
call   1050 <gpio_output@plt>
mov    $0x4,%edi
mov    $0xb,%esi
call   1040 <gpio_low@plt>
mov    $0x14,%edi
call   1080 <usleep@plt>
mov    $0x4,%edi
mov    $0xb,%esi
call   1060 <gpio_high@plt>
mov    $0x2,%edi
call   1080 <usleep@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<c2_init>:
push   %rax
xor    %eax,%eax
call   1070 <gpio_init@plt>
mov    $0x4,%edi
mov    $0xd,%esi
call   1030 <gpio_input@plt>
mov    $0x4,%edi
mov    $0xb,%esi
call   1050 <gpio_output@plt>
mov    $0x4,%edi
mov    $0xb,%esi
call   1040 <gpio_low@plt>
mov    $0x14,%edi
call   1080 <usleep@plt>
mov    $0x4,%edi
mov    $0xb,%esi
call   1060 <gpio_high@plt>
mov    $0x2,%edi
pop    %rax
jmp    1080 <usleep@plt>

LLVM IR (-O0):
define void @c2_init() {
%1 = call i32 (...) @gpio_init()
%2 = call i32 @gpio_input(i32 4, i32 13)
%3 = call i32 @gpio_output(i32 4, i32 11)
%4 = call i32 @gpio_low(i32 4, i32 11)
%5 = call i32 @usleep(i32 20)
%6 = call i32 @gpio_high(i32 4, i32 11)
%7 = call i32 @usleep(i32 2)
ret void
}

LLVM IR (-O2):
define void @c2_init() {
%1 = tail call i32 (...) @gpio_init()
%2 = tail call i32 @gpio_input(i32 4, i32 13)
%3 = tail call i32 @gpio_output(i32 4, i32 11)
%4 = tail call i32 @gpio_low(i32 4, i32 11)
%5 = tail call i32 @usleep(i32 20)
%6 = tail call i32 @gpio_high(i32 4, i32 11)
%7 = tail call i32 @usleep(i32 2)
ret void
}
/* Variables and functions */
long double erf(long double);
long double erfl(long double a1) { return erf(a1); }


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

x86 assembly (clang, -O2):
<erfl>:
jmp    1030 <erf@plt>

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

LLVM IR (-O2):
define x86_fp80 @erfl(x86_fp80 %0) {
%2 = tail call x86_fp80 @erf(x86_fp80 %0)
ret x86_fp80 %2
}
/* Variables and functions */
int DentroEsfera(int const);
int /*<<< orphan*/ printf(char *, int const);
main() {
  const int TOTAL = 1000;
  double Volumen_esfera;
  int dentro;
  printf("Ensayos a realizar:  %d\n", TOTAL);
  dentro = DentroEsfera(TOTAL);
  Volumen_esfera = 8.0 * dentro / TOTAL;
  printf("\nVolumen estimado = %g\n", Volumen_esfera);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x3e8,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x3e8,%esi
call   1040 <printf@plt>
mov    $0x3e8,%edi
call   1030 <DentroEsfera@plt>
mov    %eax,-0x14(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xeae(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe9a(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
cvttsd2si -0x10(%rbp),%esi
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x3e8,%esi
call   1040 <printf@plt>
mov    $0x3e8,%edi
call   1030 <DentroEsfera@plt>
cvtsi2sd %eax,%xmm0
mulsd  0xeb8(%rip),%xmm0
divsd  0xeb8(%rip),%xmm0
cvttsd2si %xmm0,%esi
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Ensayos a realizar: %d\0A\00"
@.str.1 = [24 x i8] c"\0AVolumen estimado = %g\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca i32
store i32 1000, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 1000)
%5 = call i32 @DentroEsfera(i32 1000)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = sitofp i32 %6 to double
%8 = fmul double 8.000000e+00, %7
%9 = fdiv double %8, 1.000000e+03
store double %9, double* %2
%10 = load double, double* %2
%11 = fptosi double %10 to i32
%12 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"Ensayos a realizar: %d\0A\00"
@.str.1 = [24 x i8] c"\0AVolumen estimado = %g\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 1000)
%2 = tail call i32 @DentroEsfera(i32 1000)
%3 = sitofp i32 %2 to double
%4 = fmul double %3, 8.000000e+00
%5 = fdiv double %4, 1.000000e+03
%6 = fptosi double %5 to i32
%7 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret i32 0
}
double jpl_get_double(const void *ephem, const int value) {
  return (*(double *)((char *)ephem + value));
}


x86 assembly (clang, -O0):
<jpl_get_double>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  (%rax,%rcx,1),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<jpl_get_double>:
movslq %esi,%rax
movsd  (%rdi,%rax,1),%xmm0
ret

LLVM IR (-O0):
define double @jpl_get_double(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %5, i64 %7
%9 = bitcast i8* %8 to double*
%10 = load double, double* %9
ret double %10
}

LLVM IR (-O2):
define double @jpl_get_double(i8* nocapture %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = bitcast i8* %4 to double*
%6 = load double, double* %5
ret double %6
}
void ElSuiteSparse_finish(void) { ; }


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

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

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

LLVM IR (-O2):
define void @ElSuiteSparse_finish() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print(char *);
void idt_int13(void) { print("!! General protection exception "); }


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

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

LLVM IR (-O0):
@.str = [33 x i8] c"!! General protection exception \00"
define void @idt_int13() {
%1 = call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"!! General protection exception \00"
define void @idt_int13() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
char *strpbrk(char *, char *);
int main(int argc, char **argv) {
  char *r;
  char s1[] = "c";
  char s2[] = {'b', 'c'};
  char s3 = 0;
  r = strpbrk(s1, s2);
  assert(r == s1);
  return 0;
}


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)
mov    0xec3(%rip),%ax
mov    %ax,-0x1a(%rbp)
mov    0xeba(%rip),%ax
mov    %ax,-0x1c(%rbp)
movb   $0x0,-0x1d(%rbp)
lea    -0x1a(%rbp),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <strpbrk@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
lea    -0x1a(%rbp),%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movw   $0x63,0xe(%rsp)
lea    0xecd(%rip),%rsi
lea    0xe(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strpbrk@plt>
xor    %edi,%edi
cmp    %rbx,%rax
sete   %dil
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.s1 = [2 x i8] c"c\00"
@__const.main.s2 = [2 x i8] c"bc"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca [2 x i8]
%8 = alloca [2 x i8]
%9 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [2 x i8]* %7 to i8*
%11 = bitcast [2 x i8]* %8 to i8*
store i8 0, i8* %9
%12 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%13 = getelementptr inbounds [2 x i8], [2 x i8]* %8, i64 0, i64 0
%14 = call i8* @strpbrk(i8* %12, i8* %13)
store i8* %14, i8** %6
%15 = load i8*, i8** %6
%16 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%17 = icmp eq i8* %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
ret i32 0
}

LLVM IR (-O2):
@__const.main.s2 = [2 x i8] c"bc"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i16
%4 = bitcast i16* %3 to i8*
store i16 99, i16* %3
%5 = call i8* @strpbrk(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @__const.main.s2, i64 0, i64 0))
%6 = icmp eq i8* %5, %4
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
ret i32 0
}
void make_empty(char stack[], int coun) {
  int o;
  for (o = 0; o < coun; o++) {
    stack[o] = '\0';
  }
}


x86 assembly (clang, -O0):
<make_empty>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1138 <make_empty+0x38>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <make_empty+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_empty>:
test   %esi,%esi
jle    1122 <make_empty+0x12>
push   %rax
mov    %esi,%edx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

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

LLVM IR (-O2):
define void @make_empty(i8* nocapture writeonly %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %2
ret void
}
void CRYPTO_get_dynlock_value(void) {}


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

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

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

LLVM IR (-O2):
define void @CRYPTO_get_dynlock_value() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ __get_unaligned_be64(int /*<<< orphan*/ const *);
uint64_t get_unaligned_be64(const void *p) {
  return __get_unaligned_be64((const uint8_t *)p);
}


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

x86 assembly (clang, -O2):
<get_unaligned_be64>:
jmp    1030 <__get_unaligned_be64@plt>

LLVM IR (-O0):
define i32 @get_unaligned_be64(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to i32*
%5 = call i32 @__get_unaligned_be64(i32* %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @get_unaligned_be64(i8* %0) {
%2 = bitcast i8* %0 to i32*
%3 = tail call i32 @__get_unaligned_be64(i32* %2)
ret i32 %3
}
void loadOutputPreset() {}


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

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

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

LLVM IR (-O2):
define void @loadOutputPreset() {
ret void
}
/* Variables and functions */
int db_sqlite3_enum_begin_helper(char **);
int db_sqlite3_enum_restart(char **pe) {
  return db_sqlite3_enum_begin_helper(pe);
}


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

x86 assembly (clang, -O2):
<db_sqlite3_enum_restart>:
jmp    1030 <db_sqlite3_enum_begin_helper@plt>

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

LLVM IR (-O2):
define i32 @db_sqlite3_enum_restart(i8** %0) {
%2 = tail call i32 @db_sqlite3_enum_begin_helper(i8** %0)
ret i32 %2
}
const char *str_stmt_switch() { return "switch"; }


x86 assembly (clang, -O0):
<str_stmt_switch>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_stmt_switch>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"switch\00"
define i8* @str_stmt_switch() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [7 x i8] c"switch\00"
define i8* @str_stmt_switch() {
ret i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0)
}
int sp_init() { return -1; }


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

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

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

LLVM IR (-O2):
define i32 @sp_init() {
ret i32 -1
}
/* Variables and functions */
unsigned short inb(int);
int /*<<< orphan*/ outb(int, int);
int fb_get_cursor_pos() {
  unsigned short offset;
  outb(0x3D4, 14);
  offset = inb(0x3D5) << 8;
  outb(0x3D4, 15);
  offset |= inb(0x3D5);
  return offset;
}


x86 assembly (clang, -O0):
<fb_get_cursor_pos>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3d4,%edi
mov    $0xe,%esi
call   1030 <outb@plt>
mov    $0x3d5,%edi
call   1040 <inb@plt>
movzwl %ax,%eax
shl    $0x8,%eax
mov    %ax,-0x2(%rbp)
mov    $0x3d4,%edi
mov    $0xf,%esi
call   1030 <outb@plt>
mov    $0x3d5,%edi
call   1040 <inb@plt>
movzwl %ax,%ecx
movzwl -0x2(%rbp),%eax
or     %ecx,%eax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fb_get_cursor_pos>:
push   %rbx
mov    $0x3d4,%edi
mov    $0xe,%esi
call   1030 <outb@plt>
mov    $0x3d5,%edi
call   1040 <inb@plt>
mov    %eax,%ebx
shl    $0x8,%ebx
mov    $0x3d4,%edi
mov    $0xf,%esi
call   1030 <outb@plt>
mov    $0x3d5,%edi
call   1040 <inb@plt>
or     %ebx,%eax
movzwl %ax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @fb_get_cursor_pos() {
%1 = alloca i16
%2 = call i32 @outb(i32 980, i32 14)
%3 = call zeroext i16 @inb(i32 981)
%4 = zext i16 %3 to i32
%5 = shl i32 %4, 8
%6 = trunc i32 %5 to i16
store i16 %6, i16* %1
%7 = call i32 @outb(i32 980, i32 15)
%8 = call zeroext i16 @inb(i32 981)
%9 = zext i16 %8 to i32
%10 = load i16, i16* %1
%11 = zext i16 %10 to i32
%12 = or i32 %11, %9
%13 = trunc i32 %12 to i16
store i16 %13, i16* %1
%14 = load i16, i16* %1
%15 = zext i16 %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @fb_get_cursor_pos() {
%1 = tail call i32 @outb(i32 980, i32 14)
%2 = tail call zeroext i16 @inb(i32 981)
%3 = shl i16 %2, 8
%4 = tail call i32 @outb(i32 980, i32 15)
%5 = tail call zeroext i16 @inb(i32 981)
%6 = or i16 %5, %3
%7 = zext i16 %6 to i32
ret i32 %7
}
/* Variables and functions */
scalar_t__ malloc(size_t);
int /*<<< orphan*/ nrerror(char *);
unsigned char *cvector(long nl, long nh) {
  unsigned char *v;
  v = (unsigned char *)malloc(
      (size_t)((nh - nl + 1 + 0) * sizeof(unsigned char)));
  if (!v)
    nrerror("allocation failure in cvector()");
  return v - nl + 0;
}


x86 assembly (clang, -O0):
<cvector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
sub    -0x8(%rbp),%rdi
add    $0x1,%rdi
add    $0x0,%rdi
shl    $0x0,%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1164 <cvector+0x44>
lea    0xea1(%rip),%rdi
call   1030 <nrerror@plt>
mov    -0x18(%rbp),%rax
xor    %ecx,%ecx
sub    -0x8(%rbp),%rcx
add    %rcx,%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cvector>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
sub    %rdi,%rsi
lea    0x1(%rsi),%rdi
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1147 <cvector+0x27>
lea    0xebe(%rip),%rdi
call   1030 <nrerror@plt>
sub    %r14,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [32 x i8] c"allocation failure in cvector()\00"
define i8* @cvector(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i8*
store i64 %0, i64* %3
store i64 %1, i64* %4
%6 = load i64, i64* %4
%7 = load i64, i64* %3
%8 = sub nsw i64 %6, %7
%9 = add nsw i64 %8, 1
%10 = add nsw i64 %9, 0
%11 = mul i64 %10, 1
%12 = call i64 @malloc(i64 %11)
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %5
%14 = load i8*, i8** %5
%15 = icmp ne i8* %14, null
br i1 %15, label %18, label %16
16: ; preds = %2
%17 = call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %18
18: ; preds = %16, %2
%19 = load i8*, i8** %5
%20 = load i64, i64* %3
%21 = sub i64 0, %20
%22 = getelementptr inbounds i8, i8* %19, i64 %21
%23 = getelementptr inbounds i8, i8* %22, i64 0
ret i8* %23
}

LLVM IR (-O2):
@.str = [32 x i8] c"allocation failure in cvector()\00"
define i8* @cvector(i64 %0, i64 %1) {
%3 = sub i64 1, %0
%4 = add i64 %3, %1
%5 = tail call i64 @malloc(i64 %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @nrerror(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %2
%10 = sub i64 0, %0
%11 = inttoptr i64 %5 to i8*
%12 = getelementptr inbounds i8, i8* %11, i64 %10
ret i8* %12
}