Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Aina Niemetz, Martin Brain 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2025 by the authors listed in the file AUTHORS 8 : : * in the top-level source directory and their institutional affiliations. 9 : : * All rights reserved. See the file COPYING in the top-level source 10 : : * directory for licensing information. 11 : : * **************************************************************************** 12 : : * 13 : : * The class representing a floating-point format. 14 : : */ 15 : : #include "util/floatingpoint_size.h" 16 : : 17 : : #include "base/check.h" 18 : : 19 : : namespace cvc5::internal { 20 : : 21 : 129740 : FloatingPointSize::FloatingPointSize(uint32_t exp_size, uint32_t sig_size) 22 : 129740 : : d_exp_size(exp_size), d_sig_size(sig_size) 23 : : { 24 [ - + ][ - + ]: 129740 : Assert(validExponentSize(exp_size)); [ - - ] 25 [ - + ][ - + ]: 129740 : Assert(validSignificandSize(sig_size)); [ - - ] 26 : 129740 : } 27 : : 28 : 226386 : FloatingPointSize::FloatingPointSize(const FloatingPointSize& old) 29 : 226386 : : d_exp_size(old.d_exp_size), d_sig_size(old.d_sig_size) 30 : : { 31 [ - + ][ - + ]: 226386 : Assert(validExponentSize(d_exp_size)); [ - - ] 32 [ - + ][ - + ]: 226386 : Assert(validSignificandSize(d_sig_size)); [ - - ] 33 : 226386 : } 34 : : 35 : : } // namespace cvc5::internal