xunge/DecIR huggingface dataset:
int isNumNull(t)
char t[];
{
  int f = 0;
  while (t[f] != 0) {
    if (!(t[f] >= '0' && t[f] <= '9'))
      return 0;
    f++;
  }
  return 1;
}


x86 assembly (clang, -O0):
<isNumNull>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1168 <isNumNull+0x68>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x30,%eax
jl     114e <isNumNull+0x4e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x39,%eax
jle    115a <isNumNull+0x5a>
movl   $0x0,-0x4(%rbp)
jmp    116f <isNumNull+0x6f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    110f <isNumNull+0xf>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isNumNull>:
mov    (%rdi),%cl
mov    $0x1,%eax
test   %cl,%cl
je     1123 <isNumNull+0x23>
add    $0x1,%rdi
nop
add    $0xd0,%cl
cmp    $0xa,%cl
jae    1124 <isNumNull+0x24>
movzbl (%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <isNumNull+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @isNumNull(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %8
4: ; preds = %8
%5 = getelementptr inbounds i8, i8* %0, i64 %13
%6 = load i8, i8* %5
%7 = icmp eq i8 %6, 0
br i1 %7, label %14, label %8
8: ; preds = %1, %4
%9 = phi i64 [ %13, %4 ], [ 0, %1 ]
%10 = phi i8 [ %6, %4 ], [ %2, %1 ]
%11 = add i8 %10, -48
%12 = icmp ult i8 %11, 10
%13 = add nuw i64 %9, 1
br i1 %12, label %4, label %14
14: ; preds = %8, %4, %1
%15 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 0, %8 ]
ret i32 %15
}
int iasecc_se_get_info() { return -1408; }


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

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

LLVM IR (-O0):
define i32 @iasecc_se_get_info() {
ret i32 -1408
}

LLVM IR (-O2):
define i32 @iasecc_se_get_info() {
ret i32 -1408
}
int main() {
  unsigned long arg = 0x0123456789ABCD00;
  unsigned long out = 0;
  __asm__("bsfq %%rax, %%rcx" : "=c"(out) : "a"(arg));
  return (out == 8);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movabs $0x123456789abcd00,%rax
45 23 01
mov    %rax,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
bsf    %rax,%rcx
mov    %rcx,-0x18(%rbp)
cmpq   $0x8,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
movabs $0x123456789abcd00,%rax
45 23 01
bsf    %rax,%rcx
xor    %eax,%eax
cmp    $0x8,%rcx
sete   %al
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
store i64 81985529216486656, i64* %2
store i64 0, i64* %3
%4 = load i64, i64* %2
%5 = call i64 asm "bsfq %rax, %rcx", "={cx},{ax},~{dirflag},~{fpsr},~{flags}"(i64 %4)
store i64 %5, i64* %3
%6 = load i64, i64* %3
%7 = icmp eq i64 %6, 8
%8 = zext i1 %7 to i32
ret i32 %8
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 asm "bsfq %rax, %rcx", "={cx},{ax},~{dirflag},~{fpsr},~{flags}"(i64 81985529216486656)
%2 = icmp eq i64 %1, 8
%3 = zext i1 %2 to i32
ret i32 %3
}
unsigned short int bswap_16(unsigned short int x) {
  return ((((x) >> 8) & 0xff) | (((x)&0xff) << 8));
}


x86 assembly (clang, -O0):
<bswap_16>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
sar    $0x8,%eax
and    $0xff,%eax
movzwl -0x2(%rbp),%ecx
and    $0xff,%ecx
shl    $0x8,%ecx
or     %ecx,%eax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bswap_16>:
mov    %edi,%eax
rol    $0x8,%ax
ret

LLVM IR (-O0):
define zeroext i16 @bswap_16(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = zext i16 %3 to i32
%5 = ashr i32 %4, 8
%6 = and i32 %5, 255
%7 = load i16, i16* %2
%8 = zext i16 %7 to i32
%9 = and i32 %8, 255
%10 = shl i32 %9, 8
%11 = or i32 %6, %10
%12 = trunc i32 %11 to i16
ret i16 %12
}

LLVM IR (-O2):
define zeroext i16 @bswap_16(i16 zeroext %0) {
%2 = tail call i16 @llvm.bswap.i16(i16 %0)
ret i16 %2
}
/* Variables and functions */
double M_PI;
double get_alpha(char);
float coulomb_elem(char i, char j) {
  return -((2.0 * M_PI) / (get_alpha(i) + get_alpha(j)));
}


x86 assembly (clang, -O0):
<coulomb_elem>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movsd  0xed4(%rip),%xmm0
mov    0x2eb5(%rip),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <get_alpha@plt>
movsd  %xmm0,-0x18(%rbp)
movsbl -0x2(%rbp),%edi
call   1030 <get_alpha@plt>
movsd  -0x18(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x10(%rbp),%xmm0
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coulomb_elem>:
push   %rbx
sub    $0x10,%rsp
mov    %esi,%ebx
mov    0x2eca(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,0x8(%rsp)
call   1030 <get_alpha@plt>
movsd  %xmm0,(%rsp)
mov    %ebx,%edi
call   1030 <get_alpha@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0xeb9(%rip),%xmm1
addsd  (%rsp),%xmm0
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@M_PI = global double 0.000000e+00
define float @coulomb_elem(i8 signext %0, i8 signext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load double, double* @M_PI
%6 = fmul double 2.000000e+00, %5
%7 = load i8, i8* %3
%8 = call double @get_alpha(i8 signext %7)
%9 = load i8, i8* %4
%10 = call double @get_alpha(i8 signext %9)
%11 = fadd double %8, %10
%12 = fdiv double %6, %11
%13 = fneg double %12
%14 = fptrunc double %13 to float
ret float %14
}

LLVM IR (-O2):
@M_PI = global double 0.000000e+00
define float @coulomb_elem(i8 signext %0, i8 signext %1) {
%3 = load double, double* @M_PI
%4 = tail call double @get_alpha(i8 signext %0)
%5 = tail call double @get_alpha(i8 signext %1)
%6 = fadd double %4, %5
%7 = fmul double %3, -2.000000e+00
%8 = fdiv double %7, %6
%9 = fptrunc double %8 to float
ret float %9
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int lower_priority_by(pid_t pid, int prio) {
  int newprio = 0;
  newprio += prio;
  return 0;
}


x86 assembly (clang, -O0):
<lower_priority_by>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @lower_priority_by(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
%6 = load i32, i32* %4
%7 = load i32, i32* %5
%8 = add nsw i32 %7, %6
store i32 %8, i32* %5
ret i32 0
}

LLVM IR (-O2):
define i32 @lower_priority_by(i32 %0, i32 %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ udelay(int);
void mdelay(unsigned msecs) {
  unsigned i;
  for (i = 0; i < msecs; i++) {
    udelay(1000);
  }
}


x86 assembly (clang, -O0):
<mdelay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    1146 <mdelay+0x36>
mov    $0x3e8,%edi
call   1030 <udelay@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <mdelay+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mdelay>:
push   %rbx
test   %edi,%edi
je     112f <mdelay+0x1f>
mov    %edi,%ebx
nopw   0x0(%rax,%rax,1)
mov    $0x3e8,%edi
call   1030 <udelay@plt>
add    $0xffffffff,%ebx
jne    1120 <mdelay+0x10>
pop    %rbx
ret

LLVM IR (-O0):
define void @mdelay(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %10, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp ult i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @udelay(i32 1000)
br label %10
10: ; preds = %8
%11 = load i32, i32* %3
%12 = add i32 %11, 1
store i32 %12, i32* %3
br label %4
13: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @mdelay(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %8, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ 0, %1 ]
%5 = tail call i32 @udelay(i32 1000)
%6 = add nuw i32 %4, 1
%7 = icmp eq i32 %6, %0
br i1 %7, label %8, label %3
8: ; preds = %3, %1
ret void
}
/* Variables and functions */
scalar_t__ islower(int);
int toupper(int c) {
  if (islower(c))
    return (c - 'a') + 'A';
  else
    return c;
}


x86 assembly (clang, -O0):
<toupper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <islower@plt>
cmp    $0x0,%rax
je     113e <toupper+0x2e>
mov    -0x8(%rbp),%eax
sub    $0x61,%eax
add    $0x41,%eax
mov    %eax,-0x4(%rbp)
jmp    1144 <toupper+0x34>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toupper>:
push   %rbx
mov    %edi,%ebx
call   1030 <islower@plt>
lea    -0x20(%rbx),%ecx
test   %rax,%rax
cmove  %ebx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @toupper(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i64 @islower(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, i32* %3
%9 = sub nsw i32 %8, 97
%10 = add nsw i32 %9, 65
store i32 %10, i32* %2
br label %13
11: ; preds = %1
%12 = load i32, i32* %3
store i32 %12, i32* %2
br label %13
13: ; preds = %11, %7
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @toupper(i32 %0) {
%2 = tail call i64 @islower(i32 %0)
%3 = icmp eq i64 %2, 0
%4 = add nsw i32 %0, -32
%5 = select i1 %3, i32 %0, i32 %4
ret i32 %5
}
int test_imm_F2uint64_lowword_mem(unsigned long long *val) {
  return ((*val) & (0xF2 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_F2uint64_lowword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = and i64 %4, 242
%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_F2uint64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 242
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void *realloc(void *, long);
void *better_realloc(void *ptr, long size) {
  void *tmp;
  if (!(tmp = realloc(ptr, size)))
    free(ptr);
  return tmp;
}


x86 assembly (clang, -O0):
<better_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1154 <better_realloc+0x34>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<better_realloc>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
call   1040 <realloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113c <better_realloc+0x1c>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define noalias i8* @better_realloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @free(i8* %0)
br label %7
7: ; preds = %5, %2
ret i8* %3
}
float findxfrom_a_vi_t(float a, float vi, float t) {
  return (vi * t) + ((a * (t * t)) / 2);
}


x86 assembly (clang, -O0):
<findxfrom_a_vi_t>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm2
movss  -0x4(%rbp),%xmm1
movss  -0xc(%rbp),%xmm3
mulss  -0xc(%rbp),%xmm3
mulss  %xmm3,%xmm1
movss  0xec8(%rip),%xmm3
divss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<findxfrom_a_vi_t>:
mulss  %xmm2,%xmm1
mulss  %xmm2,%xmm2
mulss  %xmm2,%xmm0
mulss  0xeec(%rip),%xmm0
addss  %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @findxfrom_a_vi_t(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%7 = load float, float* %5
%8 = load float, float* %6
%9 = load float, float* %4
%10 = load float, float* %6
%11 = load float, float* %6
%12 = fmul float %10, %11
%13 = fmul float %9, %12
%14 = fdiv float %13, 2.000000e+00
%15 = call float @llvm.fmuladd.f32(float %7, float %8, float %14)
ret float %15
}

LLVM IR (-O2):
define float @findxfrom_a_vi_t(float %0, float %1, float %2) {
%4 = fmul float %2, %2
%5 = fmul float %4, %0
%6 = fmul float %5, 5.000000e-01
%7 = tail call float @llvm.fmuladd.f32(float %1, float %2, float %6)
ret float %7
}
void DO(int n) {}


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

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

LLVM IR (-O0):
define void @DO(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret void
}

LLVM IR (-O2):
define void @DO(i32 %0) {
ret void
}
int ipmi_reserved_user(int vend, int userid) {
  int ret = 0;
  if (userid == 1) {
    switch (vend) {
    case 0x000157:
      ret = 0;
      break;
    case 0x003A98:
      ret = 1;
      break;
    case 0x002A7C:
      ret = 1;
      break;
    case 0x00B980:
      ret = 1;
      break;
    default:
      ret = 0;
      break;
    }
  }
  return (ret);
}


x86 assembly (clang, -O0):
<ipmi_reserved_user>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11a6 <ipmi_reserved_user+0xa6>
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x157,%eax
je     116a <ipmi_reserved_user+0x6a>
jmp    1131 <ipmi_reserved_user+0x31>
mov    -0x10(%rbp),%eax
sub    $0x2a7c,%eax
je     1182 <ipmi_reserved_user+0x82>
jmp    1144 <ipmi_reserved_user+0x44>
mov    -0x10(%rbp),%eax
sub    $0x3a98,%eax
je     1176 <ipmi_reserved_user+0x76>
jmp    1157 <ipmi_reserved_user+0x57>
mov    -0x10(%rbp),%eax
sub    $0xb980,%eax
je     118e <ipmi_reserved_user+0x8e>
jmp    119a <ipmi_reserved_user+0x9a>
movl   $0x0,-0xc(%rbp)
jmp    11a1 <ipmi_reserved_user+0xa1>
movl   $0x1,-0xc(%rbp)
jmp    11a1 <ipmi_reserved_user+0xa1>
movl   $0x1,-0xc(%rbp)
jmp    11a1 <ipmi_reserved_user+0xa1>
movl   $0x1,-0xc(%rbp)
jmp    11a1 <ipmi_reserved_user+0xa1>
movl   $0x0,-0xc(%rbp)
jmp    11a6 <ipmi_reserved_user+0xa6>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ipmi_reserved_user>:
xor    %eax,%eax
cmp    $0x1,%esi
jne    1124 <ipmi_reserved_user+0x24>
cmp    $0x2a7c,%edi
je     111f <ipmi_reserved_user+0x1f>
cmp    $0xb980,%edi
je     111f <ipmi_reserved_user+0x1f>
cmp    $0x3a98,%edi
jne    1124 <ipmi_reserved_user+0x24>
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @ipmi_reserved_user(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %16
8: ; preds = %2
%9 = load i32, i32* %3
switch i32 %9, label %14 [
i32 343, label %10
i32 15000, label %11
i32 10876, label %12
i32 47488, label %13
]
10: ; preds = %8
store i32 0, i32* %5
br label %15
11: ; preds = %8
store i32 1, i32* %5
br label %15
12: ; preds = %8
store i32 1, i32* %5
br label %15
13: ; preds = %8
store i32 1, i32* %5
br label %15
14: ; preds = %8
store i32 0, i32* %5
br label %15
15: ; preds = %14, %13, %12, %11, %10
br label %16
16: ; preds = %15, %2
%17 = load i32, i32* %5
ret i32 %17
}

LLVM IR (-O2):
define i32 @ipmi_reserved_user(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 1
br i1 %3, label %4, label %8
4: ; preds = %2
switch i32 %0, label %8 [
i32 47488, label %7
i32 15000, label %5
i32 10876, label %6
]
5: ; preds = %4
br label %8
6: ; preds = %4
br label %8
7: ; preds = %4
br label %8
8: ; preds = %4, %5, %6, %7, %2
%9 = phi i32 [ 1, %7 ], [ 1, %6 ], [ 1, %5 ], [ 0, %2 ], [ 0, %4 ]
ret i32 %9
}
unsigned addval_487(unsigned x) { return x + 3229926025U; }


x86 assembly (clang, -O0):
<addval_487>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc084c289,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @addval_487(i32 %0) {
%2 = add i32 %0, -1065041271
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ spin(int);
int /*<<< orphan*/ stderr;
int main() {
  for (int i = 0; i < 100; i++) {
  }
  fprintf(stderr, "START\n");
  spin(2);
  fprintf(stderr, "STOP\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jge    1153 <main+0x33>
jmp    1145 <main+0x25>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xe9d(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x2,%edi
call   1040 <spin@plt>
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
lea    0xe85(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x2,%edi
call   1040 <spin@plt>
mov    (%rbx),%edi
lea    0xebe(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [7 x i8] c"START\0A\00"
@.str.1 = [6 x i8] c"STOP\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %7, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 100
br i1 %5, label %6, label %10
6: ; preds = %3
br label %7
7: ; preds = %6
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 1
store i32 %9, i32* %2
br label %3
10: ; preds = %3
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @spin(i32 2)
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* %1
ret i32 %16
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [7 x i8] c"START\0A\00"
@.str.1 = [6 x i8] c"STOP\0A\00"
define i32 @main() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @spin(i32 2)
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int Scheme_Unpause();
int WSQ_Unpause() { return Scheme_Unpause(); }


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

x86 assembly (clang, -O2):
<WSQ_Unpause>:
xor    %eax,%eax
jmp    1030 <Scheme_Unpause@plt>

LLVM IR (-O0):
define i32 @WSQ_Unpause() {
%1 = call i32 (...) @Scheme_Unpause()
ret i32 %1
}

LLVM IR (-O2):
define i32 @WSQ_Unpause() {
%1 = tail call i32 (...) @Scheme_Unpause()
ret i32 %1
}
/* Variables and functions */
int _ada_use_c2phc(int, int *, int *, double *);
int quaddobl_Newton_step(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc(197, a, b, c);
  return fail;
}


x86 assembly (clang, -O0):
<quaddobl_Newton_step>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0xc5,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quaddobl_Newton_step>:
mov    $0xc5,%edi
jmp    1030 <_ada_use_c2phc@plt>

LLVM IR (-O0):
define i32 @quaddobl_Newton_step() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32
%4 = alloca double*
%5 = load i32*, i32** %1
%6 = load i32*, i32** %2
%7 = load double*, double** %4
%8 = call i32 @_ada_use_c2phc(i32 197, i32* %5, i32* %6, double* %7)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @quaddobl_Newton_step() {
%1 = tail call i32 @_ada_use_c2phc(i32 197, i32* undef, i32* undef, double* undef)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ linuxtrack_shutdown();
int /*<<< orphan*/ logmsg(char *);
int /*<<< orphan*/ ofd_close();
void at_exit(void) {
  logmsg("Exiting");
  ofd_close();
  linuxtrack_shutdown();
  logmsg("Bye.");
}


x86 assembly (clang, -O0):
<at_exit>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <logmsg@plt>
mov    $0x0,%al
call   1030 <ofd_close@plt>
mov    $0x0,%al
call   1050 <linuxtrack_shutdown@plt>
lea    0xeb3(%rip),%rdi
call   1040 <logmsg@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<at_exit>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <logmsg@plt>
xor    %eax,%eax
call   1030 <ofd_close@plt>
xor    %eax,%eax
call   1050 <linuxtrack_shutdown@plt>
lea    0xeb6(%rip),%rdi
pop    %rax
jmp    1040 <logmsg@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Exiting\00"
@.str.1 = [5 x i8] c"Bye.\00"
define void @at_exit() {
%1 = call i32 @logmsg(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @ofd_close()
%3 = call i32 (...) @linuxtrack_shutdown()
%4 = call i32 @logmsg(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"Exiting\00"
@.str.1 = [5 x i8] c"Bye.\00"
define void @at_exit() {
%1 = tail call i32 @logmsg(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @ofd_close()
%3 = tail call i32 (...) @linuxtrack_shutdown()
%4 = tail call i32 @logmsg(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct sqlConnection {
  int dummy;
};
struct slInt {
  int dummy;
};

/* Variables and functions */
struct slInt *matchingExtId(struct sqlConnection *, char *, char *);
struct slInt *genePixSelectRefSeq(struct sqlConnection *conn, char *acc) {
  return matchingExtId(conn, acc, "refSeq");
}


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

x86 assembly (clang, -O2):
<genePixSelectRefSeq>:
lea    0xee9(%rip),%rdx
jmp    1030 <matchingExtId@plt>

LLVM IR (-O0):
%struct.slInt = type { i32 }
%struct.sqlConnection = type { i32 }
@.str = [7 x i8] c"refSeq\00"
define %struct.slInt* @genePixSelectRefSeq(%struct.sqlConnection* %0, i8* %1) {
%3 = alloca %struct.sqlConnection*
%4 = alloca i8*
store %struct.sqlConnection* %0, %struct.sqlConnection** %3
store i8* %1, i8** %4
%5 = load %struct.sqlConnection*, %struct.sqlConnection** %3
%6 = load i8*, i8** %4
%7 = call %struct.slInt* @matchingExtId(%struct.sqlConnection* %5, i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret %struct.slInt* %7
}

LLVM IR (-O2):
%struct.slInt = type { i32 }
%struct.sqlConnection = type { i32 }
@.str = [7 x i8] c"refSeq\00"
define %struct.slInt* @genePixSelectRefSeq(%struct.sqlConnection* %0, i8* %1) {
%3 = tail call %struct.slInt* @matchingExtId(%struct.sqlConnection* %0, i8* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret %struct.slInt* %3
}
/* Type definitions */
typedef scalar_t__ int64_t;
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
scalar_t__ mult(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ mult1(int /*<<< orphan*/, int /*<<< orphan*/);
int64_t mult_variants(int32_t rs, int32_t rt) {
  int64_t rd = mult(rs, rt);
  int64_t rd1 = mult1(rs, rt);
  assert(rd == rd1);
  return rd;
}


x86 assembly (clang, -O0):
<mult_variants>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <mult@plt>
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <mult1@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mult_variants>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%ebp
call   1050 <mult@plt>
mov    %rax,%r14
mov    %ebp,%edi
mov    %ebx,%esi
call   1030 <mult1@plt>
xor    %edi,%edi
cmp    %rax,%r14
sete   %dil
call   1040 <assert@plt>
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i64 @mult_variants(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca i64
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = call i64 @mult(i32 %7, i32 %8)
store i64 %9, i64* %5
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = call i64 @mult1(i32 %10, i32 %11)
store i64 %12, i64* %6
%13 = load i64, i64* %5
%14 = load i64, i64* %6
%15 = icmp eq i64 %13, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = load i64, i64* %5
ret i64 %18
}

LLVM IR (-O2):
define i64 @mult_variants(i32 %0, i32 %1) {
%3 = tail call i64 @mult(i32 %0, i32 %1)
%4 = tail call i64 @mult1(i32 %0, i32 %1)
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
ret i64 %3
}
/* Variables and functions */
char *strrchr(char *, char);
void chomp(char *str) {
  char *cp;
  if (str && (cp = strrchr(str, '\n'))) {
    *cp = '\0';
  }
  if (str && (cp = strrchr(str, '\r'))) {
    *cp = '\0';
  }
}


x86 assembly (clang, -O0):
<chomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     114a <chomp+0x3a>
mov    -0x8(%rbp),%rdi
mov    $0xa,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     114a <chomp+0x3a>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
cmpq   $0x0,-0x8(%rbp)
je     1178 <chomp+0x68>
mov    -0x8(%rbp),%rdi
mov    $0xd,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     1178 <chomp+0x68>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chomp>:
push   %rbx
test   %rdi,%rdi
je     1140 <chomp+0x30>
mov    %rdi,%rbx
mov    $0xa,%esi
call   1030 <strrchr@plt>
test   %rax,%rax
je     112b <chomp+0x1b>
movb   $0x0,(%rax)
mov    %rbx,%rdi
mov    $0xd,%esi
call   1030 <strrchr@plt>
test   %rax,%rax
je     1140 <chomp+0x30>
movb   $0x0,(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define void @chomp(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = icmp ne i8* %4, null
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i8* @strrchr(i8* %7, i8 signext 10)
store i8* %8, i8** %3
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = load i8*, i8** %3
store i8 0, i8* %11
br label %12
12: ; preds = %10, %6, %1
%13 = load i8*, i8** %2
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = load i8*, i8** %2
%17 = call i8* @strrchr(i8* %16, i8 signext 13)
store i8* %17, i8** %3
%18 = icmp ne i8* %17, null
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = load i8*, i8** %3
store i8 0, i8* %20
br label %21
21: ; preds = %19, %15, %12
ret void
}

LLVM IR (-O2):
define void @chomp(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %11, label %3
3: ; preds = %1
%4 = tail call i8* @strrchr(i8* %0, i8 signext 10)
%5 = icmp eq i8* %4, null
br i1 %5, label %7, label %6
6: ; preds = %3
store i8 0, i8* %4
br label %7
7: ; preds = %3, %6
%8 = tail call i8* @strrchr(i8* %0, i8 signext 13)
%9 = icmp eq i8* %8, null
br i1 %9, label %11, label %10
10: ; preds = %7
store i8 0, i8* %8
br label %11
11: ; preds = %1, %10, %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void usage() {
  printf("'extractcmpts' ( <NUMBER>? '.' ) * <NUMBER>\n\n  (without spaces "
         "between dots and numbers!)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [91 x i8] c"'extractcmpts' ( <NUMBER>? '.' ) * <NUMBER>\0A\0A (without spaces between dots and numbers!)\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [90 x i8] c"'extractcmpts' ( <NUMBER>? '.' ) * <NUMBER>\0A\0A (without spaces between dots and numbers!)\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}
void xcheck_all_free(void) { return; }


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

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

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

LLVM IR (-O2):
define void @xcheck_all_free() {
ret void
}
void f0(int a[5]) {
  double xx = 1.2;
  double x[3] = {1, 1.0, xx};
}


x86 assembly (clang, -O0):
<f0>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  0xef8(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xee3(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xed6(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f0(i32* %0) {
%2 = alloca i32*
%3 = alloca double
%4 = alloca [3 x double]
store i32* %0, i32** %2
store double 1.200000e+00, double* %3
%5 = getelementptr inbounds [3 x double], [3 x double]* %4, i64 0, i64 0
store double 1.000000e+00, double* %5
%6 = getelementptr inbounds double, double* %5, i64 1
store double 1.000000e+00, double* %6
%7 = getelementptr inbounds double, double* %6, i64 1
%8 = load double, double* %3
store double %8, double* %7
ret void
}

LLVM IR (-O2):
define void @f0(i32* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isbdigit(int);
void t_isbdigit_0xab() {
  Assert_real((isbdigit(171) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isbdigit.c",
              860, ("isbdigit should be 0 for 0xab"));
}


x86 assembly (clang, -O0):
<t_isbdigit_0xab>:
push   %rbp
mov    %rsp,%rbp
mov    $0xab,%edi
call   1040 <isbdigit@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x35c,%edx
lea    0xf5c(%rip),%rcx
call   1030 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isbdigit_0xab>:
push   %rax
mov    $0xab,%edi
call   1040 <isbdigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x35c,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xab\00"
define void @t_isbdigit_0xab() {
%1 = call i64 @isbdigit(i32 171)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 860, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isbdigit.c\00"
@.str.1 = [30 x i8] c"isbdigit should be 0 for 0xab\00"
define void @t_isbdigit_0xab() {
%1 = tail call i64 @isbdigit(i32 171)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 860, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ restore_windowing();
void restore_devices() { restore_windowing(); }


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

x86 assembly (clang, -O2):
<restore_devices>:
xor    %eax,%eax
jmp    1030 <restore_windowing@plt>

LLVM IR (-O0):
define void @restore_devices() {
%1 = call i32 (...) @restore_windowing()
ret void
}

LLVM IR (-O2):
define void @restore_devices() {
%1 = tail call i32 (...) @restore_windowing()
ret void
}
/* Type definitions */
struct swb_config {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ system(char *);
void swb_reconfig(struct swb_config *old, struct swb_config *new) {
  system("kill -HUP `pidof browser-switchboard` > /dev/null 2>&1");
  return;
}


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

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

LLVM IR (-O0):
%struct.swb_config = type { i32 }
@.str = [55 x i8] c"kill -HUP `pidof browser-switchboard` > /dev/null 2>&1\00"
define void @swb_reconfig(%struct.swb_config* %0, %struct.swb_config* %1) {
%3 = alloca %struct.swb_config*
%4 = alloca %struct.swb_config*
store %struct.swb_config* %0, %struct.swb_config** %3
store %struct.swb_config* %1, %struct.swb_config** %4
%5 = call i32 @system(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.swb_config = type { i32 }
@.str = [55 x i8] c"kill -HUP `pidof browser-switchboard` > /dev/null 2>&1\00"
define void @swb_reconfig(%struct.swb_config* nocapture readnone %0, %struct.swb_config* nocapture readnone %1) {
%3 = tail call i32 @system(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void print_hello() { puts("Hello, world!"); }


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

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

LLVM IR (-O0):
@.str = [14 x i8] c"Hello, world!\00"
define void @print_hello() {
%1 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"Hello, world!\00"
define void @print_hello() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret void
}
void Convert8To16Row_SSE2() {}


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

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

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

LLVM IR (-O2):
define void @Convert8To16Row_SSE2() {
ret void
}
int test_imm_02uint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0x02 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_02uint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 8589934592
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ encode_msg_2(int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ mode_is_connnected();
void send_message_2(uint8_t msg_id, uint8_t payload_1, uint8_t payload_2) {
  if (mode_is_connnected() != 0)
    encode_msg_2(msg_id, 0, payload_1, payload_2);
}


x86 assembly (clang, -O0):
<send_message_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    $0x0,%al
call   1040 <mode_is_connnected@plt>
cmp    $0x0,%rax
je     1152 <send_message_2+0x32>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
xor    %esi,%esi
call   1030 <encode_msg_2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<send_message_2>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
xor    %eax,%eax
call   1040 <mode_is_connnected@plt>
test   %rax,%rax
je     1149 <send_message_2+0x29>
mov    %ebx,%edi
xor    %esi,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <encode_msg_2@plt>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define void @send_message_2(i32 %0, i32 %1, i32 %2) {
%4 = tail call i64 (...) @mode_is_connnected()
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i32 @encode_msg_2(i32 %0, i32 0, i32 %1, i32 %2)
br label %8
8: ; preds = %6, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("Not implemented yet!");
  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>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [21 x i8] c"Not implemented yet!\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Not implemented yet!\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
void lgtd_lifx_wire_setup(void) {}


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

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

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

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

/* Variables and functions */
struct group *getgrnam(const char *name) {
  return NULL;
}


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

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

LLVM IR (-O0):
%struct.group = type { i32 }
define %struct.group* @getgrnam(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
ret %struct.group* null
}

LLVM IR (-O2):
%struct.group = type { i32 }
define noalias %struct.group* @getgrnam(i8* nocapture readnone %0) {
ret %struct.group* null
}
/* Variables and functions */
int /*<<< orphan*/ EINVAL;
int /*<<< orphan*/ errno;
int kill(int pid __attribute__((unused)), int sig __attribute__((unused))) {
  errno = EINVAL;
  return (-1);
}


x86 assembly (clang, -O0):
<kill>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    0x2ec7(%rip),%rax
mov    (%rax),%ecx
mov    0x2ec6(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<kill>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%eax
mov    0x2ed0(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@EINVAL = global i32 0
@errno = global i32 0
define i32 @kill(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* @EINVAL
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@EINVAL = global i32 0
@errno = global i32 0
define i32 @kill(i32 %0, i32 %1) {
%3 = load i32, i32* @EINVAL
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
int list_init();
int module_list_init(void) { return list_init(); }


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

x86 assembly (clang, -O2):
<module_list_init>:
xor    %eax,%eax
jmp    1030 <list_init@plt>

LLVM IR (-O0):
define i32 @module_list_init() {
%1 = call i32 (...) @list_init()
ret i32 %1
}

LLVM IR (-O2):
define i32 @module_list_init() {
%1 = tail call i32 (...) @list_init()
ret i32 %1
}
void gtk_menu_item_select() {}


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

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

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

LLVM IR (-O2):
define void @gtk_menu_item_select() {
ret void
}
void do_seg_not_present(void *x) {
  do {
    kprintf("Unsupport Now...[%s]\n", __FUNCTION__);
    while (1)
      ;
  } while (0);
  ;
}


x86 assembly (clang, -O0):
<do_seg_not_present>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
lea    0xeec(%rip),%rsi
mov    $0x0,%al
call   1030 <kprintf@plt>
jmp    1131 <do_seg_not_present+0x21>

x86 assembly (clang, -O2):
<do_seg_not_present>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xef7(%rip),%rsi
xor    %eax,%eax
call   1030 <kprintf@plt>
cs nopw 0x0(%rax,%rax,1)
jmp    1130 <do_seg_not_present+0x20>

LLVM IR (-O0):
@.str = [22 x i8] c"Unsupport Now...[%s]\0A\00"
@__FUNCTION__.do_seg_not_present = [19 x i8] c"do_seg_not_present\00"
define void @do_seg_not_present(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1
%4 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @kprintf to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.do_seg_not_present, i64 0, i64 0))
br label %5
5: ; preds = %3, %5
br label %5
6: ; No predecessors!
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Unsupport Now...[%s]\0A\00"
@__FUNCTION__.do_seg_not_present = [19 x i8] c"do_seg_not_present\00"
define void @do_seg_not_present(i8* nocapture readnone %0) {
%2 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @kprintf to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__FUNCTION__.do_seg_not_present, i64 0, i64 0))
br label %3
3: ; preds = %1, %3
br label %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uid_t;

/* Variables and functions */
int /*<<< orphan*/ geteuid();
void test(void) {
  uid_t uid;
  uid = geteuid();
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <geteuid@plt>
mov    %eax,-0x4(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
xor    %eax,%eax
jmp    1030 <geteuid@plt>

LLVM IR (-O0):
define void @test() {
%1 = alloca i32
%2 = call i32 (...) @geteuid()
store i32 %2, i32* %1
ret void
}

LLVM IR (-O2):
define void @test() {
%1 = tail call i32 (...) @geteuid()
ret void
}