Most of the time, we don't need to have a dynamic call sub graph, since the actual function call could be represented statically as it originally was before lambda functions were implemented. Simplifying the graph shape has important performance benefits in terms of both keep the graph smaller (memory, etc) and in avoiding the need to run transactions at runtime (speed) to reshape the graph. Co-authored-by: Samuel Gélineau <gelisam@gmail.com>
20 lines
382 B
Plaintext
20 lines
382 B
Plaintext
-- main.mcl --
|
|
# nested resource and scoped var
|
|
if true {
|
|
test "t" {
|
|
int64ptr => $x,
|
|
}
|
|
$x = 42 + $i
|
|
}
|
|
$i = 13
|
|
-- OUTPUT --
|
|
Edge: const: int(13) -> _operator # b
|
|
Edge: const: int(42) -> _operator # a
|
|
Edge: const: str("+") -> _operator # op
|
|
Vertex: _operator
|
|
Vertex: const: bool(true)
|
|
Vertex: const: int(13)
|
|
Vertex: const: int(42)
|
|
Vertex: const: str("+")
|
|
Vertex: const: str("t")
|