Ruby binding for MiniSat.
Add this line to your application's Gemfile:
gem 'minisat', :git => 'git://github.com/eagletmt/ruby-minisat.git'
And then execute:
$ bundle
require 'minisat'
s = MiniSat::Solver.new
v1 = MiniSat::Var.new s
v2 = MiniSat::Var.new s
v3 = MiniSat::Var.new s
s << [v1] << [-v2, v3] # v1 /\ (not(v2) \/ v3)
m = s.solve
puts "v1: #{m[v1]}, v2: #{m[v2]}, v3: #{m[v3]}"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request