#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 */

/* Variables and functions */
int atoi(char const *);
int /*<<< orphan*/ fatal_error(char *, char const *);
int sscanf(char const *, char *, unsigned int *, int *);
int uint4(unsigned char *);
int f_set_hex(int mode, unsigned char **sec, float *data, unsigned int ndata,
              char *inv_out, void **local, const char *arg1, const char *arg2,
              const char *arg3) {
  int i, j, k, m, seclen, has_colon;
  unsigned int val;
  const char *str;
  if (mode < 0)
    return 0;
  i = atoi(arg1);
  j = atoi(arg2);
  if (i < 0 || i > 8)
    fatal_error("set_byte: bad section number %s", arg1);
  if (j <= 0)
    fatal_error("set_hex: octet number must >= 1", "");
  if (i == 0)
    seclen = 16;
  else if (i == 8)
    seclen = 4;
  else
    seclen = uint4(sec[i]);
  str = arg3;
  has_colon = 0;
  while (*str) {
    if (*str++ == ':') {
      has_colon = 1;
      break;
    }
  }
  if (has_colon) {
    k = sscanf(arg3, "%x%n", &val, &m);
    while (k == 1) {
      if (j > seclen)
        fatal_error("set_byte out of bounds section %s", arg1);
      sec[i][j++ - 1] = val;
      arg3 += m;
      k = sscanf(arg3, ":%x%n", &val, &m);
    }
  } else {
    k = sscanf(arg3, "%2x%n", &val, &m);
    while (k == 1) {
      if (j > seclen)
        fatal_error("set_byte out of bounds section %s", arg1);
      sec[i][j++ - 1] = val;
      arg3 += m;
      k = sscanf(arg3, "%2x%n", &val, &m);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<f_set_hex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
cmpl   $0x0,-0x8(%rbp)
jge    1180 <f_set_hex+0x40>
movl   $0x0,-0x4(%rbp)
jmp    13af <f_set_hex+0x26f>
mov    0x10(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x34(%rbp)
mov    0x18(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x34(%rbp)
jl     11ac <f_set_hex+0x6c>
cmpl   $0x8,-0x34(%rbp)
jle    11bc <f_set_hex+0x7c>
mov    0x10(%rbp),%rsi
lea    0xe49(%rip),%rdi
call   1040 <fatal_error@plt>
cmpl   $0x0,-0x38(%rbp)
jg     11d9 <f_set_hex+0x99>
lea    0xe53(%rip),%rdi
lea    0xe6b(%rip),%rsi
call   1040 <fatal_error@plt>
cmpl   $0x0,-0x34(%rbp)
jne    11ef <f_set_hex+0xaf>
movl   $0x10,-0x44(%rbp)
jmp    121e <f_set_hex+0xde>
cmpl   $0x8,-0x34(%rbp)
jne    1205 <f_set_hex+0xc5>
movl   $0x4,-0x44(%rbp)
jmp    1219 <f_set_hex+0xd9>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <uint4@plt>
mov    %eax,-0x44(%rbp)
jmp    121e <f_set_hex+0xde>
mov    0x20(%rbp),%rax
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x58(%rbp),%rax
cmpb   $0x0,(%rax)
je     1266 <f_set_hex+0x126>
mov    -0x58(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x58(%rbp)
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    1261 <f_set_hex+0x121>
movl   $0x1,-0x48(%rbp)
jmp    1266 <f_set_hex+0x126>
jmp    122d <f_set_hex+0xed>
cmpl   $0x0,-0x48(%rbp)
je     130c <f_set_hex+0x1cc>
mov    0x20(%rbp),%rdi
lea    0xde8(%rip),%rsi
lea    -0x4c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1050 <sscanf@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x1,-0x3c(%rbp)
jne    1307 <f_set_hex+0x1c7>
mov    -0x38(%rbp),%eax
cmp    -0x44(%rbp),%eax
jle    12b1 <f_set_hex+0x171>
mov    0x10(%rbp),%rsi
lea    0xd94(%rip),%rdi
call   1040 <fatal_error@plt>
mov    -0x4c(%rbp),%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x38(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x38(%rbp)
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x40(%rbp),%ecx
mov    0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,0x20(%rbp)
mov    0x20(%rbp),%rdi
lea    0xd70(%rip),%rsi
lea    -0x4c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1050 <sscanf@plt>
mov    %eax,-0x3c(%rbp)
jmp    128b <f_set_hex+0x14b>
jmp    13a8 <f_set_hex+0x268>
mov    0x20(%rbp),%rdi
lea    0xd51(%rip),%rsi
lea    -0x4c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1050 <sscanf@plt>
mov    %eax,-0x3c(%rbp)
cmpl   $0x1,-0x3c(%rbp)
jne    13a3 <f_set_hex+0x263>
mov    -0x38(%rbp),%eax
cmp    -0x44(%rbp),%eax
jle    134d <f_set_hex+0x20d>
mov    0x10(%rbp),%rsi
lea    0xcf8(%rip),%rdi
call   1040 <fatal_error@plt>
mov    -0x4c(%rbp),%eax
mov    %al,%dl
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x38(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x38(%rbp)
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x40(%rbp),%ecx
mov    0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,0x20(%rbp)
mov    0x20(%rbp),%rdi
lea    0xcda(%rip),%rsi
lea    -0x4c(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1050 <sscanf@plt>
mov    %eax,-0x3c(%rbp)
jmp    1327 <f_set_hex+0x1e7>
jmp    13a8 <f_set_hex+0x268>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_set_hex>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %edi,%edi
js     12fb <f_set_hex+0x1bb>
mov    %rsi,%r15
mov    0x48(%rsp),%rbx
mov    0x40(%rsp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1060 <atoi@plt>
mov    %eax,%r14d
cmp    $0x9,%ebp
jae    118d <f_set_hex+0x4d>
test   %r14d,%r14d
jle    11a3 <f_set_hex+0x63>
test   %ebp,%ebp
je     11ba <f_set_hex+0x7a>
cmp    $0x8,%ebp
jne    11c2 <f_set_hex+0x82>
mov    $0x4,%r12d
jmp    11d1 <f_set_hex+0x91>
lea    0xe6c(%rip),%rdi
mov    0x40(%rsp),%rsi
call   1040 <fatal_error@plt>
test   %r14d,%r14d
jg     117c <f_set_hex+0x3c>
lea    0xe76(%rip),%rdi
lea    0xe8e(%rip),%rsi
call   1040 <fatal_error@plt>
test   %ebp,%ebp
jne    1180 <f_set_hex+0x40>
mov    $0x10,%r12d
jmp    11d1 <f_set_hex+0x91>
movslq %ebp,%rax
mov    (%r15,%rax,8),%rdi
call   1030 <uint4@plt>
movslq %eax,%r12
mov    0x50(%rsp),%rbx
mov    %rbx,%rax
nopl   0x0(%rax)
movzbl (%rax),%ecx
test   %cl,%cl
je     127e <f_set_hex+0x13e>
add    $0x1,%rax
cmp    $0x3a,%cl
jne    11e0 <f_set_hex+0xa0>
lea    0xe68(%rip),%rsi
mov    %rsp,%rdx
lea    0x4(%rsp),%rcx
mov    %rbx,%rdi
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    12fb <f_set_hex+0x1bb>
movslq %ebp,%r13
movslq %r14d,%rbp
lea    0x4(%rsp),%r14
jmp    1266 <f_set_hex+0x126>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movzbl (%rsp),%eax
mov    (%r15,%r13,8),%rcx
mov    %al,-0x1(%rcx,%rbp,1)
add    $0x1,%rbp
movslq 0x4(%rsp),%rax
add    %rax,%rbx
mov    %rbx,%rdi
lea    0xe10(%rip),%rsi
mov    %rsp,%rdx
mov    %r14,%rcx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    12fb <f_set_hex+0x1bb>
cmp    %r12,%rbp
jle    1230 <f_set_hex+0xf0>
lea    0xdce(%rip),%rdi
mov    0x40(%rsp),%rsi
call   1040 <fatal_error@plt>
jmp    1230 <f_set_hex+0xf0>
lea    0xde3(%rip),%rsi
mov    %rsp,%rdx
lea    0x4(%rsp),%rcx
mov    %rbx,%rdi
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    12fb <f_set_hex+0x1bb>
movslq %ebp,%r13
movslq %r14d,%r14
lea    0x4(%rsp),%rbp
jmp    12e3 <f_set_hex+0x1a3>
nopw   0x0(%rax,%rax,1)
movzbl (%rsp),%eax
mov    (%r15,%r13,8),%rcx
mov    %al,-0x1(%rcx,%r14,1)
add    $0x1,%r14
movslq 0x4(%rsp),%rax
add    %rax,%rbx
mov    %rbx,%rdi
lea    0xd95(%rip),%rsi
mov    %rsp,%rdx
mov    %rbp,%rcx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
jne    12fb <f_set_hex+0x1bb>
cmp    %r12,%r14
jle    12b0 <f_set_hex+0x170>
lea    0xd51(%rip),%rdi
mov    0x40(%rsp),%rsi
call   1040 <fatal_error@plt>
jmp    12b0 <f_set_hex+0x170>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [32 x i8] c"set_byte: bad section number %s\00"
@.str.1 = [32 x i8] c"set_hex: octet number must >= 1\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [5 x i8] c"%x%n\00"
@.str.4 = [34 x i8] c"set_byte out of bounds section %s\00"
@.str.5 = [6 x i8] c":%x%n\00"
@.str.6 = [6 x i8] c"%2x%n\00"
define i32 @f_set_hex(i32 %0, i8** %1, float* %2, i32 %3, i8* %4, i8** %5, i8* %6, i8* %7, i8* %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8**
%13 = alloca float*
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i8**
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i8*
store i32 %0, i32* %11
store i8** %1, i8*** %12
store float* %2, float** %13
store i32 %3, i32* %14
store i8* %4, i8** %15
store i8** %5, i8*** %16
store i8* %6, i8** %17
store i8* %7, i8** %18
store i8* %8, i8** %19
%28 = load i32, i32* %11
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %9
store i32 0, i32* %10
br label %149
31: ; preds = %9
%32 = load i8*, i8** %17
%33 = call i32 @atoi(i8* %32)
store i32 %33, i32* %20
%34 = load i8*, i8** %18
%35 = call i32 @atoi(i8* %34)
store i32 %35, i32* %21
%36 = load i32, i32* %20
%37 = icmp slt i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %31
%39 = load i32, i32* %20
%40 = icmp sgt i32 %39, 8
br i1 %40, label %41, label %44
41: ; preds = %38, %31
%42 = load i8*, i8** %17
%43 = call i32 @fatal_error(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %42)
br label %44
44: ; preds = %41, %38
%45 = load i32, i32* %21
%46 = icmp sle i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @fatal_error(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %49
49: ; preds = %47, %44
%50 = load i32, i32* %20
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 16, i32* %24
br label %65
53: ; preds = %49
%54 = load i32, i32* %20
%55 = icmp eq i32 %54, 8
br i1 %55, label %56, label %57
56: ; preds = %53
store i32 4, i32* %24
br label %64
57: ; preds = %53
%58 = load i8**, i8*** %12
%59 = load i32, i32* %20
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %58, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 @uint4(i8* %62)
store i32 %63, i32* %24
br label %64
64: ; preds = %57, %56
br label %65
65: ; preds = %64, %52
%66 = load i8*, i8** %19
store i8* %66, i8** %27
store i32 0, i32* %25
br label %67
67: ; preds = %78, %65
%68 = load i8*, i8** %27
%69 = load i8, i8* %68
%70 = icmp ne i8 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %67
%72 = load i8*, i8** %27
%73 = getelementptr inbounds i8, i8* %72, i32 1
store i8* %73, i8** %27
%74 = load i8, i8* %72
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 58
br i1 %76, label %77, label %78
77: ; preds = %71
store i32 1, i32* %25
br label %79
78: ; preds = %71
br label %67
79: ; preds = %77, %67
%80 = load i32, i32* %25
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %115
82: ; preds = %79
%83 = load i8*, i8** %19
%84 = call i32 @sscanf(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %26, i32* %23)
store i32 %84, i32* %22
br label %85
85: ; preds = %95, %82
%86 = load i32, i32* %22
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %114
88: ; preds = %85
%89 = load i32, i32* %21
%90 = load i32, i32* %24
%91 = icmp sgt i32 %89, %90
br i1 %91, label %92, label %95
92: ; preds = %88
%93 = load i8*, i8** %17
%94 = call i32 @fatal_error(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %93)
br label %95
95: ; preds = %92, %88
%96 = load i32, i32* %26
%97 = trunc i32 %96 to i8
%98 = load i8**, i8*** %12
%99 = load i32, i32* %20
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8*, i8** %98, i64 %100
%102 = load i8*, i8** %101
%103 = load i32, i32* %21
%104 = add nsw i32 %103, 1
store i32 %104, i32* %21
%105 = sub nsw i32 %103, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, i8* %102, i64 %106
store i8 %97, i8* %107
%108 = load i32, i32* %23
%109 = load i8*, i8** %19
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds i8, i8* %109, i64 %110
store i8* %111, i8** %19
%112 = load i8*, i8** %19
%113 = call i32 @sscanf(i8* %112, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32* %26, i32* %23)
store i32 %113, i32* %22
br label %85
114: ; preds = %85
br label %148
115: ; preds = %79
%116 = load i8*, i8** %19
%117 = call i32 @sscanf(i8* %116, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %26, i32* %23)
store i32 %117, i32* %22
br label %118
118: ; preds = %128, %115
%119 = load i32, i32* %22
%120 = icmp eq i32 %119, 1
br i1 %120, label %121, label %147
121: ; preds = %118
%122 = load i32, i32* %21
%123 = load i32, i32* %24
%124 = icmp sgt i32 %122, %123
br i1 %124, label %125, label %128
125: ; preds = %121
%126 = load i8*, i8** %17
%127 = call i32 @fatal_error(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %126)
br label %128
128: ; preds = %125, %121
%129 = load i32, i32* %26
%130 = trunc i32 %129 to i8
%131 = load i8**, i8*** %12
%132 = load i32, i32* %20
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8*, i8** %131, i64 %133
%135 = load i8*, i8** %134
%136 = load i32, i32* %21
%137 = add nsw i32 %136, 1
store i32 %137, i32* %21
%138 = sub nsw i32 %136, 1
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %135, i64 %139
store i8 %130, i8* %140
%141 = load i32, i32* %23
%142 = load i8*, i8** %19
%143 = sext i32 %141 to i64
%144 = getelementptr inbounds i8, i8* %142, i64 %143
store i8* %144, i8** %19
%145 = load i8*, i8** %19
%146 = call i32 @sscanf(i8* %145, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %26, i32* %23)
store i32 %146, i32* %22
br label %118
147: ; preds = %118
br label %148
148: ; preds = %147, %114
store i32 0, i32* %10
br label %149
149: ; preds = %148, %30
%150 = load i32, i32* %10
ret i32 %150
}

LLVM IR (-O2):
@.str = [32 x i8] c"set_byte: bad section number %s\00"
@.str.1 = [32 x i8] c"set_hex: octet number must >= 1\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [5 x i8] c"%x%n\00"
@.str.4 = [34 x i8] c"set_byte out of bounds section %s\00"
@.str.5 = [6 x i8] c":%x%n\00"
@.str.6 = [6 x i8] c"%2x%n\00"
define i32 @f_set_hex(i32 %0, i8** nocapture %1, float* nocapture readnone %2, i32 %3, i8* nocapture readnone %4, i8** nocapture readnone %5, i8* %6, i8* nocapture %7, i8* nocapture %8) {
%10 = alloca i32
%11 = alloca i32
%12 = bitcast i32* %10 to i8*
%13 = bitcast i32* %11 to i8*
%14 = icmp slt i32 %0, 0
br i1 %14, label %92, label %15
15: ; preds = %9
%16 = tail call i32 @atoi(i8* %6)
%17 = tail call i32 @atoi(i8* %7)
%18 = icmp ugt i32 %16, 8
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = tail call i32 @fatal_error(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %21
21: ; preds = %15, %19
%22 = icmp slt i32 %17, 1
br i1 %22, label %23, label %25
23: ; preds = %21
%24 = tail call i32 @fatal_error(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %25
25: ; preds = %23, %21
switch i32 %16, label %27 [
i32 0, label %33
i32 8, label %26
]
26: ; preds = %25
br label %33
27: ; preds = %25
%28 = sext i32 %16 to i64
%29 = getelementptr inbounds i8*, i8** %1, i64 %28
%30 = load i8*, i8** %29
%31 = tail call i32 @uint4(i8* %30)
%32 = sext i32 %31 to i64
br label %33
33: ; preds = %25, %26, %27
%34 = phi i64 [ 4, %26 ], [ %32, %27 ], [ 16, %25 ]
br label %35
35: ; preds = %39, %33
%36 = phi i8* [ %8, %33 ], [ %40, %39 ]
%37 = load i8, i8* %36
%38 = icmp eq i8 %37, 0
br i1 %38, label %67, label %39
39: ; preds = %35
%40 = getelementptr inbounds i8, i8* %36, i64 1
%41 = icmp eq i8 %37, 58
br i1 %41, label %42, label %35
42: ; preds = %39
%43 = call i32 @sscanf(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %11, i32* %10)
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %92
45: ; preds = %42
%46 = sext i32 %16 to i64
%47 = getelementptr inbounds i8*, i8** %1, i64 %46
%48 = sext i32 %17 to i64
br label %49
49: ; preds = %45, %55
%50 = phi i64 [ %48, %45 ], [ %59, %55 ]
%51 = phi i8* [ %8, %45 ], [ %64, %55 ]
%52 = icmp sgt i64 %50, %34
br i1 %52, label %53, label %55
53: ; preds = %49
%54 = call i32 @fatal_error(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %6)
br label %55
55: ; preds = %53, %49
%56 = load i32, i32* %11
%57 = trunc i32 %56 to i8
%58 = load i8*, i8** %47
%59 = add i64 %50, 1
%60 = add nsw i64 %50, -1
%61 = getelementptr inbounds i8, i8* %58, i64 %60
store i8 %57, i8* %61
%62 = load i32, i32* %10
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %51, i64 %63
%65 = call i32 @sscanf(i8* %64, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32* %11, i32* %10)
%66 = icmp eq i32 %65, 1
br i1 %66, label %49, label %92
67: ; preds = %35
%68 = call i32 @sscanf(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %11, i32* %10)
%69 = icmp eq i32 %68, 1
br i1 %69, label %70, label %92
70: ; preds = %67
%71 = sext i32 %16 to i64
%72 = getelementptr inbounds i8*, i8** %1, i64 %71
%73 = sext i32 %17 to i64
br label %74
74: ; preds = %70, %80
%75 = phi i64 [ %73, %70 ], [ %84, %80 ]
%76 = phi i8* [ %8, %70 ], [ %89, %80 ]
%77 = icmp sgt i64 %75, %34
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = call i32 @fatal_error(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %6)
br label %80
80: ; preds = %78, %74
%81 = load i32, i32* %11
%82 = trunc i32 %81 to i8
%83 = load i8*, i8** %72
%84 = add i64 %75, 1
%85 = add nsw i64 %75, -1
%86 = getelementptr inbounds i8, i8* %83, i64 %85
store i8 %82, i8* %86
%87 = load i32, i32* %10
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8, i8* %76, i64 %88
%90 = call i32 @sscanf(i8* %89, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %11, i32* %10)
%91 = icmp eq i32 %90, 1
br i1 %91, label %74, label %92
92: ; preds = %55, %80, %42, %67, %9
ret i32 0
}