#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*/ memset(char *, int, int);
int /*<<< orphan*/ printf(char *, char *);
int strlen(char *);
char *strstr(char *, char *);
void proc_fake1(char *inblk, int *len) {
  char *startp, *endp;
  int outlen;
  outlen = *len;
  while ((startp = strstr(inblk, "/*DEMO*/")) != NULL) {
    if ((endp = strstr(startp, "/*END_DEMO*/")) == NULL) {
      printf("can not find %s\n", "/*END_DEMO*/");
      return;
    }
    endp += strlen("/*END_DEMO*/");
    outlen = endp - startp;
    memset(startp, 0x20, outlen);
  }
  while ((startp = strstr(inblk, "<!--DEMO-->")) != NULL) {
    if ((endp = strstr(startp, "<!--END_DEMO-->")) == NULL) {
      printf("can not find %s\n", "<!--END_DEMO-->");
      return;
    }
    endp += strlen("<!--END_DEMO-->");
    outlen = endp - startp;
    memset(startp, 0x20, outlen);
  }
  while ((startp = strstr(inblk, "/*REAL")) != NULL) {
    memset(startp, 0x20, strlen("/*REAL"));
  }
  while ((startp = strstr(inblk, "REAL*/")) != NULL) {
    memset(startp, 0x20, strlen("REAL*/"));
  }
  while ((startp = strstr(inblk, "<!--REAL")) != NULL) {
    memset(startp, 0x20, strlen("<!--REAL"));
  }
  while ((startp = strstr(inblk, "REAL-->")) != NULL) {
    memset(startp, 0x20, strlen("REAL-->"));
  }
}


x86 assembly (clang, -O0):
<proc_fake1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe9c(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     11ed <proc_fake1+0xad>
mov    -0x18(%rbp),%rdi
lea    0xe87(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    11ad <proc_fake1+0x6d>
lea    0xe7a(%rip),%rdi
lea    0xe66(%rip),%rsi
call   1040 <printf@plt>
jmp    13b6 <proc_fake1+0x276>
lea    0xe55(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%edx
mov    $0x20,%esi
call   1050 <memset@plt>
jmp    1159 <proc_fake1+0x19>
jmp    11f2 <proc_fake1+0xb2>
mov    -0x8(%rbp),%rdi
lea    0xe2a(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     1286 <proc_fake1+0x146>
mov    -0x18(%rbp),%rdi
lea    0xe18(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1246 <proc_fake1+0x106>
lea    0xde1(%rip),%rdi
lea    0xdf7(%rip),%rsi
call   1040 <printf@plt>
jmp    13b6 <proc_fake1+0x276>
lea    0xde6(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x24(%rbp),%edx
mov    $0x20,%esi
call   1050 <memset@plt>
jmp    11f2 <proc_fake1+0xb2>
jmp    128b <proc_fake1+0x14b>
mov    -0x8(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     12d2 <proc_fake1+0x192>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    0xd8b(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%edx
mov    $0x20,%esi
call   1050 <memset@plt>
jmp    128b <proc_fake1+0x14b>
jmp    12d7 <proc_fake1+0x197>
mov    -0x8(%rbp),%rdi
lea    0xd68(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     131e <proc_fake1+0x1de>
mov    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xd46(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%edx
mov    $0x20,%esi
call   1050 <memset@plt>
jmp    12d7 <proc_fake1+0x197>
jmp    1323 <proc_fake1+0x1e3>
mov    -0x8(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     136a <proc_fake1+0x22a>
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xd01(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%edx
mov    $0x20,%esi
call   1050 <memset@plt>
jmp    1323 <proc_fake1+0x1e3>
jmp    136f <proc_fake1+0x22f>
mov    -0x8(%rbp),%rdi
lea    0xce0(%rip),%rsi
call   1060 <strstr@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
je     13b6 <proc_fake1+0x276>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xcbe(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    %eax,%edx
mov    $0x20,%esi
call   1050 <memset@plt>
jmp    136f <proc_fake1+0x22f>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proc_fake1>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdi,%r14
lea    0xead(%rip),%rsi
call   1060 <strstr@plt>
test   %rax,%rax
je     11b6 <proc_fake1+0x76>
mov    %rax,%r13
lea    0xea2(%rip),%r12
lea    0xe92(%rip),%r15
xchg   %ax,%ax
mov    %r13,%rdi
mov    %r12,%rsi
call   1060 <strstr@plt>
test   %rax,%rax
je     1374 <proc_fake1+0x234>
mov    %rax,%rbx
mov    %r12,%rdi
call   1030 <strlen@plt>
add    %eax,%ebx
sub    %r13d,%ebx
mov    %r13,%rdi
mov    $0x20,%esi
mov    %ebx,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strstr@plt>
mov    %rax,%r13
test   %rax,%rax
jne    1170 <proc_fake1+0x30>
lea    0xe6a(%rip),%rsi
mov    %r14,%rdi
call   1060 <strstr@plt>
test   %rax,%rax
je     1226 <proc_fake1+0xe6>
mov    %rax,%r13
lea    0xe5f(%rip),%r12
lea    0xe4c(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %r12,%rsi
call   1060 <strstr@plt>
test   %rax,%rax
je     1374 <proc_fake1+0x234>
mov    %rax,%rbx
mov    %r12,%rdi
call   1030 <strlen@plt>
add    %eax,%ebx
sub    %r13d,%ebx
mov    %r13,%rdi
mov    $0x20,%esi
mov    %ebx,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strstr@plt>
mov    %rax,%r13
test   %rax,%rax
jne    11e0 <proc_fake1+0xa0>
lea    0xe16(%rip),%rsi
mov    %r14,%rdi
call   1060 <strstr@plt>
test   %rax,%rax
je     127a <proc_fake1+0x13a>
mov    %rax,%rbx
lea    0xdff(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %eax,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strstr@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1250 <proc_fake1+0x110>
lea    0xdc9(%rip),%rsi
mov    %r14,%rdi
call   1060 <strstr@plt>
test   %rax,%rax
je     12ca <proc_fake1+0x18a>
mov    %rax,%rbx
lea    0xdb2(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %eax,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strstr@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12a0 <proc_fake1+0x160>
lea    0xd80(%rip),%rsi
mov    %r14,%rdi
call   1060 <strstr@plt>
test   %rax,%rax
je     131a <proc_fake1+0x1da>
mov    %rax,%rbx
lea    0xd69(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %eax,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strstr@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    12f0 <proc_fake1+0x1b0>
lea    0xd39(%rip),%rsi
mov    %r14,%rdi
call   1060 <strstr@plt>
test   %rax,%rax
je     136a <proc_fake1+0x22a>
mov    %rax,%rbx
lea    0xd22(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %eax,%edx
call   1050 <memset@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <strstr@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1340 <proc_fake1+0x200>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
lea    0xc9b(%rip),%rdi
mov    %r12,%rsi
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"/*DEMO*/\00"
@.str.1 = [13 x i8] c"/*END_DEMO*/\00"
@.str.2 = [17 x i8] c"can not find %s\0A\00"
@.str.3 = [12 x i8] c"<!--DEMO-->\00"
@.str.4 = [16 x i8] c"<!--END_DEMO-->\00"
@.str.5 = [7 x i8] c"/*REAL\00"
@.str.6 = [7 x i8] c"REAL*/\00"
@.str.7 = [9 x i8] c"<!--REAL\00"
@.str.8 = [8 x i8] c"REAL-->\00"
define void @proc_fake1(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %3
store i32* %1, i32** %4
%8 = load i32*, i32** %4
%9 = load i32, i32* %8
store i32 %9, i32* %7
br label %10
10: ; preds = %20, %2
%11 = load i8*, i8** %3
%12 = call i8* @strstr(i8* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i8* %12, i8** %5
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %34
14: ; preds = %10
%15 = load i8*, i8** %5
%16 = call i8* @strstr(i8* %15, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store i8* %16, i8** %6
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %95
20: ; preds = %14
%21 = call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%22 = load i8*, i8** %6
%23 = sext i32 %21 to i64
%24 = getelementptr inbounds i8, i8* %22, i64 %23
store i8* %24, i8** %6
%25 = load i8*, i8** %6
%26 = load i8*, i8** %5
%27 = ptrtoint i8* %25 to i64
%28 = ptrtoint i8* %26 to i64
%29 = sub i64 %27, %28
%30 = trunc i64 %29 to i32
store i32 %30, i32* %7
%31 = load i8*, i8** %5
%32 = load i32, i32* %7
%33 = call i32 @memset(i8* %31, i32 32, i32 %32)
br label %10
34: ; preds = %10
br label %35
35: ; preds = %45, %34
%36 = load i8*, i8** %3
%37 = call i8* @strstr(i8* %36, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
store i8* %37, i8** %5
%38 = icmp ne i8* %37, null
br i1 %38, label %39, label %59
39: ; preds = %35
%40 = load i8*, i8** %5
%41 = call i8* @strstr(i8* %40, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
store i8* %41, i8** %6
%42 = icmp eq i8* %41, null
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
br label %95
45: ; preds = %39
%46 = call i32 @strlen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%47 = load i8*, i8** %6
%48 = sext i32 %46 to i64
%49 = getelementptr inbounds i8, i8* %47, i64 %48
store i8* %49, i8** %6
%50 = load i8*, i8** %6
%51 = load i8*, i8** %5
%52 = ptrtoint i8* %50 to i64
%53 = ptrtoint i8* %51 to i64
%54 = sub i64 %52, %53
%55 = trunc i64 %54 to i32
store i32 %55, i32* %7
%56 = load i8*, i8** %5
%57 = load i32, i32* %7
%58 = call i32 @memset(i8* %56, i32 32, i32 %57)
br label %35
59: ; preds = %35
br label %60
60: ; preds = %64, %59
%61 = load i8*, i8** %3
%62 = call i8* @strstr(i8* %61, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
store i8* %62, i8** %5
%63 = icmp ne i8* %62, null
br i1 %63, label %64, label %68
64: ; preds = %60
%65 = load i8*, i8** %5
%66 = call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%67 = call i32 @memset(i8* %65, i32 32, i32 %66)
br label %60
68: ; preds = %60
br label %69
69: ; preds = %73, %68
%70 = load i8*, i8** %3
%71 = call i8* @strstr(i8* %70, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
store i8* %71, i8** %5
%72 = icmp ne i8* %71, null
br i1 %72, label %73, label %77
73: ; preds = %69
%74 = load i8*, i8** %5
%75 = call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%76 = call i32 @memset(i8* %74, i32 32, i32 %75)
br label %69
77: ; preds = %69
br label %78
78: ; preds = %82, %77
%79 = load i8*, i8** %3
%80 = call i8* @strstr(i8* %79, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
store i8* %80, i8** %5
%81 = icmp ne i8* %80, null
br i1 %81, label %82, label %86
82: ; preds = %78
%83 = load i8*, i8** %5
%84 = call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%85 = call i32 @memset(i8* %83, i32 32, i32 %84)
br label %78
86: ; preds = %78
br label %87
87: ; preds = %91, %86
%88 = load i8*, i8** %3
%89 = call i8* @strstr(i8* %88, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
store i8* %89, i8** %5
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %95
91: ; preds = %87
%92 = load i8*, i8** %5
%93 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%94 = call i32 @memset(i8* %92, i32 32, i32 %93)
br label %87
95: ; preds = %18, %43, %87
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"/*DEMO*/\00"
@.str.1 = [13 x i8] c"/*END_DEMO*/\00"
@.str.2 = [17 x i8] c"can not find %s\0A\00"
@.str.3 = [12 x i8] c"<!--DEMO-->\00"
@.str.4 = [16 x i8] c"<!--END_DEMO-->\00"
@.str.5 = [7 x i8] c"/*REAL\00"
@.str.6 = [7 x i8] c"REAL*/\00"
@.str.7 = [9 x i8] c"<!--REAL\00"
@.str.8 = [8 x i8] c"REAL-->\00"
define void @proc_fake1(i8* %0, i32* nocapture readnone %1) {
%3 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %12, %2
%6 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%7 = icmp eq i8* %6, null
br i1 %7, label %23, label %26
8: ; preds = %2, %12
%9 = phi i8* [ %21, %12 ], [ %3, %2 ]
%10 = tail call i8* @strstr(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i8* %10, null
br i1 %11, label %74, label %12
12: ; preds = %8
%13 = tail call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %10, i64 %14
%16 = ptrtoint i8* %15 to i64
%17 = ptrtoint i8* %9 to i64
%18 = sub i64 %16, %17
%19 = trunc i64 %18 to i32
%20 = tail call i32 @memset(i8* %9, i32 32, i32 %19)
%21 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%22 = icmp eq i8* %21, null
br i1 %22, label %5, label %8
23: ; preds = %30, %5
%24 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i8* %24, null
br i1 %25, label %41, label %44
26: ; preds = %5, %30
%27 = phi i8* [ %39, %30 ], [ %6, %5 ]
%28 = tail call i8* @strstr(i8* %27, i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i8* %28, null
br i1 %29, label %74, label %30
30: ; preds = %26
%31 = tail call i32 @strlen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, i8* %28, i64 %32
%34 = ptrtoint i8* %33 to i64
%35 = ptrtoint i8* %27 to i64
%36 = sub i64 %34, %35
%37 = trunc i64 %36 to i32
%38 = tail call i32 @memset(i8* %27, i32 32, i32 %37)
%39 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%40 = icmp eq i8* %39, null
br i1 %40, label %23, label %26
41: ; preds = %44, %23
%42 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%43 = icmp eq i8* %42, null
br i1 %43, label %50, label %53
44: ; preds = %23, %44
%45 = phi i8* [ %48, %44 ], [ %24, %23 ]
%46 = tail call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%47 = tail call i32 @memset(i8* %45, i32 32, i32 %46)
%48 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%49 = icmp eq i8* %48, null
br i1 %49, label %41, label %44
50: ; preds = %53, %41
%51 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp eq i8* %51, null
br i1 %52, label %59, label %62
53: ; preds = %41, %53
%54 = phi i8* [ %57, %53 ], [ %42, %41 ]
%55 = tail call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%56 = tail call i32 @memset(i8* %54, i32 32, i32 %55)
%57 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%58 = icmp eq i8* %57, null
br i1 %58, label %50, label %53
59: ; preds = %62, %50
%60 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%61 = icmp eq i8* %60, null
br i1 %61, label %77, label %68
62: ; preds = %50, %62
%63 = phi i8* [ %66, %62 ], [ %51, %50 ]
%64 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%65 = tail call i32 @memset(i8* %63, i32 32, i32 %64)
%66 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%67 = icmp eq i8* %66, null
br i1 %67, label %59, label %62
68: ; preds = %59, %68
%69 = phi i8* [ %72, %68 ], [ %60, %59 ]
%70 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%71 = tail call i32 @memset(i8* %69, i32 32, i32 %70)
%72 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%73 = icmp eq i8* %72, null
br i1 %73, label %77, label %68
74: ; preds = %8, %26
%75 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), %26 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %8 ]
%76 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %75)
br label %77
77: ; preds = %68, %74, %59
ret void
}