#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 /*<<< orphan*/ free(char *);
scalar_t__ space(int);
int /*<<< orphan*/ sscanf(char const *, char *, char *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strlen(char const *);
int /*<<< orphan*/ warn_user(char *);
scalar_t__ xrealloc(char *, int);
void getConstraint(char **cstruc, const char **lines, unsigned int option) {
  int r, i, l, cl, stop;
  char *c, *ptr;
  if (lines) {
    if (option & 128U)
      option |= 1U | 8U | 16U | 4U | 256U;
    for (r = i = stop = 0; lines[i]; i++) {
      l = (int)strlen(lines[i]);
      c = (char *)space(sizeof(char) * (l + 1));
      (void)sscanf(lines[i], "%s", c);
      cl = (int)strlen(c);
      if ((*c == '#') || (*c == '%') || (*c == ';') || (*c == '/') ||
          (*c == '*' || (*c == '\0'))) {
        if (!r)
          continue;
        else
          break;
      }
      for (ptr = c; *c; c++) {
        switch (*c) {
        case '|':
          if (!(option & 1U)) {
            warn_user("constraints of type '|' not allowed");
            *c = '.';
          }
          break;
        case '<':
        case '>':
          if (!(option & 8U)) {
            warn_user("constraints of type '<' or '>' not allowed");
            *c = '.';
          }
          break;
        case '(':
        case ')':
          if (!(option & 16U)) {
            warn_user("constraints of type '(' or ')' not allowed");
            *c = '.';
          }
          break;
        case 'x':
          if (!(option & 4U)) {
            warn_user("constraints of type 'x' not allowed");
            *c = '.';
          }
          break;
        case '+':
          if (!(option & 256U)) {
            warn_user("character '+' ignored in structure");
            *c = '.';
          }
        case '.':
          break;
        case '&':
          break;
        default:
          warn_user("unrecognized character in constraint structure");
          break;
        }
      }
      r += cl + 1;
      *cstruc = (char *)xrealloc(*cstruc, r * sizeof(char));
      strcat(*cstruc, ptr);
      free(ptr);
      if (!(option & 32U) || (cl != l))
        break;
    }
  }
}


x86 assembly (clang, -O0):
<getConstraint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1449 <getConstraint+0x2d9>
mov    -0x14(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11aa <getConstraint+0x3a>
mov    -0x14(%rbp),%eax
or     $0x11d,%eax
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1444 <getConstraint+0x2d4>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1040 <space@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x30(%rbp),%rdx
lea    0xf48(%rip),%rsi
call   1070 <sscanf@plt>
mov    -0x30(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
je     1285 <getConstraint+0x115>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x25,%eax
je     1285 <getConstraint+0x115>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3b,%eax
je     1285 <getConstraint+0x115>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
je     1285 <getConstraint+0x115>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
je     1285 <getConstraint+0x115>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1299 <getConstraint+0x129>
cmpl   $0x0,-0x18(%rbp)
jne    1294 <getConstraint+0x124>
jmp    1436 <getConstraint+0x2c6>
jmp    1444 <getConstraint+0x2d4>
mov    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
cmpb   $0x0,(%rax)
je     13cc <getConstraint+0x25c>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffda,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x56,%eax
ja     13aa <getConstraint+0x23a>
mov    -0x40(%rbp),%rax
lea    0xd2e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x14(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
jne    12fd <getConstraint+0x18d>
lea    0xe6e(%rip),%rdi
call   1080 <warn_user@plt>
mov    -0x30(%rbp),%rax
movb   $0x2e,(%rax)
jmp    13b6 <getConstraint+0x246>
mov    -0x14(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
jne    1324 <getConstraint+0x1b4>
lea    0xe6b(%rip),%rdi
call   1080 <warn_user@plt>
mov    -0x30(%rbp),%rax
movb   $0x2e,(%rax)
jmp    13b6 <getConstraint+0x246>
mov    -0x14(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
jne    134b <getConstraint+0x1db>
lea    0xe6f(%rip),%rdi
call   1080 <warn_user@plt>
mov    -0x30(%rbp),%rax
movb   $0x2e,(%rax)
jmp    13b6 <getConstraint+0x246>
mov    -0x14(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
jne    1372 <getConstraint+0x202>
lea    0xe73(%rip),%rdi
call   1080 <warn_user@plt>
mov    -0x30(%rbp),%rax
movb   $0x2e,(%rax)
jmp    13b6 <getConstraint+0x246>
mov    -0x14(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
jne    139b <getConstraint+0x22b>
lea    0xe6e(%rip),%rdi
call   1080 <warn_user@plt>
mov    -0x30(%rbp),%rax
movb   $0x2e,(%rax)
jmp    13a0 <getConstraint+0x230>
jmp    13b6 <getConstraint+0x246>
jmp    13b6 <getConstraint+0x246>
lea    0xe6f(%rip),%rdi
call   1080 <warn_user@plt>
jmp    13bb <getConstraint+0x24b>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    12a1 <getConstraint+0x131>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
movslq -0x18(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%esi
call   1060 <xrealloc@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    -0x38(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x14(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     142c <getConstraint+0x2bc>
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1431 <getConstraint+0x2c1>
jmp    1444 <getConstraint+0x2d4>
jmp    1436 <getConstraint+0x2c6>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11bf <getConstraint+0x4f>
jmp    1449 <getConstraint+0x2d9>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getConstraint>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,0x18(%rsp)
test   %rsi,%rsi
je     1327 <getConstraint+0x1b7>
mov    %rsi,%rbp
mov    %edx,%eax
or     $0x11d,%eax
test   $0x80,%dl
cmove  %edx,%eax
mov    %eax,0xc(%rsp)
mov    (%rsi),%rdi
test   %rdi,%rdi
je     1327 <getConstraint+0x1b7>
xor    %r14d,%r14d
lea    0xe4a(%rip),%rbx
xor    %r12d,%r12d
mov    %rbp,0x10(%rsp)
jmp    11e1 <getConstraint+0x71>
test   %r12d,%r12d
mov    $0x0,%r12d
jne    1327 <getConstraint+0x1b7>
mov    0x8(%rbp,%r14,8),%rdi
add    $0x1,%r14
test   %rdi,%rdi
je     1327 <getConstraint+0x1b7>
call   1050 <strlen@plt>
mov    %rax,0x20(%rsp)
lea    0x1(%rax),%edi
call   1040 <space@plt>
mov    %rax,%r13
mov    0x0(%rbp,%r14,8),%rdi
lea    0xf5a(%rip),%rsi
mov    %rax,%rdx
call   1070 <sscanf@plt>
mov    %r13,%rdi
call   1050 <strlen@plt>
movzbl 0x0(%r13),%edx
cmp    $0x3b,%rdx
ja     122d <getConstraint+0xbd>
movabs $0x800842800000001,%rcx
bt     %rdx,%rcx
jb     11c0 <getConstraint+0x50>
mov    %r13,%rbp
mov    %rax,%r15
jmp    125c <getConstraint+0xec>
cs nopw 0x0(%rax,%rax,1)
nop
call   1080 <warn_user@plt>
mov    %r15,%rax
movb   $0x2e,0x0(%rbp)
movzbl 0x1(%rbp),%edx
add    $0x1,%rbp
test   %dl,%dl
je     12de <getConstraint+0x16e>
movsbl %dl,%ecx
add    $0xffffffda,%ecx
cmp    $0x56,%ecx
ja     1290 <getConstraint+0x120>
movslq (%rbx,%rcx,4),%rcx
add    %rbx,%rcx
jmp    *%rcx
testb  $0x10,0xc(%rsp)
jne    124c <getConstraint+0xdc>
lea    0xf30(%rip),%rdi
jmp    1240 <getConstraint+0xd0>
testb  $0x8,0xc(%rsp)
jne    124c <getConstraint+0xdc>
lea    0xef5(%rip),%rdi
jmp    1240 <getConstraint+0xd0>
lea    0xf89(%rip),%rdi
call   1080 <warn_user@plt>
mov    %r15,%rax
jmp    124c <getConstraint+0xdc>
testl  $0x100,0xc(%rsp)
jne    124c <getConstraint+0xdc>
lea    0xf4b(%rip),%rdi
jmp    1240 <getConstraint+0xd0>
testb  $0x4,0xc(%rsp)
jne    124c <getConstraint+0xdc>
lea    0xf17(%rip),%rdi
jmp    1240 <getConstraint+0xd0>
testb  $0x1,0xc(%rsp)
jne    124c <getConstraint+0xdc>
lea    0xe86(%rip),%rdi
jmp    1240 <getConstraint+0xd0>
add    %eax,%r12d
add    $0x1,%r12d
mov    0x18(%rsp),%rbp
mov    0x0(%rbp),%rdi
mov    %r12d,%esi
mov    %rax,%r15
call   1060 <xrealloc@plt>
mov    %rax,0x0(%rbp)
mov    %rax,%rdi
mov    %r13,%rsi
call   1090 <strcat@plt>
mov    %r13,%rdi
call   1030 <free@plt>
testb  $0x20,0xc(%rsp)
mov    0x10(%rsp),%rbp
je     1327 <getConstraint+0x1b7>
cmp    0x20(%rsp),%r15d
je     11cf <getConstraint+0x5f>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [36 x i8] c"constraints of type '|' not allowed\00"
@.str.2 = [43 x i8] c"constraints of type '<' or '>' not allowed\00"
@.str.3 = [43 x i8] c"constraints of type '(' or ')' not allowed\00"
@.str.4 = [36 x i8] c"constraints of type 'x' not allowed\00"
@.str.5 = [35 x i8] c"character '+' ignored in structure\00"
@.str.6 = [47 x i8] c"unrecognized character in constraint structure\00"
define void @getConstraint(i8** %0, i8** %1, i32 %2) {
%4 = alloca i8**
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
store i8** %0, i8*** %4
store i8** %1, i8*** %5
store i32 %2, i32* %6
%14 = load i8**, i8*** %5
%15 = icmp ne i8** %14, null
br i1 %15, label %16, label %181
16: ; preds = %3
%17 = load i32, i32* %6
%18 = and i32 %17, 128
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, i32* %6
%22 = or i32 %21, 285
store i32 %22, i32* %6
br label %23
23: ; preds = %20, %16
store i32 0, i32* %11
store i32 0, i32* %8
store i32 0, i32* %7
br label %24
24: ; preds = %177, %23
%25 = load i8**, i8*** %5
%26 = load i32, i32* %8
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8*, i8** %25, i64 %27
%29 = load i8*, i8** %28
%30 = icmp ne i8* %29, null
br i1 %30, label %31, label %180
31: ; preds = %24
%32 = load i8**, i8*** %5
%33 = load i32, i32* %8
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %32, i64 %34
%36 = load i8*, i8** %35
%37 = call i64 @strlen(i8* %36)
%38 = trunc i64 %37 to i32
store i32 %38, i32* %9
%39 = load i32, i32* %9
%40 = add nsw i32 %39, 1
%41 = sext i32 %40 to i64
%42 = mul i64 1, %41
%43 = trunc i64 %42 to i32
%44 = call i64 @space(i32 %43)
%45 = inttoptr i64 %44 to i8*
store i8* %45, i8** %12
%46 = load i8**, i8*** %5
%47 = load i32, i32* %8
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
%51 = load i8*, i8** %12
%52 = call i32 @sscanf(i8* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %51)
%53 = load i8*, i8** %12
%54 = call i64 @strlen(i8* %53)
%55 = trunc i64 %54 to i32
store i32 %55, i32* %10
%56 = load i8*, i8** %12
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 35
br i1 %59, label %85, label %60
60: ; preds = %31
%61 = load i8*, i8** %12
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 37
br i1 %64, label %85, label %65
65: ; preds = %60
%66 = load i8*, i8** %12
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 59
br i1 %69, label %85, label %70
70: ; preds = %65
%71 = load i8*, i8** %12
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 47
br i1 %74, label %85, label %75
75: ; preds = %70
%76 = load i8*, i8** %12
%77 = load i8, i8* %76
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 42
br i1 %79, label %85, label %80
80: ; preds = %75
%81 = load i8*, i8** %12
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %80, %75, %70, %65, %60, %31
%86 = load i32, i32* %7
%87 = icmp ne i32 %86, 0
br i1 %87, label %89, label %88
88: ; preds = %85
br label %177
89: ; preds = %85
br label %180
90: ; preds = %80
%91 = load i8*, i8** %12
store i8* %91, i8** %13
br label %92
92: ; preds = %145, %90
%93 = load i8*, i8** %12
%94 = load i8, i8* %93
%95 = icmp ne i8 %94, 0
br i1 %95, label %96, label %148
96: ; preds = %92
%97 = load i8*, i8** %12
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
switch i32 %99, label %142 [
i32 124, label %100
i32 60, label %108
i32 62, label %108
i32 40, label %116
i32 41, label %116
i32 120, label %124
i32 43, label %132
i32 46, label %140
i32 38, label %141
]
100: ; preds = %96
%101 = load i32, i32* %6
%102 = and i32 %101, 1
%103 = icmp ne i32 %102, 0
br i1 %103, label %107, label %104
104: ; preds = %100
%105 = call i32 @warn_user(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%106 = load i8*, i8** %12
store i8 46, i8* %106
br label %107
107: ; preds = %104, %100
br label %144
108: ; preds = %96, %96
%109 = load i32, i32* %6
%110 = and i32 %109, 8
%111 = icmp ne i32 %110, 0
br i1 %111, label %115, label %112
112: ; preds = %108
%113 = call i32 @warn_user(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
%114 = load i8*, i8** %12
store i8 46, i8* %114
br label %115
115: ; preds = %112, %108
br label %144
116: ; preds = %96, %96
%117 = load i32, i32* %6
%118 = and i32 %117, 16
%119 = icmp ne i32 %118, 0
br i1 %119, label %123, label %120
120: ; preds = %116
%121 = call i32 @warn_user(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%122 = load i8*, i8** %12
store i8 46, i8* %122
br label %123
123: ; preds = %120, %116
br label %144
124: ; preds = %96
%125 = load i32, i32* %6
%126 = and i32 %125, 4
%127 = icmp ne i32 %126, 0
br i1 %127, label %131, label %128
128: ; preds = %124
%129 = call i32 @warn_user(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%130 = load i8*, i8** %12
store i8 46, i8* %130
br label %131
131: ; preds = %128, %124
br label %144
132: ; preds = %96
%133 = load i32, i32* %6
%134 = and i32 %133, 256
%135 = icmp ne i32 %134, 0
br i1 %135, label %139, label %136
136: ; preds = %132
%137 = call i32 @warn_user(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%138 = load i8*, i8** %12
store i8 46, i8* %138
br label %139
139: ; preds = %136, %132
br label %140
140: ; preds = %96, %139
br label %144
141: ; preds = %96
br label %144
142: ; preds = %96
%143 = call i32 @warn_user(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
br label %144
144: ; preds = %142, %141, %140, %131, %123, %115, %107
br label %145
145: ; preds = %144
%146 = load i8*, i8** %12
%147 = getelementptr inbounds i8, i8* %146, i32 1
store i8* %147, i8** %12
br label %92
148: ; preds = %92
%149 = load i32, i32* %10
%150 = add nsw i32 %149, 1
%151 = load i32, i32* %7
%152 = add nsw i32 %151, %150
store i32 %152, i32* %7
%153 = load i8**, i8*** %4
%154 = load i8*, i8** %153
%155 = load i32, i32* %7
%156 = sext i32 %155 to i64
%157 = mul i64 %156, 1
%158 = trunc i64 %157 to i32
%159 = call i64 @xrealloc(i8* %154, i32 %158)
%160 = inttoptr i64 %159 to i8*
%161 = load i8**, i8*** %4
store i8* %160, i8** %161
%162 = load i8**, i8*** %4
%163 = load i8*, i8** %162
%164 = load i8*, i8** %13
%165 = call i32 @strcat(i8* %163, i8* %164)
%166 = load i8*, i8** %13
%167 = call i32 @free(i8* %166)
%168 = load i32, i32* %6
%169 = and i32 %168, 32
%170 = icmp ne i32 %169, 0
br i1 %170, label %171, label %175
171: ; preds = %148
%172 = load i32, i32* %10
%173 = load i32, i32* %9
%174 = icmp ne i32 %172, %173
br i1 %174, label %175, label %176
175: ; preds = %171, %148
br label %180
176: ; preds = %171
br label %177
177: ; preds = %176, %88
%178 = load i32, i32* %8
%179 = add nsw i32 %178, 1
store i32 %179, i32* %8
br label %24
180: ; preds = %175, %89, %24
br label %181
181: ; preds = %180, %3
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [36 x i8] c"constraints of type '|' not allowed\00"
@.str.2 = [43 x i8] c"constraints of type '<' or '>' not allowed\00"
@.str.3 = [43 x i8] c"constraints of type '(' or ')' not allowed\00"
@.str.4 = [36 x i8] c"constraints of type 'x' not allowed\00"
@.str.5 = [35 x i8] c"character '+' ignored in structure\00"
@.str.6 = [47 x i8] c"unrecognized character in constraint structure\00"
define void @getConstraint(i8** nocapture %0, i8** %1, i32 %2) {
%4 = icmp eq i8** %1, null
br i1 %4, label %83, label %5
5: ; preds = %3
%6 = and i32 %2, 128
%7 = icmp eq i32 %6, 0
%8 = or i32 %2, 285
%9 = select i1 %7, i32 %2, i32 %8
%10 = load i8*, i8** %1
%11 = icmp eq i8* %10, null
br i1 %11, label %83, label %12
12: ; preds = %5
%13 = and i32 %9, 256
%14 = icmp eq i32 %13, 0
%15 = and i32 %9, 4
%16 = icmp eq i32 %15, 0
%17 = and i32 %9, 16
%18 = icmp eq i32 %17, 0
%19 = and i32 %9, 8
%20 = icmp eq i32 %19, 0
%21 = and i32 %9, 1
%22 = icmp eq i32 %21, 0
%23 = and i32 %9, 32
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %12, %77
%26 = phi i64 [ 0, %12 ], [ %79, %77 ]
%27 = phi i8* [ %10, %12 ], [ %81, %77 ]
%28 = phi i8** [ %1, %12 ], [ %80, %77 ]
%29 = phi i32 [ 0, %12 ], [ %78, %77 ]
%30 = tail call i64 @strlen(i8* %27)
%31 = trunc i64 %30 to i32
%32 = add nsw i32 %31, 1
%33 = tail call i64 @space(i32 %32)
%34 = inttoptr i64 %33 to i8*
%35 = load i8*, i8** %28
%36 = tail call i32 @sscanf(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %34)
%37 = tail call i64 @strlen(i8* dereferenceable(1) %34)
%38 = trunc i64 %37 to i32
%39 = load i8, i8* %34
switch i8 %39, label %42 [
i8 35, label %40
i8 37, label %40
i8 59, label %40
i8 47, label %40
i8 42, label %40
i8 0, label %40
]
40: ; preds = %25, %25, %25, %25, %25, %25
%41 = icmp eq i32 %29, 0
br i1 %41, label %77, label %83
42: ; preds = %25, %63
%43 = phi i8* [ %64, %63 ], [ %34, %25 ]
%44 = phi i8 [ %65, %63 ], [ %39, %25 ]
%45 = sext i8 %44 to i32
switch i32 %45, label %61 [
i32 124, label %46
i32 60, label %49
i32 62, label %49
i32 40, label %52
i32 41, label %52
i32 120, label %55
i32 43, label %58
i32 46, label %63
i32 38, label %63
]
46: ; preds = %42
br i1 %22, label %47, label %63
47: ; preds = %46
%48 = tail call i32 @warn_user(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
store i8 46, i8* %43
br label %63
49: ; preds = %42, %42
br i1 %20, label %50, label %63
50: ; preds = %49
%51 = tail call i32 @warn_user(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0))
store i8 46, i8* %43
br label %63
52: ; preds = %42, %42
br i1 %18, label %53, label %63
53: ; preds = %52
%54 = tail call i32 @warn_user(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
store i8 46, i8* %43
br label %63
55: ; preds = %42
br i1 %16, label %56, label %63
56: ; preds = %55
%57 = tail call i32 @warn_user(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
store i8 46, i8* %43
br label %63
58: ; preds = %42
br i1 %14, label %59, label %63
59: ; preds = %58
%60 = tail call i32 @warn_user(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
store i8 46, i8* %43
br label %63
61: ; preds = %42
%62 = tail call i32 @warn_user(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
br label %63
63: ; preds = %42, %42, %61, %47, %46, %50, %49, %53, %52, %56, %55, %59, %58
%64 = getelementptr inbounds i8, i8* %43, i64 1
%65 = load i8, i8* %64
%66 = icmp eq i8 %65, 0
br i1 %66, label %67, label %42
67: ; preds = %63
%68 = add i32 %29, 1
%69 = add i32 %68, %38
%70 = load i8*, i8** %0
%71 = tail call i64 @xrealloc(i8* %70, i32 %69)
%72 = inttoptr i64 %71 to i8*
store i8* %72, i8** %0
%73 = tail call i32 @strcat(i8* %72, i8* %34)
%74 = tail call i32 @free(i8* %34)
%75 = icmp eq i32 %38, %31
%76 = select i1 %24, i1 %75, i1 false
br i1 %76, label %77, label %83
77: ; preds = %67, %40
%78 = phi i32 [ 0, %40 ], [ %69, %67 ]
%79 = add nuw i64 %26, 1
%80 = getelementptr inbounds i8*, i8** %1, i64 %79
%81 = load i8*, i8** %80
%82 = icmp eq i8* %81, null
br i1 %82, label %83, label %25
83: ; preds = %67, %40, %77, %5, %3
ret void
}