#14180: SatSolver.clauses
--------------------------------------+-------------------------------------
       Reporter:  malb                |         Owner:  jason     
           Type:  PLEASE CHANGE       |        Status:  needs_info
       Priority:  major               |     Milestone:  sage-5.8  
      Component:  misc                |    Resolution:            
       Keywords:  sat, cryptominisat  |   Work issues:            
Report Upstream:  N/A                 |     Reviewers:            
        Authors:  Martin Albrecht     |     Merged in:            
   Dependencies:  #14198              |      Stopgaps:            
--------------------------------------+-------------------------------------

Comment (by ncohen):

 > `clauses()` does not accept any input file, only a file to write
 '''to''' (?)

 Oops right. I meant : when you read `self._tail`. The parsing only creates
 clauses with `is_xor` set to `False` :
 {{{
 clauses.append( ( tuple(clause), False, None ) )
 }}}
 Hence the output of `clauses` never returns a clause with `is_xor = True`.

 Oh. But may it be because there is actually no way to create a xor clause
 with te DIMACS interface ?

 > !CryptoMiniSat expresses xor clauses by prefixing them with an "x" and
 flipping the last clause if the right hand side if false.

 Oh. Weird. Thanks `:-)`

 > A `gens()` method needs doctstring, doctests etc. This way, everything
 is in place automatically. I added the alias `gens()` for `clauses()`
 because Sage users are used to `gens()` as the method to return the
 generators.

 ?

 Well, why wouldn't you just write `gens = clauses` then ? `O_o`

 Nathann

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14180#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to