We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e0e75 commit 25093b9Copy full SHA for 25093b9
examples/feature-model/src/queries.rs
@@ -52,8 +52,8 @@ impl<'a> FeatureAnalyzer<'a> {
52
53
let mut config = HashMap::new();
54
for lit in assignment {
55
- let feature_id = lit.unsigned_abs();
56
- let value = lit > 0;
+ let feature_id = lit.var().id();
+ let value = lit.is_positive();
57
config.insert(feature_id, value);
58
}
59
0 commit comments