xunge/DecIR huggingface dataset:
/* Variables and functions */
int exp(double);
double sqrt(int);
double PDF(double x, double mu, double sigma) {
  return 1 / (sigma * sqrt(2 * 3.14159265359)) *
         exp(-((x - mu) * (x - mu)) / (2 * sigma * sigma));
}


x86 assembly (clang, -O0):
<PDF>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    $0x6,%edi
call   1040 <sqrt@plt>
movsd  -0x28(%rbp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0xeac(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xe64(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PDF>:
sub    $0x38,%rsp
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
movapd %xmm0,0x20(%rsp)
mov    $0x6,%edi
call   1040 <sqrt@plt>
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  0xeae(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movapd 0x20(%rsp),%xmm1
subsd  0x10(%rsp),%xmm1
movapd 0xea0(%rip),%xmm0
xorpd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm2,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x18(%rsp),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @PDF(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* %6
%8 = call double @sqrt(i32 6)
%9 = fmul double %7, %8
%10 = fdiv double 1.000000e+00, %9
%11 = load double, double* %4
%12 = load double, double* %5
%13 = fsub double %11, %12
%14 = load double, double* %4
%15 = load double, double* %5
%16 = fsub double %14, %15
%17 = fmul double %13, %16
%18 = fneg double %17
%19 = load double, double* %6
%20 = fmul double 2.000000e+00, %19
%21 = load double, double* %6
%22 = fmul double %20, %21
%23 = fdiv double %18, %22
%24 = call i32 @exp(double %23)
%25 = sitofp i32 %24 to double
%26 = fmul double %10, %25
ret double %26
}

LLVM IR (-O2):
define double @PDF(double %0, double %1, double %2) {
%4 = tail call double @sqrt(i32 6)
%5 = fmul double %4, %2
%6 = fdiv double 1.000000e+00, %5
%7 = fsub double %0, %1
%8 = fneg double %7
%9 = fmul double %7, %8
%10 = fmul double %2, 2.000000e+00
%11 = fmul double %10, %2
%12 = fdiv double %9, %11
%13 = tail call i32 @exp(double %12)
%14 = sitofp i32 %13 to double
%15 = fmul double %6, %14
ret double %15
}
int glob_stub(const char *epath, int err) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @glob_stub(i8* nocapture readnone %0, i32 %1) {
ret i32 0
}
/* Type definitions */
struct _stor_fmoveto_rsp {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ osapi_free(struct _stor_fmoveto_rsp *);
void stor_fmoveto_rsp_free(struct _stor_fmoveto_rsp *ptr) { osapi_free(ptr); }


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

x86 assembly (clang, -O2):
<stor_fmoveto_rsp_free>:
jmp    1030 <osapi_free@plt>

LLVM IR (-O0):
%struct._stor_fmoveto_rsp = type { i32 }
define void @stor_fmoveto_rsp_free(%struct._stor_fmoveto_rsp* %0) {
%2 = alloca %struct._stor_fmoveto_rsp*
store %struct._stor_fmoveto_rsp* %0, %struct._stor_fmoveto_rsp** %2
%3 = load %struct._stor_fmoveto_rsp*, %struct._stor_fmoveto_rsp** %2
%4 = call i32 @osapi_free(%struct._stor_fmoveto_rsp* %3)
ret void
}

LLVM IR (-O2):
%struct._stor_fmoveto_rsp = type { i32 }
define void @stor_fmoveto_rsp_free(%struct._stor_fmoveto_rsp* %0) {
%2 = tail call i32 @osapi_free(%struct._stor_fmoveto_rsp* %0)
ret void
}
/* Variables and functions */
double acos(int /*<<< orphan*/);
int /*<<< orphan*/ glmDotProduct3d(double const *, double const *);
double glmComputeNormalizedVectorAngle3dRad(const double v1[3],
                                            const double v2[3]) {
  return acos(glmDotProduct3d(v1, v2));
}


x86 assembly (clang, -O0):
<glmComputeNormalizedVectorAngle3dRad>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <glmDotProduct3d@plt>
mov    %eax,%edi
call   1030 <acos@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmComputeNormalizedVectorAngle3dRad>:
push   %rax
call   1040 <glmDotProduct3d@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <acos@plt>

LLVM IR (-O0):
define double @glmComputeNormalizedVectorAngle3dRad(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = load double*, double** %4
%7 = call i32 @glmDotProduct3d(double* %5, double* %6)
%8 = call double @acos(i32 %7)
ret double %8
}

LLVM IR (-O2):
define double @glmComputeNormalizedVectorAngle3dRad(double* %0, double* %1) {
%3 = tail call i32 @glmDotProduct3d(double* %0, double* %1)
%4 = tail call double @acos(i32 %3)
ret double %4
}
void if_1() {
  int a = 5;
  int b = 2;
  int c = 4;
  if (a > b) {
    return;
  } else if (c <= a) {
    a = 0;
  }
  (void)(a);
  (void)(b);
  (void)(c);
}


x86 assembly (clang, -O0):
<if_1>:
push   %rbp
mov    %rsp,%rbp
movl   $0x5,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x4,-0xc(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    112a <if_1+0x2a>
jmp    1142 <if_1+0x42>
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     113d <if_1+0x3d>
movl   $0x0,-0x4(%rbp)
jmp    1142 <if_1+0x42>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @if_1() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 5, i32* %1
store i32 2, i32* %2
store i32 4, i32* %3
%4 = load i32, i32* %1
%5 = load i32, i32* %2
%6 = icmp sgt i32 %4, %5
br i1 %6, label %7, label %8
7: ; preds = %0
br label %18
8: ; preds = %0
%9 = load i32, i32* %3
%10 = load i32, i32* %1
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 0, i32* %1
br label %13
13: ; preds = %12, %8
br label %14
14: ; preds = %13
%15 = load i32, i32* %1
%16 = load i32, i32* %2
%17 = load i32, i32* %3
br label %18
18: ; preds = %14, %7
ret void
}

LLVM IR (-O2):
define void @if_1() {
ret void
}
unsigned soundb_none_flags(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @soundb_none_flags() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ resetty();
void ncui_on_panic_cb(void *clientData) {
  resetty();
  endwin();
}


x86 assembly (clang, -O0):
<ncui_on_panic_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <resetty@plt>
mov    $0x0,%al
call   1040 <endwin@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @ncui_on_panic_cb(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @resetty()
%4 = call i32 (...) @endwin()
ret void
}

LLVM IR (-O2):
define void @ncui_on_panic_cb(i8* nocapture readnone %0) {
%2 = tail call i32 (...) @resetty()
%3 = tail call i32 (...) @endwin()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ GLdouble;

/* Variables and functions */
int /*<<< orphan*/ glRasterPos3dv(int /*<<< orphan*/ *);
void RasterPos3dv(GLdouble v[3]) { glRasterPos3dv(v); }


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

x86 assembly (clang, -O2):
<RasterPos3dv>:
jmp    1030 <glRasterPos3dv@plt>

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

LLVM IR (-O2):
define void @RasterPos3dv(i32* %0) {
%2 = tail call i32 @glRasterPos3dv(i32* %0)
ret void
}
int is_comment_line(char *buf) {
  int flag;
  flag = 0;
  if (buf[0] == '#')
    flag = 1;
  else if ((buf[0] == '!') && (buf[1] == '!'))
    flag = 1;
  return (flag);
}


x86 assembly (clang, -O0):
<is_comment_line>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    112b <is_comment_line+0x2b>
movl   $0x1,-0xc(%rbp)
jmp    1158 <is_comment_line+0x58>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x21,%eax
jne    1153 <is_comment_line+0x53>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x21,%eax
jne    1153 <is_comment_line+0x53>
movl   $0x1,-0xc(%rbp)
jmp    1158 <is_comment_line+0x58>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_comment_line>:
mov    (%rdi),%al
cmp    $0x23,%al
je     1114 <is_comment_line+0x14>
cmp    $0x21,%al
jne    111a <is_comment_line+0x1a>
xor    %eax,%eax
cmpb   $0x21,0x1(%rdi)
sete   %al
ret
mov    $0x1,%eax
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @is_comment_line(i8* nocapture %0) {
%2 = load i8, i8* %0
switch i8 %2, label %8 [
i8 35, label %9
i8 33, label %3
]
3: ; preds = %1
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 33
%7 = zext i1 %6 to i32
br label %9
8: ; preds = %1
br label %9
9: ; preds = %3, %1, %8
%10 = phi i32 [ 1, %1 ], [ 0, %8 ], [ %7, %3 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void drv_summa_log(const char *str) { printf("%s\n", str); }


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

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

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @drv_summa_log(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
int findgirl(char *c) {
  int p = 0;
  while (*c != 'G')
    p++;
  return p;
}


x86 assembly (clang, -O0):
<findgirl>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x47,%eax
je     112d <findgirl+0x2d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <findgirl+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @findgirl(i8* nocapture %0) {
ret i32 0
}
long calc_chunk_val(int xPosition, int zPosition) {
  long xsqv = (long)(xPosition * xPosition * 0x4c1906);
  long xv = (long)(xPosition * 0x5ac0db);
  long zsqv = ((long)(zPosition * zPosition)) * 0x4307a7L;
  long zv = (long)(zPosition * 0x5f24f);
  long chunk_val = (xsqv + xv + zsqv + zv);
  return chunk_val;
}


x86 assembly (clang, -O0):
<calc_chunk_val>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x4(%rbp),%eax
imul   $0x4c1906,%eax,%eax
cltq
mov    %rax,-0x10(%rbp)
imul   $0x5ac0db,-0x4(%rbp),%eax
cltq
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
cltq
imul   $0x4307a7,%rax,%rax
mov    %rax,-0x20(%rbp)
imul   $0x5f24f,-0x8(%rbp),%eax
cltq
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
add    -0x20(%rbp),%rax
add    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_chunk_val>:
imul   $0x5ac0db,%edi,%eax
imul   %edi,%edi
imul   $0x4c1906,%edi,%ecx
movslq %eax,%rdx
add    %rcx,%rdx
imul   $0x5f24f,%esi,%eax
imul   %esi,%esi
imul   $0x4307a7,%rsi,%rcx
cltq
add    %rdx,%rax
add    %rcx,%rax
ret

LLVM IR (-O0):
define i64 @calc_chunk_val(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
store i32 %0, i32* %3
store i32 %1, i32* %4
%10 = load i32, i32* %3
%11 = load i32, i32* %3
%12 = mul nsw i32 %10, %11
%13 = mul nsw i32 %12, 4987142
%14 = sext i32 %13 to i64
store i64 %14, i64* %5
%15 = load i32, i32* %3
%16 = mul nsw i32 %15, 5947611
%17 = sext i32 %16 to i64
store i64 %17, i64* %6
%18 = load i32, i32* %4
%19 = load i32, i32* %4
%20 = mul nsw i32 %18, %19
%21 = sext i32 %20 to i64
%22 = mul nsw i64 %21, 4392871
store i64 %22, i64* %7
%23 = load i32, i32* %4
%24 = mul nsw i32 %23, 389711
%25 = sext i32 %24 to i64
store i64 %25, i64* %8
%26 = load i64, i64* %5
%27 = load i64, i64* %6
%28 = add nsw i64 %26, %27
%29 = load i64, i64* %7
%30 = add nsw i64 %28, %29
%31 = load i64, i64* %8
%32 = add nsw i64 %30, %31
store i64 %32, i64* %9
%33 = load i64, i64* %9
ret i64 %33
}

LLVM IR (-O2):
define i64 @calc_chunk_val(i32 %0, i32 %1) {
%3 = mul i32 %0, 4987142
%4 = mul i32 %3, %0
%5 = zext i32 %4 to i64
%6 = mul nsw i32 %0, 5947611
%7 = sext i32 %6 to i64
%8 = mul nsw i32 %1, %1
%9 = zext i32 %8 to i64
%10 = mul nuw nsw i64 %9, 4392871
%11 = mul nsw i32 %1, 389711
%12 = sext i32 %11 to i64
%13 = add nsw i64 %5, %7
%14 = add nsw i64 %13, %12
%15 = add nsw i64 %14, %10
ret i64 %15
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void f2(int x) { printf("f2: %d\n", x); }


x86 assembly (clang, -O0):
<f2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f2>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [8 x i8] c"f2: %d\0A\00"
define void @f2(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Type definitions */
struct timer_list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ add_timer(struct timer_list *);
void add_timer_on(struct timer_list *timer, int cpu) {
  {
    { add_timer(timer); }
    return;
  }
}


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

x86 assembly (clang, -O2):
<add_timer_on>:
jmp    1030 <add_timer@plt>

LLVM IR (-O0):
%struct.timer_list = type { i32 }
define void @add_timer_on(%struct.timer_list* %0, i32 %1) {
%3 = alloca %struct.timer_list*
%4 = alloca i32
store %struct.timer_list* %0, %struct.timer_list** %3
store i32 %1, i32* %4
%5 = load %struct.timer_list*, %struct.timer_list** %3
%6 = call i32 @add_timer(%struct.timer_list* %5)
ret void
}

LLVM IR (-O2):
%struct.timer_list = type { i32 }
define void @add_timer_on(%struct.timer_list* %0, i32 %1) {
%3 = tail call i32 @add_timer(%struct.timer_list* %0)
ret void
}
signed long long int
signedlonglongint_ignoring_unsignedshort(signed long long int x,
                                         unsigned short y) {
  return x;
}


x86 assembly (clang, -O0):
<signedlonglongint_ignoring_unsignedshort>:
push   %rbp
mov    %rsp,%rbp
mov    %si,%ax
mov    %rdi,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<signedlonglongint_ignoring_unsignedshort>:
mov    %rdi,%rax
ret

LLVM IR (-O0):
define i64 @signedlonglongint_ignoring_unsignedshort(i64 %0, i16 zeroext %1) {
%3 = alloca i64
%4 = alloca i16
store i64 %0, i64* %3
store i16 %1, i16* %4
%5 = load i64, i64* %3
ret i64 %5
}

LLVM IR (-O2):
define i64 @signedlonglongint_ignoring_unsignedshort(i64 returned %0, i16 zeroext %1) {
ret i64 %0
}
/* Variables and functions */
int /*<<< orphan*/ bar(int *, int *, int *, int *, int *, int *);
int foo(int *a, int *b, int *c, int *d, int *e, int *f) {
  bar(a, b, c, d, e, f);
  return *f;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
call   1030 <bar@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %rbx
mov    %r9,%rbx
call   1030 <bar@plt>
mov    (%rbx),%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @foo(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
store i32* %0, i32** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i32* %4, i32** %11
store i32* %5, i32** %12
%13 = load i32*, i32** %7
%14 = load i32*, i32** %8
%15 = load i32*, i32** %9
%16 = load i32*, i32** %10
%17 = load i32*, i32** %11
%18 = load i32*, i32** %12
%19 = call i32 @bar(i32* %13, i32* %14, i32* %15, i32* %16, i32* %17, i32* %18)
%20 = load i32*, i32** %12
%21 = load i32, i32* %20
ret i32 %21
}

LLVM IR (-O2):
define i32 @foo(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5) {
%7 = tail call i32 @bar(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5)
%8 = load i32, i32* %5
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ sprint_td(char *, long long, int, int, char);
void print_td(long long t, bool print_all_numbers, bool pad_units,
              char pad_char) {
  char str[64] = "";
  sprint_td(str, t, print_all_numbers, pad_units, pad_char);
  puts(str);
}


x86 assembly (clang, -O0):
<print_td>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %cl,%al
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %al,-0x11(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1040 <memset@plt>
lea    -0x60(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
movsbl -0x11(%rbp),%r8d
call   1050 <sprint_td@plt>
lea    -0x60(%rbp),%rdi
call   1030 <puts@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_td>:
push   %rbx
sub    $0x40,%rsp
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rsi
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1040 <sprint_td@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @print_td(i64 %0, i32 %1, i32 %2, i8 signext %3) {
%5 = alloca i64
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca [64 x i8]
store i64 %0, i64* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8 %3, i8* %8
%10 = bitcast [64 x i8]* %9 to i8*
%11 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%12 = load i64, i64* %5
%13 = load i32, i32* %6
%14 = load i32, i32* %7
%15 = load i8, i8* %8
%16 = call i32 @sprint_td(i8* %11, i64 %12, i32 %13, i32 %14, i8 signext %15)
%17 = getelementptr inbounds [64 x i8], [64 x i8]* %9, i64 0, i64 0
%18 = call i32 @puts(i8* %17)
ret void
}

LLVM IR (-O2):
define void @print_td(i64 %0, i32 %1, i32 %2, i8 signext %3) {
%5 = alloca [64 x i8]
%6 = getelementptr inbounds [64 x i8], [64 x i8]* %5, i64 0, i64 0
%7 = call i32 @sprint_td(i8* %6, i64 %0, i32 %1, i32 %2, i8 signext %3)
%8 = call i32 @puts(i8* %6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ piece(char *, char, char *, int);
char *basename_get_extension(char *argv_0) {
  static char extension[128];
  if (!piece(extension, '.', argv_0, 1))
    *extension = '\0';
  return extension;
}


x86 assembly (clang, -O0):
<basename_get_extension>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
lea    0x2f19(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%ecx
call   1030 <piece@plt>
cmp    $0x0,%eax
jne    1146 <basename_get_extension+0x36>
movb   $0x0,0x2efa(%rip)
lea    0x2ef3(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<basename_get_extension>:
push   %rax
mov    %rdi,%rdx
lea    0x2f25(%rip),%rdi
mov    $0x2e,%esi
mov    $0x1,%ecx
call   1030 <piece@plt>
test   %eax,%eax
jne    1135 <basename_get_extension+0x25>
movb   $0x0,0x2f0b(%rip)
lea    0x2f04(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@basename_get_extension.extension = internal global [128 x i8] zeroinitializer
define i8* @basename_get_extension(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @piece(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @basename_get_extension.extension, i64 0, i64 0), i8 signext 46, i8* %3, i32 1)
%5 = icmp ne i32 %4, 0
br i1 %5, label %7, label %6
6: ; preds = %1
store i8 0, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @basename_get_extension.extension, i64 0, i64 0)
br label %7
7: ; preds = %6, %1
ret i8* getelementptr inbounds ([128 x i8], [128 x i8]* @basename_get_extension.extension, i64 0, i64 0)
}

LLVM IR (-O2):
@basename_get_extension.extension = internal global [128 x i8] zeroinitializer
define i8* @basename_get_extension(i8* %0) {
%2 = tail call i32 @piece(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @basename_get_extension.extension, i64 0, i64 0), i8 signext 46, i8* %0, i32 1)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %1
store i8 0, i8* getelementptr inbounds ([128 x i8], [128 x i8]* @basename_get_extension.extension, i64 0, i64 0)
br label %5
5: ; preds = %4, %1
ret i8* getelementptr inbounds ([128 x i8], [128 x i8]* @basename_get_extension.extension, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ copy_data(int, int, void *, void *, int);
void copy_array(void *dest, void *src, int iBegin, int iEnd, int esize) {
  for (int i = iBegin; i <= iEnd; i++) {
    copy_data(i, i, dest, src, esize);
  }
}


x86 assembly (clang, -O0):
<copy_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     1161 <copy_array+0x51>
mov    -0x20(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
call   1030 <copy_data@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1130 <copy_array+0x20>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_array>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
cmp    %ecx,%edx
jg     1149 <copy_array+0x39>
mov    %r8d,%r14d
mov    %ecx,%ebp
mov    %edx,%ebx
mov    %rsi,%r15
mov    %rdi,%r12
add    $0x1,%ebp
nopl   0x0(%rax)
mov    %ebx,%edi
mov    %ebx,%esi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14d,%r8d
call   1030 <copy_data@plt>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    1130 <copy_array+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @copy_array(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = icmp sgt i32 %2, %3
br i1 %6, label %7, label %8
7: ; preds = %8, %5
ret void
8: ; preds = %5, %8
%9 = phi i32 [ %11, %8 ], [ %2, %5 ]
%10 = tail call i32 @copy_data(i32 %9, i32 %9, i8* %0, i8* %1, i32 %4)
%11 = add i32 %9, 1
%12 = icmp eq i32 %9, %3
br i1 %12, label %7, label %8
}
/* Variables and functions */
int SIGSEGV;
int getpid();
int /*<<< orphan*/ printf(char *, ...);
void my_segv_handler(int sigval) {
  if (sigval == SIGSEGV) {
    printf("my process is accessing memory it shouldn't\n");
    printf("my_segv_handler: %d\n", getpid());
    while (1)
      ;
  }
}


x86 assembly (clang, -O0):
<my_segv_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2eb3(%rip),%rcx
cmp    (%rcx),%eax
jne    1167 <my_segv_handler+0x47>
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1162 <my_segv_handler+0x42>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_segv_handler>:
push   %rax
mov    0x2eb0(%rip),%rax
cmp    %edi,(%rax)
jne    1162 <my_segv_handler+0x32>
lea    0xed2(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <getpid@plt>
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
nop
jmp    1160 <my_segv_handler+0x30>
pop    %rax
ret

LLVM IR (-O0):
@SIGSEGV = global i32 0
@.str = [45 x i8] c"my process is accessing memory it shouldn't\0A\00"
@.str.1 = [21 x i8] c"my_segv_handler: %d\0A\00"
define void @my_segv_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SIGSEGV
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @getpid()
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %8)
br label %10
10: ; preds = %6, %10
br label %10
11: ; preds = %1
ret void
}

LLVM IR (-O2):
@SIGSEGV = global i32 0
@.str.1 = [21 x i8] c"my_segv_handler: %d\0A\00"
@str = [44 x i8] c"my process is accessing memory it shouldn't\00"
define void @my_segv_handler(i32 %0) {
%2 = load i32, i32* @SIGSEGV
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %9
4: ; preds = %1
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (...) @getpid()
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %6)
br label %8
8: ; preds = %4, %8
br label %8
9: ; preds = %1
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
int /*<<< orphan*/ pw_process(char *, int, int /*<<< orphan*/,
                              int /*<<< orphan*/, int /*<<< orphan*/, int, int);
int64_t pw_phonemes(char *buf, int size, int pw_flags) {
  return pw_process(buf, size, 0, 0, 0, 1, pw_flags);
}


x86 assembly (clang, -O0):
<pw_phonemes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%eax
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%edx
mov    %r8d,%ecx
mov    %eax,(%rsp)
call   1030 <pw_process@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pw_phonemes>:
push   %rax
mov    %edx,(%rsp)
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   1030 <pw_process@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @pw_phonemes(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 @pw_process(i8* %7, i32 %8, i32 0, i32 0, i32 0, i32 1, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @pw_phonemes(i8* %0, i32 %1, i32 %2) {
%4 = tail call i32 @pw_process(i8* %0, i32 %1, i32 0, i32 0, i32 0, i32 1, i32 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, size_t, size_t, size_t, size_t, size_t,
                          size_t, size_t);
int structSample3() {
  typedef struct {
    char a;
    short b;
    char c;
    int d;
    char e[3];
  } T_Test;
  (size_t) & (((T_Test *)0)->a);
  printf("Size = %d\n  a-%d, b-%d, c-%d, d-%d\n  e[0]-%d, e[1]-%d, e[2]-%d\n",
         sizeof(T_Test), (size_t) & (((T_Test *)0)->a),
         (size_t) & (((T_Test *)0)->b), (size_t) & (((T_Test *)0)->c),
         (size_t) & (((T_Test *)0)->d), (size_t) & (((T_Test *)0)->e[0]),
         (size_t) & (((T_Test *)0)->e[1]), (size_t) & (((T_Test *)0)->e[2]));
  return 0;
}


x86 assembly (clang, -O0):
<structSample3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xee1(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rcx
add    $0x2,%rcx
mov    %rdx,%r8
add    $0x4,%r8
mov    %rdx,%r9
add    $0x8,%r9
mov    %rdx,%r11
add    $0xc,%r11
mov    %rdx,%r10
add    $0xd,%r10
mov    %rdx,%rax
add    $0xe,%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<structSample3>:
push   %rax
sub    $0x8,%rsp
lea    0xee4(%rip),%rdi
mov    $0x2,%ecx
mov    $0x4,%r8d
mov    $0x8,%r9d
mov    $0x10,%esi
xor    %edx,%edx
push   $0xe
push   $0xd
push   $0xc
call   1030 <printf@plt>
add    $0x20,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.T_Test = type { i8, i16, i8, i32, [3 x i8] }
@.str = [64 x i8] c"Size = %d\0A a-%d, b-%d, c-%d, d-%d\0A e[0]-%d, e[1]-%d, e[2]-%d\0A\00"
define i32 @structSample3() {
%1 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 16, i64 0, i64 ptrtoint (i16* getelementptr inbounds (%struct.T_Test, %struct.T_Test* null, i32 0, i32 1) to i64), i64 ptrtoint (i8* getelementptr inbounds (%struct.T_Test, %struct.T_Test* null, i32 0, i32 2) to i64), i64 ptrtoint (i32* getelementptr inbounds (%struct.T_Test, %struct.T_Test* null, i32 0, i32 3) to i64), i64 ptrtoint (i8* getelementptr inbounds (%struct.T_Test, %struct.T_Test* null, i32 0, i32 4, i64 0) to i64), i64 ptrtoint (i8* getelementptr inbounds (%struct.T_Test, %struct.T_Test* null, i32 0, i32 4, i64 1) to i64), i64 ptrtoint (i8* getelementptr inbounds (%struct.T_Test, %struct.T_Test* null, i32 0, i32 4, i64 2) to i64))
ret i32 0
}

LLVM IR (-O2):
@.str = [64 x i8] c"Size = %d\0A a-%d, b-%d, c-%d, d-%d\0A e[0]-%d, e[1]-%d, e[2]-%d\0A\00"
define i32 @structSample3() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 16, i64 0, i64 2, i64 4, i64 8, i64 12, i64 13, i64 14)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ falla(char *);
void verifica(int verificado, char *mensaje) {
  if (verificado < 0) {
    falla(mensaje);
  }
}


x86 assembly (clang, -O0):
<verifica>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
jge    1132 <verifica+0x22>
mov    -0x10(%rbp),%rdi
call   1030 <falla@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verifica>:
test   %edi,%edi
js     1115 <verifica+0x5>
ret
mov    %rsi,%rdi
jmp    1030 <falla@plt>

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

LLVM IR (-O2):
define void @verifica(i32 %0, i8* %1) {
%3 = icmp slt i32 %0, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @falla(i8* %1)
br label %6
6: ; preds = %4, %2
ret void
}
signed int convert_unsigned_char_to_signed_int(unsigned char x) { return x; }


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

x86 assembly (clang, -O2):
<convert_unsigned_char_to_signed_int>:
mov    %edi,%eax
ret

LLVM IR (-O0):
define i32 @convert_unsigned_char_to_signed_int(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @convert_unsigned_char_to_signed_int(i8 zeroext %0) {
%2 = zext i8 %0 to i32
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void printArray(int A[], int length) {
  int position;
  for (position = 0; position < length; position++) {
    printf("%d ", A[position]);
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<printArray>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1159 <printArray+0x49>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <printArray+0x16>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printArray>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    1157 <printArray+0x37>
mov    %rdi,%r15
mov    %esi,%r12d
lea    0xec7(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <printArray+0x20>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define void @printArray(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
%14 = tail call i32 @putchar(i32 10)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uintmax_t;

/* Variables and functions */
int /*<<< orphan*/ bit_mask_nz(unsigned int);
uintmax_t bit_mask(unsigned bits) { return bits ? bit_mask_nz(bits) : 0; }


x86 assembly (clang, -O0):
<bit_mask>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1135 <bit_mask+0x25>
mov    -0x4(%rbp),%edi
call   1030 <bit_mask_nz@plt>
mov    %eax,-0x8(%rbp)
jmp    113f <bit_mask+0x2f>
xor    %eax,%eax
mov    %eax,-0x8(%rbp)
jmp    113f <bit_mask+0x2f>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bit_mask>:
test   %edi,%edi
je     1119 <bit_mask+0x9>
jmp    1030 <bit_mask_nz@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @bit_mask(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @bit_mask_nz(i32 %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ %4, %3 ], [ 0, %1 ]
ret i32 %6
}
/* Variables and functions */
bool shl_htable_compare_ulong(const void *a, const void *b) {
  return *(const unsigned long *)a == *(const unsigned long *)b;
}


x86 assembly (clang, -O0):
<shl_htable_compare_ulong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x10(%rbp),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<shl_htable_compare_ulong>:
mov    (%rdi),%rcx
xor    %eax,%eax
cmp    (%rsi),%rcx
sete   %al
ret

LLVM IR (-O0):
define i32 @shl_htable_compare_ulong(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 = bitcast i8* %5 to i64*
%7 = load i64, i64* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i64*
%10 = load i64, i64* %9
%11 = icmp eq i64 %7, %10
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @shl_htable_compare_ulong(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i64*
%4 = load i64, i64* %3
%5 = bitcast i8* %1 to i64*
%6 = load i64, i64* %5
%7 = icmp eq i64 %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage(void) {
  printf("Usage:\n  Please use command like this : \n    ./app /dev/led<1-3|s> "
         "<on|off>\n");
}


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

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

LLVM IR (-O0):
@.str = [77 x i8] c"Usage:\0A Please use command like this : \0A ./app /dev/led<1-3|s> <on|off>\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [76 x i8] c"Usage:\0A Please use command like this : \0A ./app /dev/led<1-3|s> <on|off>\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str, i64 0, i64 0))
ret void
}
void gdk_display_get_core_pointer() {}


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

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

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

LLVM IR (-O2):
define void @gdk_display_get_core_pointer() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SIGINT;
void SIG_IGN(int);
int /*<<< orphan*/ die();
scalar_t__ getyn(int);
int /*<<< orphan*/ signal(int /*<<< orphan*/, void (*)(int));
void rub(int sig) {
  signal(SIGINT, SIG_IGN);
  if (getyn(1))
    die();
  signal(SIGINT, rub);
}


x86 assembly (clang, -O0):
<rub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    0x2e95(%rip),%rsi
call   1040 <signal@plt>
mov    $0x1,%edi
call   1030 <getyn@plt>
cmp    $0x0,%rax
je     116b <rub+0x3b>
mov    $0x0,%al
call   1050 <die@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
mov    0x2e55(%rip),%rsi
call   1040 <signal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rub>:
push   %rbx
mov    0x2eb0(%rip),%rbx
mov    (%rbx),%edi
mov    0x2e9f(%rip),%rsi
call   1040 <signal@plt>
mov    $0x1,%edi
call   1030 <getyn@plt>
test   %rax,%rax
je     115c <rub+0x2c>
xor    %eax,%eax
call   1050 <die@plt>
mov    (%rbx),%edi
mov    0x2e6b(%rip),%rsi
pop    %rbx
jmp    1040 <signal@plt>

LLVM IR (-O0):
@SIGINT = global i32 0
define void @rub(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @SIGINT
%4 = call i32 @signal(i32 %3, void (i32)* @SIG_IGN)
%5 = call i64 @getyn(i32 1)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i32 (...) @die()
br label %9
9: ; preds = %7, %1
%10 = load i32, i32* @SIGINT
%11 = call i32 @signal(i32 %10, void (i32)* @rub)
ret void
}

LLVM IR (-O2):
@SIGINT = global i32 0
define void @rub(i32 %0) {
%2 = load i32, i32* @SIGINT
%3 = tail call i32 @signal(i32 %2, void (i32)* @SIG_IGN)
%4 = tail call i64 @getyn(i32 1)
%5 = icmp eq i64 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %1
%7 = tail call i32 (...) @die()
br label %8
8: ; preds = %6, %1
%9 = load i32, i32* @SIGINT
%10 = tail call i32 @signal(i32 %9, void (i32)* @rub)
ret void
}
/* Variables and functions */
scalar_t__ isLowerCase(char);
char toUpperCase(char c) { return isLowerCase(c) ? c - 32 : c; }


x86 assembly (clang, -O0):
<toUpperCase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <isLowerCase@plt>
cmp    $0x0,%rax
je     1140 <toUpperCase+0x30>
movsbl -0x1(%rbp),%eax
sub    $0x20,%eax
mov    %eax,-0x8(%rbp)
jmp    1147 <toUpperCase+0x37>
movsbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
movsbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i8 @toUpperCase(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i64 @isLowerCase(i8 signext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = sub nsw i32 %8, 32
br label %13
10: ; preds = %1
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
br label %13
13: ; preds = %10, %6
%14 = phi i32 [ %9, %6 ], [ %12, %10 ]
%15 = trunc i32 %14 to i8
ret i8 %15
}

LLVM IR (-O2):
define signext i8 @toUpperCase(i8 signext %0) {
%2 = tail call i64 @isLowerCase(i8 signext %0)
%3 = icmp eq i64 %2, 0
%4 = add i8 %0, -32
%5 = select i1 %3, i8 %0, i8 %4
ret i8 %5
}
int reg_verify_host_key(const char *hostname, int port, const char *keytype,
                        const char *key) {
  char *otherstr, *regname;
  return 0;
}


x86 assembly (clang, -O0):
<reg_verify_host_key>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @reg_verify_host_key(i8* %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
ret i32 0
}

LLVM IR (-O2):
define i32 @reg_verify_host_key(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i8* nocapture readnone %3) {
ret i32 0
}
void _M2_ASCII_init(__attribute__((unused)) int argc,
                    __attribute__((unused)) char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @_M2_ASCII_init(i32 %0, i8** nocapture %1) {
ret void
}
/* Variables and functions */
int atoi(char *);
scalar_t__ com_parse_char_command(char *, char *, char);
int com_parse_match_index(char *response, int len) {
  char match_index_string[256];
  if (com_parse_char_command(match_index_string, response, 'm')) {
    return -1;
  }
  return atoi(match_index_string);
}


x86 assembly (clang, -O0):
<com_parse_match_index>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x6d,%edx
call   1040 <com_parse_char_command@plt>
cmp    $0x0,%rax
je     115d <com_parse_match_index+0x3d>
movl   $0xffffffff,-0x4(%rbp)
jmp    116c <com_parse_match_index+0x4c>
lea    -0x120(%rbp),%rdi
call   1030 <atoi@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<com_parse_match_index>:
sub    $0x108,%rsp
mov    %rdi,%rsi
mov    %rsp,%rdi
mov    $0x6d,%edx
call   1040 <com_parse_char_command@plt>
mov    %rax,%rcx
mov    $0xffffffff,%eax
test   %rcx,%rcx
je     114c <com_parse_match_index+0x2c>
add    $0x108,%rsp
ret
mov    %rsp,%rdi
call   1030 <atoi@plt>
add    $0x108,%rsp
ret

LLVM IR (-O0):
define i32 @com_parse_match_index(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca [256 x i8]
store i8* %0, i8** %4
store i32 %1, i32* %5
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%8 = load i8*, i8** %4
%9 = call i64 @com_parse_char_command(i8* %7, i8* %8, i8 signext 109)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 -1, i32* %3
br label %15
12: ; preds = %2
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%14 = call i32 @atoi(i8* %13)
store i32 %14, i32* %3
br label %15
15: ; preds = %12, %11
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @com_parse_match_index(i8* %0, i32 %1) {
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = call i64 @com_parse_char_command(i8* %4, i8* %0, i8 signext 109)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = call i32 @atoi(i8* %4)
br label %9
9: ; preds = %2, %7
%10 = phi i32 [ %8, %7 ], [ -1, %2 ]
ret i32 %10
}