xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ brightness_7219(int);
int /*<<< orphan*/ decode_7219(int /*<<< orphan*/);
int /*<<< orphan*/ scanLimit_7219(int);
int /*<<< orphan*/ shutdown_7219(int);
void init_7219() {
  shutdown_7219(1);
  decode_7219(0);
  scanLimit_7219(7);
  brightness_7219(15);
}


x86 assembly (clang, -O0):
<init_7219>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1050 <shutdown_7219@plt>
xor    %edi,%edi
call   1030 <decode_7219@plt>
mov    $0x7,%edi
call   1040 <scanLimit_7219@plt>
mov    $0xf,%edi
call   1060 <brightness_7219@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_7219>:
push   %rax
mov    $0x1,%edi
call   1050 <shutdown_7219@plt>
xor    %edi,%edi
call   1030 <decode_7219@plt>
mov    $0x7,%edi
call   1040 <scanLimit_7219@plt>
mov    $0xf,%edi
pop    %rax
jmp    1060 <brightness_7219@plt>

LLVM IR (-O0):
define void @init_7219() {
%1 = call i32 @shutdown_7219(i32 1)
%2 = call i32 @decode_7219(i32 0)
%3 = call i32 @scanLimit_7219(i32 7)
%4 = call i32 @brightness_7219(i32 15)
ret void
}

LLVM IR (-O2):
define void @init_7219() {
%1 = tail call i32 @shutdown_7219(i32 1)
%2 = tail call i32 @decode_7219(i32 0)
%3 = tail call i32 @scanLimit_7219(i32 7)
%4 = tail call i32 @brightness_7219(i32 15)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i0;
  i0 = 0;
  int i1;
  for (i1 = 1; i1 - 10 <= 0; i1 = i1 + 1) {
    i0 = i0 + 10;
  }
  printf("%d\n", i0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sub    $0xa,%eax
cmp    $0x0,%eax
jg     1153 <main+0x43>
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112d <main+0x1d>
mov    -0x8(%rbp),%esi
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 100)
ret i32 0
}
int HelpItem70(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @HelpItem70() {
ret i32 0
}
double sum_omp(double *v, int low, int high) { return 0; }


x86 assembly (clang, -O0):
<sum_omp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
xorps  %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<sum_omp>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @sum_omp(double* %0, i32 %1, i32 %2) {
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
store double* %0, double** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
ret double 0.000000e+00
}

LLVM IR (-O2):
define double @sum_omp(double* nocapture readnone %0, i32 %1, i32 %2) {
ret double 0.000000e+00
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr, "Usage: pa-timeout TIMEOUT COMMAND [ARG...]\n");
  exit(125);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x7d,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x7d,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [44 x i8] c"Usage: pa-timeout TIMEOUT COMMAND [ARG...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 125)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [44 x i8] c"Usage: pa-timeout TIMEOUT COMMAND [ARG...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 125)
unreachable
}
void XtConvertCase() {}


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

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

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

LLVM IR (-O2):
define void @XtConvertCase() {
ret void
}
void flp(long *l) {}


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

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

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

LLVM IR (-O2):
define void @flp(i64* nocapture %0) {
ret void
}
int g(_Complex float a) { return cabsf(a) < 0.0; }


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movlpd %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
movss  %xmm1,-0x10(%rbp)
movss  %xmm0,-0xc(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <cabsf@plt>
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g>:
push   %rax
call   1030 <cabsf@plt>
xorps  %xmm1,%xmm1
xor    %eax,%eax
ucomiss %xmm0,%xmm1
seta   %al
pop    %rcx
ret

LLVM IR (-O0):
define i32 @g(<2 x float> %0) {
%2 = alloca { float, float }
%3 = alloca { float, float }
%4 = bitcast { float, float }* %2 to <2 x float>*
store <2 x float> %0, <2 x float>* %4
%5 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 0
%6 = load float, float* %5
%7 = getelementptr inbounds { float, float }, { float, float }* %2, i32 0, i32 1
%8 = load float, float* %7
%9 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 0
%10 = getelementptr inbounds { float, float }, { float, float }* %3, i32 0, i32 1
store float %6, float* %9
store float %8, float* %10
%11 = bitcast { float, float }* %3 to <2 x float>*
%12 = load <2 x float>, <2 x float>* %11
%13 = call float @cabsf(<2 x float> %12)
%14 = fpext float %13 to double
%15 = fcmp olt double %14, 0.000000e+00
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @g(<2 x float> %0) {
%2 = tail call float @cabsf(<2 x float> %0)
%3 = fcmp olt float %2, 0.000000e+00
%4 = zext i1 %3 to i32
ret i32 %4
}
void rop3_186_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = ~S;
  stk2 = T & stk3;
  stk1 = *D | stk2;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_186_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0x9(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xd(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xd(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xc(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_186_0_0>:
not    %sil
and    %dl,%sil
or     %sil,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_186_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = xor i8 %1, -1
%5 = and i8 %4, %2
%6 = load i8, i8* %0
%7 = or i8 %6, %5
store i8 %7, i8* %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
uint32_t BOOT_GetStartPowerMode(void) {
  uint32_t (*p_BOOT_GetStartPowerMode)(void);
  p_BOOT_GetStartPowerMode = (uint32_t(*)(void))0x03000e9dU;
  return p_BOOT_GetStartPowerMode();
}


x86 assembly (clang, -O0):
<BOOT_GetStartPowerMode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x3000e9d,%eax
mov    %rax,-0x8(%rbp)
call   *-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BOOT_GetStartPowerMode>:
mov    $0x3000e9d,%eax
jmp    *%rax

LLVM IR (-O0):
define i32 @BOOT_GetStartPowerMode() {
%1 = alloca i32 ()*
store i32 ()* inttoptr (i64 50335389 to i32 ()*), i32 ()** %1
%2 = load i32 ()*, i32 ()** %1
%3 = call i32 %2()
ret i32 %3
}

LLVM IR (-O2):
define i32 @BOOT_GetStartPowerMode() {
%1 = tail call i32 inttoptr (i64 50335389 to i32 ()*)()
ret i32 %1
}
unsigned char Draco9210ReadDataIn() {}


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

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

LLVM IR (-O0):
define zeroext i8 @Draco9210ReadDataIn() {
%1 = alloca i8
%2 = load i8, i8* %1
ret i8 %2
}

LLVM IR (-O2):
define zeroext i8 @Draco9210ReadDataIn() {
ret i8 undef
}
void option2optionStart_option_set_optionEnd() {}


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

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

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

LLVM IR (-O2):
define void @option2optionStart_option_set_optionEnd() {
ret void
}
pl(str) char *str;
{
  int k;
  k = 0;
  putchar(10);
  while (str[k])
    putchar(str[k++]);
}


x86 assembly (clang, -O0):
<pl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0xa,%edi
mov    $0x0,%al
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmpb   $0x0,(%rax,%rcx,1)
je     1163 <pl+0x53>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
mov    $0x0,%al
call   1030 <putchar@plt>
jmp    112f <pl+0x1f>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pl>:
push   %rbx
mov    %rdi,%rbx
mov    $0xa,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
mov    (%rbx),%al
test   %al,%al
je     1145 <pl+0x35>
add    $0x1,%rbx
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
xor    %eax,%eax
call   1030 <putchar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <pl+0x20>
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @pl(i8* nocapture %0) {
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 10)
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %1, %5
%6 = phi i64 [ %8, %5 ], [ 0, %1 ]
%7 = phi i8 [ %12, %5 ], [ %3, %1 ]
%8 = add nuw i64 %6, 1
%9 = sext i8 %7 to i32
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @putchar to i32 (i32, ...)*)(i32 %9)
%11 = getelementptr inbounds i8, i8* %0, i64 %8
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5
14: ; preds = %5, %1
ret i32 undef
}
float xs(void) { return 3.14159265; }


x86 assembly (clang, -O0):
<xs>:
push   %rbp
mov    %rsp,%rbp
movss  0xef4(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<xs>:
movss  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @xs() {
ret float 0x400921FB60000000
}

LLVM IR (-O2):
define float @xs() {
ret float 0x400921FB60000000
}
/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void min_caml_prerr_byte(void *fv, char ch) { fputc(ch, stderr); }


x86 assembly (clang, -O0):
<min_caml_prerr_byte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
mov    0x2eb4(%rip),%rcx
mov    (%rcx),%esi
movsbl %al,%edi
call   1030 <fputc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<min_caml_prerr_byte>:
mov    %esi,%edi
mov    0x2ec7(%rip),%rax
mov    (%rax),%esi
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@stderr = global i32 0
define void @min_caml_prerr_byte(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8
store i8* %0, i8** %3
store i8 %1, i8* %4
%5 = load i8, i8* %4
%6 = load i32, i32* @stderr
%7 = call i32 @fputc(i8 signext %5, i32 %6)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
define void @min_caml_prerr_byte(i8* nocapture readnone %0, i8 signext %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputc(i8 signext %1, i32 %3)
ret void
}
int is_mincore_page_resident(char p) { return p & 0x1; }


x86 assembly (clang, -O0):
<is_mincore_page_resident>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
and    $0x1,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @is_mincore_page_resident(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = and i32 %4, 1
ret i32 %5
}

LLVM IR (-O2):
define i32 @is_mincore_page_resident(i8 signext %0) {
%2 = and i8 %0, 1
%3 = zext i8 %2 to i32
ret i32 %3
}
void main() {
  unsigned int gpio;
  gpio = (*(volatile unsigned int *)((
      __typeof__(0x18000000 + 0x00040000 +
                 0x8))(((unsigned long)(0x18000000 + 0x00040000 + 0x8) &
                        0x1fffffff) |
                       0xa0000000)));
  gpio &= ~(1 << 26);
  gpio &= ~(1 << 0);
  gpio &= ~(1 << 17);
  gpio &= ~(1 << 27);
  do {
    ((*(volatile unsigned int *)((
         __typeof__(0x18000000 + 0x00040000 +
                    0x8))(((unsigned long)(0x18000000 + 0x00040000 + 0x8) &
                           0x1fffffff) |
                          0xa0000000))) = (gpio));
    (*(volatile unsigned int *)((
        __typeof__(0x18000000 + 0x00040000 +
                   0x8))(((unsigned long)(0x18000000 + 0x00040000 + 0x8) &
                          0x1fffffff) |
                         0xa0000000)));
  } while (0);
  ;
  for (;;) {
    togle_led();
    wait(2);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xffffffffb8040008,%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xfbffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xfffffffe,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xfffdffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xf7ffffff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0xffffffffb8040008,%rax
mov    %ecx,(%rax)
mov    $0xffffffffb8040008,%rax
mov    (%rax),%eax
jmp    1178 <main+0x58>
mov    $0x0,%al
call   1030 <togle_led@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1040 <wait@plt>
jmp    1178 <main+0x58>

x86 assembly (clang, -O2):
<main>:
push   %rax
andl   $0xf3fdfffe,0xffffffffb8040008
fe ff fd f3
mov    0xffffffffb8040008,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1030 <togle_led@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1040 <wait@plt>
jmp    1140 <main+0x20>

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = load volatile i32, i32* inttoptr (i64 -1207697400 to i32*)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = and i32 %3, -67108865
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = and i32 %5, -2
store i32 %6, i32* %1
%7 = load i32, i32* %1
%8 = and i32 %7, -131073
store i32 %8, i32* %1
%9 = load i32, i32* %1
%10 = and i32 %9, -134217729
store i32 %10, i32* %1
br label %11
11: ; preds = %0
%12 = load i32, i32* %1
store volatile i32 %12, i32* inttoptr (i64 -1207697400 to i32*)
%13 = load volatile i32, i32* inttoptr (i64 -1207697400 to i32*)
br label %14
14: ; preds = %11
br label %15
15: ; preds = %15, %14
%16 = call i32 (...) @togle_led()
%17 = call i32 (i32, ...) bitcast (i32 (...)* @wait to i32 (i32, ...)*)(i32 2)
br label %15
}

LLVM IR (-O2):
define void @main() {
%1 = load volatile i32, i32* inttoptr (i64 -1207697400 to i32*)
%2 = and i32 %1, -201457666
store volatile i32 %2, i32* inttoptr (i64 -1207697400 to i32*)
%3 = load volatile i32, i32* inttoptr (i64 -1207697400 to i32*)
br label %4
4: ; preds = %4, %0
%5 = tail call i32 (...) @togle_led()
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @wait to i32 (i32, ...)*)(i32 2)
br label %4
}
/* Variables and functions */
int /*<<< orphan*/ bar(void *, short);
void foo(void *x, short y) { bar(x, y + 1); }


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %rdi,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
mov    -0x8(%rbp),%rdi
movswl -0xa(%rbp),%eax
add    $0x1,%eax
movswl %ax,%esi
call   1030 <bar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
add    $0x1,%esi
movswl %si,%esi
jmp    1030 <bar@plt>

LLVM IR (-O0):
define void @foo(i8* %0, i16 signext %1) {
%3 = alloca i8*
%4 = alloca i16
store i8* %0, i8** %3
store i16 %1, i16* %4
%5 = load i8*, i8** %3
%6 = load i16, i16* %4
%7 = sext i16 %6 to i32
%8 = add nsw i32 %7, 1
%9 = trunc i32 %8 to i16
%10 = call i32 @bar(i8* %5, i16 signext %9)
ret void
}

LLVM IR (-O2):
define void @foo(i8* %0, i16 signext %1) {
%3 = add i16 %1, 1
%4 = tail call i32 @bar(i8* %0, i16 signext %3)
ret void
}
__attribute__((format(printf, (1), (1 + 1)))) void d_print(const char *fmt,
                                                           ...) {}


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

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

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

LLVM IR (-O2):
define void @d_print(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CommandLoopBatchDriver(void *);
int /*<<< orphan*/ ExecuteIfCommandComplete(void *);
void CommandLoopOnceThenBatch(void *theEnv) {
  if (!ExecuteIfCommandComplete(theEnv))
    return;
  CommandLoopBatchDriver(theEnv);
}


x86 assembly (clang, -O0):
<CommandLoopOnceThenBatch>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <ExecuteIfCommandComplete@plt>
cmp    $0x0,%eax
jne    1143 <CommandLoopOnceThenBatch+0x23>
jmp    114c <CommandLoopOnceThenBatch+0x2c>
mov    -0x8(%rbp),%rdi
call   1030 <CommandLoopBatchDriver@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CommandLoopOnceThenBatch>:
push   %rbx
mov    %rdi,%rbx
call   1040 <ExecuteIfCommandComplete@plt>
test   %eax,%eax
je     1136 <CommandLoopOnceThenBatch+0x16>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <CommandLoopBatchDriver@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @CommandLoopOnceThenBatch(i8* %0) {
%2 = tail call i32 @ExecuteIfCommandComplete(i8* %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @CommandLoopBatchDriver(i8* %0)
br label %6
6: ; preds = %1, %4
ret void
}
/* Type definitions */
struct perm_cmdline_parser_params {
  int dummy;
};
struct perm_args_info {
  int dummy;
};

/* Variables and functions */
int perm_cmdline_parser_internal(int, char **, struct perm_args_info *,
                                 struct perm_cmdline_parser_params *,
                                 int /*<<< orphan*/);
int perm_cmdline_parser_ext(int argc, char **argv,
                            struct perm_args_info *args_info,
                            struct perm_cmdline_parser_params *params) {
  int result;
  result = perm_cmdline_parser_internal(argc, argv, args_info, params, 0);
  return result;
}


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

x86 assembly (clang, -O2):
<perm_cmdline_parser_ext>:
xor    %r8d,%r8d
jmp    1030 <perm_cmdline_parser_internal@plt>

LLVM IR (-O0):
%struct.perm_args_info = type { i32 }
%struct.perm_cmdline_parser_params = type { i32 }
define i32 @perm_cmdline_parser_ext(i32 %0, i8** %1, %struct.perm_args_info* %2, %struct.perm_cmdline_parser_params* %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca %struct.perm_args_info*
%8 = alloca %struct.perm_cmdline_parser_params*
%9 = alloca i32
store i32 %0, i32* %5
store i8** %1, i8*** %6
store %struct.perm_args_info* %2, %struct.perm_args_info** %7
store %struct.perm_cmdline_parser_params* %3, %struct.perm_cmdline_parser_params** %8
%10 = load i32, i32* %5
%11 = load i8**, i8*** %6
%12 = load %struct.perm_args_info*, %struct.perm_args_info** %7
%13 = load %struct.perm_cmdline_parser_params*, %struct.perm_cmdline_parser_params** %8
%14 = call i32 @perm_cmdline_parser_internal(i32 %10, i8** %11, %struct.perm_args_info* %12, %struct.perm_cmdline_parser_params* %13, i32 0)
store i32 %14, i32* %9
%15 = load i32, i32* %9
ret i32 %15
}

LLVM IR (-O2):
%struct.perm_args_info = type { i32 }
%struct.perm_cmdline_parser_params = type { i32 }
define i32 @perm_cmdline_parser_ext(i32 %0, i8** %1, %struct.perm_args_info* %2, %struct.perm_cmdline_parser_params* %3) {
%5 = tail call i32 @perm_cmdline_parser_internal(i32 %0, i8** %1, %struct.perm_args_info* %2, %struct.perm_cmdline_parser_params* %3, i32 0)
ret i32 %5
}
void RTTcpServerCreate(void) {}


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

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

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

LLVM IR (-O2):
define void @RTTcpServerCreate() {
ret void
}
/* Variables and functions */
scalar_t__ sqrt(long);
char is_in_u(long x) {
  long y = (long)sqrt(x *= 2);
  return y * (y + 1) == x;
}


x86 assembly (clang, -O0):
<is_in_u>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
shl    $0x1,%rdi
mov    %rdi,-0x8(%rbp)
call   1030 <sqrt@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
add    $0x1,%rcx
imul   %rcx,%rax
cmp    -0x8(%rbp),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_in_u>:
push   %rbx
mov    %rdi,%rbx
add    %rdi,%rbx
mov    %rbx,%rdi
call   1030 <sqrt@plt>
lea    0x1(%rax),%rcx
imul   %rax,%rcx
cmp    %rbx,%rcx
sete   %al
pop    %rbx
ret

LLVM IR (-O0):
define signext i8 @is_in_u(i64 %0) {
%2 = alloca i64
%3 = alloca i64
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = mul nsw i64 %4, 2
store i64 %5, i64* %2
%6 = call i64 @sqrt(i64 %5)
store i64 %6, i64* %3
%7 = load i64, i64* %3
%8 = load i64, i64* %3
%9 = add nsw i64 %8, 1
%10 = mul nsw i64 %7, %9
%11 = load i64, i64* %2
%12 = icmp eq i64 %10, %11
%13 = zext i1 %12 to i32
%14 = trunc i32 %13 to i8
ret i8 %14
}

LLVM IR (-O2):
define signext i8 @is_in_u(i64 %0) {
%2 = shl nsw i64 %0, 1
%3 = tail call i64 @sqrt(i64 %2)
%4 = add nsw i64 %3, 1
%5 = mul nsw i64 %4, %3
%6 = icmp eq i64 %5, %2
%7 = zext i1 %6 to i8
ret i8 %7
}
char *skip(char *p, int n) {
  for (; n > 0; p++)
    if (*p == 0)
      n--;
  return p;
}


x86 assembly (clang, -O0):
<skip>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1144 <skip+0x44>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    112e <skip+0x2e>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1133 <skip+0x33>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110b <skip+0xb>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip>:
mov    %rdi,%rax
test   %esi,%esi
jle    1120 <skip+0x20>
nopw   0x0(%rax,%rax,1)
xor    %ecx,%ecx
cmpb   $0x0,(%rax)
sete   %cl
add    $0x1,%rax
sub    %ecx,%esi
jne    1110 <skip+0x10>
ret

LLVM IR (-O0):
define i8* @skip(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %17, %2
%6 = load i32, i32* %4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i8*, i8** %3
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = load i32, i32* %4
%15 = add nsw i32 %14, -1
store i32 %15, i32* %4
br label %16
16: ; preds = %13, %8
br label %17
17: ; preds = %16
%18 = load i8*, i8** %3
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %3
br label %5
20: ; preds = %5
%21 = load i8*, i8** %3
ret i8* %21
}

LLVM IR (-O2):
define i8* @skip(i8* %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2, %4
%5 = phi i32 [ %11, %4 ], [ %1, %2 ]
%6 = phi i8* [ %9, %4 ], [ %0, %2 ]
%7 = load i8, i8* %6
%8 = icmp eq i8 %7, 0
%9 = getelementptr inbounds i8, i8* %6, i64 1
%10 = sext i1 %8 to i32
%11 = add nsw i32 %5, %10
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %4
13: ; preds = %4, %2
%14 = phi i8* [ %0, %2 ], [ %9, %4 ]
ret i8* %14
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isupper(int);
void t_isupper_0x71() {
  Assert_real((isupper(113) == 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_isupper.c",
              570, ("isupper should be 0 for q"));
}


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

x86 assembly (clang, -O2):
<t_isupper_0x71>:
push   %rax
mov    $0x71,%edi
call   1030 <isupper@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x23a,%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_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 0 for q\00"
define void @t_isupper_0x71() {
%1 = call i64 @isupper(i32 113)
%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 570, 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_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 0 for q\00"
define void @t_isupper_0x71() {
%1 = tail call i64 @isupper(i32 113)
%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 570, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
void clearFreedStackFrames(char *targetPointer) {}


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

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

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

LLVM IR (-O2):
define void @clearFreedStackFrames(i8* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void griddoor_free(void *ptr) { free(ptr); }


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

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

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

LLVM IR (-O2):
define void @griddoor_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
unsigned char BCD(unsigned char b) {
  if (b == 0xff)
    return 0;
  return (b >> 4) * 10 + (b & 0xf);
}


x86 assembly (clang, -O0):
<BCD>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movzbl -0x2(%rbp),%eax
cmp    $0xff,%eax
jne    1122 <BCD+0x22>
movb   $0x0,-0x1(%rbp)
jmp    1138 <BCD+0x38>
movzbl -0x2(%rbp),%eax
sar    $0x4,%eax
imul   $0xa,%eax,%eax
movzbl -0x2(%rbp),%ecx
and    $0xf,%ecx
add    %ecx,%eax
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<BCD>:
mov    %edi,%eax
shr    $0x4,%al
movzbl %al,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
mov    %edi,%ecx
and    $0xf,%cl
add    %al,%cl
xor    %edx,%edx
cmp    $0xff,%dil
movzbl %cl,%eax
cmove  %edx,%eax
ret

LLVM IR (-O0):
define zeroext i8 @BCD(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = zext i8 %4 to i32
%6 = icmp eq i32 %5, 255
br i1 %6, label %7, label %8
7: ; preds = %1
store i8 0, i8* %2
br label %18
8: ; preds = %1
%9 = load i8, i8* %3
%10 = zext i8 %9 to i32
%11 = ashr i32 %10, 4
%12 = mul nsw i32 %11, 10
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = and i32 %14, 15
%16 = add nsw i32 %12, %15
%17 = trunc i32 %16 to i8
store i8 %17, i8* %2
br label %18
18: ; preds = %8, %7
%19 = load i8, i8* %2
ret i8 %19
}

LLVM IR (-O2):
define zeroext i8 @BCD(i8 zeroext %0) {
%2 = icmp eq i8 %0, -1
%3 = lshr i8 %0, 4
%4 = mul nuw i8 %3, 10
%5 = and i8 %0, 15
%6 = add nuw i8 %4, %5
%7 = select i1 %2, i8 0, i8 %6
ret i8 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print1() { printf("Hola mundo\n"); }


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

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

LLVM IR (-O0):
@.str = [12 x i8] c"Hola mundo\0A\00"
define void @print1() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [11 x i8] c"Hola mundo\00"
define void @print1() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
void PR16131(int x) {
  extern void v;
  int *ip = (int *)&v;
  char *cp = (char *)&v;
  clang_analyzer_eval(ip == cp);
  *ip = 42;
  clang_analyzer_eval(*ip == 42);
  clang_analyzer_eval(*(int *)&v == 42);
}


x86 assembly (clang, -O0):
<PR16131>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ebe(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2eb3(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    -0x10(%rbp),%rax
movl   $0x2a,(%rax)
mov    -0x10(%rbp),%rax
cmpl   $0x2a,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
mov    0x2e72(%rip),%rax
cmpl   $0x2a,(%rax)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <clang_analyzer_eval@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PR16131>:
push   %rbx
mov    $0x1,%edi
call   1030 <clang_analyzer_eval@plt>
mov    0x2ebe(%rip),%rbx
movl   $0x2a,(%rbx)
mov    $0x1,%edi
call   1030 <clang_analyzer_eval@plt>
xor    %edi,%edi
cmpl   $0x2a,(%rbx)
sete   %dil
pop    %rbx
jmp    1030 <clang_analyzer_eval@plt>

LLVM IR (-O0):
@v = external global i8
define void @PR16131(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i8*
store i32 %0, i32* %2
store i32* bitcast (i8* @v to i32*), i32** %3
store i8* @v, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = bitcast i8* %6 to i32*
%8 = icmp eq i32* %5, %7
%9 = zext i1 %8 to i32
%10 = call i32 @clang_analyzer_eval(i32 %9)
%11 = load i32*, i32** %3
store i32 42, i32* %11
%12 = load i32*, i32** %3
%13 = load i32, i32* %12
%14 = icmp eq i32 %13, 42
%15 = zext i1 %14 to i32
%16 = call i32 @clang_analyzer_eval(i32 %15)
%17 = load i32, i32* bitcast (i8* @v to i32*)
%18 = icmp eq i32 %17, 42
%19 = zext i1 %18 to i32
%20 = call i32 @clang_analyzer_eval(i32 %19)
ret void
}

LLVM IR (-O2):
@v = external global i8
define void @PR16131(i32 %0) {
%2 = tail call i32 @clang_analyzer_eval(i32 1)
store i32 42, i32* bitcast (i8* @v to i32*)
%3 = tail call i32 @clang_analyzer_eval(i32 1)
%4 = load i32, i32* bitcast (i8* @v to i32*)
%5 = icmp eq i32 %4, 42
%6 = zext i1 %5 to i32
%7 = tail call i32 @clang_analyzer_eval(i32 %6)
ret void
}
/* Type definitions */
struct sockaddr_un {
  int dummy;
};
struct sockaddr {
  int dummy;
};

/* Variables and functions */
int SUN_LEN(struct sockaddr_un const *);
int un_sock_socklen(const struct sockaddr *sockaddr) {
  return SUN_LEN(((const struct sockaddr_un *)sockaddr));
}


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

x86 assembly (clang, -O2):
<un_sock_socklen>:
jmp    1030 <SUN_LEN@plt>

LLVM IR (-O0):
%struct.sockaddr = type { i32 }
%struct.sockaddr_un = type { i32 }
define i32 @un_sock_socklen(%struct.sockaddr* %0) {
%2 = alloca %struct.sockaddr*
store %struct.sockaddr* %0, %struct.sockaddr** %2
%3 = load %struct.sockaddr*, %struct.sockaddr** %2
%4 = bitcast %struct.sockaddr* %3 to %struct.sockaddr_un*
%5 = call i32 @SUN_LEN(%struct.sockaddr_un* %4)
ret i32 %5
}

LLVM IR (-O2):
%struct.sockaddr = type { i32 }
%struct.sockaddr_un = type { i32 }
define i32 @un_sock_socklen(%struct.sockaddr* %0) {
%2 = bitcast %struct.sockaddr* %0 to %struct.sockaddr_un*
%3 = tail call i32 @SUN_LEN(%struct.sockaddr_un* %2)
ret i32 %3
}
/* Variables and functions */
double Slater_1S_2S(double, double, double);
double Slater_2S_1S(double rij, double xii, double xij) {
  return Slater_1S_2S(rij, xij, xii);
}


x86 assembly (clang, -O0):
<Slater_2S_1S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
call   1030 <Slater_1S_2S@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Slater_2S_1S>:
movaps %xmm1,%xmm3
movaps %xmm2,%xmm1
movaps %xmm3,%xmm2
jmp    1030 <Slater_1S_2S@plt>

LLVM IR (-O0):
define double @Slater_2S_1S(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %4
%8 = load double, double* %6
%9 = load double, double* %5
%10 = call double @Slater_1S_2S(double %7, double %8, double %9)
ret double %10
}

LLVM IR (-O2):
define double @Slater_2S_1S(double %0, double %1, double %2) {
%4 = tail call double @Slater_1S_2S(double %0, double %2, double %1)
ret double %4
}
long initmultiplayerscycle(void) { return 0; }


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

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

LLVM IR (-O0):
define i64 @initmultiplayerscycle() {
ret i64 0
}

LLVM IR (-O2):
define i64 @initmultiplayerscycle() {
ret i64 0
}
/* Variables and functions */
int strlen(char s[]) {
  int i = 0;
  while (s[i] != '\0') {
    i++;
  }
  return i;
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1132 <strlen+0x32>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <strlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpb   $0x0,(%rdi)
lea    0x1(%rdi),%rdi
jne    1110 <strlen+0x10>
ret

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

LLVM IR (-O2):
define i32 @strlen(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ log_f(char *);
unsigned mouseb_none_count_get(void) {
  log_f("mouseb:none: mouseb_none_count_get()\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [38 x i8] c"mouseb:none: mouseb_none_count_get()\0A\00"
define i32 @mouseb_none_count_get() {
%1 = call i32 @log_f(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"mouseb:none: mouseb_none_count_get()\0A\00"
define i32 @mouseb_none_count_get() {
%1 = tail call i32 @log_f(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int snprintf(char *, int, char *, unsigned char);
int STR_POL(char *p, int n, unsigned char pol) {
  if (pol == 0)
    return 0;
  return snprintf(p, n, "pol:%d ", pol);
}


x86 assembly (clang, -O0):
<STR_POL>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dl,%al
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %al,-0x15(%rbp)
movzbl -0x15(%rbp),%eax
cmp    $0x0,%eax
jne    113d <STR_POL+0x2d>
movl   $0x0,-0x4(%rbp)
jmp    1157 <STR_POL+0x47>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    0xeb5(%rip),%rdx
movzbl -0x15(%rbp),%ecx
call   1030 <snprintf@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<STR_POL>:
test   %edx,%edx
je     1123 <STR_POL+0x13>
movzbl %dl,%ecx
lea    0xee2(%rip),%rdx
jmp    1030 <snprintf@plt>
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"pol:%d \00"
define i32 @STR_POL(i8* %0, i32 %1, i8 zeroext %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8 %2, i8* %7
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %3
store i32 0, i32* %4
br label %17
12: ; preds = %3
%13 = load i8*, i8** %5
%14 = load i32, i32* %6
%15 = load i8, i8* %7
%16 = call i32 @snprintf(i8* %13, i32 %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8 zeroext %15)
store i32 %16, i32* %4
br label %17
17: ; preds = %12, %11
%18 = load i32, i32* %4
ret i32 %18
}

LLVM IR (-O2):
@.str = [8 x i8] c"pol:%d \00"
define i32 @STR_POL(i8* %0, i32 %1, i8 zeroext %2) {
%4 = icmp eq i8 %2, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i32 @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8 zeroext %2)
br label %7
7: ; preds = %3, %5
%8 = phi i32 [ %6, %5 ], [ 0, %3 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ nullf(char *);
int /*<<< orphan*/ output_byte(int);
int /*<<< orphan*/ output_modrm(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ output_sib(int /*<<< orphan*/, int, int);
void emit_fldcw_stack() {
  nullf("fldcw (%%esp)\n");
  output_byte(0xd9);
  output_modrm(0, 4, 5);
  output_sib(0, 4, 4);
}


x86 assembly (clang, -O0):
<emit_fldcw_stack>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1030 <nullf@plt>
mov    $0xd9,%edi
call   1040 <output_byte@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x5,%edx
call   1050 <output_modrm@plt>
xor    %edi,%edi
mov    $0x4,%edx
mov    %edx,%esi
call   1060 <output_sib@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<emit_fldcw_stack>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <nullf@plt>
mov    $0xd9,%edi
call   1040 <output_byte@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x5,%edx
call   1050 <output_modrm@plt>
xor    %edi,%edi
mov    $0x4,%esi
mov    $0x4,%edx
pop    %rax
jmp    1060 <output_sib@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"fldcw (%%esp)\0A\00"
define void @emit_fldcw_stack() {
%1 = call i32 @nullf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @output_byte(i32 217)
%3 = call i32 @output_modrm(i32 0, i32 4, i32 5)
%4 = call i32 @output_sib(i32 0, i32 4, i32 4)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"fldcw (%%esp)\0A\00"
define void @emit_fldcw_stack() {
%1 = tail call i32 @nullf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @output_byte(i32 217)
%3 = tail call i32 @output_modrm(i32 0, i32 4, i32 5)
%4 = tail call i32 @output_sib(i32 0, i32 4, i32 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_header();
void print_footer(void) { print_header(); }


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

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

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

LLVM IR (-O2):
define void @print_footer() {
%1 = tail call i32 (...) @print_header()
ret void
}
/* Variables and functions */
scalar_t__ chdir(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int isfcpdev(char *devno) {
  char path[4096];
  sprintf(path, "/sys/bus/ccw/drivers/zfcp/%s", devno);
  if (chdir(path) != 0)
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<isfcpdev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1010,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x1010(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xebf(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x1010(%rbp),%rdi
call   1030 <chdir@plt>
cmp    $0x0,%rax
je     1168 <isfcpdev+0x48>
movl   $0xffffffff,-0x4(%rbp)
jmp    116f <isfcpdev+0x4f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x1010,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isfcpdev>:
push   %rbx
sub    $0x1000,%rsp
mov    %rdi,%rdx
lea    0xece(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <sprintf@plt>
mov    %rbx,%rdi
call   1030 <chdir@plt>
neg    %rax
sbb    %eax,%eax
add    $0x1000,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"/sys/bus/ccw/drivers/zfcp/%s\00"
define i32 @isfcpdev(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [4096 x i8]
store i8* %0, i8** %3
%5 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%6 = load i8*, i8** %3
%7 = call i32 @sprintf(i8* %5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%9 = call i64 @chdir(i8* %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %1
store i32 -1, i32* %2
br label %13
12: ; preds = %1
store i32 0, i32* %2
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
@.str = [29 x i8] c"/sys/bus/ccw/drivers/zfcp/%s\00"
define i32 @isfcpdev(i8* %0) {
%2 = alloca [4096 x i8]
%3 = getelementptr inbounds [4096 x i8], [4096 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i64 @chdir(i8* %3)
%6 = icmp ne i64 %5, 0
%7 = sext i1 %6 to i32
ret i32 %7
}