LCOV - code coverage report
Current view: top level - atermpp/source - aterm_implementation.cpp (source / functions) Hit Total Coverage
Test: mcrl2_coverage.info.cleaned Lines: 9 9 100.0 %
Date: 2019-09-14 00:54:39 Functions: 6 8 75.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.h"
      11             : #include "mcrl2/atermpp/detail/aterm.h"
      12             : #include "mcrl2/atermpp/detail/global_aterm_pool.h"
      13             : 
      14             : #include "mcrl2/atermpp/aterm_io.h"
      15             : 
      16             : using namespace atermpp;
      17             : using namespace atermpp::detail;
      18             : 
      19             : /// \brief Check for reasonably sized aterm (32 bits, 4 bytes)
      20             : ///        This check might break on perfectly valid architectures
      21             : ///        that have char == 2 bytes, and sizeof(header_type) == 2
      22             : 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.");
      23             : 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.");
      24             : 
      25         386 : void atermpp::add_creation_hook(const function_symbol& function, term_callback callback)
      26             : {
      27         386 :   g_term_pool().add_creation_hook(function, callback);
      28         386 : }
      29             : 
      30         386 : void atermpp::add_deletion_hook(const function_symbol& function, term_callback callback)
      31             : {  
      32         386 :   g_term_pool().add_deletion_hook(function, callback);
      33         386 : }
      34             : 
      35       10231 : aterm_input::~aterm_input() {}
      36             : 
      37       12636 : aterm_output::~aterm_output() {}
      38             : 
      39         420 : typename std::aligned_storage<sizeof(aterm_pool), alignof(aterm_pool)>::type atermpp::detail::g_aterm_pool_storage = {};

Generated by: LCOV version 1.12