From b3fd11a66fb6cc5a1142f9e321f5e5b3b36f5a3f Mon Sep 17 00:00:00 2001 From: Quentin Garchery Date: Thu, 28 Jul 2022 11:12:14 +0200 Subject: [PATCH] fix: global state object in yul formal specification --- docs/yul.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/yul.rst b/docs/yul.rst index 8aad4f702..d920f2124 100644 --- a/docs/yul.rst +++ b/docs/yul.rst @@ -663,10 +663,10 @@ We will use a destructuring notation for the AST nodes. E(G, L, : Assignment) = let G1, L1, v1, ..., vn = E(G, L, rhs) let L2 be a copy of L1 where L2[$var_i] = vi for i = 1, ..., n - G, L2, regular + G1, L2, regular E(G, L, : ForLoop) = if n >= 1: - let G1, L, mode = E(G, L, i1, ..., in) + let G1, L1, mode = E(G, L, i1, ..., in) // mode has to be regular or leave due to the syntactic restrictions if mode is leave then G1, L1 restricted to variables of L, leave @@ -686,7 +686,7 @@ We will use a destructuring notation for the AST nodes. else: G3, L3, mode = E(G2, L2, post) if mode is leave: - G2, L3, leave + G3, L3, leave otherwise E(G3, L3, for {} condition post body) E(G, L, break: BreakContinue) =