xunge/DecIR huggingface dataset:
int do_101() { return 101; }


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

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

LLVM IR (-O0):
define i32 @do_101() {
ret i32 101
}

LLVM IR (-O2):
define i32 @do_101() {
ret i32 101
}
/* Variables and functions */
void glmRadians3f(float out[3], const float degrees[3]) {
  for (size_t i = 0; i < 3; ++i)
    out[i] = (3.14159265358979323846 / 180) * degrees[i];
}


x86 assembly (clang, -O0):
<glmRadians3f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x3,-0x18(%rbp)
jae    115e <glmRadians3f+0x5e>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xec8(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x18(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1114 <glmRadians3f+0x14>
pop    %rbp
ret

x86 assembly (clang, -O2):
<glmRadians3f>:
movss  (%rsi),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xef0(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rdi)
movss  0x4(%rsi),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x4(%rdi)
movss  0x8(%rsi),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%rdi)
ret

LLVM IR (-O0):
define void @glmRadians3f(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
%5 = alloca i64
store float* %0, float** %3
store float* %1, float** %4
store i64 0, i64* %5
br label %6
6: ; preds = %20, %2
%7 = load i64, i64* %5
%8 = icmp ult i64 %7, 3
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load float*, float** %4
%11 = load i64, i64* %5
%12 = getelementptr inbounds float, float* %10, i64 %11
%13 = load float, float* %12
%14 = fpext float %13 to double
%15 = fmul double 0x3F91DF46A2529D39, %14
%16 = fptrunc double %15 to float
%17 = load float*, float** %3
%18 = load i64, i64* %5
%19 = getelementptr inbounds float, float* %17, i64 %18
store float %16, float* %19
br label %20
20: ; preds = %9
%21 = load i64, i64* %5
%22 = add i64 %21, 1
store i64 %22, i64* %5
br label %6
23: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @glmRadians3f(float* nocapture writeonly %0, float* nocapture %1) {
%3 = load float, float* %1
%4 = fpext float %3 to double
%5 = fmul double %4, 0x3F91DF46A2529D39
%6 = fptrunc double %5 to float
store float %6, float* %0
%7 = getelementptr inbounds float, float* %1, i64 1
%8 = load float, float* %7
%9 = fpext float %8 to double
%10 = fmul double %9, 0x3F91DF46A2529D39
%11 = fptrunc double %10 to float
%12 = getelementptr inbounds float, float* %0, i64 1
store float %11, float* %12
%13 = getelementptr inbounds float, float* %1, i64 2
%14 = load float, float* %13
%15 = fpext float %14 to double
%16 = fmul double %15, 0x3F91DF46A2529D39
%17 = fptrunc double %16 to float
%18 = getelementptr inbounds float, float* %0, i64 2
store float %17, float* %18
ret void
}
/* Variables and functions */
char getchar();
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  char a;
  int cou = 0;
  while (a != '\n') {
    a = getchar();
    cou++;
  }
  printf("%d", cou);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0xa,%eax
je     115b <main+0x3b>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x5(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1136 <main+0x16>
mov    -0xc(%rbp),%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
add    $0x1,%ebx
cmp    $0xa,%al
jne    1130 <main+0x10>
lea    0xebb(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %4
4: ; preds = %8, %0
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = icmp ne i32 %6, 10
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = call signext i8 (...) @getchar()
store i8 %9, i8* %2
%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
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ %4, %1 ], [ 0, %0 ]
%3 = tail call signext i8 (...) @getchar()
%4 = add nuw nsw i32 %2, 1
%5 = icmp eq i8 %3, 10
br i1 %5, label %6, label %1
6: ; preds = %1
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}
/* Type definitions */
struct ibv_device {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ibv_free_device_list(struct ibv_device **);
void mlx4_glue_free_device_list(struct ibv_device **list) {
  ibv_free_device_list(list);
}


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

x86 assembly (clang, -O2):
<mlx4_glue_free_device_list>:
jmp    1030 <ibv_free_device_list@plt>

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

LLVM IR (-O2):
%struct.ibv_device = type { i32 }
define void @mlx4_glue_free_device_list(%struct.ibv_device** %0) {
%2 = tail call i32 @ibv_free_device_list(%struct.ibv_device** %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ default_handler();
__attribute__((weak)) void WWDG_IRQHandler() { default_handler(); }


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

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

LLVM IR (-O0):
define weak void @WWDG_IRQHandler() {
%1 = call i32 (...) @default_handler()
ret void
}

LLVM IR (-O2):
define weak void @WWDG_IRQHandler() {
%1 = tail call i32 (...) @default_handler()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, char *, int);
uint32_t bitstream_read_uint32(char **b) {
  uint32_t value;
  memcpy(&value, *b, sizeof(uint32_t));
  *b += sizeof(uint32_t);
  return value;
}


x86 assembly (clang, -O0):
<bitstream_read_uint32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    -0xc(%rbp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x4,%rcx
mov    %rcx,(%rax)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitstream_read_uint32>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    (%rdi),%rsi
lea    0xc(%rsp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
addq   $0x4,(%rbx)
mov    0xc(%rsp),%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @bitstream_read_uint32(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
store i8** %0, i8*** %2
%4 = load i8**, i8*** %2
%5 = load i8*, i8** %4
%6 = call i32 @memcpy(i32* %3, i8* %5, i32 4)
%7 = load i8**, i8*** %2
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8, i8* %8, i64 4
store i8* %9, i8** %7
%10 = load i32, i32* %3
ret i32 %10
}

LLVM IR (-O2):
define i32 @bitstream_read_uint32(i8** nocapture %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = load i8*, i8** %0
%5 = call i32 @memcpy(i32* %2, i8* %4, i32 4)
%6 = load i8*, i8** %0
%7 = getelementptr inbounds i8, i8* %6, i64 4
store i8* %7, i8** %0
%8 = load i32, i32* %2
ret i32 %8
}
void *_mesa_dlopen(const char *libname, int flags) { return 0; }


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

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

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

LLVM IR (-O2):
define noalias i8* @_mesa_dlopen(i8* nocapture readnone %0, i32 %1) {
ret i8* null
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int solcon_dimension_of_multprec_solutions(int *dimension) {
  int *a, fail;
  double *c;
  fail = _ada_use_c2phc4c(453, a, dimension, c, 0);
  return fail;
}


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

x86 assembly (clang, -O2):
<solcon_dimension_of_multprec_solutions>:
mov    %rdi,%rdx
mov    $0x1c5,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @solcon_dimension_of_multprec_solutions(i32* %0) {
%2 = tail call i32 @_ada_use_c2phc4c(i32 453, i32* undef, i32* %0, double* undef, i32 0)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ sirala_s5(int *, int);
int soru_5(int dizi[], int N) {
  sirala_s5(dizi, N);
  int toplam = 0, i;
  for (i = 0; i < 5; i++) {
    toplam += dizi[i];
  }
  return toplam;
}


x86 assembly (clang, -O0):
<soru_5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <sirala_s5@plt>
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jge    1162 <soru_5+0x52>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1139 <soru_5+0x29>
mov    -0x10(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<soru_5>:
push   %rbx
mov    %rdi,%rbx
call   1030 <sirala_s5@plt>
movdqu 0x4(%rbx),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    (%rbx),%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @soru_5(i32* %0, i32 %1) {
%3 = tail call i32 @sirala_s5(i32* %0, i32 %1)
%4 = load i32, i32* %0
%5 = getelementptr inbounds i32, i32* %0, i64 1
%6 = bitcast i32* %5 to <4 x i32>*
%7 = load <4 x i32>, <4 x i32>* %6
%8 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %7)
%9 = add nsw i32 %8, %4
ret i32 %9
}
/* Type definitions */
struct SN_env {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ SN_close_env(struct SN_env *);
extern void spanish_ISO_8859_1_close_env(struct SN_env *z) { SN_close_env(z); }


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

x86 assembly (clang, -O2):
<spanish_ISO_8859_1_close_env>:
jmp    1030 <SN_close_env@plt>

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

LLVM IR (-O2):
%struct.SN_env = type { i32 }
define void @spanish_ISO_8859_1_close_env(%struct.SN_env* %0) {
%2 = tail call i32 @SN_close_env(%struct.SN_env* %0)
ret void
}
void glutSpaceballMotionFunc(void (*func)(int x, int y, int z)) {}


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

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

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

LLVM IR (-O2):
define void @glutSpaceballMotionFunc(void (i32, i32, i32)* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void main() { printf("\nHello World!!!!"); }


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

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

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

LLVM IR (-O2):
@.str = [17 x i8] c"\0AHello World!!!!\00"
define void @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DI_Set_Writeback_Start();
int di_start(void) {
  DI_Set_Writeback_Start();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @di_start() {
%1 = tail call i32 (...) @DI_Set_Writeback_Start()
ret i32 0
}
void CalcFramePsnr() {}


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

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

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

LLVM IR (-O2):
define void @CalcFramePsnr() {
ret void
}
void s5p6450_default_mshci(void) {}


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

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

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

LLVM IR (-O2):
define void @s5p6450_default_mshci() {
ret void
}
/* Variables and functions */
float sqrt(float const);
float stdlib_base_sqrtf(const float x) { return sqrt(x); }


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

x86 assembly (clang, -O2):
<stdlib_base_sqrtf>:
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     111d <stdlib_base_sqrtf+0xd>
sqrtss %xmm0,%xmm0
ret
jmp    1030 <sqrt@plt>

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

LLVM IR (-O2):
define float @stdlib_base_sqrtf(float %0) {
%2 = tail call float @sqrt(float %0)
ret float %2
}
const char *jacFun_name_out(int i) {
  switch (i) {
  case 0:
    return "o0";
  case 1:
    return "o1";
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<jacFun_name_out>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
test   %eax,%eax
je     112b <jacFun_name_out+0x2b>
jmp    111a <jacFun_name_out+0x1a>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
je     113b <jacFun_name_out+0x3b>
jmp    114b <jacFun_name_out+0x4b>
lea    0xece(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1153 <jacFun_name_out+0x53>
lea    0xec1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1153 <jacFun_name_out+0x53>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<jacFun_name_out>:
xor    %ecx,%ecx
cmp    $0x1,%edi
lea    0xef7(%rip),%rax
cmove  %rax,%rcx
test   %edi,%edi
lea    0xee7(%rip),%rax
cmovne %rcx,%rax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"o0\00"
@.str.1 = [3 x i8] c"o1\00"
define i8* @jacFun_name_out(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %7 [
i32 0, label %5
i32 1, label %6
]
5: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %8
6: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %8
7: ; preds = %1
store i8* null, i8** %2
br label %8
8: ; preds = %7, %6, %5
%9 = load i8*, i8** %2
ret i8* %9
}

LLVM IR (-O2):
@.str = [3 x i8] c"o0\00"
@.str.1 = [3 x i8] c"o1\00"
define i8* @jacFun_name_out(i32 %0) {
%2 = icmp eq i32 %0, 1
%3 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* null
%4 = icmp eq i32 %0, 0
%5 = select i1 %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %3
ret i8* %5
}
void foo656(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo656(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(int argv, char *argc[]) {
  printf("argv is %d\n", argv);
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [12 x i8] c"argv is %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"argv is %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 %0)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ vla_allocate_signed(int);
void check_negative_sized_VLA_1() { vla_allocate_signed(-1); }


x86 assembly (clang, -O0):
<check_negative_sized_VLA_1>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffffffff,%edi
call   1030 <vla_allocate_signed@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_negative_sized_VLA_1>:
mov    $0xffffffff,%edi
jmp    1030 <vla_allocate_signed@plt>

LLVM IR (-O0):
define void @check_negative_sized_VLA_1() {
%1 = call i32 @vla_allocate_signed(i32 -1)
ret void
}

LLVM IR (-O2):
define void @check_negative_sized_VLA_1() {
%1 = tail call i32 @vla_allocate_signed(i32 -1)
ret void
}
short g(short int s) { return s + 1; }


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%eax
add    $0x1,%eax
cwtl
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i16 @g(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = sext i16 %3 to i32
%5 = add nsw i32 %4, 1
%6 = trunc i32 %5 to i16
ret i16 %6
}

LLVM IR (-O2):
define signext i16 @g(i16 signext %0) {
%2 = add i16 %0, 1
ret i16 %2
}
void network_release() {}


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

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

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

LLVM IR (-O2):
define void @network_release() {
ret void
}
float rng(float max) {
  const unsigned int IM = 139968, IA = 3877, IC = 29573;
  static unsigned int seed = 42;
  seed = (seed * IA + IC) % IM;
  return max * seed / IM;
}


x86 assembly (clang, -O0):
<rng>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movl   $0x222c0,-0x8(%rbp)
movl   $0xf25,-0xc(%rbp)
movl   $0x7385,-0x10(%rbp)
mov    0x2efc(%rip),%eax
imul   $0xf25,%eax,%eax
add    $0x7385,%eax
mov    %eax,%ecx
imul   $0x1df75681,%rcx,%rcx
shr    $0x2e,%rcx
imul   $0x222c0,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x2ed6(%rip)
movss  -0x4(%rbp),%xmm0
mov    0x2ecb(%rip),%eax
cvtsi2ss %rax,%xmm1
mulss  %xmm1,%xmm0
movss  0xe9a(%rip),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<rng>:
imul   $0xf25,0x2f16(%rip),%eax
add    $0x7385,%eax
imul   $0x1df75681,%rax,%rcx
shr    $0x2e,%rcx
imul   $0x222c0,%ecx,%ecx
sub    %ecx,%eax
cvtsi2ss %eax,%xmm1
mov    %eax,0x2ef4(%rip)
mulss  %xmm1,%xmm0
divss  0xec8(%rip),%xmm0
ret

LLVM IR (-O0):
@rng.seed = internal global i32 42
define float @rng(float %0) {
%2 = alloca float
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store float %0, float* %2
store i32 139968, i32* %3
store i32 3877, i32* %4
store i32 29573, i32* %5
%6 = load i32, i32* @rng.seed
%7 = mul i32 %6, 3877
%8 = add i32 %7, 29573
%9 = urem i32 %8, 139968
store i32 %9, i32* @rng.seed
%10 = load float, float* %2
%11 = load i32, i32* @rng.seed
%12 = uitofp i32 %11 to float
%13 = fmul float %10, %12
%14 = fdiv float %13, 1.399680e+05
ret float %14
}

LLVM IR (-O2):
@rng.seed = internal unnamed_addr global i32 42
define float @rng(float %0) {
%2 = load i32, i32* @rng.seed
%3 = mul i32 %2, 3877
%4 = add i32 %3, 29573
%5 = urem i32 %4, 139968
store i32 %5, i32* @rng.seed
%6 = uitofp i32 %5 to float
%7 = fmul float %6, %0
%8 = fdiv float %7, 1.399680e+05
ret float %8
}
void key_init() {
  (*(volatile unsigned long *)0x7F008830) &=
      ~((3 << 0) | (3 << 2) | (3 << 4) | (3 << 6));
  (*(volatile unsigned long *)0x7F008830) |=
      (2 << 0) | (2 << 2) | (2 << 4) | (2 << 6);
}


x86 assembly (clang, -O0):
<key_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x7f008830,%eax
mov    (%rax),%rcx
and    $0xffffffffffffff00,%rcx
mov    $0x7f008830,%eax
mov    %rcx,(%rax)
mov    $0x7f008830,%eax
mov    (%rax),%rcx
or     $0xaa,%rcx
mov    $0x7f008830,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<key_init>:
andq   $0xffffffffffffff00,0x7f008830
orq    $0xaa,0x7f008830
ret

LLVM IR (-O0):
define void @key_init() {
%1 = load volatile i64, i64* inttoptr (i64 2130741296 to i64*)
%2 = and i64 %1, -256
store volatile i64 %2, i64* inttoptr (i64 2130741296 to i64*)
%3 = load volatile i64, i64* inttoptr (i64 2130741296 to i64*)
%4 = or i64 %3, 170
store volatile i64 %4, i64* inttoptr (i64 2130741296 to i64*)
ret void
}

LLVM IR (-O2):
define void @key_init() {
%1 = load volatile i64, i64* inttoptr (i64 2130741296 to i64*)
%2 = and i64 %1, -256
store volatile i64 %2, i64* inttoptr (i64 2130741296 to i64*)
%3 = load volatile i64, i64* inttoptr (i64 2130741296 to i64*)
%4 = or i64 %3, 170
store volatile i64 %4, i64* inttoptr (i64 2130741296 to i64*)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage() {
  printf("\npdef-tool [-h host] [-f formats] [-d docid] [-n name] "
         "[-z zip-type] [-r] [folder]\n\n"
         "Download parameters:\n"
         "  host: url for download (defaults to http://localhost:8080/)\n"
         "  formats: a comma-separated list of TEXT,XML,MVD,MIXED (defaults to "
         "MVD)\n"
         "  docid: wildcard prefix docid, e.g. english/poetry.* (defaults to "
         "\".*\")\n"
         "  name: name of archive to download (defaults to archive)\n"
         "  zip-type: type of zip archive, either tar_gz or zip (defaults to "
         "tar_gz)\n"
         "  -r: download required corforms and all configs on server\n\n"
         "Upload parameter:\n"
         "  folder: relative path to folder for uploading\n\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 = [575 x i8] c"\0Apdef-tool [-h host] [-f formats] [-d docid] [-n name] [-z zip-type] [-r] [folder]\0A\0ADownload parameters:\0A host: url for download (defaults to http://localhost:8080/)\0A formats: a comma-separated list of TEXT,XML,MVD,MIXED (defaults to MVD)\0A docid: wildcard prefix docid, e.g. english/poetry.* (defaults to \22.*\22)\0A name: name of archive to download (defaults to archive)\0A zip-type: type of zip archive, either tar_gz or zip (defaults to tar_gz)\0A -r: download required corforms and all configs on server\0A\0AUpload parameter:\0A folder: relative path to folder for uploading\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([575 x i8], [575 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [574 x i8] c"\0Apdef-tool [-h host] [-f formats] [-d docid] [-n name] [-z zip-type] [-r] [folder]\0A\0ADownload parameters:\0A host: url for download (defaults to http://localhost:8080/)\0A formats: a comma-separated list of TEXT,XML,MVD,MIXED (defaults to MVD)\0A docid: wildcard prefix docid, e.g. english/poetry.* (defaults to \22.*\22)\0A name: name of archive to download (defaults to archive)\0A zip-type: type of zip archive, either tar_gz or zip (defaults to tar_gz)\0A -r: download required corforms and all configs on server\0A\0AUpload parameter:\0A folder: relative path to folder for uploading\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([574 x i8], [574 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void platform_program_exit(int code) { exit(0); }


x86 assembly (clang, -O0):
<platform_program_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<platform_program_exit>:
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @platform_program_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define void @platform_program_exit(i32 %0) {
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int strcmp(char const *, char const *);
int compare_name(const void *_hname1, const void *_hname2) {
  const char *hname1 = (const char *)_hname1;
  const char *hname2 = (const char *)_hname2;
  return (strcmp(hname1, hname2));
}


x86 assembly (clang, -O0):
<compare_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
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    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <strcmp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<compare_name>:
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @compare_name(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
int fun684() { return 684; }


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

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

LLVM IR (-O0):
define i32 @fun684() {
ret i32 684
}

LLVM IR (-O2):
define i32 @fun684() {
ret i32 684
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void terror(char *why) { printf("%s\n", why); }


x86 assembly (clang, -O0):
<terror>:
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):
<terror>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @terror(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 @terror(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
}
long long bit25() { return 0x0000000002000000LL; }


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

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

LLVM IR (-O0):
define i64 @bit25() {
ret i64 33554432
}

LLVM IR (-O2):
define i64 @bit25() {
ret i64 33554432
}
void ff_h264qpel_init_ppc() {}


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

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

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

LLVM IR (-O2):
define void @ff_h264qpel_init_ppc() {
ret void
}
EventTrigShields(e) int e;
{}


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

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

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

LLVM IR (-O2):
define i32 @EventTrigShields(i32 %0) {
ret i32 undef
}
double SOR_num_flops(int M, int N, int num_iterations) {
  double Md = (double)M;
  double Nd = (double)N;
  double num_iterD = (double)num_iterations;
  return (Md - 1) * (Nd - 1) * num_iterD * 6.0;
}


x86 assembly (clang, -O0):
<SOR_num_flops>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  0xed0(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xebf(%rip),%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x28(%rbp),%xmm0
movsd  0xea2(%rip),%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<SOR_num_flops>:
cvtsi2sd %edi,%xmm1
cvtsi2sd %esi,%xmm0
cvtsi2sd %edx,%xmm2
movsd  0xeec(%rip),%xmm3
addsd  %xmm3,%xmm1
addsd  %xmm3,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm0
mulsd  0xedc(%rip),%xmm0
ret

LLVM IR (-O0):
define double @SOR_num_flops(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%10 = load i32, i32* %4
%11 = sitofp i32 %10 to double
store double %11, double* %7
%12 = load i32, i32* %5
%13 = sitofp i32 %12 to double
store double %13, double* %8
%14 = load i32, i32* %6
%15 = sitofp i32 %14 to double
store double %15, double* %9
%16 = load double, double* %7
%17 = fsub double %16, 1.000000e+00
%18 = load double, double* %8
%19 = fsub double %18, 1.000000e+00
%20 = fmul double %17, %19
%21 = load double, double* %9
%22 = fmul double %20, %21
%23 = fmul double %22, 6.000000e+00
ret double %23
}

LLVM IR (-O2):
define double @SOR_num_flops(i32 %0, i32 %1, i32 %2) {
%4 = sitofp i32 %0 to double
%5 = sitofp i32 %1 to double
%6 = sitofp i32 %2 to double
%7 = fadd double %4, -1.000000e+00
%8 = fadd double %5, -1.000000e+00
%9 = fmul double %7, %8
%10 = fmul double %9, %6
%11 = fmul double %10, 6.000000e+00
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ count(int /*<<< orphan*/);
void op_count() { count(0); }


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

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

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

LLVM IR (-O2):
define void @op_count() {
%1 = tail call i32 @count(i32 0)
ret void
}
/* Variables and functions */
int create_file(char *, char **, int);
int /*<<< orphan*/ usage(char *);
int main(int argc, char *argv[]) {
  int len = 0;
  char *filename = 0;
  if (argc < 3) {
    usage(argv[0]);
    return 1;
  }
  filename = argv[1];
  len = argc - 2;
  return create_file(filename, &argv[2], len);
}


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   $0x0,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1167 <main+0x47>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    1193 <main+0x73>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x14(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x10,%rsi
mov    -0x14(%rbp),%edx
call   1040 <create_file@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x2,%edi
jg     1135 <main+0x15>
mov    (%rsi),%rdi
call   1030 <usage@plt>
mov    $0x1,%eax
pop    %rcx
ret
mov    %edi,%edx
mov    0x8(%rsi),%rdi
add    $0xfffffffe,%edx
add    $0x10,%rsi
pop    %rax
jmp    1040 <create_file@plt>

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 3
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 @usage(i8* %5)
br label %13
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = add nsw i32 %0, -2
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = tail call i32 @create_file(i8* %9, i8** %11, i32 %10)
br label %13
13: ; preds = %7, %4
%14 = phi i32 [ 1, %4 ], [ %12, %7 ]
ret i32 %14
}
/* Variables and functions */
void *clad_gar_new(size_t, int);
void *clad_par_new(size_t nmemb) { return clad_gar_new(nmemb, sizeof(void *)); }


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

x86 assembly (clang, -O2):
<clad_par_new>:
mov    $0x8,%esi
jmp    1030 <clad_gar_new@plt>

LLVM IR (-O0):
define i8* @clad_par_new(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i8* @clad_gar_new(i64 %3, i32 8)
ret i8* %4
}

LLVM IR (-O2):
define i8* @clad_par_new(i64 %0) {
%2 = tail call i8* @clad_gar_new(i64 %0, i32 8)
ret i8* %2
}
/* Type definitions */
typedef int uint8_t;
typedef int const uint16_t;

/* Variables and functions */
uint16_t get16le(const uint8_t *bytes) { return (bytes[0]) | (bytes[1] << 8); }


x86 assembly (clang, -O0):
<get16le>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x8(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get16le>:
mov    0x4(%rdi),%eax
shl    $0x8,%eax
or     (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @get16le(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = load i32, i32* %4
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 1
%8 = load i32, i32* %7
%9 = shl i32 %8, 8
%10 = or i32 %5, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @get16le(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = load i32, i32* %3
%5 = shl i32 %4, 8
%6 = or i32 %5, %2
ret i32 %6
}
int bla(int k) {
  int i = 0;
  return i;
}


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

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

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

LLVM IR (-O2):
define i32 @bla(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ itoa(int, char *);
int /*<<< orphan*/ puts(char *);
int main() {
  int number = -913;
  char str[10] = {0};
  itoa(number, str);
  puts(str);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xfffffc6f,-0x8(%rbp)
lea    -0x12(%rbp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <memset@plt>
mov    -0x8(%rbp),%edi
lea    -0x12(%rbp),%rsi
call   1050 <itoa@plt>
lea    -0x12(%rbp),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movw   $0x0,0x8(%rsp)
movq   $0x0,(%rsp)
mov    %rsp,%rbx
mov    $0xfffffc6f,%edi
mov    %rbx,%rsi
call   1040 <itoa@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x i8]
store i32 0, i32* %1
store i32 -913, i32* %2
%4 = bitcast [10 x i8]* %3 to i8*
%5 = load i32, i32* %2
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%7 = call i32 @itoa(i32 %5, i8* %6)
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%9 = call i32 @puts(i8* %8)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [10 x i8]
%2 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%3 = call i32 @itoa(i32 -913, i8* %2)
%4 = call i32 @puts(i8* %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ gmvwrite_flag_name(char *, int, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
void fgmvwrite_flag_name_(char flagname[], int *numtypes, int *data_type) {
  char name[10];
  strncpy(name, flagname, 8);
  *(name + 8) = '\0';
  gmvwrite_flag_name(name, *numtypes, *data_type);
}


x86 assembly (clang, -O0):
<fgmvwrite_flag_name_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x22(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x8,%edx
call   1030 <strncpy@plt>
movb   $0x0,-0x1a(%rbp)
lea    -0x22(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
call   1040 <gmvwrite_flag_name@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fgmvwrite_flag_name_>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%rsi
lea    0x6(%rsp),%r15
mov    %r15,%rdi
mov    $0x8,%edx
call   1030 <strncpy@plt>
movb   $0x0,0xe(%rsp)
mov    (%rbx),%esi
mov    (%r14),%edx
mov    %r15,%rdi
call   1040 <gmvwrite_flag_name@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @fgmvwrite_flag_name_(i8* %0, i32* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca [10 x i8]
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%9 = load i8*, i8** %4
%10 = call i32 @strncpy(i8* %8, i8* %9, i32 8)
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%12 = getelementptr inbounds i8, i8* %11, i64 8
store i8 0, i8* %12
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%14 = load i32*, i32** %5
%15 = load i32, i32* %14
%16 = load i32*, i32** %6
%17 = load i32, i32* %16
%18 = call i32 @gmvwrite_flag_name(i8* %13, i32 %15, i32 %17)
ret void
}

LLVM IR (-O2):
define void @fgmvwrite_flag_name_(i8* %0, i32* nocapture %1, i32* nocapture %2) {
%4 = alloca [10 x i8]
%5 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%6 = call i32 @strncpy(i8* %5, i8* %0, i32 8)
%7 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 8
store i8 0, i8* %7
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = call i32 @gmvwrite_flag_name(i8* %5, i32 %8, i32 %9)
ret void
}
char verificacaoSinal(double resultFxF) { return resultFxF < 0 ? '-' : '+'; }


x86 assembly (clang, -O0):
<verificacaoSinal>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm1
xorps  %xmm0,%xmm0
mov    $0x2b,%eax
mov    $0x2d,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<verificacaoSinal>:
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
seta   %al
add    %al,%al
add    $0x2b,%al
ret

LLVM IR (-O0):
define signext i8 @verificacaoSinal(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp olt double %3, 0.000000e+00
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 45, i32 43
%7 = trunc i32 %6 to i8
ret i8 %7
}

LLVM IR (-O2):
define signext i8 @verificacaoSinal(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = select i1 %2, i8 45, i8 43
ret i8 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or "
         "MBEDTLS_X509_CSR_PARSE_C and/or MBEDTLS_FS_IO not defined.\n");
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [105 x i8] c"MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or MBEDTLS_X509_CSR_PARSE_C and/or MBEDTLS_FS_IO not defined.\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [104 x i8] c"MBEDTLS_BIGNUM_C and/or MBEDTLS_RSA_C and/or MBEDTLS_X509_CSR_PARSE_C and/or MBEDTLS_FS_IO not defined.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str, i64 0, i64 0))
ret i32 0
}
void gtk_label_set_max_width_chars() {}


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

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

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

LLVM IR (-O2):
define void @gtk_label_set_max_width_chars() {
ret void
}
/* Variables and functions */
float atof(char *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
void input_float(float *fptr) {
  char str[1000];
  fgets(str, 1000, stdin);
  if (str[0] != 0 && str[0] != '\n') {
    *fptr = atof(str);
  }
}


x86 assembly (clang, -O0):
<input_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3f0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x3f0(%rbp),%rdi
mov    0x2eab(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
movsbl -0x3f0(%rbp),%eax
cmp    $0x0,%eax
je     117d <input_float+0x5d>
movsbl -0x3f0(%rbp),%eax
cmp    $0xa,%eax
je     117d <input_float+0x5d>
lea    -0x3f0(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x8(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x3f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<input_float>:
push   %rbx
sub    $0x3f0,%rsp
mov    %rdi,%rbx
mov    0x2eb6(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
mov    (%rsp),%al
test   %al,%al
je     1158 <input_float+0x38>
cmp    $0xa,%al
je     1158 <input_float+0x38>
mov    %rsp,%rdi
call   1030 <atof@plt>
movss  %xmm0,(%rbx)
add    $0x3f0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@stdin = global i32 0
define void @input_float(float* %0) {
%2 = alloca float*
%3 = alloca [1000 x i8]
store float* %0, float** %2
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%5 = load i32, i32* @stdin
%6 = call i32 @fgets(i8* %4, i32 1000, i32 %5)
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %1
%12 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 10
br i1 %15, label %16, label %20
16: ; preds = %11
%17 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%18 = call float @atof(i8* %17)
%19 = load float*, float** %2
store float %18, float* %19
br label %20
20: ; preds = %16, %11, %1
ret void
}

LLVM IR (-O2):
@stdin = global i32 0
define void @input_float(float* nocapture writeonly %0) {
%2 = alloca [1000 x i8]
%3 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%4 = load i32, i32* @stdin
%5 = call i32 @fgets(i8* %3, i32 1000, i32 %4)
%6 = load i8, i8* %3
switch i8 %6, label %7 [
i8 10, label %9
i8 0, label %9
]
7: ; preds = %1
%8 = call float @atof(i8* %3)
store float %8, float* %0
br label %9
9: ; preds = %1, %1, %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, char *);
void g_error(char *message) { printf("%s: %s\n", "uptime", message); }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"%s: %s\0A\00"
@.str.1 = [7 x i8] c"uptime\00"
define void @g_error(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %0)
ret void
}