#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 */
typedef enum Number { ____Placeholder_Number } Number;

/* Variables and functions */
short atoi(char *);
int /*<<< orphan*/ magenta();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ reset();
int main(int argc, char *argv[]) {
  enum Number {
    One = 1,
    Two,
    Three,
    Four,
    Five,
    Six,
    Seven,
    Eight,
    Nine,
    Ten,
    Eleven,
    Twelve
  };
  enum Number num = One;
  short cols;
  if (argc > 1) {
    cols = atoi(argv[1]);
    if (cols < 1 || cols == 5 || (cols > 6 && cols < 12) || cols > 12) {
      printf("The possible columns are the divisors of 12: 1,2,3,4,6,12. "
             "Try again!\n");
      return 1;
    }
  } else
    cols = 4;
  for (short i = 1; i <= Twelve; i += cols) {
    if (i > 1) {
      magenta();
      for (short i = 1; i <= 16 * cols - 3; i++)
        printf("─");
      reset();
      printf("\n");
    }
    for (short k = 0; k <= cols - 1; k++) {
      switch (num++) {
      case One:
        printf("     ONE     ");
        break;
      case Two:
        printf("     TWO     ");
        break;
      case Three:
        printf("    THREE    ");
        break;
      case Four:
        printf("    FOUR     ");
        break;
      case Five:
        printf("    FIVE     ");
        break;
      case Six:
        printf("     SIX     ");
        break;
      case Seven:
        printf("    SEVEN    ");
        break;
      case Eight:
        printf("    EIGHT    ");
        break;
      case Nine:
        printf("    NINE     ");
        break;
      case Ten:
        printf("     TEN     ");
        break;
      case Eleven:
        printf("   ELEVEN    ");
        break;
      case Twelve:
        printf("   TWELVE");
        break;
      }
      magenta();
      printf("%s", k < cols - 1 ? " │ " : "");
      reset();
    }
    printf("\n");
    for (short j = 0; j <= Twelve; j++) {
      for (short k = 0; k <= cols - 1; k++) {
        printf("%-2hd x %2hd = %3hd", j, (short)(i + k), (short)((i + k) * j));
        magenta();
        printf("%s", k < cols - 1 ? " │ " : "");
        reset();
      }
      printf("\n");
    }
  }
  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)
cmpl   $0x1,-0x8(%rbp)
jle    11d8 <main+0x98>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %ax,-0x16(%rbp)
movswl -0x16(%rbp),%eax
cmp    $0x1,%eax
jl     11b9 <main+0x79>
movswl -0x16(%rbp),%eax
cmp    $0x5,%eax
je     11b9 <main+0x79>
movswl -0x16(%rbp),%eax
cmp    $0x6,%eax
jle    11ac <main+0x6c>
movswl -0x16(%rbp),%eax
cmp    $0xc,%eax
jl     11b9 <main+0x79>
movswl -0x16(%rbp),%eax
cmp    $0xc,%eax
jle    11d3 <main+0x93>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    14c1 <main+0x381>
jmp    11de <main+0x9e>
movw   $0x4,-0x16(%rbp)
movw   $0x1,-0x18(%rbp)
movswl -0x18(%rbp),%eax
cmp    $0xc,%eax
jg     14ba <main+0x37a>
movswl -0x18(%rbp),%eax
cmp    $0x1,%eax
jle    1255 <main+0x115>
mov    $0x0,%al
call   1050 <magenta@plt>
movw   $0x1,-0x1a(%rbp)
movswl -0x1a(%rbp),%eax
movswl -0x16(%rbp),%ecx
shl    $0x4,%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jg     1240 <main+0x100>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1a(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x1a(%rbp)
jmp    120b <main+0xcb>
mov    $0x0,%al
call   1040 <reset@plt>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movw   $0x0,-0x1c(%rbp)
movswl -0x1c(%rbp),%eax
movswl -0x16(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     13ca <main+0x28a>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0xb,%eax
ja     137e <main+0x23e>
mov    -0x28(%rbp),%rax
lea    0xd6a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    137e <main+0x23e>
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <magenta@plt>
movswl -0x1c(%rbp),%ecx
movswl -0x16(%rbp),%edx
sub    $0x1,%edx
lea    0xcdf(%rip),%rsi
lea    0xd84(%rip),%rax
cmp    %edx,%ecx
cmovl  %rax,%rsi
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <reset@plt>
mov    -0x1c(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x1c(%rbp)
jmp    125b <main+0x11b>
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movw   $0x0,-0x1e(%rbp)
movswl -0x1e(%rbp),%eax
cmp    $0xc,%eax
jg     14a2 <main+0x362>
movw   $0x0,-0x20(%rbp)
movswl -0x20(%rbp),%eax
movswl -0x16(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1483 <main+0x343>
movswl -0x1e(%rbp),%esi
movswl -0x18(%rbp),%eax
movswl -0x20(%rbp),%ecx
add    %ecx,%eax
movswl %ax,%edx
movswl -0x18(%rbp),%eax
movswl -0x20(%rbp),%ecx
add    %ecx,%eax
movswl -0x1e(%rbp),%ecx
imul   %ecx,%eax
movswl %ax,%ecx
lea    0xcf8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <magenta@plt>
movswl -0x20(%rbp),%ecx
movswl -0x16(%rbp),%edx
sub    $0x1,%edx
lea    0xc26(%rip),%rsi
lea    0xccb(%rip),%rax
cmp    %edx,%ecx
cmovl  %rax,%rsi
lea    0xcbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <reset@plt>
mov    -0x20(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x20(%rbp)
jmp    13f1 <main+0x2b1>
lea    0xbeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x1e(%rbp)
jmp    13de <main+0x29e>
jmp    14a7 <main+0x367>
movswl -0x16(%rbp),%ecx
movswl -0x18(%rbp),%eax
add    %ecx,%eax
mov    %ax,-0x18(%rbp)
jmp    11e4 <main+0xa4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0x4,%ax
cmp    $0x2,%edi
jl     11ac <main+0x4c>
mov    0x8(%rsi),%rdi
call   1080 <atoi@plt>
test   %ax,%ax
jle    13d1 <main+0x271>
cmp    $0x5,%ax
je     13d1 <main+0x271>
cmp    $0xc,%ax
ja     13d1 <main+0x271>
mov    %eax,%ecx
add    $0xfffffff9,%ecx
cmp    $0x4,%cx
jbe    13d1 <main+0x271>
movzwl %ax,%r15d
mov    %r15d,%r14d
shl    $0x4,%r14d
add    $0xfffffffd,%r14d
lea    -0x1(%r15),%ebp
add    $0xffffffff,%eax
movzwl %ax,%eax
add    $0x1,%eax
mov    %eax,0x1c(%rsp)
mov    $0x10000,%eax
mov    $0x1,%r12d
lea    0xe22(%rip),%r13
xor    %ecx,%ecx
mov    %rcx,0x10(%rsp)
mov    %r15,0x30(%rsp)
mov    %r14d,0x20(%rsp)
mov    %ebp,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x10001,%eax
jl     1246 <main+0xe6>
xor    %eax,%eax
call   1070 <magenta@plt>
mov    $0x2,%bx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movswl %bx,%eax
add    $0x1,%ebx
cmp    %eax,%r14d
jge    1220 <main+0xc0>
xor    %eax,%eax
call   1060 <reset@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %ebx,%ebx
lea    0xebd(%rip),%r14
lea    0xe55(%rip),%r13
jmp    1291 <main+0x131>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <magenta@plt>
cmp    %ebx,%ebp
lea    0xe11(%rip),%rsi
cmovg  %r13,%rsi
lea    0xe2d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <reset@plt>
add    $0x1,%ebx
cmp    %ebx,%r15d
je     12b0 <main+0x150>
mov    0x10(%rsp),%rax
add    %ebx,%eax
cmp    $0xb,%eax
ja     1260 <main+0x100>
cltq
movslq (%r14,%rax,4),%rdi
add    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1260 <main+0x100>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r12d,0x24(%rsp)
mov    %r12d,%r15d
shl    $0x10,%r15d
xor    %eax,%eax
xor    %r12d,%r12d
xor    %ebp,%ebp
mov    %r15d,0x28(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %eax,0xc(%rsp)
mov    %r12d,0x2c(%rsp)
xor    %ebx,%ebx
mov    0x30(%rsp),%r14
mov    0x8(%rsp),%r13d
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15d,%edx
sar    $0x10,%edx
mov    %r12d,%ecx
sar    $0x10,%ecx
lea    0xd9e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <magenta@plt>
cmp    %ebx,%r13d
lea    0xd54(%rip),%rsi
lea    0xd77(%rip),%rax
cmovg  %rax,%rsi
lea    0xd69(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <reset@plt>
add    $0x1,%ebx
add    0xc(%rsp),%r12d
add    $0x10000,%r15d
cmp    %ebx,%r14d
jne    1300 <main+0x1a0>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
mov    0x28(%rsp),%r15d
mov    0x2c(%rsp),%r12d
add    %r15d,%r12d
mov    0xc(%rsp),%eax
add    $0x10000,%eax
cmp    $0xd,%ebp
jne    12e0 <main+0x180>
mov    0x30(%rsp),%r15
mov    0x24(%rsp),%r12d
add    %r15d,%r12d
mov    %r12d,%eax
shl    $0x10,%eax
movswl %r12w,%r12d
mov    0x10(%rsp),%rcx
add    0x1c(%rsp),%ecx
mov    %rcx,0x10(%rsp)
cmp    $0xd0000,%eax
mov    0x20(%rsp),%r14d
mov    0x8(%rsp),%ebp
lea    0xc39(%rip),%r13
jl     1200 <main+0xa0>
xor    %eax,%eax
jmp    13e2 <main+0x282>
lea    0xced(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [71 x i8] c"The possible columns are the divisors of 12: 1,2,3,4,6,12. Try again!\0A\00"
@.str.1 = [4 x i8] c"\E2\94\80\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [14 x i8] c" ONE \00"
@.str.4 = [14 x i8] c" TWO \00"
@.str.5 = [14 x i8] c" THREE \00"
@.str.6 = [14 x i8] c" FOUR \00"
@.str.7 = [14 x i8] c" FIVE \00"
@.str.8 = [14 x i8] c" SIX \00"
@.str.9 = [14 x i8] c" SEVEN \00"
@.str.10 = [14 x i8] c" EIGHT \00"
@.str.11 = [14 x i8] c" NINE \00"
@.str.12 = [14 x i8] c" TEN \00"
@.str.13 = [14 x i8] c" ELEVEN \00"
@.str.14 = [10 x i8] c" TWELVE\00"
@.str.15 = [3 x i8] c"%s\00"
@.str.16 = [6 x i8] c" \E2\94\82 \00"
@.str.17 = [1 x i8] zeroinitializer
@.str.18 = [20 x i8] c"%-2hd x %2hd = %3hd\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i16
%8 = alloca i16
%9 = alloca i16
%10 = alloca i16
%11 = alloca i16
%12 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
%13 = load i32, i32* %4
%14 = icmp sgt i32 %13, 1
br i1 %14, label %15, label %42
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call signext i16 @atoi(i8* %18)
store i16 %19, i16* %7
%20 = load i16, i16* %7
%21 = sext i16 %20 to i32
%22 = icmp slt i32 %21, 1
br i1 %22, label %39, label %23
23: ; preds = %15
%24 = load i16, i16* %7
%25 = sext i16 %24 to i32
%26 = icmp eq i32 %25, 5
br i1 %26, label %39, label %27
27: ; preds = %23
%28 = load i16, i16* %7
%29 = sext i16 %28 to i32
%30 = icmp sgt i32 %29, 6
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i16, i16* %7
%33 = sext i16 %32 to i32
%34 = icmp slt i32 %33, 12
br i1 %34, label %39, label %35
35: ; preds = %31, %27
%36 = load i16, i16* %7
%37 = sext i16 %36 to i32
%38 = icmp sgt i32 %37, 12
br i1 %38, label %39, label %41
39: ; preds = %35, %31, %23, %15
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %183
41: ; preds = %35
br label %43
42: ; preds = %2
store i16 4, i16* %7
br label %43
43: ; preds = %42, %41
store i16 1, i16* %8
br label %44
44: ; preds = %175, %43
%45 = load i16, i16* %8
%46 = sext i16 %45 to i32
%47 = icmp sle i32 %46, 12
br i1 %47, label %48, label %182
48: ; preds = %44
%49 = load i16, i16* %8
%50 = sext i16 %49 to i32
%51 = icmp sgt i32 %50, 1
br i1 %51, label %52, label %70
52: ; preds = %48
%53 = call i32 (...) @magenta()
store i16 1, i16* %9
br label %54
54: ; preds = %64, %52
%55 = load i16, i16* %9
%56 = sext i16 %55 to i32
%57 = load i16, i16* %7
%58 = sext i16 %57 to i32
%59 = mul nsw i32 16, %58
%60 = sub nsw i32 %59, 3
%61 = icmp sle i32 %56, %60
br i1 %61, label %62, label %67
62: ; preds = %54
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %64
64: ; preds = %62
%65 = load i16, i16* %9
%66 = add i16 %65, 1
store i16 %66, i16* %9
br label %54
67: ; preds = %54
%68 = call i32 (...) @reset()
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %70
70: ; preds = %67, %48
store i16 0, i16* %10
br label %71
71: ; preds = %117, %70
%72 = load i16, i16* %10
%73 = sext i16 %72 to i32
%74 = load i16, i16* %7
%75 = sext i16 %74 to i32
%76 = sub nsw i32 %75, 1
%77 = icmp sle i32 %73, %76
br i1 %77, label %78, label %120
78: ; preds = %71
%79 = load i32, i32* %6
%80 = add i32 %79, 1
store i32 %80, i32* %6
switch i32 %79, label %105 [
i32 1, label %81
i32 2, label %83
i32 3, label %85
i32 4, label %87
i32 5, label %89
i32 6, label %91
i32 7, label %93
i32 8, label %95
i32 9, label %97
i32 10, label %99
i32 11, label %101
i32 12, label %103
]
81: ; preds = %78
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %105
83: ; preds = %78
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %105
85: ; preds = %78
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %105
87: ; preds = %78
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
br label %105
89: ; preds = %78
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %105
91: ; preds = %78
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %105
93: ; preds = %78
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
br label %105
95: ; preds = %78
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
br label %105
97: ; preds = %78
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %105
99: ; preds = %78
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %105
101: ; preds = %78
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
br label %105
103: ; preds = %78
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %105
105: ; preds = %78, %103, %101, %99, %97, %95, %93, %91, %89, %87, %85, %83, %81
%106 = call i32 (...) @magenta()
%107 = load i16, i16* %10
%108 = sext i16 %107 to i32
%109 = load i16, i16* %7
%110 = sext i16 %109 to i32
%111 = sub nsw i32 %110, 1
%112 = icmp slt i32 %108, %111
%113 = zext i1 %112 to i64
%114 = select i1 %112, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i64 0, i64 0)
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %114)
%116 = call i32 (...) @reset()
br label %117
117: ; preds = %105
%118 = load i16, i16* %10
%119 = add i16 %118, 1
store i16 %119, i16* %10
br label %71
120: ; preds = %71
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i16 0, i16* %11
br label %122
122: ; preds = %171, %120
%123 = load i16, i16* %11
%124 = sext i16 %123 to i32
%125 = icmp sle i32 %124, 12
br i1 %125, label %126, label %174
126: ; preds = %122
store i16 0, i16* %12
br label %127
127: ; preds = %166, %126
%128 = load i16, i16* %12
%129 = sext i16 %128 to i32
%130 = load i16, i16* %7
%131 = sext i16 %130 to i32
%132 = sub nsw i32 %131, 1
%133 = icmp sle i32 %129, %132
br i1 %133, label %134, label %169
134: ; preds = %127
%135 = load i16, i16* %11
%136 = sext i16 %135 to i32
%137 = load i16, i16* %8
%138 = sext i16 %137 to i32
%139 = load i16, i16* %12
%140 = sext i16 %139 to i32
%141 = add nsw i32 %138, %140
%142 = trunc i32 %141 to i16
%143 = sext i16 %142 to i32
%144 = load i16, i16* %8
%145 = sext i16 %144 to i32
%146 = load i16, i16* %12
%147 = sext i16 %146 to i32
%148 = add nsw i32 %145, %147
%149 = load i16, i16* %11
%150 = sext i16 %149 to i32
%151 = mul nsw i32 %148, %150
%152 = trunc i32 %151 to i16
%153 = sext i16 %152 to i32
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i32 %136, i32 %143, i32 %153)
%155 = call i32 (...) @magenta()
%156 = load i16, i16* %12
%157 = sext i16 %156 to i32
%158 = load i16, i16* %7
%159 = sext i16 %158 to i32
%160 = sub nsw i32 %159, 1
%161 = icmp slt i32 %157, %160
%162 = zext i1 %161 to i64
%163 = select i1 %161, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i64 0, i64 0)
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %163)
%165 = call i32 (...) @reset()
br label %166
166: ; preds = %134
%167 = load i16, i16* %12
%168 = add i16 %167, 1
store i16 %168, i16* %12
br label %127
169: ; preds = %127
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %171
171: ; preds = %169
%172 = load i16, i16* %11
%173 = add i16 %172, 1
store i16 %173, i16* %11
br label %122
174: ; preds = %122
br label %175
175: ; preds = %174
%176 = load i16, i16* %7
%177 = sext i16 %176 to i32
%178 = load i16, i16* %8
%179 = sext i16 %178 to i32
%180 = add nsw i32 %179, %177
%181 = trunc i32 %180 to i16
store i16 %181, i16* %8
br label %44
182: ; preds = %44
store i32 0, i32* %3
br label %183
183: ; preds = %182, %39
%184 = load i32, i32* %3
ret i32 %184
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"\E2\94\80\00"
@.str.3 = [14 x i8] c" ONE \00"
@.str.4 = [14 x i8] c" TWO \00"
@.str.5 = [14 x i8] c" THREE \00"
@.str.6 = [14 x i8] c" FOUR \00"
@.str.7 = [14 x i8] c" FIVE \00"
@.str.8 = [14 x i8] c" SIX \00"
@.str.9 = [14 x i8] c" SEVEN \00"
@.str.10 = [14 x i8] c" EIGHT \00"
@.str.11 = [14 x i8] c" NINE \00"
@.str.12 = [14 x i8] c" TEN \00"
@.str.13 = [14 x i8] c" ELEVEN \00"
@.str.14 = [10 x i8] c" TWELVE\00"
@.str.15 = [3 x i8] c"%s\00"
@.str.16 = [6 x i8] c" \E2\94\82 \00"
@.str.17 = [1 x i8] zeroinitializer
@.str.18 = [20 x i8] c"%-2hd x %2hd = %3hd\00"
@str = [70 x i8] c"The possible columns are the divisors of 12: 1,2,3,4,6,12. Try again!\00"
@reltable.main = [12 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.3 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.4 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.5 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.6 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.7 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.8 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.9 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.10 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.11 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.12 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.13 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.14 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32)]
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %18
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call signext i16 @atoi(i8* %6)
%8 = icmp slt i16 %7, 1
%9 = icmp eq i16 %7, 5
%10 = or i1 %8, %9
br i1 %10, label %16, label %11
11: ; preds = %4
%12 = add nsw i16 %7, -7
%13 = icmp ult i16 %12, 5
%14 = icmp ugt i16 %7, 12
%15 = or i1 %14, %13
br i1 %15, label %16, label %18
16: ; preds = %11, %4
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
br label %95
18: ; preds = %2, %11
%19 = phi i16 [ %7, %11 ], [ 4, %2 ]
%20 = zext i16 %19 to i32
%21 = shl nuw nsw i32 %20, 4
%22 = add nsw i32 %21, -3
%23 = add nsw i32 %20, -1
%24 = add nsw i16 %19, -1
%25 = zext i16 %24 to i32
%26 = add nuw nsw i32 %25, 1
%27 = zext i16 %19 to i32
%28 = zext i16 %19 to i32
br label %29
29: ; preds = %18, %70
%30 = phi i32 [ 1, %18 ], [ %73, %70 ]
%31 = phi i32 [ 65536, %18 ], [ %72, %70 ]
%32 = phi i32 [ 1, %18 ], [ %47, %70 ]
%33 = icmp sgt i32 %31, 65536
br i1 %33, label %34, label %39
34: ; preds = %29
%35 = tail call i32 (...) @magenta()
br label %40
36: ; preds = %40
%37 = tail call i32 (...) @reset()
%38 = tail call i32 @putchar(i32 10)
br label %39
39: ; preds = %29, %36
br label %49
40: ; preds = %34, %40
%41 = phi i16 [ %43, %40 ], [ 1, %34 ]
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%43 = add i16 %41, 1
%44 = sext i16 %43 to i32
%45 = icmp slt i32 %22, %44
br i1 %45, label %36, label %40
46: ; preds = %60
%47 = add i32 %26, %32
%48 = tail call i32 @putchar(i32 10)
br label %68
49: ; preds = %39, %60
%50 = phi i32 [ %66, %60 ], [ 0, %39 ]
%51 = phi i32 [ %52, %60 ], [ %32, %39 ]
%52 = add i32 %51, 1
%53 = add i32 %51, -1
%54 = icmp ult i32 %53, 12
br i1 %54, label %55, label %60
55: ; preds = %49
%56 = sext i32 %53 to i64
%57 = shl i64 %56, 2
%58 = call i8* @llvm.load.relative.i64(i8* bitcast ([12 x i32]* @reltable.main to i8*), i64 %57)
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %58)
br label %60
60: ; preds = %49, %55
%61 = tail call i32 (...) @magenta()
%62 = icmp sgt i32 %23, %50
%63 = select i1 %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i64 0, i64 0)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %63)
%65 = tail call i32 (...) @reset()
%66 = add nuw nsw i32 %50, 1
%67 = icmp eq i32 %66, %27
br i1 %67, label %46, label %49
68: ; preds = %46, %75
%69 = phi i32 [ 0, %46 ], [ %77, %75 ]
br label %79
70: ; preds = %75
%71 = add nsw i32 %30, %20
%72 = shl i32 %71, 16
%73 = ashr exact i32 %72, 16
%74 = icmp slt i32 %72, 851968
br i1 %74, label %29, label %95
75: ; preds = %79
%76 = tail call i32 @putchar(i32 10)
%77 = add nuw nsw i32 %69, 1
%78 = icmp eq i32 %77, 13
br i1 %78, label %70, label %68
79: ; preds = %68, %79
%80 = phi i32 [ 0, %68 ], [ %93, %79 ]
%81 = add nsw i32 %80, %30
%82 = shl i32 %81, 16
%83 = ashr exact i32 %82, 16
%84 = mul i32 %69, %81
%85 = shl i32 %84, 16
%86 = ashr exact i32 %85, 16
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i32 %69, i32 %83, i32 %86)
%88 = tail call i32 (...) @magenta()
%89 = icmp sgt i32 %23, %80
%90 = select i1 %89, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i64 0, i64 0)
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* %90)
%92 = tail call i32 (...) @reset()
%93 = add nuw nsw i32 %80, 1
%94 = icmp eq i32 %93, %28
br i1 %94, label %75, label %79
95: ; preds = %70, %16
%96 = phi i32 [ 1, %16 ], [ 0, %70 ]
ret i32 %96
}