1
0
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:
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 .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::Top,
|acc, attacker| {
Formula::And( Formula::And(
Box::new(acc), Box::new(acc),
Box::new(Formula::Not(Box::new(Formula::Atom( Box::new(Formula::Not(Box::new(Formula::Atom(
(attacker + 1).to_string(), (attacker + 1).to_string(),
)))), )))),
) )
}, })
)
}) })
.collect(); .collect();
let formulanames = names.clone(); let formulanames = names.clone();