#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int rm_so;
  int rm_eo;
};
typedef TYPE_1__ regmatch_t;
typedef int /*<<< orphan*/ regex_t;

/* Variables and functions */
int /*<<< orphan*/ REG_EXTENDED;
int /*<<< orphan*/ printf(char *, int, int, int, int, ...);
int /*<<< orphan*/ regcomp(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ regexec(int /*<<< orphan*/ *, char *, int, TYPE_1__ *,
                           int /*<<< orphan*/);
main() {
  regex_t preg;
  regmatch_t pmatch[3];
  regcomp(&preg, "(aa?)*", REG_EXTENDED);
  regexec(&preg, "aaa", 2, pmatch, 0);
  printf("%d %d %d %d (expected: 0 3 1 3)\n", pmatch[0].rm_so, pmatch[0].rm_eo,
         pmatch[1].rm_so, pmatch[1].rm_eo);
  regcomp(&preg, "(a*)(ab)?b*", REG_EXTENDED);
  regexec(&preg, "aaabb", 3, pmatch, 0);
  printf("%d %d %d %d %d %d (expected: 0 5 0 2 2 4)\n", pmatch[0].rm_so,
         pmatch[0].rm_eo, pmatch[1].rm_so, pmatch[1].rm_eo, pmatch[2].rm_so,
         pmatch[2].rm_eo);
  regcomp(&preg, "((a?)|b)*", REG_EXTENDED);
  regexec(&preg, "ab", 3, pmatch, 0);
  printf("%d %d %d %d %d %d (expected: 0 2 1 2 -1 -1)\n", pmatch[0].rm_so,
         pmatch[0].rm_eo, pmatch[1].rm_so, pmatch[1].rm_eo, pmatch[2].rm_so,
         pmatch[2].rm_eo);
  regcomp(&preg, "((a)|b)*", REG_EXTENDED);
  regexec(&preg, "ab", 3, pmatch, 0);
  printf("%d %d %d %d %d %d (expected: 0 2 1 2 -1 -1)\n", pmatch[0].rm_so,
         pmatch[0].rm_eo, pmatch[1].rm_so, pmatch[1].rm_eo, pmatch[2].rm_so,
         pmatch[2].rm_eo);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%edx
lea    -0x4(%rbp),%rdi
lea    0xeb4(%rip),%rsi
call   1040 <regcomp@plt>
lea    -0x20(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    0xea7(%rip),%rsi
mov    $0x2,%edx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e51(%rip),%rax
mov    (%rax),%edx
lea    -0x4(%rbp),%rdi
lea    0xe90(%rip),%rsi
call   1040 <regcomp@plt>
lea    -0x20(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    0xe88(%rip),%rsi
mov    $0x3,%edx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0xc(%rbp),%eax
lea    0xe66(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edx
lea    -0x4(%rbp),%rdi
lea    0xe73(%rip),%rsi
call   1040 <regcomp@plt>
lea    -0x20(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    0xe69(%rip),%rsi
mov    $0x3,%edx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0xc(%rbp),%eax
lea    0xe44(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d9d(%rip),%rax
mov    (%rax),%edx
lea    -0x4(%rbp),%rdi
lea    0xe53(%rip),%rsi
call   1040 <regcomp@plt>
lea    -0x20(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    0xe0f(%rip),%rsi
mov    $0x3,%edx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0xc(%rbp),%eax
lea    0xdea(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
mov    0x2e9c(%rip),%r13
mov    0x0(%r13),%edx
lea    0xeb1(%rip),%rsi
lea    0x2c(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <regcomp@plt>
lea    0xea4(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %rbx,%rdi
mov    $0x2,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    0x10(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%r8d
lea    0xe78(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13),%edx
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
call   1040 <regcomp@plt>
lea    0xe84(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    0x10(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0x20(%rsp),%r9d
mov    0x24(%rsp),%eax
mov    %eax,(%rsp)
lea    0xe53(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13),%edx
lea    0xe6c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <regcomp@plt>
lea    0xe67(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    0x10(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0x20(%rsp),%r9d
mov    0x24(%rsp),%eax
mov    %eax,(%rsp)
lea    0xe30(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13),%edx
lea    0xe48(%rip),%rsi
mov    %rbx,%rdi
call   1040 <regcomp@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1050 <regexec@plt>
mov    0x10(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp),%r8d
mov    0x20(%rsp),%r9d
mov    0x24(%rsp),%eax
mov    %eax,(%rsp)
mov    %r12,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32 }
@.str = [7 x i8] c"(aa?)*\00"
@REG_EXTENDED = global i32 0
@.str.1 = [4 x i8] c"aaa\00"
@.str.2 = [33 x i8] c"%d %d %d %d (expected: 0 3 1 3)\0A\00"
@.str.3 = [12 x i8] c"(a*)(ab)?b*\00"
@.str.4 = [6 x i8] c"aaabb\00"
@.str.5 = [43 x i8] c"%d %d %d %d %d %d (expected: 0 5 0 2 2 4)\0A\00"
@.str.6 = [10 x i8] c"((a?)|b)*\00"
@.str.7 = [3 x i8] c"ab\00"
@.str.8 = [45 x i8] c"%d %d %d %d %d %d (expected: 0 2 1 2 -1 -1)\0A\00"
@.str.9 = [9 x i8] c"((a)|b)*\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x %struct.TYPE_3__]
%3 = load i32, i32* @REG_EXTENDED
%4 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%6 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2, %struct.TYPE_3__* %5, i32 0)
%7 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %7, i32 0, i32 0
%9 = load i32, i32* %8
%10 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%11 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %10, i32 0, i32 1
%12 = load i32, i32* %11
%13 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%14 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %13, i32 0, i32 0
%15 = load i32, i32* %14
%16 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%17 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %16, i32 0, i32 1
%18 = load i32, i32* %17
%19 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %12, i32 %15, i32 %18)
%20 = load i32, i32* @REG_EXTENDED
%21 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%23 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 3, %struct.TYPE_3__* %22, i32 0)
%24 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%25 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %24, i32 0, i32 0
%26 = load i32, i32* %25
%27 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%28 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %27, i32 0, i32 1
%29 = load i32, i32* %28
%30 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%31 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %30, i32 0, i32 0
%32 = load i32, i32* %31
%33 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%34 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %33, i32 0, i32 1
%35 = load i32, i32* %34
%36 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2
%37 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %36, i32 0, i32 0
%38 = load i32, i32* %37
%39 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2
%40 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %39, i32 0, i32 1
%41 = load i32, i32* %40
%42 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 %26, i32 %29, i32 %32, i32 %35, i32 %38, i32 %41)
%43 = load i32, i32* @REG_EXTENDED
%44 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %43)
%45 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%46 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 3, %struct.TYPE_3__* %45, i32 0)
%47 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%48 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %47, i32 0, i32 0
%49 = load i32, i32* %48
%50 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%51 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %50, i32 0, i32 1
%52 = load i32, i32* %51
%53 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%54 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %53, i32 0, i32 0
%55 = load i32, i32* %54
%56 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%57 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %56, i32 0, i32 1
%58 = load i32, i32* %57
%59 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2
%60 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %59, i32 0, i32 0
%61 = load i32, i32* %60
%62 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2
%63 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %62, i32 0, i32 1
%64 = load i32, i32* %63
%65 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i32 %49, i32 %52, i32 %55, i32 %58, i32 %61, i32 %64)
%66 = load i32, i32* @REG_EXTENDED
%67 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%69 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 3, %struct.TYPE_3__* %68, i32 0)
%70 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%71 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %70, i32 0, i32 0
%72 = load i32, i32* %71
%73 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%74 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %73, i32 0, i32 1
%75 = load i32, i32* %74
%76 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%77 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %76, i32 0, i32 0
%78 = load i32, i32* %77
%79 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1
%80 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %79, i32 0, i32 1
%81 = load i32, i32* %80
%82 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2
%83 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %82, i32 0, i32 0
%84 = load i32, i32* %83
%85 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2
%86 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %85, i32 0, i32 1
%87 = load i32, i32* %86
%88 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i32 %72, i32 %75, i32 %78, i32 %81, i32 %84, i32 %87)
ret i32 0
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32 }
@.str = [7 x i8] c"(aa?)*\00"
@REG_EXTENDED = global i32 0
@.str.1 = [4 x i8] c"aaa\00"
@.str.2 = [33 x i8] c"%d %d %d %d (expected: 0 3 1 3)\0A\00"
@.str.3 = [12 x i8] c"(a*)(ab)?b*\00"
@.str.4 = [6 x i8] c"aaabb\00"
@.str.5 = [43 x i8] c"%d %d %d %d %d %d (expected: 0 5 0 2 2 4)\0A\00"
@.str.6 = [10 x i8] c"((a?)|b)*\00"
@.str.7 = [3 x i8] c"ab\00"
@.str.8 = [45 x i8] c"%d %d %d %d %d %d (expected: 0 2 1 2 -1 -1)\0A\00"
@.str.9 = [9 x i8] c"((a)|b)*\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x %struct.TYPE_3__]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [3 x %struct.TYPE_3__]* %2 to i8*
%5 = load i32, i32* @REG_EXTENDED
%6 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0
%8 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 2, %struct.TYPE_3__* %7, i32 0)
%9 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0, i32 0
%10 = load i32, i32* %9
%11 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 0, i32 1
%12 = load i32, i32* %11
%13 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1, i32 0
%14 = load i32, i32* %13
%15 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 1, i32 1
%16 = load i32, i32* %15
%17 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %10, i32 %12, i32 %14, i32 %16)
%18 = load i32, i32* @REG_EXTENDED
%19 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i32 %18)
%20 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 3, %struct.TYPE_3__* %7, i32 0)
%21 = load i32, i32* %9
%22 = load i32, i32* %11
%23 = load i32, i32* %13
%24 = load i32, i32* %15
%25 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2, i32 0
%26 = load i32, i32* %25
%27 = getelementptr inbounds [3 x %struct.TYPE_3__], [3 x %struct.TYPE_3__]* %2, i64 0, i64 2, i32 1
%28 = load i32, i32* %27
%29 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32 %21, i32 %22, i32 %23, i32 %24, i32 %26, i32 %28)
%30 = load i32, i32* @REG_EXTENDED
%31 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %30)
%32 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 3, %struct.TYPE_3__* %7, i32 0)
%33 = load i32, i32* %9
%34 = load i32, i32* %11
%35 = load i32, i32* %13
%36 = load i32, i32* %15
%37 = load i32, i32* %25
%38 = load i32, i32* %27
%39 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i32 %33, i32 %34, i32 %35, i32 %36, i32 %37, i32 %38)
%40 = load i32, i32* @REG_EXTENDED
%41 = call i32 @regcomp(i32* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %40)
%42 = call i32 @regexec(i32* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 3, %struct.TYPE_3__* %7, i32 0)
%43 = load i32, i32* %9
%44 = load i32, i32* %11
%45 = load i32, i32* %13
%46 = load i32, i32* %15
%47 = load i32, i32* %25
%48 = load i32, i32* %27
%49 = call i32 (i8*, i32, i32, i32, i32, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0), i32 %43, i32 %44, i32 %45, i32 %46, i32 %47, i32 %48)
ret i32 0
}