#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 isalpha(char);
int /*<<< orphan*/ printf(char *, ...);
int scanf(char *, ...);
scalar_t__ sscanf(char *, char *, int *);
int main(int argc, char *argv[]) {
  char *p;
  int i;
  i = 0;
  if (argc > 2) {
    i = 1;
    p = argv[2];
    if (sscanf(argv[1], "%d", &i) > 0) {
      while (*p != '\0') {
        if (isalpha(*p) < 1) {
          i = 0;
          break;
        }
        p++;
      }
    } else
      i = 0;
  }
  if (i != 0)
    p = argv[2];
  else {
    printf("\nProgramm zur Verschlüsselung von Worten in der "
           "Cäsarverschlüsselung\n\n");
    do {
      printf("Bitte geben sie die Anzahl der Buchstaben ein um die verschoben "
             "werden soll:\n\n");
      if (scanf("%d", &i) < 1) {
        printf("\nSie haben keine Zahl eingegeben!\n\n");
        scanf("%*s");
      }
    } while (i == 0);
    p = argv[0];
    do {
      printf("Bitte geben die das zu verschlüsselnde Wort (maximal 100 "
             "Zeichen) ein:\n\n");
      scanf("%s", *argv);
      while (*p != '\0') {
        if (isalpha(*p) < 1) {
          printf("\nDie Eingabe war fehlerhaft!\n\n");
          p = argv[0];
          break;
        }
        p++;
      }
    } while (*p != '\0');
    p = argv[0];
  }
  if (i > 26)
    i = i % 26;
  if (i < -26)
    i = i % -26;
  printf("\nDas verschlüsselte Wort lautet:\n\n");
  while (*p != '\0') {
    if (*p < 90) {
      *p = *p + i;
      if (*p > 90)
        *p = *p - 26;
      if (*p < 65)
        *p = *p + 26;
    } else {
      *p = *p - 26 + i;
      while (*p < 97) {
        *p = *p + 26;
      }
    }
    printf("%c", *p);
    p++;
  }
  printf("\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    11f4 <main+0xb4>
movl   $0x1,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe77(%rip),%rsi
lea    -0x1c(%rbp),%rdx
call   1040 <sscanf@plt>
cmp    $0x0,%rax
jle    11e8 <main+0xa8>
jmp    11a1 <main+0x61>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11e3 <main+0xa3>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalpha@plt>
cmp    $0x1,%eax
jge    11d2 <main+0x92>
movl   $0x0,-0x1c(%rbp)
jmp    11e3 <main+0xa3>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11a1 <main+0x61>
jmp    11ef <main+0xaf>
movl   $0x0,-0x1c(%rbp)
jmp    11f4 <main+0xb4>
cmpl   $0x0,-0x1c(%rbp)
je     120f <main+0xcf>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    1313 <main+0x1d3>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdce(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmp    $0x1,%eax
jge    1262 <main+0x122>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
jmp    1267 <main+0x127>
cmpl   $0x0,-0x1c(%rbp)
je     121d <main+0xdd>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     12f3 <main+0x1b3>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalpha@plt>
cmp    $0x1,%eax
jge    12e2 <main+0x1a2>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    12f3 <main+0x1b3>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    129f <main+0x15f>
jmp    12f8 <main+0x1b8>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    127c <main+0x13c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x1a,-0x1c(%rbp)
jle    132b <main+0x1eb>
mov    -0x1c(%rbp),%eax
mov    $0x1a,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1c(%rbp)
cmpl   $0xffffffe6,-0x1c(%rbp)
jge    1343 <main+0x203>
mov    -0x1c(%rbp),%eax
mov    $0xffffffe6,%ecx
cltd
idiv   %ecx
mov    %edx,-0x1c(%rbp)
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1433 <main+0x2f3>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jge    13cc <main+0x28c>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
add    -0x1c(%rbp),%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jle    13a5 <main+0x265>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
sub    $0x1a,%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jge    13c7 <main+0x287>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
add    $0x1a,%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
jmp    140d <main+0x2cd>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
sub    $0x1a,%eax
add    -0x1c(%rbp),%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jge    1408 <main+0x2c8>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
add    $0x1a,%eax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
jmp    13e1 <main+0x2a1>
jmp    140d <main+0x2cd>
mov    -0x18(%rbp),%rax
movsbl (%rax),%esi
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1351 <main+0x211>
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
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
push   %rax
mov    %rsi,%r13
movl   $0x0,0x4(%rsp)
cmp    $0x3,%edi
jl     11d0 <main+0x80>
movl   $0x1,0x4(%rsp)
mov    0x8(%r13),%rdi
mov    0x10(%r13),%rbx
lea    0xe7e(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1050 <sscanf@plt>
test   %rax,%rax
jle    11c8 <main+0x78>
mov    (%rbx),%al
test   %al,%al
je     11b7 <main+0x67>
add    $0x1,%rbx
nopl   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1060 <isalpha@plt>
test   %eax,%eax
jle    11c8 <main+0x78>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    11a0 <main+0x50>
mov    0x4(%rsp),%eax
test   %eax,%eax
je     11d0 <main+0x80>
add    $0x10,%r13
jmp    12a5 <main+0x155>
movl   $0x0,0x4(%rsp)
lea    0xe33(%rip),%rdi
call   1040 <puts@plt>
lea    0xe70(%rip),%r14
lea    0xe16(%rip),%r15
lea    0x4(%rsp),%rbx
lea    0xf35(%rip),%r12
lea    0xe06(%rip),%rbp
jmp    1207 <main+0xb7>
nop
cmpl   $0x0,0x4(%rsp)
jne    1234 <main+0xe4>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
test   %eax,%eax
jg     1200 <main+0xb0>
mov    %r12,%rdi
call   1040 <puts@plt>
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
jmp    1200 <main+0xb0>
mov    0x0(%r13),%rbx
lea    0xe62(%rip),%r14
lea    0xdc1(%rip),%r15
lea    0xec0(%rip),%r12
mov    %r14,%rdi
call   1040 <puts@plt>
mov    0x0(%r13),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    (%rbx),%al
test   %al,%al
je     12a1 <main+0x151>
add    $0x1,%rbx
nopl   (%rax)
movsbl %al,%edi
call   1060 <isalpha@plt>
test   %eax,%eax
jle    1290 <main+0x140>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1270 <main+0x120>
jmp    12a1 <main+0x151>
nopl   0x0(%rax)
mov    %r12,%rdi
call   1040 <puts@plt>
mov    0x0(%r13),%rbx
cmpb   $0x0,(%rbx)
jne    124d <main+0xfd>
mov    0x4(%rsp),%eax
mov    0x0(%r13),%rbx
cmp    $0x1b,%eax
jl     12cb <main+0x17b>
mov    %eax,%ecx
imul   $0x4ec4ec4f,%rcx,%rcx
shr    $0x23,%rcx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
sub    %edx,%eax
mov    %eax,0x4(%rsp)
jmp    12ed <main+0x19d>
cmp    $0xffffffe5,%eax
jg     12ed <main+0x19d>
mov    %eax,%ecx
neg    %ecx
imul   $0x4ec4ec4f,%rcx,%rcx
shr    $0x23,%rcx
lea    (%rcx,%rcx,4),%edx
lea    (%rdx,%rdx,4),%edx
add    %ecx,%edx
add    %eax,%edx
mov    %edx,0x4(%rsp)
lea    0xdf6(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%al
jmp    1311 <main+0x1c1>
nopl   (%rax)
mov    %al,(%rbx)
movsbl %al,%edi
call   1030 <putchar@plt>
mov    0x1(%rbx),%al
add    $0x1,%rbx
test   %al,%al
je     1379 <main+0x229>
cmp    $0x59,%al
jg     1340 <main+0x1f0>
add    0x4(%rsp),%al
lea    -0x1a(%rax),%ecx
cmp    $0x5b,%al
movzbl %al,%edx
movzbl %cl,%eax
cmovl  %edx,%eax
mov    %al,(%rbx)
cmp    $0x40,%al
jg     1302 <main+0x1b2>
add    $0x1a,%al
jmp    1300 <main+0x1b0>
cs nopw 0x0(%rax,%rax,1)
nop
movzbl %al,%eax
mov    0x4(%rsp),%ecx
add    %ecx,%eax
add    $0xe6,%eax
mov    %eax,%ecx
shl    $0x18,%ecx
cmp    $0x60ffffff,%ecx
jg     1300 <main+0x1b0>
nopl   0x0(%rax,%rax,1)
mov    %ecx,%eax
sar    $0x18,%eax
add    $0x1a,%eax
mov    %eax,%edx
shl    $0x18,%edx
cmp    $0x47000000,%ecx
mov    %edx,%ecx
jl     1360 <main+0x210>
jmp    1300 <main+0x1b0>
lea    0xdcc(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [74 x i8] c"\0AProgramm zur Verschl\C3\BCsselung von Worten in der C\C3\A4sarverschl\C3\BCsselung\0A\0A\00"
@.str.2 = [79 x i8] c"Bitte geben sie die Anzahl der Buchstaben ein um die verschoben werden soll:\0A\0A\00"
@.str.3 = [36 x i8] c"\0ASie haben keine Zahl eingegeben!\0A\0A\00"
@.str.4 = [4 x i8] c"%*s\00"
@.str.5 = [74 x i8] c"Bitte geben die das zu verschl\C3\BCsselnde Wort (maximal 100 Zeichen) ein:\0A\0A\00"
@.str.6 = [3 x i8] c"%s\00"
@.str.7 = [31 x i8] c"\0ADie Eingabe war fehlerhaft!\0A\0A\00"
@.str.8 = [36 x i8] c"\0ADas verschl\C3\BCsselte Wort lautet:\0A\0A\00"
@.str.9 = [3 x i8] c"%c\00"
@.str.10 = [3 x i8] c"\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%8 = load i32, i32* %4
%9 = icmp sgt i32 %8, 2
br i1 %9, label %10, label %37
10: ; preds = %2
store i32 1, i32* %7
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 2
%13 = load i8*, i8** %12
store i8* %13, i8** %6
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i64 @sscanf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%18 = icmp sgt i64 %17, 0
br i1 %18, label %19, label %35
19: ; preds = %10
br label %20
20: ; preds = %31, %19
%21 = load i8*, i8** %6
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %34
25: ; preds = %20
%26 = load i8*, i8** %6
%27 = load i8, i8* %26
%28 = call i32 @isalpha(i8 signext %27)
%29 = icmp slt i32 %28, 1
br i1 %29, label %30, label %31
30: ; preds = %25
store i32 0, i32* %7
br label %34
31: ; preds = %25
%32 = load i8*, i8** %6
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %6
br label %20
34: ; preds = %30, %20
br label %36
35: ; preds = %10
store i32 0, i32* %7
br label %36
36: ; preds = %35, %34
br label %37
37: ; preds = %36, %2
%38 = load i32, i32* %7
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 2
%43 = load i8*, i8** %42
store i8* %43, i8** %6
br label %94
44: ; preds = %37
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
br label %46
46: ; preds = %54, %44
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.2, i64 0, i64 0))
%48 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %7)
%49 = icmp slt i32 %48, 1
br i1 %49, label %50, label %53
50: ; preds = %46
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %53
53: ; preds = %50, %46
br label %54
54: ; preds = %53
%55 = load i32, i32* %7
%56 = icmp eq i32 %55, 0
br i1 %56, label %46, label %57
57: ; preds = %54
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 0
%60 = load i8*, i8** %59
store i8* %60, i8** %6
br label %61
61: ; preds = %85, %57
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%63 = load i8**, i8*** %5
%64 = load i8*, i8** %63
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %64)
br label %66
66: ; preds = %81, %61
%67 = load i8*, i8** %6
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %84
71: ; preds = %66
%72 = load i8*, i8** %6
%73 = load i8, i8* %72
%74 = call i32 @isalpha(i8 signext %73)
%75 = icmp slt i32 %74, 1
br i1 %75, label %76, label %81
76: ; preds = %71
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0))
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 0
%80 = load i8*, i8** %79
store i8* %80, i8** %6
br label %84
81: ; preds = %71
%82 = load i8*, i8** %6
%83 = getelementptr inbounds i8, i8* %82, i32 1
store i8* %83, i8** %6
br label %66
84: ; preds = %76, %66
br label %85
85: ; preds = %84
%86 = load i8*, i8** %6
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = icmp ne i32 %88, 0
br i1 %89, label %61, label %90
90: ; preds = %85
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 0
%93 = load i8*, i8** %92
store i8* %93, i8** %6
br label %94
94: ; preds = %90, %40
%95 = load i32, i32* %7
%96 = icmp sgt i32 %95, 26
br i1 %96, label %97, label %100
97: ; preds = %94
%98 = load i32, i32* %7
%99 = srem i32 %98, 26
store i32 %99, i32* %7
br label %100
100: ; preds = %97, %94
%101 = load i32, i32* %7
%102 = icmp slt i32 %101, -26
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = load i32, i32* %7
%105 = srem i32 %104, -26
store i32 %105, i32* %7
br label %106
106: ; preds = %103, %100
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.8, i64 0, i64 0))
br label %108
108: ; preds = %172, %106
%109 = load i8*, i8** %6
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %179
113: ; preds = %108
%114 = load i8*, i8** %6
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp slt i32 %116, 90
br i1 %117, label %118, label %150
118: ; preds = %113
%119 = load i8*, i8** %6
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = load i32, i32* %7
%123 = add nsw i32 %121, %122
%124 = trunc i32 %123 to i8
%125 = load i8*, i8** %6
store i8 %124, i8* %125
%126 = load i8*, i8** %6
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = icmp sgt i32 %128, 90
br i1 %129, label %130, label %137
130: ; preds = %118
%131 = load i8*, i8** %6
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = sub nsw i32 %133, 26
%135 = trunc i32 %134 to i8
%136 = load i8*, i8** %6
store i8 %135, i8* %136
br label %137
137: ; preds = %130, %118
%138 = load i8*, i8** %6
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp slt i32 %140, 65
br i1 %141, label %142, label %149
142: ; preds = %137
%143 = load i8*, i8** %6
%144 = load i8, i8* %143
%145 = sext i8 %144 to i32
%146 = add nsw i32 %145, 26
%147 = trunc i32 %146 to i8
%148 = load i8*, i8** %6
store i8 %147, i8* %148
br label %149
149: ; preds = %142, %137
br label %172
150: ; preds = %113
%151 = load i8*, i8** %6
%152 = load i8, i8* %151
%153 = sext i8 %152 to i32
%154 = sub nsw i32 %153, 26
%155 = load i32, i32* %7
%156 = add nsw i32 %154, %155
%157 = trunc i32 %156 to i8
%158 = load i8*, i8** %6
store i8 %157, i8* %158
br label %159
159: ; preds = %164, %150
%160 = load i8*, i8** %6
%161 = load i8, i8* %160
%162 = sext i8 %161 to i32
%163 = icmp slt i32 %162, 97
br i1 %163, label %164, label %171
164: ; preds = %159
%165 = load i8*, i8** %6
%166 = load i8, i8* %165
%167 = sext i8 %166 to i32
%168 = add nsw i32 %167, 26
%169 = trunc i32 %168 to i8
%170 = load i8*, i8** %6
store i8 %169, i8* %170
br label %159
171: ; preds = %159
br label %172
172: ; preds = %171, %149
%173 = load i8*, i8** %6
%174 = load i8, i8* %173
%175 = sext i8 %174 to i32
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %175)
%177 = load i8*, i8** %6
%178 = getelementptr inbounds i8, i8* %177, i32 1
store i8* %178, i8** %6
br label %108
179: ; preds = %108
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%*s\00"
@.str.6 = [3 x i8] c"%s\00"
@str = [73 x i8] c"\0AProgramm zur Verschl\C3\BCsselung von Worten in der C\C3\A4sarverschl\C3\BCsselung\0A\00"
@str.11 = [78 x i8] c"Bitte geben sie die Anzahl der Buchstaben ein um die verschoben werden soll:\0A\00"
@str.12 = [73 x i8] c"Bitte geben die das zu verschl\C3\BCsselnde Wort (maximal 100 Zeichen) ein:\0A\00"
@str.13 = [35 x i8] c"\0ADas verschl\C3\BCsselte Wort lautet:\0A\00"
@str.14 = [2 x i8] c"\0A\00"
@str.15 = [30 x i8] c"\0ADie Eingabe war fehlerhaft!\0A\00"
@str.16 = [35 x i8] c"\0ASie haben keine Zahl eingegeben!\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%5 = icmp sgt i32 %0, 2
br i1 %5, label %6, label %30
6: ; preds = %2
store i32 1, i32* %3
%7 = getelementptr inbounds i8*, i8** %1, i64 2
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = call i64 @sscanf(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %26
13: ; preds = %6
%14 = load i8, i8* %8
%15 = icmp eq i8 %14, 0
br i1 %15, label %27, label %19
16: ; preds = %19
%17 = load i8, i8* %24
%18 = icmp eq i8 %17, 0
br i1 %18, label %27, label %19
19: ; preds = %13, %16
%20 = phi i8 [ %17, %16 ], [ %14, %13 ]
%21 = phi i8* [ %24, %16 ], [ %8, %13 ]
%22 = call i32 @isalpha(i8 signext %20)
%23 = icmp slt i32 %22, 1
%24 = getelementptr inbounds i8, i8* %21, i64 1
br i1 %23, label %25, label %16
25: ; preds = %19
store i32 0, i32* %3
br label %30
26: ; preds = %6
store i32 0, i32* %3
br label %30
27: ; preds = %16, %13
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %67
30: ; preds = %2, %25, %26, %27
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str, i64 0, i64 0))
br label %32
32: ; preds = %39, %30
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.11, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%35 = icmp slt i32 %34, 1
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.16, i64 0, i64 0))
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %39
39: ; preds = %32, %36
%40 = load i32, i32* %3
%41 = icmp eq i32 %40, 0
br i1 %41, label %32, label %42
42: ; preds = %39
%43 = load i8*, i8** %1
br label %44
44: ; preds = %60, %42
%45 = phi i8* [ %43, %42 ], [ %62, %60 ]
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.12, i64 0, i64 0))
%47 = load i8*, i8** %1
%48 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %47)
%49 = load i8, i8* %45
%50 = icmp eq i8 %49, 0
br i1 %50, label %65, label %54
51: ; preds = %54
%52 = load i8, i8* %59
%53 = icmp eq i8 %52, 0
br i1 %53, label %65, label %54
54: ; preds = %44, %51
%55 = phi i8 [ %52, %51 ], [ %49, %44 ]
%56 = phi i8* [ %59, %51 ], [ %45, %44 ]
%57 = call i32 @isalpha(i8 signext %55)
%58 = icmp slt i32 %57, 1
%59 = getelementptr inbounds i8, i8* %56, i64 1
br i1 %58, label %60, label %51
60: ; preds = %54
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.15, i64 0, i64 0))
%62 = load i8*, i8** %1
%63 = load i8, i8* %62
%64 = icmp eq i8 %63, 0
br i1 %64, label %65, label %44
65: ; preds = %60, %44, %51
%66 = load i32, i32* %3
br label %67
67: ; preds = %27, %65
%68 = phi i32 [ %66, %65 ], [ %28, %27 ]
%69 = phi i8** [ %1, %65 ], [ %7, %27 ]
%70 = load i8*, i8** %69
%71 = icmp sgt i32 %68, 26
br i1 %71, label %72, label %74
72: ; preds = %67
%73 = urem i32 %68, 26
store i32 %73, i32* %3
br label %80
74: ; preds = %67
%75 = icmp slt i32 %68, -26
br i1 %75, label %76, label %80
76: ; preds = %74
%77 = sub i32 0, %68
%78 = urem i32 %77, 26
%79 = sub nsw i32 0, %78
store i32 %79, i32* %3
br label %80
80: ; preds = %72, %76, %74
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.13, i64 0, i64 0))
%82 = load i8, i8* %70
%83 = icmp eq i8 %82, 0
br i1 %83, label %123, label %84
84: ; preds = %80, %116
%85 = phi i8 [ %121, %116 ], [ %82, %80 ]
%86 = phi i8* [ %120, %116 ], [ %70, %80 ]
%87 = icmp slt i8 %85, 90
br i1 %87, label %88, label %98
88: ; preds = %84
%89 = load i32, i32* %3
%90 = trunc i32 %89 to i8
%91 = add i8 %85, %90
%92 = icmp sgt i8 %91, 90
%93 = add i8 %91, -26
%94 = select i1 %92, i8 %93, i8 %91
store i8 %94, i8* %86
%95 = icmp slt i8 %94, 65
br i1 %95, label %96, label %116
96: ; preds = %88
%97 = add nsw i8 %94, 26
br label %114
98: ; preds = %84
%99 = zext i8 %85 to i32
%100 = add nuw nsw i32 %99, 230
%101 = load i32, i32* %3
%102 = add i32 %100, %101
%103 = shl i32 %102, 24
%104 = icmp slt i32 %103, 1627389952
br i1 %104, label %105, label %111
105: ; preds = %98, %105
%106 = phi i32 [ %109, %105 ], [ %103, %98 ]
%107 = ashr exact i32 %106, 24
%108 = add nsw i32 %107, 26
%109 = shl nsw i32 %108, 24
%110 = icmp slt i32 %106, 1191182336
br i1 %110, label %105, label %111
111: ; preds = %105, %98
%112 = phi i32 [ %102, %98 ], [ %108, %105 ]
%113 = trunc i32 %112 to i8
br label %114
114: ; preds = %96, %111
%115 = phi i8 [ %113, %111 ], [ %97, %96 ]
store i8 %115, i8* %86
br label %116
116: ; preds = %114, %88
%117 = phi i8 [ %94, %88 ], [ %115, %114 ]
%118 = sext i8 %117 to i32
%119 = call i32 @putchar(i32 %118)
%120 = getelementptr inbounds i8, i8* %86, i64 1
%121 = load i8, i8* %120
%122 = icmp eq i8 %121, 0
br i1 %122, label %123, label %84
123: ; preds = %116, %80
%124 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.14, i64 0, i64 0))
ret i32 0
}