#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*/ fprintf(int /*<<< orphan*/ *, char *, ...);
get_in_coq_incidence(int p, int **tab_inc, FILE *fic_incid_coq) {
  int i, j;
  fprintf(fic_incid_coq, "Parameter Point: Set.\nParameter");
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, " p%d", i);
  }
  fprintf(fic_incid_coq, ": Point.\n \n");
  fprintf(fic_incid_coq, "Parameter Line: Set.\nParameter");
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, " ");
    fprintf(fic_incid_coq, "l%d", i);
  }
  fprintf(fic_incid_coq, " : Line.\n \n");
  fprintf(fic_incid_coq, "Parameter Incid : Point -> Line -> Prop.\n \n");
  fprintf(fic_incid_coq, "Axiom is_only_%d_pts : forall P:Point, ", p);
  for (i = 0; i < p; i++) {
    if (i == p - 1)
      fprintf(fic_incid_coq, "{P=p%d}", i);
    else
      fprintf(fic_incid_coq, "{P=p%d}+", i);
  }
  fprintf(fic_incid_coq, ".\n \nAxiom is_only_%d_lines : forall P:Line, ", p);
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, "{P=");
    fprintf(fic_incid_coq, "l%d", i);
    if (i == p - 1)
      fprintf(fic_incid_coq, "}.");
    else
      fprintf(fic_incid_coq, "}+");
  }
  fprintf(fic_incid_coq, "\n \nDefinition is_fano_plane ");
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, "p%d ", i);
  }
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, "l%d", i);
    fprintf(fic_incid_coq, " ");
  }
  fprintf(fic_incid_coq, ":=\n");
  fprintf(fic_incid_coq, "(");
  for (i = 0; i < p - 1; i++) {
    for (j = i + 1; j < p; j++) {
      if (i == p - 2)
        fprintf(fic_incid_coq, "~p%d=p%d) /\\ ", i, j);
      else
        fprintf(fic_incid_coq, "~p%d=p%d /\\ ", i, j);
    }
    fprintf(fic_incid_coq, "\n");
  }
  fprintf(fic_incid_coq, "(");
  for (i = 0; i < p - 1; i++) {
    for (j = i + 1; j < p; j++) {
      fprintf(fic_incid_coq, "l%d", i);
      fprintf(fic_incid_coq, "<>");
      fprintf(fic_incid_coq, "l%d", j);
      if (i == p - 2)
        fprintf(fic_incid_coq, ")");
      fprintf(fic_incid_coq, " /\\ ");
    }
    fprintf(fic_incid_coq, "\n");
  }
  fprintf(fic_incid_coq, "(");
  for (i = 0; i < p; i++) {
    for (j = 0; j < p; j++) {
      if (tab_inc[j][i] == 0)
        fprintf(fic_incid_coq, "~");
      fprintf(fic_incid_coq, "Incid p%d ", i);
      fprintf(fic_incid_coq, "l%d", j);
      if (i == p - 1 && j == p - 1)
        fprintf(fic_incid_coq, ").");
      else
        fprintf(fic_incid_coq, " /\\ ");
    }
    fprintf(fic_incid_coq, "\n");
  }
  fprintf(fic_incid_coq, " \n");
  fprintf(fic_incid_coq, "Axiom is_fano_plane_inst :  is_fano_plane");
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, " p%d", i);
  }
  for (i = 0; i < p; i++) {
    fprintf(fic_incid_coq, " ");
    fprintf(fic_incid_coq, "l%d", i);
  }
  fprintf(fic_incid_coq, ".");
}


x86 assembly (clang, -O0):
<get_in_coq_incidence>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xed2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    116b <get_in_coq_incidence+0x5b>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xeca(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    113c <get_in_coq_incidence+0x2c>
mov    -0x18(%rbp),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xea9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11d7 <get_in_coq_incidence+0xc7>
mov    -0x18(%rbp),%rdi
lea    0xf43(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe8e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1196 <get_in_coq_incidence+0x86>
mov    -0x18(%rbp),%rdi
lea    0xe72(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1276 <get_in_coq_incidence+0x166>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    124e <get_in_coq_incidence+0x13e>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe72(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1263 <get_in_coq_incidence+0x153>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1268 <get_in_coq_incidence+0x158>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1217 <get_in_coq_incidence+0x107>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xe41(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1312 <get_in_coq_incidence+0x202>
mov    -0x18(%rbp),%rdi
lea    0xe49(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xd92(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    12ed <get_in_coq_incidence+0x1dd>
mov    -0x18(%rbp),%rdi
lea    0xe15(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12ff <get_in_coq_incidence+0x1ef>
mov    -0x18(%rbp),%rdi
lea    0xdca(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1304 <get_in_coq_incidence+0x1f4>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1292 <get_in_coq_incidence+0x182>
mov    -0x18(%rbp),%rdi
lea    0xddc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    135a <get_in_coq_incidence+0x24a>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xdff(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    132b <get_in_coq_incidence+0x21b>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13a2 <get_in_coq_incidence+0x292>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xcd5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd63(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1361 <get_in_coq_incidence+0x251>
mov    -0x18(%rbp),%rdi
lea    0xd69(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd5b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    146c <get_in_coq_incidence+0x35c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    144c <get_in_coq_incidence+0x33c>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jne    1421 <get_in_coq_incidence+0x311>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xd07(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1439 <get_in_coq_incidence+0x329>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xcf8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    143e <get_in_coq_incidence+0x32e>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13e7 <get_in_coq_incidence+0x2d7>
mov    -0x18(%rbp),%rdi
lea    0xc07(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13cd <get_in_coq_incidence+0x2bd>
mov    -0x18(%rbp),%rdi
lea    0xca3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    154a <get_in_coq_incidence+0x43a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    152a <get_in_coq_incidence+0x41a>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xb97(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xc6c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xb70(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x2,%ecx
cmp    %ecx,%eax
jne    150a <get_in_coq_incidence+0x3fa>
mov    -0x18(%rbp),%rdi
lea    0xc37(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xc10(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    149f <get_in_coq_incidence+0x38f>
mov    -0x18(%rbp),%rdi
lea    0xb29(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1485 <get_in_coq_incidence+0x375>
mov    -0x18(%rbp),%rdi
lea    0xbc5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1656 <get_in_coq_incidence+0x546>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1636 <get_in_coq_incidence+0x526>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jne    15ae <get_in_coq_incidence+0x49e>
mov    -0x18(%rbp),%rdi
lea    0xb95(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xb82(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xa7f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1611 <get_in_coq_incidence+0x501>
mov    -0x20(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1611 <get_in_coq_incidence+0x501>
mov    -0x18(%rbp),%rdi
lea    0xb44(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1623 <get_in_coq_incidence+0x513>
mov    -0x18(%rbp),%rdi
lea    0xb09(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1628 <get_in_coq_incidence+0x518>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1576 <get_in_coq_incidence+0x466>
mov    -0x18(%rbp),%rdi
lea    0xa1d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1563 <get_in_coq_incidence+0x453>
mov    -0x18(%rbp),%rdi
lea    0x9fc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xad9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    16b0 <get_in_coq_incidence+0x5a0>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0x985(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1681 <get_in_coq_incidence+0x571>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    16f8 <get_in_coq_incidence+0x5e8>
mov    -0x18(%rbp),%rdi
lea    0xa22(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0x96d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    16b7 <get_in_coq_incidence+0x5a7>
mov    -0x18(%rbp),%rdi
lea    0xa47(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_in_coq_incidence>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdx,%r14
mov    %rsi,0x10(%rsp)
mov    %edi,%r13d
lea    0xeb0(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
test   %r13d,%r13d
jle    1206 <get_in_coq_incidence+0xd6>
lea    0xeae(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1180 <get_in_coq_incidence+0x50>
lea    0xe87(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xe7a(%rip),%rdi
mov    $0x1e,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
test   %r13d,%r13d
jle    13d6 <get_in_coq_incidence+0x2a6>
lea    0xe77(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    11e0 <get_in_coq_incidence+0xb0>
jmp    1238 <get_in_coq_incidence+0x108>
lea    0xe18(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xe0b(%rip),%rdi
mov    $0x1e,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xe15(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xe08(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xe1b(%rip),%rsi
mov    %r14,%rdi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
test   %r13d,%r13d
jle    141c <get_in_coq_incidence+0x2ec>
lea    -0x1(%r13),%r12d
lea    0xe22(%rip),%r15
lea    0xe23(%rip),%rbp
xor    %ebx,%ebx
jmp    12b4 <get_in_coq_incidence+0x184>
nopl   (%rax)
mov    %rbp,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebx
cmp    %ebx,%r13d
je     12c4 <get_in_coq_incidence+0x194>
mov    %r14,%rdi
cmp    %ebx,%r12d
jne    12a0 <get_in_coq_incidence+0x170>
mov    %r15,%rsi
mov    %r12d,%edx
jmp    12a5 <get_in_coq_incidence+0x175>
lea    0xdfa(%rip),%rsi
mov    %r14,%rdi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
test   %r13d,%r13d
jle    1430 <get_in_coq_incidence+0x300>
lea    0xe0e(%rip),%rbx
lea    0xdd3(%rip),%r15
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xde1(%rip),%rdi
mov    %r14,%rcx
call   1050 <fwrite@plt>
mov    %r14,%rdi
lea    0xd2d(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    %ebp,%r12d
mov    %r15,%rdi
cmove  %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1300 <get_in_coq_incidence+0x1d0>
lea    0xda2(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
test   %r13d,%r13d
jle    1449 <get_in_coq_incidence+0x319>
lea    0xdc5(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    1380 <get_in_coq_incidence+0x250>
test   %r13d,%r13d
jle    1449 <get_in_coq_incidence+0x319>
lea    0xca9(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x20,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
add    $0x1,%ebp
cmp    %ebp,%r13d
jne    13b0 <get_in_coq_incidence+0x280>
jmp    1449 <get_in_coq_incidence+0x319>
lea    0xc77(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xc6a(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xc7d(%rip),%rsi
mov    %r14,%rdi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xca2(%rip),%rsi
mov    %r14,%rdi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xcc2(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xcc6(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
mov    $0x28,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
lea    -0x1(%r13),%eax
mov    %eax,0x8(%rsp)
cmp    $0x1,%r13d
mov    %r13,(%rsp)
jle    14ea <get_in_coq_incidence+0x3ba>
add    $0xfffffffe,%r13d
lea    0xc9c(%rip),%r15
xor    %ebp,%ebp
jmp    14a7 <get_in_coq_incidence+0x377>
mov    $0xa,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    %r12d,%ebp
cmp    0x8(%rsp),%r12d
je     14fc <get_in_coq_incidence+0x3cc>
lea    0x1(%rbp),%r12d
cmp    (%rsp),%r12d
jge    1490 <get_in_coq_incidence+0x360>
mov    %r12d,%ebx
jmp    14d6 <get_in_coq_incidence+0x3a6>
cs nopw 0x0(%rax,%rax,1)
mov    %r15,%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebx
cmp    %ebx,(%rsp)
je     1490 <get_in_coq_incidence+0x360>
mov    %r14,%rdi
cmp    %r13d,%ebp
jne    14c0 <get_in_coq_incidence+0x390>
lea    0xc35(%rip),%rsi
mov    %r13d,%edx
jmp    14c5 <get_in_coq_incidence+0x395>
mov    $0x28,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
jmp    15cb <get_in_coq_incidence+0x49b>
mov    $0x28,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
cmpl   $0x2,(%rsp)
jl     15cb <get_in_coq_incidence+0x49b>
lea    0xb36(%rip),%rbx
lea    0xc02(%rip),%r12
xor    %ebp,%ebp
jmp    154d <get_in_coq_incidence+0x41d>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xa,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    0xc(%rsp),%eax
mov    %eax,%ebp
cmp    0x8(%rsp),%eax
je     15cb <get_in_coq_incidence+0x49b>
lea    0x1(%rbp),%eax
mov    %eax,0xc(%rsp)
cmp    (%rsp),%eax
jge    1530 <get_in_coq_incidence+0x400>
mov    0xc(%rsp),%r15d
jmp    157f <get_in_coq_incidence+0x44f>
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %r14,%rcx
call   1050 <fwrite@plt>
add    $0x1,%r15d
cmp    %r15d,(%rsp)
je     1530 <get_in_coq_incidence+0x400>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xb96(%rip),%rdi
mov    %r14,%rcx
call   1050 <fwrite@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    %r13d,%ebp
jne    1560 <get_in_coq_incidence+0x430>
mov    $0x29,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
jmp    1560 <get_in_coq_incidence+0x430>
mov    $0x28,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    (%rsp),%rax
test   %eax,%eax
jle    1746 <get_in_coq_incidence+0x616>
mov    %eax,%ebx
mov    0x8(%rsp),%r12d
lea    0xa5e(%rip),%rbp
xor    %r15d,%r15d
jmp    161a <get_in_coq_incidence+0x4ea>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
add    $0x1,%r15
cmp    %rbx,%r15
je     16a0 <get_in_coq_incidence+0x570>
xor    %r13d,%r13d
jmp    1642 <get_in_coq_incidence+0x512>
nop
mov    $0x4,%esi
mov    $0x1,%edx
lea    0xaf2(%rip),%rdi
mov    %r14,%rcx
call   1050 <fwrite@plt>
add    $0x1,%r13
cmp    %r13,%rbx
je     1600 <get_in_coq_incidence+0x4d0>
mov    0x10(%rsp),%rax
mov    (%rax,%r13,8),%rax
cmpl   $0x0,(%rax,%r15,4)
jne    165f <get_in_coq_incidence+0x52f>
mov    $0x7e,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    %r14,%rdi
lea    0xacf(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    %r12,%r15
jne    1620 <get_in_coq_incidence+0x4f0>
cmp    %r13,%r12
jne    1620 <get_in_coq_incidence+0x4f0>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xaa5(%rip),%rdi
jmp    1631 <get_in_coq_incidence+0x501>
lea    0x9b6(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0xa86(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
mov    (%rsp),%r12
test   %r12d,%r12d
jle    1778 <get_in_coq_incidence+0x648>
lea    0x93a(%rip),%r15
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %r15,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    16f0 <get_in_coq_incidence+0x5c0>
test   %r12d,%r12d
jle    1778 <get_in_coq_incidence+0x648>
lea    0x93e(%rip),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x20,%edi
mov    %r14,%rsi
call   1030 <fputc@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
cmp    %ebp,%r12d
jne    1720 <get_in_coq_incidence+0x5f0>
jmp    1778 <get_in_coq_incidence+0x648>
lea    0x910(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
lea    0x9e0(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1050 <fwrite@plt>
mov    $0x2e,%edi
mov    %r14,%rsi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"Parameter Point: Set.\0AParameter\00"
@.str.1 = [5 x i8] c" p%d\00"
@.str.2 = [12 x i8] c": Point.\0A \0A\00"
@.str.3 = [31 x i8] c"Parameter Line: Set.\0AParameter\00"
@.str.4 = [2 x i8] c" \00"
@.str.5 = [4 x i8] c"l%d\00"
@.str.6 = [12 x i8] c" : Line.\0A \0A\00"
@.str.7 = [44 x i8] c"Parameter Incid : Point -> Line -> Prop.\0A \0A\00"
@.str.8 = [40 x i8] c"Axiom is_only_%d_pts : forall P:Point, \00"
@.str.9 = [8 x i8] c"{P=p%d}\00"
@.str.10 = [9 x i8] c"{P=p%d}+\00"
@.str.11 = [45 x i8] c".\0A \0AAxiom is_only_%d_lines : forall P:Line, \00"
@.str.12 = [4 x i8] c"{P=\00"
@.str.13 = [3 x i8] c"}.\00"
@.str.14 = [3 x i8] c"}+\00"
@.str.15 = [29 x i8] c"\0A \0ADefinition is_fano_plane \00"
@.str.16 = [5 x i8] c"p%d \00"
@.str.17 = [4 x i8] c":=\0A\00"
@.str.18 = [2 x i8] c"(\00"
@.str.19 = [14 x i8] c"~p%d=p%d) /\\ \00"
@.str.20 = [13 x i8] c"~p%d=p%d /\\ \00"
@.str.21 = [2 x i8] c"\0A\00"
@.str.22 = [3 x i8] c"<>\00"
@.str.23 = [2 x i8] c")\00"
@.str.24 = [5 x i8] c" /\\ \00"
@.str.25 = [2 x i8] c"~\00"
@.str.26 = [11 x i8] c"Incid p%d \00"
@.str.27 = [3 x i8] c").\00"
@.str.28 = [3 x i8] c" \0A\00"
@.str.29 = [42 x i8] c"Axiom is_fano_plane_inst : is_fano_plane\00"
@.str.30 = [2 x i8] c".\00"
define i32 @get_in_coq_incidence(i32 %0, i32** %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32**
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %5
store i32** %1, i32*** %6
store i32* %2, i32** %7
%10 = load i32*, i32** %7
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %10, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %8
br label %12
12: ; preds = %20, %3
%13 = load i32, i32* %8
%14 = load i32, i32* %5
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %23
16: ; preds = %12
%17 = load i32*, i32** %7
%18 = load i32, i32* %8
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %18)
br label %20
20: ; preds = %16
%21 = load i32, i32* %8
%22 = add nsw i32 %21, 1
store i32 %22, i32* %8
br label %12
23: ; preds = %12
%24 = load i32*, i32** %7
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%26 = load i32*, i32** %7
%27 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %8
br label %28
28: ; preds = %38, %23
%29 = load i32, i32* %8
%30 = load i32, i32* %5
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %41
32: ; preds = %28
%33 = load i32*, i32** %7
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%35 = load i32*, i32** %7
%36 = load i32, i32* %8
%37 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %36)
br label %38
38: ; preds = %32
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
store i32 %40, i32* %8
br label %28
41: ; preds = %28
%42 = load i32*, i32** %7
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%44 = load i32*, i32** %7
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%46 = load i32*, i32** %7
%47 = load i32, i32* %5
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i32 %47)
store i32 0, i32* %8
br label %49
49: ; preds = %67, %41
%50 = load i32, i32* %8
%51 = load i32, i32* %5
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %70
53: ; preds = %49
%54 = load i32, i32* %8
%55 = load i32, i32* %5
%56 = sub nsw i32 %55, 1
%57 = icmp eq i32 %54, %56
br i1 %57, label %58, label %62
58: ; preds = %53
%59 = load i32*, i32** %7
%60 = load i32, i32* %8
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %60)
br label %66
62: ; preds = %53
%63 = load i32*, i32** %7
%64 = load i32, i32* %8
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %64)
br label %66
66: ; preds = %62, %58
br label %67
67: ; preds = %66
%68 = load i32, i32* %8
%69 = add nsw i32 %68, 1
store i32 %69, i32* %8
br label %49
70: ; preds = %49
%71 = load i32*, i32** %7
%72 = load i32, i32* %5
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %71, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0), i32 %72)
store i32 0, i32* %8
br label %74
74: ; preds = %95, %70
%75 = load i32, i32* %8
%76 = load i32, i32* %5
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %98
78: ; preds = %74
%79 = load i32*, i32** %7
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%81 = load i32*, i32** %7
%82 = load i32, i32* %8
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %8
%85 = load i32, i32* %5
%86 = sub nsw i32 %85, 1
%87 = icmp eq i32 %84, %86
br i1 %87, label %88, label %91
88: ; preds = %78
%89 = load i32*, i32** %7
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
br label %94
91: ; preds = %78
%92 = load i32*, i32** %7
%93 = call i32 (i32*, i8*, ...) @fprintf(i32* %92, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %94
94: ; preds = %91, %88
br label %95
95: ; preds = %94
%96 = load i32, i32* %8
%97 = add nsw i32 %96, 1
store i32 %97, i32* %8
br label %74
98: ; preds = %74
%99 = load i32*, i32** %7
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %8
br label %101
101: ; preds = %109, %98
%102 = load i32, i32* %8
%103 = load i32, i32* %5
%104 = icmp slt i32 %102, %103
br i1 %104, label %105, label %112
105: ; preds = %101
%106 = load i32*, i32** %7
%107 = load i32, i32* %8
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %107)
br label %109
109: ; preds = %105
%110 = load i32, i32* %8
%111 = add nsw i32 %110, 1
store i32 %111, i32* %8
br label %101
112: ; preds = %101
store i32 0, i32* %8
br label %113
113: ; preds = %123, %112
%114 = load i32, i32* %8
%115 = load i32, i32* %5
%116 = icmp slt i32 %114, %115
br i1 %116, label %117, label %126
117: ; preds = %113
%118 = load i32*, i32** %7
%119 = load i32, i32* %8
%120 = call i32 (i32*, i8*, ...) @fprintf(i32* %118, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %119)
%121 = load i32*, i32** %7
%122 = call i32 (i32*, i8*, ...) @fprintf(i32* %121, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %123
123: ; preds = %117
%124 = load i32, i32* %8
%125 = add nsw i32 %124, 1
store i32 %125, i32* %8
br label %113
126: ; preds = %113
%127 = load i32*, i32** %7
%128 = call i32 (i32*, i8*, ...) @fprintf(i32* %127, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0))
%129 = load i32*, i32** %7
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %129, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
store i32 0, i32* %8
br label %131
131: ; preds = %165, %126
%132 = load i32, i32* %8
%133 = load i32, i32* %5
%134 = sub nsw i32 %133, 1
%135 = icmp slt i32 %132, %134
br i1 %135, label %136, label %168
136: ; preds = %131
%137 = load i32, i32* %8
%138 = add nsw i32 %137, 1
store i32 %138, i32* %9
br label %139
139: ; preds = %159, %136
%140 = load i32, i32* %9
%141 = load i32, i32* %5
%142 = icmp slt i32 %140, %141
br i1 %142, label %143, label %162
143: ; preds = %139
%144 = load i32, i32* %8
%145 = load i32, i32* %5
%146 = sub nsw i32 %145, 2
%147 = icmp eq i32 %144, %146
br i1 %147, label %148, label %153
148: ; preds = %143
%149 = load i32*, i32** %7
%150 = load i32, i32* %8
%151 = load i32, i32* %9
%152 = call i32 (i32*, i8*, ...) @fprintf(i32* %149, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 %150, i32 %151)
br label %158
153: ; preds = %143
%154 = load i32*, i32** %7
%155 = load i32, i32* %8
%156 = load i32, i32* %9
%157 = call i32 (i32*, i8*, ...) @fprintf(i32* %154, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %155, i32 %156)
br label %158
158: ; preds = %153, %148
br label %159
159: ; preds = %158
%160 = load i32, i32* %9
%161 = add nsw i32 %160, 1
store i32 %161, i32* %9
br label %139
162: ; preds = %139
%163 = load i32*, i32** %7
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %163, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %165
165: ; preds = %162
%166 = load i32, i32* %8
%167 = add nsw i32 %166, 1
store i32 %167, i32* %8
br label %131
168: ; preds = %131
%169 = load i32*, i32** %7
%170 = call i32 (i32*, i8*, ...) @fprintf(i32* %169, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
store i32 0, i32* %8
br label %171
171: ; preds = %208, %168
%172 = load i32, i32* %8
%173 = load i32, i32* %5
%174 = sub nsw i32 %173, 1
%175 = icmp slt i32 %172, %174
br i1 %175, label %176, label %211
176: ; preds = %171
%177 = load i32, i32* %8
%178 = add nsw i32 %177, 1
store i32 %178, i32* %9
br label %179
179: ; preds = %202, %176
%180 = load i32, i32* %9
%181 = load i32, i32* %5
%182 = icmp slt i32 %180, %181
br i1 %182, label %183, label %205
183: ; preds = %179
%184 = load i32*, i32** %7
%185 = load i32, i32* %8
%186 = call i32 (i32*, i8*, ...) @fprintf(i32* %184, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %185)
%187 = load i32*, i32** %7
%188 = call i32 (i32*, i8*, ...) @fprintf(i32* %187, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0))
%189 = load i32*, i32** %7
%190 = load i32, i32* %9
%191 = call i32 (i32*, i8*, ...) @fprintf(i32* %189, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %190)
%192 = load i32, i32* %8
%193 = load i32, i32* %5
%194 = sub nsw i32 %193, 2
%195 = icmp eq i32 %192, %194
br i1 %195, label %196, label %199
196: ; preds = %183
%197 = load i32*, i32** %7
%198 = call i32 (i32*, i8*, ...) @fprintf(i32* %197, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %199
199: ; preds = %196, %183
%200 = load i32*, i32** %7
%201 = call i32 (i32*, i8*, ...) @fprintf(i32* %200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
br label %202
202: ; preds = %199
%203 = load i32, i32* %9
%204 = add nsw i32 %203, 1
store i32 %204, i32* %9
br label %179
205: ; preds = %179
%206 = load i32*, i32** %7
%207 = call i32 (i32*, i8*, ...) @fprintf(i32* %206, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %208
208: ; preds = %205
%209 = load i32, i32* %8
%210 = add nsw i32 %209, 1
store i32 %210, i32* %8
br label %171
211: ; preds = %171
%212 = load i32*, i32** %7
%213 = call i32 (i32*, i8*, ...) @fprintf(i32* %212, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
store i32 0, i32* %8
br label %214
214: ; preds = %266, %211
%215 = load i32, i32* %8
%216 = load i32, i32* %5
%217 = icmp slt i32 %215, %216
br i1 %217, label %218, label %269
218: ; preds = %214
store i32 0, i32* %9
br label %219
219: ; preds = %260, %218
%220 = load i32, i32* %9
%221 = load i32, i32* %5
%222 = icmp slt i32 %220, %221
br i1 %222, label %223, label %263
223: ; preds = %219
%224 = load i32**, i32*** %6
%225 = load i32, i32* %9
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i32*, i32** %224, i64 %226
%228 = load i32*, i32** %227
%229 = load i32, i32* %8
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i32, i32* %228, i64 %230
%232 = load i32, i32* %231
%233 = icmp eq i32 %232, 0
br i1 %233, label %234, label %237
234: ; preds = %223
%235 = load i32*, i32** %7
%236 = call i32 (i32*, i8*, ...) @fprintf(i32* %235, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
br label %237
237: ; preds = %234, %223
%238 = load i32*, i32** %7
%239 = load i32, i32* %8
%240 = call i32 (i32*, i8*, ...) @fprintf(i32* %238, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), i32 %239)
%241 = load i32*, i32** %7
%242 = load i32, i32* %9
%243 = call i32 (i32*, i8*, ...) @fprintf(i32* %241, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %242)
%244 = load i32, i32* %8
%245 = load i32, i32* %5
%246 = sub nsw i32 %245, 1
%247 = icmp eq i32 %244, %246
br i1 %247, label %248, label %256
248: ; preds = %237
%249 = load i32, i32* %9
%250 = load i32, i32* %5
%251 = sub nsw i32 %250, 1
%252 = icmp eq i32 %249, %251
br i1 %252, label %253, label %256
253: ; preds = %248
%254 = load i32*, i32** %7
%255 = call i32 (i32*, i8*, ...) @fprintf(i32* %254, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0))
br label %259
256: ; preds = %248, %237
%257 = load i32*, i32** %7
%258 = call i32 (i32*, i8*, ...) @fprintf(i32* %257, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
br label %259
259: ; preds = %256, %253
br label %260
260: ; preds = %259
%261 = load i32, i32* %9
%262 = add nsw i32 %261, 1
store i32 %262, i32* %9
br label %219
263: ; preds = %219
%264 = load i32*, i32** %7
%265 = call i32 (i32*, i8*, ...) @fprintf(i32* %264, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %266
266: ; preds = %263
%267 = load i32, i32* %8
%268 = add nsw i32 %267, 1
store i32 %268, i32* %8
br label %214
269: ; preds = %214
%270 = load i32*, i32** %7
%271 = call i32 (i32*, i8*, ...) @fprintf(i32* %270, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%272 = load i32*, i32** %7
%273 = call i32 (i32*, i8*, ...) @fprintf(i32* %272, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.29, i64 0, i64 0))
store i32 0, i32* %8
br label %274
274: ; preds = %282, %269
%275 = load i32, i32* %8
%276 = load i32, i32* %5
%277 = icmp slt i32 %275, %276
br i1 %277, label %278, label %285
278: ; preds = %274
%279 = load i32*, i32** %7
%280 = load i32, i32* %8
%281 = call i32 (i32*, i8*, ...) @fprintf(i32* %279, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %280)
br label %282
282: ; preds = %278
%283 = load i32, i32* %8
%284 = add nsw i32 %283, 1
store i32 %284, i32* %8
br label %274
285: ; preds = %274
store i32 0, i32* %8
br label %286
286: ; preds = %296, %285
%287 = load i32, i32* %8
%288 = load i32, i32* %5
%289 = icmp slt i32 %287, %288
br i1 %289, label %290, label %299
290: ; preds = %286
%291 = load i32*, i32** %7
%292 = call i32 (i32*, i8*, ...) @fprintf(i32* %291, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%293 = load i32*, i32** %7
%294 = load i32, i32* %8
%295 = call i32 (i32*, i8*, ...) @fprintf(i32* %293, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %294)
br label %296
296: ; preds = %290
%297 = load i32, i32* %8
%298 = add nsw i32 %297, 1
store i32 %298, i32* %8
br label %286
299: ; preds = %286
%300 = load i32*, i32** %7
%301 = call i32 (i32*, i8*, ...) @fprintf(i32* %300, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0))
%302 = load i32, i32* %4
ret i32 %302
}

LLVM IR (-O2):
@.str = [32 x i8] c"Parameter Point: Set.\0AParameter\00"
@.str.1 = [5 x i8] c" p%d\00"
@.str.2 = [12 x i8] c": Point.\0A \0A\00"
@.str.3 = [31 x i8] c"Parameter Line: Set.\0AParameter\00"
@.str.5 = [4 x i8] c"l%d\00"
@.str.6 = [12 x i8] c" : Line.\0A \0A\00"
@.str.7 = [44 x i8] c"Parameter Incid : Point -> Line -> Prop.\0A \0A\00"
@.str.8 = [40 x i8] c"Axiom is_only_%d_pts : forall P:Point, \00"
@.str.9 = [8 x i8] c"{P=p%d}\00"
@.str.10 = [9 x i8] c"{P=p%d}+\00"
@.str.11 = [45 x i8] c".\0A \0AAxiom is_only_%d_lines : forall P:Line, \00"
@.str.12 = [4 x i8] c"{P=\00"
@.str.13 = [3 x i8] c"}.\00"
@.str.14 = [3 x i8] c"}+\00"
@.str.15 = [29 x i8] c"\0A \0ADefinition is_fano_plane \00"
@.str.16 = [5 x i8] c"p%d \00"
@.str.17 = [4 x i8] c":=\0A\00"
@.str.19 = [14 x i8] c"~p%d=p%d) /\\ \00"
@.str.20 = [13 x i8] c"~p%d=p%d /\\ \00"
@.str.22 = [3 x i8] c"<>\00"
@.str.24 = [5 x i8] c" /\\ \00"
@.str.26 = [11 x i8] c"Incid p%d \00"
@.str.27 = [3 x i8] c").\00"
@.str.28 = [3 x i8] c" \0A\00"
@.str.29 = [42 x i8] c"Axiom is_fano_plane_inst : is_fano_plane\00"
define i32 @get_in_coq_incidence(i32 %0, i32** nocapture %1, i32* %2) {
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i64 31, i64 1, i32* %2)
%5 = icmp sgt i32 %0, 0
br i1 %5, label %6, label %20
6: ; preds = %3, %6
%7 = phi i32 [ %9, %6 ], [ 0, %3 ]
%8 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = add nuw nsw i32 %7, 1
%10 = icmp eq i32 %9, %0
br i1 %10, label %11, label %6
11: ; preds = %6
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i64 11, i64 1, i32* %2)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i64 30, i64 1, i32* %2)
br i1 %5, label %14, label %27
14: ; preds = %11, %14
%15 = phi i32 [ %18, %14 ], [ 0, %11 ]
%16 = tail call i32 @fputc(i32 32, i32* %2)
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%18 = add nuw nsw i32 %15, 1
%19 = icmp eq i32 %18, %0
br i1 %19, label %23, label %14
20: ; preds = %3
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i64 11, i64 1, i32* %2)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i64 30, i64 1, i32* %2)
br label %23
23: ; preds = %14, %20
%24 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i64 11, i64 1, i32* %2)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), i64 43, i64 1, i32* %2)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i32 %0)
br i1 %5, label %33, label %31
27: ; preds = %11
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i64 11, i64 1, i32* %2)
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0), i64 43, i64 1, i32* %2)
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i32 %0)
br label %31
31: ; preds = %27, %23
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0), i32 %0)
br label %58
33: ; preds = %23
%34 = add nsw i32 %0, -1
br label %35
35: ; preds = %33, %42
%36 = phi i32 [ 0, %33 ], [ %43, %42 ]
%37 = icmp eq i32 %36, %34
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %34)
br label %42
40: ; preds = %35
%41 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %36)
br label %42
42: ; preds = %38, %40
%43 = add nuw nsw i32 %36, 1
%44 = icmp eq i32 %43, %0
br i1 %44, label %45, label %35
45: ; preds = %42
%46 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.11, i64 0, i64 0), i32 %0)
br i1 %5, label %47, label %58
47: ; preds = %45
%48 = add nsw i32 %0, -1
br label %49
49: ; preds = %47, %49
%50 = phi i32 [ 0, %47 ], [ %56, %49 ]
%51 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i64 3, i64 1, i32* %2)
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %50)
%53 = icmp eq i32 %50, %48
%54 = select i1 %53, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0)
%55 = tail call i64 @fwrite(i8* %54, i64 2, i64 1, i32* %2)
%56 = add nuw nsw i32 %50, 1
%57 = icmp eq i32 %56, %0
br i1 %57, label %60, label %49
58: ; preds = %31, %45
%59 = tail call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i64 28, i64 1, i32* %2)
br label %74
60: ; preds = %49
%61 = tail call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i64 28, i64 1, i32* %2)
br i1 %5, label %63, label %74
62: ; preds = %63
br i1 %5, label %68, label %74
63: ; preds = %60, %63
%64 = phi i32 [ %66, %63 ], [ 0, %60 ]
%65 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %64)
%66 = add nuw nsw i32 %64, 1
%67 = icmp eq i32 %66, %0
br i1 %67, label %62, label %63
68: ; preds = %62, %68
%69 = phi i32 [ %72, %68 ], [ 0, %62 ]
%70 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %69)
%71 = tail call i32 @fputc(i32 32, i32* %2)
%72 = add nuw nsw i32 %69, 1
%73 = icmp eq i32 %72, %0
br i1 %73, label %74, label %68
74: ; preds = %68, %60, %58, %62
%75 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i64 3, i64 1, i32* %2)
%76 = tail call i32 @fputc(i32 40, i32* %2)
%77 = add i32 %0, -1
%78 = icmp sgt i32 %0, 1
br i1 %78, label %81, label %79
79: ; preds = %74
%80 = tail call i32 @fputc(i32 40, i32* %2)
br label %125
81: ; preds = %74
%82 = add nsw i32 %0, -2
br label %83
83: ; preds = %81, %98
%84 = phi i32 [ 0, %81 ], [ %85, %98 ]
%85 = add nuw nsw i32 %84, 1
%86 = icmp slt i32 %85, %0
br i1 %86, label %87, label %98
87: ; preds = %83
%88 = icmp eq i32 %84, %82
br label %89
89: ; preds = %87, %95
%90 = phi i32 [ %85, %87 ], [ %96, %95 ]
br i1 %88, label %91, label %93
91: ; preds = %89
%92 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 %82, i32 %90)
br label %95
93: ; preds = %89
%94 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %84, i32 %90)
br label %95
95: ; preds = %91, %93
%96 = add nuw i32 %90, 1
%97 = icmp eq i32 %96, %0
br i1 %97, label %98, label %89
98: ; preds = %95, %83
%99 = tail call i32 @fputc(i32 10, i32* %2)
%100 = icmp eq i32 %85, %77
br i1 %100, label %101, label %83
101: ; preds = %98
%102 = tail call i32 @fputc(i32 40, i32* %2)
br i1 %78, label %103, label %125
103: ; preds = %101
%104 = add nsw i32 %0, -2
br label %105
105: ; preds = %103, %122
%106 = phi i32 [ 0, %103 ], [ %107, %122 ]
%107 = add nuw nsw i32 %106, 1
%108 = icmp slt i32 %107, %0
br i1 %108, label %109, label %122
109: ; preds = %105
%110 = icmp eq i32 %106, %104
br label %111
111: ; preds = %109, %118
%112 = phi i32 [ %107, %109 ], [ %120, %118 ]
%113 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %106)
%114 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i64 0, i64 0), i64 2, i64 1, i32* %2)
%115 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %112)
br i1 %110, label %116, label %118
116: ; preds = %111
%117 = tail call i32 @fputc(i32 41, i32* %2)
br label %118
118: ; preds = %116, %111
%119 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i64 4, i64 1, i32* %2)
%120 = add nuw i32 %112, 1
%121 = icmp eq i32 %120, %0
br i1 %121, label %122, label %111
122: ; preds = %118, %105
%123 = tail call i32 @fputc(i32 10, i32* %2)
%124 = icmp eq i32 %107, %77
br i1 %124, label %125, label %105
125: ; preds = %122, %79, %101
%126 = tail call i32 @fputc(i32 40, i32* %2)
br i1 %5, label %127, label %175
127: ; preds = %125
%128 = zext i32 %77 to i64
%129 = zext i32 %0 to i64
br label %130
130: ; preds = %156, %127
%131 = phi i64 [ 0, %127 ], [ %158, %156 ]
%132 = icmp eq i64 %131, %128
%133 = trunc i64 %131 to i32
br label %134
134: ; preds = %130, %153
%135 = phi i64 [ 0, %130 ], [ %154, %153 ]
%136 = getelementptr inbounds i32*, i32** %1, i64 %135
%137 = load i32*, i32** %136
%138 = getelementptr inbounds i32, i32* %137, i64 %131
%139 = load i32, i32* %138
%140 = icmp eq i32 %139, 0
br i1 %140, label %141, label %143
141: ; preds = %134
%142 = tail call i32 @fputc(i32 126, i32* %2)
br label %143
143: ; preds = %141, %134
%144 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), i32 %133)
%145 = trunc i64 %135 to i32
%146 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %145)
%147 = icmp eq i64 %135, %128
%148 = select i1 %132, i1 %147, i1 false
br i1 %148, label %149, label %151
149: ; preds = %143
%150 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i64 0, i64 0), i64 2, i64 1, i32* %2)
br label %153
151: ; preds = %143
%152 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i64 4, i64 1, i32* %2)
br label %153
153: ; preds = %149, %151
%154 = add nuw nsw i64 %135, 1
%155 = icmp eq i64 %154, %129
br i1 %155, label %156, label %134
156: ; preds = %153
%157 = tail call i32 @fputc(i32 10, i32* %2)
%158 = add nuw nsw i64 %131, 1
%159 = icmp eq i64 %158, %129
br i1 %159, label %160, label %130
160: ; preds = %156
%161 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), i64 2, i64 1, i32* %2)
%162 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.29, i64 0, i64 0), i64 41, i64 1, i32* %2)
br i1 %5, label %164, label %178
163: ; preds = %164
br i1 %5, label %169, label %178
164: ; preds = %160, %164
%165 = phi i32 [ %167, %164 ], [ 0, %160 ]
%166 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %165)
%167 = add nuw nsw i32 %165, 1
%168 = icmp eq i32 %167, %0
br i1 %168, label %163, label %164
169: ; preds = %163, %169
%170 = phi i32 [ %173, %169 ], [ 0, %163 ]
%171 = tail call i32 @fputc(i32 32, i32* %2)
%172 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %170)
%173 = add nuw nsw i32 %170, 1
%174 = icmp eq i32 %173, %0
br i1 %174, label %178, label %169
175: ; preds = %125
%176 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0), i64 2, i64 1, i32* %2)
%177 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.29, i64 0, i64 0), i64 41, i64 1, i32* %2)
br label %178
178: ; preds = %169, %175, %160, %163
%179 = tail call i32 @fputc(i32 46, i32* %2)
ret i32 undef
}