#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 */
typedef int uint32_t;
typedef int /*<<< orphan*/ test;
typedef int /*<<< orphan*/ regexp;

/* Variables and functions */
int /*<<< orphan*/ OUT(char *, ...);
scalar_t__ file_match(char const *, char const *, char);
void regexp_test(void) {
  const char *test[] = {
      "foo.c",
      "dir1/foo.c",
      "dir1/FOO.c",
      "dir1/dir2/foo.c",
      "dir1/dir2/fud.c",
      "dir1/dir2//dir3/foo.c",
      "dir1",
      "dir1/dir2",
      "dir1/dir2/",
  };
  char is_dir[] = {
      1, 0, 0, 0, 1, 1, 1, 1,
  };
  const char *regexp[] = {
      "*.c",
      "*.h",
      "dir1/dir2",
      "dir1/dir2/",
      "dir1/dir2/foo.c",
      "dir1/dir2/f*.c",
      "dir1/dir2/*.c",
      "dir1/*/*.c",
      "*/*/*.c",
      "*/*.c",
      "",
      "dir1",
      "dir1/",
  };
  uint32_t i;
  uint32_t j;
  for (j = 0; j < (sizeof(regexp) / sizeof(regexp[0])); j++) {
    OUT("----------------------------------------------------------");
    for (i = 0; i < (sizeof(test) / sizeof(test[0])); i++) {
      const char *reg = regexp[j];
      if (file_match(reg, test[i], is_dir[i])) {
        OUT("[X] %-20s %-20s", regexp[j], test[i]);
      } else {
        OUT("    %-20s %-20s", regexp[j], test[i]);
      }
    }
  }
}


x86 assembly (clang, -O0):
<regexp_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
lea    -0x50(%rbp),%rdi
lea    0x2c1a(%rip),%rsi
mov    $0x48,%edx
call   1030 <memcpy@plt>
mov    0xfa4(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    -0xc0(%rbp),%rdi
lea    0x2c47(%rip),%rsi
mov    $0x68,%edx
call   1030 <memcpy@plt>
movl   $0x0,-0xc8(%rbp)
movslq -0xc8(%rbp),%rax
cmp    $0xd,%rax
jae    1284 <regexp_test+0x154>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1050 <OUT@plt>
movl   $0x0,-0xc4(%rbp)
movslq -0xc4(%rbp),%rax
cmp    $0x9,%rax
jae    126b <regexp_test+0x13b>
movslq -0xc8(%rbp),%rax
mov    -0xc0(%rbp,%rax,8),%rax
ff
mov    %rax,-0xd0(%rbp)
mov    -0xd0(%rbp),%rdi
movslq -0xc4(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rsi
movslq -0xc4(%rbp),%rax
movsbl -0x58(%rbp,%rax,1),%edx
call   1040 <file_match@plt>
cmp    $0x0,%rax
je     1229 <regexp_test+0xf9>
movslq -0xc8(%rbp),%rax
mov    -0xc0(%rbp,%rax,8),%rsi
ff
movslq -0xc4(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdx
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1050 <OUT@plt>
jmp    1252 <regexp_test+0x122>
movslq -0xc8(%rbp),%rax
mov    -0xc0(%rbp,%rax,8),%rsi
ff
movslq -0xc4(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdx
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1050 <OUT@plt>
jmp    1257 <regexp_test+0x127>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    11a6 <regexp_test+0x76>
jmp    1270 <regexp_test+0x140>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    117d <regexp_test+0x4d>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<regexp_test>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xfb9(%rip),%r13
lea    0xfa2(%rip),%r14
xor    %r15d,%r15d
nopl   0x0(%rax)
lea    0xf59(%rip),%rdi
xor    %eax,%eax
call   1040 <OUT@plt>
lea    0x2c5b(%rip),%rax
mov    (%r15,%rax,1),%rbx
mov    %rbx,%rdi
lea    0xea2(%rip),%r12
mov    %r12,%rsi
mov    $0x1,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xe6f(%rip),%rbp
mov    %rbp,%rsi
xor    %edx,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xe4f(%rip),%rbp
mov    %rbp,%rsi
xor    %edx,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xe2f(%rip),%rbp
mov    %rbp,%rsi
xor    %edx,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xe14(%rip),%rbp
mov    %rbp,%rsi
mov    $0x1,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xdf6(%rip),%rbp
mov    %rbp,%rsi
mov    $0x1,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xdde(%rip),%rbp
mov    %rbp,%rsi
mov    $0x1,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xdb5(%rip),%rbp
mov    %rbp,%rsi
mov    $0x1,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
mov    %rbx,%rdi
lea    0xd91(%rip),%rbp
mov    %rbp,%rsi
xor    %edx,%edx
call   1030 <file_match@plt>
test   %rax,%rax
mov    %r14,%rdi
cmove  %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <OUT@plt>
add    $0x8,%r15
cmp    $0x68,%r15
jne    1140 <regexp_test+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"foo.c\00"
@.str.1 = [11 x i8] c"dir1/foo.c\00"
@.str.2 = [11 x i8] c"dir1/FOO.c\00"
@.str.3 = [16 x i8] c"dir1/dir2/foo.c\00"
@.str.4 = [16 x i8] c"dir1/dir2/fud.c\00"
@.str.5 = [22 x i8] c"dir1/dir2//dir3/foo.c\00"
@.str.6 = [5 x i8] c"dir1\00"
@.str.7 = [10 x i8] c"dir1/dir2\00"
@.str.8 = [11 x i8] c"dir1/dir2/\00"
@__const.regexp_test.test = [9 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i32 0, i32 0)]
@__const.regexp_test.is_dir = [8 x i8] c"\01\00\00\00\01\01\01\01"
@.str.9 = [4 x i8] c"*.c\00"
@.str.10 = [4 x i8] c"*.h\00"
@.str.11 = [15 x i8] c"dir1/dir2/f*.c\00"
@.str.12 = [14 x i8] c"dir1/dir2/*.c\00"
@.str.13 = [11 x i8] c"dir1/*/*.c\00"
@.str.14 = [8 x i8] c"*/*/*.c\00"
@.str.15 = [6 x i8] c"*/*.c\00"
@.str.16 = [1 x i8] zeroinitializer
@.str.17 = [6 x i8] c"dir1/\00"
@__const.regexp_test.regexp = [13 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i32 0, i32 0)]
@.str.18 = [59 x i8] c"----------------------------------------------------------\00"
@.str.19 = [16 x i8] c"[X] %-20s %-20s\00"
@.str.20 = [16 x i8] c" %-20s %-20s\00"
define void @regexp_test() {
%1 = alloca [9 x i8*]
%2 = alloca [8 x i8]
%3 = alloca [13 x i8*]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = bitcast [9 x i8*]* %1 to i8*
%8 = bitcast [8 x i8]* %2 to i8*
%9 = bitcast [13 x i8*]* %3 to i8*
store i32 0, i32* %5
br label %10
10: ; preds = %61, %0
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = icmp ult i64 %12, 13
br i1 %13, label %14, label %64
14: ; preds = %10
%15 = call i32 (i8*, ...) @OUT(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0))
store i32 0, i32* %4
br label %16
16: ; preds = %57, %14
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = icmp ult i64 %18, 9
br i1 %19, label %20, label %60
20: ; preds = %16
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [13 x i8*], [13 x i8*]* %3, i64 0, i64 %22
%24 = load i8*, i8** %23
store i8* %24, i8** %6
%25 = load i8*, i8** %6
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 %27
%29 = load i8*, i8** %28
%30 = load i32, i32* %4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 %31
%33 = load i8, i8* %32
%34 = call i64 @file_match(i8* %25, i8* %29, i8 signext %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %46
36: ; preds = %20
%37 = load i32, i32* %5
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [13 x i8*], [13 x i8*]* %3, i64 0, i64 %38
%40 = load i8*, i8** %39
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 (i8*, ...) @OUT(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* %40, i8* %44)
br label %56
46: ; preds = %20
%47 = load i32, i32* %5
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [13 x i8*], [13 x i8*]* %3, i64 0, i64 %48
%50 = load i8*, i8** %49
%51 = load i32, i32* %4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [9 x i8*], [9 x i8*]* %1, i64 0, i64 %52
%54 = load i8*, i8** %53
%55 = call i32 (i8*, ...) @OUT(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* %50, i8* %54)
br label %56
56: ; preds = %46, %36
br label %57
57: ; preds = %56
%58 = load i32, i32* %4
%59 = add nsw i32 %58, 1
store i32 %59, i32* %4
br label %16
60: ; preds = %16
br label %61
61: ; preds = %60
%62 = load i32, i32* %5
%63 = add nsw i32 %62, 1
store i32 %63, i32* %5
br label %10
64: ; preds = %10
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"foo.c\00"
@.str.1 = [11 x i8] c"dir1/foo.c\00"
@.str.2 = [11 x i8] c"dir1/FOO.c\00"
@.str.3 = [16 x i8] c"dir1/dir2/foo.c\00"
@.str.4 = [16 x i8] c"dir1/dir2/fud.c\00"
@.str.5 = [22 x i8] c"dir1/dir2//dir3/foo.c\00"
@.str.6 = [5 x i8] c"dir1\00"
@.str.7 = [10 x i8] c"dir1/dir2\00"
@.str.8 = [11 x i8] c"dir1/dir2/\00"
@.str.9 = [4 x i8] c"*.c\00"
@.str.10 = [4 x i8] c"*.h\00"
@.str.11 = [15 x i8] c"dir1/dir2/f*.c\00"
@.str.12 = [14 x i8] c"dir1/dir2/*.c\00"
@.str.13 = [11 x i8] c"dir1/*/*.c\00"
@.str.14 = [8 x i8] c"*/*/*.c\00"
@.str.15 = [6 x i8] c"*/*.c\00"
@.str.16 = [1 x i8] zeroinitializer
@.str.17 = [6 x i8] c"dir1/\00"
@__const.regexp_test.regexp = [13 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i32 0, i32 0)]
@.str.18 = [59 x i8] c"----------------------------------------------------------\00"
@.str.19 = [16 x i8] c"[X] %-20s %-20s\00"
@.str.20 = [16 x i8] c" %-20s %-20s\00"
define void @regexp_test() {
br label %1
1: ; preds = %0, %1
%2 = phi i64 [ 0, %0 ], [ %42, %1 ]
%3 = tail call i32 (i8*, ...) @OUT(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0))
%4 = getelementptr inbounds [13 x i8*], [13 x i8*]* @__const.regexp_test.regexp, i64 0, i64 %2
%5 = load i8*, i8** %4
%6 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8 signext 1)
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%9 = tail call i32 (i8*, ...) @OUT(i8* %8, i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 0)
%11 = icmp eq i64 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%13 = tail call i32 (i8*, ...) @OUT(i8* %12, i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8 signext 0)
%15 = icmp eq i64 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%17 = tail call i32 (i8*, ...) @OUT(i8* %16, i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%18 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8 signext 0)
%19 = icmp eq i64 %18, 0
%20 = select i1 %19, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%21 = tail call i32 (i8*, ...) @OUT(i8* %20, i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%22 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8 signext 1)
%23 = icmp eq i64 %22, 0
%24 = select i1 %23, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%25 = tail call i32 (i8*, ...) @OUT(i8* %24, i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%26 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8 signext 1)
%27 = icmp eq i64 %26, 0
%28 = select i1 %27, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%29 = tail call i32 (i8*, ...) @OUT(i8* %28, i8* %5, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%30 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8 signext 1)
%31 = icmp eq i64 %30, 0
%32 = select i1 %31, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%33 = tail call i32 (i8*, ...) @OUT(i8* %32, i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%34 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8 signext 1)
%35 = icmp eq i64 %34, 0
%36 = select i1 %35, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%37 = tail call i32 (i8*, ...) @OUT(i8* %36, i8* %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%38 = tail call i64 @file_match(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8 signext undef)
%39 = icmp eq i64 %38, 0
%40 = select i1 %39, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0)
%41 = tail call i32 (i8*, ...) @OUT(i8* %40, i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%42 = add nuw nsw i64 %2, 1
%43 = icmp eq i64 %42, 13
br i1 %43, label %44, label %1
44: ; preds = %1
ret void
}