#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 i, n;
  scanf("%d", &n);
  if (n < 1 || n > 99) {
    printf("Number is out of range");
  } else {
    for (i = 1; i <= 12; i++) {
      if (n * 12 / 1000) {
        printf("%d x %2d = %4d\n", n, i, n * i);
      } else if (n * 12 / 100) {
        printf("%d x %2d = %3d\n", n, i, n * i);
      } else if (n * 12 / 10) {
        printf("%d x %2d = %2d\n", n, i, n * i);
      } else {
        printf("%d x %2d = %1d\n", n, i, n * i);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1,-0xc(%rbp)
jl     1153 <main+0x33>
cmpl   $0x63,-0xc(%rbp)
jle    1166 <main+0x46>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1253 <main+0x133>
movl   $0x1,-0x8(%rbp)
cmpl   $0xc,-0x8(%rbp)
jg     124e <main+0x12e>
imul   $0xc,-0xc(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%eax
je     11ac <main+0x8c>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
imul   -0x8(%rbp),%ecx
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    123b <main+0x11b>
imul   $0xc,-0xc(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%eax
je     11e1 <main+0xc1>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
imul   -0x8(%rbp),%ecx
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1236 <main+0x116>
imul   $0xc,-0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%eax
je     1216 <main+0xf6>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
imul   -0x8(%rbp),%ecx
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1231 <main+0x111>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
imul   -0x8(%rbp),%ecx
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1236 <main+0x116>
jmp    123b <main+0x11b>
jmp    1240 <main+0x120>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116d <main+0x4d>
jmp    1253 <main+0x133>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xecc(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%esi
lea    -0x64(%rsi),%eax
cmp    $0xffffff9d,%eax
jae    1168 <main+0x48>
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
mov    $0x1,%ebx
lea    0xed6(%rip),%r14
lea    0xebf(%rip),%r15
lea    0xea8(%rip),%r12
lea    0xe91(%rip),%r13
nopl   0x0(%rax)
lea    0x0(,%rsi,4),%eax
lea    (%rax,%rax,2),%ecx
add    $0x3e7,%ecx
cmp    $0x7cf,%ecx
jae    11d0 <main+0xb0>
lea    (%rax,%rax,2),%eax
lea    0x63(%rax),%ecx
cmp    $0xc7,%ecx
jae    11e0 <main+0xc0>
add    $0x9,%eax
mov    %esi,%ecx
imul   %ebx,%ecx
cmp    $0x13,%eax
jae    11ea <main+0xca>
mov    %r14,%rdi
jmp    11f0 <main+0xd0>
nopl   0x0(%rax,%rax,1)
mov    %esi,%ecx
imul   %ebx,%ecx
mov    %r13,%rdi
jmp    11f0 <main+0xd0>
nopw   0x0(%rax,%rax,1)
mov    %esi,%ecx
imul   %ebx,%ecx
mov    %r12,%rdi
jmp    11f0 <main+0xd0>
mov    %r15,%rdi
nopl   (%rax)
mov    %ebx,%edx
xor    %eax,%eax
call   1030 <printf@plt>
cmp    $0xc,%ebx
je     1158 <main+0x38>
mov    0xc(%rsp),%esi
add    $0x1,%ebx
jmp    1190 <main+0x70>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [23 x i8] c"Number is out of range\00"
@.str.2 = [16 x i8] c"%d x %2d = %4d\0A\00"
@.str.3 = [16 x i8] c"%d x %2d = %3d\0A\00"
@.str.4 = [16 x i8] c"%d x %2d = %2d\0A\00"
@.str.5 = [16 x i8] c"%d x %2d = %1d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 1
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = load i32, i32* %3
%9 = icmp sgt i32 %8, 99
br i1 %9, label %10, label %12
10: ; preds = %7, %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
br label %66
12: ; preds = %7
store i32 1, i32* %2
br label %13
13: ; preds = %62, %12
%14 = load i32, i32* %2
%15 = icmp sle i32 %14, 12
br i1 %15, label %16, label %65
16: ; preds = %13
%17 = load i32, i32* %3
%18 = mul nsw i32 %17, 12
%19 = sdiv i32 %18, 1000
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %28
21: ; preds = %16
%22 = load i32, i32* %3
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = load i32, i32* %2
%26 = mul nsw i32 %24, %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %22, i32 %23, i32 %26)
br label %61
28: ; preds = %16
%29 = load i32, i32* %3
%30 = mul nsw i32 %29, 12
%31 = sdiv i32 %30, 100
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %40
33: ; preds = %28
%34 = load i32, i32* %3
%35 = load i32, i32* %2
%36 = load i32, i32* %3
%37 = load i32, i32* %2
%38 = mul nsw i32 %36, %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %34, i32 %35, i32 %38)
br label %60
40: ; preds = %28
%41 = load i32, i32* %3
%42 = mul nsw i32 %41, 12
%43 = sdiv i32 %42, 10
%44 = icmp ne i32 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %40
%46 = load i32, i32* %3
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = load i32, i32* %2
%50 = mul nsw i32 %48, %49
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %46, i32 %47, i32 %50)
br label %59
52: ; preds = %40
%53 = load i32, i32* %3
%54 = load i32, i32* %2
%55 = load i32, i32* %3
%56 = load i32, i32* %2
%57 = mul nsw i32 %55, %56
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %53, i32 %54, i32 %57)
br label %59
59: ; preds = %52, %45
br label %60
60: ; preds = %59, %33
br label %61
61: ; preds = %60, %21
br label %62
62: ; preds = %61
%63 = load i32, i32* %2
%64 = add nsw i32 %63, 1
store i32 %64, i32* %2
br label %13
65: ; preds = %13
br label %66
66: ; preds = %65, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [23 x i8] c"Number is out of range\00"
@.str.2 = [16 x i8] c"%d x %2d = %4d\0A\00"
@.str.3 = [16 x i8] c"%d x %2d = %3d\0A\00"
@.str.4 = [16 x i8] c"%d x %2d = %2d\0A\00"
@.str.5 = [16 x i8] c"%d x %2d = %1d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = add i32 %4, -100
%6 = icmp ult i32 %5, -99
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
br label %37
9: ; preds = %0, %35
%10 = phi i32 [ %36, %35 ], [ %4, %0 ]
%11 = phi i32 [ %33, %35 ], [ 1, %0 ]
%12 = mul nsw i32 %10, 12
%13 = add i32 %12, 999
%14 = icmp ult i32 %13, 1999
br i1 %14, label %18, label %15
15: ; preds = %9
%16 = mul nsw i32 %10, %11
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %10, i32 %11, i32 %16)
br label %32
18: ; preds = %9
%19 = add nsw i32 %12, 99
%20 = icmp ult i32 %19, 199
br i1 %20, label %24, label %21
21: ; preds = %18
%22 = mul nsw i32 %10, %11
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %10, i32 %11, i32 %22)
br label %32
24: ; preds = %18
%25 = add nsw i32 %12, 9
%26 = icmp ult i32 %25, 19
%27 = mul nsw i32 %10, %11
br i1 %26, label %30, label %28
28: ; preds = %24
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %10, i32 %11, i32 %27)
br label %32
30: ; preds = %24
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %10, i32 %11, i32 %27)
br label %32
32: ; preds = %15, %28, %30, %21
%33 = add nuw nsw i32 %11, 1
%34 = icmp eq i32 %33, 13
br i1 %34, label %37, label %35
35: ; preds = %32
%36 = load i32, i32* %1
br label %9
37: ; preds = %32, %7
ret i32 0
}