xunge/DecIR huggingface dataset:
/* Type definitions */
struct vec4i {
  int dummy;
};
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ vec4i_snap(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                              int /*<<< orphan*/ *);
__attribute__((always_)) struct vec4i *
psvec4i_snap(struct vec4i *result, struct vec4i *a, struct vec4i *b) {
  vec4i_snap((int32_t *)result, (int32_t *)a, (int32_t *)b);
  return result;
}


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

x86 assembly (clang, -O2):
<psvec4i_snap>:
push   %rbx
mov    %rdi,%rbx
call   1030 <vec4i_snap@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
%struct.vec4i = type { i32 }
define %struct.vec4i* @psvec4i_snap(%struct.vec4i* %0, %struct.vec4i* %1, %struct.vec4i* %2) {
%4 = alloca %struct.vec4i*
%5 = alloca %struct.vec4i*
%6 = alloca %struct.vec4i*
store %struct.vec4i* %0, %struct.vec4i** %4
store %struct.vec4i* %1, %struct.vec4i** %5
store %struct.vec4i* %2, %struct.vec4i** %6
%7 = load %struct.vec4i*, %struct.vec4i** %4
%8 = bitcast %struct.vec4i* %7 to i32*
%9 = load %struct.vec4i*, %struct.vec4i** %5
%10 = bitcast %struct.vec4i* %9 to i32*
%11 = load %struct.vec4i*, %struct.vec4i** %6
%12 = bitcast %struct.vec4i* %11 to i32*
%13 = call i32 @vec4i_snap(i32* %8, i32* %10, i32* %12)
%14 = load %struct.vec4i*, %struct.vec4i** %4
ret %struct.vec4i* %14
}

LLVM IR (-O2):
%struct.vec4i = type { i32 }
define %struct.vec4i* @psvec4i_snap(%struct.vec4i* returned %0, %struct.vec4i* %1, %struct.vec4i* %2) {
%4 = getelementptr %struct.vec4i, %struct.vec4i* %0, i64 0, i32 0
%5 = getelementptr %struct.vec4i, %struct.vec4i* %1, i64 0, i32 0
%6 = getelementptr %struct.vec4i, %struct.vec4i* %2, i64 0, i32 0
%7 = tail call i32 @vec4i_snap(i32* %4, i32* %5, i32* %6)
ret %struct.vec4i* %0
}
/* Variables and functions */
void strrchr(void) {}


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

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

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

LLVM IR (-O2):
define void @strrchr() {
ret void
}
int prof_register(const char *name, float simd, int flops, int bytes) {
  return 1;
}


x86 assembly (clang, -O0):
<prof_register>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
mov    %esi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    $0x1,%eax
pop    %rbp
ret

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

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

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

/* Variables and functions */
int /*<<< orphan*/ free(struct lvlip_sock *);
void lvlip_free(struct lvlip_sock *sock) { free(sock); }


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

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

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

LLVM IR (-O2):
%struct.lvlip_sock = type { i32 }
define void @lvlip_free(%struct.lvlip_sock* nocapture %0) {
%2 = tail call i32 @free(%struct.lvlip_sock* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ heap_adjust(int *, int, int);
void build_heap(int a[], int size) {
  int i;
  for (i = ((size - 1) / 2 - 1); i >= 0; i--) {
    heap_adjust(a, i, size);
  }
}


x86 assembly (clang, -O0):
<build_heap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
jl     115a <build_heap+0x4a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1030 <heap_adjust@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1133 <build_heap+0x23>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<build_heap>:
push   %r15
push   %r14
push   %rbx
cmp    $0x3,%esi
jl     1146 <build_heap+0x36>
mov    %esi,%r15d
mov    %rdi,%r14
lea    -0x1(%r15),%ebx
shr    %ebx
add    $0x1,%ebx
nopl   0x0(%rax)
lea    -0x2(%rbx),%esi
mov    %r14,%rdi
mov    %r15d,%edx
call   1030 <heap_adjust@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1130 <build_heap+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @build_heap(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
store i32* %0, i32** %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = sub nsw i32 %6, 1
%8 = sdiv i32 %7, 2
%9 = sub nsw i32 %8, 1
store i32 %9, i32* %5
br label %10
10: ; preds = %18, %2
%11 = load i32, i32* %5
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %10
%14 = load i32*, i32** %3
%15 = load i32, i32* %5
%16 = load i32, i32* %4
%17 = call i32 @heap_adjust(i32* %14, i32 %15, i32 %16)
br label %18
18: ; preds = %13
%19 = load i32, i32* %5
%20 = add nsw i32 %19, -1
store i32 %20, i32* %5
br label %10
21: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @build_heap(i32* %0, i32 %1) {
%3 = icmp sgt i32 %1, 2
br i1 %3, label %4, label %12
4: ; preds = %2
%5 = add nsw i32 %1, -1
%6 = lshr i32 %5, 1
br label %7
7: ; preds = %4, %7
%8 = phi i32 [ %9, %7 ], [ %6, %4 ]
%9 = add nsw i32 %8, -1
%10 = tail call i32 @heap_adjust(i32* %0, i32 %9, i32 %1)
%11 = icmp ugt i32 %8, 1
br i1 %11, label %7, label %12
12: ; preds = %7, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ rpt(char *, int);
void nb1(int n) {
  rpt("##    \033[27m        \033[7m  \033[27m       \033[7m \033[27m       "
      "\033[7m \033[27m       \033[7m \033[27m       \033[7m \033[27m       "
      "\033[7m \033[27m       \033[7m  \033[27m        \033[7m  ##\n",
      n);
}


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

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

LLVM IR (-O0):
@.str = [151 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
define void @nb1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @rpt(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [151 x i8] c"## \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m \1B[27m \1B[7m ##\0A\00"
define void @nb1(i32 %0) {
%2 = tail call i32 @rpt(i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Variables and functions */
unsigned int Get_Bits(int);
void marker_bit(char *text) {
  int marker;
  unsigned int tmp;
  {
    tmp = Get_Bits(1);
    marker = (int)tmp;
    return;
  }
}


x86 assembly (clang, -O0):
<marker_bit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x1,%edi
call   1030 <Get_Bits@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<marker_bit>:
mov    $0x1,%edi
jmp    1030 <Get_Bits@plt>

LLVM IR (-O0):
define void @marker_bit(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
store i8* %0, i8** %2
%5 = call i32 @Get_Bits(i32 1)
store i32 %5, i32* %4
%6 = load i32, i32* %4
store i32 %6, i32* %3
ret void
}

LLVM IR (-O2):
define void @marker_bit(i8* nocapture readnone %0) {
%2 = tail call i32 @Get_Bits(i32 1)
ret void
}
void _infix_operator_minus_u8_u8(unsigned char lhs, unsigned char rhs,
                                 unsigned char *__rval_1) {
  *__rval_1 = lhs - rhs;
}


x86 assembly (clang, -O0):
<_infix_operator_minus_u8_u8>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    %rdx,-0x10(%rbp)
movzbl -0x1(%rbp),%eax
movzbl -0x2(%rbp),%ecx
sub    %ecx,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<_infix_operator_minus_u8_u8>:
sub    %sil,%dil
mov    %dil,(%rdx)
ret

LLVM IR (-O0):
define void @_infix_operator_minus_u8_u8(i8 zeroext %0, i8 zeroext %1, i8* %2) {
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8*
store i8 %0, i8* %4
store i8 %1, i8* %5
store i8* %2, i8** %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
%9 = load i8, i8* %5
%10 = zext i8 %9 to i32
%11 = sub nsw i32 %8, %10
%12 = trunc i32 %11 to i8
%13 = load i8*, i8** %6
store i8 %12, i8* %13
ret void
}

LLVM IR (-O2):
define void @_infix_operator_minus_u8_u8(i8 zeroext %0, i8 zeroext %1, i8* nocapture writeonly %2) {
%4 = sub i8 %0, %1
store i8 %4, i8* %2
ret void
}
/* Type definitions */
struct timeval {
  unsigned short tv_sec;
  unsigned short tv_usec;
};

/* Variables and functions */
int select(int /*<<< orphan*/, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
           int /*<<< orphan*/ *, struct timeval *);
char Delay(unsigned short Second, unsigned short uSecond) {
  struct timeval Timer;
  Timer.tv_sec = Second;
  Timer.tv_usec = uSecond;
  if (select(0, NULL, NULL, NULL, &Timer) == -1) {
    return 'X';
  }
  return 'V';
}


x86 assembly (clang, -O0):
<Delay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %di,%cx
mov    %cx,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    -0x4(%rbp),%ax
mov    %ax,-0x10(%rbp)
mov    -0x6(%rbp),%ax
mov    %ax,-0xe(%rbp)
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x10(%rbp),%r8
mov    %rcx,%rsi
mov    %rcx,%rdx
call   1030 <select@plt>
cmp    $0xffffffff,%eax
jne    115d <Delay+0x4d>
movb   $0x58,-0x1(%rbp)
jmp    1161 <Delay+0x51>
movb   $0x56,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Delay>:
push   %rax
mov    %di,(%rsp)
mov    %si,0x2(%rsp)
mov    %rsp,%r8
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <select@plt>
cmp    $0xffffffff,%eax
sete   %al
add    %al,%al
add    $0x56,%al
pop    %rcx
ret

LLVM IR (-O0):
%struct.timeval = type { i16, i16 }
define signext i8 @Delay(i16 zeroext %0, i16 zeroext %1) {
%3 = alloca i8
%4 = alloca i16
%5 = alloca i16
%6 = alloca %struct.timeval
store i16 %0, i16* %4
store i16 %1, i16* %5
%7 = load i16, i16* %4
%8 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i32 0, i32 0
store i16 %7, i16* %8
%9 = load i16, i16* %5
%10 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i32 0, i32 1
store i16 %9, i16* %10
%11 = call i32 @select(i32 0, i32* null, i32* null, i32* null, %struct.timeval* %6)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %14
13: ; preds = %2
store i8 88, i8* %3
br label %15
14: ; preds = %2
store i8 86, i8* %3
br label %15
15: ; preds = %14, %13
%16 = load i8, i8* %3
ret i8 %16
}

LLVM IR (-O2):
%struct.timeval = type { i16, i16 }
define signext i8 @Delay(i16 zeroext %0, i16 zeroext %1) {
%3 = alloca %struct.timeval
%4 = bitcast %struct.timeval* %3 to i8*
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
store i16 %0, i16* %5
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
store i16 %1, i16* %6
%7 = call i32 @select(i32 0, i32* null, i32* null, i32* null, %struct.timeval* %3)
%8 = icmp eq i32 %7, -1
%9 = select i1 %8, i8 88, i8 86
ret i8 %9
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(double *, double *, int);
double *m_copy(double *B, double *A, int nrow, int ncol) {
  memcpy(B, A, nrow * ncol * sizeof(double));
  return B;
}


x86 assembly (clang, -O0):
<m_copy>:
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    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_copy>:
push   %rbx
mov    %rdi,%rbx
imul   %ecx,%edx
shl    $0x3,%edx
call   1030 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define double* @m_copy(double* %0, double* %1, i32 %2, i32 %3) {
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
store double* %0, double** %5
store double* %1, double** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load double*, double** %5
%10 = load double*, double** %6
%11 = load i32, i32* %7
%12 = load i32, i32* %8
%13 = mul nsw i32 %11, %12
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 8
%16 = trunc i64 %15 to i32
%17 = call i32 @memcpy(double* %9, double* %10, i32 %16)
%18 = load double*, double** %5
ret double* %18
}

LLVM IR (-O2):
define double* @m_copy(double* returned %0, double* %1, i32 %2, i32 %3) {
%5 = shl i32 %2, 3
%6 = mul i32 %5, %3
%7 = tail call i32 @memcpy(double* %0, double* %1, i32 %6)
ret double* %0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char linea[180];
  int letraInt = 0;
  char letra;
  int resultado = 0;
  printf("Introduce un numero entero: ");
  scanf("%s", linea);
  for (int i = 0; i <= 180; i++) {
    letraInt = linea[i];
    letra = letraInt;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc4(%rbp)
movl   $0x0,-0xcc(%rbp)
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
lea    -0xc0(%rbp),%rsi
lea    0xebd(%rip),%rdi
call   1040 <scanf@plt>
movl   $0x0,-0xd0(%rbp)
cmpl   $0xb4,-0xd0(%rbp)
jg     11b4 <main+0x94>
movslq -0xd0(%rbp),%rax
movsbl -0xc0(%rbp,%rax,1),%eax
ff
mov    %eax,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
mov    %al,-0xc5(%rbp)
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd0(%rbp)
jmp    116f <main+0x4f>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0xb8,%rsp
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
xor    %eax,%eax
add    $0xb8,%rsp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"Introduce un numero entero: \00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [180 x i8]
%3 = alloca i32
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %5
%7 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [180 x i8], [180 x i8]* %2, i64 0, i64 0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %8)
store i32 0, i32* %6
br label %10
10: ; preds = %21, %0
%11 = load i32, i32* %6
%12 = icmp sle i32 %11, 180
br i1 %12, label %13, label %24
13: ; preds = %10
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [180 x i8], [180 x i8]* %2, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
store i32 %18, i32* %3
%19 = load i32, i32* %3
%20 = trunc i32 %19 to i8
store i8 %20, i8* %4
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
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"Introduce un numero entero: \00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [180 x i8]
%2 = getelementptr inbounds [180 x i8], [180 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}
/* Variables and functions */
int g1(int, int);
int /*<<< orphan*/ printf(char *, int, int, int);
int g2(int a, int b) {
  int c = g1(a + 3, b - 11);
  printf("g2:   a = %d, b = %d, c = %d\n", a, b, c);
  return c - b;
}


x86 assembly (clang, -O0):
<g2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
add    $0x3,%edi
mov    -0x8(%rbp),%esi
sub    $0xb,%esi
call   1030 <g1@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
sub    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<g2>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%ebx
mov    %edi,%r14d
lea    0x3(%r14),%edi
lea    -0xb(%rbx),%esi
call   1030 <g1@plt>
mov    %eax,%ebp
lea    0xec2(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %eax,%ecx
call   1040 <printf@plt>
sub    %ebx,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"g2: a = %d, b = %d, c = %d\0A\00"
define i32 @g2(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = add nsw i32 %6, 3
%8 = load i32, i32* %4
%9 = sub nsw i32 %8, 11
%10 = call i32 @g1(i32 %7, i32 %9)
store i32 %10, i32* %5
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = load i32, i32* %5
%14 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12, i32 %13)
%15 = load i32, i32* %5
%16 = load i32, i32* %4
%17 = sub nsw i32 %15, %16
ret i32 %17
}

LLVM IR (-O2):
@.str = [30 x i8] c"g2: a = %d, b = %d, c = %d\0A\00"
define i32 @g2(i32 %0, i32 %1) {
%3 = add nsw i32 %0, 3
%4 = add nsw i32 %1, -11
%5 = tail call i32 @g1(i32 %3, i32 %4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 %5)
%7 = sub nsw i32 %5, %1
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ abort();
unsigned short plusccsa(unsigned short a, unsigned short b) {
  unsigned short sum = a + b;
  if (sum < a)
    abort();
  return sum;
}


x86 assembly (clang, -O0):
<plusccsa>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %ax,-0x4(%rbp)
movzwl -0x2(%rbp),%eax
movzwl -0x4(%rbp),%ecx
add    %ecx,%eax
mov    %ax,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
movzwl -0x2(%rbp),%ecx
cmp    %ecx,%eax
jge    114b <plusccsa+0x3b>
mov    $0x0,%al
call   1030 <abort@plt>
movzwl -0x6(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plusccsa>:
add    %di,%si
jb     1118 <plusccsa+0x8>
mov    %esi,%eax
ret
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define zeroext i16 @plusccsa(i16 zeroext %0, i16 zeroext %1) {
%3 = alloca i16
%4 = alloca i16
%5 = alloca i16
store i16 %0, i16* %3
store i16 %1, i16* %4
%6 = load i16, i16* %3
%7 = zext i16 %6 to i32
%8 = load i16, i16* %4
%9 = zext i16 %8 to i32
%10 = add nsw i32 %7, %9
%11 = trunc i32 %10 to i16
store i16 %11, i16* %5
%12 = load i16, i16* %5
%13 = zext i16 %12 to i32
%14 = load i16, i16* %3
%15 = zext i16 %14 to i32
%16 = icmp slt i32 %13, %15
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (...) @abort()
unreachable
19: ; preds = %2
%20 = load i16, i16* %5
ret i16 %20
}

LLVM IR (-O2):
define zeroext i16 @plusccsa(i16 zeroext %0, i16 zeroext %1) {
%3 = add i16 %1, %0
%4 = icmp ult i16 %3, %0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %2
ret i16 %3
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0xbc() {
  Assert_real((isodigit(188) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isodigit.c",
              945, ("isodigit should be 0 for 0xbc"));
}


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

x86 assembly (clang, -O2):
<t_isodigit_0xbc>:
push   %rax
mov    $0xbc,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0x3b1,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0xbc\00"
define void @t_isodigit_0xbc() {
%1 = call i64 @isodigit(i32 188)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 945, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00"
@.str.1 = [30 x i8] c"isodigit should be 0 for 0xbc\00"
define void @t_isodigit_0xbc() {
%1 = tail call i64 @isodigit(i32 188)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 945, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
int main(void) {
  static unsigned int count = 1;
  count++;
  printf("%u\n", count);
  main();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    0x2f02(%rip),%esi
add    $0x1,%esi
mov    %esi,0x2ef9(%rip)
mov    %rbx,%rdi
call   1030 <printf@plt>
jmp    1120 <main+0x10>

LLVM IR (-O0):
@main.count = internal global i32 1
@.str = [4 x i8] c"%u\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @main.count
%3 = add i32 %2, 1
store i32 %3, i32* @main.count
%4 = load i32, i32* @main.count
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @main()
ret i32 0
}

LLVM IR (-O2):
@main.count = internal unnamed_addr global i32 1
@.str = [4 x i8] c"%u\0A\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = load i32, i32* @main.count
%3 = add i32 %2, 1
store i32 %3, i32* @main.count
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %1
}
/* Variables and functions */
int clar_test(int, char **);
int main(int argc, char **argv) { return clar_test(argc, argv); }


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),%edi
mov    -0x10(%rbp),%rsi
call   1030 <clar_test@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
jmp    1030 <clar_test@plt>

LLVM IR (-O0):
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 = load i8**, i8*** %5
%8 = call i32 @clar_test(i32 %6, i8** %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @clar_test(i32 %0, i8** %1)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ volatile uint64_t;

/* Variables and functions */
void volatile_fetch_and_u64(uint64_t *dest, uint64_t val) {
  *((volatile uint64_t *)dest) &= val;
}


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

x86 assembly (clang, -O2):
<volatile_fetch_and_u64>:
mov    %esi,-0x4(%rsp)
mov    -0x4(%rsp),%eax
and    %eax,(%rdi)
ret

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

LLVM IR (-O2):
define void @volatile_fetch_and_u64(i32* %0, i32 %1) {
%3 = alloca i32
store volatile i32 %1, i32* %3
%4 = load volatile i32, i32* %3
%5 = load volatile i32, i32* %0
%6 = and i32 %5, %4
store volatile i32 %6, i32* %0
ret void
}
/* Variables and functions */
bool just_fix_it_on_production(void) { return false; }


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

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

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

LLVM IR (-O2):
define i32 @just_fix_it_on_production() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void terror(const 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
}
void ff_hevc_put_hevc_bi_w_qpel_h16_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_w_qpel_h16_8_sse4() {
ret void
}
/* Type definitions */
typedef size_t int8_t;

/* Variables and functions */
int bit2char(size_t *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ putchar(char);
void char2bit(int8_t c) {
  int8_t i, bytes[8];
  for (i = 7; i >= 0; i--) {
    bytes[i] = c % 2;
    c = c >> 1;
  }
  putchar('\n');
  printf("einai %d\n", bit2char(bytes));
}


x86 assembly (clang, -O0):
<char2bit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x7,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jb     117d <char2bit+0x4d>
mov    -0x8(%rbp),%rcx
and    $0x1,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,-0x50(%rbp,%rax,8)
mov    -0x8(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
jmp    1144 <char2bit+0x14>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x50(%rbp),%rdi
call   1050 <bit2char@plt>
mov    %eax,%esi
lea    0xe67(%rip),%rdi
call   1040 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
LLVM IR (-O0):
@.str = [10 x i8] c"einai %d\0A\00"
define void @char2bit(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca [8 x i64]
store i64 %0, i64* %2
store i64 7, i64* %3
br label %5
5: ; preds = %15, %1
%6 = load i64, i64* %3
%7 = icmp uge i64 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i64, i64* %2
%10 = urem i64 %9, 2
%11 = load i64, i64* %3
%12 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 %11
store i64 %10, i64* %12
%13 = load i64, i64* %2
%14 = lshr i64 %13, 1
store i64 %14, i64* %2
br label %15
15: ; preds = %8
%16 = load i64, i64* %3
%17 = add i64 %16, -1
store i64 %17, i64* %3
br label %5
18: ; preds = %5
%19 = call i32 @putchar(i8 signext 10)
%20 = getelementptr inbounds [8 x i64], [8 x i64]* %4, i64 0, i64 0
%21 = call i32 @bit2char(i64* %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %21)
ret void
}

LLVM IR (-O2):
/* Type definitions */
struct pt_decoder {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ pt_fetch_decoder(struct pt_decoder *);
void ptu_sync_decoder(struct pt_decoder *decoder) {
  (void)pt_fetch_decoder(decoder);
}


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

x86 assembly (clang, -O2):
<ptu_sync_decoder>:
jmp    1030 <pt_fetch_decoder@plt>

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

LLVM IR (-O2):
%struct.pt_decoder = type { i32 }
define void @ptu_sync_decoder(%struct.pt_decoder* %0) {
%2 = tail call i32 @pt_fetch_decoder(%struct.pt_decoder* %0)
ret void
}
int getPointer_GpmScreen(int *column, int *row) {
  int ok = 0;
  return ok;
}


x86 assembly (clang, -O0):
<getPointer_GpmScreen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @getPointer_GpmScreen(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
%6 = load i32, i32* %5
ret i32 %6
}

LLVM IR (-O2):
define i32 @getPointer_GpmScreen(i32* nocapture readnone %0, i32* nocapture readnone %1) {
ret i32 0
}
void TimerControlEvent(unsigned long ulBase, unsigned long ulTimer,
                       unsigned long ulEvent) {
  ;

  ;
  ulEvent &= ulTimer & (0x0000000C | 0x00000C00);
  (*((volatile unsigned long *)(ulBase + 0x0000000C))) =
      (((*((volatile unsigned long *)(ulBase + 0x0000000C))) &
        ~(0x0000000C | 0x00000C00)) |
       ulEvent);
}


x86 assembly (clang, -O0):
<TimerControlEvent>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
and    $0xc0c,%rax
and    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%rcx
and    $0xfffffffffffff3f3,%rcx
or     -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0xc(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<TimerControlEvent>:
and    %edx,%esi
and    $0xc0c,%esi
mov    $0xfffffffffffff3f3,%rax
and    0xc(%rdi),%rax
or     %rsi,%rax
mov    %rax,0xc(%rdi)
ret

LLVM IR (-O0):
define void @TimerControlEvent(i64 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load i64, i64* %5
%8 = and i64 %7, 3084
%9 = load i64, i64* %6
%10 = and i64 %9, %8
store i64 %10, i64* %6
%11 = load i64, i64* %4
%12 = add i64 %11, 12
%13 = inttoptr i64 %12 to i64*
%14 = load volatile i64, i64* %13
%15 = and i64 %14, -3085
%16 = load i64, i64* %6
%17 = or i64 %15, %16
%18 = load i64, i64* %4
%19 = add i64 %18, 12
%20 = inttoptr i64 %19 to i64*
store volatile i64 %17, i64* %20
ret void
}

LLVM IR (-O2):
define void @TimerControlEvent(i64 %0, i64 %1, i64 %2) {
%4 = and i64 %1, 3084
%5 = and i64 %4, %2
%6 = add i64 %0, 12
%7 = inttoptr i64 %6 to i64*
%8 = load volatile i64, i64* %7
%9 = and i64 %8, -3085
%10 = or i64 %9, %5
store volatile i64 %10, i64* %7
ret void
}
void v_translate(const float *m, float *out) {
  out[0] = m[12];
  out[1] = m[13];
  out[2] = m[14];
}


x86 assembly (clang, -O0):
<v_translate>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movss  0x30(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0x34(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x8(%rbp),%rax
movss  0x38(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<v_translate>:
movss  0x30(%rdi),%xmm0
movss  %xmm0,(%rsi)
movss  0x34(%rdi),%xmm0
movss  %xmm0,0x4(%rsi)
movss  0x38(%rdi),%xmm0
movss  %xmm0,0x8(%rsi)
ret

LLVM IR (-O0):
define void @v_translate(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %3
%6 = getelementptr inbounds float, float* %5, i64 12
%7 = load float, float* %6
%8 = load float*, float** %4
%9 = getelementptr inbounds float, float* %8, i64 0
store float %7, float* %9
%10 = load float*, float** %3
%11 = getelementptr inbounds float, float* %10, i64 13
%12 = load float, float* %11
%13 = load float*, float** %4
%14 = getelementptr inbounds float, float* %13, i64 1
store float %12, float* %14
%15 = load float*, float** %3
%16 = getelementptr inbounds float, float* %15, i64 14
%17 = load float, float* %16
%18 = load float*, float** %4
%19 = getelementptr inbounds float, float* %18, i64 2
store float %17, float* %19
ret void
}

LLVM IR (-O2):
define void @v_translate(float* nocapture %0, float* nocapture writeonly %1) {
%3 = getelementptr inbounds float, float* %0, i64 12
%4 = load float, float* %3
store float %4, float* %1
%5 = getelementptr inbounds float, float* %0, i64 13
%6 = load float, float* %5
%7 = getelementptr inbounds float, float* %1, i64 1
store float %6, float* %7
%8 = getelementptr inbounds float, float* %0, i64 14
%9 = load float, float* %8
%10 = getelementptr inbounds float, float* %1, i64 2
store float %9, float* %10
ret void
}
/* Variables and functions */
int /*<<< orphan*/ put8(int);
void mov_reg32_reg32(unsigned long reg1, unsigned long reg2) {
  if (reg1 == reg2)
    return;
  put8(0x89);
  put8(0xC0 | (reg2 << 3) | reg1);
}


x86 assembly (clang, -O0):
<mov_reg32_reg32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jne    1133 <mov_reg32_reg32+0x23>
jmp    1156 <mov_reg32_reg32+0x46>
mov    $0x89,%edi
call   1030 <put8@plt>
mov    -0x10(%rbp),%rax
shl    $0x3,%rax
or     $0xc0,%rax
or     -0x8(%rbp),%rax
mov    %eax,%edi
call   1030 <put8@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mov_reg32_reg32>:
cmp    %rsi,%rdi
jne    1116 <mov_reg32_reg32+0x6>
ret
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x89,%edi
call   1030 <put8@plt>
shl    $0x3,%r14d
or     %r14d,%ebx
or     $0xc0,%ebx
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <put8@plt>

LLVM IR (-O0):
define void @mov_reg32_reg32(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp eq i64 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %2
br label %18
9: ; preds = %2
%10 = call i32 @put8(i32 137)
%11 = load i64, i64* %4
%12 = shl i64 %11, 3
%13 = or i64 192, %12
%14 = load i64, i64* %3
%15 = or i64 %13, %14
%16 = trunc i64 %15 to i32
%17 = call i32 @put8(i32 %16)
br label %18
18: ; preds = %9, %8
ret void
}

LLVM IR (-O2):
define void @mov_reg32_reg32(i64 %0, i64 %1) {
%3 = icmp eq i64 %0, %1
br i1 %3, label %11, label %4
4: ; preds = %2
%5 = tail call i32 @put8(i32 137)
%6 = shl i64 %1, 3
%7 = or i64 %6, %0
%8 = trunc i64 %7 to i32
%9 = or i32 %8, 192
%10 = tail call i32 @put8(i32 %9)
br label %11
11: ; preds = %2, %4
ret void
}
void ECDSA_get_ex_new_index(void) {}


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

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

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

LLVM IR (-O2):
define void @ECDSA_get_ex_new_index() {
ret void
}
void funct(int i) { i = 0; }


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

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

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

LLVM IR (-O2):
define void @funct(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  size_t n;
  printf("%ld", sizeof(int));
  return 0;
}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @gtk_window_set_role() {
ret void
}
int Trie_AlwaysTrue(void *value, void *cookie) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @Trie_AlwaysTrue(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ PKCS7;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ *ASN1_item_d2i_bio(int /*<<< orphan*/ *,
                                      int /*<<< orphan*/ *,
                                      int /*<<< orphan*/ **);
int /*<<< orphan*/ PKCS7_it;
PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) {
  return ASN1_item_d2i_bio(&PKCS7_it, bp, p7);
}


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

x86 assembly (clang, -O2):
<d2i_PKCS7_bio>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2ec3(%rip),%rdi
jmp    1030 <ASN1_item_d2i_bio@plt>

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

LLVM IR (-O2):
@PKCS7_it = global i32 0
define i32* @d2i_PKCS7_bio(i32* %0, i32** %1) {
%3 = tail call i32* @ASN1_item_d2i_bio(i32* @PKCS7_it, i32* %0, i32** %1)
ret i32* %3
}
unsigned char ensure_printable(unsigned char ch) { return ch >= 32 ? ch : 32; }


x86 assembly (clang, -O0):
<ensure_printable>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x20,%eax
jl     1123 <ensure_printable+0x23>
movzbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <ensure_printable+0x30>
mov    $0x20,%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <ensure_printable+0x30>
mov    -0x8(%rbp),%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ensure_printable>:
cmp    $0x21,%dil
mov    $0x20,%eax
cmovae %edi,%eax
ret

LLVM IR (-O0):
define zeroext i8 @ensure_printable(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = icmp sge i32 %4, 32
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i8, i8* %2
%8 = zext i8 %7 to i32
br label %10
9: ; preds = %1
br label %10
10: ; preds = %9, %6
%11 = phi i32 [ %8, %6 ], [ 32, %9 ]
%12 = trunc i32 %11 to i8
ret i8 %12
}

LLVM IR (-O2):
define zeroext i8 @ensure_printable(i8 zeroext %0) {
%2 = icmp ugt i8 %0, 32
%3 = select i1 %2, i8 %0, i8 32
ret i8 %3
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int64_t timestamp_seconds(int64_t v) { return v / 1000000; }


x86 assembly (clang, -O0):
<timestamp_seconds>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xf4240,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<timestamp_seconds>:
movslq %edi,%rax
imul   $0x431bde83,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rax
add    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @timestamp_seconds(i32 %0) {
%2 = sdiv i32 %0, 1000000
ret i32 %2
}
char zig_zag_unfixc(unsigned char inp) {
  return ((char)(((inp)&1) ? (~((inp) >> 1)) : ((inp) >> 1)));
}


x86 assembly (clang, -O0):
<zig_zag_unfixc>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     112c <zig_zag_unfixc+0x2c>
movzbl -0x1(%rbp),%eax
sar    $0x1,%eax
xor    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <zig_zag_unfixc+0x36>
movzbl -0x1(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<zig_zag_unfixc>:
mov    %edi,%eax
shr    %al
and    $0x1,%dil
neg    %dil
xor    %dil,%al
ret

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

LLVM IR (-O2):
define signext i8 @zig_zag_unfixc(i8 zeroext %0) {
%2 = lshr i8 %0, 1
%3 = and i8 %0, 1
%4 = sub nsw i8 0, %3
%5 = xor i8 %2, %4
ret i8 %5
}
/* Variables and functions */
int /*<<< orphan*/ ancestrymap2geno(char *, char *, int *, int *);
int /*<<< orphan*/ print_convert(int, int);
void R_ancestrymap2geno(char **R_input_file, char **R_output_file, int *N,
                        int *M) {
  ancestrymap2geno(*R_input_file, *R_output_file, N, M);
  print_convert(*N, *M);
}


x86 assembly (clang, -O0):
<R_ancestrymap2geno>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
call   1040 <ancestrymap2geno@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    (%rax),%esi
call   1030 <print_convert@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<R_ancestrymap2geno>:
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%rbx
mov    (%rdi),%rdi
mov    (%rsi),%rsi
call   1040 <ancestrymap2geno@plt>
mov    (%rbx),%edi
mov    (%r14),%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <print_convert@plt>

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

LLVM IR (-O2):
define void @R_ancestrymap2geno(i8** nocapture %0, i8** nocapture %1, i32* %2, i32* %3) {
%5 = load i8*, i8** %0
%6 = load i8*, i8** %1
%7 = tail call i32 @ancestrymap2geno(i8* %5, i8* %6, i32* %2, i32* %3)
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = tail call i32 @print_convert(i32 %8, i32 %9)
ret void
}
void boundaries_clean() {}


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

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

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

LLVM IR (-O2):
define void @boundaries_clean() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sw_shell_main();
int shelltest(int argc, char *argv[]) {
  sw_shell_main();
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @shelltest(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @sw_shell_main()
ret i32 0
}
adr0adr1(r0, r1, x0, x1, p0, p1) double r0, r1;
double *p0, *p1;
{
  if ((*((double *)10000000)) <=
      (*((double *)(11111111 & ~(__alignof__(double) - 1)))))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adr0adr1>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    $0x989680,%eax
movsd  (%rax),%xmm1
mov    $0xa98ac0,%eax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jb     1144 <adr0adr1+0x44>
movl   $0x1,-0x4(%rbp)
jmp    114b <adr0adr1+0x4b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adr0adr1>:
movsd  0xa98ac0,%xmm0
xor    %eax,%eax
ucomisd 0x989680,%xmm0
setae  %al
ret

LLVM IR (-O0):
define i32 @adr0adr1(double %0, double %1, i32 %2, i32 %3, double* %4, double* %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
store double %0, double* %8
store double %1, double* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store double* %4, double** %12
store double* %5, double** %13
%14 = load double, double* inttoptr (i64 10000000 to double*)
%15 = load double, double* inttoptr (i64 11111104 to double*)
%16 = fcmp ole double %14, %15
br i1 %16, label %17, label %18
17: ; preds = %6
store i32 1, i32* %7
br label %19
18: ; preds = %6
store i32 0, i32* %7
br label %19
19: ; preds = %18, %17
%20 = load i32, i32* %7
ret i32 %20
}

LLVM IR (-O2):
define i32 @adr0adr1(double %0, double %1, i32 %2, i32 %3, double* nocapture readnone %4, double* nocapture readnone %5) {
%7 = load double, double* inttoptr (i64 10000000 to double*)
%8 = load double, double* inttoptr (i64 11111104 to double*)
%9 = fcmp ole double %7, %8
%10 = zext i1 %9 to i32
ret i32 %10
}