xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int uint64_t;
typedef scalar_t__ uint32_t;

/* Variables and functions */
uint64_t TimerMatchGet64(uint32_t ui32Base) {
  uint32_t ui32High1, ui32High2, ui32Low;
  ;
  do {
    ui32High1 = (*((volatile uint32_t *)(ui32Base + 0x00000034)));
    ui32Low = (*((volatile uint32_t *)(ui32Base + 0x00000030)));
    ui32High2 = (*((volatile uint32_t *)(ui32Base + 0x00000034)));
  } while (ui32High1 != ui32High2);
  return (((uint64_t)ui32High1 << 32) | (uint64_t)ui32Low);
}


x86 assembly (clang, -O0):
<TimerMatchGet64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    1108 <TimerMatchGet64+0x8>
mov    -0x10(%rbp),%rax
mov    $0x20,%ecx
shl    %cl,%eax
mov    -0x20(%rbp),%rcx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<TimerMatchGet64>:
mov    0x34(%rdi),%rax
mov    0x30(%rdi),%rcx
cmp    0x34(%rdi),%rax
jne    1100 <TimerMatchGet64>
ret

LLVM IR (-O0):
define i32 @TimerMatchGet64(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %2
br label %6
6: ; preds = %19, %1
%7 = load i64, i64* %2
%8 = add nsw i64 %7, 52
%9 = inttoptr i64 %8 to i64*
%10 = load volatile i64, i64* %9
store i64 %10, i64* %3
%11 = load i64, i64* %2
%12 = add nsw i64 %11, 48
%13 = inttoptr i64 %12 to i64*
%14 = load volatile i64, i64* %13
store i64 %14, i64* %5
%15 = load i64, i64* %2
%16 = add nsw i64 %15, 52
%17 = inttoptr i64 %16 to i64*
%18 = load volatile i64, i64* %17
store i64 %18, i64* %4
br label %19
19: ; preds = %6
%20 = load i64, i64* %3
%21 = load i64, i64* %4
%22 = icmp ne i64 %20, %21
br i1 %22, label %6, label %23
23: ; preds = %19
%24 = load i64, i64* %3
%25 = trunc i64 %24 to i32
%26 = shl i32 %25, 32
%27 = load i64, i64* %5
%28 = trunc i64 %27 to i32
%29 = or i32 %26, %28
ret i32 %29
}

LLVM IR (-O2):
define i32 @TimerMatchGet64(i64 %0) {
%2 = add nsw i64 %0, 52
%3 = inttoptr i64 %2 to i64*
%4 = add nsw i64 %0, 48
%5 = inttoptr i64 %4 to i64*
br label %6
6: ; preds = %6, %1
%7 = load volatile i64, i64* %3
%8 = load volatile i64, i64* %5
%9 = load volatile i64, i64* %3
%10 = icmp eq i64 %7, %9
br i1 %10, label %11, label %6
11: ; preds = %6
ret i32 poison
}
double millimetresToYards(double millimetres) { return millimetres * 1.09361; }


x86 assembly (clang, -O0):
<millimetresToYards>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<millimetresToYards>:
mulsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @millimetresToYards(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double %3, 1.093610e+00
ret double %4
}

LLVM IR (-O2):
define double @millimetresToYards(double %0) {
%2 = fmul double %0, 1.093610e+00
ret double %2
}
void func() {
#pragma omp ordered
  {
#pragma omp barrier
  }
}


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

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

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

LLVM IR (-O2):
define void @func() {
ret void
}
void tgl_trace(const char *format, ...) {}


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

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

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

LLVM IR (-O2):
define void @tgl_trace(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int sum(int, int);
int main() { return sum(1, 3); }


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

x86 assembly (clang, -O2):
<main>:
mov    $0x1,%edi
mov    $0x3,%esi
jmp    1030 <sum@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @sum(i32 1, i32 3)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ Str_TrimRight(char *);
char *strstr(char *, char *);
int /*<<< orphan*/ uncomment_cstyle(char *);
void UnComment(char *s) {
  char *p;
  if ((p = strstr(s, "/*")))
    uncomment_cstyle(p);
  Str_TrimRight(s);
}


x86 assembly (clang, -O0):
<UnComment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb9(%rip),%rsi
call   1050 <strstr@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1163 <UnComment+0x33>
mov    -0x10(%rbp),%rdi
call   1030 <uncomment_cstyle@plt>
mov    -0x8(%rbp),%rdi
call   1040 <Str_TrimRight@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UnComment>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
call   1050 <strstr@plt>
test   %rax,%rax
je     114d <UnComment+0x1d>
mov    %rax,%rdi
call   1030 <uncomment_cstyle@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <Str_TrimRight@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"/*\00"
define void @UnComment(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i8* @strstr(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i8* %5, i8** %3
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32 @uncomment_cstyle(i8* %8)
br label %10
10: ; preds = %7, %1
%11 = load i8*, i8** %2
%12 = call i32 @Str_TrimRight(i8* %11)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"/*\00"
define void @UnComment(i8* %0) {
%2 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i8* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @uncomment_cstyle(i8* %2)
br label %6
6: ; preds = %4, %1
%7 = tail call i32 @Str_TrimRight(i8* %0)
ret void
}
void gtk_get_current_event_state() {}


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

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

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

LLVM IR (-O2):
define void @gtk_get_current_event_state() {
ret void
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char const *);
size_t strlen(char const *);
bool endsWith(const char *base, const char *str) {
  size_t blen = strlen(base);
  size_t slen = strlen(str);
  return (blen >= slen) && (0 == strcmp(base + blen - slen, str));
}


x86 assembly (clang, -O0):
<endsWith>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rcx
xor    %eax,%eax
cmp    -0x20(%rbp),%rcx
mov    %al,-0x21(%rbp)
jb     1185 <endsWith+0x65>
mov    -0x8(%rbp),%rdi
add    -0x18(%rbp),%rdi
xor    %eax,%eax
sub    -0x20(%rbp),%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
sete   %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<endsWith>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rax,%r15
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%r15
jb     1161 <endsWith+0x41>
add    %r15,%rbx
sub    %rcx,%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @endsWith(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = call i64 @strlen(i8* %7)
store i64 %8, i64* %5
%9 = load i8*, i8** %4
%10 = call i64 @strlen(i8* %9)
store i64 %10, i64* %6
%11 = load i64, i64* %5
%12 = load i64, i64* %6
%13 = icmp uge i64 %11, %12
br i1 %13, label %14, label %24
14: ; preds = %2
%15 = load i8*, i8** %3
%16 = load i64, i64* %5
%17 = getelementptr inbounds i8, i8* %15, i64 %16
%18 = load i64, i64* %6
%19 = sub i64 0, %18
%20 = getelementptr inbounds i8, i8* %17, i64 %19
%21 = load i8*, i8** %4
%22 = call i64 @strcmp(i8* %20, i8* %21)
%23 = icmp eq i64 0, %22
br label %24
24: ; preds = %14, %2
%25 = phi i1 [ false, %2 ], [ %23, %14 ]
%26 = zext i1 %25 to i32
ret i32 %26
}

LLVM IR (-O2):
define i32 @endsWith(i8* %0, i8* %1) {
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%5 = icmp ult i64 %3, %4
br i1 %5, label %13, label %6
6: ; preds = %2
%7 = getelementptr inbounds i8, i8* %0, i64 %3
%8 = sub i64 0, %4
%9 = getelementptr inbounds i8, i8* %7, i64 %8
%10 = tail call i64 @strcmp(i8* %9, i8* %1)
%11 = icmp eq i64 %10, 0
%12 = zext i1 %11 to i32
br label %13
13: ; preds = %6, %2
%14 = phi i32 [ 0, %2 ], [ %12, %6 ]
ret i32 %14
}
/* Variables and functions */
int EINVAL;
__attribute__((visibility("default"))) int sd_is_mq(int fd, const char *path) {
  return -EINVAL;
}


x86 assembly (clang, -O0):
<sd_is_mq>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    0x2ecc(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sd_is_mq>:
mov    0x2ed9(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

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

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @sd_is_mq(i32 %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @EINVAL
%4 = sub nsw i32 0, %3
ret i32 %4
}
/* Type definitions */
typedef int ssize_t;

/* Variables and functions */
int /*<<< orphan*/ errors(char *, int);
int /*<<< orphan*/ len(char const *);
int write(int, char const *, int /*<<< orphan*/);
int pprint(const char *str, int fd) {
  ssize_t wr;
  wr = 0;
  if ((wr = write(fd, str, len(str))) == -1)
    errors("Bad file descriptor", 84);
  return (0);
}


x86 assembly (clang, -O0):
<pprint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <len@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1040 <write@plt>
mov    %eax,-0x10(%rbp)
cmp    $0xffffffff,%eax
jne    1188 <pprint+0x58>
lea    0xe82(%rip),%rdi
mov    $0x54,%esi
call   1050 <errors@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pprint>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
call   1030 <len@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <write@plt>
cmp    $0xffffffff,%eax
jne    115f <pprint+0x2f>
lea    0xeab(%rip),%rdi
mov    $0x54,%esi
call   1050 <errors@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Bad file descriptor\00"
define i32 @pprint(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32 0, i32* %5
%6 = load i32, i32* %4
%7 = load i8*, i8** %3
%8 = load i8*, i8** %3
%9 = call i32 @len(i8* %8)
%10 = call i32 @write(i32 %6, i8* %7, i32 %9)
store i32 %10, i32* %5
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 @errors(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 84)
br label %14
14: ; preds = %12, %2
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Bad file descriptor\00"
define i32 @pprint(i8* %0, i32 %1) {
%3 = tail call i32 @len(i8* %0)
%4 = tail call i32 @write(i32 %1, i8* %0, i32 %3)
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @errors(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 84)
br label %8
8: ; preds = %6, %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ addbyte(int);
void LOAD_EA() {
  addbyte(0x8b);
  addbyte(0x44);
  addbyte(0x24);
  addbyte(0x24);
}


x86 assembly (clang, -O0):
<LOAD_EA>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8b,%edi
call   1030 <addbyte@plt>
mov    $0x44,%edi
call   1030 <addbyte@plt>
mov    $0x24,%edi
call   1030 <addbyte@plt>
mov    $0x24,%edi
call   1030 <addbyte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<LOAD_EA>:
push   %rax
mov    $0x8b,%edi
call   1030 <addbyte@plt>
mov    $0x44,%edi
call   1030 <addbyte@plt>
mov    $0x24,%edi
call   1030 <addbyte@plt>
mov    $0x24,%edi
pop    %rax
jmp    1030 <addbyte@plt>

LLVM IR (-O0):
define void @LOAD_EA() {
%1 = call i32 @addbyte(i32 139)
%2 = call i32 @addbyte(i32 68)
%3 = call i32 @addbyte(i32 36)
%4 = call i32 @addbyte(i32 36)
ret void
}

LLVM IR (-O2):
define void @LOAD_EA() {
%1 = tail call i32 @addbyte(i32 139)
%2 = tail call i32 @addbyte(i32 68)
%3 = tail call i32 @addbyte(i32 36)
%4 = tail call i32 @addbyte(i32 36)
ret void
}
/* Variables and functions */
void stub1(short, float);
void testClosureSFrV(void (*closure)(short, float), short a1, float a2) {
  if (closure != NULL)
    (*closure)(a1, a2);
}


x86 assembly (clang, -O0):
<testClosureSFrV>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %rdi,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
movss  %xmm0,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1135 <testClosureSFrV+0x35>
mov    -0x8(%rbp),%rax
mov    -0xa(%rbp),%cx
movss  -0x10(%rbp),%xmm0
movswl %cx,%edi
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testClosureSFrV>:
test   %rdi,%rdi
je     110d <testClosureSFrV+0xd>
mov    %rdi,%rax
movswl %si,%edi
jmp    *%rax
ret

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

LLVM IR (-O2):
define void @testClosureSFrV(void (i16, float)* %0, i16 signext %1, float %2) {
%4 = icmp eq void (i16, float)* %0, null
br i1 %4, label %6, label %5
5: ; preds = %3
tail call void %0(i16 signext %1, float %2)
br label %6
6: ; preds = %5, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ *gets(char *);
int /*<<< orphan*/ printf(char *, char *);
int main(void) {
  char buff[10];
  if (gets(buff) != NULL) {
    printf("Just read: '%s'\n", buff);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xe(%rbp),%rdi
call   1040 <gets@plt>
cmp    $0x0,%rax
je     1152 <main+0x32>
lea    -0xe(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xe(%rsp),%rdi
call   1040 <gets@plt>
test   %rax,%rax
je     1144 <main+0x24>
lea    0xec6(%rip),%rdi
lea    0xe(%rsp),%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Just read: '%s'\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i8]
store i32 0, i32* %1
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%4 = call i32* @gets(i8* %3)
%5 = icmp ne i32* %4, null
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%8 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %6, %0
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"Just read: '%s'\0A\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%3 = call i32* @gets(i8* %2)
%4 = icmp eq i32* %3, null
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %2)
br label %7
7: ; preds = %5, %0
ret i32 0
}
/* Type definitions */
struct packetheader {
  int dummy;
};
struct ILibWebServer_Session {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ILibWebServer_Send_Raw(struct ILibWebServer_Session *,
                                          char *, int, int, int);
void UpnpPresentationRequest(void *upnptoken, struct packetheader *packet) {
  ILibWebServer_Send_Raw(
      (struct ILibWebServer_Session *)upnptoken,
      "HTTP/1.1 404 File Not Found\r\nContent-Length: 0\r\n\r\n", 48, 1, 1);
}


x86 assembly (clang, -O0):
<UpnpPresentationRequest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed5(%rip),%rsi
mov    $0x30,%edx
mov    $0x1,%r8d
mov    %r8d,%ecx
call   1030 <ILibWebServer_Send_Raw@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UpnpPresentationRequest>:
lea    0xee9(%rip),%rsi
mov    $0x30,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
jmp    1030 <ILibWebServer_Send_Raw@plt>

LLVM IR (-O0):
%struct.packetheader = type { i32 }
%struct.ILibWebServer_Session = type { i32 }
@.str = [51 x i8] c"HTTP/1.1 404 File Not Found\0D\0AContent-Length: 0\0D\0A\0D\0A\00"
define void @UpnpPresentationRequest(i8* %0, %struct.packetheader* %1) {
%3 = alloca i8*
%4 = alloca %struct.packetheader*
store i8* %0, i8** %3
store %struct.packetheader* %1, %struct.packetheader** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to %struct.ILibWebServer_Session*
%7 = call i32 @ILibWebServer_Send_Raw(%struct.ILibWebServer_Session* %6, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 48, i32 1, i32 1)
ret void
}

LLVM IR (-O2):
%struct.packetheader = type { i32 }
%struct.ILibWebServer_Session = type { i32 }
@.str = [51 x i8] c"HTTP/1.1 404 File Not Found\0D\0AContent-Length: 0\0D\0A\0D\0A\00"
define void @UpnpPresentationRequest(i8* %0, %struct.packetheader* nocapture readnone %1) {
%3 = bitcast i8* %0 to %struct.ILibWebServer_Session*
%4 = tail call i32 @ILibWebServer_Send_Raw(%struct.ILibWebServer_Session* %3, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 48, i32 1, i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ isendwin();
void shutdown(void) {
  if (!isendwin())
    endwin();
}


x86 assembly (clang, -O0):
<shutdown>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <isendwin@plt>
cmp    $0x0,%eax
jne    113b <shutdown+0x1b>
mov    $0x0,%al
call   1030 <endwin@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<shutdown>:
push   %rax
xor    %eax,%eax
call   1040 <isendwin@plt>
test   %eax,%eax
je     112e <shutdown+0xe>
pop    %rax
ret
xor    %eax,%eax
pop    %rcx
jmp    1030 <endwin@plt>

LLVM IR (-O0):
define void @shutdown() {
%1 = call i32 (...) @isendwin()
%2 = icmp ne i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = call i32 (...) @endwin()
br label %5
5: ; preds = %3, %0
ret void
}

LLVM IR (-O2):
define void @shutdown() {
%1 = tail call i32 (...) @isendwin()
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @endwin()
br label %5
5: ; preds = %3, %0
ret void
}
void gtk_scale_get_draw_value() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @func4() {
ret void
}
int main(int argc, char **argv) { return (0); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
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
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
void OCSP_SERVICELOC_new(void) {}


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

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

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

LLVM IR (-O2):
define void @OCSP_SERVICELOC_new() {
ret void
}
/* Variables and functions */
size_t get_seperator_pos(const char *str, const char seperator) {
  size_t i = 0;
  while (str[i] != seperator && str[i] != '\0')
    i++;
  return i;
}


x86 assembly (clang, -O0):
<get_seperator_pos>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
movsbl -0x9(%rbp),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x19(%rbp)
je     1148 <get_seperator_pos+0x48>
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1158 <get_seperator_pos+0x58>
jmp    1169 <get_seperator_pos+0x69>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1116 <get_seperator_pos+0x16>
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_seperator_pos>:
mov    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movzbl 0x1(%rdi,%rax,1),%ecx
add    $0x1,%rax
cmp    %sil,%cl
je     1122 <get_seperator_pos+0x22>
test   %cl,%cl
jne    1110 <get_seperator_pos+0x10>
ret

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

LLVM IR (-O2):
define i64 @get_seperator_pos(i8* nocapture %0, i8 signext %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i64 [ 0, %2 ], [ %10, %3 ]
%5 = getelementptr inbounds i8, i8* %0, i64 %4
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, %1
%8 = icmp eq i8 %6, 0
%9 = or i1 %7, %8
%10 = add i64 %4, 1
br i1 %9, label %11, label %3
11: ; preds = %3
ret i64 %4
}
int test_imm_AEint8_reg(signed char val) {
  return ((val) & (0xAE << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_AEint8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edx
and    $0xae,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_AEint8_reg>:
test   $0xae,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_AEint8_reg(i8 signext %0) {
%2 = and i8 %0, -82
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
float nonzero_t(float x) {
  float limit = 0.0001f;
  if (x >= limit)
    return (x);
  else
    return (limit);
}


x86 assembly (clang, -O0):
<nonzero_t>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  0xeef(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jb     1134 <nonzero_t+0x34>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    113e <nonzero_t+0x3e>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<nonzero_t>:
maxss  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @nonzero_t(float %0) {
%2 = alloca float
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float 0x3F1A36E2E0000000, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fcmp oge float %5, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = load float, float* %3
store float %9, float* %2
br label %12
10: ; preds = %1
%11 = load float, float* %4
store float %11, float* %2
br label %12
12: ; preds = %10, %8
%13 = load float, float* %2
ret float %13
}

LLVM IR (-O2):
define float @nonzero_t(float %0) {
%2 = fcmp oge float %0, 0x3F1A36E2E0000000
%3 = select i1 %2, float %0, float 0x3F1A36E2E0000000
ret float %3
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(char *, char *, int);
char *strchr(char *, char);
void ipr_strncpy_0n(char *dest, char *source, int length) {
  char *ch;
  memcpy(dest, source, length);
  dest[length] = '\0';
  ch = strchr(dest, '\n');
  if (ch)
    *ch = '\0';
}


x86 assembly (clang, -O0):
<ipr_strncpy_0n>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rdi
mov    $0xa,%esi
call   1030 <strchr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1173 <ipr_strncpy_0n+0x53>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ipr_strncpy_0n>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rdi,%rbx
call   1040 <memcpy@plt>
movslq %ebp,%rax
movb   $0x0,(%rbx,%rax,1)
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     1149 <ipr_strncpy_0n+0x29>
movb   $0x0,(%rax)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define void @ipr_strncpy_0n(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @memcpy(i8* %0, i8* %1, i32 %2)
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds i8, i8* %0, i64 %5
store i8 0, i8* %6
%7 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 10)
%8 = icmp eq i8* %7, null
br i1 %8, label %10, label %9
9: ; preds = %3
store i8 0, i8* %7
br label %10
10: ; preds = %9, %3
ret void
}
/* Variables and functions */
int __arch_compare_and_swap(long volatile *, long, long);
int sas_compare_and_swap(volatile long int *p, long int oldval,
                         long int newval) {
  return __arch_compare_and_swap(p, oldval, newval);
}


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

x86 assembly (clang, -O2):
<sas_compare_and_swap>:
jmp    1030 <__arch_compare_and_swap@plt>

LLVM IR (-O0):
define i32 @sas_compare_and_swap(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 = load i64, i64* %6
%10 = call i32 @__arch_compare_and_swap(i64* %7, i64 %8, i64 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @sas_compare_and_swap(i64* %0, i64 %1, i64 %2) {
%4 = tail call i32 @__arch_compare_and_swap(i64* %0, i64 %1, i64 %2)
ret i32 %4
}
float lgammaf(float x) { return 0.0; }


x86 assembly (clang, -O0):
<lgammaf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
xorps  %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<lgammaf>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @lgammaf(float %0) {
%2 = alloca float
store float %0, float* %2
ret float 0.000000e+00
}

LLVM IR (-O2):
define float @lgammaf(float %0) {
ret float 0.000000e+00
}
int cmp_long_des(const void *x, const void *y) {
  if (*(long *)x > *(long *)y) {
    return -1;
  } else if (*(long *)x < *(long *)y) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<cmp_long_des>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jle    112c <cmp_long_des+0x2c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1158 <cmp_long_des+0x58>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
jge    114c <cmp_long_des+0x4c>
movl   $0x1,-0x4(%rbp)
jmp    1158 <cmp_long_des+0x58>
jmp    1151 <cmp_long_des+0x51>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp_long_des>:
mov    (%rdi),%rax
xor    %ecx,%ecx
cmp    (%rsi),%rax
setl   %cl
mov    $0xffffffff,%eax
cmovle %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @cmp_long_des(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = load i64, i64* %3
%5 = bitcast i8* %1 to i64*
%6 = load i64, i64* %5
%7 = icmp sgt i64 %4, %6
%8 = icmp slt i64 %4, %6
%9 = zext i1 %8 to i32
%10 = select i1 %7, i32 -1, i32 %9
ret i32 %10
}
void fc144(int n) {
  {
    typedef int(*b)[n];
    {
      typedef int(*c)[n];
      0;
    }
    {
      typedef int(*d)[n];
      0;
    };
    typedef int(*e)[n];
    0;
  };
  {
    typedef int(*f)[n];
    goto a;
  a : {
    typedef int(*g)[n];
    0;
  };
    {
      typedef int(*h)[n];
      0;
    };
    ;
    typedef int(*i)[n];
    0;
  };
  ;
  typedef int(*j)[n];
  0;
}


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

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

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

LLVM IR (-O2):
define void @fc144(i32 %0) {
ret void
}
double pair_tailcorr_switch3_eidip(void *pair_data, long center_index,
                                   long other_index, double rcut,
                                   double width) {
  double t1 = 0.0;
  return t1;
}


x86 assembly (clang, -O0):
<pair_tailcorr_switch3_eidip>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
movsd  %xmm1,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<pair_tailcorr_switch3_eidip>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @pair_tailcorr_switch3_eidip(i8* %0, i64 %1, i64 %2, double %3, double %4) {
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i8* %0, i8** %6
store i64 %1, i64* %7
store i64 %2, i64* %8
store double %3, double* %9
store double %4, double* %10
store double 0.000000e+00, double* %11
%12 = load double, double* %11
ret double %12
}

LLVM IR (-O2):
define double @pair_tailcorr_switch3_eidip(i8* nocapture readnone %0, i64 %1, i64 %2, double %3, double %4) {
ret double 0.000000e+00
}
double dotVectors_double(const double *u, const double *v) {
  double ans;
  ans = u[0] * v[0] + u[1] * v[1] + u[2] * v[2];
  return ans;
}


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

x86 assembly (clang, -O2):
<dotVectors_double>:
movsd  0x8(%rdi),%xmm0
mulsd  0x8(%rsi),%xmm0
movsd  (%rdi),%xmm1
mulsd  (%rsi),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rdi),%xmm0
mulsd  0x10(%rsi),%xmm0
addsd  %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define double @dotVectors_double(double* nocapture %0, double* nocapture %1) {
%3 = load double, double* %0
%4 = load double, double* %1
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %1, i64 1
%8 = load double, double* %7
%9 = fmul double %6, %8
%10 = tail call double @llvm.fmuladd.f64(double %3, double %4, double %9)
%11 = getelementptr inbounds double, double* %0, i64 2
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %1, i64 2
%14 = load double, double* %13
%15 = tail call double @llvm.fmuladd.f64(double %12, double %14, double %10)
ret double %15
}
int main() {
  int a = 2;
  int b = 1;
  int t = -1 * (-0x40000000 * a / (-0x20000000 + b)) / -1;
  if (t != 4)
    __builtin_abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
imul   $0xc0000000,-0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0xe0000000,%ecx
cltd
idiv   %ecx
imul   $0xffffffff,%eax,%eax
mov    $0xffffffff,%ecx
cltd
idiv   %ecx
mov    %eax,-0x10(%rbp)
cmpl   $0x4,-0x10(%rbp)
je     1160 <main+0x50>
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
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
store i32 0, i32* %1
store i32 2, i32* %2
store i32 1, i32* %3
%5 = load i32, i32* %2
%6 = mul nsw i32 -1073741824, %5
%7 = load i32, i32* %3
%8 = add nsw i32 -536870912, %7
%9 = sdiv i32 %6, %8
%10 = mul nsw i32 -1, %9
%11 = sdiv i32 %10, -1
store i32 %11, i32* %4
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 4
br i1 %13, label %14, label %15
14: ; preds = %0
unreachable
15: ; preds = %0
ret i32 0
}

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

/* Variables and functions */
int /*<<< orphan*/ klee_make_symbolic(int /*<<< orphan*/ *, size_t, char *);
void macan_aes_decrypt(const struct macan_key *key, size_t len, uint8_t *dst,
                       const uint8_t *src) {
  (void)key, (void)src;
  klee_make_symbolic(dst, len, "aes decryption");
}


x86 assembly (clang, -O0):
<macan_aes_decrypt>:
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
mov    -0x10(%rbp),%rsi
lea    0xec9(%rip),%rdx
call   1030 <klee_make_symbolic@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<macan_aes_decrypt>:
mov    %rdx,%rdi
lea    0xee6(%rip),%rdx
jmp    1030 <klee_make_symbolic@plt>

LLVM IR (-O0):
%struct.macan_key = type { i32 }
@.str = [15 x i8] c"aes decryption\00"
define void @macan_aes_decrypt(%struct.macan_key* %0, i64 %1, i32* %2, i32* %3) {
%5 = alloca %struct.macan_key*
%6 = alloca i64
%7 = alloca i32*
%8 = alloca i32*
store %struct.macan_key* %0, %struct.macan_key** %5
store i64 %1, i64* %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = load %struct.macan_key*, %struct.macan_key** %5
%10 = load i32*, i32** %8
%11 = load i32*, i32** %7
%12 = load i64, i64* %6
%13 = call i32 @klee_make_symbolic(i32* %11, i64 %12, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.macan_key = type { i32 }
@.str = [15 x i8] c"aes decryption\00"
define void @macan_aes_decrypt(%struct.macan_key* nocapture readnone %0, i64 %1, i32* %2, i32* nocapture readnone %3) {
%5 = tail call i32 @klee_make_symbolic(i32* %2, i64 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("        *\n");
  printf("       *\n");
  printf("      *\n");
  printf("*    *\n");
  printf(" *  *\n");
  printf("   *\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@str = [10 x i8] c" *\00"
@str.6 = [9 x i8] c" *\00"
@str.7 = [8 x i8] c" *\00"
@str.8 = [7 x i8] c"* *\00"
@str.9 = [6 x i8] c" * *\00"
@str.10 = [5 x i8] c" *\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}
char *arm_strchr(const char *p, int ch) {
  do {
    if ((*p) == ch) {
      return ((char *)p);
    }
  } while ((*p++) != '\0');
  return ((char *)((void *)0));
}


x86 assembly (clang, -O0):
<arm_strchr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    -0x14(%rbp),%eax
jne    1128 <arm_strchr+0x28>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1150 <arm_strchr+0x50>
jmp    112d <arm_strchr+0x2d>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    110b <arm_strchr+0xb>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<arm_strchr>:
mov    %rdi,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl (%rax),%ecx
cmp    %esi,%ecx
je     1121 <arm_strchr+0x21>
add    $0x1,%rax
test   %cl,%cl
jne    1110 <arm_strchr+0x10>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i8* @arm_strchr(i8* %0, i32 %1) {
br label %3
3: ; preds = %8, %2
%4 = phi i8* [ %0, %2 ], [ %9, %8 ]
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, %1
br i1 %7, label %11, label %8
8: ; preds = %3
%9 = getelementptr inbounds i8, i8* %4, i64 1
%10 = icmp eq i8 %5, 0
br i1 %10, label %11, label %3
11: ; preds = %8, %3
%12 = phi i8* [ %4, %3 ], [ null, %8 ]
ret i8* %12
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
char *ft_itoa_base(long, long, char *);
int /*<<< orphan*/ ft_putstr(char *);
void ft_putnbr_base(long nbr, long base, char *digits) {
  char *number;
  number = ft_itoa_base(nbr, base, digits);
  ft_putstr(number);
  free(number);
}


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

x86 assembly (clang, -O2):
<ft_putnbr_base>:
push   %rbx
call   1040 <ft_itoa_base@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1050 <ft_putstr@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @ft_putnbr_base(i64 %0, i64 %1, i8* %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i8*
%7 = alloca i8*
store i64 %0, i64* %4
store i64 %1, i64* %5
store i8* %2, i8** %6
%8 = load i64, i64* %4
%9 = load i64, i64* %5
%10 = load i8*, i8** %6
%11 = call i8* @ft_itoa_base(i64 %8, i64 %9, i8* %10)
store i8* %11, i8** %7
%12 = load i8*, i8** %7
%13 = call i32 @ft_putstr(i8* %12)
%14 = load i8*, i8** %7
%15 = call i32 @free(i8* %14)
ret void
}

LLVM IR (-O2):
define void @ft_putnbr_base(i64 %0, i64 %1, i8* %2) {
%4 = tail call i8* @ft_itoa_base(i64 %0, i64 %1, i8* %2)
%5 = tail call i32 @ft_putstr(i8* %4)
%6 = tail call i32 @free(i8* %4)
ret void
}
void PT_zero(double *p, int n) {
  while (n--) {
    *p++ = 0.0;
  }
}


x86 assembly (clang, -O0):
<PT_zero>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
je     113a <PT_zero+0x3a>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    110b <PT_zero+0xb>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PT_zero>:
test   %esi,%esi
je     1126 <PT_zero+0x16>
push   %rax
mov    %esi,%edx
shl    $0x3,%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

LLVM IR (-O0):
define void @PT_zero(double* %0, i32 %1) {
%3 = alloca double*
%4 = alloca i32
store double* %0, double** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %9, %2
%6 = load i32, i32* %4
%7 = add nsw i32 %6, -1
store i32 %7, i32* %4
%8 = icmp ne i32 %6, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load double*, double** %3
%11 = getelementptr inbounds double, double* %10, i32 1
store double* %11, double** %3
store double 0.000000e+00, double* %10
br label %5
12: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @PT_zero(double* nocapture writeonly %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = bitcast double* %0 to i8*
%6 = zext i32 %1 to i64
%7 = shl nuw nsw i64 %6, 3
br label %8
8: ; preds = %4, %2
ret void
}
unsigned getThreadId() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @getThreadId() {
ret i32 0
}