MCPcopy Create free account
hub / github.com/bytedance/bolt / appendSpecialForms

Function appendSpecialForms

bolt/expression/fuzzer/ExpressionFuzzer.cpp:340–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340static void appendSpecialForms(
341 bytedance::bolt::FunctionSignatureMap& signatureMap,
342 const std::string& specialForms) {
343 auto specialFormNames = splitNames(specialForms);
344 for (const auto& [name, signatures] : kSpecialForms) {
345 if (specialFormNames.count(name) == 0) {
346 LOG(INFO) << "Skipping special form: " << name;
347 continue;
348 }
349 std::vector<std::shared_ptr<const bytedance::bolt::exec::FunctionSignature>>
350 rawSignatures;
351 for (const auto& signature : signatures) {
352 rawSignatures.push_back(signature);
353 }
354 signatureMap.insert({name, std::move(rawSignatures)});
355 }
356}
357
358/// Returns if `functionName` with the given `argTypes` is deterministic.
359/// Returns true if the function was not found or determinism cannot be

Callers 1

ExpressionFuzzerMethod · 0.85

Calls 4

splitNamesFunction · 0.85
countMethod · 0.45
push_backMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected