22 #include <unordered_map>
36 const std::vector<EvalValue>& inputs);
41 if constexpr (std::is_integral<T>::value) {
42 ret.
int_val =
static_cast<int64_t
>(val);
43 }
else if constexpr (std::is_same<T, float>::value) {
45 }
else if constexpr (std::is_same<T, double>::value) {
47 }
else if constexpr (std::is_pointer<T>::value) {
53 static std::optional<EvalValue>
run(
54 const size_t execution_id,
55 const std::vector<std::unique_ptr<Instruction>>& body,
56 const std::vector<EvalValue>& vars);
static EvalValue MakeEvalValue(const T &val)
static EvalValue run(const size_t execution_id, const Function *function, const std::vector< EvalValue > &inputs)