xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char const *argv[]) {
  int n = 0;
  while (n++ < 3)
    ;
  printf("n is %d\n", n);
  printf("That 's all this program does.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
cmp    $0x3,%eax
jge    1146 <main+0x36>
jmp    112d <main+0x1d>
mov    -0x14(%rbp),%esi
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"n is %d\0A\00"
@.str.1 = [32 x i8] c"That 's all this program does.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %7
7: ; preds = %11, %2
%8 = load i32, i32* %6
%9 = add nsw i32 %8, 1
store i32 %9, i32* %6
%10 = icmp slt i32 %8, 3
br i1 %10, label %11, label %12
11: ; preds = %7
br label %7
12: ; preds = %7
%13 = load i32, i32* %6
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"n is %d\0A\00"
@str = [31 x i8] c"That 's all this program does.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ pkey_disable_clear(int, int);
void pkey_write_allow(int pkey) { pkey_disable_clear(pkey, 0x2); }


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

x86 assembly (clang, -O2):
<pkey_write_allow>:
mov    $0x2,%esi
jmp    1030 <pkey_disable_clear@plt>

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

LLVM IR (-O2):
define void @pkey_write_allow(i32 %0) {
%2 = tail call i32 @pkey_disable_clear(i32 %0, i32 2)
ret void
}
unsigned char bcd_to_dec(unsigned char val) {
  return ((val / 16 * 10) + (val % 16));
}


x86 assembly (clang, -O0):
<bcd_to_dec>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
imul   $0xa,%eax,%eax
mov    %eax,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
mov    $0x10,%ecx
cltd
idiv   %ecx
mov    -0x8(%rbp),%eax
add    %edx,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bcd_to_dec>:
mov    %edi,%eax
shr    $0x4,%al
movzbl %al,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
and    $0xf,%dil
add    %dil,%al
ret

LLVM IR (-O0):
define zeroext i8 @bcd_to_dec(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = sdiv i32 %4, 16
%6 = mul nsw i32 %5, 10
%7 = load i8, i8* %2
%8 = zext i8 %7 to i32
%9 = srem i32 %8, 16
%10 = add nsw i32 %6, %9
%11 = trunc i32 %10 to i8
ret i8 %11
}

LLVM IR (-O2):
define zeroext i8 @bcd_to_dec(i8 zeroext %0) {
%2 = lshr i8 %0, 4
%3 = mul nuw i8 %2, 10
%4 = and i8 %0, 15
%5 = add nuw i8 %3, %4
ret i8 %5
}
void ft_striter(char *s, void (*f)(char *)) {
  int i;
  i = 0;
  if (s && f) {
    while (s[i]) {
      f(&s[i]);
      i++;
    }
  }
}


x86 assembly (clang, -O0):
<ft_striter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1168 <ft_striter+0x68>
cmpq   $0x0,-0x10(%rbp)
je     1168 <ft_striter+0x68>
jmp    1132 <ft_striter+0x32>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1163 <ft_striter+0x63>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rcx
add    %rcx,%rdi
call   *%rax
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1132 <ft_striter+0x32>
jmp    1168 <ft_striter+0x68>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_striter>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     1130 <ft_striter+0x30>
mov    %rsi,%r14
test   %rsi,%rsi
je     1130 <ft_striter+0x30>
mov    %rdi,%rbx
cmpb   $0x0,(%rdi)
je     1130 <ft_striter+0x30>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   *%r14
cmpb   $0x0,0x1(%rbx)
lea    0x1(%rbx),%rbx
jne    1120 <ft_striter+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @ft_striter(i8* %0, void (i8*)* %1) {
%3 = icmp ne i8* %0, null
%4 = icmp ne void (i8*)* %1, null
%5 = and i1 %3, %4
br i1 %5, label %6, label %16
6: ; preds = %2
%7 = load i8, i8* %0
%8 = icmp eq i8 %7, 0
br i1 %8, label %16, label %9
9: ; preds = %6, %9
%10 = phi i64 [ %12, %9 ], [ 0, %6 ]
%11 = phi i8* [ %13, %9 ], [ %0, %6 ]
tail call void %1(i8* %11)
%12 = add nuw i64 %10, 1
%13 = getelementptr inbounds i8, i8* %0, i64 %12
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %9
16: ; preds = %9, %6, %2
ret void
}
AX0AX1(r0, r1, x0, x1, p0, p1) short r0, r1;
short *p0, *p1;
{ (((short *)10000000)[x0]) = (((short *)11111111)[x1]); }


x86 assembly (clang, -O0):
<AX0AX1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
movslq -0x10(%rbp),%rcx
mov    $0xa98ac7,%eax
mov    (%rax,%rcx,2),%dx
movslq -0xc(%rbp),%rcx
mov    $0x989680,%eax
mov    %dx,(%rax,%rcx,2)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<AX0AX1>:
movslq %ecx,%rax
movzwl 0xa98ac7(%rax,%rax,1),%eax
movslq %edx,%rcx
mov    %ax,0x989680(%rcx,%rcx,1)
ret

LLVM IR (-O0):
define i32 @AX0AX1(i32 %0, i32 %1, i32 %2, i32 %3, i16* %4, i16* %5) {
%7 = alloca i32
%8 = alloca i16
%9 = alloca i16
%10 = alloca i32
%11 = alloca i32
%12 = alloca i16*
%13 = alloca i16*
%14 = trunc i32 %0 to i16
%15 = trunc i32 %1 to i16
store i16 %14, i16* %8
store i16 %15, i16* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i16* %4, i16** %12
store i16* %5, i16** %13
%16 = load i32, i32* %11
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i16, i16* inttoptr (i64 11111111 to i16*), i64 %17
%19 = load i16, i16* %18
%20 = load i32, i32* %10
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i16, i16* inttoptr (i64 10000000 to i16*), i64 %21
store i16 %19, i16* %22
%23 = load i32, i32* %7
ret i32 %23
}

LLVM IR (-O2):
define i32 @AX0AX1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture readnone %4, i16* nocapture readnone %5) {
%7 = sext i32 %3 to i64
%8 = getelementptr inbounds i16, i16* inttoptr (i64 11111111 to i16*), i64 %7
%9 = load i16, i16* %8
%10 = sext i32 %2 to i64
%11 = getelementptr inbounds i16, i16* inttoptr (i64 10000000 to i16*), i64 %10
store i16 %9, i16* %11
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ SMS_word_to_VDP_data(unsigned int);
void SMS_setTile(unsigned int tile) { SMS_word_to_VDP_data(tile); }


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

x86 assembly (clang, -O2):
<SMS_setTile>:
jmp    1030 <SMS_word_to_VDP_data@plt>

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

LLVM IR (-O2):
define void @SMS_setTile(i32 %0) {
%2 = tail call i32 @SMS_word_to_VDP_data(i32 %0)
ret void
}
unsigned long flat_get_relocate_addr(unsigned long rel) {
  return (rel & 0x3fffffff);
}


x86 assembly (clang, -O0):
<flat_get_relocate_addr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0x3fffffff,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<flat_get_relocate_addr>:
mov    %rdi,%rax
and    $0x3fffffff,%eax
ret

LLVM IR (-O0):
define i64 @flat_get_relocate_addr(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = and i64 %3, 1073741823
ret i64 %4
}

LLVM IR (-O2):
define i64 @flat_get_relocate_addr(i64 %0) {
%2 = and i64 %0, 1073741823
ret i64 %2
}
float mysum(float x, unsigned int N) {
  float acum;
  unsigned int i;
  acum = 0.0;
  for (i = 0; i < N; i++) {
    acum += x;
  }
  return acum;
}


x86 assembly (clang, -O0):
<mysum>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1144 <mysum+0x44>
movss  -0x4(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    111b <mysum+0x1b>
movss  -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<mysum>:
test   %edi,%edi
je     1116 <mysum+0x16>
lea    -0x1(%rdi),%ecx
mov    %edi,%eax
and    $0x7,%eax
cmp    $0x7,%ecx
jae    111a <mysum+0x1a>
xorps  %xmm1,%xmm1
jmp    1145 <mysum+0x45>
xorps  %xmm0,%xmm0
ret
and    $0xfffffff8,%edi
xorps  %xmm1,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
addss  %xmm0,%xmm1
add    $0xfffffff8,%edi
jne    1120 <mysum+0x20>
test   %eax,%eax
je     1159 <mysum+0x59>
nopl   0x0(%rax)
addss  %xmm0,%xmm1
add    $0xffffffff,%eax
jne    1150 <mysum+0x50>
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @mysum(float %0, i32 %1) {
%3 = alloca float
%4 = alloca i32
%5 = alloca float
%6 = alloca i32
store float %0, float* %3
store i32 %1, i32* %4
store float 0.000000e+00, float* %5
store i32 0, i32* %6
br label %7
7: ; preds = %15, %2
%8 = load i32, i32* %6
%9 = load i32, i32* %4
%10 = icmp ult i32 %8, %9
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = load float, float* %3
%13 = load float, float* %5
%14 = fadd float %13, %12
store float %14, float* %5
br label %15
15: ; preds = %11
%16 = load i32, i32* %6
%17 = add i32 %16, 1
store i32 %17, i32* %6
br label %7
18: ; preds = %7
%19 = load float, float* %5
ret float %19
}

LLVM IR (-O2):
define float @mysum(float %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %33, label %4
4: ; preds = %2
%5 = add i32 %1, -1
%6 = and i32 %1, 7
%7 = icmp ult i32 %5, 7
br i1 %7, label %23, label %8
8: ; preds = %4
%9 = and i32 %1, -8
br label %10
10: ; preds = %10, %8
%11 = phi float [ 0.000000e+00, %8 ], [ %20, %10 ]
%12 = phi i32 [ 0, %8 ], [ %21, %10 ]
%13 = fadd float %11, %0
%14 = fadd float %13, %0
%15 = fadd float %14, %0
%16 = fadd float %15, %0
%17 = fadd float %16, %0
%18 = fadd float %17, %0
%19 = fadd float %18, %0
%20 = fadd float %19, %0
%21 = add i32 %12, 8
%22 = icmp eq i32 %21, %9
br i1 %22, label %23, label %10
23: ; preds = %10, %4
%24 = phi float [ undef, %4 ], [ %20, %10 ]
%25 = phi float [ 0.000000e+00, %4 ], [ %20, %10 ]
%26 = icmp eq i32 %6, 0
br i1 %26, label %33, label %27
27: ; preds = %23, %27
%28 = phi float [ %30, %27 ], [ %25, %23 ]
%29 = phi i32 [ %31, %27 ], [ 0, %23 ]
%30 = fadd float %28, %0
%31 = add i32 %29, 1
%32 = icmp eq i32 %31, %6
br i1 %32, label %33, label %27
33: ; preds = %23, %27, %2
%34 = phi float [ 0.000000e+00, %2 ], [ %24, %23 ], [ %30, %27 ]
ret float %34
}
/* Variables and functions */
int /*<<< orphan*/ pixel_avg_wxh(unsigned char *, int, unsigned char *, int,
                                 int, int);
void pixel_avg_8x8(unsigned char *pix1, int i_stride_pix1, unsigned char *pix2,
                   int i_stride_pix2) {
  pixel_avg_wxh(pix1, i_stride_pix1, pix2, i_stride_pix2, 8, 8);
}


x86 assembly (clang, -O0):
<pixel_avg_8x8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    $0x8,%r9d
mov    %r9d,%r8d
call   1030 <pixel_avg_wxh@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pixel_avg_8x8>:
mov    $0x8,%r8d
mov    $0x8,%r9d
jmp    1030 <pixel_avg_wxh@plt>

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

LLVM IR (-O2):
define void @pixel_avg_8x8(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = tail call i32 @pixel_avg_wxh(i8* %0, i32 %1, i8* %2, i32 %3, i32 8, i32 8)
ret void
}
/* Variables and functions */
void word_stemming(const char **token_start, size_t *token_length) {}


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

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

LLVM IR (-O0):
define void @word_stemming(i8** %0, i64* %1) {
%3 = alloca i8**
%4 = alloca i64*
store i8** %0, i8*** %3
store i64* %1, i64** %4
ret void
}

LLVM IR (-O2):
define void @word_stemming(i8** nocapture %0, i64* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ f(int, int, int, int, int, int, int, int, int, int, int,
                     int);
int main() {
  f(1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 0.);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
movl   $0x7,(%rsp)
movl   $0x8,0x8(%rsp)
movl   $0x9,0x10(%rsp)
movl   $0xa,0x18(%rsp)
movl   $0xb,0x20(%rsp)
movl   $0x0,0x28(%rsp)
call   1030 <f@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
push   $0x0
push   $0xb
push   $0xa
push   $0x9
push   $0x8
push   $0x7
call   1030 <f@plt>
add    $0x30,%rsp
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @f(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 0)
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @f(i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 0)
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
float fastercos(float x) {
  static const float twooverpi = 0.63661977236758134f;
  static const float p = 0.54641335845679634f;
  union {
    float f;
    uint32_t i;
  } vx = {x};
  vx.i &= 0x7FFFFFFF;
  float qpprox = 1.0f - twooverpi * vx.f;
  return qpprox + p * qpprox * (1.0f - qpprox * qpprox);
}


x86 assembly (clang, -O0):
<fastercos>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x7fffffff,%eax
mov    %eax,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xedd(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xec9(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm1
movss  0xeb7(%rip),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movss  -0xc(%rbp),%xmm3
movd   %xmm2,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm2
mulss  %xmm3,%xmm2
movss  0xe8b(%rip),%xmm3
addss  %xmm3,%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fastercos>:
andps  0xef9(%rip),%xmm0
mulss  0xf01(%rip),%xmm0
movss  0xefd(%rip),%xmm1
addss  %xmm1,%xmm0
movss  0xef5(%rip),%xmm2
mulss  %xmm0,%xmm2
movaps %xmm0,%xmm3
mulss  %xmm0,%xmm3
subss  %xmm3,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
%union.anon = type { float }
@fastercos.twooverpi = internal constant float 0x3FE45F3060000000
@fastercos.p = internal constant float 0x3FE17C37E0000000
define float @fastercos(float %0) {
%2 = alloca float
%3 = alloca %union.anon
%4 = alloca float
store float %0, float* %2
%5 = bitcast %union.anon* %3 to float*
%6 = load float, float* %2
store float %6, float* %5
%7 = bitcast %union.anon* %3 to i32*
%8 = load i32, i32* %7
%9 = and i32 %8, 2147483647
store i32 %9, i32* %7
%10 = bitcast %union.anon* %3 to float*
%11 = load float, float* %10
%12 = call float @llvm.fmuladd.f32(float 0xBFE45F3060000000, float %11, float 1.000000e+00)
store float %12, float* %4
%13 = load float, float* %4
%14 = load float, float* %4
%15 = fmul float 0x3FE17C37E0000000, %14
%16 = load float, float* %4
%17 = load float, float* %4
%18 = fneg float %16
%19 = call float @llvm.fmuladd.f32(float %18, float %17, float 1.000000e+00)
%20 = call float @llvm.fmuladd.f32(float %15, float %19, float %13)
ret float %20
}

LLVM IR (-O2):
define float @fastercos(float %0) {
%2 = bitcast float %0 to i32
%3 = and i32 %2, 2147483647
%4 = bitcast i32 %3 to float
%5 = tail call float @llvm.fmuladd.f32(float %4, float 0xBFE45F3060000000, float 1.000000e+00)
%6 = fmul float %5, 0x3FE17C37E0000000
%7 = fneg float %5
%8 = tail call float @llvm.fmuladd.f32(float %7, float %5, float 1.000000e+00)
%9 = tail call float @llvm.fmuladd.f32(float %6, float %8, float %5)
ret float %9
}
int fn5(int a, int b) {
  int tem1 = a ^ b;
  int tem2 = a & b;
  return tem1 + tem2;
}


x86 assembly (clang, -O0):
<fn5>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
xor    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
and    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn5>:
mov    %edi,%eax
or     %esi,%eax
ret

LLVM IR (-O0):
define i32 @fn5(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* %3
%8 = load i32, i32* %4
%9 = xor i32 %7, %8
store i32 %9, i32* %5
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = and i32 %10, %11
store i32 %12, i32* %6
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = add nsw i32 %13, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @fn5(i32 %0, i32 %1) {
%3 = or i32 %1, %0
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
void _mm_storeu_epi32(void *, int /*<<< orphan*/);
void test_mm_storeu_epi32(void *__P, __m128i __A) {
  return _mm_storeu_epi32(__P, __A);
}


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

x86 assembly (clang, -O2):
<test_mm_storeu_epi32>:
jmp    1030 <_mm_storeu_epi32@plt>

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

LLVM IR (-O2):
define void @test_mm_storeu_epi32(i8* %0, i32 %1) {
tail call void @_mm_storeu_epi32(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ GL_COLOR_BUFFER_BIT;
int /*<<< orphan*/ glClear(int /*<<< orphan*/);
int /*<<< orphan*/ glColor3f(double, double, double);
int /*<<< orphan*/ glFlush();
int /*<<< orphan*/ glutWireTeapot(int);
void display(void) {
  glClear(GL_COLOR_BUFFER_BIT);
  glColor3f(1.0, 0.0, 0.0);
  glutWireTeapot(3);
  glFlush();
  return;
}


x86 assembly (clang, -O0):
<display>:
push   %rbp
mov    %rsp,%rbp
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xea6(%rip),%xmm0
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm1
call   1040 <glColor3f@plt>
mov    $0x3,%edi
call   1060 <glutWireTeapot@plt>
mov    $0x0,%al
call   1050 <glFlush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<display>:
push   %rax
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
call   1030 <glClear@plt>
movsd  0xea9(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
call   1040 <glColor3f@plt>
mov    $0x3,%edi
call   1060 <glutWireTeapot@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <glFlush@plt>

LLVM IR (-O0):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = call i32 @glClear(i32 %1)
%3 = call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = call i32 @glutWireTeapot(i32 3)
%5 = call i32 (...) @glFlush()
ret void
}

LLVM IR (-O2):
@GL_COLOR_BUFFER_BIT = global i32 0
define void @display() {
%1 = load i32, i32* @GL_COLOR_BUFFER_BIT
%2 = tail call i32 @glClear(i32 %1)
%3 = tail call i32 @glColor3f(double 1.000000e+00, double 0.000000e+00, double 0.000000e+00)
%4 = tail call i32 @glutWireTeapot(i32 3)
%5 = tail call i32 (...) @glFlush()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ reset_normal_vocabs();
int /*<<< orphan*/ reset_tokz_esc();
void reset_vocabs(void) {
  reset_normal_vocabs();
  reset_tokz_esc();
}


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

x86 assembly (clang, -O2):
<reset_vocabs>:
push   %rax
xor    %eax,%eax
call   1030 <reset_normal_vocabs@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <reset_tokz_esc@plt>

LLVM IR (-O0):
define void @reset_vocabs() {
%1 = call i32 (...) @reset_normal_vocabs()
%2 = call i32 (...) @reset_tokz_esc()
ret void
}

LLVM IR (-O2):
define void @reset_vocabs() {
%1 = tail call i32 (...) @reset_normal_vocabs()
%2 = tail call i32 (...) @reset_tokz_esc()
ret void
}
/* Variables and functions */
void glmStep3fs(float out[3], const float x[3], float edge) {
  for (size_t i = 0; i < 3; ++i)
    out[i] = x[i] >= edge;
}


x86 assembly (clang, -O0):
<glmStep3fs>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
cmpq   $0x3,-0x20(%rbp)
jae    115f <glmStep3fs+0x5f>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
ucomiss -0x14(%rbp),%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
cvtsi2ss %eax,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1119 <glmStep3fs+0x19>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmStep3fs>:
movaps %xmm0,%xmm1
cmpless (%rsi),%xmm1
movss  0xef0(%rip),%xmm2
andps  %xmm2,%xmm1
movss  %xmm1,(%rdi)
movaps %xmm0,%xmm1
cmpless 0x4(%rsi),%xmm1
andps  %xmm2,%xmm1
movss  %xmm1,0x4(%rdi)
cmpless 0x8(%rsi),%xmm0
andps  %xmm2,%xmm0
movss  %xmm0,0x8(%rdi)
ret

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

LLVM IR (-O2):
define void @glmStep3fs(float* nocapture writeonly %0, float* nocapture %1, float %2) {
%4 = load float, float* %1
%5 = fcmp oge float %4, %2
%6 = uitofp i1 %5 to float
store float %6, float* %0
%7 = getelementptr inbounds float, float* %1, i64 1
%8 = load float, float* %7
%9 = fcmp oge float %8, %2
%10 = uitofp i1 %9 to float
%11 = getelementptr inbounds float, float* %0, i64 1
store float %10, float* %11
%12 = getelementptr inbounds float, float* %1, i64 2
%13 = load float, float* %12
%14 = fcmp oge float %13, %2
%15 = uitofp i1 %14 to float
%16 = getelementptr inbounds float, float* %0, i64 2
store float %15, float* %16
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cc32xx_binary_file_delete(char *);
void ext_configuration_delete(const char *buffer, size_t buffer_size) {
  cc32xx_binary_file_delete("kaa_configuration.bin");
}


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"kaa_configuration.bin\00"
define void @ext_configuration_delete(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = call i32 @cc32xx_binary_file_delete(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"kaa_configuration.bin\00"
define void @ext_configuration_delete(i8* nocapture readnone %0, i64 %1) {
%3 = tail call i32 @cc32xx_binary_file_delete(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret void
}
strstore(s, i, c) char *s;
{ s[i - 1] = c; }


x86 assembly (clang, -O0):
<strstore>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strstore>:
movslq %esi,%rax
mov    %dl,-0x1(%rax,%rdi,1)
ret

LLVM IR (-O0):
define i32 @strstore(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%8 = load i32, i32* %7
%9 = trunc i32 %8 to i8
%10 = load i8*, i8** %5
%11 = load i32, i32* %6
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, i8* %10, i64 %13
store i8 %9, i8* %14
%15 = load i32, i32* %4
ret i32 %15
}

LLVM IR (-O2):
define i32 @strstore(i8* nocapture writeonly %0, i32 %1, i32 %2) {
%4 = trunc i32 %2 to i8
%5 = add nsw i32 %1, -1
%6 = sext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
store i8 %4, i8* %7
ret i32 undef
}
void get_subarchitecture(void) {}


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

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

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

LLVM IR (-O2):
define void @get_subarchitecture() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m64;

/* Variables and functions */
int /*<<< orphan*/ _mm_mul_su32(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test20(__m64 a, __m64 b) { return _mm_mul_su32(a, b); }


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

x86 assembly (clang, -O2):
<test20>:
jmp    1030 <_mm_mul_su32@plt>

LLVM IR (-O0):
define i32 @test20(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 @_mm_mul_su32(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test20(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_mul_su32(i32 %0, i32 %1)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ ushort;

/* Variables and functions */
int cannawcstrlen(ushort *ws) {
  int res = 0;
  while (*ws++) {
    res++;
  }
  return res;
}


x86 assembly (clang, -O0):
<cannawcstrlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x8(%rbp)
cmpl   $0x0,(%rax)
je     1135 <cannawcstrlen+0x35>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <cannawcstrlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cannawcstrlen>:
cmpl   $0x0,(%rdi)
je     111c <cannawcstrlen+0x1c>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
cmpl   $0x0,0x4(%rdi,%rax,4)
lea    0x1(%rax),%rax
jne    1110 <cannawcstrlen+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @cannawcstrlen(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp eq i32 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 0, %1 ]
%6 = phi i32* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i32, i32* %6, i64 1
%8 = add nuw nsw i32 %5, 1
%9 = load i32, i32* %7
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void update_product_description(char *id, char *desc) {
  char product_code[5];
  strcpy(product_code, id);
  printf("Updating product #%s with description \'%s\'\n", product_code, desc);
}


x86 assembly (clang, -O0):
<update_product_description>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x15(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x15(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<update_product_description>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%rsi
lea    0x3(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
lea    0xec2(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
call   1040 <printf@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Updating product #%s with description '%s'\0A\00"
define void @update_product_description(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [5 x i8]
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%7 = load i8*, i8** %3
%8 = call i32 @strcpy(i8* %6, i8* %7)
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%10 = load i8*, i8** %4
%11 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10)
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"Updating product #%s with description '%s'\0A\00"
define void @update_product_description(i8* %0, i8* %1) {
%3 = alloca [5 x i8]
%4 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%5 = call i32 @strcpy(i8* %4, i8* %0)
%6 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %1)
ret void
}
/* Variables and functions */
long long shftc_ll(long long *, long long *, long long *);
long long intr_wrap_570(long long p1, long long p2, long long p3) {
  return shftc_ll(&p1, &p2, &p3);
}


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

x86 assembly (clang, -O2):
<intr_wrap_570>:
sub    $0x18,%rsp
mov    %rdi,0x10(%rsp)
mov    %rsi,0x8(%rsp)
mov    %rdx,(%rsp)
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
mov    %rsp,%rdx
call   1030 <shftc_ll@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i64 @intr_wrap_570(i64 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = call i64 @shftc_ll(i64* %4, i64* %5, i64* %6)
ret i64 %7
}

LLVM IR (-O2):
define i64 @intr_wrap_570(i64 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = call i64 @shftc_ll(i64* %4, i64* %5, i64* %6)
ret i64 %7
}
void after_reuse_time(void) {}


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

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

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

LLVM IR (-O2):
define void @after_reuse_time() {
ret void
}
signed long long f14(signed long long v_foo) {
  signed long long v_parta = v_foo << 14;
  signed long long v_partb = ((unsigned long long)v_foo) >> 50;
  signed long long v_rotl = v_parta | v_partb;
  signed long long v_and = v_rotl & 248;
  return v_and;
}


x86 assembly (clang, -O0):
<f14>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
shl    $0xe,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x32,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
or     -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
and    $0xf8,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f14>:
mov    %rdi,%rax
shr    $0x32,%rax
and    $0xf8,%eax
ret

LLVM IR (-O0):
define i64 @f14(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %2
%7 = load i64, i64* %2
%8 = shl i64 %7, 14
store i64 %8, i64* %3
%9 = load i64, i64* %2
%10 = lshr i64 %9, 50
store i64 %10, i64* %4
%11 = load i64, i64* %3
%12 = load i64, i64* %4
%13 = or i64 %11, %12
store i64 %13, i64* %5
%14 = load i64, i64* %5
%15 = and i64 %14, 248
store i64 %15, i64* %6
%16 = load i64, i64* %6
ret i64 %16
}

LLVM IR (-O2):
define i64 @f14(i64 %0) {
%2 = lshr i64 %0, 50
%3 = and i64 %2, 248
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
int main() {
  float pp = 15.25, sv = 7.26, y = 4.25;
  printf("The Value of Depreciation is: %.2f \n", (pp - sv) / y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xee1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xed0(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xebf(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
divss  -0x10(%rbp),%xmm0
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [37 x i8] c"The Value of Depreciation is: %.2f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
store float 1.525000e+01, float* %2
store float 0x401D0A3D80000000, float* %3
store float 4.250000e+00, float* %4
%5 = load float, float* %2
%6 = load float, float* %3
%7 = fsub float %5, %6
%8 = load float, float* %4
%9 = fdiv float %7, %8
%10 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), float %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"The Value of Depreciation is: %.2f \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), float 0x3FFE147AE0000000)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ PrintErrorCode();
double dxl_read_word(int, int);
int getPressentSpeed(int Id) {
  int CurrentSpeed;
  CurrentSpeed = dxl_read_word(Id, 38) * 0.114;
  PrintErrorCode();
  return CurrentSpeed;
}


x86 assembly (clang, -O0):
<getPressentSpeed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x26,%esi
call   1030 <dxl_read_word@plt>
movsd  0xec0(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <PrintErrorCode@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getPressentSpeed>:
push   %rbx
mov    $0x26,%esi
call   1030 <dxl_read_word@plt>
mulsd  0xecd(%rip),%xmm0
cvttsd2si %xmm0,%ebx
xor    %eax,%eax
call   1040 <PrintErrorCode@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @getPressentSpeed(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call double @dxl_read_word(i32 %4, i32 38)
%6 = fmul double %5, 1.140000e-01
%7 = fptosi double %6 to i32
store i32 %7, i32* %3
%8 = call i32 (...) @PrintErrorCode()
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @getPressentSpeed(i32 %0) {
%2 = tail call double @dxl_read_word(i32 %0, i32 38)
%3 = fmul double %2, 1.140000e-01
%4 = fptosi double %3 to i32
%5 = tail call i32 (...) @PrintErrorCode()
ret i32 %4
}
int f6(int a, int b) { return 6 * a - 2 * b; }


x86 assembly (clang, -O0):
<f6>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
imul   $0x6,-0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x1,%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f6>:
add    %edi,%edi
lea    (%rdi,%rdi,2),%eax
add    %esi,%esi
sub    %esi,%eax
ret

LLVM IR (-O0):
define i32 @f6(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 = mul nsw i32 6, %5
%7 = load i32, i32* %4
%8 = mul nsw i32 2, %7
%9 = sub nsw i32 %6, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @f6(i32 %0, i32 %1) {
%3 = mul nsw i32 %0, 6
%4 = mul i32 %1, -2
%5 = add i32 %4, %3
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ init();
int /*<<< orphan*/ prog();
int main(int argc, const char *argv[]) {
  init();
  prog();
  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 <init@plt>
mov    $0x0,%al
call   1030 <prog@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <init@plt>
xor    %eax,%eax
call   1030 <prog@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 (...) @init()
%7 = call i32 (...) @prog()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @init()
%4 = tail call i32 (...) @prog()
ret i32 0
}
float fsquare(float val) { return val * val; }


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

x86 assembly (clang, -O2):
<fsquare>:
mulss  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @fsquare(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = load float, float* %2
%5 = fmul float %3, %4
ret float %5
}

LLVM IR (-O2):
define float @fsquare(float %0) {
%2 = fmul float %0, %0
ret float %2
}
float kmh_to_knots(float kmh) { return kmh / 1.852; }


x86 assembly (clang, -O0):
<kmh_to_knots>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xee6(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<kmh_to_knots>:
cvtss2sd %xmm0,%xmm0
divsd  0xef4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @kmh_to_knots(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = fdiv double %4, 1.852000e+00
%6 = fptrunc double %5 to float
ret float %6
}

LLVM IR (-O2):
define float @kmh_to_knots(float %0) {
%2 = fpext float %0 to double
%3 = fdiv double %2, 1.852000e+00
%4 = fptrunc double %3 to float
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ newline();
int /*<<< orphan*/ output_line(char *);
int /*<<< orphan*/ output_string(char *);
int /*<<< orphan*/ print_label(int);
gen_test_jump(int label, int ft) {
  if (ft)
    output_string("\tbne\t$v0, $zero, ");
  else
    output_string("\tbeq\t$v0, $zero, ");
  print_label(label);
  newline();
  output_line("nop");
}


x86 assembly (clang, -O0):
<gen_test_jump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1169 <gen_test_jump+0x29>
lea    0xea1(%rip),%rdi
call   1050 <output_string@plt>
jmp    1175 <gen_test_jump+0x35>
lea    0xea2(%rip),%rdi
call   1050 <output_string@plt>
mov    -0x8(%rbp),%edi
call   1040 <print_label@plt>
mov    $0x0,%al
call   1030 <newline@plt>
lea    0xe99(%rip),%rdi
call   1060 <output_line@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gen_test_jump>:
push   %rbx
mov    %edi,%ebx
test   %esi,%esi
lea    0xec6(%rip),%rax
lea    0xead(%rip),%rdi
cmove  %rax,%rdi
call   1050 <output_string@plt>
mov    %ebx,%edi
call   1040 <print_label@plt>
xor    %eax,%eax
call   1030 <newline@plt>
lea    0xeb3(%rip),%rdi
pop    %rbx
jmp    1060 <output_line@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"\09bne\09$v0, $zero, \00"
@.str.1 = [18 x i8] c"\09beq\09$v0, $zero, \00"
@.str.2 = [4 x i8] c"nop\00"
define i32 @gen_test_jump(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* %5
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @output_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %12
10: ; preds = %2
%11 = call i32 @output_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %10, %8
%13 = load i32, i32* %4
%14 = call i32 @print_label(i32 %13)
%15 = call i32 (...) @newline()
%16 = call i32 @output_line(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
@.str = [18 x i8] c"\09bne\09$v0, $zero, \00"
@.str.1 = [18 x i8] c"\09beq\09$v0, $zero, \00"
@.str.2 = [4 x i8] c"nop\00"
define i32 @gen_test_jump(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
%4 = select i1 %3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
%5 = tail call i32 @output_string(i8* %4)
%6 = tail call i32 @print_label(i32 %0)
%7 = tail call i32 (...) @newline()
%8 = tail call i32 @output_line(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
struct timespec {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ CLOCK_MONOTONIC;
int /*<<< orphan*/ clock_gettime(int /*<<< orphan*/, struct timespec *);
int /*<<< orphan*/ timespec_to_msec(struct timespec *);
uint32_t get_current_time_msec(void) {
  struct timespec now;
  clock_gettime(CLOCK_MONOTONIC, &now);
  return timespec_to_msec(&now);
}


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

x86 assembly (clang, -O2):
<get_current_time_msec>:
push   %rbx
sub    $0x10,%rsp
mov    0x2ebc(%rip),%rax
mov    (%rax),%edi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
call   1030 <clock_gettime@plt>
mov    %rbx,%rdi
call   1040 <timespec_to_msec@plt>
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
%struct.timespec = type { i32 }
@CLOCK_MONOTONIC = global i32 0
define i32 @get_current_time_msec() {
%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 = call i32 @timespec_to_msec(%struct.timespec* %1)
ret i32 %5
}
/* Type definitions */
struct htmlTag {
  int dummy;
};

/* Variables and functions */
int countTagsOfType(struct htmlTag *, char *);
int /*<<< orphan*/ errAbort(char *, char *, int);
void checkExactlyOne(struct htmlTag *tagList, char *type) {
  int count = countTagsOfType(tagList, type);
  if (count != 1)
    errAbort("Expecting exactly 1 <%s>, got %d", type, count);
}


x86 assembly (clang, -O0):
<checkExactlyOne>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <countTagsOfType@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
je     115d <checkExactlyOne+0x3d>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
lea    0xea8(%rip),%rdi
call   1040 <errAbort@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<checkExactlyOne>:
push   %rbx
mov    %rsi,%rbx
call   1030 <countTagsOfType@plt>
cmp    $0x1,%eax
jne    1130 <checkExactlyOne+0x10>
pop    %rbx
ret
lea    0xec9(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1040 <errAbort@plt>

LLVM IR (-O0):
%struct.htmlTag = type { i32 }
@.str = [33 x i8] c"Expecting exactly 1 <%s>, got %d\00"
define void @checkExactlyOne(%struct.htmlTag* %0, i8* %1) {
%3 = alloca %struct.htmlTag*
%4 = alloca i8*
%5 = alloca i32
store %struct.htmlTag* %0, %struct.htmlTag** %3
store i8* %1, i8** %4
%6 = load %struct.htmlTag*, %struct.htmlTag** %3
%7 = load i8*, i8** %4
%8 = call i32 @countTagsOfType(%struct.htmlTag* %6, i8* %7)
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i8*, i8** %4
%13 = load i32, i32* %5
%14 = call i32 @errAbort(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %12, i32 %13)
br label %15
15: ; preds = %11, %2
ret void
}

LLVM IR (-O2):
%struct.htmlTag = type { i32 }
@.str = [33 x i8] c"Expecting exactly 1 <%s>, got %d\00"
define void @checkExactlyOne(%struct.htmlTag* %0, i8* %1) {
%3 = tail call i32 @countTagsOfType(%struct.htmlTag* %0, i8* %1)
%4 = icmp eq i32 %3, 1
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @errAbort(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %3)
br label %7
7: ; preds = %5, %2
ret void
}