#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*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ hiroko_ism(int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdout;
int main(void) {
  int count = 1;
  printf("Ðëqu È½Ìg·ð¨·«µÄàæëµ­ÄH"
         "v\n");
  while (1) {
    int height;
    printf(" È½Íºç©É©ñ¾ccI: ");
    scanf("%d", &height);
    printf(" È½u´Ìg·Ícc%d cm ¾ºIv\n",
           height);
    hiroko_ism(&height);
    fprintf(stdout,
            "ÐëquÜI %d cm "
            "à¨ èÈÌËIEVCIv\n\n",
            height);
    printf("Ðëqu³Äcc%d "
           "lÚÌ È½Ag·Í¨¢­ÂÈÌ©µçHv"
           "\n",
           ++count);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1060 <scanf@plt>
mov    -0xc(%rbp),%esi
lea    0xf10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0xc(%rbp),%rdi
call   1050 <hiroko_ism@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
mov    -0xc(%rbp),%edx
lea    0xf2b(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
mov    %esi,-0x10(%rbp)
mov    %esi,-0x8(%rbp)
lea    0xf6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1164 <main+0x24>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xfe4(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2,%ebx
lea    0x4(%rsp),%r12
lea    0xec7(%rip),%r13
mov    0x2e61(%rip),%r15
lea    0xef7(%rip),%rbp
lea    0xf49(%rip),%r14
nopl   (%rax)
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
mov    %r12,%rsi
call   1070 <scanf@plt>
mov    0x4(%rsp),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
call   1060 <hiroko_ism@plt>
mov    (%r15),%edi
mov    0x4(%rsp),%edx
mov    %rbp,%rsi
call   1050 <fprintf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%ebx
jmp    1190 <main+0x40>

LLVM IR (-O0):
@.str = [93 x i8] c"\C2\82\C3\90\C2\82\C3\AB\C2\8Eq\C2\81u\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\82\C3\8C\C2\90g\C2\92\C2\B7\C2\82\C3\B0\C2\82\C2\A8\C2\95\C2\B7\C2\82\C2\AB\C2\82\C2\B5\C2\82\C3\84\C2\82\C3\A0\C2\82\C3\A6\C2\82\C3\AB\C2\82\C2\B5\C2\82\C2\AD\C2\82\C3\84\C2\81H\C2\81v\0A\00"
@.str.1 = [60 x i8] c"\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\82\C3\8D\C2\90\C2\BA\C2\8D\C2\82\C2\82\C3\A7\C2\82\C2\A9\C2\82\C3\89\C2\8B\C2\A9\C2\82\C3\B1\C2\82\C2\BE\C2\81c\C2\81c\C2\81I: \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [62 x i8] c"\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\81u\C2\89\C2\B4\C2\82\C3\8C\C2\90g\C2\92\C2\B7\C2\82\C3\8D\C2\81c\C2\81c%d cm \C2\82\C2\BE\C2\82\C2\BA\C2\81I\C2\81v\0A\00"
@stdout = global i32 0
@.str.4 = [89 x i8] c"\C2\82\C3\90\C2\82\C3\AB\C2\8Eq\C2\81u\C2\82\C3\9C\C2\82\C2\9F\C2\81I %d cm \C2\82\C3\A0\C2\82\C2\A8\C2\82\C2\A0\C2\82\C3\A8\C2\82\C3\88\C2\82\C3\8C\C2\82\C3\8B\C2\81I\C2\83E\C2\83\C2\8C\C2\83V\C2\83C\C2\83\C2\8F\C2\81I\C2\81v\0A\0A\00"
@.str.5 = [112 x i8] c"\C2\82\C3\90\C2\82\C3\AB\C2\8Eq\C2\81u\C2\82\C2\B3\C2\82\C3\84\C2\81c\C2\81c%d \C2\90l\C2\96\C3\9A\C2\82\C3\8C\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\81A\C2\90g\C2\92\C2\B7\C2\82\C3\8D\C2\82\C2\A8\C2\82\C2\A2\C2\82\C2\AD\C2\82\C3\82\C2\82\C3\88\C2\82\C3\8C\C2\82\C2\A9\C2\82\C2\B5\C2\82\C3\A7\C2\81H\C2\81v\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0))
br label %5
5: ; preds = %0, %5
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%8 = load i32, i32* %3
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = call i32 @hiroko_ism(i32* %3)
%11 = load i32, i32* @stdout
%12 = load i32, i32* %3
%13 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 1
store i32 %15, i32* %2
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str.5, i64 0, i64 0), i32 %15)
br label %5
}

LLVM IR (-O2):
@.str.1 = [60 x i8] c"\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\82\C3\8D\C2\90\C2\BA\C2\8D\C2\82\C2\82\C3\A7\C2\82\C2\A9\C2\82\C3\89\C2\8B\C2\A9\C2\82\C3\B1\C2\82\C2\BE\C2\81c\C2\81c\C2\81I: \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [62 x i8] c"\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\81u\C2\89\C2\B4\C2\82\C3\8C\C2\90g\C2\92\C2\B7\C2\82\C3\8D\C2\81c\C2\81c%d cm \C2\82\C2\BE\C2\82\C2\BA\C2\81I\C2\81v\0A\00"
@stdout = global i32 0
@.str.4 = [89 x i8] c"\C2\82\C3\90\C2\82\C3\AB\C2\8Eq\C2\81u\C2\82\C3\9C\C2\82\C2\9F\C2\81I %d cm \C2\82\C3\A0\C2\82\C2\A8\C2\82\C2\A0\C2\82\C3\A8\C2\82\C3\88\C2\82\C3\8C\C2\82\C3\8B\C2\81I\C2\83E\C2\83\C2\8C\C2\83V\C2\83C\C2\83\C2\8F\C2\81I\C2\81v\0A\0A\00"
@.str.5 = [112 x i8] c"\C2\82\C3\90\C2\82\C3\AB\C2\8Eq\C2\81u\C2\82\C2\B3\C2\82\C3\84\C2\81c\C2\81c%d \C2\90l\C2\96\C3\9A\C2\82\C3\8C\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\81A\C2\90g\C2\92\C2\B7\C2\82\C3\8D\C2\82\C2\A8\C2\82\C2\A2\C2\82\C2\AD\C2\82\C3\82\C2\82\C3\88\C2\82\C3\8C\C2\82\C2\A9\C2\82\C2\B5\C2\82\C3\A7\C2\81H\C2\81v\0A\00"
@str = [92 x i8] c"\C2\82\C3\90\C2\82\C3\AB\C2\8Eq\C2\81u\C2\82\C2\A0\C2\82\C3\88\C2\82\C2\BD\C2\82\C3\8C\C2\90g\C2\92\C2\B7\C2\82\C3\B0\C2\82\C2\A8\C2\95\C2\B7\C2\82\C2\AB\C2\82\C2\B5\C2\82\C3\84\C2\82\C3\A0\C2\82\C3\A6\C2\82\C3\AB\C2\82\C2\B5\C2\82\C2\AD\C2\82\C3\84\C2\81H\C2\81v\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str, i64 0, i64 0))
%3 = bitcast i32* %1 to i8*
br label %4
4: ; preds = %4, %0
%5 = phi i32 [ 1, %0 ], [ %14, %4 ]
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = call i32 @hiroko_ism(i32* %1)
%11 = load i32, i32* @stdout
%12 = load i32, i32* %1
%13 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = add nuw nsw i32 %5, 1
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @.str.5, i64 0, i64 0), i32 %14)
br label %4
}