#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 *, int *);
int main() {
  int from, to, step, temp, i, j;
  scanf("%d %d %d", &from, &to, &step);
  if (from > to) {
    temp = from;
    from = to;
    to = temp;
  }
  for (i = from; i <= to; i++) {
    printf("%d: ", i);
    for (j = 1; j <= 12; j++) {
      printf("%d ", i * j);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1165 <main+0x45>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     11d8 <main+0xb8>
mov    -0x18(%rbp),%esi
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xc,-0x1c(%rbp)
jg     11bc <main+0x9c>
mov    -0x18(%rbp),%esi
imul   -0x1c(%rbp),%esi
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    118f <main+0x6f>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    116b <main+0x4b>
xor    %eax,%eax
add    $0x20,%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    0xebb(%rip),%rdi
lea    0x24(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x54(%rsp),%rcx
call   1050 <scanf@plt>
mov    0x24(%rsp),%eax
mov    0x8(%rsp),%r14d
cmp    %r14d,%eax
jle    117c <main+0x4c>
mov    %r14d,0x24(%rsp)
mov    %eax,0x8(%rsp)
mov    %eax,%ecx
cmp    %ecx,%r14d
jle    118b <main+0x5b>
jmp    134c <main+0x21c>
mov    %r14d,%ecx
mov    %eax,%r14d
cmp    %ecx,%r14d
jg     134c <main+0x21c>
lea    0x0(,%r14,8),%edx
lea    0x0(,%r14,4),%ecx
lea    (%r14,%r14,1),%eax
mov    %rcx,%rsi
lea    (%rcx,%rcx,2),%ecx
mov    %ecx,0x1c(%rsp)
lea    (%r14,%r14,4),%ecx
mov    %rcx,%r12
lea    (%r14,%rcx,2),%ecx
mov    %ecx,0x18(%rsp)
lea    (%rax,%rax,4),%ecx
mov    %ecx,0x14(%rsp)
lea    (%r14,%r14,8),%ecx
mov    %ecx,0x10(%rsp)
mov    %edx,0x20(%rsp)
sub    %r14d,%edx
mov    %edx,0xc(%rsp)
mov    %rax,0x28(%rsp)
lea    (%rax,%rax,2),%r15d
lea    (%r14,%r14,2),%r13d
nop
mov    %rsi,%rbp
mov    %rsi,0x48(%rsp)
lea    0xe1a(%rip),%rdi
mov    %r14,0x40(%rsp)
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe09(%rip),%rbx
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x28(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13d,0x34(%rsp)
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,0x38(%rsp)
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %r15d,0x30(%rsp)
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0xc(%rsp),%r12d
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x20(%rsp),%r15d
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%r14d
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x14(%rsp),%r13d
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x18(%rsp),%ebp
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    0x1c(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x40(%rsp),%rcx
lea    0x1(%rcx),%eax
add    $0x8,%r15d
mov    %r15d,0x20(%rsp)
mov    0x48(%rsp),%rsi
add    $0x4,%esi
mov    0x28(%rsp),%rdx
add    $0x2,%edx
mov    %rdx,0x28(%rsp)
add    $0xc,%ebx
mov    %ebx,0x1c(%rsp)
add    $0xb,%ebp
mov    %ebp,0x18(%rsp)
add    $0xa,%r13d
mov    %r13d,0x14(%rsp)
add    $0x9,%r14d
mov    %r14d,0x10(%rsp)
add    $0x7,%r12d
mov    %r12d,0xc(%rsp)
mov    0x30(%rsp),%r15d
add    $0x6,%r15d
mov    0x38(%rsp),%r12
add    $0x5,%r12d
mov    0x34(%rsp),%r13d
add    $0x3,%r13d
cmp    0x8(%rsp),%ecx
mov    %eax,%r14d
jl     11e0 <main+0xb0>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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