#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 *, ...);
char tolower(char);
int main(void) {
  int a, b, c, d, r;
  char yesno[25];
  printf("A mathematical boomerang puzzle as invented by the ancient\n"
         "mathematician Nicomachus.\n\n");
  do {
    printf("Think of a number between 1 and 100\n");
    printf("Your number divided by %d has a remainder of ? ", 3);
    scanf("%d", &a);
    printf("Your number divided by %d has a remainder of ? ", 5);
    scanf("%d", &b);
    printf("Your number divided by %d has a remainder of ? ", 7);
    scanf("%d", &c);
    printf("\n\nSo your number is...\n\n");
    r = 70 * a + 21 * b + 15 * c;
    while (r > 105)
      r -= 105;
    printf("\t%d!\n\n", r);
    printf("Am I correct? ");
    scanf("%s", yesno);
    if (tolower(yesno[0]) != 'y') {
      printf("\nWhat was your number? ");
      scanf("%d", &d);
      if (d - r) {
        if (!(d % 3 == a))
          printf("%d divided by %d has a remainder of %d, not %d.\n", d, 3,
                 d % 3, a);
        if (!(d % 5 == b))
          printf("%d divided by %d has a remainder of %d, not %d.\n", d, 5,
                 d % 5, b);
        if (!(d % 7 == c))
          printf("%d divided by %d has a remainder of %d, not %d.\n", d, 7,
                 d % 7, c);
      } else
        printf("That's what I said, %d. You had me worried.\n", r);
    } else
      printf("Yes, I knew it.\n");
    printf("\nThank you. Would you like to play again? ");
    scanf("%s", yesno);
  } while (tolower(yesno[0]) != 'n');
  printf("Good Bye, then.");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xef5(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xed0(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
imul   $0x46,-0x8(%rbp),%eax
imul   $0x15,-0xc(%rbp),%ecx
add    %ecx,%eax
imul   $0xf,-0x10(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x69,-0x18(%rbp)
jle    1203 <main+0xd3>
mov    -0x18(%rbp),%eax
sub    $0x69,%eax
mov    %eax,-0x18(%rbp)
jmp    11eb <main+0xbb>
mov    -0x18(%rbp),%esi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movsbl -0x40(%rbp),%edi
call   1040 <tolower@plt>
movsbl %al,%eax
cmp    $0x79,%eax
je     1344 <main+0x214>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x14(%rbp),%eax
sub    -0x18(%rbp),%eax
cmp    $0x0,%eax
je     132e <main+0x1fe>
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    -0x8(%rbp),%edx
je     12b3 <main+0x183>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0x8(%rbp),%r8d
lea    0xe52(%rip),%rdi
mov    $0x3,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    -0xc(%rbp),%edx
je     12ee <main+0x1be>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0xc(%rbp),%r8d
lea    0xe17(%rip),%rdi
mov    $0x5,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    -0x10(%rbp),%edx
je     1329 <main+0x1f9>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0x10(%rbp),%r8d
lea    0xddc(%rip),%rdi
mov    $0x7,%edx
mov    $0x0,%al
call   1030 <printf@plt>
jmp    133f <main+0x20f>
mov    -0x18(%rbp),%esi
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1352 <main+0x222>
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movsbl -0x40(%rbp),%edi
call   1040 <tolower@plt>
movsbl %al,%eax
cmp    $0x6e,%eax
jne    114d <main+0x1d>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9f(%rip),%r15
lea    0xec8(%rip),%rbx
lea    0xeda(%rip),%rbp
lea    0x10(%rsp),%r14
lea    0xf47(%rip),%r12
jmp    11b5 <main+0x75>
nopl   (%rax)
lea    0x1008(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movsbl 0x10(%rsp),%edi
call   1050 <tolower@plt>
cmp    $0x6e,%al
je     13c5 <main+0x285>
lea    0xf97(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r15,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xf55(%rip),%rdi
call   1030 <puts@plt>
imul   $0x46,0xc(%rsp),%eax
mov    0x8(%rsp),%ecx
lea    (%rcx,%rcx,4),%edx
lea    (%rcx,%rdx,4),%ecx
add    %eax,%ecx
mov    0x4(%rsp),%eax
lea    (%rax,%rax,4),%eax
lea    (%rax,%rax,2),%eax
add    %ecx,%eax
cmp    $0x69,%eax
mov    $0x69,%ecx
cmovl  %eax,%ecx
mov    %eax,%edx
sub    %ecx,%edx
add    $0x68,%edx
imul   $0x38138139,%rdx,%rcx
shr    $0x20,%rcx
mov    %edx,%esi
sub    %ecx,%esi
shr    %esi
add    %ecx,%esi
shr    $0x6,%esi
imul   $0x69,%esi,%ecx
mov    %edx,%r13d
sub    %ecx,%r13d
sub    %edx,%r13d
add    %eax,%r13d
lea    0xdb1(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xda7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movsbl 0x10(%rsp),%edi
call   1050 <tolower@plt>
cmp    $0x79,%al
je     1180 <main+0x40>
lea    0xd8c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    (%rsp),%esi
cmp    %r13d,%esi
jne    1300 <main+0x1c0>
lea    0xdb2(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    118c <main+0x4c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %esi,%rax
imul   $0x55555556,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,2),%eax
mov    %esi,%ecx
sub    %eax,%ecx
mov    0xc(%rsp),%r8d
cmp    %r8d,%ecx
je     133e <main+0x1fe>
lea    0xd35(%rip),%rdi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%esi
movslq %esi,%rcx
imul   $0x66666667,%rcx,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rax
add    %edx,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ecx
mov    0x8(%rsp),%r8d
cmp    %r8d,%ecx
je     137a <main+0x23a>
lea    0xcf9(%rip),%rdi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%esi
movslq %esi,%rax
imul   $0xffffffff92492493,%rax,%rcx
shr    $0x20,%rcx
add    %esi,%ecx
mov    %ecx,%eax
shr    $0x1f,%eax
sar    $0x2,%ecx
add    %eax,%ecx
lea    0x0(,%rcx,8),%eax
sub    %eax,%ecx
add    %esi,%ecx
mov    0x4(%rsp),%r8d
cmp    %r8d,%ecx
je     118c <main+0x4c>
lea    0xcb0(%rip),%rdi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    118c <main+0x4c>
lea    0xd21(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [87 x i8] c"A mathematical boomerang puzzle as invented by the ancient\0Amathematician Nicomachus.\0A\0A\00"
@.str.1 = [37 x i8] c"Think of a number between 1 and 100\0A\00"
@.str.2 = [48 x i8] c"Your number divided by %d has a remainder of ? \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [25 x i8] c"\0A\0ASo your number is...\0A\0A\00"
@.str.5 = [7 x i8] c"\09%d!\0A\0A\00"
@.str.6 = [15 x i8] c"Am I correct? \00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [24 x i8] c"\0AWhat was your number? \00"
@.str.9 = [49 x i8] c"%d divided by %d has a remainder of %d, not %d.\0A\00"
@.str.10 = [45 x i8] c"That's what I said, %d. You had me worried.\0A\00"
@.str.11 = [17 x i8] c"Yes, I knew it.\0A\00"
@.str.12 = [43 x i8] c"\0AThank you. Would you like to play again? \00"
@.str.13 = [16 x i8] c"Good Bye, then.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [25 x i8]
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %94, %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 3)
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 5)
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 7)
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* %2
%19 = mul nsw i32 70, %18
%20 = load i32, i32* %3
%21 = mul nsw i32 21, %20
%22 = add nsw i32 %19, %21
%23 = load i32, i32* %4
%24 = mul nsw i32 15, %23
%25 = add nsw i32 %22, %24
store i32 %25, i32* %6
br label %26
26: ; preds = %29, %9
%27 = load i32, i32* %6
%28 = icmp sgt i32 %27, 105
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %6
%31 = sub nsw i32 %30, 105
store i32 %31, i32* %6
br label %26
32: ; preds = %26
%33 = load i32, i32* %6
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%36 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %36)
%38 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%39 = load i8, i8* %38
%40 = call signext i8 @tolower(i8 signext %39)
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 121
br i1 %42, label %43, label %88
43: ; preds = %32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %5)
%46 = load i32, i32* %5
%47 = load i32, i32* %6
%48 = sub nsw i32 %46, %47
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %84
50: ; preds = %43
%51 = load i32, i32* %5
%52 = srem i32 %51, 3
%53 = load i32, i32* %2
%54 = icmp eq i32 %52, %53
br i1 %54, label %61, label %55
55: ; preds = %50
%56 = load i32, i32* %5
%57 = load i32, i32* %5
%58 = srem i32 %57, 3
%59 = load i32, i32* %2
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %56, i32 3, i32 %58, i32 %59)
br label %61
61: ; preds = %55, %50
%62 = load i32, i32* %5
%63 = srem i32 %62, 5
%64 = load i32, i32* %3
%65 = icmp eq i32 %63, %64
br i1 %65, label %72, label %66
66: ; preds = %61
%67 = load i32, i32* %5
%68 = load i32, i32* %5
%69 = srem i32 %68, 5
%70 = load i32, i32* %3
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %67, i32 5, i32 %69, i32 %70)
br label %72
72: ; preds = %66, %61
%73 = load i32, i32* %5
%74 = srem i32 %73, 7
%75 = load i32, i32* %4
%76 = icmp eq i32 %74, %75
br i1 %76, label %83, label %77
77: ; preds = %72
%78 = load i32, i32* %5
%79 = load i32, i32* %5
%80 = srem i32 %79, 7
%81 = load i32, i32* %4
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %78, i32 7, i32 %80, i32 %81)
br label %83
83: ; preds = %77, %72
br label %87
84: ; preds = %43
%85 = load i32, i32* %6
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i32 %85)
br label %87
87: ; preds = %84, %83
br label %90
88: ; preds = %32
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
br label %90
90: ; preds = %88, %87
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%92 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%93 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %92)
br label %94
94: ; preds = %90
%95 = getelementptr inbounds [25 x i8], [25 x i8]* %7, i64 0, i64 0
%96 = load i8, i8* %95
%97 = call signext i8 @tolower(i8 signext %96)
%98 = sext i8 %97 to i32
%99 = icmp ne i32 %98, 110
br i1 %99, label %9, label %100
100: ; preds = %94
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [48 x i8] c"Your number divided by %d has a remainder of ? \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.5 = [7 x i8] c"\09%d!\0A\0A\00"
@.str.6 = [15 x i8] c"Am I correct? \00"
@.str.7 = [3 x i8] c"%s\00"
@.str.8 = [24 x i8] c"\0AWhat was your number? \00"
@.str.9 = [49 x i8] c"%d divided by %d has a remainder of %d, not %d.\0A\00"
@.str.10 = [45 x i8] c"That's what I said, %d. You had me worried.\0A\00"
@.str.12 = [43 x i8] c"\0AThank you. Would you like to play again? \00"
@.str.13 = [16 x i8] c"Good Bye, then.\00"
@str = [86 x i8] c"A mathematical boomerang puzzle as invented by the ancient\0Amathematician Nicomachus.\0A\00"
@str.14 = [36 x i8] c"Think of a number between 1 and 100\00"
@str.15 = [24 x i8] c"\0A\0ASo your number is...\0A\00"
@str.16 = [16 x i8] c"Yes, I knew it.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [25 x i8]
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = getelementptr inbounds [25 x i8], [25 x i8]* %5, i64 0, i64 0
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str, i64 0, i64 0))
br label %12
12: ; preds = %74, %0
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.14, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 3)
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 5)
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 7)
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
%21 = load i32, i32* %1
%22 = mul i32 %21, 70
%23 = load i32, i32* %2
%24 = mul i32 %23, 21
%25 = add i32 %24, %22
%26 = load i32, i32* %3
%27 = mul i32 %26, 15
%28 = add i32 %25, %27
%29 = add i32 %22, 104
%30 = add i32 %29, %24
%31 = add i32 %30, %27
%32 = call i32 @llvm.smin.i32(i32 %28, i32 105)
%33 = sub i32 %31, %32
%34 = urem i32 %33, 105
%35 = sub i32 %34, %33
%36 = add i32 %35, %28
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %10)
%40 = load i8, i8* %10
%41 = call signext i8 @tolower(i8 signext %40)
%42 = icmp eq i8 %41, 121
br i1 %42, label %72, label %43
43: ; preds = %12
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%46 = load i32, i32* %4
%47 = icmp eq i32 %46, %36
br i1 %47, label %70, label %48
48: ; preds = %43
%49 = srem i32 %46, 3
%50 = load i32, i32* %1
%51 = icmp eq i32 %49, %50
br i1 %51, label %55, label %52
52: ; preds = %48
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %46, i32 3, i32 %49, i32 %50)
%54 = load i32, i32* %4
br label %55
55: ; preds = %52, %48
%56 = phi i32 [ %54, %52 ], [ %46, %48 ]
%57 = srem i32 %56, 5
%58 = load i32, i32* %2
%59 = icmp eq i32 %57, %58
br i1 %59, label %63, label %60
60: ; preds = %55
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %56, i32 5, i32 %57, i32 %58)
%62 = load i32, i32* %4
br label %63
63: ; preds = %60, %55
%64 = phi i32 [ %62, %60 ], [ %56, %55 ]
%65 = srem i32 %64, 7
%66 = load i32, i32* %3
%67 = icmp eq i32 %65, %66
br i1 %67, label %74, label %68
68: ; preds = %63
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %64, i32 7, i32 %65, i32 %66)
br label %74
70: ; preds = %43
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0), i32 %36)
br label %74
72: ; preds = %12
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.16, i64 0, i64 0))
br label %74
74: ; preds = %70, %68, %63, %72
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.12, i64 0, i64 0))
%76 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* %10)
%77 = load i8, i8* %10
%78 = call signext i8 @tolower(i8 signext %77)
%79 = icmp eq i8 %78, 110
br i1 %79, label %80, label %12
80: ; preds = %74
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
ret i32 0
}