#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*/ assert(int);
char *index(char *, char);
int /*<<< orphan*/ printf(char *);
char *rindex(char *, char);
char *stpcpy(char *, char *);
char *strcat(char *, char *);
char *strchr(char *, char);
scalar_t__ strcmp(char *, char *);
char *strcpy(char *, char *);
char *strncat(char *, char *, int);
char *strrchr(char *, char);
int main(int argc, char *argv[]) {
  int i;
  char *offset;
  char s[26] = "abcDefghijklmnopDzzzz";
  char buf[26];
  char *t;
  offset = index(s, 'D');
  assert(strcmp("DefghijklmnopDzzzz", offset) == 0);
  offset = index(s, 'x');
  assert(offset == NULL);
  offset = rindex(s, 'D');
  assert(strcmp("Dzzzz", offset) == 0);
  offset = strchr(s, 'D');
  assert(strcmp("DefghijklmnopDzzzz", offset) == 0);
  offset = strchr(s, 'x');
  assert(offset == NULL);
  offset = strrchr(s, 'D');
  assert(strcmp("Dzzzz", offset) == 0);
  for (i = 0; i < 26; i++)
    buf[i] = 0;
  t = buf;
  t = stpcpy(t, "bat");
  t = stpcpy(t, "dig");
  assert(strcmp("batdig", buf) == 0);
  for (i = 0; i < 26; i++)
    buf[i] = 0;
  offset = strcpy(buf, "catdog");
  assert(strcmp("catdog", offset) == 0);
  for (i = 0; i < 26; i++)
    buf[i] = 0;
  t = buf;
  t = strcat(t, "bat");
  t = strcat(t, "dig");
  assert(strcmp("batdig", buf) == 0);
  for (i = 0; i < 26; i++)
    buf[i] = 0;
  t = buf;
  t = strcat(t, "12345678901234567890");
  t = strncat(t, "abcdefghijklmn", 5);
  assert(strcmp("12345678901234567890abcde", buf) == 0);
  printf("ok\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xe33(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe30(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe2d(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe2a(%rip),%ax
mov    %ax,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
mov    $0x44,%esi
call   1080 <index@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xe0b(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
lea    -0x40(%rbp),%rdi
mov    $0x78,%esi
call   1080 <index@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
lea    -0x40(%rbp),%rdi
mov    $0x44,%esi
call   10c0 <rindex@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xdc1(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
lea    -0x40(%rbp),%rdi
mov    $0x44,%esi
call   1050 <strchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xd81(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
lea    -0x40(%rbp),%rdi
mov    $0x78,%esi
call   1050 <strchr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
lea    -0x40(%rbp),%rdi
mov    $0x44,%esi
call   1070 <strrchr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xd37(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1a,-0x14(%rbp)
jge    132e <main+0x17e>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    130d <main+0x15d>
lea    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    0xcec(%rip),%rsi
call   1040 <stpcpy@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    0xcdf(%rip),%rsi
call   1040 <stpcpy@plt>
mov    %rax,-0x68(%rbp)
lea    -0x60(%rbp),%rsi
lea    0xcc8(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1a,-0x14(%rbp)
jge    13a7 <main+0x1f7>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1386 <main+0x1d6>
lea    -0x60(%rbp),%rdi
lea    0xc86(%rip),%rsi
call   1030 <strcpy@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xc72(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1a,-0x14(%rbp)
jge    1404 <main+0x254>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13e3 <main+0x233>
lea    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    0xc16(%rip),%rsi
call   10d0 <strcat@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    0xc09(%rip),%rsi
call   10d0 <strcat@plt>
mov    %rax,-0x68(%rbp)
lea    -0x60(%rbp),%rsi
lea    0xbf2(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x1a,-0x14(%rbp)
jge    147d <main+0x2cd>
movslq -0x14(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    145c <main+0x2ac>
lea    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    0xbaf(%rip),%rsi
call   10d0 <strcat@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
lea    0xbb0(%rip),%rsi
mov    $0x5,%edx
call   1090 <strncat@plt>
mov    %rax,-0x68(%rbp)
lea    -0x60(%rbp),%rsi
lea    0xba6(%rip),%rdi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10b0 <assert@plt>
lea    0xba3(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
movups 0xe7a(%rip),%xmm0
movups %xmm0,0x2a(%rsp)
movaps 0xe64(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x44,%esi
call   1070 <index@plt>
lea    0xe60(%rip),%r14
mov    %r14,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
mov    %rbx,%rdi
mov    $0x78,%esi
call   1070 <index@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
mov    %rbx,%rdi
mov    $0x44,%esi
call   10b0 <rindex@plt>
lea    0xe25(%rip),%r15
mov    %r15,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
mov    %rbx,%rdi
mov    $0x44,%esi
call   1050 <strchr@plt>
mov    %r14,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
mov    %rbx,%rdi
mov    $0x78,%esi
call   1050 <strchr@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
mov    %rbx,%rdi
mov    $0x44,%esi
call   1060 <strrchr@plt>
mov    %r15,%rdi
mov    %rax,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movups %xmm0,0xa(%rsp)
movl   $0x746162,(%rsp)
movl   $0x676964,0x3(%rsp)
lea    0xd89(%rip),%r14
mov    %rsp,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
xorps  %xmm0,%xmm0
movups %xmm0,0x7(%rsp)
movl   $0x0,0x16(%rsp)
movl   $0x64746163,(%rsp)
movl   $0x676f64,0x3(%rsp)
lea    0xd4e(%rip),%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movups %xmm0,0xa(%rsp)
mov    %rbx,%rdi
call   1040 <strlen@plt>
movl   $0x746162,(%rsp,%rax,1)
mov    %rbx,%rdi
call   1040 <strlen@plt>
movl   $0x676964,(%rsp,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movups %xmm0,0xa(%rsp)
mov    %rbx,%rdi
call   1040 <strlen@plt>
movabs $0x30393837363534,%rcx
mov    %rcx,0xd(%rsp,%rax,1)
movups 0xcd2(%rip),%xmm0
movups %xmm0,(%rsp,%rax,1)
lea    0xcdc(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
call   1080 <strncat@plt>
lea    0xcd7(%rip),%rdi
mov    %rbx,%rsi
call   1090 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10a0 <assert@plt>
lea    0xcd4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s = [26 x i8] c"abcDefghijklmnopDzzzz\00\00\00\00\00"
@.str = [19 x i8] c"DefghijklmnopDzzzz\00"
@.str.1 = [6 x i8] c"Dzzzz\00"
@.str.2 = [4 x i8] c"bat\00"
@.str.3 = [4 x i8] c"dig\00"
@.str.4 = [7 x i8] c"batdig\00"
@.str.5 = [7 x i8] c"catdog\00"
@.str.6 = [21 x i8] c"12345678901234567890\00"
@.str.7 = [15 x i8] c"abcdefghijklmn\00"
@.str.8 = [26 x i8] c"12345678901234567890abcde\00"
@.str.9 = [4 x i8] c"ok\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca [26 x i8]
%9 = alloca [26 x i8]
%10 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = bitcast [26 x i8]* %8 to i8*
%12 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%13 = call i8* @index(i8* %12, i8 signext 68)
store i8* %13, i8** %7
%14 = load i8*, i8** %7
%15 = call i64 @strcmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = icmp eq i64 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%20 = call i8* @index(i8* %19, i8 signext 120)
store i8* %20, i8** %7
%21 = load i8*, i8** %7
%22 = icmp eq i8* %21, null
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%26 = call i8* @rindex(i8* %25, i8 signext 68)
store i8* %26, i8** %7
%27 = load i8*, i8** %7
%28 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%29 = icmp eq i64 %28, 0
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%33 = call i8* @strchr(i8* %32, i8 signext 68)
store i8* %33, i8** %7
%34 = load i8*, i8** %7
%35 = call i64 @strcmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %34)
%36 = icmp eq i64 %35, 0
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
%39 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%40 = call i8* @strchr(i8* %39, i8 signext 120)
store i8* %40, i8** %7
%41 = load i8*, i8** %7
%42 = icmp eq i8* %41, null
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = getelementptr inbounds [26 x i8], [26 x i8]* %8, i64 0, i64 0
%46 = call i8* @strrchr(i8* %45, i8 signext 68)
store i8* %46, i8** %7
%47 = load i8*, i8** %7
%48 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %47)
%49 = icmp eq i64 %48, 0
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
store i32 0, i32* %6
br label %52
52: ; preds = %59, %2
%53 = load i32, i32* %6
%54 = icmp slt i32 %53, 26
br i1 %54, label %55, label %62
55: ; preds = %52
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 %57
store i8 0, i8* %58
br label %59
59: ; preds = %55
%60 = load i32, i32* %6
%61 = add nsw i32 %60, 1
store i32 %61, i32* %6
br label %52
62: ; preds = %52
%63 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
store i8* %63, i8** %10
%64 = load i8*, i8** %10
%65 = call i8* @stpcpy(i8* %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
store i8* %65, i8** %10
%66 = load i8*, i8** %10
%67 = call i8* @stpcpy(i8* %66, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i8* %67, i8** %10
%68 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
%69 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %68)
%70 = icmp eq i64 %69, 0
%71 = zext i1 %70 to i32
%72 = call i32 @assert(i32 %71)
store i32 0, i32* %6
br label %73
73: ; preds = %80, %62
%74 = load i32, i32* %6
%75 = icmp slt i32 %74, 26
br i1 %75, label %76, label %83
76: ; preds = %73
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 %78
store i8 0, i8* %79
br label %80
80: ; preds = %76
%81 = load i32, i32* %6
%82 = add nsw i32 %81, 1
store i32 %82, i32* %6
br label %73
83: ; preds = %73
%84 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
%85 = call i8* @strcpy(i8* %84, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
store i8* %85, i8** %7
%86 = load i8*, i8** %7
%87 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %86)
%88 = icmp eq i64 %87, 0
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
store i32 0, i32* %6
br label %91
91: ; preds = %98, %83
%92 = load i32, i32* %6
%93 = icmp slt i32 %92, 26
br i1 %93, label %94, label %101
94: ; preds = %91
%95 = load i32, i32* %6
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 %96
store i8 0, i8* %97
br label %98
98: ; preds = %94
%99 = load i32, i32* %6
%100 = add nsw i32 %99, 1
store i32 %100, i32* %6
br label %91
101: ; preds = %91
%102 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
store i8* %102, i8** %10
%103 = load i8*, i8** %10
%104 = call i8* @strcat(i8* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
store i8* %104, i8** %10
%105 = load i8*, i8** %10
%106 = call i8* @strcat(i8* %105, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
store i8* %106, i8** %10
%107 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
%108 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %107)
%109 = icmp eq i64 %108, 0
%110 = zext i1 %109 to i32
%111 = call i32 @assert(i32 %110)
store i32 0, i32* %6
br label %112
112: ; preds = %119, %101
%113 = load i32, i32* %6
%114 = icmp slt i32 %113, 26
br i1 %114, label %115, label %122
115: ; preds = %112
%116 = load i32, i32* %6
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 %117
store i8 0, i8* %118
br label %119
119: ; preds = %115
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 1
store i32 %121, i32* %6
br label %112
122: ; preds = %112
%123 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
store i8* %123, i8** %10
%124 = load i8*, i8** %10
%125 = call i8* @strcat(i8* %124, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
store i8* %125, i8** %10
%126 = load i8*, i8** %10
%127 = call i8* @strncat(i8* %126, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 5)
store i8* %127, i8** %10
%128 = getelementptr inbounds [26 x i8], [26 x i8]* %9, i64 0, i64 0
%129 = call i64 @strcmp(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %128)
%130 = icmp eq i64 %129, 0
%131 = zext i1 %130 to i32
%132 = call i32 @assert(i32 %131)
%133 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.s = [26 x i8] c"abcDefghijklmnopDzzzz\00\00\00\00\00"
@.str = [19 x i8] c"DefghijklmnopDzzzz\00"
@.str.1 = [6 x i8] c"Dzzzz\00"
@.str.4 = [7 x i8] c"batdig\00"
@.str.5 = [7 x i8] c"catdog\00"
@.str.6 = [21 x i8] c"12345678901234567890\00"
@.str.7 = [15 x i8] c"abcdefghijklmn\00"
@.str.8 = [26 x i8] c"12345678901234567890abcde\00"
@str = [3 x i8] c"ok\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [26 x i8]
%4 = alloca [26 x i8]
%5 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 0
%6 = getelementptr inbounds [26 x i8], [26 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 0
%8 = call i8* @index(i8* %6, i8 signext 68)
%9 = call i64 @strcmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = call i8* @index(i8* %6, i8 signext 120)
%14 = icmp eq i8* %13, null
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = call i8* @rindex(i8* %6, i8 signext 68)
%18 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = icmp eq i64 %18, 0
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i8* @strchr(i8* %6, i8 signext 68)
%23 = call i64 @strcmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = icmp eq i64 %23, 0
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = call i8* @strchr(i8* %6, i8 signext 120)
%28 = icmp eq i8* %27, null
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
%31 = call i8* @strrchr(i8* %6, i8 signext 68)
%32 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %31)
%33 = icmp eq i64 %32, 0
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 3
%37 = bitcast [26 x i8]* %4 to i32*
store i32 7627106, i32* %37
%38 = bitcast i8* %36 to i32*
store i32 6777188, i32* %38
%39 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %7)
%40 = icmp eq i64 %39, 0
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = getelementptr inbounds [26 x i8], [26 x i8]* %4, i64 0, i64 7
%44 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* %7)
%45 = icmp eq i64 %44, 0
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 %46)
%48 = call i64 @strlen(i8* %7)
%49 = getelementptr [26 x i8], [26 x i8]* %4, i64 0, i64 %48
%50 = bitcast i8* %49 to i32*
store i32 7627106, i32* %50
%51 = call i64 @strlen(i8* %7)
%52 = getelementptr [26 x i8], [26 x i8]* %4, i64 0, i64 %51
%53 = bitcast i8* %52 to i32*
store i32 6777188, i32* %53
%54 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %7)
%55 = icmp eq i64 %54, 0
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = call i64 @strlen(i8* %7)
%59 = getelementptr [26 x i8], [26 x i8]* %4, i64 0, i64 %58
%60 = call i8* @strncat(i8* %7, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 5)
%61 = call i64 @strcmp(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %7)
%62 = icmp eq i64 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
ret i32 0
}