#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*/ SEEK_SET;
int **creer_tab(int, int);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fill_inc_tab(int **, int, int, int **);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ free_tab(int, int **);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
int /*<<< orphan*/ is_desargue(int, int **, int /*<<< orphan*/ *);
int /*<<< orphan*/ is_desargue_quick(int, int **, int /*<<< orphan*/ *);
int **set_tab(int, int, int **);
int **set_tab_to_0(int, int, int **);
void desargue_multiple(int type, int nb_tab, int rang, FILE *fic_in,
                       FILE *fic_out) {
  int i = 0, j = 0, k, l, n, p, numb = 0, ch;
  n = rang + 1;
  p = rang * rang + rang + 1;
  int **tab_temp = creer_tab(n, p);
  tab_temp = set_tab(n, p, tab_temp);
  int **tab_temp_inc = creer_tab(p, p);
  tab_temp_inc = set_tab_to_0(p, p, tab_temp_inc);
  fseek(fic_in, 50, SEEK_SET);
  for (k = 0; k < nb_tab; k++) {
    for (l = 0; l < (rang + 1) + 1; l++) {
      while (fgetc(fic_in) != 10)
        ;
    }
    while ((i < n - 1 && j < p)) {
      while ((ch = fgetc(fic_in)) != '\n') {
        while ((ch = fgetc(fic_in)) != 32) {
          numb = (numb * 10) + (ch - 48);
        }
        tab_temp[i][j] = numb;
        i++;
        numb = 0;
        if (i >= n) {
          i = 0;
          j++;
        }
      }
    }
    fill_inc_tab(tab_temp_inc, n, p, tab_temp);
    fprintf(fic_out, "\nTable %d: \n", k);
    if (type == 1) {
      if (!is_desargue_quick(p, tab_temp_inc, fic_out)) {
        fprintf(fic_out, "Ne respecte pas d�sargue\n \n");
      }
    } else {
      if (!is_desargue(p, tab_temp_inc, fic_out)) {
        fprintf(fic_out, "Ne respecte pas d�sargue\n \n");
      }
    }
    while (fgetc(fic_in) != '\n')
      ;
  }
  free_tab(n, tab_temp);
  free_tab(p, tab_temp_inc);
}


x86 assembly (clang, -O0):
<desargue_multiple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
add    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1030 <creer_tab@plt>
mov    %rax,-0x48(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x48(%rbp),%rdx
call   10c0 <set_tab@plt>
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1030 <creer_tab@plt>
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x50(%rbp),%rdx
call   10a0 <set_tab_to_0@plt>
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2daa(%rip),%rax
mov    (%rax),%edx
mov    $0x32,%esi
call   1080 <fseek@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1437 <desargue_multiple+0x297>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    12a2 <desargue_multiple+0x102>
jmp    1275 <desargue_multiple+0xd5>
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     128f <desargue_multiple+0xef>
jmp    1275 <desargue_multiple+0xd5>
jmp    1294 <desargue_multiple+0xf4>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    125c <desargue_multiple+0xbc>
jmp    12a7 <desargue_multiple+0x107>
mov    -0x24(%rbp),%ecx
mov    -0x34(%rbp),%edx
sub    $0x1,%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x51(%rbp)
jge    12c9 <desargue_multiple+0x129>
mov    -0x28(%rbp),%eax
cmp    -0x38(%rbp),%eax
setl   %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    12d9 <desargue_multiple+0x139>
jmp    1373 <desargue_multiple+0x1d3>
jmp    12de <desargue_multiple+0x13e>
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x40(%rbp)
cmp    $0xa,%eax
je     136e <desargue_multiple+0x1ce>
jmp    12fb <desargue_multiple+0x15b>
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x40(%rbp)
cmp    $0x20,%eax
je     1327 <desargue_multiple+0x187>
imul   $0xa,-0x3c(%rbp),%eax
mov    -0x40(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x3c(%rbp)
jmp    12fb <desargue_multiple+0x15b>
mov    -0x3c(%rbp),%edx
mov    -0x48(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x34(%rbp),%eax
jl     1369 <desargue_multiple+0x1c9>
movl   $0x0,-0x24(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    12de <desargue_multiple+0x13e>
jmp    12a7 <desargue_multiple+0x107>
mov    -0x50(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
mov    -0x48(%rbp),%rcx
call   1050 <fill_inc_tab@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xc6c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
cmpl   $0x1,-0x4(%rbp)
jne    13d5 <desargue_multiple+0x235>
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1070 <is_desargue_quick@plt>
cmp    $0x0,%eax
jne    13d0 <desargue_multiple+0x230>
mov    -0x20(%rbp),%rdi
lea    0xc44(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1405 <desargue_multiple+0x265>
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1090 <is_desargue@plt>
cmp    $0x0,%eax
jne    1400 <desargue_multiple+0x260>
mov    -0x20(%rbp),%rdi
lea    0xc14(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1405 <desargue_multiple+0x265>
jmp    140a <desargue_multiple+0x26a>
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
movsbl %al,%eax
cmp    $0xa,%eax
je     1424 <desargue_multiple+0x284>
jmp    140a <desargue_multiple+0x26a>
jmp    1429 <desargue_multiple+0x289>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1249 <desargue_multiple+0xa9>
mov    -0x34(%rbp),%edi
mov    -0x48(%rbp),%rsi
call   10b0 <free_tab@plt>
mov    -0x38(%rbp),%edi
mov    -0x50(%rbp),%rsi
call   10b0 <free_tab@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<desargue_multiple>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,%r13
mov    %rcx,%rbx
mov    %edx,%r15d
mov    %esi,0x14(%rsp)
mov    %edi,0x34(%rsp)
lea    0x1(%r15),%ebp
mov    %edx,%eax
imul   %eax,%eax
mov    %rax,0x20(%rsp)
lea    (%rax,%r15,1),%r14d
add    $0x1,%r14d
mov    %ebp,%edi
mov    %r14d,%esi
call   1030 <creer_tab@plt>
mov    %ebp,0x10(%rsp)
mov    %ebp,%edi
mov    %r14d,%esi
mov    %rax,%rdx
call   10d0 <set_tab@plt>
mov    %rax,%r12
mov    %r14d,%edi
mov    %r14d,%esi
call   1030 <creer_tab@plt>
mov    %r14d,%edi
mov    %r14d,0x8(%rsp)
mov    %r14d,%esi
mov    %rax,%rdx
call   10a0 <set_tab_to_0@plt>
mov    %rax,0x18(%rsp)
mov    0x2db3(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x32,%esi
call   1080 <fseek@plt>
cmpl   $0x0,0x14(%rsp)
jle    13d1 <desargue_multiple+0x221>
mov    0x20(%rsp),%rax
add    %r15d,%eax
mov    %rax,0x20(%rsp)
xor    %ebp,%ebp
xor    %r14d,%r14d
movl   $0x0,0xc(%rsp)
mov    %r13,0x28(%rsp)
cs nopw 0x0(%rax,%rax,1)
cmp    $0xffffffff,%r15d
jl     12a0 <desargue_multiple+0xf0>
xor    %r13d,%r13d
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <fgetc@plt>
cmp    $0xa,%al
jne    1280 <desargue_multiple+0xd0>
lea    0x1(%r13),%eax
cmp    0x10(%rsp),%r13d
mov    %eax,%r13d
jne    1280 <desargue_multiple+0xd0>
nopw   0x0(%rax,%rax,1)
cmp    %r15d,%ebp
jge    1330 <desargue_multiple+0x180>
cmp    0x20(%rsp),%r14d
mov    0x28(%rsp),%r13
jle    12e4 <desargue_multiple+0x134>
jmp    1335 <desargue_multiple+0x185>
nopw   0x0(%rax,%rax,1)
movslq %ebp,%rax
mov    (%r12,%rax,8),%rcx
movslq %r14d,%r14
mov    %r13d,(%rcx,%r14,4)
lea    0x1(%rax),%ebp
xor    %ecx,%ecx
cmp    %r15d,%eax
setge  %cl
mov    $0x0,%eax
cmovge %eax,%ebp
add    %ecx,%r14d
mov    %rbx,%rdi
call   1040 <fgetc@plt>
cmp    $0xa,%al
je     12a0 <desargue_multiple+0xf0>
mov    %rbx,%rdi
call   1040 <fgetc@plt>
xor    %r13d,%r13d
cmp    $0x20,%al
je     12c0 <desargue_multiple+0x110>
xor    %r13d,%r13d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl %al,%eax
lea    0x0(%r13,%r13,4),%ecx
lea    (%rax,%rcx,2),%r13d
add    $0xffffffd0,%r13d
mov    %rbx,%rdi
call   1040 <fgetc@plt>
cmp    $0x20,%al
jne    1310 <desargue_multiple+0x160>
jmp    12c0 <desargue_multiple+0x110>
xchg   %ax,%ax
mov    0x28(%rsp),%r13
mov    0x18(%rsp),%rdi
mov    0x10(%rsp),%esi
mov    0x8(%rsp),%edx
mov    %r12,%rcx
call   1050 <fill_inc_tab@plt>
mov    %r13,%rdi
lea    0xcac(%rip),%rsi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
cmpl   $0x1,0x34(%rsp)
jne    1380 <desargue_multiple+0x1d0>
mov    0x8(%rsp),%edi
mov    0x18(%rsp),%rsi
mov    %r13,%rdx
call   1070 <is_desargue_quick@plt>
test   %eax,%eax
jne    13b0 <desargue_multiple+0x200>
jmp    1395 <desargue_multiple+0x1e5>
nopl   (%rax)
mov    0x8(%rsp),%edi
mov    0x18(%rsp),%rsi
mov    %r13,%rdx
call   1090 <is_desargue@plt>
test   %eax,%eax
jne    13b0 <desargue_multiple+0x200>
mov    $0x1d,%esi
mov    $0x1,%edx
lea    0xc67(%rip),%rdi
mov    %r13,%rcx
call   10c0 <fwrite@plt>
xchg   %ax,%ax
mov    %rbx,%rdi
call   1040 <fgetc@plt>
cmp    $0xa,%al
jne    13b0 <desargue_multiple+0x200>
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    0x14(%rsp),%eax
jne    1270 <desargue_multiple+0xc0>
mov    0x10(%rsp),%edi
mov    %r12,%rsi
call   10b0 <free_tab@plt>
mov    0x8(%rsp),%edi
mov    0x18(%rsp),%rsi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10b0 <free_tab@plt>

LLVM IR (-O0):
@SEEK_SET = global i32 0
@.str = [13 x i8] c"\0ATable %d: \0A\00"
@.str.1 = [30 x i8] c"Ne respecte pas d\EF\BF\BDsargue\0A \0A\00"
define void @desargue_multiple(i32 %0, i32 %1, i32 %2, i32* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32**
%20 = alloca i32**
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32* %3, i32** %9
store i32* %4, i32** %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %17
%21 = load i32, i32* %8
%22 = add nsw i32 %21, 1
store i32 %22, i32* %15
%23 = load i32, i32* %8
%24 = load i32, i32* %8
%25 = mul nsw i32 %23, %24
%26 = load i32, i32* %8
%27 = add nsw i32 %25, %26
%28 = add nsw i32 %27, 1
store i32 %28, i32* %16
%29 = load i32, i32* %15
%30 = load i32, i32* %16
%31 = call i32** @creer_tab(i32 %29, i32 %30)
store i32** %31, i32*** %19
%32 = load i32, i32* %15
%33 = load i32, i32* %16
%34 = load i32**, i32*** %19
%35 = call i32** @set_tab(i32 %32, i32 %33, i32** %34)
store i32** %35, i32*** %19
%36 = load i32, i32* %16
%37 = load i32, i32* %16
%38 = call i32** @creer_tab(i32 %36, i32 %37)
store i32** %38, i32*** %20
%39 = load i32, i32* %16
%40 = load i32, i32* %16
%41 = load i32**, i32*** %20
%42 = call i32** @set_tab_to_0(i32 %39, i32 %40, i32** %41)
store i32** %42, i32*** %20
%43 = load i32*, i32** %9
%44 = load i32, i32* @SEEK_SET
%45 = call i32 @fseek(i32* %43, i32 50, i32 %44)
store i32 0, i32* %13
br label %46
46: ; preds = %157, %5
%47 = load i32, i32* %13
%48 = load i32, i32* %7
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %160
50: ; preds = %46
store i32 0, i32* %14
br label %51
51: ; preds = %65, %50
%52 = load i32, i32* %14
%53 = load i32, i32* %8
%54 = add nsw i32 %53, 1
%55 = add nsw i32 %54, 1
%56 = icmp slt i32 %52, %55
br i1 %56, label %57, label %68
57: ; preds = %51
br label %58
58: ; preds = %63, %57
%59 = load i32*, i32** %9
%60 = call signext i8 @fgetc(i32* %59)
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 10
br i1 %62, label %63, label %64
63: ; preds = %58
br label %58
64: ; preds = %58
br label %65
65: ; preds = %64
%66 = load i32, i32* %14
%67 = add nsw i32 %66, 1
store i32 %67, i32* %14
br label %51
68: ; preds = %51
br label %69
69: ; preds = %117, %68
%70 = load i32, i32* %11
%71 = load i32, i32* %15
%72 = sub nsw i32 %71, 1
%73 = icmp slt i32 %70, %72
br i1 %73, label %74, label %78
74: ; preds = %69
%75 = load i32, i32* %12
%76 = load i32, i32* %16
%77 = icmp slt i32 %75, %76
br label %78
78: ; preds = %74, %69
%79 = phi i1 [ false, %69 ], [ %77, %74 ]
br i1 %79, label %80, label %118
80: ; preds = %78
br label %81
81: ; preds = %116, %80
%82 = load i32*, i32** %9
%83 = call signext i8 @fgetc(i32* %82)
%84 = sext i8 %83 to i32
store i32 %84, i32* %18
%85 = icmp ne i32 %84, 10
br i1 %85, label %86, label %117
86: ; preds = %81
br label %87
87: ; preds = %92, %86
%88 = load i32*, i32** %9
%89 = call signext i8 @fgetc(i32* %88)
%90 = sext i8 %89 to i32
store i32 %90, i32* %18
%91 = icmp ne i32 %90, 32
br i1 %91, label %92, label %98
92: ; preds = %87
%93 = load i32, i32* %17
%94 = mul nsw i32 %93, 10
%95 = load i32, i32* %18
%96 = sub nsw i32 %95, 48
%97 = add nsw i32 %94, %96
store i32 %97, i32* %17
br label %87
98: ; preds = %87
%99 = load i32, i32* %17
%100 = load i32**, i32*** %19
%101 = load i32, i32* %11
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32*, i32** %100, i64 %102
%104 = load i32*, i32** %103
%105 = load i32, i32* %12
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, i32* %104, i64 %106
store i32 %99, i32* %107
%108 = load i32, i32* %11
%109 = add nsw i32 %108, 1
store i32 %109, i32* %11
store i32 0, i32* %17
%110 = load i32, i32* %11
%111 = load i32, i32* %15
%112 = icmp sge i32 %110, %111
br i1 %112, label %113, label %116
113: ; preds = %98
store i32 0, i32* %11
%114 = load i32, i32* %12
%115 = add nsw i32 %114, 1
store i32 %115, i32* %12
br label %116
116: ; preds = %113, %98
br label %81
117: ; preds = %81
br label %69
118: ; preds = %78
%119 = load i32**, i32*** %20
%120 = load i32, i32* %15
%121 = load i32, i32* %16
%122 = load i32**, i32*** %19
%123 = call i32 @fill_inc_tab(i32** %119, i32 %120, i32 %121, i32** %122)
%124 = load i32*, i32** %10
%125 = load i32, i32* %13
%126 = call i32 (i32*, i8*, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %125)
%127 = load i32, i32* %6
%128 = icmp eq i32 %127, 1
br i1 %128, label %129, label %139
129: ; preds = %118
%130 = load i32, i32* %16
%131 = load i32**, i32*** %20
%132 = load i32*, i32** %10
%133 = call i32 @is_desargue_quick(i32 %130, i32** %131, i32* %132)
%134 = icmp ne i32 %133, 0
br i1 %134, label %138, label %135
135: ; preds = %129
%136 = load i32*, i32** %10
%137 = call i32 (i32*, i8*, ...) @fprintf(i32* %136, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
br label %138
138: ; preds = %135, %129
br label %149
139: ; preds = %118
%140 = load i32, i32* %16
%141 = load i32**, i32*** %20
%142 = load i32*, i32** %10
%143 = call i32 @is_desargue(i32 %140, i32** %141, i32* %142)
%144 = icmp ne i32 %143, 0
br i1 %144, label %148, label %145
145: ; preds = %139
%146 = load i32*, i32** %10
%147 = call i32 (i32*, i8*, ...) @fprintf(i32* %146, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
br label %148
148: ; preds = %145, %139
br label %149
149: ; preds = %148, %138
br label %150
150: ; preds = %155, %149
%151 = load i32*, i32** %9
%152 = call signext i8 @fgetc(i32* %151)
%153 = sext i8 %152 to i32
%154 = icmp ne i32 %153, 10
br i1 %154, label %155, label %156
155: ; preds = %150
br label %150
156: ; preds = %150
br label %157
157: ; preds = %156
%158 = load i32, i32* %13
%159 = add nsw i32 %158, 1
store i32 %159, i32* %13
br label %46
160: ; preds = %46
%161 = load i32, i32* %15
%162 = load i32**, i32*** %19
%163 = call i32 @free_tab(i32 %161, i32** %162)
%164 = load i32, i32* %16
%165 = load i32**, i32*** %20
%166 = call i32 @free_tab(i32 %164, i32** %165)
ret void
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
@.str = [13 x i8] c"\0ATable %d: \0A\00"
@.str.1 = [30 x i8] c"Ne respecte pas d\EF\BF\BDsargue\0A \0A\00"
define void @desargue_multiple(i32 %0, i32 %1, i32 %2, i32* nocapture %3, i32* %4) {
%6 = add nsw i32 %2, 1
%7 = mul nsw i32 %2, %2
%8 = add nsw i32 %7, %2
%9 = add nsw i32 %8, 1
%10 = tail call i32** @creer_tab(i32 %6, i32 %9)
%11 = tail call i32** @set_tab(i32 %6, i32 %9, i32** %10)
%12 = tail call i32** @creer_tab(i32 %9, i32 %9)
%13 = tail call i32** @set_tab_to_0(i32 %9, i32 %9, i32** %12)
%14 = load i32, i32* @SEEK_SET
%15 = tail call i32 @fseek(i32* %3, i32 50, i32 %14)
%16 = icmp sgt i32 %1, 0
br i1 %16, label %17, label %97
17: ; preds = %5
%18 = icmp sgt i32 %2, -2
%19 = icmp eq i32 %0, 1
%20 = add i32 %2, 1
br label %21
21: ; preds = %17, %94
%22 = phi i32 [ 0, %17 ], [ %79, %94 ]
%23 = phi i32 [ 0, %17 ], [ %78, %94 ]
%24 = phi i32 [ 0, %17 ], [ %95, %94 ]
br i1 %18, label %29, label %25
25: ; preds = %34, %21
%26 = icmp slt i32 %22, %2
%27 = icmp sle i32 %23, %8
%28 = select i1 %26, i1 %27, i1 false
br i1 %28, label %43, label %77
29: ; preds = %21, %34
%30 = phi i32 [ %35, %34 ], [ 0, %21 ]
br label %31
31: ; preds = %29, %31
%32 = tail call signext i8 @fgetc(i32* %3)
%33 = icmp eq i8 %32, 10
br i1 %33, label %34, label %31
34: ; preds = %31
%35 = add nuw i32 %30, 1
%36 = icmp eq i32 %30, %20
br i1 %36, label %25, label %29
37: ; preds = %62, %43
%38 = phi i32 [ %45, %43 ], [ %73, %62 ]
%39 = phi i32 [ %44, %43 ], [ %74, %62 ]
%40 = icmp slt i32 %39, %2
%41 = icmp sle i32 %38, %8
%42 = select i1 %40, i1 %41, i1 false
br i1 %42, label %43, label %77
43: ; preds = %25, %37
%44 = phi i32 [ %39, %37 ], [ %22, %25 ]
%45 = phi i32 [ %38, %37 ], [ %23, %25 ]
%46 = tail call signext i8 @fgetc(i32* %3)
%47 = icmp eq i8 %46, 10
br i1 %47, label %37, label %48
48: ; preds = %43, %62
%49 = phi i32 [ %74, %62 ], [ %44, %43 ]
%50 = phi i32 [ %73, %62 ], [ %45, %43 ]
%51 = tail call signext i8 @fgetc(i32* %3)
%52 = icmp eq i8 %51, 32
br i1 %52, label %62, label %53
53: ; preds = %48, %53
%54 = phi i8 [ %60, %53 ], [ %51, %48 ]
%55 = phi i32 [ %59, %53 ], [ 0, %48 ]
%56 = sext i8 %54 to i32
%57 = mul nsw i32 %55, 10
%58 = add i32 %57, -48
%59 = add i32 %58, %56
%60 = tail call signext i8 @fgetc(i32* %3)
%61 = icmp eq i8 %60, 32
br i1 %61, label %62, label %53
62: ; preds = %53, %48
%63 = phi i32 [ 0, %48 ], [ %59, %53 ]
%64 = sext i32 %49 to i64
%65 = getelementptr inbounds i32*, i32** %11, i64 %64
%66 = load i32*, i32** %65
%67 = sext i32 %50 to i64
%68 = getelementptr inbounds i32, i32* %66, i64 %67
store i32 %63, i32* %68
%69 = add nsw i32 %49, 1
%70 = icmp slt i32 %49, %2
%71 = xor i1 %70, true
%72 = zext i1 %71 to i32
%73 = add nsw i32 %50, %72
%74 = select i1 %70, i32 %69, i32 0
%75 = tail call signext i8 @fgetc(i32* %3)
%76 = icmp eq i8 %75, 10
br i1 %76, label %37, label %48
77: ; preds = %37, %25
%78 = phi i32 [ %23, %25 ], [ %38, %37 ]
%79 = phi i32 [ %22, %25 ], [ %39, %37 ]
%80 = tail call i32 @fill_inc_tab(i32** %13, i32 %6, i32 %9, i32** %11)
%81 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %24)
br i1 %19, label %82, label %85
82: ; preds = %77
%83 = tail call i32 @is_desargue_quick(i32 %9, i32** %13, i32* %4)
%84 = icmp eq i32 %83, 0
br i1 %84, label %88, label %90
85: ; preds = %77
%86 = tail call i32 @is_desargue(i32 %9, i32** %13, i32* %4)
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %85, %82
%89 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i64 29, i64 1, i32* %4)
br label %90
90: ; preds = %88, %85, %82
br label %91
91: ; preds = %90, %91
%92 = tail call signext i8 @fgetc(i32* %3)
%93 = icmp eq i8 %92, 10
br i1 %93, label %94, label %91
94: ; preds = %91
%95 = add nuw nsw i32 %24, 1
%96 = icmp eq i32 %95, %1
br i1 %96, label %97, label %21
97: ; preds = %94, %5
%98 = tail call i32 @free_tab(i32 %6, i32** %11)
%99 = tail call i32 @free_tab(i32 %9, i32** %13)
ret void
}