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

/* Variables and functions */
int /*<<< orphan*/ net_interface_const_object(struct net_interface const *);
void *obus_object_get_user_data(int /*<<< orphan*/);
void *net_interface_get_user_data(const struct net_interface *object) {
  return obus_object_get_user_data(net_interface_const_object(object));
}


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

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

LLVM IR (-O0):
%struct.net_interface = type { i32 }
define i8* @net_interface_get_user_data(%struct.net_interface* %0) {
%2 = alloca %struct.net_interface*
store %struct.net_interface* %0, %struct.net_interface** %2
%3 = load %struct.net_interface*, %struct.net_interface** %2
%4 = call i32 @net_interface_const_object(%struct.net_interface* %3)
%5 = call i8* @obus_object_get_user_data(i32 %4)
ret i8* %5
}

LLVM IR (-O2):
%struct.net_interface = type { i32 }
define i8* @net_interface_get_user_data(%struct.net_interface* %0) {
%2 = tail call i32 @net_interface_const_object(%struct.net_interface* %0)
%3 = tail call i8* @obus_object_get_user_data(i32 %2)
ret i8* %3
}
/* Variables and functions */
char *strdup(char *);
char *libRTP_strdup(char *string) { return strdup(string); }


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

x86 assembly (clang, -O2):
<libRTP_strdup>:
jmp    1030 <strdup@plt>

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

LLVM IR (-O2):
define noalias i8* @libRTP_strdup(i8* nocapture %0) {
%2 = tail call i8* @strdup(i8* %0)
ret i8* %2
}
void __attribute__((weak)) otg_fs_isr() { debug_handler(__FUNCTION__); }


x86 assembly (clang, -O0):
<otg_fs_isr>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <debug_handler@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<otg_fs_isr>:
lea    0xee9(%rip),%rdi
xor    %eax,%eax
jmp    1030 <debug_handler@plt>

LLVM IR (-O0):
@__FUNCTION__.otg_fs_isr = [11 x i8] c"otg_fs_isr\00"
define weak void @otg_fs_isr() {
%1 = call i32 (i8*, ...) bitcast (i32 (...)* @debug_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.otg_fs_isr, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__FUNCTION__.otg_fs_isr = [11 x i8] c"otg_fs_isr\00"
define weak void @otg_fs_isr() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @debug_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.otg_fs_isr, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ relocate_nextbit();
unsigned int relocate_read_int(unsigned char bits) {
  unsigned int out = 0;
  while (1) {
    if (relocate_nextbit())
      out |= 1;
    if (--bits == 0)
      return out;
    out = out << 1;
  }
}


x86 assembly (clang, -O0):
<relocate_read_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1030 <relocate_nextbit@plt>
cmp    $0x0,%rax
je     113f <relocate_read_int+0x2f>
mov    -0x8(%rbp),%eax
or     $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x1(%rbp),%al
add    $0xff,%al
mov    %al,-0x1(%rbp)
movzbl %al,%eax
cmp    $0x0,%eax
jne    115c <relocate_read_int+0x4c>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1125 <relocate_read_int+0x15>

x86 assembly (clang, -O2):
<relocate_read_int>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <relocate_nextbit@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
or     %ebp,%eax
lea    (%rax,%rax,1),%ebp
add    $0xff,%bl
jne    1120 <relocate_read_int+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @relocate_read_int(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i32
store i8 %0, i8* %2
store i32 0, i32* %3
br label %4
4: ; preds = %1, %17
%5 = call i64 (...) @relocate_nextbit()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = load i32, i32* %3
%9 = or i32 %8, 1
store i32 %9, i32* %3
br label %10
10: ; preds = %7, %4
%11 = load i8, i8* %2
%12 = add i8 %11, -1
store i8 %12, i8* %2
%13 = zext i8 %12 to i32
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load i32, i32* %3
ret i32 %16
17: ; preds = %10
%18 = load i32, i32* %3
%19 = shl i32 %18, 1
store i32 %19, i32* %3
br label %4
}

LLVM IR (-O2):
define i32 @relocate_read_int(i8 zeroext %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8 [ %0, %1 ], [ %9, %2 ]
%4 = phi i32 [ 0, %1 ], [ %11, %2 ]
%5 = tail call i64 (...) @relocate_nextbit()
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
%8 = or i32 %4, %7
%9 = add i8 %3, -1
%10 = icmp eq i8 %9, 0
%11 = shl i32 %8, 1
br i1 %10, label %12, label %2
12: ; preds = %2
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ outb(int, unsigned char);
void fb_move_cursor(const unsigned short pos) {
  outb(0x3D4, 0x0E);
  outb(0x3D5, (unsigned char)((pos >> 8) & 0x00FF));
  outb(0x3D4, 0x0F);
  outb(0x3D5, (unsigned char)(pos & 0x00FF));
}


x86 assembly (clang, -O0):
<fb_move_cursor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    $0x3d4,%edi
mov    $0xe,%esi
call   1030 <outb@plt>
movzwl -0x2(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    $0x3d5,%edi
movzbl %al,%esi
call   1030 <outb@plt>
mov    $0x3d4,%edi
mov    $0xf,%esi
call   1030 <outb@plt>
movzwl -0x2(%rbp),%eax
and    $0xff,%eax
mov    $0x3d5,%edi
movzbl %al,%esi
call   1030 <outb@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fb_move_cursor>:
push   %rbx
mov    %edi,%ebx
mov    $0x3d4,%edi
mov    $0xe,%esi
call   1030 <outb@plt>
mov    %ebx,%esi
shr    $0x8,%esi
mov    $0x3d5,%edi
call   1030 <outb@plt>
mov    $0x3d4,%edi
mov    $0xf,%esi
call   1030 <outb@plt>
movzbl %bl,%esi
mov    $0x3d5,%edi
pop    %rbx
jmp    1030 <outb@plt>

LLVM IR (-O0):
define void @fb_move_cursor(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = call i32 @outb(i32 980, i8 zeroext 14)
%4 = load i16, i16* %2
%5 = zext i16 %4 to i32
%6 = ashr i32 %5, 8
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i8
%9 = call i32 @outb(i32 981, i8 zeroext %8)
%10 = call i32 @outb(i32 980, i8 zeroext 15)
%11 = load i16, i16* %2
%12 = zext i16 %11 to i32
%13 = and i32 %12, 255
%14 = trunc i32 %13 to i8
%15 = call i32 @outb(i32 981, i8 zeroext %14)
ret void
}

LLVM IR (-O2):
define void @fb_move_cursor(i16 zeroext %0) {
%2 = tail call i32 @outb(i32 980, i8 zeroext 14)
%3 = lshr i16 %0, 8
%4 = trunc i16 %3 to i8
%5 = tail call i32 @outb(i32 981, i8 zeroext %4)
%6 = tail call i32 @outb(i32 980, i8 zeroext 15)
%7 = trunc i16 %0 to i8
%8 = tail call i32 @outb(i32 981, i8 zeroext %7)
ret void
}
fatal(s, a, b, c) char *s, *a, *b, *c;
{
  printf(s, a, b, c);
  printf("\n");
  doquit();
}


x86 assembly (clang, -O0):
<fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <doquit@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fatal>:
push   %rax
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <doquit@plt>

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

LLVM IR (-O2):
define i32 @fatal(i8* nocapture %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %0, i8* %1, i8* %2, i8* %3)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 (...) @doquit()
ret i32 undef
}
/* Variables and functions */
double M_PI;
float cosf(double);
float get_signal(int i) { return cosf((2.0 * M_PI * i) / 256); }


x86 assembly (clang, -O0):
<get_signal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movsd  0xee5(%rip),%xmm0
mov    0x2ebe(%rip),%rax
mulsd  (%rax),%xmm0
cvtsi2sdl -0x4(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xec1(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <cosf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_signal>:
mov    0x2ed1(%rip),%rax
movsd  (%rax),%xmm1
cvtsi2sd %edi,%xmm0
addsd  %xmm1,%xmm1
mulsd  %xmm1,%xmm0
mulsd  0xed1(%rip),%xmm0
jmp    1030 <cosf@plt>

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define float @get_signal(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load double, double* @M_PI
%4 = fmul double 2.000000e+00, %3
%5 = load i32, i32* %2
%6 = sitofp i32 %5 to double
%7 = fmul double %4, %6
%8 = fdiv double %7, 2.560000e+02
%9 = call float @cosf(double %8)
ret float %9
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define float @get_signal(i32 %0) {
%2 = load double, double* @M_PI
%3 = fmul double %2, 2.000000e+00
%4 = sitofp i32 %0 to double
%5 = fmul double %3, %4
%6 = fmul double %5, 3.906250e-03
%7 = tail call float @cosf(double %6)
ret float %7
}
/* Variables and functions */
int /*<<< orphan*/ i2cWrite(int, int, int);
void bmp280_start_up(void) {
  i2cWrite((0x76), (0xF4), (((0x04)) << 2 | ((0x01)) << 5 | (0x01)));
}


x86 assembly (clang, -O0):
<bmp280_start_up>:
push   %rbp
mov    %rsp,%rbp
mov    $0x76,%edi
mov    $0xf4,%esi
mov    $0x31,%edx
call   1030 <i2cWrite@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<bmp280_start_up>:
mov    $0x76,%edi
mov    $0xf4,%esi
mov    $0x31,%edx
jmp    1030 <i2cWrite@plt>

LLVM IR (-O0):
define void @bmp280_start_up() {
%1 = call i32 @i2cWrite(i32 118, i32 244, i32 49)
ret void
}

LLVM IR (-O2):
define void @bmp280_start_up() {
%1 = tail call i32 @i2cWrite(i32 118, i32 244, i32 49)
ret void
}
unsigned int ick_smudgeleft(unsigned int x) {
  x = x | (x << 1);
  x = x | (x << 2);
  x = x | (x << 4);
  x = x | (x << 8);
  x = x | (x << 18);
  return x;
}


x86 assembly (clang, -O0):
<ick_smudgeleft>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x2,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x4,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x12,%ecx
or     %ecx,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ick_smudgeleft>:
lea    (%rdi,%rdi,1),%eax
or     %edi,%eax
lea    0x0(,%rax,4),%ecx
or     %eax,%ecx
mov    %ecx,%eax
shl    $0x4,%eax
or     %ecx,%eax
mov    %eax,%ecx
shl    $0x8,%ecx
or     %eax,%ecx
mov    %ecx,%eax
shl    $0x12,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @ick_smudgeleft(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = shl i32 %4, 1
%6 = or i32 %3, %5
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = shl i32 %8, 2
%10 = or i32 %7, %9
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = load i32, i32* %2
%13 = shl i32 %12, 4
%14 = or i32 %11, %13
store i32 %14, i32* %2
%15 = load i32, i32* %2
%16 = load i32, i32* %2
%17 = shl i32 %16, 8
%18 = or i32 %15, %17
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = load i32, i32* %2
%21 = shl i32 %20, 18
%22 = or i32 %19, %21
store i32 %22, i32* %2
%23 = load i32, i32* %2
ret i32 %23
}

LLVM IR (-O2):
define i32 @ick_smudgeleft(i32 %0) {
%2 = shl i32 %0, 1
%3 = or i32 %2, %0
%4 = shl i32 %3, 2
%5 = or i32 %4, %3
%6 = shl i32 %5, 4
%7 = or i32 %6, %5
%8 = shl i32 %7, 8
%9 = or i32 %8, %7
%10 = shl i32 %9, 18
%11 = or i32 %10, %9
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
void print_usage(FILE *fp) {
  fprintf(fp, "Usage:\tbin2dec [OPTIONS] BINARY_NUMBER[s]\n");
}


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

x86 assembly (clang, -O2):
<print_usage>:
mov    %rdi,%rcx
lea    0xee6(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
jmp    1030 <fwrite@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"Usage:\09bin2dec [OPTIONS] BINARY_NUMBER[s]\0A\00"
define void @print_usage(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [43 x i8] c"Usage:\09bin2dec [OPTIONS] BINARY_NUMBER[s]\0A\00"
define void @print_usage(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i64 42, i64 1, i32* %0)
ret void
}
double colourD(int i) {
  double x;
  x = i / 255.0;
  x = (x < 0.0 ? 0.0 : x);
  x = (x > 1.0 ? 1.0 : x);
  return x;
}


x86 assembly (clang, -O0):
<colourD>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  0xeec(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1138 <colourD+0x38>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1142 <colourD+0x42>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xeaf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1175 <colourD+0x75>
movsd  0xe9d(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    117f <colourD+0x7f>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<colourD>:
cvtsi2sd %edi,%xmm0
divsd  0xef4(%rip),%xmm0
xorpd  %xmm1,%xmm1
maxsd  %xmm0,%xmm1
movsd  0xeec(%rip),%xmm0
minsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @colourD(i32 %0) {
%2 = alloca i32
%3 = alloca double
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = sitofp i32 %4 to double
%6 = fdiv double %5, 2.550000e+02
store double %6, double* %3
%7 = load double, double* %3
%8 = fcmp olt double %7, 0.000000e+00
br i1 %8, label %9, label %10
9: ; preds = %1
br label %12
10: ; preds = %1
%11 = load double, double* %3
br label %12
12: ; preds = %10, %9
%13 = phi double [ 0.000000e+00, %9 ], [ %11, %10 ]
store double %13, double* %3
%14 = load double, double* %3
%15 = fcmp ogt double %14, 1.000000e+00
br i1 %15, label %16, label %17
16: ; preds = %12
br label %19
17: ; preds = %12
%18 = load double, double* %3
br label %19
19: ; preds = %17, %16
%20 = phi double [ 1.000000e+00, %16 ], [ %18, %17 ]
store double %20, double* %3
%21 = load double, double* %3
ret double %21
}

LLVM IR (-O2):
define double @colourD(i32 %0) {
%2 = sitofp i32 %0 to double
%3 = fdiv double %2, 2.550000e+02
%4 = fcmp olt double %3, 0.000000e+00
%5 = select i1 %4, double 0.000000e+00, double %3
%6 = fcmp ogt double %5, 1.000000e+00
%7 = select i1 %6, double 1.000000e+00, double %5
ret double %7
}
int end_of_silence(buffer, index)
int buffer[];
int index;
{
  int i;
  for (i = 0; i < 2; i++)
    if (((buffer[(index + i) & 7]) > (0x7f - 4) &&
         (buffer[(index + i) & 7]) < (0x80 + 4)))
      return (0);
  return (1);
}


x86 assembly (clang, -O0):
<end_of_silence>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x18(%rbp)
jge    1172 <end_of_silence+0x72>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
and    $0x7,%ecx
movslq %ecx,%rcx
cmpl   $0x7b,(%rax,%rcx,4)
jle    115f <end_of_silence+0x5f>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
and    $0x7,%ecx
movslq %ecx,%rcx
cmpl   $0x84,(%rax,%rcx,4)
jge    115f <end_of_silence+0x5f>
movl   $0x0,-0x4(%rbp)
jmp    1179 <end_of_silence+0x79>
jmp    1164 <end_of_silence+0x64>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1112 <end_of_silence+0x12>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<end_of_silence>:
mov    %esi,%eax
and    $0x7,%eax
mov    (%rdi,%rax,4),%ecx
add    $0xffffff84,%ecx
xor    %eax,%eax
cmp    $0x8,%ecx
jb     1128 <end_of_silence+0x28>
add    $0x1,%esi
and    $0x7,%esi
mov    $0xffffff7c,%ecx
add    (%rdi,%rsi,4),%ecx
xor    %eax,%eax
cmp    $0xfffffff8,%ecx
setb   %al
ret

LLVM IR (-O0):
define i32 @end_of_silence(i32* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 0, i32* %6
br label %7
7: ; preds = %32, %2
%8 = load i32, i32* %6
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %35
10: ; preds = %7
%11 = load i32*, i32** %4
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = add nsw i32 %12, %13
%15 = and i32 %14, 7
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, i32* %11, i64 %16
%18 = load i32, i32* %17
%19 = icmp sgt i32 %18, 123
br i1 %19, label %20, label %31
20: ; preds = %10
%21 = load i32*, i32** %4
%22 = load i32, i32* %5
%23 = load i32, i32* %6
%24 = add nsw i32 %22, %23
%25 = and i32 %24, 7
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, i32* %21, i64 %26
%28 = load i32, i32* %27
%29 = icmp slt i32 %28, 132
br i1 %29, label %30, label %31
30: ; preds = %20
store i32 0, i32* %3
br label %36
31: ; preds = %20, %10
br label %32
32: ; preds = %31
%33 = load i32, i32* %6
%34 = add nsw i32 %33, 1
store i32 %34, i32* %6
br label %7
35: ; preds = %7
store i32 1, i32* %3
br label %36
36: ; preds = %35, %30
%37 = load i32, i32* %3
ret i32 %37
}

LLVM IR (-O2):
define i32 @end_of_silence(i32* nocapture %0, i32 %1) {
%3 = and i32 %1, 7
%4 = zext i32 %3 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = add i32 %6, -124
%8 = icmp ult i32 %7, 8
br i1 %8, label %18, label %9
9: ; preds = %2
%10 = add nsw i32 %1, 1
%11 = and i32 %10, 7
%12 = zext i32 %11 to i64
%13 = getelementptr inbounds i32, i32* %0, i64 %12
%14 = load i32, i32* %13
%15 = add i32 %14, -132
%16 = icmp ult i32 %15, -8
%17 = zext i1 %16 to i32
br label %18
18: ; preds = %9, %2
%19 = phi i32 [ 0, %2 ], [ %17, %9 ]
ret i32 %19
}
/* Type definitions */
struct lg4945_data {
  int dummy;
};
struct device {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ to_touch_core(struct device *);
scalar_t__ touch_get_device(int /*<<< orphan*/);
struct lg4945_data *to_lg4945_data(struct device *dev) {
  return (struct lg4945_data *)touch_get_device(to_touch_core(dev));
}


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

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

LLVM IR (-O0):
%struct.lg4945_data = type { i32 }
%struct.device = type { i32 }
define %struct.lg4945_data* @to_lg4945_data(%struct.device* %0) {
%2 = alloca %struct.device*
store %struct.device* %0, %struct.device** %2
%3 = load %struct.device*, %struct.device** %2
%4 = call i32 @to_touch_core(%struct.device* %3)
%5 = call i64 @touch_get_device(i32 %4)
%6 = inttoptr i64 %5 to %struct.lg4945_data*
ret %struct.lg4945_data* %6
}

LLVM IR (-O2):
%struct.lg4945_data = type { i32 }
%struct.device = type { i32 }
define %struct.lg4945_data* @to_lg4945_data(%struct.device* %0) {
%2 = tail call i32 @to_touch_core(%struct.device* %0)
%3 = tail call i64 @touch_get_device(i32 %2)
%4 = inttoptr i64 %3 to %struct.lg4945_data*
ret %struct.lg4945_data* %4
}
int pmsg(s)
char *s;
{
  printf("%s\n", s);
  return (0);
}


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

x86 assembly (clang, -O2):
<pmsg>:
push   %rax
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @pmsg(i8* nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) %0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int main(void) {
  fprintf(stderr, "Hello, world!\n");
  return 0;
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"Hello, world!\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @stderr
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"Hello, world!\0A\00"
define i32 @main() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ tabTransp(int /*<<< orphan*/);
void IF_TabTransp(void) { tabTransp(0); }


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

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

LLVM IR (-O0):
define void @IF_TabTransp() {
%1 = call i32 @tabTransp(i32 0)
ret void
}

LLVM IR (-O2):
define void @IF_TabTransp() {
%1 = tail call i32 @tabTransp(i32 0)
ret void
}
void foo() {
  static int v4;
  {
    static int v5;
#pragma omp threadprivate(v4, v5)
  }
}


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

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

LLVM IR (-O0):
@foo.v4 = internal global i32 0
@foo.v5 = internal global i32 0
define void @foo() {
ret void
}

LLVM IR (-O2):
define void @foo() {
ret void
}
void exit_io(void) {}


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

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

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

LLVM IR (-O2):
define void @exit_io() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Show_library(int /*<<< orphan*/);
int /*<<< orphan*/ triList(int);
void IF_show_libtools(void) { Show_library(triList(8)); }


x86 assembly (clang, -O0):
<IF_show_libtools>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
call   1040 <triList@plt>
mov    %eax,%edi
call   1030 <Show_library@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<IF_show_libtools>:
push   %rax
mov    $0x8,%edi
call   1040 <triList@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <Show_library@plt>

LLVM IR (-O0):
define void @IF_show_libtools() {
%1 = call i32 @triList(i32 8)
%2 = call i32 @Show_library(i32 %1)
ret void
}

LLVM IR (-O2):
define void @IF_show_libtools() {
%1 = tail call i32 @triList(i32 8)
%2 = tail call i32 @Show_library(i32 %1)
ret void
}
void cpu_uint8_write(void *ptr, unsigned v) {
  unsigned char *ptr8 = (unsigned char *)ptr;
  ptr8[0] = v;
}


x86 assembly (clang, -O0):
<cpu_uint8_write>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpu_uint8_write>:
mov    %sil,(%rdi)
ret

LLVM IR (-O0):
define void @cpu_uint8_write(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
store i8* %6, i8** %5
%7 = load i32, i32* %4
%8 = trunc i32 %7 to i8
%9 = load i8*, i8** %5
%10 = getelementptr inbounds i8, i8* %9, i64 0
store i8 %8, i8* %10
ret void
}

LLVM IR (-O2):
define void @cpu_uint8_write(i8* nocapture writeonly %0, i32 %1) {
%3 = trunc i32 %1 to i8
store i8 %3, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mputs(int, char *);
int /*<<< orphan*/ server_write(int, char *, int, int /*<<< orphan*/);
void telnet_turned_on_him_option(int clinr, char c) {
  switch (c) {
  case '\030':
    server_write(clinr,
                 "\377"
                 "\372"
                 "\030"
                 "\001"
                 "\377"
                 "\360",
                 6, 0);
    mputs(clinr, "SENT IAC SB TERMINAL TYPE SEND IAC SE");
  }
}


x86 assembly (clang, -O0):
<telnet_turned_on_him_option>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %edi,-0x4(%rbp)
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
sub    $0x18,%al
jne    1166 <telnet_turned_on_him_option+0x46>
jmp    1141 <telnet_turned_on_him_option+0x21>
mov    -0x4(%rbp),%edi
lea    0xeb5(%rip),%rsi
mov    $0x6,%edx
xor    %ecx,%ecx
call   1040 <server_write@plt>
mov    -0x4(%rbp),%edi
lea    0xea6(%rip),%rsi
call   1030 <mputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<telnet_turned_on_him_option>:
cmp    $0x18,%sil
jne    114b <telnet_turned_on_him_option+0x2b>
push   %rbx
mov    %edi,%ebx
lea    0xed0(%rip),%rsi
mov    $0x6,%edx
xor    %ecx,%ecx
call   1040 <server_write@plt>
lea    0xec4(%rip),%rsi
mov    %ebx,%edi
pop    %rbx
jmp    1030 <mputs@plt>
ret

LLVM IR (-O0):
@.str = [7 x i8] c"\FF\FA\18\01\FF\F0\00"
@.str.1 = [38 x i8] c"SENT IAC SB TERMINAL TYPE SEND IAC SE\00"
define void @telnet_turned_on_him_option(i32 %0, i8 signext %1) {
%3 = alloca i32
%4 = alloca i8
store i32 %0, i32* %3
store i8 %1, i8* %4
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
switch i32 %6, label %12 [
i32 24, label %7
]
7: ; preds = %2
%8 = load i32, i32* %3
%9 = call i32 @server_write(i32 %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6, i32 0)
%10 = load i32, i32* %3
%11 = call i32 @mputs(i32 %10, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %7, %2
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"\FF\FA\18\01\FF\F0\00"
@.str.1 = [38 x i8] c"SENT IAC SB TERMINAL TYPE SEND IAC SE\00"
define void @telnet_turned_on_him_option(i32 %0, i8 signext %1) {
%3 = icmp eq i8 %1, 24
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = tail call i32 @server_write(i32 %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6, i32 0)
%6 = tail call i32 @mputs(i32 %0, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %2, %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("*%d*\n", 959);
  printf("*%2d*\n", 959);
  printf("*%10d*\n", 959);
  printf("*%-10d*\n", 959);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x3bf,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x3bf,%esi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x3bf,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x3bf,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"*%d*\0A\00"
@.str.1 = [7 x i8] c"*%2d*\0A\00"
@.str.2 = [8 x i8] c"*%10d*\0A\00"
@.str.3 = [9 x i8] c"*%-10d*\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 959)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 959)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 959)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 959)
ret i32 0
}
/* Variables and functions */
scalar_t__ isdigit(char);
char toupper(char);
char nibbleGet(char c) {
  return (isdigit(c) ? c - '0' : toupper(c) - 'A' + 0xA);
}


x86 assembly (clang, -O0):
<nibbleGet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1150 <nibbleGet+0x30>
movsbl -0x1(%rbp),%eax
sub    $0x30,%eax
mov    %eax,-0x8(%rbp)
jmp    1165 <nibbleGet+0x45>
movsbl -0x1(%rbp),%edi
call   1040 <toupper@plt>
movsbl %al,%eax
sub    $0x41,%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nibbleGet>:
push   %rbx
mov    %edi,%ebx
call   1030 <isdigit@plt>
test   %rax,%rax
je     1132 <nibbleGet+0x12>
lea    -0x30(%rbx),%eax
pop    %rbx
ret
movsbl %bl,%edi
call   1040 <toupper@plt>
add    $0xc9,%al
pop    %rbx
ret

LLVM IR (-O0):
define signext i8 @nibbleGet(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i64 @isdigit(i8 signext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = sub nsw i32 %8, 48
br label %16
10: ; preds = %1
%11 = load i8, i8* %2
%12 = call signext i8 @toupper(i8 signext %11)
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 65
%15 = add nsw i32 %14, 10
br label %16
16: ; preds = %10, %6
%17 = phi i32 [ %9, %6 ], [ %15, %10 ]
%18 = trunc i32 %17 to i8
ret i8 %18
}

LLVM IR (-O2):
define signext i8 @nibbleGet(i8 signext %0) {
%2 = tail call i64 @isdigit(i8 signext %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = add i8 %0, -48
br label %9
6: ; preds = %1
%7 = tail call signext i8 @toupper(i8 signext %0)
%8 = add i8 %7, -55
br label %9
9: ; preds = %6, %4
%10 = phi i8 [ %5, %4 ], [ %8, %6 ]
ret i8 %10
}
int divider_init() { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @divider_init() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ cdsortp2yl(float *, float *, int *, int, int, int);
void cdsortp2yl_(float *parta, float *partb, int *npic, int *idimp, int *nop,
                 int *ny1) {
  cdsortp2yl(parta, partb, npic, *idimp, *nop, *ny1);
  return;
}


x86 assembly (clang, -O0):
<cdsortp2yl_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
mov    -0x28(%rbp),%rax
mov    (%rax),%r8d
mov    -0x30(%rbp),%rax
mov    (%rax),%r9d
call   1030 <cdsortp2yl@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cdsortp2yl_>:
mov    (%rcx),%ecx
mov    (%r8),%r8d
mov    (%r9),%r9d
jmp    1030 <cdsortp2yl@plt>

LLVM IR (-O0):
define void @cdsortp2yl_(float* %0, float* %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = alloca float*
%8 = alloca float*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
store float* %0, float** %7
store float* %1, float** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = load float*, float** %7
%14 = load float*, float** %8
%15 = load i32*, i32** %9
%16 = load i32*, i32** %10
%17 = load i32, i32* %16
%18 = load i32*, i32** %11
%19 = load i32, i32* %18
%20 = load i32*, i32** %12
%21 = load i32, i32* %20
%22 = call i32 @cdsortp2yl(float* %13, float* %14, i32* %15, i32 %17, i32 %19, i32 %21)
ret void
}

LLVM IR (-O2):
define void @cdsortp2yl_(float* %0, float* %1, i32* %2, i32* nocapture %3, i32* nocapture %4, i32* nocapture %5) {
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = tail call i32 @cdsortp2yl(float* %0, float* %1, i32* %2, i32 %7, i32 %8, i32 %9)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void imprimirError(int codigo) {
  if (codigo == 1) {
    printf("%s\n", "El archivo especificado no existe");
  } else if (codigo == 2) {
    printf("%s\n", "El archivo especificado debe tener extension .xx");
  }
}


x86 assembly (clang, -O0):
<imprimirError>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    113d <imprimirError+0x2d>
lea    0xed4(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <printf@plt>
jmp    115f <imprimirError+0x4f>
cmpl   $0x2,-0x4(%rbp)
jne    115a <imprimirError+0x4a>
lea    0xeb2(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <printf@plt>
jmp    115f <imprimirError+0x4f>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimirError>:
cmp    $0x1,%edi
je     112d <imprimirError+0x1d>
cmp    $0x2,%edi
jne    1140 <imprimirError+0x30>
lea    0xf05(%rip),%rsi
lea    0xed8(%rip),%rdi
jmp    1030 <printf@plt>
lea    0xed0(%rip),%rsi
lea    0xec5(%rip),%rdi
jmp    1030 <printf@plt>
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [34 x i8] c"El archivo especificado no existe\00"
@.str.2 = [49 x i8] c"El archivo especificado debe tener extension .xx\00"
define void @imprimirError(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
br label %13
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %10, %7
br label %13
13: ; preds = %12, %5
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [34 x i8] c"El archivo especificado no existe\00"
@.str.2 = [49 x i8] c"El archivo especificado debe tener extension .xx\00"
define void @imprimirError(i32 %0) {
switch i32 %0, label %6 [
i32 1, label %3
i32 2, label %2
]
2: ; preds = %1
br label %3
3: ; preds = %1, %2
%4 = phi i8* [ getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), %2 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), %1 ]
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
br label %6
6: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SYS_init_module;
int syscall(int /*<<< orphan*/, void *, unsigned long, char const *);
int __init_module(void *module_image, unsigned long len,
                  const char *param_values) {
  return syscall(SYS_init_module, module_image, len, param_values);
}


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

x86 assembly (clang, -O2):
<__init_module>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@SYS_init_module = global i32 0
define i32 @__init_module(i8* %0, i64 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i8*
store i8* %0, i8** %4
store i64 %1, i64* %5
store i8* %2, i8** %6
%7 = load i32, i32* @SYS_init_module
%8 = load i8*, i8** %4
%9 = load i64, i64* %5
%10 = load i8*, i8** %6
%11 = call i32 @syscall(i32 %7, i8* %8, i64 %9, i8* %10)
ret i32 %11
}

LLVM IR (-O2):
@SYS_init_module = global i32 0
define i32 @__init_module(i8* %0, i64 %1, i8* %2) {
%4 = load i32, i32* @SYS_init_module
%5 = tail call i32 @syscall(i32 %4, i8* %0, i64 %1, i8* %2)
ret i32 %5
}
void XNextRequest() {}


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

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

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

LLVM IR (-O2):
define void @XNextRequest() {
ret void
}
/* Variables and functions */
double exp(double);
double phistar(double x, double y) {
  double arg, tem;
  static double xlow = -87.0, sq2p = 0.91893853320467274;
  tem = 0.;
  arg = -0.5 * x * x - sq2p - y;
  if (arg > xlow)
    tem = exp(arg);
  return tem;
}


x86 assembly (clang, -O0):
<phistar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xece(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  0x2eec(%rip),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
ucomisd 0x2eae(%rip),%xmm0
jbe    118f <phistar+0x7f>
movsd  -0x18(%rbp),%xmm0
call   1030 <exp@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<phistar>:
movapd %xmm0,%xmm2
movsd  0xee4(%rip),%xmm0
mulsd  %xmm2,%xmm0
mulsd  %xmm2,%xmm0
addsd  0xedc(%rip),%xmm0
subsd  %xmm1,%xmm0
ucomisd 0xed8(%rip),%xmm0
jbe    113f <phistar+0x2f>
jmp    1030 <exp@plt>
xorpd  %xmm0,%xmm0
ret

LLVM IR (-O0):
@phistar.xlow = internal global double -8.700000e+01
@phistar.sq2p = internal global double 0x3FED67F1C864BEB5
define double @phistar(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %3
store double %1, double* %4
store double 0.000000e+00, double* %6
%7 = load double, double* %3
%8 = fmul double -5.000000e-01, %7
%9 = load double, double* %3
%10 = load double, double* @phistar.sq2p
%11 = fneg double %10
%12 = call double @llvm.fmuladd.f64(double %8, double %9, double %11)
%13 = load double, double* %4
%14 = fsub double %12, %13
store double %14, double* %5
%15 = load double, double* %5
%16 = load double, double* @phistar.xlow
%17 = fcmp ogt double %15, %16
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = load double, double* %5
%20 = call double @exp(double %19)
store double %20, double* %6
br label %21
21: ; preds = %18, %2
%22 = load double, double* %6
ret double %22
}

LLVM IR (-O2):
define double @phistar(double %0, double %1) {
%3 = fmul double %0, -5.000000e-01
%4 = tail call double @llvm.fmuladd.f64(double %3, double %0, double 0xBFED67F1C864BEB5)
%5 = fsub double %4, %1
%6 = fcmp ogt double %5, -8.700000e+01
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call double @exp(double %5)
br label %9
9: ; preds = %7, %2
%10 = phi double [ %8, %7 ], [ 0.000000e+00, %2 ]
ret double %10
}
__attribute__((no_icf)) void f5(char *s) {
  char *t1 = __builtin_strstr(s, "hello");
  void foo_f5(void);
  if (t1 != s)
    foo_f5();
}


x86 assembly (clang, -O0):
<f5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strstr@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x8(%rbp),%rax
je     1153 <f5+0x33>
call   1030 <foo_f5@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f5>:
push   %rax
lea    0xed8(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     113c <f5+0x1c>
pop    %rax
jmp    1040 <foo_f5@plt>
pop    %rax
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"hello\00"
define void @f5(i8* nocapture %0) {
%2 = tail call i32 @strncmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 5)
%3 = icmp eq i32 %2, 0
br i1 %3, label %5, label %4
4: ; preds = %1
tail call void @foo_f5()
br label %5
5: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
void block_release(char *blk) { free(blk); }


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

x86 assembly (clang, -O2):
<block_release>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @block_release(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
int main(void) {
  struct date {
    int month;
    int day;
    int year;
  };
  struct date today;
  today.month = 9;
  today.day = 25;
  today.year = 2015;
  printf("Todays date is %i/%i/%.2i.\n", today.month, today.day,
         today.year % 100);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x9,-0x10(%rbp)
movl   $0x19,-0xc(%rbp)
movl   $0x7df,-0x8(%rbp)
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0x14(%rbp),%edx
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x9,%esi
mov    $0x19,%edx
mov    $0xf,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.date = type { i32, i32, i32 }
@.str = [28 x i8] c"Todays date is %i/%i/%.2i.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.date
store i32 0, i32* %1
%3 = getelementptr inbounds %struct.date, %struct.date* %2, i32 0, i32 0
store i32 9, i32* %3
%4 = getelementptr inbounds %struct.date, %struct.date* %2, i32 0, i32 1
store i32 25, i32* %4
%5 = getelementptr inbounds %struct.date, %struct.date* %2, i32 0, i32 2
store i32 2015, i32* %5
%6 = getelementptr inbounds %struct.date, %struct.date* %2, i32 0, i32 0
%7 = load i32, i32* %6
%8 = getelementptr inbounds %struct.date, %struct.date* %2, i32 0, i32 1
%9 = load i32, i32* %8
%10 = getelementptr inbounds %struct.date, %struct.date* %2, i32 0, i32 2
%11 = load i32, i32* %10
%12 = srem i32 %11, 100
%13 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %9, i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"Todays date is %i/%i/%.2i.\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 9, i32 25, i32 15)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int /*<<< orphan*/ wcscat(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
void uninivar_wcscat(void) {
  wchar_t *deststr;
  wchar_t *srcstr;
  (void)wcscat(deststr, srcstr);
}


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

x86 assembly (clang, -O2):
<uninivar_wcscat>:
jmp    1030 <wcscat@plt>

LLVM IR (-O0):
define void @uninivar_wcscat() {
%1 = alloca i32*
%2 = alloca i32*
%3 = load i32*, i32** %1
%4 = load i32*, i32** %2
%5 = call i32 @wcscat(i32* %3, i32* %4)
ret void
}

LLVM IR (-O2):
define void @uninivar_wcscat() {
%1 = tail call i32 @wcscat(i32* undef, i32* undef)
ret void
}
int tdefault_insert_fork_catchpoint(struct target_ops *self, int arg1) {
  return 1;
}


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

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

LLVM IR (-O0):
%struct.target_ops = type opaque
define i32 @tdefault_insert_fork_catchpoint(%struct.target_ops* %0, i32 %1) {
%3 = alloca %struct.target_ops*
%4 = alloca i32
store %struct.target_ops* %0, %struct.target_ops** %3
store i32 %1, i32* %4
ret i32 1
}

LLVM IR (-O2):
%struct.target_ops = type opaque
define i32 @tdefault_insert_fork_catchpoint(%struct.target_ops* nocapture readnone %0, i32 %1) {
ret i32 1
}