simplify several comparison operators

* spot/twaalgos/dtbasat.cc, spot/twaalgos/dtwasat.cc,
spot/twaalgos/simulation.cc: Simplify, as reported by sonarcloud.
This commit is contained in:
Alexandre Duret-Lutz 2023-01-05 17:48:14 +01:00
parent 16ad7bdf77
commit 2ba6fba29f
3 changed files with 6 additions and 20 deletions

View file

@ -1,5 +1,5 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2013-2022 Laboratoire de Recherche
// Copyright (C) 2013-2023 Laboratoire de Recherche
// et Développement de l'Epita.
//
// This file is part of Spot, a model checking library.
@ -98,11 +98,7 @@ namespace spot
return true;
if (this->acc_ref > other.acc_ref)
return false;
if (this->acc_cand < other.acc_cand)
return true;
if (this->acc_cand > other.acc_cand)
return false;
return false;
return this->acc_cand < other.acc_cand;
}
};