xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fread(char *, int, int, int /*<<< orphan*/ *);
int readsecthead(char *buf, FILE *f) {
  int t;
  t = fread(buf, 1, 1, f);
  if (t != 1) {
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<readsecthead>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
je     114d <readsecthead+0x3d>
movl   $0xffffffff,-0x4(%rbp)
jmp    1154 <readsecthead+0x44>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readsecthead>:
push   %rax
mov    %rsi,%rcx
mov    $0x1,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
xor    %ecx,%ecx
cmp    $0x1,%eax
setne  %cl
neg    %ecx
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @readsecthead(i8* nocapture %0, i32* nocapture %1) {
%3 = tail call i32 @fread(i8* %0, i32 1, i32 1, i32* %1)
%4 = icmp ne i32 %3, 1
%5 = sext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void f28(long j) {
  if ((j & ((1UL << (28)) - 1)) >= ((1UL << ((28) - 1)) + 2))
    abort();
}


x86 assembly (clang, -O0):
<f28>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0xfffffff,%rax
cmp    $0x8000002,%rax
jb     1139 <f28+0x29>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f28>:
and    $0xffffffe,%edi
cmp    $0x8000002,%edi
jae    111f <f28+0xf>
ret
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @f28(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = and i64 %3, 268435455
%5 = icmp uge i64 %4, 134217730
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %1
ret void
}

LLVM IR (-O2):
define void @f28(i64 %0) {
%2 = and i64 %0, 268435454
%3 = icmp ugt i64 %2, 134217729
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @abort()
unreachable
6: ; preds = %1
ret void
}
void stop_symbolic() {
  int x[100];
  x[0] += 1;
}


x86 assembly (clang, -O0):
<stop_symbolic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    -0x190(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x190(%rbp)
add    $0x110,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @stop_symbolic() {
%1 = alloca [100 x i32]
%2 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%3 = load i32, i32* %2
%4 = add nsw i32 %3, 1
store i32 %4, i32* %2
ret void
}

LLVM IR (-O2):
define void @stop_symbolic() {
ret void
}
/* Variables and functions */
int tigetnum(char *);
int curses_int_cap(const char *name) { return tigetnum((char *)name); }


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

x86 assembly (clang, -O2):
<curses_int_cap>:
jmp    1030 <tigetnum@plt>

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

LLVM IR (-O2):
define i32 @curses_int_cap(i8* %0) {
%2 = tail call i32 @tigetnum(i8* %0)
ret i32 %2
}
int entrypoint() {
  while (1) {
  }
  return 0;
}


x86 assembly (clang, -O0):
<entrypoint>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <entrypoint+0x9>
jmp    1109 <entrypoint+0x9>

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

LLVM IR (-O0):
define i32 @entrypoint() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define i32 @entrypoint() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;
typedef int /*<<< orphan*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_cvtps_pi16(int /*<<< orphan*/);
__m64 test_mm_cvtps_pi16(__m128 a) { return _mm_cvtps_pi16(a); }


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

x86 assembly (clang, -O2):
<test_mm_cvtps_pi16>:
jmp    1030 <_mm_cvtps_pi16@plt>

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

LLVM IR (-O2):
define i32 @test_mm_cvtps_pi16(i32 %0) {
%2 = tail call i32 @_mm_cvtps_pi16(i32 %0)
ret i32 %2
}
int config_MODULE_RADEGAST(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @config_MODULE_RADEGAST() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ test_callbacks_suite();
int /*<<< orphan*/ test_dial_data_suite();
int /*<<< orphan*/ test_url_lib_suite();
int main(int argc, char **argv) {
  test_dial_data_suite();
  test_url_lib_suite();
  test_callbacks_suite();
  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)
mov    $0x0,%al
call   1040 <test_dial_data_suite@plt>
mov    $0x0,%al
call   1030 <test_url_lib_suite@plt>
mov    $0x0,%al
call   1050 <test_callbacks_suite@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <test_dial_data_suite@plt>
xor    %eax,%eax
call   1030 <test_url_lib_suite@plt>
xor    %eax,%eax
call   1050 <test_callbacks_suite@plt>
xor    %eax,%eax
pop    %rcx
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
%6 = call i32 (...) @test_dial_data_suite()
%7 = call i32 (...) @test_url_lib_suite()
%8 = call i32 (...) @test_callbacks_suite()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @test_dial_data_suite()
%4 = tail call i32 (...) @test_url_lib_suite()
%5 = tail call i32 (...) @test_callbacks_suite()
ret i32 0
}
/* Variables and functions */
int A1_oo_A2_aux(int **, int **, int **, int, int, int *, int *);
int /*<<< orphan*/ fill_matrix(int **, int, int, char);
int A1_oo_A2(int **site_marks, int **vbonds, int **hbonds, int M, int N,
             int A1[2], int A2[2]) {
  fill_matrix(site_marks, M, N, '.');
  return A1_oo_A2_aux(site_marks, vbonds, hbonds, M, N, A1, A2);
}


x86 assembly (clang, -O0):
<A1_oo_A2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
mov    $0x2e,%ecx
call   1030 <fill_matrix@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x20(%rbp),%r8d
mov    -0x28(%rbp),%r9
mov    0x10(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <A1_oo_A2_aux@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<A1_oo_A2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8d,%r13d
mov    %ecx,%ebx
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbp
mov    %ecx,%esi
mov    %r8d,%edx
mov    $0x2e,%ecx
call   1030 <fill_matrix@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %ebx,%ecx
mov    %r13d,%r8d
mov    %r14,%r9
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <A1_oo_A2_aux@plt>

LLVM IR (-O0):
define i32 @A1_oo_A2(i32** %0, i32** %1, i32** %2, i32 %3, i32 %4, i32* %5, i32* %6) {
%8 = alloca i32**
%9 = alloca i32**
%10 = alloca i32**
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca i32*
store i32** %0, i32*** %8
store i32** %1, i32*** %9
store i32** %2, i32*** %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32* %5, i32** %13
store i32* %6, i32** %14
%15 = load i32**, i32*** %8
%16 = load i32, i32* %11
%17 = load i32, i32* %12
%18 = call i32 @fill_matrix(i32** %15, i32 %16, i32 %17, i8 signext 46)
%19 = load i32**, i32*** %8
%20 = load i32**, i32*** %9
%21 = load i32**, i32*** %10
%22 = load i32, i32* %11
%23 = load i32, i32* %12
%24 = load i32*, i32** %13
%25 = load i32*, i32** %14
%26 = call i32 @A1_oo_A2_aux(i32** %19, i32** %20, i32** %21, i32 %22, i32 %23, i32* %24, i32* %25)
ret i32 %26
}

LLVM IR (-O2):
define i32 @A1_oo_A2(i32** %0, i32** %1, i32** %2, i32 %3, i32 %4, i32* %5, i32* %6) {
%8 = tail call i32 @fill_matrix(i32** %0, i32 %3, i32 %4, i8 signext 46)
%9 = tail call i32 @A1_oo_A2_aux(i32** %0, i32** %1, i32** %2, i32 %3, i32 %4, i32* %5, i32* %6)
ret i32 %9
}
double calcAngularCoeff(double *x1, double *y1, double *x2, double *y2) {
  double m;
  m = ((*y2) - (*y1)) / ((*x2) - (*x1));
  return m;
}


x86 assembly (clang, -O0):
<calcAngularCoeff>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
subsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<calcAngularCoeff>:
movsd  (%rcx),%xmm0
subsd  (%rsi),%xmm0
movsd  (%rdx),%xmm1
subsd  (%rdi),%xmm1
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @calcAngularCoeff(double* %0, double* %1, double* %2, double* %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca double
store double* %0, double** %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%10 = load double*, double** %8
%11 = load double, double* %10
%12 = load double*, double** %6
%13 = load double, double* %12
%14 = fsub double %11, %13
%15 = load double*, double** %7
%16 = load double, double* %15
%17 = load double*, double** %5
%18 = load double, double* %17
%19 = fsub double %16, %18
%20 = fdiv double %14, %19
store double %20, double* %9
%21 = load double, double* %9
ret double %21
}

LLVM IR (-O2):
define double @calcAngularCoeff(double* nocapture %0, double* nocapture %1, double* nocapture %2, double* nocapture %3) {
%5 = load double, double* %3
%6 = load double, double* %1
%7 = fsub double %5, %6
%8 = load double, double* %2
%9 = load double, double* %0
%10 = fsub double %8, %9
%11 = fdiv double %7, %10
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ trap_R_SetClipRegion(void *);
void CG_ClearClipRegion(void) { trap_R_SetClipRegion(((void *)0)); }


x86 assembly (clang, -O0):
<CG_ClearClipRegion>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1030 <trap_R_SetClipRegion@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<CG_ClearClipRegion>:
xor    %edi,%edi
jmp    1030 <trap_R_SetClipRegion@plt>

LLVM IR (-O0):
define void @CG_ClearClipRegion() {
%1 = call i32 @trap_R_SetClipRegion(i8* null)
ret void
}

LLVM IR (-O2):
define void @CG_ClearClipRegion() {
%1 = tail call i32 @trap_R_SetClipRegion(i8* null)
ret void
}
/* Variables and functions */
int *malloc(int);
int *new_line(int i, int len) {
  int *l = malloc((len + 3) * sizeof(int *));
  if (l == NULL)
    return NULL;
  l[0] = i;
  l[1] = len;
  l[2] = 0;
  return l;
}


x86 assembly (clang, -O0):
<new_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x3,%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    114d <new_line+0x3d>
movq   $0x0,-0x8(%rbp)
jmp    1173 <new_line+0x63>
mov    -0xc(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,0x8(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<new_line>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    0x18(,%rbx,8),%edi
call   1030 <malloc@plt>
test   %rax,%rax
je     1134 <new_line+0x24>
mov    %ebp,(%rax)
mov    %ebx,0x4(%rax)
movl   $0x0,0x8(%rax)
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define noalias i32* @new_line(i32 %0, i32 %1) {
%3 = shl i32 %1, 3
%4 = add i32 %3, 24
%5 = tail call i32* @malloc(i32 %4)
%6 = icmp eq i32* %5, null
br i1 %6, label %10, label %7
7: ; preds = %2
store i32 %0, i32* %5
%8 = getelementptr inbounds i32, i32* %5, i64 1
store i32 %1, i32* %8
%9 = getelementptr inbounds i32, i32* %5, i64 2
store i32 0, i32* %9
br label %10
10: ; preds = %2, %7
ret i32* %5
}
/* Variables and functions */
long getNum(char *, char const *, int, char const *);
long getLong(const char *nptr, int flags, const char *msg) {
  return getNum("getLong", nptr, flags, msg);
}


x86 assembly (clang, -O0):
<getLong>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
lea    0xecb(%rip),%rdi
call   1030 <getNum@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getLong>:
mov    %rdx,%rcx
mov    %esi,%edx
mov    %rdi,%rsi
lea    0xee1(%rip),%rdi
jmp    1030 <getNum@plt>

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

LLVM IR (-O2):
@.str = [8 x i8] c"getLong\00"
define i64 @getLong(i8* %0, i32 %1, i8* %2) {
%4 = tail call i64 @getNum(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1, i8* %2)
ret i64 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ FD_CLR(int, int /*<<< orphan*/ *);
void ME_fd_clr(int fd, fd_set *fds) { FD_CLR(fd, fds); }


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

x86 assembly (clang, -O2):
<ME_fd_clr>:
jmp    1030 <FD_CLR@plt>

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

LLVM IR (-O2):
define void @ME_fd_clr(i32 %0, i32* %1) {
%3 = tail call i32 @FD_CLR(i32 %0, i32* %1)
ret void
}
/* Type definitions */
struct l_class_OC_FSM {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _ZN3FSMD2Ev(struct l_class_OC_FSM *);
void _ZN3FSMD1Ev(struct l_class_OC_FSM *llvm_cbe_this) {
  struct l_class_OC_FSM *llvm_cbe_this_2e_addr;
  struct l_class_OC_FSM *llvm_cbe_this1;
  *(&llvm_cbe_this_2e_addr) = llvm_cbe_this;
  llvm_cbe_this1 = *(&llvm_cbe_this_2e_addr);
  _ZN3FSMD2Ev(llvm_cbe_this1);
  return;
}


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

x86 assembly (clang, -O2):
<_ZN3FSMD1Ev>:
jmp    1030 <_ZN3FSMD2Ev@plt>

LLVM IR (-O0):
%struct.l_class_OC_FSM = type { i32 }
define void @_ZN3FSMD1Ev(%struct.l_class_OC_FSM* %0) {
%2 = alloca %struct.l_class_OC_FSM*
%3 = alloca %struct.l_class_OC_FSM*
%4 = alloca %struct.l_class_OC_FSM*
store %struct.l_class_OC_FSM* %0, %struct.l_class_OC_FSM** %2
%5 = load %struct.l_class_OC_FSM*, %struct.l_class_OC_FSM** %2
store %struct.l_class_OC_FSM* %5, %struct.l_class_OC_FSM** %3
%6 = load %struct.l_class_OC_FSM*, %struct.l_class_OC_FSM** %3
store %struct.l_class_OC_FSM* %6, %struct.l_class_OC_FSM** %4
%7 = load %struct.l_class_OC_FSM*, %struct.l_class_OC_FSM** %4
%8 = call i32 @_ZN3FSMD2Ev(%struct.l_class_OC_FSM* %7)
ret void
}

LLVM IR (-O2):
%struct.l_class_OC_FSM = type { i32 }
define void @_ZN3FSMD1Ev(%struct.l_class_OC_FSM* %0) {
%2 = tail call i32 @_ZN3FSMD2Ev(%struct.l_class_OC_FSM* %0)
ret void
}
/* Variables and functions */
int libclut_eq__(double, int);
int libclut_1__(double x) { return libclut_eq__(x, 1); }


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

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

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

LLVM IR (-O2):
define i32 @libclut_1__(double %0) {
%2 = tail call i32 @libclut_eq__(double %0, i32 1)
ret i32 %2
}
__attribute__((always_)) int complement3bitshifted_slow(int x) {
  if (x & 4)
    return ((x & 3) - 4) << 3;
  return x << 3;
}


x86 assembly (clang, -O0):
<complement3bitshifted_slow>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     112a <complement3bitshifted_slow+0x2a>
mov    -0x8(%rbp),%eax
and    $0x3,%eax
sub    $0x4,%eax
shl    $0x3,%eax
mov    %eax,-0x4(%rbp)
jmp    1133 <complement3bitshifted_slow+0x33>
mov    -0x8(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<complement3bitshifted_slow>:
lea    0x0(,%rdi,8),%ecx
mov    %ecx,%eax
or     $0xffffffe0,%eax
test   $0x4,%dil
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @complement3bitshifted_slow(i32 %0) {
%2 = and i32 %0, 4
%3 = icmp eq i32 %2, 0
%4 = shl i32 %0, 3
%5 = or i32 %4, -32
%6 = select i1 %3, i32 %4, i32 %5
ret i32 %6
}
/* Variables and functions */
int __C_isupper(int);
int isupper(int c) { return __C_isupper(c); }


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

x86 assembly (clang, -O2):
<isupper>:
jmp    1030 <__C_isupper@plt>

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

LLVM IR (-O2):
define i32 @isupper(i32 %0) {
%2 = tail call i32 @__C_isupper(i32 %0)
ret i32 %2
}
extern char char_to_char(char x) { return x - 0x20; }


x86 assembly (clang, -O0):
<char_to_char>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
sub    $0x20,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<char_to_char>:
lea    -0x20(%rdi),%eax
ret

LLVM IR (-O0):
define signext i8 @char_to_char(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = sub nsw i32 %4, 32
%6 = trunc i32 %5 to i8
ret i8 %6
}

LLVM IR (-O2):
define signext i8 @char_to_char(i8 signext %0) {
%2 = add i8 %0, -32
ret i8 %2
}
int BlastScoreChk(int lo, int hi) {
  if (lo >= 0 || hi <= 0 || lo < (-10000) || hi > (1000))
    return 1;
  if (hi - lo > ((1000) - (-10000)))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<BlastScoreChk>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1138 <BlastScoreChk+0x38>
cmpl   $0x0,-0xc(%rbp)
jle    1138 <BlastScoreChk+0x38>
cmpl   $0xffffd8f0,-0x8(%rbp)
jl     1138 <BlastScoreChk+0x38>
cmpl   $0x3e8,-0xc(%rbp)
jle    1144 <BlastScoreChk+0x44>
movl   $0x1,-0x4(%rbp)
jmp    1168 <BlastScoreChk+0x68>
mov    -0xc(%rbp),%eax
sub    -0x8(%rbp),%eax
cmp    $0x2af8,%eax
jle    1161 <BlastScoreChk+0x61>
movl   $0x1,-0x4(%rbp)
jmp    1168 <BlastScoreChk+0x68>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<BlastScoreChk>:
cmp    $0xffffd8f0,%edi
setb   %al
add    $0xfffffc17,%esi
cmp    $0xfffffc18,%esi
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @BlastScoreChk(i32 %0, i32 %1) {
%3 = icmp ult i32 %0, -10000
%4 = add i32 %1, -1001
%5 = icmp ult i32 %4, -1000
%6 = or i1 %3, %5
%7 = zext i1 %6 to i32
ret i32 %7
}
__attribute__((visibility("default"))) int get_shnodep_value(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @get_shnodep_value() {
ret i32 1
}
/* Type definitions */
typedef int int16_t;

/* Variables and functions */
int16_t SASL_W(int16_t x, int16_t by) {
  if (x >= 0)
    return x << by;
  return -((-x) << by);
}


x86 assembly (clang, -O0):
<SASL_W>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1124 <SASL_W+0x24>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    %cl,%eax
mov    %eax,-0x4(%rbp)
jmp    1137 <SASL_W+0x37>
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    %cl,%eax
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SASL_W>:
mov    %esi,%ecx
mov    %edi,%eax
shl    %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @SASL_W(i32 %0, i32 %1) {
%3 = shl i32 %0, %1
ret i32 %3
}
int main() {
  int arr[] = {1, 2, 3, 4, 5, 6};
  int *ptr = arr;
  ptr[3] = 3;
  ptr[6] = 10;
  ptr[-1] = 10;
  for (int i = 0; i < 10; ++i) {
    ptr[i] = 5;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    0xeee(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeeb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xee8(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movl   $0x3,0xc(%rax)
mov    -0x28(%rbp),%rax
movl   $0xa,0x18(%rax)
mov    -0x28(%rbp),%rax
movl   $0xa,-0x4(%rax)
movl   $0x0,-0x2c(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jge    1183 <main+0x83>
mov    -0x28(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movl   $0x5,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    115c <main+0x5c>
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
/* Variables and functions */
int strcmp(char *, char *);
int dsort(const void *a, const void *b) {
  char **x;
  char **y;
  x = (char **)a;
  y = (char **)b;
  return strcmp(*x, *y);
}


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

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

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

LLVM IR (-O2):
define i32 @dsort(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = bitcast i8* %1 to i8**
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(1) %6)
ret i32 %7
}
unsigned int image_version(void *header) {
  unsigned char *ptr = header;
  return ptr[8];
}


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

x86 assembly (clang, -O2):
<image_version>:
movzbl 0x8(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @image_version(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
store i8* %4, i8** %3
%5 = load i8*, i8** %3
%6 = getelementptr inbounds i8, i8* %5, i64 8
%7 = load i8, i8* %6
%8 = zext i8 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @image_version(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 8
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
ret i32 %4
}
int elv_queue_empty(struct request_queue *q) {
  int a;
  return a;
}


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

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

LLVM IR (-O0):
%struct.request_queue = type opaque
define i32 @elv_queue_empty(%struct.request_queue* %0) {
%2 = alloca %struct.request_queue*
%3 = alloca i32
store %struct.request_queue* %0, %struct.request_queue** %2
%4 = load i32, i32* %3
ret i32 %4
}

LLVM IR (-O2):
%struct.request_queue = type opaque
define i32 @elv_queue_empty(%struct.request_queue* nocapture readnone %0) {
ret i32 undef
}
/* Type definitions */
typedef scalar_t__ uint_least32_t;

/* Variables and functions */
bool SHAREMIND_MAP_KEY_LESS_uint_least32_t(uint_least32_t const k1,
                                           uint_least32_t const k2) {
  return k1 < k2;
}


x86 assembly (clang, -O0):
<SHAREMIND_MAP_KEY_LESS_uint_least32_t>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<SHAREMIND_MAP_KEY_LESS_uint_least32_t>:
xor    %eax,%eax
cmp    %rsi,%rdi
setl   %al
ret

LLVM IR (-O0):
define i32 @SHAREMIND_MAP_KEY_LESS_uint_least32_t(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp slt i64 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @SHAREMIND_MAP_KEY_LESS_uint_least32_t(i64 %0, i64 %1) {
%3 = icmp slt i64 %0, %1
%4 = zext i1 %3 to i32
ret i32 %4
}
void dummy_does_nothing() {}


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

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

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

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

/* Variables and functions */
int snd_ctl_enum_info(struct snd_ctl_elem_info *, int, int,
                      char const *const *);
int snd_ac97_ad1888_downmix_info(struct snd_kcontrol *kcontrol,
                                 struct snd_ctl_elem_info *uinfo) {
  static const char *const texts[3] = {"Off", "6 -> 4", "6 -> 2"};
  return snd_ctl_enum_info(uinfo, 1, 3, texts);
}


x86 assembly (clang, -O0):
<snd_ac97_ad1888_downmix_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
mov    $0x3,%edx
lea    0x2ccb(%rip),%rcx
call   1030 <snd_ctl_enum_info@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<snd_ac97_ad1888_downmix_info>:
mov    %rsi,%rdi
lea    0x2ce6(%rip),%rcx
mov    $0x1,%esi
mov    $0x3,%edx
jmp    1030 <snd_ctl_enum_info@plt>

LLVM IR (-O0):
%struct.snd_kcontrol = type { i32 }
%struct.snd_ctl_elem_info = type { i32 }
@snd_ac97_ad1888_downmix_info.texts = internal constant [3 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0)]
@.str = [4 x i8] c"Off\00"
@.str.1 = [7 x i8] c"6 -> 4\00"
@.str.2 = [7 x i8] c"6 -> 2\00"
define i32 @snd_ac97_ad1888_downmix_info(%struct.snd_kcontrol* %0, %struct.snd_ctl_elem_info* %1) {
%3 = alloca %struct.snd_kcontrol*
%4 = alloca %struct.snd_ctl_elem_info*
store %struct.snd_kcontrol* %0, %struct.snd_kcontrol** %3
store %struct.snd_ctl_elem_info* %1, %struct.snd_ctl_elem_info** %4
%5 = load %struct.snd_ctl_elem_info*, %struct.snd_ctl_elem_info** %4
%6 = call i32 @snd_ctl_enum_info(%struct.snd_ctl_elem_info* %5, i32 1, i32 3, i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @snd_ac97_ad1888_downmix_info.texts, i64 0, i64 0))
ret i32 %6
}

LLVM IR (-O2):
%struct.snd_kcontrol = type { i32 }
%struct.snd_ctl_elem_info = type { i32 }
@snd_ac97_ad1888_downmix_info.texts = internal constant [3 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i32 0, i32 0)]
@.str = [4 x i8] c"Off\00"
@.str.1 = [7 x i8] c"6 -> 4\00"
@.str.2 = [7 x i8] c"6 -> 2\00"
define i32 @snd_ac97_ad1888_downmix_info(%struct.snd_kcontrol* nocapture readnone %0, %struct.snd_ctl_elem_info* %1) {
%3 = tail call i32 @snd_ctl_enum_info(%struct.snd_ctl_elem_info* %1, i32 1, i32 3, i8** getelementptr inbounds ([3 x i8*], [3 x i8*]* @snd_ac97_ad1888_downmix_info.texts, i64 0, i64 0))
ret i32 %3
}
void fun(void) {
  ;
  return (void)3;
}


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

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

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

LLVM IR (-O2):
define void @fun() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ check_negative_sized_VLA_10_sub(int);
void check_negative_sized_VLA_10(int x) {
  if (x < 0)
    check_negative_sized_VLA_10_sub(x);
}


x86 assembly (clang, -O0):
<check_negative_sized_VLA_10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    112d <check_negative_sized_VLA_10+0x1d>
mov    -0x4(%rbp),%edi
call   1030 <check_negative_sized_VLA_10_sub@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_negative_sized_VLA_10>:
test   %edi,%edi
js     1115 <check_negative_sized_VLA_10+0x5>
ret
jmp    1030 <check_negative_sized_VLA_10_sub@plt>

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

LLVM IR (-O2):
define void @check_negative_sized_VLA_10(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @check_negative_sized_VLA_10_sub(i32 %0)
br label %5
5: ; preds = %3, %1
ret void
}
/* Variables and functions */
double fabs(double);
double Abs(double a, double b) { return fabs(a); }


x86 assembly (clang, -O0):
<Abs>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movaps 0xee6(%rip),%xmm1
pand   %xmm1,%xmm0
pop    %rbp
ret

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

LLVM IR (-O0):
define double @Abs(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = call double @llvm.fabs.f64(double %5)
ret double %6
}

LLVM IR (-O2):
define double @Abs(double %0, double %1) {
%3 = tail call double @llvm.fabs.f64(double %0)
ret double %3
}
/* Variables and functions */
int respond(int, int, char *);
int respond_internal_error(void) { return respond(451, 1, "Internal error."); }


x86 assembly (clang, -O0):
<respond_internal_error>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1c3,%edi
mov    $0x1,%esi
lea    0xedb(%rip),%rdx
call   1030 <respond@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<respond_internal_error>:
lea    0xee9(%rip),%rdx
mov    $0x1c3,%edi
mov    $0x1,%esi
jmp    1030 <respond@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Internal error.\00"
define i32 @respond_internal_error() {
%1 = call i32 @respond(i32 451, i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [16 x i8] c"Internal error.\00"
define i32 @respond_internal_error() {
%1 = tail call i32 @respond(i32 451, i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ emit_1_or_2_operandsl_vartext(char *, char *);
void special_fdivpl(void) { emit_1_or_2_operandsl_vartext("fdivp", "fdivrp"); }


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

x86 assembly (clang, -O2):
<special_fdivpl>:
lea    0xee9(%rip),%rdi
lea    0xee8(%rip),%rsi
jmp    1030 <emit_1_or_2_operandsl_vartext@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"fdivp\00"
@.str.1 = [7 x i8] c"fdivrp\00"
define void @special_fdivpl() {
%1 = call i32 @emit_1_or_2_operandsl_vartext(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"fdivp\00"
@.str.1 = [7 x i8] c"fdivrp\00"
define void @special_fdivpl() {
%1 = tail call i32 @emit_1_or_2_operandsl_vartext(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void n_null_close(struct tty_struct *tty) {}


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

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

LLVM IR (-O0):
%struct.tty_struct = type opaque
define void @n_null_close(%struct.tty_struct* %0) {
%2 = alloca %struct.tty_struct*
store %struct.tty_struct* %0, %struct.tty_struct** %2
ret void
}

LLVM IR (-O2):
%struct.tty_struct = type opaque
define void @n_null_close(%struct.tty_struct* nocapture %0) {
ret void
}
/* Variables and functions */
int readb(int);
int checkch(void) { return (readb(0x11100017) & 0x1); }


x86 assembly (clang, -O0):
<checkch>:
push   %rbp
mov    %rsp,%rbp
mov    $0x11100017,%edi
call   1030 <readb@plt>
and    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkch>:
push   %rax
mov    $0x11100017,%edi
call   1030 <readb@plt>
and    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @checkch() {
%1 = call i32 @readb(i32 286261271)
%2 = and i32 %1, 1
ret i32 %2
}

LLVM IR (-O2):
define i32 @checkch() {
%1 = tail call i32 @readb(i32 286261271)
%2 = and i32 %1, 1
ret i32 %2
}
int wrap_index_fast(int i, int n) {
  if (i < 0) {
    return n + i;
  } else if (i >= n) {
    return i - n;
  };
  return i;
}


x86 assembly (clang, -O0):
<wrap_index_fast>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1122 <wrap_index_fast+0x22>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1147 <wrap_index_fast+0x47>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jl     113c <wrap_index_fast+0x3c>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1147 <wrap_index_fast+0x47>
jmp    1141 <wrap_index_fast+0x41>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<wrap_index_fast>:
xor    %eax,%eax
cmp    %esi,%edi
cmovge %esi,%eax
neg    %eax
test   %edi,%edi
cmovs  %esi,%eax
add    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @wrap_index_fast(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 0
%4 = icmp slt i32 %0, %1
%5 = select i1 %4, i32 0, i32 %1
%6 = sub i32 0, %5
%7 = select i1 %3, i32 %1, i32 %6
%8 = add i32 %7, %0
ret i32 %8
}
/* Variables and functions */
scalar_t__ pq_check();
int pq_implementation_wait();
int pq_wait(void) {
  if (pq_check()) {
    return 1;
  }
  return pq_implementation_wait();
}


x86 assembly (clang, -O0):
<pq_wait>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <pq_check@plt>
cmp    $0x0,%rax
je     1145 <pq_wait+0x25>
movl   $0x1,-0x4(%rbp)
jmp    114f <pq_wait+0x2f>
mov    $0x0,%al
call   1030 <pq_implementation_wait@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pq_wait>:
push   %rax
xor    %eax,%eax
call   1040 <pq_check@plt>
test   %rax,%rax
je     1134 <pq_wait+0x14>
mov    $0x1,%eax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
jmp    1030 <pq_implementation_wait@plt>

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

LLVM IR (-O2):
define i32 @pq_wait() {
%1 = tail call i64 (...) @pq_check()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @pq_implementation_wait()
br label %5
5: ; preds = %0, %3
%6 = phi i32 [ %4, %3 ], [ 1, %0 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int no_more_memory(void) {
  fprintf(stderr, "No more memory");
  return 2;
}


x86 assembly (clang, -O0):
<no_more_memory>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x2,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<no_more_memory>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x2,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"No more memory\00"
define i32 @no_more_memory() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 2
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"No more memory\00"
define i32 @no_more_memory() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 2
}
void RecordDemo() {}


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

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

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

LLVM IR (-O2):
define void @RecordDemo() {
ret void
}
void PyDTrace_LINE(const char *arg0, const char *arg1, int arg2) {}


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

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

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

LLVM IR (-O2):
define void @PyDTrace_LINE(i8* nocapture %0, i8* nocapture %1, i32 %2) {
ret void
}
void dquot_free_inode(struct inode *inode) {}


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

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

LLVM IR (-O0):
%struct.inode = type opaque
define void @dquot_free_inode(%struct.inode* %0) {
%2 = alloca %struct.inode*
store %struct.inode* %0, %struct.inode** %2
ret void
}

LLVM IR (-O2):
%struct.inode = type opaque
define void @dquot_free_inode(%struct.inode* nocapture %0) {
ret void
}
/* Type definitions */
struct timespec {
  int /*<<< orphan*/ tv_nsec;
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
void _timespec_cpy(struct timespec *lhs, struct timespec *rhs) {
  if (lhs != rhs) {
    lhs->tv_sec = rhs->tv_sec;
    lhs->tv_nsec = rhs->tv_nsec;
  }
}


x86 assembly (clang, -O0):
<_timespec_cpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
je     1134 <_timespec_cpy+0x34>
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<_timespec_cpy>:
cmp    %rsi,%rdi
je     110f <_timespec_cpy+0xf>
mov    0x4(%rsi),%eax
mov    %eax,0x4(%rdi)
mov    (%rsi),%eax
mov    %eax,(%rdi)
ret

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

LLVM IR (-O2):
%struct.timespec = type { i32, i32 }
define void @_timespec_cpy(%struct.timespec* writeonly %0, %struct.timespec* %1) {
%3 = icmp eq %struct.timespec* %0, %1
br i1 %3, label %11, label %4
4: ; preds = %2
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 1
%6 = load i32, i32* %5
%7 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 1
store i32 %6, i32* %7
%8 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%9 = load i32, i32* %8
%10 = getelementptr inbounds %struct.timespec, %struct.timespec* %0, i64 0, i32 0
store i32 %9, i32* %10
br label %11
11: ; preds = %4, %2
ret void
}