#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
struct katcl_line {
  int dummy;
};

/* Variables and functions */
int append_buffer_katcl(struct katcl_line *, int, unsigned char *, int);
int append_string_katcl(struct katcl_line *, int, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(unsigned char *);
int h2n(char);
unsigned char *malloc(int);
int /*<<< orphan*/ stderr;
int strlen(char *);
int /*<<< orphan*/ strncmp(char *, char *, int);
int load_arg(struct katcl_line *l, char *arg, int fmt, int flags) {
  unsigned char *tmp;
  int len, i, j, v, result;
  switch (fmt) {
  case 3:
  case 0:
    return append_string_katcl(l, flags, arg);
  case 1:
  case 2:
    if (strncmp(arg, "0x", 2)) {
      return append_string_katcl(l, flags, arg);
    } else {
      len = strlen(arg + 2);
      if (len % 2) {
        fprintf(stderr,
                "warning: argument %s contains an odd number of hex "
                "characters, ignoring the trailing one\n",
                arg);
        len--;
      }
      len = len / 2;
      if (len == 0) {
        return append_buffer_katcl(l, flags, NULL, 0);
      }
      tmp = malloc(len);
      if (tmp == NULL) {
        fprintf(stderr,
                "warning: argument %s contains an odd number of hex "
                "characters, ignoring the trailing one\n",
                arg);
        return -1;
      }
      j = 2;
      for (i = 0; i < len; i++) {
        v = h2n(arg[j++]);
        if (v < 0) {
          free(tmp);
          return -1;
        }
        tmp[i] = 0xf0 & (v << 4);
        v = h2n(arg[j++]);
        if (v < 0) {
          free(tmp);
          return -1;
        }
        tmp[i] |= 0x0f & v;
      }
      result = append_buffer_katcl(l, flags, tmp, len);
      free(tmp);
      return result;
    }
    break;
  default:
    fprintf(stderr, "error: unhandled format %d\n", fmt);
    return -1;
  }
}


x86 assembly (clang, -O0):
<load_arg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x40(%rbp)
test   %eax,%eax
je     11ce <load_arg+0x4e>
jmp    11a9 <load_arg+0x29>
mov    -0x40(%rbp),%eax
add    $0xffffffff,%eax
sub    $0x2,%eax
jb     11e6 <load_arg+0x66>
jmp    11bd <load_arg+0x3d>
mov    -0x40(%rbp),%eax
sub    $0x3,%eax
jne    13cf <load_arg+0x24f>
jmp    11ce <load_arg+0x4e>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1060 <append_string_katcl@plt>
mov    %eax,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
mov    -0x18(%rbp),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x2,%edx
call   1040 <strncmp@plt>
cmp    $0x0,%eax
je     121c <load_arg+0x9c>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1060 <append_string_katcl@plt>
mov    %eax,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
mov    -0x18(%rbp),%rdi
add    $0x2,%rdi
call   1070 <strlen@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1264 <load_arg+0xe4>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0xdaf(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    1296 <load_arg+0x116>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
xor    %eax,%eax
mov    %eax,%edx
xor    %ecx,%ecx
call   1050 <append_buffer_katcl@plt>
mov    %eax,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
mov    -0x2c(%rbp),%edi
call   1090 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    12d4 <load_arg+0x154>
mov    0x2d2c(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0xd42(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
movl   $0x2,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13a5 <load_arg+0x225>
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
call   10a0 <h2n@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jge    132b <load_arg+0x1ab>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
mov    -0x38(%rbp),%eax
shl    $0x4,%eax
and    $0xf0,%eax
mov    %al,%dl
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
mov    -0x34(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x34(%rbp)
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%edi
call   10a0 <h2n@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jge    1380 <load_arg+0x200>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
mov    -0x38(%rbp),%esi
and    $0xf,%esi
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
or     %esi,%edx
mov    %dl,(%rax,%rcx,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12e2 <load_arg+0x162>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1050 <append_buffer_katcl@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x3c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    13f0 <load_arg+0x270>
mov    0x2c0a(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xc7b(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<load_arg>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %ecx,%r14d
mov    %rsi,%rbx
mov    %rdi,%r13
lea    -0x1(%rdx),%eax
cmp    $0x2,%eax
jb     11d3 <load_arg+0x53>
cmp    $0x3,%edx
je     11eb <load_arg+0x6b>
test   %edx,%edx
je     11eb <load_arg+0x6b>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
lea    0xea5(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe26(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1040 <strncmp@plt>
test   %eax,%eax
je     1207 <load_arg+0x87>
mov    %r13,%rdi
mov    %r14d,%esi
mov    %rbx,%rdx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <append_string_katcl@plt>
lea    0x2(%rbx),%rdi
call   1070 <strlen@plt>
mov    %eax,%r15d
test   $0x1,%r15b
je     1237 <load_arg+0xb7>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
lea    0xdda(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0xffffffff,%r15d
cmp    $0x1,%r15d
ja     125a <load_arg+0xda>
mov    %r13,%rdi
mov    %r14d,%esi
xor    %edx,%edx
xor    %ecx,%ecx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <append_buffer_katcl@plt>
mov    %r15d,%ebp
shr    $0x1f,%ebp
add    %r15d,%ebp
sar    %ebp
mov    %ebp,%edi
call   1090 <malloc@plt>
test   %rax,%rax
je     12ef <load_arg+0x16f>
mov    %rax,%r12
mov    %ebp,0xc(%rsp)
cmp    $0x2,%r15d
jl     12cc <load_arg+0x14c>
mov    0xc(%rsp),%eax
mov    %rax,0x10(%rsp)
xor    %r15d,%r15d
xchg   %ax,%ax
movsbl 0x2(%rbx,%r15,2),%edi
call   10a0 <h2n@plt>
test   %eax,%eax
js     130e <load_arg+0x18e>
mov    %eax,%ebp
shl    $0x4,%bpl
mov    %bpl,(%r12,%r15,1)
movsbl 0x3(%rbx,%r15,2),%edi
call   10a0 <h2n@plt>
test   %eax,%eax
js     130e <load_arg+0x18e>
and    $0xf,%al
or     %al,%bpl
mov    %bpl,(%r12,%r15,1)
add    $0x1,%r15
cmp    %r15,0x10(%rsp)
jne    1290 <load_arg+0x110>
mov    %r13,%rdi
mov    %r14d,%esi
mov    %r12,%rdx
mov    0xc(%rsp),%ecx
call   1050 <append_buffer_katcl@plt>
mov    %eax,%ebx
mov    %r12,%rdi
call   1030 <free@plt>
mov    %ebx,%eax
jmp    11c4 <load_arg+0x44>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
lea    0xd04(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    11bf <load_arg+0x3f>
mov    %r12,%rdi
call   1030 <free@plt>
jmp    11bf <load_arg+0x3f>

LLVM IR (-O0):
%struct.katcl_line = type { i32 }
@.str = [3 x i8] c"0x\00"
@stderr = global i32 0
@.str.1 = [90 x i8] c"warning: argument %s contains an odd number of hex characters, ignoring the trailing one\0A\00"
@.str.2 = [28 x i8] c"error: unhandled format %d\0A\00"
define i32 @load_arg(%struct.katcl_line* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca %struct.katcl_line*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store %struct.katcl_line* %0, %struct.katcl_line** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%16 = load i32, i32* %8
switch i32 %16, label %124 [
i32 3, label %17
i32 0, label %17
i32 1, label %22
i32 2, label %22
]
17: ; preds = %4, %4
%18 = load %struct.katcl_line*, %struct.katcl_line** %6
%19 = load i32, i32* %9
%20 = load i8*, i8** %7
%21 = call i32 @append_string_katcl(%struct.katcl_line* %18, i32 %19, i8* %20)
store i32 %21, i32* %5
br label %128
22: ; preds = %4, %4
%23 = load i8*, i8** %7
%24 = call i32 @strncmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %31
26: ; preds = %22
%27 = load %struct.katcl_line*, %struct.katcl_line** %6
%28 = load i32, i32* %9
%29 = load i8*, i8** %7
%30 = call i32 @append_string_katcl(%struct.katcl_line* %27, i32 %28, i8* %29)
store i32 %30, i32* %5
br label %128
31: ; preds = %22
%32 = load i8*, i8** %7
%33 = getelementptr inbounds i8, i8* %32, i64 2
%34 = call i32 @strlen(i8* %33)
store i32 %34, i32* %11
%35 = load i32, i32* %11
%36 = srem i32 %35, 2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %31
%39 = load i32, i32* @stderr
%40 = load i8*, i8** %7
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.1, i64 0, i64 0), i8* %40)
%42 = load i32, i32* %11
%43 = add nsw i32 %42, -1
store i32 %43, i32* %11
br label %44
44: ; preds = %38, %31
%45 = load i32, i32* %11
%46 = sdiv i32 %45, 2
store i32 %46, i32* %11
%47 = load i32, i32* %11
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %53
49: ; preds = %44
%50 = load %struct.katcl_line*, %struct.katcl_line** %6
%51 = load i32, i32* %9
%52 = call i32 @append_buffer_katcl(%struct.katcl_line* %50, i32 %51, i8* null, i32 0)
store i32 %52, i32* %5
br label %128
53: ; preds = %44
%54 = load i32, i32* %11
%55 = call i8* @malloc(i32 %54)
store i8* %55, i8** %10
%56 = load i8*, i8** %10
%57 = icmp eq i8* %56, null
br i1 %57, label %58, label %62
58: ; preds = %53
%59 = load i32, i32* @stderr
%60 = load i8*, i8** %7
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.1, i64 0, i64 0), i8* %60)
store i32 -1, i32* %5
br label %128
62: ; preds = %53
store i32 2, i32* %13
store i32 0, i32* %12
br label %63
63: ; preds = %112, %62
%64 = load i32, i32* %12
%65 = load i32, i32* %11
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %115
67: ; preds = %63
%68 = load i8*, i8** %7
%69 = load i32, i32* %13
%70 = add nsw i32 %69, 1
store i32 %70, i32* %13
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds i8, i8* %68, i64 %71
%73 = load i8, i8* %72
%74 = call i32 @h2n(i8 signext %73)
store i32 %74, i32* %14
%75 = load i32, i32* %14
%76 = icmp slt i32 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %67
%78 = load i8*, i8** %10
%79 = call i32 @free(i8* %78)
store i32 -1, i32* %5
br label %128
80: ; preds = %67
%81 = load i32, i32* %14
%82 = shl i32 %81, 4
%83 = and i32 240, %82
%84 = trunc i32 %83 to i8
%85 = load i8*, i8** %10
%86 = load i32, i32* %12
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, i8* %85, i64 %87
store i8 %84, i8* %88
%89 = load i8*, i8** %7
%90 = load i32, i32* %13
%91 = add nsw i32 %90, 1
store i32 %91, i32* %13
%92 = sext i32 %90 to i64
%93 = getelementptr inbounds i8, i8* %89, i64 %92
%94 = load i8, i8* %93
%95 = call i32 @h2n(i8 signext %94)
store i32 %95, i32* %14
%96 = load i32, i32* %14
%97 = icmp slt i32 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %80
%99 = load i8*, i8** %10
%100 = call i32 @free(i8* %99)
store i32 -1, i32* %5
br label %128
101: ; preds = %80
%102 = load i32, i32* %14
%103 = and i32 15, %102
%104 = load i8*, i8** %10
%105 = load i32, i32* %12
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, i8* %104, i64 %106
%108 = load i8, i8* %107
%109 = zext i8 %108 to i32
%110 = or i32 %109, %103
%111 = trunc i32 %110 to i8
store i8 %111, i8* %107
br label %112
112: ; preds = %101
%113 = load i32, i32* %12
%114 = add nsw i32 %113, 1
store i32 %114, i32* %12
br label %63
115: ; preds = %63
%116 = load %struct.katcl_line*, %struct.katcl_line** %6
%117 = load i32, i32* %9
%118 = load i8*, i8** %10
%119 = load i32, i32* %11
%120 = call i32 @append_buffer_katcl(%struct.katcl_line* %116, i32 %117, i8* %118, i32 %119)
store i32 %120, i32* %15
%121 = load i8*, i8** %10
%122 = call i32 @free(i8* %121)
%123 = load i32, i32* %15
store i32 %123, i32* %5
br label %128
124: ; preds = %4
%125 = load i32, i32* @stderr
%126 = load i32, i32* %8
%127 = call i32 (i32, i8*, ...) @fprintf(i32 %125, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %126)
store i32 -1, i32* %5
br label %128
128: ; preds = %124, %115, %98, %77, %58, %49, %26, %17
%129 = load i32, i32* %5
ret i32 %129
}

LLVM IR (-O2):
%struct.katcl_line = type { i32 }
@.str = [3 x i8] c"0x\00"
@stderr = global i32 0
@.str.1 = [90 x i8] c"warning: argument %s contains an odd number of hex characters, ignoring the trailing one\0A\00"
@.str.2 = [28 x i8] c"error: unhandled format %d\0A\00"
define i32 @load_arg(%struct.katcl_line* %0, i8* %1, i32 %2, i32 %3) {
switch i32 %2, label %67 [
i32 3, label %5
i32 0, label %5
i32 1, label %7
i32 2, label %7
]
5: ; preds = %4, %4
%6 = tail call i32 @append_string_katcl(%struct.katcl_line* %0, i32 %3, i8* %1)
br label %70
7: ; preds = %4, %4
%8 = tail call i32 @strncmp(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%9 = icmp eq i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @append_string_katcl(%struct.katcl_line* %0, i32 %3, i8* %1)
br label %70
12: ; preds = %7
%13 = getelementptr inbounds i8, i8* %1, i64 2
%14 = tail call i32 @strlen(i8* %13)
%15 = and i32 %14, 1
%16 = icmp eq i32 %15, 0
br i1 %16, label %21, label %17
17: ; preds = %12
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%20 = add nsw i32 %14, -1
br label %21
21: ; preds = %17, %12
%22 = phi i32 [ %20, %17 ], [ %14, %12 ]
%23 = sdiv i32 %22, 2
%24 = icmp ult i32 %22, 2
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = tail call i32 @append_buffer_katcl(%struct.katcl_line* %0, i32 %3, i8* null, i32 0)
br label %70
27: ; preds = %21
%28 = tail call i8* @malloc(i32 %23)
%29 = icmp eq i8* %28, null
br i1 %29, label %34, label %30
30: ; preds = %27
%31 = icmp sgt i32 %22, 1
br i1 %31, label %32, label %64
32: ; preds = %30
%33 = zext i32 %23 to i64
br label %37
34: ; preds = %27
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.1, i64 0, i64 0), i8* %1)
br label %70
37: ; preds = %32, %57
%38 = phi i64 [ 0, %32 ], [ %62, %57 ]
%39 = phi i64 [ 2, %32 ], [ %58, %57 ]
%40 = getelementptr inbounds i8, i8* %1, i64 %39
%41 = load i8, i8* %40
%42 = tail call i32 @h2n(i8 signext %41)
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = tail call i32 @free(i8* %28)
br label %70
46: ; preds = %37
%47 = or i64 %39, 1
%48 = trunc i32 %42 to i8
%49 = shl i8 %48, 4
%50 = getelementptr inbounds i8, i8* %28, i64 %38
store i8 %49, i8* %50
%51 = getelementptr inbounds i8, i8* %1, i64 %47
%52 = load i8, i8* %51
%53 = tail call i32 @h2n(i8 signext %52)
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %46
%56 = tail call i32 @free(i8* %28)
br label %70
57: ; preds = %46
%58 = add nuw nsw i64 %39, 2
%59 = trunc i32 %53 to i8
%60 = and i8 %59, 15
%61 = or i8 %49, %60
store i8 %61, i8* %50
%62 = add nuw nsw i64 %38, 1
%63 = icmp eq i64 %62, %33
br i1 %63, label %64, label %37
64: ; preds = %57, %30
%65 = tail call i32 @append_buffer_katcl(%struct.katcl_line* %0, i32 %3, i8* %28, i32 %23)
%66 = tail call i32 @free(i8* %28)
br label %70
67: ; preds = %4
%68 = load i32, i32* @stderr
%69 = tail call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %2)
br label %70
70: ; preds = %67, %64, %55, %44, %34, %25, %10, %5
%71 = phi i32 [ -1, %67 ], [ %11, %10 ], [ %26, %25 ], [ -1, %34 ], [ -1, %44 ], [ -1, %55 ], [ %65, %64 ], [ %6, %5 ]
ret i32 %71
}