From ea3618ce8f5c63e9f9f0947089dc73a65c1288d0 Mon Sep 17 00:00:00 2001 From: aletempiac Date: Thu, 17 Oct 2024 11:58:41 +0200 Subject: [PATCH] Fixing code based on reported issues --- include/mockturtle/algorithms/emap.hpp | 2 +- include/mockturtle/utils/tech_library.hpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/mockturtle/algorithms/emap.hpp b/include/mockturtle/algorithms/emap.hpp index 813797590..055d9b25b 100644 --- a/include/mockturtle/algorithms/emap.hpp +++ b/include/mockturtle/algorithms/emap.hpp @@ -100,7 +100,7 @@ struct emap_params * Structural uses pattern matching for fully-DSD cells, * Hybrid combines the two. */ - enum + enum matching_mode_t { boolean, structural, diff --git a/include/mockturtle/utils/tech_library.hpp b/include/mockturtle/utils/tech_library.hpp index b22d574bc..16695554f 100644 --- a/include/mockturtle/utils/tech_library.hpp +++ b/include/mockturtle/utils/tech_library.hpp @@ -248,6 +248,9 @@ class tech_library } } + tech_library ( const tech_library& ) = delete; + tech_library& operator=( const tech_library& ) = delete; + /*! \brief Get the gates matching the function. * * Returns a list of gates that match the function represented @@ -1163,7 +1166,7 @@ class tech_library bool _use_supergates; std::vector const _gates; /* collection of gates */ - super_lib const& _supergates_spec; /* collection of supergates declarations */ + super_lib const _supergates_spec; /* collection of supergates declarations */ tech_library_params const _ps; std::vector const _cells; /* collection of standard cells */