#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 BUFSIZ;
int /*<<< orphan*/ printf(char *, ...);
char *regcmp(char const *, int /*<<< orphan*/ *);
char *regex(char const *, char *, char *);
main(int argc, char **argv) {
  const char *realre[4];
  realre[0] =
      "^[ \t]*([-+]{0,1}[0-9]+(\\.[0-9]*){0,1}([eEqQ][-+]{0,1}[0-9]+){0,1})$0";
  realre[1] = "^[ \t]*([-+]{0,1}INF)$0";
  realre[2] = "^[ \t]*(QNAN)$0";
  realre[3] = "^[ \t]*(SNAN)$0";
  const char *crealre[4];
  for (int i = 0; i < 4; i++) {
    if ((crealre[i] = regcmp(realre[i], NULL)) == NULL)
      printf("regcmp failed ...\n");
    else
      printf("regcmp %d succeeded ...\n", i);
  }
  for (int arg = 1; arg < argc; arg++) {
    char *cursor = argv[arg];
    char *newcursor = NULL;
    for (int re = 0; re < 4; re++) {
      printf("scanning ... %s with RE %d\n", cursor, re);
      char realval[BUFSIZ];
      for (int i = 1;
           ((newcursor = regex(crealre[re], cursor, realval)) != NULL); i++) {
        printf("%d: argv[%d]=%s, realval=<%s>\n", i, arg, argv[arg], realval);
        cursor = newcursor;
      }
    }
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb0(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xeea(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xef6(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xefa(%rip),%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x54(%rbp)
cmpl   $0x4,-0x54(%rbp)
jge    11e2 <main+0xb2>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,8),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <regcmp@plt>
movslq -0x54(%rbp),%rcx
mov    %rax,-0x50(%rbp,%rcx,8)
cmp    $0x0,%rax
jne    11be <main+0x8e>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11cf <main+0x9f>
mov    -0x54(%rbp),%esi
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11d4 <main+0xa4>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    117c <main+0x4c>
movl   $0x1,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1301 <main+0x1d1>
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
cmpl   $0x4,-0x6c(%rbp)
jge    12ee <main+0x1be>
mov    -0x60(%rbp),%rsi
mov    -0x6c(%rbp),%edx
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2da6(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x80(%rbp)
movl   $0x1,-0x84(%rbp)
mov    -0x90(%rbp),%rdx
movslq -0x6c(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
mov    -0x60(%rbp),%rsi
call   1030 <regex@plt>
mov    %rax,-0x68(%rbp)
cmp    $0x0,%rax
je     12d9 <main+0x1a9>
mov    -0x90(%rbp),%r8
mov    -0x84(%rbp),%esi
mov    -0x58(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x68(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    126c <main+0x13c>
mov    -0x78(%rbp),%rax
mov    %rax,%rsp
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1214 <main+0xe4>
jmp    12f3 <main+0x1c3>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    11e9 <main+0xb9>
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r12
mov    %edi,%r14d
lea    0xea2(%rip),%rdi
xor    %esi,%esi
call   1050 <regcmp@plt>
mov    %rax,%rbx
test   %rax,%rax
je     117f <main+0x3f>
lea    0xf06(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    118b <main+0x4b>
lea    0xf48(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb3(%rip),%rdi
xor    %esi,%esi
call   1050 <regcmp@plt>
mov    %rax,%r15
test   %rax,%rax
je     11b6 <main+0x76>
lea    0xed2(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11c2 <main+0x82>
lea    0xf11(%rip),%rdi
call   1040 <puts@plt>
lea    0xe93(%rip),%rdi
xor    %esi,%esi
call   1050 <regcmp@plt>
mov    %rax,%r13
test   %rax,%rax
je     11ed <main+0xad>
lea    0xe9b(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11f9 <main+0xb9>
lea    0xeda(%rip),%rdi
call   1040 <puts@plt>
lea    0xe6b(%rip),%rdi
xor    %esi,%esi
call   1050 <regcmp@plt>
mov    %rax,-0x48(%rbp)
test   %rax,%rax
mov    %r15,-0x60(%rbp)
mov    %r13,-0x58(%rbp)
je     1236 <main+0xf6>
lea    0xe5b(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x1,%r14d
jg     124c <main+0x10c>
jmp    14e9 <main+0x3a9>
lea    0xe91(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x1,%r14d
jle    14e9 <main+0x3a9>
mov    %r14d,%eax
mov    %rax,-0x50(%rbp)
mov    $0x1,%r14d
mov    %rbx,-0x40(%rbp)
mov    %r12,-0x38(%rbp)
jmp    1286 <main+0x146>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    -0x30(%rbp),%rsp
add    $0x1,%r14
cmp    -0x50(%rbp),%r14
mov    -0x40(%rbp),%rbx
je     14e9 <main+0x3a9>
mov    (%r12,%r14,8),%r12
lea    0xe02(%rip),%rdi
mov    %r12,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,-0x30(%rbp)
mov    0x2d38(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%r13
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1030 <regex@plt>
test   %rax,%rax
je     131d <main+0x1dd>
mov    %rax,%rbx
mov    $0x1,%r15d
nopw   0x0(%rax,%rax,1)
mov    -0x38(%rbp),%rax
mov    (%rax,%r14,8),%rcx
lea    0xdc0(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
mov    %r13,%r8
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r15d
mov    -0x40(%rbp),%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
call   1030 <regex@plt>
mov    %rbx,%r12
mov    %rax,%rbx
test   %rax,%rax
jne    12e0 <main+0x1a0>
mov    -0x30(%rbp),%rsp
lea    0xd6b(%rip),%rdi
mov    %r12,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,-0x30(%rbp)
mov    0x2c9e(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%r15
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    -0x60(%rbp),%r13
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <regex@plt>
test   %rax,%rax
je     13b7 <main+0x277>
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rax,%r12
mov    -0x38(%rbp),%rax
mov    (%rax,%r14,8),%rcx
lea    0xd1d(%rip),%rdi
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r15,%r8
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%ebx
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <regex@plt>
test   %rax,%rax
jne    1380 <main+0x240>
mov    -0x30(%rbp),%rsp
lea    0xcd1(%rip),%rdi
mov    %r12,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,-0x30(%rbp)
mov    0x2c04(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%r15
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    -0x58(%rbp),%r13
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <regex@plt>
test   %rax,%rax
je     1447 <main+0x307>
mov    $0x1,%ebx
nopl   0x0(%rax,%rax,1)
mov    %rax,%r12
mov    -0x38(%rbp),%rax
mov    (%rax,%r14,8),%rcx
lea    0xc8d(%rip),%rdi
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r15,%r8
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%ebx
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <regex@plt>
test   %rax,%rax
jne    1410 <main+0x2d0>
mov    -0x30(%rbp),%rsp
lea    0xc41(%rip),%rdi
mov    %r12,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,-0x30(%rbp)
mov    0x2b74(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%r13
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r13
mov    %r13,%rsp
mov    -0x48(%rbp),%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1030 <regex@plt>
test   %rax,%rax
mov    -0x38(%rbp),%r12
je     1270 <main+0x130>
mov    %rax,%r15
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r12,%r14,8),%rcx
lea    0xbf4(%rip),%rdi
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r13,%r8
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%ebx
mov    -0x48(%rbp),%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   1030 <regex@plt>
mov    %rax,%r15
test   %rax,%rax
jne    14b0 <main+0x370>
jmp    1270 <main+0x130>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [69 x i8] c"^[ \09]*([-+]{0,1}[0-9]+(\\.[0-9]*){0,1}([eEqQ][-+]{0,1}[0-9]+){0,1})$0\00"
@.str.1 = [23 x i8] c"^[ \09]*([-+]{0,1}INF)$0\00"
@.str.2 = [15 x i8] c"^[ \09]*(QNAN)$0\00"
@.str.3 = [15 x i8] c"^[ \09]*(SNAN)$0\00"
@.str.4 = [19 x i8] c"regcmp failed ...\0A\00"
@.str.5 = [25 x i8] c"regcmp %d succeeded ...\0A\00"
@.str.6 = [28 x i8] c"scanning ... %s with RE %d\0A\00"
@BUFSIZ = global i32 0
@.str.7 = [31 x i8] c"%d: argv[%d]=%s, realval=<%s>\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i8*]
%7 = alloca [4 x i8*]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 0
store i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 2
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 3
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8** %19
store i32 0, i32* %8
br label %20
20: ; preds = %39, %2
%21 = load i32, i32* %8
%22 = icmp slt i32 %21, 4
br i1 %22, label %23, label %42
23: ; preds = %20
%24 = load i32, i32* %8
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 %25
%27 = load i8*, i8** %26
%28 = call i8* @regcmp(i8* %27, i32* null)
%29 = load i32, i32* %8
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [4 x i8*], [4 x i8*]* %7, i64 0, i64 %30
store i8* %28, i8** %31
%32 = icmp eq i8* %28, null
br i1 %32, label %33, label %35
33: ; preds = %23
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %38
35: ; preds = %23
%36 = load i32, i32* %8
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %36)
br label %38
38: ; preds = %35, %33
br label %39
39: ; preds = %38
%40 = load i32, i32* %8
%41 = add nsw i32 %40, 1
store i32 %41, i32* %8
br label %20
42: ; preds = %20
store i32 1, i32* %9
br label %43
43: ; preds = %91, %42
%44 = load i32, i32* %9
%45 = load i32, i32* %4
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %94
47: ; preds = %43
%48 = load i8**, i8*** %5
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %48, i64 %50
%52 = load i8*, i8** %51
store i8* %52, i8** %10
store i8* null, i8** %11
store i32 0, i32* %12
br label %53
53: ; preds = %87, %47
%54 = load i32, i32* %12
%55 = icmp slt i32 %54, 4
br i1 %55, label %56, label %90
56: ; preds = %53
%57 = load i8*, i8** %10
%58 = load i32, i32* %12
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %57, i32 %58)
%60 = load i32, i32* @BUFSIZ
%61 = zext i32 %60 to i64
%62 = call i8* @llvm.stacksave()
store i8* %62, i8** %13
%63 = alloca i8, i64 %61
store i64 %61, i64* %14
store i32 1, i32* %15
br label %64
64: ; preds = %82, %56
%65 = load i32, i32* %12
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [4 x i8*], [4 x i8*]* %7, i64 0, i64 %66
%68 = load i8*, i8** %67
%69 = load i8*, i8** %10
%70 = call i8* @regex(i8* %68, i8* %69, i8* %63)
store i8* %70, i8** %11
%71 = icmp ne i8* %70, null
br i1 %71, label %72, label %85
72: ; preds = %64
%73 = load i32, i32* %15
%74 = load i32, i32* %9
%75 = load i8**, i8*** %5
%76 = load i32, i32* %9
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %73, i32 %74, i8* %79, i8* %63)
%81 = load i8*, i8** %11
store i8* %81, i8** %10
br label %82
82: ; preds = %72
%83 = load i32, i32* %15
%84 = add nsw i32 %83, 1
store i32 %84, i32* %15
br label %64
85: ; preds = %64
%86 = load i8*, i8** %13
br label %87
87: ; preds = %85
%88 = load i32, i32* %12
%89 = add nsw i32 %88, 1
store i32 %89, i32* %12
br label %53
90: ; preds = %53
br label %91
91: ; preds = %90
%92 = load i32, i32* %9
%93 = add nsw i32 %92, 1
store i32 %93, i32* %9
br label %43
94: ; preds = %43
ret i32 0
}

LLVM IR (-O2):
@.str = [69 x i8] c"^[ \09]*([-+]{0,1}[0-9]+(\\.[0-9]*){0,1}([eEqQ][-+]{0,1}[0-9]+){0,1})$0\00"
@.str.1 = [23 x i8] c"^[ \09]*([-+]{0,1}INF)$0\00"
@.str.2 = [15 x i8] c"^[ \09]*(QNAN)$0\00"
@.str.3 = [15 x i8] c"^[ \09]*(SNAN)$0\00"
@.str.5 = [25 x i8] c"regcmp %d succeeded ...\0A\00"
@.str.6 = [28 x i8] c"scanning ... %s with RE %d\0A\00"
@BUFSIZ = global i32 0
@.str.7 = [31 x i8] c"%d: argv[%d]=%s, realval=<%s>\0A\00"
@str = [18 x i8] c"regcmp failed ...\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i8* @regcmp(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0), i32* null)
%4 = icmp eq i8* %3, null
br i1 %4, label %7, label %9
5: ; preds = %32
%6 = zext i32 %0 to i64
br label %35
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %11
9: ; preds = %2
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 0)
br label %11
11: ; preds = %7, %9
%12 = tail call i8* @regcmp(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32* null)
%13 = icmp eq i8* %12, null
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 1)
br label %18
16: ; preds = %11
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %18
18: ; preds = %16, %14
%19 = tail call i8* @regcmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32* null)
%20 = icmp eq i8* %19, null
br i1 %20, label %23, label %21
21: ; preds = %18
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 2)
br label %25
23: ; preds = %18
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %25
25: ; preds = %23, %21
%26 = tail call i8* @regcmp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32* null)
%27 = icmp eq i8* %26, null
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 3)
br label %32
30: ; preds = %25
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
%33 = icmp sgt i32 %0, 1
br i1 %33, label %5, label %34
34: ; preds = %105, %32
ret i32 0
35: ; preds = %5, %105
%36 = phi i64 [ 1, %5 ], [ %106, %105 ]
%37 = getelementptr inbounds i8*, i8** %1, i64 %36
%38 = load i8*, i8** %37
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %38, i32 0)
%40 = load i32, i32* @BUFSIZ
%41 = zext i32 %40 to i64
%42 = call i8* @llvm.stacksave()
%43 = alloca i8, i64 %41
%44 = call i8* @regex(i8* %3, i8* %38, i8* %43)
%45 = icmp eq i8* %44, null
br i1 %45, label %48, label %46
46: ; preds = %35
%47 = trunc i64 %36 to i32
br label %108
48: ; preds = %108, %35
%49 = phi i8* [ %38, %35 ], [ %109, %108 ]
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %49, i32 1)
%51 = load i32, i32* @BUFSIZ
%52 = zext i32 %51 to i64
%53 = call i8* @llvm.stacksave()
%54 = alloca i8, i64 %52
%55 = call i8* @regex(i8* %12, i8* %49, i8* %54)
%56 = icmp eq i8* %55, null
br i1 %56, label %67, label %57
57: ; preds = %48
%58 = trunc i64 %36 to i32
br label %59
59: ; preds = %59, %57
%60 = phi i8* [ %65, %59 ], [ %55, %57 ]
%61 = phi i32 [ %64, %59 ], [ 1, %57 ]
%62 = load i8*, i8** %37
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %61, i32 %58, i8* %62, i8* %54)
%64 = add nuw nsw i32 %61, 1
%65 = call i8* @regex(i8* %12, i8* %60, i8* %54)
%66 = icmp eq i8* %65, null
br i1 %66, label %67, label %59
67: ; preds = %59, %48
%68 = phi i8* [ %49, %48 ], [ %60, %59 ]
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %68, i32 2)
%70 = load i32, i32* @BUFSIZ
%71 = zext i32 %70 to i64
%72 = call i8* @llvm.stacksave()
%73 = alloca i8, i64 %71
%74 = call i8* @regex(i8* %19, i8* %68, i8* %73)
%75 = icmp eq i8* %74, null
br i1 %75, label %86, label %76
76: ; preds = %67
%77 = trunc i64 %36 to i32
br label %78
78: ; preds = %78, %76
%79 = phi i8* [ %84, %78 ], [ %74, %76 ]
%80 = phi i32 [ %83, %78 ], [ 1, %76 ]
%81 = load i8*, i8** %37
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %80, i32 %77, i8* %81, i8* %73)
%83 = add nuw nsw i32 %80, 1
%84 = call i8* @regex(i8* %19, i8* %79, i8* %73)
%85 = icmp eq i8* %84, null
br i1 %85, label %86, label %78
86: ; preds = %78, %67
%87 = phi i8* [ %68, %67 ], [ %79, %78 ]
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %87, i32 3)
%89 = load i32, i32* @BUFSIZ
%90 = zext i32 %89 to i64
%91 = call i8* @llvm.stacksave()
%92 = alloca i8, i64 %90
%93 = call i8* @regex(i8* %26, i8* %87, i8* %92)
%94 = icmp eq i8* %93, null
br i1 %94, label %105, label %95
95: ; preds = %86
%96 = trunc i64 %36 to i32
br label %97
97: ; preds = %97, %95
%98 = phi i8* [ %103, %97 ], [ %93, %95 ]
%99 = phi i32 [ %102, %97 ], [ 1, %95 ]
%100 = load i8*, i8** %37
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %99, i32 %96, i8* %100, i8* %92)
%102 = add nuw nsw i32 %99, 1
%103 = call i8* @regex(i8* %26, i8* %98, i8* %92)
%104 = icmp eq i8* %103, null
br i1 %104, label %105, label %97
105: ; preds = %97, %86
%106 = add nuw nsw i64 %36, 1
%107 = icmp eq i64 %106, %6
br i1 %107, label %34, label %35
108: ; preds = %46, %108
%109 = phi i8* [ %114, %108 ], [ %44, %46 ]
%110 = phi i32 [ %113, %108 ], [ 1, %46 ]
%111 = load i8*, i8** %37
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %110, i32 %47, i8* %111, i8* %43)
%113 = add nuw nsw i32 %110, 1
%114 = call i8* @regex(i8* %3, i8* %109, i8* %43)
%115 = icmp eq i8* %114, null
br i1 %115, label %48, label %108
}