Code has been added to clipboard!

Solidity Inline Assembly Example 5

Example
{
    let a := 8
    jump(two)
    one:
        // However, the stack height here is 2 (since a and 7 were pushed),
        // the assembler, though, thinks it is 1, as it reads
        // downwards from the top.
        // Here, accessing the stack variable would lead to errors.
        a := 9
        jump(three)
    two:
        7 // pushing something to the stack
        jump(one)
    three:
}