#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_inductive(int p, int **tab_inc, FILE *fichier_coq_inductive) {
  int i, j;
  fprintf(fichier_coq_inductive, "Inductive ind_Point : Set := ");
  for (i = 0; i < p; i++) {
    if (i == p - 1)
      fprintf(fichier_coq_inductive, "p%d.", i);
    else
      fprintf(fichier_coq_inductive, "p%d | ", i);
  }
  fprintf(fichier_coq_inductive, "\n \n");
  fprintf(fichier_coq_inductive, "Inductive ind_line : Set := ");
  for (i = 0; i < p; i++) {
    fprintf(fichier_coq_inductive, "l%d", i);
    if (i == p - 1)
      fprintf(fichier_coq_inductive, ".");
    else
      fprintf(fichier_coq_inductive, " | ");
  }
  fprintf(fichier_coq_inductive, "\n \n");
  fprintf(fichier_coq_inductive,
          "Definition Point : Set := ind_Point.\nDefinition Line : Set := "
          "ind_line.\n \nDefinition Incid_bool : Point -> Line -> bool := fun "
          "P l =>\n match P with\n");
  for (i = 0; i < p; i++) {
    fprintf(fichier_coq_inductive, "| p%d =>\n\tmatch l with\n\t", i);
    for (j = 0; j < p; j++) {
      if (tab_inc[j][i] == 1) {
        fprintf(fichier_coq_inductive, "| l%d", j);
      }
    }
    fprintf(fichier_coq_inductive, "=> true\n\t");
    fprintf(fichier_coq_inductive, "| _ => false\n\t");
    fprintf(fichier_coq_inductive, "end\n");
  }
  fprintf(fichier_coq_inductive, "end.\n");
  fprintf(fichier_coq_inductive, "Ltac solve_ex_p := first [\n");
  for (i = 0; i < p; i++) {
    if (i == 0)
      fprintf(fichier_coq_inductive, "\t\tsolve_ex p%d\n", i);
    else
      fprintf(fichier_coq_inductive, "\t|\tsolve_ex p%d\n", i);
  }
  fprintf(fichier_coq_inductive, "].\n");
  fprintf(fichier_coq_inductive, "Ltac solve_ex_l := first [\n");
  for (i = 0; i < p; i++) {
    if (i == 0)
      fprintf(fichier_coq_inductive, "\t\tsolve_ex l%d\n", i);
    else
      fprintf(fichier_coq_inductive, "\t|\tsolve_ex l%d\n", i);
  }
  fprintf(fichier_coq_inductive, "].\n");
}


x86 assembly (clang, -O0):
<get_in_coq_inductive>:
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    119b <get_in_coq_inductive+0x8b>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    1173 <get_in_coq_inductive+0x63>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xeb7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1188 <get_in_coq_inductive+0x78>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xea2(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    118d <get_in_coq_inductive+0x7d>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    113c <get_in_coq_inductive+0x2c>
mov    -0x18(%rbp),%rdi
lea    0xe84(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe76(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1234 <get_in_coq_inductive+0x124>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xf1b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    120f <get_in_coq_inductive+0xff>
mov    -0x18(%rbp),%rdi
lea    0xe1e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1221 <get_in_coq_inductive+0x111>
mov    -0x18(%rbp),%rdi
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1226 <get_in_coq_inductive+0x116>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11c6 <get_in_coq_inductive+0xb6>
mov    -0x18(%rbp),%rdi
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1319 <get_in_coq_inductive+0x209>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12d5 <get_in_coq_inductive+0x1c5>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x1c(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    12c2 <get_in_coq_inductive+0x1b2>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%edx
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    12c7 <get_in_coq_inductive+0x1b7>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1287 <get_in_coq_inductive+0x177>
mov    -0x18(%rbp),%rdi
lea    0xe1f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe17(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    125f <get_in_coq_inductive+0x14f>
mov    -0x18(%rbp),%rdi
lea    0xdf9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xded(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    139c <get_in_coq_inductive+0x28c>
cmpl   $0x0,-0x1c(%rbp)
jne    1374 <get_in_coq_inductive+0x264>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xdd7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1389 <get_in_coq_inductive+0x279>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xdcd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    138e <get_in_coq_inductive+0x27e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1344 <get_in_coq_inductive+0x234>
mov    -0x18(%rbp),%rdi
lea    0xdb9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdab(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    141f <get_in_coq_inductive+0x30f>
cmpl   $0x0,-0x1c(%rbp)
jne    13f7 <get_in_coq_inductive+0x2e7>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xd95(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    140c <get_in_coq_inductive+0x2fc>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xd8b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1411 <get_in_coq_inductive+0x301>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13c7 <get_in_coq_inductive+0x2b7>
mov    -0x18(%rbp),%rdi
lea    0xd36(%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_inductive>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xeb6(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
test   %ebp,%ebp
mov    %rbp,(%rsp)
jle    124b <get_in_coq_inductive+0x11b>
lea    -0x1(%rbp),%r13d
mov    %ebp,%r14d
neg    %r14d
lea    0xeaa(%rip),%r12
xor    %ebp,%ebp
jmp    1196 <get_in_coq_inductive+0x66>
nopl   (%rax)
mov    %r12,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebp
mov    %r14d,%eax
add    %ebp,%eax
je     11ae <get_in_coq_inductive+0x7e>
lea    (%r14,%rbp,1),%eax
mov    %r15,%rdi
cmp    $0xffffffff,%eax
jne    1180 <get_in_coq_inductive+0x50>
lea    0xe75(%rip),%rsi
mov    %r13d,%edx
jmp    1185 <get_in_coq_inductive+0x55>
lea    0xe75(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xe60(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
cmpl   $0x0,(%rsp)
jle    139c <get_in_coq_inductive+0x26c>
lea    0xf0a(%rip),%r12
xor    %ebp,%ebp
jmp    1223 <get_in_coq_inductive+0xf3>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xe15(%rip),%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
add    $0x1,%ebp
mov    %r14d,%eax
add    %ebp,%eax
je     127d <get_in_coq_inductive+0x14d>
lea    (%r14,%rbp,1),%r13d
mov    %r15,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    $0xffffffff,%r13d
jne    1200 <get_in_coq_inductive+0xd0>
mov    $0x2e,%edi
mov    %r15,%rsi
call   1030 <fputc@plt>
jmp    1219 <get_in_coq_inductive+0xe9>
lea    0xdd8(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xdc3(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xda6(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xdae(%rip),%rdi
mov    $0x94,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
mov    (%rsp),%rbp
test   %ebp,%ebp
jle    1365 <get_in_coq_inductive+0x235>
mov    %ebp,%r12d
lea    0xe34(%rip),%r13
xor    %ebp,%ebp
jmp    1328 <get_in_coq_inductive+0x1f8>
nopl   0x0(%rax)
mov    $0x9,%esi
mov    $0x1,%edx
lea    0xe1e(%rip),%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
mov    $0xe,%esi
mov    $0x1,%edx
lea    0xe0f(%rip),%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
mov    $0x4,%esi
mov    $0x1,%edx
lea    0xe05(%rip),%rdi
mov    %r15,%rcx
call   1050 <fwrite@plt>
add    $0x1,%rbp
cmp    %r12,%rbp
je     13ce <get_in_coq_inductive+0x29e>
mov    %r15,%rdi
lea    0xdae(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %r14d,%r14d
jmp    1349 <get_in_coq_inductive+0x219>
add    $0x1,%r14
cmp    %r14,%r12
je     12d0 <get_in_coq_inductive+0x1a0>
mov    (%rbx,%r14,8),%rax
cmpl   $0x1,(%rax,%rbp,4)
jne    1340 <get_in_coq_inductive+0x210>
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    1340 <get_in_coq_inductive+0x210>
lea    0xdb1(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xd9e(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
jmp    1446 <get_in_coq_inductive+0x316>
lea    0xc87(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xc8f(%rip),%rdi
mov    $0x94,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xd48(%rip),%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xd35(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
mov    (%rsp),%rbp
test   %ebp,%ebp
jle    14b8 <get_in_coq_inductive+0x388>
lea    0xd2c(%rip),%rsi
mov    %r15,%rdi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    $0x1,%ebp
je     1446 <get_in_coq_inductive+0x316>
mov    $0x1,%ebx
lea    0xd1f(%rip),%r14
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    1430 <get_in_coq_inductive+0x300>
lea    0xd13(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xcfe(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
test   %ebp,%ebp
jle    14ea <get_in_coq_inductive+0x3ba>
lea    0xcfd(%rip),%rsi
mov    %r15,%rdi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
cmp    $0x1,%ebp
je     14ea <get_in_coq_inductive+0x3ba>
mov    $0x1,%ebx
lea    0xcf0(%rip),%r14
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    14a0 <get_in_coq_inductive+0x370>
jmp    14ea <get_in_coq_inductive+0x3ba>
lea    0xca1(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xc8c(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1050 <fwrite@plt>
lea    0xc6f(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %r15,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Inductive ind_Point : Set := \00"
@.str.1 = [5 x i8] c"p%d.\00"
@.str.2 = [7 x i8] c"p%d | \00"
@.str.3 = [4 x i8] c"\0A \0A\00"
@.str.4 = [29 x i8] c"Inductive ind_line : Set := \00"
@.str.5 = [4 x i8] c"l%d\00"
@.str.6 = [2 x i8] c".\00"
@.str.7 = [4 x i8] c" | \00"
@.str.8 = [149 x i8] c"Definition Point : Set := ind_Point.\0ADefinition Line : Set := ind_line.\0A \0ADefinition Incid_bool : Point -> Line -> bool := fun P l =>\0A match P with\0A\00"
@.str.9 = [25 x i8] c"| p%d =>\0A\09match l with\0A\09\00"
@.str.10 = [6 x i8] c"| l%d\00"
@.str.11 = [10 x i8] c"=> true\0A\09\00"
@.str.12 = [15 x i8] c"| _ => false\0A\09\00"
@.str.13 = [5 x i8] c"end\0A\00"
@.str.14 = [6 x i8] c"end.\0A\00"
@.str.15 = [28 x i8] c"Ltac solve_ex_p := first [\0A\00"
@.str.16 = [16 x i8] c"\09\09solve_ex p%d\0A\00"
@.str.17 = [17 x i8] c"\09|\09solve_ex p%d\0A\00"
@.str.18 = [4 x i8] c"].\0A\00"
@.str.19 = [28 x i8] c"Ltac solve_ex_l := first [\0A\00"
@.str.20 = [16 x i8] c"\09\09solve_ex l%d\0A\00"
@.str.21 = [17 x i8] c"\09|\09solve_ex l%d\0A\00"
define i32 @get_in_coq_inductive(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 ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %8
br label %12
12: ; preds = %30, %3
%13 = load i32, i32* %8
%14 = load i32, i32* %5
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %33
16: ; preds = %12
%17 = load i32, i32* %8
%18 = load i32, i32* %5
%19 = sub nsw i32 %18, 1
%20 = icmp eq i32 %17, %19
br i1 %20, label %21, label %25
21: ; preds = %16
%22 = load i32*, i32** %7
%23 = load i32, i32* %8
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %23)
br label %29
25: ; preds = %16
%26 = load i32*, i32** %7
%27 = load i32, i32* %8
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %27)
br label %29
29: ; preds = %25, %21
br label %30
30: ; preds = %29
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 1
store i32 %32, i32* %8
br label %12
33: ; preds = %12
%34 = load i32*, i32** %7
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%36 = load i32*, i32** %7
%37 = call i32 (i32*, i8*, ...) @fprintf(i32* %36, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %8
br label %38
38: ; preds = %57, %33
%39 = load i32, i32* %8
%40 = load i32, i32* %5
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %60
42: ; preds = %38
%43 = load i32*, i32** %7
%44 = load i32, i32* %8
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %8
%47 = load i32, i32* %5
%48 = sub nsw i32 %47, 1
%49 = icmp eq i32 %46, %48
br i1 %49, label %50, label %53
50: ; preds = %42
%51 = load i32*, i32** %7
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %56
53: ; preds = %42
%54 = load i32*, i32** %7
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %54, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %56
56: ; preds = %53, %50
br label %57
57: ; preds = %56
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
store i32 %59, i32* %8
br label %38
60: ; preds = %38
%61 = load i32*, i32** %7
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%63 = load i32*, i32** %7
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %8
br label %65
65: ; preds = %103, %60
%66 = load i32, i32* %8
%67 = load i32, i32* %5
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %106
69: ; preds = %65
%70 = load i32*, i32** %7
%71 = load i32, i32* %8
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i32 %71)
store i32 0, i32* %9
br label %73
73: ; preds = %93, %69
%74 = load i32, i32* %9
%75 = load i32, i32* %5
%76 = icmp slt i32 %74, %75
br i1 %76, label %77, label %96
77: ; preds = %73
%78 = load i32**, i32*** %6
%79 = load i32, i32* %9
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32*, i32** %78, i64 %80
%82 = load i32*, i32** %81
%83 = load i32, i32* %8
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i32, i32* %82, i64 %84
%86 = load i32, i32* %85
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %92
88: ; preds = %77
%89 = load i32*, i32** %7
%90 = load i32, i32* %9
%91 = call i32 (i32*, i8*, ...) @fprintf(i32* %89, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %88, %77
br label %93
93: ; preds = %92
%94 = load i32, i32* %9
%95 = add nsw i32 %94, 1
store i32 %95, i32* %9
br label %73
96: ; preds = %73
%97 = load i32*, i32** %7
%98 = call i32 (i32*, i8*, ...) @fprintf(i32* %97, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%99 = load i32*, i32** %7
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%101 = load i32*, i32** %7
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %101, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
br label %103
103: ; preds = %96
%104 = load i32, i32* %8
%105 = add nsw i32 %104, 1
store i32 %105, i32* %8
br label %65
106: ; preds = %65
%107 = load i32*, i32** %7
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%109 = load i32*, i32** %7
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %109, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0))
store i32 0, i32* %8
br label %111
111: ; preds = %127, %106
%112 = load i32, i32* %8
%113 = load i32, i32* %5
%114 = icmp slt i32 %112, %113
br i1 %114, label %115, label %130
115: ; preds = %111
%116 = load i32, i32* %8
%117 = icmp eq i32 %116, 0
br i1 %117, label %118, label %122
118: ; preds = %115
%119 = load i32*, i32** %7
%120 = load i32, i32* %8
%121 = call i32 (i32*, i8*, ...) @fprintf(i32* %119, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 %120)
br label %126
122: ; preds = %115
%123 = load i32*, i32** %7
%124 = load i32, i32* %8
%125 = call i32 (i32*, i8*, ...) @fprintf(i32* %123, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), i32 %124)
br label %126
126: ; preds = %122, %118
br label %127
127: ; preds = %126
%128 = load i32, i32* %8
%129 = add nsw i32 %128, 1
store i32 %129, i32* %8
br label %111
130: ; preds = %111
%131 = load i32*, i32** %7
%132 = call i32 (i32*, i8*, ...) @fprintf(i32* %131, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%133 = load i32*, i32** %7
%134 = call i32 (i32*, i8*, ...) @fprintf(i32* %133, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
store i32 0, i32* %8
br label %135
135: ; preds = %151, %130
%136 = load i32, i32* %8
%137 = load i32, i32* %5
%138 = icmp slt i32 %136, %137
br i1 %138, label %139, label %154
139: ; preds = %135
%140 = load i32, i32* %8
%141 = icmp eq i32 %140, 0
br i1 %141, label %142, label %146
142: ; preds = %139
%143 = load i32*, i32** %7
%144 = load i32, i32* %8
%145 = call i32 (i32*, i8*, ...) @fprintf(i32* %143, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i32 %144)
br label %150
146: ; preds = %139
%147 = load i32*, i32** %7
%148 = load i32, i32* %8
%149 = call i32 (i32*, i8*, ...) @fprintf(i32* %147, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), i32 %148)
br label %150
150: ; preds = %146, %142
br label %151
151: ; preds = %150
%152 = load i32, i32* %8
%153 = add nsw i32 %152, 1
store i32 %153, i32* %8
br label %135
154: ; preds = %135
%155 = load i32*, i32** %7
%156 = call i32 (i32*, i8*, ...) @fprintf(i32* %155, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%157 = load i32, i32* %4
ret i32 %157
}

LLVM IR (-O2):
@.str = [30 x i8] c"Inductive ind_Point : Set := \00"
@.str.1 = [5 x i8] c"p%d.\00"
@.str.2 = [7 x i8] c"p%d | \00"
@.str.3 = [4 x i8] c"\0A \0A\00"
@.str.4 = [29 x i8] c"Inductive ind_line : Set := \00"
@.str.5 = [4 x i8] c"l%d\00"
@.str.7 = [4 x i8] c" | \00"
@.str.8 = [149 x i8] c"Definition Point : Set := ind_Point.\0ADefinition Line : Set := ind_line.\0A \0ADefinition Incid_bool : Point -> Line -> bool := fun P l =>\0A match P with\0A\00"
@.str.9 = [25 x i8] c"| p%d =>\0A\09match l with\0A\09\00"
@.str.10 = [6 x i8] c"| l%d\00"
@.str.11 = [10 x i8] c"=> true\0A\09\00"
@.str.12 = [15 x i8] c"| _ => false\0A\09\00"
@.str.13 = [5 x i8] c"end\0A\00"
@.str.14 = [6 x i8] c"end.\0A\00"
@.str.15 = [28 x i8] c"Ltac solve_ex_p := first [\0A\00"
@.str.16 = [16 x i8] c"\09\09solve_ex p%d\0A\00"
@.str.17 = [17 x i8] c"\09|\09solve_ex p%d\0A\00"
@.str.18 = [4 x i8] c"].\0A\00"
@.str.19 = [28 x i8] c"Ltac solve_ex_l := first [\0A\00"
@.str.20 = [16 x i8] c"\09\09solve_ex l%d\0A\00"
@.str.21 = [17 x i8] c"\09|\09solve_ex l%d\0A\00"
define i32 @get_in_coq_inductive(i32 %0, i32** nocapture %1, i32* %2) {
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i64 29, i64 1, i32* %2)
%5 = icmp sgt i32 %0, 0
br i1 %5, label %6, label %34
6: ; preds = %3
%7 = add nsw i32 %0, -1
br label %8
8: ; preds = %6, %15
%9 = phi i32 [ 0, %6 ], [ %16, %15 ]
%10 = icmp eq i32 %9, %7
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = 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)
br label %15
13: ; preds = %8
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %9)
br label %15
15: ; preds = %11, %13
%16 = add nuw nsw i32 %9, 1
%17 = icmp eq i32 %16, %0
br i1 %17, label %18, label %8
18: ; preds = %15
%19 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i64 3, i64 1, i32* %2)
%20 = tail call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i64 28, i64 1, i32* %2)
br i1 %5, label %21, label %65
21: ; preds = %18
%22 = add nsw i32 %0, -1
br label %23
23: ; preds = %21, %31
%24 = phi i32 [ 0, %21 ], [ %32, %31 ]
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %24)
%26 = icmp eq i32 %24, %22
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = tail call i32 @fputc(i32 46, i32* %2)
br label %31
29: ; preds = %23
%30 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i64 3, i64 1, i32* %2)
br label %31
31: ; preds = %27, %29
%32 = add nuw nsw i32 %24, 1
%33 = icmp eq i32 %32, %0
br i1 %33, label %37, label %23
34: ; preds = %3
%35 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i64 3, i64 1, i32* %2)
%36 = tail call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i64 28, i64 1, i32* %2)
br label %37
37: ; preds = %31, %34
%38 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i64 3, i64 1, i32* %2)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.8, i64 0, i64 0), i64 148, i64 1, i32* %2)
br i1 %5, label %40, label %79
40: ; preds = %37
%41 = zext i32 %0 to i64
br label %42
42: ; preds = %59, %40
%43 = phi i64 [ 0, %40 ], [ %63, %59 ]
%44 = trunc i64 %43 to i32
%45 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i32 %44)
br label %46
46: ; preds = %42, %56
%47 = phi i64 [ 0, %42 ], [ %57, %56 ]
%48 = getelementptr inbounds i32*, i32** %1, i64 %47
%49 = load i32*, i32** %48
%50 = getelementptr inbounds i32, i32* %49, i64 %43
%51 = load i32, i32* %50
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %56
53: ; preds = %46
%54 = trunc i64 %47 to i32
%55 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %46, %53
%57 = add nuw nsw i64 %47, 1
%58 = icmp eq i64 %57, %41
br i1 %58, label %59, label %46
59: ; preds = %56
%60 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i64 9, i64 1, i32* %2)
%61 = tail call i64 @fwrite(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i64 14, i64 1, i32* %2)
%62 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i64 4, i64 1, i32* %2)
%63 = add nuw nsw i64 %43, 1
%64 = icmp eq i64 %63, %41
br i1 %64, label %68, label %42
65: ; preds = %18
%66 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i64 3, i64 1, i32* %2)
%67 = tail call i64 @fwrite(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.8, i64 0, i64 0), i64 148, i64 1, i32* %2)
br label %68
68: ; preds = %59, %65
%69 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i64 5, i64 1, i32* %2)
%70 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i64 27, i64 1, i32* %2)
br i1 %5, label %71, label %93
71: ; preds = %68
%72 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 0)
%73 = icmp eq i32 %0, 1
br i1 %73, label %82, label %74
74: ; preds = %71, %74
%75 = phi i32 [ %77, %74 ], [ 1, %71 ]
%76 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.17, i64 0, i64 0), i32 %75)
%77 = add nuw nsw i32 %75, 1
%78 = icmp eq i32 %77, %0
br i1 %78, label %82, label %74
79: ; preds = %37
%80 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i64 5, i64 1, i32* %2)
%81 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i64 27, i64 1, i32* %2)
br label %82
82: ; preds = %74, %79, %71
%83 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i64 3, i64 1, i32* %2)
%84 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0), i64 27, i64 1, i32* %2)
br i1 %5, label %85, label %96
85: ; preds = %82
%86 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i32 0)
%87 = icmp eq i32 %0, 1
br i1 %87, label %96, label %88
88: ; preds = %85, %88
%89 = phi i32 [ %91, %88 ], [ 1, %85 ]
%90 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0), i32 %89)
%91 = add nuw nsw i32 %89, 1
%92 = icmp eq i32 %91, %0
br i1 %92, label %96, label %88
93: ; preds = %68
%94 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i64 3, i64 1, i32* %2)
%95 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0), i64 27, i64 1, i32* %2)
br label %96
96: ; preds = %88, %93, %85, %82
%97 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i64 3, i64 1, i32* %2)
ret i32 undef
}