#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*/ EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ calloc(int, int);
int /*<<< orphan*/ decrupt_massage(char *, char *, int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ printf(char *, ...);
int remove_new_line(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
scalar_t__ strcasecmp(char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int main(int argc, char **argv) {
  char input[1001];
  fgets(input, 1001, stdin);
  remove_new_line(input);
  while (strcasecmp(input, "start") != 0) {
    fgets(input, 1001, stdin);
    remove_new_line(input);
  }
  int messegeCount = 0;
  char decrupt[1001] = {0};
  size_t size = 100;
  char *result[size];
  fgets(input, 1001, stdin);
  int lenght = remove_new_line(input);
  while (strcasecmp(input, "end") != 0) {
    if (strcmp(input, "\0") == 0) {
      fgets(input, 1001, stdin);
      lenght = remove_new_line(input);
      continue;
    }
    messegeCount++;
    size = messegeCount - 1;
    decrupt_massage(input, decrupt, lenght);
    result[size] = (char *)calloc(lenght + 1, sizeof(char));
    if (!result) {
      fprintf(stderr, "No memorry.");
      exit(EXIT_FAILURE);
    }
    strncpy(result[size], decrupt, lenght + 1);
    result[size][lenght] = '\0';
    fgets(input, 1001, stdin);
    lenght = remove_new_line(input);
  }
  if (messegeCount == 0) {
    printf("No message received.");
  } else {
    printf("Total number of messages: %d\n", messegeCount);
    int i;
    for (i = 0; i <= size; i++) {
      printf("%s\n", result[i]);
      if (result[i]) {
        free(result[i]);
      }
    }
  }
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x820,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x400(%rbp),%rdi
mov    0x2e21(%rip),%rax
mov    (%rax),%edx
mov    $0x3e9,%esi
call   1090 <fgets@plt>
lea    -0x400(%rbp),%rdi
call   10c0 <remove_new_line@plt>
lea    -0x400(%rbp),%rdi
lea    0xe13(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
je     1227 <main+0x87>
lea    -0x400(%rbp),%rdi
mov    0x2dde(%rip),%rax
mov    (%rax),%edx
mov    $0x3e9,%esi
call   1090 <fgets@plt>
lea    -0x400(%rbp),%rdi
call   10c0 <remove_new_line@plt>
jmp    11df <main+0x3f>
movl   $0x0,-0x404(%rbp)
lea    -0x7f0(%rbp),%rdi
xor    %esi,%esi
mov    $0x3e9,%edx
call   1070 <memset@plt>
movq   $0x64,-0x7f8(%rbp)
mov    -0x7f8(%rbp),%rax
mov    %rsp,%rcx
mov    %rcx,-0x800(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x818(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x808(%rbp)
lea    -0x400(%rbp),%rdi
mov    0x2d57(%rip),%rax
mov    (%rax),%edx
mov    $0x3e9,%esi
call   1090 <fgets@plt>
lea    -0x400(%rbp),%rdi
call   10c0 <remove_new_line@plt>
mov    %eax,-0x80c(%rbp)
lea    -0x400(%rbp),%rdi
lea    0xd49(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
je     13ea <main+0x24a>
lea    -0x400(%rbp),%rdi
lea    0xd67(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    131a <main+0x17a>
lea    -0x400(%rbp),%rdi
mov    0x2cf1(%rip),%rax
mov    (%rax),%edx
mov    $0x3e9,%esi
call   1090 <fgets@plt>
lea    -0x400(%rbp),%rdi
call   10c0 <remove_new_line@plt>
mov    %eax,-0x80c(%rbp)
jmp    12af <main+0x10f>
mov    -0x404(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x404(%rbp)
mov    -0x404(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %rax,-0x7f8(%rbp)
lea    -0x400(%rbp),%rdi
lea    -0x7f0(%rbp),%rsi
mov    -0x80c(%rbp),%edx
call   1080 <decrupt_massage@plt>
mov    -0x80c(%rbp),%edi
add    $0x1,%edi
mov    $0x1,%esi
call   10a0 <calloc@plt>
mov    %rax,%rdx
mov    -0x818(%rbp),%rax
mov    -0x7f8(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x7f8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x7f0(%rbp),%rsi
mov    -0x80c(%rbp),%edx
add    $0x1,%edx
call   1050 <strncpy@plt>
mov    -0x818(%rbp),%rax
mov    -0x7f8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x80c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
lea    -0x400(%rbp),%rdi
mov    0x2c21(%rip),%rax
mov    (%rax),%edx
mov    $0x3e9,%esi
call   1090 <fgets@plt>
lea    -0x400(%rbp),%rdi
call   10c0 <remove_new_line@plt>
mov    %eax,-0x80c(%rbp)
jmp    12af <main+0x10f>
cmpl   $0x0,-0x404(%rbp)
jne    140a <main+0x26a>
lea    0xc0c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14aa <main+0x30a>
mov    -0x404(%rbp),%esi
lea    0xc08(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x810(%rbp)
movslq -0x810(%rbp),%rax
cmp    -0x7f8(%rbp),%rax
ja     14a5 <main+0x305>
mov    -0x818(%rbp),%rax
movslq -0x810(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xbe8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x818(%rbp),%rax
movslq -0x810(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     148c <main+0x2ec>
mov    -0x818(%rbp),%rax
movslq -0x810(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
jmp    1491 <main+0x2f1>
mov    -0x810(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x810(%rbp)
jmp    1428 <main+0x288>
jmp    14aa <main+0x30a>
mov    0x2b27(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x800(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x7f8,%rsp
mov    0x2e1d(%rip),%r15
mov    (%r15),%edx
lea    -0x430(%rbp),%rbx
mov    %rbx,%rdi
mov    $0x3e9,%esi
call   10a0 <fgets@plt>
mov    %rbx,%rdi
call   10d0 <remove_new_line@plt>
lea    0xe0f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     1238 <main+0x88>
lea    -0x430(%rbp),%rbx
lea    0xdf4(%rip),%r14
nopl   0x0(%rax)
mov    (%r15),%edx
mov    %rbx,%rdi
mov    $0x3e9,%esi
call   10a0 <fgets@plt>
mov    %rbx,%rdi
call   10d0 <remove_new_line@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcasecmp@plt>
test   %rax,%rax
jne    1210 <main+0x60>
lea    -0x820(%rbp),%rdi
mov    $0x3e9,%edx
xor    %esi,%esi
call   1080 <memset@plt>
mov    %r15,%rax
mov    %rsp,%r15
mov    %rsp,%r12
add    $0xfffffffffffffce0,%r12
mov    %r12,%rsp
mov    (%rax),%edx
lea    -0x430(%rbp),%r14
mov    %r14,%rdi
mov    $0x3e9,%esi
call   10a0 <fgets@plt>
mov    %r14,%rdi
call   10d0 <remove_new_line@plt>
mov    %eax,%ebx
lea    0xd81(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     13e5 <main+0x235>
mov    %r12,-0x30(%rbp)
mov    %r15,-0x38(%rbp)
mov    $0x64,%r14d
xor    %esi,%esi
lea    -0x430(%rbp),%r13
mov    0x2d34(%rip),%r15
jmp    134c <main+0x19c>
nopl   0x0(%rax)
lea    0x1(%r12),%rax
mov    %rax,-0x40(%rbp)
mov    %r13,%rdi
lea    -0x820(%rbp),%rsi
mov    %ebx,%edx
call   1090 <decrupt_massage@plt>
lea    0x1(%rbx),%r14d
mov    %r14d,%edi
mov    $0x1,%esi
call   10b0 <calloc@plt>
mov    %rax,%r15
mov    -0x30(%rbp),%rax
mov    %r15,(%rax,%r12,8)
mov    %r15,%rdi
lea    -0x820(%rbp),%rsi
mov    %r14d,%edx
call   1050 <strncpy@plt>
movslq %ebx,%rax
movb   $0x0,(%r15,%rax,1)
mov    0x2cd1(%rip),%r15
mov    (%r15),%edx
mov    %r13,%rdi
mov    $0x3e9,%esi
call   10a0 <fgets@plt>
mov    %r13,%rdi
call   10d0 <remove_new_line@plt>
mov    %eax,%ebx
mov    %r13,%rdi
lea    0xccb(%rip),%rsi
call   1040 <strcasecmp@plt>
mov    -0x40(%rbp),%rsi
mov    %r12,%r14
test   %rax,%rax
je     139c <main+0x1ec>
mov    %rsi,%r12
nop
mov    %r13,%rdi
lea    0xce3(%rip),%rsi
call   10c0 <strcmp@plt>
test   %rax,%rax
jne    12c0 <main+0x110>
mov    (%r15),%edx
mov    %r13,%rdi
mov    $0x3e9,%esi
call   10a0 <fgets@plt>
mov    %r13,%rdi
call   10d0 <remove_new_line@plt>
mov    %eax,%ebx
mov    %r13,%rdi
lea    0xc7a(%rip),%rsi
call   1040 <strcasecmp@plt>
test   %rax,%rax
jne    1350 <main+0x1a0>
mov    %r12,%rsi
mov    %r14,%r12
test   %esi,%esi
mov    -0x38(%rbp),%r15
mov    -0x30(%rbp),%r13
je     13e5 <main+0x235>
lea    0xc70(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%r12
jmp    13c9 <main+0x219>
xchg   %ax,%ax
add    $0x1,%rbx
cmp    %rbx,%r12
je     13f3 <main+0x243>
mov    0x0(%r13,%rbx,8),%r14
mov    %r14,%rdi
call   1060 <puts@plt>
test   %r14,%r14
je     13c0 <main+0x210>
mov    %r14,%rdi
call   1030 <free@plt>
jmp    13c0 <main+0x210>
lea    0xc1e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    0x2bde(%rip),%rax
mov    (%rax),%eax
mov    %r15,%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [6 x i8] c"start\00"
@.str.1 = [4 x i8] c"end\00"
@.str.2 = [2 x i8] zeroinitializer
@.str.3 = [21 x i8] c"No message received.\00"
@.str.4 = [30 x i8] c"Total number of messages: %d\0A\00"
@.str.5 = [4 x i8] c"%s\0A\00"
@EXIT_SUCCESS = global i32 0
@EXIT_FAILURE = global i32 0
@stderr = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1001 x i8]
%7 = alloca i32
%8 = alloca [1001 x i8]
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%15 = load i32, i32* @stdin
%16 = call i32 @fgets(i8* %14, i32 1001, i32 %15)
%17 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%18 = call i32 @remove_new_line(i8* %17)
br label %19
19: ; preds = %23, %2
%20 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%21 = call i64 @strcasecmp(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%25 = load i32, i32* @stdin
%26 = call i32 @fgets(i8* %24, i32 1001, i32 %25)
%27 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%28 = call i32 @remove_new_line(i8* %27)
br label %19
29: ; preds = %19
store i32 0, i32* %7
%30 = bitcast [1001 x i8]* %8 to i8*
store i64 100, i64* %9
%31 = load i64, i64* %9
%32 = call i8* @llvm.stacksave()
store i8* %32, i8** %10
%33 = alloca i8*, i64 %31
store i64 %31, i64* %11
%34 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%35 = load i32, i32* @stdin
%36 = call i32 @fgets(i8* %34, i32 1001, i32 %35)
%37 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%38 = call i32 @remove_new_line(i8* %37)
store i32 %38, i32* %12
br label %39
39: ; preds = %53, %47, %29
%40 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%41 = call i64 @strcasecmp(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %87
43: ; preds = %39
%44 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %53
47: ; preds = %43
%48 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%49 = load i32, i32* @stdin
%50 = call i32 @fgets(i8* %48, i32 1001, i32 %49)
%51 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%52 = call i32 @remove_new_line(i8* %51)
store i32 %52, i32* %12
br label %39
53: ; preds = %43
%54 = load i32, i32* %7
%55 = add nsw i32 %54, 1
store i32 %55, i32* %7
%56 = load i32, i32* %7
%57 = sub nsw i32 %56, 1
%58 = sext i32 %57 to i64
store i64 %58, i64* %9
%59 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%60 = getelementptr inbounds [1001 x i8], [1001 x i8]* %8, i64 0, i64 0
%61 = load i32, i32* %12
%62 = call i32 @decrupt_massage(i8* %59, i8* %60, i32 %61)
%63 = load i32, i32* %12
%64 = add nsw i32 %63, 1
%65 = call i64 @calloc(i32 %64, i32 1)
%66 = inttoptr i64 %65 to i8*
%67 = load i64, i64* %9
%68 = getelementptr inbounds i8*, i8** %33, i64 %67
store i8* %66, i8** %68
%69 = load i64, i64* %9
%70 = getelementptr inbounds i8*, i8** %33, i64 %69
%71 = load i8*, i8** %70
%72 = getelementptr inbounds [1001 x i8], [1001 x i8]* %8, i64 0, i64 0
%73 = load i32, i32* %12
%74 = add nsw i32 %73, 1
%75 = call i32 @strncpy(i8* %71, i8* %72, i32 %74)
%76 = load i64, i64* %9
%77 = getelementptr inbounds i8*, i8** %33, i64 %76
%78 = load i8*, i8** %77
%79 = load i32, i32* %12
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, i8* %78, i64 %80
store i8 0, i8* %81
%82 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%83 = load i32, i32* @stdin
%84 = call i32 @fgets(i8* %82, i32 1001, i32 %83)
%85 = getelementptr inbounds [1001 x i8], [1001 x i8]* %6, i64 0, i64 0
%86 = call i32 @remove_new_line(i8* %85)
store i32 %86, i32* %12
br label %39
87: ; preds = %39
%88 = load i32, i32* %7
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %92
90: ; preds = %87
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
br label %122
92: ; preds = %87
%93 = load i32, i32* %7
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %93)
store i32 0, i32* %13
br label %95
95: ; preds = %118, %92
%96 = load i32, i32* %13
%97 = sext i32 %96 to i64
%98 = load i64, i64* %9
%99 = icmp ule i64 %97, %98
br i1 %99, label %100, label %121
100: ; preds = %95
%101 = load i32, i32* %13
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8*, i8** %33, i64 %102
%104 = load i8*, i8** %103
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %104)
%106 = load i32, i32* %13
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i8*, i8** %33, i64 %107
%109 = load i8*, i8** %108
%110 = icmp ne i8* %109, null
br i1 %110, label %111, label %117
111: ; preds = %100
%112 = load i32, i32* %13
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %33, i64 %113
%115 = load i8*, i8** %114
%116 = call i32 @free(i8* %115)
br label %117
117: ; preds = %111, %100
br label %118
118: ; preds = %117
%119 = load i32, i32* %13
%120 = add nsw i32 %119, 1
store i32 %120, i32* %13
br label %95
121: ; preds = %95
br label %122
122: ; preds = %121, %90
%123 = load i32, i32* @EXIT_SUCCESS
store i32 %123, i32* %3
%124 = load i8*, i8** %10
%125 = load i32, i32* %3
ret i32 %125
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [6 x i8] c"start\00"
@.str.1 = [4 x i8] c"end\00"
@.str.2 = [2 x i8] zeroinitializer
@.str.3 = [21 x i8] c"No message received.\00"
@.str.4 = [30 x i8] c"Total number of messages: %d\0A\00"
@EXIT_SUCCESS = global i32 0
@EXIT_FAILURE = global i32 0
@stderr = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1001 x i8]
%4 = alloca [1001 x i8]
%5 = getelementptr inbounds [1001 x i8], [1001 x i8]* %3, i64 0, i64 0
%6 = load i32, i32* @stdin
%7 = call i32 @fgets(i8* %5, i32 1001, i32 %6)
%8 = call i32 @remove_new_line(i8* %5)
%9 = call i64 @strcasecmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %17, label %11
11: ; preds = %2, %11
%12 = load i32, i32* @stdin
%13 = call i32 @fgets(i8* %5, i32 1001, i32 %12)
%14 = call i32 @remove_new_line(i8* %5)
%15 = call i64 @strcasecmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %11
17: ; preds = %11, %2
%18 = getelementptr inbounds [1001 x i8], [1001 x i8]* %4, i64 0, i64 0
%19 = call i8* @llvm.stacksave()
%20 = alloca [100 x i8*]
%21 = load i32, i32* @stdin
%22 = call i32 @fgets(i8* %5, i32 1001, i32 %21)
%23 = call i32 @remove_new_line(i8* %5)
%24 = call i64 @strcasecmp(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %62, label %26
26: ; preds = %17, %41
%27 = phi i64 [ %43, %41 ], [ 0, %17 ]
%28 = phi i32 [ %54, %41 ], [ %23, %17 ]
%29 = phi i64 [ %27, %41 ], [ 100, %17 ]
%30 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %35, label %41
32: ; preds = %35
%33 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %41
35: ; preds = %26, %32
%36 = load i32, i32* @stdin
%37 = call i32 @fgets(i8* %5, i32 1001, i32 %36)
%38 = call i32 @remove_new_line(i8* %5)
%39 = call i64 @strcasecmp(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %57, label %32
41: ; preds = %32, %26
%42 = phi i32 [ %28, %26 ], [ %38, %32 ]
%43 = add nuw i64 %27, 1
%44 = call i32 @decrupt_massage(i8* %5, i8* %18, i32 %42)
%45 = add nsw i32 %42, 1
%46 = call i64 @calloc(i32 %45, i32 1)
%47 = inttoptr i64 %46 to i8*
%48 = getelementptr inbounds [100 x i8*], [100 x i8*]* %20, i64 0, i64 %27
store i8* %47, i8** %48
%49 = call i32 @strncpy(i8* %47, i8* %18, i32 %45)
%50 = sext i32 %42 to i64
%51 = getelementptr inbounds i8, i8* %47, i64 %50
store i8 0, i8* %51
%52 = load i32, i32* @stdin
%53 = call i32 @fgets(i8* %5, i32 1001, i32 %52)
%54 = call i32 @remove_new_line(i8* %5)
%55 = call i64 @strcasecmp(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %26
57: ; preds = %41, %35
%58 = phi i64 [ %27, %35 ], [ %43, %41 ]
%59 = phi i64 [ %29, %35 ], [ %27, %41 ]
%60 = trunc i64 %58 to i32
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %17, %57
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
br label %77
64: ; preds = %57
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %60)
br label %66
66: ; preds = %64, %74
%67 = phi i64 [ 0, %64 ], [ %75, %74 ]
%68 = getelementptr inbounds [100 x i8*], [100 x i8*]* %20, i64 0, i64 %67
%69 = load i8*, i8** %68
%70 = call i32 @puts(i8* dereferenceable(1) %69)
%71 = icmp eq i8* %69, null
br i1 %71, label %74, label %72
72: ; preds = %66
%73 = call i32 @free(i8* %69)
br label %74
74: ; preds = %66, %72
%75 = add nuw i64 %67, 1
%76 = icmp eq i64 %67, %59
br i1 %76, label %77, label %66
77: ; preds = %74, %62
%78 = load i32, i32* @EXIT_SUCCESS
ret i32 %78
}