#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() {
  int choice = 100;
  while (choice != 0) {
    printf("\n 1. Factorial\n 2. Prime\n 3. Odd/Even\n 4. Exit\n?");
    scanf("%d", &choice);
    switch (choice) {
    case 1: {
      long long fact = 1, number = 0;
      scanf("%lld", &number);
      while (number > 1) {
        fact *= number--;
      }
      printf("Factorial: %lld", fact);
    } break;
    case 2: {
      int number = 0;
      scanf("%d", number);
      int primes[301];
      for (int i = 1; i <= 300; i++)
        primes[i] = 1;
      for (int i = 2; i <= 300; i++) {
        for (int j = i * 2; j <= 300; j++) {
          if (j % i == 0)
            primes[j] = 0;
        }
      }
      if (primes[number] == 1)
        printf("The number you entered is prime.\n");
      else
        printf("The number you entered is not prime.\n");
    } break;
    case 3: {
      int number;
      scanf("%d", &number);
      printf("The number you entered was %s", number % 2 == 0 ? "even" : "odd");
    } break;
    case 4:
      choice = 0;
      break;
    default:
      printf("\n Invalid Input\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4f0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x64,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     138a <main+0x26a>
lea    0xec6(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x4e9(%rbp)
call   1030 <printf@plt>
mov    -0x4e9(%rbp),%al
lea    0xedd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x4e8(%rbp)
sub    $0x3,%eax
ja     1377 <main+0x257>
mov    -0x4e8(%rbp),%rax
lea    0xe6d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movq   $0x1,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
lea    0xe9c(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpq   $0x1,-0x18(%rbp)
jle    11e6 <main+0xc6>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x18(%rbp)
imul   -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
jmp    11be <main+0x9e>
mov    -0x10(%rbp),%rsi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1385 <main+0x265>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
movl   $0x1,-0x4d4(%rbp)
cmpl   $0x12c,-0x4d4(%rbp)
jg     1255 <main+0x135>
movslq -0x4d4(%rbp),%rax
movl   $0x1,-0x4d0(%rbp,%rax,4)
mov    -0x4d4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d4(%rbp)
jmp    121f <main+0xff>
movl   $0x2,-0x4d8(%rbp)
cmpl   $0x12c,-0x4d8(%rbp)
jg     12e8 <main+0x1c8>
mov    -0x4d8(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x4dc(%rbp)
cmpl   $0x12c,-0x4dc(%rbp)
jg     12cf <main+0x1af>
mov    -0x4dc(%rbp),%eax
cltd
idivl  -0x4d8(%rbp)
cmp    $0x0,%edx
jne    12b6 <main+0x196>
movslq -0x4dc(%rbp),%rax
movl   $0x0,-0x4d0(%rbp,%rax,4)
jmp    12bb <main+0x19b>
mov    -0x4dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4dc(%rbp)
jmp    127e <main+0x15e>
jmp    12d4 <main+0x1b4>
mov    -0x4d8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4d8(%rbp)
jmp    125f <main+0x13f>
movslq -0x1c(%rbp),%rax
cmpl   $0x1,-0x4d0(%rbp,%rax,4)
01
jne    130d <main+0x1ed>
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131b <main+0x1fb>
lea    0xd62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1385 <main+0x265>
lea    0xd1a(%rip),%rdi
lea    -0x4e0(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x4e0(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
lea    0xd75(%rip),%rsi
lea    0xd69(%rip),%rax
cmp    $0x0,%edx
cmove  %rax,%rsi
lea    0xd3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1385 <main+0x265>
movl   $0x0,-0x8(%rbp)
jmp    1385 <main+0x265>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1139 <main+0x19>
xor    %eax,%eax
add    $0x4f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4c8,%rsp
movl   $0x64,0xc(%rsp)
lea    0xed0(%rip),%r14
lea    0xefa(%rip),%rbx
lea    0xc(%rsp),%r15
lea    0xead(%rip),%r12
lea    0x10(%rsp),%rbp
lea    0xef5(%rip),%r13
jmp    1197 <main+0x67>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xf4a(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
je     135c <main+0x22c>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1180 <main+0x50>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
movq   $0x0,0x10(%rsp)
lea    0xe8c(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x10(%rsp),%rax
mov    $0x1,%esi
cmp    $0x2,%rax
jl     121a <main+0xea>
mov    $0x1,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
imul   %rax,%rsi
lea    -0x1(%rax),%rcx
cmp    $0x2,%rax
mov    %rcx,%rax
ja     1200 <main+0xd0>
movq   $0x1,0x10(%rsp)
lea    0xe33(%rip),%rdi
jmp    12b7 <main+0x187>
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    $0x1d,%eax
movaps 0xdb8(%rip),%xmm0
nopl   0x0(%rax,%rax,1)
movups %xmm0,-0x60(%rsp,%rax,4)
movups %xmm0,-0x50(%rsp,%rax,4)
cmp    $0x13d,%rax
je     12d0 <main+0x1a0>
movups %xmm0,-0x40(%rsp,%rax,4)
movups %xmm0,-0x30(%rsp,%rax,4)
movups %xmm0,-0x20(%rsp,%rax,4)
movups %xmm0,-0x10(%rsp,%rax,4)
movups %xmm0,(%rsp,%rax,4)
movups %xmm0,0x10(%rsp,%rax,4)
add    $0x20,%rax
jmp    1250 <main+0x120>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
testb  $0x1,0x10(%rsp)
lea    0xdde(%rip),%rsi
lea    0xdd2(%rip),%rax
cmove  %rax,%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0xc(%rsp)
jne    1197 <main+0x67>
jmp    135c <main+0x22c>
xchg   %ax,%ax
movups %xmm0,0x4b4(%rsp)
mov    $0x2,%esi
mov    $0x4,%edi
jmp    12ff <main+0x1cf>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%esi
add    $0x2,%rdi
cmp    $0x12d,%esi
je     1340 <main+0x210>
mov    %rdi,%rcx
cmp    $0x96,%esi
jbe    1320 <main+0x1f0>
jmp    12f0 <main+0x1c0>
nopl   0x0(%rax)
lea    0x1(%rcx),%rax
cmp    $0x12c,%rcx
mov    %rax,%rcx
jae    12f0 <main+0x1c0>
mov    %ecx,%eax
xor    %edx,%edx
div    %esi
test   %edx,%edx
jne    1310 <main+0x1e0>
movl   $0x0,0x10(%rsp,%rcx,4)
jmp    1310 <main+0x1e0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmpl   $0x1,0x10(%rsp)
lea    0xd3f(%rip),%rdi
lea    0xd5d(%rip),%rax
cmove  %rax,%rdi
jmp    1187 <main+0x57>
xor    %eax,%eax
add    $0x4c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"\0A 1. Factorial\0A 2. Prime\0A 3. Odd/Even\0A 4. Exit\0A?\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [5 x i8] c"%lld\00"
@.str.3 = [16 x i8] c"Factorial: %lld\00"
@.str.4 = [34 x i8] c"The number you entered is prime.\0A\00"
@.str.5 = [38 x i8] c"The number you entered is not prime.\0A\00"
@.str.6 = [30 x i8] c"The number you entered was %s\00"
@.str.7 = [5 x i8] c"even\00"
@.str.8 = [4 x i8] c"odd\00"
@.str.9 = [17 x i8] c"\0A Invalid Input\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64
%5 = alloca i32
%6 = alloca [301 x i32]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
store i32 100, i32* %2
br label %11
11: ; preds = %93, %0
%12 = load i32, i32* %2
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %94
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%17 = load i32, i32* %2
switch i32 %17, label %91 [
i32 1, label %18
i32 2, label %31
i32 3, label %82
i32 4, label %90
]
18: ; preds = %14
store i64 1, i64* %3
store i64 0, i64* %4
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64* %4)
br label %20
20: ; preds = %23, %18
%21 = load i64, i64* %4
%22 = icmp sgt i64 %21, 1
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i64, i64* %4
%25 = add nsw i64 %24, -1
store i64 %25, i64* %4
%26 = load i64, i64* %3
%27 = mul nsw i64 %26, %24
store i64 %27, i64* %3
br label %20
28: ; preds = %20
%29 = load i64, i64* %3
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i64 %29)
br label %93
31: ; preds = %14
store i32 0, i32* %5
%32 = load i32, i32* %5
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %32)
store i32 1, i32* %7
br label %34
34: ; preds = %41, %31
%35 = load i32, i32* %7
%36 = icmp sle i32 %35, 300
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = load i32, i32* %7
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [301 x i32], [301 x i32]* %6, i64 0, i64 %39
store i32 1, i32* %40
br label %41
41: ; preds = %37
%42 = load i32, i32* %7
%43 = add nsw i32 %42, 1
store i32 %43, i32* %7
br label %34
44: ; preds = %34
store i32 2, i32* %8
br label %45
45: ; preds = %68, %44
%46 = load i32, i32* %8
%47 = icmp sle i32 %46, 300
br i1 %47, label %48, label %71
48: ; preds = %45
%49 = load i32, i32* %8
%50 = mul nsw i32 %49, 2
store i32 %50, i32* %9
br label %51
51: ; preds = %64, %48
%52 = load i32, i32* %9
%53 = icmp sle i32 %52, 300
br i1 %53, label %54, label %67
54: ; preds = %51
%55 = load i32, i32* %9
%56 = load i32, i32* %8
%57 = srem i32 %55, %56
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %54
%60 = load i32, i32* %9
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [301 x i32], [301 x i32]* %6, i64 0, i64 %61
store i32 0, i32* %62
br label %63
63: ; preds = %59, %54
br label %64
64: ; preds = %63
%65 = load i32, i32* %9
%66 = add nsw i32 %65, 1
store i32 %66, i32* %9
br label %51
67: ; preds = %51
br label %68
68: ; preds = %67
%69 = load i32, i32* %8
%70 = add nsw i32 %69, 1
store i32 %70, i32* %8
br label %45
71: ; preds = %45
%72 = load i32, i32* %5
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [301 x i32], [301 x i32]* %6, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %79
77: ; preds = %71
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
br label %81
79: ; preds = %71
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
br label %81
81: ; preds = %79, %77
br label %93
82: ; preds = %14
%83 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%84 = load i32, i32* %10
%85 = srem i32 %84, 2
%86 = icmp eq i32 %85, 0
%87 = zext i1 %86 to i64
%88 = select i1 %86, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %88)
br label %93
90: ; preds = %14
store i32 0, i32* %2
br label %93
91: ; preds = %14
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %93
93: ; preds = %91, %90, %82, %81, %28
br label %11
94: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [49 x i8] c"\0A 1. Factorial\0A 2. Prime\0A 3. Odd/Even\0A 4. Exit\0A?\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [5 x i8] c"%lld\00"
@.str.3 = [16 x i8] c"Factorial: %lld\00"
@.str.6 = [30 x i8] c"The number you entered was %s\00"
@.str.7 = [5 x i8] c"even\00"
@.str.8 = [4 x i8] c"odd\00"
@str = [37 x i8] c"The number you entered is not prime.\00"
@str.10 = [33 x i8] c"The number you entered is prime.\00"
@str.11 = [16 x i8] c"\0A Invalid Input\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca [301 x i32]
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
store i32 100, i32* %1
%6 = bitcast i32* %4 to i8*
%7 = bitcast [301 x i32]* %3 to i8*
%8 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 0
%9 = bitcast i64* %2 to i8*
%10 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 297
%11 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 298
%12 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 299
%13 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 300
br label %14
14: ; preds = %0, %92
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%17 = load i32, i32* %1
switch i32 %17, label %90 [
i32 1, label %18
i32 2, label %32
i32 3, label %83
i32 4, label %95
]
18: ; preds = %14
store i64 0, i64* %2
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64* %2)
%20 = load i64, i64* %2
%21 = icmp sgt i64 %20, 1
br i1 %21, label %22, label %29
22: ; preds = %18, %22
%23 = phi i64 [ %26, %22 ], [ 1, %18 ]
%24 = phi i64 [ %25, %22 ], [ %20, %18 ]
%25 = add nsw i64 %24, -1
%26 = mul nsw i64 %23, %24
%27 = icmp ugt i64 %24, 2
br i1 %27, label %22, label %28
28: ; preds = %22
store i64 1, i64* %2
br label %29
29: ; preds = %28, %18
%30 = phi i64 [ %26, %28 ], [ 1, %18 ]
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i64 %30)
br label %92
32: ; preds = %14
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 0)
br label %34
34: ; preds = %42, %32
%35 = phi i64 [ 0, %32 ], [ %58, %42 ]
%36 = or i64 %35, 1
%37 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 %36
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %38
%39 = getelementptr inbounds i32, i32* %37, i64 4
%40 = bitcast i32* %39 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %40
%41 = icmp eq i64 %35, 288
br i1 %41, label %59, label %42
42: ; preds = %34
%43 = or i64 %35, 9
%44 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 %43
%45 = bitcast i32* %44 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %45
%46 = getelementptr inbounds i32, i32* %44, i64 4
%47 = bitcast i32* %46 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %47
%48 = or i64 %35, 17
%49 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 %48
%50 = bitcast i32* %49 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %50
%51 = getelementptr inbounds i32, i32* %49, i64 4
%52 = bitcast i32* %51 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %52
%53 = or i64 %35, 25
%54 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 %53
%55 = bitcast i32* %54 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %55
%56 = getelementptr inbounds i32, i32* %54, i64 4
%57 = bitcast i32* %56 to <4 x i32>*
store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32>* %57
%58 = add nuw nsw i64 %35, 32
br label %34
59: ; preds = %34
store i32 1, i32* %10
store i32 1, i32* %11
store i32 1, i32* %12
store i32 1, i32* %13
br label %65
60: ; preds = %69
%61 = load i32, i32* %8
%62 = icmp eq i32 %61, 1
%63 = select i1 %62, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @str.10, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0)
%64 = call i32 @puts(i8* dereferenceable(1) %63)
br label %92
65: ; preds = %59, %69
%66 = phi i64 [ %71, %69 ], [ 4, %59 ]
%67 = phi i32 [ %70, %69 ], [ 2, %59 ]
%68 = icmp ult i32 %67, 151
br i1 %68, label %73, label %69
69: ; preds = %80, %65
%70 = add nuw nsw i32 %67, 1
%71 = add nuw nsw i64 %66, 2
%72 = icmp eq i32 %70, 301
br i1 %72, label %60, label %65
73: ; preds = %65, %80
%74 = phi i64 [ %81, %80 ], [ %66, %65 ]
%75 = trunc i64 %74 to i32
%76 = urem i32 %75, %67
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %73
%79 = getelementptr inbounds [301 x i32], [301 x i32]* %3, i64 0, i64 %74
store i32 0, i32* %79
br label %80
80: ; preds = %73, %78
%81 = add nuw nsw i64 %74, 1
%82 = icmp ult i64 %74, 300
br i1 %82, label %73, label %69
83: ; preds = %14
%84 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%85 = load i32, i32* %4
%86 = and i32 %85, 1
%87 = icmp eq i32 %86, 0
%88 = select i1 %87, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0)
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %88)
br label %92
90: ; preds = %14
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.11, i64 0, i64 0))
br label %92
92: ; preds = %90, %83, %60, %29
%93 = load i32, i32* %1
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %14
95: ; preds = %92, %14
ret i32 0
}