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