#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_9__ TYPE_2__;
typedef struct TYPE_8__ TYPE_1__;

/* Type definitions */
struct TYPE_8__ {
  int rm_so;
  int rm_eo;
};
typedef TYPE_1__ regmatch_t;
struct TYPE_9__ {
  size_t re_nsub;
};
typedef TYPE_2__ regex_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ REG_EXTENDED;
int REG_NOMATCH;
int /*<<< orphan*/ REG_NOTBOL;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ getchar();
void *malloc(int);
int /*<<< orphan*/ printf(char *, char const *);
int /*<<< orphan*/ puts(char *);
int regcomp(TYPE_2__ *, char const *, int /*<<< orphan*/);
size_t regerror(int, TYPE_2__ *, char *, size_t);
int regexec(TYPE_2__ *, char const *, size_t, TYPE_1__ *, int /*<<< orphan*/);
int /*<<< orphan*/ regfree(TYPE_2__ *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strncpy(char *, char const *, size_t);
int main(void) {
  int err;
  regex_t preg;
  const char *str_request =
      "Alexandre MOREL a un blog, il est dispo à l'adresse : "
      "http://www.almorel.org, merci de votre visite, mais il en  un autre "
      "aussi : www.mknux.org.";
  const char *str_regex = "(www\\.[-_[:alnum:]]+\\.[[:lower:]]{2,4})";
  err = regcomp(&preg, str_regex, REG_EXTENDED);
  if (err == 0) {
    int match;
    size_t nmatch = 0;
    regmatch_t *pmatch = NULL;
    nmatch = preg.re_nsub;
    pmatch = malloc(sizeof(*pmatch) * nmatch);
    if (pmatch) {
      match = regexec(&preg, str_request, nmatch, pmatch, 0);
      while (match == 0) {
        char *site = NULL;
        int start = pmatch[0].rm_so;
        int end = pmatch[0].rm_eo;
        size_t size = end - start;
        site = malloc(sizeof(*site) * (size + 1));
        if (site) {
          strncpy(site, &str_request[start], size);
          site[size] = '\0';
          printf("%s\n", site);
          free(site);
        }
        match = regexec(&preg, str_request, nmatch, pmatch, REG_NOTBOL);
      }
      regfree(&preg);
      if (match == REG_NOMATCH) {
        printf("%s n\'est pas une adresse internet valide\n", str_request);
      } else {
        char *text;
        size_t size;
        size = regerror(err, &preg, NULL, 0);
        text = malloc(sizeof(*text) * size);
        if (text) {
          regerror(err, &preg, text, size);
          fprintf(stderr, "%s\n", text);
          free(text);
        } else {
          fprintf(stderr, "Memoire insuffisante\n");
          exit(EXIT_FAILURE);
        }
      }
    } else {
      fprintf(stderr, "Memoire insuffisante\n");
      exit(EXIT_FAILURE);
    }
  }
  puts("\nPress any key\n");
  getchar();
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe2a(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xeb1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
mov    0x2dd0(%rip),%rax
mov    (%rax),%edx
lea    -0x10(%rbp),%rdi
call   1080 <regcomp@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    140b <main+0x24b>
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     13e1 <main+0x221>
mov    -0x18(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
lea    -0x10(%rbp),%rdi
xor    %r8d,%r8d
call   10d0 <regexec@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jne    1310 <main+0x150>
movq   $0x0,-0x40(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
mov    -0x38(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
sub    -0x44(%rbp),%eax
cltq
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     12e9 <main+0x129>
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movslq -0x44(%rbp),%rax
add    %rax,%rsi
mov    -0x50(%rbp),%rdx
call   1040 <strncpy@plt>
mov    -0x40(%rbp),%rax
mov    -0x50(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x40(%rbp),%rsi
lea    0xddf(%rip),%rdi
call   1070 <printf@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    0x2cec(%rip),%rax
mov    (%rax),%r8d
lea    -0x10(%rbp),%rdi
call   10d0 <regexec@plt>
mov    %eax,-0x24(%rbp)
jmp    1259 <main+0x99>
lea    -0x10(%rbp),%rdi
call   1060 <regfree@plt>
mov    -0x24(%rbp),%eax
mov    0x2cbd(%rip),%rcx
cmp    (%rcx),%eax
jne    1340 <main+0x180>
mov    -0x18(%rbp),%rsi
lea    0xd88(%rip),%rdi
call   1070 <printf@plt>
jmp    13dc <main+0x21c>
mov    -0x8(%rbp),%edi
lea    -0x10(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%ecx
mov    %rcx,%rdx
call   10b0 <regerror@plt>
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     13b2 <main+0x1f2>
mov    -0x8(%rbp),%edi
mov    -0x58(%rbp),%rdx
mov    -0x60(%rbp),%rcx
lea    -0x10(%rbp),%rsi
call   10b0 <regerror@plt>
mov    0x2c40(%rip),%rax
mov    (%rax),%edi
mov    -0x58(%rbp),%rdx
lea    0xd1d(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
jmp    13d7 <main+0x217>
mov    0x2c17(%rip),%rax
mov    (%rax),%edi
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    0x2bf8(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
jmp    13dc <main+0x21c>
jmp    1406 <main+0x246>
mov    0x2be8(%rip),%rax
mov    (%rax),%edi
lea    0xcf7(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    0x2bc9(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
jmp    140b <main+0x24b>
lea    0xcec(%rip),%rdi
call   1050 <puts@plt>
mov    $0x0,%al
call   1090 <getchar@plt>
mov    0x2b93(%rip),%rax
mov    (%rax),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2dee(%rip),%rax
mov    (%rax),%edx
lea    0xeb7(%rip),%rsi
mov    %rsp,%rdi
call   1080 <regcomp@plt>
test   %eax,%eax
jne    1315 <main+0x155>
mov    (%rsp),%r14
lea    0x0(,%r14,8),%edi
call   10c0 <malloc@plt>
test   %rax,%rax
je     1340 <main+0x180>
mov    %rax,%rbx
lea    0xdf1(%rip),%r15
mov    %rsp,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %r8d,%r8d
call   10d0 <regexec@plt>
mov    %eax,%ebp
test   %eax,%eax
jne    129b <main+0xdb>
jmp    124f <main+0x8f>
nopl   0x0(%rax,%rax,1)
mov    0x2db1(%rip),%rax
mov    (%rax),%r8d
mov    %rsp,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
call   10d0 <regexec@plt>
test   %eax,%eax
jne    1299 <main+0xd9>
movslq (%rbx),%r12
movslq 0x4(%rbx),%rbp
sub    %r12,%rbp
lea    0x1(%rbp),%edi
call   10c0 <malloc@plt>
test   %rax,%rax
je     1230 <main+0x70>
mov    %rax,%r13
add    %r15,%r12
mov    %rax,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
call   1040 <strncpy@plt>
movb   $0x0,0x0(%r13,%rbp,1)
lea    0xe33(%rip),%rdi
mov    %r13,%rsi
call   1070 <printf@plt>
mov    %r13,%rdi
call   1030 <free@plt>
jmp    1230 <main+0x70>
mov    %eax,%ebp
mov    %rsp,%rdi
call   1060 <regfree@plt>
mov    0x2d36(%rip),%rax
cmp    (%rax),%ebp
jne    12c3 <main+0x103>
lea    0xe09(%rip),%rdi
lea    0xd44(%rip),%rsi
call   1070 <printf@plt>
jmp    1315 <main+0x155>
mov    %rsp,%rsi
xor    %edi,%edi
xor    %edx,%edx
xor    %ecx,%ecx
call   10b0 <regerror@plt>
mov    %rax,%rbp
mov    %ebp,%edi
call   10c0 <malloc@plt>
test   %rax,%rax
je     1340 <main+0x180>
mov    %rax,%rbx
mov    %rsp,%rsi
xor    %edi,%edi
mov    %rax,%rdx
mov    %rbp,%rcx
call   10b0 <regerror@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
lea    0xdb7(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
lea    0xde2(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   1090 <getchar@plt>
mov    0x2c89(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c89(%rip),%rax
mov    (%rax),%edi
lea    0xd98(%rip),%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    0x2c6a(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
%struct.TYPE_9__ = type { i64 }
%struct.TYPE_8__ = type { i32, i32 }
@.str = [146 x i8] c"Alexandre MOREL a un blog, il est dispo \C3\A0 l'adresse : http://www.almorel.org, merci de votre visite, mais il en un autre aussi : www.mknux.org.\00"
@.str.1 = [40 x i8] c"(www\\.[-_[:alnum:]]+\\.[[:lower:]]{2,4})\00"
@REG_EXTENDED = global i32 0
@.str.2 = [4 x i8] c"%s\0A\00"
@REG_NOTBOL = global i32 0
@REG_NOMATCH = global i32 0
@.str.3 = [42 x i8] c"%s n'est pas une adresse internet valide\0A\00"
@stderr = global i32 0
@.str.4 = [22 x i8] c"Memoire insuffisante\0A\00"
@EXIT_FAILURE = global i32 0
@.str.5 = [16 x i8] c"\0APress any key\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.TYPE_9__
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i64
%8 = alloca %struct.TYPE_8__*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i64
%13 = alloca i8*
%14 = alloca i64
store i32 0, i32* %1
store i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i8** %4
store i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i8** %5
%15 = load i8*, i8** %5
%16 = load i32, i32* @REG_EXTENDED
%17 = call i32 @regcomp(%struct.TYPE_9__* %3, i8* %15, i32 %16)
store i32 %17, i32* %2
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %119
20: ; preds = %0
store i64 0, i64* %7
store %struct.TYPE_8__* null, %struct.TYPE_8__** %8
%21 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %3, i32 0, i32 0
%22 = load i64, i64* %21
store i64 %22, i64* %7
%23 = load i64, i64* %7
%24 = mul i64 8, %23
%25 = trunc i64 %24 to i32
%26 = call i8* @malloc(i32 %25)
%27 = bitcast i8* %26 to %struct.TYPE_8__*
store %struct.TYPE_8__* %27, %struct.TYPE_8__** %8
%28 = load %struct.TYPE_8__*, %struct.TYPE_8__** %8
%29 = icmp ne %struct.TYPE_8__* %28, null
br i1 %29, label %30, label %113
30: ; preds = %20
%31 = load i8*, i8** %4
%32 = load i64, i64* %7
%33 = load %struct.TYPE_8__*, %struct.TYPE_8__** %8
%34 = call i32 @regexec(%struct.TYPE_9__* %3, i8* %31, i64 %32, %struct.TYPE_8__* %33, i32 0)
store i32 %34, i32* %6
br label %35
35: ; preds = %73, %30
%36 = load i32, i32* %6
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %79
38: ; preds = %35
store i8* null, i8** %9
%39 = load %struct.TYPE_8__*, %struct.TYPE_8__** %8
%40 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %39, i64 0
%41 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %40, i32 0, i32 0
%42 = load i32, i32* %41
store i32 %42, i32* %10
%43 = load %struct.TYPE_8__*, %struct.TYPE_8__** %8
%44 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %43, i64 0
%45 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %44, i32 0, i32 1
%46 = load i32, i32* %45
store i32 %46, i32* %11
%47 = load i32, i32* %11
%48 = load i32, i32* %10
%49 = sub nsw i32 %47, %48
%50 = sext i32 %49 to i64
store i64 %50, i64* %12
%51 = load i64, i64* %12
%52 = add i64 %51, 1
%53 = mul i64 1, %52
%54 = trunc i64 %53 to i32
%55 = call i8* @malloc(i32 %54)
store i8* %55, i8** %9
%56 = load i8*, i8** %9
%57 = icmp ne i8* %56, null
br i1 %57, label %58, label %73
58: ; preds = %38
%59 = load i8*, i8** %9
%60 = load i8*, i8** %4
%61 = load i32, i32* %10
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %60, i64 %62
%64 = load i64, i64* %12
%65 = call i32 @strncpy(i8* %59, i8* %63, i64 %64)
%66 = load i8*, i8** %9
%67 = load i64, i64* %12
%68 = getelementptr inbounds i8, i8* %66, i64 %67
store i8 0, i8* %68
%69 = load i8*, i8** %9
%70 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %69)
%71 = load i8*, i8** %9
%72 = call i32 @free(i8* %71)
br label %73
73: ; preds = %58, %38
%74 = load i8*, i8** %4
%75 = load i64, i64* %7
%76 = load %struct.TYPE_8__*, %struct.TYPE_8__** %8
%77 = load i32, i32* @REG_NOTBOL
%78 = call i32 @regexec(%struct.TYPE_9__* %3, i8* %74, i64 %75, %struct.TYPE_8__* %76, i32 %77)
store i32 %78, i32* %6
br label %35
79: ; preds = %35
%80 = call i32 @regfree(%struct.TYPE_9__* %3)
%81 = load i32, i32* %6
%82 = load i32, i32* @REG_NOMATCH
%83 = icmp eq i32 %81, %82
br i1 %83, label %84, label %87
84: ; preds = %79
%85 = load i8*, i8** %4
%86 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8* %85)
br label %112
87: ; preds = %79
%88 = load i32, i32* %2
%89 = call i64 @regerror(i32 %88, %struct.TYPE_9__* %3, i8* null, i64 0)
store i64 %89, i64* %14
%90 = load i64, i64* %14
%91 = mul i64 1, %90
%92 = trunc i64 %91 to i32
%93 = call i8* @malloc(i32 %92)
store i8* %93, i8** %13
%94 = load i8*, i8** %13
%95 = icmp ne i8* %94, null
br i1 %95, label %96, label %106
96: ; preds = %87
%97 = load i32, i32* %2
%98 = load i8*, i8** %13
%99 = load i64, i64* %14
%100 = call i64 @regerror(i32 %97, %struct.TYPE_9__* %3, i8* %98, i64 %99)
%101 = load i32, i32* @stderr
%102 = load i8*, i8** %13
%103 = call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %102)
%104 = load i8*, i8** %13
%105 = call i32 @free(i8* %104)
br label %111
106: ; preds = %87
%107 = load i32, i32* @stderr
%108 = call i32 (i32, i8*, ...) @fprintf(i32 %107, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%109 = load i32, i32* @EXIT_FAILURE
%110 = call i32 @exit(i32 %109)
unreachable
111: ; preds = %96
br label %112
112: ; preds = %111, %84
br label %118
113: ; preds = %20
%114 = load i32, i32* @stderr
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%116 = load i32, i32* @EXIT_FAILURE
%117 = call i32 @exit(i32 %116)
unreachable
118: ; preds = %112
br label %119
119: ; preds = %118, %0
%120 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%121 = call i32 (...) @getchar()
%122 = load i32, i32* @EXIT_SUCCESS
ret i32 %122
}

LLVM IR (-O2):
%struct.TYPE_9__ = type { i64 }
%struct.TYPE_8__ = type { i32, i32 }
@.str = [146 x i8] c"Alexandre MOREL a un blog, il est dispo \C3\A0 l'adresse : http://www.almorel.org, merci de votre visite, mais il en un autre aussi : www.mknux.org.\00"
@.str.1 = [40 x i8] c"(www\\.[-_[:alnum:]]+\\.[[:lower:]]{2,4})\00"
@REG_EXTENDED = global i32 0
@.str.2 = [4 x i8] c"%s\0A\00"
@REG_NOTBOL = global i32 0
@REG_NOMATCH = global i32 0
@.str.3 = [42 x i8] c"%s n'est pas une adresse internet valide\0A\00"
@stderr = global i32 0
@.str.4 = [22 x i8] c"Memoire insuffisante\0A\00"
@EXIT_FAILURE = global i32 0
@.str.5 = [16 x i8] c"\0APress any key\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca %struct.TYPE_9__
%2 = bitcast %struct.TYPE_9__* %1 to i8*
%3 = load i32, i32* @REG_EXTENDED
%4 = call i32 @regcomp(%struct.TYPE_9__* %1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %66
6: ; preds = %0
%7 = getelementptr inbounds %struct.TYPE_9__, %struct.TYPE_9__* %1, i64 0, i32 0
%8 = load i64, i64* %7
%9 = trunc i64 %8 to i32
%10 = shl i32 %9, 3
%11 = call i8* @malloc(i32 %10)
%12 = bitcast i8* %11 to %struct.TYPE_8__*
%13 = icmp eq i8* %11, null
br i1 %13, label %61, label %14
14: ; preds = %6
%15 = call i32 @regexec(%struct.TYPE_9__* %1, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i64 %8, %struct.TYPE_8__* %12, i32 0)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %39
17: ; preds = %14
%18 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %12, i64 0, i32 0
%19 = getelementptr inbounds %struct.TYPE_8__, %struct.TYPE_8__* %12, i64 0, i32 1
br label %20
20: ; preds = %17, %35
%21 = load i32, i32* %18
%22 = load i32, i32* %19
%23 = sub nsw i32 %22, %21
%24 = sext i32 %23 to i64
%25 = add i32 %23, 1
%26 = call i8* @malloc(i32 %25)
%27 = icmp eq i8* %26, null
br i1 %27, label %35, label %28
28: ; preds = %20
%29 = sext i32 %21 to i64
%30 = getelementptr inbounds [146 x i8], [146 x i8]* @.str, i64 0, i64 %29
%31 = call i32 @strncpy(i8* %26, i8* %30, i64 %24)
%32 = getelementptr inbounds i8, i8* %26, i64 %24
store i8 0, i8* %32
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %26)
%34 = call i32 @free(i8* %26)
br label %35
35: ; preds = %28, %20
%36 = load i32, i32* @REG_NOTBOL
%37 = call i32 @regexec(%struct.TYPE_9__* %1, i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0), i64 %8, %struct.TYPE_8__* %12, i32 %36)
%38 = icmp eq i32 %37, 0
br i1 %38, label %20, label %39
39: ; preds = %35, %14
%40 = phi i32 [ %15, %14 ], [ %37, %35 ]
%41 = call i32 @regfree(%struct.TYPE_9__* %1)
%42 = load i32, i32* @REG_NOMATCH
%43 = icmp eq i32 %40, %42
br i1 %43, label %44, label %46
44: ; preds = %39
%45 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str, i64 0, i64 0))
br label %66
46: ; preds = %39
%47 = call i64 @regerror(i32 0, %struct.TYPE_9__* %1, i8* null, i64 0)
%48 = trunc i64 %47 to i32
%49 = call i8* @malloc(i32 %48)
%50 = icmp eq i8* %49, null
br i1 %50, label %56, label %51
51: ; preds = %46
%52 = call i64 @regerror(i32 0, %struct.TYPE_9__* %1, i8* %49, i64 %47)
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %49)
%55 = call i32 @free(i8* %49)
br label %66
56: ; preds = %46
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%59 = load i32, i32* @EXIT_FAILURE
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %6
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%64 = load i32, i32* @EXIT_FAILURE
%65 = call i32 @exit(i32 %64)
unreachable
66: ; preds = %51, %44, %0
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%68 = call i32 (...) @getchar()
%69 = load i32, i32* @EXIT_SUCCESS
ret i32 %69
}