#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 leerNumero();
int /*<<< orphan*/ printf(char *, char const *, ...);
int main() {
  int N;
  const char *Unidad[] = {"",  "I",  "II",  "III",  "IV",
                          "V", "VI", "VII", "VIII", "IX"};
  const char *Decena[] = {"",  "X",  "XX",  "XXX",  "XL",
                          "L", "LX", "LXX", "LXXX", "XC"};
  const char *Centena[] = {"",  "C",  "CC",  "CCC",  "CD",
                           "D", "DC", "DCC", "DCCC", "CM"};
  const char *Millar[] = {"", "M", "MM", "MMM"};
  N = leerNumero();
  int u = N % 10;
  int d = (N / 10) % 10;
  int c = (N / 100) % 10;
  int m = (N / 1000);
  if (N >= 1000) {
    printf("%s%s%s%s", Millar[m], Centena[c], Decena[d], Unidad[u]);
  } else {
    if (N >= 100) {
      printf("%s%s%s", Centena[c], Decena[d], Unidad[u]);
    } else {
      if (N >= 10) {
        printf("%s%s", Decena[d], Unidad[u]);
      } else {
        printf("%s", Unidad[N]);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2bc3(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
lea    -0xb0(%rbp),%rdi
lea    0x2bfb(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
lea    -0x100(%rbp),%rdi
lea    0x2c33(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
mov    0x2c72(%rip),%rax
mov    %rax,-0x120(%rbp)
mov    0x2c6c(%rip),%rax
mov    %rax,-0x118(%rbp)
mov    0x2c66(%rip),%rax
mov    %rax,-0x110(%rbp)
mov    0x2c60(%rip),%rax
mov    %rax,-0x108(%rbp)
mov    $0x0,%al
call   1050 <leerNumero@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x124(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x128(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x12c(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,-0x130(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jl     1276 <main+0x146>
movslq -0x130(%rbp),%rax
mov    -0x120(%rbp,%rax,8),%rsi
ff
movslq -0x12c(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
movslq -0x128(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rcx
ff
movslq -0x124(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%r8
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1316 <main+0x1e6>
cmpl   $0x64,-0x8(%rbp)
jl     12bd <main+0x18d>
movslq -0x12c(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rsi
ff
movslq -0x128(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rdx
ff
movslq -0x124(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rcx
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1311 <main+0x1e1>
cmpl   $0xa,-0x8(%rbp)
jl     12f5 <main+0x1c5>
movslq -0x128(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rsi
ff
movslq -0x124(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rdx
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    130c <main+0x1dc>
movslq -0x8(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
lea    0xd3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1311 <main+0x1e1>
jmp    1316 <main+0x1e6>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <leerNumero@plt>
movslq %eax,%rcx
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x22,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,1),%esi
lea    (%rsi,%rsi,4),%esi
mov    %ecx,%r8d
sub    %esi,%r8d
movslq %edx,%r9
imul   $0x66666667,%r9,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x22,%rdx
add    %esi,%edx
add    %edx,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%r9d
imul   $0x51eb851f,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x25,%rdx
add    %esi,%edx
movslq %edx,%rdx
imul   $0x66666667,%rdx,%rsi
mov    %rsi,%rdi
shr    $0x3f,%rdi
sar    $0x22,%rsi
add    %edi,%esi
add    %esi,%esi
lea    (%rsi,%rsi,4),%esi
sub    %esi,%edx
cmp    $0x3e8,%ecx
jl     11fc <main+0xdc>
mov    %eax,%eax
imul   $0x10624dd3,%rax,%rax
shr    $0x26,%rax
lea    0xe8c(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
movslq %edx,%rax
lea    0x2c07(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
movslq %r9d,%rax
lea    0x2ba9(%rip),%rcx
mov    (%rcx,%rax,8),%rcx
movslq %r8d,%rax
lea    0x2b4b(%rip),%rdi
mov    (%rdi,%rax,8),%r8
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1285 <main+0x165>
cmp    $0x64,%eax
jl     123b <main+0x11b>
movslq %edx,%rax
lea    0x2bc5(%rip),%rcx
mov    (%rcx,%rax,8),%rsi
movslq %r9d,%rax
lea    0x2b67(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
movslq %r8d,%rax
lea    0x2b09(%rip),%rcx
mov    (%rcx,%rax,8),%rcx
lea    0xe0a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1285 <main+0x165>
cmp    $0xa,%eax
jl     126c <main+0x14c>
movslq %r9d,%rax
lea    0x2b36(%rip),%rcx
mov    (%rcx,%rax,8),%rsi
movslq %r8d,%rax
lea    0x2ad8(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xddb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1285 <main+0x165>
lea    0x2abd(%rip),%rax
mov    (%rax,%rcx,8),%rsi
lea    0xdc2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"I\00"
@.str.2 = [3 x i8] c"II\00"
@.str.3 = [4 x i8] c"III\00"
@.str.4 = [3 x i8] c"IV\00"
@.str.5 = [2 x i8] c"V\00"
@.str.6 = [3 x i8] c"VI\00"
@.str.7 = [4 x i8] c"VII\00"
@.str.8 = [5 x i8] c"VIII\00"
@.str.9 = [3 x i8] c"IX\00"
@__const.main.Unidad = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0)]
@.str.10 = [2 x i8] c"X\00"
@.str.11 = [3 x i8] c"XX\00"
@.str.12 = [4 x i8] c"XXX\00"
@.str.13 = [3 x i8] c"XL\00"
@.str.14 = [2 x i8] c"L\00"
@.str.15 = [3 x i8] c"LX\00"
@.str.16 = [4 x i8] c"LXX\00"
@.str.17 = [5 x i8] c"LXXX\00"
@.str.18 = [3 x i8] c"XC\00"
@__const.main.Decena = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0)]
@.str.19 = [2 x i8] c"C\00"
@.str.20 = [3 x i8] c"CC\00"
@.str.21 = [4 x i8] c"CCC\00"
@.str.22 = [3 x i8] c"CD\00"
@.str.23 = [2 x i8] c"D\00"
@.str.24 = [3 x i8] c"DC\00"
@.str.25 = [4 x i8] c"DCC\00"
@.str.26 = [5 x i8] c"DCCC\00"
@.str.27 = [3 x i8] c"CM\00"
@__const.main.Centena = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i32 0, i32 0)]
@.str.28 = [2 x i8] c"M\00"
@.str.29 = [3 x i8] c"MM\00"
@.str.30 = [4 x i8] c"MMM\00"
@__const.main.Millar = [4 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0)]
@.str.31 = [9 x i8] c"%s%s%s%s\00"
@.str.32 = [7 x i8] c"%s%s%s\00"
@.str.33 = [5 x i8] c"%s%s\00"
@.str.34 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x i8*]
%4 = alloca [10 x i8*]
%5 = alloca [10 x i8*]
%6 = alloca [4 x i8*]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = bitcast [10 x i8*]* %3 to i8*
%12 = bitcast [10 x i8*]* %4 to i8*
%13 = bitcast [10 x i8*]* %5 to i8*
%14 = bitcast [4 x i8*]* %6 to i8*
%15 = call i32 (...) @leerNumero()
store i32 %15, i32* %2
%16 = load i32, i32* %2
%17 = srem i32 %16, 10
store i32 %17, i32* %7
%18 = load i32, i32* %2
%19 = sdiv i32 %18, 10
%20 = srem i32 %19, 10
store i32 %20, i32* %8
%21 = load i32, i32* %2
%22 = sdiv i32 %21, 100
%23 = srem i32 %22, 10
store i32 %23, i32* %9
%24 = load i32, i32* %2
%25 = sdiv i32 %24, 1000
store i32 %25, i32* %10
%26 = load i32, i32* %2
%27 = icmp sge i32 %26, 1000
br i1 %27, label %28, label %46
28: ; preds = %0
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 %30
%32 = load i8*, i8** %31
%33 = load i32, i32* %9
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i8*], [10 x i8*]* %5, i64 0, i64 %34
%36 = load i8*, i8** %35
%37 = load i32, i32* %8
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x i8*], [10 x i8*]* %4, i64 0, i64 %38
%40 = load i8*, i8** %39
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0), i8* %32, i8* %36, i8* %40, i8* %44)
br label %84
46: ; preds = %0
%47 = load i32, i32* %2
%48 = icmp sge i32 %47, 100
br i1 %48, label %49, label %63
49: ; preds = %46
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x i8*], [10 x i8*]* %5, i64 0, i64 %51
%53 = load i8*, i8** %52
%54 = load i32, i32* %8
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x i8*], [10 x i8*]* %4, i64 0, i64 %55
%57 = load i8*, i8** %56
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 %59
%61 = load i8*, i8** %60
%62 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0), i8* %53, i8* %57, i8* %61)
br label %83
63: ; preds = %46
%64 = load i32, i32* %2
%65 = icmp sge i32 %64, 10
br i1 %65, label %66, label %76
66: ; preds = %63
%67 = load i32, i32* %8
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i8*], [10 x i8*]* %4, i64 0, i64 %68
%70 = load i8*, i8** %69
%71 = load i32, i32* %7
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 %72
%74 = load i8*, i8** %73
%75 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i8* %70, i8* %74)
br label %82
76: ; preds = %63
%77 = load i32, i32* %2
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 %78
%80 = load i8*, i8** %79
%81 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), i8* %80)
br label %82
82: ; preds = %76, %66
br label %83
83: ; preds = %82, %49
br label %84
84: ; preds = %83, %28
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"I\00"
@.str.2 = [3 x i8] c"II\00"
@.str.3 = [4 x i8] c"III\00"
@.str.4 = [3 x i8] c"IV\00"
@.str.5 = [2 x i8] c"V\00"
@.str.6 = [3 x i8] c"VI\00"
@.str.7 = [4 x i8] c"VII\00"
@.str.8 = [5 x i8] c"VIII\00"
@.str.9 = [3 x i8] c"IX\00"
@__const.main.Unidad = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i32 0, i32 0)]
@.str.10 = [2 x i8] c"X\00"
@.str.11 = [3 x i8] c"XX\00"
@.str.12 = [4 x i8] c"XXX\00"
@.str.13 = [3 x i8] c"XL\00"
@.str.14 = [2 x i8] c"L\00"
@.str.15 = [3 x i8] c"LX\00"
@.str.16 = [4 x i8] c"LXX\00"
@.str.17 = [5 x i8] c"LXXX\00"
@.str.18 = [3 x i8] c"XC\00"
@__const.main.Decena = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0)]
@.str.19 = [2 x i8] c"C\00"
@.str.20 = [3 x i8] c"CC\00"
@.str.21 = [4 x i8] c"CCC\00"
@.str.22 = [3 x i8] c"CD\00"
@.str.23 = [2 x i8] c"D\00"
@.str.24 = [3 x i8] c"DC\00"
@.str.25 = [4 x i8] c"DCC\00"
@.str.26 = [5 x i8] c"DCCC\00"
@.str.27 = [3 x i8] c"CM\00"
@__const.main.Centena = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i32 0, i32 0)]
@.str.28 = [2 x i8] c"M\00"
@.str.29 = [3 x i8] c"MM\00"
@.str.30 = [4 x i8] c"MMM\00"
@reltable.main = [4 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([1 x i8]* @.str to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.28 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.29 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.30 to i64), i64 ptrtoint ([4 x i32]* @reltable.main to i64)) to i32)]
@.str.31 = [9 x i8] c"%s%s%s%s\00"
@.str.32 = [7 x i8] c"%s%s%s\00"
@.str.33 = [5 x i8] c"%s%s\00"
@.str.34 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = tail call i32 (...) @leerNumero()
%2 = srem i32 %1, 10
%3 = sdiv i32 %1, 10
%4 = srem i32 %3, 10
%5 = sdiv i32 %1, 100
%6 = srem i32 %5, 10
%7 = icmp sgt i32 %1, 999
br i1 %7, label %8, label %23
8: ; preds = %0
%9 = udiv i32 %1, 1000
%10 = zext i32 %9 to i64
%11 = shl i64 %10, 2
%12 = call i8* @llvm.load.relative.i64(i8* bitcast ([4 x i32]* @reltable.main to i8*), i64 %11)
%13 = sext i32 %6 to i64
%14 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Centena, i64 0, i64 %13
%15 = load i8*, i8** %14
%16 = sext i32 %4 to i64
%17 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Decena, i64 0, i64 %16
%18 = load i8*, i8** %17
%19 = sext i32 %2 to i64
%20 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Unidad, i64 0, i64 %19
%21 = load i8*, i8** %20
%22 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0), i8* %12, i8* %15, i8* %18, i8* %21)
br label %51
23: ; preds = %0
%24 = icmp sgt i32 %1, 99
br i1 %24, label %25, label %36
25: ; preds = %23
%26 = sext i32 %6 to i64
%27 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Centena, i64 0, i64 %26
%28 = load i8*, i8** %27
%29 = sext i32 %4 to i64
%30 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Decena, i64 0, i64 %29
%31 = load i8*, i8** %30
%32 = sext i32 %2 to i64
%33 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Unidad, i64 0, i64 %32
%34 = load i8*, i8** %33
%35 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.32, i64 0, i64 0), i8* %28, i8* %31, i8* %34)
br label %51
36: ; preds = %23
%37 = icmp sgt i32 %1, 9
br i1 %37, label %38, label %46
38: ; preds = %36
%39 = sext i32 %4 to i64
%40 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Decena, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = sext i32 %2 to i64
%43 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Unidad, i64 0, i64 %42
%44 = load i8*, i8** %43
%45 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i8* %41, i8* %44)
br label %51
46: ; preds = %36
%47 = sext i32 %1 to i64
%48 = getelementptr inbounds [10 x i8*], [10 x i8*]* @__const.main.Unidad, i64 0, i64 %47
%49 = load i8*, i8** %48
%50 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.34, i64 0, i64 0), i8* %49)
br label %51
51: ; preds = %25, %46, %38, %8
ret i32 0
}