#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*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ strcpy(char *, char *);
int main() {
  int n;
  int ribuan, ratusan, puluhan, satuan;
  char ribuanStr[4], ratusanStr[4], puluhanStr[4], satuanStr[4];
  int valid;
  valid = 0;
  while (valid == 0) {
    printf("Masukkan angka yang akan dikonversi\n");
    printf("Nilai harus lebih dari nol dan tidak boleh lebih dari 3999 : ");
    scanf("%d", &n);
    if (n <= 3999 && n > 0) {
      valid = 1;
    } else {
      printf("Ingat! Nilai harus lebih dari nol tidak boleh lebih dari "
             "3999.\n\n\n");
    }
  }
  ribuan = n / 1000;
  ratusan = (n % 1000) / 100;
  puluhan = (n % 100) / 10;
  satuan = n % 10;
  printf("\nAngka romawi dari %d adalah ", n);
  switch (ribuan) {
  case 1:
    strcpy(ribuanStr, "M");
    break;
  case 2:
    strcpy(ribuanStr, "MM");
    break;
  case 3:
    strcpy(ribuanStr, "MMM");
    break;
  default:
    strcpy(ribuanStr, "");
  };
  printf("%s", ribuanStr);
  switch (ratusan) {
  case 1:
    strcpy(ratusanStr, "C");
    break;
  case 2:
    strcpy(ratusanStr, "CC");
    break;
  case 3:
    strcpy(ratusanStr, "CCC");
    break;
  case 4:
    strcpy(ratusanStr, "CD");
    break;
  case 5:
    strcpy(ratusanStr, "D");
    break;
  case 6:
    strcpy(ratusanStr, "DC");
    break;
  case 7:
    strcpy(ratusanStr, "DCC");
    break;
  case 8:
    strcpy(ratusanStr, "DCCC");
    break;
  case 9:
    strcpy(ratusanStr, "CM");
    break;
  default:
    strcpy(ratusanStr, "");
  };
  printf("%s", ratusanStr);
  switch (puluhan) {
  case 1:
    strcpy(puluhanStr, "X");
    break;
  case 2:
    strcpy(puluhanStr, "XX");
    break;
  case 3:
    strcpy(puluhanStr, "XXX");
    break;
  case 4:
    strcpy(puluhanStr, "XL");
    break;
  case 5:
    strcpy(puluhanStr, "L");
    break;
  case 6:
    strcpy(puluhanStr, "LX");
    break;
  case 7:
    strcpy(puluhanStr, "LXX");
    break;
  case 8:
    strcpy(puluhanStr, "LXXX");
    break;
  case 9:
    strcpy(puluhanStr, "XC");
    break;
  default:
    strcpy(puluhanStr, "");
  };
  printf("%s", puluhanStr);
  switch (satuan) {
  case 1:
    strcpy(satuanStr, "I");
    break;
  case 2:
    strcpy(satuanStr, "II");
    break;
  case 3:
    strcpy(satuanStr, "III");
    break;
  case 4:
    strcpy(satuanStr, "IV");
    break;
  case 5:
    strcpy(satuanStr, "V");
    break;
  case 6:
    strcpy(satuanStr, "VI");
    break;
  case 7:
    strcpy(satuanStr, "VII");
    break;
  case 8:
    strcpy(satuanStr, "VIII");
    break;
  case 9:
    strcpy(satuanStr, "IX");
    break;
  default:
    strcpy(satuanStr, "");
    break;
  };
  printf("%s", satuanStr);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    11b2 <main+0x82>
lea    0xf15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf5c(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0xf9f,-0x8(%rbp)
jg     119f <main+0x6f>
cmpl   $0x0,-0x8(%rbp)
jle    119f <main+0x6f>
movl   $0x1,-0x2c(%rbp)
jmp    11ad <main+0x7d>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1146 <main+0x16>
movslq -0x8(%rbp),%rax
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
mov    %eax,-0xc(%rbp)
movslq -0x8(%rbp),%rcx
mov    %ecx,%eax
imul   $0x10624dd3,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rcx
add    %edx,%ecx
imul   $0x3e8,%ecx,%ecx
sub    %ecx,%eax
cltq
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
movslq -0x8(%rbp),%rcx
mov    %ecx,%eax
imul   $0x51eb851f,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
movslq -0x8(%rbp),%rcx
mov    %ecx,%eax
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rdx
add    %ecx,%edx
add    %edx,%edx
mov    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
sub    $0x1,%eax
je     12ad <main+0x17d>
jmp    128b <main+0x15b>
mov    -0x30(%rbp),%eax
sub    $0x2,%eax
je     12c2 <main+0x192>
jmp    129c <main+0x16c>
mov    -0x30(%rbp),%eax
sub    $0x3,%eax
je     12d7 <main+0x1a7>
jmp    12ec <main+0x1bc>
lea    -0x1c(%rbp),%rdi
lea    0xe91(%rip),%rsi
call   1030 <strcpy@plt>
jmp    12fc <main+0x1cc>
lea    -0x1c(%rbp),%rdi
lea    0xe66(%rip),%rsi
call   1030 <strcpy@plt>
jmp    12fc <main+0x1cc>
lea    -0x1c(%rbp),%rdi
lea    0xe50(%rip),%rsi
call   1030 <strcpy@plt>
jmp    12fc <main+0x1cc>
lea    -0x1c(%rbp),%rdi
lea    0xe1c(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xe33(%rip),%rdi
xor    %eax,%eax
lea    -0x1c(%rbp),%rsi
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x8,%eax
ja     13f4 <main+0x2c4>
mov    -0x38(%rbp),%rax
lea    0xcd2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x20(%rbp),%rdi
lea    0xe04(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xdd8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xda4(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xd91(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xd7f(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xd6e(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1404 <main+0x2d4>
lea    -0x20(%rbp),%rdi
lea    0xd14(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xd2b(%rip),%rdi
xor    %eax,%eax
lea    -0x20(%rbp),%rsi
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x8,%eax
ja     14fc <main+0x3cc>
mov    -0x40(%rbp),%rax
lea    0xbee(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x24(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xcf3(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xce2(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xcc2(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xcae(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xc9b(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xc89(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xc78(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xc68(%rip),%rsi
call   1030 <strcpy@plt>
jmp    150c <main+0x3dc>
lea    -0x24(%rbp),%rdi
lea    0xc0c(%rip),%rsi
call   1030 <strcpy@plt>
lea    0xc23(%rip),%rdi
xor    %eax,%eax
lea    -0x24(%rbp),%rsi
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x8,%eax
ja     1604 <main+0x4d4>
mov    -0x48(%rbp),%rax
lea    0xb0a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x28(%rbp),%rdi
lea    0xc18(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xc02(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xbec(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xbcc(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xbb8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xba5(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xb93(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xb82(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xb72(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1614 <main+0x4e4>
lea    -0x28(%rbp),%rdi
lea    0xb04(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x28(%rbp),%rsi
lea    0xb17(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xf47(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xecf(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0xf9f,%eax
jb     11e3 <main+0xa3>
lea    0xf32(%rip),%r14
lea    0xf07(%rip),%r15
lea    0xe64(%rip),%r12
lea    0xe9b(%rip),%r13
lea    0xc(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0xf9e,%eax
ja     11b0 <main+0x70>
movslq 0xc(%rsp),%rbx
imul   $0x10624dd3,%rbx,%r14
mov    %r14,%rax
shr    $0x3f,%rax
mov    %rax,0x10(%rsp)
sar    $0x26,%r14
add    %r14d,%eax
imul   $0x3e8,%eax,%eax
mov    %ebx,%ecx
sub    %eax,%ecx
movswl %cx,%eax
imul   $0x147b,%eax,%r12d
mov    %r12d,%eax
shr    $0x1f,%eax
sar    $0x13,%r12d
add    %eax,%r12d
imul   $0x51eb851f,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x25,%rax
add    %ecx,%eax
imul   $0x64,%eax,%eax
mov    %ebx,%ecx
sub    %eax,%ecx
movsbl %cl,%eax
imul   $0x67,%eax,%eax
movzwl %ax,%r13d
movswl %r13w,%ebp
shr    $0xf,%r13d
shr    $0xa,%ebp
imul   $0x66666667,%rbx,%r15
mov    %r15,%rax
shr    $0x3f,%rax
sar    $0x22,%r15
add    %eax,%r15d
add    %r15d,%r15d
lea    0xdcf(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%rax
add    %r14d,%eax
add    $0xffffffff,%eax
lea    0xe73(%rip),%r14
mov    %r14,%rsi
cmp    $0x2,%eax
ja     12a5 <main+0x165>
cltq
lea    0xe66(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    (%r15,%r15,4),%eax
mov    %eax,0x10(%rsp)
add    %r13b,%bpl
lea    0x24(%rsp),%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    0xd9f(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
movswl %r12w,%eax
add    $0xffffffff,%eax
mov    %r14,%rsi
cmp    $0x8,%ax
ja     12f0 <main+0x1b0>
movswq %ax,%rax
lea    0xe27(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
sub    0x10(%rsp),%ebx
lea    0x20(%rsp),%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    0xd5b(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xff,%bpl
mov    %r14,%rsi
cmp    $0x8,%bpl
ja     1331 <main+0x1f1>
movsbq %bpl,%rax
lea    0xe0a(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    0x1c(%rsp),%r15
mov    %r15,%rdi
call   1030 <strcpy@plt>
lea    0xd1e(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebx
cmp    $0x8,%ebx
ja     1368 <main+0x228>
movslq %ebx,%rax
lea    0xdf7(%rip),%rcx
movslq (%rcx,%rax,4),%r14
add    %rcx,%r14
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
lea    0xce4(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [37 x i8] c"Masukkan angka yang akan dikonversi\0A\00"
@.str.1 = [62 x i8] c"Nilai harus lebih dari nol dan tidak boleh lebih dari 3999 : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [66 x i8] c"Ingat! Nilai harus lebih dari nol tidak boleh lebih dari 3999.\0A\0A\0A\00"
@.str.4 = [30 x i8] c"\0AAngka romawi dari %d adalah \00"
@.str.5 = [2 x i8] c"M\00"
@.str.6 = [3 x i8] c"MM\00"
@.str.7 = [4 x i8] c"MMM\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [2 x i8] c"C\00"
@.str.11 = [3 x i8] c"CC\00"
@.str.12 = [4 x i8] c"CCC\00"
@.str.13 = [3 x i8] c"CD\00"
@.str.14 = [2 x i8] c"D\00"
@.str.15 = [3 x i8] c"DC\00"
@.str.16 = [4 x i8] c"DCC\00"
@.str.17 = [5 x i8] c"DCCC\00"
@.str.18 = [3 x i8] c"CM\00"
@.str.19 = [2 x i8] c"X\00"
@.str.20 = [3 x i8] c"XX\00"
@.str.21 = [4 x i8] c"XXX\00"
@.str.22 = [3 x i8] c"XL\00"
@.str.23 = [2 x i8] c"L\00"
@.str.24 = [3 x i8] c"LX\00"
@.str.25 = [4 x i8] c"LXX\00"
@.str.26 = [5 x i8] c"LXXX\00"
@.str.27 = [3 x i8] c"XC\00"
@.str.28 = [2 x i8] c"I\00"
@.str.29 = [3 x i8] c"II\00"
@.str.30 = [4 x i8] c"III\00"
@.str.31 = [3 x i8] c"IV\00"
@.str.32 = [2 x i8] c"V\00"
@.str.33 = [3 x i8] c"VI\00"
@.str.34 = [4 x i8] c"VII\00"
@.str.35 = [5 x i8] c"VIII\00"
@.str.36 = [3 x i8] c"IX\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [4 x i8]
%8 = alloca [4 x i8]
%9 = alloca [4 x i8]
%10 = alloca [4 x i8]
%11 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %11
br label %12
12: ; preds = %27, %0
%13 = load i32, i32* %11
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %28
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%19 = load i32, i32* %2
%20 = icmp sle i32 %19, 3999
br i1 %20, label %21, label %25
21: ; preds = %15
%22 = load i32, i32* %2
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 1, i32* %11
br label %27
25: ; preds = %21, %15
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %24
br label %12
28: ; preds = %12
%29 = load i32, i32* %2
%30 = sdiv i32 %29, 1000
store i32 %30, i32* %3
%31 = load i32, i32* %2
%32 = srem i32 %31, 1000
%33 = sdiv i32 %32, 100
store i32 %33, i32* %4
%34 = load i32, i32* %2
%35 = srem i32 %34, 100
%36 = sdiv i32 %35, 10
store i32 %36, i32* %5
%37 = load i32, i32* %2
%38 = srem i32 %37, 10
store i32 %38, i32* %6
%39 = load i32, i32* %2
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = load i32, i32* %3
switch i32 %41, label %51 [
i32 1, label %42
i32 2, label %45
i32 3, label %48
]
42: ; preds = %28
%43 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%44 = call i32 @strcpy(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %54
45: ; preds = %28
%46 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%47 = call i32 @strcpy(i8* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %54
48: ; preds = %28
%49 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%50 = call i32 @strcpy(i8* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %54
51: ; preds = %28
%52 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%53 = call i32 @strcpy(i8* %52, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %54
54: ; preds = %51, %48, %45, %42
%55 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %55)
%57 = load i32, i32* %4
switch i32 %57, label %85 [
i32 1, label %58
i32 2, label %61
i32 3, label %64
i32 4, label %67
i32 5, label %70
i32 6, label %73
i32 7, label %76
i32 8, label %79
i32 9, label %82
]
58: ; preds = %54
%59 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%60 = call i32 @strcpy(i8* %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %88
61: ; preds = %54
%62 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%63 = call i32 @strcpy(i8* %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
br label %88
64: ; preds = %54
%65 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%66 = call i32 @strcpy(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
br label %88
67: ; preds = %54
%68 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%69 = call i32 @strcpy(i8* %68, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %88
70: ; preds = %54
%71 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%72 = call i32 @strcpy(i8* %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %88
73: ; preds = %54
%74 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%75 = call i32 @strcpy(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
br label %88
76: ; preds = %54
%77 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%78 = call i32 @strcpy(i8* %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
br label %88
79: ; preds = %54
%80 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%81 = call i32 @strcpy(i8* %80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
br label %88
82: ; preds = %54
%83 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%84 = call i32 @strcpy(i8* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
br label %88
85: ; preds = %54
%86 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%87 = call i32 @strcpy(i8* %86, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %88
88: ; preds = %85, %82, %79, %76, %73, %70, %67, %64, %61, %58
%89 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %89)
%91 = load i32, i32* %5
switch i32 %91, label %119 [
i32 1, label %92
i32 2, label %95
i32 3, label %98
i32 4, label %101
i32 5, label %104
i32 6, label %107
i32 7, label %110
i32 8, label %113
i32 9, label %116
]
92: ; preds = %88
%93 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%94 = call i32 @strcpy(i8* %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %122
95: ; preds = %88
%96 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%97 = call i32 @strcpy(i8* %96, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
br label %122
98: ; preds = %88
%99 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%100 = call i32 @strcpy(i8* %99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
br label %122
101: ; preds = %88
%102 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%103 = call i32 @strcpy(i8* %102, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
br label %122
104: ; preds = %88
%105 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%106 = call i32 @strcpy(i8* %105, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %122
107: ; preds = %88
%108 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%109 = call i32 @strcpy(i8* %108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i64 0, i64 0))
br label %122
110: ; preds = %88
%111 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%112 = call i32 @strcpy(i8* %111, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
br label %122
113: ; preds = %88
%114 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%115 = call i32 @strcpy(i8* %114, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
br label %122
116: ; preds = %88
%117 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%118 = call i32 @strcpy(i8* %117, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0))
br label %122
119: ; preds = %88
%120 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%121 = call i32 @strcpy(i8* %120, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %122
122: ; preds = %119, %116, %113, %110, %107, %104, %101, %98, %95, %92
%123 = getelementptr inbounds [4 x i8], [4 x i8]* %9, i64 0, i64 0
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %123)
%125 = load i32, i32* %6
switch i32 %125, label %153 [
i32 1, label %126
i32 2, label %129
i32 3, label %132
i32 4, label %135
i32 5, label %138
i32 6, label %141
i32 7, label %144
i32 8, label %147
i32 9, label %150
]
126: ; preds = %122
%127 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%128 = call i32 @strcpy(i8* %127, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i64 0, i64 0))
br label %156
129: ; preds = %122
%130 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%131 = call i32 @strcpy(i8* %130, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0))
br label %156
132: ; preds = %122
%133 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%134 = call i32 @strcpy(i8* %133, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
br label %156
135: ; preds = %122
%136 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%137 = call i32 @strcpy(i8* %136, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i64 0, i64 0))
br label %156
138: ; preds = %122
%139 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%140 = call i32 @strcpy(i8* %139, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i64 0, i64 0))
br label %156
141: ; preds = %122
%142 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%143 = call i32 @strcpy(i8* %142, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i64 0, i64 0))
br label %156
144: ; preds = %122
%145 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%146 = call i32 @strcpy(i8* %145, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i64 0, i64 0))
br label %156
147: ; preds = %122
%148 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%149 = call i32 @strcpy(i8* %148, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
br label %156
150: ; preds = %122
%151 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%152 = call i32 @strcpy(i8* %151, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.36, i64 0, i64 0))
br label %156
153: ; preds = %122
%154 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%155 = call i32 @strcpy(i8* %154, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
br label %156
156: ; preds = %153, %150, %147, %144, %141, %138, %135, %132, %129, %126
%157 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %157)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [62 x i8] c"Nilai harus lebih dari nol dan tidak boleh lebih dari 3999 : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [30 x i8] c"\0AAngka romawi dari %d adalah \00"
@.str.5 = [2 x i8] c"M\00"
@.str.6 = [3 x i8] c"MM\00"
@.str.7 = [4 x i8] c"MMM\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [2 x i8] c"C\00"
@.str.11 = [3 x i8] c"CC\00"
@.str.12 = [4 x i8] c"CCC\00"
@.str.13 = [3 x i8] c"CD\00"
@.str.14 = [2 x i8] c"D\00"
@.str.15 = [3 x i8] c"DC\00"
@.str.16 = [4 x i8] c"DCC\00"
@.str.17 = [5 x i8] c"DCCC\00"
@.str.18 = [3 x i8] c"CM\00"
@.str.19 = [2 x i8] c"X\00"
@.str.20 = [3 x i8] c"XX\00"
@.str.21 = [4 x i8] c"XXX\00"
@.str.22 = [3 x i8] c"XL\00"
@.str.23 = [2 x i8] c"L\00"
@.str.24 = [3 x i8] c"LX\00"
@.str.25 = [4 x i8] c"LXX\00"
@.str.26 = [5 x i8] c"LXXX\00"
@.str.27 = [3 x i8] c"XC\00"
@.str.28 = [2 x i8] c"I\00"
@.str.29 = [3 x i8] c"II\00"
@.str.30 = [4 x i8] c"III\00"
@.str.31 = [3 x i8] c"IV\00"
@.str.32 = [2 x i8] c"V\00"
@.str.33 = [3 x i8] c"VI\00"
@.str.34 = [4 x i8] c"VII\00"
@.str.35 = [5 x i8] c"VIII\00"
@.str.36 = [3 x i8] c"IX\00"
@str = [36 x i8] c"Masukkan angka yang akan dikonversi\00"
@str.37 = [65 x i8] c"Ingat! Nilai harus lebih dari nol tidak boleh lebih dari 3999.\0A\0A\00"
@reltable.main = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.5 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.6 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.7 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32)]
@reltable.main.41 = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.10 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.11 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.12 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.13 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.14 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.15 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.16 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.17 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.18 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.41 to i64)) to i32)]
@reltable.main.42 = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.19 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.20 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.21 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.22 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.23 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.24 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.25 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.26 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.27 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.42 to i64)) to i32)]
@reltable.main.43 = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.28 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.29 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.30 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.31 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.32 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.33 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.34 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.35 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.36 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.43 to i64)) to i32)]
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x i8]
%3 = alloca [4 x i8]
%4 = alloca [4 x i8]
%5 = alloca [4 x i8]
%6 = bitcast i32* %1 to i8*
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %5, i64 0, i64 0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%14 = load i32, i32* %1
%15 = add i32 %14, -1
%16 = icmp ult i32 %15, 3999
br i1 %16, label %25, label %17
17: ; preds = %0, %17
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.37, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%22 = load i32, i32* %1
%23 = add i32 %22, -1
%24 = icmp ult i32 %23, 3999
br i1 %24, label %25, label %17
25: ; preds = %17, %0
%26 = load i32, i32* %1
%27 = sdiv i32 %26, 1000
%28 = srem i32 %26, 1000
%29 = trunc i32 %28 to i16
%30 = sdiv i16 %29, 100
%31 = srem i32 %26, 100
%32 = trunc i32 %31 to i8
%33 = sdiv i8 %32, 10
%34 = srem i32 %26, 10
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%36 = add nsw i32 %27, -1
%37 = icmp ult i32 %36, 3
br i1 %37, label %38, label %42
38: ; preds = %25
%39 = sext i32 %36 to i64
%40 = shl i64 %39, 2
%41 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.main to i8*), i64 %40)
br label %42
42: ; preds = %25, %38
%43 = phi i8* [ %41, %38 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %25 ]
%44 = call i32 @strcpy(i8* %7, i8* %43)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %7)
%46 = add nsw i16 %30, -1
%47 = icmp ult i16 %46, 9
br i1 %47, label %48, label %52
48: ; preds = %42
%49 = sext i16 %46 to i64
%50 = shl i64 %49, 2
%51 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main.41 to i8*), i64 %50)
br label %52
52: ; preds = %42, %48
%53 = phi i8* [ %51, %48 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %42 ]
%54 = call i32 @strcpy(i8* %8, i8* %53)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %8)
%56 = add nsw i8 %33, -1
%57 = icmp ult i8 %56, 9
br i1 %57, label %58, label %62
58: ; preds = %52
%59 = sext i8 %56 to i64
%60 = shl i64 %59, 2
%61 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main.42 to i8*), i64 %60)
br label %62
62: ; preds = %52, %58
%63 = phi i8* [ %61, %58 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %52 ]
%64 = call i32 @strcpy(i8* %9, i8* %63)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %9)
%66 = add nsw i32 %34, -1
%67 = icmp ult i32 %66, 9
br i1 %67, label %68, label %72
68: ; preds = %62
%69 = sext i32 %66 to i64
%70 = shl i64 %69, 2
%71 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main.43 to i8*), i64 %70)
br label %72
72: ; preds = %62, %68
%73 = phi i8* [ %71, %68 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0), %62 ]
%74 = call i32 @strcpy(i8* %10, i8* %73)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %10)
ret i32 0
}