xunge/DecIR huggingface dataset:
int addnums(int n0, int n1, int n2, int n3, int n4, int n5, int n6, int n7,
            int n8, int n9) {
  int result;
  result = n0 + n1 + n2 + n3 + n4 + n5 + n6 + n7 + n8 + n9;
  return result;
}


x86 assembly (clang, -O0):
<addnums>:
push   %rbp
mov    %rsp,%rbp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
add    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
add    0x10(%rbp),%eax
add    0x18(%rbp),%eax
add    0x20(%rbp),%eax
add    0x28(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<addnums>:
lea    (%rdi,%rsi,1),%eax
add    %edx,%eax
add    %ecx,%eax
add    %r8d,%eax
add    %r9d,%eax
add    0x8(%rsp),%eax
add    0x10(%rsp),%eax
add    0x18(%rsp),%eax
add    0x20(%rsp),%eax
ret

LLVM IR (-O0):
define i32 @addnums(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store i32 %4, i32* %15
store i32 %5, i32* %16
store i32 %6, i32* %17
store i32 %7, i32* %18
store i32 %8, i32* %19
store i32 %9, i32* %20
%22 = load i32, i32* %11
%23 = load i32, i32* %12
%24 = add nsw i32 %22, %23
%25 = load i32, i32* %13
%26 = add nsw i32 %24, %25
%27 = load i32, i32* %14
%28 = add nsw i32 %26, %27
%29 = load i32, i32* %15
%30 = add nsw i32 %28, %29
%31 = load i32, i32* %16
%32 = add nsw i32 %30, %31
%33 = load i32, i32* %17
%34 = add nsw i32 %32, %33
%35 = load i32, i32* %18
%36 = add nsw i32 %34, %35
%37 = load i32, i32* %19
%38 = add nsw i32 %36, %37
%39 = load i32, i32* %20
%40 = add nsw i32 %38, %39
store i32 %40, i32* %21
%41 = load i32, i32* %21
ret i32 %41
}

LLVM IR (-O2):
define i32 @addnums(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = add nsw i32 %1, %0
%12 = add nsw i32 %11, %2
%13 = add nsw i32 %12, %3
%14 = add nsw i32 %13, %4
%15 = add nsw i32 %14, %5
%16 = add nsw i32 %15, %6
%17 = add nsw i32 %16, %7
%18 = add nsw i32 %17, %8
%19 = add nsw i32 %18, %9
ret i32 %19
}
/* Variables and functions */
int /*<<< orphan*/ mstring_find(char *, char);
char *mstring_get_sub_py(char *, int /*<<< orphan*/, int);
char *mstring_find_after(char *old, char c) {
  return mstring_get_sub_py(old, mstring_find(old, c), -1);
}


x86 assembly (clang, -O0):
<mstring_find_after>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
movsbl -0x9(%rbp),%esi
call   1030 <mstring_find@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%esi
mov    $0xffffffff,%edx
call   1040 <mstring_get_sub_py@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mstring_find_after>:
push   %rbx
mov    %rdi,%rbx
call   1030 <mstring_find@plt>
mov    %rbx,%rdi
mov    %eax,%esi
mov    $0xffffffff,%edx
pop    %rbx
jmp    1040 <mstring_get_sub_py@plt>

LLVM IR (-O0):
define i8* @mstring_find_after(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
store i8 %1, i8* %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %3
%7 = load i8, i8* %4
%8 = call i32 @mstring_find(i8* %6, i8 signext %7)
%9 = call i8* @mstring_get_sub_py(i8* %5, i32 %8, i32 -1)
ret i8* %9
}

LLVM IR (-O2):
define i8* @mstring_find_after(i8* %0, i8 signext %1) {
%3 = tail call i32 @mstring_find(i8* %0, i8 signext %1)
%4 = tail call i8* @mstring_get_sub_py(i8* %0, i32 %3, i32 -1)
ret i8* %4
}
/* Variables and functions */
void *malloc(size_t);
void *dk_alloc(size_t c) { return malloc(c); }


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

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

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

LLVM IR (-O2):
define noalias i8* @dk_alloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
ret i8* %2
}
int toup(int c) {
  if (c >= 'a' && c <= 'z')
    return c - 'a' + 'A';
  else
    return c;
}


x86 assembly (clang, -O0):
<toup>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x61,-0x8(%rbp)
jl     112c <toup+0x2c>
cmpl   $0x7a,-0x8(%rbp)
jg     112c <toup+0x2c>
mov    -0x8(%rbp),%eax
sub    $0x61,%eax
add    $0x41,%eax
mov    %eax,-0x4(%rbp)
jmp    1132 <toup+0x32>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<toup>:
lea    -0x61(%rdi),%ecx
lea    -0x20(%rdi),%eax
cmp    $0x1a,%ecx
cmovae %edi,%eax
ret

LLVM IR (-O0):
define i32 @toup(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 122
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = load i32, i32* %3
%11 = sub nsw i32 %10, 97
%12 = add nsw i32 %11, 65
store i32 %12, i32* %2
br label %15
13: ; preds = %6, %1
%14 = load i32, i32* %3
store i32 %14, i32* %2
br label %15
15: ; preds = %13, %9
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @toup(i32 %0) {
%2 = add i32 %0, -97
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, -32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
/* Variables and functions */
void *realloc(void *, size_t);
void *Memento_realloc(void *b, size_t s) { return realloc(b, s); }


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

x86 assembly (clang, -O2):
<Memento_realloc>:
jmp    1030 <realloc@plt>

LLVM IR (-O0):
define i8* @Memento_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* @realloc(i8* %5, i64 %6)
ret i8* %7
}

LLVM IR (-O2):
define noalias i8* @Memento_realloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
ret i8* %3
}
char *skip_word(char *str) {
  for (; *str && (*str != ' ' && *str != '\t' && *str != '='); str++)
    ;
  return str;
}


x86 assembly (clang, -O0):
<skip_word>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     115d <skip_word+0x5d>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0xa(%rbp)
je     1157 <skip_word+0x57>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0xa(%rbp)
je     1157 <skip_word+0x57>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3d,%eax
setne  %al
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    116d <skip_word+0x6d>
jmp    1183 <skip_word+0x83>
jmp    1172 <skip_word+0x72>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <skip_word+0x8>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_word>:
mov    %rdi,%rax
movabs $0x2000000100000201,%rcx
jmp    1114 <skip_word+0x14>
nop
add    $0x1,%rax
movzbl (%rax),%edx
cmp    $0x3d,%rdx
ja     1110 <skip_word+0x10>
bt     %rdx,%rcx
jae    1110 <skip_word+0x10>
ret

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

LLVM IR (-O2):
define i8* @skip_word(i8* %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %7
i8 32, label %7
i8 9, label %7
i8 61, label %7
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2, %2, %2, %2
ret i8* %3
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
__attribute__((always_)) uint8_t clamp_uint8_t(uint8_t a, uint8_t b,
                                               uint8_t c) {
  return a < b ? b : a > c ? c : a;
}


x86 assembly (clang, -O0):
<clamp_uint8_t>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    112b <clamp_uint8_t+0x2b>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    1156 <clamp_uint8_t+0x56>
mov    -0x8(%rbp),%rax
cmp    -0x18(%rbp),%rax
jle    1146 <clamp_uint8_t+0x46>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    114e <clamp_uint8_t+0x4e>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<clamp_uint8_t>:
mov    %rdx,%rax
cmp    %rdx,%rdi
cmovle %rdi,%rax
cmp    %rsi,%rdi
cmovl  %rsi,%rax
ret

LLVM IR (-O0):
define i64 @clamp_uint8_t(i64 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load i64, i64* %4
%8 = load i64, i64* %5
%9 = icmp slt i64 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = load i64, i64* %5
br label %22
12: ; preds = %3
%13 = load i64, i64* %4
%14 = load i64, i64* %6
%15 = icmp sgt i64 %13, %14
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = load i64, i64* %6
br label %20
18: ; preds = %12
%19 = load i64, i64* %4
br label %20
20: ; preds = %18, %16
%21 = phi i64 [ %17, %16 ], [ %19, %18 ]
br label %22
22: ; preds = %20, %10
%23 = phi i64 [ %11, %10 ], [ %21, %20 ]
ret i64 %23
}

LLVM IR (-O2):
define i64 @clamp_uint8_t(i64 %0, i64 %1, i64 %2) {
%4 = icmp slt i64 %0, %1
%5 = icmp sgt i64 %0, %2
%6 = select i1 %5, i64 %2, i64 %0
%7 = select i1 %4, i64 %1, i64 %6
ret i64 %7
}
void BLZ_Invert(char *buffer, int length) {
  char *bottom, ch;
  bottom = buffer + length - 1;
  while (buffer < bottom) {
    ch = *buffer;
    *buffer = *bottom;
    buffer++;
    *bottom = ch;
    bottom--;
  }
}


x86 assembly (clang, -O0):
<BLZ_Invert>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
add    %rcx,%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    1167 <BLZ_Invert+0x67>
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x19(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x19(%rbp),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
jmp    111e <BLZ_Invert+0x1e>
pop    %rbp
ret

x86 assembly (clang, -O2):
<BLZ_Invert>:
movslq %esi,%rax
add    %rdi,%rax
add    $0xffffffffffffffff,%rax
cmp    %rdi,%rax
jbe    113c <BLZ_Invert+0x3c>
add    $0x1,%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl -0x1(%rdi),%ecx
movzbl (%rax),%edx
mov    %dl,-0x1(%rdi)
mov    %cl,(%rax)
add    $0xffffffffffffffff,%rax
lea    0x1(%rdi),%rcx
cmp    %rax,%rdi
mov    %rcx,%rdi
jb     1120 <BLZ_Invert+0x20>
ret

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

LLVM IR (-O2):
define void @BLZ_Invert(i8* %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = getelementptr inbounds i8, i8* %4, i64 -1
%6 = icmp ugt i8* %5, %0
br i1 %6, label %7, label %15
7: ; preds = %2, %7
%8 = phi i8* [ %13, %7 ], [ %5, %2 ]
%9 = phi i8* [ %12, %7 ], [ %0, %2 ]
%10 = load i8, i8* %9
%11 = load i8, i8* %8
store i8 %11, i8* %9
%12 = getelementptr inbounds i8, i8* %9, i64 1
store i8 %10, i8* %8
%13 = getelementptr inbounds i8, i8* %8, i64 -1
%14 = icmp ult i8* %12, %13
br i1 %14, label %7, label %15
15: ; preds = %7, %2
ret void
}
/* Variables and functions */
int f387(int *);
int f388(int *p) { return f387(p); }


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

x86 assembly (clang, -O2):
<f388>:
jmp    1030 <f387@plt>

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

LLVM IR (-O2):
define i32 @f388(i32* %0) {
%2 = tail call i32 @f387(i32* %0)
ret i32 %2
}
void XrmStringToBindingQuarkList() {}


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

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

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

LLVM IR (-O2):
define void @XrmStringToBindingQuarkList() {
ret void
}
int app_init(long mesgwin) { return (1); }


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

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

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

LLVM IR (-O2):
define i32 @app_init(i64 %0) {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void big_str(char *a_str) { printf("nice big str yo: %s\n", a_str); }


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

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

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

LLVM IR (-O2):
@.str = [21 x i8] c"nice big str yo: %s\0A\00"
define void @big_str(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int frame1();
int main(void) {
  int ret = frame1() - 1;
  return ret;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @frame1()
%4 = sub nsw i32 %3, 1
store i32 %4, i32* %2
%5 = load i32, i32* %2
ret i32 %5
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @frame1()
%2 = add nsw i32 %1, -1
ret i32 %2
}
void UAPP_BkgdTask(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @cache_data_enable() {
ret void
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int store_quaddobl_solutions(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(671, a, b, c);
  return fail;
}


x86 assembly (clang, -O0):
<store_quaddobl_solutions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x29f,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<store_quaddobl_solutions>:
mov    $0x29f,%edi
jmp    1030 <_ada_use_c2phc@plt>

LLVM IR (-O0):
define i32 @store_quaddobl_solutions() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32
%4 = alloca double*
%5 = load i32*, i32** %1
%6 = load i32*, i32** %2
%7 = load double*, double** %4
%8 = call i32 @_ada_use_c2phc(i32 671, i32* %5, i32* %6, double* %7)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @store_quaddobl_solutions() {
%1 = tail call i32 @_ada_use_c2phc(i32 671, i32* undef, i32* undef, double* undef)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ DeinitFields();
void SwitchFrom_ST7(void) { DeinitFields(); }


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

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

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

LLVM IR (-O2):
define void @SwitchFrom_ST7() {
%1 = tail call i32 (...) @DeinitFields()
ret void
}
void do_frstor(void *p) {
  asm __volatile__("frstor (%0)" : : "r"(p) : "memory");
}


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

x86 assembly (clang, -O2):
<do_frstor>:
frstor (%rdi)
ret

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

LLVM IR (-O2):
define void @do_frstor(i8* %0) {
tail call void asm sideeffect "frstor ($0)", "r,~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
main(void) {
  int a = 1, b = 2;
  puts("");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
%4 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i32 10)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ heaperr();
void *realloc(void *, size_t);
void *reallocate(void *a, size_t n) {
  if ((a = realloc(a, n)) == 0)
    heaperr();
  return a;
}


x86 assembly (clang, -O0):
<reallocate>:
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   1040 <realloc@plt>
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
jne    1152 <reallocate+0x32>
mov    $0x0,%al
call   1030 <heaperr@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reallocate>:
push   %rbx
call   1040 <realloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1135 <reallocate+0x15>
xor    %eax,%eax
call   1030 <heaperr@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @reallocate(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* @realloc(i8* %5, i64 %6)
store i8* %7, i8** %3
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @heaperr()
br label %11
11: ; preds = %9, %2
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
define noalias i8* @reallocate(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (...) @heaperr()
br label %7
7: ; preds = %5, %2
ret i8* %3
}
/* Variables and functions */
scalar_t__ ulong_hash(void const *, size_t);
int int_hash(const void *data, size_t size) {
  return (int)ulong_hash(data, size);
}


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

x86 assembly (clang, -O2):
<int_hash>:
jmp    1030 <ulong_hash@plt>

LLVM IR (-O0):
define i32 @int_hash(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 i64 @ulong_hash(i8* %5, i64 %6)
%8 = trunc i64 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @int_hash(i8* %0, i64 %1) {
%3 = tail call i64 @ulong_hash(i8* %0, i64 %1)
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, ...);
int main() {
  printf("%d %d \n", 3 & 1, 3 | 1);
  printf("%d \n", 3 ^ 1);
  printf("%d %d \n", 3 << 1, 3 >> 1);
  printf("%d \n", 1 << 32 - 1);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecd(%rip),%rbx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x80000000,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [8 x i8] c"%d %d \0A\00"
@.str.1 = [5 x i8] c"%d \0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 1, i32 3)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 6, i32 1)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 -2147483648)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ lcd_op(int, int, int /*<<< orphan*/);
void lcd_leftscroll(void) { lcd_op(0x10 | 0x8 | 0x0, 0x1, 0); }


x86 assembly (clang, -O0):
<lcd_leftscroll>:
push   %rbp
mov    %rsp,%rbp
mov    $0x18,%edi
mov    $0x1,%esi
xor    %edx,%edx
call   1030 <lcd_op@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_leftscroll>:
mov    $0x18,%edi
mov    $0x1,%esi
xor    %edx,%edx
jmp    1030 <lcd_op@plt>

LLVM IR (-O0):
define void @lcd_leftscroll() {
%1 = call i32 @lcd_op(i32 24, i32 1, i32 0)
ret void
}

LLVM IR (-O2):
define void @lcd_leftscroll() {
%1 = tail call i32 @lcd_op(i32 24, i32 1, i32 0)
ret void
}
long foo_long(_Complex long x) { return __real__ x; }


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

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

LLVM IR (-O0):
define i64 @foo_long(i64 %0, i64 %1) {
%3 = alloca { i64, i64 }
%4 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 0
store i64 %0, i64* %4
%5 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 1
store i64 %1, i64* %5
%6 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %3, i32 0, i32 0
%7 = load i64, i64* %6
ret i64 %7
}

LLVM IR (-O2):
define i64 @foo_long(i64 returned %0, i64 %1) {
ret i64 %0
}
void flexcan2_iomux_config() {}


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

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

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

LLVM IR (-O2):
define void @flexcan2_iomux_config() {
ret void
}
/* Type definitions */
struct mntent {
  int dummy;
};

/* Variables and functions */
char *hasmntopt(const struct mntent *mnt __attribute__((unused)),
                const char *opt __attribute__((unused))) {
  return NULL;
}


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

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

LLVM IR (-O0):
%struct.mntent = type { i32 }
define i8* @hasmntopt(%struct.mntent* %0, i8* %1) {
%3 = alloca %struct.mntent*
%4 = alloca i8*
store %struct.mntent* %0, %struct.mntent** %3
store i8* %1, i8** %4
ret i8* null
}

LLVM IR (-O2):
%struct.mntent = type { i32 }
define noalias i8* @hasmntopt(%struct.mntent* nocapture readnone %0, i8* nocapture readnone %1) {
ret i8* null
}
int getmbi(int (*getin)(void *in), void *in) {
  int i, mbi = 0;
  do {
    i = getin(in);
    if (i < 0)
      return (-1);
    mbi = mbi << 7 | i & 0x7f;
  } while (i & 0x80);
  return (mbi);
}


x86 assembly (clang, -O0):
<getmbi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rdi
call   *%rax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    113a <getmbi+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    1162 <getmbi+0x62>
mov    -0x20(%rbp),%eax
shl    $0x7,%eax
mov    -0x1c(%rbp),%ecx
and    $0x7f,%ecx
or     %ecx,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    1117 <getmbi+0x17>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getmbi>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%r15
xor    %ebx,%ebx
nopl   (%rax)
mov    %r14,%rdi
call   *%r15
test   %eax,%eax
js     112a <getmbi+0x2a>
shl    $0x7,%ebx
mov    %eax,%ecx
and    $0x7f,%ecx
or     %ecx,%ebx
test   $0x80,%al
jne    1110 <getmbi+0x10>
jmp    112f <getmbi+0x2f>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @getmbi(i32 (i8*)* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32 (i8*)*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 (i8*)* %0, i32 (i8*)** %4
store i8* %1, i8** %5
store i32 0, i32* %7
br label %8
8: ; preds = %21, %2
%9 = load i32 (i8*)*, i32 (i8*)** %4
%10 = load i8*, i8** %5
%11 = call i32 %9(i8* %10)
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %8
store i32 -1, i32* %3
br label %27
15: ; preds = %8
%16 = load i32, i32* %7
%17 = shl i32 %16, 7
%18 = load i32, i32* %6
%19 = and i32 %18, 127
%20 = or i32 %17, %19
store i32 %20, i32* %7
br label %21
21: ; preds = %15
%22 = load i32, i32* %6
%23 = and i32 %22, 128
%24 = icmp ne i32 %23, 0
br i1 %24, label %8, label %25
25: ; preds = %21
%26 = load i32, i32* %7
store i32 %26, i32* %3
br label %27
27: ; preds = %25, %14
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
define i32 @getmbi(i32 (i8*)* nocapture %0, i8* %1) {
br label %3
3: ; preds = %7, %2
%4 = phi i32 [ 0, %2 ], [ %10, %7 ]
%5 = tail call i32 %0(i8* %1)
%6 = icmp slt i32 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %3
%8 = shl i32 %4, 7
%9 = and i32 %5, 127
%10 = or i32 %9, %8
%11 = and i32 %5, 128
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %3
13: ; preds = %7, %3
%14 = phi i32 [ -1, %3 ], [ %10, %7 ]
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_bytes_to_usec() {
  printf("NOT IMPLEMENTED:"
         "pa_bytes_to_usec"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [34 x i8] c"NOT IMPLEMENTED:pa_bytes_to_usec\0A\00"
define i32 @pa_bytes_to_usec() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [33 x i8] c"NOT IMPLEMENTED:pa_bytes_to_usec\00"
define i32 @pa_bytes_to_usec() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
float sqrtf(float);
float EaseCircIn(float t, float b, float c, float d) {
  t /= d;
  return (-c * (sqrtf(1.0f - t * t) - 1.0f) + b);
}


x86 assembly (clang, -O0):
<EaseCircIn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x10(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
divss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0xc(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x4(%rbp),%xmm1
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm1,%xmm0
movss  0xe87(%rip),%xmm1
addss  %xmm1,%xmm0
call   1030 <sqrtf@plt>
movaps %xmm0,%xmm2
movss  -0x14(%rbp),%xmm0
movss  0xe6e(%rip),%xmm1
subss  %xmm1,%xmm2
movss  -0x8(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EaseCircIn>:
sub    $0x28,%rsp
movaps %xmm0,%xmm4
divss  %xmm3,%xmm4
xorps  0xede(%rip),%xmm2
mulss  %xmm4,%xmm4
movss  0xee2(%rip),%xmm0
subss  %xmm4,%xmm0
xorps  %xmm3,%xmm3
ucomiss %xmm3,%xmm0
jb     1140 <EaseCircIn+0x30>
sqrtss %xmm0,%xmm0
jmp    115b <EaseCircIn+0x4b>
movaps %xmm2,0x10(%rsp)
movss  %xmm1,0xc(%rsp)
call   1030 <sqrtf@plt>
movss  0xc(%rsp),%xmm1
movaps 0x10(%rsp),%xmm2
addss  0xeb1(%rip),%xmm0
mulss  %xmm0,%xmm2
addss  %xmm1,%xmm2
movaps %xmm2,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define float @EaseCircIn(float %0, float %1, float %2, float %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %8
%10 = load float, float* %5
%11 = fdiv float %10, %9
store float %11, float* %5
%12 = load float, float* %7
%13 = fneg float %12
%14 = load float, float* %5
%15 = load float, float* %5
%16 = fneg float %14
%17 = call float @llvm.fmuladd.f32(float %16, float %15, float 1.000000e+00)
%18 = call float @sqrtf(float %17)
%19 = fsub float %18, 1.000000e+00
%20 = load float, float* %6
%21 = call float @llvm.fmuladd.f32(float %13, float %19, float %20)
ret float %21
}

LLVM IR (-O2):
define float @EaseCircIn(float %0, float %1, float %2, float %3) {
%5 = fdiv float %0, %3
%6 = fneg float %2
%7 = fneg float %5
%8 = tail call float @llvm.fmuladd.f32(float %7, float %5, float 1.000000e+00)
%9 = tail call float @sqrtf(float %8)
%10 = fadd float %9, -1.000000e+00
%11 = tail call float @llvm.fmuladd.f32(float %6, float %10, float %1)
ret float %11
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t rmd_f3(uint32_t x, uint32_t y, uint32_t z) { return (x | ~y) ^ z; }


x86 assembly (clang, -O0):
<rmd_f3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
xor    $0xffffffff,%ecx
or     %ecx,%eax
xor    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rmd_f3>:
mov    %esi,%eax
not    %eax
or     %edi,%eax
xor    %edx,%eax
ret

LLVM IR (-O0):
define i32 @rmd_f3(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = xor i32 %8, -1
%10 = or i32 %7, %9
%11 = load i32, i32* %6
%12 = xor i32 %10, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @rmd_f3(i32 %0, i32 %1, i32 %2) {
%4 = xor i32 %1, -1
%5 = or i32 %4, %0
%6 = xor i32 %5, %2
ret i32 %6
}
void handle_50(sig) int sig;
{}


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

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

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

LLVM IR (-O2):
define void @handle_50(i32 %0) {
ret void
}
/* Variables and functions */
double atan2(double, int);
double atan(double x) { return atan2(x, 1.); }


x86 assembly (clang, -O0):
<atan>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x1,%edi
call   1030 <atan2@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define double @atan(double %0) {
%2 = tail call double @atan2(double %0, i32 1)
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_error();
void ldv_assert(int expression) {
  if (!expression) {
  ERROR:
    __VERIFIER_error();
  };
  return;
}


x86 assembly (clang, -O0):
<ldv_assert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1131 <ldv_assert+0x21>
jmp    112a <ldv_assert+0x1a>
mov    $0x0,%al
call   1030 <__VERIFIER_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ldv_assert>:
test   %edi,%edi
je     1115 <ldv_assert+0x5>
ret
xor    %eax,%eax
jmp    1030 <__VERIFIER_error@plt>

LLVM IR (-O0):
define void @ldv_assert(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
br label %6
6: ; preds = %5
%7 = call i32 (...) @__VERIFIER_error()
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
define void @ldv_assert(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (...) @__VERIFIER_error()
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char *, char *);
int line_issqloperationcomplete(char *line) {
  return (strcmp(line, "--- SQL operation complete.\n") == 0);
}


x86 assembly (clang, -O0):
<line_issqloperationcomplete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<line_issqloperationcomplete>:
push   %rax
lea    0xee8(%rip),%rsi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"--- SQL operation complete.\0A\00"
define i32 @line_issqloperationcomplete(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
@.str = [29 x i8] c"--- SQL operation complete.\0A\00"
define i32 @line_issqloperationcomplete(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
void ff_hevc_put_hevc_qpel_hv32_10_avx2() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_qpel_hv32_10_avx2() {
ret void
}
/* Variables and functions */
scalar_t__ errno;
int /*<<< orphan*/ printf(char *, char *, char *, char *, scalar_t__);
char *strerror(scalar_t__);
void error() {
  if (errno != 0)
    printf("%s [ ERROR ]%s\n%s (errno=%d).\n", "\033[1;31m", "\033[0m",
           strerror(errno), errno);
}


x86 assembly (clang, -O0):
<error>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
cmpq   $0x0,(%rax)
je     116b <error+0x4b>
mov    0x2ea4(%rip),%rax
mov    (%rax),%rdi
call   1040 <strerror@plt>
mov    %rax,%rcx
mov    0x2e92(%rip),%rax
mov    (%rax),%r8
lea    0xea8(%rip),%rdi
lea    0xec0(%rip),%rsi
lea    0xec1(%rip),%rdx
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<error>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%rdi
test   %rdi,%rdi
je     1156 <error+0x36>
call   1040 <strerror@plt>
mov    (%rbx),%r8
lea    0xec1(%rip),%rdi
lea    0xed9(%rip),%rsi
lea    0xeda(%rip),%rdx
mov    %rax,%rcx
pop    %rbx
jmp    1030 <printf@plt>
pop    %rbx
ret

LLVM IR (-O0):
@errno = global i64 0
@.str = [31 x i8] c"%s [ ERROR ]%s\0A%s (errno=%d).\0A\00"
@.str.1 = [8 x i8] c"\1B[1;31m\00"
@.str.2 = [5 x i8] c"\1B[0m\00"
define void @error() {
%1 = load i64, i64* @errno
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %8
3: ; preds = %0
%4 = load i64, i64* @errno
%5 = call i8* @strerror(i64 %4)
%6 = load i64, i64* @errno
%7 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %5, i64 %6)
br label %8
8: ; preds = %3, %0
ret void
}

LLVM IR (-O2):
@errno = global i64 0
@.str = [31 x i8] c"%s [ ERROR ]%s\0A%s (errno=%d).\0A\00"
@.str.1 = [8 x i8] c"\1B[1;31m\00"
@.str.2 = [5 x i8] c"\1B[0m\00"
define void @error() {
%1 = load i64, i64* @errno
%2 = icmp eq i64 %1, 0
br i1 %2, label %7, label %3
3: ; preds = %0
%4 = tail call i8* @strerror(i64 %1)
%5 = load i64, i64* @errno
%6 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %4, i64 %5)
br label %7
7: ; preds = %3, %0
ret void
}
void timer_a_mode_stop(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @foo572() {
ret void
}
/* Variables and functions */
int getpid();
int /*<<< orphan*/ sprintf(char *, char *, int, int);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
void ParentProcess(void) {
  char buf[100];
  wait(NULL);
  sprintf(buf, "Hello World from Parent ! from pid %d, value = %d\n", getpid(),
          1);
  write(1, buf, strlen(buf));
}


x86 assembly (clang, -O0):
<ParentProcess>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1070 <wait@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    $0x0,%al
call   1040 <getpid@plt>
mov    -0x80(%rbp),%rdi
mov    %eax,%edx
lea    0xe80(%rip),%rsi
mov    $0x1,%ecx
call   1060 <sprintf@plt>
lea    -0x70(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x70(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x78(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ParentProcess>:
push   %rbx
sub    $0x70,%rsp
xor    %edi,%edi
call   1070 <wait@plt>
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xe96(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %eax,%edx
mov    $0x1,%ecx
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [51 x i8] c"Hello World from Parent ! from pid %d, value = %d\0A\00"
define void @ParentProcess() {
%1 = alloca [100 x i8]
%2 = call i32 @wait(i32* null)
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%4 = call i32 (...) @getpid()
%5 = call i32 @sprintf(i8* %3, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 %4, i32 1)
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @write(i32 1, i8* %6, i32 %8)
ret void
}

LLVM IR (-O2):
@.str = [51 x i8] c"Hello World from Parent ! from pid %d, value = %d\0A\00"
define void @ParentProcess() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @wait(i32* null)
%4 = tail call i32 (...) @getpid()
%5 = call i32 @sprintf(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 %4, i32 1)
%6 = call i32 @strlen(i8* %2)
%7 = call i32 @write(i32 1, i8* %2, i32 %6)
ret void
}
/* Variables and functions */
char *convertToTitle(int);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  printf("%s\n", convertToTitle(28));
  printf("%s\n", convertToTitle(26));
  printf("%s\n", convertToTitle(25));
  printf("%s\n", convertToTitle(2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1c,%edi
call   1040 <convertToTitle@plt>
mov    %rax,%rsi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1a,%edi
call   1040 <convertToTitle@plt>
mov    %rax,%rsi
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
mov    $0x19,%edi
call   1040 <convertToTitle@plt>
mov    %rax,%rsi
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <convertToTitle@plt>
mov    %rax,%rsi
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1c,%edi
call   1040 <convertToTitle@plt>
lea    0xece(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x1a,%edi
call   1040 <convertToTitle@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x19,%edi
call   1040 <convertToTitle@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <convertToTitle@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i8* @convertToTitle(i32 28)
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i8* @convertToTitle(i32 26)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i8* @convertToTitle(i32 25)
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = call i8* @convertToTitle(i32 2)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = tail call i8* @convertToTitle(i32 28)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i8* @convertToTitle(i32 26)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i8* @convertToTitle(i32 25)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = tail call i8* @convertToTitle(i32 2)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %7)
ret i32 0
}
/* Type definitions */
struct _cgatsAlloc {
  int dummy;
};

/* Variables and functions */
void *calloc(size_t, size_t);
void *cgatsAllocStd_calloc(struct _cgatsAlloc *pp, size_t num, size_t size) {
  void *rv = calloc(num, size);
  return rv;
}


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

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

LLVM IR (-O0):
%struct._cgatsAlloc = type { i32 }
define i8* @cgatsAllocStd_calloc(%struct._cgatsAlloc* %0, i64 %1, i64 %2) {
%4 = alloca %struct._cgatsAlloc*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i8*
store %struct._cgatsAlloc* %0, %struct._cgatsAlloc** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%8 = load i64, i64* %5
%9 = load i64, i64* %6
%10 = call i8* @calloc(i64 %8, i64 %9)
store i8* %10, i8** %7
%11 = load i8*, i8** %7
ret i8* %11
}

LLVM IR (-O2):
%struct._cgatsAlloc = type { i32 }
define noalias i8* @cgatsAllocStd_calloc(%struct._cgatsAlloc* nocapture readnone %0, i64 %1, i64 %2) {
%4 = tail call i8* @calloc(i64 %1, i64 %2)
ret i8* %4
}