int main(int argc, char const *argv[]) {
  {
    char sentences[][100] = {"abababa",      "he he",  "ab cd ab cd",  "    ",
                             "1234 aaaaaaa", "asd324", "yzqwer 23425", "a"};
    char words[][100] = {"ab", "he", "ab cd", " ", "aa", "asd324", "x", "a"};
    int counts[100] = {3, 2, 2, 4, 6, 1, 0};
    int sc = 7;
    int si = 0;
    for (si = 0; si < sc; si++) {
      printf("\n\n\t\t\tTest%d sentence = [%s], word = [%s]\n", si,
             sentences[si], words[si]);
      int temp_c = count_word_in_str_way_1(sentences[si], words[si]);
      if (temp_c == counts[si]) {
        printf("Test%d Passed\n", si);
      } else {
        printf("Test%d Failed, Required = %d, Got = %d\n", si, counts[si],
               temp_c);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x7f0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x330(%rbp),%rdi
lea    0xe99(%rip),%rsi
mov    $0x320,%edx
call   1050 <memcpy@plt>
lea    -0x650(%rbp),%rdi
lea    0x11a1(%rip),%rsi
mov    $0x320,%edx
call   1050 <memcpy@plt>
lea    -0x7e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
movl   $0x3,-0x7e0(%rbp)
movl   $0x2,-0x7dc(%rbp)
movl   $0x2,-0x7d8(%rbp)
movl   $0x4,-0x7d4(%rbp)
movl   $0x6,-0x7d0(%rbp)
movl   $0x1,-0x7cc(%rbp)
movl   $0x7,-0x7e4(%rbp)
movl   $0x0,-0x7e8(%rbp)
movl   $0x0,-0x7e8(%rbp)
mov    -0x7e8(%rbp),%eax
cmp    -0x7e4(%rbp),%eax
jge    12f1 <main+0x1b1>
mov    -0x7e8(%rbp),%esi
movslq -0x7e8(%rbp),%rax
lea    -0x330(%rbp),%rdx
imul   $0x64,%rax,%rax
add    %rax,%rdx
movslq -0x7e8(%rbp),%rax
lea    -0x650(%rbp),%rcx
imul   $0x64,%rax,%rax
add    %rax,%rcx
lea    0x1401(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x7e8(%rbp),%rax
lea    -0x330(%rbp),%rdi
imul   $0x64,%rax,%rax
add    %rax,%rdi
movslq -0x7e8(%rbp),%rax
lea    -0x650(%rbp),%rsi
imul   $0x64,%rax,%rax
add    %rax,%rsi
mov    $0x0,%al
call   1060 <count_word_in_str_way_1@plt>
mov    %eax,-0x7ec(%rbp)
mov    -0x7ec(%rbp),%eax
movslq -0x7e8(%rbp),%rcx
cmp    -0x7e0(%rbp,%rcx,4),%eax
jne    12b0 <main+0x170>
mov    -0x7e8(%rbp),%esi
lea    0x13c6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12d8 <main+0x198>
mov    -0x7e8(%rbp),%esi
movslq -0x7e8(%rbp),%rax
mov    -0x7e0(%rbp,%rax,4),%edx
mov    -0x7ec(%rbp),%ecx
lea    0x13a8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12dd <main+0x19d>
mov    -0x7e8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7e8(%rbp)
jmp    11f6 <main+0xb6>
xor    %eax,%eax
add    $0x7f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x648,%rsp
lea    0xebf(%rip),%rsi
lea    0x320(%rsp),%r14
mov    $0x320,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
lea    0x11c3(%rip),%rsi
mov    %rsp,%rbx
mov    $0x320,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
lea    0x14cc(%rip),%rdi
xor    %esi,%esi
mov    %r14,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
cmp    $0x3,%eax
jne    11a7 <main+0x77>
lea    0x14ce(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    11be <main+0x8e>
lea    0x14cb(%rip),%rdi
xor    %esi,%esi
mov    $0x3,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x384(%rsp),%rbx
lea    0x64(%rsp),%r14
lea    0x146e(%rip),%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
cmp    $0x2,%eax
jne    120b <main+0xdb>
lea    0x146d(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1225 <main+0xf5>
lea    0x1467(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x3e8(%rsp),%rbx
lea    0xc8(%rsp),%r14
lea    0x1404(%rip),%rdi
mov    $0x2,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
cmp    $0x2,%eax
jne    1275 <main+0x145>
lea    0x1403(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    128f <main+0x15f>
lea    0x13fd(%rip),%rdi
mov    $0x2,%esi
mov    $0x2,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x44c(%rsp),%rbx
lea    0x12c(%rsp),%r14
lea    0x139a(%rip),%rdi
mov    $0x3,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
cmp    $0x4,%eax
jne    12df <main+0x1af>
lea    0x1399(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    12f9 <main+0x1c9>
lea    0x1393(%rip),%rdi
mov    $0x3,%esi
mov    $0x4,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x4b0(%rsp),%rbx
lea    0x190(%rsp),%r14
lea    0x1330(%rip),%rdi
mov    $0x4,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
cmp    $0x6,%eax
jne    1349 <main+0x219>
lea    0x132f(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1363 <main+0x233>
lea    0x1329(%rip),%rdi
mov    $0x4,%esi
mov    $0x6,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x514(%rsp),%rbx
lea    0x1f4(%rsp),%r14
lea    0x12c6(%rip),%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
cmp    $0x1,%eax
jne    13b3 <main+0x283>
lea    0x12c5(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    13cd <main+0x29d>
lea    0x12bf(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x578(%rsp),%rbx
lea    0x258(%rsp),%r14
lea    0x125c(%rip),%rdi
mov    $0x6,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <count_word_in_str_way_1@plt>
test   %eax,%eax
je     1420 <main+0x2f0>
lea    0x126b(%rip),%rdi
mov    $0x6,%esi
xor    %edx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1433 <main+0x303>
lea    0x1243(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x648,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.sentences = [8 x [100 x i8]] [[100 x i8] c"abababa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"he he\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"ab cd ab cd\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c" \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"1234 aaaaaaa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"asd324\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"yzqwer 23425\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@__const.main.words = [8 x [100 x i8]] [[100 x i8] c"ab\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"he\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"ab cd\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c" \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"aa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"asd324\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"x\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str = [42 x i8] c"\0A\0A\09\09\09Test%d sentence = [%s], word = [%s]\0A\00"
@.str.1 = [15 x i8] c"Test%d Passed\0A\00"
@.str.2 = [40 x i8] c"Test%d Failed, Required = %d, Got = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [8 x [100 x i8]]
%7 = alloca [8 x [100 x i8]]
%8 = alloca [100 x i32]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = bitcast [8 x [100 x i8]]* %6 to i8*
%13 = bitcast [8 x [100 x i8]]* %7 to i8*
%14 = bitcast [100 x i32]* %8 to i8*
%15 = bitcast i8* %14 to <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>*
%16 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %15, i32 0, i32 0
store i32 3, i32* %16
%17 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %15, i32 0, i32 1
store i32 2, i32* %17
%18 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %15, i32 0, i32 2
store i32 2, i32* %18
%19 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %15, i32 0, i32 3
store i32 4, i32* %19
%20 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %15, i32 0, i32 4
store i32 6, i32* %20
%21 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %15, i32 0, i32 5
store i32 1, i32* %21
store i32 7, i32* %9
store i32 0, i32* %10
store i32 0, i32* %10
br label %22
22: ; preds = %64, %2
%23 = load i32, i32* %10
%24 = load i32, i32* %9
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %67
26: ; preds = %22
%27 = load i32, i32* %10
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %6, i64 0, i64 %29
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %30, i64 0, i64 0
%32 = load i32, i32* %10
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %7, i64 0, i64 %33
%35 = getelementptr inbounds [100 x i8], [100 x i8]* %34, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 %27, i8* %31, i8* %35)
%37 = load i32, i32* %10
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %6, i64 0, i64 %38
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %39, i64 0, i64 0
%41 = load i32, i32* %10
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %7, i64 0, i64 %42
%44 = getelementptr inbounds [100 x i8], [100 x i8]* %43, i64 0, i64 0
%45 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %40, i8* %44)
store i32 %45, i32* %11
%46 = load i32, i32* %11
%47 = load i32, i32* %10
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [100 x i32], [100 x i32]* %8, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = icmp eq i32 %46, %50
br i1 %51, label %52, label %55
52: ; preds = %26
%53 = load i32, i32* %10
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %53)
br label %63
55: ; preds = %26
%56 = load i32, i32* %10
%57 = load i32, i32* %10
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [100 x i32], [100 x i32]* %8, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = load i32, i32* %11
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %56, i32 %60, i32 %61)
br label %63
63: ; preds = %55, %52
br label %64
64: ; preds = %63
%65 = load i32, i32* %10
%66 = add nsw i32 %65, 1
store i32 %66, i32* %10
br label %22
67: ; preds = %22
ret i32 0
}

LLVM IR (-O2):
@__const.main.sentences = [8 x [100 x i8]] [[100 x i8] c"abababa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"he he\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"ab cd ab cd\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c" \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"1234 aaaaaaa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"asd324\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"yzqwer 23425\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@__const.main.words = [8 x [100 x i8]] [[100 x i8] c"ab\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"he\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"ab cd\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c" \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"aa\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"asd324\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"x\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [100 x i8] c"a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str = [42 x i8] c"\0A\0A\09\09\09Test%d sentence = [%s], word = [%s]\0A\00"
@.str.1 = [15 x i8] c"Test%d Passed\0A\00"
@.str.2 = [40 x i8] c"Test%d Failed, Required = %d, Got = %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [8 x [100 x i8]]
%4 = alloca [8 x [100 x i8]]
%5 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 0, i64 0
%6 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 0, i64 0
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 0, i8* %5, i8* %6)
%8 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 0)
br label %14
12: ; preds = %2
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 3, i32 %8)
br label %14
14: ; preds = %12, %10
%15 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 1, i64 0
%16 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 1, i64 0
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 1, i8* %15, i8* %16)
%18 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %15, i8* %16)
%19 = icmp eq i32 %18, 2
br i1 %19, label %22, label %20
20: ; preds = %14
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 2, i32 %18)
br label %24
22: ; preds = %14
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 1)
br label %24
24: ; preds = %22, %20
%25 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 2, i64 0
%26 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 2, i64 0
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 2, i8* %25, i8* %26)
%28 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %25, i8* %26)
%29 = icmp eq i32 %28, 2
br i1 %29, label %32, label %30
30: ; preds = %24
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 2, i32 %28)
br label %34
32: ; preds = %24
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 2)
br label %34
34: ; preds = %32, %30
%35 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 3, i64 0
%36 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 3, i64 0
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 3, i8* %35, i8* %36)
%38 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %35, i8* %36)
%39 = icmp eq i32 %38, 4
br i1 %39, label %42, label %40
40: ; preds = %34
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 4, i32 %38)
br label %44
42: ; preds = %34
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 3)
br label %44
44: ; preds = %42, %40
%45 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 4, i64 0
%46 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 4, i64 0
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 4, i8* %45, i8* %46)
%48 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %45, i8* %46)
%49 = icmp eq i32 %48, 6
br i1 %49, label %52, label %50
50: ; preds = %44
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 6, i32 %48)
br label %54
52: ; preds = %44
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 4)
br label %54
54: ; preds = %52, %50
%55 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 5, i64 0
%56 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 5, i64 0
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 5, i8* %55, i8* %56)
%58 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %55, i8* %56)
%59 = icmp eq i32 %58, 1
br i1 %59, label %62, label %60
60: ; preds = %54
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 5, i32 1, i32 %58)
br label %64
62: ; preds = %54
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 5)
br label %64
64: ; preds = %62, %60
%65 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %3, i64 0, i64 6, i64 0
%66 = getelementptr inbounds [8 x [100 x i8]], [8 x [100 x i8]]* %4, i64 0, i64 6, i64 0
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i32 6, i8* %65, i8* %66)
%68 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @count_word_in_str_way_1 to i32 (i8*, i8*, ...)*)(i8* %65, i8* %66)
%69 = icmp eq i32 %68, 0
br i1 %69, label %72, label %70
70: ; preds = %64
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 6, i32 0, i32 %68)
br label %74
72: ; preds = %64
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 6)
br label %74
74: ; preds = %72, %70
ret i32 0
}