#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*/ cleaninput();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, ...);
int /*<<< orphan*/ stdin;
int main(void) {
  int run = 1, ok = 0;
  unsigned int shove;
  char textbuffer[501];
  printf("Verschlüsseln mit einem Verschiebechiffre\n");
  printf("=============================================\n");
  printf("Druecke 'q' zum beenden.\n\n");
  printf("Der wievielte Nachfolger soll immer genommen werden? ");
  while (!ok) {
    ok = scanf("%u", &shove);
    ok = ok && shove < 26;
    if (!ok) {
      printf("Der eingegebene Wert ist keine positive Ganzzahl kleiner 26 "
             "sein!\nDer wievielte Nachfolger soll immer genommen werden? ");
    }
    cleaninput();
  }
  printf("Gib nun den zu verschluesselten Text ein.\n");
  while (run) {
    scanf("%500s", &textbuffer[0]);
    if (textbuffer[0] == 'q' || textbuffer[0] == 'Q') {
      if (textbuffer[1] == 0) {
        run = 0;
        continue;
      }
    }
    int i = 0;
    while (textbuffer[i]) {
      char tmp = textbuffer[i];
      if (tmp >= 'A' && tmp <= 'Z') {
        tmp += shove;
        if (tmp > 'Z')
          tmp = 'A' + tmp - 'Z' - 1;
      } else if (tmp >= 'a' && tmp <= 'z') {
        tmp += shove;
        if (tmp > 'z')
          tmp = 'a' + tmp - 'z' - 1;
      }
      textbuffer[i] = tmp;
      i++;
    }
    printf("%s\n", textbuffer);
    cleaninput();
  }
  printf("Die Anwendung wurde vom Benutzer beendet.");
  fflush(stdin);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    11be <main+0x6e>
jmp    1224 <main+0xd4>
lea    0xeb1(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1070 <scanf@plt>
mov    %eax,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x216(%rbp)
je     11f2 <main+0xa2>
cmpl   $0x1a,-0x10(%rbp)
setb   %al
mov    %al,-0x216(%rbp)
mov    -0x216(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1218 <main+0xc8>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <cleaninput@plt>
jmp    11a8 <main+0x58>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
je     13cd <main+0x27d>
lea    -0x210(%rbp),%rsi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1070 <scanf@plt>
movsbl -0x210(%rbp),%eax
cmp    $0x71,%eax
je     1271 <main+0x121>
movsbl -0x210(%rbp),%eax
cmp    $0x51,%eax
jne    1292 <main+0x142>
movsbl -0x20f(%rbp),%eax
cmp    $0x0,%eax
jne    128d <main+0x13d>
movl   $0x0,-0x8(%rbp)
jmp    1232 <main+0xe2>
jmp    1292 <main+0x142>
movl   $0x0,-0x214(%rbp)
movslq -0x214(%rbp),%rax
cmpb   $0x0,-0x210(%rbp,%rax,1)
je     13ac <main+0x25c>
movslq -0x214(%rbp),%rax
mov    -0x210(%rbp,%rax,1),%al
mov    %al,-0x215(%rbp)
movsbl -0x215(%rbp),%eax
cmp    $0x41,%eax
jl     1322 <main+0x1d2>
movsbl -0x215(%rbp),%eax
cmp    $0x5a,%eax
jg     1322 <main+0x1d2>
mov    -0x10(%rbp),%ecx
movsbl -0x215(%rbp),%eax
add    %ecx,%eax
mov    %al,-0x215(%rbp)
movsbl -0x215(%rbp),%eax
cmp    $0x5a,%eax
jle    131d <main+0x1cd>
movsbl -0x215(%rbp),%eax
add    $0x41,%eax
sub    $0x5a,%eax
sub    $0x1,%eax
mov    %al,-0x215(%rbp)
jmp    1384 <main+0x234>
movsbl -0x215(%rbp),%eax
cmp    $0x61,%eax
jl     137f <main+0x22f>
movsbl -0x215(%rbp),%eax
cmp    $0x7a,%eax
jg     137f <main+0x22f>
mov    -0x10(%rbp),%ecx
movsbl -0x215(%rbp),%eax
add    %ecx,%eax
mov    %al,-0x215(%rbp)
movsbl -0x215(%rbp),%eax
cmp    $0x7a,%eax
jle    137a <main+0x22a>
movsbl -0x215(%rbp),%eax
add    $0x61,%eax
sub    $0x7a,%eax
sub    $0x1,%eax
mov    %al,-0x215(%rbp)
jmp    137f <main+0x22f>
jmp    1384 <main+0x234>
mov    -0x215(%rbp),%cl
movslq -0x214(%rbp),%rax
mov    %cl,-0x210(%rbp,%rax,1)
mov    -0x214(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x214(%rbp)
jmp    129c <main+0x14c>
lea    -0x210(%rbp),%rsi
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <cleaninput@plt>
jmp    1232 <main+0xe2>
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2c06(%rip),%rax
mov    (%rax),%edi
call   1060 <fflush@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x210,%rsp
lea    0xf38(%rip),%rdi
call   1040 <puts@plt>
lea    0xf57(%rip),%rdi
call   1040 <puts@plt>
lea    0xf79(%rip),%rdi
call   1040 <puts@plt>
lea    0xeae(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe5b(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
test   %eax,%eax
je     11bc <main+0x5c>
cmpl   $0x1a,0xc(%rsp)
jb     11f9 <main+0x99>
lea    0xe40(%rip),%r14
lea    0xe36(%rip),%r15
lea    0xc(%rsp),%rbx
nop
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <cleaninput@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
test   %eax,%eax
je     11d0 <main+0x70>
cmpl   $0x19,0xc(%rsp)
ja     11d0 <main+0x70>
xor    %eax,%eax
call   1030 <cleaninput@plt>
lea    0xf17(%rip),%rdi
call   1040 <puts@plt>
lea    0xe68(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
mov    0x10(%rsp),%al
mov    %eax,%ecx
and    $0xdf,%cl
cmp    $0x51,%cl
jne    1238 <main+0xd8>
cmpb   $0x0,0x11(%rsp)
je     12d5 <main+0x175>
lea    0x11(%rsp),%r15
lea    0x10(%rsp),%rbx
lea    0xe32(%rip),%r14
nopl   0x0(%rax)
test   %al,%al
je     12a0 <main+0x140>
mov    0xc(%rsp),%cl
mov    %r15,%rdx
jmp    127f <main+0x11f>
nopl   (%rax)
add    %cl,%al
lea    -0x1a(%rax),%esi
cmp    $0x5b,%al
movzbl %al,%edi
movzbl %sil,%eax
cmovl  %edi,%eax
mov    %al,-0x1(%rdx)
movzbl (%rdx),%eax
add    $0x1,%rdx
test   %al,%al
je     12a0 <main+0x140>
lea    -0x41(%rax),%esi
cmp    $0x19,%sil
jbe    1260 <main+0x100>
lea    -0x61(%rax),%esi
cmp    $0x19,%sil
ja     1271 <main+0x111>
add    %cl,%al
lea    -0x1a(%rax),%esi
cmp    $0x7b,%al
jmp    1267 <main+0x107>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <cleaninput@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <scanf@plt>
mov    0x10(%rsp),%al
mov    %eax,%ecx
and    $0xdf,%cl
cmp    $0x51,%cl
jne    1250 <main+0xf0>
cmpb   $0x0,0x11(%rsp)
jne    1250 <main+0xf0>
lea    0xda5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
xor    %eax,%eax
call   1060 <getchar@plt>
xor    %eax,%eax
add    $0x210,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Verschl\C3\BCsseln mit einem Verschiebechiffre\0A\00"
@.str.1 = [47 x i8] c"=============================================\0A\00"
@.str.2 = [27 x i8] c"Druecke 'q' zum beenden.\0A\0A\00"
@.str.3 = [54 x i8] c"Der wievielte Nachfolger soll immer genommen werden? \00"
@.str.4 = [3 x i8] c"%u\00"
@.str.5 = [120 x i8] c"Der eingegebene Wert ist keine positive Ganzzahl kleiner 26 sein!\0ADer wievielte Nachfolger soll immer genommen werden? \00"
@.str.6 = [43 x i8] c"Gib nun den zu verschluesselten Text ein.\0A\00"
@.str.7 = [6 x i8] c"%500s\00"
@.str.8 = [4 x i8] c"%s\0A\00"
@.str.9 = [42 x i8] c"Die Anwendung wurde vom Benutzer beendet.\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [501 x i8]
%6 = alloca i32
%7 = alloca i8
store i32 0, i32* %1
store i32 1, i32* %2
store i32 0, i32* %3
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
br label %12
12: ; preds = %30, %0
%13 = load i32, i32* %3
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br i1 %15, label %16, label %32
16: ; preds = %12
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
store i32 %17, i32* %3
%18 = load i32, i32* %3
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, i32* %4
%22 = icmp ult i32 %21, 26
br label %23
23: ; preds = %20, %16
%24 = phi i1 [ false, %16 ], [ %22, %20 ]
%25 = zext i1 %24 to i32
store i32 %25, i32* %3
%26 = load i32, i32* %3
%27 = icmp ne i32 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %23
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([120 x i8], [120 x i8]* @.str.5, i64 0, i64 0))
br label %30
30: ; preds = %28, %23
%31 = call i32 (...) @cleaninput()
br label %12
32: ; preds = %12
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
br label %34
34: ; preds = %125, %54, %32
%35 = load i32, i32* %2
%36 = icmp ne i32 %35, 0
br i1 %36, label %37, label %129
37: ; preds = %34
%38 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 0
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 0
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 113
br i1 %43, label %49, label %44
44: ; preds = %37
%45 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 0
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 81
br i1 %48, label %49, label %56
49: ; preds = %44, %37
%50 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 1
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %55
54: ; preds = %49
store i32 0, i32* %2
br label %34
55: ; preds = %49
br label %56
56: ; preds = %55, %44
store i32 0, i32* %6
br label %57
57: ; preds = %118, %56
%58 = load i32, i32* %6
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = icmp ne i8 %61, 0
br i1 %62, label %63, label %125
63: ; preds = %57
%64 = load i32, i32* %6
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 %65
%67 = load i8, i8* %66
store i8 %67, i8* %7
%68 = load i8, i8* %7
%69 = sext i8 %68 to i32
%70 = icmp sge i32 %69, 65
br i1 %70, label %71, label %92
71: ; preds = %63
%72 = load i8, i8* %7
%73 = sext i8 %72 to i32
%74 = icmp sle i32 %73, 90
br i1 %74, label %75, label %92
75: ; preds = %71
%76 = load i32, i32* %4
%77 = load i8, i8* %7
%78 = sext i8 %77 to i32
%79 = add i32 %78, %76
%80 = trunc i32 %79 to i8
store i8 %80, i8* %7
%81 = load i8, i8* %7
%82 = sext i8 %81 to i32
%83 = icmp sgt i32 %82, 90
br i1 %83, label %84, label %91
84: ; preds = %75
%85 = load i8, i8* %7
%86 = sext i8 %85 to i32
%87 = add nsw i32 65, %86
%88 = sub nsw i32 %87, 90
%89 = sub nsw i32 %88, 1
%90 = trunc i32 %89 to i8
store i8 %90, i8* %7
br label %91
91: ; preds = %84, %75
br label %118
92: ; preds = %71, %63
%93 = load i8, i8* %7
%94 = sext i8 %93 to i32
%95 = icmp sge i32 %94, 97
br i1 %95, label %96, label %117
96: ; preds = %92
%97 = load i8, i8* %7
%98 = sext i8 %97 to i32
%99 = icmp sle i32 %98, 122
br i1 %99, label %100, label %117
100: ; preds = %96
%101 = load i32, i32* %4
%102 = load i8, i8* %7
%103 = sext i8 %102 to i32
%104 = add i32 %103, %101
%105 = trunc i32 %104 to i8
store i8 %105, i8* %7
%106 = load i8, i8* %7
%107 = sext i8 %106 to i32
%108 = icmp sgt i32 %107, 122
br i1 %108, label %109, label %116
109: ; preds = %100
%110 = load i8, i8* %7
%111 = sext i8 %110 to i32
%112 = add nsw i32 97, %111
%113 = sub nsw i32 %112, 122
%114 = sub nsw i32 %113, 1
%115 = trunc i32 %114 to i8
store i8 %115, i8* %7
br label %116
116: ; preds = %109, %100
br label %117
117: ; preds = %116, %96, %92
br label %118
118: ; preds = %117, %91
%119 = load i8, i8* %7
%120 = load i32, i32* %6
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 %121
store i8 %119, i8* %122
%123 = load i32, i32* %6
%124 = add nsw i32 %123, 1
store i32 %124, i32* %6
br label %57
125: ; preds = %57
%126 = getelementptr inbounds [501 x i8], [501 x i8]* %5, i64 0, i64 0
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %126)
%128 = call i32 (...) @cleaninput()
br label %34
129: ; preds = %34
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%131 = load i32, i32* @stdin
%132 = call i32 @fflush(i32 %131)
%133 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str.3 = [54 x i8] c"Der wievielte Nachfolger soll immer genommen werden? \00"
@.str.4 = [3 x i8] c"%u\00"
@.str.5 = [120 x i8] c"Der eingegebene Wert ist keine positive Ganzzahl kleiner 26 sein!\0ADer wievielte Nachfolger soll immer genommen werden? \00"
@.str.7 = [6 x i8] c"%500s\00"
@.str.9 = [42 x i8] c"Die Anwendung wurde vom Benutzer beendet.\00"
@stdin = global i32 0
@str = [43 x i8] c"Verschl\C3\BCsseln mit einem Verschiebechiffre\00"
@str.10 = [46 x i8] c"=============================================\00"
@str.11 = [26 x i8] c"Druecke 'q' zum beenden.\0A\00"
@str.12 = [42 x i8] c"Gib nun den zu verschluesselten Text ein.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [501 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [501 x i8], [501 x i8]* %2, i64 0, i64 0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.10, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%10 = icmp ne i32 %9, 0
%11 = load i32, i32* %1
%12 = icmp ult i32 %11, 26
%13 = select i1 %10, i1 %12, i1 false
br i1 %13, label %22, label %14
14: ; preds = %0, %14
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([120 x i8], [120 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 (...) @cleaninput()
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%18 = icmp ne i32 %17, 0
%19 = load i32, i32* %1
%20 = icmp ult i32 %19, 26
%21 = select i1 %18, i1 %20, i1 false
br i1 %21, label %22, label %14
22: ; preds = %14, %0
%23 = call i32 (...) @cleaninput()
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.12, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %4)
%26 = load i8, i8* %4
%27 = and i8 %26, -33
%28 = icmp eq i8 %27, 81
%29 = getelementptr inbounds [501 x i8], [501 x i8]* %2, i64 0, i64 1
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 0
%32 = select i1 %28, i1 %31, i1 false
br i1 %32, label %74, label %33
33: ; preds = %22, %64
%34 = phi i8 [ %68, %64 ], [ %26, %22 ]
%35 = icmp eq i8 %34, 0
br i1 %35, label %64, label %36
36: ; preds = %33
%37 = load i32, i32* %1
%38 = trunc i32 %37 to i8
br label %39
39: ; preds = %36, %58
%40 = phi i64 [ 0, %36 ], [ %60, %58 ]
%41 = phi i8 [ %34, %36 ], [ %62, %58 ]
%42 = phi i8* [ %4, %36 ], [ %61, %58 ]
%43 = add i8 %41, -65
%44 = icmp ult i8 %43, 26
br i1 %44, label %45, label %50
45: ; preds = %39
%46 = add i8 %41, %38
%47 = icmp sgt i8 %46, 90
%48 = add i8 %46, -26
%49 = select i1 %47, i8 %48, i8 %46
br label %58
50: ; preds = %39
%51 = add i8 %41, -97
%52 = icmp ult i8 %51, 26
br i1 %52, label %53, label %58
53: ; preds = %50
%54 = add i8 %41, %38
%55 = icmp sgt i8 %54, 122
%56 = add i8 %54, -26
%57 = select i1 %55, i8 %56, i8 %54
br label %58
58: ; preds = %53, %45, %50
%59 = phi i8 [ %41, %50 ], [ %49, %45 ], [ %57, %53 ]
store i8 %59, i8* %42
%60 = add nuw i64 %40, 1
%61 = getelementptr inbounds [501 x i8], [501 x i8]* %2, i64 0, i64 %60
%62 = load i8, i8* %61
%63 = icmp eq i8 %62, 0
br i1 %63, label %64, label %39
64: ; preds = %58, %33
%65 = call i32 @puts(i8* %4)
%66 = call i32 (...) @cleaninput()
%67 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %4)
%68 = load i8, i8* %4
%69 = and i8 %68, -33
%70 = icmp eq i8 %69, 81
%71 = load i8, i8* %29
%72 = icmp eq i8 %71, 0
%73 = select i1 %70, i1 %72, i1 false
br i1 %73, label %74, label %33
74: ; preds = %64, %22
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%76 = load i32, i32* @stdin
%77 = call i32 @fflush(i32 %76)
%78 = call i32 (...) @getchar()
ret i32 0
}