// File: biotomas[P]ipasir/sat/picosat961/picosat-961/picosat.c
// Function: assign_forced
static void
assign_forced (PS * ps, Lit * lit, Cls * reason)
{
  Var *v;

  assert (reason);
  assert (lit->val == UNDEF);

#ifdef STATS
  ps->FORCED++;
#endif
  assign (ps, lit, reason);

#ifdef NO_BINARY_CLAUSES
  assert (reason != &ps->impl);
  if (ISLITREASON (reason)) 
    {
      reason = setimpl (ps, lit, NOTLIT (REASON2LIT (reason)));
      assert (reason);
    }
#endif
  LOG ( fprintf (ps->out,
                "%sassign %d at level %d by ",
                ps->prefix, LIT2INT (lit), ps->LEVEL);
       dumpclsnl (ps, reason));

  v = LIT2VAR (lit);
  if (!ps->LEVEL)
    use_var (ps, v);

  if (!ps->LEVEL && reason->size > 1)
    {
      reason = resolve_top_level_unit (ps, lit, reason);
      assert (reason);
    }

#ifdef NO_BINARY_CLAUSES
  if (ISLITREASON (reason) || reason == &ps->impl)
    {
      /* DO NOTHING */
    }
  else
#endif
    {
      assert (!reason->locked);
      reason->locked = 1;
      if (reason->learned && reason->size > 2)
	ps->llocked++;
    }

#ifdef NO_BINARY_CLAUSES
  if (reason == &ps->impl)
    resetimpl (ps);
#endif

  if (!ps->LEVEL)
    fixvar (ps, v);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1386d
jmp 0x1388c
leaq 0xb596(%rip), %rdi      # 0x1ee0a
leaq 0x9a29(%rip), %rsi      # 0x1d2a4
movl $0x7a2, %edx            # imm = 0x7A2
leaq 0xae99(%rip), %rcx      # 0x1e720
callq 0x10b0
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x1389a
jmp 0x138b9
leaq 0xb50a(%rip), %rdi      # 0x1edab
leaq 0x99fc(%rip), %rsi      # 0x1d2a4
movl $0x7a3, %edx            # imm = 0x7A3
leaq 0xae6c(%rip), %rcx      # 0x1e720
callq 0x10b0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x12ad0
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
addq $0x70, %rcx
cmpq %rcx, %rax
je 0x138dd
jmp 0x138fc
leaq 0xa923(%rip), %rdi      # 0x1e207
leaq 0x99b9(%rip), %rsi      # 0x1d2a4
movl $0x7ab, %edx            # imm = 0x7AB
leaq 0xae29(%rip), %rcx      # 0x1e720
callq 0x10b0
movq -0x18(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x13971
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rdx
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq -0x18(%rbp), %rcx
shrq %rcx
addq %rcx, %rax
movq -0x8(%rbp), %rcx
movq 0x38(%rcx), %rcx
subq %rcx, %rax
xorq $0x1, %rax
addq %rax, %rdx
callq 0x13b90
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x13950
jmp 0x1396f
leaq 0xb4b3(%rip), %rdi      # 0x1ee0a
leaq 0x9946(%rip), %rsi      # 0x1d2a4
movl $0x7af, %edx            # imm = 0x7AF
leaq 0xadb6(%rip), %rcx      # 0x1e720
callq 0x10b0
jmp 0x13971
jmp 0x13973
jmp 0x13975
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rdx
movq 0x38(%rdx), %rdx
subq %rdx, %rcx
shrl %ecx
movl %ecx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0x139b2
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x13c50
movq -0x8(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0x13a04
movq -0x18(%rbp), %rax
cmpl $0x1, (%rax)
jbe 0x13a04
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x13ca0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x139e3
jmp 0x13a02
leaq 0xb420(%rip), %rdi      # 0x1ee0a
leaq 0x98b3(%rip), %rsi      # 0x1d2a4
movl $0x7be, %edx            # imm = 0x7BE
leaq 0xad23(%rip), %rcx      # 0x1e720
callq 0x10b0
jmp 0x13a04
movq -0x18(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
jne 0x13a23
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
addq $0x70, %rcx
cmpq %rcx, %rax
jne 0x13a25
jmp 0x13a97
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
shrl $0x2, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x13a39
jmp 0x13a58
leaq 0xad07(%rip), %rdi      # 0x1e747
leaq 0x985d(%rip), %rsi      # 0x1d2a4
movl $0x7c9, %edx            # imm = 0x7C9
leaq 0xaccd(%rip), %rcx      # 0x1e720
callq 0x10b0
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
andl $-0x5, %ecx
orl $0x4, %ecx
movl %ecx, 0x4(%rax)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
shrl %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x13a95
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jbe 0x13a95
movq -0x8(%rbp), %rax
movl 0x3b8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x3b8(%rax)
jmp 0x13a97
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
addq $0x70, %rcx
cmpq %rcx, %rax
jne 0x13ab1
movq -0x8(%rbp), %rdi
callq 0x13ec0
movq -0x8(%rbp), %rax
cmpl $0x0, 0x28(%rax)
jne 0x13ac8
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x13ee0
addq $0x20, %rsp
popq %rbp
retq
nop