#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 atoi_2(char *);
int /*<<< orphan*/ clean_text(char *, int);
int /*<<< orphan*/ expand_my(char *, char *);
int getarray_sort(int *, char *);
int /*<<< orphan*/ getline_my(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ reverse_string(char *);
int /*<<< orphan*/ shellsort(int *, int);
void main() {
  char line[100];
  char short_line[30];
  char long_line[300];
  int sort[100];
  int digit = 0;
  int len = 0;
  int i = 0;
  char choise = 0;
  char exit = 0;
  printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
         "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
  printf("Choose please what you want to do (press q to exit):\n");
  printf("Variants :\n");
  printf("1. Convert from char to integer.\n");
  printf("2. Shellsorting.\n");
  printf("3. Reverse string.\n");
  printf("4. Expand string.\n");
  exit = 0;
  while (exit == 0) {
    getline_my(line);
    choise = line[0];
    switch (choise) {
    case '1':
      clean_text(line, 100);
      printf("Input please chars to convert to integer:\n");
      getline_my(line);
      digit = atoi_2(line);
      printf("Getted digit from char = %d;\n", digit);
      exit = 1;
      break;
    case '2':
      len = getarray_sort(sort, line);
      shellsort(sort, len);
      printf("After sorting array seems so:");
      for (i = 0; i < len; ++i) {
        printf("%d,", sort[i]);
      };
      printf("\n");
      exit = 1;
      break;
    case '3':
      printf("Enter please line to reverse:\n");
      clean_text(line, 100);
      getline_my(line);
      reverse_string(line);
      printf("After reverse string seens so:\n%s\n", line);
      exit = 1;
      break;
    case '4':
      printf("Enter please string:\n");
      clean_text(short_line, 30);
      clean_text(long_line, 300);
      getline_my(short_line);
      expand_my(short_line, long_line);
      printf("After expand line seems so:%s\n", long_line);
      exit = 1;
      break;
    case 'q':
      exit = 1;
      break;
    default:
      printf("Wrong input, try again.\n");
      break;
    };
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x370,%rsp
movl   $0x0,-0x354(%rbp)
movl   $0x0,-0x358(%rbp)
movl   $0x0,-0x35c(%rbp)
movb   $0x0,-0x35d(%rbp)
movb   $0x0,-0x35e(%rbp)
lea    0xe42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0x0,-0x35e(%rbp)
movsbl -0x35e(%rbp),%eax
cmp    $0x0,%eax
jne    1478 <main+0x2f8>
lea    -0x70(%rbp),%rdi
call   1070 <getline_my@plt>
mov    -0x70(%rbp),%al
mov    %al,-0x35d(%rbp)
movsbl -0x35d(%rbp),%eax
mov    %eax,-0x364(%rbp)
sub    $0x31,%eax
je     12ad <main+0x12d>
jmp    125d <main+0xdd>
mov    -0x364(%rbp),%eax
sub    $0x32,%eax
je     1301 <main+0x181>
jmp    1271 <main+0xf1>
mov    -0x364(%rbp),%eax
sub    $0x33,%eax
je     139d <main+0x21d>
jmp    1285 <main+0x105>
mov    -0x364(%rbp),%eax
sub    $0x34,%eax
je     13e9 <main+0x269>
jmp    1299 <main+0x119>
mov    -0x364(%rbp),%eax
sub    $0x71,%eax
je     1459 <main+0x2d9>
jmp    1465 <main+0x2e5>
lea    -0x70(%rbp),%rdi
mov    $0x64,%esi
call   10a0 <clean_text@plt>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x70(%rbp),%rdi
call   1070 <getline_my@plt>
lea    -0x70(%rbp),%rdi
call   1060 <atoi_2@plt>
mov    %eax,-0x354(%rbp)
mov    -0x354(%rbp),%esi
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0x1,-0x35e(%rbp)
jmp    1473 <main+0x2f3>
lea    -0x350(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1080 <getarray_sort@plt>
mov    %eax,-0x358(%rbp)
lea    -0x350(%rbp),%rdi
mov    -0x358(%rbp),%esi
call   1090 <shellsort@plt>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x35c(%rbp)
mov    -0x35c(%rbp),%eax
cmp    -0x358(%rbp),%eax
jge    1383 <main+0x203>
movslq -0x35c(%rbp),%rax
mov    -0x350(%rbp,%rax,4),%esi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x35c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x35c(%rbp)
jmp    1341 <main+0x1c1>
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0x1,-0x35e(%rbp)
jmp    1473 <main+0x2f3>
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x70(%rbp),%rdi
mov    $0x64,%esi
call   10a0 <clean_text@plt>
lea    -0x70(%rbp),%rdi
call   1070 <getline_my@plt>
lea    -0x70(%rbp),%rdi
call   1040 <reverse_string@plt>
lea    -0x70(%rbp),%rsi
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0x1,-0x35e(%rbp)
jmp    1473 <main+0x2f3>
lea    0xd8e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x90(%rbp),%rdi
mov    $0x1e,%esi
call   10a0 <clean_text@plt>
lea    -0x1c0(%rbp),%rdi
mov    $0x12c,%esi
call   10a0 <clean_text@plt>
lea    -0x90(%rbp),%rdi
call   1070 <getline_my@plt>
lea    -0x90(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
call   1030 <expand_my@plt>
lea    -0x1c0(%rbp),%rsi
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movb   $0x1,-0x35e(%rbp)
jmp    1473 <main+0x2f3>
movb   $0x1,-0x35e(%rbp)
jmp    1473 <main+0x2f3>
lea    0xd47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1220 <main+0xa0>
add    $0x370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x220,%rsp
lea    0xedf(%rip),%rdi
call   1060 <puts@plt>
lea    0xf06(%rip),%rdi
call   1060 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1060 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1060 <puts@plt>
lea    0xf43(%rip),%rdi
call   1060 <puts@plt>
lea    0xf48(%rip),%rdi
call   1060 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1060 <puts@plt>
mov    %rsp,%rbx
lea    0xfaf(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1090 <getline_my@plt>
movsbl (%rsp),%ecx
lea    -0x31(%rcx),%eax
cmp    $0x3,%eax
jbe    1237 <main+0x97>
cmp    $0x71,%ecx
je     1388 <main+0x1e8>
mov    %r14,%rdi
call   1060 <puts@plt>
jmp    1210 <main+0x70>
lea    0xdc2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
call   10c0 <clean_text@plt>
lea    0xf31(%rip),%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
call   1090 <getline_my@plt>
mov    %rbx,%rdi
call   1080 <atoi_2@plt>
lea    0xd96(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1388 <main+0x1e8>
lea    0x90(%rsp),%r14
mov    %rsp,%rsi
mov    %r14,%rdi
call   10a0 <getarray_sort@plt>
mov    %eax,%ebx
mov    %r14,%rdi
mov    %eax,%esi
call   10b0 <shellsort@plt>
lea    0xd80(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
test   %ebx,%ebx
jle    12ea <main+0x14a>
mov    %ebx,%r15d
lea    0xd89(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x90(%rsp,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    12d0 <main+0x130>
mov    $0xa,%edi
call   1040 <putchar@plt>
jmp    1388 <main+0x1e8>
lea    0xe71(%rip),%rdi
call   1060 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
call   10c0 <clean_text@plt>
mov    %rbx,%rdi
call   1090 <getline_my@plt>
mov    %rbx,%rdi
call   1050 <reverse_string@plt>
lea    0xd24(%rip),%rdi
mov    %rbx,%rsi
jmp    1381 <main+0x1e1>
lea    0xe24(%rip),%rdi
call   1060 <puts@plt>
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1e,%esi
call   10c0 <clean_text@plt>
lea    0x90(%rsp),%r14
mov    %r14,%rdi
mov    $0x12c,%esi
call   10c0 <clean_text@plt>
mov    %rbx,%rdi
call   1090 <getline_my@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <expand_my@plt>
lea    0xcf5(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0x220,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [52 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\00"
@.str.1 = [54 x i8] c"Choose please what you want to do (press q to exit):\0A\00"
@.str.2 = [12 x i8] c"Variants :\0A\00"
@.str.3 = [34 x i8] c"1. Convert from char to integer.\0A\00"
@.str.4 = [18 x i8] c"2. Shellsorting.\0A\00"
@.str.5 = [20 x i8] c"3. Reverse string.\0A\00"
@.str.6 = [19 x i8] c"4. Expand string.\0A\00"
@.str.7 = [43 x i8] c"Input please chars to convert to integer:\0A\00"
@.str.8 = [30 x i8] c"Getted digit from char = %d;\0A\00"
@.str.9 = [30 x i8] c"After sorting array seems so:\00"
@.str.10 = [4 x i8] c"%d,\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [31 x i8] c"Enter please line to reverse:\0A\00"
@.str.13 = [35 x i8] c"After reverse string seens so:\0A%s\0A\00"
@.str.14 = [22 x i8] c"Enter please string:\0A\00"
@.str.15 = [31 x i8] c"After expand line seems so:%s\0A\00"
@.str.16 = [25 x i8] c"Wrong input, try again.\0A\00"
define void @main() {
%1 = alloca [100 x i8]
%2 = alloca [30 x i8]
%3 = alloca [300 x i8]
%4 = alloca [100 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i8 0, i8* %8
store i8 0, i8* %9
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
store i8 0, i8* %9
br label %17
17: ; preds = %87, %0
%18 = load i8, i8* %9
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %88
21: ; preds = %17
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%23 = call i32 @getline_my(i8* %22)
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%25 = load i8, i8* %24
store i8 %25, i8* %8
%26 = load i8, i8* %8
%27 = sext i8 %26 to i32
switch i32 %27, label %85 [
i32 49, label %28
i32 50, label %38
i32 51, label %61
i32 52, label %71
i32 113, label %84
]
28: ; preds = %21
%29 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%30 = call i32 @clean_text(i8* %29, i32 100)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%33 = call i32 @getline_my(i8* %32)
%34 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%35 = call i32 @atoi_2(i8* %34)
store i32 %35, i32* %5
%36 = load i32, i32* %5
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %36)
store i8 1, i8* %9
br label %87
38: ; preds = %21
%39 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 0
%40 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%41 = call i32 @getarray_sort(i32* %39, i8* %40)
store i32 %41, i32* %6
%42 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 0
%43 = load i32, i32* %6
%44 = call i32 @shellsort(i32* %42, i32 %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %7
br label %46
46: ; preds = %56, %38
%47 = load i32, i32* %7
%48 = load i32, i32* %6
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %59
50: ; preds = %46
%51 = load i32, i32* %7
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %50
%57 = load i32, i32* %7
%58 = add nsw i32 %57, 1
store i32 %58, i32* %7
br label %46
59: ; preds = %46
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i8 1, i8* %9
br label %87
61: ; preds = %21
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
%63 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%64 = call i32 @clean_text(i8* %63, i32 100)
%65 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%66 = call i32 @getline_my(i8* %65)
%67 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%68 = call i32 @reverse_string(i8* %67)
%69 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i8* %69)
store i8 1, i8* %9
br label %87
71: ; preds = %21
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
%73 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%74 = call i32 @clean_text(i8* %73, i32 30)
%75 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 0
%76 = call i32 @clean_text(i8* %75, i32 300)
%77 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%78 = call i32 @getline_my(i8* %77)
%79 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%80 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 0
%81 = call i32 @expand_my(i8* %79, i8* %80)
%82 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 0
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8* %82)
store i8 1, i8* %9
br label %87
84: ; preds = %21
store i8 1, i8* %9
br label %87
85: ; preds = %21
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0))
br label %87
87: ; preds = %85, %84, %71, %61, %59, %28
br label %17
88: ; preds = %17
ret void
}

LLVM IR (-O2):
@.str.8 = [30 x i8] c"Getted digit from char = %d;\0A\00"
@.str.9 = [30 x i8] c"After sorting array seems so:\00"
@.str.10 = [4 x i8] c"%d,\00"
@.str.13 = [35 x i8] c"After reverse string seens so:\0A%s\0A\00"
@.str.15 = [31 x i8] c"After expand line seems so:%s\0A\00"
@str = [51 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\00"
@str.17 = [53 x i8] c"Choose please what you want to do (press q to exit):\00"
@str.18 = [11 x i8] c"Variants :\00"
@str.19 = [33 x i8] c"1. Convert from char to integer.\00"
@str.20 = [17 x i8] c"2. Shellsorting.\00"
@str.21 = [19 x i8] c"3. Reverse string.\00"
@str.22 = [18 x i8] c"4. Expand string.\00"
@str.23 = [21 x i8] c"Enter please string:\00"
@str.24 = [30 x i8] c"Enter please line to reverse:\00"
@str.25 = [42 x i8] c"Input please chars to convert to integer:\00"
@str.26 = [24 x i8] c"Wrong input, try again.\00"
define void @main() {
%1 = alloca [100 x i8]
%2 = alloca [30 x i8]
%3 = alloca [300 x i8]
%4 = alloca [100 x i32]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [30 x i8], [30 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [300 x i8], [300 x i8]* %3, i64 0, i64 0
%8 = bitcast [100 x i32]* %4 to i8*
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.17, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.18, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.19, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.20, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.21, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.22, i64 0, i64 0))
%16 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 0
br label %17
17: ; preds = %56, %0
%18 = call i32 @getline_my(i8* %5)
%19 = load i8, i8* %5
%20 = sext i8 %19 to i32
switch i32 %20, label %56 [
i32 49, label %21
i32 50, label %27
i32 51, label %43
i32 52, label %49
i32 113, label %58
]
21: ; preds = %17
%22 = call i32 @clean_text(i8* %5, i32 100)
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.25, i64 0, i64 0))
%24 = call i32 @getline_my(i8* %5)
%25 = call i32 @atoi_2(i8* %5)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %25)
br label %58
27: ; preds = %17
%28 = call i32 @getarray_sort(i32* %16, i8* %5)
%29 = call i32 @shellsort(i32* %16, i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
%31 = icmp sgt i32 %28, 0
br i1 %31, label %32, label %41
32: ; preds = %27
%33 = zext i32 %28 to i64
br label %34
34: ; preds = %32, %34
%35 = phi i64 [ 0, %32 ], [ %39, %34 ]
%36 = getelementptr inbounds [100 x i32], [100 x i32]* %4, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %37)
%39 = add nuw nsw i64 %35, 1
%40 = icmp eq i64 %39, %33
br i1 %40, label %41, label %34
41: ; preds = %34, %27
%42 = call i32 @putchar(i32 10)
br label %58
43: ; preds = %17
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.24, i64 0, i64 0))
%45 = call i32 @clean_text(i8* %5, i32 100)
%46 = call i32 @getline_my(i8* %5)
%47 = call i32 @reverse_string(i8* %5)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i8* %5)
br label %58
49: ; preds = %17
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.23, i64 0, i64 0))
%51 = call i32 @clean_text(i8* %6, i32 30)
%52 = call i32 @clean_text(i8* %7, i32 300)
%53 = call i32 @getline_my(i8* %6)
%54 = call i32 @expand_my(i8* %6, i8* %7)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i8* %7)
br label %58
56: ; preds = %17
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.26, i64 0, i64 0))
br label %17
58: ; preds = %17, %49, %43, %41, %21
ret void
}