#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 /*<<< orphan*/ passcmd;

/* Variables and functions */
int /*<<< orphan*/ execlp(char *, char *, char *, char *, char *, char *,
                          int /*<<< orphan*/ *);
int findStrInTheMatrix(char **, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ memset(char *, char, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strlen(char *);
int /*<<< orphan*/ version();
int main(int argc, char **argv) {
  char *passcmd;
  int counter;
  int longs_of_execute = 0;
  if (findStrInTheMatrix(argv, "--version") != 65535) {
    version();
    return 0;
  }
  if (findStrInTheMatrix(argv, "-e") == 65535 ||
      findStrInTheMatrix(argv, "-t") == 65535) {
    fprintf(stderr, "%s\n", "You need to pass an valid arguments.");
    return 1;
  }
  for (counter = findStrInTheMatrix(argv, "-e") + 1; counter < argc;
       counter++) {
    if (argv[counter] == 0) {
      break;
    }
    longs_of_execute += strlen(argv[counter]);
    if (counter != argc - 1)
      longs_of_execute++;
  }
  passcmd = (char *)malloc(sizeof(char) * longs_of_execute);
  if (passcmd == NULL) {
    fprintf(stderr, "%s", "Memory low. Exiting.");
    return 1;
  }
  memset(passcmd, '\0', sizeof(passcmd));
  for (counter = findStrInTheMatrix(argv, "-e") + 1; counter < argc;
       counter++) {
    if (argv[counter] == 0) {
      break;
    }
    if (counter == 4)
      strcpy(passcmd, argv[counter]);
    else
      strcat(passcmd, argv[counter]);
    if (counter != argc - 1)
      strcat(passcmd, " ");
  }
  execlp("gnome-terminal", "gnome-terminal", "-t",
         argv[findStrInTheMatrix(argv, "-t") + 1], "-e", passcmd, NULL);
  free(passcmd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe38(%rip),%rsi
call   1030 <findStrInTheMatrix@plt>
cmp    $0xffff,%eax
je     11eb <main+0x4b>
mov    $0x0,%al
call   1090 <version@plt>
movl   $0x0,-0x4(%rbp)
jmp    142e <main+0x28e>
mov    -0x10(%rbp),%rdi
lea    0xe14(%rip),%rsi
call   1030 <findStrInTheMatrix@plt>
cmp    $0xffff,%eax
je     1221 <main+0x81>
mov    -0x10(%rbp),%rdi
lea    0xdfc(%rip),%rsi
call   1030 <findStrInTheMatrix@plt>
cmp    $0xffff,%eax
jne    1249 <main+0xa9>
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
lea    0xddf(%rip),%rsi
lea    0xddc(%rip),%rdx
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    142e <main+0x28e>
mov    -0x10(%rbp),%rdi
lea    0xdb6(%rip),%rsi
call   1030 <findStrInTheMatrix@plt>
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12ce <main+0x12e>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    1283 <main+0xe3>
jmp    12ce <main+0x12e>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1060 <strlen@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     12bb <main+0x11b>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12c0 <main+0x120>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    125f <main+0xbf>
movslq -0x20(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   10a0 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1314 <main+0x174>
mov    0x2ced(%rip),%rax
mov    (%rax),%edi
lea    0xd3d(%rip),%rsi
lea    0xd39(%rip),%rdx
call   1080 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    142e <main+0x28e>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
mov    -0x10(%rbp),%rdi
lea    0xcdb(%rip),%rsi
call   1030 <findStrInTheMatrix@plt>
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13cb <main+0x22b>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    135e <main+0x1be>
jmp    13cb <main+0x22b>
cmpl   $0x4,-0x1c(%rbp)
jne    1382 <main+0x1e2>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1050 <strcpy@plt>
jmp    1397 <main+0x1f7>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   10b0 <strcat@plt>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     13b8 <main+0x218>
mov    -0x18(%rbp),%rdi
lea    0xc9e(%rip),%rsi
call   10b0 <strcat@plt>
jmp    13bd <main+0x21d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    133a <main+0x19a>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xc2f(%rip),%rsi
call   1030 <findStrInTheMatrix@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rcx
mov    -0x18(%rbp),%r9
lea    0xc55(%rip),%rsi
lea    0xc08(%rip),%rdx
lea    0xbfe(%rip),%r8
xor    %eax,%eax
mov    %rsi,%rdi
movq   $0x0,(%rsp)
call   10c0 <execlp@plt>
mov    -0x18(%rbp),%rdi
call   1040 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
lea    0xe46(%rip),%rsi
mov    %r14,%rdi
call   1030 <findStrInTheMatrix@plt>
cmp    $0xffff,%eax
jne    1218 <main+0x78>
lea    0xe3a(%rip),%rsi
mov    %r14,%rdi
call   1030 <findStrInTheMatrix@plt>
cmp    $0xffff,%eax
je     11f5 <main+0x55>
lea    0xe27(%rip),%rsi
mov    %r14,%rdi
call   1030 <findStrInTheMatrix@plt>
cmp    $0xffff,%eax
jne    1232 <main+0x92>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0xe0b(%rip),%rsi
lea    0xe08(%rip),%rdx
call   1080 <fprintf@plt>
mov    $0x1,%ebp
jmp    1221 <main+0x81>
xor    %ebp,%ebp
xor    %eax,%eax
call   1090 <version@plt>
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xdd1(%rip),%rsi
mov    %r14,%rdi
call   1030 <findStrInTheMatrix@plt>
lea    0x1(%rax),%ecx
xor    %ebp,%ebp
mov    %rbx,0x8(%rsp)
cmp    %ebx,%ecx
jge    1294 <main+0xf4>
mov    0x8(%rsp),%rdx
add    $0xffffffff,%edx
movslq %ecx,%rcx
movslq %edx,%rbx
mov    %rbx,%r15
sub    %rcx,%r15
lea    (%r14,%rcx,8),%r13
sub    %eax,%ebx
xor    %r12d,%r12d
xor    %ebp,%ebp
xchg   %ax,%ax
mov    0x0(%r13,%r12,8),%rdi
test   %rdi,%rdi
je     1294 <main+0xf4>
call   1060 <strlen@plt>
xor    %ecx,%ecx
cmp    %r12,%r15
setne  %cl
add    %ecx,%ebp
add    %eax,%ebp
add    $0x1,%r12
cmp    %r12d,%ebx
jne    1270 <main+0xd0>
mov    %ebp,%edi
call   10a0 <malloc@plt>
test   %rax,%rax
je     1398 <main+0x1f8>
mov    %rax,%r15
xor    %ebp,%ebp
mov    %rax,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1070 <memset@plt>
lea    0xd4b(%rip),%rsi
mov    %r14,%rdi
call   1030 <findStrInTheMatrix@plt>
lea    0x1(%rax),%ecx
mov    0x8(%rsp),%rdx
cmp    %edx,%ecx
jge    134e <main+0x1ae>
add    $0xffffffff,%edx
movslq %ecx,%rcx
movslq %edx,%rbx
mov    $0x4,%edx
sub    %rcx,%rdx
mov    %rdx,0x10(%rsp)
mov    %rbx,%r12
sub    %rcx,%r12
lea    (%r14,%rcx,8),%rcx
mov    %rcx,0x8(%rsp)
sub    %eax,%ebx
xor    %r13d,%r13d
jmp    1309 <main+0x169>
nop
add    $0x1,%r13
cmp    %r13d,%ebx
je     134e <main+0x1ae>
mov    0x8(%rsp),%rax
mov    (%rax,%r13,8),%rsi
test   %rsi,%rsi
je     134e <main+0x1ae>
cmp    %r13,0x10(%rsp)
jne    1330 <main+0x190>
mov    %r15,%rdi
call   1050 <strcpy@plt>
cmp    %r13,%r12
je     1300 <main+0x160>
jmp    133d <main+0x19d>
nopl   (%rax)
mov    %r15,%rdi
call   10b0 <strcat@plt>
cmp    %r13,%r12
je     1300 <main+0x160>
mov    %r15,%rdi
lea    0xd0a(%rip),%rsi
call   10b0 <strcat@plt>
jmp    1300 <main+0x160>
lea    0xcb8(%rip),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <findStrInTheMatrix@plt>
cltq
mov    0x8(%r14,%rax,8),%rcx
movq   $0x0,(%rsp)
lea    0xcdd(%rip),%rdi
lea    0xc8d(%rip),%r8
mov    %rdi,%rsi
mov    %rbx,%rdx
mov    %r15,%r9
call   10c0 <execlp@plt>
mov    %r15,%rdi
call   1040 <free@plt>
jmp    1221 <main+0x81>
mov    0x2c41(%rip),%rax
mov    (%rax),%edi
lea    0xc91(%rip),%rsi
lea    0xc8d(%rip),%rdx
jmp    120c <main+0x6c>

LLVM IR (-O0):
@.str = [10 x i8] c"--version\00"
@.str.1 = [3 x i8] c"-e\00"
@.str.2 = [3 x i8] c"-t\00"
@stderr = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [37 x i8] c"You need to pass an valid arguments.\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [21 x i8] c"Memory low. Exiting.\00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [15 x i8] c"gnome-terminal\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
%9 = load i8**, i8*** %5
%10 = call i32 @findStrInTheMatrix(i8** %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%11 = icmp ne i32 %10, 65535
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @version()
store i32 0, i32* %3
br label %136
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = call i32 @findStrInTheMatrix(i8** %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32 %16, 65535
br i1 %17, label %22, label %18
18: ; preds = %14
%19 = load i8**, i8*** %5
%20 = call i32 @findStrInTheMatrix(i8** %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i32 %20, 65535
br i1 %21, label %22, label %25
22: ; preds = %18, %14
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %3
br label %136
25: ; preds = %18
%26 = load i8**, i8*** %5
%27 = call i32 @findStrInTheMatrix(i8** %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%28 = add nsw i32 %27, 1
store i32 %28, i32* %7
br label %29
29: ; preds = %60, %25
%30 = load i32, i32* %7
%31 = load i32, i32* %4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %63
33: ; preds = %29
%34 = load i8**, i8*** %5
%35 = load i32, i32* %7
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %34, i64 %36
%38 = load i8*, i8** %37
%39 = icmp eq i8* %38, null
br i1 %39, label %40, label %41
40: ; preds = %33
br label %63
41: ; preds = %33
%42 = load i8**, i8*** %5
%43 = load i32, i32* %7
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8*, i8** %42, i64 %44
%46 = load i8*, i8** %45
%47 = call i64 @strlen(i8* %46)
%48 = load i32, i32* %8
%49 = sext i32 %48 to i64
%50 = add nsw i64 %49, %47
%51 = trunc i64 %50 to i32
store i32 %51, i32* %8
%52 = load i32, i32* %7
%53 = load i32, i32* %4
%54 = sub nsw i32 %53, 1
%55 = icmp ne i32 %52, %54
br i1 %55, label %56, label %59
56: ; preds = %41
%57 = load i32, i32* %8
%58 = add nsw i32 %57, 1
store i32 %58, i32* %8
br label %59
59: ; preds = %56, %41
br label %60
60: ; preds = %59
%61 = load i32, i32* %7
%62 = add nsw i32 %61, 1
store i32 %62, i32* %7
br label %29
63: ; preds = %40, %29
%64 = load i32, i32* %8
%65 = sext i32 %64 to i64
%66 = mul i64 1, %65
%67 = trunc i64 %66 to i32
%68 = call i64 @malloc(i32 %67)
%69 = inttoptr i64 %68 to i8*
store i8* %69, i8** %6
%70 = load i8*, i8** %6
%71 = icmp eq i8* %70, null
br i1 %71, label %72, label %75
72: ; preds = %63
%73 = load i32, i32* @stderr
%74 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %3
br label %136
75: ; preds = %63
%76 = load i8*, i8** %6
%77 = call i32 @memset(i8* %76, i8 signext 0, i32 8)
%78 = load i8**, i8*** %5
%79 = call i32 @findStrInTheMatrix(i8** %78, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%80 = add nsw i32 %79, 1
store i32 %80, i32* %7
br label %81
81: ; preds = %121, %75
%82 = load i32, i32* %7
%83 = load i32, i32* %4
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %124
85: ; preds = %81
%86 = load i8**, i8*** %5
%87 = load i32, i32* %7
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i8*, i8** %86, i64 %88
%90 = load i8*, i8** %89
%91 = icmp eq i8* %90, null
br i1 %91, label %92, label %93
92: ; preds = %85
br label %124
93: ; preds = %85
%94 = load i32, i32* %7
%95 = icmp eq i32 %94, 4
br i1 %95, label %96, label %104
96: ; preds = %93
%97 = load i8*, i8** %6
%98 = load i8**, i8*** %5
%99 = load i32, i32* %7
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8*, i8** %98, i64 %100
%102 = load i8*, i8** %101
%103 = call i32 @strcpy(i8* %97, i8* %102)
br label %112
104: ; preds = %93
%105 = load i8*, i8** %6
%106 = load i8**, i8*** %5
%107 = load i32, i32* %7
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8*, i8** %106, i64 %108
%110 = load i8*, i8** %109
%111 = call i32 @strcat(i8* %105, i8* %110)
br label %112
112: ; preds = %104, %96
%113 = load i32, i32* %7
%114 = load i32, i32* %4
%115 = sub nsw i32 %114, 1
%116 = icmp ne i32 %113, %115
br i1 %116, label %117, label %120
117: ; preds = %112
%118 = load i8*, i8** %6
%119 = call i32 @strcat(i8* %118, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %120
120: ; preds = %117, %112
br label %121
121: ; preds = %120
%122 = load i32, i32* %7
%123 = add nsw i32 %122, 1
store i32 %123, i32* %7
br label %81
124: ; preds = %92, %81
%125 = load i8**, i8*** %5
%126 = load i8**, i8*** %5
%127 = call i32 @findStrInTheMatrix(i8** %126, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%128 = add nsw i32 %127, 1
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8*, i8** %125, i64 %129
%131 = load i8*, i8** %130
%132 = load i8*, i8** %6
%133 = call i32 @execlp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %131, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %132, i32* null)
%134 = load i8*, i8** %6
%135 = call i32 @free(i8* %134)
store i32 0, i32* %3
br label %136
136: ; preds = %124, %72, %22, %12
%137 = load i32, i32* %3
ret i32 %137
}

LLVM IR (-O2):
@.str = [10 x i8] c"--version\00"
@.str.1 = [3 x i8] c"-e\00"
@.str.2 = [3 x i8] c"-t\00"
@stderr = global i32 0
@.str.3 = [4 x i8] c"%s\0A\00"
@.str.4 = [37 x i8] c"You need to pass an valid arguments.\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [21 x i8] c"Memory low. Exiting.\00"
@.str.7 = [2 x i8] c" \00"
@.str.8 = [15 x i8] c"gnome-terminal\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @findStrInTheMatrix(i8** %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 65535
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 (...) @version()
br label %84
7: ; preds = %2
%8 = tail call i32 @findStrInTheMatrix(i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i32 %8, 65535
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = tail call i32 @findStrInTheMatrix(i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i32 %11, 65535
br i1 %12, label %13, label %16
13: ; preds = %10, %7
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
br label %84
16: ; preds = %10
%17 = tail call i32 @findStrInTheMatrix(i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%18 = add i32 %17, 1
%19 = icmp slt i32 %18, %0
br i1 %19, label %20, label %40
20: ; preds = %16
%21 = add nsw i32 %0, -1
%22 = sext i32 %18 to i64
%23 = sext i32 %21 to i64
br label %24
24: ; preds = %20, %30
%25 = phi i64 [ %22, %20 ], [ %37, %30 ]
%26 = phi i32 [ 0, %20 ], [ %36, %30 ]
%27 = getelementptr inbounds i8*, i8** %1, i64 %25
%28 = load i8*, i8** %27
%29 = icmp eq i8* %28, null
br i1 %29, label %40, label %30
30: ; preds = %24
%31 = tail call i64 @strlen(i8* %28)
%32 = trunc i64 %31 to i32
%33 = icmp ne i64 %25, %23
%34 = zext i1 %33 to i32
%35 = add i32 %26, %34
%36 = add i32 %35, %32
%37 = add nsw i64 %25, 1
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, %0
br i1 %39, label %40, label %24
40: ; preds = %30, %24, %16
%41 = phi i32 [ 0, %16 ], [ %26, %24 ], [ %36, %30 ]
%42 = tail call i64 @malloc(i32 %41)
%43 = inttoptr i64 %42 to i8*
%44 = icmp eq i64 %42, 0
br i1 %44, label %45, label %48
45: ; preds = %40
%46 = load i32, i32* @stderr
%47 = tail call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
br label %84
48: ; preds = %40
%49 = tail call i32 @memset(i8* %43, i8 signext 0, i32 8)
%50 = tail call i32 @findStrInTheMatrix(i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%51 = add i32 %50, 1
%52 = icmp slt i32 %51, %0
br i1 %52, label %53, label %76
53: ; preds = %48
%54 = add nsw i32 %0, -1
%55 = sext i32 %51 to i64
%56 = sext i32 %54 to i64
br label %57
57: ; preds = %53, %72
%58 = phi i64 [ %55, %53 ], [ %73, %72 ]
%59 = getelementptr inbounds i8*, i8** %1, i64 %58
%60 = load i8*, i8** %59
%61 = icmp eq i8* %60, null
br i1 %61, label %76, label %62
62: ; preds = %57
%63 = icmp eq i64 %58, 4
br i1 %63, label %64, label %66
64: ; preds = %62
%65 = tail call i32 @strcpy(i8* %43, i8* %60)
br label %68
66: ; preds = %62
%67 = tail call i32 @strcat(i8* %43, i8* %60)
br label %68
68: ; preds = %66, %64
%69 = icmp eq i64 %58, %56
br i1 %69, label %72, label %70
70: ; preds = %68
%71 = tail call i32 @strcat(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %72
72: ; preds = %68, %70
%73 = add nsw i64 %58, 1
%74 = trunc i64 %73 to i32
%75 = icmp eq i32 %74, %0
br i1 %75, label %76, label %57
76: ; preds = %72, %57, %48
%77 = tail call i32 @findStrInTheMatrix(i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%78 = add nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8*, i8** %1, i64 %79
%81 = load i8*, i8** %80
%82 = tail call i32 @execlp(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %43, i32* null)
%83 = tail call i32 @free(i8* %43)
br label %84
84: ; preds = %76, %45, %13, %5
%85 = phi i32 [ 0, %5 ], [ 1, %13 ], [ 1, %45 ], [ 0, %76 ]
ret i32 %85
}