#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 */
char getchar();
int /*<<< orphan*/ printf(char *, ...);
int strlen(char *);
char menu(void) {
  char lg = 201;
  char pozl = 205;
  char pg = 187;
  char pionl = 186;
  char ld = 200;
  char pd = 188;
  char ll = 204;
  char lp = 185;
  int i;
  char *napisy[6];
  char wyb;
  for (i = 0; i < 25; i++) {
    printf("\n");
  }
  napisy[0] = "  Przyklad programu wykorzystujacy menu  ";
  napisy[1] = " Wybierz:";
  napisy[2] = " w - wypisanie 3.5 najwazniejszych zasad";
  napisy[3] = " p - przyklad programu";
  napisy[4] = " k - koniec pracy";
  napisy[5] = "Twoj wybor:";
  printf("%c", lg);
  for (i = 0; i < strlen(napisy[0]); i++) {
    printf("%c", pozl);
  }
  printf("%c\n", pg);
  printf("%c", pionl);
  printf("%s", napisy[0]);
  printf("%c\n", pionl);
  printf("%c", ll);
  for (i = 0; i < strlen(napisy[0]); i++) {
    printf("%c", pozl);
  }
  printf("%c\n", lp);
  printf("%c", pionl);
  printf("%s", napisy[1]);
  for (i = 0; i < strlen(napisy[0]) - strlen(napisy[1]); i++) {
    printf(" ");
  }
  printf("%c\n", pionl);
  printf("%c", pionl);
  printf("%s", napisy[2]);
  for (i = 0; i < strlen(napisy[0]) - strlen(napisy[2]); i++) {
    printf(" ");
  }
  printf("%c\n", pionl);
  printf("%c", pionl);
  printf("%s", napisy[3]);
  for (i = 0; i < strlen(napisy[0]) - strlen(napisy[3]); i++) {
    printf(" ");
  }
  printf("%c\n", pionl);
  printf("%c", pionl);
  printf("%s", napisy[4]);
  for (i = 0; i < strlen(napisy[0]) - strlen(napisy[4]); i++) {
    printf(" ");
  }
  printf("%c\n", pionl);
  printf("%c", ld);
  for (i = 0; i < strlen(napisy[0]); i++) {
    printf("%c", pozl);
  }
  printf("%c\n", pd);
  printf("%s", napisy[5]);
  while (0 == 0) {
    wyb = getchar();
    if ((wyb == 'w' || wyb == 'W' || wyb == 'p' || wyb == 'P' || wyb == 'k' ||
         wyb == 'K'))
      break;
  }
  return wyb;
}


x86 assembly (clang, -O0):
<menu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movb   $0xc9,-0x1(%rbp)
movb   $0xcd,-0x2(%rbp)
movb   $0xbb,-0x3(%rbp)
movb   $0xba,-0x4(%rbp)
movb   $0xc8,-0x5(%rbp)
movb   $0xbc,-0x6(%rbp)
movb   $0xcc,-0x7(%rbp)
movb   $0xb9,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x19,-0xc(%rbp)
jge    1185 <menu+0x55>
lea    0xf27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    115f <menu+0x2f>
lea    0xe74(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xe93(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe92(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xeb0(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xebc(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xec3(%rip),%rax
mov    %rax,-0x18(%rbp)
movsbl -0x1(%rbp),%esi
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%eax
cmp    %ecx,%eax
jge    121c <menu+0xec>
movsbl -0x2(%rbp),%esi
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11e0 <menu+0xb0>
movsbl -0x3(%rbp),%esi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x4(%rbp),%esi
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x4(%rbp),%esi
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x7(%rbp),%esi
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x4c(%rbp),%eax
cmp    %ecx,%eax
jge    12b9 <menu+0x189>
movsbl -0x2(%rbp),%esi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    127d <menu+0x14d>
movsbl -0x8(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x4(%rbp),%esi
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xdb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x54(%rbp)
mov    -0x38(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x54(%rbp),%ecx
mov    %eax,%edx
mov    -0x50(%rbp),%eax
sub    %edx,%ecx
cmp    %ecx,%eax
jge    133f <menu+0x20f>
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12f6 <menu+0x1c6>
movsbl -0x4(%rbp),%esi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x4(%rbp),%esi
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x30(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x5c(%rbp),%ecx
mov    %eax,%edx
mov    -0x58(%rbp),%eax
sub    %edx,%ecx
cmp    %ecx,%eax
jge    13c5 <menu+0x295>
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    137c <menu+0x24c>
movsbl -0x4(%rbp),%esi
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x4(%rbp),%esi
lea    0xcb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xca5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x64(%rbp)
mov    -0x28(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x64(%rbp),%ecx
mov    %eax,%edx
mov    -0x60(%rbp),%eax
sub    %edx,%ecx
cmp    %ecx,%eax
jge    144b <menu+0x31b>
lea    0xbf2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1402 <menu+0x2d2>
movsbl -0x4(%rbp),%esi
lea    0xc3f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x4(%rbp),%esi
lea    0xc2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x6c(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x6c(%rbp),%ecx
mov    %eax,%edx
mov    -0x68(%rbp),%eax
sub    %edx,%ecx
cmp    %ecx,%eax
jge    14d1 <menu+0x3a1>
lea    0xb6c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1488 <menu+0x358>
movsbl -0x4(%rbp),%esi
lea    0xbb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x5(%rbp),%esi
lea    0xba4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x70(%rbp),%eax
cmp    %ecx,%eax
jge    1538 <menu+0x408>
movsbl -0x2(%rbp),%esi
lea    0xb6f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14fc <menu+0x3cc>
movsbl -0x6(%rbp),%esi
lea    0xb52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xb44(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %al,-0x41(%rbp)
movsbl -0x41(%rbp),%eax
cmp    $0x77,%eax
je     15b4 <menu+0x484>
movsbl -0x41(%rbp),%eax
cmp    $0x57,%eax
je     15b4 <menu+0x484>
movsbl -0x41(%rbp),%eax
cmp    $0x70,%eax
je     15b4 <menu+0x484>
movsbl -0x41(%rbp),%eax
cmp    $0x50,%eax
je     15b4 <menu+0x484>
movsbl -0x41(%rbp),%eax
cmp    $0x6b,%eax
je     15b4 <menu+0x484>
movsbl -0x41(%rbp),%eax
cmp    $0x4b,%eax
jne    15b9 <menu+0x489>
jmp    15be <menu+0x48e>
jmp    155c <menu+0x42c>
movsbl -0x41(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<menu>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xffffffc9,%edi
call   1030 <putchar@plt>
lea    0xdae(%rip),%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1289 <menu+0x149>
xor    %ebp,%ebp
lea    0xd9c(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xffffffcd,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jl     1270 <menu+0x130>
lea    0xe02(%rip),%r14
xor    %ebp,%ebp
mov    %r14,%rdi
mov    $0xffffffbb,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffba,%edi
call   1030 <putchar@plt>
lea    0xde4(%rip),%rdi
lea    0xd47(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    $0xffffffba,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffcc,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1309 <menu+0x1c9>
lea    0xd11(%rip),%rbx
nop
mov    $0xffffffcd,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jl     12f0 <menu+0x1b0>
lea    0xd82(%rip),%rdi
xor    %ebx,%ebx
mov    $0xffffffb9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffba,%edi
call   1030 <putchar@plt>
lea    0xd67(%rip),%rdi
lea    0xcf4(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcb9(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jle    1395 <menu+0x255>
lea    0xc9f(%rip),%r14
lea    0xcc2(%rip),%r15
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebp
cmp    %ebp,%ebx
jl     1370 <menu+0x230>
lea    0xcf6(%rip),%rdi
xor    %ebx,%ebx
mov    $0xffffffba,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffba,%edi
call   1030 <putchar@plt>
lea    0xcdb(%rip),%rdi
lea    0xc72(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc2d(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jle    1425 <menu+0x2e5>
lea    0xc13(%rip),%r14
lea    0xc40(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebp
cmp    %ebp,%ebx
jl     1400 <menu+0x2c0>
lea    0xc66(%rip),%rdi
xor    %ebx,%ebx
mov    $0xffffffba,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffba,%edi
call   1030 <putchar@plt>
lea    0xc4b(%rip),%rdi
lea    0xc0b(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb9d(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jle    14b5 <menu+0x375>
lea    0xb83(%rip),%r14
lea    0xbd9(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebp
cmp    %ebp,%ebx
jl     1490 <menu+0x350>
lea    0xbd6(%rip),%rdi
xor    %ebx,%ebx
mov    $0xffffffba,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffba,%edi
call   1030 <putchar@plt>
lea    0xbbb(%rip),%rdi
lea    0xb92(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xb0d(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jle    1545 <menu+0x405>
lea    0xaf3(%rip),%r14
lea    0xb60(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r15,%rdi
call   1040 <strlen@plt>
sub    %eax,%ebp
cmp    %ebp,%ebx
jl     1520 <menu+0x3e0>
lea    0xb46(%rip),%rdi
xor    %ebp,%ebp
mov    $0xffffffba,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffffc8,%edi
call   1030 <putchar@plt>
lea    0xa95(%rip),%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1599 <menu+0x459>
lea    0xa85(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    $0xffffffcd,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebp
jl     1580 <menu+0x440>
lea    0xaf2(%rip),%rdi
mov    $0xffffffbc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xae3(%rip),%rdi
lea    0xacc(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movabs $0x102100001021,%rbx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <getchar@plt>
lea    -0x4b(%rax),%ecx
cmp    $0x2c,%cl
ja     15d0 <menu+0x490>
movzbl %cl,%ecx
bt     %rcx,%rbx
jae    15d0 <menu+0x490>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [42 x i8] c" Przyklad programu wykorzystujacy menu \00"
@.str.2 = [10 x i8] c" Wybierz:\00"
@.str.3 = [41 x i8] c" w - wypisanie 3.5 najwazniejszych zasad\00"
@.str.4 = [23 x i8] c" p - przyklad programu\00"
@.str.5 = [18 x i8] c" k - koniec pracy\00"
@.str.6 = [12 x i8] c"Twoj wybor:\00"
@.str.7 = [3 x i8] c"%c\00"
@.str.8 = [4 x i8] c"%c\0A\00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [2 x i8] c" \00"
define signext i8 @menu() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i32
%10 = alloca [6 x i8*]
%11 = alloca i8
store i8 -55, i8* %1
store i8 -51, i8* %2
store i8 -69, i8* %3
store i8 -70, i8* %4
store i8 -56, i8* %5
store i8 -68, i8* %6
store i8 -52, i8* %7
store i8 -71, i8* %8
store i32 0, i32* %9
br label %12
12: ; preds = %17, %0
%13 = load i32, i32* %9
%14 = icmp slt i32 %13, 25
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %15
%18 = load i32, i32* %9
%19 = add nsw i32 %18, 1
store i32 %19, i32* %9
br label %12
20: ; preds = %12
%21 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
store i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 2
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 3
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 4
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 5
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8** %26
%27 = load i8, i8* %1
%28 = sext i8 %27 to i32
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %28)
store i32 0, i32* %9
br label %30
30: ; preds = %40, %20
%31 = load i32, i32* %9
%32 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%33 = load i8*, i8** %32
%34 = call i32 @strlen(i8* %33)
%35 = icmp slt i32 %31, %34
br i1 %35, label %36, label %43
36: ; preds = %30
%37 = load i8, i8* %2
%38 = sext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %36
%41 = load i32, i32* %9
%42 = add nsw i32 %41, 1
store i32 %42, i32* %9
br label %30
43: ; preds = %30
%44 = load i8, i8* %3
%45 = sext i8 %44 to i32
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %45)
%47 = load i8, i8* %4
%48 = sext i8 %47 to i32
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%51 = load i8*, i8** %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %51)
%53 = load i8, i8* %4
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %54)
%56 = load i8, i8* %7
%57 = sext i8 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %57)
store i32 0, i32* %9
br label %59
59: ; preds = %69, %43
%60 = load i32, i32* %9
%61 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%62 = load i8*, i8** %61
%63 = call i32 @strlen(i8* %62)
%64 = icmp slt i32 %60, %63
br i1 %64, label %65, label %72
65: ; preds = %59
%66 = load i8, i8* %2
%67 = sext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %67)
br label %69
69: ; preds = %65
%70 = load i32, i32* %9
%71 = add nsw i32 %70, 1
store i32 %71, i32* %9
br label %59
72: ; preds = %59
%73 = load i8, i8* %8
%74 = sext i8 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %74)
%76 = load i8, i8* %4
%77 = sext i8 %76 to i32
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 1
%80 = load i8*, i8** %79
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %80)
store i32 0, i32* %9
br label %82
82: ; preds = %94, %72
%83 = load i32, i32* %9
%84 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%85 = load i8*, i8** %84
%86 = call i32 @strlen(i8* %85)
%87 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 1
%88 = load i8*, i8** %87
%89 = call i32 @strlen(i8* %88)
%90 = sub nsw i32 %86, %89
%91 = icmp slt i32 %83, %90
br i1 %91, label %92, label %97
92: ; preds = %82
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = load i32, i32* %9
%96 = add nsw i32 %95, 1
store i32 %96, i32* %9
br label %82
97: ; preds = %82
%98 = load i8, i8* %4
%99 = sext i8 %98 to i32
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %99)
%101 = load i8, i8* %4
%102 = sext i8 %101 to i32
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %102)
%104 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 2
%105 = load i8*, i8** %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %105)
store i32 0, i32* %9
br label %107
107: ; preds = %119, %97
%108 = load i32, i32* %9
%109 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%110 = load i8*, i8** %109
%111 = call i32 @strlen(i8* %110)
%112 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 2
%113 = load i8*, i8** %112
%114 = call i32 @strlen(i8* %113)
%115 = sub nsw i32 %111, %114
%116 = icmp slt i32 %108, %115
br i1 %116, label %117, label %122
117: ; preds = %107
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %119
119: ; preds = %117
%120 = load i32, i32* %9
%121 = add nsw i32 %120, 1
store i32 %121, i32* %9
br label %107
122: ; preds = %107
%123 = load i8, i8* %4
%124 = sext i8 %123 to i32
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %124)
%126 = load i8, i8* %4
%127 = sext i8 %126 to i32
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %127)
%129 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 3
%130 = load i8*, i8** %129
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %130)
store i32 0, i32* %9
br label %132
132: ; preds = %144, %122
%133 = load i32, i32* %9
%134 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%135 = load i8*, i8** %134
%136 = call i32 @strlen(i8* %135)
%137 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 3
%138 = load i8*, i8** %137
%139 = call i32 @strlen(i8* %138)
%140 = sub nsw i32 %136, %139
%141 = icmp slt i32 %133, %140
br i1 %141, label %142, label %147
142: ; preds = %132
%143 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %144
144: ; preds = %142
%145 = load i32, i32* %9
%146 = add nsw i32 %145, 1
store i32 %146, i32* %9
br label %132
147: ; preds = %132
%148 = load i8, i8* %4
%149 = sext i8 %148 to i32
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %149)
%151 = load i8, i8* %4
%152 = sext i8 %151 to i32
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %152)
%154 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 4
%155 = load i8*, i8** %154
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %155)
store i32 0, i32* %9
br label %157
157: ; preds = %169, %147
%158 = load i32, i32* %9
%159 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%160 = load i8*, i8** %159
%161 = call i32 @strlen(i8* %160)
%162 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 4
%163 = load i8*, i8** %162
%164 = call i32 @strlen(i8* %163)
%165 = sub nsw i32 %161, %164
%166 = icmp slt i32 %158, %165
br i1 %166, label %167, label %172
167: ; preds = %157
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %169
169: ; preds = %167
%170 = load i32, i32* %9
%171 = add nsw i32 %170, 1
store i32 %171, i32* %9
br label %157
172: ; preds = %157
%173 = load i8, i8* %4
%174 = sext i8 %173 to i32
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %174)
%176 = load i8, i8* %5
%177 = sext i8 %176 to i32
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %177)
store i32 0, i32* %9
br label %179
179: ; preds = %189, %172
%180 = load i32, i32* %9
%181 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 0
%182 = load i8*, i8** %181
%183 = call i32 @strlen(i8* %182)
%184 = icmp slt i32 %180, %183
br i1 %184, label %185, label %192
185: ; preds = %179
%186 = load i8, i8* %2
%187 = sext i8 %186 to i32
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32 %187)
br label %189
189: ; preds = %185
%190 = load i32, i32* %9
%191 = add nsw i32 %190, 1
store i32 %191, i32* %9
br label %179
192: ; preds = %179
%193 = load i8, i8* %6
%194 = sext i8 %193 to i32
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %194)
%196 = getelementptr inbounds [6 x i8*], [6 x i8*]* %10, i64 0, i64 5
%197 = load i8*, i8** %196
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %197)
br label %199
199: ; preds = %192, %225
%200 = call signext i8 (...) @getchar()
store i8 %200, i8* %11
%201 = load i8, i8* %11
%202 = sext i8 %201 to i32
%203 = icmp eq i32 %202, 119
br i1 %203, label %224, label %204
204: ; preds = %199
%205 = load i8, i8* %11
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 87
br i1 %207, label %224, label %208
208: ; preds = %204
%209 = load i8, i8* %11
%210 = sext i8 %209 to i32
%211 = icmp eq i32 %210, 112
br i1 %211, label %224, label %212
212: ; preds = %208
%213 = load i8, i8* %11
%214 = sext i8 %213 to i32
%215 = icmp eq i32 %214, 80
br i1 %215, label %224, label %216
216: ; preds = %212
%217 = load i8, i8* %11
%218 = sext i8 %217 to i32
%219 = icmp eq i32 %218, 107
br i1 %219, label %224, label %220
220: ; preds = %216
%221 = load i8, i8* %11
%222 = sext i8 %221 to i32
%223 = icmp eq i32 %222, 75
br i1 %223, label %224, label %225
224: ; preds = %220, %216, %212, %208, %204, %199
br label %226
225: ; preds = %220
br label %199
226: ; preds = %224
%227 = load i8, i8* %11
ret i8 %227
}

LLVM IR (-O2):
@.str.1 = [42 x i8] c" Przyklad programu wykorzystujacy menu \00"
@.str.2 = [10 x i8] c" Wybierz:\00"
@.str.3 = [41 x i8] c" w - wypisanie 3.5 najwazniejszych zasad\00"
@.str.4 = [23 x i8] c" p - przyklad programu\00"
@.str.5 = [18 x i8] c" k - koniec pracy\00"
@.str.6 = [12 x i8] c"Twoj wybor:\00"
@.str.8 = [4 x i8] c"%c\0A\00"
@.str.9 = [3 x i8] c"%s\00"
define signext i8 @menu() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 @putchar(i32 10)
%17 = tail call i32 @putchar(i32 10)
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @putchar(i32 10)
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i32 @putchar(i32 10)
%22 = tail call i32 @putchar(i32 10)
%23 = tail call i32 @putchar(i32 10)
%24 = tail call i32 @putchar(i32 10)
%25 = tail call i32 @putchar(i32 10)
%26 = tail call i32 @putchar(i32 -55)
%27 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %35
29: ; preds = %0, %29
%30 = phi i32 [ %32, %29 ], [ 0, %0 ]
%31 = tail call i32 @putchar(i32 -51)
%32 = add nuw nsw i32 %30, 1
%33 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%34 = icmp slt i32 %32, %33
br i1 %34, label %29, label %35
35: ; preds = %29, %0
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -69)
%37 = tail call i32 @putchar(i32 -70)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -70)
%40 = tail call i32 @putchar(i32 -52)
%41 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %49
43: ; preds = %35, %43
%44 = phi i32 [ %46, %43 ], [ 0, %35 ]
%45 = tail call i32 @putchar(i32 -51)
%46 = add nuw nsw i32 %44, 1
%47 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%48 = icmp slt i32 %46, %47
br i1 %48, label %43, label %49
49: ; preds = %43, %35
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -71)
%51 = tail call i32 @putchar(i32 -70)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%53 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%54 = tail call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %64
56: ; preds = %49, %56
%57 = phi i32 [ %59, %56 ], [ 0, %49 ]
%58 = tail call i32 @putchar(i32 32)
%59 = add nuw nsw i32 %57, 1
%60 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%61 = tail call i32 @strlen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%62 = sub nsw i32 %60, %61
%63 = icmp slt i32 %59, %62
br i1 %63, label %56, label %64
64: ; preds = %56, %49
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -70)
%66 = tail call i32 @putchar(i32 -70)
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%68 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%69 = tail call i32 @strlen(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%70 = icmp sgt i32 %68, %69
br i1 %70, label %71, label %79
71: ; preds = %64, %71
%72 = phi i32 [ %74, %71 ], [ 0, %64 ]
%73 = tail call i32 @putchar(i32 32)
%74 = add nuw nsw i32 %72, 1
%75 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%76 = tail call i32 @strlen(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%77 = sub nsw i32 %75, %76
%78 = icmp slt i32 %74, %77
br i1 %78, label %71, label %79
79: ; preds = %71, %64
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -70)
%81 = tail call i32 @putchar(i32 -70)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%83 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%84 = tail call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%85 = icmp sgt i32 %83, %84
br i1 %85, label %86, label %94
86: ; preds = %79, %86
%87 = phi i32 [ %89, %86 ], [ 0, %79 ]
%88 = tail call i32 @putchar(i32 32)
%89 = add nuw nsw i32 %87, 1
%90 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%91 = tail call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%92 = sub nsw i32 %90, %91
%93 = icmp slt i32 %89, %92
br i1 %93, label %86, label %94
94: ; preds = %86, %79
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -70)
%96 = tail call i32 @putchar(i32 -70)
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%98 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%99 = tail call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%100 = icmp sgt i32 %98, %99
br i1 %100, label %101, label %109
101: ; preds = %94, %101
%102 = phi i32 [ %104, %101 ], [ 0, %94 ]
%103 = tail call i32 @putchar(i32 32)
%104 = add nuw nsw i32 %102, 1
%105 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%106 = tail call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%107 = sub nsw i32 %105, %106
%108 = icmp slt i32 %104, %107
br i1 %108, label %101, label %109
109: ; preds = %101, %94
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -70)
%111 = tail call i32 @putchar(i32 -56)
%112 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%113 = icmp sgt i32 %112, 0
br i1 %113, label %114, label %120
114: ; preds = %109, %114
%115 = phi i32 [ %117, %114 ], [ 0, %109 ]
%116 = tail call i32 @putchar(i32 -51)
%117 = add nuw nsw i32 %115, 1
%118 = tail call i32 @strlen(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%119 = icmp slt i32 %117, %118
br i1 %119, label %114, label %120
120: ; preds = %114, %109
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 -68)
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
br label %123
123: ; preds = %123, %120
%124 = tail call signext i8 (...) @getchar()
switch i8 %124, label %123 [
i8 119, label %125
i8 112, label %125
i8 107, label %125
i8 87, label %125
i8 80, label %125
i8 75, label %125
]
125: ; preds = %123, %123, %123, %123, %123, %123
ret i8 %124
}