Skip to content

Commit d5a78b1

Browse files
authored
Merge pull request #13313 from QGarchery/develop
fix: global state object in yul formal specification
2 parents 72f1907 + b3fd11a commit d5a78b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/yul.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,10 +663,10 @@ We will use a destructuring notation for the AST nodes.
663663
E(G, L, <var_1, ..., var_n := rhs>: Assignment) =
664664
let G1, L1, v1, ..., vn = E(G, L, rhs)
665665
let L2 be a copy of L1 where L2[$var_i] = vi for i = 1, ..., n
666-
G, L2, regular
666+
G1, L2, regular
667667
E(G, L, <for { i1, ..., in } condition post body>: ForLoop) =
668668
if n >= 1:
669-
let G1, L, mode = E(G, L, i1, ..., in)
669+
let G1, L1, mode = E(G, L, i1, ..., in)
670670
// mode has to be regular or leave due to the syntactic restrictions
671671
if mode is leave then
672672
G1, L1 restricted to variables of L, leave
@@ -686,7 +686,7 @@ We will use a destructuring notation for the AST nodes.
686686
else:
687687
G3, L3, mode = E(G2, L2, post)
688688
if mode is leave:
689-
G2, L3, leave
689+
G3, L3, leave
690690
otherwise
691691
E(G3, L3, for {} condition post body)
692692
E(G, L, break: BreakContinue) =

0 commit comments

Comments
 (0)