// File: /workspace/github_cpp_makefile_star2_O2/biotomas[P]ipasir/sat/picosat961/picosat-961/picosat.c
// Function: mss
static const int *
mss (PS * ps, int * a, int size)
{
  int i, j, k, res;

  assert (!ps->mtcls);

  if (ps->szmssass)
    DELETEN (ps->mssass, ps->szmssass);

  ps->szmssass = 0;
  ps->mssass = 0;

  ps->szmssass = size + 1;
  NEWN (ps->mssass, ps->szmssass);

  LOG ( fprintf (ps->out, "%ssearch MSS over %d assumptions\n", ps->prefix, size));

  k = 0;
  for (i = k; i < size; i++)
    {
      for (j = 0; j < k; j++)
	picosat_assume (ps, ps->mssass[j]);

      LOG ( fprintf (ps->out, 
             "%strying to add assumption %d to MSS : %d\n", 
	     ps->prefix, i, a[i])); 

      picosat_assume (ps, a[i]);

      res = picosat_sat (ps, -1);
      if (res == 10)
	{
	  LOG ( fprintf (ps->out, 
		 "%sadding assumption %d to MSS : %d\n", ps->prefix, i, a[i])); 

	  ps->mssass[k++] = a[i];

	  for (j = i + 1; j < size; j++)
	    {
	      if (picosat_deref (ps, a[j]) <= 0)
		continue;

	      LOG ( fprintf (ps->out, 
		     "%salso adding assumption %d to MSS : %d\n", 
		     ps->prefix, j, a[j])); 

	      ps->mssass[k++] = a[j];

	      if (++i != j)
		{
		  int tmp = a[i];
		  a[i] = a[j];
		  a[j] = tmp;
		}
	    }
	}
      else
	{
	  assert (res == 20);

	  LOG ( fprintf (ps->out, 
		 "%signoring assumption %d in MSS : %d\n", ps->prefix, i, a[i])); 
	}
    }
  ps->mssass[k] = 0;
  LOG ( fprintf (ps->out, "%sfound MSS of size %d\n", ps->prefix, k));

  return ps->mssass;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x20(%rsp)
cmpq $0x0, 0x248(%rdi)
jne 0x92a4
movq %rsi, %r15
movq %rdi, %r14
movslq 0x190(%rdi), %rdx
testq %rdx, %rdx
je 0x9123
movq 0x188(%r14), %rsi
shlq $0x2, %rdx
movq %r14, %rdi
callq 0x8e83
andq $0x0, 0x188(%r14)
movq 0x20(%rsp), %rcx
leal 0x1(%rcx), %eax
movl %eax, 0x190(%r14)
movslq %ecx, %r12
leaq 0x4(,%r12,4), %rsi
movq %r14, %rdi
callq 0x8f50
movq %rax, 0x188(%r14)
xorl %eax, %eax
xorl %ebp, %ebp
movslq %eax, %r13
cmpl 0x20(%rsp), %ebp
jge 0x926a
movl %ebp, 0xc(%rsp)
testl %eax, %eax
movl $0x0, %ebx
movq %rax, 0x10(%rsp)
cmovgl %eax, %ebx
xorl %ebp, %ebp
cmpq %rbp, %rbx
je 0x9196
movq 0x188(%r14), %rax
movl (%rax,%rbp,4), %esi
movq %r14, %rdi
callq 0x6cb0
incq %rbp
jmp 0x917a
movl 0xc(%rsp), %ebp
movslq %ebp, %rbx
movl (%r15,%rbx,4), %esi
movq %r14, %rdi
callq 0x6cb0
movq %r14, %rdi
pushq $-0x1
popq %rsi
callq 0x6e44
cmpl $0xa, %eax
je 0x91cc
cmpl $0x14, %eax
movq 0x10(%rsp), %rax
je 0x9263
jmp 0x9285
movl (%r15,%rbx,4), %eax
movq 0x188(%r14), %rcx
movl %eax, (%rcx,%r13,4)
movl %ebp, %eax
notl %eax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
leaq 0x1(%rbx), %rbp
xorl %r13d, %r13d
cmpq %r12, %rbp
jge 0x925a
movl (%r15,%rbp,4), %esi
movq %r14, %rdi
callq 0x7f39
decq %r13
incq %rbp
testl %eax, %eax
jle 0x91f7
movl -0x4(%r15,%rbp,4), %eax
movq 0x188(%r14), %rcx
movslq 0x10(%rsp), %rdx
movl %eax, (%rcx,%rdx,4)
incl 0xc(%rsp)
movq 0x18(%rsp), %rdx
leal (%rdx,%rbx), %ecx
cmpl %r13d, %ecx
je 0x924e
movslq 0xc(%rsp), %rcx
movl (%r15,%rcx,4), %edx
movl %eax, (%r15,%rcx,4)
movl %edx, -0x4(%r15,%rbp,4)
movq 0x18(%rsp), %rdx
subq %r13, %rbx
decl %edx
movq %rdx, 0x18(%rsp)
jmp 0x91e4
movq 0x10(%rsp), %rax
movl 0xc(%rsp), %ebp
incl %ebp
jmp 0x9158
movq 0x188(%r14), %rax
andl $0x0, (%rax,%r13,4)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x85d1(%rip), %rdi      # 0x1185d
leaq 0x7fe1(%rip), %rsi      # 0x11274
leaq 0xa465(%rip), %rcx      # 0x136ff
movl $0x1da8, %edx           # imm = 0x1DA8
callq 0x10b0
leaq 0x8fc3(%rip), %rdi      # 0x1226e
leaq 0x7fc2(%rip), %rsi      # 0x11274
leaq 0xa446(%rip), %rcx      # 0x136ff
movl $0x1d72, %edx           # imm = 0x1D72
callq 0x10b0