xunge/DecIR huggingface dataset:
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fprintf(int /*<<< orphan*/ *, char *, void *);
int zomp_writePtr(void *file, void *val) {
  return fprintf((FILE *)file, "%p", val);
}


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

x86 assembly (clang, -O2):
<zomp_writePtr>:
mov    %rsi,%rdx
lea    0xee6(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%p\00"
define i32 @zomp_writePtr(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i32*
%7 = load i8*, i8** %4
%8 = call i32 @fprintf(i32* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %7)
ret i32 %8
}

LLVM IR (-O2):
@.str = [3 x i8] c"%p\00"
define i32 @zomp_writePtr(i8* nocapture %0, i8* %1) {
%3 = bitcast i8* %0 to i32*
%4 = tail call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
ret i32 %4
}
void stStopHandle_() { return; }


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

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

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

LLVM IR (-O2):
define void @stStopHandle_() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write_to_console(char *, int, int /*<<< orphan*/, int);
void welcome() { write_to_console("Hi Linux user!\n", 0x1, 0, 1); }


x86 assembly (clang, -O0):
<welcome>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x1,%ecx
xor    %edx,%edx
mov    %ecx,%esi
call   1030 <write_to_console@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<welcome>:
lea    0xee9(%rip),%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x1,%ecx
jmp    1030 <write_to_console@plt>

LLVM IR (-O0):
@.str = [16 x i8] c"Hi Linux user!\0A\00"
define void @welcome() {
%1 = call i32 @write_to_console(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"Hi Linux user!\0A\00"
define void @welcome() {
%1 = tail call i32 @write_to_console(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1, i32 0, i32 1)
ret void
}
int UAX_Asm_RegIsQWordP(int reg) {
  if ((reg & 0xF0) == 0x10)
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<UAX_Asm_RegIsQWordP>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0xf0,%eax
cmp    $0x10,%eax
jne    1124 <UAX_Asm_RegIsQWordP+0x24>
movl   $0x1,-0x4(%rbp)
jmp    112b <UAX_Asm_RegIsQWordP+0x2b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<UAX_Asm_RegIsQWordP>:
and    $0xf0,%edi
xor    %eax,%eax
cmp    $0x10,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @UAX_Asm_RegIsQWordP(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = and i32 %4, 240
%6 = icmp eq i32 %5, 16
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @UAX_Asm_RegIsQWordP(i32 %0) {
%2 = and i32 %0, 240
%3 = icmp eq i32 %2, 16
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
struct esp_rest {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ esp_rest_request(struct esp_rest *, char const *, char *,
                                    char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
void esp_rest_put(struct esp_rest *er, const char *path, const char *data) {
  esp_rest_request(er, path, "PUT", data, strlen(data));
}


x86 assembly (clang, -O0):
<esp_rest_put>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%rcx
mov    %eax,%r8d
lea    0xe95(%rip),%rdx
call   1030 <esp_rest_request@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<esp_rest_put>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
mov    %rdx,%rdi
call   1040 <strlen@plt>
lea    0xec3(%rip),%rdx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbx,%rcx
mov    %eax,%r8d
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <esp_rest_request@plt>

LLVM IR (-O0):
%struct.esp_rest = type { i32 }
@.str = [4 x i8] c"PUT\00"
define void @esp_rest_put(%struct.esp_rest* %0, i8* %1, i8* %2) {
%4 = alloca %struct.esp_rest*
%5 = alloca i8*
%6 = alloca i8*
store %struct.esp_rest* %0, %struct.esp_rest** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load %struct.esp_rest*, %struct.esp_rest** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = load i8*, i8** %6
%11 = call i32 @strlen(i8* %10)
%12 = call i32 @esp_rest_request(%struct.esp_rest* %7, i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %9, i32 %11)
ret void
}

LLVM IR (-O2):
%struct.esp_rest = type { i32 }
@.str = [4 x i8] c"PUT\00"
define void @esp_rest_put(%struct.esp_rest* %0, i8* %1, i8* %2) {
%4 = tail call i32 @strlen(i8* %2)
%5 = tail call i32 @esp_rest_request(%struct.esp_rest* %0, i8* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %2, i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ putch(char const);
int puts(const char *Str) {
  const char *Ptr;
  for (Ptr = Str; *Ptr != '\0'; Ptr++) {
    putch(*Ptr);
  }
  return ((Ptr - Str));
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1151 <puts+0x41>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putch@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <puts+0x14>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%al
mov    %rdi,%rbx
test   %al,%al
je     1144 <puts+0x34>
mov    %r14,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl %al,%edi
call   1030 <putch@plt>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1130 <puts+0x20>
sub    %r14d,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @puts(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call i32 @putch(i8 signext %5)
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i8* [ %0, %1 ], [ %8, %4 ]
%13 = ptrtoint i8* %12 to i64
%14 = ptrtoint i8* %0 to i64
%15 = sub i64 %13, %14
%16 = trunc i64 %15 to i32
ret i32 %16
}
/* Variables and functions */
int /*<<< orphan*/ my_log_error(char *, char const *, double, double);
void my_assert_equalDouble(const char *description, double val1, double val2) {
  if (val1 != val2)
    my_log_error("assert failed, \"%s\" values do not match (%lf != %lf)\n",
                 description, val1, val2);
}


x86 assembly (clang, -O0):
<my_assert_equalDouble>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jne    1141 <my_assert_equalDouble+0x31>
jp     1141 <my_assert_equalDouble+0x31>
jmp    115b <my_assert_equalDouble+0x4b>
mov    -0x8(%rbp),%rsi
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xeaa(%rip),%rdi
call   1030 <my_log_error@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_assert_equalDouble>:
ucomisd %xmm1,%xmm0
jne    1118 <my_assert_equalDouble+0x8>
jnp    1127 <my_assert_equalDouble+0x17>
mov    %rdi,%rsi
lea    0xede(%rip),%rdi
jmp    1030 <my_log_error@plt>
ret

LLVM IR (-O0):
@.str = [54 x i8] c"assert failed, \22%s\22 values do not match (%lf != %lf)\0A\00"
define void @my_assert_equalDouble(i8* %0, double %1, double %2) {
%4 = alloca i8*
%5 = alloca double
%6 = alloca double
store i8* %0, i8** %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %5
%8 = load double, double* %6
%9 = fcmp une double %7, %8
br i1 %9, label %10, label %15
10: ; preds = %3
%11 = load i8*, i8** %4
%12 = load double, double* %5
%13 = load double, double* %6
%14 = call i32 @my_log_error(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %11, double %12, double %13)
br label %15
15: ; preds = %10, %3
ret void
}

LLVM IR (-O2):
@.str = [54 x i8] c"assert failed, \22%s\22 values do not match (%lf != %lf)\0A\00"
define void @my_assert_equalDouble(i8* %0, double %1, double %2) {
%4 = fcmp une double %1, %2
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @my_log_error(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0), i8* %0, double %1, double %2)
br label %7
7: ; preds = %5, %3
ret void
}
void ASN1_item_free(void) {}


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

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

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

LLVM IR (-O2):
define void @ASN1_item_free() {
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
float Int8ToFloat_UNORM(const uint8_t input) { return (float)input / 255.0f; }


x86 assembly (clang, -O0):
<Int8ToFloat_UNORM>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cvtsi2ssq -0x8(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Int8ToFloat_UNORM>:
cvtsi2ss %rdi,%xmm0
divss  0xef3(%rip),%xmm0
ret

LLVM IR (-O0):
define float @Int8ToFloat_UNORM(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = sitofp i64 %3 to float
%5 = fdiv float %4, 2.550000e+02
ret float %5
}

LLVM IR (-O2):
define float @Int8ToFloat_UNORM(i64 %0) {
%2 = sitofp i64 %0 to float
%3 = fdiv float %2, 2.550000e+02
ret float %3
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ timer_set(int, int /*<<< orphan*/);
bool timer_destroy(int fd) {
  timer_set(fd, 0);
  close(fd);
  return true;
}


x86 assembly (clang, -O0):
<timer_destroy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1040 <timer_set@plt>
mov    -0x4(%rbp),%edi
call   1030 <close@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<timer_destroy>:
push   %rbx
mov    %edi,%ebx
xor    %esi,%esi
call   1040 <timer_set@plt>
mov    %ebx,%edi
call   1030 <close@plt>
mov    $0x1,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @timer_destroy(i32 %0) {
%2 = tail call i32 @timer_set(i32 %0, i32 0)
%3 = tail call i32 @close(i32 %0)
ret i32 1
}
void ff_hevc_put_hevc_bi_qpel_hv4_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_hv4_8_sse4() {
ret void
}
void declarationsAsSideEffects1(void) {
  int i = sizeof(enum type{e});
  i = e;
  int j = sizeof(struct _type1 { int k; });
  struct _type1 *pt1;
  struct _type1 s1;
  void *cpt;
  (struct _type2 { int k; } *)cpt;
  struct _type2 *pt2;
  struct _type2 s2;
  struct struc {
    struct innerStruct {
      int i;
    } * pInnerStruct;
  };
  struct innerStruct stillAvaible;
  struct struc *pt3;
  struct struc s3;
  struct innerStruct *pt4;
  struct innerStruct s4;
}


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

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

LLVM IR (-O0):
%struct._type1 = type { i32 }
%struct._type2 = type { i32 }
%struct.innerStruct = type { i32 }
%struct.struc = type { %struct.innerStruct* }
define void @declarationsAsSideEffects1() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct._type1*
%4 = alloca %struct._type1
%5 = alloca i8*
%6 = alloca %struct._type2*
%7 = alloca %struct._type2
%8 = alloca %struct.innerStruct
%9 = alloca %struct.struc*
%10 = alloca %struct.struc
%11 = alloca %struct.innerStruct*
%12 = alloca %struct.innerStruct
store i32 4, i32* %1
store i32 0, i32* %1
store i32 4, i32* %2
%13 = load i8*, i8** %5
%14 = bitcast i8* %13 to %struct._type2*
ret void
}

LLVM IR (-O2):
%struct.innerStruct = type { i32 }
%struct._type1 = type { i32 }
%struct._type2 = type { i32 }
%struct.struc = type { %struct.innerStruct* }
define void @declarationsAsSideEffects1() {
ret void
}
/* Type definitions */
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ ssize_t;
typedef int /*<<< orphan*/ socklen_t;

/* Variables and functions */
int /*<<< orphan*/ recvfrom(int, void *, size_t, int, struct sockaddr *,
                            int /*<<< orphan*/ *);
ssize_t txc_libc_recvfrom(int s, void *buf, size_t len, int flags,
                          struct sockaddr *from, socklen_t *fromlen) {
  return recvfrom(s, buf, len, flags, from, fromlen);
}


x86 assembly (clang, -O0):
<txc_libc_recvfrom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
call   1030 <recvfrom@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<txc_libc_recvfrom>:
jmp    1030 <recvfrom@plt>

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

LLVM IR (-O2):
%struct.sockaddr = type { i32 }
define i32 @txc_libc_recvfrom(i32 %0, i8* %1, i64 %2, i32 %3, %struct.sockaddr* %4, i32* %5) {
%7 = tail call i32 @recvfrom(i32 %0, i8* %1, i64 %2, i32 %3, %struct.sockaddr* %4, i32* %5)
ret i32 %7
}
void par_shapes__subtract3(float *result, float const *a) {
  result[0] -= a[0];
  result[1] -= a[1];
  result[2] -= a[2];
}


x86 assembly (clang, -O0):
<par_shapes__subtract3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0x4(%rax)
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm1
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<par_shapes__subtract3>:
movss  (%rdi),%xmm0
movss  0x4(%rdi),%xmm1
subss  (%rsi),%xmm0
movss  %xmm0,(%rdi)
subss  0x4(%rsi),%xmm1
movss  %xmm1,0x4(%rdi)
movss  0x8(%rdi),%xmm0
subss  0x8(%rsi),%xmm0
movss  %xmm0,0x8(%rdi)
ret

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

LLVM IR (-O2):
define void @par_shapes__subtract3(float* nocapture %0, float* nocapture %1) {
%3 = load float, float* %1
%4 = load float, float* %0
%5 = fsub float %4, %3
store float %5, float* %0
%6 = getelementptr inbounds float, float* %1, i64 1
%7 = load float, float* %6
%8 = getelementptr inbounds float, float* %0, i64 1
%9 = load float, float* %8
%10 = fsub float %9, %7
store float %10, float* %8
%11 = getelementptr inbounds float, float* %1, i64 2
%12 = load float, float* %11
%13 = getelementptr inbounds float, float* %0, i64 2
%14 = load float, float* %13
%15 = fsub float %14, %12
store float %15, float* %13
ret void
}
/* Variables and functions */
int /*<<< orphan*/ dswap(int const *, double *, int const *, double *,
                         int const *);
void c_dswap(const int N, double *X, const int strideX, double *Y,
             const int strideY) {
  dswap(&N, X, &strideX, Y, &strideY);
}


x86 assembly (clang, -O0):
<c_dswap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    -0x14(%rbp),%rdx
lea    -0x24(%rbp),%r8
call   1030 <dswap@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_dswap>:
sub    $0x18,%rsp
mov    %edi,0x14(%rsp)
mov    %edx,0x10(%rsp)
mov    %r8d,0xc(%rsp)
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%r8
call   1030 <dswap@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @c_dswap(i32 %0, double* %1, i32 %2, double* %3, i32 %4) {
%6 = alloca i32
%7 = alloca double*
%8 = alloca i32
%9 = alloca double*
%10 = alloca i32
store i32 %0, i32* %6
store double* %1, double** %7
store i32 %2, i32* %8
store double* %3, double** %9
store i32 %4, i32* %10
%11 = load double*, double** %7
%12 = load double*, double** %9
%13 = call i32 @dswap(i32* %6, double* %11, i32* %8, double* %12, i32* %10)
ret void
}

LLVM IR (-O2):
define void @c_dswap(i32 %0, double* %1, i32 %2, double* %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %6
store i32 %2, i32* %7
store i32 %4, i32* %8
%9 = call i32 @dswap(i32* %6, double* %1, i32* %7, double* %3, i32* %8)
ret void
}
int decompressor_impl_buffer_reset(struct microfs_sb_info *sbi, void *data) {
  (void)sbi;
  (void)data;
  return 0;
}


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

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

LLVM IR (-O0):
%struct.microfs_sb_info = type opaque
define i32 @decompressor_impl_buffer_reset(%struct.microfs_sb_info* %0, i8* %1) {
%3 = alloca %struct.microfs_sb_info*
%4 = alloca i8*
store %struct.microfs_sb_info* %0, %struct.microfs_sb_info** %3
store i8* %1, i8** %4
%5 = load %struct.microfs_sb_info*, %struct.microfs_sb_info** %3
%6 = load i8*, i8** %4
ret i32 0
}

LLVM IR (-O2):
%struct.microfs_sb_info = type opaque
define i32 @decompressor_impl_buffer_reset(%struct.microfs_sb_info* nocapture readnone %0, i8* nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ chdir(char *);
int /*<<< orphan*/ system(char *);
int main() {
  chdir("/mnt/user/code/LolcodeTest/bin");
  system("/mnt/user/jvm/java Main");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <chdir@plt>
lea    0xee8(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [31 x i8] c"/mnt/user/code/LolcodeTest/bin\00"
@.str.1 = [24 x i8] c"/mnt/user/jvm/java Main\00"
define i32 @main() {
%1 = call i32 @chdir(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @system(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"/mnt/user/code/LolcodeTest/bin\00"
@.str.1 = [24 x i8] c"/mnt/user/jvm/java Main\00"
define i32 @main() {
%1 = tail call i32 @chdir(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @system(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void DisplayMenu() {
  printf("1. Push.\n");
  printf("2. Pop.\n");
  printf("3. Display Stack.\n");
  printf("4. Check If Palindrome.\n");
  printf("5.Exit.\n");
}


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

x86 assembly (clang, -O2):
<DisplayMenu>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
lea    0xee7(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"1. Push.\0A\00"
@.str.1 = [9 x i8] c"2. Pop.\0A\00"
@.str.2 = [19 x i8] c"3. Display Stack.\0A\00"
@.str.3 = [25 x i8] c"4. Check If Palindrome.\0A\00"
@.str.4 = [9 x i8] c"5.Exit.\0A\00"
define void @DisplayMenu() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"1. Push.\00"
@str.5 = [8 x i8] c"2. Pop.\00"
@str.6 = [18 x i8] c"3. Display Stack.\00"
@str.7 = [24 x i8] c"4. Check If Palindrome.\00"
@str.8 = [8 x i8] c"5.Exit.\00"
define void @DisplayMenu() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.5, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.7, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.8, i64 0, i64 0))
ret void
}
int adds_si_test1(int a, int b, int c) {
  int d = a + b;
  if (d == 0)
    return a + c;
  else
    return b + d + c;
}


x86 assembly (clang, -O0):
<adds_si_test1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    112e <adds_si_test1+0x2e>
mov    -0x8(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    113a <adds_si_test1+0x3a>
mov    -0xc(%rbp),%eax
add    -0x14(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adds_si_test1>:
lea    (%rsi,%rdi,1),%ecx
lea    (%rsi,%rcx,1),%eax
test   %ecx,%ecx
cmove  %edi,%eax
add    %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @adds_si_test1(i32 %0, i32 %1, i32 %2) {
%4 = add nsw i32 %1, %0
%5 = icmp eq i32 %4, 0
%6 = add nsw i32 %4, %1
%7 = select i1 %5, i32 %0, i32 %6
%8 = add nsw i32 %7, %2
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void f2(int *a) {
  if (*a != 111111) {
    abort();
  }
  *a = 222222;
}


x86 assembly (clang, -O0):
<f2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x1b207,(%rax)
je     1133 <f2+0x23>
mov    $0x0,%al
call   1030 <abort@plt>
mov    -0x8(%rbp),%rax
movl   $0x3640e,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f2>:
push   %rax
cmpl   $0x1b207,(%rdi)
jne    1121 <f2+0x11>
movl   $0x3640e,(%rdi)
pop    %rax
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @f2(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* %3
%5 = icmp ne i32 %4, 111111
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @abort()
unreachable
8: ; preds = %1
%9 = load i32*, i32** %2
store i32 222222, i32* %9
ret void
}

LLVM IR (-O2):
define void @f2(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = icmp eq i32 %2, 111111
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (...) @abort()
unreachable
6: ; preds = %1
store i32 222222, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void close_pipe(int *fd) {
  close(fd[0]);
  close(fd[1]);
}


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

x86 assembly (clang, -O2):
<close_pipe>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%edi
call   1030 <close@plt>
mov    0x4(%rbx),%edi
pop    %rbx
jmp    1030 <close@plt>

LLVM IR (-O0):
define void @close_pipe(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 = call i32 @close(i32 %5)
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = load i32, i32* %8
%10 = call i32 @close(i32 %9)
ret void
}

LLVM IR (-O2):
define void @close_pipe(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @close(i32 %2)
%4 = getelementptr inbounds i32, i32* %0, i64 1
%5 = load i32, i32* %4
%6 = tail call i32 @close(i32 %5)
ret void
}
int test_imm_CBint64_highword_reg(long long val) {
  return ((val >> 32) & (0xCB << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_CBint64_highword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
sar    $0x20,%rdx
and    $0xcb,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_CBint64_highword_reg>:
movabs $0xcb00000000,%rax
test   %rax,%rdi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_CBint64_highword_reg(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = ashr i64 %3, 32
%5 = and i64 %4, 203
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_CBint64_highword_reg(i64 %0) {
%2 = and i64 %0, 871878361088
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
void *realloc(void *, size_t);
int /*<<< orphan*/ stderr;
void *btp_realloc(void *ptr, size_t size) {
  void *result = realloc(ptr, size);
  if (!result && size > 0) {
    fprintf(stderr, "btp: out of memory");
    exit(1);
  }
  return result;
}


x86 assembly (clang, -O0):
<btp_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1186 <btp_realloc+0x56>
cmpq   $0x0,-0x10(%rbp)
jbe    1186 <btp_realloc+0x56>
mov    0x2e72(%rip),%rax
mov    (%rax),%edi
lea    0xe89(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<btp_realloc>:
push   %rbx
mov    %rsi,%rbx
call   1040 <realloc@plt>
test   %rbx,%rbx
je     1143 <btp_realloc+0x13>
test   %rax,%rax
je     1145 <btp_realloc+0x15>
pop    %rbx
ret
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [19 x i8] c"btp: out of memory\00"
define i8* @btp_realloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
store i8* %0, i8** %3
store i64 %1, i64* %4
%6 = load i8*, i8** %3
%7 = load i64, i64* %4
%8 = call i8* @realloc(i8* %6, i64 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp ne i8* %9, null
br i1 %10, label %18, label %11
11: ; preds = %2
%12 = load i64, i64* %4
%13 = icmp ugt i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %11, %2
%19 = load i8*, i8** %5
ret i8* %19
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [19 x i8] c"btp: out of memory\00"
define noalias i8* @btp_realloc(i8* nocapture %0, i64 %1) {
%3 = tail call i8* @realloc(i8* %0, i64 %1)
%4 = icmp eq i8* %3, null
%5 = icmp ne i64 %1, 0
%6 = and i1 %5, %4
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @exit(i32 1)
unreachable
11: ; preds = %2
ret i8* %3
}
void UI_destroy_method(void) {}


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

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

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

LLVM IR (-O2):
define void @UI_destroy_method() {
ret void
}
unsigned int f90(unsigned int x, unsigned long int y) {
  return (x << ((-y) & (8 * sizeof(unsigned int) - 1))) + (x >> y);
}


x86 assembly (clang, -O0):
<f90>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%eax
xor    %ecx,%ecx
sub    -0x10(%rbp),%rcx
and    $0x1f,%rcx
shl    %cl,%eax
mov    -0x4(%rbp),%edx
mov    -0x10(%rbp),%rcx
shr    %cl,%edx
mov    %edx,%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f90>:
mov    %esi,%ecx
neg    %cl
mov    %edi,%eax
shl    %cl,%eax
mov    %esi,%ecx
shr    %cl,%edi
add    %edi,%eax
ret

LLVM IR (-O0):
define i32 @f90(i32 %0, i64 %1) {
%3 = alloca i32
%4 = alloca i64
store i32 %0, i32* %3
store i64 %1, i64* %4
%5 = load i32, i32* %3
%6 = load i64, i64* %4
%7 = sub i64 0, %6
%8 = and i64 %7, 31
%9 = trunc i64 %8 to i32
%10 = shl i32 %5, %9
%11 = load i32, i32* %3
%12 = load i64, i64* %4
%13 = trunc i64 %12 to i32
%14 = lshr i32 %11, %13
%15 = add i32 %10, %14
ret i32 %15
}

LLVM IR (-O2):
define i32 @f90(i32 %0, i64 %1) {
%3 = trunc i64 %1 to i32
%4 = sub i32 0, %3
%5 = and i32 %4, 31
%6 = shl i32 %0, %5
%7 = lshr i32 %0, %3
%8 = add i32 %6, %7
ret i32 %8
}
/* Variables and functions */
int get_feat_nc(int, int);
scalar_t__ is_valid_position(int, int);
int get_feat_wc(int x, int y) {
  if (is_valid_position(x, y)) {
    return get_feat_nc(x, y);
  } else {
    return 0x3F;
  }
}


x86 assembly (clang, -O0):
<get_feat_wc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <is_valid_position@plt>
cmp    $0x0,%rax
je     1156 <get_feat_wc+0x36>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <get_feat_nc@plt>
mov    %eax,-0x4(%rbp)
jmp    115d <get_feat_wc+0x3d>
movl   $0x3f,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_feat_wc>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
call   1040 <is_valid_position@plt>
test   %rax,%rax
je     1140 <get_feat_wc+0x20>
mov    %ebp,%edi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <get_feat_nc@plt>
mov    $0x3f,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @get_feat_wc(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = load i32, i32* %5
%8 = call i64 @is_valid_position(i32 %6, i32 %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = call i32 @get_feat_nc(i32 %11, i32 %12)
store i32 %13, i32* %3
br label %15
14: ; preds = %2
store i32 63, i32* %3
br label %15
15: ; preds = %14, %10
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
define i32 @get_feat_wc(i32 %0, i32 %1) {
%3 = tail call i64 @is_valid_position(i32 %0, i32 %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @get_feat_nc(i32 %0, i32 %1)
br label %7
7: ; preds = %2, %5
%8 = phi i32 [ %6, %5 ], [ 63, %2 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ pthread_exit(int /*<<< orphan*/);
scalar_t__ pthread_self();
int /*<<< orphan*/ sleep(int);
void funcion(void) {
  printf("Hilo %d \n", (int)pthread_self());
  sleep(2);
  pthread_exit(0);
}


x86 assembly (clang, -O0):
<funcion>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <pthread_self@plt>
mov    %eax,%esi
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
xor    %edi,%edi
call   1040 <pthread_exit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<funcion>:
push   %rax
xor    %eax,%eax
call   1050 <pthread_self@plt>
lea    0xeb1(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1060 <sleep@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <pthread_exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Hilo %d \0A\00"
define void @funcion() {
%1 = call i64 (...) @pthread_self()
%2 = trunc i64 %1 to i32
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @sleep(i32 2)
%5 = call i32 @pthread_exit(i32 0)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"Hilo %d \0A\00"
define void @funcion() {
%1 = tail call i64 (...) @pthread_self()
%2 = trunc i64 %1 to i32
%3 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @sleep(i32 2)
%5 = tail call i32 @pthread_exit(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ tool_cancel();
int /*<<< orphan*/ window_clear_scenery_should_close();
void window_clear_scenery_close() {
  if (!window_clear_scenery_should_close())
    tool_cancel();
}


x86 assembly (clang, -O0):
<window_clear_scenery_close>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <window_clear_scenery_should_close@plt>
cmp    $0x0,%eax
jne    113b <window_clear_scenery_close+0x1b>
mov    $0x0,%al
call   1040 <tool_cancel@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<window_clear_scenery_close>:
push   %rax
xor    %eax,%eax
call   1030 <window_clear_scenery_should_close@plt>
test   %eax,%eax
je     112e <window_clear_scenery_close+0xe>
pop    %rax
ret
xor    %eax,%eax
pop    %rcx
jmp    1040 <tool_cancel@plt>

LLVM IR (-O0):
define void @window_clear_scenery_close() {
%1 = call i32 (...) @window_clear_scenery_should_close()
%2 = icmp ne i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = call i32 (...) @tool_cancel()
br label %5
5: ; preds = %3, %0
ret void
}

LLVM IR (-O2):
define void @window_clear_scenery_close() {
%1 = tail call i32 (...) @window_clear_scenery_should_close()
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @tool_cancel()
br label %5
5: ; preds = %3, %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int *);
int main() {
  int people[12];
  printf("Base address of people %p\n", people);
  int *ptr = people + 1;
  printf("Base address of ptr %p\n", ptr);
  ptr++;
  printf("Base address of ptr %p\n", ptr);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rsi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    -0x40(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0xee4(%rip),%rdi
mov    %rsp,%rsi
call   1030 <printf@plt>
lea    0x4(%rsp),%rsi
lea    0xeeb(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Base address of people %p\0A\00"
@.str.1 = [24 x i8] c"Base address of ptr %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x i32]
%3 = alloca i32*
store i32 0, i32* %1
%4 = getelementptr inbounds [12 x i32], [12 x i32]* %2, i64 0, i64 0
%5 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32* %4)
%6 = getelementptr inbounds [12 x i32], [12 x i32]* %2, i64 0, i64 0
%7 = getelementptr inbounds i32, i32* %6, i64 1
store i32* %7, i32** %3
%8 = load i32*, i32** %3
%9 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i32 1
store i32* %11, i32** %3
%12 = load i32*, i32** %3
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32* %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"Base address of people %p\0A\00"
@.str.1 = [24 x i8] c"Base address of ptr %p\0A\00"
define i32 @main() {
%1 = alloca [12 x i32]
%2 = bitcast [12 x i32]* %1 to i8*
%3 = getelementptr inbounds [12 x i32], [12 x i32]* %1, i64 0, i64 0
%4 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = getelementptr inbounds [12 x i32], [12 x i32]* %1, i64 0, i64 1
%6 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%7 = getelementptr inbounds [12 x i32], [12 x i32]* %1, i64 0, i64 2
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32* %7)
ret i32 0
}
/* Variables and functions */
int f77(int *);
int f78(int *p) { return f77(p); }


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

x86 assembly (clang, -O2):
<f78>:
jmp    1030 <f77@plt>

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

LLVM IR (-O2):
define i32 @f78(i32* %0) {
%2 = tail call i32 @f77(i32* %0)
ret i32 %2
}
void gopal_exit(void) {}


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

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

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

LLVM IR (-O2):
define void @gopal_exit() {
ret void
}
void uart1_init(unsigned int baudrate) {}


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

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

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

LLVM IR (-O2):
define void @uart1_init(i32 %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ errno;
int shadow_user_pass_verify(const char *username, const char *password) {
  errno = ENOSYS;
  return -1;
}


x86 assembly (clang, -O0):
<shadow_user_pass_verify>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ed5(%rip),%rax
mov    (%rax),%ecx
mov    0x2ebc(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<shadow_user_pass_verify>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @shadow_user_pass_verify(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i32, i32* @ENOSYS
store i32 %5, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
@errno = global i32 0
define i32 @shadow_user_pass_verify(i8* nocapture readnone %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @ENOSYS
store i32 %3, i32* @errno
ret i32 -1
}
/* Variables and functions */
scalar_t__ strncmp(char const *, char const *, size_t);
bool strneq(const char *s1, const char *s2, size_t n) {
  return strncmp(s1, s2, n) == 0;
}


x86 assembly (clang, -O0):
<strneq>:
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 <strncmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @strneq(i8* %0, i8* %1, i64 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i64 @strncmp(i8* %7, i8* %8, i64 %9)
%11 = icmp eq i64 %10, 0
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @strneq(i8* %0, i8* %1, i64 %2) {
%4 = tail call i64 @strncmp(i8* %0, i8* %1, i64 %2)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ aa_endconv_st_be(float *, void *, int);
float aa_endconv_ld_be_s(void *src) {
  float r;
  aa_endconv_st_be(&r, src, sizeof(float));
  return r;
}


x86 assembly (clang, -O0):
<aa_endconv_ld_be_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdi
mov    $0x4,%edx
call   1030 <aa_endconv_st_be@plt>
movss  -0xc(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aa_endconv_ld_be_s>:
push   %rax
mov    %rdi,%rsi
lea    0x4(%rsp),%rdi
mov    $0x4,%edx
call   1030 <aa_endconv_st_be@plt>
movss  0x4(%rsp),%xmm0
pop    %rax
ret

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

LLVM IR (-O2):
define float @aa_endconv_ld_be_s(i8* %0) {
%2 = alloca float
%3 = bitcast float* %2 to i8*
%4 = call i32 @aa_endconv_st_be(float* %2, i8* %0, i32 4)
%5 = load float, float* %2
ret float %5
}
void gtk_table_set_row_spacings() {}


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

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

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

LLVM IR (-O2):
define void @gtk_table_set_row_spacings() {
ret void
}
int main(void) { return '\301'; }


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 -63
}
void s_stabinit(char *file, int argc, char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @s_stabinit(i8* nocapture %0, i32 %1, i8** nocapture %2) {
ret void
}