#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 *, char *);
int strlen(char *);
int main() {
  char *numeros[][7] = {
      {".##.", "#..#", "#..#", "....", "#..#", "#..#", ".##."},
      {"....", "...#", "...#", "....", "...#", "...#", "...."},
      {".##.", "...#", "...#", ".##.", "#...", "#...", ".##."},
      {".##.", "...#", "...#", ".##.", "...#", "...#", ".##."},
      {"....", "#..#", "#..#", ".##.", "...#", "...#", "...."},
      {".##.", "#...", "#...", ".##.", "...#", "...#", ".##."},
      {".##.", "#...", "#...", ".##.", "#..#", "#..#", ".##."},
      {".##.", "#..#", "#..#", "....", "...#", "...#", "...."},
      {".##.", "#..#", "#..#", ".##.", "#..#", "#..#", ".##."},
      {".##.", "#..#", "#..#", ".##.", "...#", "...#", ".##."},
      {0, 0}};
  char string[10];
  int imprimir[15], ii, i;
  scanf("%s", string);
  for (i = 0; i < strlen(string); i++) {
    if (string[i] == '0')
      imprimir[i] = 0;
    else if (string[i] == '1')
      imprimir[i] = 1;
    else if (string[i] == '2')
      imprimir[i] = 2;
    else if (string[i] == '3')
      imprimir[i] = 3;
    else if (string[i] == '4')
      imprimir[i] = 4;
    else if (string[i] == '5')
      imprimir[i] = 5;
    else if (string[i] == '6')
      imprimir[i] = 6;
    else if (string[i] == '7')
      imprimir[i] = 7;
    else if (string[i] == '8')
      imprimir[i] = 8;
    else if (string[i] == '9')
      imprimir[i] = 9;
  }
  for (i = 0; i < 7; i++) {
    for (ii = 0; ii < strlen(string); ii++)
      if (ii + 1 != strlen(string))
        printf("%s ", numeros[imprimir[ii]][i]);
      else
        printf("%s", numeros[imprimir[ii]][i]);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x270(%rbp),%rdi
lea    0x2a50(%rip),%rsi
mov    $0x268,%edx
call   1050 <memcpy@plt>
lea    -0x27a(%rbp),%rsi
lea    0xea1(%rip),%rdi
call   1060 <scanf@plt>
movl   $0x0,-0x2c8(%rbp)
mov    -0x2c8(%rbp),%eax
mov    %eax,-0x2cc(%rbp)
lea    -0x27a(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x2cc(%rbp),%eax
cmp    %ecx,%eax
jge    13c6 <main+0x286>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x30,%eax
jne    11de <main+0x9e>
movslq -0x2c8(%rbp),%rax
movl   $0x0,-0x2c0(%rbp,%rax,4)
jmp    13ad <main+0x26d>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x31,%eax
jne    120d <main+0xcd>
movslq -0x2c8(%rbp),%rax
movl   $0x1,-0x2c0(%rbp,%rax,4)
jmp    13a8 <main+0x268>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x32,%eax
jne    123c <main+0xfc>
movslq -0x2c8(%rbp),%rax
movl   $0x2,-0x2c0(%rbp,%rax,4)
jmp    13a3 <main+0x263>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x33,%eax
jne    126b <main+0x12b>
movslq -0x2c8(%rbp),%rax
movl   $0x3,-0x2c0(%rbp,%rax,4)
jmp    139e <main+0x25e>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x34,%eax
jne    129a <main+0x15a>
movslq -0x2c8(%rbp),%rax
movl   $0x4,-0x2c0(%rbp,%rax,4)
jmp    1399 <main+0x259>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x35,%eax
jne    12c9 <main+0x189>
movslq -0x2c8(%rbp),%rax
movl   $0x5,-0x2c0(%rbp,%rax,4)
jmp    1394 <main+0x254>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x36,%eax
jne    12f8 <main+0x1b8>
movslq -0x2c8(%rbp),%rax
movl   $0x6,-0x2c0(%rbp,%rax,4)
jmp    138f <main+0x24f>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x37,%eax
jne    1327 <main+0x1e7>
movslq -0x2c8(%rbp),%rax
movl   $0x7,-0x2c0(%rbp,%rax,4)
jmp    138a <main+0x24a>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x38,%eax
jne    1356 <main+0x216>
movslq -0x2c8(%rbp),%rax
movl   $0x8,-0x2c0(%rbp,%rax,4)
jmp    1385 <main+0x245>
movslq -0x2c8(%rbp),%rax
movsbl -0x27a(%rbp,%rax,1),%eax
ff
cmp    $0x39,%eax
jne    1380 <main+0x240>
movslq -0x2c8(%rbp),%rax
movl   $0x9,-0x2c0(%rbp,%rax,4)
jmp    1385 <main+0x245>
jmp    138a <main+0x24a>
jmp    138f <main+0x24f>
jmp    1394 <main+0x254>
jmp    1399 <main+0x259>
jmp    139e <main+0x25e>
jmp    13a3 <main+0x263>
jmp    13a8 <main+0x268>
jmp    13ad <main+0x26d>
jmp    13b2 <main+0x272>
mov    -0x2c8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c8(%rbp)
jmp    1187 <main+0x47>
movl   $0x0,-0x2c8(%rbp)
cmpl   $0x7,-0x2c8(%rbp)
jge    14e6 <main+0x3a6>
movl   $0x0,-0x2c4(%rbp)
mov    -0x2c4(%rbp),%eax
mov    %eax,-0x2d0(%rbp)
lea    -0x27a(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x2d0(%rbp),%eax
cmp    %ecx,%eax
jge    14c4 <main+0x384>
mov    -0x2c4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2d4(%rbp)
lea    -0x27a(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x2d4(%rbp),%eax
cmp    %ecx,%eax
je     1475 <main+0x335>
movslq -0x2c4(%rbp),%rax
movslq -0x2c0(%rbp,%rax,4),%rcx
ff
lea    -0x270(%rbp),%rax
imul   $0x38,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xbb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14ab <main+0x36b>
movslq -0x2c4(%rbp),%rax
movslq -0x2c0(%rbp,%rax,4),%rcx
ff
lea    -0x270(%rbp),%rax
imul   $0x38,%rcx,%rcx
add    %rcx,%rax
movslq -0x2c8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    14b0 <main+0x370>
mov    -0x2c4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c4(%rbp)
jmp    13e7 <main+0x2a7>
lea    0xb55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c8(%rbp)
jmp    13d0 <main+0x290>
xor    %eax,%eax
add    $0x2e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
lea    0xec4(%rip),%rdi
lea    0x6(%rsp),%rbx
mov    %rbx,%rsi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    11a7 <main+0x67>
xor    %ebx,%ebx
lea    0x6(%rsp),%r15
jmp    1193 <main+0x53>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
mov    %r15,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    11a7 <main+0x67>
movzbl 0x6(%rsp,%rbx,1),%eax
add    $0xd0,%al
cmp    $0x9,%al
ja     1180 <main+0x40>
movzbl %al,%eax
mov    %eax,0x10(%rsp,%rbx,4)
jmp    1180 <main+0x40>
lea    0x6(%rsp),%r13
xor    %ebx,%ebx
jmp    11c4 <main+0x84>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x7,%rbx
je     122a <main+0xea>
mov    %r13,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
lea    0x29db(%rip),%r12
lea    0xe40(%rip),%r15
jle    11b0 <main+0x70>
xor    %ebp,%ebp
lea    0x1(%rbp),%r14
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %eax,%eax
movslq 0x10(%rsp,%rbp,4),%rcx
imul   $0x38,%rcx,%rcx
add    %r12,%rcx
cmp    %rax,%r14
mov    (%rcx,%rbx,8),%rsi
mov    %r15,%rdi
lea    0xe0e(%rip),%rax
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
call   1040 <strlen@plt>
cltq
mov    %r14,%rbp
cmp    %rax,%r14
jl     11e0 <main+0xa0>
jmp    11b0 <main+0x70>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c".##.\00"
@.str.1 = [5 x i8] c"#..#\00"
@.str.2 = [5 x i8] c"....\00"
@.str.3 = [5 x i8] c"...#\00"
@.str.4 = [5 x i8] c"#...\00"
@__const.main.numeros = [11 x [7 x i8*]] [[7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] zeroinitializer]
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [4 x i8] c"%s \00"
@.str.7 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x [7 x i8*]]
%3 = alloca [10 x i8]
%4 = alloca [15 x i32]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = bitcast [11 x [7 x i8*]]* %2 to i8*
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %8)
store i32 0, i32* %6
br label %10
10: ; preds = %135, %0
%11 = load i32, i32* %6
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%13 = call i32 @strlen(i8* %12)
%14 = icmp slt i32 %11, %13
br i1 %14, label %15, label %138
15: ; preds = %10
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 48
br i1 %21, label %22, label %26
22: ; preds = %15
%23 = load i32, i32* %6
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %24
store i32 0, i32* %25
br label %134
26: ; preds = %15
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 49
br i1 %32, label %33, label %37
33: ; preds = %26
%34 = load i32, i32* %6
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %35
store i32 1, i32* %36
br label %133
37: ; preds = %26
%38 = load i32, i32* %6
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 50
br i1 %43, label %44, label %48
44: ; preds = %37
%45 = load i32, i32* %6
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %46
store i32 2, i32* %47
br label %132
48: ; preds = %37
%49 = load i32, i32* %6
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %50
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 51
br i1 %54, label %55, label %59
55: ; preds = %48
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %57
store i32 3, i32* %58
br label %131
59: ; preds = %48
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 52
br i1 %65, label %66, label %70
66: ; preds = %59
%67 = load i32, i32* %6
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %68
store i32 4, i32* %69
br label %130
70: ; preds = %59
%71 = load i32, i32* %6
%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 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 53
br i1 %76, label %77, label %81
77: ; preds = %70
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %79
store i32 5, i32* %80
br label %129
81: ; preds = %70
%82 = load i32, i32* %6
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %83
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 54
br i1 %87, label %88, label %92
88: ; preds = %81
%89 = load i32, i32* %6
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %90
store i32 6, i32* %91
br label %128
92: ; preds = %81
%93 = load i32, i32* %6
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %94
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp eq i32 %97, 55
br i1 %98, label %99, label %103
99: ; preds = %92
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %101
store i32 7, i32* %102
br label %127
103: ; preds = %92
%104 = load i32, i32* %6
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %105
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 56
br i1 %109, label %110, label %114
110: ; preds = %103
%111 = load i32, i32* %6
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %112
store i32 8, i32* %113
br label %126
114: ; preds = %103
%115 = load i32, i32* %6
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %116
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 57
br i1 %120, label %121, label %125
121: ; preds = %114
%122 = load i32, i32* %6
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %123
store i32 9, i32* %124
br label %125
125: ; preds = %121, %114
br label %126
126: ; preds = %125, %110
br label %127
127: ; preds = %126, %99
br label %128
128: ; preds = %127, %88
br label %129
129: ; preds = %128, %77
br label %130
130: ; preds = %129, %66
br label %131
131: ; preds = %130, %55
br label %132
132: ; preds = %131, %44
br label %133
133: ; preds = %132, %33
br label %134
134: ; preds = %133, %22
br label %135
135: ; preds = %134
%136 = load i32, i32* %6
%137 = add nsw i32 %136, 1
store i32 %137, i32* %6
br label %10
138: ; preds = %10
store i32 0, i32* %6
br label %139
139: ; preds = %184, %138
%140 = load i32, i32* %6
%141 = icmp slt i32 %140, 7
br i1 %141, label %142, label %187
142: ; preds = %139
store i32 0, i32* %5
br label %143
143: ; preds = %179, %142
%144 = load i32, i32* %5
%145 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%146 = call i32 @strlen(i8* %145)
%147 = icmp slt i32 %144, %146
br i1 %147, label %148, label %182
148: ; preds = %143
%149 = load i32, i32* %5
%150 = add nsw i32 %149, 1
%151 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%152 = call i32 @strlen(i8* %151)
%153 = icmp ne i32 %150, %152
br i1 %153, label %154, label %166
154: ; preds = %148
%155 = load i32, i32* %5
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %156
%158 = load i32, i32* %157
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [11 x [7 x i8*]], [11 x [7 x i8*]]* %2, i64 0, i64 %159
%161 = load i32, i32* %6
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [7 x i8*], [7 x i8*]* %160, i64 0, i64 %162
%164 = load i8*, i8** %163
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %164)
br label %178
166: ; preds = %148
%167 = load i32, i32* %5
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [15 x i32], [15 x i32]* %4, i64 0, i64 %168
%170 = load i32, i32* %169
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [11 x [7 x i8*]], [11 x [7 x i8*]]* %2, i64 0, i64 %171
%173 = load i32, i32* %6
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds [7 x i8*], [7 x i8*]* %172, i64 0, i64 %174
%176 = load i8*, i8** %175
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %176)
br label %178
178: ; preds = %166, %154
br label %179
179: ; preds = %178
%180 = load i32, i32* %5
%181 = add nsw i32 %180, 1
store i32 %181, i32* %5
br label %143
182: ; preds = %143
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %184
184: ; preds = %182
%185 = load i32, i32* %6
%186 = add nsw i32 %185, 1
store i32 %186, i32* %6
br label %139
187: ; preds = %139
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c".##.\00"
@.str.1 = [5 x i8] c"#..#\00"
@.str.2 = [5 x i8] c"....\00"
@.str.3 = [5 x i8] c"...#\00"
@.str.4 = [5 x i8] c"#...\00"
@__const.main.numeros = [11 x [7 x i8*]] [[7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0)], [7 x i8*] zeroinitializer]
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [4 x i8] c"%s \00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca [15 x i32]
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%4 = bitcast [15 x i32]* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %3)
%6 = call i32 @strlen(i8* %3)
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %22
8: ; preds = %0, %17
%9 = phi i64 [ %18, %17 ], [ 0, %0 ]
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %9
%11 = load i8, i8* %10
%12 = add i8 %11, -48
%13 = icmp ult i8 %12, 10
br i1 %13, label %14, label %17
14: ; preds = %8
%15 = zext i8 %12 to i32
%16 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 %9
store i32 %15, i32* %16
br label %17
17: ; preds = %8, %14
%18 = add nuw nsw i64 %9, 1
%19 = call i32 @strlen(i8* %3)
%20 = sext i32 %19 to i64
%21 = icmp slt i64 %18, %20
br i1 %21, label %8, label %22
22: ; preds = %17, %0
br label %23
23: ; preds = %22, %43
%24 = phi i64 [ %45, %43 ], [ 0, %22 ]
%25 = call i32 @strlen(i8* %3)
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %43
27: ; preds = %23, %27
%28 = phi i64 [ %29, %27 ], [ 0, %23 ]
%29 = add nuw nsw i64 %28, 1
%30 = call i32 @strlen(i8* %3)
%31 = zext i32 %30 to i64
%32 = icmp eq i64 %29, %31
%33 = getelementptr inbounds [15 x i32], [15 x i32]* %2, i64 0, i64 %28
%34 = load i32, i32* %33
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [11 x [7 x i8*]], [11 x [7 x i8*]]* @__const.main.numeros, i64 0, i64 %35, i64 %24
%37 = load i8*, i8** %36
%38 = select i1 %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %38, i8* %37)
%40 = call i32 @strlen(i8* %3)
%41 = sext i32 %40 to i64
%42 = icmp slt i64 %29, %41
br i1 %42, label %27, label %43
43: ; preds = %27, %23
%44 = call i32 @putchar(i32 10)
%45 = add nuw nsw i64 %24, 1
%46 = icmp eq i64 %45, 7
br i1 %46, label %47, label %23
47: ; preds = %43
ret i32 0
}