mirror of
https://github.com/ellmau/adf-obdd.git
synced 2025-12-20 09:39:38 +01:00
Remove TODO comment
This commit is contained in:
parent
ae1ca8bacb
commit
479fa7bfbd
@ -304,18 +304,14 @@ impl From<AF> for AdfParser {
|
|||||||
.0
|
.0
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|attackers| {
|
.map(|attackers| {
|
||||||
attackers.into_iter().fold(
|
attackers.into_iter().fold(Formula::Top, |acc, attacker| {
|
||||||
// TODO: is it correct to use Top here? what if something is not attacked at all?
|
Formula::And(
|
||||||
Formula::Top,
|
Box::new(acc),
|
||||||
|acc, attacker| {
|
Box::new(Formula::Not(Box::new(Formula::Atom(
|
||||||
Formula::And(
|
(attacker + 1).to_string(),
|
||||||
Box::new(acc),
|
)))),
|
||||||
Box::new(Formula::Not(Box::new(Formula::Atom(
|
)
|
||||||
(attacker + 1).to_string(),
|
})
|
||||||
)))),
|
|
||||||
)
|
|
||||||
},
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
let formulanames = names.clone();
|
let formulanames = names.clone();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user