xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ adc8(int /*<<< orphan*/);
int /*<<< orphan*/ indirectxE();
int /*<<< orphan*/ readmem65816(int /*<<< orphan*/);
void adcIndirectxE(void) { adc8(readmem65816(indirectxE())); }


x86 assembly (clang, -O0):
<adcIndirectxE>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <indirectxE@plt>
mov    %eax,%edi
call   1050 <readmem65816@plt>
mov    %eax,%edi
call   1030 <adc8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<adcIndirectxE>:
push   %rax
xor    %eax,%eax
call   1040 <indirectxE@plt>
mov    %eax,%edi
call   1050 <readmem65816@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <adc8@plt>

LLVM IR (-O0):
define void @adcIndirectxE() {
%1 = call i32 (...) @indirectxE()
%2 = call i32 @readmem65816(i32 %1)
%3 = call i32 @adc8(i32 %2)
ret void
}

LLVM IR (-O2):
define void @adcIndirectxE() {
%1 = tail call i32 (...) @indirectxE()
%2 = tail call i32 @readmem65816(i32 %1)
%3 = tail call i32 @adc8(i32 %2)
ret void
}
int iris_call_register_fd(int fd) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @iris_call_register_fd(i32 %0) {
ret i32 0
}
void testAssignment() {
  float f = 222222;
  double b = 222222222222L;
  float ff = 222222222222L;
  float ffff = 222222222222UL;
  long l = 222222222222L;
  float fff = l;
}


x86 assembly (clang, -O0):
<testAssignment>:
push   %rbp
mov    %rsp,%rbp
movss  0xef8(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movsd  0xeef(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movss  0xeda(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  0xecd(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movabs $0x33bd7a038e,%rax
mov    %rax,-0x20(%rbp)
cvtsi2ssq -0x20(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @testAssignment() {
%1 = alloca float
%2 = alloca double
%3 = alloca float
%4 = alloca float
%5 = alloca i64
%6 = alloca float
store float 2.222220e+05, float* %1
store double 0x4249DEBD01C70000, double* %2
store float 0x4249DEBD00000000, float* %3
store float 0x4249DEBD00000000, float* %4
store i64 222222222222, i64* %5
%7 = load i64, i64* %5
%8 = sitofp i64 %7 to float
store float %8, float* %6
ret void
}

LLVM IR (-O2):
define void @testAssignment() {
ret void
}
double jd2jed(dj)
double dj;
{
  double dt;
  dt = utdt(dj);
  return (dj + (dt / 86400.0));
}


x86 assembly (clang, -O0):
<jd2jed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x1,%al
call   1030 <utdt@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  0xebc(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<jd2jed>:
push   %rax
movsd  %xmm0,(%rsp)
mov    $0x1,%al
call   1030 <utdt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xed4(%rip),%xmm0
addsd  (%rsp),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @jd2jed(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = call i32 (double, ...) bitcast (i32 (...)* @utdt to i32 (double, ...)*)(double %4)
%6 = sitofp i32 %5 to double
store double %6, double* %3
%7 = load double, double* %2
%8 = load double, double* %3
%9 = fdiv double %8, 8.640000e+04
%10 = fadd double %7, %9
ret double %10
}

LLVM IR (-O2):
define double @jd2jed(double %0) {
%2 = tail call i32 (double, ...) bitcast (i32 (...)* @utdt to i32 (double, ...)*)(double %0)
%3 = sitofp i32 %2 to double
%4 = fdiv double %3, 8.640000e+04
%5 = fadd double %4, %0
ret double %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void funcao() {
  int variavel = 0;
  static int estatica = 0;
  variavel++;
  estatica++;
  printf("variavel = %d, estatica = %d\n", variavel, estatica);
}


x86 assembly (clang, -O0):
<funcao>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    0x2efe(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ef5(%rip)
mov    -0x4(%rbp),%esi
mov    0x2eec(%rip),%edx
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<funcao>:
mov    0x2f16(%rip),%edx
add    $0x1,%edx
mov    %edx,0x2f0d(%rip)
lea    0xeda(%rip),%rdi
mov    $0x1,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@funcao.estatica = internal global i32 0
@.str = [30 x i8] c"variavel = %d, estatica = %d\0A\00"
define void @funcao() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* %1
%3 = add nsw i32 %2, 1
store i32 %3, i32* %1
%4 = load i32, i32* @funcao.estatica
%5 = add nsw i32 %4, 1
store i32 %5, i32* @funcao.estatica
%6 = load i32, i32* %1
%7 = load i32, i32* @funcao.estatica
%8 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
ret void
}

LLVM IR (-O2):
@funcao.estatica = internal unnamed_addr global i32 0
@.str = [30 x i8] c"variavel = %d, estatica = %d\0A\00"
define void @funcao() {
%1 = load i32, i32* @funcao.estatica
%2 = add nsw i32 %1, 1
store i32 %2, i32* @funcao.estatica
%3 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 1, i32 %2)
ret void
}
void bnf_placeholder(void) {}


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

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

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

LLVM IR (-O2):
define void @bnf_placeholder() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ refresh_TLB(void *);
void hal_mmu_pg_tbl_refresh(void *virt_addr) {
  refresh_TLB(virt_addr);
  return;
}


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

x86 assembly (clang, -O2):
<hal_mmu_pg_tbl_refresh>:
jmp    1030 <refresh_TLB@plt>

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

LLVM IR (-O2):
define void @hal_mmu_pg_tbl_refresh(i8* %0) {
%2 = tail call i32 @refresh_TLB(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
void xt_par2(char *control_sequence, int parameter1, int parameter2) {
  printf(control_sequence, parameter1, parameter2);
}


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

x86 assembly (clang, -O2):
<xt_par2>:
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
define void @xt_par2(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @printf(i8* %0, i32 %1, i32 %2)
ret void
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int syscon_dobldobl_drop_variable_by_index(int k) {
  int fail, *b;
  double *c;
  fail = _ada_use_c2phc4c(307, &k, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<syscon_dobldobl_drop_variable_by_index>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x133,%edi
lea    -0x4(%rbp),%rsi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syscon_dobldobl_drop_variable_by_index>:
push   %rax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x133,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @syscon_dobldobl_drop_variable_by_index(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca double*
store i32 %0, i32* %2
%6 = load i32*, i32** %4
%7 = load double*, double** %5
%8 = call i32 @_ada_use_c2phc4c(i32 307, i32* %2, i32* %6, double* %7, i32 0)
store i32 %8, i32* %3
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @syscon_dobldobl_drop_variable_by_index(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @_ada_use_c2phc4c(i32 307, i32* %2, i32* undef, double* undef, i32 0)
ret i32 %3
}
/* Variables and functions */
int serial_in(unsigned int, int);
bool serial_rxavailable(unsigned dev) {
  return ((serial_in(dev, 0x18)) & 0x10) == 0U;
}


x86 assembly (clang, -O0):
<serial_rxavailable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x18,%esi
call   1030 <serial_in@plt>
and    $0x10,%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<serial_rxavailable>:
push   %rax
mov    $0x18,%esi
call   1030 <serial_in@plt>
xor    %ecx,%ecx
test   $0x10,%al
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @serial_rxavailable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @serial_in(i32 %3, i32 24)
%5 = and i32 %4, 16
%6 = icmp eq i32 %5, 0
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @serial_rxavailable(i32 %0) {
%2 = tail call i32 @serial_in(i32 %0, i32 24)
%3 = lshr i32 %2, 4
%4 = and i32 %3, 1
%5 = xor i32 %4, 1
ret i32 %5
}
void gencheck_interupt(unsigned int instr_structure) {}


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

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

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

LLVM IR (-O2):
define void @gencheck_interupt(i32 %0) {
ret void
}
long sum(int x) {
  long tmp;
  if (x == 0)
    return 0;
  tmp = sum(x - 1);
  return tmp;
}


x86 assembly (clang, -O0):
<sum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1132 <sum+0x22>
movq   $0x0,-0x8(%rbp)
jmp    1149 <sum+0x39>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
call   1030 <sum@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i64 @sum(i32 %0) {
ret i64 0
}
void swap(float *a, float *b) {
  int temp = *a;
  *a = *b;
  *b = temp;
}


x86 assembly (clang, -O0):
<swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cvttss2si (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
cvtsi2ssl -0x14(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<swap>:
movss  (%rsi),%xmm0
movss  (%rdi),%xmm1
movss  %xmm0,(%rdi)
cvttps2dq %xmm1,%xmm0
cvtdq2ps %xmm0,%xmm0
movss  %xmm0,(%rsi)
ret

LLVM IR (-O0):
define void @swap(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
%5 = alloca i32
store float* %0, float** %3
store float* %1, float** %4
%6 = load float*, float** %3
%7 = load float, float* %6
%8 = fptosi float %7 to i32
store i32 %8, i32* %5
%9 = load float*, float** %4
%10 = load float, float* %9
%11 = load float*, float** %3
store float %10, float* %11
%12 = load i32, i32* %5
%13 = sitofp i32 %12 to float
%14 = load float*, float** %4
store float %13, float* %14
ret void
}

LLVM IR (-O2):
define void @swap(float* nocapture %0, float* nocapture %1) {
%3 = load float, float* %0
%4 = fptosi float %3 to i32
%5 = load float, float* %1
store float %5, float* %0
%6 = sitofp i32 %4 to float
store float %6, float* %1
ret void
}
/* Variables and functions */
double exp(double);
double scoreToWeight(double score, double beta) {
  double invprob = (1 - score) * beta;
  if (invprob < 0) {
    invprob = 0;
  }
  return exp(-invprob);
}


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

x86 assembly (clang, -O2):
<scoreToWeight>:
movsd  0xee8(%rip),%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
xorpd  %xmm0,%xmm0
maxsd  %xmm2,%xmm0
xorpd  0xee0(%rip),%xmm0
jmp    1030 <exp@plt>

LLVM IR (-O0):
define double @scoreToWeight(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* %3
%7 = fsub double 1.000000e+00, %6
%8 = load double, double* %4
%9 = fmul double %7, %8
store double %9, double* %5
%10 = load double, double* %5
%11 = fcmp olt double %10, 0.000000e+00
br i1 %11, label %12, label %13
12: ; preds = %2
store double 0.000000e+00, double* %5
br label %13
13: ; preds = %12, %2
%14 = load double, double* %5
%15 = fneg double %14
%16 = call double @exp(double %15)
ret double %16
}

LLVM IR (-O2):
define double @scoreToWeight(double %0, double %1) {
%3 = fsub double 1.000000e+00, %0
%4 = fmul double %3, %1
%5 = fcmp olt double %4, 0.000000e+00
%6 = select i1 %5, double 0.000000e+00, double %4
%7 = fneg double %6
%8 = tail call double @exp(double %7)
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ block4x4_etc2_rgb8_set_mode(unsigned char *, int);
void block4x4_etc2_eac_set_mode(unsigned char *bitstring, int flags) {
  block4x4_etc2_rgb8_set_mode(&bitstring[8], flags);
}


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

x86 assembly (clang, -O2):
<block4x4_etc2_eac_set_mode>:
add    $0x8,%rdi
jmp    1030 <block4x4_etc2_rgb8_set_mode@plt>

LLVM IR (-O0):
define void @block4x4_etc2_eac_set_mode(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 = getelementptr inbounds i8, i8* %5, i64 8
%7 = load i32, i32* %4
%8 = call i32 @block4x4_etc2_rgb8_set_mode(i8* %6, i32 %7)
ret void
}

LLVM IR (-O2):
define void @block4x4_etc2_eac_set_mode(i8* %0, i32 %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 8
%4 = tail call i32 @block4x4_etc2_rgb8_set_mode(i8* %3, i32 %1)
ret void
}
void mdp4_overlay_dsi_video_vsync_push(struct msm_fb_data_type *mfd,
                                       struct mdp4_overlay_pipe *pipe) {}


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

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

LLVM IR (-O0):
%struct.msm_fb_data_type = type opaque
%struct.mdp4_overlay_pipe = type opaque
define void @mdp4_overlay_dsi_video_vsync_push(%struct.msm_fb_data_type* %0, %struct.mdp4_overlay_pipe* %1) {
%3 = alloca %struct.msm_fb_data_type*
%4 = alloca %struct.mdp4_overlay_pipe*
store %struct.msm_fb_data_type* %0, %struct.msm_fb_data_type** %3
store %struct.mdp4_overlay_pipe* %1, %struct.mdp4_overlay_pipe** %4
ret void
}

LLVM IR (-O2):
%struct.msm_fb_data_type = type opaque
%struct.mdp4_overlay_pipe = type opaque
define void @mdp4_overlay_dsi_video_vsync_push(%struct.msm_fb_data_type* nocapture %0, %struct.mdp4_overlay_pipe* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ validname(char *);
int main() {
  char *str1 = "_1test";
  char *str2 = "foo_42";
  char *str3 = "5bar";
  char *str4 = "abf$";
  validname(str1);
  validname(str2);
  validname(str3);
  validname(str4);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xed6(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xed2(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xecc(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <validname@plt>
mov    -0x18(%rbp),%rdi
call   1030 <validname@plt>
mov    -0x20(%rbp),%rdi
call   1030 <validname@plt>
mov    -0x28(%rbp),%rdi
call   1030 <validname@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [7 x i8] c"_1test\00"
@.str.1 = [7 x i8] c"foo_42\00"
@.str.2 = [5 x i8] c"5bar\00"
@.str.3 = [5 x i8] c"abf$\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8** %3
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %5
%6 = load i8*, i8** %2
%7 = call i32 @validname(i8* %6)
%8 = load i8*, i8** %3
%9 = call i32 @validname(i8* %8)
%10 = load i8*, i8** %4
%11 = call i32 @validname(i8* %10)
%12 = load i8*, i8** %5
%13 = call i32 @validname(i8* %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"_1test\00"
@.str.1 = [7 x i8] c"foo_42\00"
@.str.2 = [5 x i8] c"5bar\00"
@.str.3 = [5 x i8] c"abf$\00"
define i32 @main() {
%1 = tail call i32 @validname(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @validname(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @validname(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @validname(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int uint32_t;
typedef int uint16_t;

/* Variables and functions */
uint32_t lui(uint16_t kte) {
  uint32_t reg1 = kte;
  reg1 = reg1 << 16;
  return reg1;
}


x86 assembly (clang, -O0):
<lui>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
shl    $0x10,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lui>:
mov    %edi,%eax
shl    $0x10,%eax
ret

LLVM IR (-O0):
define i32 @lui(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
store i32 %4, i32* %3
%5 = load i32, i32* %3
%6 = shl i32 %5, 16
store i32 %6, i32* %3
%7 = load i32, i32* %3
ret i32 %7
}

LLVM IR (-O2):
define i32 @lui(i32 %0) {
%2 = shl i32 %0, 16
ret i32 %2
}
/* Variables and functions */
scalar_t__ rand_r(unsigned int *);
unsigned int getrand(void) {
  static unsigned int seed = 0;
  return (unsigned int)rand_r(&seed);
}


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

x86 assembly (clang, -O2):
<getrand>:
lea    0x2f15(%rip),%rdi
jmp    1030 <rand_r@plt>

LLVM IR (-O0):
@getrand.seed = internal global i32 0
define i32 @getrand() {
%1 = call i64 @rand_r(i32* @getrand.seed)
%2 = trunc i64 %1 to i32
ret i32 %2
}

LLVM IR (-O2):
@getrand.seed = internal global i32 0
define i32 @getrand() {
%1 = tail call i64 @rand_r(i32* @getrand.seed)
%2 = trunc i64 %1 to i32
ret i32 %2
}
void marker_call_with_trampolines() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @RTLockValidatorRecExclSetSubClass() {
ret void
}
/* Variables and functions */
scalar_t__ ERANGE;
int /*<<< orphan*/ __chk_fail();
char *__getcwd(char *, size_t);
scalar_t__ errno;
char *__getwd_chk(char *buf, size_t buflen) {
  char *res = __getcwd(buf, buflen);
  if (res == NULL && errno == ERANGE)
    __chk_fail();
  return res;
}


x86 assembly (clang, -O0):
<__getwd_chk>:
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 <__getcwd@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    116d <__getwd_chk+0x4d>
mov    0x2e85(%rip),%rax
mov    (%rax),%rax
mov    0x2e8b(%rip),%rcx
cmp    (%rcx),%rax
jne    116d <__getwd_chk+0x4d>
mov    $0x0,%al
call   1030 <__chk_fail@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__getwd_chk>:
push   %rbx
call   1040 <__getcwd@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    114b <__getwd_chk+0x2b>
mov    0x2ea3(%rip),%rax
mov    (%rax),%rax
mov    0x2ea9(%rip),%rcx
cmp    (%rcx),%rax
jne    114b <__getwd_chk+0x2b>
xor    %eax,%eax
call   1030 <__chk_fail@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@errno = global i64 0
@ERANGE = global i64 0
define i8* @__getwd_chk(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* @__getcwd(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i64, i64* @errno
%13 = load i64, i64* @ERANGE
%14 = icmp eq i64 %12, %13
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 (...) @__chk_fail()
br label %17
17: ; preds = %15, %11, %2
%18 = load i8*, i8** %5
ret i8* %18
}

LLVM IR (-O2):
@errno = global i64 0
@ERANGE = global i64 0
define i8* @__getwd_chk(i8* %0, i64 %1) {
%3 = tail call i8* @__getcwd(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = load i64, i64* @errno
%7 = load i64, i64* @ERANGE
%8 = icmp eq i64 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %5
%10 = tail call i32 (...) @__chk_fail()
br label %11
11: ; preds = %9, %5, %2
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int ftable_help(const char *device, int argc, char *argv[]) {
  printf("Access the flow table.\n");
  printf("Commands supported: list\n");
  return 0;
}


x86 assembly (clang, -O0):
<ftable_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [24 x i8] c"Access the flow table.\0A\00"
@.str.1 = [26 x i8] c"Commands supported: list\0A\00"
define i32 @ftable_help(i8* %0, i32 %1, i8** %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8**
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8** %2, i8*** %6
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [23 x i8] c"Access the flow table.\00"
@str.2 = [25 x i8] c"Commands supported: list\00"
define i32 @ftable_help(i8* nocapture readnone %0, i32 %1, i8** nocapture readnone %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ create_file(char *, char *, int);
void setup() { create_file("file.txt", "cd", 0666); }


x86 assembly (clang, -O0):
<setup>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee7(%rip),%rsi
mov    $0x1b6,%edx
call   1030 <create_file@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup>:
lea    0xee9(%rip),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x1b6,%edx
jmp    1030 <create_file@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"file.txt\00"
@.str.1 = [3 x i8] c"cd\00"
define void @setup() {
%1 = call i32 @create_file(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 438)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"file.txt\00"
@.str.1 = [3 x i8] c"cd\00"
define void @setup() {
%1 = tail call i32 @create_file(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 438)
ret void
}
/* Variables and functions */
double floor(double);
double ssfloor(double a) { return floor(a); }


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

x86 assembly (clang, -O2):
<ssfloor>:
jmp    1030 <floor@plt>

LLVM IR (-O0):
define double @ssfloor(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @llvm.floor.f64(double %3)
ret double %4
}

LLVM IR (-O2):
define double @ssfloor(double %0) {
%2 = tail call double @llvm.floor.f64(double %0)
ret double %2
}
double fraction(unsigned int numerator, unsigned int denominator) {
  double d = (double)denominator;
  return numerator / d;
}


x86 assembly (clang, -O0):
<fraction>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cvtsi2sd %rax,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
cvtsi2sd %rax,%xmm0
divsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fraction>:
mov    %esi,%eax
cvtsi2sd %rax,%xmm1
mov    %edi,%eax
cvtsi2sd %rax,%xmm0
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @fraction(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = uitofp i32 %6 to double
store double %7, double* %5
%8 = load i32, i32* %3
%9 = uitofp i32 %8 to double
%10 = load double, double* %5
%11 = fdiv double %9, %10
ret double %11
}

LLVM IR (-O2):
define double @fraction(i32 %0, i32 %1) {
%3 = uitofp i32 %1 to double
%4 = uitofp i32 %0 to double
%5 = fdiv double %4, %3
ret double %5
}
float *vec2_scale(float *result, float *a, float scalar) {
  result[0] = a[0] * scalar;
  result[1] = a[1] * scalar;
  return result;
}


x86 assembly (clang, -O0):
<vec2_scale>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mulss  -0x14(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mulss  -0x14(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<vec2_scale>:
mov    %rdi,%rax
movss  (%rsi),%xmm1
mulss  %xmm0,%xmm1
movss  %xmm1,(%rdi)
mulss  0x4(%rsi),%xmm0
movss  %xmm0,0x4(%rdi)
ret

LLVM IR (-O0):
define float* @vec2_scale(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 = getelementptr inbounds float, float* %7, i64 0
%9 = load float, float* %8
%10 = load float, float* %6
%11 = fmul float %9, %10
%12 = load float*, float** %4
%13 = getelementptr inbounds float, float* %12, i64 0
store float %11, float* %13
%14 = load float*, float** %5
%15 = getelementptr inbounds float, float* %14, i64 1
%16 = load float, float* %15
%17 = load float, float* %6
%18 = fmul float %16, %17
%19 = load float*, float** %4
%20 = getelementptr inbounds float, float* %19, i64 1
store float %18, float* %20
%21 = load float*, float** %4
ret float* %21
}

LLVM IR (-O2):
define float* @vec2_scale(float* returned writeonly %0, float* nocapture %1, float %2) {
%4 = load float, float* %1
%5 = fmul float %4, %2
store float %5, float* %0
%6 = getelementptr inbounds float, float* %1, i64 1
%7 = load float, float* %6
%8 = fmul float %7, %2
%9 = getelementptr inbounds float, float* %0, i64 1
store float %8, float* %9
ret float* %0
}
/* Variables and functions */
int authcustomcommon(char const *, int /*<<< orphan*/,
                     int (*)(struct authinfo *, void *), void *);
int auth_custom_pre(const char *userid, const char *service,
                    int (*callback)(struct authinfo *, void *), void *arg) {
  return (authcustomcommon(userid, 0, callback, arg));
}


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

x86 assembly (clang, -O2):
<auth_custom_pre>:
xor    %esi,%esi
jmp    1030 <authcustomcommon@plt>

LLVM IR (-O0):
%struct.authinfo = type opaque
%struct.authinfo.0 = type opaque
define i32 @auth_custom_pre(i8* %0, i8* %1, i32 (%struct.authinfo*, i8*)* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32 (%struct.authinfo*, i8*)*
%8 = alloca i8*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 (%struct.authinfo*, i8*)* %2, i32 (%struct.authinfo*, i8*)** %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i32 (%struct.authinfo*, i8*)*, i32 (%struct.authinfo*, i8*)** %7
%11 = bitcast i32 (%struct.authinfo*, i8*)* %10 to i32 (%struct.authinfo.0*, i8*)*
%12 = load i8*, i8** %8
%13 = call i32 @authcustomcommon(i8* %9, i32 0, i32 (%struct.authinfo.0*, i8*)* %11, i8* %12)
ret i32 %13
}

LLVM IR (-O2):
%struct.authinfo = type opaque
%struct.authinfo.0 = type opaque
define i32 @auth_custom_pre(i8* %0, i8* nocapture readnone %1, i32 (%struct.authinfo*, i8*)* %2, i8* %3) {
%5 = bitcast i32 (%struct.authinfo*, i8*)* %2 to i32 (%struct.authinfo.0*, i8*)*
%6 = tail call i32 @authcustomcommon(i8* %0, i32 0, i32 (%struct.authinfo.0*, i8*)* %5, i8* %3)
ret i32 %6
}
int main() {
  __int128_t *p;
  unsigned long *q;
  p = foo(&q);
  if (*p != *q)
    __builtin_abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
lea    -0x18(%rbp),%rdi
call   1040 <foo@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movaps (%rax),%xmm0
mov    -0x18(%rbp),%rax
movq   (%rax),%xmm1
pcmpeqb %xmm1,%xmm0
pmovmskb %xmm0,%eax
sub    $0xffff,%eax
je     116c <main+0x4c>
jmp    1167 <main+0x47>
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    %rsp,%rdi
xor    %eax,%eax
call   1040 <foo@plt>
cltq
mov    (%rsp),%rcx
movq   (%rcx),%xmm0
pcmpeqb (%rax),%xmm0
pmovmskb %xmm0,%eax
cmp    $0xffff,%eax
jne    1148 <main+0x28>
xor    %eax,%eax
pop    %rcx
ret
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i128*
%3 = alloca i64*
store i32 0, i32* %1
%4 = call i32 (i64**, ...) bitcast (i32 (...)* @foo to i32 (i64**, ...)*)(i64** %3)
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i128*
store i128* %6, i128** %2
%7 = load i128*, i128** %2
%8 = load i128, i128* %7
%9 = load i64*, i64** %3
%10 = load i64, i64* %9
%11 = zext i64 %10 to i128
%12 = icmp ne i128 %8, %11
br i1 %12, label %13, label %14
13: ; preds = %0
unreachable
14: ; preds = %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i64*
%2 = bitcast i64** %1 to i8*
%3 = call i32 (i64**, ...) bitcast (i32 (...)* @foo to i32 (i64**, ...)*)(i64** %1)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i128*
%6 = load i128, i128* %5
%7 = load i64*, i64** %1
%8 = load i64, i64* %7
%9 = zext i64 %8 to i128
%10 = icmp eq i128 %6, %9
br i1 %10, label %12, label %11
11: ; preds = %0
unreachable
12: ; preds = %0
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ value_compare();
list_compare(int *list1) {
  if (list1)
    value_compare();
}


x86 assembly (clang, -O0):
<list_compare>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     112e <list_compare+0x1e>
mov    $0x0,%al
call   1030 <value_compare@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<list_compare>:
test   %rdi,%rdi
je     1121 <list_compare+0x11>
push   %rax
xor    %eax,%eax
call   1030 <value_compare@plt>
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i32 @list_compare(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
store i32* %0, i32** %3
%4 = load i32*, i32** %3
%5 = icmp ne i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @value_compare()
br label %8
8: ; preds = %6, %1
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @list_compare(i32* readnone %0) {
%2 = icmp eq i32* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (...) @value_compare()
br label %5
5: ; preds = %3, %1
ret i32 undef
}
void security_inode_post_create(struct inode *dir, struct dentry *dentry,
                                int mode) {}


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

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

LLVM IR (-O0):
%struct.inode = type opaque
%struct.dentry = type opaque
define void @security_inode_post_create(%struct.inode* %0, %struct.dentry* %1, i32 %2) {
%4 = alloca %struct.inode*
%5 = alloca %struct.dentry*
%6 = alloca i32
store %struct.inode* %0, %struct.inode** %4
store %struct.dentry* %1, %struct.dentry** %5
store i32 %2, i32* %6
ret void
}

LLVM IR (-O2):
%struct.inode = type opaque
%struct.dentry = type opaque
define void @security_inode_post_create(%struct.inode* nocapture %0, %struct.dentry* nocapture %1, i32 %2) {
ret void
}
void __VERIFIER_assume(int phi) {
  {
    {
      while (1) {
      while_18_continue:;
        if (!phi) {
        } else {
          goto while_18_break;
        }
      }
    while_18_break:;
    }
    return;
  }
}


x86 assembly (clang, -O0):
<__VERIFIER_assume>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    110c <__VERIFIER_assume+0xc>
cmpl   $0x0,-0x4(%rbp)
jne    111b <__VERIFIER_assume+0x1b>
jmp    1120 <__VERIFIER_assume+0x20>
jmp    1125 <__VERIFIER_assume+0x25>
jmp    1107 <__VERIFIER_assume+0x7>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__VERIFIER_assume>:
test   %edi,%edi
je     1110 <__VERIFIER_assume+0x10>
ret
cs nopw 0x0(%rax,%rax,1)
nop
jmp    1110 <__VERIFIER_assume+0x10>

LLVM IR (-O0):
define void @__VERIFIER_assume(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %1, %9
br label %4
4: ; preds = %3
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %4
br label %9
8: ; preds = %4
br label %10
9: ; preds = %7
br label %3
10: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @__VERIFIER_assume(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %4
3: ; preds = %1, %3
br label %3
4: ; preds = %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void data_read_odd_address(void) {
  int *i = (void *)0x87654321;
  printf("%i\n", *i);
}


x86 assembly (clang, -O0):
<data_read_odd_address>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x87654321,%eax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<data_read_odd_address>:
mov    $0x87654321,%eax
mov    (%rax),%esi
lea    0xee2(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
define void @data_read_odd_address() {
%1 = load i32, i32* inttoptr (i64 2271560481 to i32*)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ g(int);
f(long long d) {
  long long c = d & 0xffffffffff;
  int i = (int)c;
  g(i);
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movabs $0xffffffffff,%rax
and    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
call   1030 <g@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
jmp    1030 <g@plt>

LLVM IR (-O0):
define i32 @f(i64 %0) {
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64
%5 = alloca i32
store i64 %0, i64* %3
%6 = load i64, i64* %3
%7 = and i64 %6, 1099511627775
store i64 %7, i64* %4
%8 = load i64, i64* %4
%9 = trunc i64 %8 to i32
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = call i32 @g(i32 %10)
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @f(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = tail call i32 @g(i32 %2)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ aa();
int /*<<< orphan*/ c();
int main() {
  aa();
  c();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <aa@plt>
mov    $0x0,%al
call   1040 <c@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @aa()
%2 = call i32 (...) @c()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @aa()
%2 = tail call i32 (...) @c()
ret i32 0
}
int test52(int a, int b) {
  int x;
  switch (a || b) {
  case 0:
    x = 1;
    break;
  case 1:
    x = 2;
    break;
  }
  return x;
}


x86 assembly (clang, -O0):
<test52>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0xd(%rbp)
jne    1123 <test52+0x23>
cmpl   $0x0,-0x8(%rbp)
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
movzbl %al,%ecx
and    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
test   $0x1,%al
je     114d <test52+0x4d>
jmp    113c <test52+0x3c>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
je     1159 <test52+0x59>
jmp    1160 <test52+0x60>
movl   $0x1,-0xc(%rbp)
jmp    1160 <test52+0x60>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test52>:
xor    %ecx,%ecx
or     %esi,%edi
sete   %cl
mov    $0x2,%eax
sub    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test52(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = icmp ne i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 0
br label %11
11: ; preds = %8, %2
%12 = phi i1 [ true, %2 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
switch i32 %13, label %16 [
i32 0, label %14
i32 1, label %15
]
14: ; preds = %11
store i32 1, i32* %5
br label %16
15: ; preds = %11
store i32 2, i32* %5
br label %16
16: ; preds = %11, %15, %14
%17 = load i32, i32* %5
ret i32 %17
}

LLVM IR (-O2):
define i32 @test52(i32 %0, i32 %1) {
%3 = or i32 %1, %0
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 1, i32 2
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void version_info() {
  printf("\n"
         "Newspost"
         " version "
         "2.2.1"
         "\nCopyright (C) 2001 - 2010 Jim Faulkner"
         "\nThis is free software; see the source for"
         " copying conditions.  There is NO"
         "\nwarranty; not even for MERCHANTABILITY or"
         " FITNESS FOR A PARTICULAR PURPOSE.");
}


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

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

LLVM IR (-O0):
@.str = [214 x i8] c"\0ANewspost version 2.2.1\0ACopyright (C) 2001 - 2010 Jim Faulkner\0AThis is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\00"
define void @version_info() {
%1 = call i32 @printf(i8* getelementptr inbounds ([214 x i8], [214 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [214 x i8] c"\0ANewspost version 2.2.1\0ACopyright (C) 2001 - 2010 Jim Faulkner\0AThis is free software; see the source for copying conditions. There is NO\0Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\00"
define void @version_info() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([214 x i8], [214 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ putData(char);
int /*<<< orphan*/ uart_tx_int_enable();
void putc(char c) {
  putData(c);
  uart_tx_int_enable();
}


x86 assembly (clang, -O0):
<putc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1040 <putData@plt>
mov    $0x0,%al
call   1030 <uart_tx_int_enable@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @putc(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i32 @putData(i8 signext %3)
%5 = call i32 (...) @uart_tx_int_enable()
ret void
}

LLVM IR (-O2):
define void @putc(i8 signext %0) {
%2 = tail call i32 @putData(i8 signext %0)
%3 = tail call i32 (...) @uart_tx_int_enable()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ _ProtoBufSetLenDelim(int /*<<< orphan*/ *, size_t,
                                        int /*<<< orphan*/ const *, size_t,
                                        size_t *);
int /*<<< orphan*/ _ProtoBufSetVarInt(int /*<<< orphan*/ *, size_t, int,
                                      size_t *);
void _ProtoBufSetBytes(uint8_t *buf, size_t bufLen, const uint8_t *bytes,
                       size_t bytesLen, uint64_t key, size_t *off) {
  _ProtoBufSetVarInt(buf, bufLen, (key << 3) | 2, off);
  _ProtoBufSetLenDelim(buf, bufLen, bytes, bytesLen, off);
}


x86 assembly (clang, -O0):
<_ProtoBufSetBytes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x24(%rbp),%edx
shl    $0x3,%edx
or     $0x2,%edx
mov    -0x30(%rbp),%rcx
call   1030 <_ProtoBufSetVarInt@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x30(%rbp),%r8
call   1040 <_ProtoBufSetLenDelim@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ProtoBufSetBytes>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r9,%r12
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r13
mov    %rdi,%rbx
lea    0x2(,%r8,8),%edx
mov    %r9,%rcx
call   1030 <_ProtoBufSetVarInt@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
mov    %r12,%r8
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <_ProtoBufSetLenDelim@plt>

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

LLVM IR (-O2):
define void @_ProtoBufSetBytes(i32* %0, i64 %1, i32* %2, i64 %3, i32 %4, i64* %5) {
%7 = shl i32 %4, 3
%8 = or i32 %7, 2
%9 = tail call i32 @_ProtoBufSetVarInt(i32* %0, i64 %1, i32 %8, i64* %5)
%10 = tail call i32 @_ProtoBufSetLenDelim(i32* %0, i64 %1, i32* %2, i64 %3, i64* %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0x20() {
  Assert_real((ispunct(32) == 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_ispunct.c",
              165, ("ispunct should be 0 for  "));
}


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

x86 assembly (clang, -O2):
<t_ispunct_0x20>:
push   %rax
mov    $0x20,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0xa5,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 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_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for \00"
define void @t_ispunct_0x20() {
%1 = call i64 @ispunct(i32 32)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 165, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 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_ispunct.c\00"
@.str.1 = [26 x i8] c"ispunct should be 0 for \00"
define void @t_ispunct_0x20() {
%1 = tail call i64 @ispunct(i32 32)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 165, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}