xunge/DecIR huggingface dataset:
/* Type definitions */
struct nn_epbase {
  int dummy;
};

/* Variables and functions */
int nn_ctcp_create(void *, struct nn_epbase **);
int nn_tcp_connect(void *hint, struct nn_epbase **epbase) {
  return nn_ctcp_create(hint, epbase);
}


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

x86 assembly (clang, -O2):
<nn_tcp_connect>:
jmp    1030 <nn_ctcp_create@plt>

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

LLVM IR (-O2):
%struct.nn_epbase = type { i32 }
define i32 @nn_tcp_connect(i8* %0, %struct.nn_epbase** %1) {
%3 = tail call i32 @nn_ctcp_create(i8* %0, %struct.nn_epbase** %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ free(int *);
int *malloc(int);
int /*<<< orphan*/ printf(char *, int, int *, int *);
int main(void) {
  int *pi;
  pi = malloc(sizeof(int));
  *pi = 14;
  *pi /= 2;
  *pi += 2;
  printf("\n  *pi=%d  pi=%p  pi=%ld\n\n", *pi, pi, pi);
  free(pi);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x4,%edi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movl   $0xe,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
add    $0x2,%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x4,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
movl   $0x9,(%rax)
lea    0xeb5(%rip),%rdi
mov    $0x9,%esi
mov    %rax,%rdx
mov    %rax,%rcx
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"\0A *pi=%d pi=%p pi=%ld\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
store i32 0, i32* %1
%3 = call i32* @malloc(i32 4)
store i32* %3, i32** %2
%4 = load i32*, i32** %2
store i32 14, i32* %4
%5 = load i32*, i32** %2
%6 = load i32, i32* %5
%7 = sdiv i32 %6, 2
store i32 %7, i32* %5
%8 = load i32*, i32** %2
%9 = load i32, i32* %8
%10 = add nsw i32 %9, 2
store i32 %10, i32* %8
%11 = load i32*, i32** %2
%12 = load i32, i32* %11
%13 = load i32*, i32** %2
%14 = load i32*, i32** %2
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %12, i32* %13, i32* %14)
%16 = load i32*, i32** %2
%17 = call i32 @free(i32* %16)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"\0A *pi=%d pi=%p pi=%ld\0A\0A\00"
define i32 @main() {
%1 = tail call i32* @malloc(i32 4)
store i32 9, i32* %1
%2 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 9, i32* %1, i32* %1)
%3 = tail call i32 @free(i32* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ assert_int_equal(int, int /*<<< orphan*/);
int /*<<< orphan*/ b_pawn_defenders_from_west(int);
void b_pawn_defenders_from_west_test(void **state) {
  assert_int_equal(0x0000080000000000ul,
                   b_pawn_defenders_from_west(0x0000081000000000ul));
}


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

x86 assembly (clang, -O2):
<b_pawn_defenders_from_west_test>:
push   %rax
xor    %edi,%edi
call   1040 <b_pawn_defenders_from_west@plt>
xor    %edi,%edi
mov    %eax,%esi
pop    %rax
jmp    1030 <assert_int_equal@plt>

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

LLVM IR (-O2):
define void @b_pawn_defenders_from_west_test(i8** nocapture readnone %0) {
%2 = tail call i32 @b_pawn_defenders_from_west(i32 0)
%3 = tail call i32 @assert_int_equal(i32 0, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void const *, size_t);
void putItem(void *array, int i, const void *pRet, size_t tSize) {
  memcpy(array + i * tSize, pRet, tSize);
}


x86 assembly (clang, -O0):
<putItem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
imul   -0x20(%rbp),%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <memcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putItem>:
movslq %esi,%rax
imul   %rcx,%rax
add    %rax,%rdi
mov    %rdx,%rsi
mov    %rcx,%rdx
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
define void @putItem(i8* %0, i32 %1, i8* %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i64 %3, i64* %8
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = sext i32 %10 to i64
%12 = load i64, i64* %8
%13 = mul i64 %11, %12
%14 = getelementptr i8, i8* %9, i64 %13
%15 = load i8*, i8** %7
%16 = load i64, i64* %8
%17 = call i32 @memcpy(i8* %14, i8* %15, i64 %16)
ret void
}

LLVM IR (-O2):
define void @putItem(i8* %0, i32 %1, i8* %2, i64 %3) {
%5 = sext i32 %1 to i64
%6 = mul i64 %5, %3
%7 = getelementptr i8, i8* %0, i64 %6
%8 = tail call i32 @memcpy(i8* %7, i8* %2, i64 %3)
ret void
}
/* Variables and functions */
unsigned int call7a(unsigned int);
unsigned int call7(unsigned int ui) { return (call7a(ui)); }


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

x86 assembly (clang, -O2):
<call7>:
jmp    1030 <call7a@plt>

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

LLVM IR (-O2):
define i32 @call7(i32 %0) {
%2 = tail call i32 @call7a(i32 %0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
int /*<<< orphan*/ strcat(char *, char *);
int strlen(char *);
void strcat_symbolic_src_length(char *src) {
  char dst[8] = "1234";
  strcat(dst, src);
  clang_analyzer_eval(strlen(dst) >= 4);
}


x86 assembly (clang, -O0):
<strcat_symbolic_src_length>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcat@plt>
lea    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x4,%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcat_symbolic_src_length>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rsi
movq   $0x34333231,0x8(%rsp)
33 34
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strcat@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
xor    %edi,%edi
cmp    $0x4,%eax
setge  %dil
call   1050 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.strcat_symbolic_src_length.dst = [8 x i8] c"1234\00\00\00\00"
define void @strcat_symbolic_src_length(i8* %0) {
%2 = alloca i8*
%3 = alloca [8 x i8]
store i8* %0, i8** %2
%4 = bitcast [8 x i8]* %3 to i8*
%5 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%6 = load i8*, i8** %2
%7 = call i32 @strcat(i8* %5, i8* %6)
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %3, i64 0, i64 0
%9 = call i32 @strlen(i8* %8)
%10 = icmp sge i32 %9, 4
%11 = zext i1 %10 to i32
%12 = call i32 @clang_analyzer_eval(i32 %11)
ret void
}

LLVM IR (-O2):
define void @strcat_symbolic_src_length(i8* %0) {
%2 = alloca i64
%3 = bitcast i64* %2 to i8*
store i64 875770417, i64* %2
%4 = call i32 @strcat(i8* %3, i8* %0)
%5 = call i32 @strlen(i8* %3)
%6 = icmp sgt i32 %5, 3
%7 = zext i1 %6 to i32
%8 = call i32 @clang_analyzer_eval(i32 %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void critical_error(const char *msg) {
  fprintf(stderr, "Critical error: %s\n", msg);
  exit(1);
}


x86 assembly (clang, -O0):
<critical_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<critical_error>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"Critical error: %s\0A\00"
define void @critical_error(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"Critical error: %s\0A\00"
define void @critical_error(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
__attribute__((callback(1, 2))) void *broker0(void *(*callee)(void *),
                                              void *payload) {
  return callee(payload);
}


x86 assembly (clang, -O0):
<broker0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdi
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<broker0>:
mov    %rdi,%rax
mov    %rsi,%rdi
jmp    *%rax

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

LLVM IR (-O2):
define i8* @broker0(i8* (i8*)* nocapture %0, i8* %1) {
%3 = tail call i8* %0(i8* %1)
ret i8* %3
}
char *stpcpy(char *dest, const char *src) {
  char *d = dest;
  const char *s = src;
  do
    *d++ = *s;
  while (*s++ != '\0');
  return d - 1;
}


x86 assembly (clang, -O0):
<stpcpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x20(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    111c <stpcpy+0x1c>
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<stpcpy>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movzbl (%rsi),%ecx
mov    %cl,0x1(%rax)
add    $0x1,%rax
cmpb   $0x0,(%rsi)
lea    0x1(%rsi),%rsi
jne    1110 <stpcpy+0x10>
ret

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

LLVM IR (-O2):
define i8* @stpcpy(i8* writeonly %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = phi i8* [ %1, %2 ], [ %8, %3 ]
%6 = load i8, i8* %5
%7 = getelementptr inbounds i8, i8* %4, i64 1
store i8 %6, i8* %4
%8 = getelementptr inbounds i8, i8* %5, i64 1
%9 = load i8, i8* %5
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %3
11: ; preds = %3
ret i8* %4
}
int my_strlen(char *str) {
  int i;
  i = 0;
  while (str[i]) {
    i++;
  }
  return (i);
}


x86 assembly (clang, -O0):
<my_strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     112f <my_strlen+0x2f>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <my_strlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_strlen>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpb   $0x0,(%rdi)
lea    0x1(%rdi),%rdi
jne    1110 <my_strlen+0x10>
ret

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

LLVM IR (-O2):
define i32 @my_strlen(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
void rgb2bgr(unsigned char *data, int width, int height) {
  unsigned char *pixel, tmp;
  for (pixel = data; pixel < data + width * height * 4; pixel += 4) {
    tmp = pixel[0];
    pixel[0] = pixel[2];
    pixel[2] = tmp;
  }
}


x86 assembly (clang, -O0):
<rgb2bgr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%edx
imul   -0x10(%rbp),%edx
shl    $0x2,%edx
movslq %edx,%rdx
add    %rdx,%rcx
cmp    %rcx,%rax
jae    1168 <rgb2bgr+0x68>
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x19(%rbp)
mov    -0x18(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x19(%rbp),%cl
mov    -0x18(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0x18(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x18(%rbp)
jmp    1116 <rgb2bgr+0x16>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rgb2bgr>:
imul   %edx,%esi
shl    $0x2,%esi
test   %esi,%esi
jle    1125 <rgb2bgr+0x25>
movslq %esi,%rax
add    %rdi,%rax
movzbl (%rdi),%ecx
movzbl 0x2(%rdi),%edx
mov    %dl,(%rdi)
mov    %cl,0x2(%rdi)
add    $0x4,%rdi
cmp    %rax,%rdi
jb     1110 <rgb2bgr+0x10>
ret

LLVM IR (-O0):
define void @rgb2bgr(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%9 = load i8*, i8** %4
store i8* %9, i8** %7
br label %10
10: ; preds = %32, %3
%11 = load i8*, i8** %7
%12 = load i8*, i8** %4
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = mul nsw i32 %13, %14
%16 = mul nsw i32 %15, 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %12, i64 %17
%19 = icmp ult i8* %11, %18
br i1 %19, label %20, label %35
20: ; preds = %10
%21 = load i8*, i8** %7
%22 = getelementptr inbounds i8, i8* %21, i64 0
%23 = load i8, i8* %22
store i8 %23, i8* %8
%24 = load i8*, i8** %7
%25 = getelementptr inbounds i8, i8* %24, i64 2
%26 = load i8, i8* %25
%27 = load i8*, i8** %7
%28 = getelementptr inbounds i8, i8* %27, i64 0
store i8 %26, i8* %28
%29 = load i8, i8* %8
%30 = load i8*, i8** %7
%31 = getelementptr inbounds i8, i8* %30, i64 2
store i8 %29, i8* %31
br label %32
32: ; preds = %20
%33 = load i8*, i8** %7
%34 = getelementptr inbounds i8, i8* %33, i64 4
store i8* %34, i8** %7
br label %10
35: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @rgb2bgr(i8* %0, i32 %1, i32 %2) {
%4 = shl i32 %1, 2
%5 = mul i32 %4, %2
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = icmp sgt i32 %5, 0
br i1 %8, label %9, label %16
9: ; preds = %3, %9
%10 = phi i8* [ %14, %9 ], [ %0, %3 ]
%11 = load i8, i8* %10
%12 = getelementptr inbounds i8, i8* %10, i64 2
%13 = load i8, i8* %12
store i8 %13, i8* %10
store i8 %11, i8* %12
%14 = getelementptr inbounds i8, i8* %10, i64 4
%15 = icmp ult i8* %14, %7
br i1 %15, label %9, label %16
16: ; preds = %9, %3
ret void
}
int water_modis(double surf_ref_7, double ndvi) {
  double result;
  if (surf_ref_7 < 0.04 && ndvi < 0.1) {
    result = 1;
  } else {
    result = 0;
  }
  return result;
}


x86 assembly (clang, -O0):
<water_modis>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xeea(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1146 <water_modis+0x46>
movsd  0xedf(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1146 <water_modis+0x46>
movsd  0xed4(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    114e <water_modis+0x4e>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
cvttsd2si -0x18(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<water_modis>:
movsd  0xef8(%rip),%xmm2
ucomisd %xmm0,%xmm2
seta   %al
movsd  0xef1(%rip),%xmm0
ucomisd %xmm1,%xmm0
seta   %cl
and    %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @water_modis(double %0, double %1) {
%3 = fcmp olt double %0, 4.000000e-02
%4 = fcmp olt double %1, 1.000000e-01
%5 = and i1 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int XwcTextExtents() {
  printf("XwcTextExtents called\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [23 x i8] c"XwcTextExtents called\0A\00"
define i32 @XwcTextExtents() {
%1 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [22 x i8] c"XwcTextExtents called\00"
define i32 @XwcTextExtents() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int u_int32_t;
typedef int /*<<< orphan*/ u_char;

/* Variables and functions */
int /*<<< orphan*/ __put_unaligned_be16(int, int /*<<< orphan*/ *);
void __put_unaligned_be32(u_int32_t val, u_char *p) {
  __put_unaligned_be16(val >> 16, p);
  __put_unaligned_be16(val, p + 2);
}


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

x86 assembly (clang, -O2):
<__put_unaligned_be32>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
sar    $0x10,%edi
call   1030 <__put_unaligned_be16@plt>
add    $0x8,%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <__put_unaligned_be16@plt>

LLVM IR (-O0):
define void @__put_unaligned_be32(i32 %0, i32* %1) {
%3 = alloca i32
%4 = alloca i32*
store i32 %0, i32* %3
store i32* %1, i32** %4
%5 = load i32, i32* %3
%6 = ashr i32 %5, 16
%7 = load i32*, i32** %4
%8 = call i32 @__put_unaligned_be16(i32 %6, i32* %7)
%9 = load i32, i32* %3
%10 = load i32*, i32** %4
%11 = getelementptr inbounds i32, i32* %10, i64 2
%12 = call i32 @__put_unaligned_be16(i32 %9, i32* %11)
ret void
}

LLVM IR (-O2):
define void @__put_unaligned_be32(i32 %0, i32* %1) {
%3 = ashr i32 %0, 16
%4 = tail call i32 @__put_unaligned_be16(i32 %3, i32* %1)
%5 = getelementptr inbounds i32, i32* %1, i64 2
%6 = tail call i32 @__put_unaligned_be16(i32 %0, i32* %5)
ret void
}
int fn1(int x) { return 42L - (42 / x) * x; }


x86 assembly (clang, -O0):
<fn1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x2a,%eax
cltd
idivl  -0x4(%rbp)
imul   -0x4(%rbp),%eax
movslq %eax,%rcx
mov    $0x2a,%eax
sub    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn1>:
mov    $0x2a,%eax
xor    %edx,%edx
idiv   %edi
mov    %edx,%eax
ret

LLVM IR (-O0):
define i32 @fn1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sdiv i32 42, %3
%5 = load i32, i32* %2
%6 = mul nsw i32 %4, %5
%7 = sext i32 %6 to i64
%8 = sub nsw i64 42, %7
%9 = trunc i64 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @fn1(i32 %0) {
%2 = srem i32 42, %0
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ gen_op_load_tbu();
void spr_read_tbu(void *opaque, int sprn) { gen_op_load_tbu(); }


x86 assembly (clang, -O0):
<spr_read_tbu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <gen_op_load_tbu@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @spr_read_tbu(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 (...) @gen_op_load_tbu()
ret void
}

LLVM IR (-O2):
define void @spr_read_tbu(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 (...) @gen_op_load_tbu()
ret void
}
void rop3_148_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  unsigned char stk4;
  stk4 = T | S;
  stk3 = *D & stk4;
  stk2 = S ^ stk3;
  stk1 = T ^ stk2;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_148_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0x9(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xe(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xe(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xd(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
movzbl -0xa(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0xa(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_148_1_1>:
or     %edx,%esi
and    %sil,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_148_1_1(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%11 = load i8, i8* %6
%12 = zext i8 %11 to i32
%13 = load i8, i8* %5
%14 = zext i8 %13 to i32
%15 = or i32 %12, %14
%16 = trunc i32 %15 to i8
store i8 %16, i8* %10
%17 = load i8*, i8** %4
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = load i8, i8* %10
%21 = zext i8 %20 to i32
%22 = and i32 %19, %21
%23 = trunc i32 %22 to i8
store i8 %23, i8* %9
%24 = load i8, i8* %5
%25 = zext i8 %24 to i32
%26 = load i8, i8* %9
%27 = zext i8 %26 to i32
%28 = xor i32 %25, %27
%29 = trunc i32 %28 to i8
store i8 %29, i8* %8
%30 = load i8, i8* %6
%31 = zext i8 %30 to i32
%32 = load i8, i8* %8
%33 = zext i8 %32 to i32
%34 = xor i32 %31, %33
%35 = trunc i32 %34 to i8
store i8 %35, i8* %7
%36 = load i8, i8* %7
%37 = zext i8 %36 to i32
%38 = load i8, i8* %5
%39 = zext i8 %38 to i32
%40 = xor i32 %39, -1
%41 = and i32 %37, %40
%42 = load i8, i8* %6
%43 = zext i8 %42 to i32
%44 = xor i32 %43, -1
%45 = and i32 %41, %44
%46 = load i8*, i8** %4
%47 = load i8, i8* %46
%48 = zext i8 %47 to i32
%49 = load i8, i8* %5
%50 = zext i8 %49 to i32
%51 = and i32 %48, %50
%52 = or i32 %45, %51
%53 = load i8*, i8** %4
%54 = load i8, i8* %53
%55 = zext i8 %54 to i32
%56 = load i8, i8* %6
%57 = zext i8 %56 to i32
%58 = and i32 %55, %57
%59 = or i32 %52, %58
%60 = trunc i32 %59 to i8
%61 = load i8*, i8** %4
store i8 %60, i8* %61
ret void
}

LLVM IR (-O2):
define void @rop3_148_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = or i8 %2, %1
%6 = and i8 %4, %5
store i8 %6, i8* %0
ret void
}
unsigned _hdflt(const char *name, int type) {
  register unsigned h = type;
  while (*name)
    h ^= (h << 3) ^ (unsigned)(*name++);
  return h;
}


x86 assembly (clang, -O0):
<_hdflt>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1143 <_hdflt+0x43>
mov    -0x10(%rbp),%eax
shl    $0x3,%eax
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
movsbl (%rcx),%ecx
xor    %ecx,%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1111 <_hdflt+0x11>
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_hdflt>:
mov    (%rdi),%cl
test   %cl,%cl
je     112c <_hdflt+0x2c>
add    $0x1,%rdi
nopw   0x0(%rax,%rax,1)
lea    0x0(,%rsi,8),%eax
movsbl %cl,%ecx
xor    %esi,%eax
xor    %ecx,%eax
movzbl (%rdi),%ecx
add    $0x1,%rdi
mov    %eax,%esi
test   %cl,%cl
jne    1110 <_hdflt+0x10>
ret
mov    %esi,%eax
ret

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

LLVM IR (-O2):
define i32 @_hdflt(i8* nocapture %0, i32 %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %14, %5 ], [ %3, %2 ]
%7 = phi i32 [ %13, %5 ], [ %1, %2 ]
%8 = phi i8* [ %10, %5 ], [ %0, %2 ]
%9 = shl i32 %7, 3
%10 = getelementptr inbounds i8, i8* %8, i64 1
%11 = sext i8 %6 to i32
%12 = xor i32 %9, %7
%13 = xor i32 %12, %11
%14 = load i8, i8* %10
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %5
16: ; preds = %5, %2
%17 = phi i32 [ %1, %2 ], [ %13, %5 ]
ret i32 %17
}
void gtk_vscale_new() {}


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

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

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

LLVM IR (-O2):
define void @gtk_vscale_new() {
ret void
}
signed long long zero_extendsidi_negsi(unsigned int x) { return -x; }


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

x86 assembly (clang, -O2):
<zero_extendsidi_negsi>:
mov    %edi,%eax
neg    %eax
ret

LLVM IR (-O0):
define i64 @zero_extendsidi_negsi(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sub i32 0, %3
%5 = zext i32 %4 to i64
ret i64 %5
}

LLVM IR (-O2):
define i64 @zero_extendsidi_negsi(i32 %0) {
%2 = sub i32 0, %0
%3 = zext i32 %2 to i64
ret i64 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ SYS_fork;
int /*<<< orphan*/ syscall_0(int /*<<< orphan*/);
pid_t fork(void) {
  pid_t ret;
  ret = syscall_0(SYS_fork);
  return ret;
}


x86 assembly (clang, -O0):
<fork>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
call   1030 <syscall_0@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fork>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall_0@plt>

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

LLVM IR (-O2):
@SYS_fork = global i32 0
define i32 @fork() {
%1 = load i32, i32* @SYS_fork
%2 = tail call i32 @syscall_0(i32 %1)
ret i32 %2
}
/* Type definitions */
struct DMScoord {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *DEM_DisplayCoord(char *, struct DMScoord *, char const *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
void DEM_PrintCoord(FILE *out, struct DMScoord *coord, const char *dir) {
  char buf[20];
  fprintf(out, "%s", DEM_DisplayCoord(buf, coord, dir));
}


x86 assembly (clang, -O0):
<DEM_PrintCoord>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <DEM_DisplayCoord@plt>
mov    -0x38(%rbp),%rdi
mov    %rax,%rdx
lea    0xea5(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DEM_PrintCoord>:
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
mov    %rsp,%rdi
call   1040 <DEM_DisplayCoord@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <fputs@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.DMScoord = type { i32 }
@.str = [3 x i8] c"%s\00"
define void @DEM_PrintCoord(i32* %0, %struct.DMScoord* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca %struct.DMScoord*
%6 = alloca i8*
%7 = alloca [20 x i8]
store i32* %0, i32** %4
store %struct.DMScoord* %1, %struct.DMScoord** %5
store i8* %2, i8** %6
%8 = load i32*, i32** %4
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%10 = load %struct.DMScoord*, %struct.DMScoord** %5
%11 = load i8*, i8** %6
%12 = call i8* @DEM_DisplayCoord(i8* %9, %struct.DMScoord* %10, i8* %11)
%13 = call i32 @fprintf(i32* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
ret void
}

LLVM IR (-O2):
%struct.DMScoord = type { i32 }
define void @DEM_PrintCoord(i32* nocapture %0, %struct.DMScoord* %1, i8* %2) {
%4 = alloca [20 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%6 = call i8* @DEM_DisplayCoord(i8* %5, %struct.DMScoord* %1, i8* %2)
%7 = call i32 @fputs(i8* %6, i32* %0)
ret void
}
int dec_to_bin(int x) {
  int resto;
  int bin = 0;
  int i = 1;
  while (x != 0) {
    resto = x % 2;
    x = x / 2;
    bin += resto * i;
    i = i * 10;
  }
  return bin;
}


x86 assembly (clang, -O0):
<dec_to_bin>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1154 <dec_to_bin+0x54>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
imul   $0xa,-0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1115 <dec_to_bin+0x15>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<dec_to_bin>:
xor    %eax,%eax
test   %edi,%edi
je     1139 <dec_to_bin+0x39>
mov    $0x1,%ecx
nopl   0x0(%rax,%rax,1)
mov    %edi,%edx
shr    $0x1f,%edx
add    %edi,%edx
mov    %edx,%r8d
sar    %r8d
and    $0xfffffffe,%edx
mov    %edi,%esi
sub    %edx,%esi
imul   %ecx,%esi
add    %esi,%eax
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
add    $0x1,%edi
cmp    $0x2,%edi
mov    %r8d,%edi
ja     1110 <dec_to_bin+0x10>
ret

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

LLVM IR (-O2):
define i32 @dec_to_bin(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %14, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %11, %3 ], [ 1, %1 ]
%5 = phi i32 [ %10, %3 ], [ 0, %1 ]
%6 = phi i32 [ %8, %3 ], [ %0, %1 ]
%7 = srem i32 %6, 2
%8 = sdiv i32 %6, 2
%9 = mul nsw i32 %4, %7
%10 = add nsw i32 %9, %5
%11 = mul nsw i32 %4, 10
%12 = add i32 %6, 1
%13 = icmp ult i32 %12, 3
br i1 %13, label %14, label %3
14: ; preds = %3, %1
%15 = phi i32 [ 0, %1 ], [ %10, %3 ]
ret i32 %15
}
int main() {
  int z$1 = 20;
  {
    (z$1 = 40);
    { printf("%d", z$1); }
    {
      int z$2 = 50;
      { printf("%d", z$2); }
    }
    {
      int z$2 = 60;
      { printf("%d", z$1); }
    }
    { printf("%d", z$1); }
  }
  (z$1 = 60);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x14,-0x4(%rbp)
movl   $0x28,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x32,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x3c,-0xc(%rbp)
mov    -0x4(%rbp),%esi
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x3c,-0x4(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x28,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x28,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x28,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 20, i32* %1
store i32 40, i32* %1
%4 = load i32, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %4)
store i32 50, i32* %2
%6 = load i32, i32* %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
store i32 60, i32* %3
%8 = load i32, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %1
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %10)
store i32 60, i32* %1
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 40)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 50)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 40)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 40)
ret i32 0
}
void outb(unsigned short port, unsigned char val) {
  asm volatile("outb %1, %0" : : "dN"(port), "a"(val));
}


x86 assembly (clang, -O0):
<outb>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %al,-0x3(%rbp)
mov    -0x2(%rbp),%dx
mov    -0x3(%rbp),%al
out    %al,(%dx)
pop    %rbp
ret

x86 assembly (clang, -O2):
<outb>:
mov    %esi,%eax
mov    %edi,%edx
out    %al,(%dx)
ret

LLVM IR (-O0):
define void @outb(i16 zeroext %0, i8 zeroext %1) {
%3 = alloca i16
%4 = alloca i8
store i16 %0, i16* %3
store i8 %1, i8* %4
%5 = load i16, i16* %3
%6 = load i8, i8* %4
ret void
}

LLVM IR (-O2):
define void @outb(i16 zeroext %0, i8 zeroext %1) {
tail call void asm sideeffect "outb $1, $0", "{dx}N,{ax},~{dirflag},~{fpsr},~{flags}"(i16 %0, i8 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
void not42(int i) { assert(i != 42); }


x86 assembly (clang, -O0):
<not42>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x2a,-0x4(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<not42>:
xor    %eax,%eax
cmp    $0x2a,%edi
setne  %al
mov    %eax,%edi
jmp    1030 <assert@plt>

LLVM IR (-O0):
define void @not42(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 42
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5)
ret void
}

LLVM IR (-O2):
define void @not42(i32 %0) {
%2 = icmp ne i32 %0, 42
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
ret void
}
/* Variables and functions */
char *addColor(char *, char *);
char *bold(char *str) { return addColor("1", str); }


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

x86 assembly (clang, -O2):
<bold>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <addColor@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"1\00"
define i8* @bold(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @addColor(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i8* %4
}

LLVM IR (-O2):
@.str = [2 x i8] c"1\00"
define i8* @bold(i8* %0) {
%2 = tail call i8* @addColor(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %0)
ret i8* %2
}
void softc_strfreev(char **str) {
  char **p;
  for (p = str; *p; p++)
    free(*p);
  free(str);
}


x86 assembly (clang, -O0):
<softc_strfreev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     114f <softc_strfreev+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <softc_strfreev+0x14>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<softc_strfreev>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1141 <softc_strfreev+0x31>
lea    0x8(%r14),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1030 <free@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <softc_strfreev+0x20>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @softc_strfreev(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = icmp eq i8* %2, null
br i1 %3, label %10, label %4
4: ; preds = %1, %4
%5 = phi i8* [ %8, %4 ], [ %2, %1 ]
%6 = phi i8** [ %7, %4 ], [ %0, %1 ]
tail call void @free(i8* %5)
%7 = getelementptr inbounds i8*, i8** %6, i64 1
%8 = load i8*, i8** %7
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %4
10: ; preds = %4, %1
%11 = bitcast i8** %0 to i8*
tail call void @free(i8* %11)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
uint16_t read_uint2(const char *buf) { return *(uint16_t *)buf; }


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

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

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

LLVM IR (-O2):
define i32 @read_uint2(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
ret i32 %3
}
void daemon_ch(void) { return; }


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

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

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

LLVM IR (-O2):
define void @daemon_ch() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ execvp(char *, char **);
int /*<<< orphan*/ memmove(char **, char **, int);
int /*<<< orphan*/ perror(char *);
int exec_child(int argc, char *argv[]) {
  memmove(&argv[0], &argv[1], (argc - 1) * sizeof(char *));
  argv[argc - 1] = NULL;
  execvp(argv[0], argv);
  perror("exec error");
  return 255;
}


x86 assembly (clang, -O0):
<exec_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edx
call   1030 <memmove@plt>
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <execvp@plt>
lea    0xe76(%rip),%rdi
call   1040 <perror@plt>
mov    $0xff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<exec_child>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
add    $0x8,%rsi
movslq %edi,%r14
lea    -0x8(,%r14,8),%edx
ff
mov    %rbx,%rdi
call   1030 <memmove@plt>
movq   $0x0,-0x8(%rbx,%r14,8)
mov    (%rbx),%rdi
mov    %rbx,%rsi
call   1050 <execvp@plt>
lea    0xe97(%rip),%rdi
call   1040 <perror@plt>
mov    $0xff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [11 x i8] c"exec error\00"
define i32 @exec_child(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8**, i8*** %4
%8 = getelementptr inbounds i8*, i8** %7, i64 1
%9 = load i32, i32* %3
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = mul i64 %11, 8
%13 = trunc i64 %12 to i32
%14 = call i32 @memmove(i8** %6, i8** %8, i32 %13)
%15 = load i8**, i8*** %4
%16 = load i32, i32* %3
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8*, i8** %15, i64 %18
store i8* null, i8** %19
%20 = load i8**, i8*** %4
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = load i8**, i8*** %4
%24 = call i32 @execvp(i8* %22, i8** %23)
%25 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret i32 255
}

LLVM IR (-O2):
@.str = [11 x i8] c"exec error\00"
define i32 @exec_child(i32 %0, i8** %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = add nsw i32 %0, -1
%5 = sext i32 %4 to i64
%6 = shl i32 %4, 3
%7 = tail call i32 @memmove(i8** %1, i8** %3, i32 %6)
%8 = getelementptr inbounds i8*, i8** %1, i64 %5
store i8* null, i8** %8
%9 = load i8*, i8** %1
%10 = tail call i32 @execvp(i8* %9, i8** %1)
%11 = tail call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret i32 255
}
int size(char s[]) {
  int i;
  for (i = 0; s[i] != '\0'; ++i)
    ;
  return ++i;
}


x86 assembly (clang, -O0):
<size>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1137 <size+0x37>
jmp    1129 <size+0x29>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <size+0xf>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<size>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmpb   $0x0,(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <size+0x10>
ret

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

LLVM IR (-O2):
define i32 @size(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
%10 = add nuw nsw i32 %9, 1
ret i32 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fgetc(int /*<<< orphan*/ *);
void fgetc_255_bad(FILE *f) {
  int arr[255];
  int c = fgetc(f);
  if (c >= 0) {
    arr[c] = 42;
  }
}


x86 assembly (clang, -O0):
<fgetc_255_bad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %eax,-0x414(%rbp)
cmpl   $0x0,-0x414(%rbp)
jl     114d <fgetc_255_bad+0x3d>
movslq -0x414(%rbp),%rax
movl   $0x2a,-0x410(%rbp,%rax,4)
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fgetc_255_bad>:
jmp    1030 <fgetc@plt>

LLVM IR (-O0):
define void @fgetc_255_bad(i32* %0) {
%2 = alloca i32*
%3 = alloca [255 x i32]
%4 = alloca i32
store i32* %0, i32** %2
%5 = load i32*, i32** %2
%6 = call i32 @fgetc(i32* %5)
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, i32* %4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [255 x i32], [255 x i32]* %3, i64 0, i64 %11
store i32 42, i32* %12
br label %13
13: ; preds = %9, %1
ret void
}

LLVM IR (-O2):
define void @fgetc_255_bad(i32* nocapture %0) {
%2 = tail call i32 @fgetc(i32* %0)
ret void
}
void RTFileAioReqDestroy(void) {}


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

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

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

LLVM IR (-O2):
define void @RTFileAioReqDestroy() {
ret void
}