#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 int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
void create() {
  int a[1536], b[1536], c[1536], d[1536], i, cont = 0, choice;
  printf("Number of columns has a table?\x0a");
  scanf("%d", &choice);
  int aa = 0, bb = 0, cc = 0, dd = 0;
  a[0] = 0;
  b[0] = 0;
  c[0] = 0;
  d[0] = 0;
  for (i = 0; i < choice; ++i) {
    if (!(i % 8))
      aa = !aa;
    if (!(i % 4))
      bb = !bb;
    if (!(i % 2))
      cc = !cc;
    dd = !dd;
    a[i] = aa ? 0 : 1;
    b[i] = bb ? 0 : 1;
    c[i] = cc ? 0 : 1;
    d[i] = dd ? 0 : 1;
  }
  printf(" \x0a  List Table with rows\x0a +---+---+---+---+-------+\x0a");
  printf(" | A | B | C | D |   S   |\x0a");
  printf(" +---+---+---+---+-------+\x0a");
  for (i = 0; i < choice; i++)
    printf(" | %i | %i | %i | %i |       | \x0a", a[i], b[i], c[i], d[i]);
  printf(" +-----------------------+\x0a");
  FILE *arq;
  arq = fopen("table.txt", "a");
  if (!arq)
    exit(1);
  fprintf(arq, " \x0a List Table with rows\x0a +---+---+---+---+-------+\x0a");
  fprintf(arq, " | A | B | C | D |   S   |\x0a");
  fprintf(arq, " +---+---+---+---+-------+\x0a");
  for (i = 0; i < choice; i++)
    fprintf(arq, " | %i | %i | %i | %i |       | \x0a", a[i], b[i], c[i], d[i]);
  fprintf(arq, " +-----------------------+\x0a") && fclose(arq);
}


x86 assembly (clang, -O0):
<create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x6030,%rsp
movl   $0x0,-0x6008(%rbp)
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
lea    -0x600c(%rbp),%rsi
call   1060 <scanf@plt>
movl   $0x0,-0x6010(%rbp)
movl   $0x0,-0x6014(%rbp)
movl   $0x0,-0x6018(%rbp)
movl   $0x0,-0x601c(%rbp)
movl   $0x0,-0x1800(%rbp)
movl   $0x0,-0x3000(%rbp)
movl   $0x0,-0x4800(%rbp)
movl   $0x0,-0x6000(%rbp)
movl   $0x0,-0x6004(%rbp)
mov    -0x6004(%rbp),%eax
cmp    -0x600c(%rbp),%eax
jge    133b <create+0x1db>
mov    -0x6004(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1230 <create+0xd0>
cmpl   $0x0,-0x6010(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x6010(%rbp)
mov    -0x6004(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    125e <create+0xfe>
cmpl   $0x0,-0x6014(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x6014(%rbp)
mov    -0x6004(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    128c <create+0x12c>
cmpl   $0x0,-0x6018(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x6018(%rbp)
cmpl   $0x0,-0x601c(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x601c(%rbp)
mov    -0x6010(%rbp),%edx
mov    $0x1,%ecx
xor    %eax,%eax
cmp    $0x0,%edx
cmovne %eax,%ecx
movslq -0x6004(%rbp),%rax
mov    %ecx,-0x1800(%rbp,%rax,4)
mov    -0x6014(%rbp),%edx
mov    $0x1,%ecx
xor    %eax,%eax
cmp    $0x0,%edx
cmovne %eax,%ecx
movslq -0x6004(%rbp),%rax
mov    %ecx,-0x3000(%rbp,%rax,4)
mov    -0x6018(%rbp),%edx
mov    $0x1,%ecx
xor    %eax,%eax
cmp    $0x0,%edx
cmovne %eax,%ecx
movslq -0x6004(%rbp),%rax
mov    %ecx,-0x4800(%rbp,%rax,4)
mov    -0x601c(%rbp),%edx
mov    $0x1,%ecx
xor    %eax,%eax
cmp    $0x0,%edx
cmovne %eax,%ecx
movslq -0x6004(%rbp),%rax
mov    %ecx,-0x6000(%rbp,%rax,4)
mov    -0x6004(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6004(%rbp)
jmp    11f0 <create+0x90>
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x6004(%rbp)
mov    -0x6004(%rbp),%eax
cmp    -0x600c(%rbp),%eax
jge    13dc <create+0x27c>
movslq -0x6004(%rbp),%rax
mov    -0x1800(%rbp,%rax,4),%esi
movslq -0x6004(%rbp),%rax
mov    -0x3000(%rbp,%rax,4),%edx
movslq -0x6004(%rbp),%rax
mov    -0x4800(%rbp,%rax,4),%ecx
movslq -0x6004(%rbp),%rax
mov    -0x6000(%rbp,%rax,4),%r8d
ff
lea    0xcb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x6004(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6004(%rbp)
jmp    136f <create+0x20f>
lea    0xcb2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcc0(%rip),%rdi
lea    0xcc3(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x6028(%rbp)
cmpq   $0x0,-0x6028(%rbp)
jne    141c <create+0x2bc>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x6028(%rbp),%rdi
lea    0xc93(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x6028(%rbp),%rdi
lea    0xc19(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x6028(%rbp),%rdi
lea    0xc81(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x6004(%rbp)
mov    -0x6004(%rbp),%eax
cmp    -0x600c(%rbp),%eax
jge    14da <create+0x37a>
mov    -0x6028(%rbp),%rdi
movslq -0x6004(%rbp),%rax
mov    -0x1800(%rbp,%rax,4),%edx
movslq -0x6004(%rbp),%rax
mov    -0x3000(%rbp,%rax,4),%ecx
movslq -0x6004(%rbp),%rax
mov    -0x4800(%rbp,%rax,4),%r8d
ff
movslq -0x6004(%rbp),%rax
mov    -0x6000(%rbp,%rax,4),%r9d
ff
lea    0xbb5(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x6004(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6004(%rbp)
jmp    1465 <create+0x305>
mov    -0x6028(%rbp),%rdi
lea    0xbad(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x6029(%rbp)
je     151d <create+0x3bd>
mov    -0x6028(%rbp),%rdi
call   1030 <fclose@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x6029(%rbp)
mov    -0x6029(%rbp),%al
add    $0x6030,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create>:
push   %r15
push   %r14
push   %rbx
sub    $0x6010,%rsp
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xe61(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
movl   $0x0,0x4810(%rsp)
movl   $0x0,0x3010(%rsp)
movl   $0x0,0x1810(%rsp)
movl   $0x0,0x10(%rsp)
mov    0xc(%rsp),%r8d
test   %r8d,%r8d
jle    125a <create+0xda>
xor    %ecx,%ecx
xor    %r9d,%r9d
xor    %esi,%esi
xor    %edi,%edi
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
test   %ebx,%ebx
sete   %al
test   $0x7,%cl
cmove  %eax,%ebx
xor    %eax,%eax
test   %edi,%edi
sete   %al
test   $0x3,%cl
cmove  %eax,%edi
xor    %eax,%eax
test   %esi,%esi
sete   %al
test   $0x1,%cl
cmove  %eax,%esi
xor    %eax,%eax
test   %r9d,%r9d
setne  %al
xor    $0x1,%r9d
xor    %edx,%edx
test   %ebx,%ebx
sete   %dl
mov    %edx,0x4810(%rsp,%rcx,4)
xor    %edx,%edx
test   %edi,%edi
sete   %dl
mov    %edx,0x3010(%rsp,%rcx,4)
xor    %edx,%edx
test   %esi,%esi
sete   %dl
mov    %edx,0x1810(%rsp,%rcx,4)
mov    %eax,0x10(%rsp,%rcx,4)
add    $0x1,%rcx
cmp    %rcx,%r8
jne    11f0 <create+0x70>
lea    0xe5a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe82(%rip),%rdi
call   1030 <puts@plt>
lea    0xe5b(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    12c2 <create+0x142>
lea    0xd93(%rip),%r14
xor    %ebx,%ebx
xchg   %ax,%ax
mov    0x4810(%rsp,%rbx,4),%esi
mov    0x3010(%rsp,%rbx,4),%edx
mov    0x1810(%rsp,%rbx,4),%ecx
mov    0x10(%rsp,%rbx,4),%r8d
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1290 <create+0x110>
lea    0xe41(%rip),%rdi
call   1030 <puts@plt>
lea    0xd87(%rip),%rdi
lea    0xd8a(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     13b1 <create+0x231>
mov    %rax,%r15
lea    0xd74(%rip),%rdi
mov    $0x33,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10a0 <fwrite@plt>
lea    0xcf6(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   10a0 <fwrite@plt>
lea    0xd5a(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   10a0 <fwrite@plt>
cmpl   $0x0,0xc(%rsp)
jle    1386 <create+0x206>
lea    0xcd9(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    0x4810(%rsp,%rbx,4),%edx
mov    0x3010(%rsp,%rbx,4),%ecx
mov    0x1810(%rsp,%rbx,4),%r8d
mov    0x10(%rsp,%rbx,4),%r9d
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1350 <create+0x1d0>
lea    0xcb3(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
test   %rax,%rax
je     13a4 <create+0x224>
mov    %r15,%rdi
call   1040 <fclose@plt>
add    $0x6010,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Number of columns has a table?\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [53 x i8] c" \0A List Table with rows\0A +---+---+---+---+-------+\0A\00"
@.str.3 = [28 x i8] c" | A | B | C | D | S |\0A\00"
@.str.4 = [28 x i8] c" +---+---+---+---+-------+\0A\00"
@.str.5 = [33 x i8] c" | %i | %i | %i | %i | | \0A\00"
@.str.6 = [28 x i8] c" +-----------------------+\0A\00"
@.str.7 = [10 x i8] c"table.txt\00"
@.str.8 = [2 x i8] c"a\00"
@.str.9 = [52 x i8] c" \0A List Table with rows\0A +---+---+---+---+-------+\0A\00"
define void @create() {
%1 = alloca [1536 x i32]
%2 = alloca [1536 x i32]
%3 = alloca [1536 x i32]
%4 = alloca [1536 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
store i32 0, i32* %6
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
%15 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 0
store i32 0, i32* %15
%16 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 0
store i32 0, i32* %16
%17 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 0
store i32 0, i32* %17
%18 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 0
store i32 0, i32* %18
store i32 0, i32* %5
br label %19
19: ; preds = %83, %0
%20 = load i32, i32* %5
%21 = load i32, i32* %7
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %86
23: ; preds = %19
%24 = load i32, i32* %5
%25 = srem i32 %24, 8
%26 = icmp ne i32 %25, 0
br i1 %26, label %32, label %27
27: ; preds = %23
%28 = load i32, i32* %8
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
%31 = zext i1 %30 to i32
store i32 %31, i32* %8
br label %32
32: ; preds = %27, %23
%33 = load i32, i32* %5
%34 = srem i32 %33, 4
%35 = icmp ne i32 %34, 0
br i1 %35, label %41, label %36
36: ; preds = %32
%37 = load i32, i32* %9
%38 = icmp ne i32 %37, 0
%39 = xor i1 %38, true
%40 = zext i1 %39 to i32
store i32 %40, i32* %9
br label %41
41: ; preds = %36, %32
%42 = load i32, i32* %5
%43 = srem i32 %42, 2
%44 = icmp ne i32 %43, 0
br i1 %44, label %50, label %45
45: ; preds = %41
%46 = load i32, i32* %10
%47 = icmp ne i32 %46, 0
%48 = xor i1 %47, true
%49 = zext i1 %48 to i32
store i32 %49, i32* %10
br label %50
50: ; preds = %45, %41
%51 = load i32, i32* %11
%52 = icmp ne i32 %51, 0
%53 = xor i1 %52, true
%54 = zext i1 %53 to i32
store i32 %54, i32* %11
%55 = load i32, i32* %8
%56 = icmp ne i32 %55, 0
%57 = zext i1 %56 to i64
%58 = select i1 %56, i32 0, i32 1
%59 = load i32, i32* %5
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 %60
store i32 %58, i32* %61
%62 = load i32, i32* %9
%63 = icmp ne i32 %62, 0
%64 = zext i1 %63 to i64
%65 = select i1 %63, i32 0, i32 1
%66 = load i32, i32* %5
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 %67
store i32 %65, i32* %68
%69 = load i32, i32* %10
%70 = icmp ne i32 %69, 0
%71 = zext i1 %70 to i64
%72 = select i1 %70, i32 0, i32 1
%73 = load i32, i32* %5
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 %74
store i32 %72, i32* %75
%76 = load i32, i32* %11
%77 = icmp ne i32 %76, 0
%78 = zext i1 %77 to i64
%79 = select i1 %77, i32 0, i32 1
%80 = load i32, i32* %5
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 %81
store i32 %79, i32* %82
br label %83
83: ; preds = %50
%84 = load i32, i32* %5
%85 = add nsw i32 %84, 1
store i32 %85, i32* %5
br label %19
86: ; preds = %19
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %90
90: ; preds = %112, %86
%91 = load i32, i32* %5
%92 = load i32, i32* %7
%93 = icmp slt i32 %91, %92
br i1 %93, label %94, label %115
94: ; preds = %90
%95 = load i32, i32* %5
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 %96
%98 = load i32, i32* %97
%99 = load i32, i32* %5
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = load i32, i32* %5
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 %104
%106 = load i32, i32* %105
%107 = load i32, i32* %5
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 %108
%110 = load i32, i32* %109
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %98, i32 %102, i32 %106, i32 %110)
br label %112
112: ; preds = %94
%113 = load i32, i32* %5
%114 = add nsw i32 %113, 1
store i32 %114, i32* %5
br label %90
115: ; preds = %90
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%117 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32* %117, i32** %12
%118 = load i32*, i32** %12
%119 = icmp ne i32* %118, null
br i1 %119, label %122, label %120
120: ; preds = %115
%121 = call i32 @exit(i32 1)
unreachable
122: ; preds = %115
%123 = load i32*, i32** %12
%124 = call i64 (i32*, i8*, ...) @fprintf(i32* %123, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%125 = load i32*, i32** %12
%126 = call i64 (i32*, i8*, ...) @fprintf(i32* %125, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%127 = load i32*, i32** %12
%128 = call i64 (i32*, i8*, ...) @fprintf(i32* %127, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %129
129: ; preds = %152, %122
%130 = load i32, i32* %5
%131 = load i32, i32* %7
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %155
133: ; preds = %129
%134 = load i32*, i32** %12
%135 = load i32, i32* %5
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 %136
%138 = load i32, i32* %137
%139 = load i32, i32* %5
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = load i32, i32* %5
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 %144
%146 = load i32, i32* %145
%147 = load i32, i32* %5
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 %148
%150 = load i32, i32* %149
%151 = call i64 (i32*, i8*, ...) @fprintf(i32* %134, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %138, i32 %142, i32 %146, i32 %150)
br label %152
152: ; preds = %133
%153 = load i32, i32* %5
%154 = add nsw i32 %153, 1
store i32 %154, i32* %5
br label %129
155: ; preds = %129
%156 = load i32*, i32** %12
%157 = call i64 (i32*, i8*, ...) @fprintf(i32* %156, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%158 = icmp ne i64 %157, 0
br i1 %158, label %159, label %163
159: ; preds = %155
%160 = load i32*, i32** %12
%161 = call i64 @fclose(i32* %160)
%162 = icmp ne i64 %161, 0
br label %163
163: ; preds = %159, %155
%164 = phi i1 [ false, %155 ], [ %162, %159 ]
%165 = zext i1 %164 to i32
ret void
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [28 x i8] c" | A | B | C | D | S |\0A\00"
@.str.4 = [28 x i8] c" +---+---+---+---+-------+\0A\00"
@.str.5 = [33 x i8] c" | %i | %i | %i | %i | | \0A\00"
@.str.6 = [28 x i8] c" +-----------------------+\0A\00"
@.str.7 = [10 x i8] c"table.txt\00"
@.str.8 = [2 x i8] c"a\00"
@.str.9 = [52 x i8] c" \0A List Table with rows\0A +---+---+---+---+-------+\0A\00"
@str = [31 x i8] c"Number of columns has a table?\00"
@str.10 = [52 x i8] c" \0A List Table with rows\0A +---+---+---+---+-------+\00"
@str.11 = [27 x i8] c" | A | B | C | D | S |\00"
@str.12 = [27 x i8] c" +---+---+---+---+-------+\00"
@str.13 = [27 x i8] c" +-----------------------+\00"
define void @create() {
%1 = alloca [1536 x i32]
%2 = alloca [1536 x i32]
%3 = alloca [1536 x i32]
%4 = alloca [1536 x i32]
%5 = alloca i32
%6 = bitcast [1536 x i32]* %1 to i8*
%7 = bitcast [1536 x i32]* %2 to i8*
%8 = bitcast [1536 x i32]* %3 to i8*
%9 = bitcast [1536 x i32]* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%13 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 0
store i32 0, i32* %13
%14 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 0
store i32 0, i32* %14
%15 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 0
store i32 0, i32* %15
%16 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 0
store i32 0, i32* %16
%17 = load i32, i32* %5
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %58
19: ; preds = %0
%20 = zext i32 %17 to i64
br label %21
21: ; preds = %19, %21
%22 = phi i64 [ 0, %19 ], [ %56, %21 ]
%23 = phi i32 [ 0, %19 ], [ %44, %21 ]
%24 = phi i32 [ 0, %19 ], [ %42, %21 ]
%25 = phi i32 [ 0, %19 ], [ %37, %21 ]
%26 = phi i32 [ 0, %19 ], [ %32, %21 ]
%27 = trunc i64 %22 to i32
%28 = and i32 %27, 7
%29 = icmp eq i32 %28, 0
%30 = icmp eq i32 %26, 0
%31 = zext i1 %30 to i32
%32 = select i1 %29, i32 %31, i32 %26
%33 = and i32 %27, 3
%34 = icmp eq i32 %33, 0
%35 = icmp eq i32 %25, 0
%36 = zext i1 %35 to i32
%37 = select i1 %34, i32 %36, i32 %25
%38 = and i32 %27, 1
%39 = icmp eq i32 %38, 0
%40 = icmp eq i32 %24, 0
%41 = zext i1 %40 to i32
%42 = select i1 %39, i32 %41, i32 %24
%43 = icmp ne i32 %23, 0
%44 = xor i32 %23, 1
%45 = icmp eq i32 %32, 0
%46 = zext i1 %45 to i32
%47 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 %22
store i32 %46, i32* %47
%48 = icmp eq i32 %37, 0
%49 = zext i1 %48 to i32
%50 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 %22
store i32 %49, i32* %50
%51 = icmp eq i32 %42, 0
%52 = zext i1 %51 to i32
%53 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 %22
store i32 %52, i32* %53
%54 = zext i1 %43 to i32
%55 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 %22
store i32 %54, i32* %55
%56 = add nuw nsw i64 %22, 1
%57 = icmp eq i64 %56, %20
br i1 %57, label %58, label %21
58: ; preds = %21, %0
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.10, i64 0, i64 0))
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.11, i64 0, i64 0))
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.12, i64 0, i64 0))
%62 = load i32, i32* %5
%63 = icmp sgt i32 %62, 0
br i1 %63, label %64, label %79
64: ; preds = %58, %64
%65 = phi i64 [ %75, %64 ], [ 0, %58 ]
%66 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 %65
%69 = load i32, i32* %68
%70 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 %65
%71 = load i32, i32* %70
%72 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 %65
%73 = load i32, i32* %72
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %67, i32 %69, i32 %71, i32 %73)
%75 = add nuw nsw i64 %65, 1
%76 = load i32, i32* %5
%77 = sext i32 %76 to i64
%78 = icmp slt i64 %75, %77
br i1 %78, label %64, label %79
79: ; preds = %64, %58
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.13, i64 0, i64 0))
%81 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%82 = icmp eq i32* %81, null
br i1 %82, label %83, label %85
83: ; preds = %79
%84 = call i32 @exit(i32 1)
unreachable
85: ; preds = %79
%86 = call i64 @fwrite(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0), i64 51, i64 1, i32* %81)
%87 = call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i64 27, i64 1, i32* %81)
%88 = call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i64 27, i64 1, i32* %81)
%89 = load i32, i32* %5
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %106
91: ; preds = %85, %91
%92 = phi i64 [ %102, %91 ], [ 0, %85 ]
%93 = getelementptr inbounds [1536 x i32], [1536 x i32]* %1, i64 0, i64 %92
%94 = load i32, i32* %93
%95 = getelementptr inbounds [1536 x i32], [1536 x i32]* %2, i64 0, i64 %92
%96 = load i32, i32* %95
%97 = getelementptr inbounds [1536 x i32], [1536 x i32]* %3, i64 0, i64 %92
%98 = load i32, i32* %97
%99 = getelementptr inbounds [1536 x i32], [1536 x i32]* %4, i64 0, i64 %92
%100 = load i32, i32* %99
%101 = call i64 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %94, i32 %96, i32 %98, i32 %100)
%102 = add nuw nsw i64 %92, 1
%103 = load i32, i32* %5
%104 = sext i32 %103 to i64
%105 = icmp slt i64 %102, %104
br i1 %105, label %91, label %106
106: ; preds = %91, %85
%107 = call i64 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %111, label %109
109: ; preds = %106
%110 = call i64 @fclose(i32* %81)
br label %111
111: ; preds = %109, %106
ret void
}