mark custom hash functions as noexcept
* spot/misc/bitvect.cc, spot/misc/bitvect.hh, spot/misc/hash.hh, spot/twa/acc.hh, spot/twaalgos/cobuchi.cc, spot/twaalgos/degen.cc, spot/twaalgos/determinize.cc, spot/twaalgos/parity.cc, spot/twaalgos/powerset.cc, spot/twaalgos/product.cc, spot/twaalgos/stutter.cc, spot/twaalgos/totgba.cc, spot/twaalgos/toweak.cc: Mark hash function as noexcept to please GCC snapshot.
This commit is contained in:
parent
7f5c1d3707
commit
31387e8f71
13 changed files with 32 additions and 31 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2017 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2017, 2018 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -292,7 +292,8 @@ namespace spot
|
|||
{
|
||||
struct mp_hash
|
||||
{
|
||||
size_t operator()(std::pair<unsigned, const bitvect_array*> bv) const
|
||||
size_t
|
||||
operator()(std::pair<unsigned, const bitvect_array*> bv) const noexcept
|
||||
{
|
||||
size_t res = 0;
|
||||
size_t size = bv.second->size();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2012-2017 Laboratoire de Recherche
|
||||
// Copyright (C) 2012-2018 Laboratoire de Recherche
|
||||
// et Développement de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -44,7 +44,7 @@ namespace spot
|
|||
struct degen_state_hash
|
||||
{
|
||||
size_t
|
||||
operator()(const degen_state& s) const
|
||||
operator()(const degen_state& s) const noexcept
|
||||
{
|
||||
return wang32_hash(s.first ^ wang32_hash(s.second));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2015-2017 Laboratoire de Recherche et
|
||||
// Copyright (C) 2015-2018 Laboratoire de Recherche et
|
||||
// Développement de l'Epita.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -115,7 +115,7 @@ namespace spot
|
|||
struct hash_safra
|
||||
{
|
||||
size_t
|
||||
operator()(const safra_state& s) const
|
||||
operator()(const safra_state& s) const noexcept
|
||||
{
|
||||
return s.hash();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -427,7 +427,7 @@ namespace spot
|
|||
struct state_history_hash
|
||||
{
|
||||
size_t
|
||||
operator()(const state_history& mat) const
|
||||
operator()(const state_history& mat) const noexcept
|
||||
{
|
||||
unsigned result = 0;
|
||||
for (unsigned i = 0; i < mat.get_left_num_sets(); ++i)
|
||||
|
|
@ -493,7 +493,7 @@ namespace spot
|
|||
struct sh_succ_hash
|
||||
{
|
||||
size_t
|
||||
operator()(std::tuple<sh_label_t, value_t, value_t> x) const
|
||||
operator()(std::tuple<sh_label_t, value_t, value_t> x) const noexcept
|
||||
{
|
||||
return wang32_hash(std::get<0>(x) ^ wang32_hash(std::get<1>(x)
|
||||
^ wang32_hash(std::get<2>(x))));
|
||||
|
|
@ -510,7 +510,7 @@ namespace spot
|
|||
struct product_state_hash
|
||||
{
|
||||
size_t
|
||||
operator()(product_state_t s) const
|
||||
operator()(product_state_t s) const noexcept
|
||||
{
|
||||
return wang32_hash(std::get<0>(s) ^ wang32_hash(std::get<1>(s)
|
||||
^ wang32_hash(std::get<2>(s))));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2009-2011, 2013-2017 Laboratoire de Recherche et
|
||||
// Copyright (C) 2009-2011, 2013-2018 Laboratoire de Recherche et
|
||||
// Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
|
|
@ -56,7 +56,7 @@ namespace spot
|
|||
|
||||
struct bv_hash
|
||||
{
|
||||
size_t operator()(const bitvect* bv) const
|
||||
size_t operator()(const bitvect* bv) const noexcept
|
||||
{
|
||||
return bv->hash();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2014-2017 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2014-2018 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -33,7 +33,7 @@ namespace spot
|
|||
struct product_state_hash
|
||||
{
|
||||
size_t
|
||||
operator()(product_state s) const
|
||||
operator()(product_state s) const noexcept
|
||||
{
|
||||
return wang32_hash(s.first ^ wang32_hash(s.second));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2014-2017 Laboratoire de Recherche et Développement de
|
||||
// Copyright (C) 2014-2018 Laboratoire de Recherche et Développement de
|
||||
// l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -255,7 +255,7 @@ namespace spot
|
|||
struct stutter_state_hash
|
||||
{
|
||||
size_t
|
||||
operator()(const stutter_state& s) const
|
||||
operator()(const stutter_state& s) const noexcept
|
||||
{
|
||||
return wang32_hash(s.first) ^ wang32_hash(s.second.id());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -446,7 +446,7 @@ namespace spot
|
|||
struct st2gba_state_hash
|
||||
{
|
||||
size_t
|
||||
operator()(const st2gba_state& s) const
|
||||
operator()(const st2gba_state& s) const noexcept
|
||||
{
|
||||
std::hash<acc_cond::mark_t> h;
|
||||
return s.s ^ h(s.pend);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2017 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2017, 2018 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -46,7 +46,7 @@ namespace spot
|
|||
struct rc_state_hash
|
||||
{
|
||||
size_t
|
||||
operator()(const rc_state& s) const
|
||||
operator()(const rc_state& s) const noexcept
|
||||
{
|
||||
using std::hash;
|
||||
return ((hash<int>()(s.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue