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

/* Variables and functions */
struct memorycontainer *createExpression(int, struct memorycontainer *,
                                         struct memorycontainer *);
struct memorycontainer *
createAddExpression(struct memorycontainer *expression1,
                    struct memorycontainer *expression2) {
  return createExpression(0x000B, expression1, expression2);
}


x86 assembly (clang, -O0):
<createAddExpression>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    $0xb,%edi
call   1030 <createExpression@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createAddExpression>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0xb,%edi
jmp    1030 <createExpression@plt>

LLVM IR (-O0):
%struct.memorycontainer = type { i32 }
define %struct.memorycontainer* @createAddExpression(%struct.memorycontainer* %0, %struct.memorycontainer* %1) {
%3 = alloca %struct.memorycontainer*
%4 = alloca %struct.memorycontainer*
store %struct.memorycontainer* %0, %struct.memorycontainer** %3
store %struct.memorycontainer* %1, %struct.memorycontainer** %4
%5 = load %struct.memorycontainer*, %struct.memorycontainer** %3
%6 = load %struct.memorycontainer*, %struct.memorycontainer** %4
%7 = call %struct.memorycontainer* @createExpression(i32 11, %struct.memorycontainer* %5, %struct.memorycontainer* %6)
ret %struct.memorycontainer* %7
}

LLVM IR (-O2):
%struct.memorycontainer = type { i32 }
define %struct.memorycontainer* @createAddExpression(%struct.memorycontainer* %0, %struct.memorycontainer* %1) {
%3 = tail call %struct.memorycontainer* @createExpression(i32 11, %struct.memorycontainer* %0, %struct.memorycontainer* %1)
ret %struct.memorycontainer* %3
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct timespec {
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
time_t _time() {
  struct timespec ts;
  clock_gettime(CLOCK_MONOTONIC, &ts);
  return ts.tv_sec;
}


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

x86 assembly (clang, -O2):
<_time>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
mov    %rsp,%rsi
call   1030 <clock_gettime@plt>
mov    (%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = global i32 0
define i32 @_time() {
%1 = alloca %struct.timespec
%2 = load i32, i32* @CLOCK_MONOTONIC
%3 = call i32 @clock_gettime(i32 %2, %struct.timespec* %1)
%4 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i32 0, i32 0
%5 = load i32, i32* %4
ret i32 %5
}

LLVM IR (-O2):
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = global i32 0
define i32 @_time() {
%1 = alloca %struct.timespec
%2 = bitcast %struct.timespec* %1 to i8*
%3 = load i32, i32* @CLOCK_MONOTONIC
%4 = call i32 @clock_gettime(i32 %3, %struct.timespec* %1)
%5 = getelementptr inbounds %struct.timespec, %struct.timespec* %1, i64 0, i32 0
%6 = load i32, i32* %5
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ e_notr(int);
int /*<<< orphan*/ ra_mchange(int, int);
int ra_mgetv(int);
void co_not(int ra, int rbc) {
  int m;
  m = ra_mgetv(rbc);
  ra_mchange(m, ra);
  e_notr(m);
}


x86 assembly (clang, -O0):
<co_not>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <ra_mgetv@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1050 <ra_mchange@plt>
mov    -0xc(%rbp),%edi
call   1030 <e_notr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<co_not>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
mov    %esi,%edi
call   1040 <ra_mgetv@plt>
mov    %eax,%ebp
mov    %eax,%edi
mov    %ebx,%esi
call   1050 <ra_mchange@plt>
mov    %ebp,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <e_notr@plt>

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

LLVM IR (-O2):
define void @co_not(i32 %0, i32 %1) {
%3 = tail call i32 @ra_mgetv(i32 %1)
%4 = tail call i32 @ra_mchange(i32 %3, i32 %0)
%5 = tail call i32 @e_notr(i32 %3)
ret void
}
void __bitmap_empty(void) { nsc_assert(0, __func__); }


x86 assembly (clang, -O0):
<__bitmap_empty>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xee3(%rip),%rsi
mov    $0x0,%al
call   1030 <nsc_assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__bitmap_empty>:
lea    0xee9(%rip),%rsi
xor    %edi,%edi
xor    %eax,%eax
jmp    1030 <nsc_assert@plt>

LLVM IR (-O0):
@__func__.__bitmap_empty = [15 x i8] c"__bitmap_empty\00"
define void @__bitmap_empty() {
%1 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.__bitmap_empty, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__func__.__bitmap_empty = [15 x i8] c"__bitmap_empty\00"
define void @__bitmap_empty() {
%1 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @nsc_assert to i32 (i32, i8*, ...)*)(i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @__func__.__bitmap_empty, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ debug_ol(char *);
int /*<<< orphan*/ ol(char *);
zadd() {
  debug_ol("; zadd");
  ol("pshx");
  ol("tsx");
  ol("addd	0,x");
  ol("pulx");
}


x86 assembly (clang, -O0):
<zadd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
call   1040 <debug_ol@plt>
lea    0xecc(%rip),%rdi
call   1030 <ol@plt>
lea    0xec5(%rip),%rdi
call   1030 <ol@plt>
lea    0xebd(%rip),%rdi
call   1030 <ol@plt>
lea    0xeba(%rip),%rdi
call   1030 <ol@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zadd>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <debug_ol@plt>
lea    0xed3(%rip),%rdi
call   1030 <ol@plt>
lea    0xecc(%rip),%rdi
call   1030 <ol@plt>
lea    0xec4(%rip),%rdi
call   1030 <ol@plt>
lea    0xec1(%rip),%rdi
pop    %rax
jmp    1030 <ol@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"; zadd\00"
@.str.1 = [5 x i8] c"pshx\00"
@.str.2 = [4 x i8] c"tsx\00"
@.str.3 = [9 x i8] c"addd\090,x\00"
@.str.4 = [5 x i8] c"pulx\00"
define i32 @zadd() {
%1 = alloca i32
%2 = call i32 @debug_ol(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @ol(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @ol(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @ol(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @ol(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%7 = load i32, i32* %1
ret i32 %7
}

LLVM IR (-O2):
@.str = [7 x i8] c"; zadd\00"
@.str.1 = [5 x i8] c"pshx\00"
@.str.2 = [4 x i8] c"tsx\00"
@.str.3 = [9 x i8] c"addd\090,x\00"
@.str.4 = [5 x i8] c"pulx\00"
define i32 @zadd() {
%1 = tail call i32 @debug_ol(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @ol(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @ol(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @ol(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @ol(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
ret i32 undef
}
unsigned short int f86(unsigned short int x, long int y) {
  return (x << ((-y) & (8 * 2 - 1))) + (x >> y);
}


x86 assembly (clang, -O0):
<f86>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %rsi,-0x10(%rbp)
movzwl -0x2(%rbp),%eax
xor    %ecx,%ecx
sub    -0x10(%rbp),%rcx
and    $0xf,%rcx
shl    %cl,%eax
movzwl -0x2(%rbp),%edx
mov    -0x10(%rbp),%rcx
sar    %cl,%edx
mov    %edx,%ecx
add    %ecx,%eax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f86>:
mov    %esi,%ecx
neg    %cl
and    $0xf,%cl
mov    %edi,%eax
shl    %cl,%eax
mov    %esi,%ecx
shr    %cl,%edi
add    %edi,%eax
ret

LLVM IR (-O0):
define zeroext i16 @f86(i16 zeroext %0, i64 %1) {
%3 = alloca i16
%4 = alloca i64
store i16 %0, i16* %3
store i64 %1, i64* %4
%5 = load i16, i16* %3
%6 = zext i16 %5 to i32
%7 = load i64, i64* %4
%8 = sub nsw i64 0, %7
%9 = and i64 %8, 15
%10 = trunc i64 %9 to i32
%11 = shl i32 %6, %10
%12 = load i16, i16* %3
%13 = zext i16 %12 to i32
%14 = load i64, i64* %4
%15 = trunc i64 %14 to i32
%16 = ashr i32 %13, %15
%17 = add nsw i32 %11, %16
%18 = trunc i32 %17 to i16
ret i16 %18
}

LLVM IR (-O2):
define zeroext i16 @f86(i16 zeroext %0, i64 %1) {
%3 = zext i16 %0 to i32
%4 = trunc i64 %1 to i32
%5 = sub i32 0, %4
%6 = and i32 %5, 15
%7 = shl nuw nsw i32 %3, %6
%8 = lshr i32 %3, %4
%9 = add nuw nsw i32 %7, %8
%10 = trunc i32 %9 to i16
ret i16 %10
}
int is_digit(char c) { return ('0' <= c) && (c <= '9'); }


x86 assembly (clang, -O0):
<is_digit>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edx
xor    %eax,%eax
mov    $0x30,%ecx
cmp    %edx,%ecx
mov    %al,-0x2(%rbp)
jg     112d <is_digit+0x2d>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_digit>:
add    $0xd0,%dil
xor    %eax,%eax
cmp    $0xa,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @is_digit(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sle i32 48, %4
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 57
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @is_digit(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
scalar_t__ isalpha(char);
int get_ident(char *s, int i) {
  int len = 0;
  while (isalpha(s[i + len]))
    ++len;
  return len;
}


x86 assembly (clang, -O0):
<get_ident>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
call   1030 <isalpha@plt>
cmp    $0x0,%rax
je     1154 <get_ident+0x44>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <get_ident+0x16>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_ident>:
push   %rbp
push   %rbx
push   %rax
movslq %esi,%rbx
add    %rdi,%rbx
mov    $0xffffffff,%ebp
xchg   %ax,%ax
movsbl (%rbx),%edi
call   1030 <isalpha@plt>
add    $0x1,%ebp
add    $0x1,%rbx
test   %rax,%rax
jne    1120 <get_ident+0x10>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @get_ident(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
br label %6
6: ; preds = %16, %2
%7 = load i8*, i8** %3
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = add nsw i32 %8, %9
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, i8* %7, i64 %11
%13 = load i8, i8* %12
%14 = call i64 @isalpha(i8 signext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %6
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %6
19: ; preds = %6
%20 = load i32, i32* %5
ret i32 %20
}

LLVM IR (-O2):
define i32 @get_ident(i8* nocapture %0, i32 %1) {
%3 = sext i32 %1 to i64
br label %4
4: ; preds = %4, %2
%5 = phi i64 [ %11, %4 ], [ 0, %2 ]
%6 = add nsw i64 %5, %3
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = tail call i64 @isalpha(i8 signext %8)
%10 = icmp eq i64 %9, 0
%11 = add nuw i64 %5, 1
br i1 %10, label %12, label %4
12: ; preds = %4
%13 = trunc i64 %5 to i32
ret i32 %13
}
/* Variables and functions */
void *malloc(size_t);
int /*<<< orphan*/ printf(char *, size_t);
void *CTA_Malloc(size_t size) {
  void *ptr = malloc(size);
  if (!ptr) {
    printf("CTA_Malloc: Warning: malloc returns NULL. (size=%zd)\n", size);
  } else {
  }
  return ptr;
}


x86 assembly (clang, -O0):
<CTA_Malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1159 <CTA_Malloc+0x39>
mov    -0x8(%rbp),%rsi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
jmp    115e <CTA_Malloc+0x3e>
jmp    115e <CTA_Malloc+0x3e>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CTA_Malloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1143 <CTA_Malloc+0x23>
lea    0xec5(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [54 x i8] c"CTA_Malloc: Warning: malloc returns NULL. (size=%zd)\0A\00"
define i8* @CTA_Malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp ne i8* %6, null
br i1 %7, label %11, label %8
8: ; preds = %1
%9 = load i64, i64* %2
%10 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i64 %9)
br label %12
11: ; preds = %1
br label %12
12: ; preds = %11, %8
%13 = load i8*, i8** %3
ret i8* %13
}

LLVM IR (-O2):
@.str = [54 x i8] c"CTA_Malloc: Warning: malloc returns NULL. (size=%zd)\0A\00"
define noalias i8* @CTA_Malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i64 %0)
br label %6
6: ; preds = %1, %4
ret i8* %2
}
void TA3_0_IRQHandler(void) {
  while (1) {
  }
}


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

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

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

LLVM IR (-O2):
define void @TA3_0_IRQHandler() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Variables and functions */
scalar_t__ prj_get_resdefines();
int prj_getlistsize(void **);
int prj_get_numresdefines() {
  return prj_getlistsize((void **)prj_get_resdefines());
}


x86 assembly (clang, -O0):
<prj_get_numresdefines>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <prj_get_resdefines@plt>
mov    %rax,%rdi
call   1030 <prj_getlistsize@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<prj_get_numresdefines>:
push   %rax
xor    %eax,%eax
call   1040 <prj_get_resdefines@plt>
mov    %rax,%rdi
pop    %rax
jmp    1030 <prj_getlistsize@plt>

LLVM IR (-O0):
define i32 @prj_get_numresdefines() {
%1 = call i64 (...) @prj_get_resdefines()
%2 = inttoptr i64 %1 to i8**
%3 = call i32 @prj_getlistsize(i8** %2)
ret i32 %3
}

LLVM IR (-O2):
define i32 @prj_get_numresdefines() {
%1 = tail call i64 (...) @prj_get_resdefines()
%2 = inttoptr i64 %1 to i8**
%3 = tail call i32 @prj_getlistsize(i8** %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_sndfile_read_sample_spec() {
  printf("NOT IMPLEMENTED:"
         "pa_sndfile_read_sample_spec"
         "\n");
}


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

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

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

LLVM IR (-O2):
@str = [44 x i8] c"NOT IMPLEMENTED:pa_sndfile_read_sample_spec\00"
define i32 @pa_sndfile_read_sample_spec() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
scalar_t__ xtables_find_entry(int);
uint64_t xtables_virt_to_phys(uint64_t *pgd, uint64_t virt) {
  uint64_t phys = virt & 0xFFF;
  uint64_t *entry = (uint64_t *)xtables_find_entry(virt);
  *entry &= 0x7FFFFFF000;
  phys |= *entry;
  return phys;
}


x86 assembly (clang, -O0):
<xtables_virt_to_phys>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
and    $0xfff,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <xtables_find_entry@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movslq (%rax),%rcx
movabs $0x7ffffff000,%rdx
and    %rdx,%rcx
mov    %ecx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xtables_virt_to_phys>:
push   %rbx
mov    %esi,%edi
mov    %esi,%ebx
and    $0xfff,%ebx
call   1030 <xtables_find_entry@plt>
mov    $0xfffff000,%ecx
and    (%rax),%ecx
mov    %ecx,(%rax)
or     %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @xtables_virt_to_phys(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
store i32* %0, i32** %3
store i32 %1, i32* %4
%7 = load i32, i32* %4
%8 = and i32 %7, 4095
store i32 %8, i32* %5
%9 = load i32, i32* %4
%10 = call i64 @xtables_find_entry(i32 %9)
%11 = inttoptr i64 %10 to i32*
store i32* %11, i32** %6
%12 = load i32*, i32** %6
%13 = load i32, i32* %12
%14 = sext i32 %13 to i64
%15 = and i64 %14, 549755809792
%16 = trunc i64 %15 to i32
store i32 %16, i32* %12
%17 = load i32*, i32** %6
%18 = load i32, i32* %17
%19 = load i32, i32* %5
%20 = or i32 %19, %18
store i32 %20, i32* %5
%21 = load i32, i32* %5
ret i32 %21
}

LLVM IR (-O2):
define i32 @xtables_virt_to_phys(i32* nocapture readnone %0, i32 %1) {
%3 = and i32 %1, 4095
%4 = tail call i64 @xtables_find_entry(i32 %1)
%5 = inttoptr i64 %4 to i32*
%6 = load i32, i32* %5
%7 = and i32 %6, -4096
store i32 %7, i32* %5
%8 = or i32 %7, %3
ret i32 %8
}
/* Variables and functions */
int u8islowergreeki(int /*<<< orphan*/);
int /*<<< orphan*/ u8tointcc(char const *);
int u8islowergreekcc(const char *c) { return u8islowergreeki(u8tointcc(c)); }


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

x86 assembly (clang, -O2):
<u8islowergreekcc>:
push   %rax
call   1030 <u8tointcc@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <u8islowergreeki@plt>

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

LLVM IR (-O2):
define i32 @u8islowergreekcc(i8* %0) {
%2 = tail call i32 @u8tointcc(i8* %0)
%3 = tail call i32 @u8islowergreeki(i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ trap_Gettext(char *, char const *, int);
char *gettext(const char *msgid) {
  static char string[8][32000];
  static int index = 0;
  char *buf = string[index++ & 7];
  trap_Gettext(buf, msgid, sizeof(*string));
  return buf;
}


x86 assembly (clang, -O0):
<gettext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x4171e(%rip),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,0x41713(%rip)
and    $0x7,%eax
movslq %eax,%rcx
lea    0x2f06(%rip),%rax
imul   $0x7d00,%rcx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x7d00,%edx
call   1030 <trap_Gettext@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gettext>:
push   %rbx
mov    %rdi,%rsi
mov    0x41726(%rip),%eax
lea    0x1(%rax),%ecx
mov    %ecx,0x4171d(%rip)
and    $0x7,%eax
imul   $0x7d00,%rax,%rax
lea    0x2f0c(%rip),%rbx
add    %rax,%rbx
mov    %rbx,%rdi
mov    $0x7d00,%edx
call   1030 <trap_Gettext@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@gettext.string = internal global [8 x [32000 x i8]] zeroinitializer
@gettext.index = internal global i32 0
define i8* @gettext(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i32, i32* @gettext.index
%5 = add nsw i32 %4, 1
store i32 %5, i32* @gettext.index
%6 = and i32 %4, 7
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [8 x [32000 x i8]], [8 x [32000 x i8]]* @gettext.string, i64 0, i64 %7
%9 = getelementptr inbounds [32000 x i8], [32000 x i8]* %8, i64 0, i64 0
store i8* %9, i8** %3
%10 = load i8*, i8** %3
%11 = load i8*, i8** %2
%12 = call i32 @trap_Gettext(i8* %10, i8* %11, i32 32000)
%13 = load i8*, i8** %3
ret i8* %13
}

LLVM IR (-O2):
@gettext.string = internal global [8 x [32000 x i8]] zeroinitializer
@gettext.index = internal unnamed_addr global i32 0
define i8* @gettext(i8* %0) {
%2 = load i32, i32* @gettext.index
%3 = add nsw i32 %2, 1
store i32 %3, i32* @gettext.index
%4 = and i32 %2, 7
%5 = zext i32 %4 to i64
%6 = getelementptr inbounds [8 x [32000 x i8]], [8 x [32000 x i8]]* @gettext.string, i64 0, i64 %5, i64 0
%7 = tail call i32 @trap_Gettext(i8* %6, i8* %0, i32 32000)
ret i8* %6
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int, int, char *);
char *_resposta_padrao(int sessao, int eeeee, char *mensagem) {
  static char resp[256];
  sprintf(resp, "%d|%05d|%s||", sessao, eeeee, mensagem);
  return resp;
}


x86 assembly (clang, -O0):
<_resposta_padrao>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%r8
lea    0x2f0d(%rip),%rdi
lea    0xec6(%rip),%rsi
call   1030 <sprintf@plt>
lea    0x2efa(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_resposta_padrao>:
push   %rbx
mov    %rdx,%r8
mov    %esi,%ecx
mov    %edi,%edx
lea    0x2f21(%rip),%rbx
lea    0xeda(%rip),%rsi
mov    %rbx,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@_resposta_padrao.resp = internal global [256 x i8] zeroinitializer
@.str = [13 x i8] c"%d|%05d|%s||\00"
define i8* @_resposta_padrao(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i8*, i8** %6
%10 = call i32 @sprintf(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @_resposta_padrao.resp, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8, i8* %9)
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @_resposta_padrao.resp, i64 0, i64 0)
}

LLVM IR (-O2):
@_resposta_padrao.resp = internal global [256 x i8] zeroinitializer
@.str = [13 x i8] c"%d|%05d|%s||\00"
define i8* @_resposta_padrao(i32 %0, i32 %1, i8* %2) {
%4 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([256 x i8], [256 x i8]* @_resposta_padrao.resp, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i8* %2)
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @_resposta_padrao.resp, i64 0, i64 0)
}
/* Variables and functions */
int FixedMul(int, int);
int sq(int x) { return FixedMul(x, x); }


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

x86 assembly (clang, -O2):
<sq>:
mov    %edi,%esi
jmp    1030 <FixedMul@plt>

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

LLVM IR (-O2):
define i32 @sq(i32 %0) {
%2 = tail call i32 @FixedMul(i32 %0, i32 %0)
ret i32 %2
}
__attribute__((always_)) void radix_tree_preload_end(void) {
  do {
  } while (0);
}


x86 assembly (clang, -O0):
<radix_tree_preload_end>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <radix_tree_preload_end+0x9>
jmp    110e <radix_tree_preload_end+0xe>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @radix_tree_preload_end() {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
ret void
}

LLVM IR (-O2):
define void @radix_tree_preload_end() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void __libc_fatal(const char *message) { abort(); }


x86 assembly (clang, -O0):
<__libc_fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<__libc_fatal>:
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @__libc_fatal(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @__libc_fatal(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @abort()
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;

/* Variables and functions */
int difftime(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void pause(void) {
  time_t then;
  time(&then);
  while (difftime(time(NULL), then) < 5)
    ;
}


x86 assembly (clang, -O0):
<pause>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
call   1040 <time@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,%edi
mov    -0x4(%rbp),%esi
call   1030 <difftime@plt>
cmp    $0x5,%eax
jge    1152 <pause+0x32>
jmp    1131 <pause+0x11>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pause>:
push   %rax
lea    0x4(%rsp),%rdi
call   1040 <time@plt>
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
call   1040 <time@plt>
mov    0x4(%rsp),%esi
mov    %eax,%edi
call   1030 <difftime@plt>
cmp    $0x5,%eax
jl     1130 <pause+0x10>
pop    %rax
ret

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

LLVM IR (-O2):
define void @pause() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @time(i32* %1)
br label %4
4: ; preds = %4, %0
%5 = call i32 @time(i32* null)
%6 = load i32, i32* %1
%7 = call i32 @difftime(i32 %5, i32 %6)
%8 = icmp slt i32 %7, 5
br i1 %8, label %4, label %9
9: ; preds = %4
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
void h_u16_to_le(uint8_t *buf, int val) {
  buf[1] = (uint8_t)(val >> 8);
  buf[0] = (uint8_t)(val >> 0);
}


x86 assembly (clang, -O0):
<h_u16_to_le>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x8,%eax
movslq %eax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0xc(%rbp),%eax
sar    $0x0,%eax
movslq %eax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<h_u16_to_le>:
movslq %esi,%rax
sar    $0x8,%esi
movslq %esi,%rcx
mov    %rcx,0x8(%rdi)
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
define void @h_u16_to_le(i64* %0, i32 %1) {
%3 = alloca i64*
%4 = alloca i32
store i64* %0, i64** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = ashr i32 %5, 8
%7 = sext i32 %6 to i64
%8 = load i64*, i64** %3
%9 = getelementptr inbounds i64, i64* %8, i64 1
store i64 %7, i64* %9
%10 = load i32, i32* %4
%11 = ashr i32 %10, 0
%12 = sext i32 %11 to i64
%13 = load i64*, i64** %3
%14 = getelementptr inbounds i64, i64* %13, i64 0
store i64 %12, i64* %14
ret void
}

LLVM IR (-O2):
define void @h_u16_to_le(i64* nocapture writeonly %0, i32 %1) {
%3 = ashr i32 %1, 8
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i64, i64* %0, i64 1
store i64 %4, i64* %5
%6 = sext i32 %1 to i64
store i64 %6, i64* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  int k;
  int c;
  scanf("%d", &n);
  k = n * n;
  c = n * n * n;
  printf("%d\n", k);
  printf("%d\n", c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    %ebx,%esi
imul   %ebx,%esi
imul   %esi,%ebx
lea    0xebb(%rip),%r14
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = mul nsw i32 %4, %4
%6 = mul nsw i32 %5, %4
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ getColor(char *);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ setColor(char);
void putcharColor(char c, char color) {
  char bColor;
  getColor(&bColor);
  setColor(color);
  putchar(c);
  setColor(bColor);
}


x86 assembly (clang, -O0):
<putcharColor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
lea    -0x3(%rbp),%rdi
call   1040 <getColor@plt>
movsbl -0x2(%rbp),%edi
call   1050 <setColor@plt>
movsbl -0x1(%rbp),%edi
call   1030 <putchar@plt>
movsbl -0x3(%rbp),%edi
call   1050 <setColor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putcharColor>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
lea    0x7(%rsp),%rdi
call   1040 <getColor@plt>
mov    %ebx,%edi
call   1050 <setColor@plt>
mov    %ebp,%edi
call   1030 <putchar@plt>
movsbl 0x7(%rsp),%edi
call   1050 <setColor@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @putcharColor(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%6 = call i32 @getColor(i8* %5)
%7 = load i8, i8* %4
%8 = call i32 @setColor(i8 signext %7)
%9 = load i8, i8* %3
%10 = call i32 @putchar(i8 signext %9)
%11 = load i8, i8* %5
%12 = call i32 @setColor(i8 signext %11)
ret void
}

LLVM IR (-O2):
define void @putcharColor(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = call i32 @getColor(i8* %3)
%5 = call i32 @setColor(i8 signext %1)
%6 = call i32 @putchar(i8 signext %0)
%7 = load i8, i8* %3
%8 = call i32 @setColor(i8 signext %7)
ret void
}
/* Variables and functions */
float ANTweenTimingFunctionCircIn(float, int /*<<< orphan*/, int, float);
float ANTweenProgressTimingFunctionCircIn(float time, float duration) {
  return ANTweenTimingFunctionCircIn(time, 0, 1, duration);
}


x86 assembly (clang, -O0):
<ANTweenProgressTimingFunctionCircIn>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <ANTweenTimingFunctionCircIn@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ANTweenProgressTimingFunctionCircIn>:
xor    %edi,%edi
mov    $0x1,%esi
jmp    1030 <ANTweenTimingFunctionCircIn@plt>

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

LLVM IR (-O2):
define float @ANTweenProgressTimingFunctionCircIn(float %0, float %1) {
%3 = tail call float @ANTweenTimingFunctionCircIn(float %0, i32 0, i32 1, float %1)
ret float %3
}
int test_imm_CAuint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0xCA << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_CAuint64_highword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
shr    $0x20,%rdx
and    $0xca,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_CAuint64_highword_mem>:
testb  $0xca,0x4(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_CAuint64_highword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = lshr i64 %4, 32
%6 = and i64 %5, 202
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i32 -20, i32 -40
ret i32 %9
}

LLVM IR (-O2):
define i32 @test_imm_CAuint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 867583393792
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void g_queue_remove() {}


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

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

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

LLVM IR (-O2):
define void @g_queue_remove() {
ret void
}
/* Type definitions */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
int S_ISSOCK(int /*<<< orphan*/);
scalar_t__ stat(char const *, struct stat *);
int fsop_path_issock(const char *path) {
  struct stat st;
  if (stat(path, &st) < 0)
    return -1;
  return S_ISSOCK(st.st_mode);
}


x86 assembly (clang, -O0):
<fsop_path_issock>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <stat@plt>
cmp    $0x0,%rax
jge    114f <fsop_path_issock+0x2f>
movl   $0xffffffff,-0x4(%rbp)
jmp    115a <fsop_path_issock+0x3a>
mov    -0x18(%rbp),%edi
call   1030 <S_ISSOCK@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fsop_path_issock>:
push   %rax
mov    %rsp,%rsi
call   1040 <stat@plt>
test   %rax,%rax
js     1138 <fsop_path_issock+0x18>
mov    (%rsp),%edi
call   1030 <S_ISSOCK@plt>
pop    %rcx
ret
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @fsop_path_issock(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i64 @stat(i8* %5, %struct.stat* %4)
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, i32* %2
br label %13
9: ; preds = %1
%10 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%11 = load i32, i32* %10
%12 = call i32 @S_ISSOCK(i32 %11)
store i32 %12, i32* %2
br label %13
13: ; preds = %9, %8
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @fsop_path_issock(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i64 @stat(i8* %0, %struct.stat* %2)
%5 = icmp slt i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%8 = load i32, i32* %7
%9 = call i32 @S_ISSOCK(i32 %8)
br label %10
10: ; preds = %1, %6
%11 = phi i32 [ %9, %6 ], [ -1, %1 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ bit_get_lsb_val(int);
int bit_get_msb_pos(int /*<<< orphan*/);
int bit_get_lsb_pos(int n) { return bit_get_msb_pos(bit_get_lsb_val(n)); }


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

x86 assembly (clang, -O2):
<bit_get_lsb_pos>:
push   %rax
call   1040 <bit_get_lsb_val@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <bit_get_msb_pos@plt>

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

LLVM IR (-O2):
define i32 @bit_get_lsb_pos(i32 %0) {
%2 = tail call i32 @bit_get_lsb_val(i32 %0)
%3 = tail call i32 @bit_get_msb_pos(i32 %2)
ret i32 %3
}
/* Variables and functions */
int strcmp(char *, char *);
int xstrcmp(char *a, char *b) {
  if (!a && b)
    return 1;
  if (!b && a)
    return 1;
  if (a == b)
    return 0;
  return strcmp(a, b);
}


x86 assembly (clang, -O0):
<xstrcmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1142 <xstrcmp+0x32>
cmpq   $0x0,-0x18(%rbp)
je     1142 <xstrcmp+0x32>
movl   $0x1,-0x4(%rbp)
jmp    118e <xstrcmp+0x7e>
cmpq   $0x0,-0x18(%rbp)
jne    1164 <xstrcmp+0x54>
cmpq   $0x0,-0x10(%rbp)
je     1164 <xstrcmp+0x54>
movl   $0x1,-0x4(%rbp)
jmp    118e <xstrcmp+0x7e>
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    117e <xstrcmp+0x6e>
movl   $0x0,-0x4(%rbp)
jmp    118e <xstrcmp+0x7e>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcmp@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xstrcmp>:
mov    $0x1,%eax
test   %rdi,%rdi
jne    1120 <xstrcmp+0x10>
test   %rsi,%rsi
je     1120 <xstrcmp+0x10>
ret
test   %rdi,%rdi
je     112a <xstrcmp+0x1a>
test   %rsi,%rsi
je     111f <xstrcmp+0xf>
cmp    %rsi,%rdi
je     1134 <xstrcmp+0x24>
jmp    1030 <strcmp@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @xstrcmp(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 = icmp ne i8* %6, null
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i8*, i8** %5
%10 = icmp ne i8* %9, null
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 1, i32* %3
br label %28
12: ; preds = %8, %2
%13 = load i8*, i8** %5
%14 = icmp ne i8* %13, null
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = load i8*, i8** %4
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 1, i32* %3
br label %28
19: ; preds = %15, %12
%20 = load i8*, i8** %4
%21 = load i8*, i8** %5
%22 = icmp eq i8* %20, %21
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 0, i32* %3
br label %28
24: ; preds = %19
%25 = load i8*, i8** %4
%26 = load i8*, i8** %5
%27 = call i32 @strcmp(i8* %25, i8* %26)
store i32 %27, i32* %3
br label %28
28: ; preds = %24, %23, %18, %11
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
define i32 @xstrcmp(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
%4 = icmp ne i8* %1, null
%5 = and i1 %3, %4
br i1 %5, label %14, label %6
6: ; preds = %2
%7 = icmp eq i8* %1, null
%8 = icmp ne i8* %0, null
%9 = and i1 %8, %7
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = icmp eq i8* %0, %1
br i1 %11, label %14, label %12
12: ; preds = %10
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
br label %14
14: ; preds = %10, %6, %2, %12
%15 = phi i32 [ %13, %12 ], [ 1, %2 ], [ 1, %6 ], [ 0, %10 ]
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ fatal(char *);
void nav_rd_init(const char *fname) {
  fatal("navicache"
        ": This build excluded GPX support because expat was not installed.\n");
}


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

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

LLVM IR (-O0):
@.str = [77 x i8] c"navicache: This build excluded GPX support because expat was not installed.\0A\00"
define void @nav_rd_init(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @fatal(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [77 x i8] c"navicache: This build excluded GPX support because expat was not installed.\0A\00"
define void @nav_rd_init(i8* nocapture readnone %0) {
%2 = tail call i32 @fatal(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
ret void
}
void swap(int *a, int *b) {
  *a += *b;
  *b = *a - *b;
  *a -= *b;
}


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

x86 assembly (clang, -O2):
<swap>:
mov    (%rdi),%eax
add    (%rsi),%eax
mov    %eax,(%rdi)
sub    (%rsi),%eax
mov    %eax,(%rsi)
sub    %eax,(%rdi)
ret

LLVM IR (-O0):
define void @swap(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = load i32, i32* %5
%7 = load i32*, i32** %3
%8 = load i32, i32* %7
%9 = add nsw i32 %8, %6
store i32 %9, i32* %7
%10 = load i32*, i32** %3
%11 = load i32, i32* %10
%12 = load i32*, i32** %4
%13 = load i32, i32* %12
%14 = sub nsw i32 %11, %13
%15 = load i32*, i32** %4
store i32 %14, i32* %15
%16 = load i32*, i32** %4
%17 = load i32, i32* %16
%18 = load i32*, i32** %3
%19 = load i32, i32* %18
%20 = sub nsw i32 %19, %17
store i32 %20, i32* %18
ret void
}

LLVM IR (-O2):
define void @swap(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %1
%4 = load i32, i32* %0
%5 = add nsw i32 %4, %3
store i32 %5, i32* %0
%6 = load i32, i32* %1
%7 = sub nsw i32 %5, %6
store i32 %7, i32* %1
%8 = load i32, i32* %0
%9 = sub nsw i32 %8, %7
store i32 %9, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ getloadavg;
int main(int argc, char *argv[]) {
  (void)argc;
  (void)argv;
  (void)getloadavg;
  exit(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)
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
@getloadavg = global i32 0
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = load i32, i32* @getloadavg
%9 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@getloadavg = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
typedef int in_addr_t;

/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int, int, int, int);
char *conv_addr(in_addr_t a, char *buf) {
  sprintf(buf, "%d.%d.%d.%d", a & 255, (a >> 8) & 255, (a >> 16) & 255,
          a >> 24);
  return buf;
}


x86 assembly (clang, -O0):
<conv_addr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x4(%rbp),%edx
and    $0xff,%edx
mov    -0x4(%rbp),%ecx
sar    $0x8,%ecx
and    $0xff,%ecx
mov    -0x4(%rbp),%r8d
sar    $0x10,%r8d
and    $0xff,%r8d
mov    -0x4(%rbp),%r9d
sar    $0x18,%r9d
lea    0xeaa(%rip),%rsi
call   1030 <sprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conv_addr>:
push   %rbx
mov    %rsi,%rbx
mov    %edi,%eax
movzbl %al,%edx
movzbl %ah,%ecx
mov    %edi,%esi
shr    $0x10,%esi
movzbl %sil,%r8d
sar    $0x18,%eax
lea    0xed1(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%r9d
call   1030 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%d.%d.%d.%d\00"
define i8* @conv_addr(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i32, i32* %3
%7 = and i32 %6, 255
%8 = load i32, i32* %3
%9 = ashr i32 %8, 8
%10 = and i32 %9, 255
%11 = load i32, i32* %3
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = load i32, i32* %3
%15 = ashr i32 %14, 24
%16 = call i32 @sprintf(i8* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %10, i32 %13, i32 %15)
%17 = load i8*, i8** %4
ret i8* %17
}

LLVM IR (-O2):
@.str = [12 x i8] c"%d.%d.%d.%d\00"
define i8* @conv_addr(i32 %0, i8* returned writeonly %1) {
%3 = and i32 %0, 255
%4 = lshr i32 %0, 8
%5 = and i32 %4, 255
%6 = lshr i32 %0, 16
%7 = and i32 %6, 255
%8 = ashr i32 %0, 24
%9 = tail call i32 @sprintf(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %5, i32 %7, i32 %8)
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ sgen(char *, char *, char *);
void cgstorgw(char *s) { sgen("%s\t%s,ax", "mov", s); }


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

x86 assembly (clang, -O2):
<cgstorgw>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xee8(%rip),%rsi
jmp    1030 <sgen@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"%s\09%s,ax\00"
@.str.1 = [4 x i8] c"mov\00"
define void @cgstorgw(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @sgen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"%s\09%s,ax\00"
@.str.1 = [4 x i8] c"mov\00"
define void @cgstorgw(i8* %0) {
%2 = tail call i32 @sgen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}