#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*/ gets(char *);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  char matriz[10][80];
  int i;
  for (i = 0; i < 10; i++) {
    printf("%2.2d:", i + 1);
    gets(matriz[i]);
  }
  printf("Presione una Tecla...!\n");
  for (i = 0; i < 10; i++)
    printf("%s\n", matriz[i]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x334(%rbp)
cmpl   $0xa,-0x334(%rbp)
jge    118e <main+0x6e>
mov    -0x334(%rbp),%esi
add    $0x1,%esi
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x334(%rbp),%rax
lea    -0x330(%rbp),%rdi
imul   $0x50,%rax,%rax
add    %rax,%rdi
call   1040 <gets@plt>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    113c <main+0x1c>
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x334(%rbp)
cmpl   $0xa,-0x334(%rbp)
jge    11ea <main+0xca>
movslq -0x334(%rbp),%rax
lea    -0x330(%rbp),%rsi
imul   $0x50,%rax,%rax
add    %rax,%rsi
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x334(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x334(%rbp)
jmp    11a6 <main+0x86>
xor    %eax,%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x328,%rsp
lea    0xeb8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rsp,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x50(%rsp),%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa0(%rsp),%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0(%rsp),%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x140(%rsp),%rbp
mov    %rbp,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x190(%rsp),%r14
mov    %r14,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1e0(%rsp),%r15
mov    %r15,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x230(%rsp),%r12
mov    %r12,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x280(%rsp),%r13
mov    %r13,%rdi
call   1050 <gets@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2d0(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <gets@plt>
lea    0xd96(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rdi
call   1030 <puts@plt>
lea    0x50(%rsp),%rdi
call   1030 <puts@plt>
lea    0xa0(%rsp),%rdi
call   1030 <puts@plt>
lea    0xf0(%rsp),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x328,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%2.2d:\00"
@.str.1 = [24 x i8] c"Presione una Tecla...!\0A\00"
@.str.2 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [80 x i8]]
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
br label %4
4: ; preds = %16, %0
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 10
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %2, i64 0, i64 %12
%14 = getelementptr inbounds [80 x i8], [80 x i8]* %13, i64 0, i64 0
%15 = call i32 @gets(i8* %14)
br label %16
16: ; preds = %7
%17 = load i32, i32* %3
%18 = add nsw i32 %17, 1
store i32 %18, i32* %3
br label %4
19: ; preds = %4
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %21
21: ; preds = %30, %19
%22 = load i32, i32* %3
%23 = icmp slt i32 %22, 10
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %2, i64 0, i64 %26
%28 = getelementptr inbounds [80 x i8], [80 x i8]* %27, i64 0, i64 0
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %28)
br label %30
30: ; preds = %24
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 1
store i32 %32, i32* %3
br label %21
33: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%2.2d:\00"
@str = [23 x i8] c"Presione una Tecla...!\00"
define i32 @main() {
%1 = alloca [10 x [80 x i8]]
%2 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = call i32 @gets(i8* %2)
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 2)
%6 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 1, i64 0
%7 = call i32 @gets(i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 3)
%9 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 2, i64 0
%10 = call i32 @gets(i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 4)
%12 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 3, i64 0
%13 = call i32 @gets(i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 5)
%15 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 4, i64 0
%16 = call i32 @gets(i8* %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%18 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 5, i64 0
%19 = call i32 @gets(i8* %18)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 7)
%21 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 6, i64 0
%22 = call i32 @gets(i8* %21)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 8)
%24 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 7, i64 0
%25 = call i32 @gets(i8* %24)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 9)
%27 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 8, i64 0
%28 = call i32 @gets(i8* %27)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 10)
%30 = getelementptr inbounds [10 x [80 x i8]], [10 x [80 x i8]]* %1, i64 0, i64 9, i64 0
%31 = call i32 @gets(i8* %30)
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%33 = call i32 @puts(i8* %2)
%34 = call i32 @puts(i8* %6)
%35 = call i32 @puts(i8* %9)
%36 = call i32 @puts(i8* %12)
%37 = call i32 @puts(i8* %15)
%38 = call i32 @puts(i8* %18)
%39 = call i32 @puts(i8* %21)
%40 = call i32 @puts(i8* %24)
%41 = call i32 @puts(i8* %27)
%42 = call i32 @puts(i8* %30)
ret i32 0
}