#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_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ SEEK_SET;
int atoi(char *);
scalar_t__ colnck(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int /*<<< orphan*/ get_offset(int, int);
int getopt(int, char **, char *);
int lineck(char *);
char *optarg;
int /*<<< orphan*/ printf(char *, int, char *);
scalar_t__ qdrtck(char *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  FILE *sudoku;
  char head[5], line[20], matrix[10][10] = {0}, *file;
  int stt, opt, it, ln, cl, c;
  while ((opt = getopt(argc, argv, "f:")) != -1) {
    switch (opt) {
    case 'f':
      file = optarg;
      break;
    default:
      fprintf(stderr, "%s -f [arquivo.txt]\n", argv[0]);
      exit(EXIT_FAILURE);
    }
  }
  ln = cl = c = 0;
  if (!(sudoku = fopen(file, "r"))) {
    fprintf(stderr, "Erro ao abrir o arquivo.\n"
                    "Voce indicou o arquivo certo com a flag '-f'?\n");
    exit(EXIT_FAILURE);
  }
  fgets(head, sizeof head, sudoku);
  it = atoi(head);
  while (c < it) {
    while (ln < 9 && (fgets(line, sizeof line, sudoku))) {
      for (cl = 0; line[cl * 2] != 0; cl++) {
        matrix[ln][cl] = line[cl * 2];
      }
      if (!(stt = lineck(&matrix[ln][0]))) {
        break;
      }
      ln++;
    }
    printf("Resultado %d\n%s\n\n", c + 1,
           (stt && colnck(&matrix[0][0]) && qdrtck(&matrix[0][0])) ? "SIM"
                                                                   : "NAO");
    if (ln < 9)
      fseek(sudoku, get_offset(it, c), SEEK_SET);
    ln = 0;
    c++;
  }
  fclose(sudoku);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xde6(%rip),%rdx
call   10d0 <getopt@plt>
mov    %eax,-0xc0(%rbp)
cmp    $0xffffffff,%eax
je     1289 <main+0xa9>
mov    -0xc0(%rbp),%eax
sub    $0x66,%eax
jne    1258 <main+0x78>
jmp    1242 <main+0x62>
mov    0x2daf(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xb8(%rbp)
jmp    1284 <main+0xa4>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xd94(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
jmp    120c <main+0x2c>
movl   $0x0,-0xd0(%rbp)
movl   $0x0,-0xcc(%rbp)
movl   $0x0,-0xc8(%rbp)
mov    -0xb8(%rbp),%rdi
lea    0xd63(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    12ed <main+0x10d>
mov    0x2d09(%rip),%rax
mov    (%rax),%edi
lea    0xd42(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    0x2ce2(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>
lea    -0x1d(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x5,%esi
call   1070 <fgets@plt>
lea    -0x1d(%rbp),%rdi
call   10e0 <atoi@plt>
mov    %eax,-0xc4(%rbp)
mov    -0xd0(%rbp),%eax
cmp    -0xc4(%rbp),%eax
jge    14fc <main+0x31c>
jmp    1325 <main+0x145>
xor    %eax,%eax
cmpl   $0x9,-0xc8(%rbp)
mov    %al,-0xd1(%rbp)
jge    1359 <main+0x179>
lea    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x14,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0xd1(%rbp)
mov    -0xd1(%rbp),%al
test   $0x1,%al
jne    136c <main+0x18c>
jmp    1413 <main+0x233>
movl   $0x0,-0xcc(%rbp)
mov    -0xcc(%rbp),%eax
shl    $0x1,%eax
cltq
movsbl -0x40(%rbp,%rax,1),%eax
cmp    $0x0,%eax
je     13d1 <main+0x1f1>
mov    -0xcc(%rbp),%eax
shl    $0x1,%eax
cltq
mov    -0x40(%rbp,%rax,1),%dl
movslq -0xc8(%rbp),%rcx
lea    -0xb0(%rbp),%rax
imul   $0xa,%rcx,%rcx
add    %rcx,%rax
movslq -0xcc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0xcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xcc(%rbp)
jmp    1376 <main+0x196>
movslq -0xc8(%rbp),%rax
lea    -0xb0(%rbp),%rdi
imul   $0xa,%rax,%rax
add    %rax,%rdi
call   1040 <lineck@plt>
mov    %eax,-0xbc(%rbp)
cmp    $0x0,%eax
jne    13ff <main+0x21f>
jmp    1413 <main+0x233>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    1325 <main+0x145>
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0xbc(%rbp)
mov    %al,-0xd2(%rbp)
je     1471 <main+0x291>
lea    -0xb0(%rbp),%rdi
call   1090 <colnck@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0xd2(%rbp)
je     1471 <main+0x291>
lea    -0xb0(%rbp),%rdi
call   10a0 <qdrtck@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0xd2(%rbp)
mov    -0xd8(%rbp),%esi
mov    -0xd2(%rbp),%cl
lea    0xbf4(%rip),%rdx
lea    0xbe9(%rip),%rax
test   $0x1,%cl
cmovne %rax,%rdx
lea    0xbc9(%rip),%rdi
call   1050 <printf@plt>
cmpl   $0x9,-0xc8(%rbp)
jge    14de <main+0x2fe>
mov    -0x18(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0xc4(%rbp),%edi
mov    -0xd0(%rbp),%esi
call   1100 <get_offset@plt>
mov    -0xe0(%rbp),%rdi
mov    %eax,%esi
mov    0x2af9(%rip),%rax
mov    (%rax),%edx
call   10b0 <fseek@plt>
movl   $0x0,-0xc8(%rbp)
mov    -0xd0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd0(%rbp)
jmp    130e <main+0x12e>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    0x2ab4(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%r14
mov    %edi,%ebp
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movl   $0x0,0x90(%rsp)
lea    0xde4(%rip),%r15
mov    0x2dd5(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebp,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   10c0 <getopt@plt>
cmp    $0x66,%eax
jne    1248 <main+0x78>
mov    (%r12),%rbx
jmp    1230 <main+0x60>
cmp    $0xffffffff,%eax
jne    127a <main+0xaa>
lea    0xdc4(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
jne    12a2 <main+0xd2>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
lea    0xda9(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    1294 <main+0xc4>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xd76(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x2d2d(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>
mov    %rax,%r15
lea    0x2b(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x5,%esi
mov    %rax,%rdx
call   1060 <fgets@plt>
mov    %rbp,%rdi
call   10d0 <atoi@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
jle    1436 <main+0x266>
xor    %eax,%eax
lea    0x30(%rsp),%rbp
jmp    130c <main+0x13c>
nopw   0x0(%rax,%rax,1)
mov    0x4(%rsp),%edi
mov    %ebx,%esi
call   10f0 <get_offset@plt>
mov    0x2cde(%rip),%rcx
mov    (%rcx),%edx
mov    %r15,%rdi
mov    %eax,%esi
call   10a0 <fseek@plt>
mov    %r13d,%eax
cmp    0x4(%rsp),%r13d
je     1436 <main+0x266>
mov    %rax,0x8(%rsp)
lea    0x10(%rsp),%rdi
mov    $0x14,%esi
mov    %r15,%rdx
call   1060 <fgets@plt>
mov    $0x1,%r14b
test   %rax,%rax
je     13a4 <main+0x1d4>
xor    %r13d,%r13d
xchg   %ax,%ax
mov    0x10(%rsp),%al
test   %al,%al
je     1351 <main+0x181>
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
mov    %al,0x0(%rbp,%rcx,1)
movzbl 0x12(%rsp,%rcx,2),%eax
add    $0x1,%rcx
test   %al,%al
jne    1340 <main+0x170>
lea    0x0(,%r13,4),%rax
add    %r13,%rax
lea    (%rsp,%rax,2),%rdi
add    $0x30,%rdi
call   1040 <lineck@plt>
test   %eax,%eax
je     1400 <main+0x230>
mov    %eax,%r12d
lea    0x1(%r13),%rbx
cmp    $0x8,%r13
setb   %r14b
cmp    $0x9,%rbx
je     13a9 <main+0x1d9>
lea    0x10(%rsp),%rdi
mov    $0x14,%esi
mov    %r15,%rdx
call   1060 <fgets@plt>
add    $0xa,%rbp
mov    %rbx,%r13
test   %rax,%rax
jne    1330 <main+0x160>
test   %r12d,%r12d
je     1400 <main+0x230>
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
call   1080 <colnck@plt>
test   %rax,%rax
je     1408 <main+0x238>
mov    %rbp,%rdi
call   1090 <qdrtck@plt>
test   %rax,%rax
lea    0xca7(%rip),%rdx
lea    0xca4(%rip),%rax
cmove  %rax,%rdx
mov    0x8(%rsp),%rbx
lea    0x1(%rbx),%r13d
lea    0xc7a(%rip),%rdi
mov    %r13d,%esi
call   1050 <printf@plt>
test   %r14b,%r14b
jne    12e0 <main+0x110>
jmp    12fe <main+0x12e>
xchg   %ax,%ax
xor    %r12d,%r12d
lea    0x30(%rsp),%rbp
mov    0x8(%rsp),%rbx
lea    0x1(%rbx),%r13d
lea    0xc4a(%rip),%rdi
mov    %r13d,%esi
lea    0xc56(%rip),%rdx
call   1050 <printf@plt>
test   $0x1,%r14b
jne    12e0 <main+0x110>
jmp    12fe <main+0x12e>
mov    %r15,%rdi
call   1030 <fclose@plt>
mov    0x2b7b(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"f:\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [21 x i8] c"%s -f [arquivo.txt]\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [72 x i8] c"Erro ao abrir o arquivo.\0AVoce indicou o arquivo certo com a flag '-f'?\0A\00"
@.str.4 = [18 x i8] c"Resultado %d\0A%s\0A\0A\00"
@.str.5 = [4 x i8] c"SIM\00"
@.str.6 = [4 x i8] c"NAO\00"
@SEEK_SET = global i32 0
@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 [5 x i8]
%8 = alloca [20 x i8]
%9 = alloca [10 x [10 x i8]]
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = bitcast [10 x [10 x i8]]* %9 to i8*
br label %18
18: ; preds = %35, %2
%19 = load i32, i32* %4
%20 = load i8**, i8*** %5
%21 = call i32 @getopt(i32 %19, i8** %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 %21, i32* %12
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %36
23: ; preds = %18
%24 = load i32, i32* %12
switch i32 %24, label %27 [
i32 102, label %25
]
25: ; preds = %23
%26 = load i8*, i8** @optarg
store i8* %26, i8** %10
br label %35
27: ; preds = %23
%28 = load i32, i32* @stderr
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 0
%31 = load i8*, i8** %30
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %31)
%33 = load i32, i32* @EXIT_FAILURE
%34 = call i32 @exit(i32 %33)
unreachable
35: ; preds = %25
br label %18
36: ; preds = %18
store i32 0, i32* %16
store i32 0, i32* %15
store i32 0, i32* %14
%37 = load i8*, i8** %10
%38 = call i32* @fopen(i8* %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %38, i32** %6
%39 = icmp ne i32* %38, null
br i1 %39, label %45, label %40
40: ; preds = %36
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %36
%46 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%47 = load i32*, i32** %6
%48 = call i64 @fgets(i8* %46, i32 5, i32* %47)
%49 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%50 = call i32 @atoi(i8* %49)
store i32 %50, i32* %13
br label %51
51: ; preds = %130, %45
%52 = load i32, i32* %16
%53 = load i32, i32* %13
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %133
55: ; preds = %51
br label %56
56: ; preds = %98, %55
%57 = load i32, i32* %14
%58 = icmp slt i32 %57, 9
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%61 = load i32*, i32** %6
%62 = call i64 @fgets(i8* %60, i32 20, i32* %61)
%63 = icmp ne i64 %62, 0
br label %64
64: ; preds = %59, %56
%65 = phi i1 [ false, %56 ], [ %63, %59 ]
br i1 %65, label %66, label %101
66: ; preds = %64
store i32 0, i32* %15
br label %67
67: ; preds = %87, %66
%68 = load i32, i32* %15
%69 = mul nsw i32 %68, 2
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %90
75: ; preds = %67
%76 = load i32, i32* %15
%77 = mul nsw i32 %76, 2
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 %78
%80 = load i8, i8* %79
%81 = load i32, i32* %14
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %9, i64 0, i64 %82
%84 = load i32, i32* %15
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [10 x i8], [10 x i8]* %83, i64 0, i64 %85
store i8 %80, i8* %86
br label %87
87: ; preds = %75
%88 = load i32, i32* %15
%89 = add nsw i32 %88, 1
store i32 %89, i32* %15
br label %67
90: ; preds = %67
%91 = load i32, i32* %14
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %9, i64 0, i64 %92
%94 = getelementptr inbounds [10 x i8], [10 x i8]* %93, i64 0, i64 0
%95 = call i32 @lineck(i8* %94)
store i32 %95, i32* %11
%96 = icmp ne i32 %95, 0
br i1 %96, label %98, label %97
97: ; preds = %90
br label %101
98: ; preds = %90
%99 = load i32, i32* %14
%100 = add nsw i32 %99, 1
store i32 %100, i32* %14
br label %56
101: ; preds = %97, %64
%102 = load i32, i32* %16
%103 = add nsw i32 %102, 1
%104 = load i32, i32* %11
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %116
106: ; preds = %101
%107 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %9, i64 0, i64 0
%108 = getelementptr inbounds [10 x i8], [10 x i8]* %107, i64 0, i64 0
%109 = call i64 @colnck(i8* %108)
%110 = icmp ne i64 %109, 0
br i1 %110, label %111, label %116
111: ; preds = %106
%112 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %9, i64 0, i64 0
%113 = getelementptr inbounds [10 x i8], [10 x i8]* %112, i64 0, i64 0
%114 = call i64 @qdrtck(i8* %113)
%115 = icmp ne i64 %114, 0
br label %116
116: ; preds = %111, %106, %101
%117 = phi i1 [ false, %106 ], [ false, %101 ], [ %115, %111 ]
%118 = zext i1 %117 to i64
%119 = select i1 %117, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0)
%120 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %103, i8* %119)
%121 = load i32, i32* %14
%122 = icmp slt i32 %121, 9
br i1 %122, label %123, label %130
123: ; preds = %116
%124 = load i32*, i32** %6
%125 = load i32, i32* %13
%126 = load i32, i32* %16
%127 = call i32 @get_offset(i32 %125, i32 %126)
%128 = load i32, i32* @SEEK_SET
%129 = call i32 @fseek(i32* %124, i32 %127, i32 %128)
br label %130
130: ; preds = %123, %116
store i32 0, i32* %14
%131 = load i32, i32* %16
%132 = add nsw i32 %131, 1
store i32 %132, i32* %16
br label %51
133: ; preds = %51
%134 = load i32*, i32** %6
%135 = call i32 @fclose(i32* %134)
%136 = load i32, i32* @EXIT_SUCCESS
%137 = call i32 @exit(i32 %136)
unreachable
}

LLVM IR (-O2):
@.str = [3 x i8] c"f:\00"
@optarg = global i8* null
@stderr = global i32 0
@.str.1 = [21 x i8] c"%s -f [arquivo.txt]\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [72 x i8] c"Erro ao abrir o arquivo.\0AVoce indicou o arquivo certo com a flag '-f'?\0A\00"
@.str.4 = [18 x i8] c"Resultado %d\0A%s\0A\0A\00"
@.str.5 = [4 x i8] c"SIM\00"
@.str.6 = [4 x i8] c"NAO\00"
@SEEK_SET = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [5 x i8]
%4 = alloca [20 x i8]
%5 = alloca [10 x [10 x i8]]
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %5, i64 0, i64 0, i64 0
br label %9
9: ; preds = %12, %2
%10 = phi i8* [ undef, %2 ], [ %13, %12 ]
%11 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
switch i32 %11, label %14 [
i32 -1, label %20
i32 102, label %12
]
12: ; preds = %9
%13 = load i8*, i8** @optarg
br label %9
14: ; preds = %9
%15 = load i32, i32* @stderr
%16 = load i8*, i8** %1
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = load i32, i32* @EXIT_FAILURE
%19 = tail call i32 @exit(i32 %18)
unreachable
20: ; preds = %9
%21 = tail call i32* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%26 = load i32, i32* @EXIT_FAILURE
%27 = tail call i32 @exit(i32 %26)
unreachable
28: ; preds = %20
%29 = call i64 @fgets(i8* %6, i32 5, i32* %21)
%30 = call i32 @atoi(i8* %6)
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %92
32: ; preds = %28, %88
%33 = phi i32 [ %89, %88 ], [ 0, %28 ]
%34 = phi i32 [ %90, %88 ], [ undef, %28 ]
%35 = call i64 @fgets(i8* %7, i32 20, i32* %21)
%36 = icmp eq i64 %35, 0
br i1 %36, label %62, label %44
37: ; preds = %58
%38 = add nuw nsw i64 %46, 1
%39 = icmp ult i64 %46, 8
%40 = icmp eq i64 %38, 9
br i1 %40, label %66, label %41
41: ; preds = %37
%42 = call i64 @fgets(i8* %7, i32 20, i32* %21)
%43 = icmp eq i64 %42, 0
br i1 %43, label %62, label %44
44: ; preds = %32, %41
%45 = phi i1 [ %39, %41 ], [ true, %32 ]
%46 = phi i64 [ %38, %41 ], [ 0, %32 ]
%47 = load i8, i8* %7
%48 = icmp eq i8 %47, 0
br i1 %48, label %58, label %49
49: ; preds = %44, %49
%50 = phi i64 [ %53, %49 ], [ 0, %44 ]
%51 = phi i8 [ %56, %49 ], [ %47, %44 ]
%52 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %5, i64 0, i64 %46, i64 %50
store i8 %51, i8* %52
%53 = add nuw i64 %50, 1
%54 = shl nuw nsw i64 %53, 1
%55 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 %54
%56 = load i8, i8* %55
%57 = icmp eq i8 %56, 0
br i1 %57, label %58, label %49
58: ; preds = %49, %44
%59 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %5, i64 0, i64 %46, i64 0
%60 = call i32 @lineck(i8* %59)
%61 = icmp eq i32 %60, 0
br i1 %61, label %77, label %37
62: ; preds = %41, %32
%63 = phi i1 [ true, %32 ], [ %39, %41 ]
%64 = phi i32 [ %34, %32 ], [ %60, %41 ]
%65 = icmp eq i32 %64, 0
br i1 %65, label %77, label %66
66: ; preds = %37, %62
%67 = phi i1 [ %63, %62 ], [ %39, %37 ]
%68 = phi i32 [ %64, %62 ], [ %60, %37 ]
%69 = call i64 @colnck(i8* %8)
%70 = icmp eq i64 %69, 0
br i1 %70, label %77, label %71
71: ; preds = %66
%72 = call i64 @qdrtck(i8* %8)
%73 = icmp eq i64 %72, 0
%74 = select i1 %73, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0)
%75 = add nuw nsw i32 %33, 1
%76 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %75, i8* %74)
br i1 %67, label %82, label %88
77: ; preds = %58, %62, %66
%78 = phi i1 [ %63, %62 ], [ %67, %66 ], [ %45, %58 ]
%79 = phi i32 [ 0, %62 ], [ %68, %66 ], [ 0, %58 ]
%80 = add nuw nsw i32 %33, 1
%81 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br i1 %78, label %82, label %88
82: ; preds = %71, %77
%83 = phi i32 [ %75, %71 ], [ %80, %77 ]
%84 = phi i32 [ %68, %71 ], [ %79, %77 ]
%85 = call i32 @get_offset(i32 %30, i32 %33)
%86 = load i32, i32* @SEEK_SET
%87 = call i32 @fseek(i32* %21, i32 %85, i32 %86)
br label %88
88: ; preds = %71, %82, %77
%89 = phi i32 [ %75, %71 ], [ %83, %82 ], [ %80, %77 ]
%90 = phi i32 [ %68, %71 ], [ %84, %82 ], [ %79, %77 ]
%91 = icmp eq i32 %89, %30
br i1 %91, label %92, label %32
92: ; preds = %88, %28
%93 = call i32 @fclose(i32* %21)
%94 = load i32, i32* @EXIT_SUCCESS
%95 = call i32 @exit(i32 %94)
unreachable
}