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

/* Variables and functions */
int /*<<< orphan*/ free(int /*<<< orphan*/ ******);
void DestroyConstrntBnds(struct Constraint **Constraint) {
  struct Constraint **Array = Constraint;
  if (Constraint == NULL)
    return;
  while ((*Constraint) != NULL) {
    free(*Constraint);
    ++Constraint;
  }
  free(Array);
}


x86 assembly (clang, -O0):
<DestroyConstrntBnds>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1134 <DestroyConstrntBnds+0x24>
jmp    116d <DestroyConstrntBnds+0x5d>
jmp    1139 <DestroyConstrntBnds+0x29>
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
je     1164 <DestroyConstrntBnds+0x54>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
jmp    1139 <DestroyConstrntBnds+0x29>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DestroyConstrntBnds>:
test   %rdi,%rdi
je     1150 <DestroyConstrntBnds+0x40>
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1141 <DestroyConstrntBnds+0x31>
lea    0x8(%r14),%rbx
nopl   0x0(%rax,%rax,1)
call   1030 <free@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1130 <DestroyConstrntBnds+0x20>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>
ret

LLVM IR (-O0):
%struct.Constraint = type opaque
define void @DestroyConstrntBnds(%struct.Constraint** %0) {
%2 = alloca %struct.Constraint**
%3 = alloca %struct.Constraint**
store %struct.Constraint** %0, %struct.Constraint*** %2
%4 = load %struct.Constraint**, %struct.Constraint*** %2
store %struct.Constraint** %4, %struct.Constraint*** %3
%5 = load %struct.Constraint**, %struct.Constraint*** %2
%6 = icmp eq %struct.Constraint** %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
br label %24
8: ; preds = %1
br label %9
9: ; preds = %13, %8
%10 = load %struct.Constraint**, %struct.Constraint*** %2
%11 = load %struct.Constraint*, %struct.Constraint** %10
%12 = icmp ne %struct.Constraint* %11, null
br i1 %12, label %13, label %20
13: ; preds = %9
%14 = load %struct.Constraint**, %struct.Constraint*** %2
%15 = load %struct.Constraint*, %struct.Constraint** %14
%16 = bitcast %struct.Constraint* %15 to i32******
%17 = call i32 @free(i32****** %16)
%18 = load %struct.Constraint**, %struct.Constraint*** %2
%19 = getelementptr inbounds %struct.Constraint*, %struct.Constraint** %18, i32 1
store %struct.Constraint** %19, %struct.Constraint*** %2
br label %9
20: ; preds = %9
%21 = load %struct.Constraint**, %struct.Constraint*** %3
%22 = bitcast %struct.Constraint** %21 to i32******
%23 = call i32 @free(i32****** %22)
br label %24
24: ; preds = %20, %7
ret void
}

LLVM IR (-O2):
%struct.Constraint = type opaque
define void @DestroyConstrntBnds(%struct.Constraint** %0) {
%2 = icmp eq %struct.Constraint** %0, null
br i1 %2, label %17, label %3
3: ; preds = %1
%4 = load %struct.Constraint*, %struct.Constraint** %0
%5 = icmp eq %struct.Constraint* %4, null
br i1 %5, label %14, label %6
6: ; preds = %3, %6
%7 = phi %struct.Constraint* [ %12, %6 ], [ %4, %3 ]
%8 = phi %struct.Constraint** [ %11, %6 ], [ %0, %3 ]
%9 = bitcast %struct.Constraint* %7 to i32******
%10 = tail call i32 @free(i32****** %9)
%11 = getelementptr inbounds %struct.Constraint*, %struct.Constraint** %8, i64 1
%12 = load %struct.Constraint*, %struct.Constraint** %11
%13 = icmp eq %struct.Constraint* %12, null
br i1 %13, label %14, label %6
14: ; preds = %6, %3
%15 = bitcast %struct.Constraint** %0 to i32******
%16 = tail call i32 @free(i32****** %15)
br label %17
17: ; preds = %1, %14
ret void
}