#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 startValue;
  int finalValue;
  int incrementValue;
  char userChoice;
  char userOperation;
  do {
    printf("\nPlease choose a starting value:");
    scanf("%d", &startValue);
    printf("\nPlease choose a final value:");
    scanf("%d", &finalValue);
    printf("\nPlease choose an increment value:");
    scanf("%d", &incrementValue);
    printf("\nPlease choose an operation.");
    printf("\n*A for Addition*\n*S for Subtraction*\n*D for Divide*\n*M for "
           "Multiply*");
    printf("\nYour choice:");
    scanf(" %c", &userOperation);
    if (userOperation == 'A' && startValue < finalValue) {
      while (startValue < finalValue) {
        printf("\nThe value is now: %d", startValue);
        startValue += incrementValue;
      }
    } else if (userOperation == 'M' && startValue < finalValue) {
      while (startValue < finalValue) {
        printf("\nThe value is now: %d", startValue);
        startValue *= incrementValue;
      }
    } else if (userOperation == 'S' && startValue > finalValue) {
      while (startValue > finalValue) {
        printf("\nThe value is now: %d", startValue);
        startValue -= incrementValue;
      }
    } else if (userOperation == 'D' && startValue > finalValue) {
      while (startValue > finalValue) {
        printf("\nThe value is now: %d", startValue);
        startValue /= incrementValue;
      }
    } else {
      printf("The operations you entered where not valid or incompatible. "
             "Aborting...");
    }
    printf("\nThe while loop is now over. If you would like to start again, "
           "please enter 'y':");
    scanf(" %c", &userChoice);
  } while (userChoice == 'y' || userChoice == 'Y');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa6(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf86(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
lea    -0x12(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0x12(%rbp),%eax
cmp    $0x41,%eax
jne    1219 <main+0xf9>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1219 <main+0xf9>
jmp    11e9 <main+0xc9>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1214 <main+0xf4>
mov    -0x8(%rbp),%esi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    11e9 <main+0xc9>
jmp    1326 <main+0x206>
movsbl -0x12(%rbp),%eax
cmp    $0x4d,%eax
jne    1268 <main+0x148>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1268 <main+0x148>
jmp    1237 <main+0x117>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1263 <main+0x143>
mov    -0x8(%rbp),%esi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1237 <main+0x117>
jmp    1321 <main+0x201>
movsbl -0x12(%rbp),%eax
cmp    $0x53,%eax
jne    12b8 <main+0x198>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    12b8 <main+0x198>
jmp    1286 <main+0x166>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    12b3 <main+0x193>
mov    -0x8(%rbp),%esi
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
jmp    1286 <main+0x166>
jmp    131c <main+0x1fc>
movsbl -0x12(%rbp),%eax
cmp    $0x44,%eax
jne    1309 <main+0x1e9>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1309 <main+0x1e9>
jmp    12d6 <main+0x1b6>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1304 <main+0x1e4>
mov    -0x8(%rbp),%esi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
jmp    12d6 <main+0x1b6>
jmp    1317 <main+0x1f7>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    131c <main+0x1fc>
jmp    1321 <main+0x201>
jmp    1326 <main+0x206>
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd98(%rip),%rdi
lea    -0x11(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0x11(%rbp),%ecx
mov    $0x1,%al
cmp    $0x79,%ecx
mov    %al,-0x13(%rbp)
je     1365 <main+0x245>
movsbl -0x11(%rbp),%eax
cmp    $0x59,%eax
sete   %al
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
test   $0x1,%al
jne    112f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0x1001(%rip),%rbx
lea    0xfe3(%rip),%rbp
lea    0x103e(%rip),%r15
lea    0x13(%rsp),%r12
lea    0xeb1(%rip),%r14
lea    0xfcd(%rip),%r13
jmp    1193 <main+0x73>
nopl   0x0(%rax,%rax,1)
lea    0xfd2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x13(%rsp),%al
and    $0xdf,%al
cmp    $0x59,%al
jne    1331 <main+0x211>
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xeb7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xebd(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
lea    0x12(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x12(%rsp),%al
add    $0xbf,%al
cmp    $0x12,%al
ja     1160 <main+0x40>
movzbl %al,%eax
movslq (%r14,%rax,4),%rax
add    %r14,%rax
jmp    *%rax
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jge    1160 <main+0x40>
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
add    0x14(%rsp),%esi
mov    %esi,0x8(%rsp)
cmp    0xc(%rsp),%esi
jl     1250 <main+0x130>
jmp    116e <main+0x4e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%eax
cmp    0xc(%rsp),%eax
jle    1160 <main+0x40>
xchg   %ax,%ax
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%eax
cltd
idivl  0x14(%rsp)
mov    %eax,0x8(%rsp)
cmp    0xc(%rsp),%eax
jg     1290 <main+0x170>
jmp    116e <main+0x4e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jge    1160 <main+0x40>
xchg   %ax,%ax
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
imul   0x14(%rsp),%esi
mov    %esi,0x8(%rsp)
cmp    0xc(%rsp),%esi
jl     12d0 <main+0x1b0>
jmp    116e <main+0x4e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%rsp),%esi
cmp    0xc(%rsp),%esi
jle    1160 <main+0x40>
xchg   %ax,%ax
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
sub    0x14(%rsp),%esi
mov    %esi,0x8(%rsp)
cmp    0xc(%rsp),%esi
jg     1310 <main+0x1f0>
jmp    116e <main+0x4e>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"\0APlease choose a starting value:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"\0APlease choose a final value:\00"
@.str.3 = [35 x i8] c"\0APlease choose an increment value:\00"
@.str.4 = [29 x i8] c"\0APlease choose an operation.\00"
@.str.5 = [70 x i8] c"\0A*A for Addition*\0A*S for Subtraction*\0A*D for Divide*\0A*M for Multiply*\00"
@.str.6 = [14 x i8] c"\0AYour choice:\00"
@.str.7 = [4 x i8] c" %c\00"
@.str.8 = [22 x i8] c"\0AThe value is now: %d\00"
@.str.9 = [72 x i8] c"The operations you entered where not valid or incompatible. Aborting...\00"
@.str.10 = [81 x i8] c"\0AThe while loop is now over. If you would like to start again, please enter 'y':\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i8
store i32 0, i32* %1
br label %7
7: ; preds = %113, %0
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %6)
%18 = load i8, i8* %6
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 65
br i1 %20, label %21, label %37
21: ; preds = %7
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %37
25: ; preds = %21
br label %26
26: ; preds = %30, %25
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %36
30: ; preds = %26
%31 = load i32, i32* %2
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %31)
%33 = load i32, i32* %4
%34 = load i32, i32* %2
%35 = add nsw i32 %34, %33
store i32 %35, i32* %2
br label %26
36: ; preds = %26
br label %102
37: ; preds = %21, %7
%38 = load i8, i8* %6
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 77
br i1 %40, label %41, label %57
41: ; preds = %37
%42 = load i32, i32* %2
%43 = load i32, i32* %3
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %57
45: ; preds = %41
br label %46
46: ; preds = %50, %45
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %56
50: ; preds = %46
%51 = load i32, i32* %2
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %51)
%53 = load i32, i32* %4
%54 = load i32, i32* %2
%55 = mul nsw i32 %54, %53
store i32 %55, i32* %2
br label %46
56: ; preds = %46
br label %101
57: ; preds = %41, %37
%58 = load i8, i8* %6
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 83
br i1 %60, label %61, label %77
61: ; preds = %57
%62 = load i32, i32* %2
%63 = load i32, i32* %3
%64 = icmp sgt i32 %62, %63
br i1 %64, label %65, label %77
65: ; preds = %61
br label %66
66: ; preds = %70, %65
%67 = load i32, i32* %2
%68 = load i32, i32* %3
%69 = icmp sgt i32 %67, %68
br i1 %69, label %70, label %76
70: ; preds = %66
%71 = load i32, i32* %2
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %71)
%73 = load i32, i32* %4
%74 = load i32, i32* %2
%75 = sub nsw i32 %74, %73
store i32 %75, i32* %2
br label %66
76: ; preds = %66
br label %100
77: ; preds = %61, %57
%78 = load i8, i8* %6
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 68
br i1 %80, label %81, label %97
81: ; preds = %77
%82 = load i32, i32* %2
%83 = load i32, i32* %3
%84 = icmp sgt i32 %82, %83
br i1 %84, label %85, label %97
85: ; preds = %81
br label %86
86: ; preds = %90, %85
%87 = load i32, i32* %2
%88 = load i32, i32* %3
%89 = icmp sgt i32 %87, %88
br i1 %89, label %90, label %96
90: ; preds = %86
%91 = load i32, i32* %2
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %91)
%93 = load i32, i32* %4
%94 = load i32, i32* %2
%95 = sdiv i32 %94, %93
store i32 %95, i32* %2
br label %86
96: ; preds = %86
br label %99
97: ; preds = %81, %77
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.9, i64 0, i64 0))
br label %99
99: ; preds = %97, %96
br label %100
100: ; preds = %99, %76
br label %101
101: ; preds = %100, %56
br label %102
102: ; preds = %101, %36
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.10, i64 0, i64 0))
%104 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %5)
br label %105
105: ; preds = %102
%106 = load i8, i8* %5
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 121
br i1 %108, label %113, label %109
109: ; preds = %105
%110 = load i8, i8* %5
%111 = sext i8 %110 to i32
%112 = icmp eq i32 %111, 89
br label %113
113: ; preds = %109, %105
%114 = phi i1 [ true, %105 ], [ %112, %109 ]
br i1 %114, label %7, label %115
115: ; preds = %113
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"\0APlease choose a starting value:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"\0APlease choose a final value:\00"
@.str.3 = [35 x i8] c"\0APlease choose an increment value:\00"
@.str.4 = [29 x i8] c"\0APlease choose an operation.\00"
@.str.5 = [70 x i8] c"\0A*A for Addition*\0A*S for Subtraction*\0A*D for Divide*\0A*M for Multiply*\00"
@.str.6 = [14 x i8] c"\0AYour choice:\00"
@.str.7 = [4 x i8] c" %c\00"
@.str.8 = [22 x i8] c"\0AThe value is now: %d\00"
@.str.9 = [72 x i8] c"The operations you entered where not valid or incompatible. Aborting...\00"
@.str.10 = [81 x i8] c"\0AThe while loop is now over. If you would like to start again, please enter 'y':\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8
%5 = alloca i8
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
br label %9
9: ; preds = %71, %0
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %5)
%20 = load i8, i8* %5
switch i8 %20, label %69 [
i8 65, label %21
i8 77, label %33
i8 83, label %45
i8 68, label %57
]
21: ; preds = %9
%22 = load i32, i32* %1
%23 = load i32, i32* %2
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %69
25: ; preds = %21, %25
%26 = phi i32 [ %30, %25 ], [ %22, %21 ]
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %26)
%28 = load i32, i32* %3
%29 = load i32, i32* %1
%30 = add nsw i32 %29, %28
store i32 %30, i32* %1
%31 = load i32, i32* %2
%32 = icmp slt i32 %30, %31
br i1 %32, label %25, label %71
33: ; preds = %9
%34 = load i32, i32* %1
%35 = load i32, i32* %2
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %69
37: ; preds = %33, %37
%38 = phi i32 [ %42, %37 ], [ %34, %33 ]
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %3
%41 = load i32, i32* %1
%42 = mul nsw i32 %41, %40
store i32 %42, i32* %1
%43 = load i32, i32* %2
%44 = icmp slt i32 %42, %43
br i1 %44, label %37, label %71
45: ; preds = %9
%46 = load i32, i32* %1
%47 = load i32, i32* %2
%48 = icmp sgt i32 %46, %47
br i1 %48, label %49, label %69
49: ; preds = %45, %49
%50 = phi i32 [ %54, %49 ], [ %46, %45 ]
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %3
%53 = load i32, i32* %1
%54 = sub nsw i32 %53, %52
store i32 %54, i32* %1
%55 = load i32, i32* %2
%56 = icmp sgt i32 %54, %55
br i1 %56, label %49, label %71
57: ; preds = %9
%58 = load i32, i32* %1
%59 = load i32, i32* %2
%60 = icmp sgt i32 %58, %59
br i1 %60, label %61, label %69
61: ; preds = %57, %61
%62 = phi i32 [ %66, %61 ], [ %58, %57 ]
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %3
%65 = load i32, i32* %1
%66 = sdiv i32 %65, %64
store i32 %66, i32* %1
%67 = load i32, i32* %2
%68 = icmp sgt i32 %66, %67
br i1 %68, label %61, label %71
69: ; preds = %9, %33, %21, %45, %57
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.9, i64 0, i64 0))
br label %71
71: ; preds = %61, %49, %37, %25, %69
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.10, i64 0, i64 0))
%73 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %4)
%74 = load i8, i8* %4
%75 = and i8 %74, -33
%76 = icmp eq i8 %75, 89
br i1 %76, label %9, label %77
77: ; preds = %71
ret i32 0
}