/// @file grotto/gadgets/elementary/lt.hpp /// @author Ryan Henry /// @brief Cleartext reference for `lt`. /// @copyright Copyright (c) 2019-2023 Ryan Henry and others /// @license Released under a GNU General Public v2.0 (GPLv2) license; /// see [LICENSE.md](@ref license) for details. #ifndef LIBDPF_INCLUDE_GROTTO_GADGETS_ELEMENTARY_LT_HPP__ #define LIBDPF_INCLUDE_GROTTO_GADGETS_ELEMENTARY_LT_HPP__ #include #include #include "grotto/gadget_hints.hpp" namespace grotto { namespace gadgets { template struct lt { template T operator()(T x) { return x < target; } }; template struct gadget_hints> { static constexpr double min = std::numeric_limits::min(); static constexpr double max = std::numeric_limits::max(); static constexpr double poles[] = { }; static constexpr double interesting_points[] = { target }; static constexpr unsigned degree = 0; static constexpr bool has_canonical_representation = true; static constexpr double canonical_bounds[] = { target, target }; static constexpr std::array canonical_polys[] = { 1, 0, 0 }; }; } // namespace gadgets } // namespace grotto #endif // LIBDPF_INCLUDE_GROTTO_GADGETS_ELEMENTARY_LT_HPP__