#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 main(int argc, char const *argv[]) {
  int row = 1, column = 1;
  printf("Enter the nember of *row*:");
  scanf("%d", &row);
  printf("Enter the number of *column*:");
  scanf("%d", &column);
  for (size_t i = 1; i <= row; i++) {
    printf("\n");
    for (size_t j = 1; j <= column; j++) {
      printf("  %lu  ", i * j);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
movq   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x14(%rbp),%rcx
cmp    %rcx,%rax
ja     11fe <main+0xde>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x18(%rbp),%rcx
cmp    %rcx,%rax
ja     11e8 <main+0xc8>
mov    -0x20(%rbp),%rsi
imul   -0x28(%rbp),%rsi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    11af <main+0x8f>
jmp    11ed <main+0xcd>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1188 <main+0x68>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
movl   $0x1,0x4(%rsp)
movl   $0x1,(%rsp)
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebf(%rip),%rbx
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xeae(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
cmpl   $0x0,0x4(%rsp)
je     11ef <main+0xbf>
mov    $0x1,%r15d
lea    0xea6(%rip),%r14
jmp    11ae <main+0x7e>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r15
movslq 0x4(%rsp),%rax
cmp    %rax,%r15
ja     11ef <main+0xbf>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpl   $0x0,(%rsp)
je     11a0 <main+0x70>
mov    $0x1,%r12d
mov    %r15,%rbx
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r12
movslq (%rsp),%rax
add    %r15,%rbx
cmp    %rax,%r12
jbe    11d0 <main+0xa0>
jmp    11a0 <main+0x70>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Enter the nember of *row*:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"Enter the number of *column*:\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [8 x i8] c" %lu \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
store i32 1, i32* %7
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
store i64 1, i64* %8
br label %14
14: ; preds = %35, %2
%15 = load i64, i64* %8
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = icmp ule i64 %15, %17
br i1 %18, label %19, label %38
19: ; preds = %14
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i64 1, i64* %9
br label %21
21: ; preds = %31, %19
%22 = load i64, i64* %9
%23 = load i32, i32* %7
%24 = sext i32 %23 to i64
%25 = icmp ule i64 %22, %24
br i1 %25, label %26, label %34
26: ; preds = %21
%27 = load i64, i64* %8
%28 = load i64, i64* %9
%29 = mul i64 %27, %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 %29)
br label %31
31: ; preds = %26
%32 = load i64, i64* %9
%33 = add i64 %32, 1
store i64 %33, i64* %9
br label %21
34: ; preds = %21
br label %35
35: ; preds = %34
%36 = load i64, i64* %8
%37 = add i64 %36, 1
store i64 %37, i64* %8
br label %14
38: ; preds = %14
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"Enter the nember of *row*:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [30 x i8] c"Enter the number of *column*:\00"
@.str.4 = [8 x i8] c" %lu \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%6 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %19, %2
ret i32 0
14: ; preds = %2, %19
%15 = phi i64 [ %20, %19 ], [ 1, %2 ]
%16 = call i32 @putchar(i32 10)
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %24, %14
%20 = add i64 %15, 1
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = icmp ugt i64 %20, %22
br i1 %23, label %13, label %14
24: ; preds = %14, %24
%25 = phi i64 [ %28, %24 ], [ 1, %14 ]
%26 = mul i64 %25, %15
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i64 %26)
%28 = add i64 %25, 1
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = icmp ugt i64 %28, %30
br i1 %31, label %19, label %24
}