xunge/DecIR huggingface dataset:
long double _Complex add_long_double_cc(long double _Complex a,
                                        long double _Complex b) {
  return a + b;
}


x86 assembly (clang, -O0):
<add_long_double_cc>:
push   %rbp
mov    %rsp,%rbp
lea    0x30(%rbp),%rax
lea    0x10(%rbp),%rcx
fldt   (%rcx)
fldt   0x10(%rcx)
fldt   (%rax)
fldt   0x10(%rax)
fxch   %st(3)
faddp  %st,%st(1)
fxch   %st(1)
faddp  %st,%st(2)
fstpt  -0x20(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_long_double_cc>:
fldt   0x8(%rsp)
fldt   0x18(%rsp)
fldt   0x28(%rsp)
faddp  %st,%st(2)
fldt   0x38(%rsp)
faddp  %st,%st(1)
fxch   %st(1)
ret

LLVM IR (-O0):
define { x86_fp80, x86_fp80 } @add_long_double_cc({ x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 16 %0, { x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 16 %1) {
%3 = alloca { x86_fp80, x86_fp80 }
%4 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i32 0, i32 0
%5 = load x86_fp80, x86_fp80* %4
%6 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i32 0, i32 1
%7 = load x86_fp80, x86_fp80* %6
%8 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i32 0, i32 0
%9 = load x86_fp80, x86_fp80* %8
%10 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i32 0, i32 1
%11 = load x86_fp80, x86_fp80* %10
%12 = fadd x86_fp80 %5, %9
%13 = fadd x86_fp80 %7, %11
%14 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 0
%15 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3, i32 0, i32 1
store x86_fp80 %12, x86_fp80* %14
store x86_fp80 %13, x86_fp80* %15
%16 = load { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %3
ret { x86_fp80, x86_fp80 } %16
}

LLVM IR (-O2):
define { x86_fp80, x86_fp80 } @add_long_double_cc({ x86_fp80, x86_fp80 }* nocapture byval({ x86_fp80, x86_fp80 }) align 16 %0, { x86_fp80, x86_fp80 }* nocapture byval({ x86_fp80, x86_fp80 }) align 16 %1) {
%3 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i64 0, i32 0
%4 = load x86_fp80, x86_fp80* %3
%5 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i64 0, i32 1
%6 = load x86_fp80, x86_fp80* %5
%7 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i64 0, i32 0
%8 = load x86_fp80, x86_fp80* %7
%9 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i64 0, i32 1
%10 = load x86_fp80, x86_fp80* %9
%11 = fadd x86_fp80 %4, %8
%12 = fadd x86_fp80 %6, %10
%13 = insertvalue { x86_fp80, x86_fp80 } poison, x86_fp80 %11, 0
%14 = insertvalue { x86_fp80, x86_fp80 } %13, x86_fp80 %12, 1
ret { x86_fp80, x86_fp80 } %14
}
/* Variables and functions */
int /*<<< orphan*/ Hardware_Init();
int main(void) {
  Hardware_Init();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @Hardware_Init()
ret i32 0
}
/* Variables and functions */
scalar_t__ malloc(int);
int /*<<< orphan*/ potrf_tile(int, double *);
int main(int argc, char *argv[]) {
  int ts = 2;
  int nt = 8;
  double **Ah;
  Ah = (double **)malloc(nt * nt * sizeof(float *));
  potrf_tile(ts, Ah[4]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x2,-0x14(%rbp)
movl   $0x8,-0x18(%rbp)
mov    -0x18(%rbp),%eax
imul   -0x18(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%rax
mov    0x20(%rax),%rsi
call   1040 <potrf_tile@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x200,%edi
call   1030 <malloc@plt>
mov    0x20(%rax),%rsi
mov    $0x2,%edi
call   1040 <potrf_tile@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca double**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 2, i32* %6
store i32 8, i32* %7
%9 = load i32, i32* %7
%10 = load i32, i32* %7
%11 = mul nsw i32 %9, %10
%12 = sext i32 %11 to i64
%13 = mul i64 %12, 8
%14 = trunc i64 %13 to i32
%15 = call i64 @malloc(i32 %14)
%16 = inttoptr i64 %15 to double**
store double** %16, double*** %8
%17 = load i32, i32* %6
%18 = load double**, double*** %8
%19 = getelementptr inbounds double*, double** %18, i64 4
%20 = load double*, double** %19
%21 = call i32 @potrf_tile(i32 %17, double* %20)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @malloc(i32 512)
%4 = inttoptr i64 %3 to double**
%5 = getelementptr inbounds double*, double** %4, i64 4
%6 = load double*, double** %5
%7 = tail call i32 @potrf_tile(i32 2, double* %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
int main() {
  sleep(60);
  printf("OK\n");
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3c,%edi
call   1040 <sleep@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [3 x i8] c"OK\00"
define i32 @main() {
%1 = tail call i32 @sleep(i32 60)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
float acosf(float);
float nvg__acosf(float a) { return acosf(a); }


x86 assembly (clang, -O0):
<nvg__acosf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <acosf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nvg__acosf>:
jmp    1030 <acosf@plt>

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

LLVM IR (-O2):
define float @nvg__acosf(float %0) {
%2 = tail call float @acosf(float %0)
ret float %2
}
void copy(const char src[], char dest[]) {
  unsigned int i;
  i = 0;
  while ((dest[i] = src[i]) != '\0')
    ++i;
  dest[i] = '\0';
}


x86 assembly (clang, -O0):
<copy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    (%rax,%rcx,1),%al
mov    -0x10(%rbp),%rcx
mov    -0x14(%rbp),%edx
mov    %al,(%rcx,%rdx,1)
movsbl %al,%eax
cmp    $0x0,%eax
je     1141 <copy+0x41>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1113 <copy+0x13>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
movzbl (%rdi,%rax,1),%ecx
mov    %cl,(%rsi,%rax,1)
test   %cl,%cl
jne    1110 <copy+0x10>
mov    %eax,%eax
movb   $0x0,(%rsi,%rax,1)
ret

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

LLVM IR (-O2):
define void @copy(i8* nocapture %0, i8* nocapture writeonly %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i32 [ 0, %2 ], [ %10, %3 ]
%5 = zext i32 %4 to i64
%6 = getelementptr inbounds i8, i8* %0, i64 %5
%7 = load i8, i8* %6
%8 = getelementptr inbounds i8, i8* %1, i64 %5
store i8 %7, i8* %8
%9 = icmp eq i8 %7, 0
%10 = add i32 %4, 1
br i1 %9, label %11, label %3
11: ; preds = %3
%12 = zext i32 %4 to i64
%13 = getelementptr inbounds i8, i8* %1, i64 %12
store i8 0, i8* %13
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int main(int argc, char *argv[]) {
  int i = 3;
#pragma omp atomic
  i += 2;
#pragma omp atomic
  i++;
  if (i != 6)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x6,-0x14(%rbp)
je     1150 <main+0x40>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
void free_c_dvector(v, nl, nh) double *v;
long nh, nl;
{ free((char *)(v + nl - 1)); }


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

x86 assembly (clang, -O2):
<free_c_dvector>:
lea    (%rdi,%rsi,8),%rdi
add    $0xfffffffffffffff8,%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_c_dvector(double* %0, i64 %1, i64 %2) {
%4 = alloca double*
%5 = alloca i64
%6 = alloca i64
store double* %0, double** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load double*, double** %4
%8 = load i64, i64* %5
%9 = getelementptr inbounds double, double* %7, i64 %8
%10 = getelementptr inbounds double, double* %9, i64 -1
%11 = bitcast double* %10 to i8*
ret void
}

LLVM IR (-O2):
define void @free_c_dvector(double* nocapture %0, i64 %1, i64 %2) {
%4 = getelementptr inbounds double, double* %0, i64 %1
%5 = getelementptr inbounds double, double* %4, i64 -1
%6 = bitcast double* %5 to i8*
tail call void @free(i8* %6)
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ invertStr(char *, char *);
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ scanf(char *, char *);
int main(void) {
  char str[30];
  char str2[30];
  scanf("%29s", str);
  invertStr(str, str2);
  printf("%s | %s\n", str, str2);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1050 <scanf@plt>
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1030 <invertStr@plt>
lea    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    0xe9a(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e69(%rip),%rax
mov    (%rax),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
lea    0xec2(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
call   1050 <scanf@plt>
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <invertStr@plt>
lea    0xea5(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1040 <printf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%29s\00"
@.str.1 = [9 x i8] c"%s | %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [30 x i8]
%2 = alloca [30 x i8]
%3 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %3)
%6 = call i32 @invertStr(i8* %3, i8* %4)
%7 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %3, i8* %4)
%8 = load i32, i32* @EXIT_SUCCESS
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ gnuplot(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
void plot_data(char *filename) {
  char gnuplot_command[250];
  sprintf(gnuplot_command, "plot \'%s\'\n", filename);
  gnuplot(gnuplot_command);
}


x86 assembly (clang, -O0):
<plot_data>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x110(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xebf(%rip),%rsi
call   1030 <sprintf@plt>
lea    -0x110(%rbp),%rdi
call   1040 <gnuplot@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plot_data>:
push   %rbx
sub    $0x100,%rsp
mov    %rdi,%rdx
lea    0xece(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <gnuplot@plt>
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"plot '%s'\0A\00"
define void @plot_data(i8* %0) {
%2 = alloca i8*
%3 = alloca [250 x i8]
store i8* %0, i8** %2
%4 = getelementptr inbounds [250 x i8], [250 x i8]* %3, i64 0, i64 0
%5 = load i8*, i8** %2
%6 = call i32 @sprintf(i8* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [250 x i8], [250 x i8]* %3, i64 0, i64 0
%8 = call i32 @gnuplot(i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"plot '%s'\0A\00"
define void @plot_data(i8* %0) {
%2 = alloca [250 x i8]
%3 = getelementptr inbounds [250 x i8], [250 x i8]* %2, i64 0, i64 0
%4 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i32 @gnuplot(i8* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ flushline(int /*<<< orphan*/);
void drop(void) { flushline(0); }


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

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

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

LLVM IR (-O2):
define void @drop() {
%1 = tail call i32 @flushline(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SendInterrupt(int, int, int, int);
void ScuSendExternalInterrupt06(void) {
  SendInterrupt(0x56, 0x4, 0x8000, 0x00400000);
}


x86 assembly (clang, -O0):
<ScuSendExternalInterrupt06>:
push   %rbp
mov    %rsp,%rbp
mov    $0x56,%edi
mov    $0x4,%esi
mov    $0x8000,%edx
mov    $0x400000,%ecx
call   1030 <SendInterrupt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ScuSendExternalInterrupt06>:
mov    $0x56,%edi
mov    $0x4,%esi
mov    $0x8000,%edx
mov    $0x400000,%ecx
jmp    1030 <SendInterrupt@plt>

LLVM IR (-O0):
define void @ScuSendExternalInterrupt06() {
%1 = call i32 @SendInterrupt(i32 86, i32 4, i32 32768, i32 4194304)
ret void
}

LLVM IR (-O2):
define void @ScuSendExternalInterrupt06() {
%1 = tail call i32 @SendInterrupt(i32 86, i32 4, i32 32768, i32 4194304)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ setgid(int /*<<< orphan*/);
int /*<<< orphan*/ setuid(int /*<<< orphan*/);
int /*<<< orphan*/ system(char *);
void main() {
  setuid(0);
  setgid(0);
  system("/bin/bash -i");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1050 <setuid@plt>
xor    %edi,%edi
call   1040 <setgid@plt>
lea    0xeb7(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1050 <setuid@plt>
xor    %edi,%edi
call   1040 <setgid@plt>
lea    0xeba(%rip),%rdi
pop    %rax
jmp    1030 <system@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"/bin/bash -i\00"
define void @main() {
%1 = call i32 @setuid(i32 0)
%2 = call i32 @setgid(i32 0)
%3 = call i32 @system(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"/bin/bash -i\00"
define void @main() {
%1 = tail call i32 @setuid(i32 0)
%2 = tail call i32 @setgid(i32 0)
%3 = tail call i32 @system(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ RTM_GETLINK;
int /*<<< orphan*/ SendRequest(int /*<<< orphan*/, int /*<<< orphan*/,
                               int /*<<< orphan*/);
int32_t NetlinkSendGetLink(int32_t fd, uint32_t seq_num) {
  return SendRequest(fd, seq_num, RTM_GETLINK);
}


x86 assembly (clang, -O0):
<NetlinkSendGetLink>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    0x2ebd(%rip),%rax
mov    (%rax),%edx
call   1030 <SendRequest@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NetlinkSendGetLink>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edx
jmp    1030 <SendRequest@plt>

LLVM IR (-O0):
@RTM_GETLINK = global i32 0
define i32 @NetlinkSendGetLink(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = load i32, i32* @RTM_GETLINK
%8 = call i32 @SendRequest(i32 %5, i32 %6, i32 %7)
ret i32 %8
}

LLVM IR (-O2):
@RTM_GETLINK = global i32 0
define i32 @NetlinkSendGetLink(i32 %0, i32 %1) {
%3 = load i32, i32* @RTM_GETLINK
%4 = tail call i32 @SendRequest(i32 %0, i32 %1, i32 %3)
ret i32 %4
}
void acceptunix(struct ufd *ufd) {
  int buf;
  buf = 1;
}


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

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

LLVM IR (-O0):
%struct.ufd = type opaque
define void @acceptunix(%struct.ufd* %0) {
%2 = alloca %struct.ufd*
%3 = alloca i32
store %struct.ufd* %0, %struct.ufd** %2
store i32 1, i32* %3
ret void
}

LLVM IR (-O2):
%struct.ufd = type opaque
define void @acceptunix(%struct.ufd* nocapture %0) {
ret void
}
int f(b) { return (b >> 1) > 0; }


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
cmp    $0x0,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
xor    %eax,%eax
cmp    $0x2,%edi
setge  %al
ret

LLVM IR (-O0):
define i32 @f(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 1
%5 = icmp sgt i32 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @f(i32 %0) {
%2 = icmp sgt i32 %0, 1
%3 = zext i1 %2 to i32
ret i32 %3
}
int ZEND_EXIT_SPEC_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS) {
  zend_bailout();
  ZEND_VM_NEXT_OPCODE();
}


x86 assembly (clang, -O0):
<ZEND_EXIT_SPEC_UNUSED_HANDLER>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <zend_bailout@plt>
mov    $0x0,%al
call   1040 <ZEND_VM_NEXT_OPCODE@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @ZEND_EXIT_SPEC_UNUSED_HANDLER(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 (...) @zend_bailout()
%5 = call i32 (...) @ZEND_VM_NEXT_OPCODE()
%6 = load i32, i32* %2
ret i32 %6
}

LLVM IR (-O2):
define i32 @ZEND_EXIT_SPEC_UNUSED_HANDLER(i32 %0) {
%2 = tail call i32 (...) @zend_bailout()
%3 = tail call i32 (...) @ZEND_VM_NEXT_OPCODE()
ret i32 undef
}
int Operand_bs2_encode(unsigned int *valp) {
  int error;
  error = (*valp & ~(0x7 << 1)) != 0;
  *valp = *valp >> 1;
  return error;
}


x86 assembly (clang, -O0):
<Operand_bs2_encode>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
and    $0xfffffff1,%eax
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
shr    $0x1,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Operand_bs2_encode>:
mov    (%rdi),%ecx
xor    %eax,%eax
test   $0xfffffff1,%ecx
setne  %al
shr    %ecx
mov    %ecx,(%rdi)
ret

LLVM IR (-O0):
define i32 @Operand_bs2_encode(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* %4
%6 = and i32 %5, -15
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i32
store i32 %8, i32* %3
%9 = load i32*, i32** %2
%10 = load i32, i32* %9
%11 = lshr i32 %10, 1
%12 = load i32*, i32** %2
store i32 %11, i32* %12
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
define i32 @Operand_bs2_encode(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, -15
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i32
%6 = lshr i32 %2, 1
store i32 %6, i32* %0
ret i32 %5
}
int cairo_code_draw_LED_get_width() { return 19; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_LED_get_width() {
ret i32 19
}

LLVM IR (-O2):
define i32 @cairo_code_draw_LED_get_width() {
ret i32 19
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ __libc_waitpid(int /*<<< orphan*/, int *, int);
int /*<<< orphan*/ pthread_testcancel();
pid_t waitpid(pid_t pid, int *status, int options) {
  pthread_testcancel();
  return __libc_waitpid(pid, status, options);
}


x86 assembly (clang, -O0):
<waitpid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    $0x0,%al
call   1040 <pthread_testcancel@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <__libc_waitpid@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<waitpid>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   1040 <pthread_testcancel@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14d,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <__libc_waitpid@plt>

LLVM IR (-O0):
define i32 @waitpid(i32 %0, i32* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i32
store i32 %0, i32* %4
store i32* %1, i32** %5
store i32 %2, i32* %6
%7 = call i32 (...) @pthread_testcancel()
%8 = load i32, i32* %4
%9 = load i32*, i32** %5
%10 = load i32, i32* %6
%11 = call i32 @__libc_waitpid(i32 %8, i32* %9, i32 %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @waitpid(i32 %0, i32* %1, i32 %2) {
%4 = tail call i32 (...) @pthread_testcancel()
%5 = tail call i32 @__libc_waitpid(i32 %0, i32* %1, i32 %2)
ret i32 %5
}
int ibwt_cmp(const void *const a, const void *const b) {
  return *(unsigned char *)a - *(unsigned char *)b;
}


x86 assembly (clang, -O0):
<ibwt_cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movzbl (%rcx),%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ibwt_cmp>:
movzbl (%rdi),%eax
movzbl (%rsi),%ecx
sub    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @ibwt_cmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
%8 = load i8*, i8** %4
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = sub nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @ibwt_cmp(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = zext i8 %3 to i32
%5 = load i8, i8* %1
%6 = zext i8 %5 to i32
%7 = sub nsw i32 %4, %6
ret i32 %7
}
void g_io_channel_write_unichar() {}


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

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

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

LLVM IR (-O2):
define void @g_io_channel_write_unichar() {
ret void
}
void foo599(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo599(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void fn_vi(int i) {
  (void)i;
  abort();
}


x86 assembly (clang, -O0):
<fn_vi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<fn_vi>:
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @fn_vi(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define void @fn_vi(i32 %0) {
%2 = tail call i32 (...) @abort()
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;
typedef int /*<<< orphan*/ dev_t;

/* Variables and functions */
int /*<<< orphan*/ mknod(char const *, int /*<<< orphan*/, int /*<<< orphan*/);
int slate_CreateFSNode(const char *path, mode_t mode, dev_t dev) {
  return !mknod(path, mode, dev);
}


x86 assembly (clang, -O0):
<slate_CreateFSNode>:
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 <mknod@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<slate_CreateFSNode>:
push   %rax
call   1030 <mknod@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @slate_CreateFSNode(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 @mknod(i8* %7, i32 %8, i32 %9)
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @slate_CreateFSNode(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @mknod(i8* %0, i32 %1, i32 %2)
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
void Xutf8TextListToTextProperty() {}


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

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

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

LLVM IR (-O2):
define void @Xutf8TextListToTextProperty() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void msim_printEmptyBox() { printf("   "); }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c" \00"
define void @msim_printEmptyBox() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
void file_handle_free(FILE **fhp) {
  if (*fhp) {
    fclose(*fhp);
    *fhp = (void *)0xdeadbeef;
  }
}


x86 assembly (clang, -O0):
<file_handle_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     1142 <file_handle_free+0x32>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <fclose@plt>
mov    -0x8(%rbp),%rax
mov    $0xdeadbeef,%ecx
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<file_handle_free>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1129 <file_handle_free+0x19>
call   1030 <fclose@plt>
mov    $0xdeadbeef,%eax
mov    %rax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @file_handle_free(i32** %0) {
%2 = alloca i32**
store i32** %0, i32*** %2
%3 = load i32**, i32*** %2
%4 = load i32*, i32** %3
%5 = icmp ne i32* %4, null
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i32**, i32*** %2
%8 = load i32*, i32** %7
%9 = call i32 @fclose(i32* %8)
%10 = load i32**, i32*** %2
store i32* inttoptr (i64 3735928559 to i32*), i32** %10
br label %11
11: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
define void @file_handle_free(i32** nocapture %0) {
%2 = load i32*, i32** %0
%3 = icmp eq i32* %2, null
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @fclose(i32* %2)
store i32* inttoptr (i64 3735928559 to i32*), i32** %0
br label %6
6: ; preds = %4, %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
void print_start(FILE *f) {
  fputs("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n", f);
  fputs("<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n",
        f);
}


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

x86 assembly (clang, -O2):
<print_start>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    $0x28,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1030 <fwrite@plt>
lea    0xef5(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1030 <fwrite@plt>

LLVM IR (-O0):
@.str = [41 x i8] c"<?xml version=\221.0\22 encoding=\22UTF-8\22 ?>\0A\00"
@.str.1 = [62 x i8] c"<rss version=\222.0\22 xmlns:atom=\22http://www.w3.org/2005/Atom\22>\0A\00"
define void @print_start(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = load i32*, i32** %2
%6 = call i32 @fputs(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), i32* %5)
ret void
}

LLVM IR (-O2):
@.str = [41 x i8] c"<?xml version=\221.0\22 encoding=\22UTF-8\22 ?>\0A\00"
@.str.1 = [62 x i8] c"<rss version=\222.0\22 xmlns:atom=\22http://www.w3.org/2005/Atom\22>\0A\00"
define void @print_start(i32* nocapture %0) {
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), i64 40, i64 1, i32* %0)
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), i64 61, i64 1, i32* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(int *);
void delete_Item(int *item) {
  if (item)
    free(item);
}


x86 assembly (clang, -O0):
<delete_Item>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <delete_Item+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<delete_Item>:
test   %rdi,%rdi
je     111a <delete_Item+0xa>
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
define void @delete_Item(i32* %0) {
%2 = icmp eq i32* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @free(i32* %0)
br label %5
5: ; preds = %3, %1
ret void
}
int(toupper)(int ch) {
  return ((((ch & 0xff) < 'a') || ((ch & 0xff) > 'z'))
              ? (ch & 0xff)
              : ((((ch & 0xff) - 'a') + 'A') % 0xff));
}


x86 assembly (clang, -O0):
<toupper>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0xff,%eax
cmp    $0x61,%eax
jl     1129 <toupper+0x29>
mov    -0x4(%rbp),%eax
and    $0xff,%eax
cmp    $0x7a,%eax
jle    113a <toupper+0x3a>
mov    -0x4(%rbp),%edx
and    $0xff,%edx
mov    %edx,-0x8(%rbp)
jmp    1153 <toupper+0x53>
mov    -0x4(%rbp),%eax
and    $0xff,%eax
sub    $0x61,%eax
add    $0x41,%eax
mov    $0xff,%ecx
cltd
idiv   %ecx
mov    %edx,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<toupper>:
movzbl %dil,%eax
lea    -0x7b(%rax),%ecx
cmp    $0xffffffe6,%ecx
jb     1122 <toupper+0x22>
lea    -0x20(%rdi),%eax
add    $0xe1,%dil
cmp    $0xff,%al
movzbl %dil,%ecx
movzbl %al,%eax
cmove  %ecx,%eax
movzbl %al,%eax
ret

LLVM IR (-O0):
define i32 @toupper(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 255
%5 = icmp slt i32 %4, 97
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = and i32 %7, 255
%9 = icmp sgt i32 %8, 122
br i1 %9, label %10, label %13
10: ; preds = %6, %1
%11 = load i32, i32* %2
%12 = and i32 %11, 255
br label %19
13: ; preds = %6
%14 = load i32, i32* %2
%15 = and i32 %14, 255
%16 = sub nsw i32 %15, 97
%17 = add nsw i32 %16, 65
%18 = srem i32 %17, 255
br label %19
19: ; preds = %13, %10
%20 = phi i32 [ %12, %10 ], [ %18, %13 ]
ret i32 %20
}

LLVM IR (-O2):
define i32 @toupper(i32 %0) {
%2 = and i32 %0, 255
%3 = add nsw i32 %2, -123
%4 = icmp ult i32 %3, -26
br i1 %4, label %12, label %5
5: ; preds = %1
%6 = trunc i32 %0 to i8
%7 = add i8 %6, -32
%8 = icmp eq i8 %7, -1
%9 = add i8 %6, -31
%10 = select i1 %8, i8 %9, i8 %7
%11 = zext i8 %10 to i32
br label %12
12: ; preds = %1, %5
%13 = phi i32 [ %11, %5 ], [ %2, %1 ]
ret i32 %13
}
/* Type definitions */
typedef int /*<<< orphan*/ pem_password_cb;
typedef int /*<<< orphan*/ d2i_of_void;
typedef int /*<<< orphan*/ FILE;
typedef int /*<<< orphan*/ EC_GROUP;

/* Variables and functions */
int /*<<< orphan*/ *PEM_ASN1_read(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                  int /*<<< orphan*/ *, void **,
                                  int /*<<< orphan*/ *, void *);
int /*<<< orphan*/ PEM_STRING_ECPARAMETERS;
scalar_t__ d2i_ECPKParameters;
EC_GROUP *PEM_read_ECPKParameters(FILE *fp, EC_GROUP **x, pem_password_cb *cb,
                                  void *u) {
  return PEM_ASN1_read((d2i_of_void *)d2i_ECPKParameters,
                       PEM_STRING_ECPARAMETERS, fp, (void **)x, cb, u);
}


x86 assembly (clang, -O0):
<PEM_read_ECPKParameters>:
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    0x2eb1(%rip),%rax
mov    (%rax),%rdi
mov    0x2eaf(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
call   1030 <PEM_ASN1_read@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PEM_read_ECPKParameters>:
mov    %rcx,%r9
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2ebd(%rip),%rax
mov    (%rax),%rdi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
jmp    1030 <PEM_ASN1_read@plt>

LLVM IR (-O0):
@d2i_ECPKParameters = global i64 0
@PEM_STRING_ECPARAMETERS = global i32 0
define i32* @PEM_read_ECPKParameters(i32* %0, i32** %1, i32* %2, i8* %3) {
%5 = alloca i32*
%6 = alloca i32**
%7 = alloca i32*
%8 = alloca i8*
store i32* %0, i32** %5
store i32** %1, i32*** %6
store i32* %2, i32** %7
store i8* %3, i8** %8
%9 = load i64, i64* @d2i_ECPKParameters
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* @PEM_STRING_ECPARAMETERS
%12 = load i32*, i32** %5
%13 = load i32**, i32*** %6
%14 = bitcast i32** %13 to i8**
%15 = load i32*, i32** %7
%16 = load i8*, i8** %8
%17 = call i32* @PEM_ASN1_read(i32* %10, i32 %11, i32* %12, i8** %14, i32* %15, i8* %16)
ret i32* %17
}

LLVM IR (-O2):
@d2i_ECPKParameters = global i64 0
@PEM_STRING_ECPARAMETERS = global i32 0
define i32* @PEM_read_ECPKParameters(i32* %0, i32** %1, i32* %2, i8* %3) {
%5 = load i64, i64* @d2i_ECPKParameters
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* @PEM_STRING_ECPARAMETERS
%8 = bitcast i32** %1 to i8**
%9 = tail call i32* @PEM_ASN1_read(i32* %6, i32 %7, i32* %0, i8** %8, i32* %2, i8* %3)
ret i32* %9
}
/* Variables and functions */
scalar_t__ isspace(char const);
const char *skip_space(const char *p) {
  while (isspace(*p))
    ++p;
  return p;
}


x86 assembly (clang, -O0):
<skip_space>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1143 <skip_space+0x33>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <skip_space+0xc>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_space>:
push   %rbx
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
call   1030 <isspace@plt>
test   %rax,%rax
jne    1120 <skip_space+0x10>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @skip_space(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = call i64 @isspace(i8 signext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %2
br label %3
11: ; preds = %3
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
define i8* @skip_space(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @isspace(i8 signext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
ret i8* %3
}
/* Type definitions */
struct option {
  int dummy;
};
struct _getopt_data {
  int dummy;
};

/* Variables and functions */
int _getopt_internal_r(int, char *const *, char const *, struct option const *,
                       int *, int /*<<< orphan*/, struct _getopt_data *);
int _getopt_long_r(int argc, char *const *argv, const char *options,
                   const struct option *long_options, int *opt_index,
                   struct _getopt_data *d) {
  return _getopt_internal_r(argc, argv, options, long_options, opt_index, 0, d);
}


x86 assembly (clang, -O0):
<_getopt_long_r>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%rax
xor    %r9d,%r9d
mov    %rax,(%rsp)
call   1030 <_getopt_internal_r@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_getopt_long_r>:
push   %rax
mov    %r9,(%rsp)
xor    %r9d,%r9d
call   1030 <_getopt_internal_r@plt>
pop    %rcx
ret

LLVM IR (-O0):
%struct.option = type { i32 }
%struct._getopt_data = type { i32 }
define i32 @_getopt_long_r(i32 %0, i8** %1, i8* %2, %struct.option* %3, i32* %4, %struct._getopt_data* %5) {
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8*
%10 = alloca %struct.option*
%11 = alloca i32*
%12 = alloca %struct._getopt_data*
store i32 %0, i32* %7
store i8** %1, i8*** %8
store i8* %2, i8** %9
store %struct.option* %3, %struct.option** %10
store i32* %4, i32** %11
store %struct._getopt_data* %5, %struct._getopt_data** %12
%13 = load i32, i32* %7
%14 = load i8**, i8*** %8
%15 = load i8*, i8** %9
%16 = load %struct.option*, %struct.option** %10
%17 = load i32*, i32** %11
%18 = load %struct._getopt_data*, %struct._getopt_data** %12
%19 = call i32 @_getopt_internal_r(i32 %13, i8** %14, i8* %15, %struct.option* %16, i32* %17, i32 0, %struct._getopt_data* %18)
ret i32 %19
}

LLVM IR (-O2):
%struct.option = type { i32 }
%struct._getopt_data = type { i32 }
define i32 @_getopt_long_r(i32 %0, i8** %1, i8* %2, %struct.option* %3, i32* %4, %struct._getopt_data* %5) {
%7 = tail call i32 @_getopt_internal_r(i32 %0, i8** %1, i8* %2, %struct.option* %3, i32* %4, i32 0, %struct._getopt_data* %5)
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint64_t;
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
int8_t stdlib_ndarray_get_ptr_uint64(const uint8_t *idx, uint64_t *out) {
  *out = *(uint64_t *)idx;
  return 0;
}


x86 assembly (clang, -O0):
<stdlib_ndarray_get_ptr_uint64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_ndarray_get_ptr_uint64>:
mov    (%rdi),%eax
mov    %eax,(%rsi)
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @stdlib_ndarray_get_ptr_uint64(i32* nocapture %0, i32* nocapture writeonly %1) {
%3 = load i32, i32* %0
store i32 %3, i32* %1
ret i32 0
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
void op_set(void *_a, void *_b) {
  uint8_t *a = (uint8_t *)_a;
  uint8_t *b = (uint8_t *)_b;
  *a |= 1 << *b;
}


x86 assembly (clang, -O0):
<op_set>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
or     (%rax),%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_set>:
mov    (%rsi),%cl
mov    $0x1,%eax
shl    %cl,%eax
or     %eax,(%rdi)
ret

LLVM IR (-O0):
define void @op_set(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i32*
store i32* %8, i32** %5
%9 = load i8*, i8** %4
%10 = bitcast i8* %9 to i32*
store i32* %10, i32** %6
%11 = load i32*, i32** %6
%12 = load i32, i32* %11
%13 = shl i32 1, %12
%14 = load i32*, i32** %5
%15 = load i32, i32* %14
%16 = or i32 %15, %13
store i32 %16, i32* %14
ret void
}

LLVM IR (-O2):
define void @op_set(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = bitcast i8* %1 to i32*
%5 = load i32, i32* %4
%6 = shl nuw i32 1, %5
%7 = load i32, i32* %3
%8 = or i32 %7, %6
store i32 %8, i32* %3
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  unsigned int state;
};
typedef TYPE_1__ XPointerMovedEvent;

/* Variables and functions */
void set_XPointerMovedEvent_state(void *_p, unsigned _v) {
  ((XPointerMovedEvent *)_p)->state = (unsigned)_v;
}


x86 assembly (clang, -O0):
<set_XPointerMovedEvent_state>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_XPointerMovedEvent_state>:
mov    %esi,(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XPointerMovedEvent_state(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XPointerMovedEvent_state(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ iso();
main() { iso(); }


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @iso()
ret i32 0
}
void local_parts_ColorLed_targetInit__I() {}


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

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

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

LLVM IR (-O2):
define void @local_parts_ColorLed_targetInit__I() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *freadstring(int /*<<< orphan*/ *, char, int /*<<< orphan*/);
char *freadline(FILE *input) { return freadstring(input, '\n', 0); }


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

x86 assembly (clang, -O2):
<freadline>:
mov    $0xa,%esi
xor    %edx,%edx
jmp    1030 <freadstring@plt>

LLVM IR (-O0):
define i8* @freadline(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i8* @freadstring(i32* %3, i8 signext 10, i32 0)
ret i8* %4
}

LLVM IR (-O2):
define i8* @freadline(i32* %0) {
%2 = tail call i8* @freadstring(i32* %0, i8 signext 10, i32 0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ DirectIndexedXE0(int);
int /*<<< orphan*/ ROR8(int /*<<< orphan*/);
void Op76E0M1(void) { ROR8(DirectIndexedXE0(3)); }


x86 assembly (clang, -O0):
<Op76E0M1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3,%edi
call   1040 <DirectIndexedXE0@plt>
mov    %eax,%edi
call   1030 <ROR8@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Op76E0M1>:
push   %rax
mov    $0x3,%edi
call   1040 <DirectIndexedXE0@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <ROR8@plt>

LLVM IR (-O0):
define void @Op76E0M1() {
%1 = call i32 @DirectIndexedXE0(i32 3)
%2 = call i32 @ROR8(i32 %1)
ret void
}

LLVM IR (-O2):
define void @Op76E0M1() {
%1 = tail call i32 @DirectIndexedXE0(i32 3)
%2 = tail call i32 @ROR8(i32 %1)
ret void
}