ruby-minisat 2.2.0 → 2.2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 296d98a29864044819a0e0dd556a152e1aff8a96
4
- data.tar.gz: 10a28e85eca2fc741a4dd4f43adaabe248dc1146
2
+ SHA256:
3
+ metadata.gz: 5a154d9157d2e65b5e29e65434c3acf26ddafae4982c3fdb5bf27e890fb3f60a
4
+ data.tar.gz: 9d85a3db858add69252a19b185bc50716f14ba651c35cadc3a189caaee8e1500
5
5
  SHA512:
6
- metadata.gz: a3990d7912879f13d48445fe48a4435b9c4a8d94245b55de68bdfea4142ec4e434a0a0560eb111b6f228f9280637524f2d7230c1edec94cd1c58d92a0c990cf5
7
- data.tar.gz: abf39822777fff19785d307d1c1acd6e016fd48b8f0afb03643daaa38e369a491aaff833cdefed6784b06a231aeab0c8822ab4fcaf931b014e12223065acf9d5
6
+ metadata.gz: f74ed73c8416fa4bb7131a70e2525d1850b7ba88a115c1b4d048053dc4c59bf32b13fbf3402246b7b5990f2b2d23a485abea39db1a737d3eb802c2a624e9ece1
7
+ data.tar.gz: e0698e3afff27bc6de4dc7c28085192a65288b0b2c2704d0c1995320fa179cb9d6db0bc379673ae85b68cb74fc073fc042f73864f42e84ceca3d67c9f5e6aa61
@@ -277,7 +277,7 @@ static VALUE solver_add_clause_2(VALUE rslv, VALUE rcls)
277
277
  }
278
278
  else {
279
279
  rcls = rb_convert_type(rcls, T_ARRAY, "Array", "to_ary");
280
- return solver_add_clause(RARRAY_LEN(rcls), RARRAY_PTR(rcls), rslv);
280
+ return solver_add_clause((int) RARRAY_LEN(rcls), RARRAY_PTR(rcls), rslv);
281
281
  }
282
282
  }
283
283
 
@@ -47,7 +47,7 @@ struct Lit {
47
47
  int x;
48
48
 
49
49
  // Use this as a constructor:
50
- friend Lit mkLit(Var var, bool sign = false);
50
+ friend Lit mkLit(Var var, bool sign);
51
51
 
52
52
  bool operator == (Lit p) const { return x == p.x; }
53
53
  bool operator != (Lit p) const { return x != p.x; }
@@ -55,16 +55,16 @@ struct Lit {
55
55
  };
56
56
 
57
57
 
58
- inline Lit mkLit (Var var, bool sign) { Lit p; p.x = var + var + (int)sign; return p; }
59
- inline Lit operator ~(Lit p) { Lit q; q.x = p.x ^ 1; return q; }
58
+ inline Lit mkLit (Var var, bool sign = false) { Lit p; p.x = var + var + (int)sign; return p; }
59
+ inline Lit operator ~(Lit p) { Lit q; q.x = p.x ^ 1; return q; }
60
60
  inline Lit operator ^(Lit p, bool b) { Lit q; q.x = p.x ^ (unsigned int)b; return q; }
61
61
  inline bool sign (Lit p) { return p.x & 1; }
62
62
  inline int var (Lit p) { return p.x >> 1; }
63
63
 
64
64
  // Mapping Literals to and from compact integers suitable for array indexing:
65
- inline int toInt (Var v) { return v; }
66
- inline int toInt (Lit p) { return p.x; }
67
- inline Lit toLit (int i) { Lit p; p.x = i; return p; }
65
+ inline int toInt (Var v) { return v; }
66
+ inline int toInt (Lit p) { return p.x; }
67
+ inline Lit toLit (int i) { Lit p; p.x = i; return p; }
68
68
 
69
69
  //const Lit lit_Undef = mkLit(var_Undef, false); // }- Useful special constants.
70
70
  //const Lit lit_Error = mkLit(var_Undef, true ); // }
@@ -199,7 +199,7 @@ class IntOption : public Option
199
199
  return false;
200
200
 
201
201
  char* end;
202
- int32_t tmp = strtol(span, &end, 10);
202
+ int32_t tmp = (int32_t) strtol(span, &end, 10);
203
203
 
204
204
  if (end == NULL)
205
205
  return false;
data/ruby-minisat.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "ruby-minisat"
4
- spec.version = "2.2.0"
4
+ spec.version = "2.2.0.1"
5
5
  spec.authors = ["Yusuke Endoh"]
6
- spec.email = ["mame@tsg.ne.jp"]
6
+ spec.email = ["mame@ruby-lang.org"]
7
7
  spec.description = %q{ruby binding for MiniSat, an open-source SAT solver}
8
8
  spec.summary = %q{ruby binding for MiniSat, an open-source SAT solver}
9
9
  spec.homepage = "http://github.com/mame/ruby-minisat"
metadata CHANGED
@@ -1,52 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-minisat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke Endoh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-30 00:00:00.000000000 Z
11
+ date: 2019-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: ruby binding for MiniSat, an open-source SAT solver
42
42
  email:
43
- - mame@tsg.ne.jp
43
+ - mame@ruby-lang.org
44
44
  executables: []
45
45
  extensions:
46
46
  - ext/minisat/extconf.rb
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .gitignore
49
+ - ".gitignore"
50
50
  - Gemfile
51
51
  - LICENSE
52
52
  - README.md
@@ -107,25 +107,24 @@ licenses:
107
107
  metadata: {}
108
108
  post_install_message:
109
109
  rdoc_options:
110
- - --exclude
111
- - .*\.o
112
- - --exclude
110
+ - "--exclude"
111
+ - ".*\\.o"
112
+ - "--exclude"
113
113
  - minisat.so
114
114
  require_paths:
115
115
  - ext/minisat/
116
116
  required_ruby_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - '>='
118
+ - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.0.2
127
+ rubygems_version: 3.0.3
129
128
  signing_key:
130
129
  specification_version: 4
131
130
  summary: ruby binding for MiniSat, an open-source SAT solver