#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 */
typedef int /*<<< orphan*/ input;

/* Variables and functions */
int /*<<< orphan*/ create_dockspacer(int *, int *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ stdin;
int stoi(char *);
int strlen(char *);
int main(int argc, char **argv) {
  char input[80];
  int amount;
  int where = 1;
  printf("\n\n%s How many spacers would you like? %s ", "\033[0m", "\033[0m");
  fgets(input, sizeof(input), stdin);
  input[strlen(input)] = '\0';
  if (1 == strlen(input)) {
    printf("\n%s Empty entry. Please run this program again...%s\n\n",
           "\033[31m", "\033[0m");
    exit(-1);
  }
  if (-1 == (amount = stoi(input))) {
    printf("\n%s Invalid entry. Please run this program again...%s\n\n",
           "\033[31m", "\033[0m");
    exit(-1);
  } else {
    if (0 == amount) {
      printf("\n%s You entered 0. Please run this program again...%s\n\n",
             "\033[31m", "\033[0m");
      exit(-1);
    }
    printf("%d\n", amount);
    char choice[20];
    char first_character_in_choice;
    int input_length;
  user_choice:
    printf(
        "\n%s Where would you like to add your spacers? (Enter your choice as "
        "the highlighted character below.) %s \n\n"
        " — In the %sa%spplication section"
        " (on the left, if your Dock is on the bottom)\n"
        " — Near the %sr%secycle bin"
        " (on the right, if your Dock is on the bottom)\n"
        " — (Enter %sq%s or %sQ%s to quit)\n",
        "\033[0m", "\033[0m", "\033[31m\033[1m", "\033[0m", "\033[31m\033[1m",
        "\033[0m", "\033[31m\033[1m", "\033[0m", "\033[31m\033[1m", "\033[0m");
    scanf("%s", choice);
    input_length = strlen(choice);
    if (1 == input_length) {
      first_character_in_choice = choice[0];
      switch (first_character_in_choice) {
      case 'a':
        create_dockspacer(&where, &amount);
        break;
      case 'r':
        where = 2;
        create_dockspacer(&where, &amount);
        break;
      case 'q':
      case 'Q':
        printf("\n%s Quitting%s\n\n", "\033[31m", "\033[0m");
        exit(0);
        break;
      default:
        printf("\n%s Invalid character. Try again. "
               "(Enter 'q' or 'Q' to quit.)%s\n\n",
               "\033[31m\033[1m", "\033[0m");
        goto user_choice;
        break;
      }
    } else {
      printf("\n%s Invalid input. Try again. "
             "(Enter 'q' or 'Q' to quit.)%s\n\n",
             "\033[31m\033[1m", "\033[0m");
      goto user_choice;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x68(%rbp)
lea    0xef1(%rip),%rdi
lea    0xf14(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    0x2e35(%rip),%rax
mov    (%rax),%edx
mov    $0x50,%esi
call   1050 <fgets@plt>
lea    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,-0x60(%rbp,%rax,1)
lea    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
jne    120d <main+0x9d>
lea    0xec9(%rip),%rdi
lea    0xef8(%rip),%rsi
lea    0xeb6(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
lea    -0x60(%rbp),%rdi
call   1080 <stoi@plt>
mov    %eax,%ecx
mov    %ecx,-0x64(%rbp)
mov    $0xffffffff,%eax
cmp    %ecx,%eax
jne    124e <main+0xde>
lea    0xec4(%rip),%rdi
lea    0xeb7(%rip),%rsi
lea    0xe75(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
xor    %eax,%eax
cmp    -0x64(%rbp),%eax
jne    127f <main+0x10f>
lea    0xecb(%rip),%rdi
lea    0xe86(%rip),%rsi
lea    0xe44(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>
mov    -0x64(%rbp),%esi
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed0(%rip),%rdi
lea    0xe14(%rip),%rax
lea    0xfef(%rip),%r10
mov    %rax,%rsi
mov    %rax,%rdx
mov    %r10,%rcx
mov    %rax,%r8
mov    %r10,%r9
mov    %rax,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x80(%rbp),%rsi
lea    0xfc0(%rip),%rdi
call   1070 <scanf@plt>
lea    -0x80(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x88(%rbp)
mov    $0x1,%eax
cmp    -0x88(%rbp),%eax
jne    13b3 <main+0x243>
mov    -0x80(%rbp),%al
mov    %al,-0x81(%rbp)
movsbl -0x81(%rbp),%eax
add    $0xffffffaf,%eax
mov    %eax,%ecx
mov    %rcx,-0x90(%rbp)
sub    $0x21,%eax
ja     138d <main+0x21d>
mov    -0x90(%rbp),%rax
lea    0xcca(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x68(%rbp),%rdi
lea    -0x64(%rbp),%rsi
call   1060 <create_dockspacer@plt>
jmp    13ae <main+0x23e>
movl   $0x2,-0x68(%rbp)
lea    -0x68(%rbp),%rdi
lea    -0x64(%rbp),%rsi
call   1060 <create_dockspacer@plt>
jmp    13ae <main+0x23e>
lea    0xf30(%rip),%rdi
lea    0xd75(%rip),%rsi
lea    0xd33(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
lea    0xf1e(%rip),%rdi
lea    0xef9(%rip),%rsi
lea    0xd10(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1290 <main+0x120>
jmp    13d4 <main+0x264>
lea    0xf3a(%rip),%rdi
lea    0xed3(%rip),%rsi
lea    0xcea(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1290 <main+0x120>
jmp    13d9 <main+0x269>
xor    %eax,%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
movl   $0x1,0x8(%rsp)
lea    0xef8(%rip),%rdi
lea    0xf1b(%rip),%r14
mov    %r14,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edx
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x50,%esi
call   1050 <fgets@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
cltq
movb   $0x0,0x30(%rsp,%rax,1)
mov    %rbx,%rdi
call   1030 <strlen@plt>
cmp    $0x1,%eax
je     130a <main+0x19a>
lea    0x30(%rsp),%rdi
call   1080 <stoi@plt>
mov    %eax,0xc(%rsp)
test   %eax,%eax
je     1313 <main+0x1a3>
cmp    $0xffffffff,%eax
je     131c <main+0x1ac>
lea    0xf5e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x107f(%rip),%rbx
lea    0xf4b(%rip),%r15
lea    0x107b(%rip),%r12
lea    0x10(%rsp),%r13
lea    0x10c5(%rip),%rbp
jmp    124d <main+0xdd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r14,%r8
mov    %rbx,%r9
xor    %eax,%eax
push   %r14
push   %rbx
push   %r14
push   %rbx
push   %r14
call   1040 <printf@plt>
add    $0x30,%rsp
mov    %r12,%rdi
mov    %r13,%rsi
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %rbp,%rdi
cmp    $0x1,%eax
jne    1240 <main+0xd0>
movsbl 0x10(%rsp),%eax
add    $0xffffffaf,%eax
lea    0x1012(%rip),%rdi
cmp    $0x21,%eax
ja     1240 <main+0xd0>
lea    0xd54(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
lea    0xff8(%rip),%rdi
jmp    *%rax
movl   $0x2,0x8(%rsp)
lea    0x8(%rsp),%rdi
lea    0xc(%rsp),%rsi
call   1060 <create_dockspacer@plt>
xor    %eax,%eax
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xfb3(%rip),%rdi
lea    0xdf8(%rip),%rsi
lea    0xdb6(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
lea    0xda6(%rip),%rdi
jmp    1323 <main+0x1b3>
lea    0xe11(%rip),%rdi
jmp    1323 <main+0x1b3>
lea    0xdd0(%rip),%rdi
lea    0xdc3(%rip),%rsi
lea    0xd81(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"\0A\0A%s How many spacers would you like? %s \00"
@.str.1 = [5 x i8] c"\1B[0m\00"
@stdin = global i32 0
@.str.2 = [54 x i8] c"\0A%s Empty entry. Please run this program again...%s\0A\0A\00"
@.str.3 = [6 x i8] c"\1B[31m\00"
@.str.4 = [56 x i8] c"\0A%s Invalid entry. Please run this program again...%s\0A\0A\00"
@.str.5 = [56 x i8] c"\0A%s You entered 0. Please run this program again...%s\0A\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [301 x i8] c"\0A%s Where would you like to add your spacers? (Enter your choice as the highlighted character below.) %s \0A\0A \E2\80\94 In the %sa%spplication section (on the left, if your Dock is on the bottom)\0A \E2\80\94 Near the %sr%secycle bin (on the right, if your Dock is on the bottom)\0A \E2\80\94 (Enter %sq%s or %sQ%s to quit)\0A\00"
@.str.8 = [10 x i8] c"\1B[31m\1B[1m\00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [17 x i8] c"\0A%s Quitting%s\0A\0A\00"
@.str.11 = [66 x i8] c"\0A%s Invalid character. Try again. (Enter 'q' or 'Q' to quit.)%s\0A\0A\00"
@.str.12 = [62 x i8] c"\0A%s Invalid input. Try again. (Enter 'q' or 'Q' to quit.)%s\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [80 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca [20 x i8]
%10 = alloca i8
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %8
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%14 = load i32, i32* @stdin
%15 = call i32 @fgets(i8* %13, i32 80, i32 %14)
%16 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%17 = call i32 @strlen(i8* %16)
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 %18
store i8 0, i8* %19
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%21 = call i32 @strlen(i8* %20)
%22 = icmp eq i32 1, %21
br i1 %22, label %23, label %26
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @exit(i32 -1)
unreachable
26: ; preds = %2
%27 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%28 = call i32 @stoi(i8* %27)
store i32 %28, i32* %7
%29 = icmp eq i32 -1, %28
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 @exit(i32 -1)
unreachable
33: ; preds = %26
%34 = load i32, i32* %7
%35 = icmp eq i32 0, %34
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%38 = call i32 @exit(i32 -1)
unreachable
39: ; preds = %33
%40 = load i32, i32* %7
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %40)
br label %42
42: ; preds = %65, %62, %39
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([301 x i8], [301 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%44 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%45 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%47 = call i32 @strlen(i8* %46)
store i32 %47, i32* %11
%48 = load i32, i32* %11
%49 = icmp eq i32 1, %48
br i1 %49, label %50, label %65
50: ; preds = %42
%51 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%52 = load i8, i8* %51
store i8 %52, i8* %10
%53 = load i8, i8* %10
%54 = sext i8 %53 to i32
switch i32 %54, label %62 [
i32 97, label %55
i32 114, label %57
i32 113, label %59
i32 81, label %59
]
55: ; preds = %50
%56 = call i32 @create_dockspacer(i32* %8, i32* %7)
br label %64
57: ; preds = %50
store i32 2, i32* %8
%58 = call i32 @create_dockspacer(i32* %8, i32* %7)
br label %64
59: ; preds = %50, %50
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%61 = call i32 @exit(i32 0)
unreachable
62: ; preds = %50
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %42
64: ; preds = %57, %55
br label %67
65: ; preds = %42
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %42
67: ; preds = %64
br label %68
68: ; preds = %67
ret i32 0
}

LLVM IR (-O2):
@.str = [42 x i8] c"\0A\0A%s How many spacers would you like? %s \00"
@.str.1 = [5 x i8] c"\1B[0m\00"
@stdin = global i32 0
@.str.2 = [54 x i8] c"\0A%s Empty entry. Please run this program again...%s\0A\0A\00"
@.str.3 = [6 x i8] c"\1B[31m\00"
@.str.4 = [56 x i8] c"\0A%s Invalid entry. Please run this program again...%s\0A\0A\00"
@.str.5 = [56 x i8] c"\0A%s You entered 0. Please run this program again...%s\0A\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@.str.7 = [301 x i8] c"\0A%s Where would you like to add your spacers? (Enter your choice as the highlighted character below.) %s \0A\0A \E2\80\94 In the %sa%spplication section (on the left, if your Dock is on the bottom)\0A \E2\80\94 Near the %sr%secycle bin (on the right, if your Dock is on the bottom)\0A \E2\80\94 (Enter %sq%s or %sQ%s to quit)\0A\00"
@.str.8 = [10 x i8] c"\1B[31m\1B[1m\00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [17 x i8] c"\0A%s Quitting%s\0A\0A\00"
@.str.11 = [66 x i8] c"\0A%s Invalid character. Try again. (Enter 'q' or 'Q' to quit.)%s\0A\0A\00"
@.str.12 = [62 x i8] c"\0A%s Invalid input. Try again. (Enter 'q' or 'Q' to quit.)%s\0A\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [80 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca [20 x i8]
%7 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%8 = bitcast i32* %4 to i8*
%9 = bitcast i32* %5 to i8*
store i32 1, i32* %5
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* @stdin
%12 = call i32 @fgets(i8* %7, i32 80, i32 %11)
%13 = call i32 @strlen(i8* %7)
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 %14
store i8 0, i8* %15
%16 = call i32 @strlen(i8* %7)
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 @exit(i32 -1)
unreachable
21: ; preds = %2
%22 = call i32 @stoi(i8* %7)
store i32 %22, i32* %4
switch i32 %22, label %29 [
i32 -1, label %23
i32 0, label %26
]
23: ; preds = %21
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @exit(i32 -1)
unreachable
26: ; preds = %21
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @exit(i32 -1)
unreachable
29: ; preds = %21
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %22)
%31 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
br label %32
32: ; preds = %44, %29
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([301 x i8], [301 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %31)
%35 = call i32 @strlen(i8* %31)
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %44
37: ; preds = %32
%38 = load i8, i8* %31
%39 = sext i8 %38 to i32
switch i32 %39, label %44 [
i32 97, label %47
i32 114, label %40
i32 113, label %41
i32 81, label %41
]
40: ; preds = %37
store i32 2, i32* %5
br label %47
41: ; preds = %37, %37
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%43 = call i32 @exit(i32 0)
unreachable
44: ; preds = %37, %32
%45 = phi i8* [ getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0), %32 ], [ getelementptr inbounds ([66 x i8], [66 x i8]* @.str.11, i64 0, i64 0), %37 ]
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %45, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %32
47: ; preds = %37, %40
%48 = call i32 @create_dockspacer(i32* %5, i32* %4)
ret i32 0
}