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

/* Variables and functions */
int /*<<< orphan*/ fail_test(int);
int /*<<< orphan*/ mem_free(char **);
scalar_t__ str_cmp(char *, char *);
int /*<<< orphan*/ str_cpy(char *, char *);
char **str_split_big(char *, char *, int *);
void test_split() {
  int cnt;
  char str[64];
  str_cpy(str, "a`b`");
  char **s = str_split_big(str, "`", &cnt);
  if (cnt != 3)
    fail_test(222);
  ;
  if (str_cmp("a", s[0]) != 0)
    fail_test(224);
  ;
  if (str_cmp("b", s[1]) != 0)
    fail_test(226);
  ;
  if (str_cmp("", s[2]) != 0)
    fail_test(228);
  ;
  mem_free(s);
  str_cpy(str, "");
  s = str_split_big(str, "=", &cnt);
  if (cnt != 1)
    fail_test(235);
  ;
  if (str_cmp("", s[0]) != 0)
    fail_test(237);
  ;
  mem_free(s);
  str_cpy(str, "c:string,a:int");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 2)
    fail_test(244);
  ;
  if (str_cmp("c:string", s[0]) != 0)
    fail_test(246);
  ;
  if (str_cmp("a:int", s[1]) != 0)
    fail_test(248);
  ;
  mem_free(s);
  str_cpy(str, "c:string");
  s = str_split_big(str, " :\t", &cnt);
  if (cnt != 2)
    fail_test(255);
  ;
  if (str_cmp("c", s[0]) != 0)
    fail_test(257);
  ;
  if (str_cmp("string", s[1]) != 0)
    fail_test(259);
  ;
  mem_free(s);
  str_cpy(str, "hello world,123430");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 2)
    fail_test(266);
  ;
  if (str_cmp("hello world", s[0]) != 0)
    fail_test(268);
  ;
  if (str_cmp("123430", s[1]) != 0)
    fail_test(270);
  ;
  mem_free(s);
  str_cpy(str, "hello\\\\,world,123430");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 3)
    fail_test(277);
  ;
  if (str_cmp("hello\\\\", s[0]) != 0)
    fail_test(279);
  ;
  if (str_cmp("world", s[1]) != 0)
    fail_test(281);
  ;
  if (str_cmp("123430", s[2]) != 0)
    fail_test(283);
  ;
  mem_free(s);
  str_cpy(str, "hello\\,world,123430");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 2)
    fail_test(290);
  ;
  if (str_cmp("hello\\,world", s[0]) != 0)
    fail_test(292);
  ;
  if (str_cmp("123430", s[1]) != 0)
    fail_test(294);
  ;
  mem_free(s);
  str_cpy(str, "hello\\");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 1)
    fail_test(301);
  ;
  if (str_cmp("hello\\", s[0]) != 0)
    fail_test(303);
  ;
  mem_free(s);
  str_cpy(str, "hello\\,");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 1)
    fail_test(310);
  ;
  if (str_cmp("hello\\,", s[0]) != 0)
    fail_test(312);
  ;
  mem_free(s);
  str_cpy(str, "hello\\\\,");
  s = str_split_big(str, ",", &cnt);
  if (cnt != 2)
    fail_test(319);
  ;
  if (str_cmp("hello\\\\", s[0]) != 0)
    fail_test(321);
  ;
  if (str_cmp("", s[1]) != 0)
    fail_test(323);
  ;
  mem_free(s);
}


x86 assembly (clang, -O0):
<test_split>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    -0x50(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xe90(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x3,-0x4(%rbp)
je     1194 <test_split+0x44>
mov    $0xde,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xe63(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     11bb <test_split+0x6b>
mov    $0xe0,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xe3d(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     11e3 <test_split+0x93>
mov    $0xe2,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xe34(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     120b <test_split+0xbb>
mov    $0xe4,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xe07(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xdda(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x1,-0x4(%rbp)
je     1250 <test_split+0x100>
mov    $0xeb,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xdc8(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     1277 <test_split+0x127>
mov    $0xed,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xd80(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xe01(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x2,-0x4(%rbp)
je     12bc <test_split+0x16c>
mov    $0xf4,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xd50(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     12e3 <test_split+0x193>
mov    $0xf6,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd22(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     130b <test_split+0x1bb>
mov    $0xf8,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xcfb(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xcf4(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x2,-0x4(%rbp)
je     1350 <test_split+0x200>
mov    $0xff,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xcc9(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     1377 <test_split+0x227>
mov    $0x101,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xc96(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     139f <test_split+0x24f>
mov    $0x103,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xc76(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xcd9(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x2,-0x4(%rbp)
je     13e4 <test_split+0x294>
mov    $0x10a,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xc4a(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     140b <test_split+0x2bb>
mov    $0x10c,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xc1b(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     1433 <test_split+0x2e3>
mov    $0x10e,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xc01(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xc45(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x3,-0x4(%rbp)
je     1478 <test_split+0x328>
mov    $0x115,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xbd7(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     149f <test_split+0x34f>
mov    $0x117,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xb94(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     14c7 <test_split+0x377>
mov    $0x119,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xb5f(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     14ef <test_split+0x39f>
mov    $0x11b,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xb62(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xb89(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x2,-0x4(%rbp)
je     1534 <test_split+0x3e4>
mov    $0x122,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xb37(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     155b <test_split+0x40b>
mov    $0x124,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xacb(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     1583 <test_split+0x433>
mov    $0x126,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xaef(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xaf5(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x1,-0x4(%rbp)
je     15c8 <test_split+0x478>
mov    $0x12d,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xab0(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     15ef <test_split+0x49f>
mov    $0x12f,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xa8a(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xa89(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x1,-0x4(%rbp)
je     1634 <test_split+0x4e4>
mov    $0x136,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0xa4b(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     165b <test_split+0x50b>
mov    $0x138,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
lea    -0x50(%rbp),%rdi
lea    0xa26(%rip),%rsi
call   1070 <str_cpy@plt>
lea    -0x50(%rbp),%rdi
lea    0xa1d(%rip),%rsi
lea    -0x4(%rbp),%rdx
call   1060 <str_split_big@plt>
mov    %rax,-0x58(%rbp)
cmpl   $0x2,-0x4(%rbp)
je     16a0 <test_split+0x550>
mov    $0x13f,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    (%rax),%rsi
lea    0x9af(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     16c7 <test_split+0x577>
mov    $0x141,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0x950(%rip),%rdi
call   1050 <str_cmp@plt>
cmp    $0x0,%rax
je     16ef <test_split+0x59f>
mov    $0x143,%edi
call   1030 <fail_test@plt>
mov    -0x58(%rbp),%rdi
call   1040 <mem_free@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_split>:
push   %rbx
sub    $0x50,%rsp
lea    0xea4(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xe93(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x3,0xc(%rsp)
je     1191 <test_split+0x41>
mov    $0xde,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xe6a(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     11af <test_split+0x5f>
mov    $0xe0,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xe4d(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     11ce <test_split+0x7e>
mov    $0xe2,%edi
call   1030 <fail_test@plt>
mov    0x10(%rbx),%rsi
lea    0xe4d(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     11ed <test_split+0x9d>
mov    $0xe4,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xe2a(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xdf9(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x1,0xc(%rsp)
je     1231 <test_split+0xe1>
mov    $0xeb,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xdeb(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     124f <test_split+0xff>
mov    $0xed,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xdad(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xe2a(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x2,0xc(%rsp)
je     1293 <test_split+0x143>
mov    $0xf4,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xd7d(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     12b1 <test_split+0x161>
mov    $0xf6,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xd58(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     12d0 <test_split+0x180>
mov    $0xf8,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xd3b(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xd30(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x2,0xc(%rsp)
je     1314 <test_split+0x1c4>
mov    $0xff,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xd09(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1332 <test_split+0x1e2>
mov    $0x101,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xcdf(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1351 <test_split+0x201>
mov    $0x103,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xcc9(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xd28(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x2,0xc(%rsp)
je     1395 <test_split+0x245>
mov    $0x10a,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xc9d(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     13b3 <test_split+0x263>
mov    $0x10c,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xc77(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     13d2 <test_split+0x282>
mov    $0x10e,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xc67(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xca7(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x3,0xc(%rsp)
je     1416 <test_split+0x2c6>
mov    $0x115,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xc3d(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1434 <test_split+0x2e4>
mov    $0x117,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xc03(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1453 <test_split+0x303>
mov    $0x119,%edi
call   1030 <fail_test@plt>
mov    0x10(%rbx),%rsi
lea    0xbd7(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1472 <test_split+0x322>
mov    $0x11b,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xbe4(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xc07(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x2,0xc(%rsp)
je     14b6 <test_split+0x366>
mov    $0x122,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xbb9(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     14d4 <test_split+0x384>
mov    $0x124,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xb56(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     14f3 <test_split+0x3a3>
mov    $0x126,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xb84(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xb86(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x1,0xc(%rsp)
je     1537 <test_split+0x3e7>
mov    $0x12d,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xb45(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1555 <test_split+0x405>
mov    $0x12f,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xb29(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xb24(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x1,0xc(%rsp)
je     1599 <test_split+0x449>
mov    $0x136,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xaea(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     15b7 <test_split+0x467>
mov    $0x138,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
lea    0xacf(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <str_cpy@plt>
lea    0xac2(%rip),%rsi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1060 <str_split_big@plt>
mov    %rax,%rbx
cmpl   $0x2,0xc(%rsp)
je     15fb <test_split+0x4ab>
mov    $0x13f,%edi
call   1030 <fail_test@plt>
mov    (%rbx),%rsi
lea    0xa58(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1619 <test_split+0x4c9>
mov    $0x141,%edi
call   1030 <fail_test@plt>
mov    0x8(%rbx),%rsi
lea    0xa02(%rip),%rdi
call   1050 <str_cmp@plt>
test   %rax,%rax
je     1638 <test_split+0x4e8>
mov    $0x143,%edi
call   1030 <fail_test@plt>
mov    %rbx,%rdi
call   1040 <mem_free@plt>
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"a`b`\00"
@.str.1 = [2 x i8] c"`\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [2 x i8] c"b\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [2 x i8] c"=\00"
@.str.6 = [15 x i8] c"c:string,a:int\00"
@.str.7 = [2 x i8] c",\00"
@.str.8 = [9 x i8] c"c:string\00"
@.str.9 = [6 x i8] c"a:int\00"
@.str.10 = [4 x i8] c" :\09\00"
@.str.11 = [2 x i8] c"c\00"
@.str.12 = [7 x i8] c"string\00"
@.str.13 = [19 x i8] c"hello world,123430\00"
@.str.14 = [12 x i8] c"hello world\00"
@.str.15 = [7 x i8] c"123430\00"
@.str.16 = [21 x i8] c"hello\\\\,world,123430\00"
@.str.17 = [8 x i8] c"hello\\\\\00"
@.str.18 = [6 x i8] c"world\00"
@.str.19 = [20 x i8] c"hello\\,world,123430\00"
@.str.20 = [13 x i8] c"hello\\,world\00"
@.str.21 = [7 x i8] c"hello\\\00"
@.str.22 = [8 x i8] c"hello\\,\00"
@.str.23 = [9 x i8] c"hello\\\\,\00"
define void @test_split() {
%1 = alloca i32
%2 = alloca [64 x i8]
%3 = alloca i8**
%4 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%5 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%7 = call i8** @str_split_big(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %1)
store i8** %7, i8*** %3
%8 = load i32, i32* %1
%9 = icmp ne i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @fail_test(i32 222)
br label %12
12: ; preds = %10, %0
%13 = load i8**, i8*** %3
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i64 @str_cmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = call i32 @fail_test(i32 224)
br label %20
20: ; preds = %18, %12
%21 = load i8**, i8*** %3
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i64 @str_cmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @fail_test(i32 226)
br label %28
28: ; preds = %26, %20
%29 = load i8**, i8*** %3
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = call i64 @str_cmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = call i32 @fail_test(i32 228)
br label %36
36: ; preds = %34, %28
%37 = load i8**, i8*** %3
%38 = call i32 @mem_free(i8** %37)
%39 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%40 = call i32 @str_cpy(i8* %39, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%41 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%42 = call i8** @str_split_big(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* %1)
store i8** %42, i8*** %3
%43 = load i32, i32* %1
%44 = icmp ne i32 %43, 1
br i1 %44, label %45, label %47
45: ; preds = %36
%46 = call i32 @fail_test(i32 235)
br label %47
47: ; preds = %45, %36
%48 = load i8**, i8*** %3
%49 = getelementptr inbounds i8*, i8** %48, i64 0
%50 = load i8*, i8** %49
%51 = call i64 @str_cmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %47
%54 = call i32 @fail_test(i32 237)
br label %55
55: ; preds = %53, %47
%56 = load i8**, i8*** %3
%57 = call i32 @mem_free(i8** %56)
%58 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%59 = call i32 @str_cpy(i8* %58, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%60 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%61 = call i8** @str_split_big(i8* %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %61, i8*** %3
%62 = load i32, i32* %1
%63 = icmp ne i32 %62, 2
br i1 %63, label %64, label %66
64: ; preds = %55
%65 = call i32 @fail_test(i32 244)
br label %66
66: ; preds = %64, %55
%67 = load i8**, i8*** %3
%68 = getelementptr inbounds i8*, i8** %67, i64 0
%69 = load i8*, i8** %68
%70 = call i64 @str_cmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %66
%73 = call i32 @fail_test(i32 246)
br label %74
74: ; preds = %72, %66
%75 = load i8**, i8*** %3
%76 = getelementptr inbounds i8*, i8** %75, i64 1
%77 = load i8*, i8** %76
%78 = call i64 @str_cmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %74
%81 = call i32 @fail_test(i32 248)
br label %82
82: ; preds = %80, %74
%83 = load i8**, i8*** %3
%84 = call i32 @mem_free(i8** %83)
%85 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%86 = call i32 @str_cpy(i8* %85, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%87 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%88 = call i8** @str_split_big(i8* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* %1)
store i8** %88, i8*** %3
%89 = load i32, i32* %1
%90 = icmp ne i32 %89, 2
br i1 %90, label %91, label %93
91: ; preds = %82
%92 = call i32 @fail_test(i32 255)
br label %93
93: ; preds = %91, %82
%94 = load i8**, i8*** %3
%95 = getelementptr inbounds i8*, i8** %94, i64 0
%96 = load i8*, i8** %95
%97 = call i64 @str_cmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* %96)
%98 = icmp ne i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %93
%100 = call i32 @fail_test(i32 257)
br label %101
101: ; preds = %99, %93
%102 = load i8**, i8*** %3
%103 = getelementptr inbounds i8*, i8** %102, i64 1
%104 = load i8*, i8** %103
%105 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %101
%108 = call i32 @fail_test(i32 259)
br label %109
109: ; preds = %107, %101
%110 = load i8**, i8*** %3
%111 = call i32 @mem_free(i8** %110)
%112 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%113 = call i32 @str_cpy(i8* %112, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
%114 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%115 = call i8** @str_split_big(i8* %114, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %115, i8*** %3
%116 = load i32, i32* %1
%117 = icmp ne i32 %116, 2
br i1 %117, label %118, label %120
118: ; preds = %109
%119 = call i32 @fail_test(i32 266)
br label %120
120: ; preds = %118, %109
%121 = load i8**, i8*** %3
%122 = getelementptr inbounds i8*, i8** %121, i64 0
%123 = load i8*, i8** %122
%124 = call i64 @str_cmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i8* %123)
%125 = icmp ne i64 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %120
%127 = call i32 @fail_test(i32 268)
br label %128
128: ; preds = %126, %120
%129 = load i8**, i8*** %3
%130 = getelementptr inbounds i8*, i8** %129, i64 1
%131 = load i8*, i8** %130
%132 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %131)
%133 = icmp ne i64 %132, 0
br i1 %133, label %134, label %136
134: ; preds = %128
%135 = call i32 @fail_test(i32 270)
br label %136
136: ; preds = %134, %128
%137 = load i8**, i8*** %3
%138 = call i32 @mem_free(i8** %137)
%139 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%140 = call i32 @str_cpy(i8* %139, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%141 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%142 = call i8** @str_split_big(i8* %141, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %142, i8*** %3
%143 = load i32, i32* %1
%144 = icmp ne i32 %143, 3
br i1 %144, label %145, label %147
145: ; preds = %136
%146 = call i32 @fail_test(i32 277)
br label %147
147: ; preds = %145, %136
%148 = load i8**, i8*** %3
%149 = getelementptr inbounds i8*, i8** %148, i64 0
%150 = load i8*, i8** %149
%151 = call i64 @str_cmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* %150)
%152 = icmp ne i64 %151, 0
br i1 %152, label %153, label %155
153: ; preds = %147
%154 = call i32 @fail_test(i32 279)
br label %155
155: ; preds = %153, %147
%156 = load i8**, i8*** %3
%157 = getelementptr inbounds i8*, i8** %156, i64 1
%158 = load i8*, i8** %157
%159 = call i64 @str_cmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i8* %158)
%160 = icmp ne i64 %159, 0
br i1 %160, label %161, label %163
161: ; preds = %155
%162 = call i32 @fail_test(i32 281)
br label %163
163: ; preds = %161, %155
%164 = load i8**, i8*** %3
%165 = getelementptr inbounds i8*, i8** %164, i64 2
%166 = load i8*, i8** %165
%167 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %166)
%168 = icmp ne i64 %167, 0
br i1 %168, label %169, label %171
169: ; preds = %163
%170 = call i32 @fail_test(i32 283)
br label %171
171: ; preds = %169, %163
%172 = load i8**, i8*** %3
%173 = call i32 @mem_free(i8** %172)
%174 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%175 = call i32 @str_cpy(i8* %174, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%176 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%177 = call i8** @str_split_big(i8* %176, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %177, i8*** %3
%178 = load i32, i32* %1
%179 = icmp ne i32 %178, 2
br i1 %179, label %180, label %182
180: ; preds = %171
%181 = call i32 @fail_test(i32 290)
br label %182
182: ; preds = %180, %171
%183 = load i8**, i8*** %3
%184 = getelementptr inbounds i8*, i8** %183, i64 0
%185 = load i8*, i8** %184
%186 = call i64 @str_cmp(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8* %185)
%187 = icmp ne i64 %186, 0
br i1 %187, label %188, label %190
188: ; preds = %182
%189 = call i32 @fail_test(i32 292)
br label %190
190: ; preds = %188, %182
%191 = load i8**, i8*** %3
%192 = getelementptr inbounds i8*, i8** %191, i64 1
%193 = load i8*, i8** %192
%194 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %193)
%195 = icmp ne i64 %194, 0
br i1 %195, label %196, label %198
196: ; preds = %190
%197 = call i32 @fail_test(i32 294)
br label %198
198: ; preds = %196, %190
%199 = load i8**, i8*** %3
%200 = call i32 @mem_free(i8** %199)
%201 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%202 = call i32 @str_cpy(i8* %201, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%203 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%204 = call i8** @str_split_big(i8* %203, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %204, i8*** %3
%205 = load i32, i32* %1
%206 = icmp ne i32 %205, 1
br i1 %206, label %207, label %209
207: ; preds = %198
%208 = call i32 @fail_test(i32 301)
br label %209
209: ; preds = %207, %198
%210 = load i8**, i8*** %3
%211 = getelementptr inbounds i8*, i8** %210, i64 0
%212 = load i8*, i8** %211
%213 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8* %212)
%214 = icmp ne i64 %213, 0
br i1 %214, label %215, label %217
215: ; preds = %209
%216 = call i32 @fail_test(i32 303)
br label %217
217: ; preds = %215, %209
%218 = load i8**, i8*** %3
%219 = call i32 @mem_free(i8** %218)
%220 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%221 = call i32 @str_cpy(i8* %220, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%222 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%223 = call i8** @str_split_big(i8* %222, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %223, i8*** %3
%224 = load i32, i32* %1
%225 = icmp ne i32 %224, 1
br i1 %225, label %226, label %228
226: ; preds = %217
%227 = call i32 @fail_test(i32 310)
br label %228
228: ; preds = %226, %217
%229 = load i8**, i8*** %3
%230 = getelementptr inbounds i8*, i8** %229, i64 0
%231 = load i8*, i8** %230
%232 = call i64 @str_cmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i8* %231)
%233 = icmp ne i64 %232, 0
br i1 %233, label %234, label %236
234: ; preds = %228
%235 = call i32 @fail_test(i32 312)
br label %236
236: ; preds = %234, %228
%237 = load i8**, i8*** %3
%238 = call i32 @mem_free(i8** %237)
%239 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%240 = call i32 @str_cpy(i8* %239, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
%241 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%242 = call i8** @str_split_big(i8* %241, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
store i8** %242, i8*** %3
%243 = load i32, i32* %1
%244 = icmp ne i32 %243, 2
br i1 %244, label %245, label %247
245: ; preds = %236
%246 = call i32 @fail_test(i32 319)
br label %247
247: ; preds = %245, %236
%248 = load i8**, i8*** %3
%249 = getelementptr inbounds i8*, i8** %248, i64 0
%250 = load i8*, i8** %249
%251 = call i64 @str_cmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* %250)
%252 = icmp ne i64 %251, 0
br i1 %252, label %253, label %255
253: ; preds = %247
%254 = call i32 @fail_test(i32 321)
br label %255
255: ; preds = %253, %247
%256 = load i8**, i8*** %3
%257 = getelementptr inbounds i8*, i8** %256, i64 1
%258 = load i8*, i8** %257
%259 = call i64 @str_cmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* %258)
%260 = icmp ne i64 %259, 0
br i1 %260, label %261, label %263
261: ; preds = %255
%262 = call i32 @fail_test(i32 323)
br label %263
263: ; preds = %261, %255
%264 = load i8**, i8*** %3
%265 = call i32 @mem_free(i8** %264)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"a`b`\00"
@.str.1 = [2 x i8] c"`\00"
@.str.2 = [2 x i8] c"a\00"
@.str.3 = [2 x i8] c"b\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [2 x i8] c"=\00"
@.str.6 = [15 x i8] c"c:string,a:int\00"
@.str.7 = [2 x i8] c",\00"
@.str.8 = [9 x i8] c"c:string\00"
@.str.9 = [6 x i8] c"a:int\00"
@.str.10 = [4 x i8] c" :\09\00"
@.str.11 = [2 x i8] c"c\00"
@.str.12 = [7 x i8] c"string\00"
@.str.13 = [19 x i8] c"hello world,123430\00"
@.str.14 = [12 x i8] c"hello world\00"
@.str.15 = [7 x i8] c"123430\00"
@.str.16 = [21 x i8] c"hello\\\\,world,123430\00"
@.str.17 = [8 x i8] c"hello\\\\\00"
@.str.18 = [6 x i8] c"world\00"
@.str.19 = [20 x i8] c"hello\\,world,123430\00"
@.str.20 = [13 x i8] c"hello\\,world\00"
@.str.21 = [7 x i8] c"hello\\\00"
@.str.22 = [8 x i8] c"hello\\,\00"
@.str.23 = [9 x i8] c"hello\\\\,\00"
define void @test_split() {
%1 = alloca i32
%2 = alloca [64 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
%5 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%7 = load i32, i32* %1
%8 = icmp eq i32 %7, 3
br i1 %8, label %11, label %9
9: ; preds = %0
%10 = call i32 @fail_test(i32 222)
br label %11
11: ; preds = %9, %0
%12 = load i8*, i8** %6
%13 = call i64 @str_cmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %11
%16 = call i32 @fail_test(i32 224)
br label %17
17: ; preds = %15, %11
%18 = getelementptr inbounds i8*, i8** %6, i64 1
%19 = load i8*, i8** %18
%20 = call i64 @str_cmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %24, label %22
22: ; preds = %17
%23 = call i32 @fail_test(i32 226)
br label %24
24: ; preds = %22, %17
%25 = getelementptr inbounds i8*, i8** %6, i64 2
%26 = load i8*, i8** %25
%27 = call i64 @str_cmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* %26)
%28 = icmp eq i64 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %24
%30 = call i32 @fail_test(i32 228)
br label %31
31: ; preds = %29, %24
%32 = call i32 @mem_free(i8** %6)
%33 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
%34 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%35 = load i32, i32* %1
%36 = icmp eq i32 %35, 1
br i1 %36, label %39, label %37
37: ; preds = %31
%38 = call i32 @fail_test(i32 235)
br label %39
39: ; preds = %37, %31
%40 = load i8*, i8** %34
%41 = call i64 @str_cmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* %40)
%42 = icmp eq i64 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %39
%44 = call i32 @fail_test(i32 237)
br label %45
45: ; preds = %43, %39
%46 = call i32 @mem_free(i8** %34)
%47 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%48 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%49 = load i32, i32* %1
%50 = icmp eq i32 %49, 2
br i1 %50, label %53, label %51
51: ; preds = %45
%52 = call i32 @fail_test(i32 244)
br label %53
53: ; preds = %51, %45
%54 = load i8*, i8** %48
%55 = call i64 @str_cmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* %54)
%56 = icmp eq i64 %55, 0
br i1 %56, label %59, label %57
57: ; preds = %53
%58 = call i32 @fail_test(i32 246)
br label %59
59: ; preds = %57, %53
%60 = getelementptr inbounds i8*, i8** %48, i64 1
%61 = load i8*, i8** %60
%62 = call i64 @str_cmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %59
%65 = call i32 @fail_test(i32 248)
br label %66
66: ; preds = %64, %59
%67 = call i32 @mem_free(i8** %48)
%68 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%69 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32* %1)
%70 = load i32, i32* %1
%71 = icmp eq i32 %70, 2
br i1 %71, label %74, label %72
72: ; preds = %66
%73 = call i32 @fail_test(i32 255)
br label %74
74: ; preds = %72, %66
%75 = load i8*, i8** %69
%76 = call i64 @str_cmp(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* %75)
%77 = icmp eq i64 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %74
%79 = call i32 @fail_test(i32 257)
br label %80
80: ; preds = %78, %74
%81 = getelementptr inbounds i8*, i8** %69, i64 1
%82 = load i8*, i8** %81
%83 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* %82)
%84 = icmp eq i64 %83, 0
br i1 %84, label %87, label %85
85: ; preds = %80
%86 = call i32 @fail_test(i32 259)
br label %87
87: ; preds = %85, %80
%88 = call i32 @mem_free(i8** %69)
%89 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
%90 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%91 = load i32, i32* %1
%92 = icmp eq i32 %91, 2
br i1 %92, label %95, label %93
93: ; preds = %87
%94 = call i32 @fail_test(i32 266)
br label %95
95: ; preds = %93, %87
%96 = load i8*, i8** %90
%97 = call i64 @str_cmp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i8* %96)
%98 = icmp eq i64 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %95
%100 = call i32 @fail_test(i32 268)
br label %101
101: ; preds = %99, %95
%102 = getelementptr inbounds i8*, i8** %90, i64 1
%103 = load i8*, i8** %102
%104 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %103)
%105 = icmp eq i64 %104, 0
br i1 %105, label %108, label %106
106: ; preds = %101
%107 = call i32 @fail_test(i32 270)
br label %108
108: ; preds = %106, %101
%109 = call i32 @mem_free(i8** %90)
%110 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
%111 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%112 = load i32, i32* %1
%113 = icmp eq i32 %112, 3
br i1 %113, label %116, label %114
114: ; preds = %108
%115 = call i32 @fail_test(i32 277)
br label %116
116: ; preds = %114, %108
%117 = load i8*, i8** %111
%118 = call i64 @str_cmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* %117)
%119 = icmp eq i64 %118, 0
br i1 %119, label %122, label %120
120: ; preds = %116
%121 = call i32 @fail_test(i32 279)
br label %122
122: ; preds = %120, %116
%123 = getelementptr inbounds i8*, i8** %111, i64 1
%124 = load i8*, i8** %123
%125 = call i64 @str_cmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i8* %124)
%126 = icmp eq i64 %125, 0
br i1 %126, label %129, label %127
127: ; preds = %122
%128 = call i32 @fail_test(i32 281)
br label %129
129: ; preds = %127, %122
%130 = getelementptr inbounds i8*, i8** %111, i64 2
%131 = load i8*, i8** %130
%132 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %131)
%133 = icmp eq i64 %132, 0
br i1 %133, label %136, label %134
134: ; preds = %129
%135 = call i32 @fail_test(i32 283)
br label %136
136: ; preds = %134, %129
%137 = call i32 @mem_free(i8** %111)
%138 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.19, i64 0, i64 0))
%139 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%140 = load i32, i32* %1
%141 = icmp eq i32 %140, 2
br i1 %141, label %144, label %142
142: ; preds = %136
%143 = call i32 @fail_test(i32 290)
br label %144
144: ; preds = %142, %136
%145 = load i8*, i8** %139
%146 = call i64 @str_cmp(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i8* %145)
%147 = icmp eq i64 %146, 0
br i1 %147, label %150, label %148
148: ; preds = %144
%149 = call i32 @fail_test(i32 292)
br label %150
150: ; preds = %148, %144
%151 = getelementptr inbounds i8*, i8** %139, i64 1
%152 = load i8*, i8** %151
%153 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %152)
%154 = icmp eq i64 %153, 0
br i1 %154, label %157, label %155
155: ; preds = %150
%156 = call i32 @fail_test(i32 294)
br label %157
157: ; preds = %155, %150
%158 = call i32 @mem_free(i8** %139)
%159 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%160 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%161 = load i32, i32* %1
%162 = icmp eq i32 %161, 1
br i1 %162, label %165, label %163
163: ; preds = %157
%164 = call i32 @fail_test(i32 301)
br label %165
165: ; preds = %163, %157
%166 = load i8*, i8** %160
%167 = call i64 @str_cmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8* %166)
%168 = icmp eq i64 %167, 0
br i1 %168, label %171, label %169
169: ; preds = %165
%170 = call i32 @fail_test(i32 303)
br label %171
171: ; preds = %169, %165
%172 = call i32 @mem_free(i8** %160)
%173 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%174 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%175 = load i32, i32* %1
%176 = icmp eq i32 %175, 1
br i1 %176, label %179, label %177
177: ; preds = %171
%178 = call i32 @fail_test(i32 310)
br label %179
179: ; preds = %177, %171
%180 = load i8*, i8** %174
%181 = call i64 @str_cmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i8* %180)
%182 = icmp eq i64 %181, 0
br i1 %182, label %185, label %183
183: ; preds = %179
%184 = call i32 @fail_test(i32 312)
br label %185
185: ; preds = %183, %179
%186 = call i32 @mem_free(i8** %174)
%187 = call i32 @str_cpy(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
%188 = call i8** @str_split_big(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%189 = load i32, i32* %1
%190 = icmp eq i32 %189, 2
br i1 %190, label %193, label %191
191: ; preds = %185
%192 = call i32 @fail_test(i32 319)
br label %193
193: ; preds = %191, %185
%194 = load i8*, i8** %188
%195 = call i64 @str_cmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0), i8* %194)
%196 = icmp eq i64 %195, 0
br i1 %196, label %199, label %197
197: ; preds = %193
%198 = call i32 @fail_test(i32 321)
br label %199
199: ; preds = %197, %193
%200 = getelementptr inbounds i8*, i8** %188, i64 1
%201 = load i8*, i8** %200
%202 = call i64 @str_cmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* %201)
%203 = icmp eq i64 %202, 0
br i1 %203, label %206, label %204
204: ; preds = %199
%205 = call i32 @fail_test(i32 323)
br label %206
206: ; preds = %204, %199
%207 = call i32 @mem_free(i8** %188)
ret void
}