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

/* Variables and functions */
int atoi(char *);
double difftime(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ ft_add_test_case(char **, char *, char *, char *);
int /*<<< orphan*/ ft_get_values(char **, char **, char **, char **);
int nmatch(char *, char *);
int printf(char *, ...);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main(void) {
  time_t start_t, end_t;
  double diff_t;
  char *data[24][3];
  char *s1;
  char *s2;
  int your_result;
  char *actual_result;
  int i;
  i = 0;
  ft_add_test_case(&data[i++][0], "abc", "abc", "1");
  ft_add_test_case(&data[i++][0], "abc", "abd", "0");
  ft_add_test_case(&data[i++][0], "abcd", "ab*cd", "1");
  ft_add_test_case(&data[i++][0], "abcd", "ab*ce", "0");
  ft_add_test_case(&data[i++][0], "abcd", "ab*ed", "0");
  ft_add_test_case(&data[i++][0], "abcd", "*abcd", "1");
  ft_add_test_case(&data[i++][0], "abcd", "a*abcd", "0");
  ft_add_test_case(&data[i++][0], "abcd", "abcd*", "1");
  ft_add_test_case(&data[i++][0], "abcd", "abcd*d", "0");
  ft_add_test_case(&data[i++][0], "abcd", "*abcd*", "1");
  ft_add_test_case(&data[i++][0], "abcd", "ab**cd", "1");
  ft_add_test_case(&data[i++][0], "abcd", "a*b*c*d", "1");
  ft_add_test_case(&data[i++][0], "abcd", "ab**cd", "1");
  ft_add_test_case(&data[i++][0], "abcd", "ab**d", "2");
  ft_add_test_case(&data[i++][0], "abcd", "*", "1");
  ft_add_test_case(&data[i++][0], "abcd", "**", "5");
  ft_add_test_case(&data[i++][0], "abcd", "***", "15");
  ft_add_test_case(&data[i++][0], "abilgewbi;wewb;bicd", "ab*cd", "1");
  ft_add_test_case(&data[i++][0], "qfwyjhbqw fwqgf abcd", "*abcd", "1");
  ft_add_test_case(&data[i++][0], "abcdybqwdkqwg   qwiulg", "abcd*", "1");
  ft_add_test_case(&data[i++][0], "ewg abcdwef", "*abcd*", "1");
  ft_add_test_case(&data[i++][0], "aasdbqwdcqwdd", "a*b*c*d", "1");
  ft_add_test_case(&data[i++][0], "abcdgh abcedgh", "*abc*edgh", "2");
  ft_add_test_case(&data[i++][0], "abcdgh abcdgh", "*abc*edgh", "0");
  i = 0;
  while (i < 24) {
    ft_get_values(&data[i][0], &s1, &s2, &actual_result);
    time(&start_t);
    your_result = nmatch(s1, s2);
    time(&end_t);
    diff_t = difftime(end_t, start_t);
    printf("s1: %s, s2: %s, your_result: %i, actual_result: %i, execution time "
           "= %f\n",
           s1, s2, your_result, atoi(actual_result), diff_t);
    if (your_result != atoi(actual_result))
      return printf("\e[0;31mFAKE AND GAY ✗\e[0m\n");
    if (diff_t >= 2.0)
      return printf("\e[0;33mYOU ARE TOO SLOW! ✗\e[0m\n");
    ++i;
  }
  return printf("\e[0;32mGOES ✓\e[0m\n");
  ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x284(%rbp)
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xe54(%rip),%rdx
lea    0xe51(%rip),%rcx
mov    %rdx,%rsi
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xe1d(%rip),%rsi
lea    0xe1c(%rip),%rdx
lea    0xe19(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xe57(%rip),%rsi
lea    0xde7(%rip),%rdx
lea    0xdd8(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xe1c(%rip),%rsi
lea    0xdb2(%rip),%rdx
lea    0xda3(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xde1(%rip),%rsi
lea    0xd7d(%rip),%rdx
lea    0xd68(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xda6(%rip),%rsi
lea    0xd49(%rip),%rdx
lea    0xd27(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xd6b(%rip),%rsi
lea    0xd0d(%rip),%rdx
lea    0xcf2(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xd30(%rip),%rsi
lea    0xce1(%rip),%rdx
lea    0xcb1(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xcf5(%rip),%rsi
lea    0xc9e(%rip),%rdx
lea    0xc7c(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xcba(%rip),%rsi
lea    0xc6a(%rip),%rdx
lea    0xc3b(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xc7f(%rip),%rsi
lea    0xc36(%rip),%rdx
lea    0xc00(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xc44(%rip),%rsi
lea    0xc02(%rip),%rdx
lea    0xbc5(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xc09(%rip),%rsi
lea    0xbc0(%rip),%rdx
lea    0xb8a(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xbce(%rip),%rsi
lea    0xb94(%rip),%rdx
lea    0xb93(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xb93(%rip),%rsi
lea    0xb63(%rip),%rdx
lea    0xb14(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xb58(%rip),%rsi
lea    0xb27(%rip),%rdx
lea    0xb24(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xb1d(%rip),%rsi
lea    0xaeb(%rip),%rdx
lea    0xae8(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xabe(%rip),%rsi
lea    0xa72(%rip),%rdx
lea    0xa63(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xa97(%rip),%rsi
lea    0xa4a(%rip),%rdx
lea    0xa28(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xa71(%rip),%rsi
lea    0xa1d(%rip),%rdx
lea    0x9ed(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xa4d(%rip),%rsi
lea    0x9e1(%rip),%rdx
lea    0x9b2(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0xa1e(%rip),%rsi
lea    0x9b4(%rip),%rdx
lea    0x977(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0x9f1(%rip),%rsi
lea    0x9f9(%rip),%rdx
lea    0x980(%rip),%rcx
call   1060 <ft_add_test_case@plt>
mov    -0x284(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x284(%rbp)
cltq
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    0x9cf(%rip),%rsi
lea    0x9be(%rip),%rdx
lea    0x907(%rip),%rcx
call   1060 <ft_add_test_case@plt>
movl   $0x0,-0x284(%rbp)
cmpl   $0x18,-0x284(%rbp)
jge    186e <main+0x6fe>
movslq -0x284(%rbp),%rax
lea    -0x260(%rbp),%rdi
imul   $0x18,%rax,%rax
add    %rax,%rdi
lea    -0x268(%rbp),%rsi
lea    -0x270(%rbp),%rdx
lea    -0x280(%rbp),%rcx
call   1090 <ft_get_values@plt>
lea    -0x8(%rbp),%rdi
call   1050 <time@plt>
mov    -0x268(%rbp),%rdi
mov    -0x270(%rbp),%rsi
call   1080 <nmatch@plt>
mov    %eax,-0x274(%rbp)
lea    -0xc(%rbp),%rdi
call   1050 <time@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <difftime@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0x268(%rbp),%rax
mov    %rax,-0x2a0(%rbp)
mov    -0x270(%rbp),%rax
mov    %rax,-0x298(%rbp)
mov    -0x274(%rbp),%eax
mov    %eax,-0x28c(%rbp)
mov    -0x280(%rbp),%rdi
call   1070 <atoi@plt>
mov    -0x2a0(%rbp),%rsi
mov    -0x298(%rbp),%rdx
mov    -0x28c(%rbp),%ecx
mov    %eax,%r8d
movsd  -0x18(%rbp),%xmm0
lea    0x8f2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x274(%rbp),%eax
mov    %eax,-0x288(%rbp)
mov    -0x280(%rbp),%rdi
call   1070 <atoi@plt>
mov    %eax,%ecx
mov    -0x288(%rbp),%eax
cmp    %ecx,%eax
je     182d <main+0x6bd>
lea    0x905(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    %eax,-0x4(%rbp)
jmp    187f <main+0x70f>
movsd  -0x18(%rbp),%xmm0
movsd  0x7c6(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     185a <main+0x6ea>
lea    0x8f5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    %eax,-0x4(%rbp)
jmp    187f <main+0x70f>
mov    -0x284(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x284(%rbp)
jmp    171a <main+0x5aa>
lea    0x8ed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x278,%rsp
lea    0xe80(%rip),%rbx
lea    0xe7d(%rip),%r12
lea    0x30(%rsp),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x48(%rsp),%rdi
lea    0xe60(%rip),%rdx
lea    0xe5d(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x60(%rsp),%rdi
lea    0xeb1(%rip),%rbx
lea    0xe41(%rip),%rdx
mov    %rbx,%rsi
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x78(%rsp),%rdi
lea    0xe30(%rip),%rdx
mov    %rbx,%rsi
mov    %r14,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x90(%rsp),%rdi
lea    0xe1c(%rip),%rdx
mov    %rbx,%rsi
mov    %r14,%rcx
call   1060 <ft_add_test_case@plt>
lea    0xa8(%rsp),%rdi
lea    0xe09(%rip),%rdx
mov    %rbx,%rsi
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0xc0(%rsp),%rdi
lea    0xdee(%rip),%rdx
mov    %rbx,%rsi
mov    %r14,%rcx
call   1060 <ft_add_test_case@plt>
lea    0xd8(%rsp),%rdi
lea    0xde3(%rip),%rdx
mov    %rbx,%rsi
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0xf0(%rsp),%rdi
lea    0xdc1(%rip),%rdx
mov    %rbx,%rsi
mov    %r14,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x108(%rsp),%rdi
lea    0xdae(%rip),%r15
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x120(%rsp),%rdi
lea    0xd98(%rip),%rbp
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x138(%rsp),%rdi
lea    0xd82(%rip),%r13
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x150(%rsp),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x168(%rsp),%rdi
lea    0xd57(%rip),%rdx
lea    0xd56(%rip),%rbp
mov    %rbx,%rsi
mov    %rbp,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x180(%rsp),%rdi
lea    0xd40(%rip),%rdx
mov    %rbx,%rsi
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x198(%rsp),%rdi
lea    0xd25(%rip),%rdx
lea    0xd22(%rip),%rcx
mov    %rbx,%rsi
call   1060 <ft_add_test_case@plt>
lea    0x1b0(%rsp),%rdi
lea    0xd06(%rip),%rdx
lea    0xd03(%rip),%rcx
mov    %rbx,%rsi
call   1060 <ft_add_test_case@plt>
lea    0x1c8(%rsp),%rdi
lea    0xcef(%rip),%rsi
lea    0xca3(%rip),%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x1e0(%rsp),%rdi
lea    0xce5(%rip),%rsi
lea    0xc98(%rip),%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x1f8(%rsp),%rdi
lea    0xcdc(%rip),%rsi
lea    0xc88(%rip),%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x210(%rsp),%rdi
lea    0xcd5(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x228(%rsp),%rdi
lea    0xcc7(%rip),%rsi
mov    %r13,%rdx
mov    %r12,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x240(%rsp),%rdi
lea    0xcbb(%rip),%rsi
lea    0xcc3(%rip),%rbx
mov    %rbx,%rdx
mov    %rbp,%rcx
call   1060 <ft_add_test_case@plt>
lea    0x258(%rsp),%rdi
lea    0xcb3(%rip),%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1060 <ft_add_test_case@plt>
xor    %ebx,%ebx
lea    0x8(%rsp),%rbp
lea    0xca8(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%rsp,%rbx,1),%rdi
add    $0x30,%rdi
lea    0x28(%rsp),%rsi
lea    0x20(%rsp),%rdx
lea    0x18(%rsp),%rcx
call   1090 <ft_get_values@plt>
lea    0xc(%rsp),%rdi
call   1050 <time@plt>
mov    0x28(%rsp),%rdi
mov    0x20(%rsp),%rsi
call   1080 <nmatch@plt>
mov    %eax,%r15d
mov    %rbp,%rdi
call   1050 <time@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1040 <difftime@plt>
movsd  %xmm0,0x10(%rsp)
mov    0x28(%rsp),%r12
mov    0x20(%rsp),%r13
mov    0x18(%rsp),%rdi
call   1070 <atoi@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %r15d,%ecx
mov    %eax,%r8d
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x18(%rsp),%rdi
call   1070 <atoi@plt>
cmp    %eax,%r15d
jne    14fc <main+0x38c>
movsd  0x10(%rsp),%xmm0
ucomisd 0xb20(%rip),%xmm0
jae    1505 <main+0x395>
add    $0x18,%rbx
cmp    $0x240,%rbx
jne    1440 <main+0x2d0>
lea    0xc68(%rip),%rdi
jmp    150c <main+0x39c>
lea    0xc20(%rip),%rdi
jmp    150c <main+0x39c>
lea    0xc34(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x278,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"abc\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [4 x i8] c"abd\00"
@.str.3 = [2 x i8] c"0\00"
@.str.4 = [5 x i8] c"abcd\00"
@.str.5 = [6 x i8] c"ab*cd\00"
@.str.6 = [6 x i8] c"ab*ce\00"
@.str.7 = [6 x i8] c"ab*ed\00"
@.str.8 = [6 x i8] c"*abcd\00"
@.str.9 = [7 x i8] c"a*abcd\00"
@.str.10 = [6 x i8] c"abcd*\00"
@.str.11 = [7 x i8] c"abcd*d\00"
@.str.12 = [7 x i8] c"*abcd*\00"
@.str.13 = [7 x i8] c"ab**cd\00"
@.str.14 = [8 x i8] c"a*b*c*d\00"
@.str.15 = [6 x i8] c"ab**d\00"
@.str.16 = [2 x i8] c"2\00"
@.str.17 = [2 x i8] c"*\00"
@.str.18 = [3 x i8] c"**\00"
@.str.19 = [2 x i8] c"5\00"
@.str.20 = [4 x i8] c"***\00"
@.str.21 = [3 x i8] c"15\00"
@.str.22 = [20 x i8] c"abilgewbi;wewb;bicd\00"
@.str.23 = [21 x i8] c"qfwyjhbqw fwqgf abcd\00"
@.str.24 = [23 x i8] c"abcdybqwdkqwg qwiulg\00"
@.str.25 = [12 x i8] c"ewg abcdwef\00"
@.str.26 = [14 x i8] c"aasdbqwdcqwdd\00"
@.str.27 = [15 x i8] c"abcdgh abcedgh\00"
@.str.28 = [10 x i8] c"*abc*edgh\00"
@.str.29 = [14 x i8] c"abcdgh abcdgh\00"
@.str.30 = [73 x i8] c"s1: %s, s2: %s, your_result: %i, actual_result: %i, execution time = %f\0A\00"
@.str.31 = [29 x i8] c"\1B[0;31mFAKE AND GAY \E2\9C\97\1B[0m\0A\00"
@.str.32 = [34 x i8] c"\1B[0;33mYOU ARE TOO SLOW! \E2\9C\97\1B[0m\0A\00"
@.str.33 = [21 x i8] c"\1B[0;32mGOES \E2\9C\93\1B[0m\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca [24 x [3 x i8*]]
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %10
%11 = load i32, i32* %10
%12 = add nsw i32 %11, 1
store i32 %12, i32* %10
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %13
%15 = getelementptr inbounds [3 x i8*], [3 x i8*]* %14, i64 0, i64 0
%16 = call i32 @ft_add_test_case(i8** %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = load i32, i32* %10
%18 = add nsw i32 %17, 1
store i32 %18, i32* %10
%19 = sext i32 %17 to i64
%20 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %19
%21 = getelementptr inbounds [3 x i8*], [3 x i8*]* %20, i64 0, i64 0
%22 = call i32 @ft_add_test_case(i8** %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32, i32* %10
%24 = add nsw i32 %23, 1
store i32 %24, i32* %10
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %25
%27 = getelementptr inbounds [3 x i8*], [3 x i8*]* %26, i64 0, i64 0
%28 = call i32 @ft_add_test_case(i8** %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* %10
%30 = add nsw i32 %29, 1
store i32 %30, i32* %10
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %31
%33 = getelementptr inbounds [3 x i8*], [3 x i8*]* %32, i64 0, i64 0
%34 = call i32 @ft_add_test_case(i8** %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* %10
%36 = add nsw i32 %35, 1
store i32 %36, i32* %10
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %37
%39 = getelementptr inbounds [3 x i8*], [3 x i8*]* %38, i64 0, i64 0
%40 = call i32 @ft_add_test_case(i8** %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%41 = load i32, i32* %10
%42 = add nsw i32 %41, 1
store i32 %42, i32* %10
%43 = sext i32 %41 to i64
%44 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %43
%45 = getelementptr inbounds [3 x i8*], [3 x i8*]* %44, i64 0, i64 0
%46 = call i32 @ft_add_test_case(i8** %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%47 = load i32, i32* %10
%48 = add nsw i32 %47, 1
store i32 %48, i32* %10
%49 = sext i32 %47 to i64
%50 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %49
%51 = getelementptr inbounds [3 x i8*], [3 x i8*]* %50, i64 0, i64 0
%52 = call i32 @ft_add_test_case(i8** %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%53 = load i32, i32* %10
%54 = add nsw i32 %53, 1
store i32 %54, i32* %10
%55 = sext i32 %53 to i64
%56 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %55
%57 = getelementptr inbounds [3 x i8*], [3 x i8*]* %56, i64 0, i64 0
%58 = call i32 @ft_add_test_case(i8** %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%59 = load i32, i32* %10
%60 = add nsw i32 %59, 1
store i32 %60, i32* %10
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %61
%63 = getelementptr inbounds [3 x i8*], [3 x i8*]* %62, i64 0, i64 0
%64 = call i32 @ft_add_test_case(i8** %63, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%65 = load i32, i32* %10
%66 = add nsw i32 %65, 1
store i32 %66, i32* %10
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %67
%69 = getelementptr inbounds [3 x i8*], [3 x i8*]* %68, i64 0, i64 0
%70 = call i32 @ft_add_test_case(i8** %69, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%71 = load i32, i32* %10
%72 = add nsw i32 %71, 1
store i32 %72, i32* %10
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %73
%75 = getelementptr inbounds [3 x i8*], [3 x i8*]* %74, i64 0, i64 0
%76 = call i32 @ft_add_test_case(i8** %75, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%77 = load i32, i32* %10
%78 = add nsw i32 %77, 1
store i32 %78, i32* %10
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %79
%81 = getelementptr inbounds [3 x i8*], [3 x i8*]* %80, i64 0, i64 0
%82 = call i32 @ft_add_test_case(i8** %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
store i32 %84, i32* %10
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %85
%87 = getelementptr inbounds [3 x i8*], [3 x i8*]* %86, i64 0, i64 0
%88 = call i32 @ft_add_test_case(i8** %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%89 = load i32, i32* %10
%90 = add nsw i32 %89, 1
store i32 %90, i32* %10
%91 = sext i32 %89 to i64
%92 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %91
%93 = getelementptr inbounds [3 x i8*], [3 x i8*]* %92, i64 0, i64 0
%94 = call i32 @ft_add_test_case(i8** %93, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%95 = load i32, i32* %10
%96 = add nsw i32 %95, 1
store i32 %96, i32* %10
%97 = sext i32 %95 to i64
%98 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %97
%99 = getelementptr inbounds [3 x i8*], [3 x i8*]* %98, i64 0, i64 0
%100 = call i32 @ft_add_test_case(i8** %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%101 = load i32, i32* %10
%102 = add nsw i32 %101, 1
store i32 %102, i32* %10
%103 = sext i32 %101 to i64
%104 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %103
%105 = getelementptr inbounds [3 x i8*], [3 x i8*]* %104, i64 0, i64 0
%106 = call i32 @ft_add_test_case(i8** %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%107 = load i32, i32* %10
%108 = add nsw i32 %107, 1
store i32 %108, i32* %10
%109 = sext i32 %107 to i64
%110 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %109
%111 = getelementptr inbounds [3 x i8*], [3 x i8*]* %110, i64 0, i64 0
%112 = call i32 @ft_add_test_case(i8** %111, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
%113 = load i32, i32* %10
%114 = add nsw i32 %113, 1
store i32 %114, i32* %10
%115 = sext i32 %113 to i64
%116 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %115
%117 = getelementptr inbounds [3 x i8*], [3 x i8*]* %116, i64 0, i64 0
%118 = call i32 @ft_add_test_case(i8** %117, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%119 = load i32, i32* %10
%120 = add nsw i32 %119, 1
store i32 %120, i32* %10
%121 = sext i32 %119 to i64
%122 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %121
%123 = getelementptr inbounds [3 x i8*], [3 x i8*]* %122, i64 0, i64 0
%124 = call i32 @ft_add_test_case(i8** %123, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%125 = load i32, i32* %10
%126 = add nsw i32 %125, 1
store i32 %126, i32* %10
%127 = sext i32 %125 to i64
%128 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %127
%129 = getelementptr inbounds [3 x i8*], [3 x i8*]* %128, i64 0, i64 0
%130 = call i32 @ft_add_test_case(i8** %129, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%131 = load i32, i32* %10
%132 = add nsw i32 %131, 1
store i32 %132, i32* %10
%133 = sext i32 %131 to i64
%134 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %133
%135 = getelementptr inbounds [3 x i8*], [3 x i8*]* %134, i64 0, i64 0
%136 = call i32 @ft_add_test_case(i8** %135, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%137 = load i32, i32* %10
%138 = add nsw i32 %137, 1
store i32 %138, i32* %10
%139 = sext i32 %137 to i64
%140 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %139
%141 = getelementptr inbounds [3 x i8*], [3 x i8*]* %140, i64 0, i64 0
%142 = call i32 @ft_add_test_case(i8** %141, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%143 = load i32, i32* %10
%144 = add nsw i32 %143, 1
store i32 %144, i32* %10
%145 = sext i32 %143 to i64
%146 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %145
%147 = getelementptr inbounds [3 x i8*], [3 x i8*]* %146, i64 0, i64 0
%148 = call i32 @ft_add_test_case(i8** %147, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%149 = load i32, i32* %10
%150 = add nsw i32 %149, 1
store i32 %150, i32* %10
%151 = sext i32 %149 to i64
%152 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %151
%153 = getelementptr inbounds [3 x i8*], [3 x i8*]* %152, i64 0, i64 0
%154 = call i32 @ft_add_test_case(i8** %153, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %10
br label %155
155: ; preds = %190, %0
%156 = load i32, i32* %10
%157 = icmp slt i32 %156, 24
br i1 %157, label %158, label %193
158: ; preds = %155
%159 = load i32, i32* %10
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %5, i64 0, i64 %160
%162 = getelementptr inbounds [3 x i8*], [3 x i8*]* %161, i64 0, i64 0
%163 = call i32 @ft_get_values(i8** %162, i8** %6, i8** %7, i8** %9)
%164 = call i32 @time(i32* %2)
%165 = load i8*, i8** %6
%166 = load i8*, i8** %7
%167 = call i32 @nmatch(i8* %165, i8* %166)
store i32 %167, i32* %8
%168 = call i32 @time(i32* %3)
%169 = load i32, i32* %3
%170 = load i32, i32* %2
%171 = call double @difftime(i32 %169, i32 %170)
store double %171, double* %4
%172 = load i8*, i8** %6
%173 = load i8*, i8** %7
%174 = load i32, i32* %8
%175 = load i8*, i8** %9
%176 = call i32 @atoi(i8* %175)
%177 = load double, double* %4
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.30, i64 0, i64 0), i8* %172, i8* %173, i32 %174, i32 %176, double %177)
%179 = load i32, i32* %8
%180 = load i8*, i8** %9
%181 = call i32 @atoi(i8* %180)
%182 = icmp ne i32 %179, %181
br i1 %182, label %183, label %185
183: ; preds = %158
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.31, i64 0, i64 0))
store i32 %184, i32* %1
br label %195
185: ; preds = %158
%186 = load double, double* %4
%187 = fcmp oge double %186, 2.000000e+00
br i1 %187, label %188, label %190
188: ; preds = %185
%189 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.32, i64 0, i64 0))
store i32 %189, i32* %1
br label %195
190: ; preds = %185
%191 = load i32, i32* %10
%192 = add nsw i32 %191, 1
store i32 %192, i32* %10
br label %155
193: ; preds = %155
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0))
store i32 %194, i32* %1
br label %195
195: ; preds = %193, %188, %183
%196 = load i32, i32* %1
ret i32 %196
}

LLVM IR (-O2):
@.str = [4 x i8] c"abc\00"
@.str.1 = [2 x i8] c"1\00"
@.str.2 = [4 x i8] c"abd\00"
@.str.3 = [2 x i8] c"0\00"
@.str.4 = [5 x i8] c"abcd\00"
@.str.5 = [6 x i8] c"ab*cd\00"
@.str.6 = [6 x i8] c"ab*ce\00"
@.str.7 = [6 x i8] c"ab*ed\00"
@.str.8 = [6 x i8] c"*abcd\00"
@.str.9 = [7 x i8] c"a*abcd\00"
@.str.10 = [6 x i8] c"abcd*\00"
@.str.11 = [7 x i8] c"abcd*d\00"
@.str.12 = [7 x i8] c"*abcd*\00"
@.str.13 = [7 x i8] c"ab**cd\00"
@.str.14 = [8 x i8] c"a*b*c*d\00"
@.str.15 = [6 x i8] c"ab**d\00"
@.str.16 = [2 x i8] c"2\00"
@.str.17 = [2 x i8] c"*\00"
@.str.18 = [3 x i8] c"**\00"
@.str.19 = [2 x i8] c"5\00"
@.str.20 = [4 x i8] c"***\00"
@.str.21 = [3 x i8] c"15\00"
@.str.22 = [20 x i8] c"abilgewbi;wewb;bicd\00"
@.str.23 = [21 x i8] c"qfwyjhbqw fwqgf abcd\00"
@.str.24 = [23 x i8] c"abcdybqwdkqwg qwiulg\00"
@.str.25 = [12 x i8] c"ewg abcdwef\00"
@.str.26 = [14 x i8] c"aasdbqwdcqwdd\00"
@.str.27 = [15 x i8] c"abcdgh abcedgh\00"
@.str.28 = [10 x i8] c"*abc*edgh\00"
@.str.29 = [14 x i8] c"abcdgh abcdgh\00"
@.str.30 = [73 x i8] c"s1: %s, s2: %s, your_result: %i, actual_result: %i, execution time = %f\0A\00"
@.str.31 = [29 x i8] c"\1B[0;31mFAKE AND GAY \E2\9C\97\1B[0m\0A\00"
@.str.32 = [34 x i8] c"\1B[0;33mYOU ARE TOO SLOW! \E2\9C\97\1B[0m\0A\00"
@.str.33 = [21 x i8] c"\1B[0;32mGOES \E2\9C\93\1B[0m\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [24 x [3 x i8*]]
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast [24 x [3 x i8*]]* %3 to i8*
%10 = bitcast i8** %4 to i8*
%11 = bitcast i8** %5 to i8*
%12 = bitcast i8** %6 to i8*
%13 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 0, i64 0
%14 = call i32 @ft_add_test_case(i8** %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 1, i64 0
%16 = call i32 @ft_add_test_case(i8** %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%17 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 2, i64 0
%18 = call i32 @ft_add_test_case(i8** %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 3, i64 0
%20 = call i32 @ft_add_test_case(i8** %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%21 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 4, i64 0
%22 = call i32 @ft_add_test_case(i8** %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 5, i64 0
%24 = call i32 @ft_add_test_case(i8** %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%25 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 6, i64 0
%26 = call i32 @ft_add_test_case(i8** %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%27 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 7, i64 0
%28 = call i32 @ft_add_test_case(i8** %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%29 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 8, i64 0
%30 = call i32 @ft_add_test_case(i8** %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%31 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 9, i64 0
%32 = call i32 @ft_add_test_case(i8** %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 10, i64 0
%34 = call i32 @ft_add_test_case(i8** %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%35 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 11, i64 0
%36 = call i32 @ft_add_test_case(i8** %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%37 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 12, i64 0
%38 = call i32 @ft_add_test_case(i8** %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%39 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 13, i64 0
%40 = call i32 @ft_add_test_case(i8** %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%41 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 14, i64 0
%42 = call i32 @ft_add_test_case(i8** %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%43 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 15, i64 0
%44 = call i32 @ft_add_test_case(i8** %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%45 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 16, i64 0
%46 = call i32 @ft_add_test_case(i8** %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0))
%47 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 17, i64 0
%48 = call i32 @ft_add_test_case(i8** %47, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%49 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 18, i64 0
%50 = call i32 @ft_add_test_case(i8** %49, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%51 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 19, i64 0
%52 = call i32 @ft_add_test_case(i8** %51, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%53 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 20, i64 0
%54 = call i32 @ft_add_test_case(i8** %53, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%55 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 21, i64 0
%56 = call i32 @ft_add_test_case(i8** %55, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%57 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 22, i64 0
%58 = call i32 @ft_add_test_case(i8** %57, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%59 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 23, i64 0
%60 = call i32 @ft_add_test_case(i8** %59, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.29, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.28, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %64
61: ; preds = %84
%62 = add nuw nsw i64 %65, 1
%63 = icmp eq i64 %62, 24
br i1 %63, label %86, label %64
64: ; preds = %0, %61
%65 = phi i64 [ 0, %0 ], [ %62, %61 ]
%66 = getelementptr inbounds [24 x [3 x i8*]], [24 x [3 x i8*]]* %3, i64 0, i64 %65, i64 0
%67 = call i32 @ft_get_values(i8** %66, i8** %4, i8** %5, i8** %6)
%68 = call i32 @time(i32* %1)
%69 = load i8*, i8** %4
%70 = load i8*, i8** %5
%71 = call i32 @nmatch(i8* %69, i8* %70)
%72 = call i32 @time(i32* %2)
%73 = load i32, i32* %2
%74 = load i32, i32* %1
%75 = call double @difftime(i32 %73, i32 %74)
%76 = load i8*, i8** %4
%77 = load i8*, i8** %5
%78 = load i8*, i8** %6
%79 = call i32 @atoi(i8* %78)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str.30, i64 0, i64 0), i8* %76, i8* %77, i32 %71, i32 %79, double %75)
%81 = load i8*, i8** %6
%82 = call i32 @atoi(i8* %81)
%83 = icmp eq i32 %71, %82
br i1 %83, label %84, label %86
84: ; preds = %64
%85 = fcmp ult double %75, 2.000000e+00
br i1 %85, label %61, label %86
86: ; preds = %61, %84, %64
%87 = phi i8* [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.31, i64 0, i64 0), %64 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.32, i64 0, i64 0), %84 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.33, i64 0, i64 0), %61 ]
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %87)
ret i32 %88
}