xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
void *realloc(void *, size_t);
void *xrealloc(void *mem, size_t size) {
  void *ret;
  if ((ret = realloc(mem, size)) == NULL) {
    perror("realloc");
    exit(EXIT_FAILURE);
  }
  return ret;
}


x86 assembly (clang, -O0):
<xrealloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1175 <xrealloc+0x45>
lea    0xe9e(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrealloc>:
push   %rax
call   1030 <realloc@plt>
test   %rax,%rax
je     113d <xrealloc+0xd>
pop    %rcx
ret
lea    0xebc(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"realloc\00"
@EXIT_FAILURE = global i32 0
define i8* @xrealloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @realloc(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @EXIT_FAILURE
%13 = call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = load i8*, i8** %5
ret i8* %15
}

LLVM IR (-O2):
@.str = [8 x i8] c"realloc\00"
@EXIT_FAILURE = global i32 0
define noalias i8* @xrealloc(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 %9
5: ; preds = %2
%6 = tail call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %2
ret i8* %3
}
int dbg_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len) {
  return 0;
}


x86 assembly (clang, -O0):
<dbg_leb_change>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
%struct.ubifs_info = type opaque
define i32 @dbg_leb_change(%struct.ubifs_info* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i32 %3) {
ret i32 0
}
int main() {
  int x = 3;
  int y = 4;
  int z;
  int c;
  c = x + y;
  if (c) {
    z = 0;
  } else {
    z = 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
movl   $0x4,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1138 <main+0x38>
movl   $0x0,-0x10(%rbp)
jmp    113f <main+0x3f>
movl   $0x1,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int getpacket(int *other, unsigned char *bufptr) {
  other = other;
  bufptr = bufptr;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @getpacket(i32* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 0
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void ADI32RegWrite(uint32_t ui32Base, uint32_t ui32Reg, uint32_t ui32Val) {
  ;
  ;
  (*((volatile unsigned long *)(ui32Base + (ui32Reg & 0xFC)))) = ui32Val;
}


x86 assembly (clang, -O0):
<ADI32RegWrite>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movslq -0xc(%rbp),%rcx
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%edx
and    $0xfc,%edx
add    %edx,%eax
cltq
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ADI32RegWrite>:
movslq %edx,%rax
and    $0xfc,%esi
movslq %edi,%rcx
mov    %rax,(%rsi,%rcx,1)
ret

LLVM IR (-O0):
define void @ADI32RegWrite(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* %6
%8 = sext i32 %7 to i64
%9 = load i32, i32* %4
%10 = load i32, i32* %5
%11 = and i32 %10, 252
%12 = add nsw i32 %9, %11
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i64*
store volatile i64 %8, i64* %14
ret void
}

LLVM IR (-O2):
define void @ADI32RegWrite(i32 %0, i32 %1, i32 %2) {
%4 = sext i32 %2 to i64
%5 = and i32 %1, 252
%6 = add nsw i32 %5, %0
%7 = sext i32 %6 to i64
%8 = inttoptr i64 %7 to i64*
store volatile i64 %4, i64* %8
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int stringSize(char *);
void clearString(char *text) {
  int size = stringSize(text);
  memset(text, 0, size);
}


x86 assembly (clang, -O0):
<clearString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <stringSize@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clearString>:
push   %rbx
mov    %rdi,%rbx
call   1040 <stringSize@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
pop    %rbx
jmp    1030 <memset@plt>

LLVM IR (-O0):
define void @clearString(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @stringSize(i8* %4)
store i32 %5, i32* %3
%6 = load i8*, i8** %2
%7 = load i32, i32* %3
%8 = call i32 @memset(i8* %6, i32 0, i32 %7)
ret void
}

LLVM IR (-O2):
define void @clearString(i8* %0) {
%2 = tail call i32 @stringSize(i8* %0)
%3 = tail call i32 @memset(i8* %0, i32 0, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float, double);
int main(void) {
  float f = 1.3;
  double d = 1.33333333333333;
  float fnan = 1 / 0;
  double dnan = 1 / 0;
  printf("f = %f, d = %f\n", f, d);
  printf("fnan = %f, dnan = %f\n", fnan, dnan);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xee1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movsd  0xecc(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
movss  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
movss  0xee0(%rip),%xmm0
movsd  0xee0(%rip),%xmm1
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"f = %f, d = %f\0A\00"
@.str.1 = [22 x i8] c"fnan = %f, dnan = %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca double
%4 = alloca float
%5 = alloca double
store i32 0, i32* %1
store float 0x3FF4CCCCC0000000, float* %2
store double 0x3FF5555555555546, double* %3
store float poison, float* %4
store double poison, double* %5
%6 = load float, float* %2
%7 = load double, double* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), float %6, double %7)
%9 = load float, float* %4
%10 = load double, double* %5
%11 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), float %9, double %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"f = %f, d = %f\0A\00"
@.str.1 = [22 x i8] c"fnan = %f, dnan = %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), float 0x3FF4CCCCC0000000, double 0x3FF5555555555546)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), float poison, double poison)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
size_t strspn(char *, char *);
int main(int argc, char **argv) {
  size_t r;
  char s1[] = "bbc";
  char s2[] = {'a', 'b'};
  char s3 = 0;
  r = strspn(s1, s2);
  assert(r >= 2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xec4(%rip),%eax
mov    %eax,-0x1c(%rbp)
mov    0xebe(%rip),%ax
mov    %ax,-0x1e(%rbp)
movb   $0x0,-0x1f(%rbp)
lea    -0x1c(%rbp),%rdi
lea    -0x1e(%rbp),%rsi
call   1030 <strspn@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x2,-0x18(%rbp)
setae  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @assert(i32 1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ perror(char *);
int system(char const *);
void my_system(const char *cmd) {
  int ret = system(cmd);
  if (ret == -1) {
    perror("system failed");
    abort();
  }
}


x86 assembly (clang, -O0):
<my_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <system@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xffffffff,-0xc(%rbp)
jne    1165 <my_system+0x35>
lea    0xea7(%rip),%rdi
call   1050 <perror@plt>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_system>:
push   %rax
call   1040 <system@plt>
cmp    $0xffffffff,%eax
je     113d <my_system+0xd>
pop    %rax
ret
lea    0xebc(%rip),%rdi
call   1050 <perror@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"system failed\00"
define void @my_system(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @system(i8* %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (...) @abort()
unreachable
11: ; preds = %1
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"system failed\00"
define void @my_system(i8* nocapture %0) {
%2 = tail call i32 @system(i8* %0)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %1
ret void
}
void DH_get_ex_data(void) {}


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

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

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

LLVM IR (-O2):
define void @DH_get_ex_data() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exec_btc(int, int, int);
void test_btc(void) {
  int i;
  for (i = 0; i < 32; i++)
    exec_btc(0x21ad3d34, 0x12345678, i);
  for (i = 0; i < 32; i++)
    exec_btc(0x813f3421, 0x82345678, i);
}


x86 assembly (clang, -O0):
<test_btc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    1149 <test_btc+0x39>
mov    -0x4(%rbp),%edx
mov    $0x21ad3d34,%edi
mov    $0x12345678,%esi
call   1030 <exec_btc@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <test_btc+0xf>
movl   $0x0,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    117a <test_btc+0x6a>
mov    -0x4(%rbp),%edx
mov    $0x813f3421,%edi
mov    $0x82345678,%esi
call   1030 <exec_btc@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1150 <test_btc+0x40>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_btc>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x21ad3d34,%edi
mov    $0x12345678,%esi
mov    %ebx,%edx
call   1030 <exec_btc@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    1120 <test_btc+0x10>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    $0x813f3421,%edi
mov    $0x82345678,%esi
mov    %ebx,%edx
call   1030 <exec_btc@plt>
add    $0x1,%ebx
cmp    $0x20,%ebx
jne    1140 <test_btc+0x30>
pop    %rbx
ret

LLVM IR (-O0):
define void @test_btc() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %8, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 32
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = load i32, i32* %1
%7 = call i32 @exec_btc(i32 565001524, i32 305419896, i32 %6)
br label %8
8: ; preds = %5
%9 = load i32, i32* %1
%10 = add nsw i32 %9, 1
store i32 %10, i32* %1
br label %2
11: ; preds = %2
store i32 0, i32* %1
br label %12
12: ; preds = %18, %11
%13 = load i32, i32* %1
%14 = icmp slt i32 %13, 32
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load i32, i32* %1
%17 = call i32 @exec_btc(i32 -2126564319, i32 -2110499208, i32 %16)
br label %18
18: ; preds = %15
%19 = load i32, i32* %1
%20 = add nsw i32 %19, 1
store i32 %20, i32* %1
br label %12
21: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @test_btc() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 @exec_btc(i32 565001524, i32 305419896, i32 %2)
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i32 %4, 32
br i1 %5, label %6, label %1
6: ; preds = %1, %6
%7 = phi i32 [ %9, %6 ], [ 0, %1 ]
%8 = tail call i32 @exec_btc(i32 -2126564319, i32 -2110499208, i32 %7)
%9 = add nuw nsw i32 %7, 1
%10 = icmp eq i32 %9, 32
br i1 %10, label %11, label %6
11: ; preds = %6
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_dnssec_settings();
int /*<<< orphan*/ test_form_parser();
int /*<<< orphan*/ test_options_file();
int /*<<< orphan*/ test_tls_settings();
int main() {
  printf("======================\n");
  test_tls_settings();
  test_dnssec_settings();
  test_options_file();
  test_form_parser();
  printf("==========END=========\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <test_tls_settings@plt>
mov    $0x0,%al
call   1030 <test_dnssec_settings@plt>
mov    $0x0,%al
call   1060 <test_options_file@plt>
mov    $0x0,%al
call   1050 <test_form_parser@plt>
lea    0xe8a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1070 <test_tls_settings@plt>
xor    %eax,%eax
call   1040 <test_dnssec_settings@plt>
xor    %eax,%eax
call   1060 <test_options_file@plt>
xor    %eax,%eax
call   1050 <test_form_parser@plt>
lea    0xe97(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [23 x i8] c"======================\00"
@str.2 = [23 x i8] c"==========END=========\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @test_tls_settings()
%3 = tail call i32 (...) @test_dnssec_settings()
%4 = tail call i32 (...) @test_options_file()
%5 = tail call i32 (...) @test_form_parser()
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
scalar_t__ is_bigendian();
double getnand(void) {
  unsigned char nan[8];
  int i;
  for (i = 0; i < 8; i++)
    nan[i] = 1;
  if (is_bigendian()) {
    nan[0] = 0x7F;
    nan[1] = 0xF0;
  } else {
    nan[7] = 0x7F;
    nan[6] = 0xF0;
  }
  return (*((double *)nan));
}


x86 assembly (clang, -O0):
<getnand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0xc(%rbp)
cmpl   $0x8,-0xc(%rbp)
jge    1140 <getnand+0x30>
movslq -0xc(%rbp),%rax
movb   $0x1,-0x8(%rbp,%rax,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    111f <getnand+0xf>
mov    $0x0,%al
call   1030 <is_bigendian@plt>
cmp    $0x0,%rax
je     115e <getnand+0x4e>
movb   $0x7f,-0x8(%rbp)
movb   $0xf0,-0x7(%rbp)
jmp    1166 <getnand+0x56>
movb   $0x7f,-0x1(%rbp)
movb   $0xf0,-0x2(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getnand>:
push   %rax
xor    %eax,%eax
call   1030 <is_bigendian@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
lea    0xed9(%rip),%rax
movsd  (%rax,%rcx,8),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @getnand() {
%1 = alloca [8 x i8]
%2 = alloca i32
store i32 0, i32* %2
br label %3
3: ; preds = %10, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 8
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, i32* %2
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 %8
store i8 1, i8* %9
br label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %3
13: ; preds = %3
%14 = call i64 (...) @is_bigendian()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 0
store i8 127, i8* %17
%18 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 1
store i8 -16, i8* %18
br label %22
19: ; preds = %13
%20 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 7
store i8 127, i8* %20
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 6
store i8 -16, i8* %21
br label %22
22: ; preds = %19, %16
%23 = getelementptr inbounds [8 x i8], [8 x i8]* %1, i64 0, i64 0
%24 = bitcast i8* %23 to double*
%25 = load double, double* %24
ret double %25
}

LLVM IR (-O2):
define double @getnand() {
%1 = tail call i64 (...) @is_bigendian()
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, double 0x7FF0010101010101, double 0x10101010101F07F
ret double %3
}
/* Type definitions */
struct timespec {
  int dummy;
};
typedef int /*<<< orphan*/ clockid_t;

/* Variables and functions */
int /*<<< orphan*/ SYS_clock_gettime;
int syscall(int /*<<< orphan*/, int /*<<< orphan*/, struct timespec *);
int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) {
  return syscall(SYS_clock_gettime, clk_id, ts);
}


x86 assembly (clang, -O0):
<tst_clock_gettime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eca(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tst_clock_gettime>:
mov    %rsi,%rdx
mov    %edi,%esi
mov    0x2ed4(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
%struct.timespec = type { i32 }
@SYS_clock_gettime = global i32 0
define i32 @tst_clock_gettime(i32 %0, %struct.timespec* %1) {
%3 = alloca i32
%4 = alloca %struct.timespec*
store i32 %0, i32* %3
store %struct.timespec* %1, %struct.timespec** %4
%5 = load i32, i32* @SYS_clock_gettime
%6 = load i32, i32* %3
%7 = load %struct.timespec*, %struct.timespec** %4
%8 = call i32 @syscall(i32 %5, i32 %6, %struct.timespec* %7)
ret i32 %8
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@SYS_clock_gettime = global i32 0
define i32 @tst_clock_gettime(i32 %0, %struct.timespec* %1) {
%3 = load i32, i32* @SYS_clock_gettime
%4 = tail call i32 @syscall(i32 %3, i32 %0, %struct.timespec* %1)
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ u_int8_t;
typedef int /*<<< orphan*/ u_int32_t;

/* Variables and functions */
int /*<<< orphan*/ ntohl(int /*<<< orphan*/);
u_int32_t net_read32(u_int8_t *b) {
  u_int32_t r;
  r = *(u_int32_t *)b;
  return (ntohl(r));
}


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

x86 assembly (clang, -O2):
<net_read32>:
mov    (%rdi),%edi
jmp    1030 <ntohl@plt>

LLVM IR (-O0):
define i32 @net_read32(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* %4
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = call i32 @ntohl(i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @net_read32(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @ntohl(i32 %2)
ret i32 %3
}
/* Variables and functions */
int strcmp(char *const, char *const);
int symcmp(const void *s1, const void *s2) {
  return strcmp(*(char *const *)s1, *(char *const *)s2);
}


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

x86 assembly (clang, -O2):
<symcmp>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
define i32 @symcmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i8**
%7 = load i8*, i8** %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i8**
%10 = load i8*, i8** %9
%11 = call i32 @strcmp(i8* %7, i8* %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @symcmp(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(1) %6)
ret i32 %7
}
void fd214(int n) {
P0A:
  goto P0A;
  {
    typedef int(*b)[n];
  P01A:
    goto P01A;
    {
      typedef int(*c)[n];
    P012A:
      goto P012A;
      0;
    }
  P01B:
    goto P01B;
    {
      typedef int(*d)[n];
    P013A:
      goto P013A;
      0;
    }
  P01C:
    goto P01C;
    ;
    typedef int(*e)[n];
  P014A:
    goto P014A;
    0;
  };
P0B:
  goto P0B;
  {
    typedef int(*f)[n];
  P02A:
    goto P02A;
    {
      typedef int(*g)[n];
    P024A:
      goto P024A;
      0;
    };
  a : {
    typedef int(*h)[n];
  P025A:
    goto P025A;
    0;
  };
  p02C:
    goto p02C;
    goto a;
  P02C:
    goto P02C;
    ;
    typedef int(*i)[n];
  P026A:
    goto P026A;
    0;
  };
P0C:
  goto P0C;
  ;
  typedef int(*j)[n];
P03A:
  goto P03A;
  0;
P03B:
  goto P03B;
}


x86 assembly (clang, -O0):
<fd214>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fd214+0x7>

x86 assembly (clang, -O2):
<fd214>:
jmp    1100 <fd214>

LLVM IR (-O0):
define void @fd214(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %3, %1
br label %3
4: ; No predecessors!
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
br label %7
7: ; preds = %7, %4
br label %7
8: ; No predecessors!
%9 = load i32, i32* %2
%10 = zext i32 %9 to i64
br label %11
11: ; preds = %11, %8
br label %11
12: ; preds = %12
br label %12
13: ; No predecessors!
%14 = load i32, i32* %2
%15 = zext i32 %14 to i64
br label %16
16: ; preds = %16, %13
br label %16
17: ; preds = %17
br label %17
18: ; No predecessors!
%19 = load i32, i32* %2
%20 = zext i32 %19 to i64
br label %21
21: ; preds = %21, %18
br label %21
22: ; preds = %22
br label %22
23: ; No predecessors!
%24 = load i32, i32* %2
%25 = zext i32 %24 to i64
br label %26
26: ; preds = %26, %23
br label %26
27: ; No predecessors!
%28 = load i32, i32* %2
%29 = zext i32 %28 to i64
br label %30
30: ; preds = %30, %27
br label %30
31: ; No predecessors!
%32 = load i32, i32* %2
%33 = zext i32 %32 to i64
br label %34
34: ; preds = %34, %31
br label %34
35: ; preds = %35
br label %35
36: ; preds = %36
br label %36
37: ; No predecessors!
%38 = load i32, i32* %2
%39 = zext i32 %38 to i64
br label %40
40: ; preds = %40, %37
br label %40
41: ; preds = %41
br label %41
42: ; No predecessors!
%43 = load i32, i32* %2
%44 = zext i32 %43 to i64
br label %45
45: ; preds = %45, %42
br label %45
46: ; preds = %46
br label %46
}

LLVM IR (-O2):
define void @fd214(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
int is_letter(int v) {
  return (v == '_' || (v >= 0x41 && v <= 0x5A) || (v >= 0x61 && v <= 0x7A));
}


x86 assembly (clang, -O0):
<is_letter>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x5f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     114e <is_letter+0x4e>
cmpl   $0x41,-0x4(%rbp)
jl     112f <is_letter+0x2f>
mov    $0x1,%al
cmpl   $0x5a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    114e <is_letter+0x4e>
xor    %eax,%eax
cmpl   $0x61,-0x4(%rbp)
mov    %al,-0x6(%rbp)
jl     1148 <is_letter+0x48>
cmpl   $0x7a,-0x4(%rbp)
setle  %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_letter>:
cmp    $0x5f,%edi
sete   %al
and    $0xffffffdf,%edi
add    $0xffffffbf,%edi
cmp    $0x1a,%edi
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @is_letter(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 95
br i1 %4, label %19, label %5
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sge i32 %6, 65
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp sle i32 %9, 90
br i1 %10, label %19, label %11
11: ; preds = %8, %5
%12 = load i32, i32* %2
%13 = icmp sge i32 %12, 97
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* %2
%16 = icmp sle i32 %15, 122
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ false, %11 ], [ %16, %14 ]
br label %19
19: ; preds = %17, %8, %1
%20 = phi i1 [ true, %8 ], [ true, %1 ], [ %18, %17 ]
%21 = zext i1 %20 to i32
ret i32 %21
}

LLVM IR (-O2):
define i32 @is_letter(i32 %0) {
%2 = icmp eq i32 %0, 95
%3 = and i32 %0, -33
%4 = add i32 %3, -65
%5 = icmp ult i32 %4, 26
%6 = or i1 %2, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ Ws(char *);
int /*<<< orphan*/ wRelative12(int, int);
int WinstD(int i, int code) {
  Ws("rcall ");
  wRelative12(i, code);
  return 0;
}


x86 assembly (clang, -O0):
<WinstD>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    0xecb(%rip),%rdi
call   1030 <Ws@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <wRelative12@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WinstD>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    0xed2(%rip),%rdi
call   1030 <Ws@plt>
mov    %ebp,%edi
mov    %ebx,%esi
call   1040 <wRelative12@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"rcall \00"
define i32 @WinstD(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @Ws(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = call i32 @wRelative12(i32 %6, i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"rcall \00"
define i32 @WinstD(i32 %0, i32 %1) {
%3 = tail call i32 @Ws(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @wRelative12(i32 %0, i32 %1)
ret i32 0
}
void __attribute__((weak)) EXTI13_Callback(void) {}


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

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

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

LLVM IR (-O2):
define weak void @EXTI13_Callback() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int lengthSupUK(int, int);
int /*<<< orphan*/ printf(char *, int, int);
void dotest1(int n, int k, int expr) {
  int act = lengthSupUK(n, k);
  if (act != expr)
    printf("Expected %d, got %d\n", expr, act);
  assert(act == expr);
}


x86 assembly (clang, -O0):
<dotest1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <lengthSupUK@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
je     116d <dotest1+0x3d>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dotest1>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
call   1050 <lengthSupUK@plt>
mov    %eax,%ebp
cmp    %ebx,%eax
je     1150 <dotest1+0x20>
lea    0xeb9(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
call   1030 <printf@plt>
xor    %edi,%edi
cmp    %ebx,%ebp
sete   %dil
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <assert@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Expected %d, got %d\0A\00"
define void @dotest1(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = call i32 @lengthSupUK(i32 %8, i32 %9)
store i32 %10, i32* %7
%11 = load i32, i32* %7
%12 = load i32, i32* %6
%13 = icmp ne i32 %11, %12
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %15, i32 %16)
br label %18
18: ; preds = %14, %3
%19 = load i32, i32* %7
%20 = load i32, i32* %6
%21 = icmp eq i32 %19, %20
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Expected %d, got %d\0A\00"
define void @dotest1(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @lengthSupUK(i32 %0, i32 %1)
%5 = icmp eq i32 %4, %2
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4)
br label %8
8: ; preds = %6, %3
%9 = zext i1 %5 to i32
%10 = tail call i32 @assert(i32 %9)
ret void
}
void mips_nop(int i, unsigned tar, unsigned arg1, unsigned arg2) {}


x86 assembly (clang, -O0):
<mips_nop>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @mips_nop(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
ret void
}

LLVM IR (-O2):
define void @mips_nop(i32 %0, i32 %1, i32 %2, i32 %3) {
ret void
}
float cro_AvgF(float n1, float n2, float n3, float n4) {
  return (n1 + n2 + n3 + n4) * 0.25f;
}


x86 assembly (clang, -O0):
<cro_AvgF>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  0xecc(%rip),%xmm1
mulss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<cro_AvgF>:
addss  %xmm1,%xmm0
addss  %xmm2,%xmm0
addss  %xmm3,%xmm0
mulss  0xeec(%rip),%xmm0
ret

LLVM IR (-O0):
define float @cro_AvgF(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* %5
%10 = load float, float* %6
%11 = fadd float %9, %10
%12 = load float, float* %7
%13 = fadd float %11, %12
%14 = load float, float* %8
%15 = fadd float %13, %14
%16 = fmul float %15, 2.500000e-01
ret float %16
}

LLVM IR (-O2):
define float @cro_AvgF(float %0, float %1, float %2, float %3) {
%5 = fadd float %0, %1
%6 = fadd float %5, %2
%7 = fadd float %6, %3
%8 = fmul float %7, 2.500000e-01
ret float %8
}
/* Variables and functions */
int /*<<< orphan*/ show_message(char *);
int main(int argc, char **argv) {
  show_message("ppp\x9c\x96\x04\x08%x%x%x%x%x%x%s");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"ppp\9C\96\04\08%x%x%x%x%x%x%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @show_message(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"ppp\9C\96\04\08%x%x%x%x%x%x%s\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @show_message(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void swapf(float *a, float *b) {
  float tmp = *a;
  *a = *b;
  *b = tmp;
}


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

x86 assembly (clang, -O2):
<swapf>:
movss  (%rdi),%xmm0
movss  (%rsi),%xmm1
movss  %xmm1,(%rdi)
movss  %xmm0,(%rsi)
ret

LLVM IR (-O0):
define void @swapf(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
%5 = alloca float
store float* %0, float** %3
store float* %1, float** %4
%6 = load float*, float** %3
%7 = load float, float* %6
store float %7, float* %5
%8 = load float*, float** %4
%9 = load float, float* %8
%10 = load float*, float** %3
store float %9, float* %10
%11 = load float, float* %5
%12 = load float*, float** %4
store float %11, float* %12
ret void
}

LLVM IR (-O2):
define void @swapf(float* nocapture %0, float* nocapture %1) {
%3 = load float, float* %0
%4 = load float, float* %1
store float %4, float* %0
store float %3, float* %1
ret void
}
int xmlUCSIsKannada(int code) {
  return (((code >= 0x0C80) && (code <= 0x0CFF)));
}


x86 assembly (clang, -O0):
<xmlUCSIsKannada>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0xc80,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1126 <xmlUCSIsKannada+0x26>
cmpl   $0xcff,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmlUCSIsKannada>:
and    $0xffffff80,%edi
xor    %eax,%eax
cmp    $0xc80,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @xmlUCSIsKannada(i32 %0) {
%2 = and i32 %0, -128
%3 = icmp eq i32 %2, 3200
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct t_hashtable {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fset_option_config_changed(void const *);
void fset_option_timer_option_changed_cb(void *data,
                                         struct t_hashtable *hashtable,
                                         const void *key, const void *value) {
  (void)data;
  (void)hashtable;
  (void)value;
  fset_option_config_changed(key);
}


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

x86 assembly (clang, -O2):
<fset_option_timer_option_changed_cb>:
mov    %rdx,%rdi
jmp    1030 <fset_option_config_changed@plt>

LLVM IR (-O0):
%struct.t_hashtable = type { i32 }
define void @fset_option_timer_option_changed_cb(i8* %0, %struct.t_hashtable* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca %struct.t_hashtable*
%7 = alloca i8*
%8 = alloca i8*
store i8* %0, i8** %5
store %struct.t_hashtable* %1, %struct.t_hashtable** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load %struct.t_hashtable*, %struct.t_hashtable** %6
%11 = load i8*, i8** %8
%12 = load i8*, i8** %7
%13 = call i32 @fset_option_config_changed(i8* %12)
ret void
}

LLVM IR (-O2):
%struct.t_hashtable = type { i32 }
define void @fset_option_timer_option_changed_cb(i8* nocapture readnone %0, %struct.t_hashtable* nocapture readnone %1, i8* %2, i8* nocapture readnone %3) {
%5 = tail call i32 @fset_option_config_changed(i8* %2)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ visited;

/* Variables and functions */
int /*<<< orphan*/ DFS_util(int **, int, int *, int);
int *calloc(int, int);
int /*<<< orphan*/ printf(char *, ...);
void DFS(int graph[9][9], int V, int V_count) {
  int vertices = 0;
  int *visited = calloc(V_count, sizeof(visited));
  printf("DFS for vertice %d: ", V);
  DFS_util(graph, V, visited, V_count);
  printf("\n");
}


x86 assembly (clang, -O0):
<DFS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0xc(%rbp),%esi
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    -0x10(%rbp),%ecx
call   1050 <DFS_util@plt>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DFS>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
mov    %rdi,%r14
mov    %edx,%edi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,%r15
lea    0xe9c(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %r15,%rdx
mov    %ebx,%ecx
call   1060 <DFS_util@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"DFS for vertice %d: \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @DFS([9 x i32]* %0, i32 %1, i32 %2) {
%4 = alloca [9 x i32]*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
store [9 x i32]* %0, [9 x i32]** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
%9 = load i32, i32* %6
%10 = call i32* @calloc(i32 %9, i32 8)
store i32* %10, i32** %8
%11 = load i32, i32* %5
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load [9 x i32]*, [9 x i32]** %4
%14 = bitcast [9 x i32]* %13 to i32**
%15 = load i32, i32* %5
%16 = load i32*, i32** %8
%17 = load i32, i32* %6
%18 = call i32 @DFS_util(i32** %14, i32 %15, i32* %16, i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"DFS for vertice %d: \00"
define void @DFS([9 x i32]* %0, i32 %1, i32 %2) {
%4 = tail call i32* @calloc(i32 %2, i32 8)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %1)
%6 = bitcast [9 x i32]* %0 to i32**
%7 = tail call i32 @DFS_util(i32** %6, i32 %1, i32* %4, i32 %2)
%8 = tail call i32 @putchar(i32 10)
ret void
}
INSTRUCTION(nop) {}


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

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

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

LLVM IR (-O2):
define i32 @INSTRUCTION(i32 %0) {
ret i32 undef
}
/* Type definitions */
struct conn_info_st {
  int dummy;
};

/* Variables and functions */
int cmds_after_fwpass(struct conn_info_st *);
scalar_t__ fw_set_fwpass(char const *, struct conn_info_st *);
int fw_fwpass(const char *args, struct conn_info_st *conn_info) {
  if (fw_set_fwpass(args, conn_info) != 0) {
    return (-2);
  }
  return cmds_after_fwpass(conn_info);
}


x86 assembly (clang, -O0):
<fw_fwpass>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <fw_set_fwpass@plt>
cmp    $0x0,%rax
je     1153 <fw_fwpass+0x33>
movl   $0xfffffffe,-0x4(%rbp)
jmp    115f <fw_fwpass+0x3f>
mov    -0x18(%rbp),%rdi
call   1030 <cmds_after_fwpass@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fw_fwpass>:
push   %rbx
mov    %rsi,%rbx
call   1040 <fw_set_fwpass@plt>
test   %rax,%rax
je     1135 <fw_fwpass+0x15>
mov    $0xfffffffe,%eax
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <cmds_after_fwpass@plt>

LLVM IR (-O0):
%struct.conn_info_st = type { i32 }
define i32 @fw_fwpass(i8* %0, %struct.conn_info_st* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca %struct.conn_info_st*
store i8* %0, i8** %4
store %struct.conn_info_st* %1, %struct.conn_info_st** %5
%6 = load i8*, i8** %4
%7 = load %struct.conn_info_st*, %struct.conn_info_st** %5
%8 = call i64 @fw_set_fwpass(i8* %6, %struct.conn_info_st* %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %2
store i32 -2, i32* %3
br label %14
11: ; preds = %2
%12 = load %struct.conn_info_st*, %struct.conn_info_st** %5
%13 = call i32 @cmds_after_fwpass(%struct.conn_info_st* %12)
store i32 %13, i32* %3
br label %14
14: ; preds = %11, %10
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
%struct.conn_info_st = type { i32 }
define i32 @fw_fwpass(i8* %0, %struct.conn_info_st* %1) {
%3 = tail call i64 @fw_set_fwpass(i8* %0, %struct.conn_info_st* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @cmds_after_fwpass(%struct.conn_info_st* %1)
br label %7
7: ; preds = %2, %5
%8 = phi i32 [ %6, %5 ], [ -2, %2 ]
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ inbuf;

/* Variables and functions */
int /*<<< orphan*/ test(char *, char *, int, int);
void test_euc_jisx0213(void) {
  char inbuf[2] = {0xa4, 0xf7};
  test("EUC-JISX0213", inbuf, sizeof(inbuf), 3);
}


x86 assembly (clang, -O0):
<test_euc_jisx0213>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0xee1(%rip),%ax
mov    %ax,-0x2(%rbp)
lea    -0x2(%rbp),%rsi
lea    0xed4(%rip),%rdi
mov    $0x2,%edx
mov    $0x3,%ecx
call   1030 <test@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_euc_jisx0213>:
push   %rax
movw   $0xf7a4,0x6(%rsp)
lea    0xee1(%rip),%rdi
lea    0x6(%rsp),%rsi
mov    $0x2,%edx
mov    $0x3,%ecx
call   1030 <test@plt>
pop    %rax
ret

LLVM IR (-O0):
@__const.test_euc_jisx0213.inbuf = [2 x i8] c"\A4\F7"
@.str = [13 x i8] c"EUC-JISX0213\00"
define void @test_euc_jisx0213() {
%1 = alloca [2 x i8]
%2 = bitcast [2 x i8]* %1 to i8*
%3 = getelementptr inbounds [2 x i8], [2 x i8]* %1, i64 0, i64 0
%4 = call i32 @test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %3, i32 2, i32 3)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"EUC-JISX0213\00"
define void @test_euc_jisx0213() {
%1 = alloca i16
%2 = bitcast i16* %1 to i8*
store i16 -2140, i16* %1
%3 = call i32 @test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %2, i32 2, i32 3)
ret void
}
void I_NoAppServicesLobbyChangeReady(void) {}


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

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

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

LLVM IR (-O2):
define void @I_NoAppServicesLobbyChangeReady() {
ret void
}
float quinticEaseOutf(float p) {
  float f = (p - 1);
  return f * f * f * f * f + 1;
}


x86 assembly (clang, -O0):
<quinticEaseOutf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  0xebc(%rip),%xmm1
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<quinticEaseOutf>:
addss  0xef8(%rip),%xmm0
movaps %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm0,%xmm1
mulss  %xmm1,%xmm0
addss  0xee1(%rip),%xmm0
ret

LLVM IR (-O0):
define float @quinticEaseOutf(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %2
%4 = load float, float* %2
%5 = fsub float %4, 1.000000e+00
store float %5, float* %3
%6 = load float, float* %3
%7 = load float, float* %3
%8 = fmul float %6, %7
%9 = load float, float* %3
%10 = fmul float %8, %9
%11 = load float, float* %3
%12 = fmul float %10, %11
%13 = load float, float* %3
%14 = call float @llvm.fmuladd.f32(float %12, float %13, float 1.000000e+00)
ret float %14
}

LLVM IR (-O2):
define float @quinticEaseOutf(float %0) {
%2 = fadd float %0, -1.000000e+00
%3 = fmul float %2, %2
%4 = fmul float %2, %3
%5 = fmul float %2, %4
%6 = tail call float @llvm.fmuladd.f32(float %5, float %2, float 1.000000e+00)
ret float %6
}