#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 main() {
  int i, j;
  printf("TABLAS DE MULTIPLICAR:\n\n");
  for (i = 0; i <= 30; i++) {
    printf("Tabla del %d:\n", i);
    for (j = 0; j <= 30; j++) {
      printf("%d x %d = %d\n", i, j, i * j);
    }
    printf("\n\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1e,-0x8(%rbp)
jg     11a5 <main+0x95>
mov    -0x8(%rbp),%esi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1e,-0xc(%rbp)
jg     1189 <main+0x79>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
imul   -0xc(%rbp),%ecx
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1156 <main+0x46>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1134 <main+0x24>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %r12d,%r12d
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r13d,%r13d
movl   $0x0,0x60(%rsp)
movl   $0x0,0x5c(%rsp)
movl   $0x0,0x58(%rsp)
movl   $0x0,0x54(%rsp)
movl   $0x0,0x50(%rsp)
movl   $0x0,0x4c(%rsp)
movl   $0x0,0x48(%rsp)
movl   $0x0,0x44(%rsp)
movl   $0x0,0x40(%rsp)
movl   $0x0,0x3c(%rsp)
movl   $0x0,0x38(%rsp)
movl   $0x0,0x34(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x2c(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
xor    %r14d,%r14d
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %r14d,0x74(%rsp)
lea    0xde4(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xde2(%rip),%r14
mov    %r14,%rdi
mov    %r15d,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1,%edx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x2,%edx
mov    0x10(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x3,%edx
mov    %r12d,0x70(%rsp)
mov    %r12d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x4,%edx
mov    0xc(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x5,%edx
mov    %ebp,%ecx
mov    %ebp,0x6c(%rsp)
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x6,%edx
mov    %ebx,0x68(%rsp)
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x7,%edx
mov    %r13d,0x64(%rsp)
mov    %r13d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x8,%edx
mov    0x8(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x9,%edx
mov    0x60(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0xa,%edx
mov    0x5c(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0xb,%edx
mov    0x58(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0xc,%edx
mov    0x54(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0xd,%edx
mov    0x50(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0xe,%edx
mov    0x4c(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0xf,%edx
mov    0x48(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x10,%edx
mov    0x4(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x11,%edx
mov    0x44(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x12,%edx
mov    0x40(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x13,%edx
mov    0x3c(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x14,%edx
mov    0x38(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x15,%edx
mov    0x34(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x16,%edx
mov    0x30(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x17,%edx
mov    0x2c(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x18,%edx
mov    0x28(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x19,%edx
mov    0x24(%rsp),%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1a,%edx
mov    0x20(%rsp),%r13d
mov    %r13d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1b,%edx
mov    0x1c(%rsp),%r12d
mov    %r12d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1c,%edx
mov    0x18(%rsp),%ebp
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    $0x1d,%edx
mov    0x14(%rsp),%ebx
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    0x74(%rsp),%r14d
mov    %r15d,%esi
mov    $0x1e,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb3f(%rip),%rdi
call   1030 <puts@plt>
add    $0x1,%r15d
mov    0x4(%rsp),%eax
add    $0x10,%eax
addl   $0x8,0x8(%rsp)
addl   $0x4,0xc(%rsp)
addl   $0x2,0x10(%rsp)
add    $0x1e,%r14d
add    $0x1d,%ebx
mov    %ebx,0x14(%rsp)
add    $0x1c,%ebp
mov    %ebp,0x18(%rsp)
add    $0x1b,%r12d
mov    %r12d,0x1c(%rsp)
add    $0x1a,%r13d
mov    %r13d,0x20(%rsp)
addl   $0x19,0x24(%rsp)
addl   $0x18,0x28(%rsp)
addl   $0x17,0x2c(%rsp)
addl   $0x16,0x30(%rsp)
addl   $0x15,0x34(%rsp)
addl   $0x14,0x38(%rsp)
addl   $0x13,0x3c(%rsp)
addl   $0x12,0x40(%rsp)
addl   $0x11,0x44(%rsp)
addl   $0xf,0x48(%rsp)
addl   $0xe,0x4c(%rsp)
addl   $0xd,0x50(%rsp)
addl   $0xc,0x54(%rsp)
addl   $0xb,0x58(%rsp)
addl   $0xa,0x5c(%rsp)
addl   $0x9,0x60(%rsp)
mov    0x64(%rsp),%r13d
add    $0x7,%r13d
mov    0x68(%rsp),%ebx
add    $0x6,%ebx
mov    0x6c(%rsp),%ebp
add    $0x5,%ebp
mov    0x70(%rsp),%r12d
add    $0x3,%r12d
mov    %eax,0x4(%rsp)
cmp    $0x1f0,%eax
jne    1210 <main+0xf0>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"TABLAS DE MULTIPLICAR:\0A\0A\00"
@.str.1 = [15 x i8] c"Tabla del %d:\0A\00"
@.str.2 = [14 x i8] c"%d x %d = %d\0A\00"
@.str.3 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %5
5: ; preds = %26, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 30
br i1 %7, label %8, label %29
8: ; preds = %5
%9 = load i32, i32* %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %9)
store i32 0, i32* %3
br label %11
11: ; preds = %21, %8
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 30
br i1 %13, label %14, label %24
14: ; preds = %11
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = mul nsw i32 %17, %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %16, i32 %19)
br label %21
21: ; preds = %14
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
store i32 %23, i32* %3
br label %11
24: ; preds = %11
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %5
29: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [15 x i8] c"Tabla del %d:\0A\00"
@.str.2 = [14 x i8] c"%d x %d = %d\0A\00"
@str = [24 x i8] c"TABLAS DE MULTIPLICAR:\0A\00"
@str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 0, %0 ], [ %66, %2 ]
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 0, i32 0)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 1, i32 %3)
%7 = shl nuw nsw i32 %3, 1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 2, i32 %7)
%9 = mul nuw nsw i32 %3, 3
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 3, i32 %9)
%11 = shl nuw nsw i32 %3, 2
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 4, i32 %11)
%13 = mul nuw nsw i32 %3, 5
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 5, i32 %13)
%15 = mul nuw nsw i32 %3, 6
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 6, i32 %15)
%17 = mul nuw nsw i32 %3, 7
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 7, i32 %17)
%19 = shl nuw nsw i32 %3, 3
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 8, i32 %19)
%21 = mul nuw nsw i32 %3, 9
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 9, i32 %21)
%23 = mul nuw nsw i32 %3, 10
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 10, i32 %23)
%25 = mul nuw nsw i32 %3, 11
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 11, i32 %25)
%27 = mul nuw nsw i32 %3, 12
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 12, i32 %27)
%29 = mul nuw nsw i32 %3, 13
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 13, i32 %29)
%31 = mul nuw nsw i32 %3, 14
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 14, i32 %31)
%33 = mul nuw nsw i32 %3, 15
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 15, i32 %33)
%35 = shl nuw nsw i32 %3, 4
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 16, i32 %35)
%37 = mul nuw nsw i32 %3, 17
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 17, i32 %37)
%39 = mul nuw nsw i32 %3, 18
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 18, i32 %39)
%41 = mul nuw nsw i32 %3, 19
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 19, i32 %41)
%43 = mul nuw nsw i32 %3, 20
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 20, i32 %43)
%45 = mul nuw nsw i32 %3, 21
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 21, i32 %45)
%47 = mul nuw nsw i32 %3, 22
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 22, i32 %47)
%49 = mul nuw nsw i32 %3, 23
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 23, i32 %49)
%51 = mul nuw nsw i32 %3, 24
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 24, i32 %51)
%53 = mul nuw nsw i32 %3, 25
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 25, i32 %53)
%55 = mul nuw nsw i32 %3, 26
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 26, i32 %55)
%57 = mul nuw nsw i32 %3, 27
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 27, i32 %57)
%59 = mul nuw nsw i32 %3, 28
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 28, i32 %59)
%61 = mul nuw nsw i32 %3, 29
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 29, i32 %61)
%63 = mul nuw nsw i32 %3, 30
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 30, i32 %63)
%65 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.4, i64 0, i64 0))
%66 = add nuw nsw i32 %3, 1
%67 = icmp eq i32 %66, 31
br i1 %67, label %68, label %2
68: ; preds = %2
ret i32 0
}