#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*/ printf(char *, char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ strcpy(char *, char *);
int strindex(char *, char *);
int strrindex(char *, char *);
int main(void) {
  char s[] = "This is my test string, but its not much of a test string.";
  char t[100] = "";
  (void)strcpy(t, "test");
  printf("In the string: \"%s\"\n", s);
  printf("The leftmost  occurrence of \"%s\" is at position %d.\n", t,
         strindex(s, t));
  printf("The rightmost occurrence of \"%s\" is at position %d.\n", t,
         strrindex(s, t));
  (void)putchar('\n');
  (void)strcpy(t, "string");
  printf("In the string: \"%s\"\n", s);
  printf("The leftmost  occurrence of \"%s\" is at position %d.\n", t,
         strindex(s, t));
  printf("The rightmost occurrence of \"%s\" is at position %d.\n", t,
         strrindex(s, t));
  (void)putchar('\n');
  (void)strcpy(t, "This");
  printf("In the string: \"%s\"\n", s);
  printf("The leftmost  occurrence of \"%s\" is at position %d.\n", t,
         strindex(s, t));
  printf("The rightmost occurrence of \"%s\" is at position %d.\n", t,
         strrindex(s, t));
  (void)putchar('\n');
  (void)strcpy(t, ".");
  printf("In the string: \"%s\"\n", s);
  printf("The leftmost  occurrence of \"%s\" is at position %d.\n", t,
         strindex(s, t));
  printf("The rightmost occurrence of \"%s\" is at position %d.\n", t,
         strrindex(s, t));
  (void)putchar('\n');
  (void)strcpy(t, "not in string");
  printf("In the string: \"%s\"\n", s);
  printf("The leftmost  occurrence of \"%s\" is at position %d.\n", t,
         strindex(s, t));
  printf("The rightmost occurrence of \"%s\" is at position %d.\n", t,
         strrindex(s, t));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xe73(%rip),%rsi
mov    $0x3b,%edx
call   1080 <memcpy@plt>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe83(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x40(%rbp),%rsi
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0x100(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1090 <strindex@plt>
mov    -0x100(%rbp),%rsi
mov    %eax,%edx
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xf8(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1070 <strrindex@plt>
mov    -0xf8(%rbp),%rsi
mov    %eax,%edx
lea    0xe58(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0xb0(%rbp),%rdi
lea    0xe7c(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x40(%rbp),%rsi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xf0(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1090 <strindex@plt>
mov    -0xf0(%rbp),%rsi
mov    %eax,%edx
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xe8(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1070 <strrindex@plt>
mov    -0xe8(%rbp),%rsi
mov    %eax,%edx
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0xb0(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x40(%rbp),%rsi
lea    0xd46(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xe0(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1090 <strindex@plt>
mov    -0xe0(%rbp),%rsi
mov    %eax,%edx
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1070 <strrindex@plt>
mov    -0xd8(%rbp),%rsi
mov    %eax,%edx
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0xb0(%rbp),%rdi
lea    0xd41(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x40(%rbp),%rsi
lea    0xcad(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1090 <strindex@plt>
mov    -0xd0(%rbp),%rsi
mov    %eax,%edx
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xc8(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1070 <strrindex@plt>
mov    -0xc8(%rbp),%rsi
mov    %eax,%edx
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0xb0(%rbp),%rdi
lea    0xcaa(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x40(%rbp),%rsi
lea    0xc14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1090 <strindex@plt>
mov    -0xc0(%rbp),%rsi
mov    %eax,%edx
lea    0xbf4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x40(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
call   1070 <strrindex@plt>
mov    -0xb8(%rbp),%rsi
mov    %eax,%edx
lea    0xbf4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb0,%rsp
movups 0xec4(%rip),%xmm0
movups %xmm0,0x2b(%rsp)
movaps 0xead(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe91(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe75(%rip),%xmm0
movaps %xmm0,(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movl   $0x0,0xa0(%rsp)
lea    0xe73(%rip),%rsi
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strcpy@plt>
lea    0xe64(%rip),%r15
mov    %rsp,%r14
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strindex@plt>
lea    0xe57(%rip),%r12
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <strrindex@plt>
lea    0xe6b(%rip),%r13
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe8e(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strindex@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <strrindex@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe26(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strindex@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <strrindex@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xdd1(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strindex@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <strrindex@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xd79(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <strindex@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <strrindex@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s = [59 x i8] c"This is my test string, but its not much of a test string.\00"
@.str = [5 x i8] c"test\00"
@.str.1 = [21 x i8] c"In the string: \22%s\22\0A\00"
@.str.2 = [53 x i8] c"The leftmost occurrence of \22%s\22 is at position %d.\0A\00"
@.str.3 = [53 x i8] c"The rightmost occurrence of \22%s\22 is at position %d.\0A\00"
@.str.4 = [7 x i8] c"string\00"
@.str.5 = [5 x i8] c"This\00"
@.str.6 = [2 x i8] c".\00"
@.str.7 = [14 x i8] c"not in string\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [59 x i8]
%3 = alloca [100 x i8]
store i32 0, i32* %1
%4 = bitcast [59 x i8]* %2 to i8*
%5 = bitcast [100 x i8]* %3 to i8*
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%7 = call i32 @strcpy(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%9 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%11 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%13 = call i32 @strindex(i8* %11, i8* %12)
%14 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %10, i32 %13)
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%16 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%18 = call i32 @strrindex(i8* %16, i8* %17)
%19 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %15, i32 %18)
%20 = call i32 @putchar(i8 signext 10)
%21 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%22 = call i32 @strcpy(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%23 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%24 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %23)
%25 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%26 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%28 = call i32 @strindex(i8* %26, i8* %27)
%29 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %25, i32 %28)
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%31 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%33 = call i32 @strrindex(i8* %31, i8* %32)
%34 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %30, i32 %33)
%35 = call i32 @putchar(i8 signext 10)
%36 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%37 = call i32 @strcpy(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%38 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%39 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%41 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%42 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%43 = call i32 @strindex(i8* %41, i8* %42)
%44 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %40, i32 %43)
%45 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%46 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%47 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%48 = call i32 @strrindex(i8* %46, i8* %47)
%49 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %45, i32 %48)
%50 = call i32 @putchar(i8 signext 10)
%51 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%52 = call i32 @strcpy(i8* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%53 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%54 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %53)
%55 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%56 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%57 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%58 = call i32 @strindex(i8* %56, i8* %57)
%59 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %55, i32 %58)
%60 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%61 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%62 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%63 = call i32 @strrindex(i8* %61, i8* %62)
%64 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %60, i32 %63)
%65 = call i32 @putchar(i8 signext 10)
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%67 = call i32 @strcpy(i8* %66, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%68 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%69 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%71 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%72 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%73 = call i32 @strindex(i8* %71, i8* %72)
%74 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %70, i32 %73)
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%76 = getelementptr inbounds [59 x i8], [59 x i8]* %2, i64 0, i64 0
%77 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%78 = call i32 @strrindex(i8* %76, i8* %77)
%79 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %75, i32 %78)
ret i32 0
}

LLVM IR (-O2):
@__const.main.s = [59 x i8] c"This is my test string, but its not much of a test string.\00"
@.str = [5 x i8] c"test\00"
@.str.1 = [21 x i8] c"In the string: \22%s\22\0A\00"
@.str.2 = [53 x i8] c"The leftmost occurrence of \22%s\22 is at position %d.\0A\00"
@.str.3 = [53 x i8] c"The rightmost occurrence of \22%s\22 is at position %d.\0A\00"
@.str.4 = [7 x i8] c"string\00"
@.str.5 = [5 x i8] c"This\00"
@.str.6 = [2 x i8] c".\00"
@.str.7 = [14 x i8] c"not in string\00"
define i32 @main() {
%1 = alloca [59 x i8]
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [59 x i8], [59 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%5 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%7 = call i32 @strindex(i8* %3, i8* %4)
%8 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %4, i32 %7)
%9 = call i32 @strrindex(i8* %3, i8* %4)
%10 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %4, i32 %9)
%11 = call i32 @putchar(i8 signext 10)
%12 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%14 = call i32 @strindex(i8* %3, i8* %4)
%15 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %4, i32 %14)
%16 = call i32 @strrindex(i8* %3, i8* %4)
%17 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %4, i32 %16)
%18 = call i32 @putchar(i8 signext 10)
%19 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%21 = call i32 @strindex(i8* %3, i8* %4)
%22 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %4, i32 %21)
%23 = call i32 @strrindex(i8* %3, i8* %4)
%24 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %4, i32 %23)
%25 = call i32 @putchar(i8 signext 10)
%26 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%27 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%28 = call i32 @strindex(i8* %3, i8* %4)
%29 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %4, i32 %28)
%30 = call i32 @strrindex(i8* %3, i8* %4)
%31 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %4, i32 %30)
%32 = call i32 @putchar(i8 signext 10)
%33 = call i32 @strcpy(i8* %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%35 = call i32 @strindex(i8* %3, i8* %4)
%36 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %4, i32 %35)
%37 = call i32 @strrindex(i8* %3, i8* %4)
%38 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %4, i32 %37)
ret i32 0
}