#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  char input, dummy;
  int i = 0, j = 0, hour = 0, weekends = 0, weekdays = 0, inv_d = 0, inv_h = 0,
      work = 0, asleep = 0, off = 0;
  printf("CSCE 1030 - Program Two - Ahmad Rashed - arashed31@gmail.com - CSP03 "
         "\n\n");
  for (i = 0; i < 5; i++) {
    printf("Enter day of the Week (S M T W R F A): ");
    scanf("%c%c", &input, &dummy);
    if (input == 'S' || input == 'A') {
      printf("It's the weekend! \n\n");
      weekends++;
    } else {
      if (input == 'M' || input == 'T' || input == 'W' || input == 'R' ||
          input == 'F') {
        weekdays++;
        do {
          printf("Enter hour of the day (0 - 23): ");
          scanf("%d%c", &hour, &dummy);
          j = 0;
          if (hour >= 0 && hour < 8) {
            printf("You should be asleep. \n\n");
            asleep++;
          } else if (hour >= 8 && hour < 17) {
            printf("You should be at work. \n\n");
            work++;
          } else if (hour >= 24 || hour < 0) {
            printf("Invalid time, try again. \n\n");
            inv_h++;
            j = 1;
          } else {
            printf("You should be off work. \n\n");
            off++;
          }
        } while (j != 0);
      } else {
        printf("You entered an invalid day. \n\n");
        inv_d++;
      }
    }
  }
  printf("\nSummary of Totals! \n");
  printf("%d Weekends \n", weekends);
  printf("%d Weekdays \n", weekdays);
  printf("%d Invalid Days \n", inv_d);
  printf("%d At Work \n", work);
  printf("%d Still Asleep \n", asleep);
  printf("%d Off Work \n", off);
  printf("%d Invalid Hours \n", inv_h);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    135e <main+0x23e>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
lea    -0x5(%rbp),%rsi
lea    -0x6(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x53,%eax
je     11d2 <main+0xb2>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jne    11ee <main+0xce>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    134b <main+0x22b>
movsbl -0x5(%rbp),%eax
cmp    $0x4d,%eax
je     122f <main+0x10f>
movsbl -0x5(%rbp),%eax
cmp    $0x54,%eax
je     122f <main+0x10f>
movsbl -0x5(%rbp),%eax
cmp    $0x57,%eax
je     122f <main+0x10f>
movsbl -0x5(%rbp),%eax
cmp    $0x52,%eax
je     122f <main+0x10f>
movsbl -0x5(%rbp),%eax
cmp    $0x46,%eax
jne    132f <main+0x20f>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5e(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x6(%rbp),%rdx
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     1293 <main+0x173>
cmpl   $0x8,-0x14(%rbp)
jge    1293 <main+0x173>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    131b <main+0x1fb>
cmpl   $0x8,-0x14(%rbp)
jl     12c3 <main+0x1a3>
cmpl   $0x11,-0x14(%rbp)
jge    12c3 <main+0x1a3>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1316 <main+0x1f6>
cmpl   $0x18,-0x14(%rbp)
jge    12d7 <main+0x1b7>
cmpl   $0x0,-0x14(%rbp)
jge    12fa <main+0x1da>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
movl   $0x1,-0x10(%rbp)
jmp    1311 <main+0x1f1>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1316 <main+0x1f6>
jmp    131b <main+0x1fb>
jmp    1320 <main+0x200>
cmpl   $0x0,-0x10(%rbp)
jne    1238 <main+0x118>
jmp    1346 <main+0x226>
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    134b <main+0x22b>
jmp    1350 <main+0x230>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    118a <main+0x6a>
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xdd6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movl   $0x0,0x8(%rsp)
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xf(%rsp),%r13
lea    0xecf(%rip),%r14
lea    0xee9(%rip),%r12
lea    0x8(%rsp),%rbp
movl   $0x0,0x10(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x14(%rsp)
xor    %ebx,%ebx
movl   $0x0,0x18(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x1c(%rsp)
xor    %r15d,%r15d
jmp    11cf <main+0x9f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xfd2(%rip),%rdi
call   1030 <puts@plt>
addl   $0x1,0x20(%rsp)
add    $0x1,%r15d
cmp    $0x5,%r15d
je     12d3 <main+0x1a3>
lea    0xe2a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe44(%rip),%rdi
lea    0x7(%rsp),%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x7(%rsp),%al
add    $0xbf,%al
cmp    $0x16,%al
ja     1291 <main+0x161>
movzbl %al,%eax
mov    $0x4a1020,%ecx
bt     %rax,%rcx
jae    1270 <main+0x140>
addl   $0x1,0x24(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x8(%rsp),%eax
cmp    $0x8,%eax
jb     11b0 <main+0x80>
lea    -0x8(%rax),%ecx
cmp    $0x8,%ecx
jbe    12a7 <main+0x177>
cmp    $0x17,%eax
jbe    12bd <main+0x18d>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
add    $0x1,%ebx
jmp    1220 <main+0xf0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x40001,%ecx
bt     %rax,%rcx
jae    1291 <main+0x161>
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
addl   $0x1,0x1c(%rsp)
jmp    11c1 <main+0x91>
lea    0xe85(%rip),%rdi
call   1030 <puts@plt>
addl   $0x1,0x18(%rsp)
jmp    11c1 <main+0x91>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
addl   $0x1,0x14(%rsp)
jmp    11c1 <main+0x91>
lea    0xe77(%rip),%rdi
call   1030 <puts@plt>
addl   $0x1,0x10(%rsp)
jmp    11c1 <main+0x91>
lea    0xe2e(%rip),%rdi
call   1030 <puts@plt>
lea    0xd6d(%rip),%rdi
mov    0x1c(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd69(%rip),%rdi
mov    0x24(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd65(%rip),%rdi
mov    0x18(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd65(%rip),%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd60(%rip),%rdi
mov    0x20(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd60(%rip),%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd5c(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [72 x i8] c"CSCE 1030 - Program Two - Ahmad Rashed - arashed31@gmail.com - CSP03 \0A\0A\00"
@.str.1 = [40 x i8] c"Enter day of the Week (S M T W R F A): \00"
@.str.2 = [5 x i8] c"%c%c\00"
@.str.3 = [21 x i8] c"It's the weekend! \0A\0A\00"
@.str.4 = [33 x i8] c"Enter hour of the day (0 - 23): \00"
@.str.5 = [5 x i8] c"%d%c\00"
@.str.6 = [25 x i8] c"You should be asleep. \0A\0A\00"
@.str.7 = [26 x i8] c"You should be at work. \0A\0A\00"
@.str.8 = [28 x i8] c"Invalid time, try again. \0A\0A\00"
@.str.9 = [27 x i8] c"You should be off work. \0A\0A\00"
@.str.10 = [31 x i8] c"You entered an invalid day. \0A\0A\00"
@.str.11 = [22 x i8] c"\0ASummary of Totals! \0A\00"
@.str.12 = [14 x i8] c"%d Weekends \0A\00"
@.str.13 = [14 x i8] c"%d Weekdays \0A\00"
@.str.14 = [18 x i8] c"%d Invalid Days \0A\00"
@.str.15 = [13 x i8] c"%d At Work \0A\00"
@.str.16 = [18 x i8] c"%d Still Asleep \0A\00"
@.str.17 = [14 x i8] c"%d Off Work \0A\00"
@.str.18 = [19 x i8] c"%d Invalid Hours \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %4
br label %15
15: ; preds = %104, %0
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 5
br i1 %17, label %18, label %107
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %2, i8* %3)
%21 = load i8, i8* %2
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 83
br i1 %23, label %28, label %24
24: ; preds = %18
%25 = load i8, i8* %2
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 65
br i1 %27, label %28, label %32
28: ; preds = %24, %18
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%30 = load i32, i32* %7
%31 = add nsw i32 %30, 1
store i32 %31, i32* %7
br label %103
32: ; preds = %24
%33 = load i8, i8* %2
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 77
br i1 %35, label %52, label %36
36: ; preds = %32
%37 = load i8, i8* %2
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 84
br i1 %39, label %52, label %40
40: ; preds = %36
%41 = load i8, i8* %2
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 87
br i1 %43, label %52, label %44
44: ; preds = %40
%45 = load i8, i8* %2
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 82
br i1 %47, label %52, label %48
48: ; preds = %44
%49 = load i8, i8* %2
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 70
br i1 %51, label %52, label %98
52: ; preds = %48, %44, %40, %36, %32
%53 = load i32, i32* %8
%54 = add nsw i32 %53, 1
store i32 %54, i32* %8
br label %55
55: ; preds = %94, %52
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32* %6, i8* %3)
store i32 0, i32* %5
%58 = load i32, i32* %6
%59 = icmp sge i32 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %55
%61 = load i32, i32* %6
%62 = icmp slt i32 %61, 8
br i1 %62, label %63, label %67
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%65 = load i32, i32* %12
%66 = add nsw i32 %65, 1
store i32 %66, i32* %12
br label %93
67: ; preds = %60, %55
%68 = load i32, i32* %6
%69 = icmp sge i32 %68, 8
br i1 %69, label %70, label %77
70: ; preds = %67
%71 = load i32, i32* %6
%72 = icmp slt i32 %71, 17
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%75 = load i32, i32* %11
%76 = add nsw i32 %75, 1
store i32 %76, i32* %11
br label %92
77: ; preds = %70, %67
%78 = load i32, i32* %6
%79 = icmp sge i32 %78, 24
br i1 %79, label %83, label %80
80: ; preds = %77
%81 = load i32, i32* %6
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %80, %77
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%85 = load i32, i32* %10
%86 = add nsw i32 %85, 1
store i32 %86, i32* %10
store i32 1, i32* %5
br label %91
87: ; preds = %80
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%89 = load i32, i32* %13
%90 = add nsw i32 %89, 1
store i32 %90, i32* %13
br label %91
91: ; preds = %87, %83
br label %92
92: ; preds = %91, %73
br label %93
93: ; preds = %92, %63
br label %94
94: ; preds = %93
%95 = load i32, i32* %5
%96 = icmp ne i32 %95, 0
br i1 %96, label %55, label %97
97: ; preds = %94
br label %102
98: ; preds = %48
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%100 = load i32, i32* %9
%101 = add nsw i32 %100, 1
store i32 %101, i32* %9
br label %102
102: ; preds = %98, %97
br label %103
103: ; preds = %102, %28
br label %104
104: ; preds = %103
%105 = load i32, i32* %4
%106 = add nsw i32 %105, 1
store i32 %106, i32* %4
br label %15
107: ; preds = %15
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%109 = load i32, i32* %7
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %109)
%111 = load i32, i32* %8
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %111)
%113 = load i32, i32* %9
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i32 %113)
%115 = load i32, i32* %11
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %115)
%117 = load i32, i32* %12
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i32 %117)
%119 = load i32, i32* %13
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0), i32 %119)
%121 = load i32, i32* %10
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0), i32 %121)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [40 x i8] c"Enter day of the Week (S M T W R F A): \00"
@.str.2 = [5 x i8] c"%c%c\00"
@.str.4 = [33 x i8] c"Enter hour of the day (0 - 23): \00"
@.str.5 = [5 x i8] c"%d%c\00"
@.str.12 = [14 x i8] c"%d Weekends \0A\00"
@.str.13 = [14 x i8] c"%d Weekdays \0A\00"
@.str.14 = [18 x i8] c"%d Invalid Days \0A\00"
@.str.15 = [13 x i8] c"%d At Work \0A\00"
@.str.16 = [18 x i8] c"%d Still Asleep \0A\00"
@.str.17 = [14 x i8] c"%d Off Work \0A\00"
@.str.18 = [19 x i8] c"%d Invalid Hours \0A\00"
@str = [71 x i8] c"CSCE 1030 - Program Two - Ahmad Rashed - arashed31@gmail.com - CSP03 \0A\00"
@str.19 = [21 x i8] c"\0ASummary of Totals! \00"
@str.20 = [30 x i8] c"You entered an invalid day. \0A\00"
@str.21 = [26 x i8] c"You should be off work. \0A\00"
@str.22 = [27 x i8] c"Invalid time, try again. \0A\00"
@str.23 = [25 x i8] c"You should be at work. \0A\00"
@str.24 = [24 x i8] c"You should be asleep. \0A\00"
@str.25 = [20 x i8] c"It's the weekend! \0A\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
br label %6
6: ; preds = %0, %54
%7 = phi i32 [ 0, %0 ], [ %61, %54 ]
%8 = phi i32 [ 0, %0 ], [ %60, %54 ]
%9 = phi i32 [ 0, %0 ], [ %59, %54 ]
%10 = phi i32 [ 0, %0 ], [ %58, %54 ]
%11 = phi i32 [ 0, %0 ], [ %57, %54 ]
%12 = phi i32 [ 0, %0 ], [ %56, %54 ]
%13 = phi i32 [ 0, %0 ], [ %55, %54 ]
%14 = phi i32 [ 0, %0 ], [ %62, %54 ]
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* %1, i8* %2)
%17 = load i8, i8* %1
switch i8 %17, label %51 [
i8 83, label %18
i8 65, label %18
i8 87, label %21
i8 84, label %21
i8 82, label %21
i8 77, label %21
i8 70, label %21
]
18: ; preds = %6, %6
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.25, i64 0, i64 0))
%20 = add nsw i32 %13, 1
br label %54
21: ; preds = %6, %6, %6, %6, %6
%22 = add nsw i32 %12, 1
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32* %3, i8* %2)
%25 = load i32, i32* %3
%26 = icmp ult i32 %25, 8
br i1 %26, label %27, label %31
27: ; preds = %44, %21
%28 = phi i32 [ %10, %21 ], [ %46, %44 ]
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.24, i64 0, i64 0))
%30 = add nsw i32 %8, 1
br label %54
31: ; preds = %21, %44
%32 = phi i32 [ %49, %44 ], [ %25, %21 ]
%33 = phi i32 [ %46, %44 ], [ %10, %21 ]
%34 = add i32 %32, -8
%35 = icmp ult i32 %34, 9
br i1 %35, label %36, label %39
36: ; preds = %31
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.23, i64 0, i64 0))
%38 = add nsw i32 %9, 1
br label %54
39: ; preds = %31
%40 = icmp ugt i32 %32, 23
br i1 %40, label %44, label %41
41: ; preds = %39
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.21, i64 0, i64 0))
%43 = add nsw i32 %7, 1
br label %54
44: ; preds = %39
%45 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.22, i64 0, i64 0))
%46 = add nsw i32 %33, 1
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%48 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32* %3, i8* %2)
%49 = load i32, i32* %3
%50 = icmp ult i32 %49, 8
br i1 %50, label %27, label %31
51: ; preds = %6
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.20, i64 0, i64 0))
%53 = add nsw i32 %11, 1
br label %54
54: ; preds = %36, %41, %27, %18, %51
%55 = phi i32 [ %20, %18 ], [ %13, %51 ], [ %13, %27 ], [ %13, %41 ], [ %13, %36 ]
%56 = phi i32 [ %12, %18 ], [ %12, %51 ], [ %22, %27 ], [ %22, %41 ], [ %22, %36 ]
%57 = phi i32 [ %11, %18 ], [ %53, %51 ], [ %11, %27 ], [ %11, %41 ], [ %11, %36 ]
%58 = phi i32 [ %10, %18 ], [ %10, %51 ], [ %28, %27 ], [ %33, %41 ], [ %33, %36 ]
%59 = phi i32 [ %9, %18 ], [ %9, %51 ], [ %9, %27 ], [ %9, %41 ], [ %38, %36 ]
%60 = phi i32 [ %8, %18 ], [ %8, %51 ], [ %30, %27 ], [ %8, %41 ], [ %8, %36 ]
%61 = phi i32 [ %7, %18 ], [ %7, %51 ], [ %7, %27 ], [ %43, %41 ], [ %7, %36 ]
%62 = add nuw nsw i32 %14, 1
%63 = icmp eq i32 %62, 5
br i1 %63, label %64, label %6
64: ; preds = %54
%65 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0))
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i32 %55)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0), i32 %56)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0), i32 %57)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %59)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0), i32 %60)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0), i32 %61)
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.18, i64 0, i64 0), i32 %58)
ret i32 0
}