xunge/DecIR huggingface dataset:
unsigned long ft_itoa_len(int size) {
  if (size < 0x00)
    return (0x01 + ft_itoa_len(size * 0xfffffff));
  else if (size <= 0x09)
    return (0x01);
  else
    return (0x01 + ft_itoa_len(size / 0x0a));
}


x86 assembly (clang, -O0):
<ft_itoa_len>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    113e <ft_itoa_len+0x2e>
imul   $0xfffffff,-0xc(%rbp),%edi
call   1030 <ft_itoa_len@plt>
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    116f <ft_itoa_len+0x5f>
cmpl   $0x9,-0xc(%rbp)
jg     1155 <ft_itoa_len+0x45>
movq   $0x1,-0x8(%rbp)
jmp    116f <ft_itoa_len+0x5f>
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1030 <ft_itoa_len@plt>
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_itoa_len>:
push   %rbx
mov    $0x1,%ebx
test   %edi,%edi
js     111e <ft_itoa_len+0xe>
mov    %edi,%eax
jmp    113f <ft_itoa_len+0x2f>
mov    $0x1,%ebx
mov    %edi,%eax
cs nopw 0x0(%rax,%rax,1)
nop
shl    $0x1c,%eax
sub    %edi,%eax
add    $0x1,%rbx
test   %edi,%edi
mov    %eax,%edi
js     1130 <ft_itoa_len+0x20>
cmp    $0x9,%eax
jbe    115b <ft_itoa_len+0x4b>
mov    %eax,%eax
mov    $0xcccccccd,%edi
imul   %rax,%rdi
shr    $0x23,%rdi
call   1030 <ft_itoa_len@plt>
add    %rax,%rbx
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i64 @ft_itoa_len(i32 %0) {
%2 = icmp slt i32 %0, 0
br i1 %2, label %3, label %11
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ %0, %1 ]
%5 = phi i64 [ %7, %3 ], [ 0, %1 ]
%6 = mul nsw i32 %4, 268435455
%7 = add i64 %5, 1
%8 = icmp slt i32 %4, 0
br i1 %8, label %3, label %9
9: ; preds = %3
%10 = add i64 %5, 2
br label %11
11: ; preds = %9, %1
%12 = phi i64 [ 1, %1 ], [ %10, %9 ]
%13 = phi i32 [ %0, %1 ], [ %6, %9 ]
%14 = icmp ult i32 %13, 10
br i1 %14, label %15, label %17
15: ; preds = %11, %17
%16 = phi i64 [ %20, %17 ], [ %12, %11 ]
ret i64 %16
17: ; preds = %11
%18 = udiv i32 %13, 10
%19 = tail call i64 @ft_itoa_len(i32 %18)
%20 = add i64 %12, %19
br label %15
}
/* Variables and functions */
int in(int, int, int);
int u8islowergreeki(int n) { return in(n, 0x3B1, 0x3C9); }


x86 assembly (clang, -O0):
<u8islowergreeki>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x3b1,%esi
mov    $0x3c9,%edx
call   1030 <in@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<u8islowergreeki>:
mov    $0x3b1,%esi
mov    $0x3c9,%edx
jmp    1030 <in@plt>

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

LLVM IR (-O2):
define i32 @u8islowergreeki(i32 %0) {
%2 = tail call i32 @in(i32 %0, i32 945, i32 969)
ret i32 %2
}
unsigned xrop3_30_1_1(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  stk2 = D | S;
  stk1 = T ^ stk2;
  return (stk1 & (~S) & (~T)) | (D & S) | (D & T);
}


x86 assembly (clang, -O0):
<xrop3_30_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
or     -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x10(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0x10(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_30_1_1>:
mov    %edi,%ecx
shl    $0x8,%ecx
lea    (%rcx,%rdi,1),%edx
mov    %esi,%eax
shl    $0x8,%eax
or     %esi,%eax
or     %edx,%eax
or     $0xff,%ecx
not    %eax
and    %ecx,%eax
or     %edi,%esi
or     %esi,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_30_1_1(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%10 = load i8, i8* %3
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = or i32 %12, %14
store i32 %15, i32* %6
%16 = load i8, i8* %4
%17 = zext i8 %16 to i32
%18 = shl i32 %17, 8
%19 = load i8, i8* %4
%20 = zext i8 %19 to i32
%21 = or i32 %18, %20
store i32 %21, i32* %7
%22 = load i32, i32* %5
%23 = load i32, i32* %6
%24 = or i32 %22, %23
store i32 %24, i32* %9
%25 = load i32, i32* %7
%26 = load i32, i32* %9
%27 = xor i32 %25, %26
store i32 %27, i32* %8
%28 = load i32, i32* %8
%29 = load i32, i32* %6
%30 = xor i32 %29, -1
%31 = and i32 %28, %30
%32 = load i32, i32* %7
%33 = xor i32 %32, -1
%34 = and i32 %31, %33
%35 = load i32, i32* %5
%36 = load i32, i32* %6
%37 = and i32 %35, %36
%38 = or i32 %34, %37
%39 = load i32, i32* %5
%40 = load i32, i32* %7
%41 = and i32 %39, %40
%42 = or i32 %38, %41
ret i32 %42
}

LLVM IR (-O2):
define i32 @xrop3_30_1_1(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = or i32 %4, %3
%6 = zext i8 %1 to i32
%7 = mul nuw nsw i32 %6, 257
%8 = or i32 %4, 255
%9 = or i32 %5, %7
%10 = xor i32 %9, -1
%11 = and i32 %8, %10
%12 = or i8 %1, %0
%13 = zext i8 %12 to i32
%14 = or i32 %11, %13
ret i32 %14
}
int pmic_get_battery_pack_temp(int *temp) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @pmic_get_battery_pack_temp(i32* nocapture readnone %0) {
ret i32 0
}
__attribute__((always_)) void tracing_start(void) {}


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

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

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

LLVM IR (-O2):
define void @tracing_start() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cBreak();
int /*<<< orphan*/ dash();
int /*<<< orphan*/ dot();
void sU() {
  dot();
  dot();
  dash();
  cBreak();
}


x86 assembly (clang, -O0):
<sU>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <dot@plt>
mov    $0x0,%al
call   1030 <dot@plt>
mov    $0x0,%al
call   1040 <dash@plt>
mov    $0x0,%al
call   1050 <cBreak@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sU>:
push   %rax
xor    %eax,%eax
call   1030 <dot@plt>
xor    %eax,%eax
call   1030 <dot@plt>
xor    %eax,%eax
call   1040 <dash@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <cBreak@plt>

LLVM IR (-O0):
define void @sU() {
%1 = call i32 (...) @dot()
%2 = call i32 (...) @dot()
%3 = call i32 (...) @dash()
%4 = call i32 (...) @cBreak()
ret void
}

LLVM IR (-O2):
define void @sU() {
%1 = tail call i32 (...) @dot()
%2 = tail call i32 (...) @dot()
%3 = tail call i32 (...) @dash()
%4 = tail call i32 (...) @cBreak()
ret void
}
signed short signedshort_ignoring_signedchar(signed short x, signed char y) {
  return x;
}


x86 assembly (clang, -O0):
<signedshort_ignoring_signedchar>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %di,%cx
mov    %cx,-0x2(%rbp)
mov    %al,-0x3(%rbp)
movswl -0x2(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define signext i16 @signedshort_ignoring_signedchar(i16 returned signext %0, i8 signext %1) {
ret i16 %0
}
int strCmp(const char *s, const char *t) {
  for (; *s && *s == *t; ++s, ++t)
    ;
  return *s - *t;
}


x86 assembly (clang, -O0):
<strCmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     1137 <strCmp+0x37>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1147 <strCmp+0x47>
jmp    1169 <strCmp+0x69>
jmp    114c <strCmp+0x4c>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <strCmp+0xc>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strCmp>:
mov    (%rdi),%al
test   %al,%al
je     1123 <strCmp+0x23>
add    $0x1,%rdi
nopw   0x0(%rax,%rax,1)
cmp    (%rsi),%al
jne    1125 <strCmp+0x25>
add    $0x1,%rsi
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
jne    1110 <strCmp+0x10>
xor    %eax,%eax
movsbl %al,%eax
movsbl (%rsi),%ecx
sub    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @strCmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
br label %5
5: ; preds = %21, %2
%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 %18
10: ; preds = %5
%11 = load i8*, i8** %3
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = load i8*, i8** %4
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %13, %16
br label %18
18: ; preds = %10, %5
%19 = phi i1 [ false, %5 ], [ %17, %10 ]
br i1 %19, label %20, label %26
20: ; preds = %18
br label %21
21: ; preds = %20
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %3
%24 = load i8*, i8** %4
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %4
br label %5
26: ; preds = %18
%27 = load i8*, i8** %3
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = load i8*, i8** %4
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = sub nsw i32 %29, %32
ret i32 %33
}

LLVM IR (-O2):
define i32 @strCmp(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2, %11
%6 = phi i8 [ %14, %11 ], [ %3, %2 ]
%7 = phi i8* [ %13, %11 ], [ %1, %2 ]
%8 = phi i8* [ %12, %11 ], [ %0, %2 ]
%9 = load i8, i8* %7
%10 = icmp eq i8 %6, %9
br i1 %10, label %11, label %16
11: ; preds = %5
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = getelementptr inbounds i8, i8* %7, i64 1
%14 = load i8, i8* %12
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %5
16: ; preds = %5, %11, %2
%17 = phi i8* [ %1, %2 ], [ %13, %11 ], [ %7, %5 ]
%18 = phi i8 [ 0, %2 ], [ 0, %11 ], [ %6, %5 ]
%19 = sext i8 %18 to i32
%20 = load i8, i8* %17
%21 = sext i8 %20 to i32
%22 = sub nsw i32 %19, %21
ret i32 %22
}
void char_val_compare_and_swap(char *p, int i, int j, char *q) {
  *q = __sync_val_compare_and_swap(p, i, j);
}


x86 assembly (clang, -O0):
<char_val_compare_and_swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x8(%rbp),%rcx
mov    -0xc(%rbp),%al
mov    -0x10(%rbp),%dl
lock cmpxchg %dl,(%rcx)
mov    %al,%cl
sete   %al
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<char_val_compare_and_swap>:
mov    %esi,%eax
lock cmpxchg %dl,(%rdi)
mov    %al,(%rcx)
ret

LLVM IR (-O0):
define void @char_val_compare_and_swap(i8* %0, i32 %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%9 = load i8*, i8** %5
%10 = load i32, i32* %6
%11 = trunc i32 %10 to i8
%12 = load i32, i32* %7
%13 = trunc i32 %12 to i8
%14 = cmpxchg i8* %9, i8 %11, i8 %13 seq_cst seq_cst
%15 = extractvalue { i8, i1 } %14, 0
%16 = load i8*, i8** %8
store i8 %15, i8* %16
ret void
}

LLVM IR (-O2):
define void @char_val_compare_and_swap(i8* nocapture %0, i32 %1, i32 %2, i8* nocapture writeonly %3) {
%5 = trunc i32 %1 to i8
%6 = trunc i32 %2 to i8
%7 = cmpxchg i8* %0, i8 %5, i8 %6 seq_cst seq_cst
%8 = extractvalue { i8, i1 } %7, 0
store i8 %8, i8* %3
ret void
}
/* Type definitions */
struct genlist {
  int dummy;
};
struct entry_list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ genlist_sort(struct genlist *,
                                int (*)(void const *, void const *));
void entry_list_sort(struct entry_list *tthis,
                     int (*compar)(const struct entry *const *,
                                   const struct entry *const *)) {
  genlist_sort((struct genlist *)tthis,
               (int (*)(const void *, const void *))compar);
}


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

x86 assembly (clang, -O2):
<entry_list_sort>:
jmp    1030 <genlist_sort@plt>

LLVM IR (-O0):
%struct.entry_list = type { i32 }
%struct.entry = type opaque
%struct.genlist = type { i32 }
define void @entry_list_sort(%struct.entry_list* %0, i32 (%struct.entry**, %struct.entry**)* %1) {
%3 = alloca %struct.entry_list*
%4 = alloca i32 (%struct.entry**, %struct.entry**)*
store %struct.entry_list* %0, %struct.entry_list** %3
store i32 (%struct.entry**, %struct.entry**)* %1, i32 (%struct.entry**, %struct.entry**)** %4
%5 = load %struct.entry_list*, %struct.entry_list** %3
%6 = bitcast %struct.entry_list* %5 to %struct.genlist*
%7 = load i32 (%struct.entry**, %struct.entry**)*, i32 (%struct.entry**, %struct.entry**)** %4
%8 = bitcast i32 (%struct.entry**, %struct.entry**)* %7 to i32 (i8*, i8*)*
%9 = call i32 @genlist_sort(%struct.genlist* %6, i32 (i8*, i8*)* %8)
ret void
}

LLVM IR (-O2):
%struct.entry_list = type { i32 }
%struct.entry = type opaque
%struct.genlist = type { i32 }
define void @entry_list_sort(%struct.entry_list* %0, i32 (%struct.entry**, %struct.entry**)* %1) {
%3 = bitcast %struct.entry_list* %0 to %struct.genlist*
%4 = bitcast i32 (%struct.entry**, %struct.entry**)* %1 to i32 (i8*, i8*)*
%5 = tail call i32 @genlist_sort(%struct.genlist* %3, i32 (i8*, i8*)* %4)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ tmp;
typedef int /*<<< orphan*/ int64_t;
typedef scalar_t__ caddr_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, scalar_t__, int);
int64_t ptr_ret_int64_t(void *arg1, int offset) {
  int64_t tmp;
  memcpy(&tmp, (caddr_t)arg1 + offset, sizeof(tmp));
  return tmp;
}


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

x86 assembly (clang, -O2):
<ptr_ret_int64_t>:
push   %rax
movslq %esi,%rsi
add    %rdi,%rsi
lea    0x4(%rsp),%rdi
mov    $0x4,%edx
call   1030 <memcpy@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @ptr_ret_int64_t(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = ptrtoint i8* %6 to i64
%8 = load i32, i32* %4
%9 = sext i32 %8 to i64
%10 = add nsw i64 %7, %9
%11 = call i32 @memcpy(i32* %5, i64 %10, i32 4)
%12 = load i32, i32* %5
ret i32 %12
}

LLVM IR (-O2):
define i32 @ptr_ret_int64_t(i8* %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = ptrtoint i8* %0 to i64
%6 = sext i32 %1 to i64
%7 = add nsw i64 %6, %5
%8 = call i32 @memcpy(i32* %3, i64 %7, i32 4)
%9 = load i32, i32* %3
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ tml_dr_vSet(int /*<<< orphan*/, double *, int);
void tml_dr_vZero(double *dst, int n) { tml_dr_vSet(0, dst, n); }


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

x86 assembly (clang, -O2):
<tml_dr_vZero>:
mov    %esi,%edx
mov    %rdi,%rsi
xor    %edi,%edi
jmp    1030 <tml_dr_vSet@plt>

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

LLVM IR (-O2):
define void @tml_dr_vZero(double* %0, i32 %1) {
%3 = tail call i32 @tml_dr_vSet(i32 0, double* %0, i32 %1)
ret void
}
int div2(int val) {
  int temp = val;
  while (temp % 2 == 0)
    temp = temp / 2;
  return temp;
}


x86 assembly (clang, -O0):
<div2>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1134 <div2+0x34>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    110d <div2+0xd>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<div2>:
test   $0x1,%dil
jne    111e <div2+0x1e>
mov    %edi,%eax
nopl   0x0(%rax,%rax,1)
shr    $0x1f,%eax
add    %edi,%eax
sar    %eax
mov    %eax,%edi
test   $0x1,%al
je     1110 <div2+0x10>
ret
mov    %edi,%eax
ret

LLVM IR (-O0):
define i32 @div2(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
store i32 %4, i32* %3
br label %5
5: ; preds = %9, %1
%6 = load i32, i32* %3
%7 = srem i32 %6, 2
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = load i32, i32* %3
%11 = sdiv i32 %10, 2
store i32 %11, i32* %3
br label %5
12: ; preds = %5
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
define i32 @div2(i32 %0) {
%2 = and i32 %0, 1
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %9
4: ; preds = %1, %4
%5 = phi i32 [ %6, %4 ], [ %0, %1 ]
%6 = sdiv i32 %5, 2
%7 = and i32 %6, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %4, label %9
9: ; preds = %4, %1
%10 = phi i32 [ %0, %1 ], [ %6, %4 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ SPIM_1_EnableRxInt();
int /*<<< orphan*/ SPIM_1_EnableTxInt();
void SPIM_1_EnableInt(void) {
  SPIM_1_EnableRxInt();
  SPIM_1_EnableTxInt();
}


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

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

LLVM IR (-O0):
define void @SPIM_1_EnableInt() {
%1 = call i32 (...) @SPIM_1_EnableRxInt()
%2 = call i32 (...) @SPIM_1_EnableTxInt()
ret void
}

LLVM IR (-O2):
define void @SPIM_1_EnableInt() {
%1 = tail call i32 (...) @SPIM_1_EnableRxInt()
%2 = tail call i32 (...) @SPIM_1_EnableTxInt()
ret void
}
void strip_newline(char *str, int size) {
  int i;
  for (i = 0; i < size; ++i) {
    if (str[i] == '\n') {
      str[i] = '\0';
      return;
    }
  }
}


x86 assembly (clang, -O0):
<strip_newline>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1157 <strip_newline+0x57>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    1144 <strip_newline+0x44>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
jmp    1157 <strip_newline+0x57>
jmp    1149 <strip_newline+0x49>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <strip_newline+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<strip_newline>:
test   %esi,%esi
jle    111f <strip_newline+0x1f>
mov    %esi,%eax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
cmpb   $0xa,(%rdi,%rcx,1)
je     1120 <strip_newline+0x20>
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1110 <strip_newline+0x10>
ret
movb   $0x0,(%rdi,%rcx,1)
ret

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

LLVM IR (-O2):
define void @strip_newline(i8* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %17
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %14
%7 = phi i64 [ 0, %4 ], [ %15, %14 ]
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 10
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = and i64 %7, 4294967295
%13 = getelementptr inbounds i8, i8* %0, i64 %12
store i8 0, i8* %13
br label %17
14: ; preds = %6
%15 = add nuw nsw i64 %7, 1
%16 = icmp eq i64 %15, %5
br i1 %16, label %17, label %6
17: ; preds = %14, %2, %11
ret void
}
void glutAddSubMenu(const char *label, int submenu) {}


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

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

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

LLVM IR (-O2):
define void @glutAddSubMenu(i8* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
double pop();
int /*<<< orphan*/ push(double);
void Duplicate(void) {
  double temp = pop();
  push(temp);
  push(temp);
}


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

x86 assembly (clang, -O2):
<Duplicate>:
push   %rax
xor    %eax,%eax
call   1030 <pop@plt>
movsd  %xmm0,(%rsp)
call   1040 <push@plt>
movsd  (%rsp),%xmm0
pop    %rax
jmp    1040 <push@plt>

LLVM IR (-O0):
define void @Duplicate() {
%1 = alloca double
%2 = call double (...) @pop()
store double %2, double* %1
%3 = load double, double* %1
%4 = call i32 @push(double %3)
%5 = load double, double* %1
%6 = call i32 @push(double %5)
ret void
}

LLVM IR (-O2):
define void @Duplicate() {
%1 = tail call double (...) @pop()
%2 = tail call i32 @push(double %1)
%3 = tail call i32 @push(double %1)
ret void
}
/* Variables and functions */
int bufed_init();
int module_bufed_init(void) { return bufed_init(); }


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

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

LLVM IR (-O0):
define i32 @module_bufed_init() {
%1 = call i32 (...) @bufed_init()
ret i32 %1
}

LLVM IR (-O2):
define i32 @module_bufed_init() {
%1 = tail call i32 (...) @bufed_init()
ret i32 %1
}
void foo_2_2_1_2_2_1_1_2_2() {}


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

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

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

LLVM IR (-O2):
define void @foo_2_2_1_2_2_1_1_2_2() {
ret void
}
float gps_get_lat() { return 12.4; }


x86 assembly (clang, -O0):
<gps_get_lat>:
push   %rbp
mov    %rsp,%rbp
movss  0xef4(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<gps_get_lat>:
movss  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @gps_get_lat() {
ret float 0x4028CCCCC0000000
}

LLVM IR (-O2):
define float @gps_get_lat() {
ret float 0x4028CCCCC0000000
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void swap_xor(uint32_t *x, uint32_t *y) {
  *x = *x ^ *y;
  *y = *x ^ *y;
  *x = *x ^ *y;
}


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

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

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

LLVM IR (-O2):
define void @swap_xor(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
%5 = xor i32 %4, %3
store i32 %5, i32* %0
%6 = load i32, i32* %1
%7 = xor i32 %6, %5
store i32 %7, i32* %1
%8 = load i32, i32* %0
%9 = xor i32 %8, %7
store i32 %9, i32* %0
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
scalar_t__ read_registers(int, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ stderr;
uint32_t read_long_register(uint32_t addr) {
  uint32_t value;
  if (read_registers(addr, (uint8_t *)&value, sizeof(uint32_t)) != 0)
    fprintf(stderr, "error: reading %08x\n", addr);
  return value;
}


x86 assembly (clang, -O0):
<read_long_register>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1030 <read_registers@plt>
cmp    $0x0,%rax
je     115e <read_long_register+0x3e>
mov    0x2e93(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xea7(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_long_register>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
lea    0xc(%rsp),%rsi
mov    $0x4,%edx
call   1030 <read_registers@plt>
test   %rax,%rax
je     1152 <read_long_register+0x32>
mov    0x2e9e(%rip),%rax
mov    (%rax),%edi
lea    0xeb5(%rip),%rsi
mov    %ebx,%edx
call   1040 <fprintf@plt>
mov    0xc(%rsp),%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c"error: reading %08x\0A\00"
define i32 @read_long_register(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i64 @read_registers(i32 %4, i32* %3, i32 4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i32, i32* @stderr
%9 = load i32, i32* %2
%10 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %9)
br label %11
11: ; preds = %7, %1
%12 = load i32, i32* %3
ret i32 %12
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c"error: reading %08x\0A\00"
define i32 @read_long_register(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i64 @read_registers(i32 %0, i32* %2, i32 4)
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %9
9: ; preds = %6, %1
%10 = load i32, i32* %2
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void Win32() { printf("This is a Win32 build.\n"); }


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

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

LLVM IR (-O0):
@.str = [24 x i8] c"This is a Win32 build.\0A\00"
define void @Win32() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [23 x i8] c"This is a Win32 build.\00"
define void @Win32() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret void
}
void test_gogo_foo(void *args) {
  args++;
  return;
}


x86 assembly (clang, -O0):
<test_gogo_foo>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @test_gogo_foo(i8* nocapture %0) {
ret void
}
int uc(int c) { return (c >= 'a' && c <= 'z') ? c + ('A' - 'a') : c; }


x86 assembly (clang, -O0):
<uc>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x61,-0x4(%rbp)
jl     1129 <uc+0x29>
cmpl   $0x7a,-0x4(%rbp)
jg     1129 <uc+0x29>
mov    -0x4(%rbp),%eax
add    $0xffffffe0,%eax
mov    %eax,-0x8(%rbp)
jmp    112f <uc+0x2f>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<uc>:
lea    -0x61(%rdi),%ecx
lea    -0x20(%rdi),%eax
cmp    $0x1a,%ecx
cmovae %edi,%eax
ret

LLVM IR (-O0):
define i32 @uc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 97
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 122
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i32, i32* %2
%10 = add nsw i32 %9, -32
br label %13
11: ; preds = %5, %1
%12 = load i32, i32* %2
br label %13
13: ; preds = %11, %8
%14 = phi i32 [ %10, %8 ], [ %12, %11 ]
ret i32 %14
}

LLVM IR (-O2):
define i32 @uc(i32 %0) {
%2 = add i32 %0, -97
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, -32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ xfree(void *);
int freer(const void *key, const void *datum) {
  xfree((void *)datum);
  xfree((void *)key);
  return 0;
}


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

x86 assembly (clang, -O2):
<freer>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <xfree@plt>
mov    %rbx,%rdi
call   1030 <xfree@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @freer(i8* %0, i8* %1) {
%3 = tail call i32 @xfree(i8* %1)
%4 = tail call i32 @xfree(i8* %0)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ pgp_hton16(int /*<<< orphan*/);
unsigned fmt_16(uint8_t *p, uint16_t a) {
  a = pgp_hton16(a);
  memcpy(p, &a, sizeof(a));
  return sizeof(a);
}


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

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

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

LLVM IR (-O2):
define i32 @fmt_16(i32* %0, i32 %1) {
%3 = alloca i32
%4 = tail call i32 @pgp_hton16(i32 %1)
store i32 %4, i32* %3
%5 = call i32 @memcpy(i32* %0, i32* %3, i32 4)
ret i32 4
}
void ff_hevc_put_hevc_bi_qpel_hv8_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_hv8_8_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ out_asm(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ reg_str_i(int);
int /*<<< orphan*/ reg_str_r_i(char *, int);
void impl_reg_cp_reg(int from, int to) {
  char rstr[4];
  out_asm("move $%s, $%s", reg_str_i(to), reg_str_r_i(rstr, from));
}


x86 assembly (clang, -O0):
<impl_reg_cp_reg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <reg_str_i@plt>
mov    %eax,-0x10(%rbp)
lea    -0xc(%rbp),%rdi
mov    -0x4(%rbp),%esi
call   1040 <reg_str_r_i@plt>
mov    -0x10(%rbp),%esi
mov    %eax,%edx
lea    0xe9f(%rip),%rdi
call   1050 <out_asm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<impl_reg_cp_reg>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
mov    %esi,%edi
call   1030 <reg_str_i@plt>
mov    %eax,%ebp
lea    0x4(%rsp),%rdi
mov    %ebx,%esi
call   1040 <reg_str_r_i@plt>
lea    0xeaf(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1050 <out_asm@plt>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"move $%s, $%s\00"
define void @impl_reg_cp_reg(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [4 x i8]
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = call i32 @reg_str_i(i32 %6)
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%9 = load i32, i32* %3
%10 = call i32 @reg_str_r_i(i8* %8, i32 %9)
%11 = call i32 @out_asm(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"move $%s, $%s\00"
define void @impl_reg_cp_reg(i32 %0, i32 %1) {
%3 = alloca [4 x i8]
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @reg_str_i(i32 %1)
%6 = call i32 @reg_str_r_i(i8* %4, i32 %0)
%7 = call i32 @out_asm(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret void
}
int exp_b(int x) { return !(x || 0); }


x86 assembly (clang, -O0):
<exp_b>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jne    1120 <exp_b+0x20>
xor    %eax,%eax
mov    %al,-0x5(%rbp)
jmp    1120 <exp_b+0x20>
mov    -0x5(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<exp_b>:
xor    %eax,%eax
test   %edi,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @exp_b(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = zext i1 %2 to i32
ret i32 %3
}
int real_isspace(char c) {
  char spaces[] = " \f\n\r\t\v";
  for (int i = 0; spaces[i] != '\0'; i++)
    if (c == spaces[i])
      return 1;
  return 0;
}


x86 assembly (clang, -O0):
<real_isspace>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
mov    0xef0(%rip),%eax
mov    %eax,-0xc(%rbp)
mov    0xeea(%rip),%ax
mov    %ax,-0x8(%rbp)
mov    0xee2(%rip),%al
mov    %al,-0x6(%rbp)
movl   $0x0,-0x10(%rbp)
movslq -0x10(%rbp),%rax
movsbl -0xc(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     1174 <real_isspace+0x74>
movsbl -0x5(%rbp),%eax
movslq -0x10(%rbp),%rcx
movsbl -0xc(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jne    1161 <real_isspace+0x61>
movl   $0x1,-0x4(%rbp)
jmp    117b <real_isspace+0x7b>
jmp    1166 <real_isspace+0x66>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    112e <real_isspace+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<real_isspace>:
mov    $0x1,%eax
lea    -0x9(%rdi),%ecx
cmp    $0x5,%cl
jae    110e <real_isspace+0xe>
ret
cmp    $0x20,%dil
je     110d <real_isspace+0xd>
xor    %eax,%eax
ret

LLVM IR (-O0):
@__const.real_isspace.spaces = [7 x i8] c" \0C\0A\0D\09\0B\00"
define i32 @real_isspace(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca [7 x i8]
%5 = alloca i32
store i8 %0, i8* %3
%6 = bitcast [7 x i8]* %4 to i8*
store i32 0, i32* %5
br label %7
7: ; preds = %25, %1
%8 = load i32, i32* %5
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [7 x i8], [7 x i8]* %4, i64 0, i64 %9
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %28
14: ; preds = %7
%15 = load i8, i8* %3
%16 = sext i8 %15 to i32
%17 = load i32, i32* %5
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [7 x i8], [7 x i8]* %4, i64 0, i64 %18
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %16, %21
br i1 %22, label %23, label %24
23: ; preds = %14
store i32 1, i32* %2
br label %29
24: ; preds = %14
br label %25
25: ; preds = %24
%26 = load i32, i32* %5
%27 = add nsw i32 %26, 1
store i32 %27, i32* %5
br label %7
28: ; preds = %7
store i32 0, i32* %2
br label %29
29: ; preds = %28, %23
%30 = load i32, i32* %2
ret i32 %30
}

LLVM IR (-O2):
define i32 @real_isspace(i8 signext %0) {
switch i8 %0, label %2 [
i8 32, label %3
i8 12, label %3
i8 10, label %3
i8 13, label %3
i8 9, label %3
i8 11, label %3
]
2: ; preds = %1
br label %3
3: ; preds = %1, %1, %1, %1, %1, %1, %2
%4 = phi i32 [ 1, %1 ], [ 0, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %4
}
char from_udf_name(char c) { return c & 0x1f; }


x86 assembly (clang, -O0):
<from_udf_name>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
and    $0x1f,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<from_udf_name>:
mov    %edi,%eax
and    $0x1f,%al
ret

LLVM IR (-O0):
define signext i8 @from_udf_name(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = and i32 %4, 31
%6 = trunc i32 %5 to i8
ret i8 %6
}

LLVM IR (-O2):
define signext i8 @from_udf_name(i8 signext %0) {
%2 = and i8 %0, 31
ret i8 %2
}
int utol(int c) {
  if (c >= 'A' && c <= 'Z')
    return c + 'a' - 'A';
  else
    return c;
}


x86 assembly (clang, -O0):
<utol>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x41,-0x8(%rbp)
jl     112c <utol+0x2c>
cmpl   $0x5a,-0x8(%rbp)
jg     112c <utol+0x2c>
mov    -0x8(%rbp),%eax
add    $0x61,%eax
sub    $0x41,%eax
mov    %eax,-0x4(%rbp)
jmp    1132 <utol+0x32>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<utol>:
lea    -0x41(%rdi),%ecx
lea    0x20(%rdi),%eax
cmp    $0x1a,%ecx
cmovae %edi,%eax
ret

LLVM IR (-O0):
define i32 @utol(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 65
br i1 %5, label %6, label %13
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 90
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = load i32, i32* %3
%11 = add nsw i32 %10, 97
%12 = sub nsw i32 %11, 65
store i32 %12, i32* %2
br label %15
13: ; preds = %6, %1
%14 = load i32, i32* %3
store i32 %14, i32* %2
br label %15
15: ; preds = %13, %9
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @utol(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, 32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uid_t;
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ getuid();
int /*<<< orphan*/ xwrite_id_map(int /*<<< orphan*/, char *, int /*<<< orphan*/,
                                 int /*<<< orphan*/, int /*<<< orphan*/);
void xwrite_uid_map(pid_t pid, uid_t container, uid_t executor) {
  xwrite_id_map(pid, "/usr/bin/newuidmap", getuid(), container, executor);
}


x86 assembly (clang, -O0):
<xwrite_uid_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <getuid@plt>
mov    -0x10(%rbp),%edi
mov    %eax,%edx
mov    -0x8(%rbp),%ecx
mov    -0xc(%rbp),%r8d
lea    0xeaf(%rip),%rsi
call   1040 <xwrite_id_map@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xwrite_uid_map>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <getuid@plt>
lea    0xec7(%rip),%rsi
mov    %ebx,%edi
mov    %eax,%edx
mov    %ebp,%ecx
mov    %r14d,%r8d
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <xwrite_id_map@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"/usr/bin/newuidmap\00"
define void @xwrite_uid_map(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = call i32 (...) @getuid()
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i32 @xwrite_id_map(i32 %7, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %9, i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"/usr/bin/newuidmap\00"
define void @xwrite_uid_map(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 (...) @getuid()
%5 = tail call i32 @xwrite_id_map(i32 %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %1, i32 %2)
ret void
}
int strcmp(const char *s1, const char *s2) {
  int r;
  while ((r = *s1 - *s2) == 0 && *s1 != '\0') {
    s1++, s2++;
  }
  return r;
}


x86 assembly (clang, -O0):
<strcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    %eax,%ecx
mov    %ecx,-0x14(%rbp)
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x15(%rbp)
jne    113d <strcmp+0x3d>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x15(%rbp)
mov    -0x15(%rbp),%al
test   $0x1,%al
jne    114d <strcmp+0x4d>
jmp    116a <strcmp+0x6a>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <strcmp+0xc>
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcmp>:
movsbl (%rdi),%ecx
movsbl (%rsi),%edx
mov    %ecx,%eax
sub    %edx,%eax
jne    1138 <strcmp+0x38>
test   %cl,%cl
je     1138 <strcmp+0x38>
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movsbl (%rdi,%rcx,1),%edx
movsbl (%rsi,%rcx,1),%r8d
mov    %edx,%eax
sub    %r8d,%eax
jne    1138 <strcmp+0x38>
add    $0x1,%rcx
test   %dl,%dl
jne    1120 <strcmp+0x20>
ret

LLVM IR (-O0):
define i32 @strcmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
br label %6
6: ; preds = %22, %2
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = load i8*, i8** %4
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = sub nsw i32 %9, %12
store i32 %13, i32* %5
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %6
%16 = load i8*, i8** %3
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br label %20
20: ; preds = %15, %6
%21 = phi i1 [ false, %6 ], [ %19, %15 ]
br i1 %21, label %22, label %27
22: ; preds = %20
%23 = load i8*, i8** %3
%24 = getelementptr inbounds i8, i8* %23, i32 1
store i8* %24, i8** %3
%25 = load i8*, i8** %4
%26 = getelementptr inbounds i8, i8* %25, i32 1
store i8* %26, i8** %4
br label %6
27: ; preds = %20
%28 = load i32, i32* %5
ret i32 %28
}

LLVM IR (-O2):
define i32 @strcmp(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = sext i8 %3 to i32
%5 = load i8, i8* %1
%6 = sext i8 %5 to i32
%7 = sub nsw i32 %4, %6
%8 = icmp ne i32 %7, 0
%9 = icmp eq i8 %3, 0
%10 = select i1 %8, i1 true, i1 %9
br i1 %10, label %24, label %11
11: ; preds = %2, %11
%12 = phi i8* [ %14, %11 ], [ %0, %2 ]
%13 = phi i8* [ %15, %11 ], [ %1, %2 ]
%14 = getelementptr inbounds i8, i8* %12, i64 1
%15 = getelementptr inbounds i8, i8* %13, i64 1
%16 = load i8, i8* %14
%17 = sext i8 %16 to i32
%18 = load i8, i8* %15
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %17, %19
%21 = icmp ne i32 %20, 0
%22 = icmp eq i8 %16, 0
%23 = select i1 %21, i1 true, i1 %22
br i1 %23, label %24, label %11
24: ; preds = %11, %2
%25 = phi i32 [ %7, %2 ], [ %20, %11 ]
ret i32 %25
}
/* Variables and functions */
int f(int, int, int);
int /*<<< orphan*/ print_int(int);
int /*<<< orphan*/ print_string(char *);
void main(void) {
  int x;
  x = f(111, 222, 000);
  print_int(x);
  print_string("\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x6f,%edi
mov    $0xde,%esi
xor    %edx,%edx
call   1030 <f@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <print_int@plt>
lea    0xea5(%rip),%rdi
call   1040 <print_string@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x6f,%edi
mov    $0xde,%esi
xor    %edx,%edx
call   1030 <f@plt>
mov    %eax,%edi
call   1050 <print_int@plt>
lea    0xeb0(%rip),%rdi
pop    %rax
jmp    1040 <print_string@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @main() {
%1 = alloca i32
%2 = call i32 @f(i32 111, i32 222, i32 0)
store i32 %2, i32* %1
%3 = load i32, i32* %1
%4 = call i32 @print_int(i32 %3)
%5 = call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @main() {
%1 = tail call i32 @f(i32 111, i32 222, i32 0)
%2 = tail call i32 @print_int(i32 %1)
%3 = tail call i32 @print_string(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}
int default_ign_hook() { return -1; }


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

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

LLVM IR (-O0):
define i32 @default_ign_hook() {
ret i32 -1
}

LLVM IR (-O2):
define i32 @default_ign_hook() {
ret i32 -1
}