LCOV - code coverage report
Current view: top level - atermpp/source - aterm_implementation.cpp (source / functions) Hit Total Coverage
Test: mcrl2_coverage.info.cleaned Lines: 10 10 100.0 %
Date: 2020-07-11 00:44:39 Functions: 7 10 70.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Author(s): Maurice Laveaux
       2             : // Copyright: see the accompanying file COPYING or copy at
       3             : // https://github.com/mCRL2org/mCRL2/blob/master/COPYING
       4             : //
       5             : // Distributed under the Boost Software License, Version 1.0.
       6             : // (See accompanying file LICENSE_1_0.txt or copy at
       7             : // http://www.boost.org/LICENSE_1_0.txt)
       8             : //
       9             : 
      10             : #include "mcrl2/atermpp/aterm_io.h"
      11             : 
      12             : using namespace atermpp;
      13             : using namespace atermpp::detail;
      14             : 
      15             : /// \brief Check for reasonably sized aterm (32 bits, 4 bytes)
      16             : ///        This check might break on perfectly valid architectures
      17             : ///        that have char == 2 bytes, and sizeof(header_type) == 2
      18             : static_assert(sizeof(std::size_t) == sizeof(_aterm*), "The size of an aterm pointer is not equal to the size of type std::size_t. Cannot compile the MCRL2 toolset for this platform.");
      19             : static_assert(sizeof(std::size_t) >= 4,"The size of std::size_t should at least be four bytes. Cannot compile the toolset for this platform.");
      20             : 
      21         390 : void atermpp::add_creation_hook(const function_symbol& function, term_callback callback)
      22             : {
      23         390 :   g_term_pool().add_creation_hook(function, callback);
      24         390 : }
      25             : 
      26         390 : void atermpp::add_deletion_hook(const function_symbol& function, term_callback callback)
      27             : {  
      28         390 :   g_term_pool().add_deletion_hook(function, callback);
      29         390 : }
      30             : 
      31       22885 : aterm_stream::~aterm_stream() {}
      32             : 
      33       10240 : aterm_istream::~aterm_istream() {}
      34             : 
      35       12645 : aterm_ostream::~aterm_ostream() {}
      36             : 
      37         423 : typename std::aligned_storage<sizeof(aterm_pool), alignof(aterm_pool)>::type atermpp::detail::g_aterm_pool_storage = {};

Generated by: LCOV version 1.13