// File: /workspace/github_cpp_makefile_star2_O2/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 0x6365
movq %rdi, %rbx
callq 0x3703
jmp 0x636d
movq %rdi, %rbx
callq 0x3b54
cmpq $0x0, 0x230(%rbx)
movq %rbx, %rdi
je 0x6395
cmpl $0x0, 0x238(%rdi)
je 0x6395
movl 0x438(%rdi), %eax
cmpl 0x240(%rdi), %eax
jae 0x698a
cmpl $0x1, (%rdi)
movq %rdi, (%rsp)
je 0x63a7
callq 0x3d4b
movq (%rsp), %rdi
cmpl $0x0, 0x228(%rdi)
je 0x6426
movq 0x218(%rdi), %r15
cmpq 0x220(%rdi), %r15
jne 0x6418
movq 0x210(%rdi), %rsi
cmpq %r15, %rsi
ja 0x69a5
subq %rsi, %r15
movq %r15, %rax
shrq %rax
movl %eax, %ebx
movabsq $0x3fffffffc, %rax      # imm = 0x3FFFFFFFC
andq %rax, %r15
pushq $0x1
popq %rax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rcx
movq %r15, %rdx
callq 0x3e40
movq (%rsp), %rdi
movq %rax, 0x210(%rdi)
addq %rax, %r15
leaq (%rax,%rbx,4), %rax
movq %rax, 0x220(%rdi)
leaq 0x4(%r15), %rax
movq %rax, 0x218(%rdi)
movl %ebp, (%r15)
testl %ebp, %ebp
je 0x6464
pushq $0x1
popq %rdx
movl %ebp, %esi
callq 0x69e3
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x6ac0
movq (%rsp), %rdi
cmpl $0x0, 0x35c(%rdi)
je 0x6452
callq 0x3ade
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r14d, 0xc(%rsp)
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jne 0x6981
movq 0x258(%rdi), %rbp
movq 0x260(%rdi), %rcx
subq %rbp, %rcx
shrq $0x3, %rcx
leal -0x1(%rcx), %eax
movq %rax, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
cmpl $0xc, %ecx
jge 0x662f
movq 0x10(%rsp), %r10
movl %r10d, %eax
testl %eax, %eax
jle 0x64d5
movq -0x8(%rbp,%rax,8), %rcx
movq (%rbp,%rax,8), %rdx
movl %ecx, %esi
subl %edx, %esi
testl %esi, %esi
jle 0x64d0
movq %rcx, (%rbp,%rax,8)
movq %rdx, -0x8(%rbp,%rax,8)
decq %rax
jmp 0x64b0
movslq 0x18(%rsp), %rax
leaq 0x10(%rbp), %rcx
pushq $0x2
popq %rdx
movl 0xc(%rsp), %r14d
cmpq %rax, %rdx
jge 0x6511
movq (%rbp,%rdx,8), %rsi
movq %rcx, %r9
movq -0x8(%r9), %r8
cmpl %r8d, %esi
jns 0x6505
movq %r8, (%r9)
addq $-0x8, %r9
jmp 0x64f3
movq %rsi, (%r9)
incq %rdx
addq $0x8, %rcx
jmp 0x64e6
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jne 0x6981
xorl %eax, %eax
testl %r10d, %r10d
cmovlel %eax, %r10d
shlq $0x3, %r10
cmpq %rax, %r10
je 0x6553
movl (%rbp,%rax), %ecx
subl 0x8(%rbp,%rax), %ecx
addq $0x8, %rax
testl %ecx, %ecx
jle 0x6532
leaq 0xcc91(%rip), %rdi      # 0x131df
jmp 0x6969
movq 0x258(%rdi), %rax
xorl %edx, %edx
movq %rax, %rcx
cmpq 0x260(%rdi), %rcx
jae 0x65b9
movq (%rcx), %rsi
cmpq %rsi, %rdx
je 0x65b3
movq 0x38(%rdi), %r11
movq %rsi, %r8
subq %r11, %r8
cmpb $0x1, (%rsi)
jne 0x6599
movq 0x40(%rdi), %r9
movl %r8d, %r10d
shrl %r10d
shlq $0x4, %r10
cmpl $0x0, 0x4(%r9,%r10)
je 0x68bf
xorq $0x1, %r8
addq %r8, %r11
cmpq %r11, %rdx
je 0x68bf
movq %rsi, (%rax)
addq $0x8, %rax
movq %rsi, %rdx
addq $0x8, %rcx
jmp 0x655f
movq %rax, 0x260(%rdi)
movq 0x120(%rdi), %rax
cmpq %rax, 0x118(%rdi)
je 0x65eb
movq 0x38(%rdi), %rcx
movq -0x8(%rax), %rsi
subq %rcx, %rsi
xorq $0x1, %rsi
addq %rcx, %rsi
callq 0x6ac0
movq (%rsp), %rdi
xorl %esi, %esi
callq 0xd801
movq (%rsp), %rdi
leaq 0x70(%rdi), %rcx
cmpq %rcx, %rax
jne 0x6444
cmpl $0x0, 0xc0(%rdi)
je 0x6444
leaq 0xc0bb(%rip), %rdi      # 0x126d2
leaq 0xac56(%rip), %rsi      # 0x11274
leaq 0xcb75(%rip), %rcx      # 0x1319a
movl $0xa3e, %edx            # imm = 0xA3E
callq 0x10b0
xorl %r13d, %r13d
pushq $0x2
popq %r15
movq 0x10(%rsp), %rax
movl %eax, %r12d
leal (%r12,%r13), %eax
cltd
idivl %r15d
movslq %r12d, %rcx
movq -0x8(%rbp,%rcx,8), %rdx
cltq
movq (%rbp,%rax,8), %rsi
movq %rsi, -0x8(%rbp,%rcx,8)
movq %rdx, (%rbp,%rax,8)
movslq %r13d, %rdx
movq (%rbp,%rdx,8), %rdi
movq -0x8(%rbp,%rcx,8), %rsi
movl %edi, %eax
subl %esi, %eax
testl %eax, %eax
jle 0x6683
movq %rdi, -0x8(%rbp,%rcx,8)
movq %rsi, (%rbp,%rdx,8)
movq %rsi, %rdi
jmp 0x6686
movq %rdi, %rsi
movq (%rbp,%rcx,8), %rax
subl %eax, %edi
testl %edi, %edi
jle 0x66a0
movq %rsi, (%rbp,%rcx,8)
movq %rax, (%rbp,%rdx,8)
movq (%rbp,%rcx,8), %rax
movq -0x8(%rbp,%rcx,8), %rdx
movl %edx, %esi
subl %eax, %esi
testl %esi, %esi
jle 0x66b9
movq %rdx, (%rbp,%rcx,8)
movq %rax, -0x8(%rbp,%rcx,8)
jmp 0x66bc
movq %rdx, %rax
leal -0x1(%r12), %edi
leal 0x2(%r13), %ecx
movslq %ecx, %r8
movl %edi, %r9d
movl %r13d, %ecx
movslq %ecx, %r11
leaq (,%r11,8), %rdx
addq %rbp, %rdx
xorl %esi, %esi
movq 0x8(%rdx,%rsi,8), %r10
incq %rsi
cmpl %eax, %r10d
js 0x66de
movslq %r9d, %r9
addq %rsi, %r11
movq %r9, %r14
movq -0x8(%rbp,%r9,8), %rbx
decq %r9
cmpq %r14, %r8
je 0x6710
movl %eax, %r14d
subl %ebx, %r14d
andl $0x80000000, %r14d      # imm = 0x80000000
jne 0x66f1
cmpq %r9, %r11
jge 0x6725
movl %ecx, %ecx
addq %rsi, %rcx
movq %r10, (%rbp,%r9,8)
movq %rbx, (%rdx,%rsi,8)
jmp 0x66ce
movslq %edi, %rax
leal (%rcx,%rsi), %edi
decl %edi
movq (%rbp,%rax,8), %r8
movq %r10, (%rbp,%rax,8)
leal (%rcx,%rsi), %eax
subl %r13d, %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 %r13d, %ebx
cmovll %eax, %ebx
cmovll %edi, %r12d
movq %r8, (%rdx,%rsi,8)
cmovgel %eax, %r13d
movl %r12d, %ecx
subl %r13d, %ecx
movl %r14d, %eax
subl %ebx, %eax
cmpl $0xb, %ecx
movq (%rsp), %rdi
jl 0x6884
movq %r12, 0x20(%rsp)
cmpl $0xa, %eax
jle 0x6959
movq 0x478(%rdi), %r12
movq 0x480(%rdi), %r15
cmpq %r15, %r12
jne 0x67f8
movq 0x470(%rdi), %rsi
cmpq %r12, %rsi
ja 0x6962
subq %rsi, %r12
movq %r12, %rax
shrq %rax
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %r12
movl %eax, %r15d
pushq $0x1
popq %rax
cmoveq %rax, %r15
leaq (,%r15,4), %rcx
movq %r12, %rdx
callq 0x3e40
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 %ebx, (%r12)
cmpq %r15, %rax
movq 0x20(%rsp), %r12
jne 0x686d
movq 0x470(%rdi), %rsi
cmpq %r15, %rsi
ja 0x6962
subq %rsi, %r15
movq %r15, %rax
shrq %rax
movabsq $0x3fffffffc, %rcx      # imm = 0x3FFFFFFFC
andq %rcx, %r15
movl %eax, %ebx
pushq $0x1
popq %rax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rcx
movq %r15, %rdx
callq 0x3e40
movq (%rsp), %rdi
movq %rax, 0x470(%rdi)
addq %rax, %r15
leaq (%rax,%rbx,4), %rax
movq %rax, 0x480(%rdi)
movq %r15, %rax
leaq 0x4(%rax), %rcx
movq %rcx, 0x478(%rdi)
movl %r14d, (%rax)
pushq $0x2
popq %r15
jmp 0x663e
movl %r14d, %r12d
movl %ebx, %r13d
cmpl $0xa, %eax
jg 0x663e
movq 0x478(%rdi), %rax
cmpq 0x470(%rdi), %rax
jbe 0x64a8
movl -0x4(%rax), %r12d
leaq -0x8(%rax), %rcx
movq %rcx, 0x478(%rdi)
movl -0x8(%rax), %r13d
jmp 0x663e
movq 0x1e8(%rdi), %rax
movq 0x258(%rdi), %rcx
movq %rcx, 0x260(%rdi)
cmpq 0x1f0(%rdi), %rax
jne 0x6939
movq 0x1e0(%rdi), %rsi
cmpq %rax, %rsi
ja 0x69c4
subq %rsi, %rax
movabsq $0x7fffffff8, %r15      # imm = 0x7FFFFFFF8
andq %rax, %r15
shrq $0x2, %rax
testq %r15, %r15
movl %eax, %ebx
pushq $0x1
popq %rax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rcx
movq %r15, %rdx
callq 0x3e40
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)
andq $0x0, (%rax)
incl 0x448(%rdi)
incl 0x438(%rdi)
jmp 0x6444
leaq 0xbaec(%rip), %rdi      # 0x1244c
jmp 0x6969
leaq 0xbb02(%rip), %rdi      # 0x1246b
leaq 0xa904(%rip), %rsi      # 0x11274
leaq 0xc84f(%rip), %rcx      # 0x131c6
movl $0xa05, %edx            # imm = 0xA05
callq 0x10b0
leaq 0xbaab(%rip), %rdi      # 0x12433
jmp 0x6969
movq 0x11667(%rip), %rax     # 0x17ff8
movq (%rax), %rsi
leaq 0xaa10(%rip), %rdi      # 0x113ab
callq 0x10c0
callq 0x1060
leaq 0xaa49(%rip), %rdi      # 0x113f5
leaq 0xa8c1(%rip), %rsi      # 0x11274
leaq 0xaa59(%rip), %rcx      # 0x11413
movl $0x1ab5, %edx           # imm = 0x1AB5
callq 0x10b0
leaq 0xbe9e(%rip), %rdi      # 0x12869
leaq 0xa8a2(%rip), %rsi      # 0x11274
leaq 0xc7c1(%rip), %rcx      # 0x1319a
movl $0xa2d, %edx            # imm = 0xA2D
callq 0x10b0