#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 getch();
int /*<<< orphan*/ getsn(char *, int);
int htoi(char *);
int peek(int);
int /*<<< orphan*/ putch(char);
int /*<<< orphan*/ puthex_b(int);
int /*<<< orphan*/ puthex_l(int);
int /*<<< orphan*/ puts0(char *);
void memd0(void) {
  char str[256];
  int a, i, line, c;
  puts0("adr? ");
  getsn(str, 256);
  a = (htoi(str));
  puts0("\r\n");
  while (1) {
    for (line = 0; line < 23; line++) {
      puthex_l(a);
      putch(' ');
      for (i = 0; i < 16; i++) {
        c = peek(a + i);
        puthex_b(c);
        putch(' ');
      }
      for (i = 0; i < 16; i++) {
        c = (peek(a + i)) & 0xFFU;
        if (c < ' ')
          putch('.');
        else
          putch(c);
      }
      a += 16;
      puts0("\r\n");
    }
    puts0("more?");
    if (getch() == 'q')
      return;
    putch('\r');
  }
}


x86 assembly (clang, -O0):
<memd0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
lea    0xe6e(%rip),%rdi
call   1090 <puts0@plt>
lea    -0x100(%rbp),%rdi
mov    $0x100,%esi
call   1030 <getsn@plt>
lea    -0x100(%rbp),%rdi
call   1070 <htoi@plt>
mov    %eax,-0x104(%rbp)
lea    0xe45(%rip),%rdi
call   1090 <puts0@plt>
movl   $0x0,-0x10c(%rbp)
cmpl   $0x17,-0x10c(%rbp)
jge    12ee <memd0+0x16e>
mov    -0x104(%rbp),%edi
call   1060 <puthex_l@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
movl   $0x0,-0x108(%rbp)
cmpl   $0x10,-0x108(%rbp)
jge    1249 <memd0+0xc9>
mov    -0x104(%rbp),%edi
add    -0x108(%rbp),%edi
call   1040 <peek@plt>
mov    %eax,-0x110(%rbp)
mov    -0x110(%rbp),%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    11fc <memd0+0x7c>
movl   $0x0,-0x108(%rbp)
cmpl   $0x10,-0x108(%rbp)
jge    12bf <memd0+0x13f>
mov    -0x104(%rbp),%edi
add    -0x108(%rbp),%edi
call   1040 <peek@plt>
and    $0xff,%eax
mov    %eax,-0x110(%rbp)
cmpl   $0x20,-0x110(%rbp)
jge    1298 <memd0+0x118>
mov    $0x2e,%edi
call   10a0 <putch@plt>
jmp    12a6 <memd0+0x126>
mov    -0x110(%rbp),%eax
movsbl %al,%edi
call   10a0 <putch@plt>
jmp    12ab <memd0+0x12b>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    1253 <memd0+0xd3>
mov    -0x104(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x104(%rbp)
lea    0xd31(%rip),%rdi
call   1090 <puts0@plt>
mov    -0x10c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10c(%rbp)
jmp    11d0 <memd0+0x50>
lea    0xd14(%rip),%rdi
call   1090 <puts0@plt>
mov    $0x0,%al
call   1080 <getch@plt>
movsbl %al,%eax
cmp    $0x71,%eax
jne    1316 <memd0+0x196>
add    $0x110,%rsp
pop    %rbp
ret
mov    $0xd,%edi
call   10a0 <putch@plt>
jmp    11c6 <memd0+0x46>

x86 assembly (clang, -O2):
<memd0>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
lea    0xe68(%rip),%rdi
call   1090 <puts0@plt>
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
call   1030 <getsn@plt>
mov    %rbx,%rdi
call   1070 <htoi@plt>
mov    %eax,%ebx
lea    0xe46(%rip),%rdi
call   1090 <puts0@plt>
mov    $0x2e,%r14d
movl   $0x0,(%rsp)
jmp    11e8 <memd0+0x68>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,(%rsp)
add    $0x1,%ebp
mov    %ebp,%ebx
mov    %ebx,%edi
call   1060 <puthex_l@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
mov    %ebx,%edi
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x1(%rbx),%r12d
mov    %r12d,%edi
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x2(%rbx),%r13d
mov    %r13d,%edi
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x3(%rbx),%edi
mov    %edi,0x2c(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x4(%rbx),%r15d
mov    %r15d,%edi
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x5(%rbx),%edi
mov    %edi,0x28(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x6(%rbx),%edi
mov    %edi,0x24(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x7(%rbx),%edi
mov    %edi,0x20(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x8(%rbx),%edi
mov    %edi,0x1c(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0x9(%rbx),%edi
mov    %edi,0x18(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0xa(%rbx),%edi
mov    %edi,0x14(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0xb(%rbx),%edi
mov    %edi,0x10(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0xc(%rbx),%edi
mov    %edi,0xc(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0xd(%rbx),%edi
mov    %edi,0x8(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0xe(%rbx),%edi
mov    %edi,0x4(%rsp)
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
lea    0xf(%rbx),%ebp
mov    %ebp,%edi
call   1040 <peek@plt>
mov    %eax,%edi
call   1050 <puthex_b@plt>
mov    $0x20,%edi
call   10a0 <putch@plt>
mov    %ebx,%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    %r12d,%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    %r13d,%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x2c(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    %r15d,%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x28(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x24(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x20(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x1c(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x18(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x14(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x10(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0xc(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x8(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    0x4(%rsp),%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
mov    %ebp,%edi
call   1040 <peek@plt>
test   $0xe0,%al
cmove  %r14d,%eax
movsbl %al,%edi
call   10a0 <putch@plt>
lea    0xad4(%rip),%rdi
call   1090 <puts0@plt>
mov    (%rsp),%eax
add    $0x1,%eax
cmp    $0x17,%eax
jne    11e0 <memd0+0x60>
lea    0xabc(%rip),%rdi
call   1090 <puts0@plt>
xor    %eax,%eax
call   1080 <getch@plt>
cmp    $0x71,%al
je     156e <memd0+0x3ee>
mov    $0xd,%edi
call   10a0 <putch@plt>
xor    %eax,%eax
jmp    11e0 <memd0+0x60>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"adr? \00"
@.str.1 = [3 x i8] c"\0D\0A\00"
@.str.2 = [6 x i8] c"more?\00"
define void @memd0() {
%1 = alloca [256 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = call i32 @puts0(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%8 = call i32 @getsn(i8* %7, i32 256)
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%10 = call i32 @htoi(i8* %9)
store i32 %10, i32* %2
%11 = call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %12
12: ; preds = %0, %69
store i32 0, i32* %4
br label %13
13: ; preds = %60, %12
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 23
br i1 %15, label %16, label %63
16: ; preds = %13
%17 = load i32, i32* %2
%18 = call i32 @puthex_l(i32 %17)
%19 = call i32 @putch(i8 signext 32)
store i32 0, i32* %3
br label %20
20: ; preds = %31, %16
%21 = load i32, i32* %3
%22 = icmp slt i32 %21, 16
br i1 %22, label %23, label %34
23: ; preds = %20
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = add nsw i32 %24, %25
%27 = call i32 @peek(i32 %26)
store i32 %27, i32* %5
%28 = load i32, i32* %5
%29 = call i32 @puthex_b(i32 %28)
%30 = call i32 @putch(i8 signext 32)
br label %31
31: ; preds = %23
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
br label %20
34: ; preds = %20
store i32 0, i32* %3
br label %35
35: ; preds = %53, %34
%36 = load i32, i32* %3
%37 = icmp slt i32 %36, 16
br i1 %37, label %38, label %56
38: ; preds = %35
%39 = load i32, i32* %2
%40 = load i32, i32* %3
%41 = add nsw i32 %39, %40
%42 = call i32 @peek(i32 %41)
%43 = and i32 %42, 255
store i32 %43, i32* %5
%44 = load i32, i32* %5
%45 = icmp slt i32 %44, 32
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 @putch(i8 signext 46)
br label %52
48: ; preds = %38
%49 = load i32, i32* %5
%50 = trunc i32 %49 to i8
%51 = call i32 @putch(i8 signext %50)
br label %52
52: ; preds = %48, %46
br label %53
53: ; preds = %52
%54 = load i32, i32* %3
%55 = add nsw i32 %54, 1
store i32 %55, i32* %3
br label %35
56: ; preds = %35
%57 = load i32, i32* %2
%58 = add nsw i32 %57, 16
store i32 %58, i32* %2
%59 = call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %60
60: ; preds = %56
%61 = load i32, i32* %4
%62 = add nsw i32 %61, 1
store i32 %62, i32* %4
br label %13
63: ; preds = %13
%64 = call i32 @puts0(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%65 = call signext i8 (...) @getch()
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 113
br i1 %67, label %68, label %69
68: ; preds = %63
ret void
69: ; preds = %63
%70 = call i32 @putch(i8 signext 13)
br label %12
}

LLVM IR (-O2):
@.str = [6 x i8] c"adr? \00"
@.str.1 = [3 x i8] c"\0D\0A\00"
@.str.2 = [6 x i8] c"more?\00"
define void @memd0() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @puts0(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @getsn(i8* %2, i32 256)
%5 = call i32 @htoi(i8* %2)
%6 = call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %190, %0
%8 = phi i32 [ 0, %0 ], [ %191, %190 ]
%9 = phi i32 [ %5, %0 ], [ %186, %190 ]
%10 = call i32 @puthex_l(i32 %9)
%11 = call i32 @putch(i8 signext 32)
%12 = call i32 @peek(i32 %9)
%13 = call i32 @puthex_b(i32 %12)
%14 = call i32 @putch(i8 signext 32)
%15 = add nsw i32 %9, 1
%16 = call i32 @peek(i32 %15)
%17 = call i32 @puthex_b(i32 %16)
%18 = call i32 @putch(i8 signext 32)
%19 = add nsw i32 %9, 2
%20 = call i32 @peek(i32 %19)
%21 = call i32 @puthex_b(i32 %20)
%22 = call i32 @putch(i8 signext 32)
%23 = add nsw i32 %9, 3
%24 = call i32 @peek(i32 %23)
%25 = call i32 @puthex_b(i32 %24)
%26 = call i32 @putch(i8 signext 32)
%27 = add nsw i32 %9, 4
%28 = call i32 @peek(i32 %27)
%29 = call i32 @puthex_b(i32 %28)
%30 = call i32 @putch(i8 signext 32)
%31 = add nsw i32 %9, 5
%32 = call i32 @peek(i32 %31)
%33 = call i32 @puthex_b(i32 %32)
%34 = call i32 @putch(i8 signext 32)
%35 = add nsw i32 %9, 6
%36 = call i32 @peek(i32 %35)
%37 = call i32 @puthex_b(i32 %36)
%38 = call i32 @putch(i8 signext 32)
%39 = add nsw i32 %9, 7
%40 = call i32 @peek(i32 %39)
%41 = call i32 @puthex_b(i32 %40)
%42 = call i32 @putch(i8 signext 32)
%43 = add nsw i32 %9, 8
%44 = call i32 @peek(i32 %43)
%45 = call i32 @puthex_b(i32 %44)
%46 = call i32 @putch(i8 signext 32)
%47 = add nsw i32 %9, 9
%48 = call i32 @peek(i32 %47)
%49 = call i32 @puthex_b(i32 %48)
%50 = call i32 @putch(i8 signext 32)
%51 = add nsw i32 %9, 10
%52 = call i32 @peek(i32 %51)
%53 = call i32 @puthex_b(i32 %52)
%54 = call i32 @putch(i8 signext 32)
%55 = add nsw i32 %9, 11
%56 = call i32 @peek(i32 %55)
%57 = call i32 @puthex_b(i32 %56)
%58 = call i32 @putch(i8 signext 32)
%59 = add nsw i32 %9, 12
%60 = call i32 @peek(i32 %59)
%61 = call i32 @puthex_b(i32 %60)
%62 = call i32 @putch(i8 signext 32)
%63 = add nsw i32 %9, 13
%64 = call i32 @peek(i32 %63)
%65 = call i32 @puthex_b(i32 %64)
%66 = call i32 @putch(i8 signext 32)
%67 = add nsw i32 %9, 14
%68 = call i32 @peek(i32 %67)
%69 = call i32 @puthex_b(i32 %68)
%70 = call i32 @putch(i8 signext 32)
%71 = add nsw i32 %9, 15
%72 = call i32 @peek(i32 %71)
%73 = call i32 @puthex_b(i32 %72)
%74 = call i32 @putch(i8 signext 32)
%75 = call i32 @peek(i32 %9)
%76 = and i32 %75, 224
%77 = icmp eq i32 %76, 0
%78 = trunc i32 %75 to i8
%79 = select i1 %77, i8 46, i8 %78
%80 = call i32 @putch(i8 signext %79)
%81 = add nsw i32 %9, 1
%82 = call i32 @peek(i32 %81)
%83 = and i32 %82, 224
%84 = icmp eq i32 %83, 0
%85 = trunc i32 %82 to i8
%86 = select i1 %84, i8 46, i8 %85
%87 = call i32 @putch(i8 signext %86)
%88 = add nsw i32 %9, 2
%89 = call i32 @peek(i32 %88)
%90 = and i32 %89, 224
%91 = icmp eq i32 %90, 0
%92 = trunc i32 %89 to i8
%93 = select i1 %91, i8 46, i8 %92
%94 = call i32 @putch(i8 signext %93)
%95 = add nsw i32 %9, 3
%96 = call i32 @peek(i32 %95)
%97 = and i32 %96, 224
%98 = icmp eq i32 %97, 0
%99 = trunc i32 %96 to i8
%100 = select i1 %98, i8 46, i8 %99
%101 = call i32 @putch(i8 signext %100)
%102 = add nsw i32 %9, 4
%103 = call i32 @peek(i32 %102)
%104 = and i32 %103, 224
%105 = icmp eq i32 %104, 0
%106 = trunc i32 %103 to i8
%107 = select i1 %105, i8 46, i8 %106
%108 = call i32 @putch(i8 signext %107)
%109 = add nsw i32 %9, 5
%110 = call i32 @peek(i32 %109)
%111 = and i32 %110, 224
%112 = icmp eq i32 %111, 0
%113 = trunc i32 %110 to i8
%114 = select i1 %112, i8 46, i8 %113
%115 = call i32 @putch(i8 signext %114)
%116 = add nsw i32 %9, 6
%117 = call i32 @peek(i32 %116)
%118 = and i32 %117, 224
%119 = icmp eq i32 %118, 0
%120 = trunc i32 %117 to i8
%121 = select i1 %119, i8 46, i8 %120
%122 = call i32 @putch(i8 signext %121)
%123 = add nsw i32 %9, 7
%124 = call i32 @peek(i32 %123)
%125 = and i32 %124, 224
%126 = icmp eq i32 %125, 0
%127 = trunc i32 %124 to i8
%128 = select i1 %126, i8 46, i8 %127
%129 = call i32 @putch(i8 signext %128)
%130 = add nsw i32 %9, 8
%131 = call i32 @peek(i32 %130)
%132 = and i32 %131, 224
%133 = icmp eq i32 %132, 0
%134 = trunc i32 %131 to i8
%135 = select i1 %133, i8 46, i8 %134
%136 = call i32 @putch(i8 signext %135)
%137 = add nsw i32 %9, 9
%138 = call i32 @peek(i32 %137)
%139 = and i32 %138, 224
%140 = icmp eq i32 %139, 0
%141 = trunc i32 %138 to i8
%142 = select i1 %140, i8 46, i8 %141
%143 = call i32 @putch(i8 signext %142)
%144 = add nsw i32 %9, 10
%145 = call i32 @peek(i32 %144)
%146 = and i32 %145, 224
%147 = icmp eq i32 %146, 0
%148 = trunc i32 %145 to i8
%149 = select i1 %147, i8 46, i8 %148
%150 = call i32 @putch(i8 signext %149)
%151 = add nsw i32 %9, 11
%152 = call i32 @peek(i32 %151)
%153 = and i32 %152, 224
%154 = icmp eq i32 %153, 0
%155 = trunc i32 %152 to i8
%156 = select i1 %154, i8 46, i8 %155
%157 = call i32 @putch(i8 signext %156)
%158 = add nsw i32 %9, 12
%159 = call i32 @peek(i32 %158)
%160 = and i32 %159, 224
%161 = icmp eq i32 %160, 0
%162 = trunc i32 %159 to i8
%163 = select i1 %161, i8 46, i8 %162
%164 = call i32 @putch(i8 signext %163)
%165 = add nsw i32 %9, 13
%166 = call i32 @peek(i32 %165)
%167 = and i32 %166, 224
%168 = icmp eq i32 %167, 0
%169 = trunc i32 %166 to i8
%170 = select i1 %168, i8 46, i8 %169
%171 = call i32 @putch(i8 signext %170)
%172 = add nsw i32 %9, 14
%173 = call i32 @peek(i32 %172)
%174 = and i32 %173, 224
%175 = icmp eq i32 %174, 0
%176 = trunc i32 %173 to i8
%177 = select i1 %175, i8 46, i8 %176
%178 = call i32 @putch(i8 signext %177)
%179 = add nsw i32 %9, 15
%180 = call i32 @peek(i32 %179)
%181 = and i32 %180, 224
%182 = icmp eq i32 %181, 0
%183 = trunc i32 %180 to i8
%184 = select i1 %182, i8 46, i8 %183
%185 = call i32 @putch(i8 signext %184)
%186 = add nsw i32 %9, 16
%187 = call i32 @puts0(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%188 = add nuw nsw i32 %8, 1
%189 = icmp eq i32 %188, 23
br i1 %189, label %192, label %190
190: ; preds = %7, %197
%191 = phi i32 [ %188, %7 ], [ 0, %197 ]
br label %7
192: ; preds = %7
%193 = call i32 @puts0(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%194 = call signext i8 (...) @getch()
%195 = icmp eq i8 %194, 113
br i1 %195, label %196, label %197
196: ; preds = %192
ret void
197: ; preds = %192
%198 = call i32 @putch(i8 signext 13)
br label %190
}