// Original CPU teaching model; not a device simulator or benchmark.
#include <iostream>
#include <map>
#include <string>
#include <stdexcept>

void require(bool ok) { if (!ok) throw std::runtime_error("model check failed"); }

int main() {
 const std::map<std::string,int> symbols{{"input",3},{"result",7}};
 const auto found=symbols.find("result"),missing=symbols.find("missing");
 require(found!=symbols.end() && missing==symbols.end());
 std::cout<<"result_id="<<found->second<<" missing=rejected\n";
}

