xunge/DecIR huggingface dataset:
lacking(s) char *s;
{
  write(2, "This termcap entry lacks the :", 30);
  write(2, s, 2);
  write(2, "=: capability\n", 14);
  exit(1);
}


x86 assembly (clang, -O0):
<lacking>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x2,%edi
lea    0xec8(%rip),%rsi
mov    $0x1e,%edx
mov    $0x0,%al
call   1030 <write@plt>
mov    -0x8(%rbp),%rsi
mov    $0x2,%edx
mov    %edx,%edi
mov    $0x0,%al
call   1030 <write@plt>
mov    $0x2,%edi
lea    0xebd(%rip),%rsi
mov    $0xe,%edx
mov    $0x0,%al
call   1030 <write@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<lacking>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
mov    $0x2,%edi
mov    $0x1e,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <write@plt>
lea    0xec8(%rip),%rsi
mov    $0x2,%edi
mov    $0xe,%edx
xor    %eax,%eax
call   1030 <write@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [31 x i8] c"This termcap entry lacks the :\00"
@.str.1 = [15 x i8] c"=: capability\0A\00"
define i32 @lacking(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 30)
%4 = load i8*, i8** %2
%5 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* %4, i32 2)
%6 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 14)
unreachable
}

LLVM IR (-O2):
@.str = [31 x i8] c"This termcap entry lacks the :\00"
@.str.1 = [15 x i8] c"=: capability\0A\00"
define i32 @lacking(i8* %0) {
%2 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 30)
%3 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* %0, i32 2)
%4 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 14)
tail call void @exit(i32 1)
unreachable
}
/* Type definitions */
struct cpu {
  int dummy;
};

/* Variables and functions */
unsigned char cpu_get_h(struct cpu *);
unsigned char cpu_get_l(struct cpu *);
unsigned short cpu_get_hl(struct cpu *cpu) {
  unsigned char h = cpu_get_h(cpu);
  unsigned char l = cpu_get_l(cpu);
  return (((unsigned short)((unsigned char)(l))) |
          (((unsigned short)((unsigned char)(h))) << 8));
}


x86 assembly (clang, -O0):
<cpu_get_hl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <cpu_get_h@plt>
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <cpu_get_l@plt>
mov    %al,-0xa(%rbp)
movzbl -0xa(%rbp),%eax
movzwl %ax,%eax
movzbl -0x9(%rbp),%ecx
movzwl %cx,%ecx
shl    $0x8,%ecx
or     %ecx,%eax
movzwl %ax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cpu_get_hl>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <cpu_get_h@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <cpu_get_l@plt>
movzbl %al,%ecx
movzbl %bpl,%eax
shl    $0x8,%eax
or     %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.cpu = type { i32 }
define zeroext i16 @cpu_get_hl(%struct.cpu* %0) {
%2 = alloca %struct.cpu*
%3 = alloca i8
%4 = alloca i8
store %struct.cpu* %0, %struct.cpu** %2
%5 = load %struct.cpu*, %struct.cpu** %2
%6 = call zeroext i8 @cpu_get_h(%struct.cpu* %5)
store i8 %6, i8* %3
%7 = load %struct.cpu*, %struct.cpu** %2
%8 = call zeroext i8 @cpu_get_l(%struct.cpu* %7)
store i8 %8, i8* %4
%9 = load i8, i8* %4
%10 = zext i8 %9 to i16
%11 = zext i16 %10 to i32
%12 = load i8, i8* %3
%13 = zext i8 %12 to i16
%14 = zext i16 %13 to i32
%15 = shl i32 %14, 8
%16 = or i32 %11, %15
%17 = trunc i32 %16 to i16
ret i16 %17
}

LLVM IR (-O2):
%struct.cpu = type { i32 }
define zeroext i16 @cpu_get_hl(%struct.cpu* %0) {
%2 = tail call zeroext i8 @cpu_get_h(%struct.cpu* %0)
%3 = tail call zeroext i8 @cpu_get_l(%struct.cpu* %0)
%4 = zext i8 %3 to i16
%5 = zext i8 %2 to i16
%6 = shl nuw i16 %5, 8
%7 = or i16 %6, %4
ret i16 %7
}
int sortwlist(void) { return 17; }


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

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

LLVM IR (-O0):
define i32 @sortwlist() {
ret i32 17
}

LLVM IR (-O2):
define i32 @sortwlist() {
ret i32 17
}
/* Variables and functions */
int /*<<< orphan*/ IPC_RMID;
int /*<<< orphan*/ perror(char *);
int semctl(int, int /*<<< orphan*/, int /*<<< orphan*/);
int des_sem(int semid) {
  if (semctl(semid, 0, IPC_RMID) == -1) {
    perror("des_sem()");
    return -1;
  }
}


x86 assembly (clang, -O0):
<des_sem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2eab(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <semctl@plt>
cmp    $0xffffffff,%eax
jne    115a <des_sem+0x3a>
lea    0xeb2(%rip),%rdi
call   1030 <perror@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<des_sem>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1040 <semctl@plt>
cmp    $0xffffffff,%eax
je     113d <des_sem+0x1d>
mov    $0xffffffff,%eax
pop    %rcx
ret
lea    0xebc(%rip),%rdi
call   1030 <perror@plt>
jmp    1136 <des_sem+0x16>

LLVM IR (-O0):
@IPC_RMID = global i32 0
@.str = [10 x i8] c"des_sem()\00"
define i32 @des_sem(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* @IPC_RMID
%6 = call i32 @semctl(i32 %4, i32 0, i32 %5)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %2
br label %10
10: ; preds = %8, %1
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@IPC_RMID = global i32 0
@.str = [10 x i8] c"des_sem()\00"
define i32 @des_sem(i32 %0) {
%2 = load i32, i32* @IPC_RMID
%3 = tail call i32 @semctl(i32 %0, i32 0, i32 %2)
%4 = icmp eq i32 %3, -1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @perror(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %1
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
main() {
  int a;
  a = 4 + 2 % -8;
  printf("= %d\n", a);
}


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

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

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

LLVM IR (-O2):
@.str = [6 x i8] c"= %d\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 6)
ret i32 0
}
int sign(double val) {
  if (val >= 0)
    return 1;
  else
    return -1;
}


x86 assembly (clang, -O0):
<sign>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1127 <sign+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <sign+0x2e>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sign>:
xorpd  %xmm1,%xmm1
xor    %eax,%eax
ucomisd %xmm1,%xmm0
setae  %al
add    %eax,%eax
add    $0xffffffff,%eax
ret

LLVM IR (-O0):
define i32 @sign(double %0) {
%2 = alloca i32
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp oge double %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, i32* %2
br label %8
7: ; preds = %1
store i32 -1, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @sign(double %0) {
%2 = fcmp ult double %0, 0.000000e+00
%3 = select i1 %2, i32 -1, i32 1
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("Switch On\n");
  printf("ABCDE\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [10 x i8] c"Switch On\00"
@str.2 = [6 x i8] c"ABCDE\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
double fabs(double);
double rnormal01();
double rnormal(double m, double sd) {
  double psd;
  psd = fabs(sd);
  return rnormal01() * psd + m;
}


x86 assembly (clang, -O0):
<rnormal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps 0xed2(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    $0x0,%al
call   1030 <rnormal01@plt>
movsd  -0x18(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rnormal>:
sub    $0x28,%rsp
movsd  %xmm0,0x8(%rsp)
andps  0xedf(%rip),%xmm1
movaps %xmm1,0x10(%rsp)
xor    %eax,%eax
call   1030 <rnormal01@plt>
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @rnormal(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %4
%7 = call double @llvm.fabs.f64(double %6)
store double %7, double* %5
%8 = call double (...) @rnormal01()
%9 = load double, double* %5
%10 = load double, double* %3
%11 = call double @llvm.fmuladd.f64(double %8, double %9, double %10)
ret double %11
}

LLVM IR (-O2):
define double @rnormal(double %0, double %1) {
%3 = tail call double @llvm.fabs.f64(double %1)
%4 = tail call double (...) @rnormal01()
%5 = tail call double @llvm.fmuladd.f64(double %4, double %3, double %0)
ret double %5
}
void ade7753_unconfigure_ring(struct iio_dev *indio_dev) {}


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

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

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

LLVM IR (-O2):
%struct.iio_dev = type opaque
define void @ade7753_unconfigure_ring(%struct.iio_dev* nocapture %0) {
ret void
}
void _M2_Strings_finish(__attribute__((unused)) int argc,
                        __attribute__((unused)) char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @_M2_Strings_finish(i32 %0, i8** nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int i;
  int j;
  i = 0;
  j = 1;
  while (i < 5) {
    j = j << 1;
    i = i + 1;
  }
  assert(j == 32);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    114e <main+0x3e>
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
cmpl   $0x20,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 1, i32* %3
br label %4
4: ; preds = %7, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 5
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, i32* %3
%9 = shl i32 %8, 1
store i32 %9, i32* %3
%10 = load i32, i32* %2
%11 = add nsw i32 %10, 1
store i32 %11, i32* %2
br label %4
12: ; preds = %4
%13 = load i32, i32* %3
%14 = icmp eq i32 %13, 32
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
ret i32 0
}
int execute_set_tid_address() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @execute_set_tid_address() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int main1() {
  long long unsigned int ca[16];
  int i;
  for (i = 0; i < 16; i++) {
    ca[i] = 0;
  }
  for (i = 0; i < 16; i++) {
    if (ca[i] != 0)
      abort();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x84(%rbp)
cmpl   $0x10,-0x84(%rbp)
jge    1156 <main1+0x46>
movslq -0x84(%rbp),%rax
movq   $0x0,-0x80(%rbp,%rax,8)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1125 <main1+0x15>
movl   $0x0,-0x84(%rbp)
cmpl   $0x10,-0x84(%rbp)
jge    11a0 <main1+0x90>
movslq -0x84(%rbp),%rax
cmpq   $0x0,-0x80(%rbp,%rax,8)
je     1187 <main1+0x77>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    118c <main1+0x7c>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1160 <main1+0x50>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main1() {
ret i32 0
}
int hrtimer_is_hres_active(struct hrtimer *timer) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.hrtimer = type opaque
define i32 @hrtimer_is_hres_active(%struct.hrtimer* nocapture readnone %0) {
ret i32 0
}
int fun647() { return 647; }


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

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

LLVM IR (-O0):
define i32 @fun647() {
ret i32 647
}

LLVM IR (-O2):
define i32 @fun647() {
ret i32 647
}
int julday(int imonth, int ileap) {
  int juldy;
  int mnth[] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365};
  juldy = mnth[imonth] + 1;
  if (imonth >= 2)
    juldy = juldy + ileap;
  return juldy;
}


x86 assembly (clang, -O0):
<julday>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xed7(%rip),%rsi
mov    $0x34,%edx
call   1030 <memcpy@plt>
movslq -0x4(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x2,-0x4(%rbp)
jl     1154 <julday+0x44>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<julday>:
movslq %edi,%rcx
lea    0xef6(%rip),%rdx
add    $0x1,%esi
cmp    $0x2,%ecx
mov    $0x1,%eax
cmovge %esi,%eax
add    (%rdx,%rcx,4),%eax
ret

LLVM IR (-O0):
@__const.julday.mnth = [13 x i32] [i32 0, i32 31, i32 59, i32 90, i32 120, i32 151, i32 181, i32 212, i32 243, i32 273, i32 304, i32 334, i32 365]
define i32 @julday(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [13 x i32]
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = bitcast [13 x i32]* %6 to i8*
%8 = load i32, i32* %3
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [13 x i32], [13 x i32]* %6, i64 0, i64 %9
%11 = load i32, i32* %10
%12 = add nsw i32 %11, 1
store i32 %12, i32* %5
%13 = load i32, i32* %3
%14 = icmp sge i32 %13, 2
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load i32, i32* %5
%17 = load i32, i32* %4
%18 = add nsw i32 %16, %17
store i32 %18, i32* %5
br label %19
19: ; preds = %15, %2
%20 = load i32, i32* %5
ret i32 %20
}

LLVM IR (-O2):
@__const.julday.mnth = [13 x i32] [i32 0, i32 31, i32 59, i32 90, i32 120, i32 151, i32 181, i32 212, i32 243, i32 273, i32 304, i32 334, i32 365]
define i32 @julday(i32 %0, i32 %1) {
%3 = sext i32 %0 to i64
%4 = getelementptr inbounds [13 x i32], [13 x i32]* @__const.julday.mnth, i64 0, i64 %3
%5 = load i32, i32* %4
%6 = icmp sgt i32 %0, 1
%7 = add i32 %1, 1
%8 = select i1 %6, i32 %7, i32 1
%9 = add i32 %8, %5
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ putchar(char);
void print_pattern4(int ile_gwiazdek) {
  for (int i = 1; i <= ile_gwiazdek; i++) {
    putchar('*');
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<print_pattern4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     1156 <print_pattern4+0x36>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1132 <print_pattern4+0x12>
lea    0xea3(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_pattern4>:
push   %rbx
test   %edi,%edi
jle    112f <print_pattern4+0x1f>
mov    %edi,%ebx
nopw   0x0(%rax,%rax,1)
mov    $0x2a,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1120 <print_pattern4+0x10>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @print_pattern4(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %3
br label %4
4: ; preds = %10, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp sle i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @putchar(i8 signext 42)
br label %10
10: ; preds = %8
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
br label %4
13: ; preds = %4
%14 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
define void @print_pattern4(i32 %0) {
%2 = icmp slt i32 %0, 1
br i1 %2, label %3, label %5
3: ; preds = %5, %1
%4 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
ret void
5: ; preds = %1, %5
%6 = phi i32 [ %8, %5 ], [ 1, %1 ]
%7 = tail call i32 @putchar(i8 signext 42)
%8 = add nuw i32 %6, 1
%9 = icmp eq i32 %6, %0
br i1 %9, label %3, label %5
}
int getpos(int x, int y) {
  if (x >= 80 || x < 0 || y >= 25 || y < 0)
    return -1;
  return 80 * y + x;
}


x86 assembly (clang, -O0):
<getpos>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x50,-0x8(%rbp)
jge    1132 <getpos+0x32>
cmpl   $0x0,-0x8(%rbp)
jl     1132 <getpos+0x32>
cmpl   $0x19,-0xc(%rbp)
jge    1132 <getpos+0x32>
cmpl   $0x0,-0xc(%rbp)
jge    113e <getpos+0x3e>
movl   $0xffffffff,-0x4(%rbp)
jmp    1148 <getpos+0x48>
imul   $0x50,-0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getpos>:
lea    (%rsi,%rsi,4),%eax
shl    $0x4,%eax
add    %edi,%eax
cmp    $0x19,%esi
mov    $0xffffffff,%ecx
cmovae %ecx,%eax
cmp    $0x50,%edi
cmovae %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @getpos(i32 %0, i32 %1) {
%3 = icmp ugt i32 %0, 79
%4 = icmp ugt i32 %1, 24
%5 = or i1 %3, %4
%6 = mul nsw i32 %1, 80
%7 = add nsw i32 %6, %0
%8 = select i1 %5, i32 -1, i32 %7
ret i32 %8
}
/* Variables and functions */
char *malloc(scalar_t__);
int /*<<< orphan*/ strcpy(char *, char const *);
scalar_t__ strlen(char const *);
char *mystrdup(const char *str) {
  char *answer;
  answer = malloc(strlen(str) + 1);
  if (answer)
    strcpy(answer, str);
  return answer;
}


x86 assembly (clang, -O0):
<mystrdup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     116d <mystrdup+0x3d>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mystrdup>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <strlen@plt>
lea    0x1(%rax),%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
je     1158 <mystrdup+0x28>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @mystrdup(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i8* @malloc(i64 %3)
%5 = icmp eq i8* %4, null
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 @strcpy(i8* %4, i8* %0)
br label %8
8: ; preds = %6, %1
ret i8* %4
}
int do_message_short(client, dummy)
struct client *client;
char **dummy;
{
  _do_message(client, 0);
  return 0;
}


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

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

LLVM IR (-O0):
%struct.client = type opaque
define i32 @do_message_short(%struct.client* %0, i8** %1) {
%3 = alloca %struct.client*
%4 = alloca i8**
store %struct.client* %0, %struct.client** %3
store i8** %1, i8*** %4
%5 = load %struct.client*, %struct.client** %3
%6 = call i32 (%struct.client*, i32, ...) bitcast (i32 (...)* @_do_message to i32 (%struct.client*, i32, ...)*)(%struct.client* %5, i32 0)
ret i32 0
}

LLVM IR (-O2):
%struct.client = type opaque
define i32 @do_message_short(%struct.client* %0, i8** nocapture readnone %1) {
%3 = tail call i32 (%struct.client*, i32, ...) bitcast (i32 (...)* @_do_message to i32 (%struct.client*, i32, ...)*)(%struct.client* %0, i32 0)
ret i32 0
}
unsigned short simple_object_fetch_little_16(const unsigned char *buf) {
  return ((unsigned short)buf[1] << 8) | (unsigned short)buf[0];
}


x86 assembly (clang, -O0):
<simple_object_fetch_little_16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%eax
movzwl %ax,%eax
shl    $0x8,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzwl %cx,%ecx
or     %ecx,%eax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<simple_object_fetch_little_16>:
movzwl (%rdi),%eax
ret

LLVM IR (-O0):
define zeroext i16 @simple_object_fetch_little_16(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = load i8, i8* %4
%6 = zext i8 %5 to i16
%7 = zext i16 %6 to i32
%8 = shl i32 %7, 8
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = load i8, i8* %10
%12 = zext i8 %11 to i16
%13 = zext i16 %12 to i32
%14 = or i32 %8, %13
%15 = trunc i32 %14 to i16
ret i16 %15
}

LLVM IR (-O2):
define zeroext i16 @simple_object_fetch_little_16(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = load i8, i8* %2
%4 = zext i8 %3 to i16
%5 = shl nuw i16 %4, 8
%6 = load i8, i8* %0
%7 = zext i8 %6 to i16
%8 = or i16 %5, %7
ret i16 %8
}
void PKCS7_RECIP_INFO_new(void) {}


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

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

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

LLVM IR (-O2):
define void @PKCS7_RECIP_INFO_new() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int EXOR_5(int ip1, int ip2) {
  assert(ip1 >= 0 && ip2 >= 0);
  return (ip1 ^ ip2) & 0x1f;
}


x86 assembly (clang, -O0):
<EXOR_5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x9(%rbp)
jl     1137 <EXOR_5+0x27>
cmpl   $0x0,-0x8(%rbp)
setge  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
xor    -0x8(%rbp),%eax
and    $0x1f,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EXOR_5>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    %esi,%edi
or     %ebp,%edi
not    %edi
shr    $0x1f,%edi
call   1030 <assert@plt>
xor    %ebp,%ebx
and    $0x1f,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @EXOR_5(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 = icmp sge i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i32, i32* %4
%9 = icmp sge i32 %8, 0
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ false, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = load i32, i32* %3
%15 = load i32, i32* %4
%16 = xor i32 %14, %15
%17 = and i32 %16, 31
ret i32 %17
}

LLVM IR (-O2):
define i32 @EXOR_5(i32 %0, i32 %1) {
%3 = or i32 %1, %0
%4 = xor i32 %3, -1
%5 = lshr i32 %4, 31
%6 = tail call i32 @assert(i32 %5)
%7 = xor i32 %1, %0
%8 = and i32 %7, 31
ret i32 %8
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
unsigned char *writeUint32LE(unsigned char *buffer, uint32_t value) {
  *(buffer + 3) = ((value >> 24) & 0xff);
  *(buffer + 2) = ((value >> 16) & 0xff);
  *(buffer + 1) = ((value >> 8) & 0xff);
  *buffer = (value & 0xff);
  return (buffer + 4);
}


x86 assembly (clang, -O0):
<writeUint32LE>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x18,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x3(%rax)
mov    -0xc(%rbp),%eax
sar    $0x10,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x2(%rax)
mov    -0xc(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0xc(%rbp),%eax
and    $0xff,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeUint32LE>:
mov    %esi,(%rdi)
lea    0x4(%rdi),%rax
ret

LLVM IR (-O0):
define i8* @writeUint32LE(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = ashr i32 %5, 24
%7 = and i32 %6, 255
%8 = trunc i32 %7 to i8
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 3
store i8 %8, i8* %10
%11 = load i32, i32* %4
%12 = ashr i32 %11, 16
%13 = and i32 %12, 255
%14 = trunc i32 %13 to i8
%15 = load i8*, i8** %3
%16 = getelementptr inbounds i8, i8* %15, i64 2
store i8 %14, i8* %16
%17 = load i32, i32* %4
%18 = ashr i32 %17, 8
%19 = and i32 %18, 255
%20 = trunc i32 %19 to i8
%21 = load i8*, i8** %3
%22 = getelementptr inbounds i8, i8* %21, i64 1
store i8 %20, i8* %22
%23 = load i32, i32* %4
%24 = and i32 %23, 255
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %3
store i8 %25, i8* %26
%27 = load i8*, i8** %3
%28 = getelementptr inbounds i8, i8* %27, i64 4
ret i8* %28
}

LLVM IR (-O2):
define i8* @writeUint32LE(i8* writeonly %0, i32 %1) {
%3 = lshr i32 %1, 24
%4 = trunc i32 %3 to i8
%5 = getelementptr inbounds i8, i8* %0, i64 3
store i8 %4, i8* %5
%6 = lshr i32 %1, 16
%7 = trunc i32 %6 to i8
%8 = getelementptr inbounds i8, i8* %0, i64 2
store i8 %7, i8* %8
%9 = lshr i32 %1, 8
%10 = trunc i32 %9 to i8
%11 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %10, i8* %11
%12 = trunc i32 %1 to i8
store i8 %12, i8* %0
%13 = getelementptr inbounds i8, i8* %0, i64 4
ret i8* %13
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void print_usage() {
  printf("%s\n", "usage: spectype <temperature> <unit>");
  return;
}


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

x86 assembly (clang, -O2):
<print_usage>:
lea    0xee9(%rip),%rdi
lea    0xee6(%rip),%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [37 x i8] c"usage: spectype <temperature> <unit>\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [37 x i8] c"usage: spectype <temperature> <unit>\00"
define void @print_usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int test_imm_F7uint16_reg(unsigned short val) {
  return ((val) & (0xF7 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_F7uint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%edx
and    $0xf7,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @test_imm_F7uint16_reg(i16 zeroext %0) {
%2 = and i16 %0, 247
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void _llnull(void) { return; }


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

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

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

LLVM IR (-O2):
define void @_llnull() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ ln_3();
int main() {
  ln_3();
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <ln_3@plt>
mov    $0x0,%al
call   1030 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <ln_3@plt>
xor    %eax,%eax
call   1030 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @ln_3()
%2 = tail call i32 (...) @getchar()
ret i32 0
}
int test_imm_BDuint64_midword_reg(unsigned long long val) {
  return ((val >> 16) & (0xBD << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_BDuint64_midword_reg>:
test   $0xbd0000,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_BDuint64_midword_reg(i64 %0) {
%2 = and i64 %0, 12386304
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
struct timeval {
  unsigned long tv_sec;
  unsigned long tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
unsigned long ts_usec(void) {
  struct timeval tv;
  gettimeofday(&tv, NULL);
  return (tv.tv_sec * 1000000ul + tv.tv_usec);
}


x86 assembly (clang, -O0):
<ts_usec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,-0x10(%rbp),%rax
add    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_usec>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
imul   $0xf4240,0x8(%rsp),%rax
add    0x10(%rsp),%rax
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define i64 @ts_usec() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%4 = load i64, i64* %3
%5 = mul i64 %4, 1000000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%7 = load i64, i64* %6
%8 = add i64 %5, %7
ret i64 %8
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define i64 @ts_usec() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i64, i64* %4
%6 = mul i64 %5, 1000000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i64, i64* %7
%9 = add i64 %6, %8
ret i64 %9
}
void _Jv_AllocBytes(void) {}


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

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

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

LLVM IR (-O2):
define void @_Jv_AllocBytes() {
ret void
}
/* Variables and functions */
double ibeta(double, double, double);
double betacdf(double x, double a, double b) {
  double oup;
  oup = ibeta(x, a, b);
  if (oup > 1.0) {
    oup = 1.0;
  }
  return oup;
}


x86 assembly (clang, -O0):
<betacdf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
call   1030 <ibeta@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xeb3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1164 <betacdf+0x54>
movsd  0xea1(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<betacdf>:
push   %rax
call   1030 <ibeta@plt>
movsd  0xee2(%rip),%xmm1
minsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @betacdf(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%8 = load double, double* %4
%9 = load double, double* %5
%10 = load double, double* %6
%11 = call double @ibeta(double %8, double %9, double %10)
store double %11, double* %7
%12 = load double, double* %7
%13 = fcmp ogt double %12, 1.000000e+00
br i1 %13, label %14, label %15
14: ; preds = %3
store double 1.000000e+00, double* %7
br label %15
15: ; preds = %14, %3
%16 = load double, double* %7
ret double %16
}

LLVM IR (-O2):
define double @betacdf(double %0, double %1, double %2) {
%4 = tail call double @ibeta(double %0, double %1, double %2)
%5 = fcmp ogt double %4, 1.000000e+00
%6 = select i1 %5, double 1.000000e+00, double %4
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ U_WMRNOTIMPLEMENTED_swap(char *, int);
void U_WMRF3_swap(char *record, int torev) {
  U_WMRNOTIMPLEMENTED_swap(record, torev);
}


x86 assembly (clang, -O0):
<U_WMRF3_swap>:
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 <U_WMRNOTIMPLEMENTED_swap@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<U_WMRF3_swap>:
jmp    1030 <U_WMRNOTIMPLEMENTED_swap@plt>

LLVM IR (-O0):
define void @U_WMRF3_swap(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
%7 = call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %5, i32 %6)
ret void
}

LLVM IR (-O2):
define void @U_WMRF3_swap(i8* %0, i32 %1) {
%3 = tail call i32 @U_WMRNOTIMPLEMENTED_swap(i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int breaks_needed(int, int);
int next_power_of_two(int);
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  scanf("%d", &n);
  int bar_size = next_power_of_two(n);
  printf("%d %d\n", bar_size, breaks_needed(bar_size, n));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1050 <next_power_of_two@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1060 <breaks_needed@plt>
mov    -0x10(%rbp),%esi
mov    %eax,%edx
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb4(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%edi
call   1050 <next_power_of_two@plt>
mov    %eax,%ebx
mov    0xc(%rsp),%esi
mov    %eax,%edi
call   1060 <breaks_needed@plt>
lea    0xe90(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"%d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = call i32 @next_power_of_two(i32 %4)
%6 = load i32, i32* %1
%7 = call i32 @breaks_needed(i32 %5, i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %5, i32 %7)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ imprimirCabecera();
int imprimirMenu();
int /*<<< orphan*/ inicializarPartida();
int /*<<< orphan*/ salir();
void main() {
  int opcion = -1;
  imprimirCabecera();
  opcion = imprimirMenu();
  switch (opcion) {
  case 1:
    inicializarPartida();
    break;
  case 2:
    salir();
    break;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0xffffffff,-0x4(%rbp)
xor    %eax,%eax
mov    %al,-0x9(%rbp)
call   1050 <imprimirCabecera@plt>
mov    -0x9(%rbp),%al
call   1030 <imprimirMenu@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x1,%eax
je     1189 <main+0x49>
jmp    1178 <main+0x38>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
je     1195 <main+0x55>
jmp    119c <main+0x5c>
mov    $0x0,%al
call   1060 <inicializarPartida@plt>
jmp    119c <main+0x5c>
mov    $0x0,%al
call   1040 <salir@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <imprimirCabecera@plt>
xor    %eax,%eax
call   1030 <imprimirMenu@plt>
cmp    $0x2,%eax
je     1161 <main+0x21>
cmp    $0x1,%eax
jne    1169 <main+0x29>
xor    %eax,%eax
pop    %rcx
jmp    1060 <inicializarPartida@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <salir@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
store i32 -1, i32* %1
%2 = call i32 (...) @imprimirCabecera()
%3 = call i32 (...) @imprimirMenu()
store i32 %3, i32* %1
%4 = load i32, i32* %1
switch i32 %4, label %9 [
i32 1, label %5
i32 2, label %7
]
5: ; preds = %0
%6 = call i32 (...) @inicializarPartida()
br label %9
7: ; preds = %0
%8 = call i32 (...) @salir()
br label %9
9: ; preds = %0, %7, %5
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @imprimirCabecera()
%2 = tail call i32 (...) @imprimirMenu()
switch i32 %2, label %7 [
i32 1, label %3
i32 2, label %5
]
3: ; preds = %0
%4 = tail call i32 (...) @inicializarPartida()
br label %7
5: ; preds = %0
%6 = tail call i32 (...) @salir()
br label %7
7: ; preds = %0, %5, %3
ret void
}
void XtAddRawEventHandler() {}


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

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

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

LLVM IR (-O2):
define void @XtAddRawEventHandler() {
ret void
}
__attribute__((no, noclone)) void b(void) { asm volatile(""); }


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

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

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

LLVM IR (-O2):
define void @b() {
tail call void asm sideeffect "", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int memcmp(void const *, void const *, long long);
extern int mem_cmp(const void *l, const void *r, long long size) {
  return memcmp(l, r, size);
}


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

x86 assembly (clang, -O2):
<mem_cmp>:
jmp    1030 <memcmp@plt>

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

LLVM IR (-O2):
define i32 @mem_cmp(i8* nocapture %0, i8* nocapture %1, i64 %2) {
%4 = tail call i32 @memcmp(i8* %0, i8* %1, i64 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ SIGHUP;
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ signal(int /*<<< orphan*/, int /*<<< orphan*/);
void daemonize(void) {
  signal(SIGHUP, SIG_IGN);
  if (fork() != 0) {
    exit(EXIT_SUCCESS);
  }
}


x86 assembly (clang, -O0):
<daemonize>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
mov    0x2e9c(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    $0x0,%al
call   1050 <fork@plt>
cmp    $0x0,%rax
je     116a <daemonize+0x3a>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<daemonize>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
mov    0x2e9f(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
xor    %eax,%eax
call   1050 <fork@plt>
test   %rax,%rax
jne    1156 <daemonize+0x26>
pop    %rax
ret
mov    0x2e73(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@SIGHUP = global i32 0
@SIG_IGN = global i32 0
@EXIT_SUCCESS = global i32 0
define void @daemonize() {
%1 = load i32, i32* @SIGHUP
%2 = load i32, i32* @SIG_IGN
%3 = call i32 @signal(i32 %1, i32 %2)
%4 = call i64 (...) @fork()
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = load i32, i32* @EXIT_SUCCESS
%8 = call i32 @exit(i32 %7)
unreachable
9: ; preds = %0
ret void
}

LLVM IR (-O2):
@SIGHUP = global i32 0
@SIG_IGN = global i32 0
@EXIT_SUCCESS = global i32 0
define void @daemonize() {
%1 = load i32, i32* @SIGHUP
%2 = load i32, i32* @SIG_IGN
%3 = tail call i32 @signal(i32 %1, i32 %2)
%4 = tail call i64 (...) @fork()
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %0
%7 = load i32, i32* @EXIT_SUCCESS
%8 = tail call i32 @exit(i32 %7)
unreachable
9: ; preds = %0
ret void
}
void I210ToARGBRow_C() {}


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

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

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

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