MCPcopy Create free account
hub / github.com/argotorg/solidity / declareTuple

Method declareTuple

libsmtutil/SMTLib2Interface.cpp:286–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void SMTLib2Commands::declareTuple(
287 std::string const& _name,
288 std::vector<std::string> const& _memberNames,
289 std::vector<std::string> const& _memberSorts
290)
291{
292 auto quotedName = '|' + _name + '|';
293 std::stringstream ss;
294 ss << "(declare-datatypes ((" << quotedName << " 0)) (((" << quotedName;
295 for (auto && [memberName, memberSort]: ranges::views::zip(_memberNames, _memberSorts))
296 ss << " (|" << memberName << "| " << memberSort << ")";
297 ss << "))))";
298 auto declaration = ss.str();
299 m_commands.push_back(ss.str());
300}

Callers 2

resetMethod · 0.80
resetMethod · 0.80

Calls 1

strMethod · 0.80

Tested by

no test coverage detected