| 3239 | } |
| 3240 | |
| 3241 | std::string YulUtilFunctions::allocateUnboundedFunction() |
| 3242 | { |
| 3243 | std::string functionName = "allocate_unbounded"; |
| 3244 | return m_functionCollector.createFunction(functionName, [&]() { |
| 3245 | return Whiskers(R"( |
| 3246 | function <functionName>() -> memPtr { |
| 3247 | memPtr := mload(<freeMemoryPointer>) |
| 3248 | } |
| 3249 | )") |
| 3250 | ("freeMemoryPointer", std::to_string(CompilerUtils::freeMemoryPointer)) |
| 3251 | ("functionName", functionName) |
| 3252 | .render(); |
| 3253 | }); |
| 3254 | } |
| 3255 | |
| 3256 | std::string YulUtilFunctions::finalizeAllocationFunction() |
| 3257 | { |
no test coverage detected