#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 *strchr(char *, char);
int strcmp(char *, char const *);
int const strlen(char *);
int /*<<< orphan*/ strncat(char *, char const *, int const);
int /*<<< orphan*/ strncpy(char *, char const *, int const);
char *strstr(char *, char const *);
int main(int argc, char **argv) {
  const static int maxBuf = 128;
  const char *s1 = "String one";
  const char *s2 = "String two";
  char sd1[maxBuf];
  char sd2[maxBuf];
  int i = 0;
  char c = 0;
  char *cp = NULL;
  printf("s1: %s, s2: %s\n", s1, s2);
  printf("sizeof sd1: %ld, sizeof sd2: %ld\n", sizeof sd1, sizeof sd2);
  strncpy(sd1, s1, maxBuf);
  printf("sd1: %s", sd1);
  strncpy(sd2, s2, maxBuf);
  printf("sd2: %s", sd2);
  strncat(sd1, " - ", maxBuf - strlen(sd1) - 1);
  strncat(sd1, s2, maxBuf - strlen(sd1) - 1);
  printf("sd1: %s\n", sd1);
  printf("Length of sd1 is %ld\n", strlen(sd1));
  printf("Length of sd2 is %ld\n", strlen(sd2));
  i = strcmp(sd1, sd2);
  printf("sd1 %s sd2 (%d)\n", (i == 0) ? "==" : "!=", i);
  i = strcmp(sd2, s2);
  printf("sd2 %s s2 (%d)\n", (i == 0) ? "==" : "!=", i);
  c = 'g';
  cp = strchr(sd1, c);
  printf("Did we find a '%c' in sd1? %s\n", c, cp ? "yes" : "no");
  if (cp)
    printf("The first '%c' in sd1 is at position %ld\n", c, cp - sd1);
  cp = strstr(sd1, s2);
  printf("Did we find '%s' in sd1? %s\n", s2, cp ? "yes" : "no");
  if (cp)
    printf("The first '%s' in sd1 is at position %ld\n", s2, cp - sd1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe74(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe74(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    %rsp,%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movb   $0x0,-0x2d(%rbp)
movq   $0x0,-0x38(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe54(%rip),%rdi
mov    $0x80,%edx
mov    %rdx,%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    -0xc0(%rbp),%rdi
mov    $0x80,%edx
call   1030 <strncpy@plt>
lea    0xe4b(%rip),%rdi
lea    -0xc0(%rbp),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    -0x140(%rbp),%rdi
mov    $0x80,%edx
call   1030 <strncpy@plt>
lea    0xe29(%rip),%rdi
lea    -0x140(%rbp),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rdi
call   1040 <strlen@plt>
mov    $0x80,%edx
sub    %eax,%edx
sub    $0x1,%edx
lea    -0xc0(%rbp),%rdi
lea    0xdff(%rip),%rsi
call   1070 <strncat@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x148(%rbp)
lea    -0xc0(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x148(%rbp),%rsi
mov    $0x80,%edx
sub    %eax,%edx
sub    $0x1,%edx
lea    -0xc0(%rbp),%rdi
call   1070 <strncat@plt>
lea    0xdc3(%rip),%rdi
lea    -0xc0(%rbp),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%esi
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x140(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%esi
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x140(%rbp),%rsi
call   1080 <strcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%ecx
lea    0xda6(%rip),%rsi
lea    0xd9c(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
mov    -0x2c(%rbp),%edx
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    -0x140(%rbp),%rdi
call   1080 <strcmp@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%ecx
lea    0xd6a(%rip),%rsi
lea    0xd60(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
mov    -0x2c(%rbp),%edx
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movb   $0x67,-0x2d(%rbp)
lea    -0xc0(%rbp),%rdi
movsbl -0x2d(%rbp),%esi
call   1050 <strchr@plt>
mov    %rax,-0x38(%rbp)
movsbl -0x2d(%rbp),%esi
mov    -0x38(%rbp),%rcx
lea    0xd5a(%rip),%rdx
lea    0xd4f(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xd21(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpq   $0x0,-0x38(%rbp)
je     13cd <main+0x25d>
movsbl -0x2d(%rbp),%esi
mov    -0x38(%rbp),%rdx
lea    -0xc0(%rbp),%rax
sub    %rax,%rdx
lea    0xd1c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    -0xc0(%rbp),%rdi
call   1090 <strstr@plt>
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rcx
lea    0xcef(%rip),%rdx
lea    0xce4(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xd06(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpq   $0x0,-0x38(%rbp)
je     1438 <main+0x2c8>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    -0xc0(%rbp),%rax
sub    %rax,%rdx
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x100,%rsp
lea    0xe8f(%rip),%rdi
lea    0xe72(%rip),%rbx
lea    0xe76(%rip),%r14
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x80,%esi
mov    $0x80,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%r12
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x80,%edx
call   1030 <strncpy@plt>
lea    0xe74(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x80(%rsp),%r15
mov    %r15,%rdi
mov    %r14,%rsi
mov    $0x80,%edx
call   1030 <strncpy@plt>
lea    0xe53(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    $0x7f,%ebx
mov    $0x7f,%edx
sub    %eax,%edx
lea    0xe36(%rip),%rsi
mov    %r12,%rdi
call   1070 <strncat@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebx
mov    %r12,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
call   1070 <strncat@plt>
lea    0xe14(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
lea    0xe04(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
lea    0xe02(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
lea    0xe0c(%rip),%r13
lea    0xe08(%rip),%rbx
mov    %rbx,%rsi
cmove  %r13,%rsi
lea    0xde6(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
cmove  %r13,%rbx
lea    0xddc(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,%rdi
mov    $0x67,%esi
call   1050 <strchr@plt>
mov    %rax,%rbx
test   %rax,%rax
lea    0xde9(%rip),%r13
lea    0xdde(%rip),%r14
mov    %r14,%rdx
cmove  %r13,%rdx
lea    0xdb1(%rip),%rdi
mov    $0x67,%esi
xor    %eax,%eax
call   1060 <printf@plt>
test   %rbx,%rbx
je     1331 <main+0x1c1>
sub    %r12,%rbx
lea    0xdbc(%rip),%rdi
mov    $0x67,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcd3(%rip),%r12
mov    %rsp,%r15
mov    %r15,%rdi
mov    %r12,%rsi
call   1090 <strstr@plt>
mov    %rax,%rbx
test   %rax,%rax
cmove  %r13,%r14
lea    0xdb1(%rip),%rdi
mov    %r12,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
test   %rbx,%rbx
je     1384 <main+0x214>
sub    %r15,%rbx
lea    0xdb2(%rip),%rdi
lea    0xc91(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@main.maxBuf = internal constant i32 128
@.str = [11 x i8] c"String one\00"
@.str.1 = [11 x i8] c"String two\00"
@.str.2 = [16 x i8] c"s1: %s, s2: %s\0A\00"
@.str.3 = [34 x i8] c"sizeof sd1: %ld, sizeof sd2: %ld\0A\00"
@.str.4 = [8 x i8] c"sd1: %s\00"
@.str.5 = [8 x i8] c"sd2: %s\00"
@.str.6 = [4 x i8] c" - \00"
@.str.7 = [9 x i8] c"sd1: %s\0A\00"
@.str.8 = [22 x i8] c"Length of sd1 is %ld\0A\00"
@.str.9 = [22 x i8] c"Length of sd2 is %ld\0A\00"
@.str.10 = [17 x i8] c"sd1 %s sd2 (%d)\0A\00"
@.str.11 = [3 x i8] c"==\00"
@.str.12 = [3 x i8] c"!=\00"
@.str.13 = [16 x i8] c"sd2 %s s2 (%d)\0A\00"
@.str.14 = [31 x i8] c"Did we find a '%c' in sd1? %s\0A\00"
@.str.15 = [4 x i8] c"yes\00"
@.str.16 = [3 x i8] c"no\00"
@.str.17 = [42 x i8] c"The first '%c' in sd1 is at position %ld\0A\00"
@.str.18 = [29 x i8] c"Did we find '%s' in sd1? %s\0A\00"
@.str.19 = [42 x i8] c"The first '%s' in sd1 is at position %ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8** %7
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %8
%13 = alloca i8, i64 128
%14 = alloca i8, i64 128
store i32 0, i32* %9
store i8 0, i8* %10
store i8* null, i8** %11
%15 = load i8*, i8** %6
%16 = load i8*, i8** %7
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %15, i8* %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i64 128, i64 128)
%19 = load i8*, i8** %6
%20 = call i32 @strncpy(i8* %13, i8* %19, i32 128)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%22 = load i8*, i8** %7
%23 = call i32 @strncpy(i8* %14, i8* %22, i32 128)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %14)
%25 = call i32 @strlen(i8* %13)
%26 = sub nsw i32 128, %25
%27 = sub nsw i32 %26, 1
%28 = call i32 @strncat(i8* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %27)
%29 = load i8*, i8** %7
%30 = call i32 @strlen(i8* %13)
%31 = sub nsw i32 128, %30
%32 = sub nsw i32 %31, 1
%33 = call i32 @strncat(i8* %13, i8* %29, i32 %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %13)
%35 = call i32 @strlen(i8* %13)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %35)
%37 = call i32 @strlen(i8* %14)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %37)
%39 = call i32 @strcmp(i8* %13, i8* %14)
store i32 %39, i32* %9
%40 = load i32, i32* %9
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i64
%43 = select i1 %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0)
%44 = load i32, i32* %9
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* %43, i32 %44)
%46 = load i8*, i8** %7
%47 = call i32 @strcmp(i8* %14, i8* %46)
store i32 %47, i32* %9
%48 = load i32, i32* %9
%49 = icmp eq i32 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0)
%52 = load i32, i32* %9
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* %51, i32 %52)
store i8 103, i8* %10
%54 = load i8, i8* %10
%55 = call i8* @strchr(i8* %13, i8 signext %54)
store i8* %55, i8** %11
%56 = load i8, i8* %10
%57 = sext i8 %56 to i32
%58 = load i8*, i8** %11
%59 = icmp ne i8* %58, null
%60 = zext i1 %59 to i64
%61 = select i1 %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 %57, i8* %61)
%63 = load i8*, i8** %11
%64 = icmp ne i8* %63, null
br i1 %64, label %65, label %73
65: ; preds = %2
%66 = load i8, i8* %10
%67 = sext i8 %66 to i32
%68 = load i8*, i8** %11
%69 = ptrtoint i8* %68 to i64
%70 = ptrtoint i8* %13 to i64
%71 = sub i64 %69, %70
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0), i32 %67, i64 %71)
br label %73
73: ; preds = %65, %2
%74 = load i8*, i8** %7
%75 = call i8* @strstr(i8* %13, i8* %74)
store i8* %75, i8** %11
%76 = load i8*, i8** %7
%77 = load i8*, i8** %11
%78 = icmp ne i8* %77, null
%79 = zext i1 %78 to i64
%80 = select i1 %78, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* %76, i8* %80)
%82 = load i8*, i8** %11
%83 = icmp ne i8* %82, null
br i1 %83, label %84, label %91
84: ; preds = %73
%85 = load i8*, i8** %7
%86 = load i8*, i8** %11
%87 = ptrtoint i8* %86 to i64
%88 = ptrtoint i8* %13 to i64
%89 = sub i64 %87, %88
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0), i8* %85, i64 %89)
br label %91
91: ; preds = %84, %73
store i32 0, i32* %3
%92 = load i8*, i8** %8
%93 = load i32, i32* %3
ret i32 %93
}

LLVM IR (-O2):
@.str = [11 x i8] c"String one\00"
@.str.1 = [11 x i8] c"String two\00"
@.str.2 = [16 x i8] c"s1: %s, s2: %s\0A\00"
@.str.3 = [34 x i8] c"sizeof sd1: %ld, sizeof sd2: %ld\0A\00"
@.str.4 = [8 x i8] c"sd1: %s\00"
@.str.5 = [8 x i8] c"sd2: %s\00"
@.str.6 = [4 x i8] c" - \00"
@.str.7 = [9 x i8] c"sd1: %s\0A\00"
@.str.8 = [22 x i8] c"Length of sd1 is %ld\0A\00"
@.str.9 = [22 x i8] c"Length of sd2 is %ld\0A\00"
@.str.10 = [17 x i8] c"sd1 %s sd2 (%d)\0A\00"
@.str.11 = [3 x i8] c"==\00"
@.str.12 = [3 x i8] c"!=\00"
@.str.13 = [16 x i8] c"sd2 %s s2 (%d)\0A\00"
@.str.14 = [31 x i8] c"Did we find a '%c' in sd1? %s\0A\00"
@.str.15 = [4 x i8] c"yes\00"
@.str.16 = [3 x i8] c"no\00"
@.str.17 = [42 x i8] c"The first '%c' in sd1 is at position %ld\0A\00"
@.str.18 = [29 x i8] c"Did we find '%s' in sd1? %s\0A\00"
@.str.19 = [42 x i8] c"The first '%s' in sd1 is at position %ld\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [128 x i8]
%4 = alloca [128 x i8]
%5 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i64 128, i64 128)
%9 = call i32 @strncpy(i8* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 128)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%11 = call i32 @strncpy(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 128)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%13 = call i32 @strlen(i8* %6)
%14 = sub i32 127, %13
%15 = call i32 @strncat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = call i32 @strlen(i8* %6)
%17 = sub i32 127, %16
%18 = call i32 @strncat(i8* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %6)
%20 = call i32 @strlen(i8* %6)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %20)
%22 = call i32 @strlen(i8* %5)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %22)
%24 = call i32 @strcmp(i8* %6, i8* %5)
%25 = icmp eq i32 %24, 0
%26 = select i1 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* %26, i32 %24)
%28 = call i32 @strcmp(i8* %5, i8* dereferenceable(11) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
%30 = select i1 %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* %30, i32 %28)
%32 = call i8* @strchr(i8* %6, i8 signext 103)
%33 = icmp eq i8* %32, null
%34 = select i1 %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 103, i8* %34)
br i1 %33, label %41, label %36
36: ; preds = %2
%37 = ptrtoint i8* %32 to i64
%38 = ptrtoint [128 x i8]* %3 to i64
%39 = sub i64 %37, %38
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.17, i64 0, i64 0), i32 103, i64 %39)
br label %41
41: ; preds = %36, %2
%42 = call i8* @strstr(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%43 = icmp eq i8* %42, null
%44 = select i1 %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %44)
br i1 %43, label %51, label %46
46: ; preds = %41
%47 = ptrtoint i8* %42 to i64
%48 = ptrtoint [128 x i8]* %3 to i64
%49 = sub i64 %47, %48
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i64 %49)
br label %51
51: ; preds = %46, %41
ret i32 0
}