#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 *, ...);
size_t strlen(char const *);
void *strpbrk(char const *, char const *);
char *strrchr(char const *, char);
int /*<<< orphan*/ strspn(char const *, char const *);
int main() {
  int i = 0;
  const char str1[] = "abcde2fghi3jk4l";
  const char str2[] = "34";
  const char *str3 = "Life is short,I use C";
  char *ret;
  ret = strpbrk(str1, str2);
  if (ret) {
    printf("Number one is : %c\n", *ret);
  } else {
    printf("No");
  }
  ret = strpbrk(str1, str3);
  if (ret) {
    printf("Number one is : %c\n", *ret);
  } else {
    printf("No");
  }
  printf("\n");
  size_t len = strlen(str1);
  char *ch = 0;
  int index = 0;
  char all[20] = {0};
  for (; i < len; ++i) {
    ret = strpbrk((str1 + sizeof(char) * (index + 1)), str3);
    if (ret) {
      ch = strrchr(str1, *ret);
      index = (int)(ch - str1);
      printf("Number one is : %c\n", *ret);
      all[i] = *ret;
    } else {
      printf("No");
    }
  }
  printf("\n");
  for (i = 0; i < 20; ++i) {
    if (all[i] == 0)
      break;
    printf("%c ", all[i]);
  }
  printf("\n");
  const char *str = "hello world, friend of mine!";
  const char *sep = " ,!";
  unsigned int cnt = 0;
  do {
    str = strpbrk(str, sep);
    if (str) {
      str += strspn(str, sep);
      printf("%s\n", str);
    }
    ++cnt;
  } while (str && *str);
  printf("There are %d words\n", cnt);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    0xe80(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe7d(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe7a(%rip),%ax
mov    %ax,-0x23(%rbp)
mov    0xe72(%rip),%al
mov    %al,-0x21(%rbp)
lea    0xe69(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x23(%rbp),%rsi
call   1080 <strpbrk@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     11e4 <main+0x84>
mov    -0x38(%rbp),%rax
movsbl (%rax),%esi
lea    0xe51(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11f2 <main+0x92>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1080 <strpbrk@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1228 <main+0xc8>
mov    -0x38(%rbp),%rax
movsbl (%rax),%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1236 <main+0xd6>
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x20(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1060 <memset@plt>
movslq -0x8(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    1314 <main+0x1b4>
lea    -0x20(%rbp),%rdi
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
add    %rax,%rdi
mov    -0x30(%rbp),%rsi
call   1080 <strpbrk@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     12f3 <main+0x193>
lea    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rax
movsbl (%rax),%esi
call   1050 <strrchr@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
lea    -0x20(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x4c(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%esi
lea    0xd50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x60(%rbp,%rax,1)
jmp    1301 <main+0x1a1>
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1306 <main+0x1a6>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1270 <main+0x110>
lea    0xd20(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x14,-0x8(%rbp)
jge    136f <main+0x20f>
movslq -0x8(%rbp),%rax
movsbl -0x60(%rbp,%rax,1),%eax
cmp    $0x0,%eax
jne    134a <main+0x1ea>
jmp    136f <main+0x20f>
movslq -0x8(%rbp),%rax
movsbl -0x60(%rbp,%rax,1),%esi
lea    0xce6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1329 <main+0x1c9>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcc0(%rip),%rax
mov    %rax,-0x68(%rbp)
lea    0xcd2(%rip),%rax
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%rsi
call   1080 <strpbrk@plt>
mov    %rax,-0x68(%rbp)
cmpq   $0x0,-0x68(%rbp)
je     13e5 <main+0x285>
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%rsi
call   1070 <strspn@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rsi
lea    0xc87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
xor    %eax,%eax
cmpq   $0x0,-0x68(%rbp)
mov    %al,-0x75(%rbp)
je     140e <main+0x2ae>
mov    -0x68(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x75(%rbp)
mov    -0x75(%rbp),%al
test   $0x1,%al
jne    139a <main+0x23a>
mov    -0x74(%rbp),%esi
lea    0xc46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
movaps 0xe7b(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0xe7f(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1090 <strpbrk@plt>
test   %rax,%rax
je     11b3 <main+0x43>
movsbl (%rax),%esi
lea    0xe7f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11c1 <main+0x51>
lea    0xe83(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe4b(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1090 <strpbrk@plt>
test   %rax,%rax
je     11ea <main+0x7a>
movsbl (%rax),%esi
lea    0xe48(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11f8 <main+0x88>
lea    0xe4c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movl   $0x0,0x10(%rsp)
test   %rax,%rax
je     1296 <main+0x126>
mov    %rax,%r14
xor    %r15d,%r15d
xor    %ebp,%ebp
jmp    1247 <main+0xd7>
nopl   (%rax)
lea    0xe06(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r15
cmp    %r15,%r14
je     1296 <main+0x126>
movslq %ebp,%rax
lea    (%rax,%rbx,1),%rdi
add    $0x1,%rdi
lea    0xdba(%rip),%rsi
call   1090 <strpbrk@plt>
test   %rax,%rax
je     1230 <main+0xc0>
mov    %rax,%r12
movsbl (%rax),%r13d
mov    %rbx,%rdi
mov    %r13d,%esi
call   1070 <strrchr@plt>
mov    %rax,%rbp
sub    %ebx,%ebp
lea    0xda8(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movzbl (%r12),%eax
mov    %al,(%rsp,%r15,1)
jmp    123e <main+0xce>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsbl (%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xd8d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x1(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xd72(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x2(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xd57(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x3(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xd3c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x4(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xd21(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x5(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xd06(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x6(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xceb(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x7(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xcd0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x8(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xcb5(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x9(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xc9a(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xa(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xc7f(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xb(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xc64(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xc(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xc49(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xd(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xc2e(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xe(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xc13(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0xf(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xbfc(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x10(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xbe5(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x11(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xbce(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x12(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xbb7(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movsbl 0x13(%rsp),%esi
test   %esi,%esi
je     14a7 <main+0x337>
lea    0xba0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xb8c(%rip),%rbp
mov    $0x1,%r15d
lea    0xb9c(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbp,%rdi
mov    %r14,%rsi
call   1090 <strpbrk@plt>
test   %rax,%rax
je     150e <main+0x39e>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
call   1080 <strspn@plt>
movslq %eax,%r12
mov    %rbx,%rbp
add    %r12,%rbp
mov    %rbp,%rdi
call   1040 <puts@plt>
add    $0x1,%r15d
cmpb   $0x0,(%rbx,%r12,1)
jne    14d0 <main+0x360>
add    $0xffffffff,%r15d
lea    0xb50(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.str1 = [16 x i8] c"abcde2fghi3jk4l\00"
@__const.main.str2 = [3 x i8] c"34\00"
@.str = [22 x i8] c"Life is short,I use C\00"
@.str.1 = [20 x i8] c"Number one is : %c\0A\00"
@.str.2 = [3 x i8] c"No\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [4 x i8] c"%c \00"
@.str.5 = [29 x i8] c"hello world, friend of mine!\00"
@.str.6 = [4 x i8] c" ,!\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [20 x i8] c"There are %d words\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [16 x i8]
%4 = alloca [3 x i8]
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i32
%10 = alloca [20 x i8]
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%14 = bitcast [16 x i8]* %3 to i8*
%15 = bitcast [3 x i8]* %4 to i8*
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8** %5
%16 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%17 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%18 = call i8* @strpbrk(i8* %16, i8* %17)
store i8* %18, i8** %6
%19 = load i8*, i8** %6
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %26
21: ; preds = %0
%22 = load i8*, i8** %6
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %28
26: ; preds = %0
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %28
28: ; preds = %26, %21
%29 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%30 = load i8*, i8** %5
%31 = call i8* @strpbrk(i8* %29, i8* %30)
store i8* %31, i8** %6
%32 = load i8*, i8** %6
%33 = icmp ne i8* %32, null
br i1 %33, label %34, label %39
34: ; preds = %28
%35 = load i8*, i8** %6
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %37)
br label %41
39: ; preds = %28
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %41
41: ; preds = %39, %34
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%43 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%44 = call i64 @strlen(i8* %43)
store i64 %44, i64* %7
store i8* null, i8** %8
store i32 0, i32* %9
%45 = bitcast [20 x i8]* %10 to i8*
br label %46
46: ; preds = %85, %41
%47 = load i32, i32* %2
%48 = sext i32 %47 to i64
%49 = load i64, i64* %7
%50 = icmp ult i64 %48, %49
br i1 %50, label %51, label %88
51: ; preds = %46
%52 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
%55 = sext i32 %54 to i64
%56 = mul i64 1, %55
%57 = getelementptr inbounds i8, i8* %52, i64 %56
%58 = load i8*, i8** %5
%59 = call i8* @strpbrk(i8* %57, i8* %58)
store i8* %59, i8** %6
%60 = load i8*, i8** %6
%61 = icmp ne i8* %60, null
br i1 %61, label %62, label %82
62: ; preds = %51
%63 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%64 = load i8*, i8** %6
%65 = load i8, i8* %64
%66 = call i8* @strrchr(i8* %63, i8 signext %65)
store i8* %66, i8** %8
%67 = load i8*, i8** %8
%68 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%69 = ptrtoint i8* %67 to i64
%70 = ptrtoint i8* %68 to i64
%71 = sub i64 %69, %70
%72 = trunc i64 %71 to i32
store i32 %72, i32* %9
%73 = load i8*, i8** %6
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %75)
%77 = load i8*, i8** %6
%78 = load i8, i8* %77
%79 = load i32, i32* %2
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [20 x i8], [20 x i8]* %10, i64 0, i64 %80
store i8 %78, i8* %81
br label %84
82: ; preds = %51
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %84
84: ; preds = %82, %62
br label %85
85: ; preds = %84
%86 = load i32, i32* %2
%87 = add nsw i32 %86, 1
store i32 %87, i32* %2
br label %46
88: ; preds = %46
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %90
90: ; preds = %108, %88
%91 = load i32, i32* %2
%92 = icmp slt i32 %91, 20
br i1 %92, label %93, label %111
93: ; preds = %90
%94 = load i32, i32* %2
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [20 x i8], [20 x i8]* %10, i64 0, i64 %95
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = icmp eq i32 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %93
br label %111
101: ; preds = %93
%102 = load i32, i32* %2
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [20 x i8], [20 x i8]* %10, i64 0, i64 %103
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %106)
br label %108
108: ; preds = %101
%109 = load i32, i32* %2
%110 = add nsw i32 %109, 1
store i32 %110, i32* %2
br label %90
111: ; preds = %100, %90
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i8** %11
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %12
store i32 0, i32* %13
br label %113
113: ; preds = %139, %111
%114 = load i8*, i8** %11
%115 = load i8*, i8** %12
%116 = call i8* @strpbrk(i8* %114, i8* %115)
store i8* %116, i8** %11
%117 = load i8*, i8** %11
%118 = icmp ne i8* %117, null
br i1 %118, label %119, label %128
119: ; preds = %113
%120 = load i8*, i8** %11
%121 = load i8*, i8** %12
%122 = call i32 @strspn(i8* %120, i8* %121)
%123 = load i8*, i8** %11
%124 = sext i32 %122 to i64
%125 = getelementptr inbounds i8, i8* %123, i64 %124
store i8* %125, i8** %11
%126 = load i8*, i8** %11
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %126)
br label %128
128: ; preds = %119, %113
%129 = load i32, i32* %13
%130 = add i32 %129, 1
store i32 %130, i32* %13
br label %131
131: ; preds = %128
%132 = load i8*, i8** %11
%133 = icmp ne i8* %132, null
br i1 %133, label %134, label %139
134: ; preds = %131
%135 = load i8*, i8** %11
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = icmp ne i32 %137, 0
br label %139
139: ; preds = %134, %131
%140 = phi i1 [ false, %131 ], [ %138, %134 ]
br i1 %140, label %113, label %141
141: ; preds = %139
%142 = load i32, i32* %13
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %142)
ret i32 0
}

LLVM IR (-O2):
@__const.main.str1 = [16 x i8] c"abcde2fghi3jk4l\00"
@__const.main.str2 = [3 x i8] c"34\00"
@.str = [22 x i8] c"Life is short,I use C\00"
@.str.1 = [20 x i8] c"Number one is : %c\0A\00"
@.str.2 = [3 x i8] c"No\00"
@.str.4 = [4 x i8] c"%c \00"
@.str.5 = [29 x i8] c"hello world, friend of mine!\00"
@.str.6 = [4 x i8] c" ,!\00"
@.str.8 = [20 x i8] c"There are %d words\0A\00"
define i32 @main() {
%1 = alloca [16 x i8]
%2 = alloca [20 x i8]
%3 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 0
%4 = call i8* @strpbrk(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @__const.main.str2, i64 0, i64 0))
%5 = icmp eq i8* %4, null
br i1 %5, label %10, label %6
6: ; preds = %0
%7 = load i8, i8* %4
%8 = sext i8 %7 to i32
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %8)
br label %12
10: ; preds = %0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %10, %6
%13 = call i8* @strpbrk(i8* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i8* %13, null
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = load i8, i8* %13
%17 = sext i8 %16 to i32
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %17)
br label %21
19: ; preds = %12
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %15
%22 = call i32 @putchar(i32 10)
%23 = call i64 @strlen(i8* %3)
%24 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%25 = icmp eq i64 %23, 0
br i1 %25, label %52, label %26
26: ; preds = %21
%27 = ptrtoint [16 x i8]* %1 to i64
br label %28
28: ; preds = %26, %48
%29 = phi i64 [ 0, %26 ], [ %50, %48 ]
%30 = phi i32 [ 0, %26 ], [ %49, %48 ]
%31 = add nsw i32 %30, 1
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [16 x i8], [16 x i8]* %1, i64 0, i64 %32
%34 = call i8* @strpbrk(i8* %33, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%35 = icmp eq i8* %34, null
br i1 %35, label %46, label %36
36: ; preds = %28
%37 = load i8, i8* %34
%38 = call i8* @strrchr(i8* %3, i8 signext %37)
%39 = ptrtoint i8* %38 to i64
%40 = sub i64 %39, %27
%41 = trunc i64 %40 to i32
%42 = sext i8 %37 to i32
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 %42)
%44 = load i8, i8* %34
%45 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 %29
store i8 %44, i8* %45
br label %48
46: ; preds = %28
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %48
48: ; preds = %36, %46
%49 = phi i32 [ %41, %36 ], [ %30, %46 ]
%50 = add nuw i64 %29, 1
%51 = icmp eq i64 %50, %23
br i1 %51, label %52, label %28
52: ; preds = %48, %21
%53 = call i32 @putchar(i32 10)
%54 = load i8, i8* %24
%55 = icmp eq i8 %54, 0
br i1 %55, label %173, label %56
56: ; preds = %52
%57 = sext i8 %54 to i32
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %57)
%59 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 1
%60 = load i8, i8* %59
%61 = icmp eq i8 %60, 0
br i1 %61, label %173, label %62
62: ; preds = %56
%63 = sext i8 %60 to i32
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 2
%66 = load i8, i8* %65
%67 = icmp eq i8 %66, 0
br i1 %67, label %173, label %68
68: ; preds = %62
%69 = sext i8 %66 to i32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %69)
%71 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 3
%72 = load i8, i8* %71
%73 = icmp eq i8 %72, 0
br i1 %73, label %173, label %74
74: ; preds = %68
%75 = sext i8 %72 to i32
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %75)
%77 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 4
%78 = load i8, i8* %77
%79 = icmp eq i8 %78, 0
br i1 %79, label %173, label %80
80: ; preds = %74
%81 = sext i8 %78 to i32
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %81)
%83 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 5
%84 = load i8, i8* %83
%85 = icmp eq i8 %84, 0
br i1 %85, label %173, label %86
86: ; preds = %80
%87 = sext i8 %84 to i32
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %87)
%89 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 6
%90 = load i8, i8* %89
%91 = icmp eq i8 %90, 0
br i1 %91, label %173, label %92
92: ; preds = %86
%93 = sext i8 %90 to i32
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 7
%96 = load i8, i8* %95
%97 = icmp eq i8 %96, 0
br i1 %97, label %173, label %98
98: ; preds = %92
%99 = sext i8 %96 to i32
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %99)
%101 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 8
%102 = load i8, i8* %101
%103 = icmp eq i8 %102, 0
br i1 %103, label %173, label %104
104: ; preds = %98
%105 = sext i8 %102 to i32
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %105)
%107 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 9
%108 = load i8, i8* %107
%109 = icmp eq i8 %108, 0
br i1 %109, label %173, label %110
110: ; preds = %104
%111 = sext i8 %108 to i32
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %111)
%113 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 10
%114 = load i8, i8* %113
%115 = icmp eq i8 %114, 0
br i1 %115, label %173, label %116
116: ; preds = %110
%117 = sext i8 %114 to i32
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %117)
%119 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 11
%120 = load i8, i8* %119
%121 = icmp eq i8 %120, 0
br i1 %121, label %173, label %122
122: ; preds = %116
%123 = sext i8 %120 to i32
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %123)
%125 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 12
%126 = load i8, i8* %125
%127 = icmp eq i8 %126, 0
br i1 %127, label %173, label %128
128: ; preds = %122
%129 = sext i8 %126 to i32
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %129)
%131 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 13
%132 = load i8, i8* %131
%133 = icmp eq i8 %132, 0
br i1 %133, label %173, label %134
134: ; preds = %128
%135 = sext i8 %132 to i32
%136 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %135)
%137 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 14
%138 = load i8, i8* %137
%139 = icmp eq i8 %138, 0
br i1 %139, label %173, label %140
140: ; preds = %134
%141 = sext i8 %138 to i32
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %141)
%143 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 15
%144 = load i8, i8* %143
%145 = icmp eq i8 %144, 0
br i1 %145, label %173, label %146
146: ; preds = %140
%147 = sext i8 %144 to i32
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %147)
%149 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 16
%150 = load i8, i8* %149
%151 = icmp eq i8 %150, 0
br i1 %151, label %173, label %152
152: ; preds = %146
%153 = sext i8 %150 to i32
%154 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %153)
%155 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 17
%156 = load i8, i8* %155
%157 = icmp eq i8 %156, 0
br i1 %157, label %173, label %158
158: ; preds = %152
%159 = sext i8 %156 to i32
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %159)
%161 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 18
%162 = load i8, i8* %161
%163 = icmp eq i8 %162, 0
br i1 %163, label %173, label %164
164: ; preds = %158
%165 = sext i8 %162 to i32
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %165)
%167 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 19
%168 = load i8, i8* %167
%169 = icmp eq i8 %168, 0
br i1 %169, label %173, label %170
170: ; preds = %164
%171 = sext i8 %168 to i32
%172 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %171)
br label %173
173: ; preds = %170, %164, %158, %152, %146, %140, %134, %128, %122, %116, %110, %104, %98, %92, %86, %80, %74, %68, %62, %56, %52
%174 = call i32 @putchar(i32 10)
br label %175
175: ; preds = %182, %173
%176 = phi i8* [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), %173 ], [ %185, %182 ]
%177 = phi i32 [ 0, %173 ], [ %187, %182 ]
%178 = call i8* @strpbrk(i8* %176, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%179 = icmp eq i8* %178, null
br i1 %179, label %180, label %182
180: ; preds = %175
%181 = add i32 %177, 1
br label %190
182: ; preds = %175
%183 = call i32 @strspn(i8* %178, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds i8, i8* %178, i64 %184
%186 = call i32 @puts(i8* %185)
%187 = add i32 %177, 1
%188 = load i8, i8* %185
%189 = icmp eq i8 %188, 0
br i1 %189, label %190, label %175
190: ; preds = %182, %180
%191 = phi i32 [ %181, %180 ], [ %187, %182 ]
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %191)
ret i32 0
}