#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*/ cases_2;
typedef int /*<<< orphan*/ cases;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ test_strcut_first(char *, int, int, char *);
int /*<<< orphan*/ test_strcut_second(char *, char, int, char *);
void test_strcut() {
  int i, n;
  struct strcut_test_case {
    char *in;
    int offset;
    int len;
    char *expected;
  };
  struct strcut_test_case cases[] = {
      {"ALPHA.BETA", 0, 0, "ALPHA.BETA"}, {"ALPHA.BETA", 0, 1, "LPHA.BETA"},
      {"ALPHA.BETA", 9, 1, "ALPHA.BET"},  {"ALPHA.BETA", 5, 100, "ALPHA"},
      {"ALPHA.BETA", 5, -1, "ALPHA"},     {"ALPHA.BETA", 0, 6, "BETA"},
      {"ALPHA.BETA", 0, 6, "BETA"},       {"ALPHA.BETA", 2, 6, "ALTA"},
  };
  printf("TEST 1: ");
  n = sizeof(cases) / sizeof(struct strcut_test_case);
  for (i = 0; i < n; ++i) {
    test_strcut_first(cases[i].in, cases[i].offset, cases[i].len,
                      cases[i].expected);
  }
  printf("OK\n");
  struct strcut_test_case_2 {
    char *in;
    char sep;
    int side;
    char *expected;
  };
  struct strcut_test_case_2 cases_2[] = {
      {"ALPHA.BETA", '.', 0, "BETA"},
      {"ALPHA.BETA", '.', 1, "ALPHA"},
      {"ALPHA.BETA", 'B', 0, "ETA"},
      {"ALPHA.BETA", 'B', 1, "ALPHA."},
      {"ALPHA.BETA", 'A', 0, "LPHA.BETA"},
      {"ALPHA.BETA", 'A', 1, ""},
      {"ALPHA.BETA.GAMMA", '.', 0, "BETA.GAMMA"},
      {"ALPHA.BETA.GAMMA", '.', 1, "ALPHA"},
  };
  printf("TEST 2: ");
  n = sizeof(cases_2) / sizeof(struct strcut_test_case_2);
  for (i = 0; i < n; ++i) {
    test_strcut_second(cases_2[i].in, cases_2[i].sep, cases_2[i].side,
                       cases_2[i].expected);
  }
  printf("OK\n");
}


x86 assembly (clang, -O0):
<test_strcut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
lea    -0xd0(%rbp),%rdi
lea    0x2b47(%rip),%rsi
mov    $0xc0,%edx
call   1040 <memcpy@plt>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11f1 <test_strcut+0xb1>
movslq -0x4(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
mov    (%rax),%rdi
movslq -0x4(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
mov    0x8(%rax),%esi
movslq -0x4(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
mov    0xc(%rax),%edx
movslq -0x4(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
mov    0x10(%rax),%rcx
call   1050 <test_strcut_first@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117d <test_strcut+0x3d>
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
lea    -0x190(%rbp),%rdi
lea    0x2b55(%rip),%rsi
mov    $0xc0,%edx
call   1040 <memcpy@plt>
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x8(%rbp)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12a6 <test_strcut+0x166>
movslq -0x4(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
mov    (%rax),%rdi
movslq -0x4(%rbp),%rcx
lea    -0x190(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
mov    0x8(%rax),%al
movslq -0x4(%rbp),%rdx
lea    -0x190(%rbp),%rcx
imul   $0x18,%rdx,%rdx
add    %rdx,%rcx
mov    0xc(%rcx),%edx
movslq -0x4(%rbp),%rsi
lea    -0x190(%rbp),%rcx
imul   $0x18,%rsi,%rsi
add    %rsi,%rcx
mov    0x10(%rcx),%rcx
movsbl %al,%esi
call   1060 <test_strcut_second@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    122f <test_strcut+0xef>
lea    0xd7c(%rip),%rdi
call   1030 <printf@plt>
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_strcut>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
lea    0xea4(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    %rbx,%rcx
call   1050 <test_strcut_first@plt>
lea    0xe8f(%rip),%r15
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <test_strcut_first@plt>
lea    0xe80(%rip),%rcx
mov    %rbx,%rdi
mov    $0x9,%esi
mov    $0x1,%edx
call   1050 <test_strcut_first@plt>
lea    0xe71(%rip),%r14
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0x64,%edx
mov    %r14,%rcx
call   1050 <test_strcut_first@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0xffffffff,%edx
mov    %r14,%rcx
call   1050 <test_strcut_first@plt>
lea    0xe31(%rip),%r13
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x6,%edx
mov    %r13,%rcx
call   1050 <test_strcut_first@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x6,%edx
mov    %r13,%rcx
call   1050 <test_strcut_first@plt>
lea    0xe1b(%rip),%rcx
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x6,%edx
call   1050 <test_strcut_first@plt>
lea    0xe31(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xe19(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2e,%esi
xor    %edx,%edx
mov    %r13,%rcx
call   1060 <test_strcut_second@plt>
mov    %rbx,%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <test_strcut_second@plt>
lea    0xdac(%rip),%rcx
mov    %rbx,%rdi
mov    $0x42,%esi
xor    %edx,%edx
call   1060 <test_strcut_second@plt>
lea    0xdb8(%rip),%rcx
mov    %rbx,%rdi
mov    $0x42,%esi
mov    $0x1,%edx
call   1060 <test_strcut_second@plt>
mov    %rbx,%rdi
mov    $0x41,%esi
xor    %edx,%edx
mov    %r15,%rcx
call   1060 <test_strcut_second@plt>
lea    0xd8c(%rip),%rcx
mov    %rbx,%rdi
mov    $0x41,%esi
mov    $0x1,%edx
call   1060 <test_strcut_second@plt>
lea    0xd7b(%rip),%rbx
lea    0xd7a(%rip),%rcx
mov    %rbx,%rdi
mov    $0x2e,%esi
xor    %edx,%edx
call   1060 <test_strcut_second@plt>
mov    %rbx,%rdi
mov    $0x2e,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <test_strcut_second@plt>
mov    %r12,%rdi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <puts@plt>

LLVM IR (-O0):
%struct.strcut_test_case = type { i8*, i32, i32, i8* }
%struct.strcut_test_case_2 = type { i8*, i8, i32, i8* }
@.str = [11 x i8] c"ALPHA.BETA\00"
@.str.1 = [10 x i8] c"LPHA.BETA\00"
@.str.2 = [10 x i8] c"ALPHA.BET\00"
@.str.3 = [6 x i8] c"ALPHA\00"
@.str.4 = [5 x i8] c"BETA\00"
@.str.5 = [5 x i8] c"ALTA\00"
@__const.test_strcut.cases = [8 x %struct.strcut_test_case] [%struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 0, i32 0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 0, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 9, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 5, i32 100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 5, i32 -1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 0, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 0, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0) }, %struct.strcut_test_case { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 2, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0) }]
@.str.6 = [9 x i8] c"TEST 1: \00"
@.str.7 = [4 x i8] c"OK\0A\00"
@.str.8 = [4 x i8] c"ETA\00"
@.str.9 = [7 x i8] c"ALPHA.\00"
@.str.10 = [1 x i8] zeroinitializer
@.str.11 = [17 x i8] c"ALPHA.BETA.GAMMA\00"
@.str.12 = [11 x i8] c"BETA.GAMMA\00"
@__const.test_strcut.cases_2 = [8 x %struct.strcut_test_case_2] [%struct.strcut_test_case_2 { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 46, i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 46, i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 66, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 66, i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 65, i32 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8 65, i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i32 0, i32 0), i8 46, i32 0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i32 0, i32 0) }, %struct.strcut_test_case_2 { i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i32 0, i32 0), i8 46, i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0) }]
@.str.13 = [9 x i8] c"TEST 2: \00"
define void @test_strcut() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [8 x %struct.strcut_test_case]
%4 = alloca [8 x %struct.strcut_test_case_2]
%5 = bitcast [8 x %struct.strcut_test_case]* %3 to i8*
%6 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
store i32 8, i32* %2
store i32 0, i32* %1
br label %7
7: ; preds = %33, %0
%8 = load i32, i32* %1
%9 = load i32, i32* %2
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %36
11: ; preds = %7
%12 = load i32, i32* %1
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [8 x %struct.strcut_test_case], [8 x %struct.strcut_test_case]* %3, i64 0, i64 %13
%15 = getelementptr inbounds %struct.strcut_test_case, %struct.strcut_test_case* %14, i32 0, i32 0
%16 = load i8*, i8** %15
%17 = load i32, i32* %1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [8 x %struct.strcut_test_case], [8 x %struct.strcut_test_case]* %3, i64 0, i64 %18
%20 = getelementptr inbounds %struct.strcut_test_case, %struct.strcut_test_case* %19, i32 0, i32 1
%21 = load i32, i32* %20
%22 = load i32, i32* %1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [8 x %struct.strcut_test_case], [8 x %struct.strcut_test_case]* %3, i64 0, i64 %23
%25 = getelementptr inbounds %struct.strcut_test_case, %struct.strcut_test_case* %24, i32 0, i32 2
%26 = load i32, i32* %25
%27 = load i32, i32* %1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [8 x %struct.strcut_test_case], [8 x %struct.strcut_test_case]* %3, i64 0, i64 %28
%30 = getelementptr inbounds %struct.strcut_test_case, %struct.strcut_test_case* %29, i32 0, i32 3
%31 = load i8*, i8** %30
%32 = call i32 @test_strcut_first(i8* %16, i32 %21, i32 %26, i8* %31)
br label %33
33: ; preds = %11
%34 = load i32, i32* %1
%35 = add nsw i32 %34, 1
store i32 %35, i32* %1
br label %7
36: ; preds = %7
%37 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%38 = bitcast [8 x %struct.strcut_test_case_2]* %4 to i8*
%39 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
store i32 8, i32* %2
store i32 0, i32* %1
br label %40
40: ; preds = %66, %36
%41 = load i32, i32* %1
%42 = load i32, i32* %2
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %69
44: ; preds = %40
%45 = load i32, i32* %1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [8 x %struct.strcut_test_case_2], [8 x %struct.strcut_test_case_2]* %4, i64 0, i64 %46
%48 = getelementptr inbounds %struct.strcut_test_case_2, %struct.strcut_test_case_2* %47, i32 0, i32 0
%49 = load i8*, i8** %48
%50 = load i32, i32* %1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [8 x %struct.strcut_test_case_2], [8 x %struct.strcut_test_case_2]* %4, i64 0, i64 %51
%53 = getelementptr inbounds %struct.strcut_test_case_2, %struct.strcut_test_case_2* %52, i32 0, i32 1
%54 = load i8, i8* %53
%55 = load i32, i32* %1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [8 x %struct.strcut_test_case_2], [8 x %struct.strcut_test_case_2]* %4, i64 0, i64 %56
%58 = getelementptr inbounds %struct.strcut_test_case_2, %struct.strcut_test_case_2* %57, i32 0, i32 2
%59 = load i32, i32* %58
%60 = load i32, i32* %1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [8 x %struct.strcut_test_case_2], [8 x %struct.strcut_test_case_2]* %4, i64 0, i64 %61
%63 = getelementptr inbounds %struct.strcut_test_case_2, %struct.strcut_test_case_2* %62, i32 0, i32 3
%64 = load i8*, i8** %63
%65 = call i32 @test_strcut_second(i8* %49, i8 signext %54, i32 %59, i8* %64)
br label %66
66: ; preds = %44
%67 = load i32, i32* %1
%68 = add nsw i32 %67, 1
store i32 %68, i32* %1
br label %40
69: ; preds = %40
%70 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"ALPHA.BETA\00"
@.str.1 = [10 x i8] c"LPHA.BETA\00"
@.str.2 = [10 x i8] c"ALPHA.BET\00"
@.str.3 = [6 x i8] c"ALPHA\00"
@.str.4 = [5 x i8] c"BETA\00"
@.str.5 = [5 x i8] c"ALTA\00"
@.str.6 = [9 x i8] c"TEST 1: \00"
@.str.8 = [4 x i8] c"ETA\00"
@.str.9 = [7 x i8] c"ALPHA.\00"
@.str.10 = [1 x i8] zeroinitializer
@.str.11 = [17 x i8] c"ALPHA.BETA.GAMMA\00"
@.str.12 = [11 x i8] c"BETA.GAMMA\00"
@.str.13 = [9 x i8] c"TEST 2: \00"
@str.14 = [3 x i8] c"OK\00"
define void @test_strcut() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%2 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 9, i32 1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 5, i32 100, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 5, i32 -1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 0, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%9 = tail call i32 @test_strcut_first(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 2, i32 6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.14, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%12 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 46, i32 0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 46, i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%14 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 66, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%15 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 66, i32 1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%16 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 65, i32 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%17 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8 signext 65, i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.10, i64 0, i64 0))
%18 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8 signext 46, i32 0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
%19 = tail call i32 @test_strcut_second(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i8 signext 46, i32 1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.14, i64 0, i64 0))
ret void
}