// File: /workspace/github_cpp_makefile_star2_O3/canzarlab[P]Trajan/geno/augmentedLagrangian.cpp
// Function: AugmentedNLP::computeConstraintError()
void computeConstraintError()
  {
    _constraintError = _constraintValues;

    // for equality constraints
    _constraintError.head(_mEqualities) -= _cl.head(_mEqualities);

    for (size_t i = 0; i < _mInequalities; ++i)
    {
      if (_cType[i+_mEqualities] == 2)
      {
	// lower bound not -INF
	_constraintError(i+_mEqualities) -= _cl(i+_mEqualities);
      }
      if (_cType[i+_mEqualities] == 3)
      {
	// lower bound not -INF and upper not INF
	double err = std::max(_constraintError(i+_mEqualities) - _cu(i + _mEqualities), 0.0);
	err = std::min(_constraintError(i+_mEqualities) - _cl(i+_mEqualities), err);
	_constraintError(i+_mEqualities) = err;
	//	std::cout << "c = " << _constraintError(i+_mEqualities) << std::endl;
	//	std::cout << "e = " << err << std::endl;
	//	std::cout << "lb= " << _cl(i+_mEqualities) << std::endl;
	//	std::cout << "ub= " << _cu(i+_mEqualities) << std::endl;
      }
      if (_cType[i+_mEqualities] == 4)
      {
	// upper bound not INF
	_constraintError(i+_mEqualities) -= _cu(i+_mEqualities);
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x90(%rdi), %r15
movq 0x30(%rdi), %r12
movq 0x38(%rdi), %r14
cmpq %r14, 0x98(%rdi)
je 0xfbe4
testq %r14, %r14
js 0xfe43
movl $0x1, %ecx
movq %r15, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0xff4c
cmpq %r14, 0x98(%rbx)
jne 0xfe62
movq (%r15), %rax
movq %r14, %rcx
shrq $0x3f, %rcx
addq %r14, %rcx
andq $-0x2, %rcx
cmpq $0x2, %r14
jl 0xfc11
xorl %edx, %edx
movapd (%r12,%rdx,8), %xmm0
movapd %xmm0, (%rax,%rdx,8)
addq $0x2, %rdx
cmpq %rcx, %rdx
jl 0xfbfd
cmpq %r14, %rcx
jge 0xfc29
movsd (%r12,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %r14
jne 0xfc16
movq 0x20(%rbx), %rax
movq 0x58(%rbx), %rcx
testq %rcx, %rcx
sete %dl
testq %rax, %rax
setns %sil
orb %dl, %sil
je 0xfe24
testq %rax, %rax
js 0xfe05
cmpq %rax, 0x60(%rbx)
jl 0xfe05
cmpq %rax, 0x98(%rbx)
jl 0xfe05
movq 0x90(%rbx), %rdx
movq %rax, %rdi
testb $0x7, %dl
jne 0xfc85
movl %edx, %edi
shrl $0x3, %edi
andl $0x1, %edi
cmpq %rax, %rdi
cmovaeq %rax, %rdi
movq %rax, %r8
subq %rdi, %r8
movq %r8, %rsi
shrq $0x3f, %rsi
addq %r8, %rsi
andq $-0x2, %rsi
testq %rdi, %rdi
je 0xfcbb
xorl %r9d, %r9d
movsd (%rdx,%r9,8), %xmm0
subsd (%rcx,%r9,8), %xmm0
movsd %xmm0, (%rdx,%r9,8)
incq %r9
cmpq %r9, %rdi
jne 0xfca1
addq %rdi, %rsi
cmpq $0x2, %r8
jl 0xfce0
movupd (%rcx,%rdi,8), %xmm0
movapd (%rdx,%rdi,8), %xmm1
subpd %xmm0, %xmm1
movapd %xmm1, (%rdx,%rdi,8)
addq $0x2, %rdi
cmpq %rsi, %rdi
jl 0xfcc4
cmpq %rax, %rsi
jge 0xfcfc
movsd (%rdx,%rsi,8), %xmm0
subsd (%rcx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rax
jne 0xfce5
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0xfddd
movq 0x20(%rbx), %rcx
movq 0x58(%rbx), %rdx
movq 0x78(%rbx), %rsi
movq 0x98(%rbx), %rdi
movq 0x68(%rbx), %r8
movq 0x90(%rbx), %r9
movq 0x70(%rbx), %r10
movq 0x60(%rbx), %r11
movl (%rsi,%rcx,4), %ebp
cmpl $0x4, %ebp
je 0xfdaf
cmpl $0x3, %ebp
je 0xfd6e
cmpl $0x2, %ebp
jne 0xfdd1
testq %rcx, %rcx
js 0xfde6
cmpq %rcx, 0x60(%rbx)
jle 0xfde6
cmpq %rcx, %rdi
jle 0xfde6
movsd (%r9,%rcx,8), %xmm0
subsd (%rdx,%rcx,8), %xmm0
jmp 0xfdcb
testq %rcx, %rcx
js 0xfde6
cmpq %rcx, 0x98(%rbx)
jle 0xfde6
cmpq %rcx, %r10
jle 0xfde6
cmpq %rcx, %r11
jle 0xfde6
movsd (%r9,%rcx,8), %xmm0
movapd %xmm0, %xmm1
subsd (%r8,%rcx,8), %xmm1
xorpd %xmm2, %xmm2
maxsd %xmm1, %xmm2
subsd (%rdx,%rcx,8), %xmm0
minsd %xmm0, %xmm2
movsd %xmm2, (%r9,%rcx,8)
jmp 0xfdd1
testq %rcx, %rcx
js 0xfde6
cmpq %rcx, 0x70(%rbx)
jle 0xfde6
cmpq %rcx, %rdi
jle 0xfde6
movsd (%r9,%rcx,8), %xmm0
subsd (%r8,%rcx,8), %xmm0
movsd %xmm0, (%r9,%rcx,8)
incq %rcx
decq %rax
jne 0xfd2f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4d458(%rip), %rdi     # 0x5d245
leaq 0x4d46e(%rip), %rsi     # 0x5d262
leaq 0x4d48a(%rip), %rcx     # 0x5d285
movl $0x1a9, %edx            # imm = 0x1A9
callq 0x9200
leaq 0x4c9df(%rip), %rdi     # 0x5c7eb
leaq 0x4c903(%rip), %rsi     # 0x5c716
leaq 0x4c915(%rip), %rcx     # 0x5c72f
movl $0x93, %edx
callq 0x9200
leaq 0x4ca4f(%rip), %rdi     # 0x5c87a
leaq 0x4caf2(%rip), %rsi     # 0x5c924
leaq 0x4cb06(%rip), %rcx     # 0x5c93f
movl $0xaf, %edx
callq 0x9200
leaq 0x4d02e(%rip), %rdi     # 0x5ce78
leaq 0x4ce86(%rip), %rsi     # 0x5ccd7
leaq 0x4d1af(%rip), %rcx     # 0x5d007
movl $0x11d, %edx            # imm = 0x11D
callq 0x9200
leaq 0x4d217(%rip), %rdi     # 0x5d080
leaq 0x4c6c9(%rip), %rsi     # 0x5c539
leaq 0x4d495(%rip), %rcx     # 0x5d30c
movl $0x2d1, %edx            # imm = 0x2D1
callq 0x9200
nop