#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 EXIT_FAILURE;
int EXIT_SUCCESS;
int atoi(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  if (argc != 2) {
    fprintf(stderr, "%s n\n", argv[0]);
    return EXIT_FAILURE;
  }
  int equatorVertices = atoi(argv[1]);
  if (equatorVertices < 3) {
    fprintf(stderr, "Number of equator vertices should at least be 3.\n");
    return EXIT_FAILURE;
  }
  fprintf(stdout, ">>planar_code<<");
  fprintf(stdout, "%c", (unsigned char)(equatorVertices + 2));
  int i;
  for (i = 0; i < equatorVertices; i++) {
    fprintf(stdout, "%c", (unsigned char)(i + 3));
  }
  fprintf(stdout, "%c", (unsigned char)0);
  for (i = equatorVertices - 1; i >= 0; i--) {
    fprintf(stdout, "%c", (unsigned char)(i + 3));
  }
  fprintf(stdout, "%c", (unsigned char)0);
  fprintf(stdout, "%c", (unsigned char)1);
  fprintf(stdout, "%c", (unsigned char)(equatorVertices + 2));
  fprintf(stdout, "%c", (unsigned char)2);
  fprintf(stdout, "%c", (unsigned char)4);
  fprintf(stdout, "%c", (unsigned char)0);
  for (i = 4; i < equatorVertices + 2; i++) {
    fprintf(stdout, "%c", (unsigned char)1);
    fprintf(stdout, "%c", (unsigned char)(i - 1));
    fprintf(stdout, "%c", (unsigned char)2);
    fprintf(stdout, "%c", (unsigned char)(i + 1));
    fprintf(stdout, "%c", (unsigned char)0);
  }
  fprintf(stdout, "%c", (unsigned char)1);
  fprintf(stdout, "%c", (unsigned char)equatorVertices + 1);
  fprintf(stdout, "%c", (unsigned char)2);
  fprintf(stdout, "%c", (unsigned char)3);
  fprintf(stdout, "%c", (unsigned char)0);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     116f <main+0x4f>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xea9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1479 <main+0x359>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
jge    11b1 <main+0x91>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
lea    0xe6d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1479 <main+0x359>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%eax
add    $0x2,%eax
movzbl %al,%edx
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1229 <main+0x109>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%eax
add    $0x3,%eax
movzbl %al,%edx
lea    0xe34(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11ef <main+0xcf>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
lea    0xe0f(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jl     1283 <main+0x163>
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%eax
add    $0x3,%eax
movzbl %al,%edx
lea    0xdda(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    124b <main+0x12b>
mov    0x2d46(%rip),%rax
mov    (%rax),%edi
lea    0xdb5(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
lea    0xd9c(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%eax
add    $0x2,%eax
movzbl %al,%edx
lea    0xd77(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cf1(%rip),%rax
mov    (%rax),%edi
lea    0xd60(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cd5(%rip),%rax
mov    (%rax),%edi
lea    0xd44(%rip),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cb9(%rip),%rax
mov    (%rax),%edi
lea    0xd28(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x4,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0x14(%rbp),%ecx
add    $0x2,%ecx
cmp    %ecx,%eax
jge    13e0 <main+0x2c0>
mov    0x2c88(%rip),%rax
mov    (%rax),%edi
lea    0xcf7(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c6c(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%eax
sub    $0x1,%eax
movzbl %al,%edx
lea    0xcd2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c4c(%rip),%rax
mov    (%rax),%edi
lea    0xcbb(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c30(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%eax
add    $0x1,%eax
movzbl %al,%edx
lea    0xc96(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
lea    0xc7f(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1330 <main+0x210>
mov    0x2be9(%rip),%rax
mov    (%rax),%edi
lea    0xc58(%rip),%rsi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bcd(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%eax
movzbl %al,%edx
add    $0x1,%edx
lea    0xc33(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2bad(%rip),%rax
mov    (%rax),%edi
lea    0xc1c(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b91(%rip),%rax
mov    (%rax),%edi
lea    0xc00(%rip),%rsi
mov    $0x3,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b75(%rip),%rax
mov    (%rax),%edi
lea    0xbe4(%rip),%rsi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2b54(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%edi
jne    1161 <main+0x41>
mov    0x8(%rsi),%rdi
call   1040 <atoi@plt>
cmp    $0x2,%eax
jg     1187 <main+0x67>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xeb8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2e7c(%rip),%rax
jmp    13cf <main+0x2af>
mov    0x2e78(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xe8c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2e56(%rip),%rax
jmp    13cf <main+0x2af>
mov    %eax,%r15d
mov    0x2e3f(%rip),%r13
mov    0x0(%r13),%edi
lea    0xe9c(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0x2(%r15),%eax
mov    %eax,0x4(%rsp)
movzbl %al,%r14d
lea    0xe8e(%rip),%rbp
mov    %rbp,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    %r15d,%ebx
neg    %ebx
mov    $0x3,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%r13),%edi
movzbl %r12b,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    (%rbx,%r12,1),%eax
add    $0x1,%eax
mov    %r12d,%ecx
add    $0x1,%ecx
mov    %ecx,%r12d
cmp    $0x3,%eax
jne    11e0 <main+0xc0>
mov    0x0(%r13),%edi
lea    0xe36(%rip),%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
test   %r15d,%r15d
jle    124c <main+0x12c>
lea    0x1(%r15),%ebx
lea    0xe1d(%rip),%rbp
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13),%edi
lea    0x1(%rbx),%eax
movzbl %al,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1230 <main+0x110>
mov    0x0(%r13),%edi
lea    0xdf1(%rip),%rbp
mov    %rbp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
cmp    $0x3,%r15d
jl     1363 <main+0x243>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
mov    $0x5,%r14d
cmovge %eax,%r14d
neg    %r14d
mov    $0x103,%ebx
lea    0xd61(%rip),%rbp
nopw   0x0(%rax,%rax,1)
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
movzbl %bl,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
lea    -0xfe(%rbx),%eax
movzbl %al,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    (%r14,%rbx,1),%eax
add    $0x1,%eax
mov    %ebx,%ecx
add    $0x1,%ecx
mov    %ecx,%ebx
cmp    $0xff,%eax
jne    12f0 <main+0x1d0>
mov    0x0(%r13),%edi
lea    0xcda(%rip),%rbp
mov    %rbp,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
movzbl %r15b,%edx
add    $0x1,%edx
mov    %rbp,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2bf9(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [6 x i8] c"%s n\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [50 x i8] c"Number of equator vertices should at least be 3.\0A\00"
@stdout = global i32 0
@.str.2 = [16 x i8] c">>planar_code<<\00"
@.str.3 = [3 x i8] c"%c\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = load i32, i32* @EXIT_FAILURE
store i32 %16, i32* %3
br label %129
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @atoi(i8* %20)
store i32 %21, i32* %6
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %28
24: ; preds = %17
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%27 = load i32, i32* @EXIT_FAILURE
store i32 %27, i32* %3
br label %129
28: ; preds = %17
%29 = load i32, i32* @stdout
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%31 = load i32, i32* @stdout
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 2
%34 = trunc i32 %33 to i8
%35 = zext i8 %34 to i32
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %35)
store i32 0, i32* %7
br label %37
37: ; preds = %48, %28
%38 = load i32, i32* %7
%39 = load i32, i32* %6
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %51
41: ; preds = %37
%42 = load i32, i32* @stdout
%43 = load i32, i32* %7
%44 = add nsw i32 %43, 3
%45 = trunc i32 %44 to i8
%46 = zext i8 %45 to i32
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %46)
br label %48
48: ; preds = %41
%49 = load i32, i32* %7
%50 = add nsw i32 %49, 1
store i32 %50, i32* %7
br label %37
51: ; preds = %37
%52 = load i32, i32* @stdout
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%54 = load i32, i32* %6
%55 = sub nsw i32 %54, 1
store i32 %55, i32* %7
br label %56
56: ; preds = %66, %51
%57 = load i32, i32* %7
%58 = icmp sge i32 %57, 0
br i1 %58, label %59, label %69
59: ; preds = %56
%60 = load i32, i32* @stdout
%61 = load i32, i32* %7
%62 = add nsw i32 %61, 3
%63 = trunc i32 %62 to i8
%64 = zext i8 %63 to i32
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %64)
br label %66
66: ; preds = %59
%67 = load i32, i32* %7
%68 = add nsw i32 %67, -1
store i32 %68, i32* %7
br label %56
69: ; preds = %56
%70 = load i32, i32* @stdout
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%72 = load i32, i32* @stdout
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1)
%74 = load i32, i32* @stdout
%75 = load i32, i32* %6
%76 = add nsw i32 %75, 2
%77 = trunc i32 %76 to i8
%78 = zext i8 %77 to i32
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %78)
%80 = load i32, i32* @stdout
%81 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%82 = load i32, i32* @stdout
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 4)
%84 = load i32, i32* @stdout
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
store i32 4, i32* %7
br label %86
86: ; preds = %110, %69
%87 = load i32, i32* %7
%88 = load i32, i32* %6
%89 = add nsw i32 %88, 2
%90 = icmp slt i32 %87, %89
br i1 %90, label %91, label %113
91: ; preds = %86
%92 = load i32, i32* @stdout
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1)
%94 = load i32, i32* @stdout
%95 = load i32, i32* %7
%96 = sub nsw i32 %95, 1
%97 = trunc i32 %96 to i8
%98 = zext i8 %97 to i32
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %98)
%100 = load i32, i32* @stdout
%101 = call i32 (i32, i8*, ...) @fprintf(i32 %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%102 = load i32, i32* @stdout
%103 = load i32, i32* %7
%104 = add nsw i32 %103, 1
%105 = trunc i32 %104 to i8
%106 = zext i8 %105 to i32
%107 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %106)
%108 = load i32, i32* @stdout
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
br label %110
110: ; preds = %91
%111 = load i32, i32* %7
%112 = add nsw i32 %111, 1
store i32 %112, i32* %7
br label %86
113: ; preds = %86
%114 = load i32, i32* @stdout
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1)
%116 = load i32, i32* @stdout
%117 = load i32, i32* %6
%118 = trunc i32 %117 to i8
%119 = zext i8 %118 to i32
%120 = add nsw i32 %119, 1
%121 = call i32 (i32, i8*, ...) @fprintf(i32 %116, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %120)
%122 = load i32, i32* @stdout
%123 = call i32 (i32, i8*, ...) @fprintf(i32 %122, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%124 = load i32, i32* @stdout
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %124, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 3)
%126 = load i32, i32* @stdout
%127 = call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%128 = load i32, i32* @EXIT_SUCCESS
store i32 %128, i32* %3
br label %129
129: ; preds = %113, %24, %10
%130 = load i32, i32* %3
ret i32 %130
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [6 x i8] c"%s n\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [50 x i8] c"Number of equator vertices should at least be 3.\0A\00"
@stdout = global i32 0
@.str.2 = [16 x i8] c">>planar_code<<\00"
@.str.3 = [3 x i8] c"%c\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %89
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @atoi(i8* %10)
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
br label %89
16: ; preds = %8
%17 = load i32, i32* @stdout
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = add nuw nsw i32 %11, 2
%21 = and i32 %20, 255
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %21)
br label %23
23: ; preds = %16, %23
%24 = phi i32 [ %29, %23 ], [ 0, %16 ]
%25 = load i32, i32* @stdout
%26 = add nuw i32 %24, 3
%27 = and i32 %26, 255
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %27)
%29 = add nuw nsw i32 %24, 1
%30 = icmp eq i32 %29, %11
br i1 %30, label %31, label %23
31: ; preds = %23
%32 = load i32, i32* @stdout
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%34 = icmp sgt i32 %11, 0
br i1 %34, label %35, label %43
35: ; preds = %31, %35
%36 = phi i32 [ %37, %35 ], [ %11, %31 ]
%37 = add nsw i32 %36, -1
%38 = load i32, i32* @stdout
%39 = add nuw i32 %36, 2
%40 = and i32 %39, 255
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%42 = icmp ugt i32 %36, 1
br i1 %42, label %35, label %43
43: ; preds = %35, %31
%44 = load i32, i32* @stdout
%45 = tail call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%46 = load i32, i32* @stdout
%47 = tail call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1)
%48 = load i32, i32* @stdout
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%50 = load i32, i32* @stdout
%51 = tail call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%52 = load i32, i32* @stdout
%53 = tail call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 4)
%54 = load i32, i32* @stdout
%55 = tail call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%56 = icmp sgt i32 %11, 2
br i1 %56, label %57, label %76
57: ; preds = %43
%58 = call i32 @llvm.smax.i32(i32 %20, i32 5)
br label %59
59: ; preds = %57, %59
%60 = phi i32 [ %70, %59 ], [ 4, %57 ]
%61 = load i32, i32* @stdout
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1)
%63 = load i32, i32* @stdout
%64 = add nuw i32 %60, 255
%65 = and i32 %64, 255
%66 = tail call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %65)
%67 = load i32, i32* @stdout
%68 = tail call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%69 = load i32, i32* @stdout
%70 = add nuw nsw i32 %60, 1
%71 = and i32 %70, 255
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%73 = load i32, i32* @stdout
%74 = tail call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
%75 = icmp eq i32 %70, %58
br i1 %75, label %76, label %59
76: ; preds = %59, %43
%77 = load i32, i32* @stdout
%78 = tail call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 1)
%79 = load i32, i32* @stdout
%80 = and i32 %11, 255
%81 = add nuw nsw i32 %80, 1
%82 = tail call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %81)
%83 = load i32, i32* @stdout
%84 = tail call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 2)
%85 = load i32, i32* @stdout
%86 = tail call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 3)
%87 = load i32, i32* @stdout
%88 = tail call i32 (i32, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 0)
br label %89
89: ; preds = %13, %76, %4
%90 = phi i32* [ @EXIT_FAILURE, %4 ], [ @EXIT_FAILURE, %13 ], [ @EXIT_SUCCESS, %76 ]
%91 = load i32, i32* %90
ret i32 %91
}