1
0
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:
monsterkrampe 2025-06-30 08:32:04 +02:00
parent ae1ca8bacb
commit 479fa7bfbd
No known key found for this signature in database
GPG Key ID: B8ADC1F5A5CE5057

View File

@ -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| {
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();