#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 */

/* Variables and functions */
char *enleve(char *);
char *recupere1(char *);
char *recupere2(char *);
char *recupere3(char *);
scalar_t__ sdb_calloc(int, int);
scalar_t__ strcmp(char *, char *);
int verif_contrainte(char **nom_champs, char **champs, int nbre, char *contr) {
  char *arg1;
  char *comp;
  char *arg2;
  int compare[2];
  int i;
  arg1 = (char *)sdb_calloc(30, sizeof(char));
  arg2 = (char *)sdb_calloc(30, sizeof(char));
  comp = (char *)sdb_calloc(3, sizeof(char));
  arg1 = recupere1(contr);
  comp = recupere2(contr);
  arg2 = recupere3(contr);
  compare[0] = compare[1] = -1;
  for (i = 0; i < nbre; i++) {
    if (strcmp(nom_champs[i], arg1) == 0) {
      compare[0] = i;
    }
    if (strcmp(nom_champs[i], arg2) == 0) {
      compare[1] = i;
    }
  }
  if (compare[0] == -1) {
    return (-1);
  }
  if (compare[1] == -1) {
    arg2 = enleve(arg2);
    if (!arg2) {
      return (-1);
    }
    if (strcmp(comp, "=") == 0 && strcmp(champs[compare[0]], arg2) == 0) {
      return 1;
    }
    if (strcmp(comp, "<") == 0 && strcmp(champs[compare[0]], arg2) < 0) {
      return 1;
    }
    if (strcmp(comp, ">") == 0 && strcmp(champs[compare[0]], arg2) > 0) {
      return 1;
    }
    if (strcmp(comp, "<=") == 0 && strcmp(champs[compare[0]], arg2) <= 0) {
      return 1;
    }
    if (strcmp(comp, ">=") == 0 && strcmp(champs[compare[0]], arg2) >= 0) {
      return 1;
    }
  } else {
    if (strcmp(comp, "=") == 0 &&
        strcmp(champs[compare[0]], champs[compare[1]]) == 0) {
      return 1;
    }
    if (strcmp(comp, "<") == 0 &&
        strcmp(champs[compare[0]], champs[compare[1]]) < 0) {
      return 1;
    }
    if (strcmp(comp, ">") == 0 &&
        strcmp(champs[compare[0]], champs[compare[1]]) > 0) {
      return 1;
    }
    if (strcmp(comp, "<=") == 0 &&
        strcmp(champs[compare[0]], champs[compare[1]]) <= 0) {
      return 1;
    }
    if (strcmp(comp, ">=") == 0 &&
        strcmp(champs[compare[0]], champs[compare[1]]) >= 0) {
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<verif_contrainte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    $0x1e,%edi
mov    $0x1,%esi
call   1030 <sdb_calloc@plt>
mov    %rax,-0x30(%rbp)
mov    $0x1e,%edi
mov    $0x1,%esi
call   1030 <sdb_calloc@plt>
mov    %rax,-0x40(%rbp)
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <sdb_calloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <recupere1@plt>
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
call   1080 <recupere2@plt>
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
call   1050 <recupere3@plt>
mov    %rax,-0x40(%rbp)
movl   $0xffffffff,-0x44(%rbp)
movl   $0xffffffff,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1255 <verif_contrainte+0xf5>
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x30(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    121d <verif_contrainte+0xbd>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1242 <verif_contrainte+0xe2>
mov    -0x4c(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    1247 <verif_contrainte+0xe7>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11ec <verif_contrainte+0x8c>
cmpl   $0xffffffff,-0x48(%rbp)
jne    126b <verif_contrainte+0x10b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
cmpl   $0xffffffff,-0x44(%rbp)
jne    13f7 <verif_contrainte+0x297>
mov    -0x40(%rbp),%rdi
call   1060 <enleve@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    1299 <verif_contrainte+0x139>
movl   $0xffffffff,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xd61(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12de <verif_contrainte+0x17e>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12de <verif_contrainte+0x17e>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1323 <verif_contrainte+0x1c3>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jge    1323 <verif_contrainte+0x1c3>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xcd4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1368 <verif_contrainte+0x208>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jle    1368 <verif_contrainte+0x208>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xc91(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13ad <verif_contrainte+0x24d>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jg     13ad <verif_contrainte+0x24d>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xc4f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13f2 <verif_contrainte+0x292>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jl     13f2 <verif_contrainte+0x292>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
jmp    157d <verif_contrainte+0x41d>
mov    -0x38(%rbp),%rdi
lea    0xc03(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1444 <verif_contrainte+0x2e4>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1444 <verif_contrainte+0x2e4>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xbb1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1491 <verif_contrainte+0x331>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jge    1491 <verif_contrainte+0x331>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xb66(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    14de <verif_contrainte+0x37e>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jle    14de <verif_contrainte+0x37e>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xb1b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    152b <verif_contrainte+0x3cb>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jg     152b <verif_contrainte+0x3cb>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
mov    -0x38(%rbp),%rdi
lea    0xad1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1578 <verif_contrainte+0x418>
mov    -0x18(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jl     1578 <verif_contrainte+0x418>
movl   $0x1,-0x4(%rbp)
jmp    1584 <verif_contrainte+0x424>
jmp    157d <verif_contrainte+0x41d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verif_contrainte>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,%rbp
mov    %edx,%r14d
mov    %rsi,%r13
mov    %rdi,%r12
mov    $0x1e,%edi
mov    $0x1,%esi
call   1030 <sdb_calloc@plt>
mov    $0x1e,%edi
mov    $0x1,%esi
call   1030 <sdb_calloc@plt>
mov    $0x3,%edi
mov    $0x1,%esi
call   1030 <sdb_calloc@plt>
mov    %rbp,%rdi
call   1040 <recupere1@plt>
mov    %rax,%r15
mov    %rbp,%rdi
call   1080 <recupere2@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1050 <recupere3@plt>
test   %r14d,%r14d
jle    1342 <verif_contrainte+0x1e2>
mov    %rbx,(%rsp)
mov    %r13,0x8(%rsp)
mov    %r14d,%ecx
mov    %rcx,0x10(%rsp)
mov    $0xffffffff,%ebp
xor    %r13d,%r13d
mov    $0xffffffff,%ebx
mov    %rax,%r14
nop
mov    (%r12,%r13,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
cmove  %r13d,%ebp
mov    (%r12,%r13,8),%rdi
mov    %r14,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
cmove  %r13d,%ebx
add    $0x1,%r13
cmp    %r13,0x10(%rsp)
jne    11f0 <verif_contrainte+0x90>
mov    %r14,%rdi
mov    $0xffffffff,%r14d
cmp    $0xffffffff,%ebp
je     145a <verif_contrainte+0x2fa>
cmp    $0xffffffff,%ebx
je     134d <verif_contrainte+0x1ed>
lea    0xdc2(%rip),%rsi
mov    (%rsp),%r12
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
mov    0x8(%rsp),%r15
jne    1275 <verif_contrainte+0x115>
movslq %ebp,%rax
mov    (%r15,%rax,8),%rdi
movslq %ebx,%rax
mov    (%r15,%rax,8),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1454 <verif_contrainte+0x2f4>
lea    0xd84(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12ab <verif_contrainte+0x14b>
movslq %ebp,%rax
mov    (%r15,%rax,8),%rdi
movslq %ebx,%rax
mov    (%r15,%rax,8),%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
js     145a <verif_contrainte+0x2fa>
lea    0xd50(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12e1 <verif_contrainte+0x181>
movslq %ebp,%rax
mov    (%r15,%rax,8),%rdi
movslq %ebx,%rax
mov    (%r15,%rax,8),%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
jg     145a <verif_contrainte+0x2fa>
lea    0xd1c(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1317 <verif_contrainte+0x1b7>
movslq %ebp,%rax
mov    (%r15,%rax,8),%rdi
movslq %ebx,%rax
mov    (%r15,%rax,8),%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
jle    145a <verif_contrainte+0x2fa>
lea    0xce9(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    144f <verif_contrainte+0x2ef>
movslq %ebp,%rax
mov    (%r15,%rax,8),%rdi
movslq %ebx,%rax
mov    (%r15,%rax,8),%rsi
jmp    143f <verif_contrainte+0x2df>
mov    $0xffffffff,%r14d
jmp    145a <verif_contrainte+0x2fa>
call   1060 <enleve@plt>
test   %rax,%rax
mov    0x8(%rsp),%r12
mov    (%rsp),%rbx
je     145a <verif_contrainte+0x2fa>
mov    %rax,%r15
lea    0xc97(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1393 <verif_contrainte+0x233>
movslq %ebp,%rax
mov    (%r12,%rax,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1454 <verif_contrainte+0x2f4>
lea    0xc66(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    13c5 <verif_contrainte+0x265>
movslq %ebp,%rax
mov    (%r12,%rax,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
js     145a <verif_contrainte+0x2fa>
lea    0xc36(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    13f3 <verif_contrainte+0x293>
movslq %ebp,%rax
mov    (%r12,%rax,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
jg     145a <verif_contrainte+0x2fa>
lea    0xc0a(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1421 <verif_contrainte+0x2c1>
movslq %ebp,%rax
mov    (%r12,%rax,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
jle    145a <verif_contrainte+0x2fa>
lea    0xbdf(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    144f <verif_contrainte+0x2ef>
movslq %ebp,%rax
mov    (%r12,%rax,8),%rdi
mov    %r15,%rsi
call   1070 <strcmp@plt>
mov    $0x1,%r14d
test   %rax,%rax
jns    145a <verif_contrainte+0x2fa>
xor    %r14d,%r14d
jmp    145a <verif_contrainte+0x2fa>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"=\00"
@.str.1 = [2 x i8] c"<\00"
@.str.2 = [2 x i8] c">\00"
@.str.3 = [3 x i8] c"<=\00"
@.str.4 = [3 x i8] c">=\00"
define i32 @verif_contrainte(i8** %0, i8** %1, i32 %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca [2 x i32]
%14 = alloca i32
store i8** %0, i8*** %6
store i8** %1, i8*** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
%15 = call i64 @sdb_calloc(i32 30, i32 1)
%16 = inttoptr i64 %15 to i8*
store i8* %16, i8** %10
%17 = call i64 @sdb_calloc(i32 30, i32 1)
%18 = inttoptr i64 %17 to i8*
store i8* %18, i8** %12
%19 = call i64 @sdb_calloc(i32 3, i32 1)
%20 = inttoptr i64 %19 to i8*
store i8* %20, i8** %11
%21 = load i8*, i8** %9
%22 = call i8* @recupere1(i8* %21)
store i8* %22, i8** %10
%23 = load i8*, i8** %9
%24 = call i8* @recupere2(i8* %23)
store i8* %24, i8** %11
%25 = load i8*, i8** %9
%26 = call i8* @recupere3(i8* %25)
store i8* %26, i8** %12
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
store i32 -1, i32* %27
%28 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
store i32 -1, i32* %28
store i32 0, i32* %14
br label %29
29: ; preds = %58, %4
%30 = load i32, i32* %14
%31 = load i32, i32* %8
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %61
33: ; preds = %29
%34 = load i8**, i8*** %6
%35 = load i32, i32* %14
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %34, i64 %36
%38 = load i8*, i8** %37
%39 = load i8*, i8** %10
%40 = call i64 @strcmp(i8* %38, i8* %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %33
%43 = load i32, i32* %14
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
store i32 %43, i32* %44
br label %45
45: ; preds = %42, %33
%46 = load i8**, i8*** %6
%47 = load i32, i32* %14
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
%51 = load i8*, i8** %12
%52 = call i64 @strcmp(i8* %50, i8* %51)
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %45
%55 = load i32, i32* %14
%56 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
store i32 %55, i32* %56
br label %57
57: ; preds = %54, %45
br label %58
58: ; preds = %57
%59 = load i32, i32* %14
%60 = add nsw i32 %59, 1
store i32 %60, i32* %14
br label %29
61: ; preds = %29
%62 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%63 = load i32, i32* %62
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %66
65: ; preds = %61
store i32 -1, i32* %5
br label %254
66: ; preds = %61
%67 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
%68 = load i32, i32* %67
%69 = icmp eq i32 %68, -1
br i1 %69, label %70, label %152
70: ; preds = %66
%71 = load i8*, i8** %12
%72 = call i8* @enleve(i8* %71)
store i8* %72, i8** %12
%73 = load i8*, i8** %12
%74 = icmp ne i8* %73, null
br i1 %74, label %76, label %75
75: ; preds = %70
store i32 -1, i32* %5
br label %254
76: ; preds = %70
%77 = load i8*, i8** %11
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %91
80: ; preds = %76
%81 = load i8**, i8*** %7
%82 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%83 = load i32, i32* %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8*, i8** %81, i64 %84
%86 = load i8*, i8** %85
%87 = load i8*, i8** %12
%88 = call i64 @strcmp(i8* %86, i8* %87)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %80
store i32 1, i32* %5
br label %254
91: ; preds = %80, %76
%92 = load i8*, i8** %11
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %106
95: ; preds = %91
%96 = load i8**, i8*** %7
%97 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%98 = load i32, i32* %97
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i8*, i8** %96, i64 %99
%101 = load i8*, i8** %100
%102 = load i8*, i8** %12
%103 = call i64 @strcmp(i8* %101, i8* %102)
%104 = icmp slt i64 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %95
store i32 1, i32* %5
br label %254
106: ; preds = %95, %91
%107 = load i8*, i8** %11
%108 = call i64 @strcmp(i8* %107, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %121
110: ; preds = %106
%111 = load i8**, i8*** %7
%112 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%113 = load i32, i32* %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8*, i8** %111, i64 %114
%116 = load i8*, i8** %115
%117 = load i8*, i8** %12
%118 = call i64 @strcmp(i8* %116, i8* %117)
%119 = icmp sgt i64 %118, 0
br i1 %119, label %120, label %121
120: ; preds = %110
store i32 1, i32* %5
br label %254
121: ; preds = %110, %106
%122 = load i8*, i8** %11
%123 = call i64 @strcmp(i8* %122, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %125, label %136
125: ; preds = %121
%126 = load i8**, i8*** %7
%127 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%128 = load i32, i32* %127
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8*, i8** %126, i64 %129
%131 = load i8*, i8** %130
%132 = load i8*, i8** %12
%133 = call i64 @strcmp(i8* %131, i8* %132)
%134 = icmp sle i64 %133, 0
br i1 %134, label %135, label %136
135: ; preds = %125
store i32 1, i32* %5
br label %254
136: ; preds = %125, %121
%137 = load i8*, i8** %11
%138 = call i64 @strcmp(i8* %137, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%139 = icmp eq i64 %138, 0
br i1 %139, label %140, label %151
140: ; preds = %136
%141 = load i8**, i8*** %7
%142 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%143 = load i32, i32* %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds i8*, i8** %141, i64 %144
%146 = load i8*, i8** %145
%147 = load i8*, i8** %12
%148 = call i64 @strcmp(i8* %146, i8* %147)
%149 = icmp sge i64 %148, 0
br i1 %149, label %150, label %151
150: ; preds = %140
store i32 1, i32* %5
br label %254
151: ; preds = %140, %136
br label %253
152: ; preds = %66
%153 = load i8*, i8** %11
%154 = call i64 @strcmp(i8* %153, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%155 = icmp eq i64 %154, 0
br i1 %155, label %156, label %172
156: ; preds = %152
%157 = load i8**, i8*** %7
%158 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%159 = load i32, i32* %158
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds i8*, i8** %157, i64 %160
%162 = load i8*, i8** %161
%163 = load i8**, i8*** %7
%164 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
%165 = load i32, i32* %164
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i8*, i8** %163, i64 %166
%168 = load i8*, i8** %167
%169 = call i64 @strcmp(i8* %162, i8* %168)
%170 = icmp eq i64 %169, 0
br i1 %170, label %171, label %172
171: ; preds = %156
store i32 1, i32* %5
br label %254
172: ; preds = %156, %152
%173 = load i8*, i8** %11
%174 = call i64 @strcmp(i8* %173, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %192
176: ; preds = %172
%177 = load i8**, i8*** %7
%178 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%179 = load i32, i32* %178
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds i8*, i8** %177, i64 %180
%182 = load i8*, i8** %181
%183 = load i8**, i8*** %7
%184 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
%185 = load i32, i32* %184
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds i8*, i8** %183, i64 %186
%188 = load i8*, i8** %187
%189 = call i64 @strcmp(i8* %182, i8* %188)
%190 = icmp slt i64 %189, 0
br i1 %190, label %191, label %192
191: ; preds = %176
store i32 1, i32* %5
br label %254
192: ; preds = %176, %172
%193 = load i8*, i8** %11
%194 = call i64 @strcmp(i8* %193, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%195 = icmp eq i64 %194, 0
br i1 %195, label %196, label %212
196: ; preds = %192
%197 = load i8**, i8*** %7
%198 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%199 = load i32, i32* %198
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8*, i8** %197, i64 %200
%202 = load i8*, i8** %201
%203 = load i8**, i8*** %7
%204 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
%205 = load i32, i32* %204
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds i8*, i8** %203, i64 %206
%208 = load i8*, i8** %207
%209 = call i64 @strcmp(i8* %202, i8* %208)
%210 = icmp sgt i64 %209, 0
br i1 %210, label %211, label %212
211: ; preds = %196
store i32 1, i32* %5
br label %254
212: ; preds = %196, %192
%213 = load i8*, i8** %11
%214 = call i64 @strcmp(i8* %213, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%215 = icmp eq i64 %214, 0
br i1 %215, label %216, label %232
216: ; preds = %212
%217 = load i8**, i8*** %7
%218 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%219 = load i32, i32* %218
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i8*, i8** %217, i64 %220
%222 = load i8*, i8** %221
%223 = load i8**, i8*** %7
%224 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
%225 = load i32, i32* %224
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds i8*, i8** %223, i64 %226
%228 = load i8*, i8** %227
%229 = call i64 @strcmp(i8* %222, i8* %228)
%230 = icmp sle i64 %229, 0
br i1 %230, label %231, label %232
231: ; preds = %216
store i32 1, i32* %5
br label %254
232: ; preds = %216, %212
%233 = load i8*, i8** %11
%234 = call i64 @strcmp(i8* %233, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%235 = icmp eq i64 %234, 0
br i1 %235, label %236, label %252
236: ; preds = %232
%237 = load i8**, i8*** %7
%238 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 0
%239 = load i32, i32* %238
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds i8*, i8** %237, i64 %240
%242 = load i8*, i8** %241
%243 = load i8**, i8*** %7
%244 = getelementptr inbounds [2 x i32], [2 x i32]* %13, i64 0, i64 1
%245 = load i32, i32* %244
%246 = sext i32 %245 to i64
%247 = getelementptr inbounds i8*, i8** %243, i64 %246
%248 = load i8*, i8** %247
%249 = call i64 @strcmp(i8* %242, i8* %248)
%250 = icmp sge i64 %249, 0
br i1 %250, label %251, label %252
251: ; preds = %236
store i32 1, i32* %5
br label %254
252: ; preds = %236, %232
br label %253
253: ; preds = %252, %151
store i32 0, i32* %5
br label %254
254: ; preds = %253, %251, %231, %211, %191, %171, %150, %135, %120, %105, %90, %75, %65
%255 = load i32, i32* %5
ret i32 %255
}

LLVM IR (-O2):
@.str = [2 x i8] c"=\00"
@.str.1 = [2 x i8] c"<\00"
@.str.2 = [2 x i8] c">\00"
@.str.3 = [3 x i8] c"<=\00"
@.str.4 = [3 x i8] c">=\00"
define i32 @verif_contrainte(i8** nocapture %0, i8** nocapture %1, i32 %2, i8* %3) {
%5 = tail call i64 @sdb_calloc(i32 30, i32 1)
%6 = tail call i64 @sdb_calloc(i32 30, i32 1)
%7 = tail call i64 @sdb_calloc(i32 3, i32 1)
%8 = tail call i8* @recupere1(i8* %3)
%9 = tail call i8* @recupere2(i8* %3)
%10 = tail call i8* @recupere3(i8* %3)
%11 = icmp sgt i32 %2, 0
br i1 %11, label %12, label %143
12: ; preds = %4
%13 = zext i32 %2 to i64
br label %14
14: ; preds = %12, %14
%15 = phi i64 [ 0, %12 ], [ %28, %14 ]
%16 = phi i32 [ -1, %12 ], [ %23, %14 ]
%17 = phi i32 [ -1, %12 ], [ %27, %14 ]
%18 = getelementptr inbounds i8*, i8** %0, i64 %15
%19 = load i8*, i8** %18
%20 = tail call i64 @strcmp(i8* %19, i8* %8)
%21 = icmp eq i64 %20, 0
%22 = trunc i64 %15 to i32
%23 = select i1 %21, i32 %22, i32 %16
%24 = load i8*, i8** %18
%25 = tail call i64 @strcmp(i8* %24, i8* %10)
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i32 %22, i32 %17
%28 = add nuw nsw i64 %15, 1
%29 = icmp eq i64 %28, %13
br i1 %29, label %30, label %14
30: ; preds = %14
%31 = icmp eq i32 %23, -1
br i1 %31, label %143, label %32
32: ; preds = %30
%33 = icmp eq i32 %27, -1
br i1 %33, label %34, label %82
34: ; preds = %32
%35 = tail call i8* @enleve(i8* %10)
%36 = icmp eq i8* %35, null
br i1 %36, label %143, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %37
%41 = sext i32 %23 to i64
%42 = getelementptr inbounds i8*, i8** %1, i64 %41
%43 = load i8*, i8** %42
%44 = tail call i64 @strcmp(i8* %43, i8* %35)
%45 = icmp eq i64 %44, 0
br i1 %45, label %143, label %46
46: ; preds = %40, %37
%47 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %55
49: ; preds = %46
%50 = sext i32 %23 to i64
%51 = getelementptr inbounds i8*, i8** %1, i64 %50
%52 = load i8*, i8** %51
%53 = tail call i64 @strcmp(i8* %52, i8* %35)
%54 = icmp slt i64 %53, 0
br i1 %54, label %143, label %55
55: ; preds = %49, %46
%56 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %64
58: ; preds = %55
%59 = sext i32 %23 to i64
%60 = getelementptr inbounds i8*, i8** %1, i64 %59
%61 = load i8*, i8** %60
%62 = tail call i64 @strcmp(i8* %61, i8* %35)
%63 = icmp sgt i64 %62, 0
br i1 %63, label %143, label %64
64: ; preds = %58, %55
%65 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %73
67: ; preds = %64
%68 = sext i32 %23 to i64
%69 = getelementptr inbounds i8*, i8** %1, i64 %68
%70 = load i8*, i8** %69
%71 = tail call i64 @strcmp(i8* %70, i8* %35)
%72 = icmp slt i64 %71, 1
br i1 %72, label %143, label %73
73: ; preds = %67, %64
%74 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %142
76: ; preds = %73
%77 = sext i32 %23 to i64
%78 = getelementptr inbounds i8*, i8** %1, i64 %77
%79 = load i8*, i8** %78
%80 = tail call i64 @strcmp(i8* %79, i8* %35)
%81 = icmp sgt i64 %80, -1
br i1 %81, label %143, label %142
82: ; preds = %32
%83 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %94
85: ; preds = %82
%86 = sext i32 %23 to i64
%87 = getelementptr inbounds i8*, i8** %1, i64 %86
%88 = load i8*, i8** %87
%89 = sext i32 %27 to i64
%90 = getelementptr inbounds i8*, i8** %1, i64 %89
%91 = load i8*, i8** %90
%92 = tail call i64 @strcmp(i8* %88, i8* %91)
%93 = icmp eq i64 %92, 0
br i1 %93, label %143, label %94
94: ; preds = %85, %82
%95 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %106
97: ; preds = %94
%98 = sext i32 %23 to i64
%99 = getelementptr inbounds i8*, i8** %1, i64 %98
%100 = load i8*, i8** %99
%101 = sext i32 %27 to i64
%102 = getelementptr inbounds i8*, i8** %1, i64 %101
%103 = load i8*, i8** %102
%104 = tail call i64 @strcmp(i8* %100, i8* %103)
%105 = icmp slt i64 %104, 0
br i1 %105, label %143, label %106
106: ; preds = %97, %94
%107 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %118
109: ; preds = %106
%110 = sext i32 %23 to i64
%111 = getelementptr inbounds i8*, i8** %1, i64 %110
%112 = load i8*, i8** %111
%113 = sext i32 %27 to i64
%114 = getelementptr inbounds i8*, i8** %1, i64 %113
%115 = load i8*, i8** %114
%116 = tail call i64 @strcmp(i8* %112, i8* %115)
%117 = icmp sgt i64 %116, 0
br i1 %117, label %143, label %118
118: ; preds = %109, %106
%119 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %130
121: ; preds = %118
%122 = sext i32 %23 to i64
%123 = getelementptr inbounds i8*, i8** %1, i64 %122
%124 = load i8*, i8** %123
%125 = sext i32 %27 to i64
%126 = getelementptr inbounds i8*, i8** %1, i64 %125
%127 = load i8*, i8** %126
%128 = tail call i64 @strcmp(i8* %124, i8* %127)
%129 = icmp slt i64 %128, 1
br i1 %129, label %143, label %130
130: ; preds = %121, %118
%131 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %142
133: ; preds = %130
%134 = sext i32 %23 to i64
%135 = getelementptr inbounds i8*, i8** %1, i64 %134
%136 = load i8*, i8** %135
%137 = sext i32 %27 to i64
%138 = getelementptr inbounds i8*, i8** %1, i64 %137
%139 = load i8*, i8** %138
%140 = tail call i64 @strcmp(i8* %136, i8* %139)
%141 = icmp sgt i64 %140, -1
br i1 %141, label %143, label %142
142: ; preds = %130, %133, %73, %76
br label %143
143: ; preds = %4, %133, %121, %109, %97, %85, %76, %67, %58, %49, %40, %34, %30, %142
%144 = phi i32 [ 0, %142 ], [ -1, %30 ], [ -1, %34 ], [ 1, %40 ], [ 1, %49 ], [ 1, %58 ], [ 1, %67 ], [ 1, %76 ], [ 1, %85 ], [ 1, %97 ], [ 1, %109 ], [ 1, %121 ], [ 1, %133 ], [ -1, %4 ]
ret i32 %144
}