// File: /workspace/github_cpp_makefile_star2_O3/biotomas[P]ipasir/sat/picosat961/picosat-961/picosat.c
// Function: picosat_add
int
picosat_add (PS * ps, int int_lit)
{
  int res = ps->oadded;
  Lit *lit;

  if (ps->measurealltimeinlib)
    enter (ps);
  else
    check_ready (ps);

  ABORTIF (ps->rup && ps->rupstarted && ps->oadded >= (unsigned)ps->rupclauses,
           "API usage: adding too many clauses after RUP header written");
#ifndef NADC
  ABORTIF (ps->addingtoado, 
           "API usage: 'picosat_add' and 'picosat_add_ado_lit' mixed");
#endif
  if (ps->state != READY)
    reset_incremental_usage (ps);

  if (ps->saveorig)
    {
      if (ps->sohead == ps->eoso)
	ENLARGE (ps->soclauses, ps->sohead, ps->eoso);

      *ps->sohead++ = int_lit;
    }

  if (int_lit)
    {
      lit = import_lit (ps, int_lit, 1);
      add_lit (ps, lit);
    }
  else
    simplify_and_add_original_clause (ps);

  if (ps->measurealltimeinlib)
    leave (ps);

  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movl 0x438(%rdi), %r14d
cmpl $0x0, 0x35c(%rdi)
je 0x6e34
movq %rdi, %rbx
callq 0x3eb1
jmp 0x6e3c
movq %rdi, %rbx
callq 0x441c
cmpq $0x0, 0x230(%rbx)
movq %rbx, %rdi
je 0x6e64
cmpl $0x0, 0x238(%rdi)
je 0x6e64
movl 0x438(%rdi), %eax
cmpl 0x240(%rdi), %eax
jae 0x74a5
cmpl $0x1, (%rdi)
movq %rdi, (%rsp)
je 0x6e76
callq 0x4601
movq (%rsp), %rdi
cmpl $0x0, 0x228(%rdi)
je 0x6ef9
movq 0x218(%rdi), %rax
cmpq 0x220(%rdi), %rax
jne 0x6eec
movq 0x210(%rdi), %rsi
cmpq %rax, %rsi
ja 0x74aa
subq %rsi, %rax
movq %rax, %rcx
shrq %rcx
movl %ecx, %ecx
movabsq $0x3fffffffc, %r15      # imm = 0x3FFFFFFFC
andq %rax, %r15
movl $0x1, %ebx
cmovneq %rcx, %rbx
leaq (,%rbx,4), %rcx
movq %r15, %rdx
callq 0x473a
movq (%rsp), %rdi
movq %rax, 0x210(%rdi)
addq %rax, %r15
leaq (%rax,%rbx,4), %rax
movq %rax, 0x220(%rdi)
movq %r15, %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x218(%rdi)
movl %ebp, (%rax)
testl %ebp, %ebp
je 0x6f1e
movl %ebp, %esi
movl $0x1, %edx
callq 0x74e8
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x7585
movq (%rsp), %rdi
jmp 0x7454
movl %r14d, 0xc(%rsp)
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jne 0x749c
movq 0x258(%rdi), %r13
movq 0x260(%rdi), %rcx
subq %r13, %rcx
shrq $0x3, %rcx
leal -0x1(%rcx), %eax
movq %rax, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
cmpl $0xc, %ecx
jge 0x70b4
movq 0x18(%rsp), %r10
cmpl $0x2, %r10d
movq 0x10(%rsp), %r9
jl 0x6fef
movl %r9d, %eax
incq %rax
movq -0x10(%r13,%rax,8), %rcx
movq -0x8(%r13,%rax,8), %rdx
movl %ecx, %esi
subl %edx, %esi
testl %esi, %esi
jle 0x6f94
movq %rcx, -0x8(%r13,%rax,8)
movq %rdx, -0x10(%r13,%rax,8)
decq %rax
cmpq $0x1, %rax
jg 0x6f78
cmpl $0x2, %r10d
je 0x6fef
andl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
leaq 0x10(%r13), %rax
movl $0x2, %ecx
movq -0x8(%r13,%rcx,8), %rsi
movq (%r13,%rcx,8), %rdx
cmpl %esi, %edx
js 0x6fce
leaq (,%rcx,8), %r8
addq %r13, %r8
jmp 0x6fe0
movq %rax, %r8
movq %rsi, (%r8)
movq -0x10(%r8), %rsi
addq $-0x8, %r8
cmpl %esi, %edx
js 0x6fd1
movq %rdx, (%r8)
incq %rcx
addq $0x8, %rax
cmpq %r10, %rcx
jne 0x6fb3
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jne 0x749c
xorl %eax, %eax
testl %r9d, %r9d
cmovlel %eax, %r9d
shlq $0x3, %r9
cmpq %rax, %r9
je 0x7033
movl (%r13,%rax), %ecx
subl 0x8(%r13,%rax), %ecx
addq $0x8, %rax
testl %ecx, %ecx
jle 0x7010
leaq 0xe1b9(%rip), %rdi      # 0x151e7
jmp 0x7484
movq 0x258(%rdi), %rax
movq 0x260(%rdi), %r8
cmpq %r8, %rax
jae 0x733c
xorl %edx, %edx
movq %rax, %rcx
movl 0xc(%rsp), %r14d
movq (%rax), %rsi
cmpq %rsi, %rdx
je 0x70a6
movq 0x38(%rdi), %r11
movq %rsi, %r8
subq %r11, %r8
cmpb $0x1, (%rsi)
jne 0x7085
movq 0x40(%rdi), %r9
movl %r8d, %r10d
shrl %r10d
shlq $0x4, %r10
cmpl $0x0, 0x4(%r9,%r10)
je 0x73ba
xorq $0x1, %r8
addq %r8, %r11
cmpq %r11, %rdx
je 0x73ba
movq %rsi, (%rcx)
addq $0x8, %rcx
movq 0x260(%rdi), %r8
movq %rsi, %rdx
addq $0x8, %rax
cmpq %r8, %rax
jb 0x7054
jmp 0x7344
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movl %eax, %r12d
leal (%rbx,%r12), %eax
movl %eax, %edx
shrl $0x1f, %edx
addl %eax, %edx
sarl %edx
movslq %r12d, %rcx
movq -0x8(%r13,%rcx,8), %rax
movslq %edx, %rdx
movq (%r13,%rdx,8), %rsi
movq %rsi, -0x8(%r13,%rcx,8)
movq %rax, (%r13,%rdx,8)
movslq %ebx, %rdx
movq (%r13,%rdx,8), %rdi
movq -0x8(%r13,%rcx,8), %rsi
movl %edi, %eax
subl %esi, %eax
testl %eax, %eax
jle 0x7109
movq %rdi, -0x8(%r13,%rcx,8)
movq %rsi, (%r13,%rdx,8)
movq %rsi, %rdi
jmp 0x710c
movq %rdi, %rsi
movq (%r13,%rcx,8), %rax
subl %eax, %edi
testl %edi, %edi
jle 0x7126
movq %rsi, (%r13,%rcx,8)
movq %rax, (%r13,%rdx,8)
movq (%r13,%rcx,8), %rax
movq -0x8(%r13,%rcx,8), %rdx
movl %edx, %esi
subl %eax, %esi
testl %esi, %esi
jle 0x713f
movq %rdx, (%r13,%rcx,8)
movq %rax, -0x8(%r13,%rcx,8)
jmp 0x7142
movq %rdx, %rax
leal -0x1(%r12), %edi
leal 0x2(%rbx), %ecx
movslq %ecx, %r8
movl %edi, %r9d
movl %ebx, %ecx
movslq %ecx, %r11
leaq (,%r11,8), %rdx
addq %r13, %rdx
xorl %esi, %esi
movq 0x8(%rdx,%rsi,8), %r10
incq %rsi
cmpl %eax, %r10d
js 0x7162
movslq %r9d, %r9
addq %rsi, %r11
movq %r9, %r15
movq -0x8(%r13,%r9,8), %r14
decq %r9
cmpq %r15, %r8
je 0x7192
movl %eax, %ebp
subl %r14d, %ebp
andl $0x80000000, %ebp       # imm = 0x80000000
jne 0x7175
cmpq %r9, %r11
jge 0x71a7
movl %ecx, %ecx
addq %rsi, %rcx
movq %r10, (%r13,%r9,8)
movq %r14, (%rdx,%rsi,8)
jmp 0x7152
movslq %edi, %rax
leal (%rcx,%rsi), %edi
decl %edi
movq (%r13,%rax,8), %r8
movq %r10, (%r13,%rax,8)
leal (%rcx,%rsi), %eax
subl %ebx, %eax
movl %r12d, %r9d
subl %ecx, %r9d
subl %esi, %r9d
cmpl %r9d, %eax
leal 0x1(%rcx,%rsi), %eax
movl %edi, %r14d
cmovll %r12d, %r14d
movl %ebx, %ebp
cmovll %eax, %ebp
cmovll %edi, %r12d
movq %r8, (%rdx,%rsi,8)
cmovgel %eax, %ebx
movl %r12d, %ecx
subl %ebx, %ecx
movl %r14d, %eax
subl %ebp, %eax
cmpl $0xb, %ecx
movq (%rsp), %rdi
jl 0x7303
movq %r12, 0x20(%rsp)
cmpl $0xa, %eax
jle 0x7474
movq 0x478(%rdi), %r12
movq 0x480(%rdi), %r15
cmpq %r15, %r12
jne 0x7278
movq 0x470(%rdi), %rsi
cmpq %r12, %rsi
ja 0x747d
subq %rsi, %r12
movq %r12, %rax
shrq %rax
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %r12
movl %eax, %r15d
movl $0x1, %eax
cmoveq %rax, %r15
leaq (,%r15,4), %rcx
movq %r12, %rdx
callq 0x473a
movq (%rsp), %rdi
movq %rax, 0x470(%rdi)
addq %rax, %r12
leaq (%rax,%r15,4), %r15
movq %r15, 0x480(%rdi)
leaq 0x4(%r12), %rax
movq %rax, 0x478(%rdi)
movl %ebp, (%r12)
cmpq %r15, %rax
jne 0x72eb
movq 0x470(%rdi), %rsi
cmpq %r15, %rsi
ja 0x747d
subq %rsi, %r15
movq %r15, %rax
shrq %rax
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %r15
movl %eax, %r12d
movl $0x1, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rcx
movq %r15, %rdx
callq 0x473a
movq (%rsp), %rdi
movq %rax, 0x470(%rdi)
addq %rax, %r15
leaq (%rax,%r12,4), %rax
movq %rax, 0x480(%rdi)
movq %r15, %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x478(%rdi)
movl %r14d, (%rax)
movq 0x20(%rsp), %r12
jmp 0x70be
movl %r14d, %r12d
movl %ebp, %ebx
cmpl $0xa, %eax
jg 0x70be
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jbe 0x6f62
movl -0x4(%rax), %r12d
leaq -0x8(%rax), %rcx
movq %rcx, 0x478(%rdi)
movl -0x8(%rax), %ebx
jmp 0x70be
movq %rax, %rcx
movl 0xc(%rsp), %r14d
movq %rcx, 0x260(%rdi)
movq 0x120(%rdi), %rax
cmpq %rax, 0x118(%rdi)
je 0x7376
movq 0x38(%rdi), %rcx
movq -0x8(%rax), %rsi
subq %rcx, %rsi
xorq $0x1, %rsi
addq %rcx, %rsi
callq 0x7585
movq (%rsp), %rdi
xorl %esi, %esi
callq 0xeb80
movq (%rsp), %rdi
leaq 0x70(%rdi), %rcx
cmpq %rcx, %rax
jne 0x7454
cmpl $0x0, 0xc0(%rdi)
je 0x7454
leaq 0xd338(%rip), %rdi      # 0x146da
leaq 0xbed3(%rip), %rsi      # 0x1327c
leaq 0xddf2(%rip), %rcx      # 0x151a2
movl $0xa3e, %edx            # imm = 0xA3E
callq 0x10b0
movq 0x1e8(%rdi), %rax
movq 0x258(%rdi), %rcx
movq %rcx, 0x260(%rdi)
cmpq 0x1f0(%rdi), %rax
jne 0x7436
movq 0x1e0(%rdi), %rsi
cmpq %rax, %rsi
ja 0x74c9
subq %rsi, %rax
movabsq $0x7fffffff8, %r15      # imm = 0x7FFFFFFF8
andq %rax, %r15
shrq $0x2, %rax
testq %r15, %r15
movl %eax, %eax
movl $0x1, %ebx
cmovneq %rax, %rbx
leaq (,%rbx,8), %rcx
movq %r15, %rdx
callq 0x473a
movq (%rsp), %rdi
movq %rax, 0x1e0(%rdi)
addq %rax, %r15
leaq (%rax,%rbx,8), %rax
movq %rax, 0x1f0(%rdi)
movq %r15, %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x1e8(%rdi)
movq $0x0, (%rax)
incl 0x448(%rdi)
incl 0x438(%rdi)
cmpl $0x0, 0x35c(%rdi)
je 0x7462
callq 0x4375
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xcfd9(%rip), %rdi      # 0x14454
jmp 0x7484
leaq 0xcfef(%rip), %rdi      # 0x14473
leaq 0xbdf1(%rip), %rsi      # 0x1327c
leaq 0xdd3c(%rip), %rcx      # 0x151ce
movl $0xa05, %edx            # imm = 0xA05
callq 0x10b0
leaq 0xcf98(%rip), %rdi      # 0x1443b
jmp 0x7484
callq 0x1358
leaq 0xbf4c(%rip), %rdi      # 0x133fd
leaq 0xbdc4(%rip), %rsi      # 0x1327c
leaq 0xbf5c(%rip), %rcx      # 0x1341b
movl $0x1ab5, %edx           # imm = 0x1AB5
callq 0x10b0
leaq 0xd3a1(%rip), %rdi      # 0x14871
leaq 0xbda5(%rip), %rsi      # 0x1327c
leaq 0xdcc4(%rip), %rcx      # 0x151a2
movl $0xa2d, %edx            # imm = 0xA2D
callq 0x10b0