From acdb2b5c9bc2fcccdde8b9a7ecc9c13f7e3dd859 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 12 Feb 2024 22:37:18 -0800 Subject: [PATCH 01/80] Update disassembling --- compiler/ast/src/functions/mod.rs | 23 ++---- compiler/ast/src/stub/finalize_stub.rs | 102 ------------------------- compiler/ast/src/stub/function_stub.rs | 77 +++++++++++-------- utils/disassembler/src/lib.rs | 15 ++++ 4 files changed, 66 insertions(+), 151 deletions(-) delete mode 100644 compiler/ast/src/stub/finalize_stub.rs diff --git a/compiler/ast/src/functions/mod.rs b/compiler/ast/src/functions/mod.rs index 26ae6c1975..567c530415 100644 --- a/compiler/ast/src/functions/mod.rs +++ b/compiler/ast/src/functions/mod.rs @@ -26,9 +26,6 @@ pub use variant::*; pub mod external; pub use external::*; -pub mod finalize; -pub use finalize::*; - pub mod input; pub use input::*; @@ -49,6 +46,8 @@ use std::fmt; pub struct Function { /// Annotations on the function. pub annotations: Vec, + /// Is this function asynchronous or synchronous? + pub is_async: bool, /// Is this function a transition, inlined, or a regular function?. pub variant: Variant, /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. @@ -61,8 +60,6 @@ pub struct Function { pub output_type: Type, /// The body of the function. pub block: Block, - /// An optional finalize block - pub finalize: Option, /// The entire span of the function definition. pub span: Span, /// The ID of the node. @@ -82,12 +79,12 @@ impl Function { #[allow(clippy::too_many_arguments)] pub fn new( annotations: Vec, + is_async: bool, variant: Variant, identifier: Identifier, input: Vec, output: Vec, block: Block, - finalize: Option, span: Span, id: NodeID, ) -> Self { @@ -103,7 +100,7 @@ impl Function { _ => Type::Tuple(TupleType::new(output.iter().map(get_output_type).collect())), }; - Function { annotations, variant, identifier, input, output, output_type, block, finalize, span, id } + Function { annotations, is_async, variant, identifier, input, output, output_type, block, span, id } } /// Returns function name. @@ -129,28 +126,22 @@ impl Function { _ => self.output.iter().map(|x| x.to_string()).collect::>().join(","), }; write!(f, "({parameters}) -> {returns} {}", self.block)?; - - if let Some(finalize) = &self.finalize { - let parameters = finalize.input.iter().map(|x| x.to_string()).collect::>().join(","); - write!(f, " finalize ({parameters}) {}", finalize.block) - } else { - Ok(()) - } + + Ok(()) } } impl From for Function { fn from(function: FunctionStub) -> Self { - let finalize = function.finalize_stub.map(Finalize::from); Self { annotations: function.annotations, + is_async: false, variant: function.variant, identifier: function.identifier, input: function.input, output: function.output, output_type: function.output_type, block: Block::default(), - finalize, span: function.span, id: function.id, } diff --git a/compiler/ast/src/stub/finalize_stub.rs b/compiler/ast/src/stub/finalize_stub.rs deleted file mode 100644 index 2655c1d37f..0000000000 --- a/compiler/ast/src/stub/finalize_stub.rs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the Leo library. - -// The Leo library is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// The Leo library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with the Leo library. If not, see . - -use crate::{Finalize, FunctionInput, Identifier, Input, Mode, Node, NodeID, Output, TupleType, Type}; - -use leo_span::{Span, Symbol}; - -use core::fmt; -use serde::{Deserialize, Serialize}; -use snarkvm::{ - prelude::{ - FinalizeType::{Future, Plaintext}, - Network, - }, - synthesizer::program::{CommandTrait, FinalizeCore}, -}; - -/// A finalize stub. -#[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Debug)] -pub struct FinalizeStub { - /// The finalize identifier. - pub identifier: Identifier, - /// The finalize block's input parameters. - pub input: Vec, - /// The finalize blocks's output declaration. - pub output: Vec, - /// The finalize block's output type. - pub output_type: Type, - /// The entire span of the finalize stub. - pub span: Span, - /// The ID of the node. - pub id: NodeID, -} - -impl FinalizeStub { - /// Create a new finalize stub. - pub fn new(identifier: Identifier, input: Vec, output: Vec, span: Span, id: NodeID) -> Self { - let output_type = match output.len() { - 0 => Type::Unit, - 1 => output[0].type_(), - _ => Type::Tuple(TupleType::new(output.iter().map(|output| output.type_()).collect())), - }; - - Self { identifier, input, output, output_type, span, id } - } - - pub fn from_snarkvm>( - finalize: &FinalizeCore, - program: Symbol, - ) -> Self { - let mut inputs = Vec::new(); - - finalize.inputs().iter().enumerate().for_each(|(index, input)| { - let arg_name = Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()); - match input.finalize_type() { - Plaintext(val) => inputs.push(Input::Internal(FunctionInput { - identifier: arg_name, - mode: Mode::None, - type_: Type::from_snarkvm(val, program), - span: Default::default(), - id: Default::default(), - })), - Future(_) => {} // Don't need to worry about nested futures - } - }); - - Self::new(Identifier::from(finalize.name()), inputs, Vec::new(), Default::default(), Default::default()) - } -} - -impl From for FinalizeStub { - fn from(finalize: Finalize) -> Self { - Self::new(finalize.identifier, finalize.input, finalize.output, Default::default(), Default::default()) - } -} - -impl fmt::Display for FinalizeStub { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - let parameters = self.input.iter().map(|x| x.to_string()).collect::>().join(","); - let returns = match self.output.len() { - 0 => "()".to_string(), - 1 => self.output[0].to_string(), - _ => format!("({})", self.output.iter().map(|x| x.to_string()).collect::>().join(",")), - }; - write!(f, " finalize {}({parameters}) -> {returns}", self.identifier) - } -} - -crate::simple_node_impl!(FinalizeStub); diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index 0c7e6abed3..b66223c7d2 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -14,32 +14,14 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{ - finalize_stub::*, - Annotation, - CompositeType, - External, - Function, - FunctionInput, - FunctionOutput, - Identifier, - Input, - Mode, - Node, - NodeID, - Output, - ProgramId, - TupleType, - Type, - Variant, -}; +use crate::{Annotation, CompositeType, External, Function, FunctionInput, FunctionOutput, Identifier, Input, Mode, Node, NodeID, Output, ProgramId, TupleType, Type, Variant, FutureType}; use leo_span::{sym, Span, Symbol}; use crate::Type::Composite; use itertools::Itertools; use serde::{Deserialize, Serialize}; use snarkvm::{ - console::program::RegisterType::{ExternalRecord, Future, Plaintext, Record}, + console::program::{RegisterType::{ExternalRecord, Future, Plaintext, Record}, FinalizeType::{Future as FutureFinalizeType, Plaintext as PlaintextFinalizeType}}, prelude::{Network, ValueType}, synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; @@ -50,6 +32,8 @@ use std::fmt; pub struct FunctionStub { /// Annotations on the function. pub annotations: Vec, + /// Is this function asynchronous or synchronous? + pub is_async: bool, /// Is this function a transition, inlined, or a regular function?. pub variant: Variant, /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. @@ -60,8 +44,6 @@ pub struct FunctionStub { pub output: Vec, /// The function's output type. pub output_type: Type, - /// An optional finalize stub - pub finalize_stub: Option, /// The entire span of the function definition. pub span: Span, /// The ID of the node. @@ -81,11 +63,11 @@ impl FunctionStub { #[allow(clippy::too_many_arguments)] pub fn new( annotations: Vec, + is_async: bool, variant: Variant, identifier: Identifier, input: Vec, output: Vec, - finalize_stub: Option, span: Span, id: NodeID, ) -> Self { @@ -101,7 +83,7 @@ impl FunctionStub { _ => Type::Tuple(TupleType::new(output.iter().map(get_output_type).collect())), }; - FunctionStub { annotations, variant, identifier, input, output, output_type, finalize_stub, span, id } + FunctionStub { annotations, is_async, variant, identifier, input, output, output_type, span, id } } /// Returns function name. @@ -133,12 +115,7 @@ impl FunctionStub { }; write!(f, "({parameters}) -> {returns}")?; - if let Some(finalize) = &self.finalize_stub { - let parameters = finalize.input.iter().map(|x| x.to_string()).collect::>().join(","); - write!(f, " finalize ({parameters})") - } else { - Ok(()) - } + Ok(()) } /// Converts from snarkvm function type to leo FunctionStub, while also carrying the parent program name. @@ -204,6 +181,7 @@ impl FunctionStub { Self { annotations: Vec::new(), + is_async: function.finalize_logic().is_some(), variant: Variant::Transition, identifier: Identifier::from(function.name()), input: function @@ -254,12 +232,45 @@ impl FunctionStub { .collect_vec(), output: outputs, output_type, - finalize_stub: function.finalize_logic().map(|f| FinalizeStub::from_snarkvm(f, program)), span: Default::default(), id: Default::default(), } } + pub fn from_finalize, Command: CommandTrait>( + function: &FunctionCore, + name: Symbol, + ) -> Self { + Self { + annotations: Vec::new(), + is_async: true, + variant: Variant::Transition, + identifier: Identifier::new(name, Default::default()), + input: function.finalize_logic().unwrap().inputs().iter().enumerate().map(|(index, input)| { + Input::Internal(FunctionInput { + identifier: Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()), + mode: Mode::Public, + type_: match input.finalize_type() { + PlaintextFinalizeType(val) => Type::from_snarkvm(&val, name), + FutureFinalizeType(_) => Type::Future(Default::default()), + }, + span: Default::default(), + id: Default::default(), + }) + }).collect_vec(), + output: vec![Output::Internal(FunctionOutput { + mode: Mode::Public, + type_: Type::Future(FutureType { inputs: None} ), + span: Default::default(), + id: 0, + }) + ], + output_type: Type::Future(FutureType { inputs: None}), + span: Default::default(), + id: 0, + } + } + pub fn from_closure>( closure: &ClosureCore, program: Symbol, @@ -293,6 +304,7 @@ impl FunctionStub { }; Self { annotations: Vec::new(), + is_async: false, variant: Variant::Standard, identifier: Identifier::from(closure.name()), input: closure @@ -319,7 +331,6 @@ impl FunctionStub { output_type, span: Default::default(), id: Default::default(), - finalize_stub: None, } } } @@ -328,12 +339,12 @@ impl From for FunctionStub { fn from(function: Function) -> Self { Self { annotations: function.annotations, + is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, output: function.output, output_type: function.output_type, - finalize_stub: function.finalize.map(FinalizeStub::from), span: function.span, id: function.id, } diff --git a/utils/disassembler/src/lib.rs b/utils/disassembler/src/lib.rs index 0811cf5fc3..d3ddf5a292 100644 --- a/utils/disassembler/src/lib.rs +++ b/utils/disassembler/src/lib.rs @@ -23,6 +23,7 @@ type CurrentNetwork = Testnet3; use leo_ast::{Composite, FunctionStub, Identifier, Mapping, ProgramId, Stub}; use leo_errors::UtilError; +use leo_span::Symbol; pub fn disassemble, Command: CommandTrait>( program: ProgramCore, @@ -65,6 +66,20 @@ pub fn disassemble, Command: Comman (Identifier::from(id).name, FunctionStub::from_function_core(function, program_id.name.name)) }) .collect_vec(), + program + .functions() + .iter() + .filter_map(|(id, function)| match function.finalize_logic() { + Some(f) => { + let name = Symbol::intern(&format!( + "finalize/{}", + Symbol::intern(&Identifier::from(id).name.to_string()) + )); + Some((name, FunctionStub::from_finalize(f, name))) + } + None => None, + }) + .collect_vec(), ] .concat(), span: Default::default(), From 863a54391cf4a4d336b20fb2b1057d3a34479fa8 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 12 Feb 2024 22:40:10 -0800 Subject: [PATCH 02/80] Add "Future", "Await", "Async", remove "Finalize", "then" tokens --- compiler/parser/src/tokenizer/lexer.rs | 4 ++-- compiler/parser/src/tokenizer/mod.rs | 5 ++--- compiler/parser/src/tokenizer/token.rs | 14 ++++++-------- compiler/span/src/symbol.rs | 2 ++ 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/compiler/parser/src/tokenizer/lexer.rs b/compiler/parser/src/tokenizer/lexer.rs index 506b2ac8ae..b1927adace 100644 --- a/compiler/parser/src/tokenizer/lexer.rs +++ b/compiler/parser/src/tokenizer/lexer.rs @@ -384,6 +384,7 @@ impl Token { "assert" => Token::Assert, "assert_eq" => Token::AssertEq, "assert_neq" => Token::AssertNeq, + "async" => Token::Async, "block" => Token::Block, "bool" => Token::Bool, "console" => Token::Console, @@ -392,7 +393,7 @@ impl Token { "else" => Token::Else, "false" => Token::False, "field" => Token::Field, - "finalize" => Token::Finalize, + "future" => Token::Future, "for" => Token::For, "function" => Token::Function, "group" => Token::Group, @@ -418,7 +419,6 @@ impl Token { "self" => Token::SelfLower, "string" => Token::String, "struct" => Token::Struct, - "then" => Token::Then, "transition" => Token::Transition, "true" => Token::True, "u8" => Token::U8, diff --git a/compiler/parser/src/tokenizer/mod.rs b/compiler/parser/src/tokenizer/mod.rs index 6942e78a22..d5c3428c2d 100644 --- a/compiler/parser/src/tokenizer/mod.rs +++ b/compiler/parser/src/tokenizer/mod.rs @@ -93,9 +93,9 @@ mod tests { else false field - finalize for function + future group i128 i64 @@ -118,7 +118,6 @@ mod tests { string struct test - then transition true u128 @@ -170,7 +169,7 @@ mod tests { assert_eq!( output, - r#""test" "test{}test" "test{}" "{}test" "test{" "test}" "test{test" "test}test" "te{{}}" test_ident 12345 address as assert assert_eq assert_neq async bool const else false field finalize for function group i128 i64 i32 i16 i8 if in inline input let mut private program public return scalar self signature string struct test then transition true u128 u64 u32 u16 u8 console ! != && ( ) * ** + , - -> => _ . .. / : ; < <= = == > >= [ ] { { } } || ? @ // test + r#""test" "test{}test" "test{}" "{}test" "test{" "test}" "test{test" "test}test" "te{{}}" test_ident 12345 address as assert assert_eq assert_neq async bool const else false field for function future group i128 i64 i32 i16 i8 if in inline input let mut private program public return scalar self signature string struct test transition true u128 u64 u32 u16 u8 console ! != && ( ) * ** + , - -> => _ . .. / : ; < <= = == > >= [ ] { { } } || ? @ // test /* test */ // "# ); }); diff --git a/compiler/parser/src/tokenizer/token.rs b/compiler/parser/src/tokenizer/token.rs index aa7cebdefb..2d30fe714a 100644 --- a/compiler/parser/src/tokenizer/token.rs +++ b/compiler/parser/src/tokenizer/token.rs @@ -113,13 +113,14 @@ pub enum Token { Assert, AssertEq, AssertNeq, + Async, Console, Const, Constant, Else, - Finalize, For, Function, + Future, If, Import, In, @@ -134,7 +135,6 @@ pub enum Token { Return, SelfLower, Struct, - Then, Transition, // Meta Tokens @@ -155,6 +155,7 @@ pub const KEYWORD_TOKENS: &[Token] = &[ Token::Assert, Token::AssertEq, Token::AssertNeq, + Token::Async, Token::Bool, Token::Console, Token::Const, @@ -162,9 +163,9 @@ pub const KEYWORD_TOKENS: &[Token] = &[ Token::Else, Token::False, Token::Field, - Token::Finalize, Token::For, Token::Function, + Token::Future, Token::Group, Token::I8, Token::I16, @@ -187,7 +188,6 @@ pub const KEYWORD_TOKENS: &[Token] = &[ Token::Scalar, Token::String, Token::Struct, - Token::Then, Token::Transition, Token::True, Token::U8, @@ -220,7 +220,6 @@ impl Token { Token::Else => sym::Else, Token::False => sym::False, Token::Field => sym::field, - Token::Finalize => sym::finalize, Token::For => sym::For, Token::Function => sym::function, Token::Group => sym::group, @@ -246,7 +245,6 @@ impl Token { Token::SelfLower => sym::SelfLower, Token::String => sym::string, Token::Struct => sym::Struct, - Token::Then => sym::then, Token::Transition => sym::transition, Token::True => sym::True, Token::U8 => sym::u8, @@ -349,13 +347,14 @@ impl fmt::Display for Token { Assert => write!(f, "assert"), AssertEq => write!(f, "assert_eq"), AssertNeq => write!(f, "assert_neq"), + Async => write!(f, "async"), Console => write!(f, "console"), Const => write!(f, "const"), Constant => write!(f, "constant"), Else => write!(f, "else"), - Finalize => write!(f, "finalize"), For => write!(f, "for"), Function => write!(f, "function"), + Future => write!(f, "future"), If => write!(f, "if"), Import => write!(f, "import"), In => write!(f, "in"), @@ -368,7 +367,6 @@ impl fmt::Display for Token { Return => write!(f, "return"), SelfLower => write!(f, "self"), Struct => write!(f, "struct"), - Then => write!(f, "then"), Transition => write!(f, "transition"), Block => write!(f, "block"), Leo => write!(f, "leo"), diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index d60e4ba391..cec9833d4b 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -202,6 +202,7 @@ symbols! { to_x_coordinate, to_y_coordinate, verify, + Await: "await", // types address, @@ -213,6 +214,7 @@ symbols! { i32, i64, i128, + Future: "future", record, scalar, signature, From d98d27be7c09e1b2f1241f4a0c878f943adf4a2d Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 12 Feb 2024 22:41:46 -0800 Subject: [PATCH 03/80] Update parser --- compiler/ast/src/functions/core_function.rs | 6 +- compiler/ast/src/functions/finalize.rs | 88 --------------------- compiler/ast/src/statement/return_.rs | 2 - compiler/ast/src/types/future.rs | 41 ++++++++++ compiler/ast/src/types/mod.rs | 3 + compiler/ast/src/types/type_.rs | 5 +- compiler/parser/src/parser/expression.rs | 10 +++ compiler/parser/src/parser/file.rs | 45 ++--------- compiler/parser/src/parser/statement.rs | 21 +---- compiler/parser/src/parser/type_.rs | 2 + 10 files changed, 74 insertions(+), 149 deletions(-) delete mode 100644 compiler/ast/src/functions/finalize.rs create mode 100644 compiler/ast/src/types/future.rs diff --git a/compiler/ast/src/functions/core_function.rs b/compiler/ast/src/functions/core_function.rs index 21bc740014..22bdfe8810 100644 --- a/compiler/ast/src/functions/core_function.rs +++ b/compiler/ast/src/functions/core_function.rs @@ -288,6 +288,7 @@ pub enum CoreFunction { GroupToYCoordinate, SignatureVerify, + FutureAwait, } impl CoreFunction { @@ -564,6 +565,7 @@ impl CoreFunction { (sym::group, sym::to_y_coordinate) => Self::GroupToYCoordinate, (sym::signature, sym::verify) => Self::SignatureVerify, + (sym::Future, sym::Await) => Self::FutureAwait, _ => return None, }) } @@ -841,13 +843,15 @@ impl CoreFunction { Self::GroupToYCoordinate => 1, Self::SignatureVerify => 3, + Self::FutureAwait => 0, } } /// Returns whether or not this function is finalize command. pub fn is_finalize_command(&self) -> bool { match self { - CoreFunction::ChaChaRandAddress + CoreFunction::FutureAwait + | CoreFunction::ChaChaRandAddress | CoreFunction::ChaChaRandBool | CoreFunction::ChaChaRandField | CoreFunction::ChaChaRandGroup diff --git a/compiler/ast/src/functions/finalize.rs b/compiler/ast/src/functions/finalize.rs deleted file mode 100644 index e792467a15..0000000000 --- a/compiler/ast/src/functions/finalize.rs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the Leo library. - -// The Leo library is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// The Leo library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with the Leo library. If not, see . - -use crate::{Block, FinalizeStub, Identifier, Input, Node, NodeID, Output, TupleType, Type}; - -use leo_span::Span; - -use core::fmt; -use serde::{Deserialize, Serialize}; - -/// A finalize block. -#[derive(Clone, Serialize, Deserialize, PartialEq, Eq, Debug)] -pub struct Finalize { - /// The finalize identifier. - pub identifier: Identifier, - /// The finalize block's input parameters. - pub input: Vec, - /// The finalize blocks's output declaration. - pub output: Vec, - /// The finalize block's output type. - pub output_type: Type, - /// The body of the function. - pub block: Block, - /// The entire span of the finalize block. - pub span: Span, - /// The ID of the node. - pub id: NodeID, -} - -impl Finalize { - /// Create a new finalize block. - pub fn new( - identifier: Identifier, - input: Vec, - output: Vec, - block: Block, - span: Span, - id: NodeID, - ) -> Self { - let output_type = match output.len() { - 0 => Type::Unit, - 1 => output[0].type_(), - _ => Type::Tuple(TupleType::new(output.iter().map(|output| output.type_()).collect())), - }; - - Self { identifier, input, output, output_type, block, span, id } - } -} - -impl fmt::Display for Finalize { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - let parameters = self.input.iter().map(|x| x.to_string()).collect::>().join(","); - let returns = match self.output.len() { - 0 => "()".to_string(), - 1 => self.output[0].to_string(), - _ => format!("({})", self.output.iter().map(|x| x.to_string()).collect::>().join(",")), - }; - write!(f, " finalize {}({parameters}) -> {returns} {}", self.identifier, self.block) - } -} - -impl From for Finalize { - fn from(finalize_stub: FinalizeStub) -> Self { - Self::new( - finalize_stub.identifier, - finalize_stub.input, - finalize_stub.output, - Block::default(), - finalize_stub.span, - finalize_stub.id, - ) - } -} - -crate::simple_node_impl!(Finalize); diff --git a/compiler/ast/src/statement/return_.rs b/compiler/ast/src/statement/return_.rs index 307f04264c..1609341585 100644 --- a/compiler/ast/src/statement/return_.rs +++ b/compiler/ast/src/statement/return_.rs @@ -25,8 +25,6 @@ use std::fmt; pub struct ReturnStatement { /// The expression to return to the function caller. pub expression: Expression, - /// Arguments to the finalize block. - pub finalize_arguments: Option>, /// The span of `return expression` excluding the semicolon. pub span: Span, /// The ID of the node. diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs new file mode 100644 index 0000000000..44ce3f1a7f --- /dev/null +++ b/compiler/ast/src/types/future.rs @@ -0,0 +1,41 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use crate::TupleType; + +use serde::{Deserialize, Serialize}; +use std::fmt; + +/// A future type consisting of the type of the inputs. +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +pub struct FutureType { + // Optional type specification of inputs. + pub inputs: Option +} + +impl Default for FutureType { + fn default() -> Self { + Self { inputs: None } + } +} +impl fmt::Display for crate::FutureType { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + match &self.inputs { + Some(inputs) => write!(f, "future<{inputs}>", inputs = inputs), + None => write!(f, "future") + } + } +} \ No newline at end of file diff --git a/compiler/ast/src/types/mod.rs b/compiler/ast/src/types/mod.rs index 85a981e09b..94cc7ca775 100644 --- a/compiler/ast/src/types/mod.rs +++ b/compiler/ast/src/types/mod.rs @@ -20,6 +20,9 @@ pub use array::*; pub mod core_constant; pub use core_constant::*; +pub mod future; +pub use future::*; + pub mod integer_type; pub use integer_type::*; diff --git a/compiler/ast/src/types/type_.rs b/compiler/ast/src/types/type_.rs index 770cd926e5..f72c27711b 100644 --- a/compiler/ast/src/types/type_.rs +++ b/compiler/ast/src/types/type_.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{common, ArrayType, CompositeType, Identifier, IntegerType, MappingType, TupleType}; +use crate::{common, ArrayType, CompositeType, Identifier, IntegerType, MappingType, TupleType, FutureType}; use itertools::Itertools; use leo_span::Symbol; @@ -39,6 +39,8 @@ pub enum Type { Composite(CompositeType), /// The `field` type. Field, + /// The `future` type. + Future(FutureType), /// The `group` type. Group, /// A reference to a built in type. @@ -132,6 +134,7 @@ impl fmt::Display for Type { Type::Array(ref array_type) => write!(f, "{array_type}"), Type::Boolean => write!(f, "boolean"), Type::Field => write!(f, "field"), + Type::Future(ref future_type) => write!(f, "{future_type}"), Type::Group => write!(f, "group"), Type::Identifier(ref variable) => write!(f, "{variable}"), Type::Integer(ref integer_type) => write!(f, "{integer_type}"), diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index aaaffdf472..c3d9d88a0d 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -357,6 +357,16 @@ impl ParserContext<'_> { span, id: self.node_builder.next_id(), }))) + } else if let (0, Some(CoreFunction::FutureAwait)) = + (args.len(), CoreFunction::from_symbols(sym::Future, method.name)) + { + Ok(Expression::Access(AccessExpression::AssociatedFunction(AssociatedFunction { + variant: method, + name: Identifier::new(sym::Future, self.node_builder.next_id()), + arguments: Vec::new(), + span, + id: self.node_builder.next_id(), + }))) } else { // Attempt to parse the method call as a mapping operation. match (args.len(), CoreFunction::from_symbols(sym::Mapping, method.name)) { diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 4da2bdc468..1428f45e3e 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -131,7 +131,7 @@ impl ParserContext<'_> { let (id, mapping) = self.parse_mapping()?; mappings.push((id, mapping)); } - Token::At | Token::Function | Token::Transition | Token::Inline => { + Token::At | Token::Async | Token::Function | Token::Transition | Token::Inline => { let (id, function) = self.parse_function()?; functions.push((id, function)); } @@ -389,8 +389,11 @@ impl ParserContext<'_> { while self.look_ahead(0, |t| &t.token) == &Token::At { annotations.push(self.parse_annotation()?) } + // Parse a potential async signifier. + let (is_async, start_async) = + if self.token.token == Token::Async { (true, self.expect(&Token::Async)?) } else { (false, Span::dummy()) }; // Parse ` IDENT`, where `` is `function`, `transition`, or `inline`. - let (variant, start) = match self.token.token { + let (variant, mut start) = match self.token.token { Token::Inline => (Variant::Inline, self.expect(&Token::Inline)?), Token::Function => (Variant::Standard, self.expect(&Token::Function)?), Token::Transition => (Variant::Transition, self.expect(&Token::Transition)?), @@ -425,52 +428,18 @@ impl ParserContext<'_> { _ => self.unexpected("block or semicolon")?, }; - // Parse the `finalize` block if it exists. - let finalize = match self.eat(&Token::Finalize) { - false => None, - true => { - // Get starting span. - let start = self.prev_token.span; - - // Parse the identifier. - let identifier = self.expect_identifier()?; - - // Parse parameters. - let (input, ..) = self.parse_paren_comma_list(|p| p.parse_input().map(Some))?; - - // Parse return type. - let output = match self.eat(&Token::Arrow) { - false => vec![], - true => { - self.disallow_struct_construction = true; - let output = match self.peek_is_left_par() { - true => self.parse_paren_comma_list(|p| p.parse_output().map(Some))?.0, - false => vec![self.parse_output()?], - }; - self.disallow_struct_construction = false; - output - } - }; - - // Parse the finalize body. - let block = self.parse_block()?; - let span = start + block.span; - - Some(Finalize::new(identifier, input, output, block, span, self.node_builder.next_id())) - } - }; + let span = if start_async == Span::dummy() { start + block.span } else { start_async + block.span }; - let span = start + block.span; Ok(( name.name, Function::new( annotations, + is_async, variant, name, inputs, output, block, - finalize, span, self.node_builder.next_id(), ), diff --git a/compiler/parser/src/parser/statement.rs b/compiler/parser/src/parser/statement.rs index c79d75c14d..fa7d7ab845 100644 --- a/compiler/parser/src/parser/statement.rs +++ b/compiler/parser/src/parser/statement.rs @@ -48,7 +48,6 @@ impl ParserContext<'_> { Token::Const => Ok(Statement::Const(self.parse_const_declaration_statement()?)), Token::LeftCurly => Ok(Statement::Block(self.parse_block()?)), Token::Console => Err(ParserError::console_statements_are_not_yet_supported(self.token.span).into()), - Token::Finalize => Err(ParserError::finalize_statements_are_deprecated(self.token.span).into()), _ => Ok(self.parse_assign_statement()?), } } @@ -181,31 +180,15 @@ impl ParserContext<'_> { let expression = match self.token.token { // If the next token is a semicolon, implicitly return a unit expression, `()`. - Token::Semicolon | Token::Then => { + Token::Semicolon => { Expression::Unit(UnitExpression { span: self.token.span, id: self.node_builder.next_id() }) } // Otherwise, attempt to parse an expression. _ => self.parse_expression()?, }; - - let finalize_args = match self.token.token { - Token::Then => { - // Parse `then`. - self.expect(&Token::Then)?; - // Parse `finalize`. - self.expect(&Token::Finalize)?; - // Parse finalize arguments if they exist. - match self.token.token { - Token::Semicolon => Some(vec![]), - Token::LeftParen => Some(self.parse_paren_comma_list(|p| p.parse_expression().map(Some))?.0), - _ => Some(vec![self.parse_expression()?]), - } - } - _ => None, - }; let end = self.expect(&Token::Semicolon)?; let span = start + end; - Ok(ReturnStatement { span, expression, finalize_arguments: finalize_args, id: self.node_builder.next_id() }) + Ok(ReturnStatement { span, expression, id: self.node_builder.next_id() }) } /// Returns a [`ConditionalStatement`] AST node if the next tokens represent a conditional statement. diff --git a/compiler/parser/src/parser/type_.rs b/compiler/parser/src/parser/type_.rs index a84997b696..1cc5c072e5 100644 --- a/compiler/parser/src/parser/type_.rs +++ b/compiler/parser/src/parser/type_.rs @@ -22,6 +22,7 @@ pub(super) const TYPE_TOKENS: &[Token] = &[ Token::Address, Token::Bool, Token::Field, + Token::Future, Token::Group, Token::Scalar, Token::Signature, @@ -65,6 +66,7 @@ impl ParserContext<'_> { Token::Address => Type::Address, Token::Bool => Type::Boolean, Token::Field => Type::Field, + Token::Future => Type::Future(Default::default()), Token::Group => Type::Group, Token::Scalar => Type::Scalar, Token::Signature => Type::Signature, From e5f98168f3bd52771284f1e59f6a5143966a7132 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:26:51 -0800 Subject: [PATCH 04/80] Small compatibility changes --- .../common/symbol_table/function_symbol.rs | 11 ++---- .../passes/src/common/symbol_table/mod.rs | 2 +- .../errors/type_checker/type_checker_error.rs | 39 ++++++++++++++++++- 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/compiler/passes/src/common/symbol_table/function_symbol.rs b/compiler/passes/src/common/symbol_table/function_symbol.rs index 1d3c7307f7..9afa9bb0fa 100644 --- a/compiler/passes/src/common/symbol_table/function_symbol.rs +++ b/compiler/passes/src/common/symbol_table/function_symbol.rs @@ -35,6 +35,8 @@ pub struct FinalizeData { pub struct FunctionSymbol { /// The index associated with the scope in the parent symbol table. pub(crate) id: usize, + /// Whether the function is asynchronous or not. + pub(crate) is_async: bool, /// The output type of the function. pub(crate) output_type: Type, /// Is this function a transition, inlined, or a regular function?. @@ -43,22 +45,17 @@ pub struct FunctionSymbol { pub(crate) _span: Span, /// The inputs to the function. pub(crate) input: Vec, - /// Metadata associated with the finalize block. - pub(crate) finalize: Option, } impl SymbolTable { pub(crate) fn new_function_symbol(id: usize, func: &Function) -> FunctionSymbol { FunctionSymbol { id, + is_async: func.is_async, output_type: func.output_type.clone(), variant: func.variant, _span: func.span, - input: func.input.clone(), - finalize: func.finalize.as_ref().map(|finalize| FinalizeData { - input: finalize.input.clone(), - output_type: finalize.output_type.clone(), - }), + input: func.input.clone() } } } diff --git a/compiler/passes/src/common/symbol_table/mod.rs b/compiler/passes/src/common/symbol_table/mod.rs index 9335a4684b..72f68d2ad6 100644 --- a/compiler/passes/src/common/symbol_table/mod.rs +++ b/compiler/passes/src/common/symbol_table/mod.rs @@ -259,12 +259,12 @@ mod tests { let function = Symbol::intern("transfer_public"); let insert = Function { annotations: Vec::new(), + is_async: false, id: 0, output_type: Type::Address, variant: Variant::Inline, span: Default::default(), input: Vec::new(), - finalize: None, identifier: Identifier::new(Symbol::intern("transfer_public"), Default::default()), output: vec![], block: Default::default(), diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index e228e0feb0..d4d15f086c 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -536,7 +536,7 @@ create_messages!( @formatted function_cannot_input_or_output_a_record { args: (), - msg: format!("A `function` cannot have a record as input or output."), + msg: format!("Only `transition` functions can have a record as input or output."), help: None, } @@ -751,7 +751,7 @@ create_messages!( @formatted no_transitions { args: (), - msg: format!("A program must have at least one transition function."), + msg: "A program must have at least one transition function.".to_string(), help: None, } @@ -768,4 +768,39 @@ create_messages!( msg: format!("The definition for `{struct_}` in program `{program_1}.aleo` does not match the definition in program `{program_2}.aleo`"), help: Some("Check that the struct definition in the current program matches the definition in the imported program.".to_string()), } + + @formatted + async_function_must_return_single_future { + args: (), + msg: "An async function must return a single future.".to_string(), + help: Some("Example: `async function foo() -> Future {...}`".to_string()), + } + + @formatted + async_transition_must_return_future_as_first_output { + args: (), + msg: "An async transition must return a future as its first output.".to_string(), + help: Some("Each async transition must make a call to an async function that returns a future. Return that future at the end of the transition function.".to_string()), + } + + @formatted + must_await_all_futures { + args: (never_awaited: impl Display), + msg: format!("All futures must be awaited before the function returns. The following were never awaited: {never_awaited}"), + help: Some("Example: `async function foo(f: Future) -> Future { f.await(); }`".to_string()), + } + + @formatted + must_propagate_all_futures { + args: (never_propagated: impl Display), + msg: format!("All futures generated from external transition calls must be inserted into an async function call in the order they were called. The following were never were: {never_propagated}"), + help: Some("Example: `async transition foo() -> Future { let a: Future = b.aleo/bar(); return await_futures(a); }`".to_string()), + } + + @formatted + async_transition_must_call_async_function { + args: (), + msg: "An async transition must call an async function.".to_string(), + help: Some("Example: `async transition foo() -> Future { let a: Future = bar(); return await_futures(a); }`".to_string()), + } ); From 118b9c4b8278a3ed84aaa940860fd4163512b8d8 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:33:54 -0800 Subject: [PATCH 05/80] Deprecate finalize when TYC program --- .../passes/src/type_checking/check_program.rs | 82 ++++++------------- 1 file changed, 25 insertions(+), 57 deletions(-) diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index eeadccf871..a31d33afd0 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -23,6 +23,7 @@ use leo_span::sym; use snarkvm::console::network::{Network, Testnet3}; use std::collections::HashSet; +use leo_ast::Input::{External, Internal}; // TODO: Cleanup logic for tuples. @@ -84,19 +85,6 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Exit the scope for the function's parameters and body. self.exit_scope(scope_index); - // Check that the finalize scope is valid - if input.finalize_stub.is_some() { - // Create a new child scope for the finalize block. - let scope_index = self.create_child_scope(); - - // Check the finalize signature. - let function = &Function::from(input.clone()); - self.check_finalize_signature(function.finalize.as_ref().unwrap(), function); - - // Exit the scope for the finalize block. - self.exit_scope(scope_index); - } - // Exit the function's scope. self.exit_scope(function_index); } @@ -277,7 +265,10 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::unknown_annotation(annotation, annotation.span)) } + // Set type checker variables for function variant details. self.variant = Some(function.variant); + self.is_finalize = function.variant == Variant::Standard && function.is_async; + self.is_finalize_caller = function.variant == Variant::Transition && function.is_async; // Lookup function metadata in the symbol table. // Note that this unwrap is safe since function metadata is stored in a prior pass. @@ -294,9 +285,6 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // The function's body does not have a return statement. self.has_return = false; - // The function's body does not have a finalize statement. - self.has_finalize = false; - // Store the name of the function. self.function = Some(function.name()); @@ -306,6 +294,25 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Query helper function to type check function parameters and outputs. self.check_function_signature(function); + if self.is_finalize { + // Async functions cannot have empty blocks + if function.block.statements.is_empty() { + self.emit_err(TypeCheckerError::finalize_block_must_not_be_empty(function.block.span)); + } + + // Initialize the list of input futures. Each one must be awaited before the end of the function. + self.to_await = function.input.iter().filter_map(|input| match input { + Internal(parameter) => { + if matches!(parameter.type_, Type::Future(ty)) { + Some(parameter.identifier.name) + } else { + None + } + } + External(_) => None, + }).collect(); + } + self.visit_block(&function.block); // If the function has a return type, then check that it has a return. @@ -313,52 +320,13 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::missing_return(function.span)); } - // If the function has a finalize block, then check that it has at least one finalize statement. - if function.finalize.is_some() && !self.has_finalize { - self.emit_err(TypeCheckerError::missing_finalize(function.span)); - } - // Exit the scope for the function's parameters and body. self.exit_scope(scope_index); - // Traverse and check the finalize block if it exists. - if let Some(finalize) = &function.finalize { - self.is_finalize = true; - // The function's finalize block does not have a return statement. - self.has_return = false; - // The function's finalize block does not have a finalize statement. - self.has_finalize = false; - - // Create a new child scope for the finalize block. - let scope_index = self.create_child_scope(); - - // Check the finalize signature. - self.check_finalize_signature(finalize, function); - - // TODO: Remove if this restriction is relaxed at Aleo instructions level - // Check that the finalize block is not empty. - if finalize.block.statements.is_empty() { - self.emit_err(TypeCheckerError::finalize_block_must_not_be_empty(finalize.span)); - } - - // Type check the finalize block. - self.visit_block(&finalize.block); - - // If the function has a return type, then check that it has a return. - if finalize.output_type != Type::Unit && !self.has_return { - self.emit_err(TypeCheckerError::missing_return(finalize.span)); - } - - // Exit the scope for the finalize block. - self.exit_scope(scope_index); - - self.is_finalize = false; - } - // Exit the function's scope. self.exit_scope(function_index); - // Unset the `variant`. - self.variant = None; + // Unset the function variant variables. + (self.variant, self.is_finalize_caller, self.is_finalize) = (None, false, false); } } From d8c12ffa49caf90075b11ec89a7616e3ef43e12d Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:46:59 -0800 Subject: [PATCH 06/80] New struct fields to track function state --- .../passes/src/type_checking/check_statements.rs | 13 +++++++++++++ compiler/passes/src/type_checking/checker.rs | 14 +++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index ad06908ffc..e47fa732dc 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -14,6 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . +use indexmap::IndexSet; use crate::{TypeChecker, VariableSymbol, VariableType}; use itertools::Itertools; @@ -90,6 +91,9 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } fn visit_block(&mut self, input: &'a Block) { + // Reset environment flag. + if self.is_finalize_caller { self.has_called_finalize = false; self.futures = IndexSet::new() }; + // Create a new scope for the then-block. let scope_index = self.create_child_scope(); @@ -97,6 +101,15 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Exit the scope for the then-block. self.exit_scope(scope_index); + + // Must have awaited all futures. + if self.is_finalize && !self.to_await.is_empty() { + self.emit_err(TypeCheckerError::must_await_all_futures(&self.to_await, input.span())); + } + // Check that an async function call was made to propagate futures to a finalize block. + else if self.is_finalize_caller && !self.has_called_finalize { + self.emit_err(TypeCheckerError::async_transition_must_call_async_function(input.span())); + } } fn visit_conditional(&mut self, input: &'a ConditionalStatement) { diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 7cbabd93df..70a474cd30 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -21,7 +21,6 @@ use leo_ast::{ CompositeType, CoreConstant, CoreFunction, - Finalize, Function, Identifier, IntegerType, @@ -39,6 +38,7 @@ use snarkvm::console::network::{Network, Testnet3}; use itertools::Itertools; use std::cell::RefCell; +use indexmap::{IndexMap, IndexSet}; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -57,8 +57,6 @@ pub struct TypeChecker<'a> { pub(crate) variant: Option, /// Whether or not the function that we are currently traversing has a return statement. pub(crate) has_return: bool, - /// Whether or not the function that we are currently traversing invokes the finalize block. - pub(crate) has_finalize: bool, /// Whether or not we are currently traversing a finalize block. pub(crate) is_finalize: bool, /// Whether or not we are currently traversing a return statement. @@ -67,6 +65,16 @@ pub struct TypeChecker<'a> { pub(crate) program_name: Option, /// Whether or not we are currently traversing a stub. pub(crate) is_stub: bool, + /// Whether or not we are in an async transition function. + pub(crate) is_finalize_caller: bool, + /// The futures that must be awaited. + pub(crate) to_await: IndexSet, + /// The futures that must be propagated to an async function. + pub(crate) futures: IndexSet, + /// Whether the finalize caller has called the finalize function. + pub(crate) has_called_finalize: bool, + /// Mapping from async function name to the inferred input types. + pub(crate) future_map: IndexMap> } const ADDRESS_TYPE: Type = Type::Address; From 839ffddc7e21c7d0a75328633d8b2e8b9dc6900b Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:47:44 -0800 Subject: [PATCH 07/80] Combine finalize and function variant signature checks --- compiler/passes/src/type_checking/checker.rs | 157 +++++-------------- 1 file changed, 39 insertions(+), 118 deletions(-) diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 70a474cd30..b62410fcb4 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -137,11 +137,15 @@ impl<'a> TypeChecker<'a> { function: None, variant: None, has_return: false, - has_finalize: false, is_finalize: false, is_return: false, program_name: None, is_stub: true, + is_finalize_caller: false, + to_await: IndexSet::new(), + futures: IndexSet::new(), + has_called_finalize: false, + future_map: IndexMap::new(), } } @@ -1219,6 +1223,24 @@ impl<'a> TypeChecker<'a> { if matches!(input_var.type_(), Type::Tuple(_)) { self.emit_err(TypeCheckerError::function_cannot_take_tuple_as_input(input_var.span())) } + // Check that the input parameter is not a record. + else if let Type::Composite(struct_) = input_var.type_() { + // Note that this unwrap is safe, as the type is defined. + if !matches!(function.variant, Variant::Transition) && self + .symbol_table + .borrow() + .lookup_struct(struct_.program.unwrap(), struct_.id.name) + .unwrap() + .is_record + { + self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(input_var.span())) + } + } + + // Check that the finalize input parameter is not constant or private. + if self.is_finalize && (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { + self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); + } // Note that this unwrap is safe since we assign to `self.variant` above. match self.variant.unwrap() { @@ -1233,32 +1255,21 @@ impl<'a> TypeChecker<'a> { _ => {} // Do nothing. } - // If the function is not a transition function, then it cannot have a record as input - if let Type::Composite(struct_) = input_var.type_() { - if let Some(val) = self.symbol_table.borrow().lookup_struct(struct_.program.unwrap(), struct_.id.name) { - if val.is_record && !matches!(function.variant, Variant::Transition) { - self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(input_var.span())); - } - } - } - - // Add non-stub inputs to the symbol table. - if !self.is_stub { - if let Err(err) = - self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { - type_: input_var.type_(), - span: input_var.identifier().span(), - declaration: VariableType::Input(input_var.mode()), - }) - { - self.handler.emit_err(err); - } + // Add function inputs to the symbol table. + if let Err(err) = + self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { + type_: input_var.type_(), + span: input_var.identifier().span(), + declaration: VariableType::Input(input_var.mode()), + }) + { + self.handler.emit_err(err); } }); // Type check the function's return type. // Note that checking that each of the component types are defined is sufficient to check that `output_type` is defined. - function.output.iter().for_each(|output| { + function.output.iter().enumerate().for_each(|(index,output)| { match output { Output::External(external) => { // If the function is not a transition function, then it cannot output a record. @@ -1266,8 +1277,6 @@ impl<'a> TypeChecker<'a> { if !matches!(function.variant, Variant::Transition) { self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(external.span())); } - // Otherwise, do not type check external record function outputs. - // TODO: Verify that this is not needed when the import system is updated. } Output::Internal(function_output) => { // Check that the type of output is defined. @@ -1297,105 +1306,17 @@ impl<'a> TypeChecker<'a> { if function_output.mode == Mode::Constant { self.emit_err(TypeCheckerError::cannot_have_constant_output_mode(function_output.span)); } - } - } - }); - } - - pub(crate) fn check_finalize_signature(&mut self, finalize: &Finalize, function: &Function) { - // Check that the function is a transition function. - if !matches!(function.variant, Variant::Transition) { - self.emit_err(TypeCheckerError::only_transition_functions_can_have_finalize(finalize.span)); - } - - // Check that the name of the finalize block matches the function name. - if function.identifier.name != finalize.identifier.name { - self.emit_err(TypeCheckerError::finalize_name_mismatch( - function.identifier.name, - finalize.identifier.name, - finalize.span, - )); - } - - finalize.input.iter().for_each(|input_var| { - // Check that the type of input parameter is defined. - if self.assert_type_is_valid(&input_var.type_(), input_var.span()) { - // Check that the input parameter is not a tuple. - if matches!(input_var.type_(), Type::Tuple(_)) { - self.emit_err(TypeCheckerError::finalize_cannot_take_tuple_as_input(input_var.span())) - } - // Check that the input parameter is not a record. - if let Type::Composite(struct_) = input_var.type_() { - // Note that this unwrap is safe, as the type is defined. - if self - .symbol_table - .borrow() - .lookup_struct(struct_.program.unwrap(), struct_.id.name) - .unwrap() - .is_record - { - self.emit_err(TypeCheckerError::finalize_cannot_take_record_as_input(input_var.span())) + // An async function must return a single future. + if self.is_finalize && (index > 0 || !matches!(function_output.type_, Type::Future(_))) { + self.emit_err(TypeCheckerError::async_function_must_return_single_future(function_output.span)); } - } - // Check that the input parameter is not constant or private. - if input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private { - self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); - } - // Add non-stub inputs to the symbol table. - if !self.is_stub { - if let Err(err) = - self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { - type_: input_var.type_(), - span: input_var.identifier().span(), - declaration: VariableType::Input(input_var.mode()), - }) - { - self.handler.emit_err(err); + // Async transitions must return one future in the first position. + if self.is_finalize_caller && ((index > 0 && matches!(function_output.type_, Type::Future(_))) || (index == 0 && !matches!(function_output.type_, Type::Future(_)))) { + self.emit_err(TypeCheckerError::async_transition_must_return_future_as_first_output(function_output.span)); } } } }); - - // Check that the finalize block's return type is a unit type. - // Note: This is a temporary restriction to be compatible with the current version of snarkVM. - // Note: This restriction may be lifted in the future. - // Note: This check is still compatible with the other checks below. - if finalize.output_type != Type::Unit { - self.emit_err(TypeCheckerError::finalize_cannot_return_value(finalize.span)); - } - - // Type check the finalize block's return type. - // Note that checking that each of the component types are defined is sufficient to guarantee that the `output_type` is defined. - finalize.output.iter().for_each(|output_type| { - // Check that the type of output is defined. - if self.assert_type_is_valid(&output_type.type_(), output_type.span()) { - // Check that the output is not a tuple. This is necessary to forbid nested tuples. - if matches!(&output_type.type_(), Type::Tuple(_)) { - self.emit_err(TypeCheckerError::nested_tuple_type(output_type.span())) - } - // Check that the output is not a record. - if let Type::Composite(struct_) = output_type.type_() { - // Note that this unwrap is safe, as the type is defined. - if self - .symbol_table - .borrow() - .lookup_struct(struct_.program.unwrap(), struct_.id.name) - .unwrap() - .is_record - { - self.emit_err(TypeCheckerError::finalize_cannot_output_record(output_type.span())) - } - } - // Check that the mode of the output is valid. - // Note that a finalize block can have only public outputs. - if matches!(output_type.mode(), Mode::Constant | Mode::Private) { - self.emit_err(TypeCheckerError::finalize_output_mode_must_be_public(output_type.span())); - } - } - }); - - // Check that the return type is defined. Note that the component types are already checked. - self.assert_type_is_valid(&finalize.output_type, finalize.span); } /// Emits an error if the type corresponds to an external struct. From 830b11b4392b9e2b1f99e7c10aef7bb375e41a66 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 16 Feb 2024 23:50:05 -0800 Subject: [PATCH 08/80] Sort into transitions and functions since now finalizes are detatched --- compiler/parser/src/parser/file.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 1428f45e3e..87c4777708 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -113,7 +113,7 @@ impl ParserContext<'_> { // Parse the body of the program scope. let mut consts: Vec<(Symbol, ConstDeclaration)> = Vec::new(); - let mut functions: Vec<(Symbol, Function)> = Vec::new(); + let (mut transitions, mut functions): (Vec<(Symbol, Function)>, Vec<(Symbol, Function)>) = (Vec::new(), Vec::new()); let mut structs: Vec<(Symbol, Composite)> = Vec::new(); let mut mappings: Vec<(Symbol, Mapping)> = Vec::new(); @@ -133,7 +133,13 @@ impl ParserContext<'_> { } Token::At | Token::Async | Token::Function | Token::Transition | Token::Inline => { let (id, function) = self.parse_function()?; - functions.push((id, function)); + + // Partition into transitions and functions so that don't have to sort later. + if function.variant == Variant::Transition { + transitions.push((id, function)); + } else { + functions.push((id, function)); + } } Token::RightCurly => break, _ => { @@ -154,7 +160,7 @@ impl ParserContext<'_> { // Parse `}`. let end = self.expect(&Token::RightCurly)?; - Ok(ProgramScope { program_id, consts, functions, structs, mappings, span: start + end }) + Ok(ProgramScope { program_id, consts, functions: [transitions, functions].concat(), structs, mappings, span: start + end }) } /// Returns a [`Vec`] AST node if the next tokens represent a struct member. From c733b360a3d5ff2a4ed5c512bc4cc2d95b1f1d1e Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:24:30 -0800 Subject: [PATCH 09/80] refactor equality checking of types to account for nested external structs and futures --- compiler/ast/src/types/future.rs | 18 +++-- compiler/ast/src/types/type_.rs | 7 +- compiler/passes/src/type_checking/checker.rs | 67 ++++++++++++++----- .../errors/type_checker/type_checker_error.rs | 24 ++++++- 4 files changed, 92 insertions(+), 24 deletions(-) diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 44ce3f1a7f..5ae7e99c59 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::TupleType; +use crate::{TupleType, Type}; use serde::{Deserialize, Serialize}; use std::fmt; @@ -23,19 +23,23 @@ use std::fmt; #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct FutureType { // Optional type specification of inputs. - pub inputs: Option + pub inputs: Vec, +} + +impl FutureType { + /// Returns the inputs of the future type. + pub fn inputs(&self) -> &[Type] { + &self.inputs + } } impl Default for FutureType { fn default() -> Self { - Self { inputs: None } + Self { inputs: Vec::new() } } } impl fmt::Display for crate::FutureType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - match &self.inputs { - Some(inputs) => write!(f, "future<{inputs}>", inputs = inputs), - None => write!(f, "future") - } + write!(f, "Future<{}>", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) } } \ No newline at end of file diff --git a/compiler/ast/src/types/type_.rs b/compiler/ast/src/types/type_.rs index f72c27711b..e36901193d 100644 --- a/compiler/ast/src/types/type_.rs +++ b/compiler/ast/src/types/type_.rs @@ -83,7 +83,7 @@ impl Type { (Type::Array(left), Type::Array(right)) => { left.element_type().eq_flat(right.element_type()) && left.length() == right.length() } - (Type::Identifier(left), Type::Identifier(right)) => left.matches(right), + (Type::Identifier(left), Type::Identifier(right)) => left.name == right.name, (Type::Integer(left), Type::Integer(right)) => left.eq(right), (Type::Mapping(left), Type::Mapping(right)) => { left.key.eq_flat(&right.key) && left.value.eq_flat(&right.value) @@ -96,6 +96,11 @@ impl Type { (Type::Composite(left), Type::Composite(right)) => { left.id.name == right.id.name && left.program == right.program } + (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => left + .inputs() + .iter() + .zip_eq(right.inputs().iter()) + .all(|(left_type, right_type)| left_type.eq_flat(right_type)), _ => false, } } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index b62410fcb4..3ccb79aa82 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -187,26 +187,63 @@ impl<'a> TypeChecker<'a> { } } + /// Determines if the two types have the same structure. + /// Needs access to the symbol table in order to compare nested future and struct types. + pub(crate) fn check_eq_type_structure(&self, t1: &Type, t2: &Type, span: Span) -> bool { + if t1.eq_flat(t2) { + return true; + } + // All of these types could return false for `eq_flat` if they have an external struct. + match (t1, t2) { + (Type::Array(left), Type::Array(right)) => { + self.check_eq_type_structure(&left.element_type(), right.element_type(), span) + && left.length() == right.length() + } + (Type::Integer(left), Type::Integer(right)) => left.eq(right), + (Type::Mapping(left), Type::Mapping(right)) => { + self.check_eq_type_structure(&left.key, &right.key, span) && self.check_eq_type_structure(&left.value, &right.value, span) + } + (Type::Tuple(left), Type::Tuple(right)) if left.length() == right.length() => left + .elements() + .iter() + .zip_eq(right.elements().iter()) + .all(|(left_type, right_type)| self.check_eq_type_structure(&left_type, &right_type, span)), + (Type::Composite(left), Type::Composite(right)) => { + if left.id.name == right.id.name && left.program == right.program { + true + } + // TODO: Can optimize by caching the successful matches. + else if !self.check_duplicate_struct(left.id.name, left.program.unwrap(), right.program.unwrap()) { + self.emit_err(TypeCheckerError::struct_definitions_dont_match( + left.id.name.to_string(), + left.program.unwrap().to_string(), + right.program.unwrap().to_string(), + span, + )); + false + } + else { + true + } + } + (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => left + .inputs() + .iter() + .zip_eq(right.inputs().iter()) + .all(|(left_type, right_type)| self.check_eq_type_structure(&left_type, &right_type, span)), + _ => false, + } + } + /// Emits an error if the two given types are not equal. pub(crate) fn check_eq_types(&self, t1: &Option, t2: &Option, span: Span) { match (t1, t2) { - (Some(t1), Some(t2)) if !Type::eq_flat(t1, t2) => { - if let (Type::Composite(left), Type::Composite(right)) = (t1, t2) { - if !self.check_duplicate_struct(left.id.name, left.program.unwrap(), right.program.unwrap()) { - self.emit_err(TypeCheckerError::struct_definitions_dont_match( - left.id.name.to_string(), - left.program.unwrap().to_string(), - right.program.unwrap().to_string(), - span, - )); - } - return; + (Some(t1), Some(t2)) => { + if !self.check_eq_type_structure(t1, t2, span) { + self.emit_err(TypeCheckerError::expected_one_type_of(t1.to_string(), t2, span)); } - self.emit_err(TypeCheckerError::type_should_be(t1, t2, span)) - } - (Some(type_), None) | (None, Some(type_)) => { - self.emit_err(TypeCheckerError::type_should_be("no type", type_, span)) } + (Some(type_), None) | (None, Some(type_)) => self.emit_err(TypeCheckerError::type_should_be("no type", type_, span)), _ => {} } } diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index d4d15f086c..f76bed9366 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -394,7 +394,7 @@ create_messages!( @formatted missing_finalize { args: (), - msg: format!("Function must contain a `finalize` statement on all execution paths."), + msg: format!("Async transitions must contain an async function call on all execution paths."), help: None, } @@ -803,4 +803,26 @@ create_messages!( msg: "An async transition must call an async function.".to_string(), help: Some("Example: `async transition foo() -> Future { let a: Future = bar(); return await_futures(a); }`".to_string()), } + @formatted + async_function_input_length_mismatch { + args: (expected: impl Display, received: impl Display), + msg: format!("Expected `{expected}` inputs, but got `{received}`"), + help: Some("Check that the number of arguments passed in are the same as the number in the function signature. Ex: `async function foo(a: u8, b: u8)` has two input arguments.".to_string()), + } + + @formatted + invalid_future_access { + args: (num: impl Display, len: impl Display), + msg: format!( + "Cannot access argument `{num}` from future. The future only has `{len}` arguments." + ), + help: None, + } + + @formatted + future_access_must_be_number { + args: (name: impl Display), + msg: format!("Future access must be a number not `{name}`."), + help: Some(" Future arguments must be addressed by their index. Ex: `f.1.3`.".to_string()), + } ); From 8feb612ce7fc4cf53b1a9ca860923971ee77600e Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:25:13 -0800 Subject: [PATCH 10/80] TYC future argument retrieval --- .../src/type_checking/check_expressions.rs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 6f9196e45d..182fa691fa 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -235,6 +235,35 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::undefined_type(&access.inner, access.inner.span())); } } + Some(Type::Future(f)) => { + // Retrieve the inferred input types for the future argument access. + + // Make sure that the input parameter accessed is valid. + if let Some(arg_num) = access.name.name.to_string().parse::() { + // Make sure in range. + if arg_num >= f.inputs().len() { + self.emit_err(TypeCheckerError::invalid_future_access( + arg_num, + f.inputs().len(), + access.name.span(), + )); + } + // Return the type of the input parameter. + return Some(self.assert_and_return_type( + f.get(arg_num).unwrap().clone(), + expected, + access.span(), + )); + } + else { + // Future arguments must be addressed by their index. Ex: `f.1.3`. + self.emit_err(TypeCheckerError::future_access_must_be_number( + access.name.name, + access.name.span(), + )); + } + + } Some(type_) => { self.emit_err(TypeCheckerError::type_should_be(type_, "struct", access.inner.span())); } From 5a499937e60dea3f81a83b6f5aa82f21a85cd87c Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:28:33 -0800 Subject: [PATCH 11/80] Function signature checking w/ nested struct/future --- compiler/parser/src/parser/file.rs | 12 ++- .../common/symbol_table/function_symbol.rs | 2 +- .../src/type_checking/check_expressions.rs | 4 +- .../passes/src/type_checking/check_program.rs | 38 ++++++--- .../src/type_checking/check_statements.rs | 66 ++------------- compiler/passes/src/type_checking/checker.rs | 80 ++++++++++++++----- 6 files changed, 105 insertions(+), 97 deletions(-) diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 87c4777708..a152a77de8 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -113,7 +113,8 @@ impl ParserContext<'_> { // Parse the body of the program scope. let mut consts: Vec<(Symbol, ConstDeclaration)> = Vec::new(); - let (mut transitions, mut functions): (Vec<(Symbol, Function)>, Vec<(Symbol, Function)>) = (Vec::new(), Vec::new()); + let (mut transitions, mut functions): (Vec<(Symbol, Function)>, Vec<(Symbol, Function)>) = + (Vec::new(), Vec::new()); let mut structs: Vec<(Symbol, Composite)> = Vec::new(); let mut mappings: Vec<(Symbol, Mapping)> = Vec::new(); @@ -160,7 +161,14 @@ impl ParserContext<'_> { // Parse `}`. let end = self.expect(&Token::RightCurly)?; - Ok(ProgramScope { program_id, consts, functions: [transitions, functions].concat(), structs, mappings, span: start + end }) + Ok(ProgramScope { + program_id, + consts, + functions: [transitions, functions].concat(), + structs, + mappings, + span: start + end, + }) } /// Returns a [`Vec`] AST node if the next tokens represent a struct member. diff --git a/compiler/passes/src/common/symbol_table/function_symbol.rs b/compiler/passes/src/common/symbol_table/function_symbol.rs index 9afa9bb0fa..c1a54d7773 100644 --- a/compiler/passes/src/common/symbol_table/function_symbol.rs +++ b/compiler/passes/src/common/symbol_table/function_symbol.rs @@ -55,7 +55,7 @@ impl SymbolTable { output_type: func.output_type.clone(), variant: func.variant, _span: func.span, - input: func.input.clone() + input: func.input.clone(), } } } diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 182fa691fa..ab75d08a4c 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -254,15 +254,13 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { expected, access.span(), )); - } - else { + } else { // Future arguments must be addressed by their index. Ex: `f.1.3`. self.emit_err(TypeCheckerError::future_access_must_be_number( access.name.name, access.name.span(), )); } - } Some(type_) => { self.emit_err(TypeCheckerError::type_should_be(type_, "struct", access.inner.span())); diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index a31d33afd0..9061695e63 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -22,8 +22,9 @@ use leo_span::sym; use snarkvm::console::network::{Network, Testnet3}; -use std::collections::HashSet; +use indexmap::IndexSet; use leo_ast::Input::{External, Internal}; +use std::collections::HashSet; // TODO: Cleanup logic for tuples. @@ -269,6 +270,8 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.variant = Some(function.variant); self.is_finalize = function.variant == Variant::Standard && function.is_async; self.is_finalize_caller = function.variant == Variant::Transition && function.is_async; + self.has_finalize = false; + self.futures = IndexSet::new(); // Lookup function metadata in the symbol table. // Note that this unwrap is safe since function metadata is stored in a prior pass. @@ -301,16 +304,20 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { } // Initialize the list of input futures. Each one must be awaited before the end of the function. - self.to_await = function.input.iter().filter_map(|input| match input { - Internal(parameter) => { - if matches!(parameter.type_, Type::Future(ty)) { - Some(parameter.identifier.name) - } else { - None + self.to_await = function + .input + .iter() + .filter_map(|input| match input { + Internal(parameter) => { + if let Some(Type::Future(ty)) = parameter.type_.clone() { + Some(parameter.identifier.name) + } else { + None + } } - } - External(_) => None, - }).collect(); + External(_) => None, + }) + .collect(); } self.visit_block(&function.block); @@ -326,7 +333,14 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Exit the function's scope. self.exit_scope(function_index); - // Unset the function variant variables. - (self.variant, self.is_finalize_caller, self.is_finalize) = (None, false, false); + // Make sure that async transitions call finalize. + if self.is_finalize_caller && !self.has_finalize { + self.emit_err(TypeCheckerError::async_transition_must_call_async_function(function.span)); + } + + // Must have awaited all futures. + if self.is_finalize && !self.to_await.is_empty() { + self.emit_err(TypeCheckerError::must_await_all_futures(&self.to_await, function.span())); + } } } diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index e47fa732dc..633fcfd052 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use indexmap::IndexSet; use crate::{TypeChecker, VariableSymbol, VariableType}; +use indexmap::IndexSet; use itertools::Itertools; use leo_ast::*; @@ -91,9 +91,6 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } fn visit_block(&mut self, input: &'a Block) { - // Reset environment flag. - if self.is_finalize_caller { self.has_called_finalize = false; self.futures = IndexSet::new() }; - // Create a new scope for the then-block. let scope_index = self.create_child_scope(); @@ -101,15 +98,6 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Exit the scope for the then-block. self.exit_scope(scope_index); - - // Must have awaited all futures. - if self.is_finalize && !self.to_await.is_empty() { - self.emit_err(TypeCheckerError::must_await_all_futures(&self.to_await, input.span())); - } - // Check that an async function call was made to propagate futures to a finalize block. - else if self.is_finalize_caller && !self.has_called_finalize { - self.emit_err(TypeCheckerError::async_transition_must_call_async_function(input.span())); - } } fn visit_conditional(&mut self, input: &'a ConditionalStatement) { @@ -157,6 +145,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Restore the previous `has_return` flag. self.has_return = previous_has_return || (then_block_has_return && otherwise_block_has_return); // Restore the previous `has_finalize` flag. + // TODO: doesn't this mean that we allow multiple finalizes? self.has_finalize = previous_has_finalize || (then_block_has_finalize && otherwise_block_has_finalize); } @@ -394,14 +383,11 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.function.unwrap(); - let return_type = &self.symbol_table.borrow().lookup_fn_symbol(self.program_name.unwrap(), parent).map(|f| { - match self.is_finalize { - // TODO: Check this. - // Note that this `unwrap()` is safe since we checked that the function has a finalize block. - true => f.finalize.as_ref().unwrap().output_type.clone(), - false => f.output_type.clone(), - } - }); + let return_type = &self + .symbol_table + .borrow() + .lookup_fn_symbol(self.program_name.unwrap(), parent) + .map(|f| f.output_type.clone()); // Set the `has_return` flag. self.has_return = true; @@ -421,43 +407,5 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { self.visit_expression(&input.expression, return_type); // Unset the `is_return` flag. self.is_return = false; - - if let Some(arguments) = &input.finalize_arguments { - if self.is_finalize { - self.emit_err(TypeCheckerError::finalize_in_finalize(input.span())); - } - - // Set the `has_finalize` flag. - self.has_finalize = true; - - // Check that the function has a finalize block. - // Note that `self.function.unwrap()` is safe since every `self.function` is set for every function. - // Note that `(self.function.unwrap()).unwrap()` is safe since all functions have been checked to exist. - let finalize = self - .symbol_table - .borrow() - .lookup_fn_symbol(self.program_name.unwrap(), self.function.unwrap()) - .unwrap() - .finalize - .clone(); - match finalize { - None => self.emit_err(TypeCheckerError::finalize_without_finalize_block(input.span())), - Some(finalize) => { - // Check number of function arguments. - if finalize.input.len() != arguments.len() { - self.emit_err(TypeCheckerError::incorrect_num_args_to_finalize( - finalize.input.len(), - arguments.len(), - input.span(), - )); - } - - // Check function argument types. - finalize.input.iter().zip(arguments.iter()).for_each(|(expected, argument)| { - self.visit_expression(argument, &Some(expected.type_())); - }); - } - } - } } } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 3ccb79aa82..6a381dbfb7 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -36,9 +36,9 @@ use leo_span::{Span, Symbol}; use snarkvm::console::network::{Network, Testnet3}; +use indexmap::{IndexMap, IndexSet}; use itertools::Itertools; use std::cell::RefCell; -use indexmap::{IndexMap, IndexSet}; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -72,9 +72,9 @@ pub struct TypeChecker<'a> { /// The futures that must be propagated to an async function. pub(crate) futures: IndexSet, /// Whether the finalize caller has called the finalize function. - pub(crate) has_called_finalize: bool, + pub(crate) has_finalize: bool, /// Mapping from async function name to the inferred input types. - pub(crate) future_map: IndexMap> + pub(crate) inferred_future_types: IndexMap>, } const ADDRESS_TYPE: Type = Type::Address; @@ -144,8 +144,8 @@ impl<'a> TypeChecker<'a> { is_finalize_caller: false, to_await: IndexSet::new(), futures: IndexSet::new(), - has_called_finalize: false, - future_map: IndexMap::new(), + has_finalize: false, + inferred_future_types: IndexMap::new(), } } @@ -201,7 +201,8 @@ impl<'a> TypeChecker<'a> { } (Type::Integer(left), Type::Integer(right)) => left.eq(right), (Type::Mapping(left), Type::Mapping(right)) => { - self.check_eq_type_structure(&left.key, &right.key, span) && self.check_eq_type_structure(&left.value, &right.value, span) + self.check_eq_type_structure(&left.key, &right.key, span) + && self.check_eq_type_structure(&left.value, &right.value, span) } (Type::Tuple(left), Type::Tuple(right)) if left.length() == right.length() => left .elements() @@ -221,8 +222,7 @@ impl<'a> TypeChecker<'a> { span, )); false - } - else { + } else { true } } @@ -243,7 +243,9 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::expected_one_type_of(t1.to_string(), t2, span)); } } - (Some(type_), None) | (None, Some(type_)) => self.emit_err(TypeCheckerError::type_should_be("no type", type_, span)), + (Some(type_), None) | (None, Some(type_)) => { + self.emit_err(TypeCheckerError::type_should_be("no type", type_, span)) + } _ => {} } } @@ -1097,6 +1099,10 @@ impl<'a> TypeChecker<'a> { // Return a boolean. Some(Type::Boolean) } + CoreFunction::FutureAwait => { + // TODO: check that were in finalize here? + None + } } } @@ -1252,8 +1258,34 @@ impl<'a> TypeChecker<'a> { pub(crate) fn check_function_signature(&mut self, function: &Function) { self.variant = Some(function.variant); + // Special type checking for finalize blocks. + if self.is_finalize { + if let Some(inferred_future_types) = self.inferred_future_types.borrow().get(&self.function.unwrap()) { + // Check same number of inputs as expected. + if inferred_future_types.len() != function.input.len() { + self.emit_err(TypeCheckerError::async_function_input_length_mismatch( + inferred_future_types.len(), + function.input.len(), + function.span(), + )); + } + // Check that the input parameters match the inferred types from when the async function is invoked. + function + .input + .iter() + .zip_eq(inferred_future_types.iter()) + .for_each(|(t1, t2)| self.check_eq_type(&t1.type_(), t2, t1.span())); + } else if function.input.len() > 0 { + self.emit_err(TypeCheckerError::async_function_input_length_mismatch( + 0, + function.input.len(), + function.span(), + )); + } + } + // Type check the function's parameters. - function.input.iter().for_each(|input_var| { + function.input.iter().enumerate().for_each(|(index, input_var)| { // Check that the type of input parameter is defined. self.assert_type_is_valid(&input_var.type_(), input_var.span()); // Check that the type of the input parameter is not a tuple. @@ -1263,12 +1295,13 @@ impl<'a> TypeChecker<'a> { // Check that the input parameter is not a record. else if let Type::Composite(struct_) = input_var.type_() { // Note that this unwrap is safe, as the type is defined. - if !matches!(function.variant, Variant::Transition) && self - .symbol_table - .borrow() - .lookup_struct(struct_.program.unwrap(), struct_.id.name) - .unwrap() - .is_record + if !matches!(function.variant, Variant::Transition) + && self + .symbol_table + .borrow() + .lookup_struct(struct_.program.unwrap(), struct_.id.name) + .unwrap() + .is_record { self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(input_var.span())) } @@ -1276,7 +1309,9 @@ impl<'a> TypeChecker<'a> { // Check that the finalize input parameter is not constant or private. if self.is_finalize && (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { - self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); + if (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { + self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); + } } // Note that this unwrap is safe since we assign to `self.variant` above. @@ -1306,7 +1341,7 @@ impl<'a> TypeChecker<'a> { // Type check the function's return type. // Note that checking that each of the component types are defined is sufficient to check that `output_type` is defined. - function.output.iter().enumerate().for_each(|(index,output)| { + function.output.iter().enumerate().for_each(|(index, output)| { match output { Output::External(external) => { // If the function is not a transition function, then it cannot output a record. @@ -1348,8 +1383,13 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::async_function_must_return_single_future(function_output.span)); } // Async transitions must return one future in the first position. - if self.is_finalize_caller && ((index > 0 && matches!(function_output.type_, Type::Future(_))) || (index == 0 && !matches!(function_output.type_, Type::Future(_)))) { - self.emit_err(TypeCheckerError::async_transition_must_return_future_as_first_output(function_output.span)); + if self.is_finalize_caller + && ((index > 0 && matches!(function_output.type_, Type::Future(_))) + || (index == 0 && !matches!(function_output.type_, Type::Future(_)))) + { + self.emit_err(TypeCheckerError::async_transition_must_return_future_as_first_output( + function_output.span, + )); } } } From cfee45da8fc71d68e441c8cb17d8277603d29264 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:29:29 -0800 Subject: [PATCH 12/80] Add compiler flags for configuring await checker in nested conditionals --- compiler/ast/src/functions/mod.rs | 2 +- compiler/ast/src/stub/function_stub.rs | 61 +++++++++++++------ compiler/ast/src/stub/mod.rs | 2 - compiler/ast/src/types/future.rs | 2 +- compiler/ast/src/types/type_.rs | 8 +-- compiler/compiler/src/compiler.rs | 10 ++- compiler/compiler/src/options.rs | 4 ++ .../type_checker/type_checker_warning.rs | 40 ++++++++++++ leo/cli/commands/build.rs | 6 +- leo/cli/commands/mod.rs | 4 ++ 10 files changed, 111 insertions(+), 28 deletions(-) create mode 100644 errors/src/errors/type_checker/type_checker_warning.rs diff --git a/compiler/ast/src/functions/mod.rs b/compiler/ast/src/functions/mod.rs index 567c530415..b81a64dcb7 100644 --- a/compiler/ast/src/functions/mod.rs +++ b/compiler/ast/src/functions/mod.rs @@ -126,7 +126,7 @@ impl Function { _ => self.output.iter().map(|x| x.to_string()).collect::>().join(","), }; write!(f, "({parameters}) -> {returns} {}", self.block)?; - + Ok(()) } } diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index b66223c7d2..5c9d146e18 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -14,14 +14,35 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{Annotation, CompositeType, External, Function, FunctionInput, FunctionOutput, Identifier, Input, Mode, Node, NodeID, Output, ProgramId, TupleType, Type, Variant, FutureType}; +use crate::{ + Annotation, + CompositeType, + External, + Function, + FunctionInput, + FunctionOutput, + FutureType, + Identifier, + Input, + Mode, + Node, + NodeID, + Output, + ProgramId, + TupleType, + Type, + Variant, +}; use leo_span::{sym, Span, Symbol}; use crate::Type::Composite; use itertools::Itertools; use serde::{Deserialize, Serialize}; use snarkvm::{ - console::program::{RegisterType::{ExternalRecord, Future, Plaintext, Record}, FinalizeType::{Future as FutureFinalizeType, Plaintext as PlaintextFinalizeType}}, + console::program::{ + FinalizeType::{Future as FutureFinalizeType, Plaintext as PlaintextFinalizeType}, + RegisterType::{ExternalRecord, Future, Plaintext, Record}, + }, prelude::{Network, ValueType}, synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; @@ -246,26 +267,32 @@ impl FunctionStub { is_async: true, variant: Variant::Transition, identifier: Identifier::new(name, Default::default()), - input: function.finalize_logic().unwrap().inputs().iter().enumerate().map(|(index, input)| { - Input::Internal(FunctionInput { - identifier: Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()), - mode: Mode::Public, - type_: match input.finalize_type() { - PlaintextFinalizeType(val) => Type::from_snarkvm(&val, name), - FutureFinalizeType(_) => Type::Future(Default::default()), - }, - span: Default::default(), - id: Default::default(), + input: function + .finalize_logic() + .unwrap() + .inputs() + .iter() + .enumerate() + .map(|(index, input)| { + Input::Internal(FunctionInput { + identifier: Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()), + mode: Mode::Public, + type_: match input.finalize_type() { + PlaintextFinalizeType(val) => Type::from_snarkvm(&val, name), + FutureFinalizeType(_) => Type::Future(Default::default()), + }, + span: Default::default(), + id: Default::default(), + }) }) - }).collect_vec(), + .collect_vec(), output: vec![Output::Internal(FunctionOutput { mode: Mode::Public, - type_: Type::Future(FutureType { inputs: None} ), + type_: Type::Future(FutureType { inputs: None }), span: Default::default(), id: 0, - }) - ], - output_type: Type::Future(FutureType { inputs: None}), + })], + output_type: Type::Future(FutureType { inputs: None }), span: Default::default(), id: 0, } diff --git a/compiler/ast/src/stub/mod.rs b/compiler/ast/src/stub/mod.rs index 55f0351c65..0679e3311b 100644 --- a/compiler/ast/src/stub/mod.rs +++ b/compiler/ast/src/stub/mod.rs @@ -16,8 +16,6 @@ //! A stub contains function templates as well as definitions for mappings, structs, records, and constants. -pub mod finalize_stub; -pub use finalize_stub::*; pub mod function_stub; pub use function_stub::*; diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 5ae7e99c59..f263d708c2 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -42,4 +42,4 @@ impl fmt::Display for crate::FutureType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Future<{}>", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) } -} \ No newline at end of file +} diff --git a/compiler/ast/src/types/type_.rs b/compiler/ast/src/types/type_.rs index e36901193d..b83c1563b2 100644 --- a/compiler/ast/src/types/type_.rs +++ b/compiler/ast/src/types/type_.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{common, ArrayType, CompositeType, Identifier, IntegerType, MappingType, TupleType, FutureType}; +use crate::{common, ArrayType, CompositeType, FutureType, Identifier, IntegerType, MappingType, TupleType}; use itertools::Itertools; use leo_span::Symbol; @@ -98,9 +98,9 @@ impl Type { } (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => left .inputs() - .iter() - .zip_eq(right.inputs().iter()) - .all(|(left_type, right_type)| left_type.eq_flat(right_type)), + .iter() + .zip_eq(right.inputs().iter()) + .all(|(left_type, right_type)| left_type.eq_flat(right_type)), _ => false, } } diff --git a/compiler/compiler/src/compiler.rs b/compiler/compiler/src/compiler.rs index 55e0440920..8d8b3e451e 100644 --- a/compiler/compiler/src/compiler.rs +++ b/compiler/compiler/src/compiler.rs @@ -149,8 +149,14 @@ impl<'a> Compiler<'a> { /// Runs the type checker pass. pub fn type_checker_pass(&'a self, symbol_table: SymbolTable) -> Result<(SymbolTable, StructGraph, CallGraph)> { - let (symbol_table, struct_graph, call_graph) = - TypeChecker::do_pass((&self.ast, self.handler, symbol_table, &self.type_table))?; + let (symbol_table, struct_graph, call_graph) = TypeChecker::do_pass(( + &self.ast, + self.handler, + symbol_table, + &self.type_table, + self.compiler_options.build.conditional_block_max_depth, + self.compiler_options.build.disable_conditional_branch_type_checking, + ))?; if self.compiler_options.output.type_checked_symbol_table { self.write_symbol_table_to_json("type_checked_symbol_table.json", &symbol_table)?; } diff --git a/compiler/compiler/src/options.rs b/compiler/compiler/src/options.rs index 693e85f9cf..a760ae5e0f 100644 --- a/compiler/compiler/src/options.rs +++ b/compiler/compiler/src/options.rs @@ -28,6 +28,10 @@ pub struct CompilerOptions { pub struct BuildOptions { /// Whether to enable dead code elimination. pub dce_enabled: bool, + /// Max depth to type check nested conditionals. + pub conditional_block_max_depth: usize, + /// Whether to disable type checking for nested conditionals. + pub disable_conditional_branch_type_checking: bool, } #[derive(Clone, Default)] diff --git a/errors/src/errors/type_checker/type_checker_warning.rs b/errors/src/errors/type_checker/type_checker_warning.rs new file mode 100644 index 0000000000..472d0052ad --- /dev/null +++ b/errors/src/errors/type_checker/type_checker_warning.rs @@ -0,0 +1,40 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use crate::create_messages; + +use std::fmt::Display; + +create_messages!( + /// ParserWarning enum that represents all the warnings for the `leo-parser` crate. + TypeCheckerWarning, + code_mask: 2000i32, + code_prefix: "TYC", + + @formatted + some_paths_do_not_await_all_futures { + args: (num_total_paths: impl Display, num_unawaited_paths: impl Display), + msg: format!("Not all paths through the function await all futures. {num_unawaited_paths}/{num_total_paths} paths contain at least one future that is never awaited."), + help: Some("Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag.".to_string()), + } + + @formatted + some_paths_contain_duplicate_future_awaits { + args: (num_total_paths: impl Display, num_duplicate_await_paths: impl Display), + msg: format!("Some paths through the function contain duplicate future awaits. {num_duplicate_await_paths}/{num_total_paths} paths contain at least one future that is awaited more than once."), + help: Some("Look at the times `.await()` is called, and try to reduce redundancies. Remove this warning by including the `--disable-conditional-branch-type-checking` flag.".to_string()), + } +); diff --git a/leo/cli/commands/build.rs b/leo/cli/commands/build.rs index cb1c505bba..bfca01707b 100644 --- a/leo/cli/commands/build.rs +++ b/leo/cli/commands/build.rs @@ -39,7 +39,11 @@ type CurrentNetwork = Testnet3; impl From for CompilerOptions { fn from(options: BuildOptions) -> Self { let mut out_options = Self { - build: leo_compiler::BuildOptions { dce_enabled: options.enable_dce }, + build: leo_compiler::BuildOptions { + dce_enabled: options.enable_dce, + conditional_block_max_depth: options.conditional_block_max_depth, + disable_conditional_branch_type_checking: options.disable_conditional_branch_type_checking, + }, output: OutputOptions { symbol_table_spans_enabled: options.enable_symbol_table_spans, initial_symbol_table: options.enable_initial_symbol_table_snapshot, diff --git a/leo/cli/commands/mod.rs b/leo/cli/commands/mod.rs index 0c533b896e..7b2bf03517 100644 --- a/leo/cli/commands/mod.rs +++ b/leo/cli/commands/mod.rs @@ -160,4 +160,8 @@ pub struct BuildOptions { pub enable_inlined_ast_snapshot: bool, #[clap(long, help = "Writes AST snapshot of the dead code eliminated (DCE) AST.")] pub enable_dce_ast_snapshot: bool, + #[clap(long, help = "Max depth to type check nested conditionals.", default_value = "10")] + pub conditional_block_max_depth: usize, + #[clap(long, help = "Disable type checking of nested conditional branches in finalize scope.")] + pub disable_conditional_branch_type_checking: bool, } From c886bafa432353f75be4ada4377733caddf8f6a0 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:07:18 -0800 Subject: [PATCH 13/80] Refactor to use structs instead of long lists of flags --- .../src/common/binary_search_tree/mod.rs | 60 +++++++++ compiler/passes/src/common/mod.rs | 3 + .../passes/src/type_checking/await_checker.rs | 119 ++++++++++++++++++ .../passes/src/type_checking/scope_state.rs | 75 +++++++++++ errors/src/errors/mod.rs | 4 + 5 files changed, 261 insertions(+) create mode 100644 compiler/passes/src/common/binary_search_tree/mod.rs create mode 100644 compiler/passes/src/type_checking/await_checker.rs create mode 100644 compiler/passes/src/type_checking/scope_state.rs diff --git a/compiler/passes/src/common/binary_search_tree/mod.rs b/compiler/passes/src/common/binary_search_tree/mod.rs new file mode 100644 index 0000000000..51bc265bdc --- /dev/null +++ b/compiler/passes/src/common/binary_search_tree/mod.rs @@ -0,0 +1,60 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use indexmap::IndexSet; +use leo_ast::Identifier; +use std::{fmt::Debug, hash::Hash}; + +/// A binary search tree to store all paths through nested conditional blocks. +pub type ConditionalTreeNode = TreeNode; + +/// A node in a graph. +pub trait Node: Copy + 'static + Eq + PartialEq + Debug + Hash {} + +impl Node for Identifier {} + +/// A node in a tree. +#[derive(Debug)] +pub struct TreeNode { + /// The current depth. + pub depth: usize, + /// The current node. + pub elements: IndexSet, // TODO: Can optimize with bitmap if performance is bad. + /// A counter. + pub counter: usize, +} + +impl TreeNode { + /// Initializes a new `TreeNode` from a vector of starting elements. + pub fn new(elements: IndexSet) -> Self { + Self { depth: 0, elements, counter: 0 } + } + + /// Adds a child to the current node. + pub fn create_child(&mut self) -> TreeNode { + Self { depth: self.depth + 1, elements: self.elements.clone(), counter: self.counter } + } + + /// Removes an element from the current node. + pub fn remove_element(&mut self, element: &N) -> bool { + if self.elements.remove(element) { + true + } else { + self.counter += 1; + false + } + } +} diff --git a/compiler/passes/src/common/mod.rs b/compiler/passes/src/common/mod.rs index 47405d0150..91785524a1 100644 --- a/compiler/passes/src/common/mod.rs +++ b/compiler/passes/src/common/mod.rs @@ -17,6 +17,9 @@ pub mod assigner; pub use assigner::*; +pub mod binary_search_tree; +pub use binary_search_tree::*; + pub mod graph; pub use graph::*; diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs new file mode 100644 index 0000000000..d7d7af7166 --- /dev/null +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -0,0 +1,119 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use crate::ConditionalTreeNode; +use indexmap::IndexMap; +use leo_ast::{Identifier, Type}; +use leo_errors::TypeCheckerError; +use leo_span::{Span, Symbol}; + +pub struct AwaitChecker { + /// All possible subsets of futures that must be awaited. + pub(crate) to_await: Vec, + /// Updated set of futures to await. + pub(crate) updated_to_await: Vec, + /// Statically updated set of futures to await. + pub(crate) static_to_await: Vec, + /// Whether or not to do full tree search for await checking. + pub(crate) enabled: bool, + /// Maximum nesting depth to search for await checking. + pub(crate) max_depth: usize, + /// Whether the current BST has a root node. + pub(crate) has_root: bool, + /// A signal to a potential parent nested conditional that it is not a leaf node in the BST. + pub(crate) outer_is_parent: bool, +} + +impl AwaitChecker { + /// Initializes a new `AwaitChecker`. + pub fn new(max_depth: usize, enabled: bool) -> Self { + Self { + to_await: Vec::new(), + updated_to_await: Vec::new(), + static_to_await: Vec::new(), + enabled, + max_depth, + has_root: false, + outer_is_parent: false, + } + } + + /// Enter scope for `then` branch of conditional. + pub fn create_then_scope( + &mut self, + is_finalize: bool, + input: Span, + ) -> Result, TypeCheckerError> { + if is_finalize && self.enabled { + let mut current_nodes = Vec::new(); + // Extend all paths by one node to represent the upcoming `then` branch. + for node in self.to_await.iter() { + // Error if exceed maximum depth. + if node.depth > self.max_depth { + return Err(TypeCheckerError::max_conditional_block_depth_exceeded(self.max_depth, input)); + } + // Extend current path. + current_nodes.push(node.clone().create_child()); + } + // Reset the `is_parent` signal. + self.outer_is_parent = false; + // Update the set of nodes to be current set. + self.to_await = current_nodes.clone(); + Ok(current_nodes) + } else { + Ok(Vec::new()) + } + } + + /// Exit scope for `then` branch of conditional. + pub fn exit_then_scope(&mut self, is_finalize: bool) { + // Check if a nested conditional statement signaled their existence. + if !self.outer_is_parent && is_finalize && self.enabled { + // In the case that the current conditional statement is not a leaf node in the tree, need to commit updated set of futures to await. + self.updated_to_await.extend(self.to_await.clone()); + } + } + + /// Enter scope for `otherwise` branch of conditional. + pub fn create_otherwise_scope(&mut self, is_finalize: bool, current_bst_nodes: Vec) { + if is_finalize && self.enabled { + self.to_await = current_bst_nodes; + // Reset the `is_parent` signal. + self.outer_is_parent = false; + } + } + + /// Exit scope for conditional statement at current depth. + pub fn exit_scope(&mut self, is_root: bool, is_finalize: bool) { + if is_finalize && self.enabled { + // Check if the current conditional statement is a leaf node. + if !self.outer_is_parent { + // Add to the updated set of futures to await. + self.updated_to_await.extend(self.to_await.clone()); + } + + if is_root { + // Update the set of all possible paths of futures awaited. + self.to_await = core::mem::replace(&mut self.updated_to_await, Vec::new()); + // Restore the `has_root` flag. + self.has_root = false; + } + + // Set `is_parent` flag to signal to possible parent conditional that they are not a leaf node. + self.outer_is_parent = true; + } + } +} diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs new file mode 100644 index 0000000000..846f710e5f --- /dev/null +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -0,0 +1,75 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use indexmap::{IndexMap, IndexSet}; +use leo_ast::{Identifier, Variant}; +use leo_span::Symbol; + +pub struct ScopeState { + /// The name of the function that we are currently traversing. + pub(crate) function: Option, + /// The variant of the function that we are currently traversing. + pub(crate) variant: Option, + /// Whether or not the function that we are currently traversing has a return statement. + pub(crate) has_return: bool, + /// Whether or not we are currently traversing a finalize block. + pub(crate) is_finalize: bool, + /// Whether or not we are currently traversing a return statement. + pub(crate) is_return: bool, + /// Current program name. + pub(crate) program_name: Option, + /// Whether or not we are currently traversing a stub. + pub(crate) is_stub: bool, + /// Whether or not we are in an async transition function. + pub(crate) is_finalize_caller: bool, + /// The futures that must be propagated to an async function. + pub(crate) futures: IndexSet, + /// Whether the finalize caller has called the finalize function. + pub(crate) has_finalize: bool, + /// Whether currently traversing a conditional statement. + pub(crate) is_conditional: bool, + /// Finalize input types. + pub(crate) finalize_input_types: IndexMap<(Symbol, Symbol), Identifier>, +} + +impl ScopeState { + /// Initializes a new `ScopeState`. + pub fn new() -> Self { + Self { + function: None, + variant: None, + has_return: false, + is_finalize: false, + is_return: false, + program_name: None, + is_stub: false, + is_finalize_caller: false, + futures: IndexSet::new(), + has_finalize: false, + is_conditional: false, + finalize_input_types: IndexMap::new(), + } + } + + /// Initialize state variables for new function. + pub fn initialize_function_state(&mut self, variant: Variant, is_async: bool) { + self.variant = Some(variant); + self.is_finalize = variant == Variant::Standard && is_async; + self.is_finalize_caller = variant == Variant::Transition && is_async; + self.has_finalize = false; + self.futures = IndexSet::new(); + } +} diff --git a/errors/src/errors/mod.rs b/errors/src/errors/mod.rs index 80b84cd314..bbebd974a7 100644 --- a/errors/src/errors/mod.rs +++ b/errors/src/errors/mod.rs @@ -140,6 +140,9 @@ pub enum LeoWarning { /// Represents an Parser Error in a Leo Error. #[error(transparent)] ParserWarning(#[from] ParserWarning), + /// Represents a Type Checker Error in a Leo Error. + #[error(transparent)] + TypeCheckerWarning(#[from] TypeCheckerWarning), } impl LeoWarning { @@ -149,6 +152,7 @@ impl LeoWarning { match self { ParserWarning(warning) => warning.warning_code(), + TypeCheckerWarning(warning) => warning.warning_code(), } } } From 7dba5affc9db535c1b93986dc8e2cd895b3edc6d Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:19:20 -0800 Subject: [PATCH 14/80] Errors for improper awaiting of futures (static and dynamic) --- .../passes/src/type_checking/await_checker.rs | 15 ++- .../passes/src/type_checking/check_program.rs | 91 ++++++++++++++----- compiler/passes/src/type_checking/mod.rs | 9 +- errors/src/errors/type_checker/mod.rs | 3 + .../errors/type_checker/type_checker_error.rs | 27 ++++-- 5 files changed, 108 insertions(+), 37 deletions(-) diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index d7d7af7166..345f3567a2 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::ConditionalTreeNode; -use indexmap::IndexMap; +use crate::{ConditionalTreeNode, TreeNode}; +use indexmap::{IndexMap, IndexSet}; use leo_ast::{Identifier, Type}; use leo_errors::TypeCheckerError; use leo_span::{Span, Symbol}; @@ -26,7 +26,7 @@ pub struct AwaitChecker { /// Updated set of futures to await. pub(crate) updated_to_await: Vec, /// Statically updated set of futures to await. - pub(crate) static_to_await: Vec, + pub(crate) static_to_await: IndexSet, /// Whether or not to do full tree search for await checking. pub(crate) enabled: bool, /// Maximum nesting depth to search for await checking. @@ -43,13 +43,20 @@ impl AwaitChecker { Self { to_await: Vec::new(), updated_to_await: Vec::new(), - static_to_await: Vec::new(), + static_to_await: IndexSet::new(), enabled, max_depth, has_root: false, outer_is_parent: false, } } + + /// Initialize futures. + pub fn set_futures(&mut self, futures: IndexSet) { + (self.to_await, self.static_to_await) = (vec![TreeNode::new( + futures.clone(), + )], futures); + } /// Enter scope for `then` branch of conditional. pub fn create_then_scope( diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 9061695e63..39d05fe61e 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -14,10 +14,10 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{DiGraphError, TypeChecker}; +use crate::{DiGraphError, TreeNode, TypeChecker}; use leo_ast::*; -use leo_errors::TypeCheckerError; +use leo_errors::{TypeCheckerError, TypeCheckerWarning}; use leo_span::sym; use snarkvm::console::network::{Network, Testnet3}; @@ -41,7 +41,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { } self.visit_stub(stub) }); - self.is_stub = false; + self.scope_state.is_stub = false; // Typecheck the program scopes. input.program_scopes.values().for_each(|scope| self.visit_program_scope(scope)); @@ -49,7 +49,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { fn visit_stub(&mut self, input: &'a Stub) { // Set the current program name. - self.program_name = Some(input.stub_id.name.name); + self.scope_state.program_name = Some(input.stub_id.name.name); // Cannot have constant declarations in stubs. if !input.consts.is_empty() { @@ -71,8 +71,12 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Lookup function metadata in the symbol table. // Note that this unwrap is safe since function metadata is stored in a prior pass. - let function_index = - self.symbol_table.borrow().lookup_fn_symbol(self.program_name.unwrap(), input.identifier.name).unwrap().id; + let function_index = self + .symbol_table + .borrow() + .lookup_fn_symbol(self.scope_state.program_name.unwrap(), input.identifier.name) + .unwrap() + .id; // Enter the function's scope. self.enter_scope(function_index); @@ -96,7 +100,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { fn visit_program_scope(&mut self, input: &'a ProgramScope) { // Set the current program name. - self.program_name = Some(input.program_id.name.name); + self.scope_state.program_name = Some(input.program_id.name.name); // Typecheck each const definition, and append to symbol table. input.consts.iter().for_each(|(_, c)| self.visit_const(c)); @@ -267,18 +271,14 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { } // Set type checker variables for function variant details. - self.variant = Some(function.variant); - self.is_finalize = function.variant == Variant::Standard && function.is_async; - self.is_finalize_caller = function.variant == Variant::Transition && function.is_async; - self.has_finalize = false; - self.futures = IndexSet::new(); + self.scope_state.initialize_function_state(function.variant, function.is_async); // Lookup function metadata in the symbol table. // Note that this unwrap is safe since function metadata is stored in a prior pass. let function_index = self .symbol_table .borrow() - .lookup_fn_symbol(self.program_name.unwrap(), function.identifier.name) + .lookup_fn_symbol(self.scope_state.program_name.unwrap(), function.identifier.name) .unwrap() .id; @@ -286,10 +286,10 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.enter_scope(function_index); // The function's body does not have a return statement. - self.has_return = false; + self.scope_state.has_return = false; // Store the name of the function. - self.function = Some(function.name()); + self.scope_state.function = Some(function.name()); // Create a new child scope for the function's parameters and body. let scope_index = self.create_child_scope(); @@ -297,33 +297,34 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Query helper function to type check function parameters and outputs. self.check_function_signature(function); - if self.is_finalize { + if self.scope_state.is_finalize { // Async functions cannot have empty blocks if function.block.statements.is_empty() { self.emit_err(TypeCheckerError::finalize_block_must_not_be_empty(function.block.span)); } // Initialize the list of input futures. Each one must be awaited before the end of the function. - self.to_await = function + self.await_checker.set_futures( + function .input .iter() .filter_map(|input| match input { Internal(parameter) => { if let Some(Type::Future(ty)) = parameter.type_.clone() { - Some(parameter.identifier.name) + Some(parameter.identifier) } else { None } } External(_) => None, }) - .collect(); + .collect()); } self.visit_block(&function.block); // If the function has a return type, then check that it has a return. - if function.output_type != Type::Unit && !self.has_return { + if function.output_type != Type::Unit && !self.scope_state.has_return { self.emit_err(TypeCheckerError::missing_return(function.span)); } @@ -334,13 +335,55 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.exit_scope(function_index); // Make sure that async transitions call finalize. - if self.is_finalize_caller && !self.has_finalize { + if self.scope_state.is_finalize_caller && !self.scope_state.has_finalize { self.emit_err(TypeCheckerError::async_transition_must_call_async_function(function.span)); } - // Must have awaited all futures. - if self.is_finalize && !self.to_await.is_empty() { - self.emit_err(TypeCheckerError::must_await_all_futures(&self.to_await, function.span())); + // Check that all futures were awaited exactly once. + if self.scope_state.is_finalize { + // Throw error if not all futures awaits even appear once. + if !self.await_checker.static_to_await.is_empty() { + self.emit_err(TypeCheckerError::future_awaits_missing( + self.await_checker.static_to_await.clone().iter().map(|f| f.to_string().collect::>()), + function.span(), + )); + } else { + // Tally up number of paths that are unawaited and number of paths that are awaited more than once. + let (num_paths_unawaited, num_paths_duplicate_awaited, num_perfect) = + self.await_checker.to_await.iter().fold((0, 0, 0), |(unawaited, duplicate, perfect), path| { + ( + unawaited + if !path.elements.is_empty() { 0 } else { 1 }, + duplicate + if path.counter > 0 { 1 } else { 0 }, + perfect + if path.counter > 0 || !path.elements.is_empty() { 0 } else { 1 }, + ) + }); + + // Throw error if there does not exist a path in which all futures are awaited exactly once. + if num_perfect == 0 { + self.emit_err(TypeCheckerError::no_path_awaits_all_futures_exactly_once( + self.await_checker.to_await.len(), + function.span(), + )); + } + + // Throw warning if some futures are awaited more than once in some paths. + if num_paths_unawaited > 0 { + self.emit_warning(TypeCheckerWarning::some_paths_do_not_await_all_futures( + self.await_checker.to_await.len(), + num_paths_unawaited, + function.span(), + )); + } + + // Throw warning if not all futures are awaited in some paths. + if num_paths_duplicate_awaited > 0 { + self.emit_warning(TypeCheckerWarning::some_paths_contain_duplicate_future_awaits( + self.await_checker.to_await.len(), + num_paths_duplicate_awaited, + function.span(), + )); + } + } } } } diff --git a/compiler/passes/src/type_checking/mod.rs b/compiler/passes/src/type_checking/mod.rs index 7ba8c79914..a7f1e54aa2 100644 --- a/compiler/passes/src/type_checking/mod.rs +++ b/compiler/passes/src/type_checking/mod.rs @@ -20,7 +20,10 @@ pub mod check_program; pub mod check_statements; +mod await_checker; pub mod checker; +mod scope_state; + pub use checker::*; use crate::{CallGraph, Pass, StructGraph, SymbolTable, TypeTable}; @@ -29,11 +32,11 @@ use leo_ast::{Ast, ProgramVisitor}; use leo_errors::{emitter::Handler, Result}; impl<'a> Pass for TypeChecker<'a> { - type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable); + type Input = (&'a Ast, &'a Handler, SymbolTable, &'a TypeTable, usize, bool); type Output = Result<(SymbolTable, StructGraph, CallGraph)>; - fn do_pass((ast, handler, st, tt): Self::Input) -> Self::Output { - let mut visitor = TypeChecker::new(st, tt, handler); + fn do_pass((ast, handler, st, tt, max_depth, await_checking): Self::Input) -> Self::Output { + let mut visitor = TypeChecker::new(st, tt, handler, max_depth, await_checking); visitor.visit_program(ast.as_repr()); handler.last_err().map_err(|e| *e)?; diff --git a/errors/src/errors/type_checker/mod.rs b/errors/src/errors/type_checker/mod.rs index a3dbb42ee8..8ff222b0df 100644 --- a/errors/src/errors/type_checker/mod.rs +++ b/errors/src/errors/type_checker/mod.rs @@ -17,3 +17,6 @@ /// This module contains the Input error definitions. pub mod type_checker_error; pub use self::type_checker_error::*; + +pub mod type_checker_warning; +pub use self::type_checker_warning::*; diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index f76bed9366..005a572223 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -783,12 +783,6 @@ create_messages!( help: Some("Each async transition must make a call to an async function that returns a future. Return that future at the end of the transition function.".to_string()), } - @formatted - must_await_all_futures { - args: (never_awaited: impl Display), - msg: format!("All futures must be awaited before the function returns. The following were never awaited: {never_awaited}"), - help: Some("Example: `async function foo(f: Future) -> Future { f.await(); }`".to_string()), - } @formatted must_propagate_all_futures { @@ -825,4 +819,25 @@ create_messages!( msg: format!("Future access must be a number not `{name}`."), help: Some(" Future arguments must be addressed by their index. Ex: `f.1.3`.".to_string()), } + + @formatted + max_conditional_block_depth_exceeded { + args: (max: impl Display), + msg: format!("The type checker has exceeded the max depth of nested conditional blocks: {max}."), + help: Some("Re-run with a larger maximum depth using the `--conditional_block_max_depth` build option. Ex: `leo run main --conditional_block_max_depth 25`.".to_string()), + } + + @formatted + no_path_awaits_all_futures_exactly_once { + args: (num_total_paths: impl Display), + msg: format!("Futures must be awaited exactly once. Out of `{num_total_paths}`, there does not exist a single path in which all futures are awaited exactly once."), + help: Some("Ex: for `f: Future` call `f.await()` to await a future. Remove duplicate future await redundancies, and add future awaits for un-awaited futures.".to_string()), + } + + @formatted + future_awaits_missing { + args: (unawaited: impl Display), + msg: format!("The following futures were never awaited: {unawaited}"), + help: Some("Ex: for `f: Future` call `f.await()` to await a future.".to_string()), + } ); From b7c1f472d6e14091f0b803d7700e34a507614a8b Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 26 Feb 2024 18:34:49 -0800 Subject: [PATCH 15/80] Track all possible paths through nested conditionals for unawaited and duplicate awaited futures --- .../passes/src/type_checking/await_checker.rs | 65 ++++--------- .../src/type_checking/check_statements.rs | 70 +++++++------- compiler/passes/src/type_checking/checker.rs | 93 ++++++++----------- 3 files changed, 96 insertions(+), 132 deletions(-) diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index 345f3567a2..0438030782 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -20,40 +20,32 @@ use leo_ast::{Identifier, Type}; use leo_errors::TypeCheckerError; use leo_span::{Span, Symbol}; -pub struct AwaitChecker { +// TODO: Could optimize by removing duplicate paths (if set of futures is the same). +pub struct AwaitChecker<'a> { /// All possible subsets of futures that must be awaited. - pub(crate) to_await: Vec, - /// Updated set of futures to await. - pub(crate) updated_to_await: Vec, + pub(crate) to_await: &'a mut Vec, /// Statically updated set of futures to await. pub(crate) static_to_await: IndexSet, /// Whether or not to do full tree search for await checking. pub(crate) enabled: bool, /// Maximum nesting depth to search for await checking. pub(crate) max_depth: usize, - /// Whether the current BST has a root node. - pub(crate) has_root: bool, - /// A signal to a potential parent nested conditional that it is not a leaf node in the BST. - pub(crate) outer_is_parent: bool, } impl AwaitChecker { /// Initializes a new `AwaitChecker`. pub fn new(max_depth: usize, enabled: bool) -> Self { Self { - to_await: Vec::new(), - updated_to_await: Vec::new(), + to_await: &mut Vec::new(), static_to_await: IndexSet::new(), enabled, max_depth, - has_root: false, - outer_is_parent: false, } } /// Initialize futures. pub fn set_futures(&mut self, futures: IndexSet) { - (self.to_await, self.static_to_await) = (vec![TreeNode::new( + (self.to_await, self.static_to_await) = (&mut vec![TreeNode::new( futures.clone(), )], futures); } @@ -63,7 +55,7 @@ impl AwaitChecker { &mut self, is_finalize: bool, input: Span, - ) -> Result, TypeCheckerError> { + ) -> Result<&mut Vec, TypeCheckerError> { if is_finalize && self.enabled { let mut current_nodes = Vec::new(); // Extend all paths by one node to represent the upcoming `then` branch. @@ -75,52 +67,31 @@ impl AwaitChecker { // Extend current path. current_nodes.push(node.clone().create_child()); } - // Reset the `is_parent` signal. - self.outer_is_parent = false; // Update the set of nodes to be current set. - self.to_await = current_nodes.clone(); - Ok(current_nodes) + self.to_await = &mut current_nodes.clone(); + Ok(&mut current_nodes) } else { - Ok(Vec::new()) + Ok(&mut Vec::new()) } } /// Exit scope for `then` branch of conditional. - pub fn exit_then_scope(&mut self, is_finalize: bool) { + pub fn exit_then_scope(&mut self, is_finalize: bool, parent_nodes: &mut Vec) -> &mut Vec { // Check if a nested conditional statement signaled their existence. - if !self.outer_is_parent && is_finalize && self.enabled { - // In the case that the current conditional statement is not a leaf node in the tree, need to commit updated set of futures to await. - self.updated_to_await.extend(self.to_await.clone()); - } - } - - /// Enter scope for `otherwise` branch of conditional. - pub fn create_otherwise_scope(&mut self, is_finalize: bool, current_bst_nodes: Vec) { if is_finalize && self.enabled { - self.to_await = current_bst_nodes; - // Reset the `is_parent` signal. - self.outer_is_parent = false; + let saved = self.to_await; + self.to_await = parent_nodes; + saved + } else { + &mut Vec::new() } } /// Exit scope for conditional statement at current depth. - pub fn exit_scope(&mut self, is_root: bool, is_finalize: bool) { + pub fn exit_statement_scope(&mut self, is_finalize: bool, then_nodes: &mut Vec) { if is_finalize && self.enabled { - // Check if the current conditional statement is a leaf node. - if !self.outer_is_parent { - // Add to the updated set of futures to await. - self.updated_to_await.extend(self.to_await.clone()); - } - - if is_root { - // Update the set of all possible paths of futures awaited. - self.to_await = core::mem::replace(&mut self.updated_to_await, Vec::new()); - // Restore the `has_root` flag. - self.has_root = false; - } - - // Set `is_parent` flag to signal to possible parent conditional that they are not a leaf node. - self.outer_is_parent = true; + // Merge together the current set of nodes (from `otherwise` branch) with `then` nodes. + self.to_await = [then_nodes, self.to_await].concat() } } } diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 633fcfd052..ef6b37048e 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{TypeChecker, VariableSymbol, VariableType}; +use crate::{ConditionalTreeNode, TreeNode, TypeChecker, VariableSymbol, VariableType}; use indexmap::IndexSet; use itertools::Itertools; @@ -25,7 +25,7 @@ use leo_span::{Span, Symbol}; impl<'a> StatementVisitor<'a> for TypeChecker<'a> { fn visit_statement(&mut self, input: &'a Statement) { // No statements can follow a return statement. - if self.has_return { + if self.scope_state.has_return { self.emit_err(TypeCheckerError::unreachable_code_after_return(input.span())); return; } @@ -106,26 +106,30 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { let mut then_block_has_return = false; let mut otherwise_block_has_return = false; - let mut then_block_has_finalize = false; - let mut otherwise_block_has_finalize = false; - // Set the `has_return` flag for the then-block. - let previous_has_return = core::mem::replace(&mut self.has_return, then_block_has_return); - // Set the `has_finalize` flag for the then-block. - let previous_has_finalize = core::mem::replace(&mut self.has_finalize, then_block_has_finalize); - + let previous_has_return = core::mem::replace(&mut self.scope_state.has_return, then_block_has_return); + // Set the `is_conditional` flag for the conditional block. + let previous_is_conditional = core::mem::replace(&mut self.scope_state.is_conditional, true); + + // Create scope for checking awaits in `then` branch of conditional. + let mut current_bst_nodes: &mut Vec = + match self.await_checker.create_then_scope(self.scope_state.is_finalize, input.span) { + Ok(nodes) => nodes, + Err(err) => return self.emit_err(err), + }; + + // Visit block. self.visit_block(&input.then); // Store the `has_return` flag for the then-block. - then_block_has_return = self.has_return; - // Store the `has_finalize` flag for the then-block. - then_block_has_finalize = self.has_finalize; + then_block_has_return = self.scope_state.has_return; + + // Exit scope for checking awaits in `then` branch of conditional. + let saved_paths = self.await_checker.exit_then_scope(self.scope_state.is_finalize, &mut current_bst_nodes); if let Some(otherwise) = &input.otherwise { // Set the `has_return` flag for the otherwise-block. - self.has_return = otherwise_block_has_return; - // Set the `has_finalize` flag for the otherwise-block. - self.has_finalize = otherwise_block_has_finalize; + self.scope_state.has_return = otherwise_block_has_return; match &**otherwise { Statement::Block(stmt) => { @@ -137,16 +141,16 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } // Store the `has_return` flag for the otherwise-block. - otherwise_block_has_return = self.has_return; - // Store the `has_finalize` flag for the otherwise-block. - otherwise_block_has_finalize = self.has_finalize; + otherwise_block_has_return = self.scope_state.has_return; } + // Update the set of all possible BST paths. + self.await_checker.exit_statement_scope(self.scope_state.is_finalize, saved_paths); + // Restore the previous `has_return` flag. - self.has_return = previous_has_return || (then_block_has_return && otherwise_block_has_return); - // Restore the previous `has_finalize` flag. - // TODO: doesn't this mean that we allow multiple finalizes? - self.has_finalize = previous_has_finalize || (then_block_has_finalize && otherwise_block_has_finalize); + self.scope_state.has_return = previous_has_return || (then_block_has_return && otherwise_block_has_return); + // Restore the previous `is_conditional` flag. + self.scope_state.is_conditional = previous_is_conditional; } fn visit_console(&mut self, _: &'a ConsoleStatement) { @@ -318,21 +322,21 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { self.handler.emit_err(err); } - let prior_has_return = core::mem::take(&mut self.has_return); - let prior_has_finalize = core::mem::take(&mut self.has_finalize); + let prior_has_return = core::mem::take(&mut self.scope_state.has_return); + let prior_has_finalize = core::mem::take(&mut self.scope_state.has_finalize); self.visit_block(&input.block); - if self.has_return { + if self.scope_state.has_return { self.emit_err(TypeCheckerError::loop_body_contains_return(input.span())); } - if self.has_finalize { + if self.scope_state.has_finalize { self.emit_err(TypeCheckerError::loop_body_contains_finalize(input.span())); } - self.has_return = prior_has_return; - self.has_finalize = prior_has_finalize; + self.scope_state.has_return = prior_has_return; + self.scope_state.has_finalize = prior_has_finalize; // Exit the scope. self.exit_scope(scope_index); @@ -382,15 +386,15 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { fn visit_return(&mut self, input: &'a ReturnStatement) { // We can safely unwrap all self.parent instances because // statements should always have some parent block - let parent = self.function.unwrap(); + let parent = self.scope_state.function.unwrap(); let return_type = &self .symbol_table .borrow() - .lookup_fn_symbol(self.program_name.unwrap(), parent) + .lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent) .map(|f| f.output_type.clone()); // Set the `has_return` flag. - self.has_return = true; + self.scope_state.has_return = true; // Check that the return expression is not a nested tuple. if let Expression::Tuple(TupleExpression { elements, .. }) = &input.expression { @@ -402,10 +406,10 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } // Set the `is_return` flag. This is necessary to allow unit expressions in the return statement. - self.is_return = true; + self.scope_state.is_return = true; // Type check the associated expression. self.visit_expression(&input.expression, return_type); // Unset the `is_return` flag. - self.is_return = false; + self.scope_state.is_return = false; } } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 6a381dbfb7..e5673754c6 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{CallGraph, StructGraph, SymbolTable, TypeTable, VariableSymbol, VariableType}; +use crate::{CallGraph, StructGraph, SymbolTable, TreeNode, TypeTable, VariableSymbol, VariableType}; use leo_ast::{ Composite, @@ -31,14 +31,15 @@ use leo_ast::{ Type, Variant, }; -use leo_errors::{emitter::Handler, TypeCheckerError}; +use leo_errors::{emitter::Handler, TypeCheckerError, TypeCheckerWarning}; use leo_span::{Span, Symbol}; use snarkvm::console::network::{Network, Testnet3}; +use crate::type_checking::{await_checker::AwaitChecker, scope_state::ScopeState}; use indexmap::{IndexMap, IndexSet}; use itertools::Itertools; -use std::cell::RefCell; +use std::{cell::RefCell, mem::discriminant}; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -51,30 +52,12 @@ pub struct TypeChecker<'a> { pub(crate) call_graph: CallGraph, /// The error handler. pub(crate) handler: &'a Handler, - /// The name of the function that we are currently traversing. - pub(crate) function: Option, - /// The variant of the function that we are currently traversing. - pub(crate) variant: Option, - /// Whether or not the function that we are currently traversing has a return statement. - pub(crate) has_return: bool, - /// Whether or not we are currently traversing a finalize block. - pub(crate) is_finalize: bool, - /// Whether or not we are currently traversing a return statement. - pub(crate) is_return: bool, - /// Current program name. - pub(crate) program_name: Option, - /// Whether or not we are currently traversing a stub. - pub(crate) is_stub: bool, - /// Whether or not we are in an async transition function. - pub(crate) is_finalize_caller: bool, - /// The futures that must be awaited. - pub(crate) to_await: IndexSet, - /// The futures that must be propagated to an async function. - pub(crate) futures: IndexSet, - /// Whether the finalize caller has called the finalize function. - pub(crate) has_finalize: bool, + /// The state of the current scope being traversed. + pub(crate) scope_state: ScopeState, + /// Struct to store the state relevant to checking all futures are awaited. + pub(crate) await_checker: AwaitChecker, /// Mapping from async function name to the inferred input types. - pub(crate) inferred_future_types: IndexMap>, + pub(crate) finalize_input_types: IndexMap>, } const ADDRESS_TYPE: Type = Type::Address; @@ -123,7 +106,13 @@ const MAGNITUDE_TYPES: [Type; 3] = impl<'a> TypeChecker<'a> { /// Returns a new type checker given a symbol table and error handler. - pub fn new(symbol_table: SymbolTable, type_table: &'a TypeTable, handler: &'a Handler) -> Self { + pub fn new( + symbol_table: SymbolTable, + type_table: &'a TypeTable, + handler: &'a Handler, + max_depth: usize, + disabled: bool, + ) -> Self { let struct_names = symbol_table.structs.keys().map(|loc| loc.name).collect(); let function_names = symbol_table.functions.keys().map(|loc| loc.name).collect(); @@ -134,18 +123,9 @@ impl<'a> TypeChecker<'a> { struct_graph: StructGraph::new(struct_names), call_graph: CallGraph::new(function_names), handler, - function: None, - variant: None, - has_return: false, - is_finalize: false, - is_return: false, - program_name: None, - is_stub: true, - is_finalize_caller: false, - to_await: IndexSet::new(), - futures: IndexSet::new(), - has_finalize: false, - inferred_future_types: IndexMap::new(), + scope_state: ScopeState::new(), + await_checker: AwaitChecker::new(max_depth, !disabled), + finalize_input_types: IndexMap::new(), } } @@ -178,6 +158,11 @@ impl<'a> TypeChecker<'a> { self.handler.emit_err(err); } + /// Emits a type checker warning + pub(crate) fn emit_warning(&self, warning: TypeCheckerWarning) { + self.handler.emit_warning(warning.into()); + } + /// Emits an error to the handler if the given type is invalid. fn check_type(&self, is_valid: impl Fn(&Type) -> bool, error_string: String, type_: &Option, span: Span) { if let Some(type_) = type_ { @@ -983,7 +968,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingGet => { // Check that the operation is invoked in a `finalize` block. - if !self.is_finalize { + if !self.scope_state.is_finalize { self.handler .emit_err(TypeCheckerError::invalid_operation_outside_finalize("Mapping::get", function_span)) } @@ -999,7 +984,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingGetOrUse => { // Check that the operation is invoked in a `finalize` block. - if !self.is_finalize { + if !self.scope_state.is_finalize { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "Mapping::get_or", function_span, @@ -1019,7 +1004,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingSet => { // Check that the operation is invoked in a `finalize` block. - if !self.is_finalize { + if !self.scope_state.is_finalize { self.handler .emit_err(TypeCheckerError::invalid_operation_outside_finalize("Mapping::set", function_span)) } @@ -1037,7 +1022,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingRemove => { // Check that the operation is invoked in a `finalize` block. - if !self.is_finalize { + if !self.scope_state.is_finalize { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "Mapping::remove", function_span, @@ -1055,7 +1040,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingContains => { // Check that the operation is invoked in a `finalize` block. - if !self.is_finalize { + if !self.scope_state.is_finalize { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "Mapping::contains", function_span, @@ -1256,11 +1241,13 @@ impl<'a> TypeChecker<'a> { /// Helper function to check that the input and output of function are valid pub(crate) fn check_function_signature(&mut self, function: &Function) { - self.variant = Some(function.variant); + self.scope_state.variant = Some(function.variant); // Special type checking for finalize blocks. - if self.is_finalize { - if let Some(inferred_future_types) = self.inferred_future_types.borrow().get(&self.function.unwrap()) { + if self.scope_state.is_finalize { + if let Some(inferred_future_types) = + self.finalize_input_types.borrow().get(&self.scope_state.function.unwrap()) + { // Check same number of inputs as expected. if inferred_future_types.len() != function.input.len() { self.emit_err(TypeCheckerError::async_function_input_length_mismatch( @@ -1308,14 +1295,14 @@ impl<'a> TypeChecker<'a> { } // Check that the finalize input parameter is not constant or private. - if self.is_finalize && (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { + if self.scope_state.is_finalize && (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { if (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); } } // Note that this unwrap is safe since we assign to `self.variant` above. - match self.variant.unwrap() { + match self.scope_state.variant.unwrap() { // If the function is a transition function, then check that the parameter mode is not a constant. Variant::Transition if input_var.mode() == Mode::Constant => { self.emit_err(TypeCheckerError::transition_function_inputs_cannot_be_const(input_var.span())) @@ -1379,11 +1366,12 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::cannot_have_constant_output_mode(function_output.span)); } // An async function must return a single future. - if self.is_finalize && (index > 0 || !matches!(function_output.type_, Type::Future(_))) { + if self.scope_state.is_finalize && (index > 0 || !matches!(function_output.type_, Type::Future(_))) + { self.emit_err(TypeCheckerError::async_function_must_return_single_future(function_output.span)); } // Async transitions must return one future in the first position. - if self.is_finalize_caller + if self.scope_state.is_finalize_caller && ((index > 0 && matches!(function_output.type_, Type::Future(_))) || (index == 0 && !matches!(function_output.type_, Type::Future(_)))) { @@ -1402,7 +1390,8 @@ impl<'a> TypeChecker<'a> { match st.lookup_struct(composite.program.unwrap(), composite.id.name) { None => self.emit_err(TypeCheckerError::undefined_type(composite.id, span)), Some(composite_def) => { - if !composite_def.is_record && composite_def.external.unwrap() != self.program_name.unwrap() { + if !composite_def.is_record && composite_def.external.unwrap() != self.scope_state.program_name.unwrap() + { self.emit_err(TypeCheckerError::cannot_define_external_struct(composite.id, span)) } } From 8320adccdfbd6b50e20c93e21c14f123f1f33ad0 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:09:00 -0800 Subject: [PATCH 16/80] Type inference for external finalize inputs --- compiler/ast/src/stub/function_stub.rs | 18 ++++-- compiler/ast/src/stub/future_stub.rs | 61 +++++++++++++++++++ compiler/ast/src/stub/mod.rs | 3 + compiler/ast/src/types/future.rs | 4 ++ .../passes/src/type_checking/check_program.rs | 23 ++++++- compiler/passes/src/type_checking/checker.rs | 22 ++----- utils/disassembler/src/lib.rs | 2 +- 7 files changed, 109 insertions(+), 24 deletions(-) create mode 100644 compiler/ast/src/stub/future_stub.rs diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index 5c9d146e18..e6b0b8fa40 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -35,7 +35,7 @@ use crate::{ }; use leo_span::{sym, Span, Symbol}; -use crate::Type::Composite; +use crate::Type::{Composite}; use itertools::Itertools; use serde::{Deserialize, Serialize}; use snarkvm::{ @@ -47,6 +47,7 @@ use snarkvm::{ synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; use std::fmt; +use crate::stub::future_stub::FutureStub; /// A function stub definition. #[derive(Clone, Serialize, Deserialize)] @@ -59,6 +60,8 @@ pub struct FunctionStub { pub variant: Variant, /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. pub identifier: Identifier, + /// Ordered list of futures inputted to finalize. + pub future_stubs: Vec, /// The function's input parameters. pub input: Vec, /// The function's output declarations. @@ -104,7 +107,7 @@ impl FunctionStub { _ => Type::Tuple(TupleType::new(output.iter().map(get_output_type).collect())), }; - FunctionStub { annotations, is_async, variant, identifier, input, output, output_type, span, id } + FunctionStub { annotations, is_async, variant, identifier, future_stubs: Vec::new(), input, output, output_type, span, id } } /// Returns function name. @@ -205,6 +208,7 @@ impl FunctionStub { is_async: function.finalize_logic().is_some(), variant: Variant::Transition, identifier: Identifier::from(function.name()), + future_stubs: Vec::new(), input: function .inputs() .iter() @@ -267,6 +271,10 @@ impl FunctionStub { is_async: true, variant: Variant::Transition, identifier: Identifier::new(name, Default::default()), + future_stubs: function.inputs().iter().filter_map(|input| match input.value_type() { + ValueType::Future(val) => Some(FutureStub::new(Identifier::from(val.program_id().name()).name, Identifier::from(val.resource()).name)), + _ => None, + }).collect(), input: function .finalize_logic() .unwrap() @@ -288,11 +296,11 @@ impl FunctionStub { .collect_vec(), output: vec![Output::Internal(FunctionOutput { mode: Mode::Public, - type_: Type::Future(FutureType { inputs: None }), + type_: Type::Future(FutureType { inputs: Vec::new() }), span: Default::default(), id: 0, })], - output_type: Type::Future(FutureType { inputs: None }), + output_type: Type::Future(FutureType { inputs: Vec::new() }), span: Default::default(), id: 0, } @@ -334,6 +342,7 @@ impl FunctionStub { is_async: false, variant: Variant::Standard, identifier: Identifier::from(closure.name()), + future_stubs: Vec::new(), input: closure .inputs() .iter() @@ -369,6 +378,7 @@ impl From for FunctionStub { is_async: function.is_async, variant: function.variant, identifier: function.identifier, + future_stubs: Vec::new(), input: function.input, output: function.output, output_type: function.output_type, diff --git a/compiler/ast/src/stub/future_stub.rs b/compiler/ast/src/stub/future_stub.rs new file mode 100644 index 0000000000..8b4eacd166 --- /dev/null +++ b/compiler/ast/src/stub/future_stub.rs @@ -0,0 +1,61 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use leo_span::Symbol; + +use serde::{Deserialize, Serialize}; + +/// A future stub definition. +#[derive(Clone, Serialize, Deserialize)] +pub struct FutureStub { + program: Symbol, + function: Symbol, +} + +impl PartialEq for FutureStub { + fn eq(&self, other: &Self) -> bool { + self.program == other.program && self.function == other.function + } +} + +impl Eq for FutureStub {} + +impl FutureStub { + /// Initialize a new future stub. + pub fn new( + program: Symbol, + function: Symbol, + ) -> Self { + FutureStub { + program, + function, + } + } + + pub fn to_key(&self) -> (Symbol, Symbol) { + (self.program, self.function) + } + + /// Get the program. + pub fn program(&self) -> Symbol { + self.program + } + + /// Get the function. + pub fn function(&self) -> Symbol { + self.function + } +} diff --git a/compiler/ast/src/stub/mod.rs b/compiler/ast/src/stub/mod.rs index 0679e3311b..3f3b12eba3 100644 --- a/compiler/ast/src/stub/mod.rs +++ b/compiler/ast/src/stub/mod.rs @@ -19,6 +19,9 @@ pub mod function_stub; pub use function_stub::*; +pub mod future_stub; +pub use future_stub; + use crate::{Composite, ConstDeclaration, Identifier, Mapping, NodeID, ProgramId}; use leo_span::{Span, Symbol}; use serde::{Deserialize, Serialize}; diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index f263d708c2..f5afaffdd0 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -27,6 +27,10 @@ pub struct FutureType { } impl FutureType { + /// Initialize a new future type. + pub fn new(inputs: Vec) -> Self { + Self { inputs } + } /// Returns the inputs of the future type. pub fn inputs(&self) -> &[Type] { &self.inputs diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 39d05fe61e..5ae49504c6 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -25,6 +25,7 @@ use snarkvm::console::network::{Network, Testnet3}; use indexmap::IndexSet; use leo_ast::Input::{External, Internal}; use std::collections::HashSet; +use leo_ast::Type::Future; // TODO: Cleanup logic for tuples. @@ -32,6 +33,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { fn visit_program(&mut self, input: &'a Program) { // Typecheck the program's stubs. input.stubs.iter().for_each(|(symbol, stub)| { + // Check that naming and ordering is consistent. if symbol != &stub.stub_id.name.name { self.emit_err(TypeCheckerError::stub_name_mismatch( symbol, @@ -84,6 +86,25 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Create a new child scope for the function's parameters and body. let scope_index = self.create_child_scope(); + // Create future stubs. + let finalize_input_map = &mut self.finalize_input_types; + let mut future_stubs = input.future_stubs.clone(); + let resolved_inputs = input.input.iter().map(|input_mode| { + match input_mode { + Internal(function_input) => match &function_input.type_ { + Future(_) => { + // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. + Future(FutureType::new(finalize_input_map.get(&future_stubs.pop().unwrap().to_key()).unwrap().clone())) + } + _ => function_input.clone().type_, + }, + External(_) => {} + } + }).collect(); + assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); + + finalize_input_map.insert((self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); + // Query helper function to type check function parameters and outputs. self.check_function_signature(&Function::from(input.clone())); @@ -339,7 +360,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::async_transition_must_call_async_function(function.span)); } - // Check that all futures were awaited exactly once. + // Check that all futures were awaited exactly once. if self.scope_state.is_finalize { // Throw error if not all futures awaits even appear once. if !self.await_checker.static_to_await.is_empty() { diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index e5673754c6..e6be00989e 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -16,21 +16,7 @@ use crate::{CallGraph, StructGraph, SymbolTable, TreeNode, TypeTable, VariableSymbol, VariableType}; -use leo_ast::{ - Composite, - CompositeType, - CoreConstant, - CoreFunction, - Function, - Identifier, - IntegerType, - MappingType, - Mode, - Node, - Output, - Type, - Variant, -}; +use leo_ast::{Composite, CompositeType, CoreConstant, CoreFunction, Function, Identifier, Input, IntegerType, MappingType, Mode, Node, Output, Type, Variant}; use leo_errors::{emitter::Handler, TypeCheckerError, TypeCheckerWarning}; use leo_span::{Span, Symbol}; @@ -57,7 +43,7 @@ pub struct TypeChecker<'a> { /// Struct to store the state relevant to checking all futures are awaited. pub(crate) await_checker: AwaitChecker, /// Mapping from async function name to the inferred input types. - pub(crate) finalize_input_types: IndexMap>, + pub(crate) finalize_input_types: IndexMap<(Symbol, Symbol), Vec>, } const ADDRESS_TYPE: Type = Type::Address; @@ -1243,8 +1229,8 @@ impl<'a> TypeChecker<'a> { pub(crate) fn check_function_signature(&mut self, function: &Function) { self.scope_state.variant = Some(function.variant); - // Special type checking for finalize blocks. - if self.scope_state.is_finalize { + // Special type checking for finalize blocks. Can skip for stubs. + if self.scope_state.is_finalize & !self.scope_state.is_stub { if let Some(inferred_future_types) = self.finalize_input_types.borrow().get(&self.scope_state.function.unwrap()) { diff --git a/utils/disassembler/src/lib.rs b/utils/disassembler/src/lib.rs index d3ddf5a292..83b1504480 100644 --- a/utils/disassembler/src/lib.rs +++ b/utils/disassembler/src/lib.rs @@ -75,7 +75,7 @@ pub fn disassemble, Command: Comman "finalize/{}", Symbol::intern(&Identifier::from(id).name.to_string()) )); - Some((name, FunctionStub::from_finalize(f, name))) + Some((name, FunctionStub::from_finalize(function, name))) } None => None, }) From 084451c1c89484bcaddee6d7ff4115e901470469 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:11:28 -0800 Subject: [PATCH 17/80] Refactor to simplify borrowing --- .../passes/src/type_checking/await_checker.rs | 22 +++++++++---------- .../src/type_checking/check_statements.rs | 4 ++-- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index 0438030782..e2c9dc2bd4 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -21,9 +21,9 @@ use leo_errors::TypeCheckerError; use leo_span::{Span, Symbol}; // TODO: Could optimize by removing duplicate paths (if set of futures is the same). -pub struct AwaitChecker<'a> { +pub struct AwaitChecker { /// All possible subsets of futures that must be awaited. - pub(crate) to_await: &'a mut Vec, + pub(crate) to_await: Vec, /// Statically updated set of futures to await. pub(crate) static_to_await: IndexSet, /// Whether or not to do full tree search for await checking. @@ -36,16 +36,16 @@ impl AwaitChecker { /// Initializes a new `AwaitChecker`. pub fn new(max_depth: usize, enabled: bool) -> Self { Self { - to_await: &mut Vec::new(), + to_await: Vec::new(), static_to_await: IndexSet::new(), enabled, max_depth, } } - + /// Initialize futures. pub fn set_futures(&mut self, futures: IndexSet) { - (self.to_await, self.static_to_await) = (&mut vec![TreeNode::new( + (self.to_await, self.static_to_await) = (vec![TreeNode::new( futures.clone(), )], futures); } @@ -68,7 +68,7 @@ impl AwaitChecker { current_nodes.push(node.clone().create_child()); } // Update the set of nodes to be current set. - self.to_await = &mut current_nodes.clone(); + self.to_await = current_nodes.clone(); Ok(&mut current_nodes) } else { Ok(&mut Vec::new()) @@ -77,13 +77,11 @@ impl AwaitChecker { /// Exit scope for `then` branch of conditional. pub fn exit_then_scope(&mut self, is_finalize: bool, parent_nodes: &mut Vec) -> &mut Vec { - // Check if a nested conditional statement signaled their existence. + // Check if a nested conditional statement signaled their existence. if is_finalize && self.enabled { - let saved = self.to_await; - self.to_await = parent_nodes; - saved + &mut core::mem::replace(&mut self.to_await, core::mem::take(parent_nodes)) } else { - &mut Vec::new() + Vec::new() } } @@ -91,7 +89,7 @@ impl AwaitChecker { pub fn exit_statement_scope(&mut self, is_finalize: bool, then_nodes: &mut Vec) { if is_finalize && self.enabled { // Merge together the current set of nodes (from `otherwise` branch) with `then` nodes. - self.to_await = [then_nodes, self.to_await].concat() + self.to_await.extend(core::mem::take(then_nodes)); } } } diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index ef6b37048e..3bd89eec59 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -112,7 +112,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { let previous_is_conditional = core::mem::replace(&mut self.scope_state.is_conditional, true); // Create scope for checking awaits in `then` branch of conditional. - let mut current_bst_nodes: &mut Vec = + let current_bst_nodes: &mut Vec = match self.await_checker.create_then_scope(self.scope_state.is_finalize, input.span) { Ok(nodes) => nodes, Err(err) => return self.emit_err(err), @@ -125,7 +125,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { then_block_has_return = self.scope_state.has_return; // Exit scope for checking awaits in `then` branch of conditional. - let saved_paths = self.await_checker.exit_then_scope(self.scope_state.is_finalize, &mut current_bst_nodes); + let saved_paths = self.await_checker.exit_then_scope(self.scope_state.is_finalize, current_bst_nodes); if let Some(otherwise) = &input.otherwise { // Set the `has_return` flag for the otherwise-block. From ef069da30fde2ac53e47e65eb77de164ba97ffc4 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:35:58 -0800 Subject: [PATCH 18/80] Create new AST for method calls on struct instances --- compiler/ast/src/access/method_call.rs | 44 ++++++++++++++++++++++++++ compiler/ast/src/access/mod.rs | 3 ++ 2 files changed, 47 insertions(+) create mode 100644 compiler/ast/src/access/method_call.rs diff --git a/compiler/ast/src/access/method_call.rs b/compiler/ast/src/access/method_call.rs new file mode 100644 index 0000000000..5874ea0ea4 --- /dev/null +++ b/compiler/ast/src/access/method_call.rs @@ -0,0 +1,44 @@ +// Copyright (C) 2019-2023 Aleo Systems Inc. +// This file is part of the Leo library. + +// The Leo library is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// The Leo library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with the Leo library. If not, see . + +use crate::{Expression, Identifier, Node, NodeID}; +use leo_span::Span; + +use serde::{Deserialize, Serialize}; +use std::fmt; + +/// An access expression to a method call in a struct, e.g.`future_var.await()`. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct MethodCall { + /// The target of the method call. + pub receiver: Box, + /// The name of the method that is being called. + pub name: Identifier, + /// The arguments passed to the function `name`. + pub arguments: Vec, + /// The span for the entire expression. + pub span: Span, + /// The ID of the node. + pub id: NodeID, +} + +impl fmt::Display for MethodCall { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}{}()", self.receiver, self.name) + } +} + +crate::simple_node_impl!(MethodCall); diff --git a/compiler/ast/src/access/mod.rs b/compiler/ast/src/access/mod.rs index 95aeed7bcc..edfca1709e 100644 --- a/compiler/ast/src/access/mod.rs +++ b/compiler/ast/src/access/mod.rs @@ -26,5 +26,8 @@ pub use associated_function_access::*; mod member_access; pub use member_access::*; +pub mod method_call; +pub use method_call::*; + mod tuple_access; pub use tuple_access::*; From a3e3065bd34b8274c3cea9e2fe62b6871ce79017 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:37:07 -0800 Subject: [PATCH 19/80] Support parsing awaiting of futures both as `f.await()` and `Future::await(f)` --- compiler/ast/src/expressions/access.rs | 7 ++++++ compiler/ast/src/stub/function_stub.rs | 31 ++++++++++++++++++------ compiler/ast/src/stub/future_stub.rs | 16 ++++-------- compiler/ast/src/types/future.rs | 1 + compiler/parser/src/parser/expression.rs | 12 ++++----- 5 files changed, 42 insertions(+), 25 deletions(-) diff --git a/compiler/ast/src/expressions/access.rs b/compiler/ast/src/expressions/access.rs index 0b6375e9af..53134d487f 100644 --- a/compiler/ast/src/expressions/access.rs +++ b/compiler/ast/src/expressions/access.rs @@ -33,6 +33,8 @@ pub enum AccessExpression { AssociatedFunction(AssociatedFunction), /// An expression accessing a field in a structure, e.g., `struct_var.field`. Member(MemberAccess), + /// Access a method associated to an instance of a struct, `f.await()`. + MethodCall(MethodCall), /// Access to a tuple field using its position, e.g., `tuple.1`. Tuple(TupleAccess), } @@ -44,6 +46,7 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.span(), AccessExpression::AssociatedFunction(n) => n.span(), AccessExpression::Member(n) => n.span(), + AccessExpression::MethodCall(n) => n.span(), AccessExpression::Tuple(n) => n.span(), } } @@ -54,6 +57,7 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.set_span(span), AccessExpression::AssociatedFunction(n) => n.set_span(span), AccessExpression::Member(n) => n.set_span(span), + AccessExpression::MethodCall(n) => n.set_span(span), AccessExpression::Tuple(n) => n.set_span(span), } } @@ -64,6 +68,7 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.id(), AccessExpression::AssociatedFunction(n) => n.id(), AccessExpression::Member(n) => n.id(), + AccessExpression::MethodCall(n) => n.id(), AccessExpression::Tuple(n) => n.id(), } } @@ -74,6 +79,7 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.set_id(id), AccessExpression::AssociatedFunction(n) => n.set_id(id), AccessExpression::Member(n) => n.set_id(id), + AccessExpression::MethodCall(n) => n.set_id(id), AccessExpression::Tuple(n) => n.set_id(id), } } @@ -87,6 +93,7 @@ impl fmt::Display for AccessExpression { AssociatedConstant(access) => access.fmt(f), AssociatedFunction(access) => access.fmt(f), Member(access) => access.fmt(f), + MethodCall(access) => access.fmt(f), Tuple(access) => access.fmt(f), } } diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index e6b0b8fa40..899f5488d5 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -35,7 +35,7 @@ use crate::{ }; use leo_span::{sym, Span, Symbol}; -use crate::Type::{Composite}; +use crate::{stub::future_stub::FutureStub, Type::Composite}; use itertools::Itertools; use serde::{Deserialize, Serialize}; use snarkvm::{ @@ -47,7 +47,6 @@ use snarkvm::{ synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; use std::fmt; -use crate::stub::future_stub::FutureStub; /// A function stub definition. #[derive(Clone, Serialize, Deserialize)] @@ -107,7 +106,18 @@ impl FunctionStub { _ => Type::Tuple(TupleType::new(output.iter().map(get_output_type).collect())), }; - FunctionStub { annotations, is_async, variant, identifier, future_stubs: Vec::new(), input, output, output_type, span, id } + FunctionStub { + annotations, + is_async, + variant, + identifier, + future_stubs: Vec::new(), + input, + output, + output_type, + span, + id, + } } /// Returns function name. @@ -271,10 +281,17 @@ impl FunctionStub { is_async: true, variant: Variant::Transition, identifier: Identifier::new(name, Default::default()), - future_stubs: function.inputs().iter().filter_map(|input| match input.value_type() { - ValueType::Future(val) => Some(FutureStub::new(Identifier::from(val.program_id().name()).name, Identifier::from(val.resource()).name)), - _ => None, - }).collect(), + future_stubs: function + .inputs() + .iter() + .filter_map(|input| match input.value_type() { + ValueType::Future(val) => Some(FutureStub::new( + Identifier::from(val.program_id().name()).name, + Identifier::from(val.resource()).name, + )), + _ => None, + }) + .collect(), input: function .finalize_logic() .unwrap() diff --git a/compiler/ast/src/stub/future_stub.rs b/compiler/ast/src/stub/future_stub.rs index 8b4eacd166..b333341b34 100644 --- a/compiler/ast/src/stub/future_stub.rs +++ b/compiler/ast/src/stub/future_stub.rs @@ -35,25 +35,19 @@ impl Eq for FutureStub {} impl FutureStub { /// Initialize a new future stub. - pub fn new( - program: Symbol, - function: Symbol, - ) -> Self { - FutureStub { - program, - function, - } + pub fn new(program: Symbol, function: Symbol) -> Self { + FutureStub { program, function } } - + pub fn to_key(&self) -> (Symbol, Symbol) { (self.program, self.function) } - + /// Get the program. pub fn program(&self) -> Symbol { self.program } - + /// Get the function. pub fn function(&self) -> Symbol { self.function diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index f5afaffdd0..fa1b3ce321 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -31,6 +31,7 @@ impl FutureType { pub fn new(inputs: Vec) -> Self { Self { inputs } } + /// Returns the inputs of the future type. pub fn inputs(&self) -> &[Type] { &self.inputs diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index c3d9d88a0d..04a0deee1d 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -357,13 +357,11 @@ impl ParserContext<'_> { span, id: self.node_builder.next_id(), }))) - } else if let (0, Some(CoreFunction::FutureAwait)) = - (args.len(), CoreFunction::from_symbols(sym::Future, method.name)) - { - Ok(Expression::Access(AccessExpression::AssociatedFunction(AssociatedFunction { - variant: method, - name: Identifier::new(sym::Future, self.node_builder.next_id()), - arguments: Vec::new(), + } else if let (0, sym::Await) = (args.len(), method.name) { + Ok(Expression::Access(AccessExpression::MethodCall(MethodCall { + receiver: Box::new(receiver), + name: method, + arguments: args, span, id: self.node_builder.next_id(), }))) From 29f1a97ee3d492168d293ae286223f712cbde472 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:42:21 -0800 Subject: [PATCH 20/80] Update helpers --- .../src/common/binary_search_tree/mod.rs | 7 +- .../passes/src/type_checking/await_checker.rs | 27 ++++-- .../passes/src/type_checking/scope_state.rs | 15 ++- .../errors/type_checker/type_checker_error.rs | 93 ++++++++++++++++++- 4 files changed, 114 insertions(+), 28 deletions(-) diff --git a/compiler/passes/src/common/binary_search_tree/mod.rs b/compiler/passes/src/common/binary_search_tree/mod.rs index 51bc265bdc..9926176777 100644 --- a/compiler/passes/src/common/binary_search_tree/mod.rs +++ b/compiler/passes/src/common/binary_search_tree/mod.rs @@ -49,12 +49,9 @@ impl TreeNode { } /// Removes an element from the current node. - pub fn remove_element(&mut self, element: &N) -> bool { - if self.elements.remove(element) { - true - } else { + pub fn remove_element(&mut self, element: &N) { + if !self.elements.remove(element) { self.counter += 1; - false } } } diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index e2c9dc2bd4..16fe17958a 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -35,19 +35,24 @@ pub struct AwaitChecker { impl AwaitChecker { /// Initializes a new `AwaitChecker`. pub fn new(max_depth: usize, enabled: bool) -> Self { - Self { - to_await: Vec::new(), - static_to_await: IndexSet::new(), - enabled, - max_depth, + Self { to_await: Vec::new(), static_to_await: IndexSet::new(), enabled, max_depth } + } + + /// Remove from list. + pub fn remove(&mut self, id: &Identifier) { + // Can assume in finalize block. + if self.enabled { + // Remove from dynamic list. + self.to_await.iter_mut().for_each(|node| node.remove_element(id)); } + + // Remove from static list. + self.static_to_await.remove(id); } /// Initialize futures. pub fn set_futures(&mut self, futures: IndexSet) { - (self.to_await, self.static_to_await) = (vec![TreeNode::new( - futures.clone(), - )], futures); + (self.to_await, self.static_to_await) = (vec![TreeNode::new(futures.clone())], futures); } /// Enter scope for `then` branch of conditional. @@ -76,7 +81,11 @@ impl AwaitChecker { } /// Exit scope for `then` branch of conditional. - pub fn exit_then_scope(&mut self, is_finalize: bool, parent_nodes: &mut Vec) -> &mut Vec { + pub fn exit_then_scope( + &mut self, + is_finalize: bool, + parent_nodes: &mut Vec, + ) -> &mut Vec { // Check if a nested conditional statement signaled their existence. if is_finalize && self.enabled { &mut core::mem::replace(&mut self.to_await, core::mem::take(parent_nodes)) diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index 846f710e5f..594f4dba2d 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -34,15 +34,13 @@ pub struct ScopeState { /// Whether or not we are currently traversing a stub. pub(crate) is_stub: bool, /// Whether or not we are in an async transition function. - pub(crate) is_finalize_caller: bool, + pub(crate) is_async_transition: bool, /// The futures that must be propagated to an async function. pub(crate) futures: IndexSet, /// Whether the finalize caller has called the finalize function. - pub(crate) has_finalize: bool, + pub(crate) has_called_finalize: bool, /// Whether currently traversing a conditional statement. pub(crate) is_conditional: bool, - /// Finalize input types. - pub(crate) finalize_input_types: IndexMap<(Symbol, Symbol), Identifier>, } impl ScopeState { @@ -56,11 +54,10 @@ impl ScopeState { is_return: false, program_name: None, is_stub: false, - is_finalize_caller: false, + is_async_transition: false, futures: IndexSet::new(), - has_finalize: false, + has_called_finalize: false, is_conditional: false, - finalize_input_types: IndexMap::new(), } } @@ -68,8 +65,8 @@ impl ScopeState { pub fn initialize_function_state(&mut self, variant: Variant, is_async: bool) { self.variant = Some(variant); self.is_finalize = variant == Variant::Standard && is_async; - self.is_finalize_caller = variant == Variant::Transition && is_async; - self.has_finalize = false; + self.is_async_transition = variant == Variant::Transition && is_async; + self.has_called_finalize = false; self.futures = IndexSet::new(); } } diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 005a572223..a3d2411fd0 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -772,18 +772,17 @@ create_messages!( @formatted async_function_must_return_single_future { args: (), - msg: "An async function must return a single future.".to_string(), + msg: "An async function must only a single output, and it must be a future.".to_string(), help: Some("Example: `async function foo() -> Future {...}`".to_string()), } @formatted - async_transition_must_return_future_as_first_output { + async_transition_invalid_output { args: (), - msg: "An async transition must return a future as its first output.".to_string(), - help: Some("Each async transition must make a call to an async function that returns a future. Return that future at the end of the transition function.".to_string()), + msg: "An async transition must return a future as its first and only output.".to_string(), + help: Some("Example: `async transition foo() -> (Future, u8, bool) {...}`".to_string()), } - @formatted must_propagate_all_futures { args: (never_propagated: impl Display), @@ -840,4 +839,88 @@ create_messages!( msg: format!("The following futures were never awaited: {unawaited}"), help: Some("Ex: for `f: Future` call `f.await()` to await a future.".to_string()), } + + @formatted + cannot_reassign_future_variable { + args: (var: impl Display), + msg: format!("Cannot reassign variable `{var}` since it has type Future."), + help: Some("Futures can only be defined as the result of async calls.".to_string()), + } + + @formatted + invalid_await_call { + args: (), + msg: "Not a valid await call.".to_string(), + help: Some("Ex: for `f: Future` call `f.await()` or `Future::Await(f)` to await a future.".to_string()), + } + + @formatted + can_only_await_one_future_at_a_time { + args: (), + msg: "Must await exactly one future at a time".to_string(), + help: Some("Ex: for `f: Future` call `f.await()` or `Future::Await(f)` to await a future.".to_string()), + } + + @formatted + expected_future { + args: (type_: impl Display), + msg: format!("Expected a future, but found `{type_}`"), + help: Some("Only futures can be awaited.".to_string()), + } + + @formatted + invalid_method_call { + args: (), + msg: "Not a valid method call.".to_string(), + help: Some("Ex: for `f: Future` call associated method for the struct instance `f.await()`.".to_string()), + } + + @formatted + async_call_in_conditional { + args: (), + msg: "Cannot call an async function in a conditional block.".to_string(), + help: Some("Move the async call outside of the conditional block.".to_string()), + } + + @formatted + must_call_finalize_once { + args: (), + msg: "Must call exactly one local async function per transition function.".to_string(), + help: Some("Move the async call outside of the transition block.".to_string()), + } + + @formatted + async_call_can_only_be_done_from_async_transition { + args: (), + msg: "Can only make an async call from an async transition.".to_string(), + help: Some("Move the async call inside of the async transition block.".to_string()), + } + + @formatted + external_transition_call_must_be_before_finalize { + args: (), + msg: "Inside the body of an async transition, all external async transition calls must be made before the transition's async function call.".to_string(), + help: Some("Move the async call before the function call.".to_string()), + } + + @formatted + unknown_future_consumed { + args: (future: impl Display), + msg: format!("Unknown future consumed: `{future}`"), + help: Some("Make sure the future is defined and consumed only once.".to_string()), + } + + @formatted + not_all_futures_consumed { + args: (unconsumed: impl Display), + msg: format!("Not all futures were consumed: {unconsumed}"), + help: Some("Make sure all futures are consumed exactly once. Consume by passing to an async function call.".to_string()), + } + + @formatted + return_in_finalize { + args: (), + msg: "Cannot return a value in an async function block.".to_string(), + help: Some("Async functions execute on-chain. Since async transitions call async functions, and async transitions execute offline, it would be impossible for the async function to be able to return on-chain state to the transition function.".to_string()), + } ); From c516db61f049e9bfa71f10e13ffad935c0dbb0b8 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:54:58 -0800 Subject: [PATCH 21/80] Finished TYC pass --- .../src/type_checking/check_expressions.rs | 153 ++++++++++++++++-- .../passes/src/type_checking/check_program.rs | 45 +++--- .../src/type_checking/check_statements.rs | 60 +++++-- compiler/passes/src/type_checking/checker.rs | 54 +++++-- .../errors/type_checker/type_checker_error.rs | 7 + 5 files changed, 264 insertions(+), 55 deletions(-) diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index ab75d08a4c..878d32db5b 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -21,6 +21,7 @@ use leo_errors::{emitter::Handler, TypeCheckerError}; use leo_span::{sym, Span}; use itertools::Itertools; +use leo_ast::CoreFunction::FutureAwait; use snarkvm::console::network::{Network, Testnet3}; use std::str::FromStr; @@ -95,7 +96,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Check core struct name and function. if let Some(core_instruction) = self.get_core_function_call(&access.variant, &access.name) { // Check that operation is not restricted to finalize blocks. - if !self.is_finalize && core_instruction.is_finalize_command() { + if !self.scope_state.is_finalize && core_instruction.is_finalize_command() { self.emit_err(TypeCheckerError::operation_must_be_in_finalize_block(input.span())); } @@ -114,11 +115,45 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.assert_type(&return_type, expected, input.span()); } + // Await futures here so that can use the argument variable names to lookup. + if core_instruction == FutureAwait { + if access.arguments.len() != 1 { + self.emit_err(TypeCheckerError::can_only_await_one_future_at_a_time(access.span)); + return Some(Type::Unit); + } + self.assert_future_await(&access.arguments.get(0), input.span()); + } + return return_type; } else { self.emit_err(TypeCheckerError::invalid_core_function_call(access, access.span())); } } + AccessExpression::MethodCall(call) => { + if call.name.name == sym::Await { + // Check core struct name and function. + if let Some(core_instruction) = + self.get_core_function_call(&Identifier::new(sym::Future, Default::default()), &call.name) + { + // Check that operation is not restricted to finalize blocks. + if !self.scope_state.is_finalize && core_instruction.is_finalize_command() { + self.emit_err(TypeCheckerError::operation_must_be_in_finalize_block(input.span())); + } + + // Await futures here so that can use the argument variable names to lookup. + if core_instruction == FutureAwait { + self.assert_future_await(&Some(&call.receiver), input.span()); + } + else { + self.emit_err(TypeCheckerError::invalid_method_call(call.span())); + } + + return Some(Type::Unit); + } else { + self.emit_err(TypeCheckerError::invalid_method_call(call.span())); + } + } + } AccessExpression::Tuple(access) => { if let Some(type_) = self.visit_expression(&access.tuple, &None) { match type_ { @@ -162,7 +197,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Expression::Identifier(identifier) if identifier.name == sym::SelfLower => match access.name.name { sym::caller => { // Check that the operation is not invoked in a `finalize` block. - if self.is_finalize { + if self.scope_state.is_finalize { self.handler.emit_err(TypeCheckerError::invalid_operation_inside_finalize( "self.caller", access.name.span(), @@ -172,7 +207,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } sym::signer => { // Check that operation is not invoked in a `finalize` block. - if self.is_finalize { + if self.scope_state.is_finalize { self.handler.emit_err(TypeCheckerError::invalid_operation_inside_finalize( "self.signer", access.name.span(), @@ -188,7 +223,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Expression::Identifier(identifier) if identifier.name == sym::block => match access.name.name { sym::height => { // Check that the operation is invoked in a `finalize` block. - if !self.is_finalize { + if !self.scope_state.is_finalize { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "block.height", access.name.span(), @@ -236,8 +271,6 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } } Some(Type::Future(f)) => { - // Retrieve the inferred input types for the future argument access. - // Make sure that the input parameter accessed is valid. if let Some(arg_num) = access.name.name.to_string().parse::() { // Make sure in range. @@ -288,6 +321,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::invalid_associated_constant(access, access.span)) } } + _ => {} } None } @@ -601,7 +635,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { if let Some(func) = func { // Check that the call is valid. // Note that this unwrap is safe since we always set the variant before traversing the body of the function. - match self.variant.unwrap() { + match self.scope_state.variant.unwrap() { // If the function is not a transition function, it can only call "inline" functions. Variant::Inline | Variant::Standard => { if !matches!(func.variant, Variant::Inline) { @@ -611,7 +645,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // If the function is a transition function, then check that the call is not to another local transition function. Variant::Transition => { if matches!(func.variant, Variant::Transition) - && input.program.unwrap() == self.program_name.unwrap() + && input.program.unwrap() == self.scope_state.program_name.unwrap() { self.emit_err(TypeCheckerError::cannot_invoke_call_to_local_transition_function( input.span, @@ -621,11 +655,13 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } // Check that the call is not to an external `inline` function. - if func.variant == Variant::Inline && input.program.unwrap() != self.program_name.unwrap() { + if func.variant == Variant::Inline + && input.program.unwrap() != self.scope_state.program_name.unwrap() + { self.emit_err(TypeCheckerError::cannot_call_external_inline_function(input.span)); } - let ret = self.assert_and_return_type(func.output_type, expected, input.span()); + let mut ret = self.assert_and_return_type(func.output_type, expected, input.span()); // Check number of function arguments. if func.input.len() != input.arguments.len() { @@ -642,17 +678,101 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { }); // Add the call to the call graph. - let caller_name = match self.function { + let caller_name = match self.scope_state.function { None => unreachable!("`self.function` is set every time a function is visited."), Some(func) => func, }; - // Don't add external functions to call graph. - // We check that there is no dependency cycle of imports, so we know that external functions can never lead to a call graph cycle - if input.program.unwrap() == self.program_name.unwrap() { + // Don't add external functions to call graph. Since imports are acyclic, these can never produce a cycle. + if input.program.unwrap() == self.scope_state.program_name.unwrap() { self.call_graph.add_edge(caller_name, ident.name); } + // Propagate futures from async functions and transitions. + if func.is_async { + // Cannot have async calls in a conditional block. + if self.scope_state.is_conditional { + self.emit_err(TypeCheckerError::async_call_in_conditional(input.span)); + } + + // Can only call async functions and external async transitions from an async transition body. + if !self.scope_state.is_async_transition { + self.emit_err(TypeCheckerError::async_call_can_only_be_done_from_async_transition( + input.span, + )); + } + + if func.variant == Variant::Transition { + // Cannot call an external async transition after having called the async function. + if self.scope_state.has_called_finalize { + self.emit_err( + TypeCheckerError::external_transition_call_must_be_before_finalize( + input.span, + ), + ); + } + // Fully infer future type. + let future_type = Type::Future(FutureType::new( + // Assumes that external function stubs have been processed. + self.finalize_input_types.get(&(input.program.unwrap(), ident.name)).unwrap().clone(), + )); + ret = match ret.clone() { + Some(Type::Tuple(tup)) => { + // Replace first element of `tup.elements` with `future_type`. This will always be a future. + let mut elements: Vec = tup.elements().clone().to_vec(); + elements[0] = future_type.clone(); + Type::Tuple(TupleType::new(elements)) + } + Some(Type::Future(f)) => future_type, + _ => { + self.emit_err(TypeCheckerError::async_transition_invalid_output(input.span)); + ret + } + } + } else if func.variant == Variant::Standard { + // Can only call an async function once in a transition function body. + if self.scope_state.has_called_finalize { + self.emit_err(TypeCheckerError::must_call_finalize_once(input.span)); + } + // Consume futures. + let st = self.symbol_table.borrow(); + let mut inferred_finalize_inputs = Vec::new(); + input.arguments.iter().for_each(|arg| { + if let Expression::Identifier(ident) = arg { + if let Some(variable) = st.lookup_variable(ident.name) { + if let Type::Future(_) = variable { + if !self.scope_state.futures.remove(ident) { + self.emit_err(TypeCheckerError::unknown_future_consumed( + ident.name, ident.span, + )); + } + } + // Add to expected finalize inputs signature. + inferred_finalize_inputs.push(variable.clone().type_); + } + } + }); + // Check that all futures consumed. + if !self.scope_state.futures.is_empty() { + self.emit_err(TypeCheckerError::not_all_futures_consumed( + self.scope_state.futures.iter().map(|f| f.name.to_string()).join(", "), + input.span, + )); + } + // Create expectation for finalize inputs that will be checked when checking corresponding finalize function signature. + self.finalize_input_types.insert( + (self.scope_state.program_name.unwrap(), self.scope_state.function.unwrap()), + inferred_finalize_inputs.clone(), + ); + + // Set scope state flag. + self.scope_state.has_called_finalize = true; + + // Update ret to reflect fully inferred future type. + ret = Type::Future(FutureType::new(inferred_finalize_inputs)); + } + } + Some(ret) } else { self.emit_err(TypeCheckerError::unknown_sym("function", ident.name, ident.span())); @@ -676,7 +796,8 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } fn visit_struct_init(&mut self, input: &'a StructExpression, additional: &Self::AdditionalInput) -> Self::Output { - let struct_ = self.symbol_table.borrow().lookup_struct(self.program_name.unwrap(), input.name.name).cloned(); + let struct_ = + self.symbol_table.borrow().lookup_struct(self.scope_state.program_name.unwrap(), input.name.name).cloned(); if let Some(struct_) = struct_ { // Check struct type name. let ret = self.check_expected_struct(&struct_, additional, input.name.span()); @@ -890,7 +1011,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { fn visit_unit(&mut self, input: &'a UnitExpression, _additional: &Self::AdditionalInput) -> Self::Output { // Unit expression are only allowed inside a return statement. - if !self.is_return { + if !self.scope_state.is_return { self.emit_err(TypeCheckerError::unit_expression_only_in_return_statements(input.span())); } Some(Type::Unit) diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 5ae49504c6..95bdbefb33 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -23,9 +23,11 @@ use leo_span::sym; use snarkvm::console::network::{Network, Testnet3}; use indexmap::IndexSet; -use leo_ast::Input::{External, Internal}; +use leo_ast::{ + Input::{External, Internal}, + Type::Future, +}; use std::collections::HashSet; -use leo_ast::Type::Future; // TODO: Cleanup logic for tuples. @@ -89,18 +91,24 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Create future stubs. let finalize_input_map = &mut self.finalize_input_types; let mut future_stubs = input.future_stubs.clone(); - let resolved_inputs = input.input.iter().map(|input_mode| { + let resolved_inputs = input + .input + .iter() + .map(|input_mode| { match input_mode { Internal(function_input) => match &function_input.type_ { Future(_) => { // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. - Future(FutureType::new(finalize_input_map.get(&future_stubs.pop().unwrap().to_key()).unwrap().clone())) + Future(FutureType::new( + finalize_input_map.get(&future_stubs.pop().unwrap().to_key()).unwrap().clone(), + )) } _ => function_input.clone().type_, }, External(_) => {} } - }).collect(); + }) + .collect(); assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); finalize_input_map.insert((self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); @@ -327,19 +335,20 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Initialize the list of input futures. Each one must be awaited before the end of the function. self.await_checker.set_futures( function - .input - .iter() - .filter_map(|input| match input { - Internal(parameter) => { - if let Some(Type::Future(ty)) = parameter.type_.clone() { - Some(parameter.identifier) - } else { - None + .input + .iter() + .filter_map(|input| match input { + Internal(parameter) => { + if let Some(Type::Future(ty)) = parameter.type_.clone() { + Some(parameter.identifier) + } else { + None + } } - } - External(_) => None, - }) - .collect()); + External(_) => None, + }) + .collect(), + ); } self.visit_block(&function.block); @@ -356,7 +365,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.exit_scope(function_index); // Make sure that async transitions call finalize. - if self.scope_state.is_finalize_caller && !self.scope_state.has_finalize { + if self.scope_state.is_async_transition && !self.scope_state.has_called_finalize { self.emit_err(TypeCheckerError::async_transition_must_call_async_function(function.span)); } diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 3bd89eec59..2d19e8f5d1 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -18,7 +18,7 @@ use crate::{ConditionalTreeNode, TreeNode, TypeChecker, VariableSymbol, Variable use indexmap::IndexSet; use itertools::Itertools; -use leo_ast::*; +use leo_ast::{Type::Future, *}; use leo_errors::TypeCheckerError; use leo_span::{Span, Symbol}; @@ -77,6 +77,10 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } _ => {} } + // Prohibit reassignment of futures. + if let Type::Future(_) = var.type_ { + self.emit_err(TypeCheckerError::cannot_reassign_future_variable(var_name, var.span)); + } Some(var.type_.clone()) } else { @@ -241,12 +245,17 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } // Check the expression on the right-hand side. - self.visit_expression(&input.value, &Some(input.type_.clone())); + let inferred_type = self.visit_expression(&input.value, &Some(input.type_.clone())); // TODO: Dedup with unrolling pass. // Helper to insert the variables into the symbol table. - let insert_variable = |symbol: Symbol, type_: Type, span: Span| { - if let Err(err) = self.symbol_table.borrow_mut().insert_variable(symbol, VariableSymbol { + let insert_variable = |name: &Identifier, type_: Type, span: Span| { + // Add to list of futures that must be consumed. + if let Type::Future(_) = type_ { + self.scope_state.futures.insert(name.clone()); + } + // Insert the variable into the symbol table. + if let Err(err) = self.symbol_table.borrow_mut().insert_variable(name.name, VariableSymbol { type_, span, declaration: VariableType::Mut, @@ -257,9 +266,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Insert the variables into the symbol table. match &input.place { - Expression::Identifier(identifier) => { - insert_variable(identifier.name, input.type_.clone(), identifier.span) - } + Expression::Identifier(identifier) => insert_variable(identifier, input.type_.clone(), identifier.span), Expression::Tuple(tuple_expression) => { let tuple_type = match &input.type_ { Type::Tuple(tuple_type) => tuple_type, @@ -285,7 +292,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { )); } }; - insert_variable(identifier.name, type_.clone(), identifier.span) + insert_variable(identifier, type_.clone(), identifier.span) }, ); } @@ -323,7 +330,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } let prior_has_return = core::mem::take(&mut self.scope_state.has_return); - let prior_has_finalize = core::mem::take(&mut self.scope_state.has_finalize); + let prior_has_finalize = core::mem::take(&mut self.scope_state.has_called_finalize); self.visit_block(&input.block); @@ -331,12 +338,12 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::loop_body_contains_return(input.span())); } - if self.scope_state.has_finalize { + if self.scope_state.has_called_finalize { self.emit_err(TypeCheckerError::loop_body_contains_finalize(input.span())); } self.scope_state.has_return = prior_has_return; - self.scope_state.has_finalize = prior_has_finalize; + self.scope_state.has_called_finalize = prior_has_finalize; // Exit the scope. self.exit_scope(scope_index); @@ -384,15 +391,44 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } fn visit_return(&mut self, input: &'a ReturnStatement) { + // Cannot return anything from finalize. + if self.scope_state.is_finalize { + self.emit_err(TypeCheckerError::return_in_finalize(input.span())); + } // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); - let return_type = &self + let mut return_type = &self .symbol_table .borrow() .lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent) .map(|f| f.output_type.clone()); + // Fully type the expected return value. + if self.scope_state.is_async_transition { + let inferred_future_type = match self + .finalize_input_types + .get(&(self.scope_state.program_name.unwrap(), self.scope_state.function.unwrap())) + { + Some(types) => Future(FutureType::new(types.clone())), + None => { + return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); + } + }; + return_type = &match return_type { + Some(Future(_)) => Some(inferred_future_type), + Some(Type::Tuple(tuple)) => { + let mut elements = tuple.elements().clone().to_vec(); + elements[0] = inferred_future_type; + Some(Type::new(elements)) + } + _ => { + self.emit_err(TypeCheckerError::async_transition_invalid_output_type(input.span())); + None + } + } + } + // Set the `has_return` flag. self.scope_state.has_return = true; diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index e6be00989e..a3ff64c90c 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -16,7 +16,23 @@ use crate::{CallGraph, StructGraph, SymbolTable, TreeNode, TypeTable, VariableSymbol, VariableType}; -use leo_ast::{Composite, CompositeType, CoreConstant, CoreFunction, Function, Identifier, Input, IntegerType, MappingType, Mode, Node, Output, Type, Variant}; +use leo_ast::{ + Composite, + CompositeType, + CoreConstant, + CoreFunction, + Expression, + Function, + Identifier, + Input, + IntegerType, + MappingType, + Mode, + Node, + Output, + Type, + Variant, +}; use leo_errors::{emitter::Handler, TypeCheckerError, TypeCheckerWarning}; use leo_span::{Span, Symbol}; @@ -1070,10 +1086,7 @@ impl<'a> TypeChecker<'a> { // Return a boolean. Some(Type::Boolean) } - CoreFunction::FutureAwait => { - // TODO: check that were in finalize here? - None - } + CoreFunction::FutureAwait => Some(Type::Unit), } } @@ -1357,13 +1370,11 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::async_function_must_return_single_future(function_output.span)); } // Async transitions must return one future in the first position. - if self.scope_state.is_finalize_caller + if self.scope_state.is_async_transition && ((index > 0 && matches!(function_output.type_, Type::Future(_))) || (index == 0 && !matches!(function_output.type_, Type::Future(_)))) { - self.emit_err(TypeCheckerError::async_transition_must_return_future_as_first_output( - function_output.span, - )); + self.emit_err(TypeCheckerError::async_transition_invalid_output(function_output.span)); } } } @@ -1383,6 +1394,31 @@ impl<'a> TypeChecker<'a> { } } } + + /// Type checks the awaiting of a future. + pub(crate) fn assert_future_await(&mut self, future: &Option<&Expression>, span: Span) { + // Make sure that it is an identifier expression. + let future_variable = match future { + Some(Expression::Identifier(name)) => name, + _ => { + return self.emit_err(TypeCheckerError::invalid_await_call(span)); + } + }; + + // Make sure that the future is defined. + match self.symbol_table.borrow().lookup_variable(future_variable.name) { + Some(var) => { + if !matches!(&var.type_, &Type::Future(_)) { + self.emit_err(TypeCheckerError::expected_future(future_variable.name, future_variable.span())); + } + // Mark the future as consumed. + self.await_checker.remove(future_variable); + } + None => { + self.emit_err(TypeCheckerError::expected_future(future_variable.name, future_variable.span())); + } + } + } } fn types_to_string(types: &[Type]) -> String { diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index a3d2411fd0..6fcbd0eeff 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -923,4 +923,11 @@ create_messages!( msg: "Cannot return a value in an async function block.".to_string(), help: Some("Async functions execute on-chain. Since async transitions call async functions, and async transitions execute offline, it would be impossible for the async function to be able to return on-chain state to the transition function.".to_string()), } + + @formatted + async_transition_missing_future_to_return { + args: (), + msg: "An async transition must return a future.".to_string(), + help: Some("Call an async function inside of the async transition body so that there is a future to return.".to_string()), + } ); From 8e67cfbf2a5ee45198a1c7eb2850d839757d8a60 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:59:28 -0800 Subject: [PATCH 22/80] AST refactor --- .../src/common}/location.rs | 6 +- compiler/ast/src/common/mod.rs | 4 +- compiler/ast/src/passes/reconstructor.rs | 27 +++++---- compiler/ast/src/passes/visitor.rs | 8 --- compiler/ast/src/stub/function_stub.rs | 19 ++++--- compiler/ast/src/stub/future_stub.rs | 55 ------------------- compiler/ast/src/stub/mod.rs | 3 - compiler/ast/src/types/future.rs | 9 +-- errors/src/errors/ast/ast_errors.rs | 7 +++ .../errors/type_checker/type_checker_error.rs | 4 +- tests/test-framework/benches/leo_compiler.rs | 2 +- utils/disassembler/src/lib.rs | 2 +- 12 files changed, 45 insertions(+), 101 deletions(-) rename compiler/{passes/src/common/symbol_table => ast/src/common}/location.rs (95%) delete mode 100644 compiler/ast/src/stub/future_stub.rs diff --git a/compiler/passes/src/common/symbol_table/location.rs b/compiler/ast/src/common/location.rs similarity index 95% rename from compiler/passes/src/common/symbol_table/location.rs rename to compiler/ast/src/common/location.rs index 719c044d98..3563fecf70 100644 --- a/compiler/passes/src/common/symbol_table/location.rs +++ b/compiler/ast/src/common/location.rs @@ -21,13 +21,13 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; #[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct Location { pub program: Symbol, - pub name: Symbol, + pub function: Symbol, } impl Location { // Create new Location instance. pub fn new(program: Symbol, name: Symbol) -> Location { - Location { program, name } + Location { program, function: name } } } @@ -36,7 +36,7 @@ impl Serialize for Location { where S: Serializer, { - serializer.serialize_str(&format!("{}/{}", self.program, self.name)) + serializer.serialize_str(&format!("{}/{}", self.program, self.function)) } } diff --git a/compiler/ast/src/common/mod.rs b/compiler/ast/src/common/mod.rs index d9ac1352f7..a574e9b628 100644 --- a/compiler/ast/src/common/mod.rs +++ b/compiler/ast/src/common/mod.rs @@ -14,6 +14,9 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . +pub mod location; +pub use location::*; + pub mod identifier; pub use identifier::*; @@ -29,5 +32,4 @@ pub mod node_builder; pub use node_builder::*; pub mod static_string; - pub use static_string::*; diff --git a/compiler/ast/src/passes/reconstructor.rs b/compiler/ast/src/passes/reconstructor.rs index 12aa3631d4..1dff198a6a 100644 --- a/compiler/ast/src/passes/reconstructor.rs +++ b/compiler/ast/src/passes/reconstructor.rs @@ -48,6 +48,7 @@ pub trait ExpressionReconstructor { AccessExpression::AssociatedConstant(constant) => self.reconstruct_associated_constant(constant), AccessExpression::AssociatedFunction(function) => self.reconstruct_associated_function(function), AccessExpression::Member(member) => self.reconstruct_member_access(member), + AccessExpression::MethodCall(call) => self.reconstruct_method_call(call), AccessExpression::Tuple(tuple) => self.reconstruct_tuple_access(tuple), } } @@ -101,6 +102,19 @@ pub trait ExpressionReconstructor { ) } + fn reconstruct_method_call(&mut self, input: MethodCall) -> (Expression, Self::AdditionalOutput) { + ( + Expression::Access(AccessExpression::MethodCall(MethodCall { + receiver: input.receiver, + arguments: input.arguments.into_iter().map(|arg| self.reconstruct_expression(arg).0).collect(), + span: input.span, + id: input.id, + name: input.name, + })), + Default::default(), + ) + } + fn reconstruct_tuple_access(&mut self, input: TupleAccess) -> (Expression, Self::AdditionalOutput) { ( Expression::Access(AccessExpression::Tuple(TupleAccess { @@ -397,9 +411,6 @@ pub trait StatementReconstructor: ExpressionReconstructor { ( Statement::Return(ReturnStatement { expression: self.reconstruct_expression(input.expression).0, - finalize_arguments: input.finalize_arguments.map(|arguments| { - arguments.into_iter().map(|argument| self.reconstruct_expression(argument).0).collect() - }), span: input.span, id: input.id, }), @@ -459,21 +470,13 @@ pub trait ProgramReconstructor: StatementReconstructor { fn reconstruct_function(&mut self, input: Function) -> Function { Function { annotations: input.annotations, + is_async: input.is_async, variant: input.variant, identifier: input.identifier, input: input.input, output: input.output, output_type: input.output_type, block: self.reconstruct_block(input.block).0, - finalize: input.finalize.map(|finalize| Finalize { - identifier: finalize.identifier, - input: finalize.input, - output: finalize.output, - output_type: finalize.output_type, - block: self.reconstruct_block(finalize.block).0, - span: finalize.span, - id: finalize.id, - }), span: input.span, id: input.id, } diff --git a/compiler/ast/src/passes/visitor.rs b/compiler/ast/src/passes/visitor.rs index f7fba70ece..da6b1748c8 100644 --- a/compiler/ast/src/passes/visitor.rs +++ b/compiler/ast/src/passes/visitor.rs @@ -210,11 +210,6 @@ pub trait StatementVisitor<'a>: ExpressionVisitor<'a> { fn visit_return(&mut self, input: &'a ReturnStatement) { self.visit_expression(&input.expression, &Default::default()); - if let Some(arguments) = &input.finalize_arguments { - arguments.iter().for_each(|argument| { - self.visit_expression(argument, &Default::default()); - }) - } } } @@ -248,9 +243,6 @@ pub trait ProgramVisitor<'a>: StatementVisitor<'a> { fn visit_function(&mut self, input: &'a Function) { self.visit_block(&input.block); - if let Some(finalize) = &input.finalize { - self.visit_block(&finalize.block); - } } fn visit_function_stub(&mut self, _input: &'a FunctionStub) {} diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index 899f5488d5..cc4d6d8cf4 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -24,6 +24,7 @@ use crate::{ FutureType, Identifier, Input, + Location, Mode, Node, NodeID, @@ -35,7 +36,7 @@ use crate::{ }; use leo_span::{sym, Span, Symbol}; -use crate::{stub::future_stub::FutureStub, Type::Composite}; +use crate::Type::Composite; use itertools::Itertools; use serde::{Deserialize, Serialize}; use snarkvm::{ @@ -60,7 +61,7 @@ pub struct FunctionStub { /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. pub identifier: Identifier, /// Ordered list of futures inputted to finalize. - pub future_stubs: Vec, + pub future_locations: Vec, /// The function's input parameters. pub input: Vec, /// The function's output declarations. @@ -111,7 +112,7 @@ impl FunctionStub { is_async, variant, identifier, - future_stubs: Vec::new(), + future_locations: Vec::new(), input, output, output_type, @@ -218,7 +219,7 @@ impl FunctionStub { is_async: function.finalize_logic().is_some(), variant: Variant::Transition, identifier: Identifier::from(function.name()), - future_stubs: Vec::new(), + future_locations: Vec::new(), input: function .inputs() .iter() @@ -281,11 +282,11 @@ impl FunctionStub { is_async: true, variant: Variant::Transition, identifier: Identifier::new(name, Default::default()), - future_stubs: function + future_locations: function .inputs() .iter() .filter_map(|input| match input.value_type() { - ValueType::Future(val) => Some(FutureStub::new( + ValueType::Future(val) => Some(Location::new( Identifier::from(val.program_id().name()).name, Identifier::from(val.resource()).name, )), @@ -303,7 +304,7 @@ impl FunctionStub { identifier: Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()), mode: Mode::Public, type_: match input.finalize_type() { - PlaintextFinalizeType(val) => Type::from_snarkvm(&val, name), + PlaintextFinalizeType(val) => Type::from_snarkvm(val, name), FutureFinalizeType(_) => Type::Future(Default::default()), }, span: Default::default(), @@ -359,7 +360,7 @@ impl FunctionStub { is_async: false, variant: Variant::Standard, identifier: Identifier::from(closure.name()), - future_stubs: Vec::new(), + future_locations: Vec::new(), input: closure .inputs() .iter() @@ -395,7 +396,7 @@ impl From for FunctionStub { is_async: function.is_async, variant: function.variant, identifier: function.identifier, - future_stubs: Vec::new(), + future_locations: Vec::new(), input: function.input, output: function.output, output_type: function.output_type, diff --git a/compiler/ast/src/stub/future_stub.rs b/compiler/ast/src/stub/future_stub.rs deleted file mode 100644 index b333341b34..0000000000 --- a/compiler/ast/src/stub/future_stub.rs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the Leo library. - -// The Leo library is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// The Leo library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with the Leo library. If not, see . - -use leo_span::Symbol; - -use serde::{Deserialize, Serialize}; - -/// A future stub definition. -#[derive(Clone, Serialize, Deserialize)] -pub struct FutureStub { - program: Symbol, - function: Symbol, -} - -impl PartialEq for FutureStub { - fn eq(&self, other: &Self) -> bool { - self.program == other.program && self.function == other.function - } -} - -impl Eq for FutureStub {} - -impl FutureStub { - /// Initialize a new future stub. - pub fn new(program: Symbol, function: Symbol) -> Self { - FutureStub { program, function } - } - - pub fn to_key(&self) -> (Symbol, Symbol) { - (self.program, self.function) - } - - /// Get the program. - pub fn program(&self) -> Symbol { - self.program - } - - /// Get the function. - pub fn function(&self) -> Symbol { - self.function - } -} diff --git a/compiler/ast/src/stub/mod.rs b/compiler/ast/src/stub/mod.rs index 3f3b12eba3..0679e3311b 100644 --- a/compiler/ast/src/stub/mod.rs +++ b/compiler/ast/src/stub/mod.rs @@ -19,9 +19,6 @@ pub mod function_stub; pub use function_stub::*; -pub mod future_stub; -pub use future_stub; - use crate::{Composite, ConstDeclaration, Identifier, Mapping, NodeID, ProgramId}; use leo_span::{Span, Symbol}; use serde::{Deserialize, Serialize}; diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index fa1b3ce321..3d4f0b9c5c 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -14,13 +14,14 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{TupleType, Type}; +use crate::{Type}; use serde::{Deserialize, Serialize}; use std::fmt; /// A future type consisting of the type of the inputs. #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] +#[derive(Default)] pub struct FutureType { // Optional type specification of inputs. pub inputs: Vec, @@ -38,11 +39,7 @@ impl FutureType { } } -impl Default for FutureType { - fn default() -> Self { - Self { inputs: Vec::new() } - } -} + impl fmt::Display for crate::FutureType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Future<{}>", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) diff --git a/errors/src/errors/ast/ast_errors.rs b/errors/src/errors/ast/ast_errors.rs index 1c8ae8d103..9b21577ef0 100644 --- a/errors/src/errors/ast/ast_errors.rs +++ b/errors/src/errors/ast/ast_errors.rs @@ -152,4 +152,11 @@ create_messages!( msg: format!("There are two mismatched definitions of struct `{struct_}`."), help: Some("Duplicate definitions of structs are required to use external structs, but each field's name and type must match exactly.".to_string()), } + + @backtraced + function_not_found { + args: (func: impl Display), + msg: format!("function `{func}` not found"), + help: None, + } ); diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 6fcbd0eeff..8fc50d82a3 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -772,7 +772,7 @@ create_messages!( @formatted async_function_must_return_single_future { args: (), - msg: "An async function must only a single output, and it must be a future.".to_string(), + msg: "An async function must have only a single output, and it must be a future.".to_string(), help: Some("Example: `async function foo() -> Future {...}`".to_string()), } @@ -923,7 +923,7 @@ create_messages!( msg: "Cannot return a value in an async function block.".to_string(), help: Some("Async functions execute on-chain. Since async transitions call async functions, and async transitions execute offline, it would be impossible for the async function to be able to return on-chain state to the transition function.".to_string()), } - + @formatted async_transition_missing_future_to_return { args: (), diff --git a/tests/test-framework/benches/leo_compiler.rs b/tests/test-framework/benches/leo_compiler.rs index 12fc29f449..bba17506a9 100644 --- a/tests/test-framework/benches/leo_compiler.rs +++ b/tests/test-framework/benches/leo_compiler.rs @@ -89,7 +89,7 @@ fn new_compiler(handler: &Handler) -> Compiler<'_> { PathBuf::from(String::new()), PathBuf::from(String::new()), Some(CompilerOptions { - build: BuildOptions { dce_enabled: true }, + build: BuildOptions { dce_enabled: true, conditional_block_max_depth: 10, disable_conditional_branch_type_checking: false }, output: OutputOptions { symbol_table_spans_enabled: false, initial_symbol_table: false, diff --git a/utils/disassembler/src/lib.rs b/utils/disassembler/src/lib.rs index 83b1504480..5e746c9c87 100644 --- a/utils/disassembler/src/lib.rs +++ b/utils/disassembler/src/lib.rs @@ -70,7 +70,7 @@ pub fn disassemble, Command: Comman .functions() .iter() .filter_map(|(id, function)| match function.finalize_logic() { - Some(f) => { + Some(_f) => { let name = Symbol::intern(&format!( "finalize/{}", Symbol::intern(&Identifier::from(id).name.to_string()) From 31d3373c8df04f9f245abf595215670d2a6a9c39 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:03:41 -0800 Subject: [PATCH 23/80] supporting changes --- compiler/parser/src/parser/file.rs | 2 +- compiler/parser/src/tokenizer/token.rs | 2 +- compiler/passes/src/common/mod.rs | 4 +-- .../common/symbol_table/function_symbol.rs | 17 ++++------ .../passes/src/common/symbol_table/mod.rs | 29 +++++++++++++--- .../{binary_search_tree => tree_node}/mod.rs | 2 +- .../eliminate_program.rs | 24 ++----------- .../eliminate_statement.rs | 3 -- .../destructuring/destructure_statement.rs | 10 +----- .../passes/src/flattening/flatten_program.rs | 27 ++------------- compiler/passes/src/flattening/flattener.rs | 33 ------------------ .../src/loop_unrolling/unroll_program.rs | 20 +---------- .../rename_program.rs | 34 +------------------ .../rename_statement.rs | 20 +---------- 14 files changed, 45 insertions(+), 182 deletions(-) rename compiler/passes/src/common/{binary_search_tree => tree_node}/mod.rs (98%) diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index a152a77de8..3f8eb951a5 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -407,7 +407,7 @@ impl ParserContext<'_> { let (is_async, start_async) = if self.token.token == Token::Async { (true, self.expect(&Token::Async)?) } else { (false, Span::dummy()) }; // Parse ` IDENT`, where `` is `function`, `transition`, or `inline`. - let (variant, mut start) = match self.token.token { + let (variant, start) = match self.token.token { Token::Inline => (Variant::Inline, self.expect(&Token::Inline)?), Token::Function => (Variant::Standard, self.expect(&Token::Function)?), Token::Transition => (Variant::Transition, self.expect(&Token::Transition)?), diff --git a/compiler/parser/src/tokenizer/token.rs b/compiler/parser/src/tokenizer/token.rs index 2d30fe714a..7bc9b13b48 100644 --- a/compiler/parser/src/tokenizer/token.rs +++ b/compiler/parser/src/tokenizer/token.rs @@ -354,7 +354,7 @@ impl fmt::Display for Token { Else => write!(f, "else"), For => write!(f, "for"), Function => write!(f, "function"), - Future => write!(f, "future"), + Future => write!(f, "Future"), If => write!(f, "if"), Import => write!(f, "import"), In => write!(f, "in"), diff --git a/compiler/passes/src/common/mod.rs b/compiler/passes/src/common/mod.rs index 91785524a1..806fa90cc4 100644 --- a/compiler/passes/src/common/mod.rs +++ b/compiler/passes/src/common/mod.rs @@ -17,8 +17,8 @@ pub mod assigner; pub use assigner::*; -pub mod binary_search_tree; -pub use binary_search_tree::*; +pub mod tree_node; +pub use tree_node::*; pub mod graph; pub use graph::*; diff --git a/compiler/passes/src/common/symbol_table/function_symbol.rs b/compiler/passes/src/common/symbol_table/function_symbol.rs index c1a54d7773..81a02a2654 100644 --- a/compiler/passes/src/common/symbol_table/function_symbol.rs +++ b/compiler/passes/src/common/symbol_table/function_symbol.rs @@ -14,22 +14,13 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use leo_ast::{Function, Input, Type, Variant}; +use leo_ast::{Function, Input, Location, Type, Variant}; use leo_span::Span; use serde::{Deserialize, Serialize}; use crate::SymbolTable; -/// Metadata associated with the finalize block. -#[derive(Debug, Clone, Serialize, Deserialize)] -pub struct FinalizeData { - /// The inputs to the finalize block. - pub(crate) input: Vec, - /// The output type of the finalize block. - pub(crate) output_type: Type, -} - /// An entry for a function in the symbol table. #[derive(Clone, Debug, Serialize, Deserialize)] pub struct FunctionSymbol { @@ -45,6 +36,10 @@ pub struct FunctionSymbol { pub(crate) _span: Span, /// The inputs to the function. pub(crate) input: Vec, + /// Future inputs. + pub(crate) future_inputs: Vec, + /// The finalize block associated with the function. + pub(crate) finalize: Option, } impl SymbolTable { @@ -56,6 +51,8 @@ impl SymbolTable { variant: func.variant, _span: func.span, input: func.input.clone(), + future_inputs: Vec::new(), + finalize: None, } } } diff --git a/compiler/passes/src/common/symbol_table/mod.rs b/compiler/passes/src/common/symbol_table/mod.rs index 72f68d2ad6..41be5ca89e 100644 --- a/compiler/passes/src/common/symbol_table/mod.rs +++ b/compiler/passes/src/common/symbol_table/mod.rs @@ -17,16 +17,13 @@ pub mod function_symbol; pub use function_symbol::*; -pub mod location; -pub use location::*; - pub mod variable_symbol; pub use variable_symbol::*; use std::cell::RefCell; -use leo_ast::{normalize_json_value, remove_key_from_json, Composite, Function}; +use leo_ast::{normalize_json_value, remove_key_from_json, Composite, Function, Location}; use leo_errors::{AstError, Result}; use leo_span::{Span, Symbol}; @@ -107,6 +104,18 @@ impl SymbolTable { } } + /// Attach a finalize to a function. + pub fn attach_finalize(&mut self, caller: Location, callee: Location) -> Result<()> { + if let Some(func) = self.functions.get_mut(&caller) { + func.finalize = Some(callee); + Ok(()) + } else if let Some(parent) = self.parent.as_mut() { + parent.attach_finalize(caller, callee) + } else { + Err(AstError::function_not_found(caller.function).into()) + } + } + /// Inserts a variable into the symbol table. pub fn insert_variable(&mut self, symbol: Symbol, insert: VariableSymbol) -> Result<()> { self.check_shadowing(None, symbol, insert.span)?; @@ -114,6 +123,18 @@ impl SymbolTable { Ok(()) } + /// Inserts futures into the function definition. + pub fn insert_futures(&mut self, program: Symbol, function: Symbol, futures: Vec) -> Result<()> { + if let Some(func) = self.functions.get_mut(&Location::new(program, function)) { + func.future_inputs = futures; + Ok(()) + } else if let Some(parent) = self.parent.as_mut() { + parent.insert_futures(program, function, futures) + } else { + Err(AstError::function_not_found(function).into()) + } + } + /// Removes a variable from the symbol table. pub fn remove_variable_from_current_scope(&mut self, symbol: Symbol) { self.variables.remove(&symbol); diff --git a/compiler/passes/src/common/binary_search_tree/mod.rs b/compiler/passes/src/common/tree_node/mod.rs similarity index 98% rename from compiler/passes/src/common/binary_search_tree/mod.rs rename to compiler/passes/src/common/tree_node/mod.rs index 9926176777..af14118b14 100644 --- a/compiler/passes/src/common/binary_search_tree/mod.rs +++ b/compiler/passes/src/common/tree_node/mod.rs @@ -27,7 +27,7 @@ pub trait Node: Copy + 'static + Eq + PartialEq + Debug + Hash {} impl Node for Identifier {} /// A node in a tree. -#[derive(Debug)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct TreeNode { /// The current depth. pub depth: usize, diff --git a/compiler/passes/src/dead_code_elimination/eliminate_program.rs b/compiler/passes/src/dead_code_elimination/eliminate_program.rs index 3cbbf05357..8887a49038 100644 --- a/compiler/passes/src/dead_code_elimination/eliminate_program.rs +++ b/compiler/passes/src/dead_code_elimination/eliminate_program.rs @@ -16,7 +16,7 @@ use crate::DeadCodeEliminator; -use leo_ast::{Finalize, Function, ProgramReconstructor, StatementReconstructor}; +use leo_ast::{Function, ProgramReconstructor, StatementReconstructor}; impl ProgramReconstructor for DeadCodeEliminator<'_> { fn reconstruct_function(&mut self, input: Function) -> Function { @@ -27,35 +27,15 @@ impl ProgramReconstructor for DeadCodeEliminator<'_> { // Traverse the function body. let block = self.reconstruct_block(input.block).0; - // Reconstruct the finalize block, if it exists. - let finalize = input.finalize.map(|finalize| { - // Reset the state of the dead code eliminator. - self.used_variables.clear(); - self.is_necessary = false; - - // Traverse the finalize block. - let block = self.reconstruct_block(finalize.block).0; - - Finalize { - identifier: finalize.identifier, - input: finalize.input, - output: finalize.output, - output_type: finalize.output_type, - block, - span: finalize.span, - id: finalize.id, - } - }); - Function { annotations: input.annotations, + is_async: input.is_async, variant: input.variant, identifier: input.identifier, input: input.input, output: input.output, output_type: input.output_type, block, - finalize, span: input.span, id: input.id, } diff --git a/compiler/passes/src/dead_code_elimination/eliminate_statement.rs b/compiler/passes/src/dead_code_elimination/eliminate_statement.rs index 4eeaf0d244..da940abd79 100644 --- a/compiler/passes/src/dead_code_elimination/eliminate_statement.rs +++ b/compiler/passes/src/dead_code_elimination/eliminate_statement.rs @@ -183,9 +183,6 @@ impl StatementReconstructor for DeadCodeEliminator<'_> { // Visit the statement. let statement = Statement::Return(ReturnStatement { expression: self.reconstruct_expression(input.expression).0, - finalize_arguments: input.finalize_arguments.map(|arguments| { - arguments.into_iter().map(|argument| self.reconstruct_expression(argument).0).collect() - }), span: input.span, id: input.id, }); diff --git a/compiler/passes/src/destructuring/destructure_statement.rs b/compiler/passes/src/destructuring/destructure_statement.rs index c5cd99cd92..79ae5a72b1 100644 --- a/compiler/passes/src/destructuring/destructure_statement.rs +++ b/compiler/passes/src/destructuring/destructure_statement.rs @@ -251,14 +251,6 @@ impl StatementReconstructor for Destructurer<'_> { }; // TODO: Do finalize args need to be destructured. - ( - Statement::Return(ReturnStatement { - expression, - finalize_arguments: input.finalize_arguments, - span: input.span, - id: input.id, - }), - Default::default(), - ) + (Statement::Return(ReturnStatement { expression, span: input.span, id: input.id }), Default::default()) } } diff --git a/compiler/passes/src/flattening/flatten_program.rs b/compiler/passes/src/flattening/flatten_program.rs index 3a15822c58..149fce8885 100644 --- a/compiler/passes/src/flattening/flatten_program.rs +++ b/compiler/passes/src/flattening/flatten_program.rs @@ -16,34 +16,11 @@ use crate::Flattener; -use leo_ast::{Finalize, Function, ProgramReconstructor, StatementReconstructor}; +use leo_ast::{Function, ProgramReconstructor, StatementReconstructor}; impl ProgramReconstructor for Flattener<'_> { /// Flattens a function's body and finalize block, if it exists. fn reconstruct_function(&mut self, function: Function) -> Function { - // First, flatten the finalize block. This allows us to initialize self.finalizes correctly. - // Note that this is safe since the finalize block is independent of the function body. - let finalize = function.finalize.map(|finalize| { - // Flatten the finalize block. - let mut block = self.reconstruct_block(finalize.block).0; - - // Get all of the guards and return expression. - let returns = self.clear_early_returns(); - - // Fold the return statements into the block. - self.fold_returns(&mut block, returns); - - Finalize { - identifier: finalize.identifier, - input: finalize.input, - output: finalize.output, - output_type: finalize.output_type, - block, - span: finalize.span, - id: finalize.id, - } - }); - // Flatten the function body. let mut block = self.reconstruct_block(function.block).0; @@ -55,13 +32,13 @@ impl ProgramReconstructor for Flattener<'_> { Function { annotations: function.annotations, + is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, output: function.output, output_type: function.output_type, block, - finalize, span: function.span, id: function.id, } diff --git a/compiler/passes/src/flattening/flattener.rs b/compiler/passes/src/flattening/flattener.rs index 5c54f2cb99..adc0561554 100644 --- a/compiler/passes/src/flattening/flattener.rs +++ b/compiler/passes/src/flattening/flattener.rs @@ -206,24 +206,9 @@ impl<'a> Flattener<'a> { if !returns.is_empty() { let mut return_expressions = Vec::with_capacity(returns.len()); - // Construct a vector for each argument position. - // Note that the indexing is safe since we check that `returns` is not empty. - let (has_finalize, number_of_finalize_arguments) = match &returns[0].1.finalize_arguments { - None => (false, 0), - Some(args) => (true, args.len()), - }; - let mut finalize_arguments: Vec, Expression)>> = - vec![Vec::with_capacity(returns.len()); number_of_finalize_arguments]; - // Aggregate the return expressions and finalize arguments and their respective guards. for (guard, return_statement) in returns { return_expressions.push((guard.clone(), return_statement.expression)); - if let Some(arguments) = return_statement.finalize_arguments { - for (i, argument) in arguments.into_iter().enumerate() { - // Note that the indexing is safe since we initialize `finalize_arguments` with the correct length. - finalize_arguments[i].push((guard.clone(), argument)); - } - } } // Fold the return expressions into a single expression. @@ -232,26 +217,9 @@ impl<'a> Flattener<'a> { // Add all of the accumulated statements to the end of the block. block.statements.extend(stmts); - // For each position in the finalize call, fold the corresponding arguments into a single expression. - let finalize_arguments = match has_finalize { - false => None, - true => Some( - finalize_arguments - .into_iter() - .enumerate() - .map(|(i, arguments)| { - let (expression, stmts) = self.fold_guards(&format!("finalize${i}$"), arguments); - block.statements.extend(stmts); - expression - }) - .collect(), - ), - }; - // Add the `ReturnStatement` to the end of the block. block.statements.push(Statement::Return(ReturnStatement { expression, - finalize_arguments, span: Default::default(), id: self.node_builder.next_id(), })); @@ -263,7 +231,6 @@ impl<'a> Flattener<'a> { let id = self.node_builder.next_id(); Expression::Unit(UnitExpression { span: Default::default(), id }) }, - finalize_arguments: None, span: Default::default(), id: self.node_builder.next_id(), })); diff --git a/compiler/passes/src/loop_unrolling/unroll_program.rs b/compiler/passes/src/loop_unrolling/unroll_program.rs index b3ebe07e69..ac6453fc13 100644 --- a/compiler/passes/src/loop_unrolling/unroll_program.rs +++ b/compiler/passes/src/loop_unrolling/unroll_program.rs @@ -90,26 +90,9 @@ impl ProgramReconstructor for Unroller<'_> { self.exit_scope(previous_scope_index); - let finalize = function.finalize.map(|finalize| { - let previous_scope_index = self.enter_scope(self.scope_index); - - let block = self.reconstruct_block(finalize.block).0; - - self.exit_scope(previous_scope_index); - - Finalize { - identifier: finalize.identifier, - input: finalize.input, - output: finalize.output, - output_type: finalize.output_type, - block, - span: finalize.span, - id: finalize.id, - } - }); - // Reconstruct the function block. let reconstructed_function = Function { + is_async: function.is_async, annotations: function.annotations, variant: function.variant, identifier: function.identifier, @@ -117,7 +100,6 @@ impl ProgramReconstructor for Unroller<'_> { output: function.output, output_type: function.output_type, block, - finalize, span: function.span, id: function.id, }; diff --git a/compiler/passes/src/static_single_assignment/rename_program.rs b/compiler/passes/src/static_single_assignment/rename_program.rs index 61b93b759e..a7c49f70b5 100644 --- a/compiler/passes/src/static_single_assignment/rename_program.rs +++ b/compiler/passes/src/static_single_assignment/rename_program.rs @@ -19,7 +19,6 @@ use crate::StaticSingleAssigner; use leo_ast::{ Block, Composite, - Finalize, Function, FunctionConsumer, Member, @@ -80,46 +79,15 @@ impl FunctionConsumer for StaticSingleAssigner<'_> { // Remove the `RenameTable` for the function. self.pop(); - let finalize = function.finalize.map(|finalize| { - // Allocate a `RenameTable` for the finalize block. - self.push(); - - // There is no need to reconstruct `finalize.inputs`. - // However, for each input, we must add each symbol to the rename table. - for input_variable in finalize.input.iter() { - let identifier = input_variable.identifier(); - self.rename_table.update(identifier.name, identifier.name, identifier.id); - } - - let block = Block { - span: finalize.block.span, - id: finalize.block.id, - statements: self.consume_block(finalize.block), - }; - - // Remove the `RenameTable` for the finalize block. - self.pop(); - - Finalize { - identifier: finalize.identifier, - input: finalize.input, - output: finalize.output, - output_type: finalize.output_type, - block, - span: finalize.span, - id: finalize.id, - } - }); - Function { annotations: function.annotations, + is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, output: function.output, output_type: function.output_type, block, - finalize, span: function.span, id: function.id, } diff --git a/compiler/passes/src/static_single_assignment/rename_statement.rs b/compiler/passes/src/static_single_assignment/rename_statement.rs index c5f7134b6d..0b4d522784 100644 --- a/compiler/passes/src/static_single_assignment/rename_statement.rs +++ b/compiler/passes/src/static_single_assignment/rename_statement.rs @@ -387,26 +387,8 @@ impl StatementConsumer for StaticSingleAssigner<'_> { // Consume the return expression. let (expression, mut statements) = self.consume_expression(input.expression); - // Consume the finalize arguments if they exist. - // Process the arguments, accumulating any statements produced. - let finalize_args = input.finalize_arguments.map(|arguments| { - arguments - .into_iter() - .map(|argument| { - let (argument, stmts) = self.consume_expression(argument); - statements.extend(stmts); - argument - }) - .collect() - }); - // Add the simplified return statement to the list of produced statements. - statements.push(Statement::Return(ReturnStatement { - expression, - finalize_arguments: finalize_args, - span: input.span, - id: input.id, - })); + statements.push(Statement::Return(ReturnStatement { expression, span: input.span, id: input.id })); statements } From 9f20aa867fe336f3ec3ca0c7280b2e5ee61a6d3a Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:05:02 -0800 Subject: [PATCH 24/80] fix borrowing error --- .../passes/src/type_checking/await_checker.rs | 22 +++++++++---------- .../src/type_checking/check_statements.rs | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index 16fe17958a..c2ab7bc525 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -15,10 +15,10 @@ // along with the Leo library. If not, see . use crate::{ConditionalTreeNode, TreeNode}; -use indexmap::{IndexMap, IndexSet}; -use leo_ast::{Identifier, Type}; +use indexmap::{IndexSet}; +use leo_ast::{Identifier}; use leo_errors::TypeCheckerError; -use leo_span::{Span, Symbol}; +use leo_span::{Span}; // TODO: Could optimize by removing duplicate paths (if set of futures is the same). pub struct AwaitChecker { @@ -60,7 +60,7 @@ impl AwaitChecker { &mut self, is_finalize: bool, input: Span, - ) -> Result<&mut Vec, TypeCheckerError> { + ) -> Result, TypeCheckerError> { if is_finalize && self.enabled { let mut current_nodes = Vec::new(); // Extend all paths by one node to represent the upcoming `then` branch. @@ -74,9 +74,9 @@ impl AwaitChecker { } // Update the set of nodes to be current set. self.to_await = current_nodes.clone(); - Ok(&mut current_nodes) + Ok(current_nodes) } else { - Ok(&mut Vec::new()) + Ok(Vec::new()) } } @@ -84,21 +84,21 @@ impl AwaitChecker { pub fn exit_then_scope( &mut self, is_finalize: bool, - parent_nodes: &mut Vec, - ) -> &mut Vec { + parent_nodes: Vec, + ) -> Vec { // Check if a nested conditional statement signaled their existence. if is_finalize && self.enabled { - &mut core::mem::replace(&mut self.to_await, core::mem::take(parent_nodes)) + core::mem::replace(&mut self.to_await, parent_nodes) } else { Vec::new() } } /// Exit scope for conditional statement at current depth. - pub fn exit_statement_scope(&mut self, is_finalize: bool, then_nodes: &mut Vec) { + pub fn exit_statement_scope(&mut self, is_finalize: bool, then_nodes: Vec) { if is_finalize && self.enabled { // Merge together the current set of nodes (from `otherwise` branch) with `then` nodes. - self.to_await.extend(core::mem::take(then_nodes)); + self.to_await.extend(then_nodes); } } } diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 2d19e8f5d1..e40d6fe837 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -116,7 +116,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { let previous_is_conditional = core::mem::replace(&mut self.scope_state.is_conditional, true); // Create scope for checking awaits in `then` branch of conditional. - let current_bst_nodes: &mut Vec = + let current_bst_nodes: Vec = match self.await_checker.create_then_scope(self.scope_state.is_finalize, input.span) { Ok(nodes) => nodes, Err(err) => return self.emit_err(err), From c482b81d9584482f926f87166767e99b789cb26e Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:08:43 -0800 Subject: [PATCH 25/80] TYC small fixes --- .../src/type_checking/check_expressions.rs | 113 +++++++++++------- .../passes/src/type_checking/check_program.rs | 23 ++-- .../src/type_checking/check_statements.rs | 74 +++++------- compiler/passes/src/type_checking/checker.rs | 71 +++++++---- .../passes/src/type_checking/scope_state.rs | 18 ++- 5 files changed, 178 insertions(+), 121 deletions(-) diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 878d32db5b..9b74aa91d9 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -21,7 +21,7 @@ use leo_errors::{emitter::Handler, TypeCheckerError}; use leo_span::{sym, Span}; use itertools::Itertools; -use leo_ast::CoreFunction::FutureAwait; +use leo_ast::{CoreFunction::FutureAwait, Variant::Standard}; use snarkvm::console::network::{Network, Testnet3}; use std::str::FromStr; @@ -108,7 +108,8 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { .collect::>(); // Check that the types of the arguments are valid. - let return_type = self.check_core_function_call(core_instruction, &argument_types, input.span()); + let return_type = + self.check_core_function_call(core_instruction.clone(), &argument_types, input.span()); // Check return type if the expected type is known. if let Some(expected) = expected { @@ -121,7 +122,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::can_only_await_one_future_at_a_time(access.span)); return Some(Type::Unit); } - self.assert_future_await(&access.arguments.get(0), input.span()); + self.assert_future_await(&access.arguments.first(), input.span()); } return return_type; @@ -143,8 +144,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Await futures here so that can use the argument variable names to lookup. if core_instruction == FutureAwait { self.assert_future_await(&Some(&call.receiver), input.span()); - } - else { + } else { self.emit_err(TypeCheckerError::invalid_method_call(call.span())); } @@ -272,7 +272,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } Some(Type::Future(f)) => { // Make sure that the input parameter accessed is valid. - if let Some(arg_num) = access.name.name.to_string().parse::() { + if let Ok(arg_num) = access.name.name.to_string().parse::() { // Make sure in range. if arg_num >= f.inputs().len() { self.emit_err(TypeCheckerError::invalid_future_access( @@ -283,7 +283,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } // Return the type of the input parameter. return Some(self.assert_and_return_type( - f.get(arg_num).unwrap().clone(), + f.inputs.get(arg_num).unwrap().clone(), expected, access.span(), )); @@ -321,7 +321,6 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::invalid_associated_constant(access, access.span)) } } - _ => {} } None } @@ -673,8 +672,36 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } // Check function argument types. + let (mut input_futures, mut inferred_finalize_inputs) = (Vec::new(), Vec::new()); func.input.iter().zip(input.arguments.iter()).for_each(|(expected, argument)| { - self.visit_expression(argument, &Some(expected.type_())); + let ty = self.visit_expression(argument, &Some(expected.type_())); + // Extract information about futures that are being consumed. + if func.is_async && func.variant == Standard && matches!(expected.type_(), Type::Future(_)) { + match argument { + Expression::Identifier(_) | Expression::Call(_) => { + match self.scope_state.call_location.clone() { + Some(location) => { + // Get the external program and function name. + input_futures.push(location); + // Get the full inferred type. + inferred_finalize_inputs.push(ty.unwrap()); + } + None => { + self.emit_err(TypeCheckerError::unknown_future_consumed( + argument, + argument.span(), + )); + } + } + }, + _ => { + self.emit_err(TypeCheckerError::unknown_future_consumed( + "unknown", + argument.span(), + )); + } + } + } }); // Add the call to the call graph. @@ -705,65 +732,58 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { if func.variant == Variant::Transition { // Cannot call an external async transition after having called the async function. if self.scope_state.has_called_finalize { - self.emit_err( - TypeCheckerError::external_transition_call_must_be_before_finalize( - input.span, - ), - ); + self.emit_err(TypeCheckerError::external_transition_call_must_be_before_finalize( + input.span, + )); } // Fully infer future type. let future_type = Type::Future(FutureType::new( // Assumes that external function stubs have been processed. - self.finalize_input_types.get(&(input.program.unwrap(), ident.name)).unwrap().clone(), + self.finalize_input_types + .get(&Location::new(input.program.unwrap(), ident.name)) + .unwrap() + .clone(), )); ret = match ret.clone() { - Some(Type::Tuple(tup)) => { + Type::Tuple(tup) => { // Replace first element of `tup.elements` with `future_type`. This will always be a future. - let mut elements: Vec = tup.elements().clone().to_vec(); + let mut elements: Vec = tup.elements().to_vec(); elements[0] = future_type.clone(); Type::Tuple(TupleType::new(elements)) } - Some(Type::Future(f)) => future_type, + Type::Future(_) => future_type, _ => { self.emit_err(TypeCheckerError::async_transition_invalid_output(input.span)); ret } - } + }; + // Set the caller location so that an external async transition can be wrapped in an async function. + self.scope_state.call_location = Some(Location::new(input.program.unwrap(), ident.name)); } else if func.variant == Variant::Standard { // Can only call an async function once in a transition function body. if self.scope_state.has_called_finalize { self.emit_err(TypeCheckerError::must_call_finalize_once(input.span)); } - // Consume futures. - let st = self.symbol_table.borrow(); - let mut inferred_finalize_inputs = Vec::new(); - input.arguments.iter().for_each(|arg| { - if let Expression::Identifier(ident) = arg { - if let Some(variable) = st.lookup_variable(ident.name) { - if let Type::Future(_) = variable { - if !self.scope_state.futures.remove(ident) { - self.emit_err(TypeCheckerError::unknown_future_consumed( - ident.name, ident.span, - )); - } - } - // Add to expected finalize inputs signature. - inferred_finalize_inputs.push(variable.clone().type_); - } - } - }); // Check that all futures consumed. if !self.scope_state.futures.is_empty() { self.emit_err(TypeCheckerError::not_all_futures_consumed( - self.scope_state.futures.iter().map(|f| f.name.to_string()).join(", "), + self.scope_state.futures.iter().map(|(f, _)| f.name.to_string()).join(", "), input.span, )); } + // Add future locations to symbol table. Unwrap safe since insert function into symbol table during previous pass. + let mut st = self.symbol_table.borrow_mut(); + // Insert futures into symbol table. + st.insert_futures(input.program.unwrap(), ident.name, input_futures).unwrap(); + // Link async transition to the async function that finalizes it. + st.attach_finalize( + self.scope_state.location(), + Location::new(self.scope_state.program_name.unwrap(), ident.name), + ) + .unwrap(); // Create expectation for finalize inputs that will be checked when checking corresponding finalize function signature. - self.finalize_input_types.insert( - (self.scope_state.program_name.unwrap(), self.scope_state.function.unwrap()), - inferred_finalize_inputs.clone(), - ); + self.finalize_input_types + .insert(self.scope_state.location(), inferred_finalize_inputs.clone()); // Set scope state flag. self.scope_state.has_called_finalize = true; @@ -844,6 +864,15 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { fn visit_identifier(&mut self, input: &'a Identifier, expected: &Self::AdditionalInput) -> Self::Output { if let Some(var) = self.symbol_table.borrow().lookup_variable(input.name) { + if matches!(var.type_, Type::Future(_)) { + // Consume future. + match self.scope_state.futures.remove(input) { + Some(future) => self.scope_state.call_location = Some(future.clone()), + None => { + self.emit_err(TypeCheckerError::unknown_future_consumed(input.name, input.span)); + } + } + } Some(self.assert_and_return_type(var.type_.clone(), expected, input.span())) } else { self.emit_err(TypeCheckerError::unknown_sym("variable", input.name, input.span())); diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 95bdbefb33..156812228c 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{DiGraphError, TreeNode, TypeChecker}; +use crate::{DiGraphError, TypeChecker}; use leo_ast::*; use leo_errors::{TypeCheckerError, TypeCheckerWarning}; @@ -22,7 +22,7 @@ use leo_span::sym; use snarkvm::console::network::{Network, Testnet3}; -use indexmap::IndexSet; + use leo_ast::{ Input::{External, Internal}, Type::Future, @@ -90,7 +90,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Create future stubs. let finalize_input_map = &mut self.finalize_input_types; - let mut future_stubs = input.future_stubs.clone(); + let mut future_stubs = input.future_locations.clone(); let resolved_inputs = input .input .iter() @@ -100,18 +100,19 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { Future(_) => { // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. Future(FutureType::new( - finalize_input_map.get(&future_stubs.pop().unwrap().to_key()).unwrap().clone(), + finalize_input_map.get(&future_stubs.pop().unwrap()).unwrap().clone(), )) } _ => function_input.clone().type_, }, - External(_) => {} + External(_) => unreachable!("External inputs are not allowed in finalize outputs of stubs."), } }) .collect(); assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); - finalize_input_map.insert((self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); + finalize_input_map + .insert(Location::new(self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); // Query helper function to type check function parameters and outputs. self.check_function_signature(&Function::from(input.clone())); @@ -339,7 +340,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { .iter() .filter_map(|input| match input { Internal(parameter) => { - if let Some(Type::Future(ty)) = parameter.type_.clone() { + if let Future(_) = parameter.type_.clone() { Some(parameter.identifier) } else { None @@ -374,7 +375,13 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Throw error if not all futures awaits even appear once. if !self.await_checker.static_to_await.is_empty() { self.emit_err(TypeCheckerError::future_awaits_missing( - self.await_checker.static_to_await.clone().iter().map(|f| f.to_string().collect::>()), + self.await_checker + .static_to_await + .clone() + .iter() + .map(|f| f.to_string()) + .collect::>() + .join(", "), function.span(), )); } else { diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index e40d6fe837..64fa0ecb11 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -14,13 +14,16 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{ConditionalTreeNode, TreeNode, TypeChecker, VariableSymbol, VariableType}; -use indexmap::IndexSet; +use crate::{ConditionalTreeNode, TypeChecker, VariableSymbol, VariableType}; + use itertools::Itertools; -use leo_ast::{Type::Future, *}; +use leo_ast::{ + Type::{Future, Tuple}, + *, +}; use leo_errors::TypeCheckerError; -use leo_span::{Span, Symbol}; + impl<'a> StatementVisitor<'a> for TypeChecker<'a> { fn visit_statement(&mut self, input: &'a Statement) { @@ -247,26 +250,9 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Check the expression on the right-hand side. let inferred_type = self.visit_expression(&input.value, &Some(input.type_.clone())); - // TODO: Dedup with unrolling pass. - // Helper to insert the variables into the symbol table. - let insert_variable = |name: &Identifier, type_: Type, span: Span| { - // Add to list of futures that must be consumed. - if let Type::Future(_) = type_ { - self.scope_state.futures.insert(name.clone()); - } - // Insert the variable into the symbol table. - if let Err(err) = self.symbol_table.borrow_mut().insert_variable(name.name, VariableSymbol { - type_, - span, - declaration: VariableType::Mut, - }) { - self.handler.emit_err(err); - } - }; - // Insert the variables into the symbol table. match &input.place { - Expression::Identifier(identifier) => insert_variable(identifier, input.type_.clone(), identifier.span), + Expression::Identifier(identifier) => self.insert_variable(inferred_type.clone(), identifier, input.type_.clone(), 0, identifier.span), Expression::Tuple(tuple_expression) => { let tuple_type = match &input.type_ { Type::Tuple(tuple_type) => tuple_type, @@ -282,19 +268,18 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { )); } - tuple_expression.elements.iter().zip_eq(tuple_type.elements().iter()).for_each( - |(expression, type_)| { - let identifier = match expression { - Expression::Identifier(identifier) => identifier, - _ => { - return self.emit_err(TypeCheckerError::lhs_tuple_element_must_be_an_identifier( - expression.span(), - )); - } - }; - insert_variable(identifier, type_.clone(), identifier.span) - }, - ); + for ((index, expr), type_) in + tuple_expression.elements.iter().enumerate().zip_eq(tuple_type.elements().iter()) + { + let identifier = match expr { + Expression::Identifier(identifier) => identifier, + _ => { + return self + .emit_err(TypeCheckerError::lhs_tuple_element_must_be_an_identifier(expr.span())); + } + }; + self.insert_variable(inferred_type.clone(), identifier, type_.clone(), index, identifier.span); + } } _ => self.emit_err(TypeCheckerError::lhs_must_be_identifier_or_tuple(input.place.span())), } @@ -398,7 +383,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); - let mut return_type = &self + let mut return_type = self .symbol_table .borrow() .lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent) @@ -406,24 +391,21 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Fully type the expected return value. if self.scope_state.is_async_transition { - let inferred_future_type = match self - .finalize_input_types - .get(&(self.scope_state.program_name.unwrap(), self.scope_state.function.unwrap())) - { + let inferred_future_type = match self.finalize_input_types.get(&self.scope_state.location()) { Some(types) => Future(FutureType::new(types.clone())), None => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } }; - return_type = &match return_type { + return_type = match return_type { Some(Future(_)) => Some(inferred_future_type), - Some(Type::Tuple(tuple)) => { - let mut elements = tuple.elements().clone().to_vec(); + Some(Tuple(tuple)) => { + let mut elements = tuple.elements().to_vec(); elements[0] = inferred_future_type; - Some(Type::new(elements)) + Some(Tuple(TupleType::new(elements))) } _ => { - self.emit_err(TypeCheckerError::async_transition_invalid_output_type(input.span())); + self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); None } } @@ -444,7 +426,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Set the `is_return` flag. This is necessary to allow unit expressions in the return statement. self.scope_state.is_return = true; // Type check the associated expression. - self.visit_expression(&input.expression, return_type); + self.visit_expression(&input.expression, &return_type); // Unset the `is_return` flag. self.scope_state.is_return = false; } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index a3ff64c90c..c45824cde9 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{CallGraph, StructGraph, SymbolTable, TreeNode, TypeTable, VariableSymbol, VariableType}; +use crate::{CallGraph, StructGraph, SymbolTable, TypeTable, VariableSymbol, VariableType}; use leo_ast::{ Composite, @@ -24,8 +24,8 @@ use leo_ast::{ Expression, Function, Identifier, - Input, IntegerType, + Location, MappingType, Mode, Node, @@ -39,9 +39,10 @@ use leo_span::{Span, Symbol}; use snarkvm::console::network::{Network, Testnet3}; use crate::type_checking::{await_checker::AwaitChecker, scope_state::ScopeState}; -use indexmap::{IndexMap, IndexSet}; +use indexmap::{IndexMap}; use itertools::Itertools; -use std::{cell::RefCell, mem::discriminant}; +use leo_ast::Type::{Future, Tuple}; +use std::{cell::RefCell}; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -59,7 +60,7 @@ pub struct TypeChecker<'a> { /// Struct to store the state relevant to checking all futures are awaited. pub(crate) await_checker: AwaitChecker, /// Mapping from async function name to the inferred input types. - pub(crate) finalize_input_types: IndexMap<(Symbol, Symbol), Vec>, + pub(crate) finalize_input_types: IndexMap>, } const ADDRESS_TYPE: Type = Type::Address; @@ -115,8 +116,8 @@ impl<'a> TypeChecker<'a> { max_depth: usize, disabled: bool, ) -> Self { - let struct_names = symbol_table.structs.keys().map(|loc| loc.name).collect(); - let function_names = symbol_table.functions.keys().map(|loc| loc.name).collect(); + let struct_names = symbol_table.structs.keys().map(|loc| loc.function).collect(); + let function_names = symbol_table.functions.keys().map(|loc| loc.function).collect(); // Note that the `struct_graph` and `call_graph` are initialized with their full node sets. Self { @@ -183,7 +184,7 @@ impl<'a> TypeChecker<'a> { // All of these types could return false for `eq_flat` if they have an external struct. match (t1, t2) { (Type::Array(left), Type::Array(right)) => { - self.check_eq_type_structure(&left.element_type(), right.element_type(), span) + self.check_eq_type_structure(left.element_type(), right.element_type(), span) && left.length() == right.length() } (Type::Integer(left), Type::Integer(right)) => left.eq(right), @@ -195,7 +196,7 @@ impl<'a> TypeChecker<'a> { .elements() .iter() .zip_eq(right.elements().iter()) - .all(|(left_type, right_type)| self.check_eq_type_structure(&left_type, &right_type, span)), + .all(|(left_type, right_type)| self.check_eq_type_structure(left_type, right_type, span)), (Type::Composite(left), Type::Composite(right)) => { if left.id.name == right.id.name && left.program == right.program { true @@ -217,7 +218,7 @@ impl<'a> TypeChecker<'a> { .inputs() .iter() .zip_eq(right.inputs().iter()) - .all(|(left_type, right_type)| self.check_eq_type_structure(&left_type, &right_type, span)), + .all(|(left_type, right_type)| self.check_eq_type_structure(left_type, right_type, span)), _ => false, } } @@ -1244,9 +1245,7 @@ impl<'a> TypeChecker<'a> { // Special type checking for finalize blocks. Can skip for stubs. if self.scope_state.is_finalize & !self.scope_state.is_stub { - if let Some(inferred_future_types) = - self.finalize_input_types.borrow().get(&self.scope_state.function.unwrap()) - { + if let Some(inferred_future_types) = self.finalize_input_types.get(&self.scope_state.location()) { // Check same number of inputs as expected. if inferred_future_types.len() != function.input.len() { self.emit_err(TypeCheckerError::async_function_input_length_mismatch( @@ -1260,8 +1259,8 @@ impl<'a> TypeChecker<'a> { .input .iter() .zip_eq(inferred_future_types.iter()) - .for_each(|(t1, t2)| self.check_eq_type(&t1.type_(), t2, t1.span())); - } else if function.input.len() > 0 { + .for_each(|(t1, t2)| self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span())); + } else if !function.input.is_empty() { self.emit_err(TypeCheckerError::async_function_input_length_mismatch( 0, function.input.len(), @@ -1271,7 +1270,7 @@ impl<'a> TypeChecker<'a> { } // Type check the function's parameters. - function.input.iter().enumerate().for_each(|(index, input_var)| { + function.input.iter().enumerate().for_each(|(_index, input_var)| { // Check that the type of input parameter is defined. self.assert_type_is_valid(&input_var.type_(), input_var.span()); // Check that the type of the input parameter is not a tuple. @@ -1294,10 +1293,8 @@ impl<'a> TypeChecker<'a> { } // Check that the finalize input parameter is not constant or private. - if self.scope_state.is_finalize && (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { - if (self.mode() == Mode::Constant || input_var.mode() == Mode::Private) { - self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); - } + if self.scope_state.is_finalize && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) { + self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); } // Note that this unwrap is safe since we assign to `self.variant` above. @@ -1419,6 +1416,40 @@ impl<'a> TypeChecker<'a> { } } } + + /// Inserts variable to symbol table. + pub(crate) fn insert_variable( + &mut self, + inferred_type: Option, + name: &Identifier, + type_: Type, + index: usize, + span: Span, + ) { + let ty: Type = if let Future(_) = type_ { + // Need to insert the fully inferred future type, or else will just be default future type. + match inferred_type.unwrap() { + Future(future) => Future(future), + Tuple(tuple) => match tuple.elements().get(index) { + Some(Future(future)) => Future(future.clone()), + _ => unreachable!("Parsing guarantees that the inferred type is a future."), + }, + _ => { + unreachable!("TYC guarantees that the inferred type is a future, or tuple containing futures.") + } + } + } else { + type_ + }; + // Insert the variable into the symbol table. + if let Err(err) = self.symbol_table.borrow_mut().insert_variable(name.name, VariableSymbol { + type_: ty, + span, + declaration: VariableType::Mut, + }) { + self.handler.emit_err(err); + } + } } fn types_to_string(types: &[Type]) -> String { diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index 594f4dba2d..d8b3de73a2 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use indexmap::{IndexMap, IndexSet}; -use leo_ast::{Identifier, Variant}; +use indexmap::IndexMap; +use leo_ast::{Identifier, Location, Variant}; use leo_span::Symbol; pub struct ScopeState { @@ -36,11 +36,13 @@ pub struct ScopeState { /// Whether or not we are in an async transition function. pub(crate) is_async_transition: bool, /// The futures that must be propagated to an async function. - pub(crate) futures: IndexSet, + pub(crate) futures: IndexMap, /// Whether the finalize caller has called the finalize function. pub(crate) has_called_finalize: bool, /// Whether currently traversing a conditional statement. pub(crate) is_conditional: bool, + /// Location of most recent external call that produced a future. + pub(crate) call_location: Option, } impl ScopeState { @@ -55,9 +57,10 @@ impl ScopeState { program_name: None, is_stub: false, is_async_transition: false, - futures: IndexSet::new(), + futures: IndexMap::new(), has_called_finalize: false, is_conditional: false, + call_location: None, } } @@ -67,6 +70,11 @@ impl ScopeState { self.is_finalize = variant == Variant::Standard && is_async; self.is_async_transition = variant == Variant::Transition && is_async; self.has_called_finalize = false; - self.futures = IndexSet::new(); + self.futures = IndexMap::new(); + } + + /// Get the current location. + pub fn location(&self) -> Location { + Location::new(self.program_name.unwrap(), self.function.unwrap()) } } From 35894d79fee40f8a91e35c3150a79bd01df830fb Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 4 Mar 2024 17:13:22 -0800 Subject: [PATCH 26/80] Remove old futures logic from CG --- .../passes/src/code_generation/generator.rs | 6 +- .../src/code_generation/visit_expressions.rs | 86 +++++------ .../src/code_generation/visit_program.rs | 134 +++++++----------- .../src/code_generation/visit_statements.rs | 55 +------ .../passes/src/code_generation/visit_type.rs | 1 + 5 files changed, 104 insertions(+), 178 deletions(-) diff --git a/compiler/passes/src/code_generation/generator.rs b/compiler/passes/src/code_generation/generator.rs index e9e4c8619f..7d7415fd0b 100644 --- a/compiler/passes/src/code_generation/generator.rs +++ b/compiler/passes/src/code_generation/generator.rs @@ -17,7 +17,7 @@ use crate::{CallGraph, StructGraph, SymbolTable, TypeTable}; use leo_ast::{Function, Program, ProgramId}; -use leo_span::Symbol; +use leo_span::{Symbol}; use indexmap::IndexMap; @@ -46,9 +46,6 @@ pub struct CodeGenerator<'a> { pub(crate) is_transition_function: bool, /// Are we traversing a finalize block? pub(crate) in_finalize: bool, - // TODO (@d0cd): There are a temporary solution to be compatible with futures introduced in Aleo instructions. - // The registers containing futures produced in the current transition. - pub(crate) futures: Vec<(String, String)>, // A reference to program. This is needed to look up external programs. pub(crate) program: &'a Program, // The program ID of the current program. @@ -77,7 +74,6 @@ impl<'a> CodeGenerator<'a> { global_mapping: IndexMap::new(), is_transition_function: false, in_finalize: false, - futures: Vec::new(), program, program_id: None, } diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 40cce6213a..cf0d2b393c 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -30,7 +30,7 @@ use leo_ast::{ Identifier, Literal, MemberAccess, - ProgramScope, + MethodCall, StructExpression, TernaryExpression, TupleExpression, @@ -297,12 +297,27 @@ impl<'a> CodeGenerator<'a> { } fn visit_member_access(&mut self, input: &'a MemberAccess) -> (String, String) { - let (inner_struct, _) = self.visit_expression(&input.inner); - let member_access = format!("{inner_struct}.{}", input.name); + let (inner_expr, _) = self.visit_expression(&input.inner); + let member_access = match self.type_table.get(&input.id) { + Some(Type::Future(_)) => format!("{inner_expr}[{}]", input.name), + Some(Type::Composite(_)) => format!("{}.{}", inner_expr, input.name), + _ => unreachable!("Member access must be future or struct."), + }; (member_access, String::new()) } + // f.await() -> await r3; + fn visit_method_call(&mut self, input: &'a MethodCall) -> (String, String) { + if input.name.name == sym::Await { + let (expr_string, mut expr_instructions) = self.visit_expression(&input.receiver); + expr_instructions.push_str(format!(" {} {};\n", sym::Await, expr_string).as_str()); + (expr_string, expr_instructions) + } else { + (String::new(), String::new()) + } + } + // group::GEN -> group::GEN fn visit_associated_constant(&mut self, input: &'a AssociatedConstant) -> (String, String) { (format!("{input}"), String::new()) @@ -311,8 +326,6 @@ impl<'a> CodeGenerator<'a> { // Pedersen64::hash() -> hash.ped64 fn visit_associated_function(&mut self, input: &'a AssociatedFunction) -> (String, String) { let mut instructions = String::new(); - - // Visit each function argument and accumulate instructions from expressions. let arguments = input .arguments .iter() @@ -469,6 +482,11 @@ impl<'a> CodeGenerator<'a> { .expect("failed to write to string"); (destination_register, instruction) } + sym::Await => { + let mut instruction = " await".to_string(); + writeln!(instruction, " {};", arguments[0]).expect("failed to write to string"); + (String::new(), instruction) + } _ => unreachable!("All core functions should be known at this phase of compilation"), }; // Add the instruction to the list of instructions. @@ -481,6 +499,7 @@ impl<'a> CodeGenerator<'a> { match input { AccessExpression::Array(array) => self.visit_array_access(array), AccessExpression::Member(access) => self.visit_member_access(access), + AccessExpression::MethodCall(call) => self.visit_method_call(call), AccessExpression::AssociatedConstant(constant) => self.visit_associated_constant(constant), AccessExpression::AssociatedFunction(function) => self.visit_associated_function(function), AccessExpression::Tuple(_) => { @@ -490,32 +509,34 @@ impl<'a> CodeGenerator<'a> { } fn visit_call(&mut self, input: &'a CallExpression) -> (String, String) { - // Need to determine the program the function originated from as well as if the function has a finalize block. - let (mut call_instruction, has_finalize); + // Lookup the function return type. + let function_name = match input.function.borrow() { + Expression::Identifier(identifier) => identifier.name, + _ => unreachable!("Parsing guarantees that a function name is always an identifier."), + }; // Check if function is external. let main_program = input.program.unwrap(); - if main_program != self.program_id.unwrap().name.name { + // Need to determine the program the function originated from as well as if the function has a finalize block. + let mut call_instruction = if main_program != self.program_id.unwrap().name.name { // All external functions must be defined as stubs. - if let Some(stub_program) = self.program.stubs.get(&main_program) { - let stub_scope = ProgramScope::from(stub_program.clone()); - let function_name = match *input.function { - Expression::Identifier(identifier) => identifier.name, - _ => unreachable!("Parsing guarantees that a function name is always an identifier."), - }; - - // Check if the external function has a finalize block. - has_finalize = match stub_scope.functions.iter().find(|(sym, _)| *sym == function_name) { - Some((_, function)) => function.finalize.is_some(), - None => unreachable!("Type checking guarantees that imported functions are well defined."), - }; - call_instruction = format!(" call {}.aleo/{}", main_program, input.function); + if self.program.stubs.get(&main_program).is_some() { + format!(" call {}.aleo/{}", main_program, input.function) } else { unreachable!("Type checking guarantees that imported and stub programs are well defined.") } } else { - (call_instruction, has_finalize) = (format!(" call {}", input.function), false); - } + // Lookup in symbol table to determine if its an async function. + if let Some(func) = self.symbol_table.lookup_fn_symbol(input.program.unwrap(), function_name) { + if func.is_async && input.program.unwrap() == self.program_id.unwrap().name.name { + format!(" async {}", input.function) + } else { + format!(" call {}", input.function) + } + } else { + unreachable!("Type checking guarantees that all functions are well defined.") + } + }; let mut instructions = String::new(); for argument in input.arguments.iter() { @@ -524,12 +545,6 @@ impl<'a> CodeGenerator<'a> { instructions.push_str(&argument_instructions); } - // Lookup the function return type. - let function_name = match input.function.borrow() { - Expression::Identifier(identifier) => identifier.name, - _ => unreachable!("Parsing guarantees that a function name is always an identifier."), - }; - // Initialize storage for the destination registers. let mut destinations = Vec::new(); @@ -556,19 +571,6 @@ impl<'a> CodeGenerator<'a> { // Construct the output operands. These are the destination registers **without** the future. let output_operands = destinations.join(" "); - // If `has_finalize`, create another destination register for the future. - if has_finalize { - // Construct the future register. - let future_register = format!("r{}", self.next_register); - self.next_register += 1; - - // Add the futures register to the list of futures. - self.futures.push((future_register.clone(), format!("{}.aleo/{function_name}", main_program))); - - // Add the future register to the list of destinations. - destinations.push(future_register); - } - // If destination registers were created, write them to the call instruction. if !destinations.is_empty() { write!(call_instruction, " into").expect("failed to write to string"); diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index efa7150f3f..93f6a31fea 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -84,15 +84,42 @@ impl<'a> CodeGenerator<'a> { .functions .iter() .map(|(_, function)| { - // Set the `is_transition_function` flag. - self.is_transition_function = matches!(function.variant, Variant::Transition); - - let function_string = self.visit_function(function); - - // Unset the `is_transition_function` flag. - self.is_transition_function = false; + if !(function.is_async && function.variant == Variant::Standard) { + // Set the `is_transition_function` flag. + self.is_transition_function = matches!(function.variant, Variant::Transition); + + let mut function_string = self.visit_function(function); + + // Unset the `is_transition_function` flag. + self.is_transition_function = false; + + // Attach the associated finalize to async transitions. + if function.variant == Variant::Transition && function.is_async { + self.is_transition_function = false; + let finalize = &self + .symbol_table + .lookup_fn_symbol( + self.program_id.unwrap().name.name, + function.identifier.name, + ) + .unwrap() + .clone() + .finalize + .unwrap() + .function; + // Write the finalize string. + function_string.push_str(&format!( + "{}\n", + &self.visit_function( + &program_scope.functions.iter().find(|(name, _f)| name == finalize).unwrap().1 + ) + )); + } - function_string + function_string + } else { + String::new() + } }) .join("\n"), ); @@ -148,7 +175,7 @@ impl<'a> CodeGenerator<'a> { // Initialize the state of `self` with the appropriate values before visiting `function`. self.next_register = 0; self.variable_mapping = IndexMap::new(); - self.futures.clear(); + self.in_finalize = function.is_async && function.variant == Variant::Standard; // TODO: Figure out a better way to initialize. self.variable_mapping.insert(&sym::SelfLower, "self".to_string()); self.variable_mapping.insert(&sym::block, "block".to_string()); @@ -158,13 +185,20 @@ impl<'a> CodeGenerator<'a> { // If a function is a program function, generate an Aleo `function`, // if it is a standard function generate an Aleo `closure`, // otherwise, it is an inline function, in which case a function should not be generated. - let mut function_string = match function.variant { - Variant::Transition => format!("\nfunction {}:\n", function.identifier), - Variant::Standard => format!("\nclosure {}:\n", function.identifier), - Variant::Inline => return String::from("\n"), + let mut function_string = match (function.is_async, function.variant) { + (_, Variant::Transition) => format!("\nfunction {}:\n", function.identifier), + (false, Variant::Standard) => format!("\nclosure {}:\n", function.identifier), + (true, Variant::Standard) => format!("\nfinalize {}:\n", function.identifier), + (_, Variant::Inline) => return String::from("\n"), }; // Construct and append the input declarations of the function. + let mut futures = self + .symbol_table + .lookup_fn_symbol(self.program_id.unwrap().name.name, function.identifier.name) + .unwrap() + .future_inputs + .clone(); for input in function.input.iter() { let register_string = format!("r{}", self.next_register); self.next_register += 1; @@ -176,7 +210,13 @@ impl<'a> CodeGenerator<'a> { (true, Mode::None) => Mode::Private, _ => input.mode, }; - self.visit_type_with_visibility(&input.type_, visibility) + // Futures are displayed differently in the input section. `input r0 as foo.aleo/bar.future;` + if matches!(input.type_, Type::Future(_)) { + let location = futures.pop().unwrap(); + format!("{}.aleo/{}.future", location.program, location.function) + } else { + self.visit_type_with_visibility(&input.type_, visibility) + } } functions::Input::External(input) => { self.variable_mapping.insert(&input.identifier.name, register_string.clone()); @@ -192,72 +232,6 @@ impl<'a> CodeGenerator<'a> { let block_string = self.visit_block(&function.block); function_string.push_str(&block_string); - // If the finalize block exists, generate the appropriate bytecode. - if !self.futures.is_empty() || function.finalize.is_some() { - // Clear the register count. - self.next_register = 0; - self.in_finalize = true; - - // Clear the variable mapping. - // TODO: Figure out a better way to initialize. - self.variable_mapping = IndexMap::new(); - self.variable_mapping.insert(&sym::SelfLower, "self".to_string()); - self.variable_mapping.insert(&sym::block, "block".to_string()); - - function_string.push_str(&format!("\nfinalize {}:\n", function.identifier)); - - // If the function contained calls that produced futures, then we need to add the futures to the finalize block as input. - // Store the new future registers. - let mut future_registers = Vec::new(); - for (_, future_type) in self.futures.drain(..) { - let register_string = format!("r{}", self.next_register); - writeln!(function_string, " input {register_string} as {future_type}.future;") - .expect("failed to write to string"); - future_registers.push(register_string); - self.next_register += 1; - } - - // Construct and append the input declarations of the finalize block, if it exists. - if let Some(finalize) = &function.finalize { - for input in finalize.input.iter() { - let register_string = format!("r{}", self.next_register); - self.next_register += 1; - - // TODO: Dedup code. - let type_string = match input { - functions::Input::Internal(input) => { - self.variable_mapping.insert(&input.identifier.name, register_string.clone()); - - let visibility = match (self.is_transition_function, input.mode) { - (true, Mode::None) => Mode::Public, - _ => input.mode, - }; - self.visit_type_with_visibility(&input.type_, visibility) - } - functions::Input::External(input) => { - self.variable_mapping.insert(&input.program_name.name, register_string.clone()); - format!("{}.aleo/{}.record", input.program_name, input.record) - } - }; - - writeln!(function_string, " input {register_string} as {type_string};",) - .expect("failed to write to string"); - } - } - - // Invoke `await` on each future. - for register in future_registers { - writeln!(function_string, " await {register};").expect("failed to write to string"); - } - - // Construct and append the finalize block body, if it exists. - if let Some(finalize) = &function.finalize { - function_string.push_str(&self.visit_block(&finalize.block)); - } - - self.in_finalize = false; - } - function_string } diff --git a/compiler/passes/src/code_generation/visit_statements.rs b/compiler/passes/src/code_generation/visit_statements.rs index 8aa446dfe3..5fe7929950 100644 --- a/compiler/passes/src/code_generation/visit_statements.rs +++ b/compiler/passes/src/code_generation/visit_statements.rs @@ -34,7 +34,7 @@ use leo_ast::{ }; use itertools::Itertools; -use std::fmt::Write as _; + impl<'a> CodeGenerator<'a> { fn visit_statement(&mut self, input: &'a Statement) -> String { @@ -81,19 +81,13 @@ impl<'a> CodeGenerator<'a> { } fn visit_return(&mut self, input: &'a ReturnStatement) -> String { - let mut outputs = match input.expression { + let outputs = match input.expression { // Skip empty return statements. Expression::Unit(_) => String::new(), _ => { let (operand, mut expression_instructions) = self.visit_expression(&input.expression); // Get the output type of the function. - let output = if self.in_finalize { - // Note that the first unwrap is safe, since `current_function` is set in `visit_function`. - self.current_function.unwrap().finalize.as_ref().unwrap().output.iter() - } else { - // Note that this unwrap is safe, since `current_function` is set in `visit_function`. - self.current_function.unwrap().output.iter() - }; + let output = self.current_function.unwrap().output.iter(); // If the operand string is empty, initialize an empty vector. let operand_strings = match operand.is_empty() { true => vec![], @@ -144,48 +138,7 @@ impl<'a> CodeGenerator<'a> { } }; - // Initialize storage for the instructions. - let mut instructions = String::new(); - - // If there are any futures or if the return instruction has `finalize_arguments`, then - // create an `async` instruction that uses them. - if !self.futures.is_empty() || input.finalize_arguments.is_some() { - // Note that this unwrap is safe, since `current_function` is set in `visit_function`. - let function_id = self.current_function.unwrap().name(); - let mut async_instruction = format!(" async {function_id}"); - // Add the futures to the async instruction. - for (future_register, _) in self.futures.iter() { - write!(async_instruction, " {}", future_register).expect("failed to write to string"); - } - // Add the finalize arguments to the async instruction. - if let Some(arguments) = &input.finalize_arguments { - for argument in arguments.iter() { - let (argument, argument_instructions) = self.visit_expression(argument); - write!(async_instruction, " {argument}").expect("failed to write to string"); - instructions.push_str(&argument_instructions); - } - } - // Write the destination register. - let destination_register = format!("r{}", self.next_register); - writeln!(async_instruction, " into {};", destination_register).expect("failed to write to string"); - // Increment the register counter. - self.next_register += 1; - // Add the async instruction to the instructions. - instructions.push_str(&async_instruction); - - // Add the destination register to the outputs. - let program_id = match self.program_id { - Some(program_id) => program_id, - None => unreachable!("`program_id` should be set in `visit_function`"), - }; - outputs - .push_str(&format!(" output {} as {}/{}.future;\n", destination_register, program_id, function_id)); - } - - // Extend the instructions with the outputs. - instructions.push_str(&outputs); - - instructions + outputs } fn visit_definition(&mut self, _input: &'a DefinitionStatement) -> String { diff --git a/compiler/passes/src/code_generation/visit_type.rs b/compiler/passes/src/code_generation/visit_type.rs index 636fe2ca32..ca6d7510f5 100644 --- a/compiler/passes/src/code_generation/visit_type.rs +++ b/compiler/passes/src/code_generation/visit_type.rs @@ -28,6 +28,7 @@ impl<'a> CodeGenerator<'a> { | Type::Scalar | Type::Signature | Type::String + | Type::Future(..) | Type::Composite(..) | Type::Identifier(..) | Type::Integer(..) => format!("{input}"), From 189d36e37e0876ecff8c2c3e908655d3db138278 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:38:12 -0800 Subject: [PATCH 27/80] Basic parsing pass --- compiler/parser/src/tokenizer/lexer.rs | 2 +- compiler/parser/src/tokenizer/mod.rs | 4 +- .../parser/program/async_basic.out | 164 ++++++++++++++++++ tests/tests/parser/program/async_basic.leo | 17 ++ 4 files changed, 184 insertions(+), 3 deletions(-) create mode 100644 tests/expectations/parser/program/async_basic.out create mode 100644 tests/tests/parser/program/async_basic.leo diff --git a/compiler/parser/src/tokenizer/lexer.rs b/compiler/parser/src/tokenizer/lexer.rs index b1927adace..edb0cf3402 100644 --- a/compiler/parser/src/tokenizer/lexer.rs +++ b/compiler/parser/src/tokenizer/lexer.rs @@ -393,7 +393,7 @@ impl Token { "else" => Token::Else, "false" => Token::False, "field" => Token::Field, - "future" => Token::Future, + "Future" => Token::Future, "for" => Token::For, "function" => Token::Function, "group" => Token::Group, diff --git a/compiler/parser/src/tokenizer/mod.rs b/compiler/parser/src/tokenizer/mod.rs index d5c3428c2d..e083f77f41 100644 --- a/compiler/parser/src/tokenizer/mod.rs +++ b/compiler/parser/src/tokenizer/mod.rs @@ -95,7 +95,7 @@ mod tests { field for function - future + Future group i128 i64 @@ -169,7 +169,7 @@ mod tests { assert_eq!( output, - r#""test" "test{}test" "test{}" "{}test" "test{" "test}" "test{test" "test}test" "te{{}}" test_ident 12345 address as assert assert_eq assert_neq async bool const else false field for function future group i128 i64 i32 i16 i8 if in inline input let mut private program public return scalar self signature string struct test transition true u128 u64 u32 u16 u8 console ! != && ( ) * ** + , - -> => _ . .. / : ; < <= = == > >= [ ] { { } } || ? @ // test + r#""test" "test{}test" "test{}" "{}test" "test{" "test}" "test{test" "test}test" "te{{}}" test_ident 12345 address as assert assert_eq assert_neq async bool const else false field for function Future group i128 i64 i32 i16 i8 if in inline input let mut private program public return scalar self signature string struct test transition true u128 u64 u32 u16 u8 console ! != && ( ) * ** + , - -> => _ . .. / : ; < <= = == > >= [ ] { { } } || ? @ // test /* test */ // "# ); }); diff --git a/tests/expectations/parser/program/async_basic.out b/tests/expectations/parser/program/async_basic.out new file mode 100644 index 0000000000..0671926aa4 --- /dev/null +++ b/tests/expectations/parser/program/async_basic.out @@ -0,0 +1,164 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - imports: {} + stubs: {} + program_scopes: + test: + program_id: "{\"name\":\"test\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":0}\\\\\\\"}\\\"\"}" + consts: [] + structs: [] + mappings: + - - Yo + - identifier: "{\"id\":\"2\",\"name\":\"Yo\",\"span\":\"{\\\"lo\\\":34,\\\"hi\\\":36}\"}" + key_type: + Integer: U32 + value_type: + Integer: U32 + span: + lo: 26 + hi: 49 + id: 3 + functions: + - - main + - annotations: [] + is_async: true + variant: Transition + identifier: "{\"id\":\"4\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":76}\"}" + input: [] + output: + - Internal: + mode: None + type_: + Future: + inputs: [] + span: + lo: 82 + hi: 88 + id: 5 + output_type: + Future: + inputs: [] + block: + statements: + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"6\",\"name\":\"f\",\"span\":\"{\\\"lo\\\":103,\\\"hi\\\":104}\"}" + type_: + Future: + inputs: [] + value: + Call: + function: + Identifier: "{\"id\":\"7\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":115,\\\"hi\\\":128}\"}" + arguments: + - Literal: + Integer: + - U32 + - "1" + - span: + lo: 129 + hi: 133 + - 8 + - Literal: + Integer: + - U32 + - "1" + - span: + lo: 135 + hi: 139 + - 9 + program: test + span: + lo: 115 + hi: 140 + id: 10 + span: + lo: 99 + hi: 140 + id: 11 + - Return: + expression: + Identifier: "{\"id\":\"12\",\"name\":\"f\",\"span\":\"{\\\"lo\\\":157,\\\"hi\\\":158}\"}" + span: + lo: 150 + hi: 159 + id: 13 + span: + lo: 89 + hi: 165 + id: 14 + span: + lo: 55 + hi: 165 + id: 15 + - - finalize_main + - annotations: [] + is_async: true + variant: Standard + identifier: "{\"id\":\"16\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":186,\\\"hi\\\":199}\"}" + input: + - Internal: + identifier: "{\"id\":\"17\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":200,\\\"hi\\\":201}\"}" + mode: None + type_: + Integer: U32 + span: + lo: 200 + hi: 201 + id: 18 + - Internal: + identifier: "{\"id\":\"19\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":207,\\\"hi\\\":208}\"}" + mode: None + type_: + Integer: U32 + span: + lo: 207 + hi: 208 + id: 20 + output: + - Internal: + mode: None + type_: + Future: + inputs: [] + span: + lo: 217 + hi: 223 + id: 21 + output_type: + Future: + inputs: [] + block: + statements: + - Expression: + expression: + Access: + AssociatedFunction: + variant: "{\"id\":\"22\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":234,\\\"hi\\\":241}\"}" + name: "{\"id\":\"23\",\"name\":\"set\",\"span\":\"{\\\"lo\\\":243,\\\"hi\\\":246}\"}" + arguments: + - Identifier: "{\"id\":\"24\",\"name\":\"Yo\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" + - Identifier: "{\"id\":\"25\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":251,\\\"hi\\\":252}\"}" + - Identifier: "{\"id\":\"26\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":254,\\\"hi\\\":255}\"}" + span: + lo: 234 + hi: 256 + id: 27 + span: + lo: 234 + hi: 257 + id: 28 + span: + lo: 224 + hi: 263 + id: 29 + span: + lo: 171 + hi: 263 + id: 30 + span: + lo: 2 + hi: 265 diff --git a/tests/tests/parser/program/async_basic.leo b/tests/tests/parser/program/async_basic.leo new file mode 100644 index 0000000000..bf9d665060 --- /dev/null +++ b/tests/tests/parser/program/async_basic.leo @@ -0,0 +1,17 @@ +/* +namespace: Parse +expectation: Pass +*/ + +program test.aleo { + mapping Yo: u32 => u32; + + async transition main() -> Future { + let f: Future = finalize_main(1u32, 1u32); + return f; + } + + async function finalize_main(a:u32, b:u32) -> Future { + Mapping::set(Yo, a, b); + } +} \ No newline at end of file From 7d5b1ed8a87d6415d4105cdb7a7a478109124e8e Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 5 Mar 2024 10:39:26 -0800 Subject: [PATCH 28/80] Change syntax so that finalize functions signatures no longer must explicitly declare output is future --- .../src/type_checking/check_expressions.rs | 16 ++++++++++++-- compiler/passes/src/type_checking/checker.rs | 18 ++++++++-------- .../errors/type_checker/type_checker_error.rs | 21 ++++++++++++------- .../type_checker/type_checker_warning.rs | 7 +++++++ 4 files changed, 44 insertions(+), 18 deletions(-) diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 9b74aa91d9..75c5a853f6 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -659,8 +659,20 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { { self.emit_err(TypeCheckerError::cannot_call_external_inline_function(input.span)); } - - let mut ret = self.assert_and_return_type(func.output_type, expected, input.span()); + + // Async functions return a single future. + let mut ret = if func.is_async && func.variant == Standard { + if let Some(Type::Future(_)) = expected { + Type::Future(FutureType::new(Vec::new())) + } + else { + self.emit_err(TypeCheckerError::return_type_of_finalize_function_is_future(input.span)); + Type::Unit + } + } + else { + self.assert_and_return_type(func.output_type, expected, input.span()) + }; // Check number of function arguments. if func.input.len() != input.arguments.len() { diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index c45824cde9..7a6de0fcd1 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -1245,6 +1245,12 @@ impl<'a> TypeChecker<'a> { // Special type checking for finalize blocks. Can skip for stubs. if self.scope_state.is_finalize & !self.scope_state.is_stub { + // Finalize functions are not allowed to return values. + if !function.output.is_empty() { + self.emit_err(TypeCheckerError::finalize_function_cannot_return_value(function.span())); + } + + // Check that the input types are consistent with when the function is invoked. if let Some(inferred_future_types) = self.finalize_input_types.get(&self.scope_state.location()) { // Check same number of inputs as expected. if inferred_future_types.len() != function.input.len() { @@ -1260,10 +1266,9 @@ impl<'a> TypeChecker<'a> { .iter() .zip_eq(inferred_future_types.iter()) .for_each(|(t1, t2)| self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span())); - } else if !function.input.is_empty() { - self.emit_err(TypeCheckerError::async_function_input_length_mismatch( - 0, - function.input.len(), + } else { + self.emit_warning(TypeCheckerWarning::async_function_is_never_called_by_transition_function( + function.identifier.name, function.span(), )); } @@ -1361,11 +1366,6 @@ impl<'a> TypeChecker<'a> { if function_output.mode == Mode::Constant { self.emit_err(TypeCheckerError::cannot_have_constant_output_mode(function_output.span)); } - // An async function must return a single future. - if self.scope_state.is_finalize && (index > 0 || !matches!(function_output.type_, Type::Future(_))) - { - self.emit_err(TypeCheckerError::async_function_must_return_single_future(function_output.span)); - } // Async transitions must return one future in the first position. if self.scope_state.is_async_transition && ((index > 0 && matches!(function_output.type_, Type::Future(_))) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 8fc50d82a3..dd5e0a4732 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -769,13 +769,6 @@ create_messages!( help: Some("Check that the struct definition in the current program matches the definition in the imported program.".to_string()), } - @formatted - async_function_must_return_single_future { - args: (), - msg: "An async function must have only a single output, and it must be a future.".to_string(), - help: Some("Example: `async function foo() -> Future {...}`".to_string()), - } - @formatted async_transition_invalid_output { args: (), @@ -930,4 +923,18 @@ create_messages!( msg: "An async transition must return a future.".to_string(), help: Some("Call an async function inside of the async transition body so that there is a future to return.".to_string()), } + + @formatted + finalize_function_cannot_return_value { + args: (), + msg: "An async function is not allowed to return a value.".to_string(), + help: Some("Remove an output type in the function signature, and remove the return statement from the function.".to_string()), + } + + @formatted + return_type_of_finalize_function_is_future { + args: (), + msg: "The output of an async function must be assigned to a Future type..".to_string(), + help: None, + } ); diff --git a/errors/src/errors/type_checker/type_checker_warning.rs b/errors/src/errors/type_checker/type_checker_warning.rs index 472d0052ad..b6718d3af5 100644 --- a/errors/src/errors/type_checker/type_checker_warning.rs +++ b/errors/src/errors/type_checker/type_checker_warning.rs @@ -37,4 +37,11 @@ create_messages!( msg: format!("Some paths through the function contain duplicate future awaits. {num_duplicate_await_paths}/{num_total_paths} paths contain at least one future that is awaited more than once."), help: Some("Look at the times `.await()` is called, and try to reduce redundancies. Remove this warning by including the `--disable-conditional-branch-type-checking` flag.".to_string()), } + + @formatted + async_function_is_never_called_by_transition_function { + args: (name: impl Display), + msg: format!("The async function `{name}` is never called by an async transition function."), + help: None, + } ); From 5d2f0cd976c8ce2e1e4b3503ed2be2c2720894dd Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:45:18 -0800 Subject: [PATCH 29/80] Simple E2E test --- .../compiler/function/basic_async.out | 16 ++++++++++++++++ tests/tests/compiler/function/basic_async.leo | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/expectations/compiler/function/basic_async.out create mode 100644 tests/tests/compiler/function/basic_async.leo diff --git a/tests/expectations/compiler/function/basic_async.out b/tests/expectations/compiler/function/basic_async.out new file mode 100644 index 0000000000..25e0c25af9 --- /dev/null +++ b/tests/expectations/compiler/function/basic_async.out @@ -0,0 +1,16 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_symbol_table: 8239588580197a92398142074283d5ba36891e04cbfc82ab52c4d28019580d7c + type_checked_symbol_table: a0fa0ea6c44833ed71fd6ce4affd5437a66e72f04f5af19c7a68deae7ae2d5fa + unrolled_symbol_table: a0fa0ea6c44833ed71fd6ce4affd5437a66e72f04f5af19c7a68deae7ae2d5fa + initial_ast: a55bb5df325267ca729880d011015ab304d4a58422a2c80bc5dc79293706282e + unrolled_ast: a55bb5df325267ca729880d011015ab304d4a58422a2c80bc5dc79293706282e + ssa_ast: b99d35fa7e0f0d79cc0e71e0471d9b35cad3d0cb59af5c26540b018d6ae91383 + flattened_ast: 198fb9e46b0813fe23dc14d88826b985a3e68e5898ab0314af7996e0ae682427 + destructured_ast: 29a5a70b3c59b46c636930fcaff8ff40036d021b4b84d88b2c5d79234c7138c8 + inlined_ast: 2323fb24086f3f3e03f339e3c1b81ea95866e84bb590d8be1d37309abeb22981 + dce_ast: 2323fb24086f3f3e03f339e3c1b81ea95866e84bb590d8be1d37309abeb22981 + bytecode: cc273037c3ab51d0adc1aa2a98ba98703f5bc15c14cce5207e29b1f6e3d88ab7 + warnings: "Warning [WTYC0372000]: Not all paths through the function await all futures. 1/1 paths contain at least one future that is never awaited.\n --> compiler-test:11:5\n |\n 11 | async function finalize_main(a:u32, b:u32) {\n 12 | Mapping::set(Yo, a, b);\n 13 | }\n | ^\n |\n = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag." diff --git a/tests/tests/compiler/function/basic_async.leo b/tests/tests/compiler/function/basic_async.leo new file mode 100644 index 0000000000..88a222162b --- /dev/null +++ b/tests/tests/compiler/function/basic_async.leo @@ -0,0 +1,18 @@ + +/* +namespace: Compile +expectation: Pass +*/ + +program test.aleo { + mapping Yo: u32 => u32; + + async transition main() -> Future { + let f: Future = finalize_main(1u32, 1u32); + return f; + } + + async function finalize_main(a:u32, b:u32) { + Mapping::set(Yo, a, b); + } +} \ No newline at end of file From 8d0c095767ad7daa57ceccbee0720a52792b605d Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:45:42 -0800 Subject: [PATCH 30/80] Correct error message --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index dd5e0a4732..28e90d71c8 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -772,7 +772,7 @@ create_messages!( @formatted async_transition_invalid_output { args: (), - msg: "An async transition must return a future as its first and only output.".to_string(), + msg: "An async transition must return a future as the final output, and in no other position return a future.".to_string(), help: Some("Example: `async transition foo() -> (Future, u8, bool) {...}`".to_string()), } From 1d7bebb7596131712c6af44a5ab5c16f491df3ef Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:46:18 -0800 Subject: [PATCH 31/80] Parse `Future` as token not Identifier --- compiler/parser/src/parser/expression.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 04a0deee1d..21540f0812 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -750,6 +750,9 @@ impl ParserContext<'_> { Token::Block => { Expression::Identifier(Identifier { name: sym::block, span, id: self.node_builder.next_id() }) } + Token::Future => { + Expression::Identifier(Identifier { name: sym::Future, span, id: self.node_builder.next_id() }) + }, t if crate::type_::TYPE_TOKENS.contains(&t) => Expression::Identifier(Identifier { name: t.keyword_to_symbol().unwrap(), span, From 2c809e9151c5bc4c847ccb4048bf68e336220129 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:47:31 -0800 Subject: [PATCH 32/80] Fix bug: `Future::await(f)` should always take 1 argument --- compiler/ast/src/functions/core_function.rs | 2 +- .../tests/utilities/check_unique_node_ids.rs | 54 ++++--------------- compiler/compiler/tests/utilities/mod.rs | 4 +- 3 files changed, 13 insertions(+), 47 deletions(-) diff --git a/compiler/ast/src/functions/core_function.rs b/compiler/ast/src/functions/core_function.rs index 22bdfe8810..4461b7cf93 100644 --- a/compiler/ast/src/functions/core_function.rs +++ b/compiler/ast/src/functions/core_function.rs @@ -843,7 +843,7 @@ impl CoreFunction { Self::GroupToYCoordinate => 1, Self::SignatureVerify => 3, - Self::FutureAwait => 0, + Self::FutureAwait => 1, } } diff --git a/compiler/compiler/tests/utilities/check_unique_node_ids.rs b/compiler/compiler/tests/utilities/check_unique_node_ids.rs index 8c0526ea43..3c7f1971ff 100644 --- a/compiler/compiler/tests/utilities/check_unique_node_ids.rs +++ b/compiler/compiler/tests/utilities/check_unique_node_ids.rs @@ -86,6 +86,14 @@ impl<'a> ExpressionVisitor<'a> for CheckUniqueNodeIds<'a> { self.visit_identifier(name, &Default::default()); self.check(*id); } + AccessExpression::MethodCall(MethodCall { receiver, name, arguments, id, .. }) => { + self.visit_expression(receiver, &Default::default()); + self.visit_identifier(name, &Default::default()); + for argument in arguments { + self.visit_expression(argument, &Default::default()); + } + self.check(*id); + } AccessExpression::Tuple(TupleAccess { tuple, id, .. }) => { self.visit_expression(tuple, &Default::default()); self.check(*id); @@ -240,11 +248,6 @@ impl<'a> StatementVisitor<'a> for CheckUniqueNodeIds<'a> { fn visit_return(&mut self, input: &'a ReturnStatement) { self.visit_expression(&input.expression, &Default::default()); - if let Some(arguments) = &input.finalize_arguments { - arguments.iter().for_each(|argument| { - self.visit_expression(argument, &Default::default()); - }) - } self.check(input.id) } } @@ -270,7 +273,7 @@ impl<'a> ProgramVisitor<'a> for CheckUniqueNodeIds<'a> { } fn visit_function(&mut self, input: &'a Function) { - let Function { annotations, identifier, input, output, block, finalize, id, .. } = input; + let Function { annotations, identifier, input, output, block, id, .. } = input; // Check the annotations. for Annotation { identifier, id, .. } in annotations { self.visit_identifier(identifier, &Default::default()); @@ -311,45 +314,6 @@ impl<'a> ProgramVisitor<'a> for CheckUniqueNodeIds<'a> { } // Check the function body. self.visit_block(block); - // Check the finalize block. - if let Some(Finalize { identifier, input, output, block, id, .. }) = finalize { - // Check the finalize name. - self.visit_identifier(identifier, &Default::default()); - // Check the inputs. - for in_ in input { - match in_ { - Input::Internal(FunctionInput { identifier, type_, id, .. }) => { - self.visit_identifier(identifier, &Default::default()); - self.check_ty(type_); - self.check(*id); - } - Input::External(External { identifier, program_name, record, id, .. }) => { - self.visit_identifier(identifier, &Default::default()); - self.visit_identifier(program_name, &Default::default()); - self.visit_identifier(record, &Default::default()); - self.check(*id); - } - } - } - // Check the outputs. - for out in output { - match out { - Output::Internal(FunctionOutput { type_, id, .. }) => { - self.check_ty(type_); - self.check(*id); - } - Output::External(External { identifier, program_name, record, id, .. }) => { - self.visit_identifier(identifier, &Default::default()); - self.visit_identifier(program_name, &Default::default()); - self.visit_identifier(record, &Default::default()); - self.check(*id); - } - } - } - // Check the function body. - self.visit_block(block); - self.check(*id); - } self.check(*id); } } diff --git a/compiler/compiler/tests/utilities/mod.rs b/compiler/compiler/tests/utilities/mod.rs index c7896d5152..c3db3de20b 100644 --- a/compiler/compiler/tests/utilities/mod.rs +++ b/compiler/compiler/tests/utilities/mod.rs @@ -97,11 +97,13 @@ pub fn get_build_options(test_config: &TestConfig) -> Vec { .expect("Expected key `dce_enabled`") .as_bool() .expect("Expected value to be a boolean."), + conditional_block_max_depth: 10, + disable_conditional_branch_type_checking: false, } }) .collect() } - None => vec![BuildOptions { dce_enabled: true }], + None => vec![BuildOptions { dce_enabled: true, conditional_block_max_depth: 10, disable_conditional_branch_type_checking: false }], } } From 5911bb33a0a4ce839ee95d89ffebbc1b3adc1f7f Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:50:44 -0800 Subject: [PATCH 33/80] Fix bug: Always disassemble Future output types --- compiler/ast/src/functions/mod.rs | 2 +- compiler/ast/src/stub/function_stub.rs | 30 +++++++++++++++----------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/compiler/ast/src/functions/mod.rs b/compiler/ast/src/functions/mod.rs index b81a64dcb7..463db8e30e 100644 --- a/compiler/ast/src/functions/mod.rs +++ b/compiler/ast/src/functions/mod.rs @@ -135,7 +135,7 @@ impl From for Function { fn from(function: FunctionStub) -> Self { Self { annotations: function.annotations, - is_async: false, + is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index cc4d6d8cf4..d30c9f148d 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -162,43 +162,47 @@ impl FunctionStub { .outputs() .iter() .map(|output| match output.value_type() { - ValueType::Constant(val) => vec![Output::Internal(FunctionOutput { + ValueType::Constant(val) => Output::Internal(FunctionOutput { mode: Mode::Constant, type_: Type::from_snarkvm(val, program), span: Default::default(), id: Default::default(), - })], - ValueType::Public(val) => vec![Output::Internal(FunctionOutput { + }), + ValueType::Public(val) => Output::Internal(FunctionOutput { mode: Mode::Public, type_: Type::from_snarkvm(val, program), span: Default::default(), id: Default::default(), - })], - ValueType::Private(val) => vec![Output::Internal(FunctionOutput { + }), + ValueType::Private(val) => Output::Internal(FunctionOutput { mode: Mode::Private, type_: Type::from_snarkvm(val, program), span: Default::default(), id: Default::default(), - })], - ValueType::Record(id) => vec![Output::Internal(FunctionOutput { + }), + ValueType::Record(id) => Output::Internal(FunctionOutput { mode: Mode::None, type_: Composite(CompositeType { id: Identifier::from(id), program: Some(program) }), span: Default::default(), id: Default::default(), - })], + }), ValueType::ExternalRecord(loc) => { - vec![Output::External(External { + Output::External(External { identifier: Identifier::new(Symbol::intern("dummy"), Default::default()), program_name: ProgramId::from(loc.program_id()).name, record: Identifier::from(loc.resource()), span: Default::default(), id: Default::default(), - })] + }) } - ValueType::Future(_) => Vec::new(), // Don't include futures in the output signature + ValueType::Future(_) => Output::Internal(FunctionOutput { + mode: Mode::Public, + type_: Type::Future(FutureType::new(Vec::new())), + span: Default::default(), + id: Default::default(), + }), }) - .collect_vec() - .concat(); + .collect_vec(); let output_vec = outputs .iter() .map(|output| match output { From 5efb498075afb7964bd26416d3a23cd1b0ea6580 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:51:33 -0800 Subject: [PATCH 34/80] Fix bug: Disassemble finalize functions to `finalize/{name}` to avoid shadowing errors --- compiler/ast/src/stub/function_stub.rs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index d30c9f148d..44763c6e0c 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -48,6 +48,7 @@ use snarkvm::{ synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; use std::fmt; +use snarkvm::prelude::FinalizeType; /// A function stub definition. #[derive(Clone, Serialize, Deserialize)] @@ -229,7 +230,7 @@ impl FunctionStub { .iter() .enumerate() .map(|(index, input)| { - let arg_name = Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()); + let arg_name = Identifier::new(Symbol::intern(&format!("arg{}", index + 1)), Default::default()); match input.value_type() { ValueType::Constant(val) => Input::Internal(FunctionInput { identifier: arg_name, @@ -284,15 +285,17 @@ impl FunctionStub { Self { annotations: Vec::new(), is_async: true, - variant: Variant::Transition, + variant: Variant::Standard, identifier: Identifier::new(name, Default::default()), future_locations: function + .finalize_logic() + .unwrap() .inputs() .iter() - .filter_map(|input| match input.value_type() { - ValueType::Future(val) => Some(Location::new( + .filter_map(|input| match input.finalize_type() { + FinalizeType::Future(val) => Some(Location::new( Identifier::from(val.program_id().name()).name, - Identifier::from(val.resource()).name, + Symbol::intern(&format!("finalize/{}", val.resource())), )), _ => None, }) @@ -305,8 +308,8 @@ impl FunctionStub { .enumerate() .map(|(index, input)| { Input::Internal(FunctionInput { - identifier: Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()), - mode: Mode::Public, + identifier: Identifier::new(Symbol::intern(&format!("arg{}", index + 1)), Default::default()), + mode: Mode::None, type_: match input.finalize_type() { PlaintextFinalizeType(val) => Type::from_snarkvm(val, name), FutureFinalizeType(_) => Type::Future(Default::default()), @@ -317,7 +320,7 @@ impl FunctionStub { }) .collect_vec(), output: vec![Output::Internal(FunctionOutput { - mode: Mode::Public, + mode: Mode::None, type_: Type::Future(FutureType { inputs: Vec::new() }), span: Default::default(), id: 0, @@ -370,7 +373,7 @@ impl FunctionStub { .iter() .enumerate() .map(|(index, input)| { - let arg_name = Identifier::new(Symbol::intern(&format!("a{}", index + 1)), Default::default()); + let arg_name = Identifier::new(Symbol::intern(&format!("arg{}", index + 1)), Default::default()); match input.register_type() { Plaintext(val) => Input::Internal(FunctionInput { identifier: arg_name, From 2b2bc91d534c7b2b5675a2ba8afb6e655a13abc2 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:52:43 -0800 Subject: [PATCH 35/80] Fix bug: Never use `Identifier` as key to Indexmap because spans will change --- compiler/passes/src/common/tree_node/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/passes/src/common/tree_node/mod.rs b/compiler/passes/src/common/tree_node/mod.rs index af14118b14..c9c089d578 100644 --- a/compiler/passes/src/common/tree_node/mod.rs +++ b/compiler/passes/src/common/tree_node/mod.rs @@ -17,14 +17,15 @@ use indexmap::IndexSet; use leo_ast::Identifier; use std::{fmt::Debug, hash::Hash}; +use leo_span::Symbol; /// A binary search tree to store all paths through nested conditional blocks. -pub type ConditionalTreeNode = TreeNode; +pub type ConditionalTreeNode = TreeNode; /// A node in a graph. pub trait Node: Copy + 'static + Eq + PartialEq + Debug + Hash {} -impl Node for Identifier {} +impl Node for Symbol {} /// A node in a tree. #[derive(Debug, Clone, PartialEq, Eq)] From dea6443f6753424825445fc98b48e8f572f6f4c7 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:54:38 -0800 Subject: [PATCH 36/80] Fix bug: If no futures present don't initialize await checker --- .../passes/src/type_checking/await_checker.rs | 17 +++++++++++------ .../passes/src/type_checking/scope_state.rs | 5 ++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index c2ab7bc525..65fde53b4f 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -18,14 +18,14 @@ use crate::{ConditionalTreeNode, TreeNode}; use indexmap::{IndexSet}; use leo_ast::{Identifier}; use leo_errors::TypeCheckerError; -use leo_span::{Span}; +use leo_span::{Span, Symbol}; // TODO: Could optimize by removing duplicate paths (if set of futures is the same). pub struct AwaitChecker { /// All possible subsets of futures that must be awaited. pub(crate) to_await: Vec, /// Statically updated set of futures to await. - pub(crate) static_to_await: IndexSet, + pub(crate) static_to_await: IndexSet, /// Whether or not to do full tree search for await checking. pub(crate) enabled: bool, /// Maximum nesting depth to search for await checking. @@ -43,16 +43,21 @@ impl AwaitChecker { // Can assume in finalize block. if self.enabled { // Remove from dynamic list. - self.to_await.iter_mut().for_each(|node| node.remove_element(id)); + self.to_await.iter_mut().for_each(|node| node.remove_element(&id.name)); } // Remove from static list. - self.static_to_await.remove(id); + self.static_to_await.remove(&id.name); } /// Initialize futures. - pub fn set_futures(&mut self, futures: IndexSet) { - (self.to_await, self.static_to_await) = (vec![TreeNode::new(futures.clone())], futures); + pub fn set_futures(&mut self, futures: IndexSet) { + if futures.is_empty() { + self.to_await = Vec::new(); + } else { + self.to_await = vec![TreeNode::new(futures.clone())]; + } + self.static_to_await = futures; } /// Enter scope for `then` branch of conditional. diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index d8b3de73a2..222b49c38d 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -36,11 +36,13 @@ pub struct ScopeState { /// Whether or not we are in an async transition function. pub(crate) is_async_transition: bool, /// The futures that must be propagated to an async function. - pub(crate) futures: IndexMap, + pub(crate) futures: IndexMap, /// Whether the finalize caller has called the finalize function. pub(crate) has_called_finalize: bool, /// Whether currently traversing a conditional statement. pub(crate) is_conditional: bool, + /// Whether the current function is a call. + pub(crate) is_call: bool, /// Location of most recent external call that produced a future. pub(crate) call_location: Option, } @@ -60,6 +62,7 @@ impl ScopeState { futures: IndexMap::new(), has_called_finalize: false, is_conditional: false, + is_call: false, call_location: None, } } From ccc7bf0eec5ba0ee2c9cbe2bb3af87c826f615b6 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:56:29 -0800 Subject: [PATCH 37/80] Fix bug: Logic error in analyzing unawaited paths through nested conditionals --- compiler/passes/src/type_checking/check_program.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 156812228c..706e106afb 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -341,7 +341,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { .filter_map(|input| match input { Internal(parameter) => { if let Future(_) = parameter.type_.clone() { - Some(parameter.identifier) + Some(parameter.identifier.name) } else { None } @@ -384,12 +384,12 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { .join(", "), function.span(), )); - } else { + } else if self.await_checker.enabled && !self.await_checker.to_await.is_empty() { // Tally up number of paths that are unawaited and number of paths that are awaited more than once. let (num_paths_unawaited, num_paths_duplicate_awaited, num_perfect) = self.await_checker.to_await.iter().fold((0, 0, 0), |(unawaited, duplicate, perfect), path| { ( - unawaited + if !path.elements.is_empty() { 0 } else { 1 }, + unawaited + if !path.elements.is_empty() { 1 } else { 0 }, duplicate + if path.counter > 0 { 1 } else { 0 }, perfect + if path.counter > 0 || !path.elements.is_empty() { 0 } else { 1 }, ) From 69fd6edab69cde251aadb565adbca881daaee7d3 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:58:44 -0800 Subject: [PATCH 38/80] Only track finalize stub inputs --- .../passes/src/type_checking/check_program.rs | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 706e106afb..33db98c9cc 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -18,7 +18,7 @@ use crate::{DiGraphError, TypeChecker}; use leo_ast::*; use leo_errors::{TypeCheckerError, TypeCheckerWarning}; -use leo_span::sym; +use leo_span::{sym, Symbol}; use snarkvm::console::network::{Network, Testnet3}; @@ -89,30 +89,32 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { let scope_index = self.create_child_scope(); // Create future stubs. - let finalize_input_map = &mut self.finalize_input_types; - let mut future_stubs = input.future_locations.clone(); - let resolved_inputs = input - .input - .iter() - .map(|input_mode| { - match input_mode { - Internal(function_input) => match &function_input.type_ { - Future(_) => { - // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. - Future(FutureType::new( - finalize_input_map.get(&future_stubs.pop().unwrap()).unwrap().clone(), - )) - } - _ => function_input.clone().type_, - }, - External(_) => unreachable!("External inputs are not allowed in finalize outputs of stubs."), - } - }) - .collect(); - assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); + if input.variant == Variant::Standard && input.is_async { + let finalize_input_map = &mut self.finalize_input_types; + let mut future_stubs = input.future_locations.clone(); + let resolved_inputs:Vec = input + .input + .iter() + .map(|input_mode| { + match input_mode { + Internal(function_input) => match &function_input.type_ { + Future(_) => { + // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. + Future(FutureType::new( + finalize_input_map.get(&future_stubs.pop().unwrap()).unwrap().clone(), + )) + } + _ => function_input.clone().type_, + }, + External(_) => unreachable!("External inputs are not allowed in finalize outputs of stubs."), + } + }) + .collect(); + assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); - finalize_input_map - .insert(Location::new(self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); + finalize_input_map + .insert(Location::new(self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); + } // Query helper function to type check function parameters and outputs. self.check_function_signature(&Function::from(input.clone())); From e6e8811f5cde6706808c1c6b54adb20f5f1d46f9 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:12:58 -0800 Subject: [PATCH 39/80] Support nested async functions in return. `return finalize_main(1u32, external.aleo/foo().1);` --- .../src/type_checking/check_statements.rs | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 64fa0ecb11..5d61d83065 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -289,8 +289,8 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Expression statements can only be function calls. if !matches!( input.expression, - Expression::Call(_) | Expression::Access(AccessExpression::AssociatedFunction(_)) - ) { + Expression::Call(_) | Expression::Access(AccessExpression::AssociatedFunction(_)) | Expression::Access(AccessExpression::MethodCall(_))) + { self.emit_err(TypeCheckerError::expression_statement_must_be_function_call(input.span())); } else { // Check the expression. @@ -383,30 +383,36 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); - let mut return_type = self + let func = self .symbol_table .borrow() .lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent) + .map(|f| f.clone()); + let mut return_type = func.clone() .map(|f| f.output_type.clone()); // Fully type the expected return value. - if self.scope_state.is_async_transition { - let inferred_future_type = match self.finalize_input_types.get(&self.scope_state.location()) { + if self.scope_state.is_async_transition && self.scope_state.has_called_finalize { + let inferred_future_type = match self.finalize_input_types.get(&func.unwrap().finalize.clone().unwrap()) { Some(types) => Future(FutureType::new(types.clone())), None => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } }; + // Need to modify return type since the function signature is just default future, but the actual return type is the fully inferred future of the finalize input type. return_type = match return_type { Some(Future(_)) => Some(inferred_future_type), Some(Tuple(tuple)) => { - let mut elements = tuple.elements().to_vec(); - elements[0] = inferred_future_type; - Some(Tuple(TupleType::new(elements))) + Some(Tuple(TupleType::new(tuple.elements().iter().map(|t| { + if matches!(t, Future(_)) { + inferred_future_type.clone() + } else { + t.clone() + } + }).collect::>()))) } _ => { - self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); - None + return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } } } From b29978cda95fddf0700793a4117ae02d734d3c19 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:18:53 -0800 Subject: [PATCH 40/80] Add fully typed futures to ST in finalize scope --- compiler/passes/src/type_checking/checker.rs | 58 ++++++++++++++------ 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 7a6de0fcd1..c110507b07 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -43,6 +43,8 @@ use indexmap::{IndexMap}; use itertools::Itertools; use leo_ast::Type::{Future, Tuple}; use std::{cell::RefCell}; +use leo_ast::Input::Internal; +use leo_ast::Mode::Public; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -1251,11 +1253,11 @@ impl<'a> TypeChecker<'a> { } // Check that the input types are consistent with when the function is invoked. - if let Some(inferred_future_types) = self.finalize_input_types.get(&self.scope_state.location()) { + if let Some(inferred_input_types) = self.finalize_input_types.get(&self.scope_state.location()) { // Check same number of inputs as expected. - if inferred_future_types.len() != function.input.len() { - self.emit_err(TypeCheckerError::async_function_input_length_mismatch( - inferred_future_types.len(), + if inferred_input_types.len() != function.input.len() { + return self.emit_err(TypeCheckerError::async_function_input_length_mismatch( + inferred_input_types.len(), function.input.len(), function.span(), )); @@ -1264,8 +1266,27 @@ impl<'a> TypeChecker<'a> { function .input .iter() - .zip_eq(inferred_future_types.iter()) - .for_each(|(t1, t2)| self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span())); + .zip_eq(inferred_input_types.iter()) + .for_each(|(t1, t2)| { + if let Internal(fn_input) = t1 { + // Allow partial type matching of futures since inferred are fully typed, whereas AST has default futures. + if !(matches!(t2, Type::Future(_)) && matches!(fn_input.type_, Type::Future(_))) { + self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span()) + } else { + // Insert to symbol table + if let Err(err) = self.symbol_table.borrow_mut().insert_variable( + fn_input.identifier.name, + VariableSymbol { + type_: t2.clone(), + span: fn_input.identifier.span(), + declaration: VariableType::Input(Public), + }, + ) { + self.handler.emit_err(err); + } + } + } + }); } else { self.emit_warning(TypeCheckerWarning::async_function_is_never_called_by_transition_function( function.identifier.name, @@ -1315,15 +1336,15 @@ impl<'a> TypeChecker<'a> { _ => {} // Do nothing. } - // Add function inputs to the symbol table. - if let Err(err) = - self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { + // Add function inputs to the symbol table. Futures have already been added. + if !matches!(&input_var.type_(), &Type::Future(_)) { + if let Err(err) = self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { type_: input_var.type_(), span: input_var.identifier().span(), declaration: VariableType::Input(input_var.mode()), - }) - { - self.handler.emit_err(err); + }) { + self.handler.emit_err(err); + } } }); @@ -1366,10 +1387,10 @@ impl<'a> TypeChecker<'a> { if function_output.mode == Mode::Constant { self.emit_err(TypeCheckerError::cannot_have_constant_output_mode(function_output.span)); } - // Async transitions must return one future in the first position. + // Async transitions must return exactly one future, and it must be in the last position. if self.scope_state.is_async_transition - && ((index > 0 && matches!(function_output.type_, Type::Future(_))) - || (index == 0 && !matches!(function_output.type_, Type::Future(_)))) + && ((index < function.output.len() - 1 && matches!(function_output.type_, Type::Future(_))) + || (index == function.output.len() - 1 && !matches!(function_output.type_, Type::Future(_)))) { self.emit_err(TypeCheckerError::async_transition_invalid_output(function_output.span)); } @@ -1428,7 +1449,7 @@ impl<'a> TypeChecker<'a> { ) { let ty: Type = if let Future(_) = type_ { // Need to insert the fully inferred future type, or else will just be default future type. - match inferred_type.unwrap() { + let ret = match inferred_type.unwrap() { Future(future) => Future(future), Tuple(tuple) => match tuple.elements().get(index) { Some(Future(future)) => Future(future.clone()), @@ -1437,7 +1458,10 @@ impl<'a> TypeChecker<'a> { _ => { unreachable!("TYC guarantees that the inferred type is a future, or tuple containing futures.") } - } + }; + // Insert future into list of futures for the function. + self.scope_state.futures.insert(name.name, self.scope_state.call_location.clone().unwrap()); + ret } else { type_ }; From 8f6a94d250e69945ee36deb77f7c8b9e4edc134c Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:31:51 -0800 Subject: [PATCH 41/80] Nested async function/transition logic --- .../src/type_checking/check_expressions.rs | 101 ++++++++++-------- 1 file changed, 56 insertions(+), 45 deletions(-) diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 75c5a853f6..19d7ac3a23 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -18,12 +18,13 @@ use crate::TypeChecker; use leo_ast::*; use leo_errors::{emitter::Handler, TypeCheckerError}; -use leo_span::{sym, Span}; +use leo_span::{sym, Span, Symbol}; use itertools::Itertools; use leo_ast::{CoreFunction::FutureAwait, Variant::Standard}; use snarkvm::console::network::{Network, Testnet3}; use std::str::FromStr; +use leo_ast::Type::{Future, Tuple}; fn return_incorrect_type(t1: Option, t2: Option, expected: &Option) -> Option { match (t1, t2) { @@ -184,6 +185,26 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { return Some(actual); } } + Future(_) => { + // Get the fully inferred type. + if let Some(Type::Future(inferred_f)) = self.type_table.get(&access.tuple.id()) { + // Make sure in range. + if access.index.value() >= inferred_f.inputs().len() { + self.emit_err(TypeCheckerError::invalid_future_access( + access.index.value(), + inferred_f.inputs().len(), + access.span(), + )); + } else { + // Return the type of the input parameter. + return Some(self.assert_and_return_type( + inferred_f.inputs().get(access.index.value()).unwrap().clone(), + expected, + access.span(), + )); + } + } + } type_ => { self.emit_err(TypeCheckerError::type_should_be(type_, "tuple", access.span())); } @@ -270,31 +291,6 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::undefined_type(&access.inner, access.inner.span())); } } - Some(Type::Future(f)) => { - // Make sure that the input parameter accessed is valid. - if let Ok(arg_num) = access.name.name.to_string().parse::() { - // Make sure in range. - if arg_num >= f.inputs().len() { - self.emit_err(TypeCheckerError::invalid_future_access( - arg_num, - f.inputs().len(), - access.name.span(), - )); - } - // Return the type of the input parameter. - return Some(self.assert_and_return_type( - f.inputs.get(arg_num).unwrap().clone(), - expected, - access.span(), - )); - } else { - // Future arguments must be addressed by their index. Ex: `f.1.3`. - self.emit_err(TypeCheckerError::future_access_must_be_number( - access.name.name, - access.name.span(), - )); - } - } Some(type_) => { self.emit_err(TypeCheckerError::type_should_be(type_, "struct", access.inner.span())); } @@ -659,7 +655,6 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { { self.emit_err(TypeCheckerError::cannot_call_external_inline_function(input.span)); } - // Async functions return a single future. let mut ret = if func.is_async && func.variant == Standard { if let Some(Type::Future(_)) = expected { @@ -684,13 +679,14 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } // Check function argument types. + self.scope_state.is_call = true; let (mut input_futures, mut inferred_finalize_inputs) = (Vec::new(), Vec::new()); func.input.iter().zip(input.arguments.iter()).for_each(|(expected, argument)| { let ty = self.visit_expression(argument, &Some(expected.type_())); // Extract information about futures that are being consumed. if func.is_async && func.variant == Standard && matches!(expected.type_(), Type::Future(_)) { match argument { - Expression::Identifier(_) | Expression::Call(_) => { + Expression::Identifier(_) | Expression::Call(_) | Expression::Access(AccessExpression::Tuple(_)) => { match self.scope_state.call_location.clone() { Some(location) => { // Get the external program and function name. @@ -714,7 +710,11 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } } } + else { + inferred_finalize_inputs.push(ty.unwrap()); + } }); + self.scope_state.is_call = false; // Add the call to the call graph. let caller_name = match self.scope_state.function { @@ -752,25 +752,26 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { let future_type = Type::Future(FutureType::new( // Assumes that external function stubs have been processed. self.finalize_input_types - .get(&Location::new(input.program.unwrap(), ident.name)) + .get(&Location::new(input.program.unwrap(), Symbol::intern(&format!("finalize/{}",ident.name)))) .unwrap() .clone(), )); ret = match ret.clone() { - Type::Tuple(tup) => { - // Replace first element of `tup.elements` with `future_type`. This will always be a future. - let mut elements: Vec = tup.elements().to_vec(); - elements[0] = future_type.clone(); - Type::Tuple(TupleType::new(elements)) + Tuple(tup) => { + Tuple(TupleType::new(tup.elements().iter().map(|t| { + if matches!(t, Future(_)) { + future_type.clone() + } else { + t.clone() + } + }).collect::>())) } - Type::Future(_) => future_type, + Future(_) => future_type, _ => { self.emit_err(TypeCheckerError::async_transition_invalid_output(input.span)); ret } }; - // Set the caller location so that an external async transition can be wrapped in an async function. - self.scope_state.call_location = Some(Location::new(input.program.unwrap(), ident.name)); } else if func.variant == Variant::Standard { // Can only call an async function once in a transition function body. if self.scope_state.has_called_finalize { @@ -779,7 +780,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Check that all futures consumed. if !self.scope_state.futures.is_empty() { self.emit_err(TypeCheckerError::not_all_futures_consumed( - self.scope_state.futures.iter().map(|(f, _)| f.name.to_string()).join(", "), + self.scope_state.futures.iter().map(|(f, _)| f.to_string()).join(", "), input.span, )); } @@ -795,7 +796,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { .unwrap(); // Create expectation for finalize inputs that will be checked when checking corresponding finalize function signature. self.finalize_input_types - .insert(self.scope_state.location(), inferred_finalize_inputs.clone()); + .insert(Location::new(self.scope_state.program_name.unwrap(), ident.name), inferred_finalize_inputs.clone()); // Set scope state flag. self.scope_state.has_called_finalize = true; @@ -803,6 +804,8 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Update ret to reflect fully inferred future type. ret = Type::Future(FutureType::new(inferred_finalize_inputs)); } + // Set call location so that definition statement knows where future comes from. + self.scope_state.call_location = Some(Location::new(input.program.unwrap(), ident.name)); } Some(ret) @@ -876,13 +879,21 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { fn visit_identifier(&mut self, input: &'a Identifier, expected: &Self::AdditionalInput) -> Self::Output { if let Some(var) = self.symbol_table.borrow().lookup_variable(input.name) { - if matches!(var.type_, Type::Future(_)) { - // Consume future. - match self.scope_state.futures.remove(input) { - Some(future) => self.scope_state.call_location = Some(future.clone()), - None => { - self.emit_err(TypeCheckerError::unknown_future_consumed(input.name, input.span)); + if matches!(var.type_, Type::Future(_)) && matches!(expected, Some(Type::Future(_))) { + if self.scope_state.is_async_transition && self.scope_state.is_call { + // Consume future. + match self.scope_state.futures.remove(&input.name) { + Some(future) => { + self.scope_state.call_location = Some(future.clone()); + return Some(var.type_.clone()); + }, + None => { + self.emit_err(TypeCheckerError::unknown_future_consumed(input.name, input.span)); + } } + } else { + // Case where accessing input argument of future. Ex `f.1`. + return Some(var.type_.clone()); } } Some(self.assert_and_return_type(var.type_.clone(), expected, input.span())) From dd6d40edf9a8e1447709eed6d92d64e23e9422c4 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:32:46 -0800 Subject: [PATCH 42/80] Convert `f.1` from tuple access to member access to prepare for CG --- .../destructuring/destructure_expression.rs | 17 +++++++- .../rename_statement.rs | 43 ++++++++----------- .../src/symbol_table_creation/creator.rs | 1 + 3 files changed, 34 insertions(+), 27 deletions(-) diff --git a/compiler/passes/src/destructuring/destructure_expression.rs b/compiler/passes/src/destructuring/destructure_expression.rs index ae25af2b21..8868d4410d 100644 --- a/compiler/passes/src/destructuring/destructure_expression.rs +++ b/compiler/passes/src/destructuring/destructure_expression.rs @@ -16,7 +16,8 @@ use crate::Destructurer; -use leo_ast::{Expression, ExpressionReconstructor, Statement, TupleAccess}; +use leo_ast::{AccessExpression, Expression, ExpressionReconstructor, Identifier, MemberAccess, Statement, TupleAccess, Type}; +use leo_span::Symbol; impl ExpressionReconstructor for Destructurer<'_> { type AdditionalOutput = Vec; @@ -29,7 +30,19 @@ impl ExpressionReconstructor for Destructurer<'_> { match self.tuples.get(&identifier.name).and_then(|tuple| tuple.elements.get(input.index.value())) { Some(element) => (element.clone(), Default::default()), None => { - unreachable!("SSA guarantees that all tuples are declared and indices are valid.") + if matches!(self.type_table.get(&identifier.id), Some(Type::Future(_))) { + ( + Expression::Access(AccessExpression::Member(MemberAccess { + inner: Box::new(Expression::Identifier(*identifier)), + name: Identifier::new(Symbol::intern(&input.index.to_string()), Default::default()), + span: input.span, + id: input.id, + })), + Default::default(), + ) + } else { + unreachable!("SSA guarantees that all tuple accesses are declared and indices are valid.") + } } } } diff --git a/compiler/passes/src/static_single_assignment/rename_statement.rs b/compiler/passes/src/static_single_assignment/rename_statement.rs index 0b4d522784..e9944bccc6 100644 --- a/compiler/passes/src/static_single_assignment/rename_statement.rs +++ b/compiler/passes/src/static_single_assignment/rename_statement.rs @@ -16,31 +16,7 @@ use crate::{RenameTable, StaticSingleAssigner}; -use leo_ast::{ - AccessExpression, - AssertStatement, - AssertVariant, - AssignStatement, - AssociatedFunction, - Block, - CallExpression, - ConditionalStatement, - ConsoleStatement, - ConstDeclaration, - DefinitionStatement, - Expression, - ExpressionConsumer, - ExpressionStatement, - Identifier, - IterationStatement, - Node, - ReturnStatement, - Statement, - StatementConsumer, - TernaryExpression, - TupleExpression, - Type, -}; +use leo_ast::{AccessExpression, AssertStatement, AssertVariant, AssignStatement, AssociatedFunction, Block, CallExpression, ConditionalStatement, ConsoleStatement, ConstDeclaration, DefinitionStatement, Expression, ExpressionConsumer, ExpressionStatement, Identifier, IterationStatement, MethodCall, Node, ReturnStatement, Statement, StatementConsumer, TernaryExpression, TupleExpression, Type}; use leo_span::Symbol; use indexmap::IndexSet; @@ -369,6 +345,23 @@ impl StatementConsumer for StaticSingleAssigner<'_> { id: input.id, })) } + Expression::Access(AccessExpression::MethodCall(method_call)) => { + // Process the arguments. + let arguments = process_arguments(method_call.arguments); + // Create and accumulate the new expression statement. + // Note that we do not create a new assignment for the method call; this is necessary for correct code generation. + statements.push(Statement::Expression(ExpressionStatement { + expression: Expression::Access(AccessExpression::MethodCall(MethodCall { + receiver: method_call.receiver, + arguments, + span: method_call.span, + id: method_call.id, + name: method_call.name, + })), + span: input.span, + id: input.id, + })) + } _ => unreachable!("Type checking guarantees that expression statements are always function calls."), } diff --git a/compiler/passes/src/symbol_table_creation/creator.rs b/compiler/passes/src/symbol_table_creation/creator.rs index ac4375cbfd..845287c30a 100644 --- a/compiler/passes/src/symbol_table_creation/creator.rs +++ b/compiler/passes/src/symbol_table_creation/creator.rs @@ -16,6 +16,7 @@ use leo_ast::*; use leo_errors::emitter::Handler; +use leo_span::sym::function; use leo_span::Symbol; use crate::{SymbolTable, VariableSymbol, VariableType}; From 143e9cdc2386cad08d3af0f3ab6eb19ac12f6ca3 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:35:26 -0800 Subject: [PATCH 43/80] formatting of futures in CG --- .../passes/src/code_generation/generator.rs | 7 ++- .../src/code_generation/visit_expressions.rs | 52 +++++++------------ .../src/code_generation/visit_program.rs | 12 +++-- .../src/code_generation/visit_statements.rs | 44 ++++++++-------- 4 files changed, 53 insertions(+), 62 deletions(-) diff --git a/compiler/passes/src/code_generation/generator.rs b/compiler/passes/src/code_generation/generator.rs index 7d7415fd0b..2f13003087 100644 --- a/compiler/passes/src/code_generation/generator.rs +++ b/compiler/passes/src/code_generation/generator.rs @@ -46,10 +46,12 @@ pub struct CodeGenerator<'a> { pub(crate) is_transition_function: bool, /// Are we traversing a finalize block? pub(crate) in_finalize: bool, - // A reference to program. This is needed to look up external programs. + /// A reference to program. This is needed to look up external programs. pub(crate) program: &'a Program, - // The program ID of the current program. + /// The program ID of the current program. pub(crate) program_id: Option, + /// A reference to the finalize caller. + pub(crate) finalize_caller: Option, } impl<'a> CodeGenerator<'a> { @@ -76,6 +78,7 @@ impl<'a> CodeGenerator<'a> { in_finalize: false, program, program_id: None, + finalize_caller: None, } } } diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index cf0d2b393c..c234b26af8 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -15,30 +15,7 @@ // along with the Leo library. If not, see . use crate::CodeGenerator; -use leo_ast::{ - AccessExpression, - ArrayAccess, - ArrayExpression, - AssociatedConstant, - AssociatedFunction, - BinaryExpression, - BinaryOperation, - CallExpression, - CastExpression, - ErrExpression, - Expression, - Identifier, - Literal, - MemberAccess, - MethodCall, - StructExpression, - TernaryExpression, - TupleExpression, - Type, - UnaryExpression, - UnaryOperation, - UnitExpression, -}; +use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedConstant, AssociatedFunction, BinaryExpression, BinaryOperation, CallExpression, CastExpression, ErrExpression, Expression, Identifier, Literal, MemberAccess, MethodCall, Node, StructExpression, TernaryExpression, TupleExpression, Type, UnaryExpression, UnaryOperation, UnitExpression, Variant}; use leo_span::sym; use std::borrow::Borrow; @@ -298,10 +275,9 @@ impl<'a> CodeGenerator<'a> { fn visit_member_access(&mut self, input: &'a MemberAccess) -> (String, String) { let (inner_expr, _) = self.visit_expression(&input.inner); - let member_access = match self.type_table.get(&input.id) { - Some(Type::Future(_)) => format!("{inner_expr}[{}]", input.name), - Some(Type::Composite(_)) => format!("{}.{}", inner_expr, input.name), - _ => unreachable!("Member access must be future or struct."), + let member_access = match self.type_table.get(&input.inner.id()) { + Some(Type::Future(_)) => format!("{inner_expr}[{}u32]", input.name), + _ => format!("{}.{}", inner_expr, input.name), }; (member_access, String::new()) @@ -482,12 +458,14 @@ impl<'a> CodeGenerator<'a> { .expect("failed to write to string"); (destination_register, instruction) } - sym::Await => { + sym::Future => { let mut instruction = " await".to_string(); writeln!(instruction, " {};", arguments[0]).expect("failed to write to string"); (String::new(), instruction) } - _ => unreachable!("All core functions should be known at this phase of compilation"), + _ => { + unreachable!("All core functions should be known at this phase of compilation") + }, }; // Add the instruction to the list of instructions. instructions.push_str(&instruction); @@ -529,7 +507,7 @@ impl<'a> CodeGenerator<'a> { // Lookup in symbol table to determine if its an async function. if let Some(func) = self.symbol_table.lookup_fn_symbol(input.program.unwrap(), function_name) { if func.is_async && input.program.unwrap() == self.program_id.unwrap().name.name { - format!(" async {}", input.function) + format!(" async {}", self.current_function.unwrap().identifier) } else { format!(" call {}", input.function) } @@ -548,8 +526,9 @@ impl<'a> CodeGenerator<'a> { // Initialize storage for the destination registers. let mut destinations = Vec::new(); - let return_type = &self.symbol_table.lookup_fn_symbol(main_program, function_name).unwrap().output_type; - match return_type { + // Create operands for the output registers. + let func = self.symbol_table.lookup_fn_symbol(main_program, function_name).unwrap(); + match &func.output_type { Type::Unit => {} // Do nothing Type::Tuple(tuple) => match tuple.length() { 0 | 1 => unreachable!("Parsing guarantees that a tuple type has at least two elements"), @@ -567,6 +546,13 @@ impl<'a> CodeGenerator<'a> { self.next_register += 1; } } + + // Add a register for async functions to represent the future created. + if func.is_async && func.variant == Variant::Standard { + let destination_register = format!("r{}", self.next_register); + destinations.push(destination_register); + self.next_register += 1; + } // Construct the output operands. These are the destination registers **without** the future. let output_operands = destinations.join(" "); diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index 93f6a31fea..e28207c843 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -95,7 +95,10 @@ impl<'a> CodeGenerator<'a> { // Attach the associated finalize to async transitions. if function.variant == Variant::Transition && function.is_async { + // Set state variables. self.is_transition_function = false; + self.finalize_caller = Some(function.identifier.name.clone()); + // Generate code for the associated finalize function. let finalize = &self .symbol_table .lookup_fn_symbol( @@ -188,7 +191,7 @@ impl<'a> CodeGenerator<'a> { let mut function_string = match (function.is_async, function.variant) { (_, Variant::Transition) => format!("\nfunction {}:\n", function.identifier), (false, Variant::Standard) => format!("\nclosure {}:\n", function.identifier), - (true, Variant::Standard) => format!("\nfinalize {}:\n", function.identifier), + (true, Variant::Standard) => format!("\nfinalize {}:\n", self.finalize_caller.unwrap()), (_, Variant::Inline) => return String::from("\n"), }; @@ -206,8 +209,9 @@ impl<'a> CodeGenerator<'a> { let type_string = match input { functions::Input::Internal(input) => { self.variable_mapping.insert(&input.identifier.name, register_string.clone()); - let visibility = match (self.is_transition_function, input.mode) { - (true, Mode::None) => Mode::Private, + let visibility = match (self.is_transition_function, self.in_finalize, input.mode) { + (true, _, Mode::None) => Mode::Private, + (_, true, Mode::None) => Mode::Public, _ => input.mode, }; // Futures are displayed differently in the input section. `input r0 as foo.aleo/bar.future;` @@ -223,7 +227,7 @@ impl<'a> CodeGenerator<'a> { format!("{}.aleo/{}.record", input.program_name, input.record) } }; - + writeln!(function_string, " input {register_string} as {type_string};",) .expect("failed to write to string"); } diff --git a/compiler/passes/src/code_generation/visit_statements.rs b/compiler/passes/src/code_generation/visit_statements.rs index 5fe7929950..d9896ea851 100644 --- a/compiler/passes/src/code_generation/visit_statements.rs +++ b/compiler/passes/src/code_generation/visit_statements.rs @@ -16,22 +16,7 @@ use crate::CodeGenerator; -use leo_ast::{ - AssertStatement, - AssertVariant, - AssignStatement, - Block, - ConditionalStatement, - ConsoleStatement, - DefinitionStatement, - Expression, - ExpressionStatement, - IterationStatement, - Mode, - Output, - ReturnStatement, - Statement, -}; +use leo_ast::{AssertStatement, AssertVariant, AssignStatement, Block, ConditionalStatement, ConsoleStatement, DefinitionStatement, Expression, ExpressionStatement, IterationStatement, Mode, Output, ReturnStatement, Statement, Type}; use itertools::Itertools; @@ -89,11 +74,13 @@ impl<'a> CodeGenerator<'a> { // Get the output type of the function. let output = self.current_function.unwrap().output.iter(); // If the operand string is empty, initialize an empty vector. - let operand_strings = match operand.is_empty() { + let mut operand_strings = match operand.is_empty() { true => vec![], false => operand.split(' ').collect_vec(), }; - let instructions = operand_strings + + let mut future_output = String::new(); + let mut instructions = operand_strings .iter() .zip_eq(output) .map(|(operand, output)| { @@ -116,11 +103,19 @@ impl<'a> CodeGenerator<'a> { // Only program functions have visibilities associated with their outputs. Mode::None }; - format!( - " output {} as {};\n", - operand, - self.visit_type_with_visibility(&output.type_, visibility) - ) + if let Type::Future(_) = output.type_ { + future_output = format!( + " output {} as {}.aleo/{}.future;\n", + operand, self.program_id.unwrap().name, self.current_function.unwrap().identifier, + ); + String::new() + } else { + format!( + " output {} as {};\n", + operand, + self.visit_type_with_visibility(&output.type_, visibility) + ) + } } Output::External(output) => { format!( @@ -132,6 +127,9 @@ impl<'a> CodeGenerator<'a> { }) .join(""); + // Insert future output at the end. + instructions.push_str(&future_output); + expression_instructions.push_str(&instructions); expression_instructions From 2cc115d3ab5887263d9c2db5bf0777d8892912dd Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:07:56 -0800 Subject: [PATCH 44/80] no longer recognize `finalize` as symbol so can now use it for naming functions --- compiler/span/src/symbol.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index cec9833d4b..c43593e40d 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -241,7 +241,6 @@ symbols! { constant, decrement, Else: "else", - finalize, For: "for", function, If: "if", From c01c61c5e4fedc938c9d47c5208c5db4b12c80ce Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:42:10 -0800 Subject: [PATCH 45/80] Fix Bug: Displaying futures in wrong order --- compiler/passes/src/code_generation/visit_program.rs | 2 +- compiler/passes/src/type_checking/check_program.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index e28207c843..18bed92d51 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -216,7 +216,7 @@ impl<'a> CodeGenerator<'a> { }; // Futures are displayed differently in the input section. `input r0 as foo.aleo/bar.future;` if matches!(input.type_, Type::Future(_)) { - let location = futures.pop().unwrap(); + let location = futures.remove(0); format!("{}.aleo/{}.future", location.program, location.function) } else { self.visit_type_with_visibility(&input.type_, visibility) diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 33db98c9cc..00dddfb57b 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -101,7 +101,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { Future(_) => { // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. Future(FutureType::new( - finalize_input_map.get(&future_stubs.pop().unwrap()).unwrap().clone(), + finalize_input_map.get(&future_stubs.remove(0)).unwrap().clone(), )) } _ => function_input.clone().type_, From 997b9051fd9d729d2399f1f687fc7d4d35b70761 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:42:55 -0800 Subject: [PATCH 46/80] clippy --- compiler/ast/src/stub/function_stub.rs | 19 ++--- compiler/ast/src/types/future.rs | 6 +- compiler/compiler/tests/utilities/mod.rs | 6 +- compiler/parser/src/parser/expression.rs | 2 +- .../passes/src/code_generation/generator.rs | 4 +- .../src/code_generation/visit_expressions.rs | 31 +++++++- .../src/code_generation/visit_statements.rs | 25 ++++++- compiler/passes/src/common/tree_node/mod.rs | 4 +- .../destructuring/destructure_expression.rs | 11 ++- .../rename_statement.rs | 27 ++++++- .../src/symbol_table_creation/creator.rs | 2 +- .../passes/src/type_checking/await_checker.rs | 12 +-- .../src/type_checking/check_expressions.rs | 52 +++++++------ .../passes/src/type_checking/check_program.rs | 5 +- .../src/type_checking/check_statements.rs | 36 ++++----- compiler/passes/src/type_checking/checker.rs | 74 ++++++++++--------- .../passes/src/type_checking/scope_state.rs | 2 +- .../errors/type_checker/type_checker_error.rs | 4 +- .../type_checker/type_checker_warning.rs | 2 +- tests/test-framework/benches/leo_compiler.rs | 6 +- 20 files changed, 204 insertions(+), 126 deletions(-) diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index 44763c6e0c..3fe6dd1a93 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -44,11 +44,10 @@ use snarkvm::{ FinalizeType::{Future as FutureFinalizeType, Plaintext as PlaintextFinalizeType}, RegisterType::{ExternalRecord, Future, Plaintext, Record}, }, - prelude::{Network, ValueType}, + prelude::{FinalizeType, Network, ValueType}, synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; use std::fmt; -use snarkvm::prelude::FinalizeType; /// A function stub definition. #[derive(Clone, Serialize, Deserialize)] @@ -187,15 +186,13 @@ impl FunctionStub { span: Default::default(), id: Default::default(), }), - ValueType::ExternalRecord(loc) => { - Output::External(External { - identifier: Identifier::new(Symbol::intern("dummy"), Default::default()), - program_name: ProgramId::from(loc.program_id()).name, - record: Identifier::from(loc.resource()), - span: Default::default(), - id: Default::default(), - }) - } + ValueType::ExternalRecord(loc) => Output::External(External { + identifier: Identifier::new(Symbol::intern("dummy"), Default::default()), + program_name: ProgramId::from(loc.program_id()).name, + record: Identifier::from(loc.resource()), + span: Default::default(), + id: Default::default(), + }), ValueType::Future(_) => Output::Internal(FunctionOutput { mode: Mode::Public, type_: Type::Future(FutureType::new(Vec::new())), diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 3d4f0b9c5c..9171fef8e4 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -14,14 +14,13 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{Type}; +use crate::Type; use serde::{Deserialize, Serialize}; use std::fmt; /// A future type consisting of the type of the inputs. -#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] -#[derive(Default)] +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize, Default)] pub struct FutureType { // Optional type specification of inputs. pub inputs: Vec, @@ -39,7 +38,6 @@ impl FutureType { } } - impl fmt::Display for crate::FutureType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Future<{}>", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) diff --git a/compiler/compiler/tests/utilities/mod.rs b/compiler/compiler/tests/utilities/mod.rs index c3db3de20b..e2f1e89a39 100644 --- a/compiler/compiler/tests/utilities/mod.rs +++ b/compiler/compiler/tests/utilities/mod.rs @@ -103,7 +103,11 @@ pub fn get_build_options(test_config: &TestConfig) -> Vec { }) .collect() } - None => vec![BuildOptions { dce_enabled: true, conditional_block_max_depth: 10, disable_conditional_branch_type_checking: false }], + None => vec![BuildOptions { + dce_enabled: true, + conditional_block_max_depth: 10, + disable_conditional_branch_type_checking: false, + }], } } diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 21540f0812..f38144df59 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -752,7 +752,7 @@ impl ParserContext<'_> { } Token::Future => { Expression::Identifier(Identifier { name: sym::Future, span, id: self.node_builder.next_id() }) - }, + } t if crate::type_::TYPE_TOKENS.contains(&t) => Expression::Identifier(Identifier { name: t.keyword_to_symbol().unwrap(), span, diff --git a/compiler/passes/src/code_generation/generator.rs b/compiler/passes/src/code_generation/generator.rs index 2f13003087..e594a38ef6 100644 --- a/compiler/passes/src/code_generation/generator.rs +++ b/compiler/passes/src/code_generation/generator.rs @@ -17,7 +17,7 @@ use crate::{CallGraph, StructGraph, SymbolTable, TypeTable}; use leo_ast::{Function, Program, ProgramId}; -use leo_span::{Symbol}; +use leo_span::Symbol; use indexmap::IndexMap; @@ -51,7 +51,7 @@ pub struct CodeGenerator<'a> { /// The program ID of the current program. pub(crate) program_id: Option, /// A reference to the finalize caller. - pub(crate) finalize_caller: Option, + pub(crate) finalize_caller: Option, } impl<'a> CodeGenerator<'a> { diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index c234b26af8..f7d81f016f 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -15,7 +15,32 @@ // along with the Leo library. If not, see . use crate::CodeGenerator; -use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedConstant, AssociatedFunction, BinaryExpression, BinaryOperation, CallExpression, CastExpression, ErrExpression, Expression, Identifier, Literal, MemberAccess, MethodCall, Node, StructExpression, TernaryExpression, TupleExpression, Type, UnaryExpression, UnaryOperation, UnitExpression, Variant}; +use leo_ast::{ + AccessExpression, + ArrayAccess, + ArrayExpression, + AssociatedConstant, + AssociatedFunction, + BinaryExpression, + BinaryOperation, + CallExpression, + CastExpression, + ErrExpression, + Expression, + Identifier, + Literal, + MemberAccess, + MethodCall, + Node, + StructExpression, + TernaryExpression, + TupleExpression, + Type, + UnaryExpression, + UnaryOperation, + UnitExpression, + Variant, +}; use leo_span::sym; use std::borrow::Borrow; @@ -465,7 +490,7 @@ impl<'a> CodeGenerator<'a> { } _ => { unreachable!("All core functions should be known at this phase of compilation") - }, + } }; // Add the instruction to the list of instructions. instructions.push_str(&instruction); @@ -546,7 +571,7 @@ impl<'a> CodeGenerator<'a> { self.next_register += 1; } } - + // Add a register for async functions to represent the future created. if func.is_async && func.variant == Variant::Standard { let destination_register = format!("r{}", self.next_register); diff --git a/compiler/passes/src/code_generation/visit_statements.rs b/compiler/passes/src/code_generation/visit_statements.rs index d9896ea851..e4b7029bb9 100644 --- a/compiler/passes/src/code_generation/visit_statements.rs +++ b/compiler/passes/src/code_generation/visit_statements.rs @@ -16,11 +16,26 @@ use crate::CodeGenerator; -use leo_ast::{AssertStatement, AssertVariant, AssignStatement, Block, ConditionalStatement, ConsoleStatement, DefinitionStatement, Expression, ExpressionStatement, IterationStatement, Mode, Output, ReturnStatement, Statement, Type}; +use leo_ast::{ + AssertStatement, + AssertVariant, + AssignStatement, + Block, + ConditionalStatement, + ConsoleStatement, + DefinitionStatement, + Expression, + ExpressionStatement, + IterationStatement, + Mode, + Output, + ReturnStatement, + Statement, + Type, +}; use itertools::Itertools; - impl<'a> CodeGenerator<'a> { fn visit_statement(&mut self, input: &'a Statement) -> String { match input { @@ -74,7 +89,7 @@ impl<'a> CodeGenerator<'a> { // Get the output type of the function. let output = self.current_function.unwrap().output.iter(); // If the operand string is empty, initialize an empty vector. - let mut operand_strings = match operand.is_empty() { + let operand_strings = match operand.is_empty() { true => vec![], false => operand.split(' ').collect_vec(), }; @@ -106,7 +121,9 @@ impl<'a> CodeGenerator<'a> { if let Type::Future(_) = output.type_ { future_output = format!( " output {} as {}.aleo/{}.future;\n", - operand, self.program_id.unwrap().name, self.current_function.unwrap().identifier, + operand, + self.program_id.unwrap().name, + self.current_function.unwrap().identifier, ); String::new() } else { diff --git a/compiler/passes/src/common/tree_node/mod.rs b/compiler/passes/src/common/tree_node/mod.rs index c9c089d578..e7561e868c 100644 --- a/compiler/passes/src/common/tree_node/mod.rs +++ b/compiler/passes/src/common/tree_node/mod.rs @@ -15,9 +15,9 @@ // along with the Leo library. If not, see . use indexmap::IndexSet; -use leo_ast::Identifier; -use std::{fmt::Debug, hash::Hash}; + use leo_span::Symbol; +use std::{fmt::Debug, hash::Hash}; /// A binary search tree to store all paths through nested conditional blocks. pub type ConditionalTreeNode = TreeNode; diff --git a/compiler/passes/src/destructuring/destructure_expression.rs b/compiler/passes/src/destructuring/destructure_expression.rs index 8868d4410d..e89848fab1 100644 --- a/compiler/passes/src/destructuring/destructure_expression.rs +++ b/compiler/passes/src/destructuring/destructure_expression.rs @@ -16,7 +16,16 @@ use crate::Destructurer; -use leo_ast::{AccessExpression, Expression, ExpressionReconstructor, Identifier, MemberAccess, Statement, TupleAccess, Type}; +use leo_ast::{ + AccessExpression, + Expression, + ExpressionReconstructor, + Identifier, + MemberAccess, + Statement, + TupleAccess, + Type, +}; use leo_span::Symbol; impl ExpressionReconstructor for Destructurer<'_> { diff --git a/compiler/passes/src/static_single_assignment/rename_statement.rs b/compiler/passes/src/static_single_assignment/rename_statement.rs index e9944bccc6..eefc8e9e92 100644 --- a/compiler/passes/src/static_single_assignment/rename_statement.rs +++ b/compiler/passes/src/static_single_assignment/rename_statement.rs @@ -16,7 +16,32 @@ use crate::{RenameTable, StaticSingleAssigner}; -use leo_ast::{AccessExpression, AssertStatement, AssertVariant, AssignStatement, AssociatedFunction, Block, CallExpression, ConditionalStatement, ConsoleStatement, ConstDeclaration, DefinitionStatement, Expression, ExpressionConsumer, ExpressionStatement, Identifier, IterationStatement, MethodCall, Node, ReturnStatement, Statement, StatementConsumer, TernaryExpression, TupleExpression, Type}; +use leo_ast::{ + AccessExpression, + AssertStatement, + AssertVariant, + AssignStatement, + AssociatedFunction, + Block, + CallExpression, + ConditionalStatement, + ConsoleStatement, + ConstDeclaration, + DefinitionStatement, + Expression, + ExpressionConsumer, + ExpressionStatement, + Identifier, + IterationStatement, + MethodCall, + Node, + ReturnStatement, + Statement, + StatementConsumer, + TernaryExpression, + TupleExpression, + Type, +}; use leo_span::Symbol; use indexmap::IndexSet; diff --git a/compiler/passes/src/symbol_table_creation/creator.rs b/compiler/passes/src/symbol_table_creation/creator.rs index 845287c30a..ed8085a49d 100644 --- a/compiler/passes/src/symbol_table_creation/creator.rs +++ b/compiler/passes/src/symbol_table_creation/creator.rs @@ -16,7 +16,7 @@ use leo_ast::*; use leo_errors::emitter::Handler; -use leo_span::sym::function; + use leo_span::Symbol; use crate::{SymbolTable, VariableSymbol, VariableType}; diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index 65fde53b4f..dae5ec5e3b 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -15,8 +15,8 @@ // along with the Leo library. If not, see . use crate::{ConditionalTreeNode, TreeNode}; -use indexmap::{IndexSet}; -use leo_ast::{Identifier}; +use indexmap::IndexSet; +use leo_ast::Identifier; use leo_errors::TypeCheckerError; use leo_span::{Span, Symbol}; @@ -92,15 +92,11 @@ impl AwaitChecker { parent_nodes: Vec, ) -> Vec { // Check if a nested conditional statement signaled their existence. - if is_finalize && self.enabled { - core::mem::replace(&mut self.to_await, parent_nodes) - } else { - Vec::new() - } + if is_finalize && self.enabled { core::mem::replace(&mut self.to_await, parent_nodes) } else { Vec::new() } } /// Exit scope for conditional statement at current depth. - pub fn exit_statement_scope(&mut self, is_finalize: bool, then_nodes: Vec) { + pub fn exit_statement_scope(&mut self, is_finalize: bool, then_nodes: Vec) { if is_finalize && self.enabled { // Merge together the current set of nodes (from `otherwise` branch) with `then` nodes. self.to_await.extend(then_nodes); diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 19d7ac3a23..efc1593429 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -21,10 +21,13 @@ use leo_errors::{emitter::Handler, TypeCheckerError}; use leo_span::{sym, Span, Symbol}; use itertools::Itertools; -use leo_ast::{CoreFunction::FutureAwait, Variant::Standard}; +use leo_ast::{ + CoreFunction::FutureAwait, + Type::{Future, Tuple}, + Variant::Standard, +}; use snarkvm::console::network::{Network, Testnet3}; use std::str::FromStr; -use leo_ast::Type::{Future, Tuple}; fn return_incorrect_type(t1: Option, t2: Option, expected: &Option) -> Option { match (t1, t2) { @@ -187,7 +190,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } Future(_) => { // Get the fully inferred type. - if let Some(Type::Future(inferred_f)) = self.type_table.get(&access.tuple.id()) { + if let Some(Type::Future(inferred_f)) = self.type_table.get(&access.tuple.id()) { // Make sure in range. if access.index.value() >= inferred_f.inputs().len() { self.emit_err(TypeCheckerError::invalid_future_access( @@ -659,13 +662,11 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { let mut ret = if func.is_async && func.variant == Standard { if let Some(Type::Future(_)) = expected { Type::Future(FutureType::new(Vec::new())) - } - else { + } else { self.emit_err(TypeCheckerError::return_type_of_finalize_function_is_future(input.span)); Type::Unit } - } - else { + } else { self.assert_and_return_type(func.output_type, expected, input.span()) }; @@ -686,7 +687,9 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Extract information about futures that are being consumed. if func.is_async && func.variant == Standard && matches!(expected.type_(), Type::Future(_)) { match argument { - Expression::Identifier(_) | Expression::Call(_) | Expression::Access(AccessExpression::Tuple(_)) => { + Expression::Identifier(_) + | Expression::Call(_) + | Expression::Access(AccessExpression::Tuple(_)) => { match self.scope_state.call_location.clone() { Some(location) => { // Get the external program and function name. @@ -701,7 +704,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { )); } } - }, + } _ => { self.emit_err(TypeCheckerError::unknown_future_consumed( "unknown", @@ -709,8 +712,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { )); } } - } - else { + } else { inferred_finalize_inputs.push(ty.unwrap()); } }); @@ -752,20 +754,20 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { let future_type = Type::Future(FutureType::new( // Assumes that external function stubs have been processed. self.finalize_input_types - .get(&Location::new(input.program.unwrap(), Symbol::intern(&format!("finalize/{}",ident.name)))) + .get(&Location::new( + input.program.unwrap(), + Symbol::intern(&format!("finalize/{}", ident.name)), + )) .unwrap() .clone(), )); ret = match ret.clone() { - Tuple(tup) => { - Tuple(TupleType::new(tup.elements().iter().map(|t| { - if matches!(t, Future(_)) { - future_type.clone() - } else { - t.clone() - } - }).collect::>())) - } + Tuple(tup) => Tuple(TupleType::new( + tup.elements() + .iter() + .map(|t| if matches!(t, Future(_)) { future_type.clone() } else { t.clone() }) + .collect::>(), + )), Future(_) => future_type, _ => { self.emit_err(TypeCheckerError::async_transition_invalid_output(input.span)); @@ -795,8 +797,10 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { ) .unwrap(); // Create expectation for finalize inputs that will be checked when checking corresponding finalize function signature. - self.finalize_input_types - .insert(Location::new(self.scope_state.program_name.unwrap(), ident.name), inferred_finalize_inputs.clone()); + self.finalize_input_types.insert( + Location::new(self.scope_state.program_name.unwrap(), ident.name), + inferred_finalize_inputs.clone(), + ); // Set scope state flag. self.scope_state.has_called_finalize = true; @@ -886,7 +890,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Some(future) => { self.scope_state.call_location = Some(future.clone()); return Some(var.type_.clone()); - }, + } None => { self.emit_err(TypeCheckerError::unknown_future_consumed(input.name, input.span)); } diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 00dddfb57b..30c8a46134 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -18,11 +18,10 @@ use crate::{DiGraphError, TypeChecker}; use leo_ast::*; use leo_errors::{TypeCheckerError, TypeCheckerWarning}; -use leo_span::{sym, Symbol}; +use leo_span::sym; use snarkvm::console::network::{Network, Testnet3}; - use leo_ast::{ Input::{External, Internal}, Type::Future, @@ -92,7 +91,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { if input.variant == Variant::Standard && input.is_async { let finalize_input_map = &mut self.finalize_input_types; let mut future_stubs = input.future_locations.clone(); - let resolved_inputs:Vec = input + let resolved_inputs: Vec = input .input .iter() .map(|input_mode| { diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 5d61d83065..31eecf94b1 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -24,7 +24,6 @@ use leo_ast::{ }; use leo_errors::TypeCheckerError; - impl<'a> StatementVisitor<'a> for TypeChecker<'a> { fn visit_statement(&mut self, input: &'a Statement) { // No statements can follow a return statement. @@ -252,7 +251,9 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Insert the variables into the symbol table. match &input.place { - Expression::Identifier(identifier) => self.insert_variable(inferred_type.clone(), identifier, input.type_.clone(), 0, identifier.span), + Expression::Identifier(identifier) => { + self.insert_variable(inferred_type.clone(), identifier, input.type_.clone(), 0, identifier.span) + } Expression::Tuple(tuple_expression) => { let tuple_type = match &input.type_ { Type::Tuple(tuple_type) => tuple_type, @@ -289,8 +290,10 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Expression statements can only be function calls. if !matches!( input.expression, - Expression::Call(_) | Expression::Access(AccessExpression::AssociatedFunction(_)) | Expression::Access(AccessExpression::MethodCall(_))) - { + Expression::Call(_) + | Expression::Access(AccessExpression::AssociatedFunction(_)) + | Expression::Access(AccessExpression::MethodCall(_)) + ) { self.emit_err(TypeCheckerError::expression_statement_must_be_function_call(input.span())); } else { // Check the expression. @@ -383,13 +386,8 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); - let func = self - .symbol_table - .borrow() - .lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent) - .map(|f| f.clone()); - let mut return_type = func.clone() - .map(|f| f.output_type.clone()); + let func = self.symbol_table.borrow().lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent).cloned(); + let mut return_type = func.clone().map(|f| f.output_type.clone()); // Fully type the expected return value. if self.scope_state.is_async_transition && self.scope_state.has_called_finalize { @@ -402,15 +400,13 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Need to modify return type since the function signature is just default future, but the actual return type is the fully inferred future of the finalize input type. return_type = match return_type { Some(Future(_)) => Some(inferred_future_type), - Some(Tuple(tuple)) => { - Some(Tuple(TupleType::new(tuple.elements().iter().map(|t| { - if matches!(t, Future(_)) { - inferred_future_type.clone() - } else { - t.clone() - } - }).collect::>()))) - } + Some(Tuple(tuple)) => Some(Tuple(TupleType::new( + tuple + .elements() + .iter() + .map(|t| if matches!(t, Future(_)) { inferred_future_type.clone() } else { t.clone() }) + .collect::>(), + ))), _ => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index c110507b07..0801378392 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -39,12 +39,14 @@ use leo_span::{Span, Symbol}; use snarkvm::console::network::{Network, Testnet3}; use crate::type_checking::{await_checker::AwaitChecker, scope_state::ScopeState}; -use indexmap::{IndexMap}; +use indexmap::IndexMap; use itertools::Itertools; -use leo_ast::Type::{Future, Tuple}; -use std::{cell::RefCell}; -use leo_ast::Input::Internal; -use leo_ast::Mode::Public; +use leo_ast::{ + Input::Internal, + Mode::Public, + Type::{Future, Tuple}, +}; +use std::cell::RefCell; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -1251,7 +1253,7 @@ impl<'a> TypeChecker<'a> { if !function.output.is_empty() { self.emit_err(TypeCheckerError::finalize_function_cannot_return_value(function.span())); } - + // Check that the input types are consistent with when the function is invoked. if let Some(inferred_input_types) = self.finalize_input_types.get(&self.scope_state.location()) { // Check same number of inputs as expected. @@ -1263,30 +1265,26 @@ impl<'a> TypeChecker<'a> { )); } // Check that the input parameters match the inferred types from when the async function is invoked. - function - .input - .iter() - .zip_eq(inferred_input_types.iter()) - .for_each(|(t1, t2)| { - if let Internal(fn_input) = t1 { - // Allow partial type matching of futures since inferred are fully typed, whereas AST has default futures. - if !(matches!(t2, Type::Future(_)) && matches!(fn_input.type_, Type::Future(_))) { - self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span()) - } else { - // Insert to symbol table - if let Err(err) = self.symbol_table.borrow_mut().insert_variable( - fn_input.identifier.name, - VariableSymbol { - type_: t2.clone(), - span: fn_input.identifier.span(), - declaration: VariableType::Input(Public), - }, - ) { - self.handler.emit_err(err); - } + function.input.iter().zip_eq(inferred_input_types.iter()).for_each(|(t1, t2)| { + if let Internal(fn_input) = t1 { + // Allow partial type matching of futures since inferred are fully typed, whereas AST has default futures. + if !(matches!(t2, Type::Future(_)) && matches!(fn_input.type_, Type::Future(_))) { + self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span()) + } else { + // Insert to symbol table + if let Err(err) = self.symbol_table.borrow_mut().insert_variable( + fn_input.identifier.name, + VariableSymbol { + type_: t2.clone(), + span: fn_input.identifier.span(), + declaration: VariableType::Input(Public), + }, + ) { + self.handler.emit_err(err); } } - }); + } + }); } else { self.emit_warning(TypeCheckerWarning::async_function_is_never_called_by_transition_function( function.identifier.name, @@ -1319,7 +1317,10 @@ impl<'a> TypeChecker<'a> { } // Check that the finalize input parameter is not constant or private. - if self.scope_state.is_finalize && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) { + if self.scope_state.is_finalize + && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) + && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) + { self.emit_err(TypeCheckerError::finalize_input_mode_must_be_public(input_var.span())); } @@ -1338,11 +1339,13 @@ impl<'a> TypeChecker<'a> { // Add function inputs to the symbol table. Futures have already been added. if !matches!(&input_var.type_(), &Type::Future(_)) { - if let Err(err) = self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { - type_: input_var.type_(), - span: input_var.identifier().span(), - declaration: VariableType::Input(input_var.mode()), - }) { + if let Err(err) = + self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { + type_: input_var.type_(), + span: input_var.identifier().span(), + declaration: VariableType::Input(input_var.mode()), + }) + { self.handler.emit_err(err); } } @@ -1390,7 +1393,8 @@ impl<'a> TypeChecker<'a> { // Async transitions must return exactly one future, and it must be in the last position. if self.scope_state.is_async_transition && ((index < function.output.len() - 1 && matches!(function_output.type_, Type::Future(_))) - || (index == function.output.len() - 1 && !matches!(function_output.type_, Type::Future(_)))) + || (index == function.output.len() - 1 + && !matches!(function_output.type_, Type::Future(_)))) { self.emit_err(TypeCheckerError::async_transition_invalid_output(function_output.span)); } diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index 222b49c38d..ffbe94ace5 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -15,7 +15,7 @@ // along with the Leo library. If not, see . use indexmap::IndexMap; -use leo_ast::{Identifier, Location, Variant}; +use leo_ast::{Location, Variant}; use leo_span::Symbol; pub struct ScopeState { diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 28e90d71c8..1af734435e 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -923,14 +923,14 @@ create_messages!( msg: "An async transition must return a future.".to_string(), help: Some("Call an async function inside of the async transition body so that there is a future to return.".to_string()), } - + @formatted finalize_function_cannot_return_value { args: (), msg: "An async function is not allowed to return a value.".to_string(), help: Some("Remove an output type in the function signature, and remove the return statement from the function.".to_string()), } - + @formatted return_type_of_finalize_function_is_future { args: (), diff --git a/errors/src/errors/type_checker/type_checker_warning.rs b/errors/src/errors/type_checker/type_checker_warning.rs index b6718d3af5..053b0af9c3 100644 --- a/errors/src/errors/type_checker/type_checker_warning.rs +++ b/errors/src/errors/type_checker/type_checker_warning.rs @@ -37,7 +37,7 @@ create_messages!( msg: format!("Some paths through the function contain duplicate future awaits. {num_duplicate_await_paths}/{num_total_paths} paths contain at least one future that is awaited more than once."), help: Some("Look at the times `.await()` is called, and try to reduce redundancies. Remove this warning by including the `--disable-conditional-branch-type-checking` flag.".to_string()), } - + @formatted async_function_is_never_called_by_transition_function { args: (name: impl Display), diff --git a/tests/test-framework/benches/leo_compiler.rs b/tests/test-framework/benches/leo_compiler.rs index bba17506a9..3231dc8b4a 100644 --- a/tests/test-framework/benches/leo_compiler.rs +++ b/tests/test-framework/benches/leo_compiler.rs @@ -89,7 +89,11 @@ fn new_compiler(handler: &Handler) -> Compiler<'_> { PathBuf::from(String::new()), PathBuf::from(String::new()), Some(CompilerOptions { - build: BuildOptions { dce_enabled: true, conditional_block_max_depth: 10, disable_conditional_branch_type_checking: false }, + build: BuildOptions { + dce_enabled: true, + conditional_block_max_depth: 10, + disable_conditional_branch_type_checking: false, + }, output: OutputOptions { symbol_table_spans_enabled: false, initial_symbol_table: false, From e7ac5e0bf1b2fdf702802dd4f8ffe19a3d342cb7 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 3 Apr 2024 15:59:57 -0700 Subject: [PATCH 47/80] running --- .../src/code_generation/visit_expressions.rs | 6 ++-- .../src/code_generation/visit_program.rs | 12 ++++---- .../passes/src/common/symbol_table/mod.rs | 6 ++-- .../src/flattening/flatten_expression.rs | 15 ++-------- .../src/loop_unrolling/unroll_program.rs | 2 +- .../src/loop_unrolling/unroll_statement.rs | 2 +- .../rename_expression.rs | 29 ++----------------- .../src/symbol_table_creation/creator.rs | 2 +- .../src/type_checking/check_expressions.rs | 12 ++++---- .../passes/src/type_checking/check_program.rs | 8 ++--- .../src/type_checking/check_statements.rs | 4 +-- compiler/passes/src/type_checking/checker.rs | 16 +++++----- .../passes/src/type_checking/scope_state.rs | 8 +---- 13 files changed, 41 insertions(+), 81 deletions(-) diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 5274c756bc..54bd72e35a 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{CodeGenerator, Location}; +use crate::{CodeGenerator}; use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedConstant, AssociatedFunction, BinaryExpression, BinaryOperation, CallExpression, CastExpression, ErrExpression, Expression, Identifier, Literal, Location, LocatorExpression, MemberAccess, MethodCall, Node, StructExpression, TernaryExpression, TupleExpression, Type, UnaryExpression, UnaryOperation, UnitExpression, Variant}; use leo_span::sym; use std::borrow::Borrow; @@ -512,7 +512,7 @@ impl<'a> CodeGenerator<'a> { } } else { // Lookup in symbol table to determine if its an async function. - if let Some(func) = self.symbol_table.lookup_fn_symbol(input.program.unwrap(), function_name) { + if let Some(func) = self.symbol_table.lookup_fn_symbol(Location::new(input.program, function_name)) { if func.is_async && input.program.unwrap() == self.program_id.unwrap().name.name { format!(" async {}", self.current_function.unwrap().identifier) } else { @@ -536,7 +536,7 @@ impl<'a> CodeGenerator<'a> { // Create operands for the output registers. let func = &self.symbol_table.lookup_fn_symbol(Location::new(Some(main_program), function_name)).unwrap(); - match func.output_type { + match func.output_type.clone() { Type::Unit => {} // Do nothing Type::Tuple(tuple) => match tuple.length() { 0 | 1 => unreachable!("Parsing guarantees that a tuple type has at least two elements"), diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index 18bed92d51..8b58ee82d7 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -16,7 +16,7 @@ use crate::CodeGenerator; -use leo_ast::{functions, Composite, Function, Mapping, Mode, Program, ProgramScope, Type, Variant}; +use leo_ast::{functions, Composite, Function, Mapping, Mode, Program, ProgramScope, Type, Variant, Location}; use indexmap::IndexMap; use itertools::Itertools; @@ -102,14 +102,14 @@ impl<'a> CodeGenerator<'a> { let finalize = &self .symbol_table .lookup_fn_symbol( - self.program_id.unwrap().name.name, + Location::new(Some(self.program_id.unwrap().name.name), function.identifier.name, - ) + )) .unwrap() .clone() .finalize .unwrap() - .function; + .name; // Write the finalize string. function_string.push_str(&format!( "{}\n", @@ -198,7 +198,7 @@ impl<'a> CodeGenerator<'a> { // Construct and append the input declarations of the function. let mut futures = self .symbol_table - .lookup_fn_symbol(self.program_id.unwrap().name.name, function.identifier.name) + .lookup_fn_symbol(Location::new(Some(self.program_id.unwrap().name.name), function.identifier.name)) .unwrap() .future_inputs .clone(); @@ -217,7 +217,7 @@ impl<'a> CodeGenerator<'a> { // Futures are displayed differently in the input section. `input r0 as foo.aleo/bar.future;` if matches!(input.type_, Type::Future(_)) { let location = futures.remove(0); - format!("{}.aleo/{}.future", location.program, location.function) + format!("{}.aleo/{}.future", location.program.unwrap(), location.name) } else { self.visit_type_with_visibility(&input.type_, visibility) } diff --git a/compiler/passes/src/common/symbol_table/mod.rs b/compiler/passes/src/common/symbol_table/mod.rs index a1ba61a862..f59fabdbbe 100644 --- a/compiler/passes/src/common/symbol_table/mod.rs +++ b/compiler/passes/src/common/symbol_table/mod.rs @@ -25,7 +25,7 @@ use std::cell::RefCell; use leo_ast::{normalize_json_value, remove_key_from_json, Composite, Function, Location}; use leo_errors::{AstError, Result}; -use leo_span::Span; +use leo_span::{Span, Symbol}; use indexmap::IndexMap; use serde::{Deserialize, Serialize}; @@ -106,7 +106,7 @@ impl SymbolTable { } else if let Some(parent) = self.parent.as_mut() { parent.attach_finalize(caller, callee) } else { - Err(AstError::function_not_found(caller.function).into()) + Err(AstError::function_not_found(caller.name).into()) } } @@ -119,7 +119,7 @@ impl SymbolTable { /// Inserts futures into the function definition. pub fn insert_futures(&mut self, program: Symbol, function: Symbol, futures: Vec) -> Result<()> { - if let Some(func) = self.functions.get_mut(&Location::new(program, function)) { + if let Some(func) = self.functions.get_mut(&Location::new(Some(program), function)) { func.future_inputs = futures; Ok(()) } else if let Some(parent) = self.parent.as_mut() { diff --git a/compiler/passes/src/flattening/flatten_expression.rs b/compiler/passes/src/flattening/flatten_expression.rs index 52af8cb53b..d337d49999 100644 --- a/compiler/passes/src/flattening/flatten_expression.rs +++ b/compiler/passes/src/flattening/flatten_expression.rs @@ -14,18 +14,9 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{Flattener, Location}; - -use leo_ast::{ - Expression, - ExpressionReconstructor, - Node, - Statement, - StructExpression, - StructVariableInitializer, - TernaryExpression, - Type, -}; +use crate::{Flattener}; + +use leo_ast::{Expression, ExpressionReconstructor, Location, Node, Statement, StructExpression, StructVariableInitializer, TernaryExpression, Type}; impl ExpressionReconstructor for Flattener<'_> { type AdditionalOutput = Vec; diff --git a/compiler/passes/src/loop_unrolling/unroll_program.rs b/compiler/passes/src/loop_unrolling/unroll_program.rs index 5c2a2e2f48..7ec8609b41 100644 --- a/compiler/passes/src/loop_unrolling/unroll_program.rs +++ b/compiler/passes/src/loop_unrolling/unroll_program.rs @@ -16,7 +16,7 @@ use leo_ast::*; -use crate::{Location, Unroller}; +use crate::{Unroller}; impl ProgramReconstructor for Unroller<'_> { fn reconstruct_stub(&mut self, input: Stub) -> Stub { diff --git a/compiler/passes/src/loop_unrolling/unroll_statement.rs b/compiler/passes/src/loop_unrolling/unroll_statement.rs index 6abcdff47e..6d02871b16 100644 --- a/compiler/passes/src/loop_unrolling/unroll_statement.rs +++ b/compiler/passes/src/loop_unrolling/unroll_statement.rs @@ -19,7 +19,7 @@ use leo_ast::{Expression::Literal, Type::Integer, *}; use leo_errors::loop_unroller::LoopUnrollerError; use leo_span::{Span, Symbol}; -use crate::{unroller::Unroller, Location, VariableSymbol, VariableType}; +use crate::{unroller::Unroller, VariableSymbol, VariableType}; impl StatementReconstructor for Unroller<'_> { fn reconstruct_block(&mut self, input: Block) -> (Block, Self::AdditionalOutput) { diff --git a/compiler/passes/src/static_single_assignment/rename_expression.rs b/compiler/passes/src/static_single_assignment/rename_expression.rs index 96d9cd5ce0..aeab2773fc 100644 --- a/compiler/passes/src/static_single_assignment/rename_expression.rs +++ b/compiler/passes/src/static_single_assignment/rename_expression.rs @@ -14,32 +14,9 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{Location, StaticSingleAssigner}; - -use leo_ast::{ - AccessExpression, - ArrayAccess, - ArrayExpression, - AssociatedFunction, - BinaryExpression, - CallExpression, - CastExpression, - Composite, - Expression, - ExpressionConsumer, - Identifier, - Literal, - LocatorExpression, - MemberAccess, - Statement, - StructExpression, - StructVariableInitializer, - TernaryExpression, - TupleAccess, - TupleExpression, - UnaryExpression, - UnitExpression, -}; +use crate::{StaticSingleAssigner}; + +use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedFunction, BinaryExpression, CallExpression, CastExpression, Composite, Expression, ExpressionConsumer, Identifier, Literal, Location, LocatorExpression, MemberAccess, Statement, StructExpression, StructVariableInitializer, TernaryExpression, TupleAccess, TupleExpression, UnaryExpression, UnitExpression}; use leo_span::{sym, Symbol}; use indexmap::IndexMap; diff --git a/compiler/passes/src/symbol_table_creation/creator.rs b/compiler/passes/src/symbol_table_creation/creator.rs index bdde5c6786..982b392cf5 100644 --- a/compiler/passes/src/symbol_table_creation/creator.rs +++ b/compiler/passes/src/symbol_table_creation/creator.rs @@ -19,7 +19,7 @@ use leo_errors::emitter::Handler; use leo_span::Symbol; -use crate::{Location, SymbolTable, VariableSymbol, VariableType}; +use crate::{SymbolTable, VariableSymbol, VariableType}; /// A compiler pass during which the `SymbolTable` is created. /// Note that this pass only creates the initial entries for functions, structs, and records. diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 7f128ac2cb..6baf3d7f1c 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{Location, TypeChecker}; +use crate::{TypeChecker}; use leo_ast::*; use leo_errors::{emitter::Handler, TypeCheckerError}; @@ -757,7 +757,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Assumes that external function stubs have been processed. self.finalize_input_types .get(&Location::new( - input.program.unwrap(), + input.program, Symbol::intern(&format!("finalize/{}", ident.name)), )) .unwrap() @@ -795,12 +795,12 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Link async transition to the async function that finalizes it. st.attach_finalize( self.scope_state.location(), - Location::new(self.scope_state.program_name.unwrap(), ident.name), + Location::new(self.scope_state.program_name, ident.name), ) .unwrap(); // Create expectation for finalize inputs that will be checked when checking corresponding finalize function signature. self.finalize_input_types.insert( - Location::new(self.scope_state.program_name.unwrap(), ident.name), + Location::new(self.scope_state.program_name, ident.name), inferred_finalize_inputs.clone(), ); @@ -811,7 +811,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { ret = Type::Future(FutureType::new(inferred_finalize_inputs)); } // Set call location so that definition statement knows where future comes from. - self.scope_state.call_location = Some(Location::new(input.program.unwrap(), ident.name)); + self.scope_state.call_location = Some(Location::new(input.program, ident.name)); } Some(ret) @@ -838,7 +838,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { fn visit_struct_init(&mut self, input: &'a StructExpression, additional: &Self::AdditionalInput) -> Self::Output { let struct_ = - self.symbol_table.borrow().lookup_struct(self.scope_state.program_name).cloned(); + self.symbol_table.borrow().lookup_struct(Location::new(self.scope_state.program_name, input.name.name)).cloned(); if let Some(struct_) = struct_ { // Check struct type name. let ret = self.check_expected_struct(&struct_, additional, input.name.span()); diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 7dd0d6437b..178e10c649 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{DiGraphError, Location, TypeChecker}; +use crate::{DiGraphError, TypeChecker}; use leo_ast::*; use leo_errors::{TypeCheckerError, TypeCheckerWarning}; @@ -77,7 +77,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { let function_index = self .symbol_table .borrow() - .lookup_fn_symbol(Location::new(self.program_name, input.identifier.name)) + .lookup_fn_symbol(Location::new(self.scope_state.program_name, input.identifier.name)) .unwrap() .id; @@ -112,7 +112,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); finalize_input_map - .insert(Location::new(self.scope_state.program_name.unwrap(), input.identifier.name), resolved_inputs); + .insert(Location::new(self.scope_state.program_name, input.identifier.name), resolved_inputs); } // Query helper function to type check function parameters and outputs. @@ -309,7 +309,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { let function_index = self .symbol_table .borrow() - .lookup_fn_symbol(Location::new(self.program_name, function.identifier.name)) + .lookup_fn_symbol(Location::new(self.scope_state.program_name, function.identifier.name)) .unwrap() .id; diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 8948b4c550..c7962badbf 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -15,8 +15,6 @@ // along with the Leo library. If not, see . use crate::{ConditionalTreeNode, TypeChecker, VariableSymbol, VariableType}; - -use crate::{Location, TypeChecker, VariableSymbol, VariableType}; use itertools::Itertools; use leo_ast::{ @@ -393,7 +391,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); - let func = self.symbol_table.borrow().lookup_fn_symbol(self.scope_state.program_name.unwrap(), parent).cloned(); + let func = self.symbol_table.borrow().lookup_fn_symbol(Location::new(self.scope_state.program_name, parent)).cloned(); let mut return_type = func.clone().map(|f| f.output_type.clone()); // Fully type the expected return value. diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 8a947ceb05..5fda2f14a0 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{CallGraph, Location, StructGraph, SymbolTable, TypeTable, VariableSymbol, VariableType}; +use crate::{CallGraph, StructGraph, SymbolTable, TypeTable, VariableSymbol, VariableType}; use leo_ast::{ Composite, @@ -1018,7 +1018,7 @@ impl<'a> TypeChecker<'a> { // Check that the first argument is a mapping. if let Some(mapping_type) = self.assert_mapping_type(&arguments[0].0, arguments[0].1) { // Cannot modify external mappings. - if mapping_type.program != self.program_name.unwrap() { + if mapping_type.program != self.scope_state.program_name.unwrap() { self.handler.emit_err(TypeCheckerError::cannot_modify_external_mapping("set", function_span)); } // Check that the second argument matches the key type of the mapping. @@ -1042,7 +1042,7 @@ impl<'a> TypeChecker<'a> { // Check that the first argument is a mapping. if let Some(mapping_type) = self.assert_mapping_type(&arguments[0].0, arguments[0].1) { // Cannot modify external mappings. - if mapping_type.program != self.program_name.unwrap() { + if mapping_type.program != self.scope_state.program_name.unwrap() { self.handler .emit_err(TypeCheckerError::cannot_modify_external_mapping("remove", function_span)); } @@ -1291,7 +1291,7 @@ impl<'a> TypeChecker<'a> { } else { // Insert to symbol table if let Err(err) = self.symbol_table.borrow_mut().insert_variable( - fn_input.identifier.name, + Location::new(None, fn_input.identifier.name), VariableSymbol { type_: t2.clone(), span: fn_input.identifier.span(), @@ -1326,7 +1326,7 @@ impl<'a> TypeChecker<'a> { && self .symbol_table .borrow() - .lookup_struct(struct_.program.unwrap(), struct_.id.name) + .lookup_struct(Location::new(struct_.program, struct_.id.name)) .unwrap() .is_record { @@ -1358,7 +1358,7 @@ impl<'a> TypeChecker<'a> { // Add function inputs to the symbol table. Futures have already been added. if !matches!(&input_var.type_(), &Type::Future(_)) { if let Err(err) = - self.symbol_table.borrow_mut().insert_variable(input_var.identifier().name, VariableSymbol { + self.symbol_table.borrow_mut().insert_variable(Location::new(None, input_var.identifier().name), VariableSymbol { type_: input_var.type_(), span: input_var.identifier().span(), declaration: VariableType::Input(input_var.mode()), @@ -1446,7 +1446,7 @@ impl<'a> TypeChecker<'a> { }; // Make sure that the future is defined. - match self.symbol_table.borrow().lookup_variable(future_variable.name) { + match self.symbol_table.borrow().lookup_variable(Location::new(None, future_variable.name)) { Some(var) => { if !matches!(&var.type_, &Type::Future(_)) { self.emit_err(TypeCheckerError::expected_future(future_variable.name, future_variable.span())); @@ -1488,7 +1488,7 @@ impl<'a> TypeChecker<'a> { type_ }; // Insert the variable into the symbol table. - if let Err(err) = self.symbol_table.borrow_mut().insert_variable(name.name, VariableSymbol { + if let Err(err) = self.symbol_table.borrow_mut().insert_variable(Location::new(None, name.name), VariableSymbol { type_: ty, span, declaration: VariableType::Mut, diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index ffbe94ace5..885c525903 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -25,16 +25,12 @@ pub struct ScopeState { pub(crate) variant: Option, /// Whether or not the function that we are currently traversing has a return statement. pub(crate) has_return: bool, - /// Whether or not we are currently traversing a finalize block. - pub(crate) is_finalize: bool, /// Whether or not we are currently traversing a return statement. pub(crate) is_return: bool, /// Current program name. pub(crate) program_name: Option, /// Whether or not we are currently traversing a stub. pub(crate) is_stub: bool, - /// Whether or not we are in an async transition function. - pub(crate) is_async_transition: bool, /// The futures that must be propagated to an async function. pub(crate) futures: IndexMap, /// Whether the finalize caller has called the finalize function. @@ -54,11 +50,9 @@ impl ScopeState { function: None, variant: None, has_return: false, - is_finalize: false, is_return: false, program_name: None, is_stub: false, - is_async_transition: false, futures: IndexMap::new(), has_called_finalize: false, is_conditional: false, @@ -78,6 +72,6 @@ impl ScopeState { /// Get the current location. pub fn location(&self) -> Location { - Location::new(self.program_name.unwrap(), self.function.unwrap()) + Location::new(self.program_name, self.function.unwrap()) } } From 9889aa01c57eacdf96972195db4ead2ccbf39e3b Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:00:03 -0700 Subject: [PATCH 48/80] Refactor `Variant` to account for asynchronous function variants --- compiler/ast/src/functions/mod.rs | 10 +--- compiler/ast/src/functions/variant.rs | 34 ++++++++++- compiler/ast/src/passes/reconstructor.rs | 1 - compiler/ast/src/stub/function_stub.rs | 22 +++----- compiler/parser/src/parser/file.rs | 11 ++-- .../src/code_generation/visit_expressions.rs | 38 +++++++++++-- .../src/code_generation/visit_program.rs | 22 ++++---- .../common/symbol_table/function_symbol.rs | 3 - .../passes/src/common/symbol_table/mod.rs | 1 - .../eliminate_program.rs | 1 - .../src/flattening/flatten_expression.rs | 16 +++++- .../passes/src/flattening/flatten_program.rs | 1 - .../function_inlining/inline_expression.rs | 2 +- .../src/loop_unrolling/unroll_program.rs | 3 +- .../rename_expression.rs | 30 +++++++++- .../rename_program.rs | 1 - .../src/type_checking/check_expressions.rs | 56 ++++++++----------- .../passes/src/type_checking/check_program.rs | 11 ++-- .../src/type_checking/check_statements.rs | 13 +++-- compiler/passes/src/type_checking/checker.rs | 38 +++++++------ .../passes/src/type_checking/scope_state.rs | 4 +- 21 files changed, 194 insertions(+), 124 deletions(-) diff --git a/compiler/ast/src/functions/mod.rs b/compiler/ast/src/functions/mod.rs index 463db8e30e..6daee616eb 100644 --- a/compiler/ast/src/functions/mod.rs +++ b/compiler/ast/src/functions/mod.rs @@ -46,8 +46,6 @@ use std::fmt; pub struct Function { /// Annotations on the function. pub annotations: Vec, - /// Is this function asynchronous or synchronous? - pub is_async: bool, /// Is this function a transition, inlined, or a regular function?. pub variant: Variant, /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. @@ -79,7 +77,6 @@ impl Function { #[allow(clippy::too_many_arguments)] pub fn new( annotations: Vec, - is_async: bool, variant: Variant, identifier: Identifier, input: Vec, @@ -100,7 +97,7 @@ impl Function { _ => Type::Tuple(TupleType::new(output.iter().map(get_output_type).collect())), }; - Function { annotations, is_async, variant, identifier, input, output, output_type, block, span, id } + Function { annotations, variant, identifier, input, output, output_type, block, span, id } } /// Returns function name. @@ -114,8 +111,8 @@ impl Function { fn format(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.variant { Variant::Inline => write!(f, "inline ")?, - Variant::Standard => write!(f, "function ")?, - Variant::Transition => write!(f, "transition ")?, + Variant::Function | Variant::AsyncFunction => write!(f, "function ")?, + Variant::Transition | Variant::AsyncTransition => write!(f, "transition ")?, } write!(f, "{}", self.identifier)?; @@ -135,7 +132,6 @@ impl From for Function { fn from(function: FunctionStub) -> Self { Self { annotations: function.annotations, - is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, diff --git a/compiler/ast/src/functions/variant.rs b/compiler/ast/src/functions/variant.rs index 407246de9b..bbbeeec689 100644 --- a/compiler/ast/src/functions/variant.rs +++ b/compiler/ast/src/functions/variant.rs @@ -16,13 +16,43 @@ use serde::{Deserialize, Serialize}; -/// Functions are always one of three variants. +/// Functions are always one of five variants. /// A transition function is permitted the ability to manipulate records. +/// An asynchronous transition function is a transition function that calls an asynchronous function. /// A regular function is not permitted to manipulate records. +/// An asynchronous function contains on-chain operations. /// An inline function is directly copied at the call site. #[derive(Copy, Clone, Debug, Serialize, Deserialize, PartialEq, Eq)] pub enum Variant { Inline, - Standard, + Function, Transition, + AsyncTransition, + AsyncFunction, +} + +impl Variant { + /// Returns true if the variant is async. + pub fn is_async(self) -> bool { + match self { + Variant::AsyncFunction | Variant::AsyncTransition => true, + _ => false, + } + } + + /// Returns true if the variant is a transition. + pub fn is_transition(self) -> bool { + match self { + Variant::Transition | Variant::AsyncTransition => true, + _ => false, + } + } + + /// Returns true if the variant is a function. + pub fn is_function(self) -> bool { + match self { + Variant::Function | Variant::AsyncFunction => true, + _ => false, + } + } } diff --git a/compiler/ast/src/passes/reconstructor.rs b/compiler/ast/src/passes/reconstructor.rs index 1b74a1da8d..441c5afcbe 100644 --- a/compiler/ast/src/passes/reconstructor.rs +++ b/compiler/ast/src/passes/reconstructor.rs @@ -475,7 +475,6 @@ pub trait ProgramReconstructor: StatementReconstructor { fn reconstruct_function(&mut self, input: Function) -> Function { Function { annotations: input.annotations, - is_async: input.is_async, variant: input.variant, identifier: input.identifier, input: input.input, diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index 3fe6dd1a93..c65c90d463 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -54,8 +54,6 @@ use std::fmt; pub struct FunctionStub { /// Annotations on the function. pub annotations: Vec, - /// Is this function asynchronous or synchronous? - pub is_async: bool, /// Is this function a transition, inlined, or a regular function?. pub variant: Variant, /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. @@ -109,7 +107,6 @@ impl FunctionStub { FunctionStub { annotations, - is_async, variant, identifier, future_locations: Vec::new(), @@ -137,8 +134,8 @@ impl FunctionStub { fn format(&self, f: &mut fmt::Formatter) -> fmt::Result { match self.variant { Variant::Inline => write!(f, "inline ")?, - Variant::Standard => write!(f, "function ")?, - Variant::Transition => write!(f, "transition ")?, + Variant::Function | Variant::AsyncFunction => write!(f, "function ")?, + Variant::Transition | Variant::AsyncTransition => write!(f, "transition ")?, } write!(f, "{}", self.identifier)?; @@ -218,8 +215,10 @@ impl FunctionStub { Self { annotations: Vec::new(), - is_async: function.finalize_logic().is_some(), - variant: Variant::Transition, + variant: match function.finalize_logic().is_some() { + true => Variant::AsyncTransition, + false => Variant::Transition, + }, identifier: Identifier::from(function.name()), future_locations: Vec::new(), input: function @@ -281,8 +280,7 @@ impl FunctionStub { ) -> Self { Self { annotations: Vec::new(), - is_async: true, - variant: Variant::Standard, + variant: Variant::AsyncFunction, identifier: Identifier::new(name, Default::default()), future_locations: function .finalize_logic() @@ -291,7 +289,7 @@ impl FunctionStub { .iter() .filter_map(|input| match input.finalize_type() { FinalizeType::Future(val) => Some(Location::new( - Identifier::from(val.program_id().name()).name, + Some(Identifier::from(val.program_id().name()).name), Symbol::intern(&format!("finalize/{}", val.resource())), )), _ => None, @@ -361,8 +359,7 @@ impl FunctionStub { }; Self { annotations: Vec::new(), - is_async: false, - variant: Variant::Standard, + variant: Variant::Function, identifier: Identifier::from(closure.name()), future_locations: Vec::new(), input: closure @@ -397,7 +394,6 @@ impl From for FunctionStub { fn from(function: Function) -> Self { Self { annotations: function.annotations, - is_async: function.is_async, variant: function.variant, identifier: function.identifier, future_locations: Vec::new(), diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index b24281d85f..1cffe90369 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -138,7 +138,7 @@ impl ParserContext<'_> { let (id, function) = self.parse_function()?; // Partition into transitions and functions so that don't have to sort later. - if function.variant == Variant::Transition { + if function.variant.is_transition() { transitions.push((id, function)); } else { functions.push((id, function)); @@ -409,10 +409,12 @@ impl ParserContext<'_> { let (is_async, start_async) = if self.token.token == Token::Async { (true, self.expect(&Token::Async)?) } else { (false, Span::dummy()) }; // Parse ` IDENT`, where `` is `function`, `transition`, or `inline`. - let (variant, start) = match self.token.token { + let (variant, start) = match self.token.token.clone() { Token::Inline => (Variant::Inline, self.expect(&Token::Inline)?), - Token::Function => (Variant::Standard, self.expect(&Token::Function)?), - Token::Transition => (Variant::Transition, self.expect(&Token::Transition)?), + Token::Function => { + (if is_async { Variant::AsyncFunction } else { Variant::Function }, self.expect(&Token::Function)?) + } + Token::Transition => (if is_async { Variant::AsyncTransition } else { Variant::Transition }, self.expect(&Token::Transition)?), _ => self.unexpected("'function', 'transition', or 'inline'")?, }; let name = self.expect_identifier()?; @@ -450,7 +452,6 @@ impl ParserContext<'_> { name.name, Function::new( annotations, - is_async, variant, name, inputs, diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 54bd72e35a..4acadab384 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -14,8 +14,35 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{CodeGenerator}; -use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedConstant, AssociatedFunction, BinaryExpression, BinaryOperation, CallExpression, CastExpression, ErrExpression, Expression, Identifier, Literal, Location, LocatorExpression, MemberAccess, MethodCall, Node, StructExpression, TernaryExpression, TupleExpression, Type, UnaryExpression, UnaryOperation, UnitExpression, Variant}; +use crate::CodeGenerator; +use leo_ast::{ + AccessExpression, + ArrayAccess, + ArrayExpression, + AssociatedConstant, + AssociatedFunction, + BinaryExpression, + BinaryOperation, + CallExpression, + CastExpression, + ErrExpression, + Expression, + Identifier, + Literal, + Location, + LocatorExpression, + MemberAccess, + MethodCall, + Node, + StructExpression, + TernaryExpression, + TupleExpression, + Type, + UnaryExpression, + UnaryOperation, + UnitExpression, + Variant, +}; use leo_span::sym; use std::borrow::Borrow; @@ -513,7 +540,7 @@ impl<'a> CodeGenerator<'a> { } else { // Lookup in symbol table to determine if its an async function. if let Some(func) = self.symbol_table.lookup_fn_symbol(Location::new(input.program, function_name)) { - if func.is_async && input.program.unwrap() == self.program_id.unwrap().name.name { + if func.variant.is_async() && input.program.unwrap() == self.program_id.unwrap().name.name { format!(" async {}", self.current_function.unwrap().identifier) } else { format!(" call {}", input.function) @@ -534,8 +561,7 @@ impl<'a> CodeGenerator<'a> { let mut destinations = Vec::new(); // Create operands for the output registers. - let func = - &self.symbol_table.lookup_fn_symbol(Location::new(Some(main_program), function_name)).unwrap(); + let func = &self.symbol_table.lookup_fn_symbol(Location::new(Some(main_program), function_name)).unwrap(); match func.output_type.clone() { Type::Unit => {} // Do nothing Type::Tuple(tuple) => match tuple.length() { @@ -556,7 +582,7 @@ impl<'a> CodeGenerator<'a> { } // Add a register for async functions to represent the future created. - if func.is_async && func.variant == Variant::Standard { + if func.variant == Variant::AsyncFunction { let destination_register = format!("r{}", self.next_register); destinations.push(destination_register); self.next_register += 1; diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index 8b58ee82d7..395c8d7bfa 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -16,7 +16,7 @@ use crate::CodeGenerator; -use leo_ast::{functions, Composite, Function, Mapping, Mode, Program, ProgramScope, Type, Variant, Location}; +use leo_ast::{functions, Composite, Function, Location, Mapping, Mode, Program, ProgramScope, Type, Variant}; use indexmap::IndexMap; use itertools::Itertools; @@ -84,7 +84,7 @@ impl<'a> CodeGenerator<'a> { .functions .iter() .map(|(_, function)| { - if !(function.is_async && function.variant == Variant::Standard) { + if function.variant != Variant::AsyncFunction { // Set the `is_transition_function` flag. self.is_transition_function = matches!(function.variant, Variant::Transition); @@ -94,15 +94,15 @@ impl<'a> CodeGenerator<'a> { self.is_transition_function = false; // Attach the associated finalize to async transitions. - if function.variant == Variant::Transition && function.is_async { + if function.variant == Variant::AsyncTransition { // Set state variables. self.is_transition_function = false; self.finalize_caller = Some(function.identifier.name.clone()); // Generate code for the associated finalize function. let finalize = &self .symbol_table - .lookup_fn_symbol( - Location::new(Some(self.program_id.unwrap().name.name), + .lookup_fn_symbol(Location::new( + Some(self.program_id.unwrap().name.name), function.identifier.name, )) .unwrap() @@ -178,7 +178,7 @@ impl<'a> CodeGenerator<'a> { // Initialize the state of `self` with the appropriate values before visiting `function`. self.next_register = 0; self.variable_mapping = IndexMap::new(); - self.in_finalize = function.is_async && function.variant == Variant::Standard; + self.in_finalize = function.variant == Variant::AsyncFunction; // TODO: Figure out a better way to initialize. self.variable_mapping.insert(&sym::SelfLower, "self".to_string()); self.variable_mapping.insert(&sym::block, "block".to_string()); @@ -188,11 +188,11 @@ impl<'a> CodeGenerator<'a> { // If a function is a program function, generate an Aleo `function`, // if it is a standard function generate an Aleo `closure`, // otherwise, it is an inline function, in which case a function should not be generated. - let mut function_string = match (function.is_async, function.variant) { - (_, Variant::Transition) => format!("\nfunction {}:\n", function.identifier), - (false, Variant::Standard) => format!("\nclosure {}:\n", function.identifier), - (true, Variant::Standard) => format!("\nfinalize {}:\n", self.finalize_caller.unwrap()), - (_, Variant::Inline) => return String::from("\n"), + let mut function_string = match function.variant { + Variant::Transition | Variant::AsyncTransition => format!("\nfunction {}:\n", function.identifier), + Variant::Function => format!("\nclosure {}:\n", function.identifier), + Variant::AsyncFunction => format!("\nfinalize {}:\n", self.finalize_caller.unwrap()), + Variant::Inline => return String::from("\n"), }; // Construct and append the input declarations of the function. diff --git a/compiler/passes/src/common/symbol_table/function_symbol.rs b/compiler/passes/src/common/symbol_table/function_symbol.rs index 2b49feee76..644b590ee3 100644 --- a/compiler/passes/src/common/symbol_table/function_symbol.rs +++ b/compiler/passes/src/common/symbol_table/function_symbol.rs @@ -26,8 +26,6 @@ use crate::SymbolTable; pub struct FunctionSymbol { /// The index associated with the scope in the parent symbol table. pub(crate) id: usize, - /// Whether the function is asynchronous or not. - pub(crate) is_async: bool, /// The output type of the function. pub(crate) output_type: Type, /// Is this function a transition, inlined, or a regular function?. @@ -46,7 +44,6 @@ impl SymbolTable { pub(crate) fn new_function_symbol(id: usize, func: &Function) -> FunctionSymbol { FunctionSymbol { id, - is_async: func.is_async, output_type: func.output_type.clone(), variant: func.variant, _span: func.span, diff --git a/compiler/passes/src/common/symbol_table/mod.rs b/compiler/passes/src/common/symbol_table/mod.rs index f59fabdbbe..c936041048 100644 --- a/compiler/passes/src/common/symbol_table/mod.rs +++ b/compiler/passes/src/common/symbol_table/mod.rs @@ -247,7 +247,6 @@ mod tests { let func_loc = Location::new(Some(Symbol::intern("credits")), Symbol::intern("transfer_public")); let insert = Function { annotations: Vec::new(), - is_async: false, id: 0, output_type: Type::Address, variant: Variant::Inline, diff --git a/compiler/passes/src/dead_code_elimination/eliminate_program.rs b/compiler/passes/src/dead_code_elimination/eliminate_program.rs index 8887a49038..2a760912a5 100644 --- a/compiler/passes/src/dead_code_elimination/eliminate_program.rs +++ b/compiler/passes/src/dead_code_elimination/eliminate_program.rs @@ -29,7 +29,6 @@ impl ProgramReconstructor for DeadCodeEliminator<'_> { Function { annotations: input.annotations, - is_async: input.is_async, variant: input.variant, identifier: input.identifier, input: input.input, diff --git a/compiler/passes/src/flattening/flatten_expression.rs b/compiler/passes/src/flattening/flatten_expression.rs index d337d49999..22ec8aa891 100644 --- a/compiler/passes/src/flattening/flatten_expression.rs +++ b/compiler/passes/src/flattening/flatten_expression.rs @@ -14,9 +14,19 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{Flattener}; - -use leo_ast::{Expression, ExpressionReconstructor, Location, Node, Statement, StructExpression, StructVariableInitializer, TernaryExpression, Type}; +use crate::Flattener; + +use leo_ast::{ + Expression, + ExpressionReconstructor, + Location, + Node, + Statement, + StructExpression, + StructVariableInitializer, + TernaryExpression, + Type, +}; impl ExpressionReconstructor for Flattener<'_> { type AdditionalOutput = Vec; diff --git a/compiler/passes/src/flattening/flatten_program.rs b/compiler/passes/src/flattening/flatten_program.rs index 149fce8885..97bc356446 100644 --- a/compiler/passes/src/flattening/flatten_program.rs +++ b/compiler/passes/src/flattening/flatten_program.rs @@ -32,7 +32,6 @@ impl ProgramReconstructor for Flattener<'_> { Function { annotations: function.annotations, - is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, diff --git a/compiler/passes/src/function_inlining/inline_expression.rs b/compiler/passes/src/function_inlining/inline_expression.rs index ecdfbf1fbe..7bcd25ef23 100644 --- a/compiler/passes/src/function_inlining/inline_expression.rs +++ b/compiler/passes/src/function_inlining/inline_expression.rs @@ -53,7 +53,6 @@ impl ExpressionReconstructor for FunctionInliner<'_> { // Inline the callee function, if required, otherwise, return the call expression. match callee.variant { - Variant::Transition | Variant::Standard => (Expression::Call(input), Default::default()), Variant::Inline => { // Construct a mapping from input variables of the callee function to arguments passed to the callee. let parameter_to_argument = callee @@ -103,6 +102,7 @@ impl ExpressionReconstructor for FunctionInliner<'_> { (result, inlined_statements) } + _ => (Expression::Call(input), Default::default()), } } } diff --git a/compiler/passes/src/loop_unrolling/unroll_program.rs b/compiler/passes/src/loop_unrolling/unroll_program.rs index 7ec8609b41..b40361fbaa 100644 --- a/compiler/passes/src/loop_unrolling/unroll_program.rs +++ b/compiler/passes/src/loop_unrolling/unroll_program.rs @@ -16,7 +16,7 @@ use leo_ast::*; -use crate::{Unroller}; +use crate::Unroller; impl ProgramReconstructor for Unroller<'_> { fn reconstruct_stub(&mut self, input: Stub) -> Stub { @@ -92,7 +92,6 @@ impl ProgramReconstructor for Unroller<'_> { // Reconstruct the function block. let reconstructed_function = Function { - is_async: function.is_async, annotations: function.annotations, variant: function.variant, identifier: function.identifier, diff --git a/compiler/passes/src/static_single_assignment/rename_expression.rs b/compiler/passes/src/static_single_assignment/rename_expression.rs index aeab2773fc..e24a5eb295 100644 --- a/compiler/passes/src/static_single_assignment/rename_expression.rs +++ b/compiler/passes/src/static_single_assignment/rename_expression.rs @@ -14,9 +14,33 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{StaticSingleAssigner}; - -use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedFunction, BinaryExpression, CallExpression, CastExpression, Composite, Expression, ExpressionConsumer, Identifier, Literal, Location, LocatorExpression, MemberAccess, Statement, StructExpression, StructVariableInitializer, TernaryExpression, TupleAccess, TupleExpression, UnaryExpression, UnitExpression}; +use crate::StaticSingleAssigner; + +use leo_ast::{ + AccessExpression, + ArrayAccess, + ArrayExpression, + AssociatedFunction, + BinaryExpression, + CallExpression, + CastExpression, + Composite, + Expression, + ExpressionConsumer, + Identifier, + Literal, + Location, + LocatorExpression, + MemberAccess, + Statement, + StructExpression, + StructVariableInitializer, + TernaryExpression, + TupleAccess, + TupleExpression, + UnaryExpression, + UnitExpression, +}; use leo_span::{sym, Symbol}; use indexmap::IndexMap; diff --git a/compiler/passes/src/static_single_assignment/rename_program.rs b/compiler/passes/src/static_single_assignment/rename_program.rs index a7c49f70b5..0f09713cdc 100644 --- a/compiler/passes/src/static_single_assignment/rename_program.rs +++ b/compiler/passes/src/static_single_assignment/rename_program.rs @@ -81,7 +81,6 @@ impl FunctionConsumer for StaticSingleAssigner<'_> { Function { annotations: function.annotations, - is_async: function.is_async, variant: function.variant, identifier: function.identifier, input: function.input, diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 6baf3d7f1c..a7a36c8940 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{TypeChecker}; +use crate::TypeChecker; use leo_ast::*; use leo_errors::{emitter::Handler, TypeCheckerError}; @@ -24,10 +24,10 @@ use itertools::Itertools; use leo_ast::{ CoreFunction::FutureAwait, Type::{Future, Tuple}, - Variant::Standard, }; use snarkvm::console::network::{MainnetV0, Network}; use std::str::FromStr; +use leo_ast::Variant::{Transition, Function, AsyncFunction, AsyncTransition}; fn return_incorrect_type(t1: Option, t2: Option, expected: &Option) -> Option { match (t1, t2) { @@ -101,7 +101,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Check core struct name and function. if let Some(core_instruction) = self.get_core_function_call(&access.variant, &access.name) { // Check that operation is not restricted to finalize blocks. - if !self.scope_state.is_finalize && core_instruction.is_finalize_command() { + if self.scope_state.variant != Some(Variant::AsyncFunction) && core_instruction.is_finalize_command() { self.emit_err(TypeCheckerError::operation_must_be_in_finalize_block(input.span())); } @@ -142,7 +142,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.get_core_function_call(&Identifier::new(sym::Future, Default::default()), &call.name) { // Check that operation is not restricted to finalize blocks. - if !self.scope_state.is_finalize && core_instruction.is_finalize_command() { + if self.scope_state.variant != Some(AsyncFunction) && core_instruction.is_finalize_command() { self.emit_err(TypeCheckerError::operation_must_be_in_finalize_block(input.span())); } @@ -222,7 +222,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Expression::Identifier(identifier) if identifier.name == sym::SelfLower => match access.name.name { sym::caller => { // Check that the operation is not invoked in a `finalize` block. - if self.scope_state.is_finalize { + if self.scope_state.variant == Some(Variant::AsyncFunction) { self.handler.emit_err(TypeCheckerError::invalid_operation_inside_finalize( "self.caller", access.name.span(), @@ -232,7 +232,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } sym::signer => { // Check that operation is not invoked in a `finalize` block. - if self.scope_state.is_finalize { + if self.scope_state.variant == Some(Variant::AsyncFunction) { self.handler.emit_err(TypeCheckerError::invalid_operation_inside_finalize( "self.signer", access.name.span(), @@ -248,7 +248,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Expression::Identifier(identifier) if identifier.name == sym::block => match access.name.name { sym::height => { // Check that the operation is invoked in a `finalize` block. - if !self.scope_state.is_finalize { + if self.scope_state.variant != Some(Variant::AsyncFunction) { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "block.height", access.name.span(), @@ -636,22 +636,11 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Check that the call is valid. // Note that this unwrap is safe since we always set the variant before traversing the body of the function. match self.scope_state.variant.unwrap() { - // If the function is not a transition function, it can only call "inline" functions. - Variant::Inline | Variant::Standard => { - if !matches!(func.variant, Variant::Inline) { - self.emit_err(TypeCheckerError::can_only_call_inline_function(input.span)); - } - } - // If the function is a transition function, then check that the call is not to another local transition function. - Variant::Transition => { - if matches!(func.variant, Variant::Transition) - && input.program.unwrap() == self.scope_state.program_name.unwrap() - { - self.emit_err(TypeCheckerError::cannot_invoke_call_to_local_transition_function( - input.span, - )); - } - } + Variant::AsyncFunction | Variant::Function if !matches!(func.variant, Variant::Inline) => self.emit_err(TypeCheckerError::can_only_call_inline_function(input.span)), + Variant::Transition | Variant::AsyncTransition if matches!(func.variant, Variant::Transition) && input.program.unwrap() == self.scope_state.program_name.unwrap() => self.emit_err(TypeCheckerError::cannot_invoke_call_to_local_transition_function( + input.span, + )), + _ => {} } // Check that the call is not to an external `inline` function. @@ -661,7 +650,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::cannot_call_external_inline_function(input.span)); } // Async functions return a single future. - let mut ret = if func.is_async && func.variant == Standard { + let mut ret = if func.variant == AsyncFunction { if let Some(Type::Future(_)) = expected { Type::Future(FutureType::new(Vec::new())) } else { @@ -687,7 +676,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { func.input.iter().zip(input.arguments.iter()).for_each(|(expected, argument)| { let ty = self.visit_expression(argument, &Some(expected.type_())); // Extract information about futures that are being consumed. - if func.is_async && func.variant == Standard && matches!(expected.type_(), Type::Future(_)) { + if func.variant == AsyncFunction && matches!(expected.type_(), Type::Future(_)) { match argument { Expression::Identifier(_) | Expression::Call(_) @@ -732,20 +721,20 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } // Propagate futures from async functions and transitions. - if func.is_async { + if func.variant.is_async() { // Cannot have async calls in a conditional block. if self.scope_state.is_conditional { self.emit_err(TypeCheckerError::async_call_in_conditional(input.span)); } // Can only call async functions and external async transitions from an async transition body. - if !self.scope_state.is_async_transition { + if self.scope_state.variant != Some(AsyncTransition) { self.emit_err(TypeCheckerError::async_call_can_only_be_done_from_async_transition( input.span, )); } - if func.variant == Variant::Transition { + if func.variant.is_transition() { // Cannot call an external async transition after having called the async function. if self.scope_state.has_called_finalize { self.emit_err(TypeCheckerError::external_transition_call_must_be_before_finalize( @@ -776,7 +765,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { ret } }; - } else if func.variant == Variant::Standard { + } else if func.variant.is_function() { // Can only call an async function once in a transition function body. if self.scope_state.has_called_finalize { self.emit_err(TypeCheckerError::must_call_finalize_once(input.span)); @@ -837,8 +826,11 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } fn visit_struct_init(&mut self, input: &'a StructExpression, additional: &Self::AdditionalInput) -> Self::Output { - let struct_ = - self.symbol_table.borrow().lookup_struct(Location::new(self.scope_state.program_name, input.name.name)).cloned(); + let struct_ = self + .symbol_table + .borrow() + .lookup_struct(Location::new(self.scope_state.program_name, input.name.name)) + .cloned(); if let Some(struct_) = struct_ { // Check struct type name. let ret = self.check_expected_struct(&struct_, additional, input.name.span()); @@ -886,7 +878,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { fn visit_identifier(&mut self, input: &'a Identifier, expected: &Self::AdditionalInput) -> Self::Output { if let Some(var) = self.symbol_table.borrow().lookup_variable(Location::new(None, input.name)) { if matches!(var.type_, Type::Future(_)) && matches!(expected, Some(Type::Future(_))) { - if self.scope_state.is_async_transition && self.scope_state.is_call { + if self.scope_state.variant == Some(AsyncTransition) && self.scope_state.is_call { // Consume future. match self.scope_state.futures.remove(&input.name) { Some(future) => { diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 178e10c649..a8b955c914 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -27,6 +27,7 @@ use leo_ast::{ Type::Future, }; use std::collections::HashSet; +use leo_ast::Variant::{AsyncFunction, AsyncTransition}; // TODO: Cleanup logic for tuples. @@ -88,7 +89,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { let scope_index = self.create_child_scope(); // Create future stubs. - if input.variant == Variant::Standard && input.is_async { + if input.variant == Variant::AsyncFunction { let finalize_input_map = &mut self.finalize_input_types; let mut future_stubs = input.future_locations.clone(); let resolved_inputs: Vec = input @@ -302,7 +303,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { } // Set type checker variables for function variant details. - self.scope_state.initialize_function_state(function.variant, function.is_async); + self.scope_state.initialize_function_state(function.variant); // Lookup function metadata in the symbol table. // Note that this unwrap is safe since function metadata is stored in a prior pass. @@ -328,7 +329,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Query helper function to type check function parameters and outputs. self.check_function_signature(function); - if self.scope_state.is_finalize { + if self.scope_state.variant == Some(Variant::AsyncFunction) { // Async functions cannot have empty blocks if function.block.statements.is_empty() { self.emit_err(TypeCheckerError::finalize_block_must_not_be_empty(function.block.span)); @@ -367,12 +368,12 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { self.exit_scope(function_index); // Make sure that async transitions call finalize. - if self.scope_state.is_async_transition && !self.scope_state.has_called_finalize { + if self.scope_state.variant == Some(AsyncTransition) && !self.scope_state.has_called_finalize { self.emit_err(TypeCheckerError::async_transition_must_call_async_function(function.span)); } // Check that all futures were awaited exactly once. - if self.scope_state.is_finalize { + if self.scope_state.variant == Some(AsyncFunction) { // Throw error if not all futures awaits even appear once. if !self.await_checker.static_to_await.is_empty() { self.emit_err(TypeCheckerError::future_awaits_missing( diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index c7962badbf..9cc4f3946f 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -120,7 +120,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Create scope for checking awaits in `then` branch of conditional. let current_bst_nodes: Vec = - match self.await_checker.create_then_scope(self.scope_state.is_finalize, input.span) { + match self.await_checker.create_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), input.span) { Ok(nodes) => nodes, Err(err) => return self.emit_err(err), }; @@ -132,7 +132,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { then_block_has_return = self.scope_state.has_return; // Exit scope for checking awaits in `then` branch of conditional. - let saved_paths = self.await_checker.exit_then_scope(self.scope_state.is_finalize, current_bst_nodes); + let saved_paths = self.await_checker.exit_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), current_bst_nodes); if let Some(otherwise) = &input.otherwise { // Set the `has_return` flag for the otherwise-block. @@ -152,7 +152,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } // Update the set of all possible BST paths. - self.await_checker.exit_statement_scope(self.scope_state.is_finalize, saved_paths); + self.await_checker.exit_statement_scope(self.scope_state.variant == Some(Variant::AsyncFunction), saved_paths); // Restore the previous `has_return` flag. self.scope_state.has_return = previous_has_return || (then_block_has_return && otherwise_block_has_return); @@ -385,17 +385,18 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { fn visit_return(&mut self, input: &'a ReturnStatement) { // Cannot return anything from finalize. - if self.scope_state.is_finalize { + if self.scope_state.variant == Some(Variant::AsyncFunction) { self.emit_err(TypeCheckerError::return_in_finalize(input.span())); } // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); - let func = self.symbol_table.borrow().lookup_fn_symbol(Location::new(self.scope_state.program_name, parent)).cloned(); + let func = + self.symbol_table.borrow().lookup_fn_symbol(Location::new(self.scope_state.program_name, parent)).cloned(); let mut return_type = func.clone().map(|f| f.output_type.clone()); // Fully type the expected return value. - if self.scope_state.is_async_transition && self.scope_state.has_called_finalize { + if self.scope_state.variant == Some(Variant::AsyncTransition) && self.scope_state.has_called_finalize { let inferred_future_type = match self.finalize_input_types.get(&func.unwrap().finalize.clone().unwrap()) { Some(types) => Future(FutureType::new(types.clone())), None => { diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 5fda2f14a0..6332a35645 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -47,6 +47,7 @@ use leo_ast::{ Type::{Future, Tuple}, }; use std::cell::RefCell; +use leo_ast::Variant::AsyncTransition; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -975,7 +976,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingGet => { // Check that the operation is invoked in a `finalize` block. - if !self.scope_state.is_finalize { + if self.scope_state.variant != Some(Variant::AsyncFunction) { self.handler .emit_err(TypeCheckerError::invalid_operation_outside_finalize("Mapping::get", function_span)) } @@ -991,7 +992,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingGetOrUse => { // Check that the operation is invoked in a `finalize` block. - if !self.scope_state.is_finalize { + if self.scope_state.variant != Some(Variant::AsyncFunction) { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "Mapping::get_or", function_span, @@ -1011,7 +1012,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingSet => { // Check that the operation is invoked in a `finalize` block. - if !self.scope_state.is_finalize { + if self.scope_state.variant != Some(Variant::AsyncFunction) { self.handler .emit_err(TypeCheckerError::invalid_operation_outside_finalize("Mapping::set", function_span)) } @@ -1033,7 +1034,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingRemove => { // Check that the operation is invoked in a `finalize` block. - if !self.scope_state.is_finalize { + if self.scope_state.variant != Some(Variant::AsyncFunction) { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "Mapping::remove", function_span, @@ -1056,7 +1057,7 @@ impl<'a> TypeChecker<'a> { } CoreFunction::MappingContains => { // Check that the operation is invoked in a `finalize` block. - if !self.scope_state.is_finalize { + if self.scope_state.variant != Some(Variant::AsyncFunction) { self.handler.emit_err(TypeCheckerError::invalid_operation_outside_finalize( "Mapping::contains", function_span, @@ -1266,7 +1267,7 @@ impl<'a> TypeChecker<'a> { self.scope_state.variant = Some(function.variant); // Special type checking for finalize blocks. Can skip for stubs. - if self.scope_state.is_finalize & !self.scope_state.is_stub { + if self.scope_state.variant == Some(Variant::AsyncFunction) && !self.scope_state.is_stub { // Finalize functions are not allowed to return values. if !function.output.is_empty() { self.emit_err(TypeCheckerError::finalize_function_cannot_return_value(function.span())); @@ -1335,7 +1336,7 @@ impl<'a> TypeChecker<'a> { } // Check that the finalize input parameter is not constant or private. - if self.scope_state.is_finalize + if self.scope_state.variant == Some(Variant::AsyncFunction) && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) && (input_var.mode() == Mode::Constant || input_var.mode() == Mode::Private) { @@ -1345,11 +1346,11 @@ impl<'a> TypeChecker<'a> { // Note that this unwrap is safe since we assign to `self.variant` above. match self.scope_state.variant.unwrap() { // If the function is a transition function, then check that the parameter mode is not a constant. - Variant::Transition if input_var.mode() == Mode::Constant => { + Variant::Transition | Variant::AsyncTransition if input_var.mode() == Mode::Constant => { self.emit_err(TypeCheckerError::transition_function_inputs_cannot_be_const(input_var.span())) } // If the function is not a transition function, then check that the parameters do not have an associated mode. - Variant::Standard | Variant::Inline if input_var.mode() != Mode::None => { + Variant::Function | Variant::AsyncFunction | Variant::Inline if input_var.mode() != Mode::None => { self.emit_err(TypeCheckerError::regular_function_inputs_cannot_have_modes(input_var.span())) } _ => {} // Do nothing. @@ -1357,8 +1358,9 @@ impl<'a> TypeChecker<'a> { // Add function inputs to the symbol table. Futures have already been added. if !matches!(&input_var.type_(), &Type::Future(_)) { - if let Err(err) = - self.symbol_table.borrow_mut().insert_variable(Location::new(None, input_var.identifier().name), VariableSymbol { + if let Err(err) = self.symbol_table.borrow_mut().insert_variable( + Location::new(None, input_var.identifier().name), + VariableSymbol { type_: input_var.type_(), span: input_var.identifier().span(), declaration: VariableType::Input(input_var.mode()), @@ -1409,7 +1411,7 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::cannot_have_constant_output_mode(function_output.span)); } // Async transitions must return exactly one future, and it must be in the last position. - if self.scope_state.is_async_transition + if self.scope_state.variant == Some(AsyncTransition) && ((index < function.output.len() - 1 && matches!(function_output.type_, Type::Future(_))) || (index == function.output.len() - 1 && !matches!(function_output.type_, Type::Future(_)))) @@ -1488,11 +1490,13 @@ impl<'a> TypeChecker<'a> { type_ }; // Insert the variable into the symbol table. - if let Err(err) = self.symbol_table.borrow_mut().insert_variable(Location::new(None, name.name), VariableSymbol { - type_: ty, - span, - declaration: VariableType::Mut, - }) { + if let Err(err) = + self.symbol_table.borrow_mut().insert_variable(Location::new(None, name.name), VariableSymbol { + type_: ty, + span, + declaration: VariableType::Mut, + }) + { self.handler.emit_err(err); } } diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index 885c525903..965b981536 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -62,10 +62,8 @@ impl ScopeState { } /// Initialize state variables for new function. - pub fn initialize_function_state(&mut self, variant: Variant, is_async: bool) { + pub fn initialize_function_state(&mut self, variant: Variant) { self.variant = Some(variant); - self.is_finalize = variant == Variant::Standard && is_async; - self.is_async_transition = variant == Variant::Transition && is_async; self.has_called_finalize = false; self.futures = IndexMap::new(); } From e99d7df699033c8361f3f1cd8beed9ac32cfb8e4 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:09:57 -0700 Subject: [PATCH 49/80] Refactor `FutureType` to introduce location field to store which program/function the future comes from --- compiler/ast/src/types/future.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 9171fef8e4..0ce2bda05b 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::Type; +use crate::{Location, Type}; use serde::{Deserialize, Serialize}; use std::fmt; @@ -24,18 +24,25 @@ use std::fmt; pub struct FutureType { // Optional type specification of inputs. pub inputs: Vec, + // The location of the function that produced the future. + pub location: Option } impl FutureType { /// Initialize a new future type. - pub fn new(inputs: Vec) -> Self { - Self { inputs } + pub fn new(inputs: Vec, location: Option) -> Self { + Self { inputs, location } } /// Returns the inputs of the future type. pub fn inputs(&self) -> &[Type] { &self.inputs } + + /// Returns the location of the future type. + pub fn location(&self) -> &Option { + &self.location + } } impl fmt::Display for crate::FutureType { From 0ed5cd6924b7ec473d24586495ed5b52e83a2b81 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:15:48 -0700 Subject: [PATCH 50/80] Retrieve external future locations during disassembling instead of in TYC --- compiler/ast/src/stub/function_stub.rs | 42 +++++-------------- .../src/code_generation/visit_program.rs | 2 +- .../rename_expression.rs | 26 +----------- .../src/type_checking/check_expressions.rs | 3 +- .../passes/src/type_checking/check_program.rs | 9 ++-- .../src/type_checking/check_statements.rs | 2 +- compiler/passes/src/type_checking/checker.rs | 6 +-- .../passes/src/type_checking/scope_state.rs | 2 +- utils/disassembler/src/lib.rs | 4 +- 9 files changed, 25 insertions(+), 71 deletions(-) diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index c65c90d463..eda9ddfcdf 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -58,8 +58,6 @@ pub struct FunctionStub { pub variant: Variant, /// The function identifier, e.g., `foo` in `function foo(...) { ... }`. pub identifier: Identifier, - /// Ordered list of futures inputted to finalize. - pub future_locations: Vec, /// The function's input parameters. pub input: Vec, /// The function's output declarations. @@ -109,7 +107,6 @@ impl FunctionStub { annotations, variant, identifier, - future_locations: Vec::new(), input, output, output_type, @@ -192,7 +189,7 @@ impl FunctionStub { }), ValueType::Future(_) => Output::Internal(FunctionOutput { mode: Mode::Public, - type_: Type::Future(FutureType::new(Vec::new())), + type_: Type::Future(FutureType::new(Vec::new(), Some(Location::new(Some(program), Identifier::from(function.name()).name)))), span: Default::default(), id: Default::default(), }), @@ -220,7 +217,6 @@ impl FunctionStub { false => Variant::Transition, }, identifier: Identifier::from(function.name()), - future_locations: Vec::new(), input: function .inputs() .iter() @@ -276,25 +272,13 @@ impl FunctionStub { pub fn from_finalize, Command: CommandTrait>( function: &FunctionCore, - name: Symbol, + key_name: Symbol, + program: Symbol, ) -> Self { Self { annotations: Vec::new(), variant: Variant::AsyncFunction, - identifier: Identifier::new(name, Default::default()), - future_locations: function - .finalize_logic() - .unwrap() - .inputs() - .iter() - .filter_map(|input| match input.finalize_type() { - FinalizeType::Future(val) => Some(Location::new( - Some(Identifier::from(val.program_id().name()).name), - Symbol::intern(&format!("finalize/{}", val.resource())), - )), - _ => None, - }) - .collect(), + identifier: Identifier::new(key_name, Default::default()), input: function .finalize_logic() .unwrap() @@ -306,21 +290,19 @@ impl FunctionStub { identifier: Identifier::new(Symbol::intern(&format!("arg{}", index + 1)), Default::default()), mode: Mode::None, type_: match input.finalize_type() { - PlaintextFinalizeType(val) => Type::from_snarkvm(val, name), - FutureFinalizeType(_) => Type::Future(Default::default()), + PlaintextFinalizeType(val) => Type::from_snarkvm(val, key_name), + FutureFinalizeType(val) => Type::Future(FutureType::new(Vec::new(), Some(Location::new( + Some(Identifier::from(val.program_id().name()).name), + Symbol::intern(&format!("finalize/{}", val.resource()))), + ))), }, span: Default::default(), id: Default::default(), }) }) .collect_vec(), - output: vec![Output::Internal(FunctionOutput { - mode: Mode::None, - type_: Type::Future(FutureType { inputs: Vec::new() }), - span: Default::default(), - id: 0, - })], - output_type: Type::Future(FutureType { inputs: Vec::new() }), + output: Vec::new(), + output_type: Type::Unit, span: Default::default(), id: 0, } @@ -361,7 +343,6 @@ impl FunctionStub { annotations: Vec::new(), variant: Variant::Function, identifier: Identifier::from(closure.name()), - future_locations: Vec::new(), input: closure .inputs() .iter() @@ -396,7 +377,6 @@ impl From for FunctionStub { annotations: function.annotations, variant: function.variant, identifier: function.identifier, - future_locations: Vec::new(), input: function.input, output: function.output, output_type: function.output_type, diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index 395c8d7bfa..c99ec529fb 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -86,7 +86,7 @@ impl<'a> CodeGenerator<'a> { .map(|(_, function)| { if function.variant != Variant::AsyncFunction { // Set the `is_transition_function` flag. - self.is_transition_function = matches!(function.variant, Variant::Transition); + self.is_transition_function = function.variant.is_transition(); let mut function_string = self.visit_function(function); diff --git a/compiler/passes/src/static_single_assignment/rename_expression.rs b/compiler/passes/src/static_single_assignment/rename_expression.rs index e24a5eb295..32d0c2e971 100644 --- a/compiler/passes/src/static_single_assignment/rename_expression.rs +++ b/compiler/passes/src/static_single_assignment/rename_expression.rs @@ -16,31 +16,7 @@ use crate::StaticSingleAssigner; -use leo_ast::{ - AccessExpression, - ArrayAccess, - ArrayExpression, - AssociatedFunction, - BinaryExpression, - CallExpression, - CastExpression, - Composite, - Expression, - ExpressionConsumer, - Identifier, - Literal, - Location, - LocatorExpression, - MemberAccess, - Statement, - StructExpression, - StructVariableInitializer, - TernaryExpression, - TupleAccess, - TupleExpression, - UnaryExpression, - UnitExpression, -}; +use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedFunction, BinaryExpression, CallExpression, CastExpression, Composite, Expression, ExpressionConsumer, Identifier, Literal, Location, LocatorExpression, MemberAccess, MethodCall, Statement, StructExpression, StructVariableInitializer, TernaryExpression, TupleAccess, TupleExpression, UnaryExpression, UnitExpression}; use leo_span::{sym, Symbol}; use indexmap::IndexMap; diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index a7a36c8940..95e297669c 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -751,6 +751,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { )) .unwrap() .clone(), + Some(Location::new(input.program, ident.name)) )); ret = match ret.clone() { Tuple(tup) => Tuple(TupleType::new( @@ -797,7 +798,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.scope_state.has_called_finalize = true; // Update ret to reflect fully inferred future type. - ret = Type::Future(FutureType::new(inferred_finalize_inputs)); + ret = Type::Future(FutureType::new(inferred_finalize_inputs, Some(Location::new(input.program, ident.name)))); } // Set call location so that definition statement knows where future comes from. self.scope_state.call_location = Some(Location::new(input.program, ident.name)); diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index a8b955c914..8f2a750818 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -91,18 +91,16 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { // Create future stubs. if input.variant == Variant::AsyncFunction { let finalize_input_map = &mut self.finalize_input_types; - let mut future_stubs = input.future_locations.clone(); let resolved_inputs: Vec = input .input .iter() .map(|input_mode| { match input_mode { Internal(function_input) => match &function_input.type_ { - Future(_) => { + Future(f) => { // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. Future(FutureType::new( - finalize_input_map.get(&future_stubs.remove(0)).unwrap().clone(), - )) + finalize_input_map.get(&f.location.clone().unwrap()).unwrap().clone(), f.location.clone())) } _ => function_input.clone().type_, }, @@ -110,7 +108,6 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { } }) .collect(); - assert!(future_stubs.is_empty(), "Disassembler produced malformed stub."); finalize_input_map .insert(Location::new(self.scope_state.program_name, input.identifier.name), resolved_inputs); @@ -164,7 +161,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { let mut transition_count = 0; for (_, function) in input.functions.iter() { self.visit_function(function); - if matches!(function.variant, Variant::Transition) { + if function.variant.is_transition() { transition_count += 1; } } diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 9cc4f3946f..72f10af619 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -398,7 +398,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Fully type the expected return value. if self.scope_state.variant == Some(Variant::AsyncTransition) && self.scope_state.has_called_finalize { let inferred_future_type = match self.finalize_input_types.get(&func.unwrap().finalize.clone().unwrap()) { - Some(types) => Future(FutureType::new(types.clone())), + Some(types) => Future(FutureType::new(types.clone(), Some(Location::new(self.scope_state.program_name, parent)))), None => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 6332a35645..15c18a846a 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -1323,7 +1323,7 @@ impl<'a> TypeChecker<'a> { // Check that the input parameter is not a record. else if let Type::Composite(struct_) = input_var.type_() { // Note that this unwrap is safe, as the type is defined. - if !matches!(function.variant, Variant::Transition) + if !function.variant.is_transition() && self .symbol_table .borrow() @@ -1378,7 +1378,7 @@ impl<'a> TypeChecker<'a> { Output::External(external) => { // If the function is not a transition function, then it cannot output a record. // Note that an external output must always be a record. - if !matches!(function.variant, Variant::Transition) { + if !function.variant.is_transition() { self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(external.span())); } } @@ -1387,7 +1387,7 @@ impl<'a> TypeChecker<'a> { if self.assert_type_is_valid(&function_output.type_, function_output.span) { // If the function is not a transition function, then it cannot output a record. if let Type::Composite(struct_) = function_output.type_.clone() { - if !matches!(function.variant, Variant::Transition) + if !function.variant.is_transition() && self .symbol_table .borrow() diff --git a/compiler/passes/src/type_checking/scope_state.rs b/compiler/passes/src/type_checking/scope_state.rs index 965b981536..32d0a640ef 100644 --- a/compiler/passes/src/type_checking/scope_state.rs +++ b/compiler/passes/src/type_checking/scope_state.rs @@ -52,7 +52,7 @@ impl ScopeState { has_return: false, is_return: false, program_name: None, - is_stub: false, + is_stub: true, futures: IndexMap::new(), has_called_finalize: false, is_conditional: false, diff --git a/utils/disassembler/src/lib.rs b/utils/disassembler/src/lib.rs index d7486cd525..73023933cd 100644 --- a/utils/disassembler/src/lib.rs +++ b/utils/disassembler/src/lib.rs @@ -71,11 +71,11 @@ pub fn disassemble, Command: Comman .iter() .filter_map(|(id, function)| match function.finalize_logic() { Some(_f) => { - let name = Symbol::intern(&format!( + let key_name = Symbol::intern(&format!( "finalize/{}", Symbol::intern(&Identifier::from(id).name.to_string()) )); - Some((name, FunctionStub::from_finalize(function, name))) + Some((key_name, FunctionStub::from_finalize(function, key_name, program_id.name.name))) } None => None, }) From 228a0ae9b7e22832995673eb5f3198e4155070b6 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:17:11 -0700 Subject: [PATCH 51/80] Transform method calls into associated functions --- compiler/parser/src/parser/expression.rs | 8 +++--- .../src/code_generation/visit_expressions.rs | 8 +----- .../src/type_checking/check_expressions.rs | 25 +------------------ 3 files changed, 6 insertions(+), 35 deletions(-) diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 5f6cbbef42..3bdba90838 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -357,11 +357,11 @@ impl ParserContext<'_> { span, id: self.node_builder.next_id(), }))) - } else if let (0, sym::Await) = (args.len(), method.name) { - Ok(Expression::Access(AccessExpression::MethodCall(MethodCall { - receiver: Box::new(receiver), + } else if let (0, Some(CoreFunction::FutureAwait)) = (args.len(), CoreFunction::from_symbols(sym::Future, method.name)) { + Ok(Expression::Access(AccessExpression::AssociatedFunction(AssociatedFunction { + variant: Identifier::new(sym::Future, self.node_builder.next_id()), name: method, - arguments: args, + arguments: vec![receiver], span, id: self.node_builder.next_id(), }))) diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 4acadab384..3c6e91ed92 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -317,13 +317,7 @@ impl<'a> CodeGenerator<'a> { // f.await() -> await r3; fn visit_method_call(&mut self, input: &'a MethodCall) -> (String, String) { - if input.name.name == sym::Await { - let (expr_string, mut expr_instructions) = self.visit_expression(&input.receiver); - expr_instructions.push_str(format!(" {} {};\n", sym::Await, expr_string).as_str()); - (expr_string, expr_instructions) - } else { - (String::new(), String::new()) - } + panic!("Method calls should not appear at this phase of compilation."); } // group::GEN -> group::GEN diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 95e297669c..eb92559953 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -135,30 +135,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::invalid_core_function_call(access, access.span())); } } - AccessExpression::MethodCall(call) => { - if call.name.name == sym::Await { - // Check core struct name and function. - if let Some(core_instruction) = - self.get_core_function_call(&Identifier::new(sym::Future, Default::default()), &call.name) - { - // Check that operation is not restricted to finalize blocks. - if self.scope_state.variant != Some(AsyncFunction) && core_instruction.is_finalize_command() { - self.emit_err(TypeCheckerError::operation_must_be_in_finalize_block(input.span())); - } - - // Await futures here so that can use the argument variable names to lookup. - if core_instruction == FutureAwait { - self.assert_future_await(&Some(&call.receiver), input.span()); - } else { - self.emit_err(TypeCheckerError::invalid_method_call(call.span())); - } - - return Some(Type::Unit); - } else { - self.emit_err(TypeCheckerError::invalid_method_call(call.span())); - } - } - } + AccessExpression::MethodCall(_) => panic!("Method calls should not appear in this area of the code."), AccessExpression::Tuple(access) => { if let Some(type_) = self.visit_expression(&access.tuple, &None) { match type_ { From 14f08b49179baba104f9e0b3ea2a72af176b3674 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:17:33 -0700 Subject: [PATCH 52/80] Fixed DCE bug --- .../passes/src/dead_code_elimination/eliminate_expression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/passes/src/dead_code_elimination/eliminate_expression.rs b/compiler/passes/src/dead_code_elimination/eliminate_expression.rs index 64d629b526..6d03797c24 100644 --- a/compiler/passes/src/dead_code_elimination/eliminate_expression.rs +++ b/compiler/passes/src/dead_code_elimination/eliminate_expression.rs @@ -34,7 +34,7 @@ impl ExpressionReconstructor for DeadCodeEliminator<'_> { fn reconstruct_associated_function(&mut self, input: AssociatedFunction) -> (Expression, Self::AdditionalOutput) { // If the associated function manipulates a mapping, mark the statement as necessary. match (&input.variant.name, input.name.name) { - (&sym::Mapping, sym::remove) | (&sym::Mapping, sym::set) => { + (&sym::Mapping, sym::remove) | (&sym::Mapping, sym::set) | (&sym::Future, sym::Await) => { self.is_necessary = true; } _ => {} From 5790124de4e8f032d56c929e7c0de1cb0b1fd95c Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:18:45 -0700 Subject: [PATCH 53/80] test parity with snarkVM --- .../futures/future_not_all_awaited_fail.out | 5 + ...ture_not_all_passed_to_async_call_fail.out | 5 + .../expectations/compiler/futures/nested.out | 57 ++++++++++++ .../expectations/compiler/futures/simple.out | 31 +++++++ .../futures/future_not_all_awaited_fail.leo | 46 +++++++++ ...ture_not_all_passed_to_async_call_fail.leo | 53 +++++++++++ tests/tests/compiler/futures/nested.leo | 93 +++++++++++++++++++ tests/tests/compiler/futures/simple.leo | 33 +++++++ 8 files changed, 323 insertions(+) create mode 100644 tests/expectations/compiler/futures/future_not_all_awaited_fail.out create mode 100644 tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out create mode 100644 tests/expectations/compiler/futures/nested.out create mode 100644 tests/expectations/compiler/futures/simple.out create mode 100644 tests/tests/compiler/futures/future_not_all_awaited_fail.leo create mode 100644 tests/tests/compiler/futures/future_not_all_passed_to_async_call_fail.leo create mode 100644 tests/tests/compiler/futures/nested.leo create mode 100644 tests/tests/compiler/futures/simple.leo diff --git a/tests/expectations/compiler/futures/future_not_all_awaited_fail.out b/tests/expectations/compiler/futures/future_not_all_awaited_fail.out new file mode 100644 index 0000000000..2b466ac26d --- /dev/null +++ b/tests/expectations/compiler/futures/future_not_all_awaited_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372104]: The following futures were never awaited: f4\n --> compiler-test:12:5\n |\n 12 | async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future, f5: Future) {\n 13 | f1.await();\n 14 | f2.await();\n 15 | f3.await();\n 16 | f0.await();\n 17 | f5.await();\n 18 | }\n | ^\n |\n = Ex: for `f: Future` call `f.await()` to await a future.\n" diff --git a/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out b/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out new file mode 100644 index 0000000000..8b81384e7d --- /dev/null +++ b/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372115]: Not all futures were consumed: f1\n --> compiler-test:16:16\n |\n 16 | return finalize_foo(f0, f3, f2, f5, f4);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Make sure all futures are consumed exactly once. Consume by passing to an async function call.\n" diff --git a/tests/expectations/compiler/futures/nested.out b/tests/expectations/compiler/futures/nested.out new file mode 100644 index 0000000000..d819aa6031 --- /dev/null +++ b/tests/expectations/compiler/futures/nested.out @@ -0,0 +1,57 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - compile: + - initial_symbol_table: dae357041d36da1120cf105172587da66def60fa8b3e628ed5fff17b982a659c + type_checked_symbol_table: f3b647588241ff6b01e59cf177b86171f7f2a592dcf72e52a72896296c697300 + unrolled_symbol_table: f3b647588241ff6b01e59cf177b86171f7f2a592dcf72e52a72896296c697300 + initial_ast: 39133a103f2f3b642b71ab3d3cff63208dbdf4046d9e11f24ef2db36643ea6ad + unrolled_ast: 39133a103f2f3b642b71ab3d3cff63208dbdf4046d9e11f24ef2db36643ea6ad + ssa_ast: 7bb68239eae8b54a9d05ccda3d2d233d2bbd64ea3279dc17d88c385cc03f53f7 + flattened_ast: 56743a5fdf067555159476aaa7ec14e3d4d1a411d87a9e8cdc63412e9e5458a6 + destructured_ast: ef747062ccb6ce25f3c12c454f2962a452edadce34f39fa658e022ee22d84806 + inlined_ast: b0d5479dfb26351bcbfec2a0efca41bc8bbb9420723d1e6c91ee769a48a6b619 + dce_ast: 2fdb23928efb46e9f91af70dbc9c7f6082c1998778c8b3b412ef06d9cf96eec0 + bytecode: 833525edcc02927d3c52ea36f01ee8b6100738cb8d8c2d26fedec7365c622169 + errors: "" + warnings: "" + - initial_symbol_table: ed7c9d3e814ddcc7686a6585e0e823cfd8400eba7458ed011db1b1abde398fdc + type_checked_symbol_table: 7832db804a9257b494d0e6222c4ed676b4e59b919f218050c69c8bb792f84366 + unrolled_symbol_table: 7832db804a9257b494d0e6222c4ed676b4e59b919f218050c69c8bb792f84366 + initial_ast: dcefb152cf26b6ebbcc97687efe1c5a3c0dbba0b8ed613d03dd700e3f85df9d4 + unrolled_ast: 2d0c1760e413a88abd05d24bb350b44f51ab26815dde02ee00fcf228d45f3326 + ssa_ast: 8467d96a1185b59e3c11dc8a9ee309b6c3b93e02f2891e7faf675a45c71b4078 + flattened_ast: ede5cc1d50b2fbc89cf2aed9cb4e48ab65401210ba97e498bd317f08f38492b8 + destructured_ast: e53fb17e29e433005d0c89178e442be9869dd653f33253648ac1cb44313767a9 + inlined_ast: 67902a89b1770e7b732851086c0922e0af1fde9794d081875e301fee6c10354b + dce_ast: 50604dc814424d9fd0fc2f70923b56a44a626297befc47561c5a41af21c40e5f + bytecode: 54b6bc6aa92b27fa7a8266c76f58173d50890d94cc46e3c9edc023e22d48c4c8 + errors: "" + warnings: "Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 paths contain at least one future that is never awaited.\n --> compiler-test:17:5\n |\n 17 | async function finalize_main(f: Future, f2: Future, a: u32) {\n 18 | // f.await();\n 19 | if a == 1u32 {\n 20 | Future::await(f);\n 21 | f2.await();\n 22 | }\n 23 | \n 24 | if a == 2u32 {\n 25 | //f2.await();\n 26 | Mapping::set(ayo, 1u32, 1u32);\n 27 | }\n 28 | \n 29 | let total: u32 = f.0 + f2.0;\n 30 | Mapping::set(ayo, 1u32, total);\n 31 | }\n | ^\n |\n = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag." + - initial_symbol_table: 2e1f799adc7efd3ce3222975fe05ce5622a9c0945dbca930c38160d9ffc31725 + type_checked_symbol_table: a0bfeeb827a70464a88e80174ffdc64e3194b46bff56acf8b8cbc34cc56867d0 + unrolled_symbol_table: a0bfeeb827a70464a88e80174ffdc64e3194b46bff56acf8b8cbc34cc56867d0 + initial_ast: a308ff9a4303940219e622a8b569f15fca293a71e350fec3576662ea8934c611 + unrolled_ast: a992e9c9dc248e6408023ccc4a9379b2d4c7b65f7fab77d9c771bd2b6c866a75 + ssa_ast: 250e34750c759e2b403e2e82789dacab853b93fc2f4470f3ff3f3b1fb389e1a4 + flattened_ast: e0c564a41adae220a2f5ce02494608a8bba441489da1916a315f3d22b4002db1 + destructured_ast: c01f8593421d8017a233fb035800f08548c28ccf36f90c9b7b544d0404d6b442 + inlined_ast: 500774c030257c087cdf0a73757e87e738cb62623a7147d9b9449c8f742c36b7 + dce_ast: 2dc009cf8733679b787f89a794520ac4ebae5f27c7833103e0f9c536c05ef34e + bytecode: 7a2fd5581e13d3b66f1fad269ba868cf6d272929b84cea2dc1cb6a0af22867c2 + errors: "" + warnings: "" + - initial_symbol_table: 8ad69be0fd89bb76b691de96b7487cf22a375c4260cc31d8a40c9f304ce86729 + type_checked_symbol_table: efe6c4280d124277c6715e6adc84ffe43ede395fb860dca38f7ed2f9cbd20c11 + unrolled_symbol_table: efe6c4280d124277c6715e6adc84ffe43ede395fb860dca38f7ed2f9cbd20c11 + initial_ast: 79784e9bead4fdd8dc8d7adebd70bc9f8801a2194ad36739873582c2a9cc196b + unrolled_ast: b907ea2c254bb2666c0477f55be028715062ca8ecca51367e4855b3c47c589fb + ssa_ast: cb480d9cb77149d16a57a355122a42fc97bf83989f0b32858ee9a5222b5ccc23 + flattened_ast: 3a17c65ffd73f4ac47247498dd39e8b578251b541436395604663d5192730741 + destructured_ast: a4db377f1867ccafda01ddfedd854a7b698c40d52f09e1299a3abe0e71437e5c + inlined_ast: ef9b47b8c55c86273360209ec9650a41426b3c9bc625e79e7f68892be58baebb + dce_ast: be196ed1333097cdfd6eacfe0f645308b28ba31c08ba730c7483318e4060a7be + bytecode: 388c60022d4ad4fac382a685cc997c84d142f4e1357eb7c00e3efb545f5f70e5 + errors: "" + warnings: "" diff --git a/tests/expectations/compiler/futures/simple.out b/tests/expectations/compiler/futures/simple.out new file mode 100644 index 0000000000..c5a74054bc --- /dev/null +++ b/tests/expectations/compiler/futures/simple.out @@ -0,0 +1,31 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - compile: + - initial_symbol_table: 47a51901c66d5f1114b2a8b9e310d9e94496bd96b6d0ace33c113dfa0ca98e74 + type_checked_symbol_table: 296592ba1e77d8b2a425173f16667acc101401c4f2d5e2bef89bb9bd1600ed79 + unrolled_symbol_table: 296592ba1e77d8b2a425173f16667acc101401c4f2d5e2bef89bb9bd1600ed79 + initial_ast: e1b2a0140500be55ae83251c9b425dd92419952de27be605b3369145ef5f74da + unrolled_ast: e1b2a0140500be55ae83251c9b425dd92419952de27be605b3369145ef5f74da + ssa_ast: 472918a255a170f0ca8fd8995f0455337e3ecc3584cb791ff1a4a90b39043a62 + flattened_ast: d878cae6b698cf3a17b3452865f7bf9b4226da1f8c576259686d6b9734bac61f + destructured_ast: 70463f7122bd326523125de9fe7080780416b2047075637825909711a18a0ca3 + inlined_ast: b51bf5dc9f96f68c665ef4312c1fe772b89cc007eb7f5394ba81ac32ed0a325b + dce_ast: b51bf5dc9f96f68c665ef4312c1fe772b89cc007eb7f5394ba81ac32ed0a325b + bytecode: 7e95d1c0ff9c0edfb2081fe98cc11fb567b41a1c5c586688a2586aed8629b3be + errors: "" + warnings: "" + - initial_symbol_table: 6d89772d0f9458fbfd1cfd35c65c8b3cc741e7daa78694c21eeb6f7e61b16d0b + type_checked_symbol_table: a8e3ac4ebf716186f9703d4602ee4cbfaec34667e0e7d63f5922778082790288 + unrolled_symbol_table: a8e3ac4ebf716186f9703d4602ee4cbfaec34667e0e7d63f5922778082790288 + initial_ast: 659a8a8861752028a0ffed9c7124583d6a9f179756502dfcdb1e79beb946b3a6 + unrolled_ast: df30b083de57cc108a6ebfbd2fc9f5a702d79630ffe85774c02b354f55fc6b59 + ssa_ast: c81f1f0d01164205cca84bab44810993dc2be7f9c60916a1f4e5f46c304a35fe + flattened_ast: 46a48c999be2a01042e2a79e24ae916ba541c4079fd5cdd01747c37764d3bdb1 + destructured_ast: 55242cf20e7ad4b04a6063c8267ee4d700551ff6a34a05f0d0494712094358db + inlined_ast: 491228a25b5c7f2d4699431ba67624d3a5c95315e1cfd59b8adf44bebdffe9b3 + dce_ast: 9a3e86584fe577c5ff45d22070067a86f10a862ce1ba3bb5c53033aaaefebba7 + bytecode: 7a91652b8a95d6a25f0ad68011d37481570f9c7b5e79d05c0ae8476c6754f7a8 + errors: "" + warnings: "" diff --git a/tests/tests/compiler/futures/future_not_all_awaited_fail.leo b/tests/tests/compiler/futures/future_not_all_awaited_fail.leo new file mode 100644 index 0000000000..4361e02e82 --- /dev/null +++ b/tests/tests/compiler/futures/future_not_all_awaited_fail.leo @@ -0,0 +1,46 @@ +/* +namespace: Compile +expectation: Fail +*/ + +program child.aleo { + mapping count: address => field; + + async transition foo() -> Future { + return finalize_foo(self.caller); + } + + async function finalize_foo(addr: address) { + let val: field = Mapping::get_or_use(count, addr, 0field); + Mapping::set(count, addr, val + 1field); + } + + async transition boo() -> Future { + return finalize_boo(self.caller); + } + + async function finalize_boo(addr: address) { + let val: field = Mapping::get_or_use(count, addr, 0field); + Mapping::set(count, addr, val + 1field); + } + } + + // --- Next Program --- // + +import child.aleo; + +program parent.aleo { + + async transition foo() -> Future { + return finalize_foo(child.aleo/foo(), child.aleo/foo(), child.aleo/foo(), child.aleo/boo(), child.aleo/boo(), child.aleo/boo()); + } + + // Doesn't await f4. + async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future, f5: Future) { + f1.await(); + f2.await(); + f3.await(); + f0.await(); + f5.await(); + } +} \ No newline at end of file diff --git a/tests/tests/compiler/futures/future_not_all_passed_to_async_call_fail.leo b/tests/tests/compiler/futures/future_not_all_passed_to_async_call_fail.leo new file mode 100644 index 0000000000..a4aefffd24 --- /dev/null +++ b/tests/tests/compiler/futures/future_not_all_passed_to_async_call_fail.leo @@ -0,0 +1,53 @@ +/* +namespace: Compile +expectation: Fail +*/ + +program child.aleo { + mapping count: address => field; + + async transition foo() -> Future { + return finalize_foo(self.caller); + } + + async function finalize_foo(addr: address) { + let val: field = Mapping::get_or_use(count, addr, 0field); + Mapping::set(count, addr, val + 1field); + } + + async transition boo() -> Future { + return finalize_boo(self.caller); + } + + async function finalize_boo(addr: address) { + let val: field = Mapping::get_or_use(count, addr, 0field); + Mapping::set(count, addr, val + 1field); + } + } + +// --- Next Program --- // + +import child.aleo; + +program parent.aleo { + + async transition foo() -> Future { + let f0: Future = child.aleo/foo(); + let f1: Future = child.aleo/foo(); + let f2: Future = child.aleo/foo(); + let f3: Future = child.aleo/boo(); + let f4: Future = child.aleo/boo(); + let f5: Future = child.aleo/boo(); + + // Doesn't pass f1. + return finalize_foo(f0, f3, f2, f5, f4); + } + + async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future) { + f1.await(); + f4.await(); + f2.await(); + f3.await(); + f0.await(); + } +} \ No newline at end of file diff --git a/tests/tests/compiler/futures/nested.leo b/tests/tests/compiler/futures/nested.leo new file mode 100644 index 0000000000..6466ef8dc9 --- /dev/null +++ b/tests/tests/compiler/futures/nested.leo @@ -0,0 +1,93 @@ +/* +namespace: Compile +expectation: Pass +*/ + +// The 'test_dep' program. +program test_dep.aleo { + mapping Yo: u32 => u32; + record yeets { + owner: address, + val: u32, + } + + async transition main_dep(a:u32) -> (yeets, Future) { + let f: Future = finalize_main_dep(a, 1u32); + let l: yeets = yeets {owner: self.caller, val: 1u32}; + return (l, f); + } + + async function finalize_main_dep(a:u32, b:u32) { + Mapping::set(Yo, a, b); + let c:u32 = a + b; + } +} + +// --- Next Program --- // + +// The 'test' program. +import test_dep.aleo; +program test.aleo { + mapping ayo: u32 => u32; + + async transition main(a:u32)-> (u32, Future) { + let (y,f): (test_dep.aleo/yeets, Future) = test_dep.aleo/main_dep(10u32); + let (y2,f2): (test_dep.aleo/yeets, Future) = test_dep.aleo/main_dep(1u32); + let val:u32 = f.0; + let f3: Future = finalize_main(f, f2, 1u32); + let total: u32 = f.0 + f2.0; + return (total + val + f.0*2u32, f3); + } + + async function finalize_main(f: Future, f2: Future, a: u32) { + // f.await(); + if a == 1u32 { + Future::await(f); + f2.await(); + } + + if a == 2u32 { + //f2.await(); + Mapping::set(ayo, 1u32, 1u32); + } + + let total: u32 = f.0 + f2.0; + Mapping::set(ayo, 1u32, total); + } +} + +// --- Next Program --- // + +// The 'wrapper' program. +import test.aleo; +program wrapper.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future){ + let (val, f): (u32, Future) = test.aleo/main(1u32); + let (val2, f2): (u32, Future) = test.aleo/main(1u32); + let (val3, f3): (u32, Future) = test.aleo/main(1u32); + let f4: Future = finalize_main(f,f2,f3); + return (val, f4); + } + + async function finalize_main(f: Future, f2: Future, f3: Future) { + f.await(); + f2.await(); + f3.await(); + } +} + +// --- Next Program --- // + +import wrapper.aleo; +import test_dep.aleo; +program big_wrapper.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future){ + let (val, f): (u32, Future) = wrapper.aleo/main(10u32, 10u32); + let f2:Future = finalize_main(f); + return (f2.0.0.0.0, f2); + } + + async function finalize_main(f: Future) { + f.await(); + } +} \ No newline at end of file diff --git a/tests/tests/compiler/futures/simple.leo b/tests/tests/compiler/futures/simple.leo new file mode 100644 index 0000000000..b6632fd927 --- /dev/null +++ b/tests/tests/compiler/futures/simple.leo @@ -0,0 +1,33 @@ +/* +namespace: Compile +expectation: Pass +*/ +program test.aleo { + mapping foo: u32 => u32; + async transition main_inner(public a: u32, b: u32) -> (u32, Future) { + let c: u32 = a + b; + let f: Future = finalize(); + return (c, f); + } + + async function finalize() { + Mapping::set(foo, 1u32, 1u32); + } +} + +// --- Next Program --- // + +import test.aleo; +program basic.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future) { + let c: u32 = a + b; + let (d, f1): (u32, Future) = test.aleo/main_inner(1u32, 1u32); + let f:Future = finalize(c, f1); + return (c,f); + } + + async function finalize(input: u32, f: Future) { + f.await(); + assert_eq(input, 1u32); + } +} \ No newline at end of file From b422657944fd41d67083b00ae36b1083f2247b17 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:27:42 -0700 Subject: [PATCH 54/80] Forbit explicit inclusion of async function return type --- .../src/type_checking/check_expressions.rs | 2 +- .../errors/type_checker/type_checker_error.rs | 2 +- .../futures/explicit_return_type_fail.out | 5 +++ .../futures/explicit_return_type_fail.leo | 33 +++++++++++++++++++ 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 tests/expectations/compiler/futures/explicit_return_type_fail.out create mode 100644 tests/tests/compiler/futures/explicit_return_type_fail.leo diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index eb92559953..37c380039a 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -629,7 +629,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Async functions return a single future. let mut ret = if func.variant == AsyncFunction { if let Some(Type::Future(_)) = expected { - Type::Future(FutureType::new(Vec::new())) + Type::Future(FutureType::new(Vec::new(), Some(Location::new(input.program, ident.name)))) } else { self.emit_err(TypeCheckerError::return_type_of_finalize_function_is_future(input.span)); Type::Unit diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index a2e282e5c0..b23c9a1b39 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -928,7 +928,7 @@ create_messages!( finalize_function_cannot_return_value { args: (), msg: "An async function is not allowed to return a value.".to_string(), - help: Some("Remove an output type in the function signature, and remove the return statement from the function.".to_string()), + help: Some("Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.".to_string()), } @formatted diff --git a/tests/expectations/compiler/futures/explicit_return_type_fail.out b/tests/expectations/compiler/futures/explicit_return_type_fail.out new file mode 100644 index 0000000000..77a6a3fdc9 --- /dev/null +++ b/tests/expectations/compiler/futures/explicit_return_type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372118]: An async function is not allowed to return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372038]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n" diff --git a/tests/tests/compiler/futures/explicit_return_type_fail.leo b/tests/tests/compiler/futures/explicit_return_type_fail.leo new file mode 100644 index 0000000000..2056a0a28c --- /dev/null +++ b/tests/tests/compiler/futures/explicit_return_type_fail.leo @@ -0,0 +1,33 @@ +/* +namespace: Compile +expectation: Fail +*/ +program test.aleo { + mapping foo: u32 => u32; + async transition main_inner(public a: u32, b: u32) -> (u32, Future) { + let c: u32 = a + b; + let f: Future = finalize(); + return (c, f); + } + + async function finalize() -> Future { + Mapping::set(foo, 1u32, 1u32); + } +} + +// --- Next Program --- // + +import test.aleo; +program basic.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future) { + let c: u32 = a + b; + let (d, f1): (u32, Future) = test.aleo/main_inner(1u32, 1u32); + let f:Future = finalize(c, f1); + return (c,f); + } + + async function finalize(input: u32, f: Future) { + f.await(); + assert_eq(input, 1u32); + } +} \ No newline at end of file From 0718d4dc3374fc560c19fca518eca1f89f40b93a Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:33:21 -0700 Subject: [PATCH 55/80] Update errors/src/errors/type_checker/type_checker_warning.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_warning.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_warning.rs b/errors/src/errors/type_checker/type_checker_warning.rs index 053b0af9c3..498ce8c5a3 100644 --- a/errors/src/errors/type_checker/type_checker_warning.rs +++ b/errors/src/errors/type_checker/type_checker_warning.rs @@ -41,7 +41,7 @@ create_messages!( @formatted async_function_is_never_called_by_transition_function { args: (name: impl Display), - msg: format!("The async function `{name}` is never called by an async transition function."), + msg: format!("The async function `{name}` is never called by an async transition."), help: None, } ); From 1c6b4403c79632725a3970752b4f243d46e2e850 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:42:55 -0700 Subject: [PATCH 56/80] Update compiler/passes/src/destructuring/destructure_statement.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- compiler/passes/src/destructuring/destructure_statement.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/passes/src/destructuring/destructure_statement.rs b/compiler/passes/src/destructuring/destructure_statement.rs index 79ae5a72b1..91fbbf12cd 100644 --- a/compiler/passes/src/destructuring/destructure_statement.rs +++ b/compiler/passes/src/destructuring/destructure_statement.rs @@ -250,7 +250,6 @@ impl StatementReconstructor for Destructurer<'_> { _ => input.expression, }; - // TODO: Do finalize args need to be destructured. (Statement::Return(ReturnStatement { expression, span: input.span, id: input.id }), Default::default()) } } From 295e304bcbfe9d5010103c2621441c71a631720c Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:43:13 -0700 Subject: [PATCH 57/80] Update compiler/passes/src/flattening/flatten_program.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- compiler/passes/src/flattening/flatten_program.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/passes/src/flattening/flatten_program.rs b/compiler/passes/src/flattening/flatten_program.rs index 97bc356446..9ce80ee32c 100644 --- a/compiler/passes/src/flattening/flatten_program.rs +++ b/compiler/passes/src/flattening/flatten_program.rs @@ -19,7 +19,7 @@ use crate::Flattener; use leo_ast::{Function, ProgramReconstructor, StatementReconstructor}; impl ProgramReconstructor for Flattener<'_> { - /// Flattens a function's body and finalize block, if it exists. + /// Flattens a function's body. fn reconstruct_function(&mut self, function: Function) -> Function { // Flatten the function body. let mut block = self.reconstruct_block(function.block).0; From 59e7c6c35c9e2cd62c73ad4d492592d930b23055 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:43:35 -0700 Subject: [PATCH 58/80] Update compiler/span/src/symbol.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- compiler/span/src/symbol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index c43593e40d..bae42e1da7 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -214,7 +214,7 @@ symbols! { i32, i64, i128, - Future: "future", + Future record, scalar, signature, From b1c56c1fa1029acd1d3e2e4d3779ab0471fe3ad6 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:43:51 -0700 Subject: [PATCH 59/80] Update errors/src/errors/type_checker/type_checker_error.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index b23c9a1b39..a966d6a93e 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -773,7 +773,7 @@ create_messages!( async_transition_invalid_output { args: (), msg: "An async transition must return a future as the final output, and in no other position return a future.".to_string(), - help: Some("Example: `async transition foo() -> (Future, u8, bool) {...}`".to_string()), + help: Some("Example: `async transition foo() -> (u8, bool, Future) {...}`".to_string()), } @formatted From 8905f73670d353103a2a69c20969c2e1df0bc23f Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:44:22 -0700 Subject: [PATCH 60/80] Update compiler/passes/src/symbol_table_creation/creator.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- compiler/passes/src/symbol_table_creation/creator.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/passes/src/symbol_table_creation/creator.rs b/compiler/passes/src/symbol_table_creation/creator.rs index 982b392cf5..96384876c0 100644 --- a/compiler/passes/src/symbol_table_creation/creator.rs +++ b/compiler/passes/src/symbol_table_creation/creator.rs @@ -16,7 +16,6 @@ use leo_ast::*; use leo_errors::emitter::Handler; - use leo_span::Symbol; use crate::{SymbolTable, VariableSymbol, VariableType}; From 6ae10e58898688eb99fc90118dc24c7db22f8030 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:45:04 -0700 Subject: [PATCH 61/80] Update errors/src/errors/type_checker/type_checker_error.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index a966d6a93e..f1b6efdcc0 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -844,7 +844,7 @@ create_messages!( invalid_await_call { args: (), msg: "Not a valid await call.".to_string(), - help: Some("Ex: for `f: Future` call `f.await()` or `Future::Await(f)` to await a future.".to_string()), + help: Some("Ex: for `f: Future` call `f.await()` or `Future::await(f)` to await a future.".to_string()), } @formatted From 62849540fe433baa1f47bd0bc600a0543aa4c9e9 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:45:34 -0700 Subject: [PATCH 62/80] Update errors/src/errors/type_checker/type_checker_error.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index f1b6efdcc0..1c1539dde5 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -865,7 +865,7 @@ create_messages!( invalid_method_call { args: (), msg: "Not a valid method call.".to_string(), - help: Some("Ex: for `f: Future` call associated method for the struct instance `f.await()`.".to_string()), + help: Some("For a `f: Future`, call the associated method `f.await()`.".to_string()), } @formatted From a09a6fae85a58e7f10b2dedc566af6d64900d84d Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:46:15 -0700 Subject: [PATCH 63/80] Update compiler/span/src/symbol.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- compiler/span/src/symbol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index bae42e1da7..b65d52cfa9 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -202,7 +202,7 @@ symbols! { to_x_coordinate, to_y_coordinate, verify, - Await: "await", + await, // types address, From 84abefe764125666d227da3334a54a429640f420 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:46:39 -0700 Subject: [PATCH 64/80] Update errors/src/errors/type_checker/type_checker_error.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 1c1539dde5..f80c488ddb 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -900,7 +900,7 @@ create_messages!( unknown_future_consumed { args: (future: impl Display), msg: format!("Unknown future consumed: `{future}`"), - help: Some("Make sure the future is defined and consumed only once.".to_string()), + help: Some("Make sure the future is defined and consumed exactly once.".to_string()), } @formatted From 01788ac332ac525df45c676f6888b786da098551 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:46:49 -0700 Subject: [PATCH 65/80] Update errors/src/errors/type_checker/type_checker_error.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index f80c488ddb..ca0891cdd9 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -851,7 +851,7 @@ create_messages!( can_only_await_one_future_at_a_time { args: (), msg: "Must await exactly one future at a time".to_string(), - help: Some("Ex: for `f: Future` call `f.await()` or `Future::Await(f)` to await a future.".to_string()), + help: Some("Ex: for `f: Future` call `f.await()` or `Future::await(f)` to await a future.".to_string()), } @formatted From bf9484c97576363611cd0d24a1e47d838cafccaa Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:47:06 -0700 Subject: [PATCH 66/80] Update errors/src/errors/type_checker/type_checker_error.rs Co-authored-by: d0cd <23022326+d0cd@users.noreply.github.com> Signed-off-by: evan-schott <53463459+evan-schott@users.noreply.github.com> --- errors/src/errors/type_checker/type_checker_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index ca0891cdd9..096fbfd20d 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -934,7 +934,7 @@ create_messages!( @formatted return_type_of_finalize_function_is_future { args: (), - msg: "The output of an async function must be assigned to a Future type..".to_string(), + msg: "The output of an async function must be assigned to a `Future` type..".to_string(), help: None, } From a2fce7a96822de936440bfd3bdc07860d6d37925 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:34:16 -0700 Subject: [PATCH 67/80] misc revisions --- compiler/ast/src/passes/reconstructor.rs | 2 +- compiler/ast/src/stub/function_stub.rs | 4 +- compiler/parser/src/tokenizer/token.rs | 3 + .../src/code_generation/visit_expressions.rs | 7 +- .../destructuring/destructure_expression.rs | 18 +-- .../passes/src/type_checking/await_checker.rs | 6 +- compiler/span/src/symbol.rs | 4 +- .../errors/type_checker/type_checker_error.rs | 114 ++---------------- .../type_checker/type_checker_warning.rs | 7 ++ 9 files changed, 36 insertions(+), 129 deletions(-) diff --git a/compiler/ast/src/passes/reconstructor.rs b/compiler/ast/src/passes/reconstructor.rs index 441c5afcbe..4d8b605c51 100644 --- a/compiler/ast/src/passes/reconstructor.rs +++ b/compiler/ast/src/passes/reconstructor.rs @@ -155,7 +155,7 @@ pub trait ExpressionReconstructor { fn reconstruct_call(&mut self, input: CallExpression) -> (Expression, Self::AdditionalOutput) { ( Expression::Call(CallExpression { - function: Box::new(self.reconstruct_expression(*input.function).0), + function: input.function, arguments: input.arguments.into_iter().map(|arg| self.reconstruct_expression(arg).0).collect(), program: input.program, span: input.span, diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index eda9ddfcdf..e6e89bd492 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -189,7 +189,7 @@ impl FunctionStub { }), ValueType::Future(_) => Output::Internal(FunctionOutput { mode: Mode::Public, - type_: Type::Future(FutureType::new(Vec::new(), Some(Location::new(Some(program), Identifier::from(function.name()).name)))), + type_: Type::Future(FutureType::new(Vec::new(), Some(Location::new(Some(program), Identifier::from(function.name()).name)), false)), span: Default::default(), id: Default::default(), }), @@ -294,7 +294,7 @@ impl FunctionStub { FutureFinalizeType(val) => Type::Future(FutureType::new(Vec::new(), Some(Location::new( Some(Identifier::from(val.program_id().name()).name), Symbol::intern(&format!("finalize/{}", val.resource()))), - ))), + ), false)), }, span: Default::default(), id: Default::default(), diff --git a/compiler/parser/src/tokenizer/token.rs b/compiler/parser/src/tokenizer/token.rs index 7bc9b13b48..627f3f8ed2 100644 --- a/compiler/parser/src/tokenizer/token.rs +++ b/compiler/parser/src/tokenizer/token.rs @@ -384,6 +384,8 @@ pub enum Delimiter { Brace, /// `[ ... ]` Bracket, + /// `< ... >` + AngleBracket, } impl Delimiter { @@ -393,6 +395,7 @@ impl Delimiter { Self::Parenthesis => (Token::LeftParen, Token::RightParen), Self::Brace => (Token::LeftCurly, Token::RightCurly), Self::Bracket => (Token::LeftSquare, Token::RightSquare), + Self::AngleBracket => (Token::Lt, Token::Gt), } } } diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 3c6e91ed92..4d85587b05 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -307,16 +307,13 @@ impl<'a> CodeGenerator<'a> { fn visit_member_access(&mut self, input: &'a MemberAccess) -> (String, String) { let (inner_expr, _) = self.visit_expression(&input.inner); - let member_access = match self.type_table.get(&input.inner.id()) { - Some(Type::Future(_)) => format!("{inner_expr}[{}u32]", input.name), - _ => format!("{}.{}", inner_expr, input.name), - }; + let member_access = format!("{}.{}", inner_expr, input.name); (member_access, String::new()) } // f.await() -> await r3; - fn visit_method_call(&mut self, input: &'a MethodCall) -> (String, String) { + fn visit_method_call(&mut self, _input: &'a MethodCall) -> (String, String) { panic!("Method calls should not appear at this phase of compilation."); } diff --git a/compiler/passes/src/destructuring/destructure_expression.rs b/compiler/passes/src/destructuring/destructure_expression.rs index e89848fab1..61d388a55c 100644 --- a/compiler/passes/src/destructuring/destructure_expression.rs +++ b/compiler/passes/src/destructuring/destructure_expression.rs @@ -16,16 +16,8 @@ use crate::Destructurer; -use leo_ast::{ - AccessExpression, - Expression, - ExpressionReconstructor, - Identifier, - MemberAccess, - Statement, - TupleAccess, - Type, -}; +use leo_ast::{AccessExpression, ArrayAccess, Expression, ExpressionReconstructor, Identifier, IntegerType, Literal, MemberAccess, Statement, TupleAccess, Type}; +use leo_ast::Expression::Identifier as IdentifierExpression; use leo_span::Symbol; impl ExpressionReconstructor for Destructurer<'_> { @@ -41,9 +33,9 @@ impl ExpressionReconstructor for Destructurer<'_> { None => { if matches!(self.type_table.get(&identifier.id), Some(Type::Future(_))) { ( - Expression::Access(AccessExpression::Member(MemberAccess { - inner: Box::new(Expression::Identifier(*identifier)), - name: Identifier::new(Symbol::intern(&input.index.to_string()), Default::default()), + Expression::Access(AccessExpression::Array(ArrayAccess { + array: Box::new(Expression::Identifier(*identifier)), + index: Box::new(Expression::Literal(Literal::Integer(IntegerType::U32, input.index.to_string(), input.span, Default::default()))), span: input.span, id: input.id, })), diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index dae5ec5e3b..082566cdd2 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -17,7 +17,7 @@ use crate::{ConditionalTreeNode, TreeNode}; use indexmap::IndexSet; use leo_ast::Identifier; -use leo_errors::TypeCheckerError; +use leo_errors::TypeCheckerWarning; use leo_span::{Span, Symbol}; // TODO: Could optimize by removing duplicate paths (if set of futures is the same). @@ -65,14 +65,14 @@ impl AwaitChecker { &mut self, is_finalize: bool, input: Span, - ) -> Result, TypeCheckerError> { + ) -> Result, TypeCheckerWarning> { if is_finalize && self.enabled { let mut current_nodes = Vec::new(); // Extend all paths by one node to represent the upcoming `then` branch. for node in self.to_await.iter() { // Error if exceed maximum depth. if node.depth > self.max_depth { - return Err(TypeCheckerError::max_conditional_block_depth_exceeded(self.max_depth, input)); + return Err(TypeCheckerWarning::max_conditional_block_depth_exceeded(self.max_depth, input)); } // Extend current path. current_nodes.push(node.clone().create_child()); diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index b65d52cfa9..aa5e2acc47 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -202,7 +202,7 @@ symbols! { to_x_coordinate, to_y_coordinate, verify, - await, + Await: "await", // types address, @@ -214,7 +214,7 @@ symbols! { i32, i64, i128, - Future + Future, record, scalar, signature, diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 096fbfd20d..fab55c7f15 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -298,53 +298,32 @@ create_messages!( help: None, } - @formatted - only_transition_functions_can_have_finalize { - args: (), - msg: format!("Only transition functions can have a `finalize` block."), - help: Some("Remove the `finalize` block or use the keyword `transition` instead of `function`.".to_string()), - } - @formatted finalize_input_mode_must_be_public { args: (), - msg: format!("An input to a finalize block must be public."), + msg: format!("An input to an async function must be public."), help: Some("Use a `public` modifier to the input variable declaration or remove the visibility modifier entirely.".to_string()), } @formatted finalize_output_mode_must_be_public { args: (), - msg: format!("An output from a finalize block must be public."), + msg: format!("An output from an async function block must be public."), help: Some("Use a `public` modifier to the output type declaration or remove the visibility modifier entirely.".to_string()), } - @formatted - finalize_in_finalize { - args: (), - msg: format!("A finalize block cannot contain a finalize statement."), - help: None, - } - @formatted invalid_operation_outside_finalize { args: (operation: impl Display), - msg: format!("`{operation}` must be inside a finalize block."), - help: None, - } - - @formatted - finalize_without_finalize_block { - args: (), - msg: format!("Cannot use a `finalize` statement without a `finalize` block."), + msg: format!("`{operation}` must be inside an async function block."), help: None, } @formatted loop_body_contains_finalize { args: (), - msg: format!("Loop body contains a finalize statement."), - help: Some("Remove the finalize statement.".to_string()), + msg: format!("Loop body contains an async function call."), + help: Some("Remove the async function call.".to_string()), } @formatted @@ -357,7 +336,7 @@ create_messages!( @formatted finalize_block_must_not_be_empty { args: (), - msg: format!("A finalize block cannot be empty."), + msg: format!("An async function call block cannot be empty."), help: None, } @@ -375,15 +354,6 @@ create_messages!( help: None, } - @formatted - incorrect_num_args_to_finalize { - args: (expected: impl Display, received: impl Display), - msg: format!( - "`finalize` expected `{expected}` args, but got `{received}`", - ), - help: None, - } - @formatted invalid_self_access { args: (), @@ -391,20 +361,6 @@ create_messages!( help: None, } - @formatted - missing_finalize { - args: (), - msg: format!("Async transitions must contain an async function call on all execution paths."), - help: None, - } - - @formatted - finalize_name_mismatch { - args: (finalize_name: impl Display, function_name: impl Display), - msg: format!("`finalize` name `{finalize_name}` does not match function name `{function_name}`"), - help: None, - } - @formatted invalid_type { args: (type_: impl Display), @@ -484,13 +440,6 @@ create_messages!( help: None, } - @formatted - finalize_cannot_take_tuple_as_input { - args: (), - msg: format!("A finalize block cannot take in a tuple as input."), - help: None, - } - @formatted nested_tuple_expression { args: (), @@ -498,13 +447,6 @@ create_messages!( help: None, } - @formatted - finalize_statement_cannot_contain_tuples { - args: (), - msg: format!("A finalize statement cannot contain tuple expressions."), - help: None, - } - @formatted expression_statement_must_be_function_call { args: (), @@ -573,27 +515,7 @@ create_messages!( msg: format!("Cannot call an external `inline` function."), help: None, } - - @formatted - finalize_cannot_take_record_as_input { - args: (), - msg: format!("A finalize block cannot take in a record as input."), - help: None, - } - - @formatted - finalize_cannot_output_record { - args: (), - msg: format!("A finalize block cannot return a record."), - help: None, - } - - @formatted - finalize_cannot_return_value { - args: (), - msg: format!("A finalize block cannot return a value."), - help: None, - } + @formatted too_many_mappings { args: (max: impl Display), @@ -632,14 +554,14 @@ create_messages!( @formatted invalid_operation_inside_finalize { args: (operation: impl Display), - msg: format!("`{operation}` is not a valid operand in a finalize context."), + msg: format!("`{operation}` is not a valid operand in an async function call context."), help: None, } @formatted operation_must_be_in_finalize_block { args: (), - msg: format!("This operation can only be used in a `finalize` block."), + msg: format!("This operation can only be used in an async function block."), help: None, } @@ -812,13 +734,6 @@ create_messages!( help: Some(" Future arguments must be addressed by their index. Ex: `f.1.3`.".to_string()), } - @formatted - max_conditional_block_depth_exceeded { - args: (max: impl Display), - msg: format!("The type checker has exceeded the max depth of nested conditional blocks: {max}."), - help: Some("Re-run with a larger maximum depth using the `--conditional_block_max_depth` build option. Ex: `leo run main --conditional_block_max_depth 25`.".to_string()), - } - @formatted no_path_awaits_all_futures_exactly_once { args: (num_total_paths: impl Display), @@ -876,7 +791,7 @@ create_messages!( } @formatted - must_call_finalize_once { + must_call_async_function_once { args: (), msg: "Must call exactly one local async function per transition function.".to_string(), help: Some("Move the async call outside of the transition block.".to_string()), @@ -892,7 +807,7 @@ create_messages!( @formatted external_transition_call_must_be_before_finalize { args: (), - msg: "Inside the body of an async transition, all external async transition calls must be made before the transition's async function call.".to_string(), + msg: "External async transition calls cannot be made after local async function call".to_string(), help: Some("Move the async call before the function call.".to_string()), } @@ -910,13 +825,6 @@ create_messages!( help: Some("Make sure all futures are consumed exactly once. Consume by passing to an async function call.".to_string()), } - @formatted - return_in_finalize { - args: (), - msg: "Cannot return a value in an async function block.".to_string(), - help: Some("Async functions execute on-chain. Since async transitions call async functions, and async transitions execute offline, it would be impossible for the async function to be able to return on-chain state to the transition function.".to_string()), - } - @formatted async_transition_missing_future_to_return { args: (), diff --git a/errors/src/errors/type_checker/type_checker_warning.rs b/errors/src/errors/type_checker/type_checker_warning.rs index 498ce8c5a3..e5c9f71d50 100644 --- a/errors/src/errors/type_checker/type_checker_warning.rs +++ b/errors/src/errors/type_checker/type_checker_warning.rs @@ -44,4 +44,11 @@ create_messages!( msg: format!("The async function `{name}` is never called by an async transition."), help: None, } + + @formatted + max_conditional_block_depth_exceeded { + args: (max: impl Display), + msg: format!("The type checker has exceeded the max depth of nested conditional blocks: {max}."), + help: Some("Re-run with a larger maximum depth using the `--conditional_block_max_depth` build option. Ex: `leo run main --conditional_block_max_depth 25`.".to_string()), + } ); From 5903635fa3f570045b2fae4d66774a0b770ba945 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:36:55 -0700 Subject: [PATCH 68/80] enable explicit typing for futures --- compiler/ast/src/types/future.rs | 17 +++-- compiler/ast/src/types/type_.rs | 12 ++-- .../src/type_checking/check_expressions.rs | 66 ++++++++++--------- .../passes/src/type_checking/check_program.rs | 12 ++-- .../src/type_checking/check_statements.rs | 13 ++-- compiler/passes/src/type_checking/checker.rs | 33 +++------- 6 files changed, 79 insertions(+), 74 deletions(-) diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 0ce2bda05b..9f5bae7be9 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -18,20 +18,23 @@ use crate::{Location, Type}; use serde::{Deserialize, Serialize}; use std::fmt; +use std::fmt::Display; /// A future type consisting of the type of the inputs. -#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize, Default)] +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct FutureType { // Optional type specification of inputs. pub inputs: Vec, // The location of the function that produced the future. - pub location: Option + pub location: Option, + // Whether or not the type has been explicitly specified. + pub is_explicit: bool, } impl FutureType { /// Initialize a new future type. - pub fn new(inputs: Vec, location: Option) -> Self { - Self { inputs, location } + pub fn new(inputs: Vec, location: Option, is_explicit: bool) -> Self { + Self { inputs, location, is_explicit } } /// Returns the inputs of the future type. @@ -45,6 +48,12 @@ impl FutureType { } } +impl Default for crate::FutureType { + fn default() -> Self { + Self::new(vec![], None, false) + } +} + impl fmt::Display for crate::FutureType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Future<{}>", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) diff --git a/compiler/ast/src/types/type_.rs b/compiler/ast/src/types/type_.rs index b83c1563b2..cfe25db33c 100644 --- a/compiler/ast/src/types/type_.rs +++ b/compiler/ast/src/types/type_.rs @@ -96,11 +96,13 @@ impl Type { (Type::Composite(left), Type::Composite(right)) => { left.id.name == right.id.name && left.program == right.program } - (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => left - .inputs() - .iter() - .zip_eq(right.inputs().iter()) - .all(|(left_type, right_type)| left_type.eq_flat(right_type)), + (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => + left.location == right.location && + left + .inputs() + .iter() + .zip_eq(right.inputs().iter()) + .all(|(left_type, right_type)| left_type.eq_flat(right_type)), _ => false, } } diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 37c380039a..e594050046 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -16,7 +16,8 @@ use crate::TypeChecker; -use leo_ast::*; +use leo_ast::{*, + Variant::{AsyncFunction, AsyncTransition}}; use leo_errors::{emitter::Handler, TypeCheckerError}; use leo_span::{sym, Span, Symbol}; @@ -27,7 +28,6 @@ use leo_ast::{ }; use snarkvm::console::network::{MainnetV0, Network}; use std::str::FromStr; -use leo_ast::Variant::{Transition, Function, AsyncFunction, AsyncTransition}; fn return_incorrect_type(t1: Option, t2: Option, expected: &Option) -> Option { match (t1, t2) { @@ -169,6 +169,8 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Future(_) => { // Get the fully inferred type. if let Some(Type::Future(inferred_f)) = self.type_table.get(&access.tuple.id()) { + dbg!(inferred_f.clone()); + dbg!(access.clone()); // Make sure in range. if access.index.value() >= inferred_f.inputs().len() { self.emit_err(TypeCheckerError::invalid_future_access( @@ -628,12 +630,38 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { } // Async functions return a single future. let mut ret = if func.variant == AsyncFunction { + // Type check after know the input types. if let Some(Type::Future(_)) = expected { - Type::Future(FutureType::new(Vec::new(), Some(Location::new(input.program, ident.name)))) + Type::Future(FutureType::new(Vec::new(), Some(Location::new(input.program, ident.name)), false)) } else { self.emit_err(TypeCheckerError::return_type_of_finalize_function_is_future(input.span)); Type::Unit } + } else if func.variant == AsyncTransition { + // Fully infer future type. + let future_type = Type::Future(FutureType::new( + // Assumes that external function stubs have been processed. + self.finalize_input_types + .get(&Location::new( + input.program, + Symbol::intern(&format!("finalize/{}", ident.name)), + )) + .unwrap() + .clone(), + Some(Location::new(input.program, ident.name)), + true + )); + let fully_inferred_type = match func.output_type { + Tuple(tup) => Tuple(TupleType::new( + tup.elements() + .iter() + .map(|t| if matches!(t, Future(_)) { future_type.clone() } else { t.clone() }) + .collect::>(), + )), + Future(_) => future_type, + _ => panic!("Invalid output type for async transition."), + }; + self.assert_and_return_type(fully_inferred_type, expected, input.span()) } else { self.assert_and_return_type(func.output_type, expected, input.span()) }; @@ -718,35 +746,10 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { input.span, )); } - // Fully infer future type. - let future_type = Type::Future(FutureType::new( - // Assumes that external function stubs have been processed. - self.finalize_input_types - .get(&Location::new( - input.program, - Symbol::intern(&format!("finalize/{}", ident.name)), - )) - .unwrap() - .clone(), - Some(Location::new(input.program, ident.name)) - )); - ret = match ret.clone() { - Tuple(tup) => Tuple(TupleType::new( - tup.elements() - .iter() - .map(|t| if matches!(t, Future(_)) { future_type.clone() } else { t.clone() }) - .collect::>(), - )), - Future(_) => future_type, - _ => { - self.emit_err(TypeCheckerError::async_transition_invalid_output(input.span)); - ret - } - }; } else if func.variant.is_function() { // Can only call an async function once in a transition function body. if self.scope_state.has_called_finalize { - self.emit_err(TypeCheckerError::must_call_finalize_once(input.span)); + self.emit_err(TypeCheckerError::must_call_async_function_once(input.span)); } // Check that all futures consumed. if !self.scope_state.futures.is_empty() { @@ -775,7 +778,10 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.scope_state.has_called_finalize = true; // Update ret to reflect fully inferred future type. - ret = Type::Future(FutureType::new(inferred_finalize_inputs, Some(Location::new(input.program, ident.name)))); + ret = Type::Future(FutureType::new(inferred_finalize_inputs, Some(Location::new(input.program, ident.name)), true)); + + // Type check in case the expected type is known. + self.assert_and_return_type(ret.clone(), expected, input.span()); } // Set call location so that definition statement knows where future comes from. self.scope_state.call_location = Some(Location::new(input.program, ident.name)); diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 8f2a750818..4009fce007 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -16,16 +16,14 @@ use crate::{DiGraphError, TypeChecker}; -use leo_ast::*; +use leo_ast::{*, + Input::{External, Internal}, + Type::Future, +}; use leo_errors::{TypeCheckerError, TypeCheckerWarning}; use leo_span::sym; use snarkvm::console::network::{MainnetV0, Network}; - -use leo_ast::{ - Input::{External, Internal}, - Type::Future, -}; use std::collections::HashSet; use leo_ast::Variant::{AsyncFunction, AsyncTransition}; @@ -100,7 +98,7 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { Future(f) => { // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. Future(FutureType::new( - finalize_input_map.get(&f.location.clone().unwrap()).unwrap().clone(), f.location.clone())) + finalize_input_map.get(&f.location.clone().unwrap()).unwrap().clone(), f.location.clone(), true)) } _ => function_input.clone().type_, }, diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 72f10af619..8a46656b7a 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -122,7 +122,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { let current_bst_nodes: Vec = match self.await_checker.create_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), input.span) { Ok(nodes) => nodes, - Err(err) => return self.emit_err(err), + Err(warn) => return self.emit_warning(warn), }; // Visit block. @@ -386,7 +386,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { fn visit_return(&mut self, input: &'a ReturnStatement) { // Cannot return anything from finalize. if self.scope_state.variant == Some(Variant::AsyncFunction) { - self.emit_err(TypeCheckerError::return_in_finalize(input.span())); + self.emit_err(TypeCheckerError::finalize_function_cannot_return_value(input.span())); } // We can safely unwrap all self.parent instances because // statements should always have some parent block @@ -398,13 +398,13 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Fully type the expected return value. if self.scope_state.variant == Some(Variant::AsyncTransition) && self.scope_state.has_called_finalize { let inferred_future_type = match self.finalize_input_types.get(&func.unwrap().finalize.clone().unwrap()) { - Some(types) => Future(FutureType::new(types.clone(), Some(Location::new(self.scope_state.program_name, parent)))), + Some(types) => Future(FutureType::new(types.clone(), Some(Location::new(self.scope_state.program_name, parent)), true)), None => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } }; // Need to modify return type since the function signature is just default future, but the actual return type is the fully inferred future of the finalize input type. - return_type = match return_type { + let inferred = match return_type.clone() { Some(Future(_)) => Some(inferred_future_type), Some(Tuple(tuple)) => Some(Tuple(TupleType::new( tuple @@ -416,6 +416,11 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { _ => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } + }; + + // Check that the explicit type declared in the function output signature matches the inferred type. + if let Some(ty) = inferred { + return_type = Some(self.assert_and_return_type(ty, &return_type, input.span())); } } diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 15c18a846a..40b1a9ad9b 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -16,23 +16,7 @@ use crate::{CallGraph, StructGraph, SymbolTable, TypeTable, VariableSymbol, VariableType}; -use leo_ast::{ - Composite, - CompositeType, - CoreConstant, - CoreFunction, - Expression, - Function, - Identifier, - IntegerType, - Location, - MappingType, - Mode, - Node, - Output, - Type, - Variant, -}; +use leo_ast::{Composite, CompositeType, CoreConstant, CoreFunction, Expression, Function, FutureType, Identifier, IntegerType, Location, MappingType, Mode, Node, Output, Type, Variant}; use leo_errors::{emitter::Handler, TypeCheckerError, TypeCheckerWarning}; use leo_span::{Span, Symbol}; @@ -167,7 +151,7 @@ impl<'a> TypeChecker<'a> { } /// Emits a type checker warning - pub(crate) fn emit_warning(&self, warning: TypeCheckerWarning) { + pub fn emit_warning(&self, warning: TypeCheckerWarning) { self.handler.emit_warning(warning.into()); } @@ -182,12 +166,12 @@ impl<'a> TypeChecker<'a> { /// Determines if the two types have the same structure. /// Needs access to the symbol table in order to compare nested future and struct types. - pub(crate) fn check_eq_type_structure(&self, t1: &Type, t2: &Type, span: Span) -> bool { - if t1.eq_flat(t2) { + pub(crate) fn check_eq_type_structure(&self, actual: &Type, expected: &Type, span: Span) -> bool { + if actual.eq_flat(expected) { return true; } // All of these types could return false for `eq_flat` if they have an external struct. - match (t1, t2) { + match (actual, expected) { (Type::Array(left), Type::Array(right)) => { self.check_eq_type_structure(left.element_type(), right.element_type(), span) && left.length() == right.length() @@ -219,6 +203,8 @@ impl<'a> TypeChecker<'a> { true } } + // Don't type check when type hasn't been explicitly defined. + (Type::Future(left), Type::Future(right)) if !left.is_explicit || !right.is_explicit => true, (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => left .inputs() .iter() @@ -1287,9 +1273,7 @@ impl<'a> TypeChecker<'a> { function.input.iter().zip_eq(inferred_input_types.iter()).for_each(|(t1, t2)| { if let Internal(fn_input) = t1 { // Allow partial type matching of futures since inferred are fully typed, whereas AST has default futures. - if !(matches!(t2, Type::Future(_)) && matches!(fn_input.type_, Type::Future(_))) { - self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span()) - } else { + if matches!(t2, Type::Future(_)) && matches!(fn_input.type_, Type::Future(_)) { // Insert to symbol table if let Err(err) = self.symbol_table.borrow_mut().insert_variable( Location::new(None, fn_input.identifier.name), @@ -1302,6 +1286,7 @@ impl<'a> TypeChecker<'a> { self.handler.emit_err(err); } } + self.check_eq_types(&Some(t1.type_()), &Some(t2.clone()), t1.span()) } }); } else { From bf95c4966a81db67eb05de3d432b6d4d68421270 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:38:41 -0700 Subject: [PATCH 69/80] parsing ambiguous explicit future types. Ex: `Future>` --- compiler/parser/src/parser/context.rs | 48 +++++++++++++++++++++++ compiler/parser/src/parser/type_.rs | 18 ++++++++- errors/src/errors/parser/parser_errors.rs | 7 ++++ 3 files changed, 72 insertions(+), 1 deletion(-) diff --git a/compiler/parser/src/parser/context.rs b/compiler/parser/src/parser/context.rs index 90db26a4b2..cf0db612ce 100644 --- a/compiler/parser/src/parser/context.rs +++ b/compiler/parser/src/parser/context.rs @@ -41,6 +41,8 @@ pub(crate) struct ParserContext<'a> { pub(crate) disallow_struct_construction: bool, /// The name of the program being parsed. pub(crate) program_name: Option, + /// Whether traversing an ambiguous Shr token. + pub in_angle: bool, } /// Dummy span used to appease borrow checker. @@ -63,6 +65,7 @@ impl<'a> ParserContext<'a> { token, tokens, program_name: None, + in_angle: false, }; p.bump(); p @@ -248,6 +251,51 @@ impl<'a> ParserContext<'a> { self.parse_list(Delimiter::Bracket, Some(Token::Comma), f) } + /// Parse a list separated by `,` and delimited by angle brackets. + /// Since the `>>` token is ambiguous, we need to create special state checks. + pub (super) fn parse_angle_comma_list( + &mut self, + sep: Option, + mut f: impl FnMut(&mut Self) -> Result>, + ) -> Result<(Vec, bool, Span)> { + let (open, close) = Delimiter::AngleBracket.open_close_pair(); + let mut list = Vec::new(); + let mut trailing = false; + + // Parse opening delimiter. + let open_span = self.expect(&open)?; + + while !self.check(&close) && !self.check(&Token::Shr){ + // Parse the element. We allow inner parser recovery through the `Option`. + if let Some(elem) = f(self)? { + list.push(elem); + } + // Parse the separator, if any. + if sep.as_ref().filter(|sep| !self.eat(sep)).is_some() { + trailing = false; + break; + } + + trailing = true; + } + + if self.token.token == Token::Shr { + return if self.in_angle { + self.in_angle = false; + let end_span = self.expect(&Token::Shr)?; + Ok((list, trailing, open_span + end_span)) + } else { + self.in_angle = true; + Ok((list, trailing, open_span + self.prev_token.span)) + }; + } + + // Parse closing delimiter. + let span = open_span + self.expect(&close)?; + + Ok((list, trailing, span)) + } + /// Returns true if the current token is `(`. pub(super) fn peek_is_left_par(&self) -> bool { matches!(self.token.token, Token::LeftParen) diff --git a/compiler/parser/src/parser/type_.rs b/compiler/parser/src/parser/type_.rs index 1cc5c072e5..853c0b4ccc 100644 --- a/compiler/parser/src/parser/type_.rs +++ b/compiler/parser/src/parser/type_.rs @@ -66,7 +66,6 @@ impl ParserContext<'_> { Token::Address => Type::Address, Token::Bool => Type::Boolean, Token::Field => Type::Field, - Token::Future => Type::Future(Default::default()), Token::Group => Type::Group, Token::Scalar => Type::Scalar, Token::Signature => Type::Signature, @@ -131,6 +130,23 @@ impl ParserContext<'_> { // Note: This is the only place where `Tuple` type is constructed in the parser. _ => Ok((Type::Tuple(TupleType::new(types.into_iter().map(|t| t.0).collect())), span)), } + } + else if self.token.token == Token::Future { + // Parse the `Future` token. + let span = self.expect(&Token::Future)?; + // Parse the angle bracket list. + if self.token.token == Token::Lt { + let (types, _, full_span) = self.parse_angle_comma_list(Some(Token::Comma),|p| p.parse_type().map(Some))?; + match types.len() { + 0 => return Err(ParserError::future_must_have_at_least_one_element(span).into()), + // `Future<()>` corresponds to explicitly specifying a `Future` type with no inputs. + 1 if matches!(types.get(0).unwrap().0, Type::Unit) => return Ok((Type::Future(FutureType::new(vec![], None, true)), span + full_span)), + _ => {}, + } + Ok((Type::Future(FutureType::new(types.into_iter().map(|t| t.0).collect(), None, true)), span + full_span)) + } else { + Ok((Type::Future(Default::default()), span)) + } } else { self.parse_primitive_type() } diff --git a/errors/src/errors/parser/parser_errors.rs b/errors/src/errors/parser/parser_errors.rs index ec25c7676e..d0a1766fa0 100644 --- a/errors/src/errors/parser/parser_errors.rs +++ b/errors/src/errors/parser/parser_errors.rs @@ -342,4 +342,11 @@ create_messages!( msg: format!("Cannot create an external record. Records can only be created in the program that they are defined in."), help: None, } + + @formatted + future_must_have_at_least_one_element { + args: (), + msg: "Future type must have at least one element.".to_string(), + help: Some("Write `Future<()>` to explicitly type a future with no inputs.".to_string()), + } ); From 00ce6eb045d3b2f8d61da17d9fb09679384fb642 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:38:57 -0700 Subject: [PATCH 70/80] explicit future tests --- .../futures/explicit_return_type_fail.out | 2 +- .../compiler/futures/explicit_type.out | 31 ++ .../compiler/futures/explicit_type_simple.out | 31 ++ .../futures/future_not_all_awaited_fail.out | 2 +- ...ture_not_all_passed_to_async_call_fail.out | 2 +- .../expectations/compiler/futures/nested.out | 82 ++--- .../futures/partial_type_specification.out | 57 ++++ .../expectations/compiler/futures/simple.out | 40 +-- .../parser/future/explicit_future_typing.out | 319 ++++++++++++++++++ .../compiler/futures/explicit_type_simple.leo | 33 ++ tests/tests/compiler/futures/nested.leo | 2 +- .../futures/partial_type_specification.leo | 103 ++++++ .../parser/future/explicit_future_typing.leo | 20 ++ 13 files changed, 659 insertions(+), 65 deletions(-) create mode 100644 tests/expectations/compiler/futures/explicit_type.out create mode 100644 tests/expectations/compiler/futures/explicit_type_simple.out create mode 100644 tests/expectations/compiler/futures/partial_type_specification.out create mode 100644 tests/expectations/parser/future/explicit_future_typing.out create mode 100644 tests/tests/compiler/futures/explicit_type_simple.leo create mode 100644 tests/tests/compiler/futures/partial_type_specification.leo create mode 100644 tests/tests/parser/future/explicit_future_typing.leo diff --git a/tests/expectations/compiler/futures/explicit_return_type_fail.out b/tests/expectations/compiler/futures/explicit_return_type_fail.out index 77a6a3fdc9..0659b83f44 100644 --- a/tests/expectations/compiler/futures/explicit_return_type_fail.out +++ b/tests/expectations/compiler/futures/explicit_return_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372118]: An async function is not allowed to return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372038]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n" + - "Error [ETYC0372105]: An async function is not allowed to return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372035]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n" diff --git a/tests/expectations/compiler/futures/explicit_type.out b/tests/expectations/compiler/futures/explicit_type.out new file mode 100644 index 0000000000..b2c7bb306a --- /dev/null +++ b/tests/expectations/compiler/futures/explicit_type.out @@ -0,0 +1,31 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - compile: + - initial_symbol_table: 47a51901c66d5f1114b2a8b9e310d9e94496bd96b6d0ace33c113dfa0ca98e74 + type_checked_symbol_table: 296592ba1e77d8b2a425173f16667acc101401c4f2d5e2bef89bb9bd1600ed79 + unrolled_symbol_table: 296592ba1e77d8b2a425173f16667acc101401c4f2d5e2bef89bb9bd1600ed79 + initial_ast: e1b2a0140500be55ae83251c9b425dd92419952de27be605b3369145ef5f74da + unrolled_ast: e1b2a0140500be55ae83251c9b425dd92419952de27be605b3369145ef5f74da + ssa_ast: 472918a255a170f0ca8fd8995f0455337e3ecc3584cb791ff1a4a90b39043a62 + flattened_ast: d878cae6b698cf3a17b3452865f7bf9b4226da1f8c576259686d6b9734bac61f + destructured_ast: 70463f7122bd326523125de9fe7080780416b2047075637825909711a18a0ca3 + inlined_ast: b51bf5dc9f96f68c665ef4312c1fe772b89cc007eb7f5394ba81ac32ed0a325b + dce_ast: b51bf5dc9f96f68c665ef4312c1fe772b89cc007eb7f5394ba81ac32ed0a325b + bytecode: 7e95d1c0ff9c0edfb2081fe98cc11fb567b41a1c5c586688a2586aed8629b3be + errors: "" + warnings: "" + - initial_symbol_table: 6d89772d0f9458fbfd1cfd35c65c8b3cc741e7daa78694c21eeb6f7e61b16d0b + type_checked_symbol_table: a8e3ac4ebf716186f9703d4602ee4cbfaec34667e0e7d63f5922778082790288 + unrolled_symbol_table: a8e3ac4ebf716186f9703d4602ee4cbfaec34667e0e7d63f5922778082790288 + initial_ast: 732fbbea10ef0dc13c6edbee524678fc45c284235ac0e301e1479f190bcd95fe + unrolled_ast: 8c006b178cec5fb163362076592cca98aaf92111878ba744081babb922dbec2c + ssa_ast: c63494e9fa9a9d5ad44020acf2db24360650e2e64a94360f805cabbe7e88ef80 + flattened_ast: 0108ea842c4753f093eb7bde10c72c0ee0744410d3da859e4b3a4596ce686d10 + destructured_ast: fd66926d2df8d46797372fa2777c5be6178623c540ef40d39747e2a005bab00f + inlined_ast: 315ddec865d52c8f66d15ec382ef7e5f2a4b895b432a76fe0f7ae09a09811f8d + dce_ast: 0ac6470ade20f5b0a5432e9770a48558d76255a0f9eb3dc0acde1688fc4c2ba4 + bytecode: 7a91652b8a95d6a25f0ad68011d37481570f9c7b5e79d05c0ae8476c6754f7a8 + errors: "" + warnings: "" diff --git a/tests/expectations/compiler/futures/explicit_type_simple.out b/tests/expectations/compiler/futures/explicit_type_simple.out new file mode 100644 index 0000000000..235c904958 --- /dev/null +++ b/tests/expectations/compiler/futures/explicit_type_simple.out @@ -0,0 +1,31 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - compile: + - initial_symbol_table: 9279257b40d37c0e1961af83f3e1acde2f52d54c145897aea5a349c37def66b4 + type_checked_symbol_table: f90ce098a43c8b3fcabd7c3a353583aa221f2810323f31fe84b216957a3c9087 + unrolled_symbol_table: f90ce098a43c8b3fcabd7c3a353583aa221f2810323f31fe84b216957a3c9087 + initial_ast: 8dc231f37bdd85dffb66f51b31a19446fa0599d27d9eca8ffbcd8bb5324ed022 + unrolled_ast: 8dc231f37bdd85dffb66f51b31a19446fa0599d27d9eca8ffbcd8bb5324ed022 + ssa_ast: 9785b6d2e7976362005d90e43686f6d745fbaac6506ac460e58dbc51810417db + flattened_ast: 94fe8677c4a42c91191134fa01f3b8a6b1c792688697588b8799bd7bceed1e32 + destructured_ast: 935907ba17a4f13d3be99253cbd3518b71de08231777b120cd73f4dadc33b915 + inlined_ast: c1eb8ca95e55c34db66be67af606298eb3fe746efedb0be40f656f616d892aca + dce_ast: c1eb8ca95e55c34db66be67af606298eb3fe746efedb0be40f656f616d892aca + bytecode: fcafcc5b4dca1daebcb7e7f97cce06bcd129c54677e310c424a255abd3132732 + errors: "" + warnings: "" + - initial_symbol_table: dd59083407448c97a09123813ea7524145ec603008203abf7a2fc605727e9bc3 + type_checked_symbol_table: ce25c6c79d50b7e9aa7e5cba26c2da79b3d88c6ece72986597e2ac2c1e0efb9d + unrolled_symbol_table: ce25c6c79d50b7e9aa7e5cba26c2da79b3d88c6ece72986597e2ac2c1e0efb9d + initial_ast: 647e31f999ac4a2d9f940105a1691b2c2c352f21bdccf63ea6efe453388a4e7b + unrolled_ast: abf2c6aa935c71ccf6c55858101c2dc1d78711a5e878c32511a540a026a12de2 + ssa_ast: 7aa909c35d1f21c3cdc80a53d1abbdfa6762900d3b8919133d88df58b76588bb + flattened_ast: 4990047c31b4a0b043a2c1dae97bbf6ad35b4eddda20865257b64b71f872733d + destructured_ast: 057fce28aaf4a88c2fa3185709ee26cae31ebdf78f44d6533f42c4363e539f56 + inlined_ast: f7a75c6db6732d49a5315c61089eeb33a030010eb43bb03eee1a881cbf21babf + dce_ast: 3e1a1aebb859934d30eff9bb14c33997bcfe64fc702f6e775f7a07d64889043a + bytecode: 1619c1b8a3e185454210bc8c9433ceec86833904810bba242398f28ea7d99d81 + errors: "" + warnings: "" diff --git a/tests/expectations/compiler/futures/future_not_all_awaited_fail.out b/tests/expectations/compiler/futures/future_not_all_awaited_fail.out index 2b466ac26d..428888c4ff 100644 --- a/tests/expectations/compiler/futures/future_not_all_awaited_fail.out +++ b/tests/expectations/compiler/futures/future_not_all_awaited_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372104]: The following futures were never awaited: f4\n --> compiler-test:12:5\n |\n 12 | async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future, f5: Future) {\n 13 | f1.await();\n 14 | f2.await();\n 15 | f3.await();\n 16 | f0.await();\n 17 | f5.await();\n 18 | }\n | ^\n |\n = Ex: for `f: Future` call `f.await()` to await a future.\n" + - "Error [ETYC0372092]: The following futures were never awaited: f4\n --> compiler-test:12:5\n |\n 12 | async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future, f5: Future) {\n 13 | f1.await();\n 14 | f2.await();\n 15 | f3.await();\n 16 | f0.await();\n 17 | f5.await();\n 18 | }\n | ^\n |\n = Ex: for `f: Future` call `f.await()` to await a future.\n" diff --git a/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out b/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out index 8b81384e7d..e03fb9b989 100644 --- a/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out +++ b/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372115]: Not all futures were consumed: f1\n --> compiler-test:16:16\n |\n 16 | return finalize_foo(f0, f3, f2, f5, f4);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Make sure all futures are consumed exactly once. Consume by passing to an async function call.\n" + - "Error [ETYC0372103]: Not all futures were consumed: f1\n --> compiler-test:16:16\n |\n 16 | return finalize_foo(f0, f3, f2, f5, f4);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Make sure all futures are consumed exactly once. Consume by passing to an async function call.\n" diff --git a/tests/expectations/compiler/futures/nested.out b/tests/expectations/compiler/futures/nested.out index d819aa6031..6d6eff8c95 100644 --- a/tests/expectations/compiler/futures/nested.out +++ b/tests/expectations/compiler/futures/nested.out @@ -3,55 +3,55 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dae357041d36da1120cf105172587da66def60fa8b3e628ed5fff17b982a659c - type_checked_symbol_table: f3b647588241ff6b01e59cf177b86171f7f2a592dcf72e52a72896296c697300 - unrolled_symbol_table: f3b647588241ff6b01e59cf177b86171f7f2a592dcf72e52a72896296c697300 - initial_ast: 39133a103f2f3b642b71ab3d3cff63208dbdf4046d9e11f24ef2db36643ea6ad - unrolled_ast: 39133a103f2f3b642b71ab3d3cff63208dbdf4046d9e11f24ef2db36643ea6ad - ssa_ast: 7bb68239eae8b54a9d05ccda3d2d233d2bbd64ea3279dc17d88c385cc03f53f7 - flattened_ast: 56743a5fdf067555159476aaa7ec14e3d4d1a411d87a9e8cdc63412e9e5458a6 - destructured_ast: ef747062ccb6ce25f3c12c454f2962a452edadce34f39fa658e022ee22d84806 - inlined_ast: b0d5479dfb26351bcbfec2a0efca41bc8bbb9420723d1e6c91ee769a48a6b619 - dce_ast: 2fdb23928efb46e9f91af70dbc9c7f6082c1998778c8b3b412ef06d9cf96eec0 + - initial_symbol_table: 86ab6ef04a32a88f3e80544e8457ba0f9c8437fa8bd6c0ecf4fe81f81e303b36 + type_checked_symbol_table: 239974cd2bde58d2da7d4f875f5870ded9c5d861fe349f8baf622d65408d400d + unrolled_symbol_table: 239974cd2bde58d2da7d4f875f5870ded9c5d861fe349f8baf622d65408d400d + initial_ast: 3a0563f3764064bddf0bdb750c5b9d29ceb7e467478302e240208997ad0982ff + unrolled_ast: 3a0563f3764064bddf0bdb750c5b9d29ceb7e467478302e240208997ad0982ff + ssa_ast: a0136dbe0ba8ba23b655fda6aca4ea8438e6bc807b1ab0d79da518d36f104301 + flattened_ast: 32720dbd5b0b993e183b2c6646724c8c3a0774e2bf7e27d836849c1e59e1b3fc + destructured_ast: 9947a00c36783530205560d41dea323840f437d2234b76e599de49204ec376da + inlined_ast: 0a825690453bdceb53348d0823b81ca1ded15895ce7e131e98de9828631cda6e + dce_ast: a2ed7cdeefb5942222083bd79b6f1675789ba1876d24fe314eadfb944711f299 bytecode: 833525edcc02927d3c52ea36f01ee8b6100738cb8d8c2d26fedec7365c622169 errors: "" warnings: "" - - initial_symbol_table: ed7c9d3e814ddcc7686a6585e0e823cfd8400eba7458ed011db1b1abde398fdc - type_checked_symbol_table: 7832db804a9257b494d0e6222c4ed676b4e59b919f218050c69c8bb792f84366 - unrolled_symbol_table: 7832db804a9257b494d0e6222c4ed676b4e59b919f218050c69c8bb792f84366 - initial_ast: dcefb152cf26b6ebbcc97687efe1c5a3c0dbba0b8ed613d03dd700e3f85df9d4 - unrolled_ast: 2d0c1760e413a88abd05d24bb350b44f51ab26815dde02ee00fcf228d45f3326 - ssa_ast: 8467d96a1185b59e3c11dc8a9ee309b6c3b93e02f2891e7faf675a45c71b4078 - flattened_ast: ede5cc1d50b2fbc89cf2aed9cb4e48ab65401210ba97e498bd317f08f38492b8 - destructured_ast: e53fb17e29e433005d0c89178e442be9869dd653f33253648ac1cb44313767a9 - inlined_ast: 67902a89b1770e7b732851086c0922e0af1fde9794d081875e301fee6c10354b - dce_ast: 50604dc814424d9fd0fc2f70923b56a44a626297befc47561c5a41af21c40e5f - bytecode: 54b6bc6aa92b27fa7a8266c76f58173d50890d94cc46e3c9edc023e22d48c4c8 + - initial_symbol_table: 8f08ab5c3c4f864dcfff4dee81fc81b97fe5fceb3529dd906b8ef14bf4b090e3 + type_checked_symbol_table: b8612e351f4e648b42d351d8b938a724de286943e953bcfc880b75678770e1cb + unrolled_symbol_table: b8612e351f4e648b42d351d8b938a724de286943e953bcfc880b75678770e1cb + initial_ast: 45e99d526a59e3e7b4e4929786457add0807850e5ad87c3f1fa82675df172f62 + unrolled_ast: ea7d4394eb733a73c1333c7bf67d415877fed5fc3ba876c8eecf213273e5afba + ssa_ast: 05a77645263e3b4e8e66027f43e568ff15c5f02cb4d1e33fb608ba4dabc129d5 + flattened_ast: 44232f9ecc0e46a51335643d983b9f701aa189c9f15cfaaa71e07c959802a5a4 + destructured_ast: 7918a91ae2c0966bc2a1aff0ab9d26c32d661545553c3999e97903a2cd582c01 + inlined_ast: cf6fe2066e7332141ab69dc9df9987ef9a9114adc2a9300a3389901fb16be81e + dce_ast: dd733a5f1fdcc419b50e1cb3dd755ae4afc3ef604db812bc835c26b8c9917e88 + bytecode: 06118b170bd8fcf39f203c974615c368081e6bceae6dbe0d6aaa125d76bd9ac2 errors: "" warnings: "Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 paths contain at least one future that is never awaited.\n --> compiler-test:17:5\n |\n 17 | async function finalize_main(f: Future, f2: Future, a: u32) {\n 18 | // f.await();\n 19 | if a == 1u32 {\n 20 | Future::await(f);\n 21 | f2.await();\n 22 | }\n 23 | \n 24 | if a == 2u32 {\n 25 | //f2.await();\n 26 | Mapping::set(ayo, 1u32, 1u32);\n 27 | }\n 28 | \n 29 | let total: u32 = f.0 + f2.0;\n 30 | Mapping::set(ayo, 1u32, total);\n 31 | }\n | ^\n |\n = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag." - - initial_symbol_table: 2e1f799adc7efd3ce3222975fe05ce5622a9c0945dbca930c38160d9ffc31725 - type_checked_symbol_table: a0bfeeb827a70464a88e80174ffdc64e3194b46bff56acf8b8cbc34cc56867d0 - unrolled_symbol_table: a0bfeeb827a70464a88e80174ffdc64e3194b46bff56acf8b8cbc34cc56867d0 - initial_ast: a308ff9a4303940219e622a8b569f15fca293a71e350fec3576662ea8934c611 - unrolled_ast: a992e9c9dc248e6408023ccc4a9379b2d4c7b65f7fab77d9c771bd2b6c866a75 - ssa_ast: 250e34750c759e2b403e2e82789dacab853b93fc2f4470f3ff3f3b1fb389e1a4 - flattened_ast: e0c564a41adae220a2f5ce02494608a8bba441489da1916a315f3d22b4002db1 - destructured_ast: c01f8593421d8017a233fb035800f08548c28ccf36f90c9b7b544d0404d6b442 - inlined_ast: 500774c030257c087cdf0a73757e87e738cb62623a7147d9b9449c8f742c36b7 - dce_ast: 2dc009cf8733679b787f89a794520ac4ebae5f27c7833103e0f9c536c05ef34e + - initial_symbol_table: 0eaf18229b4e9225a3cb73c9a68b9484952dfc14fd8ff170447add05bf0b0524 + type_checked_symbol_table: f24076223c77bb2932780788da22dd53da0f7950742aa6224e756412f8e3779f + unrolled_symbol_table: f24076223c77bb2932780788da22dd53da0f7950742aa6224e756412f8e3779f + initial_ast: 6f160f0208f733668a5d665d34fa7e657503938d7e8f3fa23bc00cc511105612 + unrolled_ast: 6665260afd2e96e10940c64b803b3dfbc11bab1ce7a04b92fcd36d653f7c4ed0 + ssa_ast: 26ccc97ce0e1e6b60a3fdc801ce29e401d9a47276bafe55578c8b39287d5ef41 + flattened_ast: ab3e104b14969b481dc655dc8ccb0a1646eb4cf47b86deb2827711f34ed6f7ef + destructured_ast: 10c352f0ca4e853a2ed2e408b8050cf047ff5d10c977ad23473c25042285df46 + inlined_ast: f223801f28cd37d07d69f772bdaf7fbd4615c0401370f495dfe575375ae2eeac + dce_ast: e0d468d1003e6c2774b97f3bdff4be0de5661730598f3db5c3421fe31a29e4de bytecode: 7a2fd5581e13d3b66f1fad269ba868cf6d272929b84cea2dc1cb6a0af22867c2 errors: "" warnings: "" - - initial_symbol_table: 8ad69be0fd89bb76b691de96b7487cf22a375c4260cc31d8a40c9f304ce86729 - type_checked_symbol_table: efe6c4280d124277c6715e6adc84ffe43ede395fb860dca38f7ed2f9cbd20c11 - unrolled_symbol_table: efe6c4280d124277c6715e6adc84ffe43ede395fb860dca38f7ed2f9cbd20c11 - initial_ast: 79784e9bead4fdd8dc8d7adebd70bc9f8801a2194ad36739873582c2a9cc196b - unrolled_ast: b907ea2c254bb2666c0477f55be028715062ca8ecca51367e4855b3c47c589fb - ssa_ast: cb480d9cb77149d16a57a355122a42fc97bf83989f0b32858ee9a5222b5ccc23 - flattened_ast: 3a17c65ffd73f4ac47247498dd39e8b578251b541436395604663d5192730741 - destructured_ast: a4db377f1867ccafda01ddfedd854a7b698c40d52f09e1299a3abe0e71437e5c - inlined_ast: ef9b47b8c55c86273360209ec9650a41426b3c9bc625e79e7f68892be58baebb - dce_ast: be196ed1333097cdfd6eacfe0f645308b28ba31c08ba730c7483318e4060a7be + - initial_symbol_table: f38e89a5b86fef979e7cd6b47cea12498d695b4d89e12a30051ba8a6e764fb49 + type_checked_symbol_table: 8dfdc112d4ebdd4aa4d52b72d262696830e8d545d4cd9694575acccb569cb6a2 + unrolled_symbol_table: 8dfdc112d4ebdd4aa4d52b72d262696830e8d545d4cd9694575acccb569cb6a2 + initial_ast: 0d39ae8720f325f7fb1de93c78621ee641b18e826bc5edfdf0934b90608a7a6a + unrolled_ast: 61c28641f6fb0478f2e0414859da8708790b977a56fa0e71b99912cd1e225f86 + ssa_ast: d65d59f47ff705cd49018d8ee953910bbcae73ef45491f3f8638a95ff51c7600 + flattened_ast: b51e2ccba6e160bf4ef7fdb0c071984ad5ea62722a97342bdd89a8effdf367b9 + destructured_ast: 5a4e750ae3a09dca023dfce772f38097864fa51b2d83ad91ad54642cff66b29b + inlined_ast: 549460fc2ec17aebb284e1cec859532b0932c07c6f52bd9b22bb2bb98121b57d + dce_ast: 2b95271cf24f8d0e7f1fda97a68c1623eb502dec0abaf4a40fe0138abfc514ae bytecode: 388c60022d4ad4fac382a685cc997c84d142f4e1357eb7c00e3efb545f5f70e5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/futures/partial_type_specification.out b/tests/expectations/compiler/futures/partial_type_specification.out new file mode 100644 index 0000000000..51428d6a6e --- /dev/null +++ b/tests/expectations/compiler/futures/partial_type_specification.out @@ -0,0 +1,57 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - compile: + - initial_symbol_table: 5ca921ebf6db69e2cc02b89b751bc97e9b60d165d1a9d438cb8f3c2ff2e0ca01 + type_checked_symbol_table: a029bd3510b56cc1c678fc8b82269373d79a29fe9c34e5350997e5672f339b6d + unrolled_symbol_table: a029bd3510b56cc1c678fc8b82269373d79a29fe9c34e5350997e5672f339b6d + initial_ast: 9da79a0ee0cf6e4b5a8c7ca9943aa33954e0a25fa8c61a76d71b2fd65e0c95fd + unrolled_ast: 9da79a0ee0cf6e4b5a8c7ca9943aa33954e0a25fa8c61a76d71b2fd65e0c95fd + ssa_ast: bd828c1d5976f030a44c93f644f5eed451df9fda0058b28eba368bc28bb97411 + flattened_ast: 6f2cbd528ac76cecc014828cb79ea10867f9662b8e6bea422ec02e4d7516708a + destructured_ast: 1e81877f5b1496c21fbd5c8771112fb2f2c58c2061ba8bbda8bed4b6fa653dc7 + inlined_ast: ab4e6709e65c15e1c4b649c58cf2f76dc76fbba0b995deefbbda466b74060df8 + dce_ast: deee914f1ab39447896c26612c3fcac3ce451006de441ea3f0b68acd85ce2984 + bytecode: d207ac4b2d723295d2e715b2ea29f26bf8adcddbe41b4d5a036b69998a0ecfd6 + errors: "" + warnings: "" + - initial_symbol_table: 809c42b30e0aa18e10707d26ca124b7a008ad47b530ed3411d5ec106e5b8928f + type_checked_symbol_table: 3fea8d5bc236a4b0d4bb7e0740d96464201e1833924aeb5af7f63250a630043c + unrolled_symbol_table: 3fea8d5bc236a4b0d4bb7e0740d96464201e1833924aeb5af7f63250a630043c + initial_ast: 4f8c54f004b2a2adb1759f6a680a0d2b5f42b4859c85dc96e7f044bdc916124c + unrolled_ast: ea3e0f9285420a4b9ff57d6bea336b52b49ca576cda92d55df693c2bed3503de + ssa_ast: b5a6e70c033e9459b2c85ea6893d2875d15450eb79eaec3365dede48d024805e + flattened_ast: 89043f365ab200b9543f86c53f1d44068fd77e1c66740c7efb122bff7d89aa68 + destructured_ast: deae4cb5f9a7aa806132db62b96f3004f7a6c6995c0422a069be6709371e0efe + inlined_ast: ae39454ac9ace8258a9cc4c1d24d1f5afce3537fa0d673789cd70ecf81a1c448 + dce_ast: 7caa74de23c64943760519804e2b52abb650c3b0c85ac861f780ed94b6ab5553 + bytecode: 06118b170bd8fcf39f203c974615c368081e6bceae6dbe0d6aaa125d76bd9ac2 + errors: "" + warnings: "Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 paths contain at least one future that is never awaited.\n --> compiler-test:17:5\n |\n 17 | async function finalize_main(f: Future, f2: Future, a: u32) {\n 18 | // f.await();\n 19 | if a == 1u32 {\n 20 | Future::await(f);\n 21 | f2.await();\n 22 | }\n 23 | \n 24 | if a == 2u32 {\n 25 | //f2.await();\n 26 | Mapping::set(ayo, 1u32, 1u32);\n 27 | }\n 28 | \n 29 | let total: u32 = f.0 + f2.0;\n 30 | Mapping::set(ayo, 1u32, total);\n 31 | }\n | ^\n |\n = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag." + - initial_symbol_table: 84aba10c7682941bab0b7b92a1fd7f8cb05c2eddd51d24442e7b64fbc2736ea0 + type_checked_symbol_table: da016b22fa88fd196887edce8926a68f9d91e7efdfde858c1e3c6fdc1fe408b6 + unrolled_symbol_table: da016b22fa88fd196887edce8926a68f9d91e7efdfde858c1e3c6fdc1fe408b6 + initial_ast: b4046e718278252f50544068d0b57f7808cfff868a2ae91abbcce54cf10ec2f8 + unrolled_ast: f87f1be959ef071751866dc975bd567c2b39cc1093b445ae2916936682321ef7 + ssa_ast: 82ef9fa0b5d9d1b9151e986d5eebfa05cf49951500fd7c57069b10fcd6d748ed + flattened_ast: 59da77b0c3cd83f4d12666a4035a84de4e7c7db2ac3b06900a3541f17460e257 + destructured_ast: b421851c7c70eba122aa498ecebce6e2880bcb81a3a7881dda638d749b0c532b + inlined_ast: c8213bc414393c65cb13533b03aedb54c12a10cc9ca6b67869d0f6af4b74d037 + dce_ast: 9cf03913d5f9c4ec1b24912359dae5e64c2c7aea89bddbfd442482d84213ed77 + bytecode: 7a2fd5581e13d3b66f1fad269ba868cf6d272929b84cea2dc1cb6a0af22867c2 + errors: "" + warnings: "" + - initial_symbol_table: cccf95ec1779120d414bd4bc3a9a76c039f32b3dbe1bcd1765eb7da5ff4f8a54 + type_checked_symbol_table: bd09092e98f274d8efdef0c4986063ac08c29723b0392e1c0b3cb5dad68e72a9 + unrolled_symbol_table: bd09092e98f274d8efdef0c4986063ac08c29723b0392e1c0b3cb5dad68e72a9 + initial_ast: 9430abd63c2567c1c22260b177b70f668f88c9bb6aefd876d4fc2c4807c20660 + unrolled_ast: 8aeb14248ba30951cd24f48f2b8bdcbb06083dcfb0f53612e4722de2632e6b70 + ssa_ast: 230730e6d6a0d0ee332b10d89ab90cf6cd73da54718ed54e850a0a6a55a38617 + flattened_ast: e3698a6a2bde5e8977628220f1396124b58ed90180ee004f383904564d0205dd + destructured_ast: 8164d12b681effd27ef362bad480b970c526c3914acf172b486a989753aaa90e + inlined_ast: 1c04d1f8229b0f93d5de486644c38a193401f9293cf49270eeb2af9787277e81 + dce_ast: 6bd0b3c0f4f006e109d25c131d3f4c3ffc9f295c079c7b39a0696d4829583bae + bytecode: 388c60022d4ad4fac382a685cc997c84d142f4e1357eb7c00e3efb545f5f70e5 + errors: "" + warnings: "" diff --git a/tests/expectations/compiler/futures/simple.out b/tests/expectations/compiler/futures/simple.out index c5a74054bc..1fc99fca3c 100644 --- a/tests/expectations/compiler/futures/simple.out +++ b/tests/expectations/compiler/futures/simple.out @@ -3,29 +3,29 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47a51901c66d5f1114b2a8b9e310d9e94496bd96b6d0ace33c113dfa0ca98e74 - type_checked_symbol_table: 296592ba1e77d8b2a425173f16667acc101401c4f2d5e2bef89bb9bd1600ed79 - unrolled_symbol_table: 296592ba1e77d8b2a425173f16667acc101401c4f2d5e2bef89bb9bd1600ed79 - initial_ast: e1b2a0140500be55ae83251c9b425dd92419952de27be605b3369145ef5f74da - unrolled_ast: e1b2a0140500be55ae83251c9b425dd92419952de27be605b3369145ef5f74da - ssa_ast: 472918a255a170f0ca8fd8995f0455337e3ecc3584cb791ff1a4a90b39043a62 - flattened_ast: d878cae6b698cf3a17b3452865f7bf9b4226da1f8c576259686d6b9734bac61f - destructured_ast: 70463f7122bd326523125de9fe7080780416b2047075637825909711a18a0ca3 - inlined_ast: b51bf5dc9f96f68c665ef4312c1fe772b89cc007eb7f5394ba81ac32ed0a325b - dce_ast: b51bf5dc9f96f68c665ef4312c1fe772b89cc007eb7f5394ba81ac32ed0a325b + - initial_symbol_table: f01c0be0af6f871d620e93062d274ad414d7971248abf57851171ee600afab28 + type_checked_symbol_table: b06a76af8ce077bec212aabaa48585e095aeae9921eaac4996c9248ad7d8025f + unrolled_symbol_table: b06a76af8ce077bec212aabaa48585e095aeae9921eaac4996c9248ad7d8025f + initial_ast: da1c344d97580fa733d2849bf0ddaf0e2e0fd714e1172bbd596efc35835415de + unrolled_ast: da1c344d97580fa733d2849bf0ddaf0e2e0fd714e1172bbd596efc35835415de + ssa_ast: 9c134e68b215ebe1d5435bd082e8e4d6ad0b909f73bd0e175b2d7e146b9fe9a9 + flattened_ast: 332902d523b19497dda94966a486e8c56fbf0fa29dfa5372e0a0216b2a818a21 + destructured_ast: 72e3b5ccac60949dd44e037ab2f2c69cf86513d83008d730f60a9ff6bf59fdf2 + inlined_ast: 29439e16614c5e0303d2d23b1742b749993bdbd1fa2ad72daf2f44922f8056ab + dce_ast: 29439e16614c5e0303d2d23b1742b749993bdbd1fa2ad72daf2f44922f8056ab bytecode: 7e95d1c0ff9c0edfb2081fe98cc11fb567b41a1c5c586688a2586aed8629b3be errors: "" warnings: "" - - initial_symbol_table: 6d89772d0f9458fbfd1cfd35c65c8b3cc741e7daa78694c21eeb6f7e61b16d0b - type_checked_symbol_table: a8e3ac4ebf716186f9703d4602ee4cbfaec34667e0e7d63f5922778082790288 - unrolled_symbol_table: a8e3ac4ebf716186f9703d4602ee4cbfaec34667e0e7d63f5922778082790288 - initial_ast: 659a8a8861752028a0ffed9c7124583d6a9f179756502dfcdb1e79beb946b3a6 - unrolled_ast: df30b083de57cc108a6ebfbd2fc9f5a702d79630ffe85774c02b354f55fc6b59 - ssa_ast: c81f1f0d01164205cca84bab44810993dc2be7f9c60916a1f4e5f46c304a35fe - flattened_ast: 46a48c999be2a01042e2a79e24ae916ba541c4079fd5cdd01747c37764d3bdb1 - destructured_ast: 55242cf20e7ad4b04a6063c8267ee4d700551ff6a34a05f0d0494712094358db - inlined_ast: 491228a25b5c7f2d4699431ba67624d3a5c95315e1cfd59b8adf44bebdffe9b3 - dce_ast: 9a3e86584fe577c5ff45d22070067a86f10a862ce1ba3bb5c53033aaaefebba7 + - initial_symbol_table: a18204fa4dc8f8246d86d8b0b3f736296657b941f0795029067db948622877fc + type_checked_symbol_table: 64d46bfead8c89a63153788829bf7c8fd473a7fc9c3b780949c4e05b5a44511e + unrolled_symbol_table: 64d46bfead8c89a63153788829bf7c8fd473a7fc9c3b780949c4e05b5a44511e + initial_ast: 8ed8dc93ec31e03c38d9159c4d9050da391afb31bfcd7aff260ef9fbda0b532a + unrolled_ast: 40b40ce671aadd1b817fe547e1b2fb2cf380e427f8b85a5de83dade6a2ec5a6f + ssa_ast: 6a5446dce369ef8bba97e48b0346ad67def68a0922b8fe8bc9bcd1b4e3919971 + flattened_ast: d2bcd3b69e042a959854843f26a8b5bc3c4122b6928665d0b5bba8a3ea8f61bc + destructured_ast: 3ff173b557d2bde939a70a34fd8bd687527789b264ee4560f177913b24bca40d + inlined_ast: a9d0181755638673cd508810a6aba626e8a484f7bc852ba671dcf92a894c6173 + dce_ast: 4a29d2115a5cfdae3627d832512998920d9035eb50a8087f8438842e5fa87b39 bytecode: 7a91652b8a95d6a25f0ad68011d37481570f9c7b5e79d05c0ae8476c6754f7a8 errors: "" warnings: "" diff --git a/tests/expectations/parser/future/explicit_future_typing.out b/tests/expectations/parser/future/explicit_future_typing.out new file mode 100644 index 0000000000..6f1bb48651 --- /dev/null +++ b/tests/expectations/parser/future/explicit_future_typing.out @@ -0,0 +1,319 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - imports: + hello: + - imports: {} + stubs: {} + program_scopes: {} + - lo: 2 + hi: 20 + bye: + - imports: {} + stubs: {} + program_scopes: {} + - lo: 21 + hi: 37 + stubs: {} + program_scopes: + test: + program_id: "{\"name\":\"test\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"3\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":0}\\\\\\\"}\\\"\"}" + consts: [] + structs: [] + mappings: [] + functions: + - - main + - annotations: [] + variant: AsyncTransition + identifier: "{\"id\":\"4\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":79,\\\"hi\\\":83}\"}" + input: [] + output: + - Internal: + mode: None + type_: + Future: + inputs: + - Integer: U32 + - Integer: U32 + - Future: + inputs: [] + location: ~ + is_explicit: true + - Future: + inputs: + - Integer: U32 + - Future: + inputs: + - Integer: U32 + - Integer: U32 + location: ~ + is_explicit: true + location: ~ + is_explicit: true + location: ~ + is_explicit: true + span: + lo: 89 + hi: 148 + id: 5 + output_type: + Future: + inputs: + - Integer: U32 + - Integer: U32 + - Future: + inputs: [] + location: ~ + is_explicit: true + - Future: + inputs: + - Integer: U32 + - Future: + inputs: + - Integer: U32 + - Integer: U32 + location: ~ + is_explicit: true + location: ~ + is_explicit: true + location: ~ + is_explicit: true + block: + statements: + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"6\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":163,\\\"hi\\\":165}\"}" + type_: + Future: + inputs: [] + location: ~ + is_explicit: true + value: + Call: + function: + Identifier: "{\"id\":\"8\",\"name\":\"add\",\"span\":\"{\\\"lo\\\":189,\\\"hi\\\":192}\"}" + arguments: [] + program: bye + span: + lo: 180 + hi: 194 + id: 9 + span: + lo: 159 + hi: 194 + id: 10 + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"11\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":208,\\\"hi\\\":210}\"}" + type_: + Future: + inputs: + - Integer: U32 + - Future: + inputs: + - Integer: U32 + - Integer: U32 + location: ~ + is_explicit: true + location: ~ + is_explicit: true + value: + Call: + function: + Identifier: "{\"id\":\"13\",\"name\":\"nested_fn\",\"span\":\"{\\\"lo\\\":255,\\\"hi\\\":264}\"}" + arguments: [] + program: hello + span: + lo: 244 + hi: 266 + id: 14 + span: + lo: 204 + hi: 266 + id: 15 + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"16\",\"name\":\"f2\",\"span\":\"{\\\"lo\\\":280,\\\"hi\\\":282}\"}" + type_: + Future: + inputs: + - Integer: U32 + - Integer: U32 + - Future: + inputs: [] + location: ~ + is_explicit: true + - Future: + inputs: + - Integer: U32 + - Future: + inputs: + - Integer: U32 + - Integer: U32 + location: ~ + is_explicit: true + location: ~ + is_explicit: true + location: ~ + is_explicit: true + value: + Call: + function: + Identifier: "{\"id\":\"17\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":346,\\\"hi\\\":359}\"}" + arguments: + - Literal: + Integer: + - U32 + - "1" + - span: + lo: 360 + hi: 364 + - 18 + - Literal: + Integer: + - U32 + - "1" + - span: + lo: 366 + hi: 370 + - 19 + - Identifier: "{\"id\":\"20\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":372,\\\"hi\\\":374}\"}" + - Identifier: "{\"id\":\"21\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":376,\\\"hi\\\":378}\"}" + program: test + span: + lo: 346 + hi: 379 + id: 22 + span: + lo: 276 + hi: 379 + id: 23 + - Return: + expression: + Identifier: "{\"id\":\"24\",\"name\":\"f2\",\"span\":\"{\\\"lo\\\":396,\\\"hi\\\":398}\"}" + span: + lo: 389 + hi: 399 + id: 25 + span: + lo: 149 + hi: 405 + id: 26 + span: + lo: 62 + hi: 405 + id: 27 + - - finalize_main + - annotations: [] + variant: AsyncFunction + identifier: "{\"id\":\"28\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":425,\\\"hi\\\":438}\"}" + input: + - Internal: + identifier: "{\"id\":\"29\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":439,\\\"hi\\\":440}\"}" + mode: None + type_: + Integer: U32 + span: + lo: 439 + hi: 440 + id: 30 + - Internal: + identifier: "{\"id\":\"31\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":447,\\\"hi\\\":448}\"}" + mode: None + type_: + Integer: U32 + span: + lo: 447 + hi: 448 + id: 32 + - Internal: + identifier: "{\"id\":\"33\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":455,\\\"hi\\\":457}\"}" + mode: None + type_: + Future: + inputs: [] + location: ~ + is_explicit: true + span: + lo: 455 + hi: 457 + id: 34 + - Internal: + identifier: "{\"id\":\"35\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":471,\\\"hi\\\":473}\"}" + mode: None + type_: + Future: + inputs: + - Integer: U32 + - Future: + inputs: + - Integer: U32 + - Integer: U32 + location: ~ + is_explicit: true + location: ~ + is_explicit: true + span: + lo: 471 + hi: 473 + id: 36 + output: [] + output_type: Unit + block: + statements: + - Expression: + expression: + Access: + AssociatedFunction: + variant: "{\"id\":\"39\",\"name\":\"Future\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":0}\"}" + name: "{\"id\":\"38\",\"name\":\"await\",\"span\":\"{\\\"lo\\\":519,\\\"hi\\\":524}\"}" + arguments: + - Identifier: "{\"id\":\"37\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":516,\\\"hi\\\":518}\"}" + span: + lo: 516 + hi: 526 + id: 40 + span: + lo: 516 + hi: 527 + id: 41 + - Expression: + expression: + Access: + AssociatedFunction: + variant: "{\"id\":\"44\",\"name\":\"Future\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":0}\"}" + name: "{\"id\":\"43\",\"name\":\"await\",\"span\":\"{\\\"lo\\\":539,\\\"hi\\\":544}\"}" + arguments: + - Identifier: "{\"id\":\"42\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":536,\\\"hi\\\":538}\"}" + span: + lo: 536 + hi: 546 + id: 45 + span: + lo: 536 + hi: 547 + id: 46 + - Assert: + variant: + AssertEq: + - Identifier: "{\"id\":\"47\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":566,\\\"hi\\\":567}\"}" + - Identifier: "{\"id\":\"48\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":568,\\\"hi\\\":569}\"}" + span: + lo: 556 + hi: 565 + id: 49 + span: + lo: 506 + hi: 577 + id: 50 + span: + lo: 410 + hi: 577 + id: 51 + span: + lo: 38 + hi: 579 diff --git a/tests/tests/compiler/futures/explicit_type_simple.leo b/tests/tests/compiler/futures/explicit_type_simple.leo new file mode 100644 index 0000000000..afd1cb1b61 --- /dev/null +++ b/tests/tests/compiler/futures/explicit_type_simple.leo @@ -0,0 +1,33 @@ +/* +namespace: Compile +expectation: Pass +*/ +program test.aleo { + mapping foo: u32 => u32; + async transition main_inner(public a: u32, b: u32) -> (u32, Future) { + let c: u32 = a + b; + let f: Future = finalize(1u32); + return (c, f); + } + + async function finalize(a:u32) { + Mapping::set(foo, a, 1u32); + } +} + +// --- Next Program --- // + +import test.aleo; +program basic.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future>) { + let c: u32 = a + b; + let (d, f1): (u32, Future) = test.aleo/main_inner(1u32, 1u32); + let f:Future> = finalize(a, c, f1); + return (c,f); + } + + async function finalize(a: u32, b:u32, f: Future) { + f.await(); + assert_eq(a, b); + } +} \ No newline at end of file diff --git a/tests/tests/compiler/futures/nested.leo b/tests/tests/compiler/futures/nested.leo index 6466ef8dc9..b370617e4b 100644 --- a/tests/tests/compiler/futures/nested.leo +++ b/tests/tests/compiler/futures/nested.leo @@ -35,7 +35,7 @@ program test.aleo { let (y2,f2): (test_dep.aleo/yeets, Future) = test_dep.aleo/main_dep(1u32); let val:u32 = f.0; let f3: Future = finalize_main(f, f2, 1u32); - let total: u32 = f.0 + f2.0; + let total: u32 = f.0 + f2.0 + 1u32; return (total + val + f.0*2u32, f3); } diff --git a/tests/tests/compiler/futures/partial_type_specification.leo b/tests/tests/compiler/futures/partial_type_specification.leo new file mode 100644 index 0000000000..66f51d0389 --- /dev/null +++ b/tests/tests/compiler/futures/partial_type_specification.leo @@ -0,0 +1,103 @@ +/* +namespace: Compile +expectation: Pass +*/ + +// The 'test_dep' program. +program test_dep.aleo { + mapping Yo: u32 => u32; + record yeets { + owner: address, + val: u32, + } + + async transition main_dep(a:u32) -> (yeets, Future) { + let f: Future = finalize_main_dep(a, 1u32); + let l: yeets = yeets {owner: self.caller, val: 1u32}; + return (l, f); + } + + async function finalize_main_dep(a:u32, b:u32) { + Mapping::set(Yo, a, b); + let c:u32 = a + b; + } + + async transition main_dep_2(a:u32) -> (yeets, Future<()>) { + let f: Future<()> = finalize_main_dep_2(); + let l: yeets = yeets {owner: self.caller, val: 1u32}; + return (l, f); + } + + async function finalize_main_dep_2() { + Mapping::set(Yo, 1u32, 1u32); + } +} + +// --- Next Program --- // + +// The 'test' program. +import test_dep.aleo; +program test.aleo { + mapping ayo: u32 => u32; + + async transition main(a:u32)-> (u32, Future) { + let (y,f): (test_dep.aleo/yeets, Future) = test_dep.aleo/main_dep(10u32); + let (y2,f2): (test_dep.aleo/yeets, Future) = test_dep.aleo/main_dep(1u32); + let val:u32 = f.0; + let f3: Future = finalize_main(f, f2, 1u32); + let total: u32 = f.0 + f2.0 + 1u32; + return (total + val + f.0*2u32, f3); + } + + async function finalize_main(f: Future, f2: Future, a: u32) { + // f.await(); + if a == 1u32 { + Future::await(f); + f2.await(); + } + + if a == 2u32 { + //f2.await(); + Mapping::set(ayo, 1u32, 1u32); + } + + let total: u32 = f.0 + f2.0; + Mapping::set(ayo, 1u32, total); + } +} + +// --- Next Program --- // + +// The 'wrapper' program. +import test.aleo; +program wrapper.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future){ + let (val, f): (u32, Future) = test.aleo/main(1u32); + let (val2, f2): (u32, Future) = test.aleo/main(1u32); + let (val3, f3): (u32, Future) = test.aleo/main(1u32); + let f4: Future = finalize_main(f,f2,f3); + return (val, f4); + } + + async function finalize_main(f: Future, f2: Future, f3: Future) { + f.await(); + f2.await(); + f3.await(); + } +} + +// --- Next Program --- // + +import wrapper.aleo; +import test_dep.aleo; +program big_wrapper.aleo { + async transition main(public a: u32, b: u32) -> (u32, Future,Future,u32>,Future,Future,u32>,Future,Future,u32>>>){ + let (val, f): (u32, Future) = wrapper.aleo/main(10u32, 10u32); + let f2:Future = finalize_main(f); + return (f2.0.0.0.0, f2); + } + + async function finalize_main(f: Future) { + f.await(); + } +} \ No newline at end of file diff --git a/tests/tests/parser/future/explicit_future_typing.leo b/tests/tests/parser/future/explicit_future_typing.leo new file mode 100644 index 0000000000..22b3defba1 --- /dev/null +++ b/tests/tests/parser/future/explicit_future_typing.leo @@ -0,0 +1,20 @@ +/* +namespace: Parse +expectation: Pass +*/ + +import hello.aleo; +import bye.aleo; +program test.aleo { + async transition main() -> Future, Future>> { + let f0: Future<()> = bye.aleo/add(); + let f1: Future> = hello.aleo/nested_fn(); + let f2: Future, Future>> = finalize_main(1u32, 1u32, f0, f1); + return f2; + } + async function finalize_main(a: u32, b: u32, f0: Future<()>, f1: Future>) { + f0.await(); + f1.await(); + assert_eq(a,b); + } +} From 1ac7f7f67cbde84adc45b52579b19e0526396071 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:43:03 -0700 Subject: [PATCH 71/80] fmt --- compiler/ast/src/functions/variant.rs | 15 ++---- compiler/ast/src/passes/reconstructor.rs | 2 +- compiler/ast/src/stub/function_stub.rs | 35 +++++++------- compiler/ast/src/types/future.rs | 5 +- compiler/ast/src/types/type_.rs | 15 +++--- compiler/parser/src/parser/context.rs | 16 +++---- compiler/parser/src/parser/expression.rs | 4 +- compiler/parser/src/parser/file.rs | 16 ++----- compiler/parser/src/parser/type_.rs | 17 ++++--- .../src/code_generation/visit_program.rs | 4 +- .../destructuring/destructure_expression.rs | 22 +++++++-- .../function_inlining/inline_expression.rs | 2 +- .../rename_expression.rs | 26 ++++++++++- .../src/type_checking/check_expressions.rs | 46 ++++++++++++------- .../passes/src/type_checking/check_program.rs | 14 ++++-- .../src/type_checking/check_statements.rs | 24 ++++++---- compiler/passes/src/type_checking/checker.rs | 24 ++++++++-- errors/src/errors/parser/parser_errors.rs | 2 +- .../errors/type_checker/type_checker_error.rs | 2 +- .../type_checker/type_checker_warning.rs | 2 +- 20 files changed, 182 insertions(+), 111 deletions(-) diff --git a/compiler/ast/src/functions/variant.rs b/compiler/ast/src/functions/variant.rs index bbbeeec689..c6646aa74a 100644 --- a/compiler/ast/src/functions/variant.rs +++ b/compiler/ast/src/functions/variant.rs @@ -34,25 +34,16 @@ pub enum Variant { impl Variant { /// Returns true if the variant is async. pub fn is_async(self) -> bool { - match self { - Variant::AsyncFunction | Variant::AsyncTransition => true, - _ => false, - } + matches!(self, Variant::AsyncFunction | Variant::AsyncTransition) } /// Returns true if the variant is a transition. pub fn is_transition(self) -> bool { - match self { - Variant::Transition | Variant::AsyncTransition => true, - _ => false, - } + matches!(self, Variant::Transition | Variant::AsyncTransition) } /// Returns true if the variant is a function. pub fn is_function(self) -> bool { - match self { - Variant::Function | Variant::AsyncFunction => true, - _ => false, - } + matches!(self, Variant::AsyncFunction | Variant::Function) } } diff --git a/compiler/ast/src/passes/reconstructor.rs b/compiler/ast/src/passes/reconstructor.rs index 4d8b605c51..c0837a355b 100644 --- a/compiler/ast/src/passes/reconstructor.rs +++ b/compiler/ast/src/passes/reconstructor.rs @@ -155,7 +155,7 @@ pub trait ExpressionReconstructor { fn reconstruct_call(&mut self, input: CallExpression) -> (Expression, Self::AdditionalOutput) { ( Expression::Call(CallExpression { - function: input.function, + function: input.function, arguments: input.arguments.into_iter().map(|arg| self.reconstruct_expression(arg).0).collect(), program: input.program, span: input.span, diff --git a/compiler/ast/src/stub/function_stub.rs b/compiler/ast/src/stub/function_stub.rs index e6e89bd492..8f11573074 100644 --- a/compiler/ast/src/stub/function_stub.rs +++ b/compiler/ast/src/stub/function_stub.rs @@ -44,7 +44,7 @@ use snarkvm::{ FinalizeType::{Future as FutureFinalizeType, Plaintext as PlaintextFinalizeType}, RegisterType::{ExternalRecord, Future, Plaintext, Record}, }, - prelude::{FinalizeType, Network, ValueType}, + prelude::{Network, ValueType}, synthesizer::program::{ClosureCore, CommandTrait, FunctionCore, InstructionTrait}, }; use std::fmt; @@ -83,7 +83,7 @@ impl FunctionStub { #[allow(clippy::too_many_arguments)] pub fn new( annotations: Vec, - is_async: bool, + _is_async: bool, variant: Variant, identifier: Identifier, input: Vec, @@ -103,16 +103,7 @@ impl FunctionStub { _ => Type::Tuple(TupleType::new(output.iter().map(get_output_type).collect())), }; - FunctionStub { - annotations, - variant, - identifier, - input, - output, - output_type, - span, - id, - } + FunctionStub { annotations, variant, identifier, input, output, output_type, span, id } } /// Returns function name. @@ -189,7 +180,11 @@ impl FunctionStub { }), ValueType::Future(_) => Output::Internal(FunctionOutput { mode: Mode::Public, - type_: Type::Future(FutureType::new(Vec::new(), Some(Location::new(Some(program), Identifier::from(function.name()).name)), false)), + type_: Type::Future(FutureType::new( + Vec::new(), + Some(Location::new(Some(program), Identifier::from(function.name()).name)), + false, + )), span: Default::default(), id: Default::default(), }), @@ -273,7 +268,7 @@ impl FunctionStub { pub fn from_finalize, Command: CommandTrait>( function: &FunctionCore, key_name: Symbol, - program: Symbol, + _program: Symbol, ) -> Self { Self { annotations: Vec::new(), @@ -291,10 +286,14 @@ impl FunctionStub { mode: Mode::None, type_: match input.finalize_type() { PlaintextFinalizeType(val) => Type::from_snarkvm(val, key_name), - FutureFinalizeType(val) => Type::Future(FutureType::new(Vec::new(), Some(Location::new( - Some(Identifier::from(val.program_id().name()).name), - Symbol::intern(&format!("finalize/{}", val.resource()))), - ), false)), + FutureFinalizeType(val) => Type::Future(FutureType::new( + Vec::new(), + Some(Location::new( + Some(Identifier::from(val.program_id().name()).name), + Symbol::intern(&format!("finalize/{}", val.resource())), + )), + false, + )), }, span: Default::default(), id: Default::default(), diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 9f5bae7be9..73b7b48923 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -17,8 +17,7 @@ use crate::{Location, Type}; use serde::{Deserialize, Serialize}; -use std::fmt; -use std::fmt::Display; +use std::{fmt}; /// A future type consisting of the type of the inputs. #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] @@ -41,7 +40,7 @@ impl FutureType { pub fn inputs(&self) -> &[Type] { &self.inputs } - + /// Returns the location of the future type. pub fn location(&self) -> &Option { &self.location diff --git a/compiler/ast/src/types/type_.rs b/compiler/ast/src/types/type_.rs index cfe25db33c..c73b225676 100644 --- a/compiler/ast/src/types/type_.rs +++ b/compiler/ast/src/types/type_.rs @@ -96,13 +96,14 @@ impl Type { (Type::Composite(left), Type::Composite(right)) => { left.id.name == right.id.name && left.program == right.program } - (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => - left.location == right.location && - left - .inputs() - .iter() - .zip_eq(right.inputs().iter()) - .all(|(left_type, right_type)| left_type.eq_flat(right_type)), + (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => { + left.location == right.location + && left + .inputs() + .iter() + .zip_eq(right.inputs().iter()) + .all(|(left_type, right_type)| left_type.eq_flat(right_type)) + } _ => false, } } diff --git a/compiler/parser/src/parser/context.rs b/compiler/parser/src/parser/context.rs index cf0db612ce..89b5eeeb5e 100644 --- a/compiler/parser/src/parser/context.rs +++ b/compiler/parser/src/parser/context.rs @@ -253,7 +253,7 @@ impl<'a> ParserContext<'a> { /// Parse a list separated by `,` and delimited by angle brackets. /// Since the `>>` token is ambiguous, we need to create special state checks. - pub (super) fn parse_angle_comma_list( + pub(super) fn parse_angle_comma_list( &mut self, sep: Option, mut f: impl FnMut(&mut Self) -> Result>, @@ -261,11 +261,11 @@ impl<'a> ParserContext<'a> { let (open, close) = Delimiter::AngleBracket.open_close_pair(); let mut list = Vec::new(); let mut trailing = false; - + // Parse opening delimiter. let open_span = self.expect(&open)?; - - while !self.check(&close) && !self.check(&Token::Shr){ + + while !self.check(&close) && !self.check(&Token::Shr) { // Parse the element. We allow inner parser recovery through the `Option`. if let Some(elem) = f(self)? { list.push(elem); @@ -276,9 +276,9 @@ impl<'a> ParserContext<'a> { break; } - trailing = true; + trailing = true; } - + if self.token.token == Token::Shr { return if self.in_angle { self.in_angle = false; @@ -289,10 +289,10 @@ impl<'a> ParserContext<'a> { Ok((list, trailing, open_span + self.prev_token.span)) }; } - + // Parse closing delimiter. let span = open_span + self.expect(&close)?; - + Ok((list, trailing, span)) } diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 3bdba90838..a80e46925b 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -357,7 +357,9 @@ impl ParserContext<'_> { span, id: self.node_builder.next_id(), }))) - } else if let (0, Some(CoreFunction::FutureAwait)) = (args.len(), CoreFunction::from_symbols(sym::Future, method.name)) { + } else if let (0, Some(CoreFunction::FutureAwait)) = + (args.len(), CoreFunction::from_symbols(sym::Future, method.name)) + { Ok(Expression::Access(AccessExpression::AssociatedFunction(AssociatedFunction { variant: Identifier::new(sym::Future, self.node_builder.next_id()), name: method, diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 1cffe90369..916f50e146 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -414,7 +414,10 @@ impl ParserContext<'_> { Token::Function => { (if is_async { Variant::AsyncFunction } else { Variant::Function }, self.expect(&Token::Function)?) } - Token::Transition => (if is_async { Variant::AsyncTransition } else { Variant::Transition }, self.expect(&Token::Transition)?), + Token::Transition => ( + if is_async { Variant::AsyncTransition } else { Variant::Transition }, + self.expect(&Token::Transition)?, + ), _ => self.unexpected("'function', 'transition', or 'inline'")?, }; let name = self.expect_identifier()?; @@ -450,16 +453,7 @@ impl ParserContext<'_> { Ok(( name.name, - Function::new( - annotations, - variant, - name, - inputs, - output, - block, - span, - self.node_builder.next_id(), - ), + Function::new(annotations, variant, name, inputs, output, block, span, self.node_builder.next_id()), )) } } diff --git a/compiler/parser/src/parser/type_.rs b/compiler/parser/src/parser/type_.rs index 853c0b4ccc..2118cae2d0 100644 --- a/compiler/parser/src/parser/type_.rs +++ b/compiler/parser/src/parser/type_.rs @@ -130,20 +130,25 @@ impl ParserContext<'_> { // Note: This is the only place where `Tuple` type is constructed in the parser. _ => Ok((Type::Tuple(TupleType::new(types.into_iter().map(|t| t.0).collect())), span)), } - } - else if self.token.token == Token::Future { + } else if self.token.token == Token::Future { // Parse the `Future` token. let span = self.expect(&Token::Future)?; // Parse the angle bracket list. if self.token.token == Token::Lt { - let (types, _, full_span) = self.parse_angle_comma_list(Some(Token::Comma),|p| p.parse_type().map(Some))?; + let (types, _, full_span) = + self.parse_angle_comma_list(Some(Token::Comma), |p| p.parse_type().map(Some))?; match types.len() { 0 => return Err(ParserError::future_must_have_at_least_one_element(span).into()), // `Future<()>` corresponds to explicitly specifying a `Future` type with no inputs. - 1 if matches!(types.get(0).unwrap().0, Type::Unit) => return Ok((Type::Future(FutureType::new(vec![], None, true)), span + full_span)), - _ => {}, + 1 if matches!(types.first().unwrap().0, Type::Unit) => { + return Ok((Type::Future(FutureType::new(vec![], None, true)), span + full_span)); + } + _ => {} } - Ok((Type::Future(FutureType::new(types.into_iter().map(|t| t.0).collect(), None, true)), span + full_span)) + Ok(( + Type::Future(FutureType::new(types.into_iter().map(|t| t.0).collect(), None, true)), + span + full_span, + )) } else { Ok((Type::Future(Default::default()), span)) } diff --git a/compiler/passes/src/code_generation/visit_program.rs b/compiler/passes/src/code_generation/visit_program.rs index c99ec529fb..93449ab953 100644 --- a/compiler/passes/src/code_generation/visit_program.rs +++ b/compiler/passes/src/code_generation/visit_program.rs @@ -97,7 +97,7 @@ impl<'a> CodeGenerator<'a> { if function.variant == Variant::AsyncTransition { // Set state variables. self.is_transition_function = false; - self.finalize_caller = Some(function.identifier.name.clone()); + self.finalize_caller = Some(function.identifier.name); // Generate code for the associated finalize function. let finalize = &self .symbol_table @@ -227,7 +227,7 @@ impl<'a> CodeGenerator<'a> { format!("{}.aleo/{}.record", input.program_name, input.record) } }; - + writeln!(function_string, " input {register_string} as {type_string};",) .expect("failed to write to string"); } diff --git a/compiler/passes/src/destructuring/destructure_expression.rs b/compiler/passes/src/destructuring/destructure_expression.rs index 61d388a55c..c6ab6fd0dd 100644 --- a/compiler/passes/src/destructuring/destructure_expression.rs +++ b/compiler/passes/src/destructuring/destructure_expression.rs @@ -16,9 +16,18 @@ use crate::Destructurer; -use leo_ast::{AccessExpression, ArrayAccess, Expression, ExpressionReconstructor, Identifier, IntegerType, Literal, MemberAccess, Statement, TupleAccess, Type}; -use leo_ast::Expression::Identifier as IdentifierExpression; -use leo_span::Symbol; +use leo_ast::{ + AccessExpression, + ArrayAccess, + Expression, + ExpressionReconstructor, + IntegerType, + Literal, + Statement, + TupleAccess, + Type, +}; + impl ExpressionReconstructor for Destructurer<'_> { type AdditionalOutput = Vec; @@ -35,7 +44,12 @@ impl ExpressionReconstructor for Destructurer<'_> { ( Expression::Access(AccessExpression::Array(ArrayAccess { array: Box::new(Expression::Identifier(*identifier)), - index: Box::new(Expression::Literal(Literal::Integer(IntegerType::U32, input.index.to_string(), input.span, Default::default()))), + index: Box::new(Expression::Literal(Literal::Integer( + IntegerType::U32, + input.index.to_string(), + input.span, + Default::default(), + ))), span: input.span, id: input.id, })), diff --git a/compiler/passes/src/function_inlining/inline_expression.rs b/compiler/passes/src/function_inlining/inline_expression.rs index 7bcd25ef23..70f22fdb52 100644 --- a/compiler/passes/src/function_inlining/inline_expression.rs +++ b/compiler/passes/src/function_inlining/inline_expression.rs @@ -102,7 +102,7 @@ impl ExpressionReconstructor for FunctionInliner<'_> { (result, inlined_statements) } - _ => (Expression::Call(input), Default::default()), + _ => (Expression::Call(input), Default::default()), } } } diff --git a/compiler/passes/src/static_single_assignment/rename_expression.rs b/compiler/passes/src/static_single_assignment/rename_expression.rs index 32d0c2e971..e24a5eb295 100644 --- a/compiler/passes/src/static_single_assignment/rename_expression.rs +++ b/compiler/passes/src/static_single_assignment/rename_expression.rs @@ -16,7 +16,31 @@ use crate::StaticSingleAssigner; -use leo_ast::{AccessExpression, ArrayAccess, ArrayExpression, AssociatedFunction, BinaryExpression, CallExpression, CastExpression, Composite, Expression, ExpressionConsumer, Identifier, Literal, Location, LocatorExpression, MemberAccess, MethodCall, Statement, StructExpression, StructVariableInitializer, TernaryExpression, TupleAccess, TupleExpression, UnaryExpression, UnitExpression}; +use leo_ast::{ + AccessExpression, + ArrayAccess, + ArrayExpression, + AssociatedFunction, + BinaryExpression, + CallExpression, + CastExpression, + Composite, + Expression, + ExpressionConsumer, + Identifier, + Literal, + Location, + LocatorExpression, + MemberAccess, + Statement, + StructExpression, + StructVariableInitializer, + TernaryExpression, + TupleAccess, + TupleExpression, + UnaryExpression, + UnitExpression, +}; use leo_span::{sym, Symbol}; use indexmap::IndexMap; diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index e594050046..6edc81b227 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -16,8 +16,10 @@ use crate::TypeChecker; -use leo_ast::{*, - Variant::{AsyncFunction, AsyncTransition}}; +use leo_ast::{ + Variant::{AsyncFunction, AsyncTransition}, + *, +}; use leo_errors::{emitter::Handler, TypeCheckerError}; use leo_span::{sym, Span, Symbol}; @@ -101,7 +103,9 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Check core struct name and function. if let Some(core_instruction) = self.get_core_function_call(&access.variant, &access.name) { // Check that operation is not restricted to finalize blocks. - if self.scope_state.variant != Some(Variant::AsyncFunction) && core_instruction.is_finalize_command() { + if self.scope_state.variant != Some(Variant::AsyncFunction) + && core_instruction.is_finalize_command() + { self.emit_err(TypeCheckerError::operation_must_be_in_finalize_block(input.span())); } @@ -615,10 +619,15 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { // Check that the call is valid. // Note that this unwrap is safe since we always set the variant before traversing the body of the function. match self.scope_state.variant.unwrap() { - Variant::AsyncFunction | Variant::Function if !matches!(func.variant, Variant::Inline) => self.emit_err(TypeCheckerError::can_only_call_inline_function(input.span)), - Variant::Transition | Variant::AsyncTransition if matches!(func.variant, Variant::Transition) && input.program.unwrap() == self.scope_state.program_name.unwrap() => self.emit_err(TypeCheckerError::cannot_invoke_call_to_local_transition_function( - input.span, - )), + Variant::AsyncFunction | Variant::Function if !matches!(func.variant, Variant::Inline) => { + self.emit_err(TypeCheckerError::can_only_call_inline_function(input.span)) + } + Variant::Transition | Variant::AsyncTransition + if matches!(func.variant, Variant::Transition) + && input.program.unwrap() == self.scope_state.program_name.unwrap() => + { + self.emit_err(TypeCheckerError::cannot_invoke_call_to_local_transition_function(input.span)) + } _ => {} } @@ -632,7 +641,11 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { let mut ret = if func.variant == AsyncFunction { // Type check after know the input types. if let Some(Type::Future(_)) = expected { - Type::Future(FutureType::new(Vec::new(), Some(Location::new(input.program, ident.name)), false)) + Type::Future(FutureType::new( + Vec::new(), + Some(Location::new(input.program, ident.name)), + false, + )) } else { self.emit_err(TypeCheckerError::return_type_of_finalize_function_is_future(input.span)); Type::Unit @@ -642,14 +655,11 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { let future_type = Type::Future(FutureType::new( // Assumes that external function stubs have been processed. self.finalize_input_types - .get(&Location::new( - input.program, - Symbol::intern(&format!("finalize/{}", ident.name)), - )) + .get(&Location::new(input.program, Symbol::intern(&format!("finalize/{}", ident.name)))) .unwrap() .clone(), Some(Location::new(input.program, ident.name)), - true + true, )); let fully_inferred_type = match func.output_type { Tuple(tup) => Tuple(TupleType::new( @@ -659,7 +669,7 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { .collect::>(), )), Future(_) => future_type, - _ => panic!("Invalid output type for async transition."), + _ => panic!("Invalid output type for async transition."), }; self.assert_and_return_type(fully_inferred_type, expected, input.span()) } else { @@ -778,8 +788,12 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.scope_state.has_called_finalize = true; // Update ret to reflect fully inferred future type. - ret = Type::Future(FutureType::new(inferred_finalize_inputs, Some(Location::new(input.program, ident.name)), true)); - + ret = Type::Future(FutureType::new( + inferred_finalize_inputs, + Some(Location::new(input.program, ident.name)), + true, + )); + // Type check in case the expected type is known. self.assert_and_return_type(ret.clone(), expected, input.span()); } diff --git a/compiler/passes/src/type_checking/check_program.rs b/compiler/passes/src/type_checking/check_program.rs index 4009fce007..ee83c27dc9 100644 --- a/compiler/passes/src/type_checking/check_program.rs +++ b/compiler/passes/src/type_checking/check_program.rs @@ -16,16 +16,17 @@ use crate::{DiGraphError, TypeChecker}; -use leo_ast::{*, - Input::{External, Internal}, - Type::Future, +use leo_ast::{ + Input::{External, Internal}, + Type::Future, + *, }; use leo_errors::{TypeCheckerError, TypeCheckerWarning}; use leo_span::sym; +use leo_ast::Variant::{AsyncFunction, AsyncTransition}; use snarkvm::console::network::{MainnetV0, Network}; use std::collections::HashSet; -use leo_ast::Variant::{AsyncFunction, AsyncTransition}; // TODO: Cleanup logic for tuples. @@ -98,7 +99,10 @@ impl<'a> ProgramVisitor<'a> for TypeChecker<'a> { Future(f) => { // Since we traverse stubs in post-order, we can assume that the corresponding finalize stub has already been traversed. Future(FutureType::new( - finalize_input_map.get(&f.location.clone().unwrap()).unwrap().clone(), f.location.clone(), true)) + finalize_input_map.get(&f.location.clone().unwrap()).unwrap().clone(), + f.location.clone(), + true, + )) } _ => function_input.clone().type_, }, diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 8a46656b7a..45b4171a3c 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -119,11 +119,13 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { let previous_is_conditional = core::mem::replace(&mut self.scope_state.is_conditional, true); // Create scope for checking awaits in `then` branch of conditional. - let current_bst_nodes: Vec = - match self.await_checker.create_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), input.span) { - Ok(nodes) => nodes, - Err(warn) => return self.emit_warning(warn), - }; + let current_bst_nodes: Vec = match self + .await_checker + .create_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), input.span) + { + Ok(nodes) => nodes, + Err(warn) => return self.emit_warning(warn), + }; // Visit block. self.visit_block(&input.then); @@ -132,7 +134,9 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { then_block_has_return = self.scope_state.has_return; // Exit scope for checking awaits in `then` branch of conditional. - let saved_paths = self.await_checker.exit_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), current_bst_nodes); + let saved_paths = self + .await_checker + .exit_then_scope(self.scope_state.variant == Some(Variant::AsyncFunction), current_bst_nodes); if let Some(otherwise) = &input.otherwise { // Set the `has_return` flag for the otherwise-block. @@ -398,7 +402,11 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Fully type the expected return value. if self.scope_state.variant == Some(Variant::AsyncTransition) && self.scope_state.has_called_finalize { let inferred_future_type = match self.finalize_input_types.get(&func.unwrap().finalize.clone().unwrap()) { - Some(types) => Future(FutureType::new(types.clone(), Some(Location::new(self.scope_state.program_name, parent)), true)), + Some(types) => Future(FutureType::new( + types.clone(), + Some(Location::new(self.scope_state.program_name, parent)), + true, + )), None => { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } @@ -417,7 +425,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { return self.emit_err(TypeCheckerError::async_transition_missing_future_to_return(input.span())); } }; - + // Check that the explicit type declared in the function output signature matches the inferred type. if let Some(ty) = inferred { return_type = Some(self.assert_and_return_type(ty, &return_type, input.span())); diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 40b1a9ad9b..83a408929e 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -16,7 +16,23 @@ use crate::{CallGraph, StructGraph, SymbolTable, TypeTable, VariableSymbol, VariableType}; -use leo_ast::{Composite, CompositeType, CoreConstant, CoreFunction, Expression, Function, FutureType, Identifier, IntegerType, Location, MappingType, Mode, Node, Output, Type, Variant}; +use leo_ast::{ + Composite, + CompositeType, + CoreConstant, + CoreFunction, + Expression, + Function, + Identifier, + IntegerType, + Location, + MappingType, + Mode, + Node, + Output, + Type, + Variant, +}; use leo_errors::{emitter::Handler, TypeCheckerError, TypeCheckerWarning}; use leo_span::{Span, Symbol}; @@ -29,9 +45,9 @@ use leo_ast::{ Input::Internal, Mode::Public, Type::{Future, Tuple}, + Variant::AsyncTransition, }; use std::cell::RefCell; -use leo_ast::Variant::AsyncTransition; pub struct TypeChecker<'a> { /// The symbol table for the program. @@ -1308,7 +1324,7 @@ impl<'a> TypeChecker<'a> { // Check that the input parameter is not a record. else if let Type::Composite(struct_) = input_var.type_() { // Note that this unwrap is safe, as the type is defined. - if !function.variant.is_transition() + if !function.variant.is_transition() && self .symbol_table .borrow() @@ -1396,7 +1412,7 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::cannot_have_constant_output_mode(function_output.span)); } // Async transitions must return exactly one future, and it must be in the last position. - if self.scope_state.variant == Some(AsyncTransition) + if self.scope_state.variant == Some(AsyncTransition) && ((index < function.output.len() - 1 && matches!(function_output.type_, Type::Future(_))) || (index == function.output.len() - 1 && !matches!(function_output.type_, Type::Future(_)))) diff --git a/errors/src/errors/parser/parser_errors.rs b/errors/src/errors/parser/parser_errors.rs index d0a1766fa0..ceca7054f0 100644 --- a/errors/src/errors/parser/parser_errors.rs +++ b/errors/src/errors/parser/parser_errors.rs @@ -342,7 +342,7 @@ create_messages!( msg: format!("Cannot create an external record. Records can only be created in the program that they are defined in."), help: None, } - + @formatted future_must_have_at_least_one_element { args: (), diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index fab55c7f15..1ce08794fb 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -515,7 +515,7 @@ create_messages!( msg: format!("Cannot call an external `inline` function."), help: None, } - + @formatted too_many_mappings { args: (max: impl Display), diff --git a/errors/src/errors/type_checker/type_checker_warning.rs b/errors/src/errors/type_checker/type_checker_warning.rs index e5c9f71d50..82b2a3b51e 100644 --- a/errors/src/errors/type_checker/type_checker_warning.rs +++ b/errors/src/errors/type_checker/type_checker_warning.rs @@ -44,7 +44,7 @@ create_messages!( msg: format!("The async function `{name}` is never called by an async transition."), help: None, } - + @formatted max_conditional_block_depth_exceeded { args: (max: impl Display), From e47ddb458eb83204bc1d195fbcec99735cdcabb9 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:52:19 -0700 Subject: [PATCH 72/80] clippy --- compiler/ast/src/types/future.rs | 2 +- compiler/parser/src/parser/file.rs | 3 +-- compiler/passes/src/code_generation/visit_expressions.rs | 1 - compiler/passes/src/common/mod.rs | 2 +- compiler/passes/src/destructuring/destructure_expression.rs | 1 - compiler/passes/src/type_checking/await_checker.rs | 4 ++-- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 73b7b48923..5b47655463 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -17,7 +17,7 @@ use crate::{Location, Type}; use serde::{Deserialize, Serialize}; -use std::{fmt}; +use std::fmt; /// A future type consisting of the type of the inputs. #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] diff --git a/compiler/parser/src/parser/file.rs b/compiler/parser/src/parser/file.rs index 916f50e146..0795207a7f 100644 --- a/compiler/parser/src/parser/file.rs +++ b/compiler/parser/src/parser/file.rs @@ -115,8 +115,7 @@ impl ParserContext<'_> { // Parse the body of the program scope. let mut consts: Vec<(Symbol, ConstDeclaration)> = Vec::new(); - let (mut transitions, mut functions): (Vec<(Symbol, Function)>, Vec<(Symbol, Function)>) = - (Vec::new(), Vec::new()); + let (mut transitions, mut functions) = (Vec::new(), Vec::new()); let mut structs: Vec<(Symbol, Composite)> = Vec::new(); let mut mappings: Vec<(Symbol, Mapping)> = Vec::new(); diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 4d85587b05..15c748470b 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -33,7 +33,6 @@ use leo_ast::{ LocatorExpression, MemberAccess, MethodCall, - Node, StructExpression, TernaryExpression, TupleExpression, diff --git a/compiler/passes/src/common/mod.rs b/compiler/passes/src/common/mod.rs index 806fa90cc4..d3e2feef0e 100644 --- a/compiler/passes/src/common/mod.rs +++ b/compiler/passes/src/common/mod.rs @@ -18,7 +18,7 @@ pub mod assigner; pub use assigner::*; pub mod tree_node; -pub use tree_node::*; +pub use tree_node::ConditionalTreeNode; pub mod graph; pub use graph::*; diff --git a/compiler/passes/src/destructuring/destructure_expression.rs b/compiler/passes/src/destructuring/destructure_expression.rs index c6ab6fd0dd..ae56a1bc17 100644 --- a/compiler/passes/src/destructuring/destructure_expression.rs +++ b/compiler/passes/src/destructuring/destructure_expression.rs @@ -28,7 +28,6 @@ use leo_ast::{ Type, }; - impl ExpressionReconstructor for Destructurer<'_> { type AdditionalOutput = Vec; diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index 082566cdd2..869f44b304 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{ConditionalTreeNode, TreeNode}; +use crate::{ConditionalTreeNode}; use indexmap::IndexSet; use leo_ast::Identifier; use leo_errors::TypeCheckerWarning; @@ -55,7 +55,7 @@ impl AwaitChecker { if futures.is_empty() { self.to_await = Vec::new(); } else { - self.to_await = vec![TreeNode::new(futures.clone())]; + self.to_await = vec![ConditionalTreeNode::new(futures.clone())]; } self.static_to_await = futures; } From ee9cbd912d2739f987093bed58904f7a36ece397 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 9 Apr 2024 13:53:26 -0700 Subject: [PATCH 73/80] write examples using new async syntax --- .../passes/src/type_checking/await_checker.rs | 2 +- compiler/passes/src/type_checking/checker.rs | 6 +++- .../errors/type_checker/type_checker_error.rs | 7 ++++ examples/basic_bank/src/main.leo | 12 +++---- examples/lottery/src/main.leo | 6 ++-- examples/token/src/main.leo | 24 +++++++------- examples/vote/src/main.leo | 33 ++++++++----------- 7 files changed, 47 insertions(+), 43 deletions(-) diff --git a/compiler/passes/src/type_checking/await_checker.rs b/compiler/passes/src/type_checking/await_checker.rs index 869f44b304..c638fb107d 100644 --- a/compiler/passes/src/type_checking/await_checker.rs +++ b/compiler/passes/src/type_checking/await_checker.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use crate::{ConditionalTreeNode}; +use crate::ConditionalTreeNode; use indexmap::IndexSet; use leo_ast::Identifier; use leo_errors::TypeCheckerWarning; diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index 83a408929e..e5c7534e8f 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -1351,9 +1351,13 @@ impl<'a> TypeChecker<'a> { self.emit_err(TypeCheckerError::transition_function_inputs_cannot_be_const(input_var.span())) } // If the function is not a transition function, then check that the parameters do not have an associated mode. - Variant::Function | Variant::AsyncFunction | Variant::Inline if input_var.mode() != Mode::None => { + Variant::Function | Variant::Inline if input_var.mode() != Mode::None => { self.emit_err(TypeCheckerError::regular_function_inputs_cannot_have_modes(input_var.span())) } + // Async functions cannot have private inputs. + Variant::AsyncFunction if input_var.mode() == Mode::Private => { + self.emit_err(TypeCheckerError::async_function_input_cannot_be_private(input_var.span())); + } _ => {} // Do nothing. } diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 1ce08794fb..995ef7541a 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -283,6 +283,13 @@ create_messages!( msg: format!("Standard functions cannot have modes associated with their inputs."), help: Some("Consider removing the mode or using the keyword `transition` instead of `function`.".to_string()), } + + @formatted + async_function_input_cannot_be_private { + args: (), + msg: format!("Async functions cannot have private inputs."), + help: Some("Use a `public` modifier to the input variable declaration or remove the visibility modifier entirely.".to_string()), + } @formatted struct_or_record_cannot_contain_record { diff --git a/examples/basic_bank/src/main.leo b/examples/basic_bank/src/main.leo index 4e7c77c23b..df7719ed86 100644 --- a/examples/basic_bank/src/main.leo +++ b/examples/basic_bank/src/main.leo @@ -28,7 +28,7 @@ program basic_bank.aleo { // Returns a new Token with the remaining amount of money. // - `token` : A record containing tokens to deposit. // - `amount`: The amount of tokens to deposit. - transition deposit(token: Token, amount: u64) -> Token { + async transition deposit(token: Token, amount: u64) -> (Token, Future) { let difference: u64 = token.amount - amount; let remaining: Token = Token { @@ -39,13 +39,13 @@ program basic_bank.aleo { // Compute the hash of the token owner. let hash: field = BHP256::hash_to_field(token.owner); - return remaining then finalize(hash, amount); + return (remaining, finalize_deposit(hash, amount)); } // Updates on-chain state by the amount of tokens deposited. // - `hash` : The hash of the token owner. // - `amount`: The amount of tokens that were deposited. - finalize deposit(hash: field, amount: u64) { + async function finalize_deposit(hash: field, amount: u64) { let current_amount: u64 = Mapping::get_or_use(balances, hash, 0u64); Mapping::set(balances, hash, current_amount + amount); } @@ -56,7 +56,7 @@ program basic_bank.aleo { // - `rate` : The compound interest rate. // - `periods` : The number of periods to compound the interest over. // Requires that the function caller is the bank. - transition withdraw(recipient: address, amount: u64, rate: u64, periods: u64) -> Token { + async transition withdraw(recipient: address, amount: u64, rate: u64, periods: u64) -> (Token, Future) { assert_eq(self.caller, aleo1t0uer3jgtsgmx5tq6x6f9ecu8tr57rzzfnc2dgmcqldceal0ls9qf6st7a); let hash: field = BHP256::hash_to_field(recipient); @@ -67,13 +67,13 @@ program basic_bank.aleo { amount: total, }; - return token then finalize(hash, amount); + return (token, finalize_withdraw(hash, amount)); } // Updates on-chain state by the amount of tokens withdrawn. // - `hash` : The hash of the token owner. // - `amount`: The amount of tokens that were withdrawn. - finalize withdraw(hash: field, amount: u64) { + async function finalize_withdraw(hash: field, amount: u64) { let current_amount: u64 = Mapping::get_or_use(balances, hash, 0u64); Mapping::set(balances, hash, current_amount - amount); } diff --git a/examples/lottery/src/main.leo b/examples/lottery/src/main.leo index cb450a1dd9..27485fdeda 100644 --- a/examples/lottery/src/main.leo +++ b/examples/lottery/src/main.leo @@ -7,14 +7,14 @@ program lottery.aleo { owner: address, } - transition play() -> Ticket { + async transition play() -> (Ticket, Future) { let ticket: Ticket = Ticket { owner: self.caller, }; - return ticket then finalize(); + return (ticket, finalize_play()); } - finalize play() { + async function finalize_play() { // Check that the lottery has not expired. assert(block.height <= 1000u32); diff --git a/examples/token/src/main.leo b/examples/token/src/main.leo index 120c6648fd..7746348eec 100644 --- a/examples/token/src/main.leo +++ b/examples/token/src/main.leo @@ -13,12 +13,12 @@ program token.aleo { /* Mint */ // The function `mint_public` issues the specified token amount for the token receiver publicly on the network. - transition mint_public(public receiver: address, public amount: u64) { + async transition mint_public(public receiver: address, public amount: u64) -> Future { // Mint the tokens publicly by invoking the computation on-chain. - return then finalize(receiver, amount); + return finalize_mint_public(receiver, amount); } - finalize mint_public(public receiver: address, public amount: u64) { + async function finalize_mint_public(public receiver: address, public amount: u64) { // Increments `account[receiver]` by `amount`. // If `account[receiver]` does not exist, it will be created. // If `account[receiver] + amount` overflows, `mint_public` is reverted. @@ -35,12 +35,12 @@ program token.aleo { } /* Transfer */ - transition transfer_public(public receiver: address, public amount: u64) { + async transition transfer_public(public receiver: address, public amount: u64) -> Future { // Transfer the tokens publicly, by invoking the computation on-chain. - return then finalize(self.caller, receiver, amount); + return finalize_transfer_public(self.caller, receiver, amount); } - finalize transfer_public(public sender: address, public receiver: address, public amount: u64) { + async function finalize_transfer_public(public sender: address, public receiver: address, public amount: u64) { // Decrements `account[sender]` by `amount`. // If `account[sender]` does not exist, it will be created. // If `account[sender] - amount` underflows, `transfer_public` is reverted. @@ -78,7 +78,7 @@ program token.aleo { // The function `transfer_private_to_public` turns a specified token amount from a token record into public tokens for the specified receiver. // This function preserves privacy for the sender's record, however it publicly reveals the token receiver and the token amount. - transition transfer_private_to_public(sender: token, public receiver: address, public amount: u64) -> token { + async transition transfer_private_to_public(sender: token, public receiver: address, public amount: u64) -> (token, Future) { // Checks the given token record has a sufficient token amount. // This `sub` operation is safe, and the proof will fail if an underflow occurs. // `difference` holds the change amount for the caller. @@ -92,10 +92,10 @@ program token.aleo { // Output the sender's change record. // Increment the token amount publicly for the token receiver. - return remaining then finalize(receiver, amount); + return (remaining, finalize_transfer_private_to_public(receiver, amount)); } - finalize transfer_private_to_public(public receiver: address, public amount: u64) { + async function finalize_transfer_private_to_public(public receiver: address, public amount: u64) { // Increments `account[receiver]` by `amount`. // If `account[receiver]` does not exist, it will be created. // If `account[receiver] + amount` overflows, `transfer_private_to_public` is reverted. @@ -105,7 +105,7 @@ program token.aleo { // The function `transfer_public_to_private` turns a specified token amount from `account` into a token record for the specified receiver. // This function preserves privacy for the receiver's record, however it publicly reveals the caller and the specified token amount. - transition transfer_public_to_private(public receiver: address, public amount: u64) -> token { + async transition transfer_public_to_private(public receiver: address, public amount: u64) -> (token, Future) { // Produces a token record for the token receiver. let transferred: token = token { owner: receiver, @@ -114,10 +114,10 @@ program token.aleo { // Output the receiver's record. // Decrement the token amount of the caller publicly. - return transferred then finalize(self.caller, amount); + return (transferred, finalize_transfer_public_to_private(self.caller, amount)); } - finalize transfer_public_to_private(public sender: address, public amount: u64) { + async function finalize_transfer_public_to_private(public sender: address, public amount: u64) { // Decrements `account[sender]` by `amount`. // If `account[sender]` does not exist, it will be created. // If `account[sender] - amount` underflows, `transfer_public_to_private` is reverted. diff --git a/examples/vote/src/main.leo b/examples/vote/src/main.leo index 435902dbff..d31f6efa77 100644 --- a/examples/vote/src/main.leo +++ b/examples/vote/src/main.leo @@ -31,7 +31,7 @@ program vote.aleo { mapping disagree_votes: field => u64; // Propose a new proposal to vote on. - transition propose(public info: ProposalInfo) -> Proposal { + async transition propose(public info: ProposalInfo) -> (Proposal, Future) { // Authenticate proposer. assert_eq(self.caller, info.proposer); @@ -41,52 +41,45 @@ program vote.aleo { // Return a new record for the proposal. // Finalize the proposal id. - return Proposal { - owner: self.caller, - id, - info, - } then finalize(id); + return (Proposal { owner: self.caller, id, info }, finalize_propose(id)); } // Create a new proposal in the "tickets" mapping. - finalize propose(public id: field) { + async function finalize_propose(public id: field) { Mapping::set(tickets, id, 0u64); } // Create a new ticket to vote with. - transition new_ticket( + async transition new_ticket( public pid: field, public voter: address, - ) -> Ticket { + ) -> (Ticket, Future) { // Finalize the proposal id for the ticket. - return Ticket { - owner: voter, - pid, - } then finalize(pid); + return (Ticket { owner: voter, pid }, finalize_new_ticket(pid)); } // Create a new ticket on a proposal in the "tickets" mapping. - finalize new_ticket(public pid: field) { + async function finalize_new_ticket(public pid: field) { let current: u64 = Mapping::get_or_use(tickets, pid, 0u64); Mapping::set(tickets, pid, current + 1u64); } // Vote privately to agree with a proposal. - transition agree(ticket: Ticket) { + async transition agree(ticket: Ticket) -> Future { // Finalize this vote. - return then finalize(ticket.pid); + return finalize_agree(ticket.pid); } - finalize agree(public pid: field) { + async function finalize_agree(public pid: field) { // Publicly increment the number of agree votes. let current: u64 = Mapping::get_or_use(agree_votes, pid, 0u64); Mapping::set(agree_votes, pid, current + 1u64); } // Vote privately to disagree with a proposal. - transition disagree(ticket: Ticket) { + async transition disagree(ticket: Ticket) -> Future { // Finalize this vote. - return then finalize(ticket.pid); + return finalize_disagree(ticket.pid); } - finalize disagree(pid: field) { + async function finalize_disagree(pid: field) { // Publicly increment the number of disagree votes. let current: u64 = Mapping::get_or_use(disagree_votes, pid, 0u64); Mapping::set(disagree_votes, pid, current + 1u64); From 915ced57bd413b7efa2422fa4a36dc4244feb736 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 10 Apr 2024 11:48:41 -0700 Subject: [PATCH 74/80] Switch explicit future typing syntax to match rust --- compiler/ast/src/types/future.rs | 2 +- compiler/parser/src/parser/context.rs | 48 ----- compiler/parser/src/parser/type_.rs | 18 +- compiler/parser/src/tokenizer/lexer.rs | 3 +- compiler/parser/src/tokenizer/token.rs | 6 +- compiler/span/src/symbol.rs | 1 + errors/src/errors/parser/parser_errors.rs | 7 - .../futures/explicit_return_type_fail.out | 2 +- .../compiler/futures/explicit_type_simple.out | 40 ++-- .../futures/future_not_all_awaited_fail.out | 2 +- ...ture_not_all_passed_to_async_call_fail.out | 2 +- .../futures/partial_type_specification.out | 80 +++---- .../parser/future/explicit_future_typing.out | 204 +++++++++--------- .../compiler/futures/explicit_type_simple.leo | 12 +- .../futures/partial_type_specification.leo | 10 +- .../parser/future/explicit_future_typing.leo | 13 +- 16 files changed, 190 insertions(+), 260 deletions(-) diff --git a/compiler/ast/src/types/future.rs b/compiler/ast/src/types/future.rs index 5b47655463..8f1dd896e1 100644 --- a/compiler/ast/src/types/future.rs +++ b/compiler/ast/src/types/future.rs @@ -55,6 +55,6 @@ impl Default for crate::FutureType { impl fmt::Display for crate::FutureType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "Future<{}>", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) + write!(f, "Future", self.inputs.iter().map(|x| x.to_string()).collect::>().join(",")) } } diff --git a/compiler/parser/src/parser/context.rs b/compiler/parser/src/parser/context.rs index 89b5eeeb5e..90db26a4b2 100644 --- a/compiler/parser/src/parser/context.rs +++ b/compiler/parser/src/parser/context.rs @@ -41,8 +41,6 @@ pub(crate) struct ParserContext<'a> { pub(crate) disallow_struct_construction: bool, /// The name of the program being parsed. pub(crate) program_name: Option, - /// Whether traversing an ambiguous Shr token. - pub in_angle: bool, } /// Dummy span used to appease borrow checker. @@ -65,7 +63,6 @@ impl<'a> ParserContext<'a> { token, tokens, program_name: None, - in_angle: false, }; p.bump(); p @@ -251,51 +248,6 @@ impl<'a> ParserContext<'a> { self.parse_list(Delimiter::Bracket, Some(Token::Comma), f) } - /// Parse a list separated by `,` and delimited by angle brackets. - /// Since the `>>` token is ambiguous, we need to create special state checks. - pub(super) fn parse_angle_comma_list( - &mut self, - sep: Option, - mut f: impl FnMut(&mut Self) -> Result>, - ) -> Result<(Vec, bool, Span)> { - let (open, close) = Delimiter::AngleBracket.open_close_pair(); - let mut list = Vec::new(); - let mut trailing = false; - - // Parse opening delimiter. - let open_span = self.expect(&open)?; - - while !self.check(&close) && !self.check(&Token::Shr) { - // Parse the element. We allow inner parser recovery through the `Option`. - if let Some(elem) = f(self)? { - list.push(elem); - } - // Parse the separator, if any. - if sep.as_ref().filter(|sep| !self.eat(sep)).is_some() { - trailing = false; - break; - } - - trailing = true; - } - - if self.token.token == Token::Shr { - return if self.in_angle { - self.in_angle = false; - let end_span = self.expect(&Token::Shr)?; - Ok((list, trailing, open_span + end_span)) - } else { - self.in_angle = true; - Ok((list, trailing, open_span + self.prev_token.span)) - }; - } - - // Parse closing delimiter. - let span = open_span + self.expect(&close)?; - - Ok((list, trailing, span)) - } - /// Returns true if the current token is `(`. pub(super) fn peek_is_left_par(&self) -> bool { matches!(self.token.token, Token::LeftParen) diff --git a/compiler/parser/src/parser/type_.rs b/compiler/parser/src/parser/type_.rs index 2118cae2d0..fcb70dbfcc 100644 --- a/compiler/parser/src/parser/type_.rs +++ b/compiler/parser/src/parser/type_.rs @@ -133,18 +133,16 @@ impl ParserContext<'_> { } else if self.token.token == Token::Future { // Parse the `Future` token. let span = self.expect(&Token::Future)?; - // Parse the angle bracket list. + // Parse the explicit future type, e.g. `Future`, `Future)>` etc. if self.token.token == Token::Lt { + // Expect the sequence `<`, `Fn`. + self.expect(&Token::Lt)?; + self.expect(&Token::Fn)?; + // Parse the parenthesis list of function arguments. let (types, _, full_span) = - self.parse_angle_comma_list(Some(Token::Comma), |p| p.parse_type().map(Some))?; - match types.len() { - 0 => return Err(ParserError::future_must_have_at_least_one_element(span).into()), - // `Future<()>` corresponds to explicitly specifying a `Future` type with no inputs. - 1 if matches!(types.first().unwrap().0, Type::Unit) => { - return Ok((Type::Future(FutureType::new(vec![], None, true)), span + full_span)); - } - _ => {} - } + self.parse_paren_comma_list(|p| p.parse_type().map(Some))?; + // Expect the closing `>`. + self.expect(&Token::Gt)?; Ok(( Type::Future(FutureType::new(types.into_iter().map(|t| t.0).collect(), None, true)), span + full_span, diff --git a/compiler/parser/src/tokenizer/lexer.rs b/compiler/parser/src/tokenizer/lexer.rs index edb0cf3402..fbe5bb7864 100644 --- a/compiler/parser/src/tokenizer/lexer.rs +++ b/compiler/parser/src/tokenizer/lexer.rs @@ -393,9 +393,10 @@ impl Token { "else" => Token::Else, "false" => Token::False, "field" => Token::Field, - "Future" => Token::Future, + "Fn" => Token::Fn, "for" => Token::For, "function" => Token::Function, + "Future" => Token::Future, "group" => Token::Group, "i8" => Token::I8, "i16" => Token::I16, diff --git a/compiler/parser/src/tokenizer/token.rs b/compiler/parser/src/tokenizer/token.rs index 627f3f8ed2..6ca8d25d42 100644 --- a/compiler/parser/src/tokenizer/token.rs +++ b/compiler/parser/src/tokenizer/token.rs @@ -118,6 +118,7 @@ pub enum Token { Const, Constant, Else, + Fn, For, Function, Future, @@ -163,6 +164,7 @@ pub const KEYWORD_TOKENS: &[Token] = &[ Token::Else, Token::False, Token::Field, + Token::Fn, Token::For, Token::Function, Token::Future, @@ -352,6 +354,7 @@ impl fmt::Display for Token { Const => write!(f, "const"), Constant => write!(f, "constant"), Else => write!(f, "else"), + Fn => write!(f, "Fn"), For => write!(f, "for"), Function => write!(f, "function"), Future => write!(f, "Future"), @@ -384,8 +387,6 @@ pub enum Delimiter { Brace, /// `[ ... ]` Bracket, - /// `< ... >` - AngleBracket, } impl Delimiter { @@ -395,7 +396,6 @@ impl Delimiter { Self::Parenthesis => (Token::LeftParen, Token::RightParen), Self::Brace => (Token::LeftCurly, Token::RightCurly), Self::Bracket => (Token::LeftSquare, Token::RightSquare), - Self::AngleBracket => (Token::Lt, Token::Gt), } } } diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index aa5e2acc47..1a1f9ec554 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -215,6 +215,7 @@ symbols! { i64, i128, Future, + Fn, record, scalar, signature, diff --git a/errors/src/errors/parser/parser_errors.rs b/errors/src/errors/parser/parser_errors.rs index ceca7054f0..ec25c7676e 100644 --- a/errors/src/errors/parser/parser_errors.rs +++ b/errors/src/errors/parser/parser_errors.rs @@ -342,11 +342,4 @@ create_messages!( msg: format!("Cannot create an external record. Records can only be created in the program that they are defined in."), help: None, } - - @formatted - future_must_have_at_least_one_element { - args: (), - msg: "Future type must have at least one element.".to_string(), - help: Some("Write `Future<()>` to explicitly type a future with no inputs.".to_string()), - } ); diff --git a/tests/expectations/compiler/futures/explicit_return_type_fail.out b/tests/expectations/compiler/futures/explicit_return_type_fail.out index 0659b83f44..6c490355b8 100644 --- a/tests/expectations/compiler/futures/explicit_return_type_fail.out +++ b/tests/expectations/compiler/futures/explicit_return_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372105]: An async function is not allowed to return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372035]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n" + - "Error [ETYC0372106]: An async function is not allowed to return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372036]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | async function finalize() -> Future {\n 11 | Mapping::set(foo, 1u32, 1u32);\n 12 | }\n | ^\n" diff --git a/tests/expectations/compiler/futures/explicit_type_simple.out b/tests/expectations/compiler/futures/explicit_type_simple.out index 235c904958..4db2381eb8 100644 --- a/tests/expectations/compiler/futures/explicit_type_simple.out +++ b/tests/expectations/compiler/futures/explicit_type_simple.out @@ -3,29 +3,29 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9279257b40d37c0e1961af83f3e1acde2f52d54c145897aea5a349c37def66b4 - type_checked_symbol_table: f90ce098a43c8b3fcabd7c3a353583aa221f2810323f31fe84b216957a3c9087 - unrolled_symbol_table: f90ce098a43c8b3fcabd7c3a353583aa221f2810323f31fe84b216957a3c9087 - initial_ast: 8dc231f37bdd85dffb66f51b31a19446fa0599d27d9eca8ffbcd8bb5324ed022 - unrolled_ast: 8dc231f37bdd85dffb66f51b31a19446fa0599d27d9eca8ffbcd8bb5324ed022 - ssa_ast: 9785b6d2e7976362005d90e43686f6d745fbaac6506ac460e58dbc51810417db - flattened_ast: 94fe8677c4a42c91191134fa01f3b8a6b1c792688697588b8799bd7bceed1e32 - destructured_ast: 935907ba17a4f13d3be99253cbd3518b71de08231777b120cd73f4dadc33b915 - inlined_ast: c1eb8ca95e55c34db66be67af606298eb3fe746efedb0be40f656f616d892aca - dce_ast: c1eb8ca95e55c34db66be67af606298eb3fe746efedb0be40f656f616d892aca + - initial_symbol_table: b111e8cf63f297807a2aafff5bb852ee255e5ea82bcc22360036c5aa4e6bad35 + type_checked_symbol_table: ae5038734243d9f2acd7523102b4241a28b09c2dcae63e7382dbb40804edacda + unrolled_symbol_table: ae5038734243d9f2acd7523102b4241a28b09c2dcae63e7382dbb40804edacda + initial_ast: d6df8937e830f774c35520f71e1a43a82a538d4a568072bd6f640a66385e7529 + unrolled_ast: d6df8937e830f774c35520f71e1a43a82a538d4a568072bd6f640a66385e7529 + ssa_ast: 7d7b6c58283cd017d101a05fe02db9984ad718ed3be60597a72bce99d6de953a + flattened_ast: d58f7a2d00560dcacdbb17978cd46699c34811cbcd8f434be26ae26d3c951f78 + destructured_ast: e2b26bc7e984cb037abe6e334962d82494c774cf7fcb1c29dd3e8854eac01581 + inlined_ast: 2f8c78e1f400520caa3a00b2c5ee005bf198da0fc32978f2763454e134cf9382 + dce_ast: 2f8c78e1f400520caa3a00b2c5ee005bf198da0fc32978f2763454e134cf9382 bytecode: fcafcc5b4dca1daebcb7e7f97cce06bcd129c54677e310c424a255abd3132732 errors: "" warnings: "" - - initial_symbol_table: dd59083407448c97a09123813ea7524145ec603008203abf7a2fc605727e9bc3 - type_checked_symbol_table: ce25c6c79d50b7e9aa7e5cba26c2da79b3d88c6ece72986597e2ac2c1e0efb9d - unrolled_symbol_table: ce25c6c79d50b7e9aa7e5cba26c2da79b3d88c6ece72986597e2ac2c1e0efb9d - initial_ast: 647e31f999ac4a2d9f940105a1691b2c2c352f21bdccf63ea6efe453388a4e7b - unrolled_ast: abf2c6aa935c71ccf6c55858101c2dc1d78711a5e878c32511a540a026a12de2 - ssa_ast: 7aa909c35d1f21c3cdc80a53d1abbdfa6762900d3b8919133d88df58b76588bb - flattened_ast: 4990047c31b4a0b043a2c1dae97bbf6ad35b4eddda20865257b64b71f872733d - destructured_ast: 057fce28aaf4a88c2fa3185709ee26cae31ebdf78f44d6533f42c4363e539f56 - inlined_ast: f7a75c6db6732d49a5315c61089eeb33a030010eb43bb03eee1a881cbf21babf - dce_ast: 3e1a1aebb859934d30eff9bb14c33997bcfe64fc702f6e775f7a07d64889043a + - initial_symbol_table: cf8902b50e9aa0275c5d8795fb204b6efa0bdb7ed916c74b3003e534b6ca0c73 + type_checked_symbol_table: 9a42f42dcaff38603884cf1d7e1ecbf4b35638055610f5421d659e4fe64ddeea + unrolled_symbol_table: 9a42f42dcaff38603884cf1d7e1ecbf4b35638055610f5421d659e4fe64ddeea + initial_ast: 1ec1379f994c84bc3c06c64ca4d2bf88f4d715c13405619c38e6ad124b4abc94 + unrolled_ast: 302979e71a78ec66080a873821d87e9bf94fbf5eb251172af4a8c247dd606ced + ssa_ast: ea61e2019e0ec944f5e8c0b7dd921f0f616cd4624cd275c9812efba2f97bae16 + flattened_ast: 48d700cba9e550bfa26604e05cdf07391da27b22d02169a061c9da70fc54be9c + destructured_ast: 1f8006a7e2720c288d49ec461f95004ac65c3061b20bd0d95101a2aa8ffd29c9 + inlined_ast: 73756c3e65d06da957eefb4f207862457b7df4509eabe128588be661f8a0a5d5 + dce_ast: bc1a5b58cb752f2f1902164df6cfc0d0f9aedece47c7103040b7b097e5899d2d bytecode: 1619c1b8a3e185454210bc8c9433ceec86833904810bba242398f28ea7d99d81 errors: "" warnings: "" diff --git a/tests/expectations/compiler/futures/future_not_all_awaited_fail.out b/tests/expectations/compiler/futures/future_not_all_awaited_fail.out index 428888c4ff..6a3a99570f 100644 --- a/tests/expectations/compiler/futures/future_not_all_awaited_fail.out +++ b/tests/expectations/compiler/futures/future_not_all_awaited_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372092]: The following futures were never awaited: f4\n --> compiler-test:12:5\n |\n 12 | async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future, f5: Future) {\n 13 | f1.await();\n 14 | f2.await();\n 15 | f3.await();\n 16 | f0.await();\n 17 | f5.await();\n 18 | }\n | ^\n |\n = Ex: for `f: Future` call `f.await()` to await a future.\n" + - "Error [ETYC0372093]: The following futures were never awaited: f4\n --> compiler-test:12:5\n |\n 12 | async function finalize_foo(f0: Future, f1: Future, f2: Future, f3: Future, f4: Future, f5: Future) {\n 13 | f1.await();\n 14 | f2.await();\n 15 | f3.await();\n 16 | f0.await();\n 17 | f5.await();\n 18 | }\n | ^\n |\n = Ex: for `f: Future` call `f.await()` to await a future.\n" diff --git a/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out b/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out index e03fb9b989..cc7eddfded 100644 --- a/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out +++ b/tests/expectations/compiler/futures/future_not_all_passed_to_async_call_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372103]: Not all futures were consumed: f1\n --> compiler-test:16:16\n |\n 16 | return finalize_foo(f0, f3, f2, f5, f4);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Make sure all futures are consumed exactly once. Consume by passing to an async function call.\n" + - "Error [ETYC0372104]: Not all futures were consumed: f1\n --> compiler-test:16:16\n |\n 16 | return finalize_foo(f0, f3, f2, f5, f4);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Make sure all futures are consumed exactly once. Consume by passing to an async function call.\n" diff --git a/tests/expectations/compiler/futures/partial_type_specification.out b/tests/expectations/compiler/futures/partial_type_specification.out index 51428d6a6e..1a231e3915 100644 --- a/tests/expectations/compiler/futures/partial_type_specification.out +++ b/tests/expectations/compiler/futures/partial_type_specification.out @@ -3,55 +3,55 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 5ca921ebf6db69e2cc02b89b751bc97e9b60d165d1a9d438cb8f3c2ff2e0ca01 - type_checked_symbol_table: a029bd3510b56cc1c678fc8b82269373d79a29fe9c34e5350997e5672f339b6d - unrolled_symbol_table: a029bd3510b56cc1c678fc8b82269373d79a29fe9c34e5350997e5672f339b6d - initial_ast: 9da79a0ee0cf6e4b5a8c7ca9943aa33954e0a25fa8c61a76d71b2fd65e0c95fd - unrolled_ast: 9da79a0ee0cf6e4b5a8c7ca9943aa33954e0a25fa8c61a76d71b2fd65e0c95fd - ssa_ast: bd828c1d5976f030a44c93f644f5eed451df9fda0058b28eba368bc28bb97411 - flattened_ast: 6f2cbd528ac76cecc014828cb79ea10867f9662b8e6bea422ec02e4d7516708a - destructured_ast: 1e81877f5b1496c21fbd5c8771112fb2f2c58c2061ba8bbda8bed4b6fa653dc7 - inlined_ast: ab4e6709e65c15e1c4b649c58cf2f76dc76fbba0b995deefbbda466b74060df8 - dce_ast: deee914f1ab39447896c26612c3fcac3ce451006de441ea3f0b68acd85ce2984 + - initial_symbol_table: f7fdb56f570b11a60163e88b79615e5035ffcb2a867ac550e133601aa184f776 + type_checked_symbol_table: 117445b864ede05083c647516fed1fe7b5bb08f7d8ae4c0d5b29bd4bbe4a8a83 + unrolled_symbol_table: 117445b864ede05083c647516fed1fe7b5bb08f7d8ae4c0d5b29bd4bbe4a8a83 + initial_ast: 5324a2e889b56a4a9295b0798a5c95421f7a294ba00849ff653bae8157632a2b + unrolled_ast: 5324a2e889b56a4a9295b0798a5c95421f7a294ba00849ff653bae8157632a2b + ssa_ast: 5e6c15466f6b9fafb4c6da148a4b0929bef1e9a4a4c68bd04b0c607c6a94a5ce + flattened_ast: c11410be9ab5755f83f226b7cc12a5d3b91a1cc2092f5399679438fca54015c5 + destructured_ast: 297b5a92d869204140aa1356bb5d9287dfc615858677a5a46e591696a1ac6211 + inlined_ast: fa01682672b72f1bd800e486ba42ddd425bd51e4932257cb98be2894a0a72467 + dce_ast: 6c04d1612560feccd448b5d1197bcdd9ea21424ce57bd60e5f1a4e9c1151fdf6 bytecode: d207ac4b2d723295d2e715b2ea29f26bf8adcddbe41b4d5a036b69998a0ecfd6 errors: "" warnings: "" - - initial_symbol_table: 809c42b30e0aa18e10707d26ca124b7a008ad47b530ed3411d5ec106e5b8928f - type_checked_symbol_table: 3fea8d5bc236a4b0d4bb7e0740d96464201e1833924aeb5af7f63250a630043c - unrolled_symbol_table: 3fea8d5bc236a4b0d4bb7e0740d96464201e1833924aeb5af7f63250a630043c - initial_ast: 4f8c54f004b2a2adb1759f6a680a0d2b5f42b4859c85dc96e7f044bdc916124c - unrolled_ast: ea3e0f9285420a4b9ff57d6bea336b52b49ca576cda92d55df693c2bed3503de - ssa_ast: b5a6e70c033e9459b2c85ea6893d2875d15450eb79eaec3365dede48d024805e - flattened_ast: 89043f365ab200b9543f86c53f1d44068fd77e1c66740c7efb122bff7d89aa68 - destructured_ast: deae4cb5f9a7aa806132db62b96f3004f7a6c6995c0422a069be6709371e0efe - inlined_ast: ae39454ac9ace8258a9cc4c1d24d1f5afce3537fa0d673789cd70ecf81a1c448 - dce_ast: 7caa74de23c64943760519804e2b52abb650c3b0c85ac861f780ed94b6ab5553 + - initial_symbol_table: e3a5ea7efb8779cee70e77682e6ff6b756cfd327bef9f0105bf25ccd903ce367 + type_checked_symbol_table: d89fe0ddf84a2daa9a99225042afaa8a8298433c317595a1e8ef17b72afbb690 + unrolled_symbol_table: d89fe0ddf84a2daa9a99225042afaa8a8298433c317595a1e8ef17b72afbb690 + initial_ast: 926bf82b8c3c6646039637654d54ed2ec4ff7b151dc5a8a75649191db4ebc954 + unrolled_ast: 2d4a62c7a0c6cca1ffba89b2667727d96df7a354979bcecb5836fd2cc47a2525 + ssa_ast: c2edabe8988c41d2a5aa8a4703f06227c6537031266f9360492c864b92173fc4 + flattened_ast: c892b63b62194f1fe30519fa05e03a84cc722ee4bee8fc106d9e3aa604451630 + destructured_ast: 583712cc94400864eb1bba5ad15c531e7090faab0ed5087e64aeda2f6d495b75 + inlined_ast: 9932cd135f915f22cf860eff58f1dc64ab9f4909ff3945e916406b7f1b6b058f + dce_ast: e9630c0fff101955e9b62cae4d86fa8d8374b3aad42309bf2ba78fdd9fb15f32 bytecode: 06118b170bd8fcf39f203c974615c368081e6bceae6dbe0d6aaa125d76bd9ac2 errors: "" warnings: "Warning [WTYC0372000]: Not all paths through the function await all futures. 2/4 paths contain at least one future that is never awaited.\n --> compiler-test:17:5\n |\n 17 | async function finalize_main(f: Future, f2: Future, a: u32) {\n 18 | // f.await();\n 19 | if a == 1u32 {\n 20 | Future::await(f);\n 21 | f2.await();\n 22 | }\n 23 | \n 24 | if a == 2u32 {\n 25 | //f2.await();\n 26 | Mapping::set(ayo, 1u32, 1u32);\n 27 | }\n 28 | \n 29 | let total: u32 = f.0 + f2.0;\n 30 | Mapping::set(ayo, 1u32, total);\n 31 | }\n | ^\n |\n = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag." - - initial_symbol_table: 84aba10c7682941bab0b7b92a1fd7f8cb05c2eddd51d24442e7b64fbc2736ea0 - type_checked_symbol_table: da016b22fa88fd196887edce8926a68f9d91e7efdfde858c1e3c6fdc1fe408b6 - unrolled_symbol_table: da016b22fa88fd196887edce8926a68f9d91e7efdfde858c1e3c6fdc1fe408b6 - initial_ast: b4046e718278252f50544068d0b57f7808cfff868a2ae91abbcce54cf10ec2f8 - unrolled_ast: f87f1be959ef071751866dc975bd567c2b39cc1093b445ae2916936682321ef7 - ssa_ast: 82ef9fa0b5d9d1b9151e986d5eebfa05cf49951500fd7c57069b10fcd6d748ed - flattened_ast: 59da77b0c3cd83f4d12666a4035a84de4e7c7db2ac3b06900a3541f17460e257 - destructured_ast: b421851c7c70eba122aa498ecebce6e2880bcb81a3a7881dda638d749b0c532b - inlined_ast: c8213bc414393c65cb13533b03aedb54c12a10cc9ca6b67869d0f6af4b74d037 - dce_ast: 9cf03913d5f9c4ec1b24912359dae5e64c2c7aea89bddbfd442482d84213ed77 + - initial_symbol_table: e0401fd594efeb916ad62bc91f5befc082646b3bf3303f391412e3635aae7f65 + type_checked_symbol_table: 51795bd5058fadfc474fdd30f4e6501c77130d50502b95de51a3c086349fe3a7 + unrolled_symbol_table: 51795bd5058fadfc474fdd30f4e6501c77130d50502b95de51a3c086349fe3a7 + initial_ast: 62cede6946880abfcd6c2e7585290a3de515cb2d17e5b402ea9b5a3ac401a426 + unrolled_ast: cdb61db7b43abbe21076bf0a1e6327dd011ef5aac6572d851f6f15a679ecd78e + ssa_ast: aa3353e76e682d68d3ef00b6c8a606d93915dad00157a5341223b23f357ceb2a + flattened_ast: aca685ca655b57a7ed19c00d37c177aebcd48dfa1bcaf66949abc9e55de81466 + destructured_ast: 844f630d94b95016f415e0eb640c7d4d537c2dae2df17a4eddc2962102778cba + inlined_ast: 90d301b0cd79bea7506f940a39418b9803811b10d68d48fa8b308c48a6fda333 + dce_ast: 6e8fe026727e10fce4722c8ec2c38894046890c269e23e739aeb2a669f9497a6 bytecode: 7a2fd5581e13d3b66f1fad269ba868cf6d272929b84cea2dc1cb6a0af22867c2 errors: "" warnings: "" - - initial_symbol_table: cccf95ec1779120d414bd4bc3a9a76c039f32b3dbe1bcd1765eb7da5ff4f8a54 - type_checked_symbol_table: bd09092e98f274d8efdef0c4986063ac08c29723b0392e1c0b3cb5dad68e72a9 - unrolled_symbol_table: bd09092e98f274d8efdef0c4986063ac08c29723b0392e1c0b3cb5dad68e72a9 - initial_ast: 9430abd63c2567c1c22260b177b70f668f88c9bb6aefd876d4fc2c4807c20660 - unrolled_ast: 8aeb14248ba30951cd24f48f2b8bdcbb06083dcfb0f53612e4722de2632e6b70 - ssa_ast: 230730e6d6a0d0ee332b10d89ab90cf6cd73da54718ed54e850a0a6a55a38617 - flattened_ast: e3698a6a2bde5e8977628220f1396124b58ed90180ee004f383904564d0205dd - destructured_ast: 8164d12b681effd27ef362bad480b970c526c3914acf172b486a989753aaa90e - inlined_ast: 1c04d1f8229b0f93d5de486644c38a193401f9293cf49270eeb2af9787277e81 - dce_ast: 6bd0b3c0f4f006e109d25c131d3f4c3ffc9f295c079c7b39a0696d4829583bae + - initial_symbol_table: be4de29f78cffd9e751f5bb39cb55434328ba6faa15106ffc188edf8fe3bfae4 + type_checked_symbol_table: 75922990c1f38bdc18cf19f11c2b0dc9e10b5baa95eb24f5e222a4d5dec48cac + unrolled_symbol_table: 75922990c1f38bdc18cf19f11c2b0dc9e10b5baa95eb24f5e222a4d5dec48cac + initial_ast: 804425ef6a5f095f3d5b8b93ee9b6d9088cd733e9b6bb1113cb202f833a363d4 + unrolled_ast: ef84ec6892c11a2ac1a85ed3ea832c2b146b51bb4665da73f60bfca31e046ed0 + ssa_ast: 12f20f50c53ce58f88230714aa6da43f767da486624db64b94cb7ee06a2af95d + flattened_ast: 49878f2432a40994576c36a9379d3e006abac4f698e5205a243bc54cee246a0e + destructured_ast: 3500398adce5427394753e0786a2c95d185fe2da5d76c159fd71e7be9ccf7943 + inlined_ast: d0b404957c42e21126e78b962e17265548deeef6bcad4c25aed9fdd559b3c373 + dce_ast: aa386faa8cae04833ab56a0477ba5b80734c6a349486ca6e2a2677ddae2b7ac4 bytecode: 388c60022d4ad4fac382a685cc997c84d142f4e1357eb7c00e3efb545f5f70e5 errors: "" warnings: "" diff --git a/tests/expectations/parser/future/explicit_future_typing.out b/tests/expectations/parser/future/explicit_future_typing.out index 6f1bb48651..48a6446a2b 100644 --- a/tests/expectations/parser/future/explicit_future_typing.out +++ b/tests/expectations/parser/future/explicit_future_typing.out @@ -2,23 +2,11 @@ namespace: Parse expectation: Pass outputs: - - imports: - hello: - - imports: {} - stubs: {} - program_scopes: {} - - lo: 2 - hi: 20 - bye: - - imports: {} - stubs: {} - program_scopes: {} - - lo: 21 - hi: 37 + - imports: {} stubs: {} program_scopes: test: - program_id: "{\"name\":\"test\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"3\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":0}\\\\\\\"}\\\"\"}" + program_id: "{\"name\":\"test\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"1\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":0,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":0}\\\\\\\"}\\\"\"}" consts: [] structs: [] mappings: [] @@ -26,7 +14,7 @@ outputs: - - main - annotations: [] variant: AsyncTransition - identifier: "{\"id\":\"4\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":79,\\\"hi\\\":83}\"}" + identifier: "{\"id\":\"2\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":42,\\\"hi\\\":46}\"}" input: [] output: - Internal: @@ -54,9 +42,9 @@ outputs: location: ~ is_explicit: true span: - lo: 89 - hi: 148 - id: 5 + lo: 52 + hi: 124 + id: 3 output_type: Future: inputs: @@ -84,7 +72,7 @@ outputs: - Definition: declaration_type: Let place: - Identifier: "{\"id\":\"6\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":163,\\\"hi\\\":165}\"}" + Identifier: "{\"id\":\"4\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":140,\\\"hi\\\":142}\"}" type_: Future: inputs: [] @@ -93,21 +81,21 @@ outputs: value: Call: function: - Identifier: "{\"id\":\"8\",\"name\":\"add\",\"span\":\"{\\\"lo\\\":189,\\\"hi\\\":192}\"}" + Identifier: "{\"id\":\"6\",\"name\":\"add\",\"span\":\"{\\\"lo\\\":168,\\\"hi\\\":171}\"}" arguments: [] program: bye span: - lo: 180 - hi: 194 - id: 9 + lo: 159 + hi: 173 + id: 7 span: - lo: 159 - hi: 194 - id: 10 + lo: 136 + hi: 173 + id: 8 - Definition: declaration_type: Let place: - Identifier: "{\"id\":\"11\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":208,\\\"hi\\\":210}\"}" + Identifier: "{\"id\":\"9\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":187,\\\"hi\\\":189}\"}" type_: Future: inputs: @@ -123,21 +111,21 @@ outputs: value: Call: function: - Identifier: "{\"id\":\"13\",\"name\":\"nested_fn\",\"span\":\"{\\\"lo\\\":255,\\\"hi\\\":264}\"}" + Identifier: "{\"id\":\"11\",\"name\":\"nested_fn\",\"span\":\"{\\\"lo\\\":242,\\\"hi\\\":251}\"}" arguments: [] program: hello span: - lo: 244 - hi: 266 - id: 14 + lo: 231 + hi: 253 + id: 12 span: - lo: 204 - hi: 266 - id: 15 + lo: 183 + hi: 253 + id: 13 - Definition: declaration_type: Let place: - Identifier: "{\"id\":\"16\",\"name\":\"f2\",\"span\":\"{\\\"lo\\\":280,\\\"hi\\\":282}\"}" + Identifier: "{\"id\":\"14\",\"name\":\"f2\",\"span\":\"{\\\"lo\\\":267,\\\"hi\\\":269}\"}" type_: Future: inputs: @@ -163,75 +151,75 @@ outputs: value: Call: function: - Identifier: "{\"id\":\"17\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":346,\\\"hi\\\":359}\"}" + Identifier: "{\"id\":\"15\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":347,\\\"hi\\\":360}\"}" arguments: - Literal: Integer: - U32 - "1" - span: - lo: 360 - hi: 364 - - 18 + lo: 361 + hi: 365 + - 16 - Literal: Integer: - U32 - "1" - span: - lo: 366 - hi: 370 - - 19 - - Identifier: "{\"id\":\"20\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":372,\\\"hi\\\":374}\"}" - - Identifier: "{\"id\":\"21\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":376,\\\"hi\\\":378}\"}" + lo: 367 + hi: 371 + - 17 + - Identifier: "{\"id\":\"18\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":373,\\\"hi\\\":375}\"}" + - Identifier: "{\"id\":\"19\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":377,\\\"hi\\\":379}\"}" program: test span: - lo: 346 - hi: 379 - id: 22 + lo: 347 + hi: 380 + id: 20 span: - lo: 276 - hi: 379 - id: 23 + lo: 263 + hi: 380 + id: 21 - Return: expression: - Identifier: "{\"id\":\"24\",\"name\":\"f2\",\"span\":\"{\\\"lo\\\":396,\\\"hi\\\":398}\"}" + Identifier: "{\"id\":\"22\",\"name\":\"f2\",\"span\":\"{\\\"lo\\\":397,\\\"hi\\\":399}\"}" span: - lo: 389 - hi: 399 - id: 25 + lo: 390 + hi: 400 + id: 23 span: - lo: 149 - hi: 405 - id: 26 + lo: 126 + hi: 406 + id: 24 span: - lo: 62 - hi: 405 - id: 27 + lo: 25 + hi: 406 + id: 25 - - finalize_main - annotations: [] variant: AsyncFunction - identifier: "{\"id\":\"28\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":425,\\\"hi\\\":438}\"}" + identifier: "{\"id\":\"26\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":426,\\\"hi\\\":439}\"}" input: - Internal: - identifier: "{\"id\":\"29\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":439,\\\"hi\\\":440}\"}" + identifier: "{\"id\":\"27\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":440,\\\"hi\\\":441}\"}" mode: None type_: Integer: U32 span: - lo: 439 - hi: 440 - id: 30 + lo: 440 + hi: 441 + id: 28 - Internal: - identifier: "{\"id\":\"31\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":447,\\\"hi\\\":448}\"}" + identifier: "{\"id\":\"29\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":448,\\\"hi\\\":449}\"}" mode: None type_: Integer: U32 span: - lo: 447 - hi: 448 - id: 32 + lo: 448 + hi: 449 + id: 30 - Internal: - identifier: "{\"id\":\"33\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":455,\\\"hi\\\":457}\"}" + identifier: "{\"id\":\"31\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":456,\\\"hi\\\":458}\"}" mode: None type_: Future: @@ -239,11 +227,11 @@ outputs: location: ~ is_explicit: true span: - lo: 455 - hi: 457 - id: 34 + lo: 456 + hi: 458 + id: 32 - Internal: - identifier: "{\"id\":\"35\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":471,\\\"hi\\\":473}\"}" + identifier: "{\"id\":\"33\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":474,\\\"hi\\\":476}\"}" mode: None type_: Future: @@ -258,9 +246,9 @@ outputs: location: ~ is_explicit: true span: - lo: 471 - hi: 473 - id: 36 + lo: 474 + hi: 476 + id: 34 output: [] output_type: Unit block: @@ -269,51 +257,51 @@ outputs: expression: Access: AssociatedFunction: - variant: "{\"id\":\"39\",\"name\":\"Future\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":0}\"}" - name: "{\"id\":\"38\",\"name\":\"await\",\"span\":\"{\\\"lo\\\":519,\\\"hi\\\":524}\"}" + variant: "{\"id\":\"37\",\"name\":\"Future\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":0}\"}" + name: "{\"id\":\"36\",\"name\":\"await\",\"span\":\"{\\\"lo\\\":530,\\\"hi\\\":535}\"}" arguments: - - Identifier: "{\"id\":\"37\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":516,\\\"hi\\\":518}\"}" + - Identifier: "{\"id\":\"35\",\"name\":\"f0\",\"span\":\"{\\\"lo\\\":527,\\\"hi\\\":529}\"}" span: - lo: 516 - hi: 526 - id: 40 + lo: 527 + hi: 537 + id: 38 span: - lo: 516 - hi: 527 - id: 41 + lo: 527 + hi: 538 + id: 39 - Expression: expression: Access: AssociatedFunction: - variant: "{\"id\":\"44\",\"name\":\"Future\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":0}\"}" - name: "{\"id\":\"43\",\"name\":\"await\",\"span\":\"{\\\"lo\\\":539,\\\"hi\\\":544}\"}" + variant: "{\"id\":\"42\",\"name\":\"Future\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":0}\"}" + name: "{\"id\":\"41\",\"name\":\"await\",\"span\":\"{\\\"lo\\\":550,\\\"hi\\\":555}\"}" arguments: - - Identifier: "{\"id\":\"42\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":536,\\\"hi\\\":538}\"}" + - Identifier: "{\"id\":\"40\",\"name\":\"f1\",\"span\":\"{\\\"lo\\\":547,\\\"hi\\\":549}\"}" span: - lo: 536 - hi: 546 - id: 45 + lo: 547 + hi: 557 + id: 43 span: - lo: 536 - hi: 547 - id: 46 + lo: 547 + hi: 558 + id: 44 - Assert: variant: AssertEq: - - Identifier: "{\"id\":\"47\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":566,\\\"hi\\\":567}\"}" - - Identifier: "{\"id\":\"48\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":568,\\\"hi\\\":569}\"}" + - Identifier: "{\"id\":\"45\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":577,\\\"hi\\\":578}\"}" + - Identifier: "{\"id\":\"46\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":579,\\\"hi\\\":580}\"}" span: - lo: 556 - hi: 565 - id: 49 + lo: 567 + hi: 576 + id: 47 span: - lo: 506 - hi: 577 - id: 50 + lo: 517 + hi: 588 + id: 48 span: - lo: 410 - hi: 577 - id: 51 + lo: 411 + hi: 588 + id: 49 span: - lo: 38 - hi: 579 + lo: 1 + hi: 590 diff --git a/tests/tests/compiler/futures/explicit_type_simple.leo b/tests/tests/compiler/futures/explicit_type_simple.leo index afd1cb1b61..01cbd960a5 100644 --- a/tests/tests/compiler/futures/explicit_type_simple.leo +++ b/tests/tests/compiler/futures/explicit_type_simple.leo @@ -4,9 +4,9 @@ expectation: Pass */ program test.aleo { mapping foo: u32 => u32; - async transition main_inner(public a: u32, b: u32) -> (u32, Future) { + async transition main_inner(public a: u32, b: u32) -> (u32, Future) { let c: u32 = a + b; - let f: Future = finalize(1u32); + let f: Future = finalize(1u32); return (c, f); } @@ -19,14 +19,14 @@ program test.aleo { import test.aleo; program basic.aleo { - async transition main(public a: u32, b: u32) -> (u32, Future>) { + async transition main(public a: u32, b: u32) -> (u32, Future)>) { let c: u32 = a + b; - let (d, f1): (u32, Future) = test.aleo/main_inner(1u32, 1u32); - let f:Future> = finalize(a, c, f1); + let (d, f1): (u32, Future) = test.aleo/main_inner(1u32, 1u32); + let f:Future)> = finalize(a, c, f1); return (c,f); } - async function finalize(a: u32, b:u32, f: Future) { + async function finalize(a: u32, b:u32, f: Future) { f.await(); assert_eq(a, b); } diff --git a/tests/tests/compiler/futures/partial_type_specification.leo b/tests/tests/compiler/futures/partial_type_specification.leo index 66f51d0389..53e3d660e8 100644 --- a/tests/tests/compiler/futures/partial_type_specification.leo +++ b/tests/tests/compiler/futures/partial_type_specification.leo @@ -11,8 +11,8 @@ program test_dep.aleo { val: u32, } - async transition main_dep(a:u32) -> (yeets, Future) { - let f: Future = finalize_main_dep(a, 1u32); + async transition main_dep(a:u32) -> (yeets, Future) { + let f: Future = finalize_main_dep(a, 1u32); let l: yeets = yeets {owner: self.caller, val: 1u32}; return (l, f); } @@ -22,8 +22,8 @@ program test_dep.aleo { let c:u32 = a + b; } - async transition main_dep_2(a:u32) -> (yeets, Future<()>) { - let f: Future<()> = finalize_main_dep_2(); + async transition main_dep_2(a:u32) -> (yeets, Future) { + let f: Future = finalize_main_dep_2(); let l: yeets = yeets {owner: self.caller, val: 1u32}; return (l, f); } @@ -91,7 +91,7 @@ program wrapper.aleo { import wrapper.aleo; import test_dep.aleo; program big_wrapper.aleo { - async transition main(public a: u32, b: u32) -> (u32, Future,Future,u32>,Future,Future,u32>,Future,Future,u32>>>){ + async transition main(public a: u32, b: u32) -> (u32, Future,Future,u32)>,Future,Future,u32)>,Future,Future,u32)>)>)>){ let (val, f): (u32, Future) = wrapper.aleo/main(10u32, 10u32); let f2:Future = finalize_main(f); return (f2.0.0.0.0, f2); diff --git a/tests/tests/parser/future/explicit_future_typing.leo b/tests/tests/parser/future/explicit_future_typing.leo index 22b3defba1..93c18b8ba5 100644 --- a/tests/tests/parser/future/explicit_future_typing.leo +++ b/tests/tests/parser/future/explicit_future_typing.leo @@ -2,17 +2,14 @@ namespace: Parse expectation: Pass */ - -import hello.aleo; -import bye.aleo; program test.aleo { - async transition main() -> Future, Future>> { - let f0: Future<()> = bye.aleo/add(); - let f1: Future> = hello.aleo/nested_fn(); - let f2: Future, Future>> = finalize_main(1u32, 1u32, f0, f1); + async transition main() -> Future, Future)>)> { + let f0: Future = bye.aleo/add(); + let f1: Future)> = hello.aleo/nested_fn(); + let f2: Future, Future)>)> = finalize_main(1u32, 1u32, f0, f1); return f2; } - async function finalize_main(a: u32, b: u32, f0: Future<()>, f1: Future>) { + async function finalize_main(a: u32, b: u32, f0: Future, f1: Future)>) { f0.await(); f1.await(); assert_eq(a,b); From 17c35d11af31e1429745b8fdd25d4786a51a6875 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:56:30 -0700 Subject: [PATCH 75/80] Refactor all tests to get rid of finalize syntax --- compiler/parser/src/parser/type_.rs | 3 +- .../src/type_checking/check_expressions.rs | 2 - .../src/type_checking/check_statements.rs | 4 - compiler/passes/src/type_checking/checker.rs | 21 ++-- compiler/span/src/symbol.rs | 3 +- .../errors/type_checker/type_checker_error.rs | 3 +- .../expectations/compiler/address/binary.out | 20 ++-- .../expectations/compiler/address/branch.out | 20 ++-- tests/expectations/compiler/address/equal.out | 20 ++-- .../expectations/compiler/address/gt_fail.out | 2 +- .../compiler/address/gte_fail.out | 2 +- .../expectations/compiler/address/lt_fail.out | 2 +- .../compiler/address/lte_fail.out | 2 +- .../expectations/compiler/address/ternary.out | 20 ++-- .../array/access_array_with_loop_counter.out | 20 ++-- .../compiler/array/array_access.out | 20 ++-- .../array/array_in_composite_data_types.out | 20 ++-- .../compiler/array/array_in_finalize.out | 22 ++-- .../array/array_in_function_signature.out | 20 ++-- .../compiler/array/array_in_mapping.out | 22 ++-- .../compiler/array/array_initialization.out | 20 ++-- .../compiler/array/array_of_records.out | 2 +- .../compiler/array/array_of_structs.out | 20 ++-- .../compiler/array/array_size_limits.out | 20 ++-- .../compiler/array/array_too_large_fail.out | 2 +- .../compiler/array/array_too_small_fail.out | 2 +- .../compiler/array/array_with_units_fail.out | 2 +- tests/expectations/compiler/boolean/and.out | 20 ++-- .../compiler/boolean/conditional.out | 20 ++-- tests/expectations/compiler/boolean/equal.out | 20 ++-- .../compiler/boolean/not_equal.out | 20 ++-- .../compiler/boolean/operator_methods.out | 20 ++-- tests/expectations/compiler/boolean/or.out | 20 ++-- .../expectations/compiler/console/assert.out | 20 ++-- .../compiler/console/conditional_assert.out | 20 ++-- .../constants/const_tuple_declaration.out | 20 ++-- .../constants/const_type_error_fail.out | 2 +- .../compiler/constants/constant_finalize.out | 22 ++-- .../constants/constant_loop_bound.out | 20 ++-- ...constant_loop_bound_type_mismatch_fail.out | 2 +- .../compiler/constants/loop_unrolling.out | 20 ++-- .../unroll_loop_with_tuple_definition.out | 20 ++-- .../algorithms/bhp1024_commit_to_address.out | 20 ++-- .../algorithms/bhp1024_commit_to_field.out | 20 ++-- .../algorithms/bhp1024_commit_to_group.out | 20 ++-- .../algorithms/bhp1024_hash_to_address.out | 20 ++-- .../core/algorithms/bhp1024_hash_to_field.out | 20 ++-- .../core/algorithms/bhp1024_hash_to_group.out | 20 ++-- .../algorithms/bhp1024_hash_to_scalar.out | 20 ++-- .../algorithms/bhp256_commit_to_address.out | 20 ++-- .../algorithms/bhp256_commit_to_field.out | 20 ++-- .../algorithms/bhp256_commit_to_group.out | 20 ++-- .../algorithms/bhp256_hash_to_address.out | 20 ++-- .../core/algorithms/bhp256_hash_to_field.out | 20 ++-- .../core/algorithms/bhp256_hash_to_group.out | 20 ++-- .../core/algorithms/bhp256_hash_to_scalar.out | 20 ++-- .../algorithms/bhp512_commit_to_address.out | 20 ++-- .../algorithms/bhp512_commit_to_field.out | 20 ++-- .../algorithms/bhp512_commit_to_group.out | 20 ++-- .../algorithms/bhp512_hash_to_address.out | 20 ++-- .../core/algorithms/bhp512_hash_to_field.out | 20 ++-- .../core/algorithms/bhp512_hash_to_group.out | 20 ++-- .../core/algorithms/bhp512_hash_to_scalar.out | 20 ++-- .../algorithms/bhp768_commit_to_address.out | 20 ++-- .../algorithms/bhp768_commit_to_field.out | 20 ++-- .../algorithms/bhp768_commit_to_group.out | 20 ++-- .../algorithms/bhp768_hash_to_address.out | 20 ++-- .../core/algorithms/bhp768_hash_to_field.out | 20 ++-- .../core/algorithms/bhp768_hash_to_group.out | 20 ++-- .../core/algorithms/bhp768_hash_to_scalar.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_i128.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_i16.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_i32.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_i64.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_i8.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_u128.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_u16.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_u32.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_u64.out | 20 ++-- .../integers/bhp1024/bhp1024_hash_to_u8.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_i128.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_i16.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_i32.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_i64.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_i8.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_u128.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_u16.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_u32.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_u64.out | 20 ++-- .../integers/bhp256/bhp256_hash_to_u8.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_i128.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_i16.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_i32.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_i64.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_i8.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_u128.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_u16.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_u32.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_u64.out | 20 ++-- .../integers/bhp512/bhp512_hash_to_u8.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_i128.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_i16.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_i32.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_i64.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_i8.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_u128.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_u16.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_u32.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_u64.out | 20 ++-- .../integers/bhp768/bhp768_hash_to_u8.out | 20 ++-- .../keccak256/keccak256_hash_to_i128.out | 20 ++-- .../keccak256/keccak256_hash_to_i16.out | 20 ++-- .../keccak256/keccak256_hash_to_i32.out | 20 ++-- .../keccak256/keccak256_hash_to_i64.out | 20 ++-- .../keccak256/keccak256_hash_to_i8.out | 20 ++-- .../keccak256/keccak256_hash_to_u128.out | 20 ++-- .../keccak256/keccak256_hash_to_u16.out | 20 ++-- .../keccak256/keccak256_hash_to_u32.out | 20 ++-- .../keccak256/keccak256_hash_to_u64.out | 20 ++-- .../keccak256/keccak256_hash_to_u8.out | 20 ++-- .../keccak384/keccak384_hash_to_i128.out | 20 ++-- .../keccak384/keccak384_hash_to_i16.out | 20 ++-- .../keccak384/keccak384_hash_to_i32.out | 20 ++-- .../keccak384/keccak384_hash_to_i64.out | 20 ++-- .../keccak384/keccak384_hash_to_i8.out | 20 ++-- .../keccak384/keccak384_hash_to_u128.out | 20 ++-- .../keccak384/keccak384_hash_to_u16.out | 20 ++-- .../keccak384/keccak384_hash_to_u32.out | 20 ++-- .../keccak384/keccak384_hash_to_u64.out | 20 ++-- .../keccak384/keccak384_hash_to_u8.out | 20 ++-- .../keccak512/keccak512_hash_to_i128.out | 20 ++-- .../keccak512/keccak512_hash_to_i16.out | 20 ++-- .../keccak512/keccak512_hash_to_i32.out | 20 ++-- .../keccak512/keccak512_hash_to_i64.out | 20 ++-- .../keccak512/keccak512_hash_to_i8.out | 20 ++-- .../keccak512/keccak512_hash_to_u128.out | 20 ++-- .../keccak512/keccak512_hash_to_u16.out | 20 ++-- .../keccak512/keccak512_hash_to_u32.out | 20 ++-- .../keccak512/keccak512_hash_to_u64.out | 20 ++-- .../keccak512/keccak512_hash_to_u8.out | 20 ++-- .../pedersen128/pedersen128_hash_to_i128.out | 20 ++-- .../pedersen128/pedersen128_hash_to_i16.out | 20 ++-- .../pedersen128/pedersen128_hash_to_i32.out | 20 ++-- .../pedersen128/pedersen128_hash_to_i64.out | 20 ++-- .../pedersen128/pedersen128_hash_to_i8.out | 20 ++-- .../pedersen128/pedersen128_hash_to_u128.out | 20 ++-- .../pedersen128/pedersen128_hash_to_u16.out | 20 ++-- .../pedersen128/pedersen128_hash_to_u32.out | 20 ++-- .../pedersen128/pedersen128_hash_to_u64.out | 20 ++-- .../pedersen128/pedersen128_hash_to_u8.out | 20 ++-- .../pedersen64/pedersen64_hash_to_i128.out | 20 ++-- .../pedersen64/pedersen64_hash_to_i16.out | 20 ++-- .../pedersen64/pedersen64_hash_to_i32.out | 20 ++-- .../pedersen64/pedersen64_hash_to_i64.out | 20 ++-- .../pedersen64/pedersen64_hash_to_i8.out | 20 ++-- .../pedersen64/pedersen64_hash_to_u128.out | 20 ++-- .../pedersen64/pedersen64_hash_to_u16.out | 20 ++-- .../pedersen64/pedersen64_hash_to_u32.out | 20 ++-- .../pedersen64/pedersen64_hash_to_u64.out | 20 ++-- .../pedersen64/pedersen64_hash_to_u8.out | 20 ++-- .../poseidon2/poseidon2_hash_to_i128.out | 20 ++-- .../poseidon2/poseidon2_hash_to_i16.out | 20 ++-- .../poseidon2/poseidon2_hash_to_i32.out | 20 ++-- .../poseidon2/poseidon2_hash_to_i64.out | 20 ++-- .../poseidon2/poseidon2_hash_to_i8.out | 20 ++-- .../poseidon2/poseidon2_hash_to_u128.out | 20 ++-- .../poseidon2/poseidon2_hash_to_u16.out | 20 ++-- .../poseidon2/poseidon2_hash_to_u32.out | 20 ++-- .../poseidon2/poseidon2_hash_to_u64.out | 20 ++-- .../poseidon2/poseidon2_hash_to_u8.out | 20 ++-- .../poseidon4/poseidon4_hash_to_i128.out | 20 ++-- .../poseidon4/poseidon4_hash_to_i16.out | 20 ++-- .../poseidon4/poseidon4_hash_to_i32.out | 20 ++-- .../poseidon4/poseidon4_hash_to_i64.out | 20 ++-- .../poseidon4/poseidon4_hash_to_i8.out | 20 ++-- .../poseidon4/poseidon4_hash_to_u128.out | 20 ++-- .../poseidon4/poseidon4_hash_to_u16.out | 20 ++-- .../poseidon4/poseidon4_hash_to_u32.out | 20 ++-- .../poseidon4/poseidon4_hash_to_u64.out | 20 ++-- .../poseidon4/poseidon4_hash_to_u8.out | 20 ++-- .../poseidon8/poseidon8_hash_to_i128.out | 20 ++-- .../poseidon8/poseidon8_hash_to_i16.out | 20 ++-- .../poseidon8/poseidon8_hash_to_i32.out | 20 ++-- .../poseidon8/poseidon8_hash_to_i64.out | 20 ++-- .../poseidon8/poseidon8_hash_to_i8.out | 20 ++-- .../poseidon8/poseidon8_hash_to_u128.out | 20 ++-- .../poseidon8/poseidon8_hash_to_u16.out | 20 ++-- .../poseidon8/poseidon8_hash_to_u32.out | 20 ++-- .../poseidon8/poseidon8_hash_to_u64.out | 20 ++-- .../poseidon8/poseidon8_hash_to_u8.out | 20 ++-- .../sha3_256/sha3_256_hash_to_i128.out | 20 ++-- .../sha3_256/sha3_256_hash_to_i16.out | 20 ++-- .../sha3_256/sha3_256_hash_to_i32.out | 20 ++-- .../sha3_256/sha3_256_hash_to_i64.out | 20 ++-- .../integers/sha3_256/sha3_256_hash_to_i8.out | 20 ++-- .../sha3_256/sha3_256_hash_to_u128.out | 20 ++-- .../sha3_256/sha3_256_hash_to_u16.out | 20 ++-- .../sha3_256/sha3_256_hash_to_u32.out | 20 ++-- .../sha3_256/sha3_256_hash_to_u64.out | 20 ++-- .../integers/sha3_256/sha3_256_hash_to_u8.out | 20 ++-- .../sha3_384/sha3_384_hash_to_i128.out | 20 ++-- .../sha3_384/sha3_384_hash_to_i16.out | 20 ++-- .../sha3_384/sha3_384_hash_to_i32.out | 20 ++-- .../sha3_384/sha3_384_hash_to_i64.out | 20 ++-- .../integers/sha3_384/sha3_384_hash_to_i8.out | 20 ++-- .../sha3_384/sha3_384_hash_to_u128.out | 20 ++-- .../sha3_384/sha3_384_hash_to_u16.out | 20 ++-- .../sha3_384/sha3_384_hash_to_u32.out | 20 ++-- .../sha3_384/sha3_384_hash_to_u64.out | 20 ++-- .../integers/sha3_384/sha3_384_hash_to_u8.out | 20 ++-- .../sha3_512/sha3_512_hash_to_i128.out | 20 ++-- .../sha3_512/sha3_512_hash_to_i16.out | 20 ++-- .../sha3_512/sha3_512_hash_to_i32.out | 20 ++-- .../sha3_512/sha3_512_hash_to_i64.out | 20 ++-- .../integers/sha3_512/sha3_512_hash_to_i8.out | 20 ++-- .../sha3_512/sha3_512_hash_to_u128.out | 20 ++-- .../sha3_512/sha3_512_hash_to_u16.out | 20 ++-- .../sha3_512/sha3_512_hash_to_u32.out | 20 ++-- .../sha3_512/sha3_512_hash_to_u64.out | 20 ++-- .../integers/sha3_512/sha3_512_hash_to_u8.out | 20 ++-- .../algorithms/keccak256_hash_to_address.out | 20 ++-- .../algorithms/keccak256_hash_to_field.out | 20 ++-- .../algorithms/keccak256_hash_to_group.out | 20 ++-- .../algorithms/keccak256_hash_to_scalar.out | 20 ++-- .../algorithms/keccak384_hash_to_address.out | 20 ++-- .../algorithms/keccak384_hash_to_field.out | 20 ++-- .../algorithms/keccak384_hash_to_group.out | 20 ++-- .../algorithms/keccak384_hash_to_scalar.out | 20 ++-- .../algorithms/keccak512_hash_to_address.out | 20 ++-- .../algorithms/keccak512_hash_to_field.out | 20 ++-- .../algorithms/keccak512_hash_to_group.out | 20 ++-- .../algorithms/keccak512_hash_to_scalar.out | 20 ++-- .../pedersen128_commit_to_address.out | 20 ++-- .../pedersen128_commit_to_field.out | 20 ++-- .../pedersen128_commit_to_group.out | 20 ++-- .../pedersen128_hash_to_address.out | 20 ++-- .../algorithms/pedersen128_hash_to_field.out | 20 ++-- .../algorithms/pedersen128_hash_to_group.out | 20 ++-- .../pedersen64_commit_to_address.out | 20 ++-- .../algorithms/pedersen64_commit_to_field.out | 20 ++-- .../algorithms/pedersen64_commit_to_group.out | 20 ++-- .../algorithms/pedersen64_hash_to_address.out | 20 ++-- .../algorithms/pedersen64_hash_to_field.out | 20 ++-- .../algorithms/pedersen64_hash_to_group.out | 20 ++-- .../algorithms/pedersen64_hash_to_scalar.out | 20 ++-- .../core/algorithms/pedersen_fail.out | 2 +- .../algorithms/poseidon2_hash_to_address.out | 20 ++-- .../algorithms/poseidon2_hash_to_field.out | 20 ++-- .../algorithms/poseidon2_hash_to_group.out | 20 ++-- .../algorithms/poseidon2_hash_to_scalar.out | 20 ++-- .../algorithms/poseidon4_hash_to_address.out | 20 ++-- .../algorithms/poseidon4_hash_to_field.out | 20 ++-- .../algorithms/poseidon4_hash_to_group.out | 20 ++-- .../algorithms/poseidon4_hash_to_scalar.out | 20 ++-- .../algorithms/poseidon8_hash_to_address.out | 20 ++-- .../algorithms/poseidon8_hash_to_field.out | 20 ++-- .../algorithms/poseidon8_hash_to_group.out | 20 ++-- .../algorithms/poseidon8_hash_to_scalar.out | 20 ++-- .../algorithms/sha3_256_hash_to_address.out | 20 ++-- .../algorithms/sha3_256_hash_to_field.out | 20 ++-- .../algorithms/sha3_256_hash_to_group.out | 20 ++-- .../algorithms/sha3_256_hash_to_scalar.out | 20 ++-- .../algorithms/sha3_384_hash_to_address.out | 20 ++-- .../algorithms/sha3_384_hash_to_field.out | 20 ++-- .../algorithms/sha3_384_hash_to_group.out | 20 ++-- .../algorithms/sha3_384_hash_to_scalar.out | 20 ++-- .../algorithms/sha3_512_hash_to_address.out | 20 ++-- .../algorithms/sha3_512_hash_to_field.out | 20 ++-- .../algorithms/sha3_512_hash_to_group.out | 20 ++-- .../algorithms/sha3_512_hash_to_scalar.out | 20 ++-- .../compiler/core/constants/group_gen.out | 20 ++-- .../core/constants/group_gen_fail.out | 2 +- .../define_multiple_variables_fail.out | 2 +- .../compiler/definition/out_of_order.out | 20 ++-- .../compiler/definition/tuple_def_fail.out | 2 +- .../use_decl_variable_as_assign_fail.out | 2 +- .../compiler/examples/auction.out | 20 ++-- .../compiler/examples/basic_bank.out | 22 ++-- .../expectations/compiler/examples/board.out | 20 ++-- .../compiler/examples/bubblesort.out | 20 ++-- tests/expectations/compiler/examples/core.out | 20 ++-- .../compiler/examples/fibonacci.out | 20 ++-- .../expectations/compiler/examples/groups.out | 20 ++-- .../compiler/examples/helloworld.out | 20 ++-- .../compiler/examples/interest.out | 20 ++-- .../compiler/examples/lottery.out | 22 ++-- .../compiler/examples/message.out | 20 ++-- tests/expectations/compiler/examples/move.out | 20 ++-- .../compiler/examples/ntzdebruijn.out | 20 ++-- .../compiler/examples/ntzgaudet.out | 20 ++-- .../compiler/examples/ntzloops.out | 20 ++-- .../compiler/examples/ntzmasks.out | 20 ++-- .../compiler/examples/ntzreisers.out | 20 ++-- .../compiler/examples/ntzsearchtree.out | 20 ++-- .../compiler/examples/ntzsmallvals.out | 20 ++-- .../compiler/examples/simple_token.out | 20 ++-- .../compiler/examples/tictactoe.out | 20 ++-- .../expectations/compiler/examples/token.out | 22 ++-- .../compiler/examples/twoadicity.out | 20 ++-- .../expectations/compiler/examples/verify.out | 20 ++-- tests/expectations/compiler/examples/vote.out | 22 ++-- .../expectations/compiler/expression/cast.out | 20 ++-- .../compiler/expression/cast_coersion.out | 20 ++-- .../compiler/expression/cast_fail.out | 2 +- .../compiler/expression/ternary.out | 20 ++-- tests/expectations/compiler/field/add.out | 20 ++-- tests/expectations/compiler/field/div.out | 20 ++-- tests/expectations/compiler/field/eq.out | 20 ++-- tests/expectations/compiler/field/field.out | 20 ++-- tests/expectations/compiler/field/mul.out | 20 ++-- tests/expectations/compiler/field/negate.out | 20 ++-- .../compiler/field/operator_methods.out | 20 ++-- tests/expectations/compiler/field/pow.out | 20 ++-- tests/expectations/compiler/field/sub.out | 20 ++-- tests/expectations/compiler/field/ternary.out | 20 ++-- .../compiler/finalize/block_height.out | 22 ++-- .../compiler/finalize/block_height_fail.out | 2 +- .../finalize/closure_with_finalize_fail.out | 2 +- .../compiler/finalize/contains.out | 22 ++-- .../finalize/decrement_via_get_set.out | 22 ++-- .../compiler/finalize/empty_finalize_fail.out | 2 +- .../compiler/finalize/finalize.out | 22 ++-- .../compiler/finalize/finalize_fail.out | 2 +- .../finalize_incorrect_modes_fail.out | 2 +- .../finalize_incorrect_return_fail.out | 2 +- .../finalize/finalize_missing_return_fail.out | 2 +- .../finalize/finalize_name_mismatch_fail.out | 2 +- .../finalize/finalize_returns_value_fail.out | 2 +- ...finalize_statement_incorrect_args_fail.out | 2 +- .../finalize/finalize_with_method_calls.out | 22 ++-- .../finalize/finalize_with_return.out | 2 +- ...nalize_without_finalize_statement_fail.out | 2 +- .../finalize/get_incorrect_type_fail.out | 2 +- .../finalize/get_or_incorrect_type_fail.out | 2 +- .../finalize/increment_via_get_set.out | 22 ++-- .../compiler/finalize/inline_in_finalize.out | 22 ++-- .../compiler/finalize/mapping.out | 20 ++-- .../compiler/finalize/mapping_fail.out | 2 +- .../mapping_operations_in_inline_fail.out | 2 +- .../only_finalize_with_flattening.out | 22 ++-- .../finalize/private_input_ouput_fail.out | 2 +- tests/expectations/compiler/finalize/rand.out | 22 ++-- .../finalize/rand_not_in_finalize.out | 2 +- .../finalize/read_write_mapping_fail.out | 2 +- .../expectations/compiler/finalize/remove.out | 22 ++-- .../finalize/set_in_an_assignment_fail.out | 2 +- .../finalize/set_incorrect_type_fail.out | 2 +- .../unknown_mapping_operation_fail.out | 2 +- .../function/annotated_function_fail.out | 2 +- .../compiler/function/basic_async.out | 26 +++-- .../function/complex_recursion_fail.out | 2 +- .../compiler/function/conditional_return.out | 20 ++-- .../function/dead_code_elimination.out | 20 ++-- .../compiler/function/flatten_arrays.out | 20 ++-- .../flatten_inlined_tuples_of_structs.out | 20 ++-- .../compiler/function/flatten_test.out | 20 ++-- .../compiler/function/flatten_test_2.out | 40 +++---- .../function/flatten_tuples_of_structs.out | 20 ++-- .../function/flatten_unit_expressions.out | 40 +++---- .../compiler/function/function_call.out | 20 ++-- .../function/function_call_inline.out | 20 ++-- .../function/function_call_out_of_order.out | 20 ++-- .../function/function_call_tyc_fail.out | 2 +- .../function/function_returns_record_fail.out | 2 +- .../helper_function_with_interface.out | 20 ++-- .../function/inline_expr_statement.out | 40 +++---- .../compiler/function/inline_twice.out | 20 ++-- .../function/mutual_recursion_fail.out | 2 +- .../compiler/function/no_return.out | 2 +- .../compiler/function/no_transition_fail.out | 2 +- ...n_transition_variant_input_record_fail.out | 2 +- .../function/private_input_output.out | 20 ++-- ...ction_any_number_of_inputs_and_outputs.out | 20 ++-- .../function/program_function_empty_body.out | 20 ++-- .../function/program_function_unit_type.out | 20 ++-- .../function/program_function_with_mode.out | 20 ++-- .../function/record_in_conditional_return.out | 20 ++-- tests/expectations/compiler/function/self.out | 20 ++-- .../compiler/function/self_fail.out | 2 +- .../compiler/function/self_finalize_fail.out | 2 +- .../function/self_recursive_cycle_fail.out | 2 +- ..._function_calls_standard_function_fail.out | 2 +- ...unction_calls_transition_function_fail.out | 2 +- .../function/too_many_transitions_fail.out | 2 +- ...unction_calls_transition_function_fail.out | 2 +- .../function/undefined_data_type_fail.out | 2 +- .../compiler/function/undefined_fail.out | 2 +- .../function/unknown_parameter_type_fail.out | 2 +- tests/expectations/compiler/group/add.out | 20 ++-- .../expectations/compiler/group/assert_eq.out | 20 ++-- tests/expectations/compiler/group/eq.out | 20 ++-- .../expectations/compiler/group/group_mul.out | 20 ++-- tests/expectations/compiler/group/input.out | 20 ++-- tests/expectations/compiler/group/mul.out | 20 ++-- .../compiler/group/mult_by_group_fail.out | 2 +- .../compiler/group/mult_by_scalar.out | 20 ++-- tests/expectations/compiler/group/negate.out | 20 ++-- .../compiler/group/operator_methods.out | 20 ++-- .../compiler/group/point_input.out | 20 ++-- tests/expectations/compiler/group/sub.out | 20 ++-- tests/expectations/compiler/group/ternary.out | 20 ++-- .../compiler/group/to_x_coordinate.out | 20 ++-- .../compiler/group/to_y_coordinate.out | 20 ++-- tests/expectations/compiler/group/x_and_y.out | 20 ++-- .../compiler/group/x_sign_high.out | 20 ++-- .../compiler/group/x_sign_inferred.out | 20 ++-- .../compiler/group/x_sign_low.out | 20 ++-- tests/expectations/compiler/group/zero.out | 20 ++-- tests/expectations/compiler/input/main.out | 20 ++-- .../compiler/input/main_field.out | 20 ++-- .../compiler/integers/i128/add.out | 20 ++-- .../compiler/integers/i128/and.out | 20 ++-- .../compiler/integers/i128/console_assert.out | 20 ++-- .../compiler/integers/i128/div.out | 20 ++-- .../compiler/integers/i128/eq.out | 20 ++-- .../compiler/integers/i128/ge.out | 20 ++-- .../compiler/integers/i128/gt.out | 20 ++-- .../compiler/integers/i128/le.out | 20 ++-- .../compiler/integers/i128/lt.out | 20 ++-- .../compiler/integers/i128/max.out | 20 ++-- .../compiler/integers/i128/max_fail.out | 2 +- .../compiler/integers/i128/min.out | 20 ++-- .../compiler/integers/i128/min_fail.out | 20 ++-- .../compiler/integers/i128/mul.out | 20 ++-- .../compiler/integers/i128/ne.out | 20 ++-- .../compiler/integers/i128/negate.out | 20 ++-- .../integers/i128/negate_min_fail.out | 20 ++-- .../compiler/integers/i128/negate_zero.out | 20 ++-- .../integers/i128/operator_methods.out | 20 ++-- .../compiler/integers/i128/or.out | 20 ++-- .../compiler/integers/i128/pow.out | 20 ++-- .../compiler/integers/i128/rem.out | 20 ++-- .../compiler/integers/i128/shl.out | 20 ++-- .../compiler/integers/i128/shr.out | 20 ++-- .../compiler/integers/i128/sub.out | 20 ++-- .../compiler/integers/i128/ternary.out | 20 ++-- .../compiler/integers/i128/xor.out | 20 ++-- .../compiler/integers/i16/add.out | 20 ++-- .../compiler/integers/i16/and.out | 20 ++-- .../compiler/integers/i16/console_assert.out | 20 ++-- .../compiler/integers/i16/div.out | 20 ++-- .../expectations/compiler/integers/i16/eq.out | 20 ++-- .../expectations/compiler/integers/i16/ge.out | 20 ++-- .../expectations/compiler/integers/i16/gt.out | 20 ++-- .../expectations/compiler/integers/i16/le.out | 20 ++-- .../expectations/compiler/integers/i16/lt.out | 20 ++-- .../compiler/integers/i16/max.out | 20 ++-- .../compiler/integers/i16/min.out | 20 ++-- .../compiler/integers/i16/min_fail.out | 20 ++-- .../compiler/integers/i16/mul.out | 20 ++-- .../expectations/compiler/integers/i16/ne.out | 20 ++-- .../compiler/integers/i16/negate.out | 20 ++-- .../compiler/integers/i16/negate_min_fail.out | 20 ++-- .../compiler/integers/i16/negate_zero.out | 20 ++-- .../integers/i16/operator_methods.out | 20 ++-- .../expectations/compiler/integers/i16/or.out | 20 ++-- .../compiler/integers/i16/pow.out | 20 ++-- .../compiler/integers/i16/rem.out | 20 ++-- .../compiler/integers/i16/shl.out | 20 ++-- .../compiler/integers/i16/shr.out | 20 ++-- .../compiler/integers/i16/sub.out | 20 ++-- .../compiler/integers/i16/ternary.out | 20 ++-- .../compiler/integers/i16/xor.out | 20 ++-- .../compiler/integers/i32/add.out | 20 ++-- .../compiler/integers/i32/and.out | 20 ++-- .../compiler/integers/i32/console_assert.out | 20 ++-- .../compiler/integers/i32/div.out | 20 ++-- .../expectations/compiler/integers/i32/eq.out | 20 ++-- .../expectations/compiler/integers/i32/ge.out | 20 ++-- .../expectations/compiler/integers/i32/gt.out | 20 ++-- .../expectations/compiler/integers/i32/le.out | 20 ++-- .../expectations/compiler/integers/i32/lt.out | 20 ++-- .../compiler/integers/i32/max.out | 20 ++-- .../compiler/integers/i32/max_fail.out | 2 +- .../compiler/integers/i32/min.out | 20 ++-- .../compiler/integers/i32/min_fail.out | 20 ++-- .../compiler/integers/i32/mul.out | 20 ++-- .../expectations/compiler/integers/i32/ne.out | 20 ++-- .../compiler/integers/i32/negate.out | 20 ++-- .../compiler/integers/i32/negate_min_fail.out | 20 ++-- .../compiler/integers/i32/negate_zero.out | 20 ++-- .../integers/i32/operator_methods.out | 20 ++-- .../expectations/compiler/integers/i32/or.out | 20 ++-- .../compiler/integers/i32/pow.out | 20 ++-- .../compiler/integers/i32/rem.out | 20 ++-- .../compiler/integers/i32/shl.out | 20 ++-- .../compiler/integers/i32/shr.out | 20 ++-- .../compiler/integers/i32/sub.out | 20 ++-- .../compiler/integers/i32/ternary.out | 20 ++-- .../compiler/integers/i32/xor.out | 20 ++-- .../compiler/integers/i64/add.out | 20 ++-- .../compiler/integers/i64/and.out | 20 ++-- .../compiler/integers/i64/console_assert.out | 20 ++-- .../compiler/integers/i64/div.out | 20 ++-- .../expectations/compiler/integers/i64/eq.out | 20 ++-- .../expectations/compiler/integers/i64/ge.out | 20 ++-- .../expectations/compiler/integers/i64/gt.out | 20 ++-- .../expectations/compiler/integers/i64/le.out | 20 ++-- .../expectations/compiler/integers/i64/lt.out | 20 ++-- .../compiler/integers/i64/max.out | 20 ++-- .../compiler/integers/i64/max_fail.out | 2 +- .../compiler/integers/i64/min.out | 20 ++-- .../compiler/integers/i64/min_fail.out | 20 ++-- .../compiler/integers/i64/mul.out | 20 ++-- .../expectations/compiler/integers/i64/ne.out | 20 ++-- .../compiler/integers/i64/negate.out | 20 ++-- .../compiler/integers/i64/negate_min_fail.out | 20 ++-- .../compiler/integers/i64/negate_zero.out | 20 ++-- .../integers/i64/operator_methods.out | 20 ++-- .../expectations/compiler/integers/i64/or.out | 20 ++-- .../compiler/integers/i64/pow.out | 20 ++-- .../compiler/integers/i64/rem.out | 20 ++-- .../compiler/integers/i64/shl.out | 20 ++-- .../compiler/integers/i64/shr.out | 20 ++-- .../compiler/integers/i64/sub.out | 20 ++-- .../compiler/integers/i64/ternary.out | 20 ++-- .../compiler/integers/i64/xor.out | 20 ++-- .../expectations/compiler/integers/i8/add.out | 20 ++-- .../expectations/compiler/integers/i8/and.out | 20 ++-- .../compiler/integers/i8/console_assert.out | 20 ++-- .../expectations/compiler/integers/i8/div.out | 20 ++-- .../expectations/compiler/integers/i8/eq.out | 20 ++-- .../expectations/compiler/integers/i8/ge.out | 20 ++-- .../expectations/compiler/integers/i8/gt.out | 20 ++-- .../expectations/compiler/integers/i8/le.out | 20 ++-- .../expectations/compiler/integers/i8/lt.out | 20 ++-- .../expectations/compiler/integers/i8/max.out | 20 ++-- .../compiler/integers/i8/max_fail.out | 2 +- .../expectations/compiler/integers/i8/min.out | 20 ++-- .../compiler/integers/i8/min_fail.out | 20 ++-- .../expectations/compiler/integers/i8/mul.out | 20 ++-- .../expectations/compiler/integers/i8/ne.out | 20 ++-- .../compiler/integers/i8/negate.out | 20 ++-- .../compiler/integers/i8/negate_min_fail.out | 20 ++-- .../compiler/integers/i8/negate_zero.out | 20 ++-- .../compiler/integers/i8/operator_methods.out | 20 ++-- .../expectations/compiler/integers/i8/or.out | 20 ++-- .../expectations/compiler/integers/i8/pow.out | 20 ++-- .../expectations/compiler/integers/i8/rem.out | 20 ++-- .../expectations/compiler/integers/i8/shl.out | 20 ++-- .../expectations/compiler/integers/i8/shr.out | 20 ++-- .../expectations/compiler/integers/i8/sub.out | 20 ++-- .../compiler/integers/i8/ternary.out | 20 ++-- .../expectations/compiler/integers/i8/xor.out | 20 ++-- .../compiler/integers/u128/add.out | 20 ++-- .../compiler/integers/u128/and.out | 20 ++-- .../compiler/integers/u128/console_assert.out | 20 ++-- .../compiler/integers/u128/div.out | 20 ++-- .../compiler/integers/u128/eq.out | 20 ++-- .../compiler/integers/u128/ge.out | 20 ++-- .../compiler/integers/u128/gt.out | 20 ++-- .../compiler/integers/u128/le.out | 20 ++-- .../compiler/integers/u128/lt.out | 20 ++-- .../compiler/integers/u128/max.out | 20 ++-- .../compiler/integers/u128/max_fail.out | 2 +- .../compiler/integers/u128/min.out | 20 ++-- .../compiler/integers/u128/min_fail.out | 2 +- .../compiler/integers/u128/mul.out | 20 ++-- .../compiler/integers/u128/ne.out | 20 ++-- .../integers/u128/operator_methods.out | 20 ++-- .../compiler/integers/u128/or.out | 20 ++-- .../compiler/integers/u128/pow.out | 20 ++-- .../compiler/integers/u128/rem.out | 20 ++-- .../compiler/integers/u128/shl.out | 20 ++-- .../compiler/integers/u128/shr.out | 20 ++-- .../compiler/integers/u128/sub.out | 20 ++-- .../compiler/integers/u128/ternary.out | 20 ++-- .../compiler/integers/u128/xor.out | 20 ++-- .../compiler/integers/u16/add.out | 20 ++-- .../compiler/integers/u16/and.out | 20 ++-- .../compiler/integers/u16/console_assert.out | 20 ++-- .../compiler/integers/u16/div.out | 20 ++-- .../expectations/compiler/integers/u16/eq.out | 20 ++-- .../expectations/compiler/integers/u16/ge.out | 20 ++-- .../expectations/compiler/integers/u16/gt.out | 20 ++-- .../expectations/compiler/integers/u16/le.out | 20 ++-- .../expectations/compiler/integers/u16/lt.out | 20 ++-- .../compiler/integers/u16/max.out | 20 ++-- .../compiler/integers/u16/max_fail.out | 2 +- .../compiler/integers/u16/min.out | 20 ++-- .../compiler/integers/u16/min_fail.out | 2 +- .../compiler/integers/u16/mul.out | 20 ++-- .../expectations/compiler/integers/u16/ne.out | 20 ++-- .../integers/u16/operator_methods.out | 20 ++-- .../expectations/compiler/integers/u16/or.out | 20 ++-- .../compiler/integers/u16/pow.out | 20 ++-- .../compiler/integers/u16/rem.out | 20 ++-- .../compiler/integers/u16/shl.out | 20 ++-- .../compiler/integers/u16/shr.out | 20 ++-- .../compiler/integers/u16/sub.out | 20 ++-- .../compiler/integers/u16/ternary.out | 20 ++-- .../compiler/integers/u16/xor.out | 20 ++-- .../compiler/integers/u32/add.out | 20 ++-- .../compiler/integers/u32/and.out | 20 ++-- .../compiler/integers/u32/console_assert.out | 20 ++-- .../compiler/integers/u32/div.out | 20 ++-- .../expectations/compiler/integers/u32/eq.out | 20 ++-- .../expectations/compiler/integers/u32/ge.out | 20 ++-- .../expectations/compiler/integers/u32/gt.out | 20 ++-- .../expectations/compiler/integers/u32/le.out | 20 ++-- .../expectations/compiler/integers/u32/lt.out | 20 ++-- .../compiler/integers/u32/max.out | 20 ++-- .../compiler/integers/u32/max_fail.out | 2 +- .../compiler/integers/u32/min.out | 20 ++-- .../compiler/integers/u32/min_fail.out | 2 +- .../compiler/integers/u32/mul.out | 20 ++-- .../expectations/compiler/integers/u32/ne.out | 20 ++-- .../integers/u32/operator_methods.out | 20 ++-- .../expectations/compiler/integers/u32/or.out | 20 ++-- .../compiler/integers/u32/pow.out | 20 ++-- .../compiler/integers/u32/rem.out | 20 ++-- .../compiler/integers/u32/shl.out | 20 ++-- .../compiler/integers/u32/shr.out | 20 ++-- .../compiler/integers/u32/sub.out | 20 ++-- .../compiler/integers/u32/ternary.out | 20 ++-- .../compiler/integers/u32/xor.out | 20 ++-- .../compiler/integers/u64/add.out | 20 ++-- .../compiler/integers/u64/and.out | 20 ++-- .../compiler/integers/u64/console_assert.out | 20 ++-- .../compiler/integers/u64/div.out | 20 ++-- .../expectations/compiler/integers/u64/eq.out | 20 ++-- .../expectations/compiler/integers/u64/ge.out | 20 ++-- .../expectations/compiler/integers/u64/gt.out | 20 ++-- .../expectations/compiler/integers/u64/le.out | 20 ++-- .../expectations/compiler/integers/u64/lt.out | 20 ++-- .../compiler/integers/u64/max.out | 20 ++-- .../compiler/integers/u64/max_fail.out | 2 +- .../compiler/integers/u64/min.out | 20 ++-- .../compiler/integers/u64/min_fail.out | 2 +- .../compiler/integers/u64/mul.out | 20 ++-- .../expectations/compiler/integers/u64/ne.out | 20 ++-- .../integers/u64/operator_methods.out | 20 ++-- .../expectations/compiler/integers/u64/or.out | 20 ++-- .../compiler/integers/u64/pow.out | 20 ++-- .../compiler/integers/u64/rem.out | 20 ++-- .../compiler/integers/u64/shl.out | 20 ++-- .../compiler/integers/u64/shr.out | 20 ++-- .../compiler/integers/u64/sub.out | 20 ++-- .../compiler/integers/u64/ternary.out | 20 ++-- .../compiler/integers/u64/xor.out | 20 ++-- .../expectations/compiler/integers/u8/add.out | 20 ++-- .../expectations/compiler/integers/u8/and.out | 20 ++-- .../compiler/integers/u8/console_assert.out | 20 ++-- .../expectations/compiler/integers/u8/div.out | 20 ++-- .../expectations/compiler/integers/u8/eq.out | 20 ++-- .../expectations/compiler/integers/u8/ge.out | 20 ++-- .../expectations/compiler/integers/u8/gt.out | 20 ++-- .../expectations/compiler/integers/u8/le.out | 20 ++-- .../expectations/compiler/integers/u8/lt.out | 20 ++-- .../expectations/compiler/integers/u8/max.out | 20 ++-- .../compiler/integers/u8/max_fail.out | 2 +- .../expectations/compiler/integers/u8/min.out | 20 ++-- .../compiler/integers/u8/min_fail.out | 2 +- .../expectations/compiler/integers/u8/mul.out | 20 ++-- .../expectations/compiler/integers/u8/ne.out | 20 ++-- .../compiler/integers/u8/operator_methods.out | 20 ++-- .../expectations/compiler/integers/u8/or.out | 20 ++-- .../expectations/compiler/integers/u8/pow.out | 20 ++-- .../expectations/compiler/integers/u8/rem.out | 20 ++-- .../expectations/compiler/integers/u8/shl.out | 20 ++-- .../expectations/compiler/integers/u8/shr.out | 20 ++-- .../expectations/compiler/integers/u8/sub.out | 20 ++-- .../compiler/integers/u8/ternary.out | 20 ++-- .../expectations/compiler/integers/u8/xor.out | 20 ++-- .../compiler/mappings/max_mappings.out | 20 ++-- .../mappings/read_external_mapping.out | 44 +++---- .../mappings/too_many_mappings_fail.out | 2 +- .../compiler/records/balance_wrong_ty.out | 20 ++-- .../compiler/records/declaration.out | 20 ++-- .../compiler/records/duplicate_var_fail.out | 2 +- .../compiler/records/gates_is_allowed.out | 20 ++-- .../compiler/records/init_expression.out | 20 ++-- .../records/init_expression_shorthand.out | 20 ++-- .../records/init_expression_type_fail.out | 2 +- .../records/init_expression_var_fail.out | 2 +- .../compiler/records/nested_record.out | 20 ++-- .../compiler/records/nested_record_1_fail.out | 2 +- .../compiler/records/nested_record_2_fail.out | 2 +- .../compiler/records/nested_record_3_fail.out | 2 +- .../compiler/records/nested_record_4_fail.out | 2 +- .../compiler/records/no_owner_fail.out | 2 +- .../compiler/records/owner_wrong_ty.out | 2 +- .../record_declaration_out_of_order.out | 20 ++-- .../records/record_init_out_of_order.out | 20 ++-- .../records/record_with_visibility.out | 20 ++-- .../return_record_instead_of_unit_fail.out | 2 +- tests/expectations/compiler/scalar/add.out | 20 ++-- tests/expectations/compiler/scalar/cmp.out | 20 ++-- .../expectations/compiler/scalar/div_fail.out | 2 +- tests/expectations/compiler/scalar/eq.out | 20 ++-- .../compiler/scalar/operator_methods.out | 20 ++-- tests/expectations/compiler/scalar/scalar.out | 20 ++-- .../compiler/scalar/square_root_fail.out | 2 +- .../expectations/compiler/scalar/ternary.out | 20 ++-- .../compiler/signature/signature.out | 20 ++-- .../compiler/statements/assign.out | 20 ++-- .../compiler/statements/assign_ternary.out | 2 +- .../compiler/statements/block.out | 20 ++-- .../compiler/statements/chain.out | 20 ++-- .../statements/compare_diff_types_fail.out | 2 +- .../compare_invalid_negates_fail.out | 2 +- .../statements/duplicate_variable.out | 2 +- .../compiler/statements/expr_statement.out | 20 ++-- .../statements/expr_statement_fail.out | 2 +- .../compiler/statements/iteration_basic.out | 20 ++-- .../iteration_bound_too_large_fail.out | 2 +- .../compiler/statements/iteration_nested.out | 20 ++-- .../loop_non_literal_bound_fail.out | 2 +- .../compiler/statements/loop_returns_fail.out | 2 +- .../compiler/statements/multiple_returns.out | 20 ++-- .../multiple_returns_in_one_block_fail.out | 2 +- .../compiler/statements/mutate.out | 20 ++-- .../statements/non_existant_var_exp_fail.out | 2 +- .../statements/non_existant_vars_mul_fail.out | 2 +- .../statements/operations/add_assign.out | 20 ++-- .../statements/operations/and_assign.out | 20 ++-- .../statements/operations/bitand_assign.out | 20 ++-- .../statements/operations/bitor_assign.out | 20 ++-- .../statements/operations/bitxor_assign.out | 20 ++-- .../statements/operations/div_assign.out | 20 ++-- .../statements/operations/mul_assign.out | 20 ++-- .../statements/operations/or_assign.out | 20 ++-- .../statements/operations/pow_assign.out | 20 ++-- .../statements/operations/rem_assign.out | 20 ++-- .../statements/operations/shl_assign.out | 20 ++-- .../statements/operations/shr_assign.out | 20 ++-- .../statements/operations/sub_assign.out | 20 ++-- ...after_complete_conditional_return_fail.out | 2 +- .../ternary_explicit_and_implicit.out | 20 ++-- .../statements/typecheck_statements_fail.out | 2 +- .../statements/underscore_for_loop.out | 20 ++-- .../unknown_type_in_definition_fail.out | 2 +- .../expectations/compiler/strings/string.out | 2 +- .../structs/cyclic_structs_one_fail.out | 2 +- .../structs/cyclic_structs_three_fail.out | 2 +- .../structs/cyclic_structs_two_fail.out | 2 +- .../structs/duplicate_struct_variable.out | 2 +- .../expectations/compiler/structs/inline.out | 20 ++-- .../compiler/structs/inline_fail.out | 2 +- .../compiler/structs/inline_undefined.out | 2 +- .../compiler/structs/member_variable.out | 20 ++-- .../compiler/structs/struct_access_fail.out | 2 +- .../structs/struct_contains_record_fail.out | 2 +- .../struct_declaration_out_of_order.out | 20 ++-- .../structs/struct_init_out_of_order.out | 20 ++-- .../structs/struct_with_visibility_fail.out | 2 +- .../tuple/access_out_of_bounds_fail.out | 2 +- .../compiler/tuple/assign_unit_fail.out | 2 +- .../compiler/tuple/declare_fail.out | 2 +- .../tuple/function_call_returns_tuple.out | 20 ++-- .../compiler/tuple/function_early_return.out | 20 ++-- .../compiler/tuple/function_return.out | 20 ++-- .../tuple/function_return_nothing.out | 20 ++-- .../compiler/tuple/function_return_unit.out | 20 ++-- .../tuple/function_return_varying_modes.out | 20 ++-- .../tuple/function_unit_input_fail.out | 2 +- .../tuple/return_with_different_modes.out | 20 ++-- .../compiler/tuple/tuple_access.out | 20 ++-- .../compiler/tuple/tuple_destructure.out | 20 ++-- .../compiler/tuple/tuple_in_assignment.out | 20 ++-- .../compiler/tuple/tuple_in_definition.out | 20 ++-- .../tuple/tuple_in_function_param.out | 2 +- .../compiler/tuple/tuple_in_loop.out | 20 ++-- .../compiler/tuple/tuple_in_record_fail.out | 2 +- .../compiler/tuple/tuple_in_return_type.out | 2 +- .../compiler/tuple/tuple_in_struct_fail.out | 2 +- .../compiler/tuple/tuple_not_allowed_fail.out | 2 +- .../expectations/compiler/tuple/type_fail.out | 2 +- tests/expectations/compiler/tuple/unit.out | 20 ++-- .../execution/complex_finalization.out | 110 +++++++++--------- .../compiler/array/array_in_finalize.leo | 6 +- .../tests/compiler/array/array_in_mapping.leo | 6 +- .../compiler/constants/constant_finalize.leo | 6 +- tests/tests/compiler/examples/basic_bank.leo | 14 +-- tests/tests/compiler/examples/lottery.leo | 9 +- tests/tests/compiler/examples/token.leo | 27 ++--- tests/tests/compiler/examples/vote.leo | 35 +++--- tests/tests/compiler/expression/cast_fail.leo | 6 +- .../tests/compiler/finalize/block_height.leo | 8 +- .../finalize/closure_with_finalize_fail.leo | 8 +- tests/tests/compiler/finalize/contains.leo | 6 +- .../compiler/finalize/decrement_fail.leo | 6 +- .../finalize/decrement_via_get_set.leo | 6 +- .../compiler/finalize/empty_finalize_fail.leo | 6 +- tests/tests/compiler/finalize/finalize.leo | 12 +- .../tests/compiler/finalize/finalize_fail.leo | 2 +- .../finalize/finalize_missing_return_fail.leo | 6 +- .../finalize/finalize_name_mismatch_fail.leo | 6 +- .../finalize/finalize_returns_value_fail.leo | 6 +- ...finalize_statement_incorrect_args_fail.leo | 6 +- .../finalize/finalize_with_method_calls.leo | 12 +- .../finalize/finalize_with_return.leo | 12 +- ...nalize_without_finalize_statement_fail.leo | 4 +- .../finalize/get_incorrect_num_operands.leo | 6 +- .../finalize/get_incorrect_type_fail.leo | 6 +- .../get_or_incorrect_num_operands.leo | 6 +- .../finalize/get_or_incorrect_type_fail.leo | 6 +- .../compiler/finalize/increment_fail.leo | 6 +- .../finalize/increment_via_get_set.leo | 6 +- .../compiler/finalize/inline_in_finalize.leo | 6 +- .../mapping_operations_in_inline_fail.leo | 2 +- .../only_finalize_with_flattening.leo | 12 +- .../finalize/private_input_ouput_fail.leo | 12 +- tests/tests/compiler/finalize/rand.leo | 6 +- .../finalize/rand_incorrect_num_operands.leo | 6 +- .../finalize/rand_incorrect_type_fail.leo | 6 +- .../finalize/rand_not_in_finalize.leo | 6 +- .../finalize/read_write_mapping_fail.leo | 8 +- tests/tests/compiler/finalize/remove.leo | 6 +- .../finalize/set_in_an_assignment_fail.leo | 6 +- .../finalize/set_incorrect_num_operands.leo | 6 +- .../finalize/set_incorrect_type_fail.leo | 6 +- .../unknown_mapping_operation_fail.leo | 6 +- .../compiler/function/self_finalize_fail.leo | 7 +- .../external_read_with_local_fail.leo | 12 +- .../mappings/locator_expression_fail.leo | 6 +- .../mappings/no_import_external_read_fail.leo | 12 +- .../mappings/read_external_mapping.leo | 24 ++-- .../unknown_external_mapping_fail.leo | 12 +- .../tests/execution/complex_finalization.leo | 51 ++++---- tests/tests/execution/counter.leo | 12 +- tests/tests/parser/finalize/finalize.leo | 7 +- .../parser/finalize/finalize_statement.leo | 12 -- .../finalize/finalize_statement_fail.leo | 14 +-- ...empty_function_non_empty_finalize_fail.leo | 17 --- .../functions/public_const_param_fail.leo | 2 +- .../tests/parser/program/external_mapping.leo | 4 +- .../program/locator_expression_fail.leo | 2 +- 828 files changed, 6955 insertions(+), 6990 deletions(-) delete mode 100644 tests/tests/parser/finalize/finalize_statement.leo delete mode 100644 tests/tests/parser/functions/empty_function_non_empty_finalize_fail.leo diff --git a/compiler/parser/src/parser/type_.rs b/compiler/parser/src/parser/type_.rs index fcb70dbfcc..5b7f380e4d 100644 --- a/compiler/parser/src/parser/type_.rs +++ b/compiler/parser/src/parser/type_.rs @@ -139,8 +139,7 @@ impl ParserContext<'_> { self.expect(&Token::Lt)?; self.expect(&Token::Fn)?; // Parse the parenthesis list of function arguments. - let (types, _, full_span) = - self.parse_paren_comma_list(|p| p.parse_type().map(Some))?; + let (types, _, full_span) = self.parse_paren_comma_list(|p| p.parse_type().map(Some))?; // Expect the closing `>`. self.expect(&Token::Gt)?; Ok(( diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 6edc81b227..43a4123d25 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -173,8 +173,6 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { Future(_) => { // Get the fully inferred type. if let Some(Type::Future(inferred_f)) = self.type_table.get(&access.tuple.id()) { - dbg!(inferred_f.clone()); - dbg!(access.clone()); // Make sure in range. if access.index.value() >= inferred_f.inputs().len() { self.emit_err(TypeCheckerError::invalid_future_access( diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 45b4171a3c..0bd9254be2 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -388,10 +388,6 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { } fn visit_return(&mut self, input: &'a ReturnStatement) { - // Cannot return anything from finalize. - if self.scope_state.variant == Some(Variant::AsyncFunction) { - self.emit_err(TypeCheckerError::finalize_function_cannot_return_value(input.span())); - } // We can safely unwrap all self.parent instances because // statements should always have some parent block let parent = self.scope_state.function.unwrap(); diff --git a/compiler/passes/src/type_checking/checker.rs b/compiler/passes/src/type_checking/checker.rs index e5c7534e8f..c12f47ee7e 100644 --- a/compiler/passes/src/type_checking/checker.rs +++ b/compiler/passes/src/type_checking/checker.rs @@ -1323,16 +1323,17 @@ impl<'a> TypeChecker<'a> { } // Check that the input parameter is not a record. else if let Type::Composite(struct_) = input_var.type_() { - // Note that this unwrap is safe, as the type is defined. - if !function.variant.is_transition() - && self - .symbol_table - .borrow() - .lookup_struct(Location::new(struct_.program, struct_.id.name)) - .unwrap() - .is_record - { - self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(input_var.span())) + // Throw error for undefined type. + if !function.variant.is_transition() { + if let Some(elem) = + self.symbol_table.borrow().lookup_struct(Location::new(struct_.program, struct_.id.name)) + { + if elem.is_record { + self.emit_err(TypeCheckerError::function_cannot_input_or_output_a_record(input_var.span())) + } + } else { + self.emit_err(TypeCheckerError::undefined_type(struct_.id, input_var.span())); + } } } diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index 1a1f9ec554..9ea3a6d6e4 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -215,7 +215,7 @@ symbols! { i64, i128, Future, - Fn, + Fn, record, scalar, signature, @@ -260,7 +260,6 @@ symbols! { SelfUpper: "Self", signer, Star: "*", - then, transition, Type: "type", diff --git a/errors/src/errors/type_checker/type_checker_error.rs b/errors/src/errors/type_checker/type_checker_error.rs index 995ef7541a..80fe00647d 100644 --- a/errors/src/errors/type_checker/type_checker_error.rs +++ b/errors/src/errors/type_checker/type_checker_error.rs @@ -283,7 +283,7 @@ create_messages!( msg: format!("Standard functions cannot have modes associated with their inputs."), help: Some("Consider removing the mode or using the keyword `transition` instead of `function`.".to_string()), } - + @formatted async_function_input_cannot_be_private { args: (), @@ -852,7 +852,6 @@ create_messages!( msg: "The output of an async function must be assigned to a `Future` type..".to_string(), help: None, } - @formatted cannot_modify_external_mapping { args: (operation: impl Display), diff --git a/tests/expectations/compiler/address/binary.out b/tests/expectations/compiler/address/binary.out index af6e3263ec..e1b096d1eb 100644 --- a/tests/expectations/compiler/address/binary.out +++ b/tests/expectations/compiler/address/binary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2ee2a99efeb3473ccec80415106122bfa9a87565247ed9b8032896ec756e33aa - type_checked_symbol_table: c1619490816ec0d56d77600e667acdb7b4577b32084cf542fcdc1a802d7a972b - unrolled_symbol_table: c1619490816ec0d56d77600e667acdb7b4577b32084cf542fcdc1a802d7a972b - initial_ast: 94d3242e748619d667e5896f7ad3988dda45250b368ce2486c33cf6f1c55b638 - unrolled_ast: 94d3242e748619d667e5896f7ad3988dda45250b368ce2486c33cf6f1c55b638 - ssa_ast: db3e09758f82feca118021d2bee6d59052d672d49f417c27e3b0c05d88002a15 - flattened_ast: a6592d9d77d05c67e310532f457aaa9316897aa6a1c0072686475cefe48eb886 - destructured_ast: 60890ee588aab8ff3665cc85fbd5107c9bc6b93676aa93dc1d817616423ab596 - inlined_ast: 60890ee588aab8ff3665cc85fbd5107c9bc6b93676aa93dc1d817616423ab596 - dce_ast: 0fc4768d947d9da8680ad6005a49bbdf0ae8e71f9e345e9e2ae87a691e76dabf + - initial_symbol_table: 951e0114110d23b297cafc49a243a611b7ea4e084ec49720b8df349b4b636140 + type_checked_symbol_table: 3a6825875b2cae550b65d4f355ef6414baae16af6c85addc26f3f0da0a6e8c9a + unrolled_symbol_table: 3a6825875b2cae550b65d4f355ef6414baae16af6c85addc26f3f0da0a6e8c9a + initial_ast: 0dce2e10f5db71839485cc08ed98e10329a3bcbaef64f70241cf5fe9b6937c1f + unrolled_ast: 0dce2e10f5db71839485cc08ed98e10329a3bcbaef64f70241cf5fe9b6937c1f + ssa_ast: fed466ed0da21b09184b2333c55256f25660833063b84a2491e5dc513bcc8bb2 + flattened_ast: 1e7101d7d484d85926b898bde6a6528fb56fdb0b6063ed006cc4928521db22ac + destructured_ast: bc5b46644525316e2557560b6b839bea2302c1a3811f1b05174b82593a59a1ca + inlined_ast: bc5b46644525316e2557560b6b839bea2302c1a3811f1b05174b82593a59a1ca + dce_ast: 8f242b13cd1eeb95609fc779ec1276f01a53a6ce24e1890aa3da2ba636a4c88b bytecode: e434c09cee27a5dfb5a4e9e9fd26aa2ba6e7f0653fad3a4f2a7d85983ba559c9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/address/branch.out b/tests/expectations/compiler/address/branch.out index 7a14433ce7..fbd5ce81c1 100644 --- a/tests/expectations/compiler/address/branch.out +++ b/tests/expectations/compiler/address/branch.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 7f932b8d44e0a087c6da5750a6d6caebe3701863c0d179297cfb44fc68113163 - type_checked_symbol_table: 2bc79159a5bee87aecb4b652b908988bfc8922ea41269afe0dffd7fe55ffccda - unrolled_symbol_table: 2bc79159a5bee87aecb4b652b908988bfc8922ea41269afe0dffd7fe55ffccda - initial_ast: 8cb5c760709498b96a56ea62b25d3c28b22bf0484298831b23cd89a3570c63c3 - unrolled_ast: 8cb5c760709498b96a56ea62b25d3c28b22bf0484298831b23cd89a3570c63c3 - ssa_ast: 54a1e0dc85a8262b757539c8e65704ebe4666f121081732d9a8ed3381c5bef34 - flattened_ast: 033487cd7acf9bb3a532f56b66e0cf09b5a81396f9442f0390967a4a027767b6 - destructured_ast: f959a2d4ba504698c24951fa26ae50ce794822918cec705792aba498cb0b3dd9 - inlined_ast: f959a2d4ba504698c24951fa26ae50ce794822918cec705792aba498cb0b3dd9 - dce_ast: f959a2d4ba504698c24951fa26ae50ce794822918cec705792aba498cb0b3dd9 + - initial_symbol_table: 3f35643726cd2b07aa420a78617a595622e8fee61d9543ebc4ca0bf5f562caa5 + type_checked_symbol_table: c1930dabb10b3f851acd57eef08ff97f409419740e5b632acf0105b1e93ee6b0 + unrolled_symbol_table: c1930dabb10b3f851acd57eef08ff97f409419740e5b632acf0105b1e93ee6b0 + initial_ast: 1bb0070b60c80e2c1c768a02b377bea1fa03c759f73dc39568ebbcf2c34d9829 + unrolled_ast: 1bb0070b60c80e2c1c768a02b377bea1fa03c759f73dc39568ebbcf2c34d9829 + ssa_ast: 3242a2682a29a77d31149d2a0af22d4355eeb239df8ab3326414d0c588b15f37 + flattened_ast: a71dc86fda82889c2f3940bf08a7bf77ee9c405418cb3bded4f847d82a89d4b5 + destructured_ast: 851f56d123341353119c1473befefe603fbfadddee37d1e7799c3d4fbf26e4bf + inlined_ast: 851f56d123341353119c1473befefe603fbfadddee37d1e7799c3d4fbf26e4bf + dce_ast: 851f56d123341353119c1473befefe603fbfadddee37d1e7799c3d4fbf26e4bf bytecode: da1b0a83a17b801368b0a583b158d88d9d807a33000c8e89e82da123c8041aea errors: "" warnings: "" diff --git a/tests/expectations/compiler/address/equal.out b/tests/expectations/compiler/address/equal.out index 457c97275b..8e5d4f7da9 100644 --- a/tests/expectations/compiler/address/equal.out +++ b/tests/expectations/compiler/address/equal.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e0182bdd45dcbb1862e12e209da9b2fb8227c78b37bf915e37f00208557c9b18 - type_checked_symbol_table: 9031de27b62db9f0c3f3ed4fb03211263039a5bb88fa67e6bd6ee55396d946f9 - unrolled_symbol_table: 9031de27b62db9f0c3f3ed4fb03211263039a5bb88fa67e6bd6ee55396d946f9 - initial_ast: 10650ea9835265f168c13b09658eadd2b33b4eca35826b56bdca6be930c5ef53 - unrolled_ast: 10650ea9835265f168c13b09658eadd2b33b4eca35826b56bdca6be930c5ef53 - ssa_ast: b103df8661413a11492f1bf0d7e0e322e652f38055875bdb51026bda792ec8b3 - flattened_ast: 7510319c7429d2397d871c23319c8fef5e3fde8072e4fc72cc6bacb7f993537a - destructured_ast: 965ad6941786c46e8fcd8e9ffdfb330f4c824eaffbf90940f67c9480cbccf6b4 - inlined_ast: 965ad6941786c46e8fcd8e9ffdfb330f4c824eaffbf90940f67c9480cbccf6b4 - dce_ast: 965ad6941786c46e8fcd8e9ffdfb330f4c824eaffbf90940f67c9480cbccf6b4 + - initial_symbol_table: 4c2abaff5b21697577b5197109b668e87a40306c4230155199f65399e4a7fae5 + type_checked_symbol_table: fce31d5f75a9b4ea01b3d57a042e151dd0ffa7fff3a41d6609647cc855d0e8ca + unrolled_symbol_table: fce31d5f75a9b4ea01b3d57a042e151dd0ffa7fff3a41d6609647cc855d0e8ca + initial_ast: ed8950347dbcfbf8d26a417968f242981a7ae09c170aaa82c5e7eeba4808fcd4 + unrolled_ast: ed8950347dbcfbf8d26a417968f242981a7ae09c170aaa82c5e7eeba4808fcd4 + ssa_ast: 8db184a9b32054786d68ef80983d04e0333214436cfce2f9d56a08c6e78a478f + flattened_ast: 4e5a6a821a96c8194dcef0bd6c616e0597e435a3886c46dd255f5566f7d09b8c + destructured_ast: c6d910254ef63cd0b7beb8c1fd2744c8dc2e5702ac692a0b0ee46d4272641dd3 + inlined_ast: c6d910254ef63cd0b7beb8c1fd2744c8dc2e5702ac692a0b0ee46d4272641dd3 + dce_ast: c6d910254ef63cd0b7beb8c1fd2744c8dc2e5702ac692a0b0ee46d4272641dd3 bytecode: bde2653fac0393940c5400272e53492228206e50abb36ce080b95043003ee976 errors: "" warnings: "" diff --git a/tests/expectations/compiler/address/gt_fail.out b/tests/expectations/compiler/address/gt_fail.out index cc8424df56..ff78da47f3 100644 --- a/tests/expectations/compiler/address/gt_fail.out +++ b/tests/expectations/compiler/address/gt_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372021]: Comparison `>` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x > sender;\n | ^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372021]: Comparison `>` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x > sender;\n | ^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/gte_fail.out b/tests/expectations/compiler/address/gte_fail.out index 295479b635..eddc176969 100644 --- a/tests/expectations/compiler/address/gte_fail.out +++ b/tests/expectations/compiler/address/gte_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372021]: Comparison `>=` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x >= sender;\n | ^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372021]: Comparison `>=` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x >= sender;\n | ^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lt_fail.out b/tests/expectations/compiler/address/lt_fail.out index 32bafdcb31..c7e4a98534 100644 --- a/tests/expectations/compiler/address/lt_fail.out +++ b/tests/expectations/compiler/address/lt_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372021]: Comparison `<` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x < sender;\n | ^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372021]: Comparison `<` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x < sender;\n | ^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lte_fail.out b/tests/expectations/compiler/address/lte_fail.out index 1639d44446..8c64aa8860 100644 --- a/tests/expectations/compiler/address/lte_fail.out +++ b/tests/expectations/compiler/address/lte_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372021]: Comparison `<=` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x <= sender;\n | ^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372021]: Comparison `<=` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x <= sender;\n | ^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/ternary.out b/tests/expectations/compiler/address/ternary.out index 0db6e90735..0cd8a49961 100644 --- a/tests/expectations/compiler/address/ternary.out +++ b/tests/expectations/compiler/address/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e0182bdd45dcbb1862e12e209da9b2fb8227c78b37bf915e37f00208557c9b18 - type_checked_symbol_table: 6cb5b5abdfc48c9e6f755f97947504a8bdc2837ffbf708b0c12f5c38e52ca55b - unrolled_symbol_table: 6cb5b5abdfc48c9e6f755f97947504a8bdc2837ffbf708b0c12f5c38e52ca55b - initial_ast: 4b616fbbbf52577b25e69eb1b95915dd9b9ae0da10520f3edd913b9aeeae93fd - unrolled_ast: 4b616fbbbf52577b25e69eb1b95915dd9b9ae0da10520f3edd913b9aeeae93fd - ssa_ast: 94c32c4de57d425b18ec80921bacbbe66ae2eb8a813ade87b9e1852e01ce38d3 - flattened_ast: b9b1d340db4cadc4b503f8b5a62e7e81e806aef8b61de78439fcd135facdce0f - destructured_ast: 06aaefc70bac853d85a46cb1698f98a45916fa83b7ce78a8c5dc7aed0fac6055 - inlined_ast: 06aaefc70bac853d85a46cb1698f98a45916fa83b7ce78a8c5dc7aed0fac6055 - dce_ast: 06aaefc70bac853d85a46cb1698f98a45916fa83b7ce78a8c5dc7aed0fac6055 + - initial_symbol_table: 4c2abaff5b21697577b5197109b668e87a40306c4230155199f65399e4a7fae5 + type_checked_symbol_table: f59ac690784f6dc977aedaa326e50075a55966b293c2ad6e8b096f9066ea44d7 + unrolled_symbol_table: f59ac690784f6dc977aedaa326e50075a55966b293c2ad6e8b096f9066ea44d7 + initial_ast: a59e2b26659a5d0d2dde07e1074b87770db51b0cc2681b7a2b748cacf589be78 + unrolled_ast: a59e2b26659a5d0d2dde07e1074b87770db51b0cc2681b7a2b748cacf589be78 + ssa_ast: 8ca94639953d46643a50a4382e71476c5a5b2913ff68cd85bfe481338ac62d0b + flattened_ast: b81add13f72644b3ad389f74c88cfc9a20f2706546e176c545586b0b2f15b633 + destructured_ast: 21f348012cb90db57366d295cc95036721a80816f14fe3cbdfc864746774409b + inlined_ast: 21f348012cb90db57366d295cc95036721a80816f14fe3cbdfc864746774409b + dce_ast: 21f348012cb90db57366d295cc95036721a80816f14fe3cbdfc864746774409b bytecode: c0b90b7f7e80041dc1a314c1a87290534936018fb001c6e1291266a02393c6f2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/access_array_with_loop_counter.out b/tests/expectations/compiler/array/access_array_with_loop_counter.out index 3361b148a9..85d2cc4ed1 100644 --- a/tests/expectations/compiler/array/access_array_with_loop_counter.out +++ b/tests/expectations/compiler/array/access_array_with_loop_counter.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3742aee96e76bb3d7d05a2f040bb4e84fa92268b522f537f91b6b74e1bf8754b - type_checked_symbol_table: e4097f4f784b48ea876a7d7278c96bc81f51a90c70f81d215fa490eca8ca5311 - unrolled_symbol_table: 60258c0c9cc5cd4935f5b8418ddbe251a9ece726e47dc6adb386747569b3c2fc - initial_ast: 3d649cf2f604480c50b5ff669bf54750f77e81f889a3998555cc71689390485c - unrolled_ast: 7ede4b449bb5d6f8017baae359e49a939f98fc956351a73c72049d8a6cfb9f96 - ssa_ast: 17ae84d03fb6b02573a98d6fe13a5237a50bd48a107d947c29dfd5025003ab96 - flattened_ast: 985b5d6acbf6e9eb67f8af31252aac85d8fc12cb6726b3250a939d7fd0c7cbf2 - destructured_ast: 01a6903c0b477163dc5be6959c7d00b0e86ef547c51aed50953f974d2735d216 - inlined_ast: 01a6903c0b477163dc5be6959c7d00b0e86ef547c51aed50953f974d2735d216 - dce_ast: 01a6903c0b477163dc5be6959c7d00b0e86ef547c51aed50953f974d2735d216 + - initial_symbol_table: 88a8ff2f354f16881dc7684a079ea9a5fa2adf0e1f2d839e02d94c75ec5d1586 + type_checked_symbol_table: 0e87e1db2789303438fdcfdba35ac549c221c2f54d84adbd07b14c52bc76073a + unrolled_symbol_table: 6286a9d0867cdac3c29b8bd41fdf763eb9a4c3f3d5c739075aa598ba230ac9ba + initial_ast: 39ae61c4640c874b18857c71c823770497bd028921e50e894be0de11bb6e24d6 + unrolled_ast: be6c3781a1a7f25e061513de704d3dc6fbf38e73f131c20193253bd66b4c65c9 + ssa_ast: bf646978106931fcce1030f23328e7ba80312ea6154aad0c25a5e2c80fbf91e3 + flattened_ast: 0ff810b8b3dc97e0657c4da64a4560064912ca76c92eb59e62564e6c333dec7b + destructured_ast: 6e610e2ba4320a30a9014f054f27de57f25d2cf6853df5bc560874a2af2e4c11 + inlined_ast: 6e610e2ba4320a30a9014f054f27de57f25d2cf6853df5bc560874a2af2e4c11 + dce_ast: 6e610e2ba4320a30a9014f054f27de57f25d2cf6853df5bc560874a2af2e4c11 bytecode: 5f0cb09518f39fc62d32faa38cb42fa04dca2587eaaaa1e0ac30fa9885ce4248 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_access.out b/tests/expectations/compiler/array/array_access.out index 6b63d5da58..bbc6230b21 100644 --- a/tests/expectations/compiler/array/array_access.out +++ b/tests/expectations/compiler/array/array_access.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f0c558fe33905e4a538c4b8c1778c51ccda937535c4fa06ffc7d83ae08f7b2cb - type_checked_symbol_table: d34d710ad8077f01ff2d8f4bdcc1328f2aa579651f2ebd3f00280f351024ebd2 - unrolled_symbol_table: d34d710ad8077f01ff2d8f4bdcc1328f2aa579651f2ebd3f00280f351024ebd2 - initial_ast: 32276ab6a1dc1aab9f7c473112e6672410ee24cc6161566deb1e4602658b4277 - unrolled_ast: 32276ab6a1dc1aab9f7c473112e6672410ee24cc6161566deb1e4602658b4277 - ssa_ast: 4e948dd99feb72930b8ec3a14c0dba9fe02af16ed798b858ca5247cdf7fa4527 - flattened_ast: 1870270c4c93698bd331a1890d73ac5f5524f3a0e9b35f48a00b9ffe630a781d - destructured_ast: 55ef280c7f5d558cace875f38161b48c6f4c86a59c51fe9f381f358a13e0ad57 - inlined_ast: 55ef280c7f5d558cace875f38161b48c6f4c86a59c51fe9f381f358a13e0ad57 - dce_ast: 55ef280c7f5d558cace875f38161b48c6f4c86a59c51fe9f381f358a13e0ad57 + - initial_symbol_table: 994a69e9c9cdabab84e56cbb71e44426ab828e9fd4391ef0a7d4a20842da8f7f + type_checked_symbol_table: e16d69137279da8e1af444a12e61c6c0bd97f192c4bebb6dc3aff92c37110a09 + unrolled_symbol_table: e16d69137279da8e1af444a12e61c6c0bd97f192c4bebb6dc3aff92c37110a09 + initial_ast: b93f8550acf8a1c02bb861ee31eee8824acdd4dd821ea72ebf33bd8acf776bb1 + unrolled_ast: b93f8550acf8a1c02bb861ee31eee8824acdd4dd821ea72ebf33bd8acf776bb1 + ssa_ast: 5307b6870b80c4ad964158ca0eba2c95b43a124c1f54ab34ddb0a7affb653287 + flattened_ast: 7770d00663c84e224859dae653f356276a7d533d64b4bbc5af09fa0b9f9d8008 + destructured_ast: e1efb2bb3a4453cf4237deb53c617aa97a9458f7950b49cbedc8cc6395efafa7 + inlined_ast: e1efb2bb3a4453cf4237deb53c617aa97a9458f7950b49cbedc8cc6395efafa7 + dce_ast: e1efb2bb3a4453cf4237deb53c617aa97a9458f7950b49cbedc8cc6395efafa7 bytecode: d5ca429014c67ec53c9ce4c200f06611379969892725237b5164737ea8100c12 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_in_composite_data_types.out b/tests/expectations/compiler/array/array_in_composite_data_types.out index b20640e657..fccbb0281e 100644 --- a/tests/expectations/compiler/array/array_in_composite_data_types.out +++ b/tests/expectations/compiler/array/array_in_composite_data_types.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a9e39c80f4a7f4cac48e8fa673aec1a25fb39998ad02d690a0922bdbf7c91a5 - type_checked_symbol_table: fcace63f105343adf3ce1f8d99a70762e83a99e81d6d9a366ec7e9a7bfcbbb96 - unrolled_symbol_table: fcace63f105343adf3ce1f8d99a70762e83a99e81d6d9a366ec7e9a7bfcbbb96 - initial_ast: ed44f2e8674bc083238a3e55c224e862583cc2118f7032194dd9f866937f6e11 - unrolled_ast: ed44f2e8674bc083238a3e55c224e862583cc2118f7032194dd9f866937f6e11 - ssa_ast: cace7d8d010a0387e087f70d50dda22dd9219f10e7e93f4c5b8de4afd2b7abfe - flattened_ast: 00d9a1361c7f00b01be1856f385ccb2ce2864a33d17f01cde91b83ba527cf663 - destructured_ast: 190079c0017bf93950821145acf9f999dd7e8f9cb1a5267b22aefa3c08dd002d - inlined_ast: 190079c0017bf93950821145acf9f999dd7e8f9cb1a5267b22aefa3c08dd002d - dce_ast: 190079c0017bf93950821145acf9f999dd7e8f9cb1a5267b22aefa3c08dd002d + - initial_symbol_table: 1291a91a90aa118374f06ad4be54ee1f0eb4f46d124bf043fa34086a985f2cc9 + type_checked_symbol_table: 0ea6b45ef0b7c7b78bec95bdfcfa43cf88e4f9ae2a19adffefa2a14fecaa8beb + unrolled_symbol_table: 0ea6b45ef0b7c7b78bec95bdfcfa43cf88e4f9ae2a19adffefa2a14fecaa8beb + initial_ast: fd14a36fd901d44e7995cda468f05853f8ae30e892603836d74a1d8ee4fc7578 + unrolled_ast: fd14a36fd901d44e7995cda468f05853f8ae30e892603836d74a1d8ee4fc7578 + ssa_ast: 0d72b7e370373fb6537bca11164567195e0d5d2a8f5f3aa4cbc6f486e1578219 + flattened_ast: b5a945962957e668fcfd4ba6394f48aa7dbe5cc9d327a65d95f05e6daf43df82 + destructured_ast: 4710554eada5f260f55cd77620be4b73d0d16121408a5cbf13581db2380fe124 + inlined_ast: 4710554eada5f260f55cd77620be4b73d0d16121408a5cbf13581db2380fe124 + dce_ast: 4710554eada5f260f55cd77620be4b73d0d16121408a5cbf13581db2380fe124 bytecode: a3539a0515c22f4ec653aa601063d7a414db833dc25273cee463985b052b72bc errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_in_finalize.out b/tests/expectations/compiler/array/array_in_finalize.out index 04cc90a26e..9875c3ecae 100644 --- a/tests/expectations/compiler/array/array_in_finalize.out +++ b/tests/expectations/compiler/array/array_in_finalize.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 513000ef5b6588b18b4e9307c998bdac2d0eaf3c0fbe8f972df99531d10fb990 - type_checked_symbol_table: 87970aa8e3bdb5c78b6316f4b6ce58036b334f72316b38e89f53ea0fa2cdc883 - unrolled_symbol_table: 87970aa8e3bdb5c78b6316f4b6ce58036b334f72316b38e89f53ea0fa2cdc883 - initial_ast: 031c8fde01e7664264477a68836b02a1509461bb352940221d35f62f51dcfce2 - unrolled_ast: 031c8fde01e7664264477a68836b02a1509461bb352940221d35f62f51dcfce2 - ssa_ast: 7a81bde21f8f85449b1ea0620e9feb46ca294f6d0c5dab6bdf6537bca42f1a26 - flattened_ast: 29345cb534219377137f4fda5f28cd516e46bee93d276a481df72aa855227f02 - destructured_ast: c811b0fbd315b49da02dbb6e3000a47648ed7d47ab5906d5e918d527928575b0 - inlined_ast: c811b0fbd315b49da02dbb6e3000a47648ed7d47ab5906d5e918d527928575b0 - dce_ast: c811b0fbd315b49da02dbb6e3000a47648ed7d47ab5906d5e918d527928575b0 - bytecode: 66a857f6a5e79328d146c55f5e42c6eb249b7c6c9cc1c6e0c534328b85e649eb + - initial_symbol_table: 70e685d495d80ed119b5ab9580baa25c9d36cef0fac9777f4942df489e6f23cc + type_checked_symbol_table: e96bfff8b85fa61bd3d77a04502acb5b62bbf03258b2c9a5cbb3a3dab3d25d5c + unrolled_symbol_table: e96bfff8b85fa61bd3d77a04502acb5b62bbf03258b2c9a5cbb3a3dab3d25d5c + initial_ast: 87bcf0e28ba7edc41f0b07a7bead17bbe5328ab2428c46c0482cb651865f13ff + unrolled_ast: 87bcf0e28ba7edc41f0b07a7bead17bbe5328ab2428c46c0482cb651865f13ff + ssa_ast: 679a4fc4f572152ce040d922439f27337246f275f5dba2e060d84f9597e382dc + flattened_ast: 78d5e7f3320b38d0ad0200facfbc40603beeb1ef84bc3c7b11fb30dec5d17412 + destructured_ast: c175e4d6939f54aba8855253e07ecba75ae7c77ed9e224538cf7d18e322e6f29 + inlined_ast: 6528b6f4bcd689b7650732ab02c0494134975401be400310aa842e42667455c2 + dce_ast: 6528b6f4bcd689b7650732ab02c0494134975401be400310aa842e42667455c2 + bytecode: 6d2dea5677417b5359aa082a7ffd6afbbfbba7a3557f7f6011a88d3b93fc8d03 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_in_function_signature.out b/tests/expectations/compiler/array/array_in_function_signature.out index 80e6fb0413..403e858453 100644 --- a/tests/expectations/compiler/array/array_in_function_signature.out +++ b/tests/expectations/compiler/array/array_in_function_signature.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 78fdfbc136a07b9056e6365495b010543217aae651dfa5b4991024873ba0396b - type_checked_symbol_table: 820e08769c49cac44545850f7756291c7e7181f273a63f16a0ce4892e3c45a28 - unrolled_symbol_table: 820e08769c49cac44545850f7756291c7e7181f273a63f16a0ce4892e3c45a28 - initial_ast: 102d78cfa8f14fdfcb39e6ccbccbc78820acef97645800ffc84931f9b82e9f5d - unrolled_ast: 102d78cfa8f14fdfcb39e6ccbccbc78820acef97645800ffc84931f9b82e9f5d - ssa_ast: a09ab12ef7f9790e9a1725c1b2dc86d65564b489d1e685b380a28f9bbcb33b6a - flattened_ast: ea928f6cb8ced6deb619e281f0a580a258f2a4dc771f6489738b5381decf10b0 - destructured_ast: 52d3bf925752d918afe27ec537319cb6ddc7d88884e55fcc6b219766705c17d2 - inlined_ast: 52d3bf925752d918afe27ec537319cb6ddc7d88884e55fcc6b219766705c17d2 - dce_ast: 52d3bf925752d918afe27ec537319cb6ddc7d88884e55fcc6b219766705c17d2 + - initial_symbol_table: 8f686b440e1d2cd543e5190759bbdc06182117b97640638f646f216f9f9439fb + type_checked_symbol_table: c7af7e465a9243ea067a24ba08c5e6eb261c6529a3268956f2c1b3a57827a5fc + unrolled_symbol_table: c7af7e465a9243ea067a24ba08c5e6eb261c6529a3268956f2c1b3a57827a5fc + initial_ast: 40a51503f07d56acd1488ed53e376b2e05d1adee3b6a76080eb9ce35203e9865 + unrolled_ast: 40a51503f07d56acd1488ed53e376b2e05d1adee3b6a76080eb9ce35203e9865 + ssa_ast: a01a9ec88c7a9ccd9ef3d344ae637c3bca9e0f696cdacaf38cf81103f7a0d788 + flattened_ast: c35ebc38c080280a6a86ce383316dab7bd74a3c0b88c4c55450f3b6780eab4d6 + destructured_ast: f7d927407be3b507a14aaeb00ecc6535bb97b73e30ec86d64c5f11e49968608a + inlined_ast: f7d927407be3b507a14aaeb00ecc6535bb97b73e30ec86d64c5f11e49968608a + dce_ast: f7d927407be3b507a14aaeb00ecc6535bb97b73e30ec86d64c5f11e49968608a bytecode: 0871c25bd990602b411e2492035ed37dfd4243251c0b6aed5d0937e00f91ec89 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_in_mapping.out b/tests/expectations/compiler/array/array_in_mapping.out index 81fbac15d3..c9849c6098 100644 --- a/tests/expectations/compiler/array/array_in_mapping.out +++ b/tests/expectations/compiler/array/array_in_mapping.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 500c040c7c93a9b43123f9b77a4c805ad791563acccaa8fe77f2077d242a1a14 - type_checked_symbol_table: 2194ee075b5de9a883208b611ee50d05dd98a0b70cfb1c3b7cd14c1eb2f5c4b9 - unrolled_symbol_table: 2194ee075b5de9a883208b611ee50d05dd98a0b70cfb1c3b7cd14c1eb2f5c4b9 - initial_ast: 7d40187329bfa45bc12a8722d93ae749d18bc1e74140426242a684297dd1f3e8 - unrolled_ast: 7d40187329bfa45bc12a8722d93ae749d18bc1e74140426242a684297dd1f3e8 - ssa_ast: 7d40187329bfa45bc12a8722d93ae749d18bc1e74140426242a684297dd1f3e8 - flattened_ast: e2468a2b162270486b4c801ca8d53737250d16e11b1907aa0181ac2bdb710638 - destructured_ast: 3a14bdb199158262348c694d07030108f2dddd658c822d2a1e88e5b8640a1438 - inlined_ast: 3a14bdb199158262348c694d07030108f2dddd658c822d2a1e88e5b8640a1438 - dce_ast: 3a14bdb199158262348c694d07030108f2dddd658c822d2a1e88e5b8640a1438 - bytecode: bbabb76319d2c69ed28a19090796ad7f974be74a1ef138d0cc58507cc4787632 + - initial_symbol_table: abf36ed55f5843ebc1f3242b1022888e489206da4e9fef98ea45206ca87aa9b1 + type_checked_symbol_table: 7ac4c7922f14871dfefe6f5ab9ffd85c440c495587b4a978e3bb6eb27fdc5dfc + unrolled_symbol_table: 7ac4c7922f14871dfefe6f5ab9ffd85c440c495587b4a978e3bb6eb27fdc5dfc + initial_ast: 955bf497b346f47653f924b4dadef81cb84f1bfa0a323b7e0a507dd754d67dbf + unrolled_ast: 955bf497b346f47653f924b4dadef81cb84f1bfa0a323b7e0a507dd754d67dbf + ssa_ast: e0936e2b57582db6d022915179725558a608ec2a9b76aeecdf4d80535664034e + flattened_ast: 2c9c3edece96e2561ea166e8d2b1ddcf11fcbe67b6d7fbc515ab30a2b74e55c3 + destructured_ast: c8c22a39cade77232dbb2c13abd15c10161e4df6569239f866a06d4a17113e47 + inlined_ast: e4bad473d142300dd19a0aafb71359753d2e02db2d8f5ef44e7148b344f25128 + dce_ast: e4bad473d142300dd19a0aafb71359753d2e02db2d8f5ef44e7148b344f25128 + bytecode: 3914a12d8c1225083e703e35499e8c4fccb9dde44d02f0b281c1538ba6f93156 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_initialization.out b/tests/expectations/compiler/array/array_initialization.out index 258969e2d0..5cedd0a69e 100644 --- a/tests/expectations/compiler/array/array_initialization.out +++ b/tests/expectations/compiler/array/array_initialization.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 03c3c6a161c2813b1e23ee475d096e4736319aeade6acd8a5c01d06bb6666d39 - type_checked_symbol_table: 725f7cb442d1391ac14f33a35f2f08b16172caa56311f0b8f62b0d890a89240e - unrolled_symbol_table: 725f7cb442d1391ac14f33a35f2f08b16172caa56311f0b8f62b0d890a89240e - initial_ast: 660059d86d20bf51414ba6a346b61dd0c6afa1d975d1ede5d238625971d2ece2 - unrolled_ast: 660059d86d20bf51414ba6a346b61dd0c6afa1d975d1ede5d238625971d2ece2 - ssa_ast: 4d231a23b66f1e53a4ee1710c9228f325595440c08b06a40e29021683d47ea17 - flattened_ast: 351a1c018c70da07816b449a263dae9814c2a834d3ce9d61ee9128f12d664ea3 - destructured_ast: 9be6cf274ef817fec1e3b6bd65c517c32334046d10cee4e8ecf539a6faff9c01 - inlined_ast: 9be6cf274ef817fec1e3b6bd65c517c32334046d10cee4e8ecf539a6faff9c01 - dce_ast: 9be6cf274ef817fec1e3b6bd65c517c32334046d10cee4e8ecf539a6faff9c01 + - initial_symbol_table: 70f82278604bffb112d1c69574fe103b6028d92a17355fa962c33ff578cc0dd4 + type_checked_symbol_table: 5d30bcdba029ab2b8623a67f3615905535822dd2e1e2c382b208b46a287f1378 + unrolled_symbol_table: 5d30bcdba029ab2b8623a67f3615905535822dd2e1e2c382b208b46a287f1378 + initial_ast: a97de2c42995479c99a0dff4eb94b6b49e95326f07bad36322f39d772749d2f3 + unrolled_ast: a97de2c42995479c99a0dff4eb94b6b49e95326f07bad36322f39d772749d2f3 + ssa_ast: de184802ff5f549b150cd8ad5b5d3cda5279559f5b758835b0ed0739166c30e7 + flattened_ast: d5ea0b2bb81b3471cc8db8ab1c7d39f42eb75d553e6dc9721a1f6ffcd20432f2 + destructured_ast: 9abafc1a32bfdaa41ed04e463f9ff7ba392cacf96902514ef9f13356519a4270 + inlined_ast: 9abafc1a32bfdaa41ed04e463f9ff7ba392cacf96902514ef9f13356519a4270 + dce_ast: 9abafc1a32bfdaa41ed04e463f9ff7ba392cacf96902514ef9f13356519a4270 bytecode: 5adcc7b9450eedbada20f55565a821769e58c3cacb624d7e45061693d167a079 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_of_records.out b/tests/expectations/compiler/array/array_of_records.out index 298b49da96..fc93be8bdf 100644 --- a/tests/expectations/compiler/array/array_of_records.out +++ b/tests/expectations/compiler/array/array_of_records.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372089]: An array cannot have a record as an element type\n --> compiler-test:9:20\n |\n 9 | transition foo(a: [bar; 8]) -> u8 {\n | ^\n" + - "Error [ETYC0372079]: An array cannot have a record as an element type\n --> compiler-test:9:20\n |\n 9 | transition foo(a: [bar; 8]) -> u8 {\n | ^\n" diff --git a/tests/expectations/compiler/array/array_of_structs.out b/tests/expectations/compiler/array/array_of_structs.out index 3133146f63..56ab6f49b0 100644 --- a/tests/expectations/compiler/array/array_of_structs.out +++ b/tests/expectations/compiler/array/array_of_structs.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 26f877e6575661a91a28368e33498e6e6807f3a2027fb798a383c8bddce3218b - type_checked_symbol_table: a156cac3eae20c8389876081217052404f77d236c4766e8bb0782d0b9594dffb - unrolled_symbol_table: a156cac3eae20c8389876081217052404f77d236c4766e8bb0782d0b9594dffb - initial_ast: f220b8582b245809648f0b3697d37949bd2fd02767b68e32271e8b333e51308a - unrolled_ast: f220b8582b245809648f0b3697d37949bd2fd02767b68e32271e8b333e51308a - ssa_ast: 4023197733bca77f2882eb2f3f2ade5191fbacbeca3732ef79e077d26f629fc1 - flattened_ast: eaa969f63bfd5010915975bd11f4d8cd9ef88936ffcfa1bf34b1a76af1c2b1e3 - destructured_ast: b2b04532023156c700a64414ed41664dbb7b36edff06bff46fb5f029fa48e094 - inlined_ast: b2b04532023156c700a64414ed41664dbb7b36edff06bff46fb5f029fa48e094 - dce_ast: b2b04532023156c700a64414ed41664dbb7b36edff06bff46fb5f029fa48e094 + - initial_symbol_table: cc524ab0524f4e93e969758157bb3dd1caaae1c740cffac0b4e35edd15de762d + type_checked_symbol_table: 441877c82d8468247a7f62b202bba12cf0fb4f3f6a82d22c2ad8b82814c467a9 + unrolled_symbol_table: 441877c82d8468247a7f62b202bba12cf0fb4f3f6a82d22c2ad8b82814c467a9 + initial_ast: b535ad589ab03c8e87e686babd955478e13b0f9c12e9681ec83a33c8d0747b4b + unrolled_ast: b535ad589ab03c8e87e686babd955478e13b0f9c12e9681ec83a33c8d0747b4b + ssa_ast: 57ce7348c46c7c77089f3c5c3c41a5baac1ccf1e0993b97834ef03af80512a69 + flattened_ast: caecde473ba965b65b059d7bd0498181d3cedd12403295d6ac344f006788ee49 + destructured_ast: 2e131d8b41206e76acd1acc71b6f90f78dd2f1c358d775406c251d02dfb8bcb5 + inlined_ast: 2e131d8b41206e76acd1acc71b6f90f78dd2f1c358d775406c251d02dfb8bcb5 + dce_ast: 2e131d8b41206e76acd1acc71b6f90f78dd2f1c358d775406c251d02dfb8bcb5 bytecode: 53499e77217ba5d8d146384234cbed9abe5c47abcbfe547f7bff6fbef4194a56 errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_size_limits.out b/tests/expectations/compiler/array/array_size_limits.out index 1695eaace5..2bef0923ad 100644 --- a/tests/expectations/compiler/array/array_size_limits.out +++ b/tests/expectations/compiler/array/array_size_limits.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2736b9080cd1f7ee443af8ec180fb09deba000c8dfe4318dbb30f1709936ecdf - type_checked_symbol_table: 01b285a9912018552f939ce1c1fb09776f50d1eb361299d9e9a5eb68287944ff - unrolled_symbol_table: 01b285a9912018552f939ce1c1fb09776f50d1eb361299d9e9a5eb68287944ff - initial_ast: 4a5225c722d8af4f266ec15f7e9ff05e2c9375daa78f21ee078a5e22198d0adf - unrolled_ast: 4a5225c722d8af4f266ec15f7e9ff05e2c9375daa78f21ee078a5e22198d0adf - ssa_ast: 1708017fb5ea18ede484da052f593113726832c08a726e6fb824827e4a7ea111 - flattened_ast: f86fbd97869c73e10ca2626da6ef391655cd94ad1eade81038d5c357e9e47e10 - destructured_ast: 8c3a2b2387bf2d7114b791c9385e9b48edf355b20653b7454103787da25520d4 - inlined_ast: 8c3a2b2387bf2d7114b791c9385e9b48edf355b20653b7454103787da25520d4 - dce_ast: 8c3a2b2387bf2d7114b791c9385e9b48edf355b20653b7454103787da25520d4 + - initial_symbol_table: 7dbe7c24a1ebacb04fe3abf727465e3644f01f3ba6af3eb4cf67d31ec2d106f9 + type_checked_symbol_table: 03664c610b8f5c3fa99a9127998bc9f69839104486c05b2389258a7104c312d2 + unrolled_symbol_table: 03664c610b8f5c3fa99a9127998bc9f69839104486c05b2389258a7104c312d2 + initial_ast: f77c072a2483b8777d1e14d772c3a1699b80126d3cafcc65a28dcdab84874e89 + unrolled_ast: f77c072a2483b8777d1e14d772c3a1699b80126d3cafcc65a28dcdab84874e89 + ssa_ast: e866e3eabbc719b2f4f94f1be63911de4ded1c85563cd0c45be052ae4aafd35f + flattened_ast: d522d3c288c1498ffd652fb2a4ad15c3062c284d8fdd7df38d213b1c950ca3e2 + destructured_ast: 56e9f0b79ea83395c7a20e15f534a8cb8398f1fde5a1467c56d2f845acd02ed2 + inlined_ast: 56e9f0b79ea83395c7a20e15f534a8cb8398f1fde5a1467c56d2f845acd02ed2 + dce_ast: 56e9f0b79ea83395c7a20e15f534a8cb8398f1fde5a1467c56d2f845acd02ed2 bytecode: 87676231f14ea25fc123a2569754b9ff0dca4a4f7cee0eb4ed6419174dd0af4c errors: "" warnings: "" diff --git a/tests/expectations/compiler/array/array_too_large_fail.out b/tests/expectations/compiler/array/array_too_large_fail.out index 1d3ca3691f..136ee1c64e 100644 --- a/tests/expectations/compiler/array/array_too_large_fail.out +++ b/tests/expectations/compiler/array/array_too_large_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372087]: An array cannot have more than 32 elements, found one with 33 elements\n --> compiler-test:4:20\n |\n 4 | transition foo(a: [bool; 33]) -> bool {\n | ^\n" + - "Error [ETYC0372077]: An array cannot have more than 32 elements, found one with 33 elements\n --> compiler-test:4:20\n |\n 4 | transition foo(a: [bool; 33]) -> bool {\n | ^\n" diff --git a/tests/expectations/compiler/array/array_too_small_fail.out b/tests/expectations/compiler/array/array_too_small_fail.out index 5944b6c24f..e623cd9b9f 100644 --- a/tests/expectations/compiler/array/array_too_small_fail.out +++ b/tests/expectations/compiler/array/array_too_small_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372086]: An array cannot be empty\n --> compiler-test:4:20\n |\n 4 | transition foo(a: [bool; 0]) -> bool {\n | ^\n" + - "Error [ETYC0372076]: An array cannot be empty\n --> compiler-test:4:20\n |\n 4 | transition foo(a: [bool; 0]) -> bool {\n | ^\n" diff --git a/tests/expectations/compiler/array/array_with_units_fail.out b/tests/expectations/compiler/array/array_with_units_fail.out index 2916cd85d1..3a480b1b0d 100644 --- a/tests/expectations/compiler/array/array_with_units_fail.out +++ b/tests/expectations/compiler/array/array_with_units_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:5:29\n |\n 5 | let bar: [(); 2] = [(), ()];\n | ^^\nError [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:5:33\n |\n 5 | let bar: [(); 2] = [(), ()];\n | ^^\nError [ETYC0372038]: Function must return a value.\n --> compiler-test:4:5\n |\n 4 | transition foo() -> bool {\n 5 | let bar: [(); 2] = [(), ()];\n 6 | }\n | ^\n" + - "Error [ETYC0372056]: Unit expressions can only be used in return statements.\n --> compiler-test:5:29\n |\n 5 | let bar: [(); 2] = [(), ()];\n | ^^\nError [ETYC0372056]: Unit expressions can only be used in return statements.\n --> compiler-test:5:33\n |\n 5 | let bar: [(); 2] = [(), ()];\n | ^^\nError [ETYC0372036]: Function must return a value.\n --> compiler-test:4:5\n |\n 4 | transition foo() -> bool {\n 5 | let bar: [(); 2] = [(), ()];\n 6 | }\n | ^\n" diff --git a/tests/expectations/compiler/boolean/and.out b/tests/expectations/compiler/boolean/and.out index 22a82ad592..b42bd2c904 100644 --- a/tests/expectations/compiler/boolean/and.out +++ b/tests/expectations/compiler/boolean/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2554df804e76bce64e5beedbf8d8e065838dbcbd414e55b572828825d0d697b - type_checked_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - unrolled_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - initial_ast: cb1bfce0497f40547211ffaeffda34260f6757ae7d01a459b18bc67b8ac8f34a - unrolled_ast: cb1bfce0497f40547211ffaeffda34260f6757ae7d01a459b18bc67b8ac8f34a - ssa_ast: 2e2f85fc41a676f3000db2d8458423fdbc30249f4adc8586cdd5c8dd4c71f54f - flattened_ast: 262edbbd14bb015caaf058b5e221350ee434c9e677588cedf934230ef546ad18 - destructured_ast: f38da35449d08acc987f25287f0626bc904dedd91b184af73f2dc01e68cfaae1 - inlined_ast: f38da35449d08acc987f25287f0626bc904dedd91b184af73f2dc01e68cfaae1 - dce_ast: f38da35449d08acc987f25287f0626bc904dedd91b184af73f2dc01e68cfaae1 + - initial_symbol_table: bd10063c57991ab406a4d0ed78569254ff3296c4e22dec59f23b5f5683698704 + type_checked_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + unrolled_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + initial_ast: 4211fd2afa8b49f29654164ba4a1013c789c9e56bbbab81991246029c42b2b1e + unrolled_ast: 4211fd2afa8b49f29654164ba4a1013c789c9e56bbbab81991246029c42b2b1e + ssa_ast: b2cacb5e41cca31970c79a3b38aae2f1011e2524d3418d59dea48a504f427d00 + flattened_ast: 57ce47c3c696e3a756f07d9612c4f476cb9fb2c7605330f46d4b1160c527f65a + destructured_ast: c29c89d3a0c19970df63e26418453b8709ff3fb6bbb3af4b74abb1a9f18b5539 + inlined_ast: c29c89d3a0c19970df63e26418453b8709ff3fb6bbb3af4b74abb1a9f18b5539 + dce_ast: c29c89d3a0c19970df63e26418453b8709ff3fb6bbb3af4b74abb1a9f18b5539 bytecode: 134904b86b96581876c2ca0c6ead651dda0dc9f2fb6dc583400133410b7deede errors: "" warnings: "" diff --git a/tests/expectations/compiler/boolean/conditional.out b/tests/expectations/compiler/boolean/conditional.out index 8d8059f408..85cc983946 100644 --- a/tests/expectations/compiler/boolean/conditional.out +++ b/tests/expectations/compiler/boolean/conditional.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2554df804e76bce64e5beedbf8d8e065838dbcbd414e55b572828825d0d697b - type_checked_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - unrolled_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - initial_ast: e4a47461dd96ca03ee0cf5f66cd341212a64411225adfe1f4650b5a0244dc505 - unrolled_ast: e4a47461dd96ca03ee0cf5f66cd341212a64411225adfe1f4650b5a0244dc505 - ssa_ast: 4b157ccde4b193233579fc52a44a24b89ab462bf370717bf274003f65e143567 - flattened_ast: 959bdc62988f257cc6d6c649d512b67e8082bf5e03a4631f0b4b6a5249a3a657 - destructured_ast: 5d5379f88c7a5fef32fc9bf9f7f86ae3f5d3f8044d24d7846f8cec26af6a0902 - inlined_ast: 5d5379f88c7a5fef32fc9bf9f7f86ae3f5d3f8044d24d7846f8cec26af6a0902 - dce_ast: 5d5379f88c7a5fef32fc9bf9f7f86ae3f5d3f8044d24d7846f8cec26af6a0902 + - initial_symbol_table: bd10063c57991ab406a4d0ed78569254ff3296c4e22dec59f23b5f5683698704 + type_checked_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + unrolled_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + initial_ast: 0d8dda87869714e40756fd2f98510d272650aaa22fa3d52102e2d3a0f581bf6d + unrolled_ast: 0d8dda87869714e40756fd2f98510d272650aaa22fa3d52102e2d3a0f581bf6d + ssa_ast: 25b083a522a1f43a2644fb462797a2f4d9e575846652b2f970f02337c3dc7569 + flattened_ast: 77fba1f1b2ce5fcbe011e36806937612525ab106fb65575c667afcf051741656 + destructured_ast: af919e48fb51788ddae4a76961da635623877f7270fc2948bb96c6a4aebda245 + inlined_ast: af919e48fb51788ddae4a76961da635623877f7270fc2948bb96c6a4aebda245 + dce_ast: af919e48fb51788ddae4a76961da635623877f7270fc2948bb96c6a4aebda245 bytecode: 56a9fa48a00d1b38b6f60a93ef2168b2c0ce9c23ba3cb7bffa40debfc1b16180 errors: "" warnings: "" diff --git a/tests/expectations/compiler/boolean/equal.out b/tests/expectations/compiler/boolean/equal.out index 7273e9ddba..60639b032f 100644 --- a/tests/expectations/compiler/boolean/equal.out +++ b/tests/expectations/compiler/boolean/equal.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2554df804e76bce64e5beedbf8d8e065838dbcbd414e55b572828825d0d697b - type_checked_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - unrolled_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - initial_ast: 61217aec18c2073eee84ec4213b7bc45ed3bf4743a7dd0f438697e081a881dc7 - unrolled_ast: 61217aec18c2073eee84ec4213b7bc45ed3bf4743a7dd0f438697e081a881dc7 - ssa_ast: 2279e268ed5b67453ec005211004ebee30d7577737a87ad4bc21e72c36be2db0 - flattened_ast: a435047224da26164211d0859f21ac93e7c862dfd8d6b7ca2309e07dad0f8099 - destructured_ast: eec8bc555a48e191e4895ae8e073c9e01e32e4a4c32f560a672ed4000fbfe233 - inlined_ast: eec8bc555a48e191e4895ae8e073c9e01e32e4a4c32f560a672ed4000fbfe233 - dce_ast: eec8bc555a48e191e4895ae8e073c9e01e32e4a4c32f560a672ed4000fbfe233 + - initial_symbol_table: bd10063c57991ab406a4d0ed78569254ff3296c4e22dec59f23b5f5683698704 + type_checked_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + unrolled_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + initial_ast: b5d6bd78a15f45ab391eab1ad69ea09a430e15cc57cf7247129d0a8647b729df + unrolled_ast: b5d6bd78a15f45ab391eab1ad69ea09a430e15cc57cf7247129d0a8647b729df + ssa_ast: 47dc208e70efa04694b2abcf8a43cf26bdffae50a3a0a095d50c54e4fac3802c + flattened_ast: 98fafaee7aae3e3717cb2fd86e18b1e7c2bc05ba7665528365ede914b5904f40 + destructured_ast: b1c1205ee4abc7a755373da17529b3c538151a3ad7e33387a0e1305792de5cce + inlined_ast: b1c1205ee4abc7a755373da17529b3c538151a3ad7e33387a0e1305792de5cce + dce_ast: b1c1205ee4abc7a755373da17529b3c538151a3ad7e33387a0e1305792de5cce bytecode: 2332d5b7ed9910dc65c885e1aeedbbde00e02d95a55caa300a9cb72456707034 errors: "" warnings: "" diff --git a/tests/expectations/compiler/boolean/not_equal.out b/tests/expectations/compiler/boolean/not_equal.out index 4dd664773f..d89d312685 100644 --- a/tests/expectations/compiler/boolean/not_equal.out +++ b/tests/expectations/compiler/boolean/not_equal.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2554df804e76bce64e5beedbf8d8e065838dbcbd414e55b572828825d0d697b - type_checked_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - unrolled_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - initial_ast: c16f3e4533f6a833dd3429cdace72599198d9ffc0cff0c5262f7d2d817aecad2 - unrolled_ast: c16f3e4533f6a833dd3429cdace72599198d9ffc0cff0c5262f7d2d817aecad2 - ssa_ast: 4cb449adc13d9fc054d35a4306c031d95833037c377da5fc56b4a76f2eabaa9c - flattened_ast: 168cdaccc60a15bd504f5d1a86998611aa82892610386f4cd5258abc05643f22 - destructured_ast: 2428bc52f2407de9746fd7eda15cfea48b39f6175906a5a42c72e256545e0fac - inlined_ast: 2428bc52f2407de9746fd7eda15cfea48b39f6175906a5a42c72e256545e0fac - dce_ast: 2428bc52f2407de9746fd7eda15cfea48b39f6175906a5a42c72e256545e0fac + - initial_symbol_table: bd10063c57991ab406a4d0ed78569254ff3296c4e22dec59f23b5f5683698704 + type_checked_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + unrolled_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + initial_ast: 9832f7af734c0240c484d0c2daffc26aa891f74f75f9bc082c2f36f5985240e6 + unrolled_ast: 9832f7af734c0240c484d0c2daffc26aa891f74f75f9bc082c2f36f5985240e6 + ssa_ast: 4a4ffea8c607062010c1174fc0dcd1b9297125099ae63821f9a7c89dc9eff8ab + flattened_ast: f590a0089fbc846a060d737f2d6bd585cf423843ccd56b04d8768d48b8dc17e7 + destructured_ast: 881aece8c88d9509eabf565698cd54259ae40632db3bb4b8d28c7e4db181833a + inlined_ast: 881aece8c88d9509eabf565698cd54259ae40632db3bb4b8d28c7e4db181833a + dce_ast: 881aece8c88d9509eabf565698cd54259ae40632db3bb4b8d28c7e4db181833a bytecode: 990eee0b87d70df046bad969201ad8afabff10162eb70c00f837fde81fed4104 errors: "" warnings: "" diff --git a/tests/expectations/compiler/boolean/operator_methods.out b/tests/expectations/compiler/boolean/operator_methods.out index 24ecf0733a..87c659ff43 100644 --- a/tests/expectations/compiler/boolean/operator_methods.out +++ b/tests/expectations/compiler/boolean/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2554df804e76bce64e5beedbf8d8e065838dbcbd414e55b572828825d0d697b - type_checked_symbol_table: a8f7a4e237c8966091f6c5fdef5b980e067d7d91ebc40ab89dccdc6e36de71fb - unrolled_symbol_table: a8f7a4e237c8966091f6c5fdef5b980e067d7d91ebc40ab89dccdc6e36de71fb - initial_ast: 34ef2d8c201f7799c13ebdffbc40ae7ce6cf81c04e30286b7eae833c6fc4b356 - unrolled_ast: 34ef2d8c201f7799c13ebdffbc40ae7ce6cf81c04e30286b7eae833c6fc4b356 - ssa_ast: fb94a65958ce35f26e3b445f2069f5a728bd48c94517eefa84a98ba589b22df8 - flattened_ast: 902a44e03c34cd3c2045243b58377180ee78d460d017bb4e9ce80cc48b5a1d8c - destructured_ast: 81519b70dd5b8f52dc24a3ee25e5f00378763639af72cc88fbd6330d66219392 - inlined_ast: 81519b70dd5b8f52dc24a3ee25e5f00378763639af72cc88fbd6330d66219392 - dce_ast: e4f6dca808d318e43ba9fff9e726ed58beb588c47196d1d7197805620352c29c + - initial_symbol_table: bd10063c57991ab406a4d0ed78569254ff3296c4e22dec59f23b5f5683698704 + type_checked_symbol_table: d2b055e782e24494e1a03542237e630d726006d340be60d2a57d061c2aff1205 + unrolled_symbol_table: d2b055e782e24494e1a03542237e630d726006d340be60d2a57d061c2aff1205 + initial_ast: c97a474d84294eeef08309b35ad687acc562fa138ab6ba66dbd099449c470d92 + unrolled_ast: c97a474d84294eeef08309b35ad687acc562fa138ab6ba66dbd099449c470d92 + ssa_ast: d5dc0dfaae664f6f6a6429fa26b5f93949d9eaf011650cc77eea4e44a7a7ee77 + flattened_ast: b62534ac3f8a00e1ab60be2f43416047f63be07b55e5fc1dc65e410fa5e17ece + destructured_ast: 7a742b9a3f2a47241e09f3f0ba1fbf9beddb39dd03070578869e4733d176d5c4 + inlined_ast: 7a742b9a3f2a47241e09f3f0ba1fbf9beddb39dd03070578869e4733d176d5c4 + dce_ast: b58413720432c2e9194aba0ff77579cc75ad2496d65841a183a1ab7cd697f195 bytecode: bb260232bbd0ccede368961a31abeef5edc7e00cab3348b4b8518d4e5798a6b5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/boolean/or.out b/tests/expectations/compiler/boolean/or.out index 0458586f90..1b931ca9a5 100644 --- a/tests/expectations/compiler/boolean/or.out +++ b/tests/expectations/compiler/boolean/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2554df804e76bce64e5beedbf8d8e065838dbcbd414e55b572828825d0d697b - type_checked_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - unrolled_symbol_table: 22b375401300c7518693377bd090bac20ee7b423925434817e9d88c889e7deba - initial_ast: b1d21cb0ba71715333e75efca70fe0bcf972fe6cd829450005477642b87073fe - unrolled_ast: b1d21cb0ba71715333e75efca70fe0bcf972fe6cd829450005477642b87073fe - ssa_ast: 2d68d235dcd42e1f8bc6c6a7b33df61ea8f568ef47f0f8d45ec829f5ba322747 - flattened_ast: 69ba227eb312a96c98b9bd948e0211f3d5a5ab776baee208d240ab26cbf44f9c - destructured_ast: a05609fc7fb96a7c9287782e1077381d674700017b8340a40c1515af3c97ae50 - inlined_ast: a05609fc7fb96a7c9287782e1077381d674700017b8340a40c1515af3c97ae50 - dce_ast: a05609fc7fb96a7c9287782e1077381d674700017b8340a40c1515af3c97ae50 + - initial_symbol_table: bd10063c57991ab406a4d0ed78569254ff3296c4e22dec59f23b5f5683698704 + type_checked_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + unrolled_symbol_table: ebd01f7299929e2253c4f53ad0ae2f0f4b14cf1bc3e4087b59ba2c67c4f78b40 + initial_ast: 8289a856e0dd13b4b6d559b8640827fced50219833fe76b3892eb8974e1aa0db + unrolled_ast: 8289a856e0dd13b4b6d559b8640827fced50219833fe76b3892eb8974e1aa0db + ssa_ast: aead09e24ea21c7a93f2b0cce2a81dff5d2622280a77fac258b070d7b369eef2 + flattened_ast: 94fd586fed2536fa9a5b93b637fe7b84da4b1086d279ff093d06c84626ea310c + destructured_ast: 7d71ea026bfda2662006a42d7269ba2342f7388c0275bf1e31ab26ee9455d937 + inlined_ast: 7d71ea026bfda2662006a42d7269ba2342f7388c0275bf1e31ab26ee9455d937 + dce_ast: 7d71ea026bfda2662006a42d7269ba2342f7388c0275bf1e31ab26ee9455d937 bytecode: c3a0c03f4324a6dd6baea42e664ffad91868714739e03525dcbc968582007ceb errors: "" warnings: "" diff --git a/tests/expectations/compiler/console/assert.out b/tests/expectations/compiler/console/assert.out index 285a684184..4d69738882 100644 --- a/tests/expectations/compiler/console/assert.out +++ b/tests/expectations/compiler/console/assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: cd0dd5b8c35f4122c143671a9c75e32b149bb2d85693ae62cbb4b5368ac38892 - type_checked_symbol_table: 188525122dabaa0f219515b75de1edad0bb16a433c9f45c197b06a35c5982a12 - unrolled_symbol_table: 188525122dabaa0f219515b75de1edad0bb16a433c9f45c197b06a35c5982a12 - initial_ast: f86190debc635d37b9a18467587d9836ad3bcc07b8ec6a263267c928b81c85c9 - unrolled_ast: f86190debc635d37b9a18467587d9836ad3bcc07b8ec6a263267c928b81c85c9 - ssa_ast: 115eafc8a3d7b48c79363e4c8a56314d73407e4fed1d56056fcbabf752060fcf - flattened_ast: 75138500773ddba4b63ea9199c36f24c48a3169977fa70fc4adfbd64daeb71df - destructured_ast: 0cd440866d288992b0795dbcc202791d7969c088378be37c2e6828f37407fe9c - inlined_ast: 0cd440866d288992b0795dbcc202791d7969c088378be37c2e6828f37407fe9c - dce_ast: 0cd440866d288992b0795dbcc202791d7969c088378be37c2e6828f37407fe9c + - initial_symbol_table: cc0ace51fc7bdb52fb3af1d348c2a02bc30392dc5b77e3d07c435275a71bbded + type_checked_symbol_table: b6e95b2f1deb42b782c3fce0f39f36b830e9fdf5ffd9cdcae210da52fd427937 + unrolled_symbol_table: b6e95b2f1deb42b782c3fce0f39f36b830e9fdf5ffd9cdcae210da52fd427937 + initial_ast: 82f9d9a2c3127798eb8dabe92a46c7c5eb91158a6dcd6d2fba4bcd8ac85b39f4 + unrolled_ast: 82f9d9a2c3127798eb8dabe92a46c7c5eb91158a6dcd6d2fba4bcd8ac85b39f4 + ssa_ast: 09780e810d37a7b20498d017ef2c5a1f5ae6b17e3653815db7303f32771355dd + flattened_ast: 6b73daf0fa5555e06fb3bd1ddd35f349acd0a6dc59793ec7cee3192845d3f0ec + destructured_ast: 523cc1deae6e01659e061d875157d9d2168caa54cfec0becbe98886347a32082 + inlined_ast: 523cc1deae6e01659e061d875157d9d2168caa54cfec0becbe98886347a32082 + dce_ast: 523cc1deae6e01659e061d875157d9d2168caa54cfec0becbe98886347a32082 bytecode: 3c391009be59588562aa4a34d1b00508cd253c94d35a66741962352c76a92633 errors: "" warnings: "" diff --git a/tests/expectations/compiler/console/conditional_assert.out b/tests/expectations/compiler/console/conditional_assert.out index 2e1dfcf5de..c6407b19ca 100644 --- a/tests/expectations/compiler/console/conditional_assert.out +++ b/tests/expectations/compiler/console/conditional_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: fa3884ac54aff755ef2586393599721511b7ce135c9bcbe74cabff30886e0b80 - type_checked_symbol_table: 23d793fbaa974bea4557caf161cb9e8e4f653b8513007155c7b6d790e3bdcaff - unrolled_symbol_table: 23d793fbaa974bea4557caf161cb9e8e4f653b8513007155c7b6d790e3bdcaff - initial_ast: b868f87536ee7782c8fbeff535d6df882416886dd5dfed4f9363f350c9e55511 - unrolled_ast: b868f87536ee7782c8fbeff535d6df882416886dd5dfed4f9363f350c9e55511 - ssa_ast: c34387f2e4798e36e23f5b992ef13f39dd128ea4f38bea1fa6d931a8564a3744 - flattened_ast: ac00b75d6a02b9d48a1ee2ed807cc12554f0683c2bc74540aa096ad214befeb8 - destructured_ast: d8b6e33f700734e18582d78a34073151f830deed7baacef745415ee3e9451879 - inlined_ast: d8b6e33f700734e18582d78a34073151f830deed7baacef745415ee3e9451879 - dce_ast: d8b6e33f700734e18582d78a34073151f830deed7baacef745415ee3e9451879 + - initial_symbol_table: f0bed2aa2800ab9ab710aa8e64ee5f567bc7a420feaf6a6dc24c671465eec85c + type_checked_symbol_table: 2c1513724ca91ce0ed7080a1eff4315e3317b9eae0c231ea5f1b3f1633e3f259 + unrolled_symbol_table: 2c1513724ca91ce0ed7080a1eff4315e3317b9eae0c231ea5f1b3f1633e3f259 + initial_ast: 9f47a2232ae221ef48e0d1f163c79ddf4b7082cbf305b1f4819a397dd2bc87c8 + unrolled_ast: 9f47a2232ae221ef48e0d1f163c79ddf4b7082cbf305b1f4819a397dd2bc87c8 + ssa_ast: e68b1ccbbdf9c74e701eda8754220a4ccd74da3fa92cea72dd617b324fcd0360 + flattened_ast: 604f03baf34c2d8f7c4a1bf20fff796f3fbb2dcaee1ae6b659203d0a2ca0fc06 + destructured_ast: c75a437a3a2368242dbd0855ef66cf83f42e62ff2b1beec56fd67c55bc1a9ae8 + inlined_ast: c75a437a3a2368242dbd0855ef66cf83f42e62ff2b1beec56fd67c55bc1a9ae8 + dce_ast: c75a437a3a2368242dbd0855ef66cf83f42e62ff2b1beec56fd67c55bc1a9ae8 bytecode: 3ff716b96c532801f4fa5310f4eedf8f96fe15bd7db3bf087e7b64a161153945 errors: "" warnings: "" diff --git a/tests/expectations/compiler/constants/const_tuple_declaration.out b/tests/expectations/compiler/constants/const_tuple_declaration.out index 6d8cf0d7b7..34b2418e80 100644 --- a/tests/expectations/compiler/constants/const_tuple_declaration.out +++ b/tests/expectations/compiler/constants/const_tuple_declaration.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4257c099771eba0ebe56caedd81d40740538873eaa91636b4d2ad01ca0c11dee - type_checked_symbol_table: d8240d6895acdb3c1c6f527c87077b41a7ab85a1fc62cda388b51835da6ffa44 - unrolled_symbol_table: 02f0a9e26712b0acf1fc296ec9613e364e23254fb0bd0eb162b5404b0bf1dfe3 - initial_ast: cdc5af7d6affe7f7b920e862890f7d1243dc796aee21811427c3c4b952888a82 - unrolled_ast: 2fc7bc4cc122c854272b545de15d6a96f9b0005c32ab5eb1acd6f367cb758faa - ssa_ast: 2d2ff690858a75e0f0c731a11899732c4902b36d1e73550c443e82a6b988aaae - flattened_ast: 414cedfe3326d0f495725f44686c5a4a456478ca3a9509e031918e86459999a3 - destructured_ast: 1c967171bc4c557ea7dccc89efd33436db8b49d606da5df40db2cb88e7bfa4f9 - inlined_ast: 1c967171bc4c557ea7dccc89efd33436db8b49d606da5df40db2cb88e7bfa4f9 - dce_ast: ef7bf00f2dc81167ba1382fb0f28667b319b44ed4245c4bc29d6f978cdc7cc79 + - initial_symbol_table: 7b7639da9364ec7e9fbdbeca060c73f5f0d338486b6d823b0b4704d23f9427ab + type_checked_symbol_table: 0802a02c884f0c8c409af2c2e5832393edc51a289dd6eebfebfc4ce2de29ba65 + unrolled_symbol_table: 435885a17bd622f24f237a8d2eb4ee510a4977dbabd380530ae0d2e8cac26101 + initial_ast: f869a6367fce6da2877d7b93ebdc2237cace8c4fee4ed78b56f4e34915c33044 + unrolled_ast: 392c16f3801e0b877b2588423b77048e06c5e495fe3bfc22aa39a3d65f5def00 + ssa_ast: f5544e125cc31c03bbce4423308625e45c4564032b639d58bf773e5bfac4b877 + flattened_ast: 04f6155825ee60abad4578b5c1632f81f3f8cd4e3cf4f5cdbade157fb9a8e24d + destructured_ast: a04fa1a2c7e74a77c5a7668db476c298e4415d6a4e9e45eb23ad4a1384f802a1 + inlined_ast: a04fa1a2c7e74a77c5a7668db476c298e4415d6a4e9e45eb23ad4a1384f802a1 + dce_ast: 1f1288f1f9f8b1d6d9e5344a4eb39f05524effb10517202346dd08c47d4e7fe3 bytecode: acfb8fc365ba153cf8598a04dad8ff4ac65b9df6c6356cb077fcf9dafbead7e9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/constants/const_type_error_fail.out b/tests/expectations/compiler/constants/const_type_error_fail.out index a2fc5796cf..8fe06f816c 100644 --- a/tests/expectations/compiler/constants/const_type_error_fail.out +++ b/tests/expectations/compiler/constants/const_type_error_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372062]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:7:9\n |\n 7 | const A: () = ();\n | ^^^^^^^^^^^^^^^^\nError [ETYC0372080]: The value of a const declaration must be a literal\n --> compiler-test:7:9\n |\n 7 | const A: () = ();\n | ^^^^^^^^^^^^^^^^\nError [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:7:23\n |\n 7 | const A: () = ();\n | ^^\nError [ETYC0372080]: The value of a const declaration must be a literal\n --> compiler-test:8:9\n |\n 8 | const B: u8 = ((1u8,1u8),1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372023]: Tuples must be explicitly typed in Leo\n --> compiler-test:8:23\n |\n 8 | const B: u8 = ((1u8,1u8),1u8);\n | ^^^^^^^^^^^^^^^\n |\n = The function definition must match the function return statement\n" + - "Error [ETYC0372055]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:7:9\n |\n 7 | const A: () = ();\n | ^^^^^^^^^^^^^^^^\nError [ETYC0372070]: The value of a const declaration must be a literal\n --> compiler-test:7:9\n |\n 7 | const A: () = ();\n | ^^^^^^^^^^^^^^^^\nError [ETYC0372056]: Unit expressions can only be used in return statements.\n --> compiler-test:7:23\n |\n 7 | const A: () = ();\n | ^^\nError [ETYC0372070]: The value of a const declaration must be a literal\n --> compiler-test:8:9\n |\n 8 | const B: u8 = ((1u8,1u8),1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372023]: Tuples must be explicitly typed in Leo\n --> compiler-test:8:23\n |\n 8 | const B: u8 = ((1u8,1u8),1u8);\n | ^^^^^^^^^^^^^^^\n |\n = The function definition must match the function return statement\n" diff --git a/tests/expectations/compiler/constants/constant_finalize.out b/tests/expectations/compiler/constants/constant_finalize.out index 30d2a497cb..358375ad82 100644 --- a/tests/expectations/compiler/constants/constant_finalize.out +++ b/tests/expectations/compiler/constants/constant_finalize.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8bdb0f229581daa96817e49fd8d44ccdee0a55ce261ffab7fdc2240f38c55699 - type_checked_symbol_table: cb90915ed8f68c317998968f797090ca6e6636de1af45a37352759be994bc6fb - unrolled_symbol_table: 0414309645ab69b22ea14af6d95eedd3efe891575884267b1bd4e8842288eb8b - initial_ast: 7605e29ba9dd5e1fab7cdfb8aa89d2775203f5273b84735a3440c545ebffce03 - unrolled_ast: 517bd11485cc6cabac08d36b8d0bb4e6ab7eed9182b10cd04ef6a0f277e0465b - ssa_ast: ab7055ad83cbd497b5561391dee9a179bd4d7b577de91ed9dc72582cd9b72c91 - flattened_ast: 703074571d3f3479b96465ca1dca76b05b1e1d34d4783d06dfc04bd1dea0dfe2 - destructured_ast: e2ec29080262ba2b3f1be10263b24950edd7920b38c86eb9295ef7e7baea5120 - inlined_ast: e2ec29080262ba2b3f1be10263b24950edd7920b38c86eb9295ef7e7baea5120 - dce_ast: e2ec29080262ba2b3f1be10263b24950edd7920b38c86eb9295ef7e7baea5120 - bytecode: 34335e40c3ca26e00044d055cc0cb8d262fce1ac49a4940b36b1136e0772d305 + - initial_symbol_table: 912affc970cbcb05b0ad9fb1ff1a5598cb6972f9b2a63906ae7754fab97e6455 + type_checked_symbol_table: 8fa2b239eaf62f85f56a7ba412d90304d5135a47f9c3efb24267fd811418c8f3 + unrolled_symbol_table: ba551492d8e477c0853c9c5935dd6c08ee4e9c5b12c72da782e0a1f21eff3f38 + initial_ast: a508084b0849c8fc8132a326646f60b7d322645f51bb7dfb2c073d92d171f2ba + unrolled_ast: 8adac3668b7a9e3d711058042f008c7e6bde85a3c4a0d5095d31913fb144816c + ssa_ast: ee38d89f9cad35f48c927e99cef9aad239f4f636c6a7a6d854c8c41ed0001b35 + flattened_ast: cb263db54e096e6b3eddb79df68c2e30a2d75f1623d9d318af73bc5773a85599 + destructured_ast: 13e294f147c100fdac2457fbee58edfca364ef8d83b79a36a5ac9afbeef487be + inlined_ast: 7f34786ee8bea7c9f1a4c0367a32b2680e3d89c0f8b4fe5822f347cb06d17529 + dce_ast: 7f34786ee8bea7c9f1a4c0367a32b2680e3d89c0f8b4fe5822f347cb06d17529 + bytecode: 1f274ff221668a27f086b94c9485486b9d5fe1374384f9092bb3198632da3b91 errors: "" warnings: "" diff --git a/tests/expectations/compiler/constants/constant_loop_bound.out b/tests/expectations/compiler/constants/constant_loop_bound.out index 3b707e22b2..8a04a95d86 100644 --- a/tests/expectations/compiler/constants/constant_loop_bound.out +++ b/tests/expectations/compiler/constants/constant_loop_bound.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9d2621a6655c3b4fc488b4303557b99756de606508b19dc917a2d2c004d05b3c - type_checked_symbol_table: 63e4810a08f666b904fa09a6c923ddaed25dcefd5ab69a9dbfb0067f5563c494 - unrolled_symbol_table: 6979a1a8c5d4216808b49ffdd08823c90bb7bb453ba0a24f929a4e8a4713f806 - initial_ast: 9ebde40ca2971771bf7ff4af11a88482f32aee303723c87cfe5b4a0795a560bb - unrolled_ast: 338b820767e2fc502f9530c16635f6a8589c0c48c18157f3d76c924193b65b03 - ssa_ast: c3265796218829ddfdd6e34b50beaefadabdb49695cbf3034330442571766e61 - flattened_ast: e86dc2b1a3662842b487fc5f9c1054034cbf24be359b13bc5fb7ea45c38fb3e6 - destructured_ast: 2aea0a9aa14833cd1fb59d65618d66326ac3994cfaa72f646ca6e0b0bfdc081c - inlined_ast: 2aea0a9aa14833cd1fb59d65618d66326ac3994cfaa72f646ca6e0b0bfdc081c - dce_ast: 2aea0a9aa14833cd1fb59d65618d66326ac3994cfaa72f646ca6e0b0bfdc081c + - initial_symbol_table: dd4d3c9b32a75f56f5f5a8615defef06166452c6ff63902a31f1b35e2534befa + type_checked_symbol_table: 3a2728e2385287273d47e1b3764b59db6f32b28f25098c76dd961a93e392f903 + unrolled_symbol_table: 757176c89a70f2da4a98e31093f500866610db61c8a25876ce221c94482f0cf4 + initial_ast: bedecf1c3e96cea2f1d598482707105f1935749f6ceb754eaa4ef73a5b4cf4a6 + unrolled_ast: 2703ec84bd2a511a9c838d58b55361115494679ab0ce02d4ab2f13bca5cc7e59 + ssa_ast: 34477dd040cfef68db0318c4efa44d0930d3d68c86fb31af7748f45610578ea0 + flattened_ast: 8ed19ef157b656b55ca9d0fca5fc15e88d6c6485aae4a1af24eecb9fb93bb989 + destructured_ast: c6c05abc5c72981b6b63205176dbcdf7fba91d71bdfba104b2c6fd32e05b43af + inlined_ast: c6c05abc5c72981b6b63205176dbcdf7fba91d71bdfba104b2c6fd32e05b43af + dce_ast: c6c05abc5c72981b6b63205176dbcdf7fba91d71bdfba104b2c6fd32e05b43af bytecode: a6350aaded46f7047061f7e68a8ae41eb8aa0d29f02560257ecdc582a6c684f9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/constants/constant_loop_bound_type_mismatch_fail.out b/tests/expectations/compiler/constants/constant_loop_bound_type_mismatch_fail.out index b3364447d1..e4137bfeb7 100644 --- a/tests/expectations/compiler/constants/constant_loop_bound_type_mismatch_fail.out +++ b/tests/expectations/compiler/constants/constant_loop_bound_type_mismatch_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `u8` but type `u32` was found\n --> compiler-test:8:22\n |\n 8 | for i: u8 in START..STOP {\n | ^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `u32`, but got `u8`\n --> compiler-test:8:22\n |\n 8 | for i: u8 in START..STOP {\n | ^^^^^\n" diff --git a/tests/expectations/compiler/constants/loop_unrolling.out b/tests/expectations/compiler/constants/loop_unrolling.out index 79f4b1fc5e..debbcbc320 100644 --- a/tests/expectations/compiler/constants/loop_unrolling.out +++ b/tests/expectations/compiler/constants/loop_unrolling.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 29e97965dc9ebb3ed0ec705736fbdc7dbb9f813faeac344da82d0456e333f874 - type_checked_symbol_table: e82c690e31df9895a2e07093511bc47a321ceabb638540d5fba59641db0e8abc - unrolled_symbol_table: 649c16b1edb5c10fc698f4ed9912a0438208546bc8b06f50f004b3176db37f47 - initial_ast: 6256a249cbc21507d80bb44e2915179d77485e9c7974b09dad5ac31c80857779 - unrolled_ast: 9c4e9b3fa952b1eb43ad69e5374eaa14dd6a7028e993cfef8183f832869d5a5d - ssa_ast: 10a72521616bff5daf9a6086d3c4a86a98abb246ccebe02f62d92ef3885f8138 - flattened_ast: 897d8cea1655bbf1e4804e6a163363d6c7ef5f2e4e84cfd437f696ef06585910 - destructured_ast: 35be4b9bccb0ca13c97d4f61be13deab1ea78779bee5061248ce27b8e3ad2c76 - inlined_ast: 35be4b9bccb0ca13c97d4f61be13deab1ea78779bee5061248ce27b8e3ad2c76 - dce_ast: 35be4b9bccb0ca13c97d4f61be13deab1ea78779bee5061248ce27b8e3ad2c76 + - initial_symbol_table: 822b957b21a3e7b9f957d8cec8c6b4256775555ea7b7a9192c9cef8a86d04c6d + type_checked_symbol_table: ed876a3a594f4486a033fe1bfffeb5dc53865cac75f1cbf5b1933ff2c23ebffc + unrolled_symbol_table: 8219fa95d2f59e8c9f928eb5566010a88a0e5752834503249c15d9f865f3e88e + initial_ast: dc02876f1f1c866ba2e2c89ed4f574f4b5eaa240c66c03a4dc00f1486c92045e + unrolled_ast: ae4aa74a621ad590bbab5d1d7a46aede0a7fbeaeacfe4578064807b0e2ff00de + ssa_ast: 25f48814c969fd91f5be92e2972316076da6447e383e032f0bab1a80365d9b81 + flattened_ast: 7d9cb8fc635391ac72606a46655d098812f0f7e7e72bd767cd4931667d8f681f + destructured_ast: ac91b42bc2f9b6caf9d40d5766ec82d8caeff5bf51fd7eadd647bee936e26c84 + inlined_ast: ac91b42bc2f9b6caf9d40d5766ec82d8caeff5bf51fd7eadd647bee936e26c84 + dce_ast: ac91b42bc2f9b6caf9d40d5766ec82d8caeff5bf51fd7eadd647bee936e26c84 bytecode: d9595550f8a3d55b350b4f46059fb01bf63308aa4b4416594c2eb20231f6483a errors: "" warnings: "" diff --git a/tests/expectations/compiler/constants/unroll_loop_with_tuple_definition.out b/tests/expectations/compiler/constants/unroll_loop_with_tuple_definition.out index 001e921d37..c7ccb474a9 100644 --- a/tests/expectations/compiler/constants/unroll_loop_with_tuple_definition.out +++ b/tests/expectations/compiler/constants/unroll_loop_with_tuple_definition.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 29e97965dc9ebb3ed0ec705736fbdc7dbb9f813faeac344da82d0456e333f874 - type_checked_symbol_table: 0d2450e4e9dbdf81f3509cfd8a2ddf47db37aa8980bf1c268305e4e0558772d4 - unrolled_symbol_table: 1380d27733d07cc968b92d018486a2c5a7dce3ede1253f4c6694b7ae5e477105 - initial_ast: 2edeabb90f14e92b8eeab4396b1ddcc6e707da5e3b3ca9936ba946bbaba68822 - unrolled_ast: 305dc314c5c7272d119542345476398ae0e349b6fbc38ea8286e5a53510ea821 - ssa_ast: 04080337c157b9b1b50422ee764a6bd8ecb102d6198a48ffc83919f07d339806 - flattened_ast: fb85860478a8f0e2411f1efb09cd6d96a8cbcb16141fd128fc617d0da7971d27 - destructured_ast: 112941da355e0dc9d9634c10e910d6e9d56e6036e2aea39cfec6363b7e73bb2d - inlined_ast: 112941da355e0dc9d9634c10e910d6e9d56e6036e2aea39cfec6363b7e73bb2d - dce_ast: 0afd58fda006fe98b19f045e698847e04a9aa7b3f9ed2fa9fbb614130b6d7e94 + - initial_symbol_table: 822b957b21a3e7b9f957d8cec8c6b4256775555ea7b7a9192c9cef8a86d04c6d + type_checked_symbol_table: 39be341ba0bb3e62400704e748adfde2ff4038a64cfe7032e596d9f6b114943d + unrolled_symbol_table: 72cb9d344fb88724b1ae07506f9be420baa0916634d2133c7e4e51368ec91115 + initial_ast: 4e6a530b5e57b925c3100aca1de7a314f1b10cfdb2f3b324137b412b11a0680f + unrolled_ast: bd23e1a503f1d4738bf28afaff84d899295731fdb6e150c8c7889cd00d128724 + ssa_ast: 7dc4c694fdcab5660f5014c29c938ff9e028cbcfbfe1b52a32ef73e6a78e358f + flattened_ast: 84ea11a0ba0fba401dd2a5d2b5eb2f06af38d22c37a597da8f5e200f03f999de + destructured_ast: 6aac0197cbbfefe82dbfb4bbc58a5ae1606db42e4e16e0f63731e743c77f2aab + inlined_ast: 6aac0197cbbfefe82dbfb4bbc58a5ae1606db42e4e16e0f63731e743c77f2aab + dce_ast: bbf2c294afe079c354aae650d7debbb627673fc8fa16323fc9911d9ce42188c2 bytecode: a5ef8b434b2a8b1939f1d042fd5706c996e0f1905bf2395a0f140cff779ce48a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_address.out b/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_address.out index da631615cf..ca6d2d0ccd 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - unrolled_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - initial_ast: 14ed8952c476c2b24bf9ad6cd7da7091e8aacd49975682bc4876f9b2d3aedbbe - unrolled_ast: 14ed8952c476c2b24bf9ad6cd7da7091e8aacd49975682bc4876f9b2d3aedbbe - ssa_ast: dcb235411309bf2559c2a427c29e716b2069631a485110e9a82e23994bb3fc52 - flattened_ast: 9020e9b164148797cd34c2dc0031396ad860ef0dcdad67762943a00bd7d7d4f7 - destructured_ast: 9da93c6eb49d492936f1d950dd4e3a2aaa93dff67b23fd6f8667f4c20b626861 - inlined_ast: 9da93c6eb49d492936f1d950dd4e3a2aaa93dff67b23fd6f8667f4c20b626861 - dce_ast: 665fb2235b45e4fe8801daa263ced1e9183789878e536c7b8d18e47681937947 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + unrolled_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + initial_ast: b7b026fdc76bc646438c7134cc216e93eeb6593283f94e8592588b004646a63a + unrolled_ast: b7b026fdc76bc646438c7134cc216e93eeb6593283f94e8592588b004646a63a + ssa_ast: 145154af44f56079cb822b3dfa1cd9a6d7f72efcf8b3300a529b09ecedfdc946 + flattened_ast: 30dd3ee6580d79964697ca4b962e6e9f66131d836279735aeaf18f006a402f15 + destructured_ast: 86162df5219575a7eaf9991af4951fbed57cb3a7f7f41f82df0b959cfff7e9a6 + inlined_ast: 86162df5219575a7eaf9991af4951fbed57cb3a7f7f41f82df0b959cfff7e9a6 + dce_ast: 24a42b30618d362a44f7610f2f7b38c6f345bcd96fb12c8b87d77e34bf3434bf bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_field.out b/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_field.out index 37ff4f2d76..4e10a6d5d4 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 8e5ad458f96ada8c3cdd6424e864c7a94692cfab224dc16b6941cfd5fc99f883 - unrolled_symbol_table: 8e5ad458f96ada8c3cdd6424e864c7a94692cfab224dc16b6941cfd5fc99f883 - initial_ast: 4658c53df803f432b94e89b89f9919e362fa9fb1a36cec6a4bfaeef9a7024434 - unrolled_ast: 4658c53df803f432b94e89b89f9919e362fa9fb1a36cec6a4bfaeef9a7024434 - ssa_ast: d9edec3b6bee6695344a4f8f7c0ef735d02838a800a0d10737083ed7956a919f - flattened_ast: de70fa794947b7c4cd24beac167e076dded5e8325eb95f36b5f906746950deda - destructured_ast: 16c6941986501843ab532ce7750e13b1db6b35b66a2903bce1a81e5d7ac640fd - inlined_ast: 16c6941986501843ab532ce7750e13b1db6b35b66a2903bce1a81e5d7ac640fd - dce_ast: bea3bf327ec7a8509c0b2dd9c08a8ad66f22cb4997a17fed66ff21c362ce4de7 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 47da8363d5a8d5de413b8fd97ec5cc722461f4128183f5effd20b39e456ba8da + unrolled_symbol_table: 47da8363d5a8d5de413b8fd97ec5cc722461f4128183f5effd20b39e456ba8da + initial_ast: f747c85d426a6f221df4e986114f385793a998b01658dcfb1d8923a3b4f2467d + unrolled_ast: f747c85d426a6f221df4e986114f385793a998b01658dcfb1d8923a3b4f2467d + ssa_ast: 84c40875de4d1b0bff4b34ece8578a0ee21f5fc4c66b7ed523e2a67511e9ee95 + flattened_ast: f8829dd0753f26c4b43c068c3bf4816c7f620ee44f03033e3b41bcd429fe64d9 + destructured_ast: dfea2c4f3f96efa850d56eaa630b36ba40c37ecf4f32f12bb6b8dcf38f616fd2 + inlined_ast: dfea2c4f3f96efa850d56eaa630b36ba40c37ecf4f32f12bb6b8dcf38f616fd2 + dce_ast: 91bfa913fb0b9cedf1d6f838c280b0ec0fd529bf0714dad61c12adec113c6e9f bytecode: 89209e8d86f847dbf47309d0092ee98ff4c7e72f93c06aa16b185b87931b4163 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_group.out b/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_group.out index 3a0c0bf3cb..df02ffff5d 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_commit_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: c195cd96cb533417c22ee288a309dc785869aead578882b8de25adaa7138767a - unrolled_ast: c195cd96cb533417c22ee288a309dc785869aead578882b8de25adaa7138767a - ssa_ast: d61f8c38d5972e527ca0774933f12701948204aabf235bcc410234b0cca6ffa7 - flattened_ast: c2913b758f62dc5bfb9578736623c6f555e92843ef2640e7b8c4017010bab71e - destructured_ast: 5e47cadb8b30359951bb55d17f62114e21c36cb22909bdd8922d280e205fad79 - inlined_ast: 5e47cadb8b30359951bb55d17f62114e21c36cb22909bdd8922d280e205fad79 - dce_ast: 32ceba1bad1d48a88a8bec44db7202e2666ee7a1eace8065dfa7e643a04b6922 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 3db607879622f0c71960e1d84c4b4fbb927c44571214265145d280f852804004 + unrolled_ast: 3db607879622f0c71960e1d84c4b4fbb927c44571214265145d280f852804004 + ssa_ast: 72ffef92f324ea7cc693b3672b5314ba39b97f1fe6541442b30cf2343d4a6437 + flattened_ast: 21e6052fb8b18b785cf7031a1c2127502f09596a717b0ad55d30ccea49458944 + destructured_ast: cf585b6ef2f89d5e5b99fa7fd04d44971e2c918439249ccf90c7bfc5282977bd + inlined_ast: cf585b6ef2f89d5e5b99fa7fd04d44971e2c918439249ccf90c7bfc5282977bd + dce_ast: e735ac63858c5afeb8681586c77f727210493258ef7448e9b4b9c223db6ffecf bytecode: 44723f1147fbb09b330db772453005ab5dae98a53925a9dc45b66daa51584290 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_address.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_address.out index 9643f86c8c..4b35bdda9b 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 7e158eb4d35f3576485510266c8bf65e43a8a01e112c893a9b207f22455fff6c - unrolled_ast: 7e158eb4d35f3576485510266c8bf65e43a8a01e112c893a9b207f22455fff6c - ssa_ast: 580070ba6c54295ee57adad120f1e289e0383a9924b33483d418d578984516df - flattened_ast: 9a9f97a65090fb04e4923f03168ff633de8dd8df5d0d77771e0297895327f8ad - destructured_ast: af85d016afeb7bb8f094f29d35efa0d587d7318ab7ddcf0d1e7dcb8c41995e13 - inlined_ast: af85d016afeb7bb8f094f29d35efa0d587d7318ab7ddcf0d1e7dcb8c41995e13 - dce_ast: 3398f3b5688a2adfd3e1a729066f970183d1cd3d0081a35b566ef5a78025c691 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 460ea8330881454e8f6f674ae5a550cf439a283d1e6e6abee86bde30c0caa2b9 + unrolled_ast: 460ea8330881454e8f6f674ae5a550cf439a283d1e6e6abee86bde30c0caa2b9 + ssa_ast: dfa3c08d62add7479c43e4c3cfb69835c7d84574081aa03eec56e143752ec287 + flattened_ast: 46abd94be0fd2d28b46a30f7ab9bbb331995c2d48f49ed668352584169c1a03c + destructured_ast: 042fac35ee6d70f8c057956f71b39a8b0fd3abf7c23951499f0aecc82edba820 + inlined_ast: 042fac35ee6d70f8c057956f71b39a8b0fd3abf7c23951499f0aecc82edba820 + dce_ast: 7e6b98bf461ec4ac39f59e0b90a1ceef3cb594f862bf27f940dc6252a4f52a4d bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_field.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_field.out index a3a877475c..f6b2311ee9 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: cf0620436443663eee9dd1767bbdba9c2a68b350a02a32df0b203b6c07c28e3d - unrolled_ast: cf0620436443663eee9dd1767bbdba9c2a68b350a02a32df0b203b6c07c28e3d - ssa_ast: ee7a71f44f12f31dbed39bc4db57b50c72012769af87c4ccb24f408d0955f49e - flattened_ast: 64ddd1307acda3369319ec275d0d1a1e2b3c58941bf55da4533f0b4e59815838 - destructured_ast: 482ea7d3d89a58dc0167fc45c84d402fb4fb150dd7e583b8edde3f0c93b12a34 - inlined_ast: 482ea7d3d89a58dc0167fc45c84d402fb4fb150dd7e583b8edde3f0c93b12a34 - dce_ast: 557dcaf33a9988d441fbe85b0fe13bef52bf00e214b9631224765930c8b733b4 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 6c0f9dc3bb4e835938f237e4407f8d57625279d070fb22948d3623eb76e809e2 + unrolled_ast: 6c0f9dc3bb4e835938f237e4407f8d57625279d070fb22948d3623eb76e809e2 + ssa_ast: 986e7a389a85e1a23780788c60d2428354fc87420702030c633090d5f89cfc4a + flattened_ast: f5ebdca1b7ed3a0051912cd91cf1873b7924c6b6f12716839a370e7d83f37540 + destructured_ast: 4766402255bd612f9c0f52aa0777e1983b38f4910a1dd887dcf2b12953f94b54 + inlined_ast: 4766402255bd612f9c0f52aa0777e1983b38f4910a1dd887dcf2b12953f94b54 + dce_ast: 1d15336684105eebf785cff516d1b3adb68d82b54eac90967ad7277b03681569 bytecode: 1ee04c880a78442953925baa8e3c60e416d77c926da80774db6961188aaba65a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_group.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_group.out index b124e1872c..09520acb29 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 18367bef5242c3d05bf9b634b7c4283827cc2b139dd34321ca7bdf15548ebed4 - unrolled_ast: 18367bef5242c3d05bf9b634b7c4283827cc2b139dd34321ca7bdf15548ebed4 - ssa_ast: f304a3aa5bfea73165262ef32997e06905caf181a1128dd491901f3e9ab8894d - flattened_ast: d1b14cb4e3e6741c59fd51d1f1d9c7586d0a3b277b988bc23bbf62a5b3205f2a - destructured_ast: 9a60cdb4272353ea39b520c6395ee2728947743ac8f1168a7749b6284f69302b - inlined_ast: 9a60cdb4272353ea39b520c6395ee2728947743ac8f1168a7749b6284f69302b - dce_ast: b251f2c19953b697d980b2ced31dba59d0620b4a82c66f5e0c3895f12bfb4032 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 98ddd2422e93175e48599d66d22e496696e247b6e93ca27643a68ef8e40658aa + unrolled_ast: 98ddd2422e93175e48599d66d22e496696e247b6e93ca27643a68ef8e40658aa + ssa_ast: 22775f0b31594e29213b12e2e0f3172e1b0bea5d661df31829432303dc298c56 + flattened_ast: cf14147ebb268afad497c1cb3ac4bd0f35b95016764d829d1706d480aa876e2e + destructured_ast: 625983387f3e21f38f9fb53acd8fdf2d95aafa3687e69b74b69e0e530dbc701e + inlined_ast: 625983387f3e21f38f9fb53acd8fdf2d95aafa3687e69b74b69e0e530dbc701e + dce_ast: 784b4d080a8a985a89903901c96015e86ec543b7de015d028edb18c4098196e3 bytecode: 6e17954a1a55bf11bcac1b381fc6a82ee849f92a9af06d755ee3d6e3cd3b748d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_scalar.out index 09cdb1511a..baeea80f6b 100644 --- a/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/bhp1024_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: e30e680035a999fddf3f6bf727d96a91bcb315e0015e68f06be3bc6a5fea60ee - unrolled_ast: e30e680035a999fddf3f6bf727d96a91bcb315e0015e68f06be3bc6a5fea60ee - ssa_ast: 20eab109b98f072405d4e7491e12625dd8c32912f0744b06c426f0a67e67b636 - flattened_ast: c07c880e72d3e0ee980acd278d7e1583a2bb57edb5279c8b8876ff0daf23b411 - destructured_ast: 5d6134b5ce819e2425216bb82a34b4d030520031b333d8cfdbde495cfb140a53 - inlined_ast: 5d6134b5ce819e2425216bb82a34b4d030520031b333d8cfdbde495cfb140a53 - dce_ast: bd6a7668dbd9fb4fb4ee5988d6888995ca9e0fd9c0e3e078bc578162d0321bf6 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 8f6a835f79ffed646dcebae351d92a74721acb099caaf68e5c32c9e73bab8244 + unrolled_ast: 8f6a835f79ffed646dcebae351d92a74721acb099caaf68e5c32c9e73bab8244 + ssa_ast: e67087d3178e9114b14fd0552ecef96215eb34bb4593bc4fb5741312dbec5d62 + flattened_ast: 19c9e325c532bd1b92b6d5b0188095a97f07ed73f56f1d67e092e143be41bad0 + destructured_ast: 012e565494427971704c3b7a37ed036f9f9e60e588774cbbfe6a99f71428193d + inlined_ast: 012e565494427971704c3b7a37ed036f9f9e60e588774cbbfe6a99f71428193d + dce_ast: bfb362ea40b226c16e2986acfc87d0d4920dc5525b72d4efb99d5e337ba671a7 bytecode: 16448534dab09040c482f623815abdd0bd2e330d2cb99bc095142027c80e9bf0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_commit_to_address.out b/tests/expectations/compiler/core/algorithms/bhp256_commit_to_address.out index 96cc06263e..dcb0136639 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_commit_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_commit_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - unrolled_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - initial_ast: c0ca1427cdd60625ce2d8bd7c687a6b7820a2cb690fb99e406b5e84513c1a01f - unrolled_ast: c0ca1427cdd60625ce2d8bd7c687a6b7820a2cb690fb99e406b5e84513c1a01f - ssa_ast: 7f8e1c97b94aa7a8d2935fd64c8c2ad0e043344226e69e1b57d09021644e94d7 - flattened_ast: f77d1031edd766b0818fdda872ad8df55cf34c17c24f0dd9c68bc60d625b4237 - destructured_ast: 4ba710fd1e4b97e48a60a9934f98af9575d7d889eaa87ff11978b955a49812f6 - inlined_ast: 4ba710fd1e4b97e48a60a9934f98af9575d7d889eaa87ff11978b955a49812f6 - dce_ast: 47690fcd1ee8d2cdba48c23272c73e8c4a5bb7dcb2ecacb9f88cd75c56d842b1 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + unrolled_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + initial_ast: 57bcb27b58c7d0b70180172d992c871cbc6aee47be0ddb0d3a3f91dbe678dc0f + unrolled_ast: 57bcb27b58c7d0b70180172d992c871cbc6aee47be0ddb0d3a3f91dbe678dc0f + ssa_ast: ee8e358331cf25d7d25bb5d706233ac96b5b80dee7457e68810bf47c60026a4a + flattened_ast: 87a56ab8ac00f0e8bdb8d8494ecb58d42b45796beba014eadfde080a0fab9d8c + destructured_ast: 6e44a0c1b3a69287f654188c3f715c23cd573eaa4dd59a70bbff052f01da847c + inlined_ast: 6e44a0c1b3a69287f654188c3f715c23cd573eaa4dd59a70bbff052f01da847c + dce_ast: e3404d1c783bf66373dd843923fc942faf9cac3d03baf1233feaa46f5e7f5759 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_commit_to_field.out b/tests/expectations/compiler/core/algorithms/bhp256_commit_to_field.out index a284ae2fe9..497cabbb9c 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_commit_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_commit_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 8e5ad458f96ada8c3cdd6424e864c7a94692cfab224dc16b6941cfd5fc99f883 - unrolled_symbol_table: 8e5ad458f96ada8c3cdd6424e864c7a94692cfab224dc16b6941cfd5fc99f883 - initial_ast: ae1a7a56279a9af54fffb6da377fbc46de742e00b3238b2aeba45d09a6632130 - unrolled_ast: ae1a7a56279a9af54fffb6da377fbc46de742e00b3238b2aeba45d09a6632130 - ssa_ast: 7c0adf4a4225d8c741214ceefaf4a9b56958a913c3ad8eca468e07a2e28bed58 - flattened_ast: d9baa25d51c87537ad3a3030d3122c948cd8e3796c164eeb8c6618db2269761f - destructured_ast: d9c5da617aaf0e94e0269fa93f3f2ed1361b49f5f3f454bcc18d4762f91d2c12 - inlined_ast: d9c5da617aaf0e94e0269fa93f3f2ed1361b49f5f3f454bcc18d4762f91d2c12 - dce_ast: 1cd99533251f8450ee6d930c75909bd831feddedeaf232cf4f6fa0962665ada0 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 47da8363d5a8d5de413b8fd97ec5cc722461f4128183f5effd20b39e456ba8da + unrolled_symbol_table: 47da8363d5a8d5de413b8fd97ec5cc722461f4128183f5effd20b39e456ba8da + initial_ast: 74f08503234bda32dd34626a908d14e3777fc5b4e0f12af6162391c8a6c35ed9 + unrolled_ast: 74f08503234bda32dd34626a908d14e3777fc5b4e0f12af6162391c8a6c35ed9 + ssa_ast: f692c10e6efe7578040ab936b270aa6364d781d6ce8a7e948c8008947189f058 + flattened_ast: 5fe4900679ef6116d3c76279468cf1e6be51745d4482163c09dfac395048af38 + destructured_ast: a3682426505c4e2f5520872495a7d71558b4913a437a8ede15b052476e46ffa3 + inlined_ast: a3682426505c4e2f5520872495a7d71558b4913a437a8ede15b052476e46ffa3 + dce_ast: 288ae7c57fd373fa6a91d70d69ce66e1949673b05cf25b6966c7f3ae237ba482 bytecode: cbaea392a3a5a598090b5c75eebfc840f9fd1f4dd9460704bd82c17acfedcedf errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_commit_to_group.out b/tests/expectations/compiler/core/algorithms/bhp256_commit_to_group.out index 688782ec9c..5caa205d5f 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_commit_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_commit_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 7151a3cf55d1025b247fe69ffd178cd6b2eb0272f922fdb5a5bfde9dcee77e39 - unrolled_ast: 7151a3cf55d1025b247fe69ffd178cd6b2eb0272f922fdb5a5bfde9dcee77e39 - ssa_ast: 5f4ae844c787a6dd0e58a27ab8a8b32be49811c1475393b4e3cca120a7f45b8b - flattened_ast: bf68c51ba36d68fd77de6b63e5c2e705d712ec6e76c643b8db0eb6fedd6e39d6 - destructured_ast: bc219156e10c701d423dc656e5f37eb714cce2d732c69403c7e2375bf9f0525b - inlined_ast: bc219156e10c701d423dc656e5f37eb714cce2d732c69403c7e2375bf9f0525b - dce_ast: 06703771636a36a22de63b460ab2bd73e1a0d25408d315e069251d50f0d8a860 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 18341096c46d4bb34fc5a1fe9c8e998d2b3432d08778da83ba06b2a27b850f05 + unrolled_ast: 18341096c46d4bb34fc5a1fe9c8e998d2b3432d08778da83ba06b2a27b850f05 + ssa_ast: c004cac5970ac37e0b37118894581767dc751c69f8d029ef0109c49d86d55ae6 + flattened_ast: 0f34abd184289a97400a9567806c5e40c76fbd413883a07c4cdc905675b2514f + destructured_ast: 918d7c959ba64e044ef58747404f2e6d3b015c73bd2e719dae9fc108c299023d + inlined_ast: 918d7c959ba64e044ef58747404f2e6d3b015c73bd2e719dae9fc108c299023d + dce_ast: 4c7ef42125dfd42ece2d0f73126564d62c0eef0ac46677ffe519946fe3083e9e bytecode: 5d5cbe495e958d3762c2656dc336bd9fd903b5e0b8b51684f3556ca4b5281344 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_address.out b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_address.out index 842fb6e9f0..7f54aa3dae 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 1c3a76d19f97aad8a0ca74edfdffea0ca87e9a7448c9f0ae766ff51876f236da - unrolled_ast: 1c3a76d19f97aad8a0ca74edfdffea0ca87e9a7448c9f0ae766ff51876f236da - ssa_ast: c19d32e511e4180c00b74a0e881686ca4576e6b1591be75f111e1931bc055bf7 - flattened_ast: eeb242c20efc908266d201b4297653ef35628335eb132c89ac3f1e7a93c51c85 - destructured_ast: 8f453847d6907238bfc055ecf411cd7c365a106c4d10eff6d16eb39b5f95e0a1 - inlined_ast: 8f453847d6907238bfc055ecf411cd7c365a106c4d10eff6d16eb39b5f95e0a1 - dce_ast: d9ce04dbd26a1145efc4d2335dc3f9a844fd7cc00260ec2368664c20f2426de6 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 68bb06001de552615a0b7b5b3ee5fae93708ba6ff70e44583a1bfda3ba199ae6 + unrolled_ast: 68bb06001de552615a0b7b5b3ee5fae93708ba6ff70e44583a1bfda3ba199ae6 + ssa_ast: aa4adb677fdae56b905dbb7909e1137c33e3f74c54c93d6b00d74ec3b48c0c79 + flattened_ast: 953b1ea5c54f3a094472b166900505a1becb4dc3f1177ae758b5f03a70f27c9f + destructured_ast: 8776cb451aa358368cbd9e9c31171912a3473d6168e0051fd5670573fa6eaa92 + inlined_ast: 8776cb451aa358368cbd9e9c31171912a3473d6168e0051fd5670573fa6eaa92 + dce_ast: 6b7def707702f771bb41ee11637d5f312355c5f8fdb505c224c5ae19179c391e bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_field.out b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_field.out index dd3bec7591..a675df6bd9 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 6df4c8570614329e4e589c187680fd2964b5772a8d98e0ef32ff92d6daef97a8 - unrolled_ast: 6df4c8570614329e4e589c187680fd2964b5772a8d98e0ef32ff92d6daef97a8 - ssa_ast: bbf8f6a4dc4296fb250b617fb3074f85bb1947d9ea7a1f507354c406dd9a4325 - flattened_ast: c6c84f2df0e29009e693b4e4b3a395efd442eaf2aeb907282cefec63b14d25be - destructured_ast: 6145f12e39f63a825d52629100f0ea53b6c3d76f7db328439cd61a1cc1ad6b61 - inlined_ast: 6145f12e39f63a825d52629100f0ea53b6c3d76f7db328439cd61a1cc1ad6b61 - dce_ast: f863b6df335f3d18826ca425de8fddb296b808c2521ff8f7404e7091c3f00939 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 68a1fd1e8be83dae28a13bbda215132980c67ad9c43c4bebd326daaed1997dde + unrolled_ast: 68a1fd1e8be83dae28a13bbda215132980c67ad9c43c4bebd326daaed1997dde + ssa_ast: 14a82a46a284ee90ec9844ba5cdb92b0420e81c7fd3c25c039f8df75adc237a0 + flattened_ast: e350051b81782f8e75d40b2705bd44884670721c87fe0aa03e37882c4cacb8dd + destructured_ast: bdaa24f9cb255da6e36af3cc57abb5eca1ee356acb81eb4fdf989d4ee3724249 + inlined_ast: bdaa24f9cb255da6e36af3cc57abb5eca1ee356acb81eb4fdf989d4ee3724249 + dce_ast: 5696e4442b647539936aa7f3dc1040d3bceb53fc0a7642a9c5d337334a8bad3a bytecode: 928ec4195678229549fe7ec5b3291d7c72afb95787099dbfca6118539bcc2fd0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_group.out b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_group.out index 5854cc4b80..53bd0281e1 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: ae16202a927a7513e8793f59ede8a55e1278f35769b051d4d2f80c1d482d6d8f - unrolled_ast: ae16202a927a7513e8793f59ede8a55e1278f35769b051d4d2f80c1d482d6d8f - ssa_ast: 1411edd1ebd12dacdf2b04c6623a6b2a8cc607121499ed1bbadfe801ac0f66b2 - flattened_ast: 75aa3e8af15ff65010a8058d5212d59451c56fe41c41728910cb9c3072b9281b - destructured_ast: 4f95832c547f3c6654494ae7d08d7a73023c200ecc648e5bff043728987c071e - inlined_ast: 4f95832c547f3c6654494ae7d08d7a73023c200ecc648e5bff043728987c071e - dce_ast: 65eae244c1796e19e73655a4c80af11d605f7ca0cd518945942056901551a9d3 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 7208d860e989aa19a317d3e24d27684548ac1f7703903d55992c32cb50c2e750 + unrolled_ast: 7208d860e989aa19a317d3e24d27684548ac1f7703903d55992c32cb50c2e750 + ssa_ast: 8e5149fef71d09bea755195620170d58167a261068400912491d6f35f1bf405c + flattened_ast: fc53d090a7d9f21dda6c4e09628066b9d0abf3ae3c065dd2ec0e4eff3534cc0a + destructured_ast: 0a34681f9061ab87ee6ddc44c6308b008209f4cea02fbc917a6c6d87c094e0d6 + inlined_ast: 0a34681f9061ab87ee6ddc44c6308b008209f4cea02fbc917a6c6d87c094e0d6 + dce_ast: f10d9c586f0e0e397f8cb611c260efaa9b1b6d73079e15d1d4ee183add784a1e bytecode: c87c15be54d6c1ca80ab86ca735443a949fd9e3bdf7534136ec4c9bb5443fa77 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_scalar.out index ec617aa45d..2ae7d70a7a 100644 --- a/tests/expectations/compiler/core/algorithms/bhp256_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/bhp256_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: e86d9034a99b151b3c24e6fa8144c39c364fc7419f6485ef5ff9306003e3380a - unrolled_ast: e86d9034a99b151b3c24e6fa8144c39c364fc7419f6485ef5ff9306003e3380a - ssa_ast: b1b76872d420d374047685a8caa8997573809809fb38c22070202c22a372cdfe - flattened_ast: 17c15ad8def3723dc51bada88cd6993aae173c425aad665b8ed562a5c507ad16 - destructured_ast: b6e13af7316132c7f6e50a61b2b3c8c925156bf508d4acbbee7833620ae03b18 - inlined_ast: b6e13af7316132c7f6e50a61b2b3c8c925156bf508d4acbbee7833620ae03b18 - dce_ast: dd33ed056dbc212a536bb457905d3b97821edf0586948cc23d9b31b32cfeb75c + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: bc78490fbc83c2f2d015180751edc1fc4be822197bc92ff5a9be265b411536e3 + unrolled_ast: bc78490fbc83c2f2d015180751edc1fc4be822197bc92ff5a9be265b411536e3 + ssa_ast: 57cb4afedfec2088d578000543d904b2025d709450f1e08e602924443306905b + flattened_ast: 24313c71d15e9f1d87f795ef7997ea2ea73ba6221aba38ff5db282429be5d2d5 + destructured_ast: 1e2ba4e7c954b226892c2b6812b84817665d7f2df09dff5dca0ed6f7b293b6ac + inlined_ast: 1e2ba4e7c954b226892c2b6812b84817665d7f2df09dff5dca0ed6f7b293b6ac + dce_ast: 90aa29eab4ae69a0fb8da5baa1beaf1166ba47ec9102a84c34b5b36e2f09ce93 bytecode: 39f2fd495ce761fe3a8fb011b05bfe34e50db91dbd7f9a5bec40a8aa8187f0b1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_commit_to_address.out b/tests/expectations/compiler/core/algorithms/bhp512_commit_to_address.out index 6b6612f142..63e2824cc6 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_commit_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_commit_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - unrolled_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - initial_ast: c37c0b5d0f67bef18833c283bf4a4392e4b07e4f5079f3cdfbf02465930da005 - unrolled_ast: c37c0b5d0f67bef18833c283bf4a4392e4b07e4f5079f3cdfbf02465930da005 - ssa_ast: d781123cfb06fd2c52d52af8dcd875fd2a2ee84510dbd3542107dd66086e5e13 - flattened_ast: 8a455b16b66e84ee4bcc4d5c729be7a7a140087e8b7493e730e14c6162489c26 - destructured_ast: 931c9e43747079453587bd45577dc7fc1862bbfc9713bb2bb68d0c2c90b3da76 - inlined_ast: 931c9e43747079453587bd45577dc7fc1862bbfc9713bb2bb68d0c2c90b3da76 - dce_ast: 47690fcd1ee8d2cdba48c23272c73e8c4a5bb7dcb2ecacb9f88cd75c56d842b1 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + unrolled_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + initial_ast: 96ff59c3c0e00e8d085c4edb229959626848c043bed735bd652fa1acf2bc1ea3 + unrolled_ast: 96ff59c3c0e00e8d085c4edb229959626848c043bed735bd652fa1acf2bc1ea3 + ssa_ast: 7ddc48ad11ccf8ce35d555fc66a7192f31aae51120f6eb325c23e1b817ceefe5 + flattened_ast: d677a42a55111c1169e496978a6e2c215410cc93b741ed788254933821057a2c + destructured_ast: 7b4739c7f9260af5462bb06cfe84eee3308427673cb440a86dd623a846419813 + inlined_ast: 7b4739c7f9260af5462bb06cfe84eee3308427673cb440a86dd623a846419813 + dce_ast: e3404d1c783bf66373dd843923fc942faf9cac3d03baf1233feaa46f5e7f5759 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_commit_to_field.out b/tests/expectations/compiler/core/algorithms/bhp512_commit_to_field.out index d5acd9a9a4..102e38a925 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_commit_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_commit_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: bd3fb93ae9dd388b30bb8647ee075485a8ca91829e9f04ef5f5a5e2680b4b47c - unrolled_symbol_table: bd3fb93ae9dd388b30bb8647ee075485a8ca91829e9f04ef5f5a5e2680b4b47c - initial_ast: 3d995034b8415027cf2fbb928420342a981e7fe13241950c0252d350788c8726 - unrolled_ast: 3d995034b8415027cf2fbb928420342a981e7fe13241950c0252d350788c8726 - ssa_ast: 4b5a6316b2467b4cd05c44e88ec6ae5a98aae84d73e08115e61356dbfbcd0052 - flattened_ast: 11d75c49b6d8f1a0de6a2e293bf7e2a8ddce9594ecacbad87aaddcae504c4486 - destructured_ast: 7e4d543983a873c463fec05313bb7e5ac54053a17b50229ccc84322fdccd0ea1 - inlined_ast: 7e4d543983a873c463fec05313bb7e5ac54053a17b50229ccc84322fdccd0ea1 - dce_ast: a6a7a34c6364b6793e8228679ee81d507156fa805f2aea9522ebed44c28204cf + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9869faf372dd2871a22d7fb0c12cbcf66ac8c196d19f2ef93ce82e5595d4f9de + unrolled_symbol_table: 9869faf372dd2871a22d7fb0c12cbcf66ac8c196d19f2ef93ce82e5595d4f9de + initial_ast: 567c803bc7821a3783dde19821846bb9223cd458cb1fa362666817cca070b7fc + unrolled_ast: 567c803bc7821a3783dde19821846bb9223cd458cb1fa362666817cca070b7fc + ssa_ast: 4d19494544098b10ae0c5540f00eb356f70acb711fd155d945931714d65377e8 + flattened_ast: 8eedddcff00ebbdfaa296163c48c54a771b847e1c9cc717d9ef02a8ab4d50949 + destructured_ast: e5840052cce5d247d7a408cacfe535cba2e7dba844438e551e2d26324c194687 + inlined_ast: e5840052cce5d247d7a408cacfe535cba2e7dba844438e551e2d26324c194687 + dce_ast: d7191a0b4a59a076fdcda26e2140a5c200d259c5fae325336100bd83ed43111d bytecode: 1a32babe51dec0ff82a035139fa96069e6b0f7b9e7ec8f08f0802bd076deffc9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_commit_to_group.out b/tests/expectations/compiler/core/algorithms/bhp512_commit_to_group.out index ed01c5638b..8b1ce77385 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_commit_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_commit_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: c539ad538582bc310e5dc83c3484409030cb54a14fa7bdefb3fe4867cfb044cd - unrolled_ast: c539ad538582bc310e5dc83c3484409030cb54a14fa7bdefb3fe4867cfb044cd - ssa_ast: 8fd24edd0f7697cecd31bc5149bb1d8259846b663baf341613e93ee3e682af3f - flattened_ast: f8967587d712ecdbd2a596face1204c67644e63893f2194698381d16ab7eda31 - destructured_ast: 57ee7a5b5961cca69f4d894cbb664947c57b863d9013cea0c8aa086e08dd22d1 - inlined_ast: 57ee7a5b5961cca69f4d894cbb664947c57b863d9013cea0c8aa086e08dd22d1 - dce_ast: 9055ac8bcc1d34a7bf2bf60586c4573f7299faf6c14948648bbb40c3f35ff04b + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: bc7e06366a8bb64c9766ba527b90306013d265e483549aab271c5e7fbe5ac0ff + unrolled_ast: bc7e06366a8bb64c9766ba527b90306013d265e483549aab271c5e7fbe5ac0ff + ssa_ast: 289bd77e7a9245c8d8dcbd89c528ff0b06151f8e878db4684c44f53560ca1edc + flattened_ast: 311cc01ba9ea1770e99694309af47b04eb5aab964766f1c125b3ee441e8f3c3a + destructured_ast: 0e3b7e1a59eb18a844fe53947c06b64208a8df3c217384568c8aff3e01635b69 + inlined_ast: 0e3b7e1a59eb18a844fe53947c06b64208a8df3c217384568c8aff3e01635b69 + dce_ast: b721d175e39abc3a87d5c390e5c984ad43fb734dfbfb5f1224acd41b232c9635 bytecode: 834629ba3e42f71f47ce3499d777661c415ac89ad9d797c54ec4267202d48690 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_address.out b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_address.out index e2e387fa5d..40ee32e46a 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 7409926e4a019e7ef04c6af85542ff75628d54c6c1ba17dfad3d60b508dc8be6 - unrolled_ast: 7409926e4a019e7ef04c6af85542ff75628d54c6c1ba17dfad3d60b508dc8be6 - ssa_ast: 40e984ee215624760e152c5c932ccb9a6d20e8e66a2a051a2f5e275834b73470 - flattened_ast: 371d83d26067317c41d419c56df65315ac282f49b8549b8a3c84109b6ab76d5d - destructured_ast: d07bb98f5d86fcdea06ece5f78416507e92866c13dd15858ec149c2d5577f09e - inlined_ast: d07bb98f5d86fcdea06ece5f78416507e92866c13dd15858ec149c2d5577f09e - dce_ast: d9ce04dbd26a1145efc4d2335dc3f9a844fd7cc00260ec2368664c20f2426de6 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 75d87ef7e9712449d8e7caa2c13cdab57d357d794efab10436f7ff58a5b66531 + unrolled_ast: 75d87ef7e9712449d8e7caa2c13cdab57d357d794efab10436f7ff58a5b66531 + ssa_ast: ea5c9d8b322bc27cd74b43d781e1495bfed6b29d8bb33c0fd2b1dfe82b39710d + flattened_ast: 96d30c81c7d2459cddd0f5366c8dfbad3cb48ef7f205e6e90dba715aee5d7cfb + destructured_ast: a7fed27c8ed7d2dfc360c7c23c672f75c9095aae799d41d66233a8916d0f9095 + inlined_ast: a7fed27c8ed7d2dfc360c7c23c672f75c9095aae799d41d66233a8916d0f9095 + dce_ast: 6b7def707702f771bb41ee11637d5f312355c5f8fdb505c224c5ae19179c391e bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_field.out b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_field.out index 08a3945235..c42b90e96b 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 93235f603f7d22ec7f61154848522334bc3301d31f926ceab1fdbb6e5d7c33f1 - unrolled_ast: 93235f603f7d22ec7f61154848522334bc3301d31f926ceab1fdbb6e5d7c33f1 - ssa_ast: 587181ece4b6a0f834c3da623fccdd02464897f369ffd0a7f64e032d45a3d1b8 - flattened_ast: a79a01f18a2b5afc61b965eca26cac425ed3078ea9be0d6d8397f5a4afe6a067 - destructured_ast: ffb2d16cc039178d77da212f2c5956351520a1b395adc04de4a8dcac7f9bfe6d - inlined_ast: ffb2d16cc039178d77da212f2c5956351520a1b395adc04de4a8dcac7f9bfe6d - dce_ast: 1176082391cf301fb0321c991b4b89a3e0d0bb9eb6172ac94f9951ce1b6ed568 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 4e6ae6d7d69089bf39d1411947dcd07dcd77b36b9d7675b26624b33b8aad3998 + unrolled_ast: 4e6ae6d7d69089bf39d1411947dcd07dcd77b36b9d7675b26624b33b8aad3998 + ssa_ast: fe754d72777d034fd79dd49917fc091fd7c756ecf5e37ede3eac696788f4b105 + flattened_ast: bcf86ca31cc46a5f9e49a87580f1e6c77ae49bc122b3d2b219e5842e4d34f41d + destructured_ast: e36e7e3b8eefd9cf7524a797db761b855b22b0aba8d69c98e142e35f1f905581 + inlined_ast: e36e7e3b8eefd9cf7524a797db761b855b22b0aba8d69c98e142e35f1f905581 + dce_ast: 8672100a0935f435cc70ca91943669bcea43473de4193e4939b5b7d715100e77 bytecode: c702ea63bc91bf1aff738a0101761c3201a54f29324dfb4fbcfc7cef05017050 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_group.out b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_group.out index 0fb4234e64..224fb39c75 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: d763f279b99cef42b3ac7bb57d50942b30e5f8f1a1f769cd9958cef729a8e02b - unrolled_ast: d763f279b99cef42b3ac7bb57d50942b30e5f8f1a1f769cd9958cef729a8e02b - ssa_ast: 5aac0a63dd818a1f6d9d11ea0ed3a131f998ebefbc93edd21c4c299b574ff493 - flattened_ast: 92335c0f34665b1e0169f83ba872b2d02454b50c600d4303e67c970751b3d680 - destructured_ast: 72b8ddea2711ea11ba41262fccf5dc0badb735a31da24d30d1f4437a3d302868 - inlined_ast: 72b8ddea2711ea11ba41262fccf5dc0badb735a31da24d30d1f4437a3d302868 - dce_ast: 7bb5f8eef6263b9358cb8865d824a2c3fac6be338a5f34921575392945812617 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 43b97c42f8267843e2549269149197b281c28f02dd994852b0aca53e58f349fe + unrolled_ast: 43b97c42f8267843e2549269149197b281c28f02dd994852b0aca53e58f349fe + ssa_ast: 5198158375b12d51d1cbd773a49ff338f93ef8cdcf9bbae6a899ad01c60fbae3 + flattened_ast: 89fecf16de71804f935b862bbfd8e9142a3bb2ee6b4c94c29df356213cc06f26 + destructured_ast: dbb93c5e620a12f5c7c18593e54127b8dd8c9b8af0bca96212d710dcf103adf9 + inlined_ast: dbb93c5e620a12f5c7c18593e54127b8dd8c9b8af0bca96212d710dcf103adf9 + dce_ast: a7ce2b848dc5d17b6e817d4b82eb677840279daa6f895df069ef9d4ead20b755 bytecode: a0a563d61716d3c6b3a75384d04fe6227332979ff3fb5d04a672e1db4e6fa8cb errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_scalar.out index b6840881e5..97c3b93735 100644 --- a/tests/expectations/compiler/core/algorithms/bhp512_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/bhp512_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: fdb9831b46e0f0c0e9c19c887416efd0fb94d053626e11e0d3242d99f5032509 - unrolled_ast: fdb9831b46e0f0c0e9c19c887416efd0fb94d053626e11e0d3242d99f5032509 - ssa_ast: 89fc72ac8702f3766cf73f98ab203f822e35397729b9d7b0c421967b9bc1d002 - flattened_ast: 614572fd02f9de4d005d78146f85c35cea3fc346015f7c456de94605009b6446 - destructured_ast: 40cf8b9755b69b132e93b5cd866ac747a0ee09743f2614c7c74509b46765e2e2 - inlined_ast: 40cf8b9755b69b132e93b5cd866ac747a0ee09743f2614c7c74509b46765e2e2 - dce_ast: 6baf0e8647f9536d43287cac033584bcde3b749d81ffd7fd0326ad41de249e68 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 5f6fd488370ddabf60688e7a82ae1edba905b24baa66ad5958d1f940716222c7 + unrolled_ast: 5f6fd488370ddabf60688e7a82ae1edba905b24baa66ad5958d1f940716222c7 + ssa_ast: 144bf560eb807b71a9109791513c5b41a7f57bbf832fd80934342a8663c53264 + flattened_ast: 22a1c4e4990606cf97de0707dffa2a960ef8474b9aad394894ad4866bd090164 + destructured_ast: bff5a1c579c33f9e23d036f72562c65eef800d3afb530d6904776116a2c42ca2 + inlined_ast: bff5a1c579c33f9e23d036f72562c65eef800d3afb530d6904776116a2c42ca2 + dce_ast: 4e944a4d10877da57ae151e42e345fa76ec8636053ef3a2eadea1b9ae1867dd2 bytecode: 6d1cfc85db8ba9546a0cce9391c99dc153031ab35a86b38ad443df534242c519 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_commit_to_address.out b/tests/expectations/compiler/core/algorithms/bhp768_commit_to_address.out index 69fbb1a0ad..780fc7a0ff 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_commit_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_commit_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - unrolled_symbol_table: 1ab6493df9354a7e0a097a8f78ad1614dee1166e9de8ab017279fa02bcc1ee28 - initial_ast: 3b725531e4e81fb9ef7fb5c2214a1ff21b4f81d213799cfdfdcb5bd468dae722 - unrolled_ast: 3b725531e4e81fb9ef7fb5c2214a1ff21b4f81d213799cfdfdcb5bd468dae722 - ssa_ast: 554698d7835001c82dbf10e08ab267047a235154f6ec54f1891bdacacb78f1bd - flattened_ast: a9498e7c4445f9b99298df829b08be8d4ec830535ae338011298e74b37f2e8c0 - destructured_ast: 717dbc721e10d2495a94107873a03f4e3bfd6efb5a1680bfeca0bf93a34793ff - inlined_ast: 717dbc721e10d2495a94107873a03f4e3bfd6efb5a1680bfeca0bf93a34793ff - dce_ast: 47690fcd1ee8d2cdba48c23272c73e8c4a5bb7dcb2ecacb9f88cd75c56d842b1 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + unrolled_symbol_table: b404533efadcaeef30740a21ad3082dca23435518e2bb64a39f224582270427d + initial_ast: 8450e1f26989fb3d6919e1dd456ec7d1628409d343dc47dfe65d7e1b56d3b125 + unrolled_ast: 8450e1f26989fb3d6919e1dd456ec7d1628409d343dc47dfe65d7e1b56d3b125 + ssa_ast: 97e701a6958ad004fb3c9b3c42fabc813e992039f72ff0205ab5f02fab283db7 + flattened_ast: d6530d6cff222f1ca37c4297eb3e53f416b392056d0fd4dca56054d6187fce92 + destructured_ast: d9221537570ccbded673cc8b5b19eca9cfde46d41710ddaf563f47230bc94fe5 + inlined_ast: d9221537570ccbded673cc8b5b19eca9cfde46d41710ddaf563f47230bc94fe5 + dce_ast: e3404d1c783bf66373dd843923fc942faf9cac3d03baf1233feaa46f5e7f5759 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_commit_to_field.out b/tests/expectations/compiler/core/algorithms/bhp768_commit_to_field.out index edb6052f2c..253009d3d2 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_commit_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_commit_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 8e5ad458f96ada8c3cdd6424e864c7a94692cfab224dc16b6941cfd5fc99f883 - unrolled_symbol_table: 8e5ad458f96ada8c3cdd6424e864c7a94692cfab224dc16b6941cfd5fc99f883 - initial_ast: 45b5e75c32023cdef7aab58b99384b5311c9010256a9cfaca51781888fae3495 - unrolled_ast: 45b5e75c32023cdef7aab58b99384b5311c9010256a9cfaca51781888fae3495 - ssa_ast: 2066bd314a11bc63d536be349e58aa72b89aa0472e40ecfb2c92be92d55bf01a - flattened_ast: 2b0a92d72558c86071293ef91a47e5e2bea76d37a62aaf662c8475cf4658c488 - destructured_ast: ab1d8272569899f77a41d0771840b24e2d1dea785ae3116ba2349e34362579ff - inlined_ast: ab1d8272569899f77a41d0771840b24e2d1dea785ae3116ba2349e34362579ff - dce_ast: 84a79017a8b5ac8cb5edac27cfc397b266efef38fb9489b75002abfe65de74bf + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 47da8363d5a8d5de413b8fd97ec5cc722461f4128183f5effd20b39e456ba8da + unrolled_symbol_table: 47da8363d5a8d5de413b8fd97ec5cc722461f4128183f5effd20b39e456ba8da + initial_ast: 0a6f7adb02b761eed00f9f22f4283ae86e2aea6292eb755145976d04c6342c1f + unrolled_ast: 0a6f7adb02b761eed00f9f22f4283ae86e2aea6292eb755145976d04c6342c1f + ssa_ast: c85ad90dae7b9cd3f6c2d5aedb9b2404d6bc6d163d6e45b6551f791060462ea6 + flattened_ast: 0593ddd585a759c30cc44e5957cfac6ba55c23237bb2a0b6f29ecf84f634c0c0 + destructured_ast: 0c8a4cd277d1cda294a2e4a7a5212c81112101d069eb75250a8b48faf709567b + inlined_ast: 0c8a4cd277d1cda294a2e4a7a5212c81112101d069eb75250a8b48faf709567b + dce_ast: f6c481997c07d2f22662be92d8ca6fd5213ca4a05913cdab15772d9586196b1a bytecode: d6282c666e51c8c3f3ce541b16d07701dc4d0900acf44bf392cc235ed79a2484 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_commit_to_group.out b/tests/expectations/compiler/core/algorithms/bhp768_commit_to_group.out index 2caf3025c9..f9800451e7 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_commit_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_commit_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: f7856321cae8fc9c709004d0d358fc8aaa6f718db7710f7928885485eb8c57e1 - unrolled_ast: f7856321cae8fc9c709004d0d358fc8aaa6f718db7710f7928885485eb8c57e1 - ssa_ast: 7f674202bce70e353382ee7ed9163805bae54196e6d5938be5a28a9220f13dbb - flattened_ast: 4ef836f645b5026b6ad06e238b50cc9ed8318aedccac966c731c8371d1db2b35 - destructured_ast: a5349365c9d65b51d7b49c627742ebc7cbfd08a76fd5bd2fccd939dd5b16ce87 - inlined_ast: a5349365c9d65b51d7b49c627742ebc7cbfd08a76fd5bd2fccd939dd5b16ce87 - dce_ast: 3e8f943bb5d518e39b37ceb493934b9d3641c312d5387b840ca1a6a266c71018 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: cd85e14fa8d115408d3adba483f5a8ce4eed4eee9200f64c7f770175dd4743ec + unrolled_ast: cd85e14fa8d115408d3adba483f5a8ce4eed4eee9200f64c7f770175dd4743ec + ssa_ast: 72071bf01977d6409019f3ea58bd6e7af3a75c8f2f5ecac57ed76d993bae0f0d + flattened_ast: 09723d23b72843c74c9116806e50116bdb2a51dd97396faed0fcb212c0bb4cd4 + destructured_ast: 267c124cb66b7910e36f9eedbeea1f45c1d5524e4222bc81b94026892a8cb1f2 + inlined_ast: 267c124cb66b7910e36f9eedbeea1f45c1d5524e4222bc81b94026892a8cb1f2 + dce_ast: 6d9bca3d769f863cb916c41731fef0e247f3c85fa217be14ea7eff3eb3aeee3f bytecode: 229ed43ca637238faed92dd4732941e7c471f274c74ecfe4c2a77beca892bb62 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_address.out b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_address.out index 7f11c73b1a..d6d9cc84dc 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: d36c5fd5ba85678d696d5fbc8b18c696016114f576dd52257383b0ffac433f97 - unrolled_ast: d36c5fd5ba85678d696d5fbc8b18c696016114f576dd52257383b0ffac433f97 - ssa_ast: ac9a520fa6fcc0816d180b13b4200fd9087c931698185febb2d7620b924c7624 - flattened_ast: d5d768ce102839e28a54fea4788ae0cc715e483d15f36342328655911eed3cfb - destructured_ast: dce52deca574b61246864c2231e5ba3139bb221135c4c4ddf0b352a122692547 - inlined_ast: dce52deca574b61246864c2231e5ba3139bb221135c4c4ddf0b352a122692547 - dce_ast: d9ce04dbd26a1145efc4d2335dc3f9a844fd7cc00260ec2368664c20f2426de6 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 0e14221fbe48218c4354e80885d3e327ca213b22c42320310b21173fb02de160 + unrolled_ast: 0e14221fbe48218c4354e80885d3e327ca213b22c42320310b21173fb02de160 + ssa_ast: 092906f44c79f50a839a589dc6b4370e0539e990c1ad241dbf285dc6a8f14506 + flattened_ast: 8fb7766f1d6f9bd5c789f61e44207eab1ddb04d3725ed514a31cefd774ab5371 + destructured_ast: ac9eca13004ba22274600b6d7dd107e4b7d5fde4d1917c7c760c21c4d48cbd33 + inlined_ast: ac9eca13004ba22274600b6d7dd107e4b7d5fde4d1917c7c760c21c4d48cbd33 + dce_ast: 6b7def707702f771bb41ee11637d5f312355c5f8fdb505c224c5ae19179c391e bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_field.out b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_field.out index e52ccc8039..031b92d824 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 2cb76da9578e7cb2a87db3b00ad67bdb0f45383265e5529cad769dc4afcec1a4 - unrolled_ast: 2cb76da9578e7cb2a87db3b00ad67bdb0f45383265e5529cad769dc4afcec1a4 - ssa_ast: a578ffdad536647cdd4d909e48e88cdcc957d2c10be70cfebbb8da1ff1115e50 - flattened_ast: 8df2ebbd67e7ff4ae6e96d18dec7ce8cce9b6850b9cf931eba85c64e631c402f - destructured_ast: 7f0b39f50b706ece9ca07b2a3ee2e01beb97a714bd25603f709c1962ac891683 - inlined_ast: 7f0b39f50b706ece9ca07b2a3ee2e01beb97a714bd25603f709c1962ac891683 - dce_ast: 64e8b2de91df2a07931b38697d3adea8e8f0562e0360fcbdffa3af17181954b3 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: ae59244f2bd676657c0aad37e442ef03934174281adf3a27bd914077f69208c1 + unrolled_ast: ae59244f2bd676657c0aad37e442ef03934174281adf3a27bd914077f69208c1 + ssa_ast: 42cf5290655ca612270cf71a323f93c8f772e5829f8351b80ffd5e61f88ab7ac + flattened_ast: aa9b328501b8b3e39aeb00afba3d3eb4d63bc4ebb0473f0a02318c34b7c0b658 + destructured_ast: 88c731b22a1998ca5be0319e603e7c91cb65fc47a8c29dbbb61d55c76028363c + inlined_ast: 88c731b22a1998ca5be0319e603e7c91cb65fc47a8c29dbbb61d55c76028363c + dce_ast: 01f971e7e390bfeab22fe4d123184cc813bcdcc6ebdc71f1830a63cafcb2aba6 bytecode: 7da691d67f81116d91fb60593fa7fbac92c7409ecb5728174beee3fc612716a0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_group.out b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_group.out index 44bceb91b9..dbf408450e 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: d12b88b7946c4dfc252e8502f813c9479ece6bc568ca16c5b7f0d11293329b0e - unrolled_ast: d12b88b7946c4dfc252e8502f813c9479ece6bc568ca16c5b7f0d11293329b0e - ssa_ast: 3cf3e8c309f06ec8b6f8f89faf86030d09ddba6bf44204fc701eb85d0c91c25c - flattened_ast: 38e7543f96afc8ea6e5374d390b5739705193816064f41806a70959dc2b7f370 - destructured_ast: fec8bd37d21cb73164b8f46a858bf8ad722152c49d2b01785c0365a533476055 - inlined_ast: fec8bd37d21cb73164b8f46a858bf8ad722152c49d2b01785c0365a533476055 - dce_ast: 0b5f016d7cf2a1a675f92dfe8abbb1e5655b4dbda20ebbb5bad307abee1b52d9 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 8cbf0ed02d13a22c74d917f2eab44c7963f4e51e14ea2412cb3d59cabe390500 + unrolled_ast: 8cbf0ed02d13a22c74d917f2eab44c7963f4e51e14ea2412cb3d59cabe390500 + ssa_ast: c5b179ddc6db46257d3df315f8bbcf48680b9816865e47568d2856808bc0c0e8 + flattened_ast: 02f5464f8c2f3cb790b24ee3c83e1a3ba15cbdeacfec446212e40d404e210227 + destructured_ast: d77887add09eae05290dec2e2d990a8baf30d1a8c6d400e0b7f5e92c86e97e0d + inlined_ast: d77887add09eae05290dec2e2d990a8baf30d1a8c6d400e0b7f5e92c86e97e0d + dce_ast: 3dbdfe974619e59170a60e84ec3c94df75bed07ce38fc6e1bd15ded9b2f092f2 bytecode: 6d469fd18d4b6f00204c95b4a6f2b98ceecb94947ac706bcba8976d667d9921b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_scalar.out index ec617aa45d..2ae7d70a7a 100644 --- a/tests/expectations/compiler/core/algorithms/bhp768_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/bhp768_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: e86d9034a99b151b3c24e6fa8144c39c364fc7419f6485ef5ff9306003e3380a - unrolled_ast: e86d9034a99b151b3c24e6fa8144c39c364fc7419f6485ef5ff9306003e3380a - ssa_ast: b1b76872d420d374047685a8caa8997573809809fb38c22070202c22a372cdfe - flattened_ast: 17c15ad8def3723dc51bada88cd6993aae173c425aad665b8ed562a5c507ad16 - destructured_ast: b6e13af7316132c7f6e50a61b2b3c8c925156bf508d4acbbee7833620ae03b18 - inlined_ast: b6e13af7316132c7f6e50a61b2b3c8c925156bf508d4acbbee7833620ae03b18 - dce_ast: dd33ed056dbc212a536bb457905d3b97821edf0586948cc23d9b31b32cfeb75c + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: bc78490fbc83c2f2d015180751edc1fc4be822197bc92ff5a9be265b411536e3 + unrolled_ast: bc78490fbc83c2f2d015180751edc1fc4be822197bc92ff5a9be265b411536e3 + ssa_ast: 57cb4afedfec2088d578000543d904b2025d709450f1e08e602924443306905b + flattened_ast: 24313c71d15e9f1d87f795ef7997ea2ea73ba6221aba38ff5db282429be5d2d5 + destructured_ast: 1e2ba4e7c954b226892c2b6812b84817665d7f2df09dff5dca0ed6f7b293b6ac + inlined_ast: 1e2ba4e7c954b226892c2b6812b84817665d7f2df09dff5dca0ed6f7b293b6ac + dce_ast: 90aa29eab4ae69a0fb8da5baa1beaf1166ba47ec9102a84c34b5b36e2f09ce93 bytecode: 39f2fd495ce761fe3a8fb011b05bfe34e50db91dbd7f9a5bec40a8aa8187f0b1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i128.out index 813a83ac96..eaad5cd843 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 0971f4b55068cfe0b74627f9a2e47e81c15a2074456337130aa90761dee41bb1 - unrolled_ast: 0971f4b55068cfe0b74627f9a2e47e81c15a2074456337130aa90761dee41bb1 - ssa_ast: 8e8da2b3153ba8eead9a826cf34b46ab583a26694cb737bc69fb2a64bf1f56ad - flattened_ast: 827ac90036961af3578f18861b41fa02d963637c99745d37572d40ddd6febe5c - destructured_ast: ccf6063e4f51a1714a1eea4d1678e64365ef2663c10ede673d4f919752c8d018 - inlined_ast: ccf6063e4f51a1714a1eea4d1678e64365ef2663c10ede673d4f919752c8d018 - dce_ast: 83ad2640cb5a617bffd8aca06931e20c653b63760a24a39ef0baff75ec26459b + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 63f31269f0fbf44b0210fb6ef885ac4e2ac4cca59135761ec038d46f48d9d477 + unrolled_ast: 63f31269f0fbf44b0210fb6ef885ac4e2ac4cca59135761ec038d46f48d9d477 + ssa_ast: 72bd4ecd5c08c581d969af0410202799975370c382dfc30849cd456204e2c680 + flattened_ast: 49520471dfafda1e82172a37e14cda7b137b608e8fb883035b0aa8b0ec8a4407 + destructured_ast: 73c5946dcb9bfd3ffd9c40eca73a6d4381cfcc7105f253e6298692f9ccab5245 + inlined_ast: 73c5946dcb9bfd3ffd9c40eca73a6d4381cfcc7105f253e6298692f9ccab5245 + dce_ast: 4041b00f0e2fe32e69147ce6b133d384377ac45821c9def0740d410c566dd212 bytecode: 291203118efe8ad584e0fe1e5ad940b457fea07bc1833c28dcc64d0f5e380261 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i16.out index 371e838634..0fa2c8620d 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 5dd649055a73546b6239160fb3264054ff9d6603238e87e0b92d62e7989ac6b9 - unrolled_ast: 5dd649055a73546b6239160fb3264054ff9d6603238e87e0b92d62e7989ac6b9 - ssa_ast: ac1160e437726c0b34a26e7c2ac631757b8668f8bfb444412dbe936991d10871 - flattened_ast: 79431ae4be3d2f8c7148ae3d852ac3a48212f0af893c7e4b2207d28e80f4e6b4 - destructured_ast: c14102e12e2435fbb25c6def3b6728e69272529539a4084c994aae97f9d3d725 - inlined_ast: c14102e12e2435fbb25c6def3b6728e69272529539a4084c994aae97f9d3d725 - dce_ast: 9beb94b6f2236420c819174c6e035bb23725e662ee2659b3b0b8893268a23152 + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: 4570f3d60cfd9c59db360af64609c7449620bcdbc37f38b73e7a8e51291e9beb + unrolled_ast: 4570f3d60cfd9c59db360af64609c7449620bcdbc37f38b73e7a8e51291e9beb + ssa_ast: 843f9361633d9067ac50995d3c58641fdf5605047f7701793745068c2ad33821 + flattened_ast: ff7c5f4b61c62ef352c42ad10ccad13f78d1efaedfe5b8597632615997715fe1 + destructured_ast: 998bb4c4164cb33a19372c910409405d80eacfb5a7deb7c754f108f41219e6a3 + inlined_ast: 998bb4c4164cb33a19372c910409405d80eacfb5a7deb7c754f108f41219e6a3 + dce_ast: 8e3fb0cc378a4051961e723094483f9150e37a34fa32a6462a62c0c043e5f2ad bytecode: aabc532da97dad13de4f6538e8b18c6696e0a4e16ba5c50624add1e547aadbb0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i32.out index 17c88520cb..c8b1e82983 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 52248e4c0972574fd4af0543a8f095fff09171da9557fa402674bc9490948af8 - unrolled_ast: 52248e4c0972574fd4af0543a8f095fff09171da9557fa402674bc9490948af8 - ssa_ast: aa3a79e23ea405d1aca0cba0fbdc65e1bcbee8b41079d85b58a53f36d248432e - flattened_ast: 485142a5730ae4bedc2e09a8e83b9c1b0666821ad7cf3da4128ba8b42d0d3e1d - destructured_ast: 74a4265d331ad08a275838139621dc7e21e320cc99b5cb55c77d2590088cf931 - inlined_ast: 74a4265d331ad08a275838139621dc7e21e320cc99b5cb55c77d2590088cf931 - dce_ast: 0389dcf4bdf36e74f9ebb7bf2b9dd7e9adc4273b63f128deb75a8fa1d613eb3d + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: e97d4b6fe64bf4d32129961426b79d23f443b138a3a9d7386a083f8f1d4d8e74 + unrolled_ast: e97d4b6fe64bf4d32129961426b79d23f443b138a3a9d7386a083f8f1d4d8e74 + ssa_ast: f955c72badbf8fda6056c12f92eb5d837d55c0289d3315c5d1aea98dc19fca08 + flattened_ast: 6c281bbe0126590b8741e611e759cbdf2fe09d1c3093ffe0832f4880ca820f19 + destructured_ast: ebf237f5a91a0d2f2ffd10753137dc93418b04cc88c6210d770b5bea05d6f720 + inlined_ast: ebf237f5a91a0d2f2ffd10753137dc93418b04cc88c6210d770b5bea05d6f720 + dce_ast: b0c2ed62feb9a25653d3f3a3f49935e84a1131596b578df6c011076b2d2106f9 bytecode: fb50b455787039d40359e8561b3c38dce51cc9bfd62c06db7cdad7ed77575e4c errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i64.out index 77c131a243..15bde99958 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: ae57d7569e4050cfc6a80fdadd0fed609e42151cb3a4fa7ec74d7741918ced99 - unrolled_ast: ae57d7569e4050cfc6a80fdadd0fed609e42151cb3a4fa7ec74d7741918ced99 - ssa_ast: c71c2648c8e618c3c39408a79ec58ff7e5a3eba25b75af8fa0600b77c22c6d52 - flattened_ast: 57b747e7ecd727b837b8ea0fa9b19384268db95b4288336216e1518946a2458b - destructured_ast: 8f29e61b3cd7631b945ca7eb09012ed85ecfde26aae1bb82fa13fd3908d0dbf2 - inlined_ast: 8f29e61b3cd7631b945ca7eb09012ed85ecfde26aae1bb82fa13fd3908d0dbf2 - dce_ast: 7d2071061fd0550d75c9c31ae9556a9c9b72026a0ac396edbcfc970f61d9c6be + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 00579230ce84e7834ad499a19e960c8a3b9ec9621020f90cba124832b6978484 + unrolled_ast: 00579230ce84e7834ad499a19e960c8a3b9ec9621020f90cba124832b6978484 + ssa_ast: ac724bab595f3a227b63680a4a480ff3c0edf7f4003783706b25c494f1fe653b + flattened_ast: 8d33be9abdf59d70741f463c306f3f19458b8a0606c4a26d2a4c2fdf945c8a43 + destructured_ast: abf250ec39af33eb227c6efc427d2b72ad80cc27fc2085bdc1af51db9c3083e8 + inlined_ast: abf250ec39af33eb227c6efc427d2b72ad80cc27fc2085bdc1af51db9c3083e8 + dce_ast: d389376a3a459dde1c1d00857f2d47aa3081ce6c395cf08be68bea8518cbdb22 bytecode: 0f39fde0b1e15ee4f8db0c84a7a280cdeac852cdca4959a14a61776aa661ced5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i8.out index 3cd5c01782..93d842fd95 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: b723e731f20772efe37c43b350986c826756bd19aeb59ae40f08e23eaa31541c - unrolled_ast: b723e731f20772efe37c43b350986c826756bd19aeb59ae40f08e23eaa31541c - ssa_ast: 39d4c8bfee7ac778f6d384922c9f93fc2c82b0fb7d10c9fc03dea4fe91fb3d24 - flattened_ast: 475ae035e87b43e9b0f60964d26ae667cb7cc9939c7beac7f152f84fa9b07c56 - destructured_ast: b6198b183b910559858179d121b23b4e47e2f42e04dd4fb85f757f5d06c4bccc - inlined_ast: b6198b183b910559858179d121b23b4e47e2f42e04dd4fb85f757f5d06c4bccc - dce_ast: 536265f96de7c2d17291d6546c3f02d06766094fbe8cf5d7265dc451d1214c75 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: ef77ba8524554b5cea58a2002e90c0c21311856d9810bd7510361239342ee1d9 + unrolled_ast: ef77ba8524554b5cea58a2002e90c0c21311856d9810bd7510361239342ee1d9 + ssa_ast: 06b27991c9eb3aca313277bf4f6bc1f96968808fd8d709b2cd7019626421f997 + flattened_ast: 6cc2cf900af44734924155190757fc81d4146597e1123511ac3deb1a7a3ea765 + destructured_ast: 7d2c3c65cdb827285807dd78174db70d3f12748142e614508995001132f159ef + inlined_ast: 7d2c3c65cdb827285807dd78174db70d3f12748142e614508995001132f159ef + dce_ast: 15667bffc2879bf3bcfbab24f280e28cb54953f545f5d491f4ba2e65c1534bb4 bytecode: b267a8888601eb2f66b0e0f9814268308403849dd65f3535cea29bcd4245360e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u128.out index 35531d1e76..57491fbf37 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: b09690748dbdbd9cfb0be40ddd1169406f1956fe4d014be575eb599edba4b76d - unrolled_ast: b09690748dbdbd9cfb0be40ddd1169406f1956fe4d014be575eb599edba4b76d - ssa_ast: 892a555a85f938ceb45e27b3889fbd1d2782c85f9f6a91f18d16dcbb5df431ed - flattened_ast: afba42c28edf0ff0ac7cf06422d2a5d9b4b14934cd08c7370fd9cceb89c13cf2 - destructured_ast: 0d026066e012cbe6a8d6a95a61177f2ce4173ff5cb070de651fff7248ce43c24 - inlined_ast: 0d026066e012cbe6a8d6a95a61177f2ce4173ff5cb070de651fff7248ce43c24 - dce_ast: 21b26bb25ce96c99a07aa483254c8ae2d6ca3951e1544e320712066789f4175c + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: ba3d5920eddba175690d74b373b819e8b37d8c265848a37978a2e225180327a2 + unrolled_ast: ba3d5920eddba175690d74b373b819e8b37d8c265848a37978a2e225180327a2 + ssa_ast: 96e47dd5b17ea9c843051027b371675dbb694294acedf74094aacc705820fdd1 + flattened_ast: 8062ad5abdcf2dd5dff0cb16388249bcaf8a1016e92234bea147c06934034f3f + destructured_ast: 1d37ab8679df32c5e76a7386f7d84c5ca4a9f5cfafea382ba048c9297b846b53 + inlined_ast: 1d37ab8679df32c5e76a7386f7d84c5ca4a9f5cfafea382ba048c9297b846b53 + dce_ast: c568c6400fb6895c62a37831510854048c820b11582336beb4e219dde92f46f6 bytecode: 82114d77c21652d52ef1000d4f83e8539bcefb03acf8ceec8e75f36e4acb3062 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u16.out index af8f405a9b..7cc5cba850 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 96a0e81cba699d8b9b6d5369f2cc25c5b90d192cfd196189dee2c93e50a3313e - unrolled_ast: 96a0e81cba699d8b9b6d5369f2cc25c5b90d192cfd196189dee2c93e50a3313e - ssa_ast: 538a6fb4f3f166e306e67ac0da79081ed469254af7eed54b3bb9ca4f31e8d54c - flattened_ast: 1f4fa1ec5d2f0de0558c643d1d7d41956dfb72fe6259a2ee14b5230d3185e04b - destructured_ast: e82fa42bec66805a84507e72bd36c172ac9933ea57282ba39f85e8d475932e06 - inlined_ast: e82fa42bec66805a84507e72bd36c172ac9933ea57282ba39f85e8d475932e06 - dce_ast: 4716e149d43a9343463918287d796b68337a5b40faabbe4202477fc09fabe1c4 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: cf9e1f6145f0d42da4609bf1de607bb7ee36f9d9da810b00339985af53955316 + unrolled_ast: cf9e1f6145f0d42da4609bf1de607bb7ee36f9d9da810b00339985af53955316 + ssa_ast: c4c2d65ef9b71face27583892961e964bc2248ddc2d25d5928e95aebfe93b01c + flattened_ast: 9b378ca7a9cfa7d3fdd1864f50d89be1b4e6a9a4ad034e44d82542017146c7c9 + destructured_ast: 51450cfe0483b802a1fc84d15b6c5813a1109bf9955902eb74d806a168d81a84 + inlined_ast: 51450cfe0483b802a1fc84d15b6c5813a1109bf9955902eb74d806a168d81a84 + dce_ast: 829fc8a14c8fc43c1aec4af92dc4339a070b83597cfdae6c3a161481dfa2bc80 bytecode: 5eeedee42e2476fb270490327599aed56d2d2086addd96030cb733ad90fff082 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u32.out index 47cb52a41b..7a0d96bd34 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 0c0a234823cbba6b7ced17284807d06a647befe859bd6de8c1c80e75fda7908a - unrolled_ast: 0c0a234823cbba6b7ced17284807d06a647befe859bd6de8c1c80e75fda7908a - ssa_ast: 76ead1cdd13dcf285c14639c0aa4e42b399bb815d3e68fb480a36a91cc68ba1d - flattened_ast: 99aa4094c6d1628d8858f131e9a8b483fd70ac26adb4ea17db83e63cce6c2e5f - destructured_ast: febf0d45daf44c6e2a716606dc4e59c27a335e0c5efaa9337b325b099b693adb - inlined_ast: febf0d45daf44c6e2a716606dc4e59c27a335e0c5efaa9337b325b099b693adb - dce_ast: 2b2e623cb5deab060f95404eccf329cf12cbd2e9ef8110e7304177bce9eb6d50 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 2d02684e002f3b36d1e3b4e9d21105c866c2cf9109ca9563f32a31e9eadbfd87 + unrolled_ast: 2d02684e002f3b36d1e3b4e9d21105c866c2cf9109ca9563f32a31e9eadbfd87 + ssa_ast: 4359e44fdf024ba23fd39c83940119947e8a397f7be349477be5e0cdf5766dfd + flattened_ast: 9ab0f244cc23f660bf72e70fc8d2ae29a8e37975b89ea1648e9b69970378104c + destructured_ast: c7772477979d94a281ca29a5d112e7057dfa2c4edee4e319e384e94e95e2defb + inlined_ast: c7772477979d94a281ca29a5d112e7057dfa2c4edee4e319e384e94e95e2defb + dce_ast: aade46d3ed171e0d5b65d4f87d1b0bb4016faf9a1f0d39e38aa4ecb4c23b748d bytecode: 5ec7cc3de6c113f85819e7425d3cba1d1c9d72dbd11bb4dcc38aa93ef89cdf2e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u64.out index efe520e004..6f8a11368b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: fe79bdaceb26d783616c6769727726062a69994a03e23f27c27fef1932017bd0 - unrolled_ast: fe79bdaceb26d783616c6769727726062a69994a03e23f27c27fef1932017bd0 - ssa_ast: b690e0a65a66428c7e52677d14a93ad0c74c058823e38093cf94227c123a9e87 - flattened_ast: da4f22518c826e0a4a600b80d0bd33d0f53177fccae09d53ac11842b8f0cafef - destructured_ast: d208ba75da6f69cf5f0824a419932ee8c1b829b7610769b2f9d776053e22f996 - inlined_ast: d208ba75da6f69cf5f0824a419932ee8c1b829b7610769b2f9d776053e22f996 - dce_ast: b2c5009707d9a313fa8e4406cae3a8be4278825e2f717e4b38f8e1647be4a31f + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: c2fd6ecd3fa9d071ce4ffbc5d92fda4449860b644bcaf914bbd7aff8256041c5 + unrolled_ast: c2fd6ecd3fa9d071ce4ffbc5d92fda4449860b644bcaf914bbd7aff8256041c5 + ssa_ast: 4c010b7f7f23941f554842278bf56226dc1c4d19511caeb304ceda3d37929bf5 + flattened_ast: 2e71309fcc0aeeb1a7e08266d611539d5c90d77ba703cc06a2142796bb8aedc0 + destructured_ast: dc64fb8fd34176ae5fe9a2f7adc8b1f6b24bcfc3dd9ee91f1a57a716e0d2476c + inlined_ast: dc64fb8fd34176ae5fe9a2f7adc8b1f6b24bcfc3dd9ee91f1a57a716e0d2476c + dce_ast: 893615b837645844e70584a36bbd446d9851ce154b3525c9d46fea8ca4171f9b bytecode: 400dea3099e787d74f8c336d3a7cc2d26e8de8bf52e579bed30244f437aa25f6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u8.out index 7452e24530..5393444a79 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp1024/bhp1024_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: b14ad53a09df499f184148a2590794408169384afeccefcc8c10bce499ecf984 - unrolled_ast: b14ad53a09df499f184148a2590794408169384afeccefcc8c10bce499ecf984 - ssa_ast: b57dd4600d2ee926135eff253390c4cbb3755c6cf4ee75264dc2ca718b6396b7 - flattened_ast: 3aaea2c12cf1525b6532761aa007f06611e18ab9378eb71ee2400fcb9c11fc0a - destructured_ast: bc401761d6101b3645ef0b03756f91702260b9df028c709dfbc3843d8f97027d - inlined_ast: bc401761d6101b3645ef0b03756f91702260b9df028c709dfbc3843d8f97027d - dce_ast: 2a624eb50f6967a040918454f40a91e7d240b7781258463d685d25eb2a40b274 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: a3075a13ef24b2c3b79cd8f197fdeda463f65d5490ab84ff10095bcf411693d3 + unrolled_ast: a3075a13ef24b2c3b79cd8f197fdeda463f65d5490ab84ff10095bcf411693d3 + ssa_ast: 86f5c9c6b031e7aeb1e05b673139009b5a50dcebc175351e19d8d2858fdad6ec + flattened_ast: fa38b65725d2e2e77c5c299ccb1c771498240d7848c8d591aa1b5e6980449fd4 + destructured_ast: 3094d3e390d24434ed415992478c40d77222d5cc5e12c818676d82f96557f356 + inlined_ast: 3094d3e390d24434ed415992478c40d77222d5cc5e12c818676d82f96557f356 + dce_ast: 5409c081d158c118d111ea9461003110aeed57bdde0d73077837abd176dd13ca bytecode: 7e364f0f5797c362156d92896d5c0ac0cb8923bdfce720d844550006535bfec9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i128.out index 6fa7ba610b..09796f802f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 8f7dfe0f52fde5d35db15661a8bace1936fa497ca06930d35a6eb03e64b59645 - unrolled_ast: 8f7dfe0f52fde5d35db15661a8bace1936fa497ca06930d35a6eb03e64b59645 - ssa_ast: c59a7c20802d36a4be2cb5f1eeff0f8f0357152156192fcb30fb1d6fe4de91e7 - flattened_ast: aec51a7f674eac434c58e987d99b188807bb1c3dd0742c473d79b0a3df3fdec9 - destructured_ast: b951e40f58f7e9a27b401f1aeee250fcdd89c62d651ac5500d182f5d996b952c - inlined_ast: b951e40f58f7e9a27b401f1aeee250fcdd89c62d651ac5500d182f5d996b952c - dce_ast: 68129eefceec49ae1b1a212b26d9463c7600f1c136ddb9a12ef926b4cfee87df + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: a6b8da2d7accfe05b37b802ded17adb7449e9d84cd315117ab37ae115f5a0161 + unrolled_ast: a6b8da2d7accfe05b37b802ded17adb7449e9d84cd315117ab37ae115f5a0161 + ssa_ast: 4e2713efe36385afdd2b871cc727c957c8e08ef1013059e91057327398907ef0 + flattened_ast: 6c0149abace6cebc70b1bea122cd02893061dd04328d564f89a0410b5f5ec0e3 + destructured_ast: 581bd46ff806edd4d312bdbe6f436b31806ec2e25c090894da4137580b8c282d + inlined_ast: 581bd46ff806edd4d312bdbe6f436b31806ec2e25c090894da4137580b8c282d + dce_ast: 39604f7a920e5f517a1da7105b81071f7cda63d605f1d67f3fe6f869baea58bd bytecode: 6d1f9a3fa30f6b177ef5b8242e1608ab54576a5d82df58c97c2e367270c6d7f9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i16.out index 5bddf8d606..29ad9cc93b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 997ea48a95cbe2f352801f0c054f183bdd4ed72be992ade9deba88fca7b9a284 - unrolled_ast: 997ea48a95cbe2f352801f0c054f183bdd4ed72be992ade9deba88fca7b9a284 - ssa_ast: 1c1270ef1093b9ed6591fe53df4565f969c0353e526d86320f93102edbe2b6eb - flattened_ast: 9e4b985b793c9e9a10eef5ddf7bb2bccac55550cfd951588238392c46ebbc456 - destructured_ast: 71f0cd518f391ff256d1c6edf99ad632913ee1528c3146a346b1a9b16a2a8d88 - inlined_ast: 71f0cd518f391ff256d1c6edf99ad632913ee1528c3146a346b1a9b16a2a8d88 - dce_ast: 70fe5304bb195b3b387374be16e63f3c5c90c0e001018e5e7fe2a528646e03ff + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: c5e8774102af7c7906bff40326d9eb8be5df4b3c0bc56b9aaad999e181c2366a + unrolled_ast: c5e8774102af7c7906bff40326d9eb8be5df4b3c0bc56b9aaad999e181c2366a + ssa_ast: a03289c8142b6b2d6e788e45ee58f4c944ed5c3faadadb0eb51ea49cb21573df + flattened_ast: 3b802567a894a1fd5088ef9dd601ff87a2008d4879cd091f5693ba239d30878d + destructured_ast: 5886de530aeebab916fc1ebed5f6ed19829dffc64b180af24520f84f75b21b5a + inlined_ast: 5886de530aeebab916fc1ebed5f6ed19829dffc64b180af24520f84f75b21b5a + dce_ast: 2cf3948578a4a7ac4301b04895541ca91231bd182adc676c5603ffb114360d97 bytecode: 324982aeedb7f0eb194a3744384b562834062c95c62d9007a74ec8e2a5612c4e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i32.out index 1389a159b8..b901abc1bc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 33c6668ce859bc2a86d8542a77f04ec22ab9cbbaac09d32c686f26b1e689828b - unrolled_ast: 33c6668ce859bc2a86d8542a77f04ec22ab9cbbaac09d32c686f26b1e689828b - ssa_ast: 2f23a4171534e1d9c62b16a09f75f07f403d82a005b85cfcfe8404f6e6420dc7 - flattened_ast: 26cbf0df1606a8c05d0cd4065ea10f9cdf592a01033de1f7c666b1c76567ced6 - destructured_ast: 976c7a760fad0e6ae0d1688d32de820bc56de14dcb5aa13ac8486a96681e0abe - inlined_ast: 976c7a760fad0e6ae0d1688d32de820bc56de14dcb5aa13ac8486a96681e0abe - dce_ast: beeaeda2760134a061a7314b024f02f6b93a3702a1de879da009ebfe2e67b77c + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 6161081109eca988e75193e92a7a2ef52194d85ba4059298cd843da40fd30488 + unrolled_ast: 6161081109eca988e75193e92a7a2ef52194d85ba4059298cd843da40fd30488 + ssa_ast: 832cfa46acb92013bae2b96cd74492f747e5002f6f15322f1509029d76191efb + flattened_ast: 8fa2aeeda1291bd2e09efa275dc8d9c2ff2673478bb70e86db3a8aca50828a25 + destructured_ast: 88e627079975d11fd9533acb4a8a82f8705b8c242c37d93adacb7fb711ec3f8e + inlined_ast: 88e627079975d11fd9533acb4a8a82f8705b8c242c37d93adacb7fb711ec3f8e + dce_ast: d8e90adaab9229f01ed4d954fc1d38126b468eb283d4f81a27c502cb76b9080d bytecode: ead396ffd0d8084ce5fd2f208f904c27d3df3e0b42a22baef80d5778a0d63b23 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i64.out index 11034cb048..626301950b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 9bab0af696df22639282889606aeb55139aad8fd6980548fc007faea855b101e - unrolled_ast: 9bab0af696df22639282889606aeb55139aad8fd6980548fc007faea855b101e - ssa_ast: 434ed178528539d16827ac0a7082353a950d3b934c4d7efc37f025e16b85091e - flattened_ast: e61ceab2df04549e7dbd2acbe6ed0842f4c39b32ea018e8d79c2cdbaa6a6ec8d - destructured_ast: bb49c989cd10dd53d597c284f9d4d85286c7b24eee878859454217219aa4ea4d - inlined_ast: bb49c989cd10dd53d597c284f9d4d85286c7b24eee878859454217219aa4ea4d - dce_ast: ea16e124b54a2804c1fa06435bff44355548c38dede942f3cc2967e336243cb6 + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: a27908c9f65a0c1fc789764053e47867f0d597e7bfbb8704c17ad3b5d950d16f + unrolled_ast: a27908c9f65a0c1fc789764053e47867f0d597e7bfbb8704c17ad3b5d950d16f + ssa_ast: 838f563e264b48b572c5f71e6537732d6516a922b153439ee84e9891393ca819 + flattened_ast: 27820dd484e82b9d6e9271ac86e8606ea51cf1fa6c0dede9b09aa2902b800fe0 + destructured_ast: 410b6f68adc23a9070d532d0ea9cc07ad9b9eb0301a75fa0351f27c67b6f011f + inlined_ast: 410b6f68adc23a9070d532d0ea9cc07ad9b9eb0301a75fa0351f27c67b6f011f + dce_ast: cc3d40499b817006e888f26bb56b475ad3781f1ed174be1687dffe6bbe6156a3 bytecode: 93c0ef7e8c5de4b6de716347078c7e7fb4f36c0d814396e7060423dac910a4eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i8.out index 07c1569ba4..114e204860 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: e0de2a45fa485e7135d5e864d5d1f899a102d1bc3dae3d03344de954802f4ae8 - unrolled_ast: e0de2a45fa485e7135d5e864d5d1f899a102d1bc3dae3d03344de954802f4ae8 - ssa_ast: 6d9638ca17d9fb15aeb62e0bcba7165fe900708f0306f618092c0948825d7366 - flattened_ast: 31cbc67baf60d4cb45f8a636e752cc5d439b8e1c6b0a8d92b5d6b5825426c368 - destructured_ast: faad172d5cd5a31435437c653aec1c3d9170be61734694baa7c4cb71e4409cad - inlined_ast: faad172d5cd5a31435437c653aec1c3d9170be61734694baa7c4cb71e4409cad - dce_ast: f981e32323f0e2968300a9c19befc8fd17170e8878a48effee8c17ce8fa605ed + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: c80b2c968ec55b67ab4695ce94e8bcd33d048d9f00182a3b59e4af6a30ab494e + unrolled_ast: c80b2c968ec55b67ab4695ce94e8bcd33d048d9f00182a3b59e4af6a30ab494e + ssa_ast: 3e37f1174517e2d70d1ac1a66fa250314566858d424cc8b6e8d2e6a0082251e4 + flattened_ast: 62cad78a6a4f5a9a27a9a563edc45cbc1fbf45ce9e856d10ecb8c2cebd40cc16 + destructured_ast: 30026f344018f3bc21c0fd9974eb3e98f3305231feddb1a2620f18ce1b553855 + inlined_ast: 30026f344018f3bc21c0fd9974eb3e98f3305231feddb1a2620f18ce1b553855 + dce_ast: 4b9fe38d383e6ec156f41fcd870eda41ed411ff794043f8b6e818af4a28ee534 bytecode: 35d57844635bb3a2fc0261442ef69b8d67a4767ad0f61fce6b396a430073f5e2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u128.out index 80f6997c76..4d54e249f2 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 94bfd05d03b03e44643886782b6bf0c1176aea58595d40df0a6941a2df1fef80 - unrolled_ast: 94bfd05d03b03e44643886782b6bf0c1176aea58595d40df0a6941a2df1fef80 - ssa_ast: 6317f1d420af015609aee948ccc9727ac8a36f1e6f04666e40d1a45d9d113fdf - flattened_ast: 0b713bdaa3c9f8b6e6f99836d8d8a4f229adac99118d632f87d695400fba7421 - destructured_ast: 412c977300544726bbe62bf51f393d0851cb93d38ea11a9c4dcf159123088408 - inlined_ast: 412c977300544726bbe62bf51f393d0851cb93d38ea11a9c4dcf159123088408 - dce_ast: 9ce52320bb0bb461f1871d2015ee9b19a3f6668cd5d05eb6cb269f8b62f1256a + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: b2e3cf635cb36d22634b4e8f288da6c7f835f846821e039f7996a4281ee65a9a + unrolled_ast: b2e3cf635cb36d22634b4e8f288da6c7f835f846821e039f7996a4281ee65a9a + ssa_ast: 47b4c9589be4ff508a76f6e5929fe6db1990aa8fefba81b7a5f1d4732a4e3de4 + flattened_ast: 5927ffac56458ba47729e62cf94c3c911754d99073f5dc914e0577a412d4a661 + destructured_ast: a32ff13a5316a7cfa5f0634b2465c6d0044257058d044ffb7a20baf33eddbbb5 + inlined_ast: a32ff13a5316a7cfa5f0634b2465c6d0044257058d044ffb7a20baf33eddbbb5 + dce_ast: e6325f31096f38081ba8a2a7fd5cf263a1672f55d32baeb959992baf6d244794 bytecode: c865484cdaac4f81578a7a47f6a1772139a2f4b03d5a4602c7b62be71519846d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u16.out index ab4cbf4ebd..c00671c07c 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 01670e91be742e8a777f8adca2a5f3c87262e4f7f9c594d9707f12a2963347d6 - unrolled_ast: 01670e91be742e8a777f8adca2a5f3c87262e4f7f9c594d9707f12a2963347d6 - ssa_ast: 4575b74a323e0252f2b31acf4f0af0bb2197de7d9ce8f2f323d300b0d08092d9 - flattened_ast: 624576231dd72908aa732d320ce1f99aeb940907597e300dda6eb03fccb80b02 - destructured_ast: 7b66f922d7db6b55289dacb1807f46b7de9df67e67eb8deaaaf76089cfd6c569 - inlined_ast: 7b66f922d7db6b55289dacb1807f46b7de9df67e67eb8deaaaf76089cfd6c569 - dce_ast: c2305646bd487e9473a7ec30dd196664cdc411807a251383e33a425ed3bf9a03 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 6c097a0ef6a980635b5a4139b24ec553bd40dfdbdce709a6505eb15383f136c1 + unrolled_ast: 6c097a0ef6a980635b5a4139b24ec553bd40dfdbdce709a6505eb15383f136c1 + ssa_ast: c4732e42d6266d914c7f9a47dc7ee0355cca92f3bb9db7bdca482c586fa416e8 + flattened_ast: 86e70ce5fb51c3c47440f000730e58511249cf8ff4f7f7a86c0922b13f3165d8 + destructured_ast: 17024e05b18614ebe917ceca35e7ad2ee17892e53cbcce23008193b505cfcf70 + inlined_ast: 17024e05b18614ebe917ceca35e7ad2ee17892e53cbcce23008193b505cfcf70 + dce_ast: 48745bc5077409dcc409ea47fa8fa67c0f4d225deca9d097fcc397effd7d59ec bytecode: 722e9ba9eb7870003003efbee47f12319ccd9a2e873ccd6a165dc945dd5fee56 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u32.out index 39c5abc469..0f9dd46abd 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: b54a983846284e524ed8eef15530706cda158d9d60a9994d8d5fa1562feb2da0 - unrolled_ast: b54a983846284e524ed8eef15530706cda158d9d60a9994d8d5fa1562feb2da0 - ssa_ast: 2c71768fcd4fb3d50cc8558c9e5c1d321ddd21496c9befd3b8dfe7721aa67558 - flattened_ast: 91999f228166934471cd6dec95a9996cb946475079888917b8bd6f3dd14fc9f5 - destructured_ast: 400f65545b88bf35e43e613f3cc44a7281d3ffe00d6a7b012dda99d7eb573d07 - inlined_ast: 400f65545b88bf35e43e613f3cc44a7281d3ffe00d6a7b012dda99d7eb573d07 - dce_ast: f726f2393c2f54fc7c4e1eb8f54bb8822cfd29cddd61d66ccc3388695b6da0b7 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 32b0e771edbff86f39bd035f06859535adfc8357b713510d0fcf7d29edff78de + unrolled_ast: 32b0e771edbff86f39bd035f06859535adfc8357b713510d0fcf7d29edff78de + ssa_ast: 3a385d9e9e5c3d48310f1ad004a3ccfc6f10e6e8db45938b83c9433eaecf1c25 + flattened_ast: 7dfe029fa2b5b5bd0e19d171565ef148958c3181fd9040619fc8ed4bc363282f + destructured_ast: 09bf49bee79420051e35289e1d5ea5dc1fb633e15ba80b176fe35f67f6d93132 + inlined_ast: 09bf49bee79420051e35289e1d5ea5dc1fb633e15ba80b176fe35f67f6d93132 + dce_ast: 55697b0a8b671915907ea2f6298146bd0ebbc9c5417529dcce6622812c22ac6a bytecode: 5b86f91ea85b5afdbd241b7623cbecedcb816272ca8b7250e2536955dfc55fed errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u64.out index 153ea6b317..d61436d42f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: 36e87c9db0ceadef0b977a952a47218c6ce097fce387439ef24591f4e2ef7294 - unrolled_ast: 36e87c9db0ceadef0b977a952a47218c6ce097fce387439ef24591f4e2ef7294 - ssa_ast: b69cba489607c020befd53b4edc8eedff17d46f6290a74dae37756ec7cbd23f1 - flattened_ast: 0113a664791f9526287d3226cb21b949ff283f956a023e3609cbfc398e647dc9 - destructured_ast: 8363844fb507b947b0ff9ab6096e2b545c841b9bf0ea09f15b249c3a8a0a1c83 - inlined_ast: 8363844fb507b947b0ff9ab6096e2b545c841b9bf0ea09f15b249c3a8a0a1c83 - dce_ast: 829b20b3e859c9164826a9a994a6e8a36e70d667081be811c361e08b44db6654 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: e3c21f760a449a946bee6df68d00b77bd9d0678672d573c7ba3a980d08619a31 + unrolled_ast: e3c21f760a449a946bee6df68d00b77bd9d0678672d573c7ba3a980d08619a31 + ssa_ast: 92bb98328834892f1e80cdbb6433b3975583a9ebd61c800999f97f779c03c180 + flattened_ast: 5e4c9005be13fc29a3d29127cd6714d498e23f480e1b6c6d03e37caf10c4078c + destructured_ast: 10d0c9b467f75511433769e9b502704c58c4ba8491897c47410cb8ef4c741144 + inlined_ast: 10d0c9b467f75511433769e9b502704c58c4ba8491897c47410cb8ef4c741144 + dce_ast: 82215136b06ea4ef77d163378f1d176a24501125aa487f3e1871965b284199be bytecode: 5e555625818b5c9c27ea28fd0679e853c7ba41d422b0b1fe4ebf1888cc810898 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u8.out index f300c6d298..995af93771 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp256/bhp256_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: 1a1eb4645a3a6ab0c27068d0dfb1b23f651c2ac1e7c183c35635cd9bca693efd - unrolled_ast: 1a1eb4645a3a6ab0c27068d0dfb1b23f651c2ac1e7c183c35635cd9bca693efd - ssa_ast: 3932fe1f319dc95ab74ba2db956adf52a3306465f1591b4f42fb405a99cbcfe7 - flattened_ast: 9a514cc2ed908e4a78d3a4b62fc2005669ff17e45e4d161b3c0611d1a052e397 - destructured_ast: 8c9af2c5b35e43ee6ce81acd3d458de8cd89203ca3b1730f7fdef65667e23621 - inlined_ast: 8c9af2c5b35e43ee6ce81acd3d458de8cd89203ca3b1730f7fdef65667e23621 - dce_ast: 80dd742ea0a7a43f7c46e58311fce827a5206b2ec4a0182989bab9f73f5ef058 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 544aaa62d2fc3fa2ee6d41291875d9f331342f634762e1962d0d4c8027a0a82e + unrolled_ast: 544aaa62d2fc3fa2ee6d41291875d9f331342f634762e1962d0d4c8027a0a82e + ssa_ast: d82699012d45b06afd567cb3f514e083408cc287ab115a385c722fe7c50f8dde + flattened_ast: 35c0899cf3fd2e2c861b2313de078981319ffa4d63a7c6243fb259909156b8fe + destructured_ast: 12259b46c072d0285dfbd81a305264a48a2ce154f228103fb6b351f9e843a32b + inlined_ast: 12259b46c072d0285dfbd81a305264a48a2ce154f228103fb6b351f9e843a32b + dce_ast: 6ea3febbb89a3379a760c27b9de1a97fde5d1607f6bd95576f653245f41686d8 bytecode: ac0813db87d76ebf0f8b9716b4694dd6dcd4a833bdc7b13fc297363f835a723b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i128.out index c24dbc8bb4..e786913b9b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 46cad86cd61d3e2a156d7db35aa573faebbab7febd055be5811e6110c2ee332b - unrolled_ast: 46cad86cd61d3e2a156d7db35aa573faebbab7febd055be5811e6110c2ee332b - ssa_ast: 787a1727f847a24f84935f76dff49da30116602c1123a9da25edf8dfa8500dd8 - flattened_ast: 07a2b250b188daa4f675537cd7dc7520494092fadccb4593613eca44f69c1e4c - destructured_ast: d3dc85e115068251ded7d670091544990f2be16699d9a6bad848de7f2eaeb6e6 - inlined_ast: d3dc85e115068251ded7d670091544990f2be16699d9a6bad848de7f2eaeb6e6 - dce_ast: 5f63e53114e74875f3e83e8461f2bf73e9221c02e6805432386fdb98aaaca35d + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 5f4463371ed2411a7c4d00bdf016e41e66d54cace5a9b905f7adfca195162f94 + unrolled_ast: 5f4463371ed2411a7c4d00bdf016e41e66d54cace5a9b905f7adfca195162f94 + ssa_ast: 72e0cfc1ac9da190d9abe0e06329079c5b76e5e3ad7911d856f50d11ce5495e7 + flattened_ast: 038ff836409f94e83d442c084bfd660dd038452f4b3f6d45cafa3f74e444a2e6 + destructured_ast: c9994cc2d1e3cc75ee0906b44ee5b6eac8fda1a9ffdd7de5b467ce3b8f10c356 + inlined_ast: c9994cc2d1e3cc75ee0906b44ee5b6eac8fda1a9ffdd7de5b467ce3b8f10c356 + dce_ast: af84eecd15a9e9ff8fbaba874118365698c43793e8ea4e7ba90128b1c3d77945 bytecode: cda5a5c278c39eba47e30601b6d8ae039a1e9a67b514f7da166b26e47d96ad38 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i16.out index 18dfc6eb7f..69f1b37be0 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: bfffed5f7bfdf8d256f4015e8ce57239c9a20762c0b6d9ab4b334d2478975c3e - unrolled_ast: bfffed5f7bfdf8d256f4015e8ce57239c9a20762c0b6d9ab4b334d2478975c3e - ssa_ast: 7a6f7097cb28135b05441aad6bc5db6bc0a6e62d42981b6c70e78b934248a8e6 - flattened_ast: fd5f8ac9cebb1bc7c9302c102736780ae21633079708e09dfe9543217ce51ca2 - destructured_ast: 593249c5c5a7bf07facb49bbfcea43fdc40293c0569e08d3ead2183fcf15830b - inlined_ast: 593249c5c5a7bf07facb49bbfcea43fdc40293c0569e08d3ead2183fcf15830b - dce_ast: 2fd8a562bd167f17df9e5a227d6432e9854fe964142df448540ef5cc714ee80e + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: 15a51a8ee164ad9c57def986fa9362a34355fafb95a3354f80ff90e5d0bb26ad + unrolled_ast: 15a51a8ee164ad9c57def986fa9362a34355fafb95a3354f80ff90e5d0bb26ad + ssa_ast: 6e7a99987d0337824c503a36422878956916c280fa6f6ce95c50b5a71eeed181 + flattened_ast: dec09ccd2fd7b0428ab8dd2c157fa7b7533a7a4f06dd635d5e1ad5be9875943f + destructured_ast: c7c8c6b4bdb6a6f5543920301e1c55cc04ee4233a7ffe991ac901ef02cab1a13 + inlined_ast: c7c8c6b4bdb6a6f5543920301e1c55cc04ee4233a7ffe991ac901ef02cab1a13 + dce_ast: 43dc51092a439461beb8593d7ccc4e2da7126de5ba02a937706a9fe7a85a1521 bytecode: 772c3a89be9b29a160cbddfae2d0bd3edd4bef0291f89e4e6049af2139c6239e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i32.out index a4917e3cd1..ac39ead89e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: b06574aa57f301b14b5abb7e34c1608a0f868b0771c3eabe47a62027df495a2c - unrolled_ast: b06574aa57f301b14b5abb7e34c1608a0f868b0771c3eabe47a62027df495a2c - ssa_ast: 1bb7d39131f5435be358b3503adc6dae3a37bd35c4b1db98786b11e231c5bc53 - flattened_ast: 86fb5b0538db74843d6d39289c4a1482cb12314667f0a3f0788f513d435e2ec6 - destructured_ast: 8971fe25654735d94cbccb867326c12f1dee1357aa39f0b0a80d3dc0430db209 - inlined_ast: 8971fe25654735d94cbccb867326c12f1dee1357aa39f0b0a80d3dc0430db209 - dce_ast: 86351e144b41844ff69772320b742e8a8bcd72276d1fd78e277272ed73efd557 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: f89456ddd9daa8632f5ae765dcce3d1ef0518b8bb7af0940d9d268bd75b2823c + unrolled_ast: f89456ddd9daa8632f5ae765dcce3d1ef0518b8bb7af0940d9d268bd75b2823c + ssa_ast: abbeafeca383cde8c1c4506af7a2382b4090bc285b204331374a92f028786911 + flattened_ast: 07f6344e31741a425b8473563d615da179dc5733402657ce92a44eeaff0383b2 + destructured_ast: 990e9bca2e0673fded5831d89641194b3e8199f3b2330fa46f3899b29750a23e + inlined_ast: 990e9bca2e0673fded5831d89641194b3e8199f3b2330fa46f3899b29750a23e + dce_ast: 0b4ca69a9d17900cd4f29e22e293f68676984dc3758c7593f5d3ba0ccfbd61bb bytecode: 63efcc50150da6e754319ed894fd92dcc5adc715f39da5b2425711c347836b60 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i64.out index c1a8d1bb8e..aebc63451c 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 4912531b5b4fb29df1760a55f2ca58f736c2ca1aaf211f5226fce06405c3454b - unrolled_ast: 4912531b5b4fb29df1760a55f2ca58f736c2ca1aaf211f5226fce06405c3454b - ssa_ast: 065c1e513bf53a9b0232419bc113c1d6ca0bd1814497ce0c64b75874748b9fba - flattened_ast: 6989d79b5887e52350e12943bafef089b09dbc1da56ea30f145b1c8e170c50ab - destructured_ast: a840511d0d7280b629d25fb4fe945cb5a31491b497c99f2046b58bd1effce2da - inlined_ast: a840511d0d7280b629d25fb4fe945cb5a31491b497c99f2046b58bd1effce2da - dce_ast: 8145b2f04edc25fee6ca488be9ba8cfaff64ed6facab8c9b3d71f2a06bbffb39 + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 95a2bfede1135fbc180828f82425e23755d8a394d0af2d4cbd33524aa1fcb007 + unrolled_ast: 95a2bfede1135fbc180828f82425e23755d8a394d0af2d4cbd33524aa1fcb007 + ssa_ast: 78f2dfd7147d2579de1c18da4bd0bc14925d42c9c05eb9b59463290af276333d + flattened_ast: aed57d16f2c9922a60d021b2c13a6a111a491d1302a39d857c6e983ce619fd4c + destructured_ast: cacf5644a109d9e6792aa13c3bdd3d2667b2089fc889d7b201dc952472d7b7f7 + inlined_ast: cacf5644a109d9e6792aa13c3bdd3d2667b2089fc889d7b201dc952472d7b7f7 + dce_ast: 3fd130206a304e12f8afca3fb5fb60352f2c0bd667d766b6dad239c861ed6960 bytecode: b565adbdb2ae4047f19a09589010a3dce773e907a3dd3e4b873a4a3336c68af8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i8.out index 89adef6479..8f4d4bc112 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: b8b3d988c2ecb1010c2137affab0a8978d6303c5ee840b692bc8555deb87c363 - unrolled_ast: b8b3d988c2ecb1010c2137affab0a8978d6303c5ee840b692bc8555deb87c363 - ssa_ast: cdc860ef8b6fcc1305999a4e59fa25e9a3c2b8f837610fc52269a3faa9db19ca - flattened_ast: 61c58fc550b0599a376fe3a07ecbbd647eef3eb6c8f5ba6b01b18fd4f8bea208 - destructured_ast: e3a19abb7365fe9a95c0c8266da35a0ba6ef727c7b3b2034b304d5fa379c1783 - inlined_ast: e3a19abb7365fe9a95c0c8266da35a0ba6ef727c7b3b2034b304d5fa379c1783 - dce_ast: ab424abddd134a99c482f32b96bab423e42d36091014fe4acda97f185d5d0319 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 694a52110e6da25e2f913660cb7895414a75ae97a9111e4556c4b11d1c72e81b + unrolled_ast: 694a52110e6da25e2f913660cb7895414a75ae97a9111e4556c4b11d1c72e81b + ssa_ast: 5a9fdafcc13f0b292f09bed494d24c7e6fae43209ca566cc9b6ae156f847e52c + flattened_ast: 0524f98b8a4e39d91ad87779a65353f239d44f70c1fc3f8ee979c5bbf7e1be33 + destructured_ast: 0205e51b54abfac82107b4eeb11c8b56e14d0dafb5f9f0ea64177f1ce7e70177 + inlined_ast: 0205e51b54abfac82107b4eeb11c8b56e14d0dafb5f9f0ea64177f1ce7e70177 + dce_ast: 83d25fc9ab6c7c6a4faf670a772ebb5fddcbd393c7608c8852590cea1d22b17b bytecode: 6bb1a87b470b0a3922ff01569b69b3eb7775546b86e8ac303cb80f03ab17692d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u128.out index 4c55f22282..08fc5e2c8f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 4211a0d8fd939bd5f67f61243fc57c93a988e10aa91ad702520b5b2abc314ea4 - unrolled_ast: 4211a0d8fd939bd5f67f61243fc57c93a988e10aa91ad702520b5b2abc314ea4 - ssa_ast: 32dee3a0688aca1378a32019ee09ffd59f3bc5afc218fc06dd0b1a9f1ea123e7 - flattened_ast: 3b546b8942e6894b52890f4f59b2953fb0403097ecfa590b259a15521b42c55e - destructured_ast: bd024db7bbaeadbf01c6bac2bc97d7e7f58a1f4b3a7999a618479f878679cb05 - inlined_ast: bd024db7bbaeadbf01c6bac2bc97d7e7f58a1f4b3a7999a618479f878679cb05 - dce_ast: bde77cf382512ccbdcb8fb694b6be6896811e470e3c9e653d413e5be90835407 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: dcde799de21c67810311861e2e5f07c3f87583b3f5d62e0c0da132e941283579 + unrolled_ast: dcde799de21c67810311861e2e5f07c3f87583b3f5d62e0c0da132e941283579 + ssa_ast: 34c1e9a9851ba745ae5e146eed895d315dff1ae91896903e938c0b6f649f575f + flattened_ast: 3899cadd54cebfe20932bc3d5d5ff1053b955656db4b963cf114ed0dedafa370 + destructured_ast: 510a6bf0c8cfdcd0e2a6a27997a508563338e5d663ecb389b6c158a2d3f1ff61 + inlined_ast: 510a6bf0c8cfdcd0e2a6a27997a508563338e5d663ecb389b6c158a2d3f1ff61 + dce_ast: 226c9b27c6773c12837f4bb90403a8c086c9537e148e8f47b969dd9d1cdec5df bytecode: c8a24c75613249b3bca85b8cf50a450ffab5e3eced027b46d4ecb07fc94938fc errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u16.out index 0e7fe212e4..181bf3ec8d 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 6c986e5f3b7e17612f6f0dfa3a0f95d0aa59589382c74727400252bab53f5fd2 - unrolled_ast: 6c986e5f3b7e17612f6f0dfa3a0f95d0aa59589382c74727400252bab53f5fd2 - ssa_ast: 02e86af1db9fce677f9ab5653c04a254ee58199bc55cb5865ed445d02a10149d - flattened_ast: 1d007a6ade8ccf697527423d10383a19555077f2c0bb31779de32847c25c61ab - destructured_ast: 79f599e7697be78db4bf8c5d9f806027ff15043aeecc8ccb99f81fe12c90e5f3 - inlined_ast: 79f599e7697be78db4bf8c5d9f806027ff15043aeecc8ccb99f81fe12c90e5f3 - dce_ast: 9590af19b950c048123d8a9a3a2bfc1612504cad918ab60c6850e78724497d67 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 9659f066dafbe316d7c9f023192ae6a0ee1000d55b1a0dd31b519e0b3e99991c + unrolled_ast: 9659f066dafbe316d7c9f023192ae6a0ee1000d55b1a0dd31b519e0b3e99991c + ssa_ast: d16ccf5524ccba08fc2b0624bd2d1614c4dcd6520830fac7e7efd203b8a2d655 + flattened_ast: f97c04eab0bb6c1907df4613deaf9337bab67b1cf88f480d383a01dfae030e74 + destructured_ast: efb3dca892b3fe8bd6208ab83337b2aaee858b726d0d0e379bc887a8ca165fda + inlined_ast: efb3dca892b3fe8bd6208ab83337b2aaee858b726d0d0e379bc887a8ca165fda + dce_ast: 46b44d483ec27aee5bbb040e25679e55eacd2f8c2fa423bccf0ab12b90af2af1 bytecode: 4e7988f49b47d6e987d5931501b23e217ac5295f2fb3656bebb8617153c13b55 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u32.out index 02568362b9..bc6ed36c32 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: f98f70a886494a54ffd604a01107dc7133dd57d1e4f5719caeab23e51cd87225 - unrolled_ast: f98f70a886494a54ffd604a01107dc7133dd57d1e4f5719caeab23e51cd87225 - ssa_ast: 40ffbd3b7bc0e44aa8dab98270b03a92feb247ccb906bda7a906b08a52324f91 - flattened_ast: c1497d72addfb2971a6be6e9ee728c24f15baaa86a62a646dbca1ff9963ce8b1 - destructured_ast: 63a990c0c5cf7d70bddd9620ed6a12ce71b1113c4d9a142a4df4fe42260f9439 - inlined_ast: 63a990c0c5cf7d70bddd9620ed6a12ce71b1113c4d9a142a4df4fe42260f9439 - dce_ast: e875c55dea1a13fbe2537e80c52f990cb84902812b236dedec38d528ba55db0e + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 9bb717bbb182e273bc2090955e8f8264cd6f9aa2d6f16b38f10099fe1706bc0d + unrolled_ast: 9bb717bbb182e273bc2090955e8f8264cd6f9aa2d6f16b38f10099fe1706bc0d + ssa_ast: 0dabe39e154b4e57362d033c9816acbac59d47808a1d85e589dde4ff0dcbe0fe + flattened_ast: 808c2053c59e7d183aa033efb5728c75f6e668dc2d7c9c4ffc80bfa5c336507b + destructured_ast: 03774be93476115618592fe1d7989fa090c863ae010299751f5ee1ff4e5e4530 + inlined_ast: 03774be93476115618592fe1d7989fa090c863ae010299751f5ee1ff4e5e4530 + dce_ast: e7a66b25a831fd4e8936f02ad82ca5945f2f29a2426b7bf18954bd70a0f1137f bytecode: 96dddca27dc2e6feaa13b9f53fe1bb2180299e90860ed8c3be4f92687949f30f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u64.out index b970cdd309..bc15fe01d3 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: e1d9510f110b7b1788939a64211547535f7ff33096900809132ff8517d15d355 - unrolled_ast: e1d9510f110b7b1788939a64211547535f7ff33096900809132ff8517d15d355 - ssa_ast: affce61cee4dd1e5d63c4d745e4af074fc7ff29a6fa42e2a31f5ee256e66efba - flattened_ast: 6153a47bc55e485c61e62a1d6f0e639de24d822321d52ee4dbf59ceec3351807 - destructured_ast: 151841eda498b3fb6b551a64b2428ce28f709337e0ab0d2b61585815feb63f45 - inlined_ast: 151841eda498b3fb6b551a64b2428ce28f709337e0ab0d2b61585815feb63f45 - dce_ast: d51e1453c50951fea39ca17b72162abd8754a2fccca38e3a1e652ad4ef0af6cf + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: 575a38d4650b807917df4f8260ad5040216b65fa7b75b4a20e482ca2e0222185 + unrolled_ast: 575a38d4650b807917df4f8260ad5040216b65fa7b75b4a20e482ca2e0222185 + ssa_ast: d704f18f97d965d7356406c5a4e5291c7656c896d29c74a902f60dc9d825068d + flattened_ast: c1e8f7b677028c755a2334019a6c19b150377587615ff749d9814d342fd29755 + destructured_ast: ddd16c1e991f9a334c68397078ca5cd6a4b319bddee02edfeb3d2f5467541705 + inlined_ast: ddd16c1e991f9a334c68397078ca5cd6a4b319bddee02edfeb3d2f5467541705 + dce_ast: c685468808bdb378ecf4ba8ee354b79f0e76296f15c58b0bc2a4d34a1e0af2f6 bytecode: 3ab4dfa32ff8135e1878b8fda9bc1d0688c959e520d9bcac13f7128048ddca70 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u8.out index e55f03b98e..5507100fff 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp512/bhp512_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: c412246c362269179086aeccb6328352e9d7d523c0b6c9f0a96d60d53e8bd5cf - unrolled_ast: c412246c362269179086aeccb6328352e9d7d523c0b6c9f0a96d60d53e8bd5cf - ssa_ast: e639e16a13ee602ff10d645f6fe1f6aa414d08571e9b3bbcd8bbc817a3513780 - flattened_ast: 42e7ccbf1b31f0a0afa6fb739d0978372211b85fd60b7014c82732562eb93909 - destructured_ast: fd7203c1667df2ad1a5c9640d24b9aef9cd3eba9cf1d623264ae9435b9bb8779 - inlined_ast: fd7203c1667df2ad1a5c9640d24b9aef9cd3eba9cf1d623264ae9435b9bb8779 - dce_ast: 6369e58ea4ff8e05200fbb3793fff8350bdb455efebb87fe399ae8ec5df434a7 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 43f6e5cc25ae568f873ab32e1015a1b8d08bcae77664d9aa19fab4e121f9e22f + unrolled_ast: 43f6e5cc25ae568f873ab32e1015a1b8d08bcae77664d9aa19fab4e121f9e22f + ssa_ast: 8446e8cea6cd53ec9a43605f63b6226bb63c343f7194cc0dc7f023ead6dba77d + flattened_ast: 079abe26aae23c849418beab6734357f4a53522483a17c9103ed64756e46d535 + destructured_ast: 279ee18d01b7309d6694700deaf8830325ccf720bb0d4ca4bdf5388d0dd11efc + inlined_ast: 279ee18d01b7309d6694700deaf8830325ccf720bb0d4ca4bdf5388d0dd11efc + dce_ast: 755082a891fdd5374100e6e97d64d8cffbfc0e4d7802b1820d519b56cdc23319 bytecode: ce3656eda78b090739dad77c6fbcf5e3cf43a1327a367b01504913a37ca7ee3c errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i128.out index ae62a4af50..d8d4b8d495 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 511f885dc7653ae86ee84aaf813ad02c23478e929b91b0f3b699f67c324eafde - unrolled_ast: 511f885dc7653ae86ee84aaf813ad02c23478e929b91b0f3b699f67c324eafde - ssa_ast: c2f73b552e81c652727dcda7079bcdca08610ad2a870b5fb735c3d0cd5f45afe - flattened_ast: 431ab94d43f2ad0a5fee8187d737292b9aa46012fc12ef36944a416131c54d9b - destructured_ast: f415c45af3a33c8047e2d2d0612ad57283d839731358b47294051c0c62fe0351 - inlined_ast: f415c45af3a33c8047e2d2d0612ad57283d839731358b47294051c0c62fe0351 - dce_ast: 0385c491676a3df5a1c4968f0ad125786de9323b1160d40749b7034c8a0a7ecd + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 8e0ab4cc7f46a13ba2e912af19bf823425e7c4165580b0b3ee62aaf066753f1f + unrolled_ast: 8e0ab4cc7f46a13ba2e912af19bf823425e7c4165580b0b3ee62aaf066753f1f + ssa_ast: d84a6a8d25dd1dab205ccb0d783788919b60509d47a00a5eaa7bdd603e90d26c + flattened_ast: 3f9c43e719346b1f07d94e8826bb065ff69105ba7006d372a6e66df64636bc71 + destructured_ast: 10e8240e4ba1ac9f7beccffe8cfe952ae82d7cd8ed129585ab06a12428ef7024 + inlined_ast: 10e8240e4ba1ac9f7beccffe8cfe952ae82d7cd8ed129585ab06a12428ef7024 + dce_ast: 5c4b50232279b9cee74bd59907fd572b4a0ac33bc401876e3257395c94ae8c8f bytecode: f9f56b97798b2dca8b9631e0e5d25ed37780f634a407e53c88cded45c80c07eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i16.out index ca80901603..f37a85aa7f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 86dec50b47e168a58cbfa957c61332fb9c3b0f2688f81cad1fbc0a88f3164cb7 - unrolled_ast: 86dec50b47e168a58cbfa957c61332fb9c3b0f2688f81cad1fbc0a88f3164cb7 - ssa_ast: 35efdb4cf90fe59f7438e0bb8bd2053d248018abeb0f26b5adab28925cec9836 - flattened_ast: ba5b47e4eb27595681a7d1859bd464954be220ec804381bb7cdbbaabccc7a76c - destructured_ast: 77272ef1a06a5c463449b85c882507544617d9f4f0aa03f9edc31f6e99de1ef3 - inlined_ast: 77272ef1a06a5c463449b85c882507544617d9f4f0aa03f9edc31f6e99de1ef3 - dce_ast: 84ff99d40d81533dc59949cccc4f9301a3bddd9e3a2f4c76c300a7678ecfe6e1 + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: b38d2447dd6a6159a74075df8f7974195ae5c0ce59d03ea309c0ef566055bb10 + unrolled_ast: b38d2447dd6a6159a74075df8f7974195ae5c0ce59d03ea309c0ef566055bb10 + ssa_ast: fa378b35a2e4863684918868e8361931f2ee9a5e6da9b1183d4af55acec9e00b + flattened_ast: ae02751802b1222cb9c48a32d6c74a23c241b3ad0cdd32987d4f0ccdd289eae4 + destructured_ast: 01f24a093f47c487e19e961179ba6d24a35dc797b0315b761026cbb12fbc996c + inlined_ast: 01f24a093f47c487e19e961179ba6d24a35dc797b0315b761026cbb12fbc996c + dce_ast: b3b824c8d41756ce887dd69e2742000ef476300c5da270f724464fc56ad3335f bytecode: 088c87d540f9f654d25de5dfcdb4b6c796c1840e2454691523b7e2f18f4a9a60 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i32.out index 5b9f2656b0..9040f827ec 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: c9835bde9e6f8b69641774fe0162d88c16df92a86c1c19cc68f932d20bf30f40 - unrolled_ast: c9835bde9e6f8b69641774fe0162d88c16df92a86c1c19cc68f932d20bf30f40 - ssa_ast: 45788c76bc818b8a7045d95c684d51066b347f228d181d8e3aeb7598724c20cd - flattened_ast: 0a1624602a543ee5a470de1a183f9d0cc465356472ef3e79a0e277cd17588441 - destructured_ast: 0e49eb3632629b933ffa8f89ffd993d7c576e734308fd7337a3c1c1039d45d65 - inlined_ast: 0e49eb3632629b933ffa8f89ffd993d7c576e734308fd7337a3c1c1039d45d65 - dce_ast: 761fe0f4ff831ed20a38360f3ce90fdd43bb4c5a52daf415e7f8739e01f1c5d3 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 436009ae538d6d52f1cf083cd73393c2e780687a0e13eba7cdc1a2527259b0fc + unrolled_ast: 436009ae538d6d52f1cf083cd73393c2e780687a0e13eba7cdc1a2527259b0fc + ssa_ast: c8b644a45163e732879690bcc80845e70efdd8616da3ce9395d36e744ca9262c + flattened_ast: 93623a797ba80937fab6833e8c514c3181889d56bf919a65ea570bf204d5528d + destructured_ast: 630782f9274f41aaf06094b075910ba6c2391dd1e08748fb7621729256a97dec + inlined_ast: 630782f9274f41aaf06094b075910ba6c2391dd1e08748fb7621729256a97dec + dce_ast: ac2ac0ae4264a160554de9f1f34af9943ddda5e3e0da5d387a8c0404713bedbb bytecode: ad4af37b670727cb59618e798445bceef3725386a61cdcb7e0f829c3cb895a8e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i64.out index 942ef4edf4..9d63b93a8f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 3ba07cd954434118cd2e58407b71f5eeab5ae5e6deb1cf10ee35a01dc6b19de0 - unrolled_ast: 3ba07cd954434118cd2e58407b71f5eeab5ae5e6deb1cf10ee35a01dc6b19de0 - ssa_ast: 3d9727205868099f0ac18828bcdc9364a3a4a8ae13a9e2ed423b76fc6f77a361 - flattened_ast: feb5e4f927083c681651ec5c73f88938b5493cd49855499d218816232adcf3cf - destructured_ast: 22f2b37677b654f01a25ec40214d6a2c0f7d3dc4a875a00eb9d6082293ce18ac - inlined_ast: 22f2b37677b654f01a25ec40214d6a2c0f7d3dc4a875a00eb9d6082293ce18ac - dce_ast: 3054214f1cf4407f4db0bf833db941444d4d93262b0f2ed5d93d0862b9348b4e + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 4fdab6b840c4a0c01a44339a3dbfc477efd5e5d6b30326f69cbe9c16edb4b8d8 + unrolled_ast: 4fdab6b840c4a0c01a44339a3dbfc477efd5e5d6b30326f69cbe9c16edb4b8d8 + ssa_ast: 11d983ca3906fea92f76ac96f229fb20a36584852d3629dbb71c76ca4d683777 + flattened_ast: 5566f9edff83ea8252c4b4bef7d64a077e97f2221e89ff15f22835a5fede753c + destructured_ast: b1833866bb597cfec732d045f29324a758c2a19903c655f11e643b8d6895dae3 + inlined_ast: b1833866bb597cfec732d045f29324a758c2a19903c655f11e643b8d6895dae3 + dce_ast: 8bcd181eea4d2557438707940723f2b6d505046b4d358418377bca9cc504980c bytecode: 9da4e5b0bf8b86b933224f69aa4751108e1eceb8c8b0b79fb31e3b8403fab161 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i8.out index dd616f679c..fa1497406a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: 4d3c060930f5909a5f45c3c3132c7becec9f9d3cccf8950ae7f8a0c66fefc1df - unrolled_ast: 4d3c060930f5909a5f45c3c3132c7becec9f9d3cccf8950ae7f8a0c66fefc1df - ssa_ast: 17991775cf36a089d51209af612f5c792e65fb9eca552a8c95410a02089268d9 - flattened_ast: 425c378429eeaa261dff82d6ea8e7786100a222263d971439097846dddf2ca43 - destructured_ast: a60a9f84ce89a4ac626a99adb5b14be21b5c8f3ee485f2469087378c33c5f35e - inlined_ast: a60a9f84ce89a4ac626a99adb5b14be21b5c8f3ee485f2469087378c33c5f35e - dce_ast: 52494d3da1f9080ec92dbaf343c6d98bba8c6a82a10c271f41af899c265b359a + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 9e72d8cbbaf84517a8fb5347558d07e8626fe4234ee1fb86e70a9f3cf11170ce + unrolled_ast: 9e72d8cbbaf84517a8fb5347558d07e8626fe4234ee1fb86e70a9f3cf11170ce + ssa_ast: 84f3731d8065781c1eed806f0be963d52d0243052ff5080bb8cedac33c7b7622 + flattened_ast: 562b326f03b21b493fde794dbc79c23e23a7a1267d550c7a4b0e3d0c05ca420e + destructured_ast: bb6f1710f2732da62a7768f86443c563f670bfdd6b759cb612f98d57816122bc + inlined_ast: bb6f1710f2732da62a7768f86443c563f670bfdd6b759cb612f98d57816122bc + dce_ast: 4d20f5321bfd290196b74149cbffa1ace7ec7fb6710c9702249aba0c1fd1cac4 bytecode: b84d6d5eae32aa8692a6933af7717cb987b65921565da007af31391f40f70fd8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u128.out index 98d97c1f35..7a550f9569 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: d54644b29d000edda658ff7bd0145f71e35f3f6f26be7137f3d9ee94d0e4282b - unrolled_ast: d54644b29d000edda658ff7bd0145f71e35f3f6f26be7137f3d9ee94d0e4282b - ssa_ast: e06517b8d35a6613f419043cc33428e967d12d346ec1809f7eae586f6a381d77 - flattened_ast: 296570622258eb42c2d62443482b245e57988762c4172fa11158a29e06f3dbb7 - destructured_ast: 31231658353aee25d0af774f3f9309a421ada9259ebc7fd8654e67c842cd251f - inlined_ast: 31231658353aee25d0af774f3f9309a421ada9259ebc7fd8654e67c842cd251f - dce_ast: 52cc20ae8ccea5a8f25f61eae535d6c22544ff71d8f7f6650f5b7a7ab2d46430 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 7819e277c26c1ec5daa817af950208835db45975985f20686b43d29413a449de + unrolled_ast: 7819e277c26c1ec5daa817af950208835db45975985f20686b43d29413a449de + ssa_ast: 7117c4b546fb146b65ab3593bd0416c52455a242641f5b23577893bb59cb520e + flattened_ast: 1fbec79081bf1fa7dba5381f1fdf730466737ddfb99443c56b2beb0885576dd5 + destructured_ast: dd6271d0ce78a6b300d3ee39850ed53a05a122504e13bafba1c2ecc976011ed8 + inlined_ast: dd6271d0ce78a6b300d3ee39850ed53a05a122504e13bafba1c2ecc976011ed8 + dce_ast: ffe1df6572b5a1ae48553c60101bb2f2aeda0be5b38854a1898eba00665f443d bytecode: 201d3f7e82902483df6d8aa7457d8d8f595c03ce4ea0e2e7fb355eb3af50e1b8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u16.out index 40a5a6297a..2881c3caa2 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 113c316efa3bba17ed9e1db943bab4fafe82118ef8364f188f039300da26ad97 - unrolled_ast: 113c316efa3bba17ed9e1db943bab4fafe82118ef8364f188f039300da26ad97 - ssa_ast: bf075137a138869b1de13e3e5b91f9bf36065ab531f36adece1a6661667a0972 - flattened_ast: f6bcdaa4bb5fa4df22294e2bd809fefeb04cd8d3f101638010ff6410708e9452 - destructured_ast: 2a010c1fcabecded56e374e9c6651a23a751774f600147cb92149254d4b1a453 - inlined_ast: 2a010c1fcabecded56e374e9c6651a23a751774f600147cb92149254d4b1a453 - dce_ast: 60353f288d874bc1f2cd11697675e907f8013dc80907a5a62cec9877e1353e19 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 4ce9ea2d9d310a0fce41ee9a5b293fcff672ef4017ff4a06b475dd8a201fb035 + unrolled_ast: 4ce9ea2d9d310a0fce41ee9a5b293fcff672ef4017ff4a06b475dd8a201fb035 + ssa_ast: 9c49e87cf4798b04dac6f9e33a8d938b8dc5d43730306d1c06ea7b25b7bcce4c + flattened_ast: db350af4bbb4ddc5da2bb40d33ecb00bcdc9e0d96b21a03266b38ad689a95dbc + destructured_ast: c1ef1ef9e8c3f6e7d40f1e403036fd1df2b72738cc25111b6e38f9c18352d23a + inlined_ast: c1ef1ef9e8c3f6e7d40f1e403036fd1df2b72738cc25111b6e38f9c18352d23a + dce_ast: 439afc94d85c6c44cb2d335ba19838e2e371d47cbd8bbaf95ffed8bbb4712553 bytecode: 15ee84b84f4b413e4c96708f16429984ec205133436db20c2b2a709a136029e6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u32.out index 93980fec9c..2410de57bc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: addfbd86021208f4c7face762924064caa4595f5d135c50de0386a04b4e10a8f - unrolled_ast: addfbd86021208f4c7face762924064caa4595f5d135c50de0386a04b4e10a8f - ssa_ast: 26243cf30daa69f910d70ea47a29c5fcd680f170bf2c6eb6ec71bc833d4c97cf - flattened_ast: a6b3f79cf8f0458fa323ef6acf9e93c15e7496d864df6e96966b5104d6eb48e6 - destructured_ast: 77c2d8f32131e37d082df5726aafc63c00df2e3b82b28600ecc130d141166d52 - inlined_ast: 77c2d8f32131e37d082df5726aafc63c00df2e3b82b28600ecc130d141166d52 - dce_ast: c6b7eae0ba0a30ebe8252b313b0e7e65da75785b339fe34550c8edcbc8ec54f4 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 45577658ca0cb62a38b0406ffa7e69b8ce9b22f0b6d1f98df8177958f4c1cc17 + unrolled_ast: 45577658ca0cb62a38b0406ffa7e69b8ce9b22f0b6d1f98df8177958f4c1cc17 + ssa_ast: e57d0c5fca9968950ee9698229a378c1c923c363cd06e8fc8152cffc536fa386 + flattened_ast: 2bedf519c88f2e3985c0eb08f4fc78ea9be341cf939cf2bc2aad1d69a8cda10f + destructured_ast: 4b32335d6d6b421b6b50ff6bc17a691a702fd7842bf956b27319a8f6a3f46d43 + inlined_ast: 4b32335d6d6b421b6b50ff6bc17a691a702fd7842bf956b27319a8f6a3f46d43 + dce_ast: 67f3756a2db36ed5ca33ac0bb6e0a83e05bf0abb4a61417b15f71e3b873e1bda bytecode: 6a667db0987376b81e0e57620a5044fbbb4803131bd2c55d2b58fe238df51a3e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u64.out index 56688f171d..595836b069 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: 0996b6b3fb52a9667e3734446bdb9948d2c306b170b2cf259d3ff6d4d224ef78 - unrolled_ast: 0996b6b3fb52a9667e3734446bdb9948d2c306b170b2cf259d3ff6d4d224ef78 - ssa_ast: 741174e7dcf4243951ce823ad6fdbc395e922933598d6140a487c3ccfd25430f - flattened_ast: b314225da2beedf022ab91d7fb83c503758b21213c33bfcd68a33a27ed00f525 - destructured_ast: 8f525bbef2ae6b28e7f6efda26b89cfa64dce2df19ee34058e155797408769ea - inlined_ast: 8f525bbef2ae6b28e7f6efda26b89cfa64dce2df19ee34058e155797408769ea - dce_ast: b3aea5e987cf2045def3e9c08639d2ffe7140023f25c26b7ed98644eae486689 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: 0a681b5a89862d59d6ae70a4a63aa40aea5539a28a516301252ea0aaeab44661 + unrolled_ast: 0a681b5a89862d59d6ae70a4a63aa40aea5539a28a516301252ea0aaeab44661 + ssa_ast: d6c6c6b9590f3c829d5e86b039be1ebbe391673eca23b8c64ad7115f4254fd82 + flattened_ast: 8ff05041ddc74ebe280788fd3c6e5f8e233ec8e5042e35f5c125c0ace8ce07ca + destructured_ast: 11123438d70840ed9cbf6b5303afd8a9e4ed2fb13a8a8625fd2c69c95e28075f + inlined_ast: 11123438d70840ed9cbf6b5303afd8a9e4ed2fb13a8a8625fd2c69c95e28075f + dce_ast: 6824104695550c39608aaee4cd0c2d3e6ba39469ab0e5c31c6616f655f644660 bytecode: 9ea59902cbc6e8126f78f801de5621ef7927e0ff7ec19bf24a5849a52ba46ffa errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u8.out index fa78dac315..e45c561cad 100644 --- a/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/bhp768/bhp768_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: d4e47d8e9664271f83e976e2b27c34f470d9c71c336ef9fcdee98cd51a340316 - unrolled_ast: d4e47d8e9664271f83e976e2b27c34f470d9c71c336ef9fcdee98cd51a340316 - ssa_ast: 0d62d9119f01561923b2fe87913f52185ab14758909a89284d39c5b92a3c9831 - flattened_ast: d5f900c7cd581c93549effdad03072bc0ef7a27a0f21e33263f9893446334955 - destructured_ast: dcb4323d11b60c6bb71178c1e8026205bebf9b7eacb59f6d056f0af718b6c797 - inlined_ast: dcb4323d11b60c6bb71178c1e8026205bebf9b7eacb59f6d056f0af718b6c797 - dce_ast: 3651afcba35c0da7f1ada367823e00c832d11668b392e0d429e64a38db42b73e + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 3cd274e8aae9a946a90634fa6d01c1f20181d2c1a913c40c0271edbef7ce84ce + unrolled_ast: 3cd274e8aae9a946a90634fa6d01c1f20181d2c1a913c40c0271edbef7ce84ce + ssa_ast: e06ef5caca70f6f834238919362f1a23ca070bd29efa71dd81a48805f6095951 + flattened_ast: c8169131519bf22a4bd1498e6459a3c9e25f1d749d7c1a8b2c165283831fb80b + destructured_ast: 274f7462bbd081e7a1800f6aaf6106e0efe489ce2230f5cbe57892cf1ee06dde + inlined_ast: 274f7462bbd081e7a1800f6aaf6106e0efe489ce2230f5cbe57892cf1ee06dde + dce_ast: c23ed0ff631d11b129fd0f97c5a3ffc72f23b84a64108bc11299072c53520d30 bytecode: 92748b91d172e56a27635bf305f8f8c29d6a18e19e1e0ad6b06b2b3bb028925a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i128.out index 8354d6d178..7a7a93fac6 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 7f70c933ed5394fcca4fbc59ce400359a4899cecfa688f72b4840ee060fecfed - unrolled_ast: 7f70c933ed5394fcca4fbc59ce400359a4899cecfa688f72b4840ee060fecfed - ssa_ast: 9ccd936f0a6bd5773b2f969bcfaddef62b750e9f23242b14269bc81bfe3ce97c - flattened_ast: 1e0a9972fbe7c4e25b60cebd5544ef20bebffa49c666f72ac436436c2d8ccf16 - destructured_ast: 963ee6fdb1c6a230259d1e02179aa3da763a8467c48a29803f622a6188b73183 - inlined_ast: 963ee6fdb1c6a230259d1e02179aa3da763a8467c48a29803f622a6188b73183 - dce_ast: f77f7320138619285440cfe0fa8160a76be4be28a024b65ebb75802487a913e1 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 948c21b897ad539defd8548d2a328e1b67fae63b6739b4e9153906509e808258 + unrolled_ast: 948c21b897ad539defd8548d2a328e1b67fae63b6739b4e9153906509e808258 + ssa_ast: ce239f93d13ce5b7a8dc4c87d59848d6b00ee9242fe348785f2662040b914397 + flattened_ast: 0a1a7a12d50f0666779fffce18c7e6688a68261bbb97e5be28b31b3419ca72eb + destructured_ast: 34a92c2ca0f77765a6cc310d50c633af55e45f216b673c4e78d4d39b1817909f + inlined_ast: 34a92c2ca0f77765a6cc310d50c633af55e45f216b673c4e78d4d39b1817909f + dce_ast: 410c4f3dac7219fa45c5195069734fbd6f765c01d0502809492575ce9edaa08b bytecode: 590389deb5b7da7e5210fcae5fed44bddf2b1a0bd6d2b30817eb650dd5efa343 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i16.out index bb2e4f8a12..c177d84ec5 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 08d8aab16df2cc1cd9e98e3cdaa590f6b6410e27bf7edaf9fa47e03e57bec39e - unrolled_ast: 08d8aab16df2cc1cd9e98e3cdaa590f6b6410e27bf7edaf9fa47e03e57bec39e - ssa_ast: ae9836a5d9f727f68ef96f278b0fb828142255a8b6c180d644261b7d15bafa8b - flattened_ast: ebcf39aff33070df4c2961c4e43e51ee27399a60517fde4cbc15ec7c87531e01 - destructured_ast: bcd8e86c3f8cb2d1baa5922962441d9155e251d8886436929b763c50af233ba8 - inlined_ast: bcd8e86c3f8cb2d1baa5922962441d9155e251d8886436929b763c50af233ba8 - dce_ast: 623b71e5546057fc33b162685d70bf2c83e681bc8d256ee0719276abb99e7e5d + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: f133f0c56f21135941fdf80b40ad360bbd1e0d86dbdb62d7a6b8871c9d3b6b4c + unrolled_ast: f133f0c56f21135941fdf80b40ad360bbd1e0d86dbdb62d7a6b8871c9d3b6b4c + ssa_ast: be1042ec74105379e24c5be2a6f0ef1e3a919166d87a2c00d3753a378b1d03f2 + flattened_ast: 5ed0c8743601d1c265187d8bd5ba3c536e5395dc591202454b884305f5a3b49b + destructured_ast: 7f1941df0f096693b26eb94e9a21e0ace96216d43b85835f636f6cb8635e17a1 + inlined_ast: 7f1941df0f096693b26eb94e9a21e0ace96216d43b85835f636f6cb8635e17a1 + dce_ast: 4ef7c607f231afcb822fcd751d45b7846514523abe188dad5c3adad2d3c1f50d bytecode: 6ae1c5f0b41e9982c661326ee81b26e8c0b6d400f5a8454117984c37ab4e492a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i32.out index e87b3d91fb..c29f940274 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: ab34ef91d0d60e3b80e1e71972435fd2d9046ca51ce6a387d4d8812d37a07456 - unrolled_ast: ab34ef91d0d60e3b80e1e71972435fd2d9046ca51ce6a387d4d8812d37a07456 - ssa_ast: 2b615b2d920d928a9ac3ccd699ae9d419b3e4366ea42a2e6afd0c933f19ad458 - flattened_ast: 67443a3f9fa4f89d85226d3dc3a7d0b1b81ae1ed061b5444277d91fa62265467 - destructured_ast: f4df430b93b0a813c2c4fcd579fc129f5e7225160b110defbf27e064019c233d - inlined_ast: f4df430b93b0a813c2c4fcd579fc129f5e7225160b110defbf27e064019c233d - dce_ast: 98a7f9ce6a8ab0c193bb45e4d37370d1f5e79ee55876f3273b6e79eaa69f9043 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: e28505581d1533e5f4d30c8e370284fdc8e4faf7e33cb2de3d07de1338aa4634 + unrolled_ast: e28505581d1533e5f4d30c8e370284fdc8e4faf7e33cb2de3d07de1338aa4634 + ssa_ast: 1334fe71cb9b73fce51960b4fa753194154a5cb4839b61bb3a03b37fe383ec0f + flattened_ast: cd0cd57e23182a6a5861d3d931ec83b53ccd0c603e8383c613dea1ef7fcb8501 + destructured_ast: 7e64de90013dde78fe43cecf4021d2613f9947bf6385fd582d8522f44ca342f0 + inlined_ast: 7e64de90013dde78fe43cecf4021d2613f9947bf6385fd582d8522f44ca342f0 + dce_ast: 5b2b2e5e717e3875b0bf35747e0ff2caedb838f7de9884c823953d2e97b9c2d8 bytecode: baa423f7d34847421a44a1ccfede64fb02829a7d99c465b0605f85cf20705986 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i64.out index a95dc2f971..0b0d87fab5 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: c40846a1601b1b2379264026626e162fd9687f2a94cdd8a6359108e95f1f334a - unrolled_ast: c40846a1601b1b2379264026626e162fd9687f2a94cdd8a6359108e95f1f334a - ssa_ast: 2e4a5fc9aa4cff0dce85a836593c5e65859d13b4bcb5cd53d8721e6924c8496d - flattened_ast: b987c1c51e602ca7198dc77cf49dcf4f37f1328640d85af6a081a14950e28073 - destructured_ast: 1126e21bc7af929237eea14b3f49e228b9470f3b584d6ad4818fe1231899bfe2 - inlined_ast: 1126e21bc7af929237eea14b3f49e228b9470f3b584d6ad4818fe1231899bfe2 - dce_ast: da382f0df3005fabd39584ed54cd91b2bbdb95b033f91d6fde9491f9aec8fa4e + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: a8b4ac7209628996363acb025a2e3c8df874007aa7e63017c354137a422af157 + unrolled_ast: a8b4ac7209628996363acb025a2e3c8df874007aa7e63017c354137a422af157 + ssa_ast: e60243c924e387d252ab4e40687d8ff35244a9b66129fc83f389f5c26910d58c + flattened_ast: 8a965a6d4e863498259981004f0bfe55b9dd3b5798b79dfbafbe65bacdcdd3c4 + destructured_ast: 092d53c81bf7162372d4d6b727b18c1bfcab27a87ab051780daa377a9e87260c + inlined_ast: 092d53c81bf7162372d4d6b727b18c1bfcab27a87ab051780daa377a9e87260c + dce_ast: 5b519269f225337360349fd39cb7c62f04264b7f39b31121a3dca9e9eac8cc08 bytecode: 4d5b9ec6fd0830de759b0df4e24136712875ed4bac5aca6ff53d8a6938693f56 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i8.out index a500a67a3c..02b7c0ac21 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: 3d126e2b46312d601750b094604c8c9db7ba1a1df1a00a7bcd8d6fe5f5120e9e - unrolled_ast: 3d126e2b46312d601750b094604c8c9db7ba1a1df1a00a7bcd8d6fe5f5120e9e - ssa_ast: 83d031b43659a2858f39657a3e27968643f5eababb44b7509d833b8e05bb1570 - flattened_ast: 05c64abba5983477961437941c2f2d5de679074bdb3afe5f1ff68a2851b2dd32 - destructured_ast: 0786aa45f5a9987d35509500db1e32ff7fdce4003b226cad93895352e93451ff - inlined_ast: 0786aa45f5a9987d35509500db1e32ff7fdce4003b226cad93895352e93451ff - dce_ast: 89621c76b90ff558f3862a5588fb53a26f6b95988ab40d30c79fa3485b614dbd + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: c8db8d81cbde019266e92a24d679a1b446254de29cf7ffc78d3273659f78fa68 + unrolled_ast: c8db8d81cbde019266e92a24d679a1b446254de29cf7ffc78d3273659f78fa68 + ssa_ast: 17c87f742f7f390a4bdbd064858ad4d65328e5fa24491acb9aa2f91789708e5a + flattened_ast: 853fee97e4bdcb30cd22f8edae79a6983257ede9b7d5a723a8668e572ed954b6 + destructured_ast: 207da8cbf9c7b44edef2a53f6040153d591483ab428de4cd462fa44251f736e4 + inlined_ast: 207da8cbf9c7b44edef2a53f6040153d591483ab428de4cd462fa44251f736e4 + dce_ast: 4f5f331892a5648c1c245340c9366d8d0e6123905126e379d730946a52890bb0 bytecode: dae1414959e50ca77ecae476843824b6220aa3ca4e95ab2a98deaa4b78987bc7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u128.out index 58e6497b9b..dd120c2ce4 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 7828037f6274ebfb09d54ec3c379b3e5610ea9369698360ef92fa793876135f9 - unrolled_ast: 7828037f6274ebfb09d54ec3c379b3e5610ea9369698360ef92fa793876135f9 - ssa_ast: dcab873b08e7251378c136d1eacb112836e59d1f57655d8ee76dcd8340170164 - flattened_ast: 2036a80b888c53de87cdd4ccf4971dab49cd30cc3b563b9d49769666f72b0a1b - destructured_ast: 3c8135b0fc932f33f9fa050e3b0901213ad91ae98582256f536f26da26ccbbb8 - inlined_ast: 3c8135b0fc932f33f9fa050e3b0901213ad91ae98582256f536f26da26ccbbb8 - dce_ast: 0496931021415bd0e3e29eac30de2a8adff17e627af690f98a94ee14f0e6b4ca + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: b008bff7939df7d83a4f5e1776530ed16fa35e0a954c1ae625e55a84dc6baf8b + unrolled_ast: b008bff7939df7d83a4f5e1776530ed16fa35e0a954c1ae625e55a84dc6baf8b + ssa_ast: 1a0d2cfea477ebbc20f47cc948ddef4b058d8021dfb02e182614776d2fd49eec + flattened_ast: 11c8601ca0bd4776f94af8db30b0c2dce4fa5b903597c8fa74374a4d8d994ee4 + destructured_ast: d5799f08099f6c8e969abcc302ec12401c04cd193b814f2be87fd1af6e05c97d + inlined_ast: d5799f08099f6c8e969abcc302ec12401c04cd193b814f2be87fd1af6e05c97d + dce_ast: dd56f1a95240d24466cf8d6f93bc44963b3682cf9975c72a42aa55acd87aed40 bytecode: 770f2acaaeeba1f46a6b57a837f4abab295fe19070a150e6f59fc4e8d4cb19fa errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u16.out index f1e6a3eb33..e9b613780f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 9121af7c203bc00b6b7b13699b49eb38e60268966c1b61698e2584ac9aabd363 - unrolled_ast: 9121af7c203bc00b6b7b13699b49eb38e60268966c1b61698e2584ac9aabd363 - ssa_ast: e6d85723ce86aff05ec609c42f7e612e9a3e7c6e1ceeb80a66af76e24e9df860 - flattened_ast: 358f4038aa45912ab1d74faec6901c5860714be7eaa04d22406f2ee43a757c55 - destructured_ast: d3166a2da1ca236db1e838449ed127537c0d5d92a2ab56aa2d9f7334c9c88903 - inlined_ast: d3166a2da1ca236db1e838449ed127537c0d5d92a2ab56aa2d9f7334c9c88903 - dce_ast: 96ad120197929b6209048f0967670a447c04a891c368ccfae96747c4998eaee2 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 9d02c6cadcdfbd93badac6decb2597b3226f1e6a1bb8e41e4d5ec90297417857 + unrolled_ast: 9d02c6cadcdfbd93badac6decb2597b3226f1e6a1bb8e41e4d5ec90297417857 + ssa_ast: 77f2fa9744fb229a42cbb06878242855ed7d70829ab16f53f563e72d6a4e9adf + flattened_ast: 355057b3406e378929ac71be501f6ce7d8c33231932caaa1fa120552a1d5bfb1 + destructured_ast: 835529a2fc8ad776b4caad1703be015adf8fd23a8a1e6023063b520e1ec96b61 + inlined_ast: 835529a2fc8ad776b4caad1703be015adf8fd23a8a1e6023063b520e1ec96b61 + dce_ast: ac2ece28d6d28f20a5b211bd500a0b44d075bebd772f02e64a30e1d1d604804b bytecode: 2827725e28e621b51cf5a40a1979da7558af0ec1e7e260b1ec255c169efd7948 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u32.out index 9b7f190278..2a202e08d3 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: cf6789533bc01bc72205ab784c85415bec8573efae5aa7c1161a7b32d03894ee - unrolled_ast: cf6789533bc01bc72205ab784c85415bec8573efae5aa7c1161a7b32d03894ee - ssa_ast: 41cea737c3237e9713fa3c743d83f66ff05aa29e272668966d420c8f722c95db - flattened_ast: 08a473b72eddab65398e35b9b64047fb0897e43470e717bb15a451b4261ef813 - destructured_ast: 1043fe91aa6735a08854bf668dea389c40139a997bbc4654f1466db3d8f058ab - inlined_ast: 1043fe91aa6735a08854bf668dea389c40139a997bbc4654f1466db3d8f058ab - dce_ast: 633e737ff89609c809b2daab761b01a7a9e66ffd6dd391efba0bbbd910fec441 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: a8589ac59ba0d84fa837a2ebc7d1fc94cab9d4543f2c4e7afb14aa4f68b8b9ce + unrolled_ast: a8589ac59ba0d84fa837a2ebc7d1fc94cab9d4543f2c4e7afb14aa4f68b8b9ce + ssa_ast: c966edafdace3e3fc786b022e36734f59b3183d64341e52a8a63fc228ea57023 + flattened_ast: 9c709d07509da0eb52d7b85239b941a2a4b855cbf20dc332331272a661e9d4d4 + destructured_ast: e80d045c2a77b6acc35bde092ad8806b100e2230a696702f516e6e155324aebd + inlined_ast: e80d045c2a77b6acc35bde092ad8806b100e2230a696702f516e6e155324aebd + dce_ast: c79fb5aec19fade3062e509b5644a124e917f43bbd978cd46b9234c8c52c655a bytecode: a90328ca973213775dcbfa872950cc8126b172ef1cd4c1a1650277b23b6f6957 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u64.out index 356404cf02..2a26f49ca7 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: b1abc9eec29e2c97b8e0ce3ba612b36dda420d3ce48aa9321a04e4937ccd4057 - unrolled_ast: b1abc9eec29e2c97b8e0ce3ba612b36dda420d3ce48aa9321a04e4937ccd4057 - ssa_ast: 295bf1e91ee6faca72aac0d8cc00fb9514d1a50f24ea3757fd103f14a472632c - flattened_ast: 0360ee1c509d0d6ba5ff2791bb8f527fbffbcbfb84e645272b7761098ef4d931 - destructured_ast: 3cc46ddd0f13797fe02e91c9c949d166a8b1e614035f7937f7c5a030f7eb087e - inlined_ast: 3cc46ddd0f13797fe02e91c9c949d166a8b1e614035f7937f7c5a030f7eb087e - dce_ast: 1da54bc90f7c861810af3432cc6e008d1980b3ad6bd343f78650a58153e66994 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: b51f58cbd22f146c4e11883e7e5eb484b6437b3e06a795820d7c0367fdbe82c6 + unrolled_ast: b51f58cbd22f146c4e11883e7e5eb484b6437b3e06a795820d7c0367fdbe82c6 + ssa_ast: 2e009ef27b6942da2ae5c1284659511b14ea5b7499a401ab49ec24e2fb058126 + flattened_ast: a3fde85264ef2e42a9b265455deabadabffe6a226abefecf47d53264b27de80e + destructured_ast: 582fca67b21d0ca3a6377957cac25950119eda9c901327007bb17a5878f494ee + inlined_ast: 582fca67b21d0ca3a6377957cac25950119eda9c901327007bb17a5878f494ee + dce_ast: 9736aace0cee26e3bcc3cb689a7dddcb8bc187405e98ec31718325bf20c6dffc bytecode: 56496fd935df4646cdd71fb7cee3390df240c99433835d70ef5967a33e6d7de8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u8.out index 685f98c745..5cc59fb4a1 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak256/keccak256_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: d61998dca09e81959d2b4901b70c3d1d936d9d204e17356ee41bbfc9d8a58df8 - unrolled_ast: d61998dca09e81959d2b4901b70c3d1d936d9d204e17356ee41bbfc9d8a58df8 - ssa_ast: 7e29d9b41d14d81786bfc6977689b5dffc261f8324761177dc2a30d03ed34c5a - flattened_ast: 0739032c7e3f74049189ff1c69def5d1093cb7ec24f43e6246c5eb9912198278 - destructured_ast: c01d6758508de62e79d63199ec1a095fc98c2b4b0829c0604c4536cd43e8efbc - inlined_ast: c01d6758508de62e79d63199ec1a095fc98c2b4b0829c0604c4536cd43e8efbc - dce_ast: 4a21a45853f020e76b80696e4b13dd8353364c327ba4da2b4b6addac032f3a1f + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 1757a5d7c047abc7ef6b8ed3cfd1974a23aa7f7dba69382e90e945c2c8352d97 + unrolled_ast: 1757a5d7c047abc7ef6b8ed3cfd1974a23aa7f7dba69382e90e945c2c8352d97 + ssa_ast: 0d182bed8a5e133cce867a4a811b5c6119843755cfefc78e623dca0f073c76a9 + flattened_ast: 0039221b616abeec908a14f00a104a518a10be9d7933f91264eee75836ce6fc7 + destructured_ast: 649c4cb9a854ca9dd4b2b714a2b2cfcde22a8844f2fccbd7b4f4742fdf6f71b4 + inlined_ast: 649c4cb9a854ca9dd4b2b714a2b2cfcde22a8844f2fccbd7b4f4742fdf6f71b4 + dce_ast: 9fa6604d0d4cc545d1480af18ef993a055f09af7bb46c6d1d2dc0847edccdf2f bytecode: db058ed7b34e9c94cb51c9152685548070f56ec9b80abe82b0ae5789a0f81cee errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i128.out index 9512c962e6..a55559437e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: cf50ee9344eb195446d0a3b467e159e73886cea7f80ca45a8e02dbea41f55d81 - unrolled_ast: cf50ee9344eb195446d0a3b467e159e73886cea7f80ca45a8e02dbea41f55d81 - ssa_ast: da937f7c4bd0a70d2b6a16228ebc06dd2d6cd1618420d29e08678fed8f3b4979 - flattened_ast: 20a7c18256ce854686d516c6ed4729f9432476d37fc0974ce69e98ab6bbeb61e - destructured_ast: 60044034c823efb483c29df2d81824d56483b667551530d635f2a5f5db3e6b49 - inlined_ast: 60044034c823efb483c29df2d81824d56483b667551530d635f2a5f5db3e6b49 - dce_ast: bd5c1987d130bd4878a827604fc2f13d637920533fe5574ced83a39253fa8675 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 6109ab3cd52f3d6eb1169a39d93ebb2b02cfa5e47ac79ffb8f179870841d6ee8 + unrolled_ast: 6109ab3cd52f3d6eb1169a39d93ebb2b02cfa5e47ac79ffb8f179870841d6ee8 + ssa_ast: 64a0b26ecf7f7582f5484d98eb6da12dc332377b051d14607dd26815a286418c + flattened_ast: be184a2d89ee94112a6ae80595f4a430c8d184efd4a500e23ab5ee7514bc53ae + destructured_ast: 680ae8f3276ddb0affc581ee2fc8355e2821cc08e3fa56e5758699e3fed696de + inlined_ast: 680ae8f3276ddb0affc581ee2fc8355e2821cc08e3fa56e5758699e3fed696de + dce_ast: 99efa9fec38998907b0e43ed294cf87ed70dde9a1788d7bf7bc984972bdb68b5 bytecode: 3c60fe2ccd72f2fee542194a4a812f65cb74ffe4aa77947d0ef39a626d9175d9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i16.out index 5fd3b78219..72bf4560ab 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 2e90cc32a2452f56bd21188c20112d2443b1dc9e87f738a3867e082bd0c5dc28 - unrolled_ast: 2e90cc32a2452f56bd21188c20112d2443b1dc9e87f738a3867e082bd0c5dc28 - ssa_ast: 5aeb5c45847d44c25f0e661c3180e35851ca649d0d72938d16a82257d181be1f - flattened_ast: 69b6579e088860da7249e12903a292dabc73f38783b9afc8e6bb44375924b008 - destructured_ast: df02c10fbbe9a7cc9cd82c10f0bc69d13d0f3bf76947f502b7341b041dab0481 - inlined_ast: df02c10fbbe9a7cc9cd82c10f0bc69d13d0f3bf76947f502b7341b041dab0481 - dce_ast: 2da9dfcde15231bfa02ab983fb8c2f47c6f6fd2dbba889bc2a24f079dd57446b + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: 5fcc2ce7804e6e0155c3690c024ace7298f0f8a77aac4cd64c84c5f54d7d5fb9 + unrolled_ast: 5fcc2ce7804e6e0155c3690c024ace7298f0f8a77aac4cd64c84c5f54d7d5fb9 + ssa_ast: 5056fe3b87191fc67c57f562210e592f6b2e8cf1a002322617e782608876b41a + flattened_ast: b19bca43f358c563ad4af66eb5ad0b3740e85c00965844233d5582b2f8ce7b64 + destructured_ast: 744a4e4035b41eba13e90c10f4d61d8a41493c89cb36637bfe03d1f897132bac + inlined_ast: 744a4e4035b41eba13e90c10f4d61d8a41493c89cb36637bfe03d1f897132bac + dce_ast: 90031ec3ae2f739b5d95ce32c2ddcf455e746f147a36cc7f6e4e267998ac06df bytecode: f6c112b08c4a5b02002de56b8dfba054dca0fdb49feeda7146384ce5bc4b9e3b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i32.out index a40232e17d..082a2a30be 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 749e0f61cecb1e88c290f46d8fc69ffea2f10f49f5bdfbb1410d2cdc3ae3d071 - unrolled_ast: 749e0f61cecb1e88c290f46d8fc69ffea2f10f49f5bdfbb1410d2cdc3ae3d071 - ssa_ast: 266769cf95bdc0fa7eb50aaa9e402eb9c590e55e81c01087c2c081a53587f6aa - flattened_ast: cf9c19a6d4475a361da5aefde4a0a888d4220aef95fc02d80f3a0f652dbcd1c5 - destructured_ast: bc87924f79f3ffe7862b06e4a0fc6be9fc8385d40297b2c09915092b8c034b77 - inlined_ast: bc87924f79f3ffe7862b06e4a0fc6be9fc8385d40297b2c09915092b8c034b77 - dce_ast: 40902f6c0412ff8b3cce624175984afb5c1c8b7f1451a091a3bc62de653ddb01 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 74439ed0b2cdb9fe26d9830e1594602e6c35a244d7dddda59ccff63663d807f7 + unrolled_ast: 74439ed0b2cdb9fe26d9830e1594602e6c35a244d7dddda59ccff63663d807f7 + ssa_ast: afc3d9f311b57f41bc5349e046b716e9e8572ee1562d588d5d83aed6e1ecd561 + flattened_ast: 914cf9d22d48260b444c527dae4687b99e03e134491fcc88a8aaee51f198109d + destructured_ast: f53982ea5ddb7c81009ce09ed3b506b1db65c5309a0bf75bffb76f450f800329 + inlined_ast: f53982ea5ddb7c81009ce09ed3b506b1db65c5309a0bf75bffb76f450f800329 + dce_ast: 180de9c8249894d70676346039fc6b040eab6e19628f5cb4e5d26be2505f1da1 bytecode: ff30f43337c830695fd7271014aee19d33c0489de50d3d66db69b3d73da357ce errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i64.out index 2d2284d680..df8d854596 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 289a687bccc18ad524cd52ef6832f81d3305ccd1f55ab39b8835b2d4b9a858a0 - unrolled_ast: 289a687bccc18ad524cd52ef6832f81d3305ccd1f55ab39b8835b2d4b9a858a0 - ssa_ast: 607217fbf5bc432ec2f9f244f5d6c253a30694931792628f8407bd0495eb6eb1 - flattened_ast: 0f21c1c931c14c8fbd51b04a7849f7dea2772e2bcedc5f1d247975caa0850923 - destructured_ast: 6072a0bfd259d332a94529ddc2ca1f08553289d1f876b3686f16ac14788cea7e - inlined_ast: 6072a0bfd259d332a94529ddc2ca1f08553289d1f876b3686f16ac14788cea7e - dce_ast: 16cabeaebfbe5c09aeea007c979b1c34341bf30cfe1ac201c67bb00012086d1e + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: f286138dad40eb651c6ee0014e58be63bc0c509a05e5df84939203ae02b23bca + unrolled_ast: f286138dad40eb651c6ee0014e58be63bc0c509a05e5df84939203ae02b23bca + ssa_ast: 9f906fcb838d1a75e8864845cd15ceba7283bb08f1062c48635380b3c0c07b85 + flattened_ast: c58b3fb52087cb63c5047733e68e75541ef415984d7f9093e8302187bffafbfd + destructured_ast: 29c3732ade74fbdd7dda5946b1e8b8aa37d843f01ccb503b129b05582e94fe50 + inlined_ast: 29c3732ade74fbdd7dda5946b1e8b8aa37d843f01ccb503b129b05582e94fe50 + dce_ast: f242f9d21bfb62e9235dbe05a110527d71e3272bd664df621eb2789f4989ed5b bytecode: 9613835dc4e36f266d29110dd595208e54ebd4b8dcf371985a38796c15044f38 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i8.out index 3c0b36a37c..4b3a819441 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: de7767e1549beca4615ca1d69f918494a25237587b9f67e96ac49a662e5b53e8 - unrolled_ast: de7767e1549beca4615ca1d69f918494a25237587b9f67e96ac49a662e5b53e8 - ssa_ast: b767b80cc9111aea0a3358678e3b397a41f8d6267fefe9790bc6d6880cc07f4f - flattened_ast: 9443bea66bb1d86992230aa03b054904829ea620391e236df09209ef4349bb29 - destructured_ast: 5bc7356899aa7f143bd5e02e31d2f62d27343d9cf19cb6cd20b274c4feedf78f - inlined_ast: 5bc7356899aa7f143bd5e02e31d2f62d27343d9cf19cb6cd20b274c4feedf78f - dce_ast: c712de0ae6149327de420598164d16713c1901d6a1d5d3dff3be4d671fe13029 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 9a1bf4beada9bafe85a938c768a5c5b121e43d30770ec39f94ac79c5b97c14b4 + unrolled_ast: 9a1bf4beada9bafe85a938c768a5c5b121e43d30770ec39f94ac79c5b97c14b4 + ssa_ast: 4ed597a0b7a4e4f1ca1ce21d2ebf1a7efcc129e76a712f117bb25d58a04f8a25 + flattened_ast: dc3145b296776dbaf2f2008ffdcdddd764e3818c4768efbf8c76c171658f5ba4 + destructured_ast: 2083571af721c88e29495e956f2a48633865d7bbb5effbc4fb37c5d70e7423e5 + inlined_ast: 2083571af721c88e29495e956f2a48633865d7bbb5effbc4fb37c5d70e7423e5 + dce_ast: f51d66047d717bf7f410c71ee64a592df33874d2d22967a9a9728c7a4f61cc36 bytecode: ca074224fb21da9078cf66f586228b5d09460ff02edf0f84847970c375695b57 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u128.out index 3f480c8760..1a7e83ba84 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 0c9ebf04d9985352faec234e604398da0407f45e529238f97900e972e77e375c - unrolled_ast: 0c9ebf04d9985352faec234e604398da0407f45e529238f97900e972e77e375c - ssa_ast: 8463e656b2af9e13b02dec967e1c59af192187d41a89c4b1323baa045e8fa563 - flattened_ast: 9777512b092c90fd1f948d80d7001fd68f9b127291b1ec20c005e7ee2fd58e3c - destructured_ast: aba4d929519c8dac15dee45711904c4ed86a685910c3d0d4198f53fe042415d0 - inlined_ast: aba4d929519c8dac15dee45711904c4ed86a685910c3d0d4198f53fe042415d0 - dce_ast: 464222460e329bd22d6316d185101e69463d3c69fed9a1917e04cdcee1e5e0ba + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 6229c76b0fc6004300b2fedeb28f169decdbe3108da57c196312ca72c93768d9 + unrolled_ast: 6229c76b0fc6004300b2fedeb28f169decdbe3108da57c196312ca72c93768d9 + ssa_ast: 4dd2e8989ef2cf750b2dda60be447befe5d9d734dbbafcb47245fd0df7aad37f + flattened_ast: 7edd68428f117ea2f6acd2313f09aeaac788ed1cb5ba8f30b3d14ee613781356 + destructured_ast: 7e1a307679b5d457591420177096766cfaacdf564fcf53c67bd6c5ca12bfabb8 + inlined_ast: 7e1a307679b5d457591420177096766cfaacdf564fcf53c67bd6c5ca12bfabb8 + dce_ast: 69dc5e8a505242fb8fca75880a89cfc7862304901968200f66a5c9d3843ff1f9 bytecode: b0c87022d5e30dd47b5a097c7e1c00bd8c487886a84212ce7db0c7b1c5856259 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u16.out index 95e77fa2c5..c21a032777 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 01176e805efaa48309f4d106adadd0d2bce1b7db5adaa8a3f5f22739aaec7c15 - unrolled_ast: 01176e805efaa48309f4d106adadd0d2bce1b7db5adaa8a3f5f22739aaec7c15 - ssa_ast: 3146437a741287f7b59fbe82132a6099c687aadb36eede779319de35ac4e5010 - flattened_ast: a4c49488bf6589bf73843585c73028d1cabbc01b890844d3584b5568d4091519 - destructured_ast: 267d9d836797afa4a4c84d82ca956bd699505aff20d9fdbd4220709c3a848402 - inlined_ast: 267d9d836797afa4a4c84d82ca956bd699505aff20d9fdbd4220709c3a848402 - dce_ast: 106d75aaa7b1965b5e6093b4ea44b0aa04cd40c94f5688d943770b3f41879a15 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 9d341ae5df7aa4fd0bff3638b9c5929ac89c9a7a130ce52e25be32e4d2648c0c + unrolled_ast: 9d341ae5df7aa4fd0bff3638b9c5929ac89c9a7a130ce52e25be32e4d2648c0c + ssa_ast: bbef8187115feefc32dacbe31b9242418a92082f36024d11305507c566e7730f + flattened_ast: e70c36db8613c3dd2989126e280da932b3228c4c9ad51307ca55196d1e143410 + destructured_ast: bad5889c632264b8b346081a8ec4a21a870a43cb19fd51781c76c2ef92a476b5 + inlined_ast: bad5889c632264b8b346081a8ec4a21a870a43cb19fd51781c76c2ef92a476b5 + dce_ast: e2d8c5e1573658211b680d1a0b53f336355ed382944e38ce1144c9e86c8187fc bytecode: 8b851887789d1b0d14a68de7f393a839940770b54680c74656c872dde5ff20dc errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u32.out index 91ea373dca..ac4a17f8ed 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 9c79bf47ac9a15fdf6d7d0312800ce3ffeb19ed90d5e49189c37d5e69f9421c3 - unrolled_ast: 9c79bf47ac9a15fdf6d7d0312800ce3ffeb19ed90d5e49189c37d5e69f9421c3 - ssa_ast: 792026e162a6ed6cbe24274840d64754cabb1dc5350df221208a3fe92fd0c025 - flattened_ast: 21af2178ad10298fee36787654550324a17f24e23d2f548f81025d36cf5f5350 - destructured_ast: 10553e762040cef24e5dadba97e8001f6ed23ded87f86be290089f5e615ceb39 - inlined_ast: 10553e762040cef24e5dadba97e8001f6ed23ded87f86be290089f5e615ceb39 - dce_ast: 42442d8e9e62764593fddfaa0c77fac992d0e58c4df8605a68b8deebfffdb658 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: c9524bab77391c4563f38c804db306c1f72fa92fd38174441e7323544e7b6c04 + unrolled_ast: c9524bab77391c4563f38c804db306c1f72fa92fd38174441e7323544e7b6c04 + ssa_ast: 2319961d733fae57169b7464a81557ff2914392d551b77c3912beaf1334f49f9 + flattened_ast: 71f6ee6bae1bb98e2af3135bc5802068adfbf05cf56b078c63451487407b5eea + destructured_ast: f58edec564ce91f08b60907c08d7d8cdd9b28a4a235165f1f00045ce0947d596 + inlined_ast: f58edec564ce91f08b60907c08d7d8cdd9b28a4a235165f1f00045ce0947d596 + dce_ast: 7f0eaaea70b11091cab3b68873a2ea2bc24147ce925361c4fbb5aab8335c83b0 bytecode: 8cfc137d9de5f78970ffe8a7fd36cf828d967798364ebb25ed2654f97e993df2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u64.out index 43b49c1390..80f0db6601 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: be33f31c13010d88c6ffb8e72750182965bc3edc6dc088bcc64860dfcd4dd868 - unrolled_ast: be33f31c13010d88c6ffb8e72750182965bc3edc6dc088bcc64860dfcd4dd868 - ssa_ast: 73a3b5dfb1a862a1ffa5ffa54aa3b30fee8f612bde4c71742a8c57b5966bc3a8 - flattened_ast: 1080e484aba6c294feadf4a7a7fc1e8bb4cd86b9727815c6e30971619fdd6525 - destructured_ast: 9c239de2ec09e3c9ffcfcabe8945c03cf1bc10495a89cdb01a2c69e60b66900c - inlined_ast: 9c239de2ec09e3c9ffcfcabe8945c03cf1bc10495a89cdb01a2c69e60b66900c - dce_ast: 3ebe8205ae698b2b92707092466a9b5267764229926a444a0b106a05517aeaec + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: ab91dad2de175dc6237e83b93b8fefe196b0726ff5d0f8b5f29d34ce7af7b727 + unrolled_ast: ab91dad2de175dc6237e83b93b8fefe196b0726ff5d0f8b5f29d34ce7af7b727 + ssa_ast: e22d12afbc61d07ec500cdae44771c4c3579ea29f2c7acceab88e4e8ff941ffe + flattened_ast: 6692b0a381efd6c5c1a00e9d2b4afb5eae65c8ef3e399b6414acf2f1cbfc6e30 + destructured_ast: c03139f6b55739b45cf329fcb31bd95be09dc190ed7073bee79f7ebbbbda5149 + inlined_ast: c03139f6b55739b45cf329fcb31bd95be09dc190ed7073bee79f7ebbbbda5149 + dce_ast: 23afa81426c22b1fac0b24d39639958e067e17a6898a7a8e57135c3d88d1a9f4 bytecode: e21f3d467b66f55e41c864391412af065fcfd0b44bb6697e68693b5c8620e4bc errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u8.out index 91a384cde1..c9c41e9428 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak384/keccak384_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: 6de09eabc9d138962e441e8cda76f3ddfe3fda301d102fd9e06e6f8df7e98af7 - unrolled_ast: 6de09eabc9d138962e441e8cda76f3ddfe3fda301d102fd9e06e6f8df7e98af7 - ssa_ast: c18abbc32482fc98ebeca7a8e7438700017cb820b2f43365226406bd8b5ba9ba - flattened_ast: cab13e22fcbd6d1b1efa11a577bb8bee26f6dad7588a5a9efd88301ca74d2896 - destructured_ast: f83b00ea3f47a25ac17901f94520ea6e4f26d1e3a04c43bc19f9740e6918d000 - inlined_ast: f83b00ea3f47a25ac17901f94520ea6e4f26d1e3a04c43bc19f9740e6918d000 - dce_ast: dc50635fb296778b97750a1a9e4cbde442cdab690036ad9ca39fb0b699105f84 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 9ec081a2da390dabdd37f2b3093422783ad9f346d2f3b1770a1483028da69d6d + unrolled_ast: 9ec081a2da390dabdd37f2b3093422783ad9f346d2f3b1770a1483028da69d6d + ssa_ast: c546fbd09a7c023b2910cee14f69fd95e874eaa59388bb440a101767999a9044 + flattened_ast: c17c01c2f89ac486be70d53c98fe6e16140ffdf89d78ceaaee3d8a9371aa2a00 + destructured_ast: 49209f1c2a62700ff5ad40678885a945360dfc9639e5eb60884f3ea27e8a02b3 + inlined_ast: 49209f1c2a62700ff5ad40678885a945360dfc9639e5eb60884f3ea27e8a02b3 + dce_ast: dd3cc4e37344c8e61b613c40ba8e14cfb8b88987cf571439dda504db490c1f9c bytecode: 999b9d0cdf8e006833a2d8ce94eb8ace714cd08c8df3e0b3531e28f6489e0984 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i128.out index 13dcb8e6e4..3bb1b2dcfc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 949f0ffa76d34293bae55de1f2b6f709ad2d9d239005bd04701c16709978ae7e - unrolled_ast: 949f0ffa76d34293bae55de1f2b6f709ad2d9d239005bd04701c16709978ae7e - ssa_ast: 26f8a4d16c95dd3e80465d523092b6fe4b440184a217ec36ef1e6b79c1ad1f9d - flattened_ast: 037d14d0c3b43a1fbf29b74ad36fd0785ae1ea17acfa69a89aa0b4c12275bc87 - destructured_ast: a455b9fe90ae8e3ca80d9f47913accfdea69a50428348c2531c7b2254922ba88 - inlined_ast: a455b9fe90ae8e3ca80d9f47913accfdea69a50428348c2531c7b2254922ba88 - dce_ast: 6fdd4483a8391a320c27d43e0d172474d5923703bd2f2841794c62ddd9bafc88 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: f39945a5cdded0a3475d89f6bf57cbdb12a5bfe262e2af8a524c3d22795298e3 + unrolled_ast: f39945a5cdded0a3475d89f6bf57cbdb12a5bfe262e2af8a524c3d22795298e3 + ssa_ast: 0fcbdffa582ad336526145e26fa987e420c3efc2dae3a0c7cb91b57c0bf55020 + flattened_ast: ee18bd622cde70783b834f8c6581045ff424bc14d8a52c74112f9297e411a608 + destructured_ast: 064ad01e0b8b1044985cc5b8e766bfce9f11a9506bff2d438492c5159d3bf057 + inlined_ast: 064ad01e0b8b1044985cc5b8e766bfce9f11a9506bff2d438492c5159d3bf057 + dce_ast: c4cfd223c35c25c3b73320085e36d5e93f238b5fdebfce5122c6424cae1fb265 bytecode: 88e5bed3bec5448667a7407b85018435a99703ea27f2e24c965cee2b37ae5dc3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i16.out index 23a6ea6cd7..5f96e73ee6 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: eaa08886ff718c18e4242d93571315a3022f18d3c4d657320abec5ed7175de1a - unrolled_ast: eaa08886ff718c18e4242d93571315a3022f18d3c4d657320abec5ed7175de1a - ssa_ast: da59e09f285e53c5177772743c36d7e12fad0e36d8091db7344cb7f910a94885 - flattened_ast: 0f3a6bfe35e119e49012b6fd867034b5edfec0ffb3b4bc4276ddf690dda59aee - destructured_ast: cb18e8fa624a0927e437ae8544bb43ae19b1e09dbd8918a0213a39efdf585102 - inlined_ast: cb18e8fa624a0927e437ae8544bb43ae19b1e09dbd8918a0213a39efdf585102 - dce_ast: e84af5ea95d13561121d59179e2709e8a8f62ba6402c4398655586104080e47f + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: f7cb44b9a1148454a3272643c72a1920e54f2d4313b3e7b21ce586b333011cc5 + unrolled_ast: f7cb44b9a1148454a3272643c72a1920e54f2d4313b3e7b21ce586b333011cc5 + ssa_ast: 7a34cae13c2ded5cb878a2c8dd377278d83662263ab76bd3146225d0f9cb8211 + flattened_ast: 03511ddb915f38fa41919c9e50ecff2c04d2429fc24334788483538619cf6cc0 + destructured_ast: 334c61869acd2cc880c43e1add1a78415cee577abb2e840c6d27da2b5f7bd596 + inlined_ast: 334c61869acd2cc880c43e1add1a78415cee577abb2e840c6d27da2b5f7bd596 + dce_ast: 7f5dfce54cecae8b3a9ed4c3a1e7b183a7d7806dee5f892dd9f11418547b9c93 bytecode: 9b27d0806063bc598a773122d554a2d3da168e9813e2c2e55c4e0eedc2198f1c errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i32.out index 8215c9ffb9..894a7588fd 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 13f5fc8d9d1140f79516e2c42d80c07f69f423b4743a27de5c5e3709504c48ff - unrolled_ast: 13f5fc8d9d1140f79516e2c42d80c07f69f423b4743a27de5c5e3709504c48ff - ssa_ast: a33b1b8456c82615c89be1e896d8ff70dd0121d5a7d12fe705893284b0b0a030 - flattened_ast: 584e5c138161625fe0521b6d70a4afdb7d61edd3afdf732baf7947592544f7c1 - destructured_ast: d269e3e0b270797af545cba31a1abcff6d8b9207fbe5b55dc7d1d8c9cb051f29 - inlined_ast: d269e3e0b270797af545cba31a1abcff6d8b9207fbe5b55dc7d1d8c9cb051f29 - dce_ast: 2170f2a5f5bc406fb4a3ca568bb620b7efb71400099b7488aeed0b73ed27c94a + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 7c9f0ce74f48826d06d09fb9e87fd5174c078ccf45730148d1df8fb6dd461aff + unrolled_ast: 7c9f0ce74f48826d06d09fb9e87fd5174c078ccf45730148d1df8fb6dd461aff + ssa_ast: 8df9f0c370f117e5ac4d9d05942029f0d12d06a3bdbffa63e84bd3d1268bca5d + flattened_ast: e268b6f89f35592a3cb2b16d29f6acadfe2f02cd426163f281422912e5c950f2 + destructured_ast: 6613673c6a02221d2f5011e25b17c9ed973c05715890bc3b1543424fa0d33fea + inlined_ast: 6613673c6a02221d2f5011e25b17c9ed973c05715890bc3b1543424fa0d33fea + dce_ast: c25fceb052f34766f276718034b2841ee930f34c08078bff157180012bf6f134 bytecode: 6965d0539f26e7885d7fa616d93bb5326315793d3843573135bcda58cbaeb149 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i64.out index be40849d68..404c98bf8a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 0ce2afa6c49f76de1bff923327067821d9d935794b18880eb05325fc98bc58a2 - unrolled_ast: 0ce2afa6c49f76de1bff923327067821d9d935794b18880eb05325fc98bc58a2 - ssa_ast: eba07c150090f039e5958db93e27b7112c34184899b7d577530a75397a80dceb - flattened_ast: 19f30e85b9f33606903647544df9da30168906d0194d3c9208b957074c706d07 - destructured_ast: e89ed9b8a9671ed95ab657d779e2c470f3a964ea3150e9185aade58a361a6f14 - inlined_ast: e89ed9b8a9671ed95ab657d779e2c470f3a964ea3150e9185aade58a361a6f14 - dce_ast: 8aa05cfc0cf7e6160d4ad2a4e9719271ca777dd554787793b8254eb735850997 + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 8f69afa65e6d94c043c0a8c9c54b63d625f072690cf77570ad846455cee273c1 + unrolled_ast: 8f69afa65e6d94c043c0a8c9c54b63d625f072690cf77570ad846455cee273c1 + ssa_ast: 9e6796c695f3312ec5e645999b21c5ac3b9a3ef65249fdb47be95e1a4c734627 + flattened_ast: 7dcd5c97f92b48ac88377fa487aa7cbac6c6aed50911df969b3f0950b323c219 + destructured_ast: 29e9fe08b15bffd861841907f82e7abd6d8b3dffb60069c04186ba0876e21eb7 + inlined_ast: 29e9fe08b15bffd861841907f82e7abd6d8b3dffb60069c04186ba0876e21eb7 + dce_ast: 71498c2d15a3e14caf5d0890ba63d804171bf3c76200c6bac9be5547ec252091 bytecode: c497462939dadd3b6fa6a391939d169f8caf2da5064471e177e9dc2ca24af1c0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i8.out index 4d3b845b15..d877c57ca6 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: d4865cc29efe577cce3452d2e33634be919c2e5fb4eadeea0496aaadb1167fbb - unrolled_ast: d4865cc29efe577cce3452d2e33634be919c2e5fb4eadeea0496aaadb1167fbb - ssa_ast: bdf6a7034140e0eb8ce398bc23c0f57fde7a1356f967f79e5057fd653f1fb236 - flattened_ast: a72ab17b1e79bd29c86a39322c33b17a5af8df31ae8eb0b9a10c487dcb7070e6 - destructured_ast: 6af6f6f3759ecf0ec7d227be1aefddc900af52da2751b97c3dfd358f66bca5a3 - inlined_ast: 6af6f6f3759ecf0ec7d227be1aefddc900af52da2751b97c3dfd358f66bca5a3 - dce_ast: 936e5a9d95d8ed0458f13f73048c304afeafdaa1574758a95c9cf9409d64ff09 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 391cb0a9df8e057f622d5c83c79bfa76657807042351bbae08bf3dcf4ba84036 + unrolled_ast: 391cb0a9df8e057f622d5c83c79bfa76657807042351bbae08bf3dcf4ba84036 + ssa_ast: 56839525b9653825c4c9566ae864272c317e8bb31e98d1e1b22dae56ccff00a1 + flattened_ast: 8eea658829a7c509d91a72cbc540d578e64468e68fecbbb3429ca87ff72e664e + destructured_ast: 7745854da9e60b8cf22b31988b53423055810743892b68d1580f8c249d04fa08 + inlined_ast: 7745854da9e60b8cf22b31988b53423055810743892b68d1580f8c249d04fa08 + dce_ast: e43d420e6c267b70079b6140c2441847320ec99e3b9f4da6141e5b125bc0b0a8 bytecode: 26f4c496d5e435d186f9ec58390da76af8848cecaaac30920a4daab0e2523a73 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u128.out index c29dc98197..4509e97396 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: f1b9f7890c481b2f219f0be686febd86b8dbe8a24e1ce5bd16bf646c68596054 - unrolled_ast: f1b9f7890c481b2f219f0be686febd86b8dbe8a24e1ce5bd16bf646c68596054 - ssa_ast: e49ae0ced76bcc065947909d91a5849abc29a5ec7078ecdc23b80f4b7bdd62c4 - flattened_ast: ad9c14507850f43695d099ef287d57bc490625791556f982c100796e78657ece - destructured_ast: 4858dbe45cb8faa3eced29f50232ac2d2b80f827a9a49eb5231433ad897578fd - inlined_ast: 4858dbe45cb8faa3eced29f50232ac2d2b80f827a9a49eb5231433ad897578fd - dce_ast: b4f0dd8b8a2df2d96ef0097953388e47336391fa467e75592a8d355e6fbbfc97 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 6b67c3aa6748c75e140ada1dfea7f9177b7659164183ad33b9de7432143632cc + unrolled_ast: 6b67c3aa6748c75e140ada1dfea7f9177b7659164183ad33b9de7432143632cc + ssa_ast: a4d5c71bcefd64c6e89509f81806739eb6449c4076f63adeee3d3b8e5f38a9af + flattened_ast: 23589dc35683a8a7368bebc18e84bd7cd7174fb690f796424c51d5f6982cf5b1 + destructured_ast: 305ee1b40a35875b0097d3d8886443e409d160083aad055bfc1c7f60d92b09cf + inlined_ast: 305ee1b40a35875b0097d3d8886443e409d160083aad055bfc1c7f60d92b09cf + dce_ast: c56b8f91eea609cd79dbb922d712e5e9a28101f646f3dc22992f1b4bb7f69a03 bytecode: 9a6698dbd340581ab6a6ab74e6ac3b2b04d107afafb2ef967cf878a68f90e66a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u16.out index fc18d1f229..0ae78fb115 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 5e41f62730a64c8efa623094fcad5ae995287b58a26cacb389439138a8463176 - unrolled_ast: 5e41f62730a64c8efa623094fcad5ae995287b58a26cacb389439138a8463176 - ssa_ast: e63195e0e32878488beba43d9b3ae0385b643503070a96a98a2ac49a4007e241 - flattened_ast: afffed5131a036b737a6816f079238ca49d4e00de4aaaf2a2244863d3c9c0e30 - destructured_ast: 45a6c1db0ffbb75238532a5106175a02ee0bad0b00013b2554dec1952574f886 - inlined_ast: 45a6c1db0ffbb75238532a5106175a02ee0bad0b00013b2554dec1952574f886 - dce_ast: 2fa867cd71ef5f22559d3d888e286d20b612d005f9420b8eddfb5a66dc871d13 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: e603e42fadd8cd88d7930be9e9bec20a1386a09069b9abf9284cf88de54379b8 + unrolled_ast: e603e42fadd8cd88d7930be9e9bec20a1386a09069b9abf9284cf88de54379b8 + ssa_ast: 638ffb3f0d971ecb5c58de42150df16fe67374f78cd6c639244b0de36feed077 + flattened_ast: 7a484f2ffd453b4e23d30d3edaf32843ce9f5d84da0858890d0206bb4c1da416 + destructured_ast: 614f0a49cf0895cb14d315d8389d7aa56607d3240f5a96aa1338dea9a15ab4be + inlined_ast: 614f0a49cf0895cb14d315d8389d7aa56607d3240f5a96aa1338dea9a15ab4be + dce_ast: f738529388ac8b171a84ebdea5e913717991dec73d3410c1908e0e18bee6c134 bytecode: 382d6faca5454efb2c43e692e7ef46168de32044fd4eb589025fb7dabc62d3bb errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u32.out index c804687ed5..d5f6146dd8 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: a526efb4bcddbe1b6cbb6dbee4e2d9ebcbf34c17d0ebeef9d450cd6153d6fab0 - unrolled_ast: a526efb4bcddbe1b6cbb6dbee4e2d9ebcbf34c17d0ebeef9d450cd6153d6fab0 - ssa_ast: c0e61be9705c7c8637d36daa07bffad940264afe0187bb944f1a299f34d74b33 - flattened_ast: 8486502679e9a74c75bd62cd782eac40bea3b985089f08cf5c01bdca2b8b921c - destructured_ast: 84d35dbd4176cefa9c6c704f67e33e074be078526a047c34de56de228bfc5c21 - inlined_ast: 84d35dbd4176cefa9c6c704f67e33e074be078526a047c34de56de228bfc5c21 - dce_ast: b32b9c96ca014f20cbed67acd548bb80f9c1637f89ecf40f069ff0166cd3c4a5 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: d34c0a3f05e80445b5d2030cf09815bd0ddb804d364da7b75a2f994487ed88aa + unrolled_ast: d34c0a3f05e80445b5d2030cf09815bd0ddb804d364da7b75a2f994487ed88aa + ssa_ast: 49f268b88e6c94ef0bb3c1af7efc8d7f6a7bf3504e368c531320a9842fe16d72 + flattened_ast: debfd1a09235ad814f30a3e725e5b2a8a10473c5daec15f28fcf3d1188c57a7f + destructured_ast: 01ee2dad1e3e30905922b8f3564f14046105ddec2e0c94799023ed5b7cfabaa4 + inlined_ast: 01ee2dad1e3e30905922b8f3564f14046105ddec2e0c94799023ed5b7cfabaa4 + dce_ast: 1e670e76b031994f5eba7b5d5e0d5a3b0fb85fa46c8909fa71087f480ed158e9 bytecode: cdf35ecca4bd73879647e3f8b20554dc0c6bea1b7064b2e62fe501aaf54469e8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u64.out index 9fed21c2d2..16ab4b559e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: 49cd9670abd02e8e23ae6d85e6f53b5835337e975c55734c44be411f059695d4 - unrolled_ast: 49cd9670abd02e8e23ae6d85e6f53b5835337e975c55734c44be411f059695d4 - ssa_ast: 821d10c377c99bdb5412f16862b81dcdb53b902ec1062fe0131df2c56977c175 - flattened_ast: 11f66d1a14ef31d23ad160ea75c6fbaf3b8130a7a06a42a3838bccc2ebe515e1 - destructured_ast: e69c835ec9d3375830bbbf9c169be8458ac98c76118dc7fa3922095969c23b8c - inlined_ast: e69c835ec9d3375830bbbf9c169be8458ac98c76118dc7fa3922095969c23b8c - dce_ast: 58cf37e4d429ea4560c7f42d927e5efe796a056c7d5e76f17ffceb47cd620616 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: 753695dfad18f1c38b75cabe32181613a3eff55d005eeb61f7a04eaaaf708d9c + unrolled_ast: 753695dfad18f1c38b75cabe32181613a3eff55d005eeb61f7a04eaaaf708d9c + ssa_ast: 0f3798aaf7316e03c71623c19eb71f6c97849d341eb3e701bb0fd506c129c54f + flattened_ast: 52f2e63a42eb5ea63c4773c4341f7163de1c7e6d3c6fe15e6d8d4d6d3f95ce91 + destructured_ast: 4bbf8f0c1381c43fe4fe4aab64919f4deca4d9b754ec971e621fbca2c45181c7 + inlined_ast: 4bbf8f0c1381c43fe4fe4aab64919f4deca4d9b754ec971e621fbca2c45181c7 + dce_ast: e60308647d9c860f6de6bfbb359d13d289db7d9fdd56a425d3fdcd4719a51a26 bytecode: d7b1e51dba2a0e4e06e66b15ff10ea2c3d799073949f6b155489a46bbae70395 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u8.out index c0eee56c75..13e534456f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/keccak512/keccak512_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: 92781842fbe54494a287b357d34fa26acf25be9f5a3afe3928e4037dff3979f2 - unrolled_ast: 92781842fbe54494a287b357d34fa26acf25be9f5a3afe3928e4037dff3979f2 - ssa_ast: 5285bf93bc44a2e97086f4202b9d0d4805bddc1ab540c480dbf18c92cf303ebf - flattened_ast: 5956cf771e6d12166f6c069f3569c38dde918af9c8f450baff8e054cc35488c9 - destructured_ast: 8e55814177bf13286d8989109a06d51730c78b4db0539ff0970a74b6da485ec4 - inlined_ast: 8e55814177bf13286d8989109a06d51730c78b4db0539ff0970a74b6da485ec4 - dce_ast: 43cf5adfc413b4c5f7afa2ec950672932b7f1c223a1405484181750ade70af06 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 06b0e2418b127a4cb2ceb43d5d36f3765c3fbc867a6e892d792c7dcf32e0141b + unrolled_ast: 06b0e2418b127a4cb2ceb43d5d36f3765c3fbc867a6e892d792c7dcf32e0141b + ssa_ast: 66a99d5a5bbf4baeda3bf589357584345cb927d2088ad167cdf3a32855257ebb + flattened_ast: 68d392b71788ef3646d2e3a4d8e9955c6d673394a4e019557b6c75d72a2c50b1 + destructured_ast: 12573c63f016812eec4cb085b8881da33dee35b23723cf10ca63889afb41ec53 + inlined_ast: 12573c63f016812eec4cb085b8881da33dee35b23723cf10ca63889afb41ec53 + dce_ast: 86d29e1c1c1339df16745950ce4f845aaa20da8ef831bf237874bb6846f1e11c bytecode: 1729c5267f2280cfde27fd1c7806b03bb56e95306b8c269d0c186f05365ccef5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i128.out index 977c0537f3..732528bb2c 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 19b19a925707d558fbacf730ece25ded451adef65c2cd505919b5f32d2184f17 - type_checked_symbol_table: 87e0cae6b11a1ca83873840d90ede83107b99f2e049cf65d678c104cdd621de0 - unrolled_symbol_table: 87e0cae6b11a1ca83873840d90ede83107b99f2e049cf65d678c104cdd621de0 - initial_ast: be0377fc8cc0a89aca7fa993b36cbab4bae024f644986833e6f6a611a0718dc4 - unrolled_ast: be0377fc8cc0a89aca7fa993b36cbab4bae024f644986833e6f6a611a0718dc4 - ssa_ast: e792dded8bae09270bdb10d517ddc8a4b25b44c4dc5e97e9b74d35bd467faa24 - flattened_ast: 9fb886ee1015d1c094b8db86a9abb4b2a437145beb95eb98e6141f165ce5f96f - destructured_ast: bcfad287186b3fff08c0bf1671c3511437bb7e6beebf2b570d65b2060b24c27a - inlined_ast: bcfad287186b3fff08c0bf1671c3511437bb7e6beebf2b570d65b2060b24c27a - dce_ast: d7dbbde8bfa6c16563da8aa7da39fc6c922b4806aeb61baf78abfad8291034a2 + - initial_symbol_table: 28c4307e4043e4279ffa0ae11cdbc6af994d13e5436eac8f69044bbd9c08859a + type_checked_symbol_table: 70c2feee8f746e3ee7cbd13d492b6ffe2a7f91a9a577a63c15ec0d678caa2ce6 + unrolled_symbol_table: 70c2feee8f746e3ee7cbd13d492b6ffe2a7f91a9a577a63c15ec0d678caa2ce6 + initial_ast: ac18c2093c949c24e62d332bae1bde3a71891ce33f788413742dd107c5f49ac8 + unrolled_ast: ac18c2093c949c24e62d332bae1bde3a71891ce33f788413742dd107c5f49ac8 + ssa_ast: ca5f4e92b6ed7b4a79ec2e372caf5233d8e6043b7a7c49ab5396030330f9aa94 + flattened_ast: f4d3c5ecc9b8bf05bcb7146b74c29ae30507df01012ed70c28e90cc3b8310b2e + destructured_ast: 79bd016e1e64a397b31270a9150a42b25642cfa274e2891f865e6a52615aa422 + inlined_ast: 79bd016e1e64a397b31270a9150a42b25642cfa274e2891f865e6a52615aa422 + dce_ast: 8c038b3a2c85cf8094e5cae99a6f4c98d1f949f986341199c9e27b664c14f71f bytecode: c29ba43cc3083fcfd4679f145a1338868b6e34800515be8eb9e7b7c66e36bd72 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i16.out index 2f03fc8c8d..44d155a981 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 830c388d4733abf66c4d8af668a7304d76548823d6dbf73564685cb99ccf15f1 - type_checked_symbol_table: 30f965c7244a2b281b190af70f2ad9445c93610e8b7745353b6aa624d7fd3181 - unrolled_symbol_table: 30f965c7244a2b281b190af70f2ad9445c93610e8b7745353b6aa624d7fd3181 - initial_ast: 6ba5055fe1ef1a902e56b936ed7743be0c82cb15fefaf2504ac9a2d9421439ba - unrolled_ast: 6ba5055fe1ef1a902e56b936ed7743be0c82cb15fefaf2504ac9a2d9421439ba - ssa_ast: 1b0e6f3c1c7beabe82e347bc5c6566b3f7821f6b5a940301ee29936cf7501b29 - flattened_ast: ee73b7ec28da5afbf67e1e08f7728c286697b82c767b16ed6b444208ee62fa18 - destructured_ast: cf6b09abd1d8928fa4ab414063a2d6f8d7e9399fd6a09c79e108290c761aacc1 - inlined_ast: cf6b09abd1d8928fa4ab414063a2d6f8d7e9399fd6a09c79e108290c761aacc1 - dce_ast: 7c2fe7d80faf55f9a90945729c5cd431473c9e8f84cf21335b19c4b6386d51eb + - initial_symbol_table: c21b879a1638c67a62f26e7d992f3eb8f619beafaca0bbb68da82b68a9920e12 + type_checked_symbol_table: a03ef13e7b8ea3096cb19b143ddaf2ea7a7354d3cb0da92108b0e24234a1a94b + unrolled_symbol_table: a03ef13e7b8ea3096cb19b143ddaf2ea7a7354d3cb0da92108b0e24234a1a94b + initial_ast: 68c57acf1b13e76a0db6b825bb07c9eea9ef0e5723fa05dfe7de9aa07756cfd8 + unrolled_ast: 68c57acf1b13e76a0db6b825bb07c9eea9ef0e5723fa05dfe7de9aa07756cfd8 + ssa_ast: 80733bdd127720a64b7ad0322bb32553be4013fdc38926a876ed39981f783ae5 + flattened_ast: 5ab475d3ec3b70b8e1909ea3d231999d46d62e8898d4abc5e7e23f718397cd30 + destructured_ast: 0eb05a688c33b30c9f75c48768208b99ba0c7fb5af432cb0780ee6c45f2a02e9 + inlined_ast: 0eb05a688c33b30c9f75c48768208b99ba0c7fb5af432cb0780ee6c45f2a02e9 + dce_ast: 3bae7c96aef939a41eae49df169584de7344d8703efe07933c2cb402a31eaff2 bytecode: 6766245f5ffcb57b8dfa09dd42a53b8b42c70c6759ba4c4d00f90b0b91d2fddf errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i32.out index c7ddf8e0fd..94fda2b526 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 947edd0f2be3693d393959aea7236a7881f2b5fcae9b0888294cfed3cf6bf2a9 - type_checked_symbol_table: c6e2a52c6482a42232dbaa5e954a65d659b52062d275aaad2434959e8602be31 - unrolled_symbol_table: c6e2a52c6482a42232dbaa5e954a65d659b52062d275aaad2434959e8602be31 - initial_ast: 5c99ddd9379ba041ec9fb8dee8146811cd298f248d0edc4eb0c9acc55748d821 - unrolled_ast: 5c99ddd9379ba041ec9fb8dee8146811cd298f248d0edc4eb0c9acc55748d821 - ssa_ast: cac71521c285f9b99b76db4b37a05d223e43044a667e723ebbf841838b154b9c - flattened_ast: 085faae48939e61a7643e62f50fbc23482fb4c3fbf2e1c53d511240325d09ba3 - destructured_ast: a8bbc0961208136acb96b97451736bc980dacc9eb75bfab9a738336b3e44ef47 - inlined_ast: a8bbc0961208136acb96b97451736bc980dacc9eb75bfab9a738336b3e44ef47 - dce_ast: 6fa9f26c93afe676f140b95e0d2bbd5485d7ecc60759aea65e714923bd09284b + - initial_symbol_table: 27b9c97ca12d525398f812aa882beaae1fe7f9e5ada12856b3c092f9d670f478 + type_checked_symbol_table: 9ed99572a1da75858ca32f330db7b38a47d341b2a9f9d160c1b2702a9d1c6278 + unrolled_symbol_table: 9ed99572a1da75858ca32f330db7b38a47d341b2a9f9d160c1b2702a9d1c6278 + initial_ast: ba73bae8e9751e12e286e008ce28f8d2b33810f22361368e39b911013dcd10f4 + unrolled_ast: ba73bae8e9751e12e286e008ce28f8d2b33810f22361368e39b911013dcd10f4 + ssa_ast: f1ed70a29f40a59421d0399eb63e9b387a5ff942d6d09ee6838d8e03cbd1191c + flattened_ast: 0dd7a91df3b65dc58e38a15b8e0e3cb045726f3939e28514127311a6dd28bd09 + destructured_ast: 7e39ea80453e1a2e4f83b5cb0f3030ddde65d190e621e0021721fedd01528b22 + inlined_ast: 7e39ea80453e1a2e4f83b5cb0f3030ddde65d190e621e0021721fedd01528b22 + dce_ast: 6a8762957b8635def0e3c436996ba28c1cf1f836d5956324b825a5a035bcc608 bytecode: 47dce131034f7956142a90086606e4410ba42894907ea54331289beb05ea1493 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i64.out index bee895a357..2b336452ee 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 59837313e60da92bb1f35a6c2b7a72110c657835b305b3d2cb64aec415151fd4 - type_checked_symbol_table: da927b7a2140796a7f365f661cc2de01427503f8cb9152fb077430bad1672125 - unrolled_symbol_table: da927b7a2140796a7f365f661cc2de01427503f8cb9152fb077430bad1672125 - initial_ast: 09ebf93d11f8ff6cf3ddbddfd7d47811bdbe27e0f4ba58853aca86797771fcdd - unrolled_ast: 09ebf93d11f8ff6cf3ddbddfd7d47811bdbe27e0f4ba58853aca86797771fcdd - ssa_ast: 864e1e230b8809e9f780196ba6f205eecf4c20647d460781c783f63500aa41b5 - flattened_ast: 296b4f40a0d58b73a2c494b0032c055f0a7d37d05edcf2d78b9d95fef41d664d - destructured_ast: 772082a2015e649bd65cc20c2fb738e6faa3594556bb7abd1563cb068c33cb46 - inlined_ast: 772082a2015e649bd65cc20c2fb738e6faa3594556bb7abd1563cb068c33cb46 - dce_ast: 03405c64def1b35b809dc52cafd70eccd1bba72667edf47c9d783bb15a7a7f48 + - initial_symbol_table: b5fb6105370ffbd799ad58a37f877153bf3bc3372525bc5cca6abf5ebd6840ec + type_checked_symbol_table: 5088e675fda57a1624ceeaca834f5afa2848f2946f903f8b1c66d94c124046f1 + unrolled_symbol_table: 5088e675fda57a1624ceeaca834f5afa2848f2946f903f8b1c66d94c124046f1 + initial_ast: f2966f2dc8692ceca476d2501e53f8b86d647399cc6183f8f61b0a1b23487743 + unrolled_ast: f2966f2dc8692ceca476d2501e53f8b86d647399cc6183f8f61b0a1b23487743 + ssa_ast: 07457625f05a39296f7a769d527ff03eaceb859cb48390e49062c80e0e0d6100 + flattened_ast: 4f3dd974257c52a5d179f8ec5fd2e7a06453e28977467aeb4c658fe7790c733a + destructured_ast: 8311cdfb556b12abcbb9fd80b79c7b93282f34f3d602ebac9e554ca3dbaed345 + inlined_ast: 8311cdfb556b12abcbb9fd80b79c7b93282f34f3d602ebac9e554ca3dbaed345 + dce_ast: f648c28b7d65dbfdc81729de92f0cc8c7b92d3a90cc725ac530c2df475d69110 bytecode: afefae5391b2a9683bdcb8774d6d3642e2fe1cd9aee86392a544da3d06059483 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i8.out index 86ed181380..59a07f5a7a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 54caba2c5d13b24f692e17f01ac18338dac179c0a4afbc95627c9538082bce7e - type_checked_symbol_table: d9d010302d503793329d535d425321b9e67a347da5822e2c9521fde7e0f7441a - unrolled_symbol_table: d9d010302d503793329d535d425321b9e67a347da5822e2c9521fde7e0f7441a - initial_ast: c058ec3111a9724cd7d86740e532d1ac5636410a34a2d91fcd50039e10432d1e - unrolled_ast: c058ec3111a9724cd7d86740e532d1ac5636410a34a2d91fcd50039e10432d1e - ssa_ast: 7812965534c70d18dfb11d2ef1d6b4769ba052e0924976828aa1b5fc7bcabc92 - flattened_ast: 16d1b65bfef7486933c494fd591c81ed4b513db50bff11bccf082bc9c3fcba10 - destructured_ast: 957ea3cea2817957170058f4af1462a3afc40e4b148136cac722e99fada164b9 - inlined_ast: 957ea3cea2817957170058f4af1462a3afc40e4b148136cac722e99fada164b9 - dce_ast: c22a422873aa964e93e21189740c0552010b1468336c72f474bcd6284f41f6ef + - initial_symbol_table: f80545aa3ce3b052d8f62856298c723eceee61031fd7eb740add66a6c83b2784 + type_checked_symbol_table: 85dceddbdd1f2473643ee725dce1aa8b723e481f648eb7f81eb1ee1bc91cfc0f + unrolled_symbol_table: 85dceddbdd1f2473643ee725dce1aa8b723e481f648eb7f81eb1ee1bc91cfc0f + initial_ast: b3df39cd472bfbe76bcc8df5cba7f361aefcb28d25afe323b0b5474f7d8adefb + unrolled_ast: b3df39cd472bfbe76bcc8df5cba7f361aefcb28d25afe323b0b5474f7d8adefb + ssa_ast: 156dc3202be8ea868286787236536972be1649ec7de7078d564f84e65b06ea60 + flattened_ast: 98d7ea00ff25e76fc6afdcf78de803bb3d5b17464ed282b51253310b47eb9472 + destructured_ast: 9b3d946a5b7d725bf5c50be427f8bf4e6986a745c09654c48ec72048d78b9250 + inlined_ast: 9b3d946a5b7d725bf5c50be427f8bf4e6986a745c09654c48ec72048d78b9250 + dce_ast: 3befb895113d37ad5b25035a77f04151e005ac56fa7cd5887b44e53dd80028c4 bytecode: cf1f61d314fc1a485ecb3251ed0ecb0a75b9db0af739b9e5cef60f89639cfa8f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u128.out index 90f62c7f40..e42d6d6a49 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 7a6568552661c1a1832c59ee4b3f476b8d3f52ad072f0fe5654c3dbc82d02ad3 - type_checked_symbol_table: 7d8809290b682f01e74b3e9ca5aeb640b5f6ce76e2cb469315c53ea93a56f568 - unrolled_symbol_table: 7d8809290b682f01e74b3e9ca5aeb640b5f6ce76e2cb469315c53ea93a56f568 - initial_ast: e1b8b32820d32a7ba10811f2a223a7b95e9be30905a7e979be54cda42f3b0178 - unrolled_ast: e1b8b32820d32a7ba10811f2a223a7b95e9be30905a7e979be54cda42f3b0178 - ssa_ast: 60850be2a26fd914668a53fcbf5a2e66ce31bbcb1ba966fe4b69fa2aff84a958 - flattened_ast: 5e867f27de7be5f54f196a738d4376adbe12f4ea6b0ca6d2779976651c3f81cb - destructured_ast: 6f89a8117d60702c4d373c1040dcd4d133a7ecd2a9be5ab4cb0c7949ce4cec2c - inlined_ast: 6f89a8117d60702c4d373c1040dcd4d133a7ecd2a9be5ab4cb0c7949ce4cec2c - dce_ast: 0cfc412670975032073b5f1dbb7962319e6a4d02412ec895c669b167aa3f5a34 + - initial_symbol_table: 4ec498250bdb2c8a02a929c4860713b357d368756d56fad58f4e309e2ec5adc6 + type_checked_symbol_table: 13b2f31d3868fcbc4a7c69d2fbd12e286f263f28a748e5ceaa0f49335c62cfe4 + unrolled_symbol_table: 13b2f31d3868fcbc4a7c69d2fbd12e286f263f28a748e5ceaa0f49335c62cfe4 + initial_ast: 15f4c62a174061e63394697dd6ddd29f61c071d42d3e97024c6d1ce621bc95c3 + unrolled_ast: 15f4c62a174061e63394697dd6ddd29f61c071d42d3e97024c6d1ce621bc95c3 + ssa_ast: c97549c0cf7ddbfc2d5908520adac281ca8415d7b4cdd4f1e412f0945ee97177 + flattened_ast: 97dcb291379bc712743bf643fc497f4edde4d4f5575669ec49b72dae92e5dd21 + destructured_ast: d8a942815e44b3c887e7a354540809260b2d7e412490a8b4ec04b5a369fa17d0 + inlined_ast: d8a942815e44b3c887e7a354540809260b2d7e412490a8b4ec04b5a369fa17d0 + dce_ast: d794b8152769f2ba6f0647aa892c91c392957ec9bee966f301af76999af26661 bytecode: 1f9a639115c8bb61557fb100794fff5564c633f937113875ffb5b10952bbfb02 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u16.out index 8f6cf248e0..eef613331f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 5c2870869c87471ba4ff3c016d97971ca40f327f9204ee9a58cb4e09790a44de - type_checked_symbol_table: 20a15de9c6a3c9100b809c65f7f08d0ef6c86946d193c17efe329ac17a9097d5 - unrolled_symbol_table: 20a15de9c6a3c9100b809c65f7f08d0ef6c86946d193c17efe329ac17a9097d5 - initial_ast: 9a574b6d40f4ef27545872e4336109d8b39ac22f5d9f15c097aa551428e0ba59 - unrolled_ast: 9a574b6d40f4ef27545872e4336109d8b39ac22f5d9f15c097aa551428e0ba59 - ssa_ast: 2e2fcdba881c6c9e2080a186203fe4b73a895846b2f1b9565a3e3f339b0ee8a5 - flattened_ast: 5c69d7ed914c2130cff1a3e11205c4cbad74b8024e2616e0d55cd428448dee2e - destructured_ast: 50a4cfec9eeaa9bae7c0c0c9536c430ee58e9c3f6ccde0e6090081627d38f9a8 - inlined_ast: 50a4cfec9eeaa9bae7c0c0c9536c430ee58e9c3f6ccde0e6090081627d38f9a8 - dce_ast: 493a5dad15aac0e9fdbd397c8e8eaf8e5716cc7589d037f696a0e27c10f6a0ea + - initial_symbol_table: 9c7c0c296616e1a7c0afc04ba602a96e19c4ff1bf4a0d01446f326ef32c28fca + type_checked_symbol_table: 0fcfe6c7056bcf70692335b23674247cb8aa2478135d85c2b8bbb48db7a85ac1 + unrolled_symbol_table: 0fcfe6c7056bcf70692335b23674247cb8aa2478135d85c2b8bbb48db7a85ac1 + initial_ast: 547b3bdbd8480a720e570f3bdcb85c3f3b54de84d1eb195265fe66beeb2b82a8 + unrolled_ast: 547b3bdbd8480a720e570f3bdcb85c3f3b54de84d1eb195265fe66beeb2b82a8 + ssa_ast: d069800e6b3710926e07dccfb1191c7ed8934fb8a3e687333312de8b247e10b0 + flattened_ast: cd6ac9a767a5b8624e50be38230c9d3db9ee524c075506c7c3b1e017c9542702 + destructured_ast: 5dd220f4e22276e6f610012821cbaddeb5c5a135c3956a7656ed6cd6f5469776 + inlined_ast: 5dd220f4e22276e6f610012821cbaddeb5c5a135c3956a7656ed6cd6f5469776 + dce_ast: d88294b2415711712cbde59cec86b1f4bf6b7d7feaa4b3c162a751eb379ddc67 bytecode: b34f23a9e355f5c390ac8e515b847321dbae47a2ce02a361bd07626909cbf9f5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u32.out index 0355ea171c..f1c6622d61 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8eda8fdbfcd970ea91e2ecd0b51fd969cb6830bdf243e6a204ac699a615c6e99 - type_checked_symbol_table: a81c1d6d2e264742948738f361482595d9d8c251799089528736738667aaf523 - unrolled_symbol_table: a81c1d6d2e264742948738f361482595d9d8c251799089528736738667aaf523 - initial_ast: af579ee7e51908c8ef2fb93598f17b7e003cf37ae426b4b472361de07b7d1a3e - unrolled_ast: af579ee7e51908c8ef2fb93598f17b7e003cf37ae426b4b472361de07b7d1a3e - ssa_ast: 68b8757b9d43bc67b4e5afe1034bd266d6c680d28be0de5e68a572f32efb4546 - flattened_ast: 576030da3476639302122956221c38ca82c1bf5b7218fe2eb333a8c99eaab239 - destructured_ast: 212e57a12eea2c1422c7b85748405d04bf72cf687a908a917c5c659b13c822cc - inlined_ast: 212e57a12eea2c1422c7b85748405d04bf72cf687a908a917c5c659b13c822cc - dce_ast: 0efd2edd867ce2bfd78e52b072e3f076dc9a185a6686d6c71a4efa3476902ec4 + - initial_symbol_table: 4f6209e725c0c14fcc39ef53ef0c8fc6565e3ec93af3213c858bcf866f26c430 + type_checked_symbol_table: bcf181688d49cdf27237905d85fc304c910f0c8058ff9774b675ed0dab6c9fb9 + unrolled_symbol_table: bcf181688d49cdf27237905d85fc304c910f0c8058ff9774b675ed0dab6c9fb9 + initial_ast: 2265d86f4a004ce916599a7f53a21a5814746a41c462bc9b8db1574f41a12381 + unrolled_ast: 2265d86f4a004ce916599a7f53a21a5814746a41c462bc9b8db1574f41a12381 + ssa_ast: 1ac79d347e3c2e087c2b2604b4b1190645e6d1c66a50cdfd11aedc04c1dea3a3 + flattened_ast: daf517e12e666355a3cebb0583bf63007e8eb0d8a69407cf1e7c1f53fcab0a26 + destructured_ast: 785247ee56d098af7c7ec6bd2929bc49b30ea343ecc43102f53ff571c6203a2a + inlined_ast: 785247ee56d098af7c7ec6bd2929bc49b30ea343ecc43102f53ff571c6203a2a + dce_ast: aef14223d5d1721b42bfb32a44410df333b3d044e3d12de6b8e4341d9915cddc bytecode: b36acadd6fb61cbf63925f25c8e21dd263306affba9cb22023189595884e7e12 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u64.out index c44270b781..54386541bf 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bba7960b14bd8badbfc09b7210f41fb597599ab28266baccb3bc6c4178ea4bd7 - type_checked_symbol_table: 72e64e58ac5afd6a0adfea8ccc583af9a541b181e17055cbefe726d776193d9c - unrolled_symbol_table: 72e64e58ac5afd6a0adfea8ccc583af9a541b181e17055cbefe726d776193d9c - initial_ast: a0dc3d651d17d52034fa5930d879a6f0cfe4df549091641617e6cbbce9d50167 - unrolled_ast: a0dc3d651d17d52034fa5930d879a6f0cfe4df549091641617e6cbbce9d50167 - ssa_ast: 013e1e93cf8ef3a3f958229e3a111cb169e748fabe760e8a13c4254f4c698c6f - flattened_ast: 1e6e2254db269ac9b54a3a4efbc8e260a72d43a70891279ac7348fca2f02fd59 - destructured_ast: a6771c9084dc5371fb3cf7ddabdd29a6bfb69894625a63fdf2aa75bb216e2fba - inlined_ast: a6771c9084dc5371fb3cf7ddabdd29a6bfb69894625a63fdf2aa75bb216e2fba - dce_ast: 66748345ae9b09a97c40f213800dad6de47e17e805402832ebad595b1cd40eab + - initial_symbol_table: ce5198f1b98a4adfe9e49aba6c8e2668f28ea18ccd63c8f2e8c406a6d273c162 + type_checked_symbol_table: 6cfbe326225dda20ec079c6b22cae96d568427e34b0abdb8a2b13584ce9f2e4d + unrolled_symbol_table: 6cfbe326225dda20ec079c6b22cae96d568427e34b0abdb8a2b13584ce9f2e4d + initial_ast: 1729ec12a083e5bb2f61742fe69976e1e7005a4fba16a1b066810e08dc90499c + unrolled_ast: 1729ec12a083e5bb2f61742fe69976e1e7005a4fba16a1b066810e08dc90499c + ssa_ast: 70d1dc6585c0204e4b10697da61e84180493f828b36e45a7f099302d2717c10a + flattened_ast: 99b61d4cccaa9c0765d533c3c32043d711dd9c0e2a922ac2ad6b96e7f80fc0ab + destructured_ast: e930468a5fb8b0164d00ae29eb60081921adcad6fa74e3dc88abfa686dc19f00 + inlined_ast: e930468a5fb8b0164d00ae29eb60081921adcad6fa74e3dc88abfa686dc19f00 + dce_ast: 8aea43d4efbb84cf6b254725be4ef9e0cbf22297900ed6dcbcdc79625ba7a36b bytecode: a86b84445b2b354771713da4b78c48dea3e581c11633a985b04b2de7145a0999 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u8.out index 79e53e50a1..3ec73ad9f2 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen128/pedersen128_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6676cadaa0576d58d0d2723c98a8ea875fdec6ca4acaac5b1f0c70bc02580da7 - type_checked_symbol_table: 2aa4906bd19aa37839364bfecd7d544509e1887395be3bf131c3ba28746da1f9 - unrolled_symbol_table: 2aa4906bd19aa37839364bfecd7d544509e1887395be3bf131c3ba28746da1f9 - initial_ast: ba85cacc7cdd2d601450f37d5a6b8f8d128f05f10023d5b496ccb2c66515d2d2 - unrolled_ast: ba85cacc7cdd2d601450f37d5a6b8f8d128f05f10023d5b496ccb2c66515d2d2 - ssa_ast: 73dd3eafecc9e9133ef16c9f0f596fdd387b390ad2c0e7173c5f67c80c1e19c4 - flattened_ast: fffad497419cfc0b66923096cb4679c7f8bcf1b640095c63cca18becdc1fe7db - destructured_ast: 87cf414da4f453667cae1bf6ba50508d569bf1e80546e2bbaefdc045feb59c4b - inlined_ast: 87cf414da4f453667cae1bf6ba50508d569bf1e80546e2bbaefdc045feb59c4b - dce_ast: 455d42bfd9a0cd97ae466ed2b460781872b3681fd1d1118918b01796bed2e6dd + - initial_symbol_table: f00364ba613dd752ae147fd2b0bd0c6581112bd637cbc6b1a194e3cf8df8b6a4 + type_checked_symbol_table: 5009beec148f5daa76a290f6642d897c70ee461760c43b1a48283acee68ecbd3 + unrolled_symbol_table: 5009beec148f5daa76a290f6642d897c70ee461760c43b1a48283acee68ecbd3 + initial_ast: edd90c346292a0bad65079753ea46c190a1cf353936099af1d37bc2eacfbe05a + unrolled_ast: edd90c346292a0bad65079753ea46c190a1cf353936099af1d37bc2eacfbe05a + ssa_ast: 45aab059e62d93a72699f39f79f0ec7088af4121823a22fef09b952bb5ac3567 + flattened_ast: 74d8fd7543cbdeef74038148464ed6a37c29fad175750bad4f7e5eebfd33c967 + destructured_ast: be64bd5f475bc37501d2b10f6cb66a43aed176205524673547753393892453c1 + inlined_ast: be64bd5f475bc37501d2b10f6cb66a43aed176205524673547753393892453c1 + dce_ast: 7da66364f168496132706756bf3d726ddc24abe15d6d6908f6c62ddf80e2918a bytecode: e335101f9a6607193a53e022c22c7023d7bdecc843bfffec6c25d75e7c403a4b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i128.out index 1d79f63155..dc8770f15b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2fe1e979f4a832d5168899ef36a93b0239cf4838df3fb3b9204d13aedb2cfcf6 - type_checked_symbol_table: d1e0df8c7eefa259616225da1646c9c049f2122babaa597fe27a7a40b79214f0 - unrolled_symbol_table: d1e0df8c7eefa259616225da1646c9c049f2122babaa597fe27a7a40b79214f0 - initial_ast: 559b55849a63f07016ae4858a5e0e0867d2ed4fefa790a0b869166a50efc2d6d - unrolled_ast: 559b55849a63f07016ae4858a5e0e0867d2ed4fefa790a0b869166a50efc2d6d - ssa_ast: 8457861db37f6ffdbc4d8b67174d6c35fd85ee4fdb2b07eb12e31a96bd052e5b - flattened_ast: 861b088e4defd4e9dc07b087256ded607fe3b9672c9c7053dbc64270e8ca36f5 - destructured_ast: 01d4cbdc01acc8374882e32b5605df602cc55dd8676f600ff618aee0212bd386 - inlined_ast: 01d4cbdc01acc8374882e32b5605df602cc55dd8676f600ff618aee0212bd386 - dce_ast: 0b2ef4f0bdb8a148ae16e1fd173b1a3501f703118ccbe630047103df64f8753d + - initial_symbol_table: 2f7ca693cf23e5e224b34bef0a89592430371a3bf45cdcceab96efcf70d329c0 + type_checked_symbol_table: 29d8123554ffbb3baa7c7b41d6e6e04999a36ea923ccf5929a4445230a86b338 + unrolled_symbol_table: 29d8123554ffbb3baa7c7b41d6e6e04999a36ea923ccf5929a4445230a86b338 + initial_ast: bad85678e714eba4a33a975c7e781f3c22829e346a7f8e2964ca3b2ef76aab53 + unrolled_ast: bad85678e714eba4a33a975c7e781f3c22829e346a7f8e2964ca3b2ef76aab53 + ssa_ast: 8837e614565eb3ae2ccd2ef06f5b60a96635f4d99617db76dfb01a15d799da00 + flattened_ast: bc4218c6f2fa8a991fce514b59811e60d10c74754fb32fafeca58ebc5bfe7c35 + destructured_ast: 3886c170599693c1ba8ebc971e438a992dbb4a302fbf1402f620ffe0a6b10108 + inlined_ast: 3886c170599693c1ba8ebc971e438a992dbb4a302fbf1402f620ffe0a6b10108 + dce_ast: 8b36fa4d3610d23fe97249cd9dc194a7c128e17cb4b47b7c1f1384c6b2622b77 bytecode: ff900dd886d1e12097dda0edc605cf1e5490623bb40e46357b74ad4951608c2d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i16.out index fe13d3617c..2749908dd2 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ed55b4248ad38bb891ed3695575a8031ed5822b4e35d3b6a28548a385730fb68 - type_checked_symbol_table: c70ce6595176bb97242ee3a8426763bb2cd076bf05481ae855efdaa30e53d9a4 - unrolled_symbol_table: c70ce6595176bb97242ee3a8426763bb2cd076bf05481ae855efdaa30e53d9a4 - initial_ast: 8d079604897c0dd21c732943efd426fbd5cbf94aa1a5f94db931bef826d5a0a8 - unrolled_ast: 8d079604897c0dd21c732943efd426fbd5cbf94aa1a5f94db931bef826d5a0a8 - ssa_ast: b2a0ef544029525fcfb021fd1750fa25e86dc220a0646dc6ba52e03da3358735 - flattened_ast: 3d8f3b26e7332c8fe5cb9951137a047507dd6a86d86511b1b9ff09f0ab28570f - destructured_ast: bd77e31db8d4d05017e05f915349e9983dbf3f9de2b14360640737928362e017 - inlined_ast: bd77e31db8d4d05017e05f915349e9983dbf3f9de2b14360640737928362e017 - dce_ast: 283b281789ff03bf5201320f68b23181cc666820f7581fda3cac8b40ee202c5f + - initial_symbol_table: 87b6058b62f869d6203551ca6ef527668f015e9e929600669c7d755767a161c3 + type_checked_symbol_table: 9417ac51b8f2d345cc8508579908af558ea110027d7f3dbad53f339c15faf764 + unrolled_symbol_table: 9417ac51b8f2d345cc8508579908af558ea110027d7f3dbad53f339c15faf764 + initial_ast: 47abb1bd671712bdc3447cc5dc6d28be4242518184c84c399a5bc18540a990e4 + unrolled_ast: 47abb1bd671712bdc3447cc5dc6d28be4242518184c84c399a5bc18540a990e4 + ssa_ast: c98582dd86f933ce54ec4289b55a0bf0eab76768500e45ca25301feb737a6b8f + flattened_ast: 501e496700392b12d2cd60902ead16b903af7880104a4da23c278b947a1af920 + destructured_ast: c8a2b62c3cb021865eda854cc4bac4657246232dda0384c6c5af15c6177ebf87 + inlined_ast: c8a2b62c3cb021865eda854cc4bac4657246232dda0384c6c5af15c6177ebf87 + dce_ast: 97ace162a7091f807428c3db91f6344a6a4ae8eaf4a4dc47024c2cdbdc869087 bytecode: 90d51485318a95b7f82e7ac7849f998a080fe51ecda226ada434c81ef99a2847 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i32.out index 2bfbac3d55..32b633ab2a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8004ea2650e11a66fead4d789454118fc9e118a11914ceb0550777de38d03ce6 - type_checked_symbol_table: 156b8dc17138be9c0af2bbc981e6110c2cbadd9065b6820aa653b2b6da19a333 - unrolled_symbol_table: 156b8dc17138be9c0af2bbc981e6110c2cbadd9065b6820aa653b2b6da19a333 - initial_ast: f3d65cea72064135c222e9ef75a881eac65f7e5f0a85184894daa14261f46a60 - unrolled_ast: f3d65cea72064135c222e9ef75a881eac65f7e5f0a85184894daa14261f46a60 - ssa_ast: ed651b523fa48ffaf4edb2bf39ce41951dc4ef5a35c9ff4cf04446ca9f48a089 - flattened_ast: cdb7a9bb10bddadf1b33dc4ee12a3b55420d36097e8dee651804f7ac23a2c936 - destructured_ast: 425d313a11bb4bfd5285db278c60dbe530de964987c1c66079e2f182987e8a2b - inlined_ast: 425d313a11bb4bfd5285db278c60dbe530de964987c1c66079e2f182987e8a2b - dce_ast: 1d7efa120d3d135436fd41381c0a91e5a0a9fd8c438c6a29477fe987e3a4ca81 + - initial_symbol_table: dece2ca29809b570697f5484a501cf5bb4c6f639647de8fc8fcb17e4c1e7f691 + type_checked_symbol_table: 2aafeeee959d036fbde5c17f25cffe36e7e5224a81f740ebcab237810815e4c8 + unrolled_symbol_table: 2aafeeee959d036fbde5c17f25cffe36e7e5224a81f740ebcab237810815e4c8 + initial_ast: 9ba4e2c24f493f592987d4bacb552d9d8b2a1e45bd70168b2bfeeebf782f69f5 + unrolled_ast: 9ba4e2c24f493f592987d4bacb552d9d8b2a1e45bd70168b2bfeeebf782f69f5 + ssa_ast: f5da27b63884b17d1899edf0173d0a61a4b4197b92f4faf8b44b7fcd5d59e775 + flattened_ast: e2d350fb97e66f10545fc48417d6e192f9ab9e690786c9f8772a3515710b1abe + destructured_ast: e5ea3deffc36d6ddfb8968258ea254a1ebb22fc1535865667a4c4f23b298d9d3 + inlined_ast: e5ea3deffc36d6ddfb8968258ea254a1ebb22fc1535865667a4c4f23b298d9d3 + dce_ast: 8b4d2165f0b7e41adadb938c76ca0bbc5e22611cc8d68b765a2f83140c0208aa bytecode: fce545d86eb7b3a7d6fed930294f52c2289b6d7971b333cf047811bde82aa8c2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i64.out index 72beb88d05..c3d4797f77 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 72d4640c64c6dbaa439649e084c1f032fabcd7a90193fdbf8f5f58cd3c8b1483 - type_checked_symbol_table: a08c10a55b966e4f35c7accfef398e9d67b300a400209364db57e33d40c42894 - unrolled_symbol_table: a08c10a55b966e4f35c7accfef398e9d67b300a400209364db57e33d40c42894 - initial_ast: 3912305030c10202841d863f6e1282d5b060387a259273a38071d21205ecb02a - unrolled_ast: 3912305030c10202841d863f6e1282d5b060387a259273a38071d21205ecb02a - ssa_ast: 02f7c786ce1ff26923c4df457f3297df45dd34e0819374f69c80c2702d91f362 - flattened_ast: 81c0dc4eeccfb15bd48d73ab725b36390160737db7efa64f59d3f5b92597f88c - destructured_ast: d81a54ace1a30d9313981277847fcda32bff784f5199c37a29e744ded4872e8d - inlined_ast: d81a54ace1a30d9313981277847fcda32bff784f5199c37a29e744ded4872e8d - dce_ast: 225620e749ee3c338b3effc468aac7bb0573351ab4fe5c64f347c8f27eb8c0c7 + - initial_symbol_table: f7f0465063325ecacb719969940706e9dc7ffa8360259a1a3903a2d441102fe3 + type_checked_symbol_table: a779102a0e668b575365ddaa65aeb06761b8aa16fff2a243ec124f2fde47681d + unrolled_symbol_table: a779102a0e668b575365ddaa65aeb06761b8aa16fff2a243ec124f2fde47681d + initial_ast: 8a37f57160473c569d6d85f6345944990555c499a173adafa7312b3684ef8084 + unrolled_ast: 8a37f57160473c569d6d85f6345944990555c499a173adafa7312b3684ef8084 + ssa_ast: 8d784efa66e2f8560280cdf683584937ce841ba1259054d166a596da951f2a35 + flattened_ast: 1f069aa707ef1b01ef464b4791f8f87a6c92e4620269bc8e3e2857bafc3062bd + destructured_ast: 43543d9befc08ec7efe76ee20ed566aaddeb1dd38955ed88801bc8c7d0e2cc97 + inlined_ast: 43543d9befc08ec7efe76ee20ed566aaddeb1dd38955ed88801bc8c7d0e2cc97 + dce_ast: ce0e21028838bfca56e836740891fd63dc3f4a45053f4cbb1050675457f7256d bytecode: 7c97b596c64b27dbd196f88a9e75d1b661256a1c196688ff1b344ef072a32412 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i8.out index 6363e6604d..2dfdf444b3 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0982c5f9d8a77e5944f82e9aae3e25c75ed7c83fe45fa278a8bdf8c07e0aa5db - type_checked_symbol_table: 473dc89a77326ffcdac881bbb81be5c7edab2187afebb9e5817ced937ad2c5b9 - unrolled_symbol_table: 473dc89a77326ffcdac881bbb81be5c7edab2187afebb9e5817ced937ad2c5b9 - initial_ast: a7794c55622a8a34af97fb2430246f434db5c315cb3d6e28981a0ae089c6b225 - unrolled_ast: a7794c55622a8a34af97fb2430246f434db5c315cb3d6e28981a0ae089c6b225 - ssa_ast: c81d03586b6b786fda4e7761764bda42d54205f9b3ae07b7ca8fc8078a1ebc53 - flattened_ast: 48326f5c4745a16195cc8c94f330ef538bf82777f9afe690a4f6ef7733e5d436 - destructured_ast: 33f001e251d029222415949264155e088c6fa9f5dfc2753aeb58a3b68ea474aa - inlined_ast: 33f001e251d029222415949264155e088c6fa9f5dfc2753aeb58a3b68ea474aa - dce_ast: eeec68192ad7b755ad541607e762783742498e67bdc4a6953d08139cf29d788c + - initial_symbol_table: 76e7741cdd318045d2c4fe97c8152444333e282a8ce8b29da89362b0ad380d3b + type_checked_symbol_table: 45f76dc48399e15accd2165823d189b5d3c73a7decf5486a375ca89e6070c11e + unrolled_symbol_table: 45f76dc48399e15accd2165823d189b5d3c73a7decf5486a375ca89e6070c11e + initial_ast: 17791cf34694691e78ce1a8d82c50cca08196842d3cb321b63bad4e9ac180e9a + unrolled_ast: 17791cf34694691e78ce1a8d82c50cca08196842d3cb321b63bad4e9ac180e9a + ssa_ast: fa0749fdd754c592a5b1869c3cea252196f8126f5fd6c97648dc3a822576b2d3 + flattened_ast: 2ec009bc2b6b59fd58b540bc16209917c831e8e360492b3a88b18f958fb97356 + destructured_ast: 7ea6fd1092ac86f140c6ab58c6305d8f16ef9085c831fe0dfaa303b1ee8cc3aa + inlined_ast: 7ea6fd1092ac86f140c6ab58c6305d8f16ef9085c831fe0dfaa303b1ee8cc3aa + dce_ast: b082a7ca751c70b4cea082f1e3dd27cdecb68936064545fa1ec283281c0109ae bytecode: f4f418fcdcb33a7e9fba1a03800a1458019e9042a47457b38ba185cdf981d33c errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u128.out index d87c6761bd..50596bc011 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a528da4c1e8f05b371ca8acaa81ca233acc3a8ddb55e454e99f00c96b97f9ce4 - type_checked_symbol_table: 43aa75869a01369bc0bb6c3b55bc6888827f63b81fd9275c9863e9f7bb192ecc - unrolled_symbol_table: 43aa75869a01369bc0bb6c3b55bc6888827f63b81fd9275c9863e9f7bb192ecc - initial_ast: d4e5c33e8f31b6faafdbad5a1668ea6ba8301920def8169bc5dc1800af17c93c - unrolled_ast: d4e5c33e8f31b6faafdbad5a1668ea6ba8301920def8169bc5dc1800af17c93c - ssa_ast: f759dac069e11bd1fdca725883aa0886a0e6120f7d5a08f8ff3373ab43ae2fad - flattened_ast: 2c9f9b03ed49f3b0ed170e787193f84d72ffecb0a3b4b0facf815fa60eb83ca0 - destructured_ast: 26b88dcb2b6aa7ad62cd7d935e62d658fe2fcbdf860dd1578e7df13adeb5ff67 - inlined_ast: 26b88dcb2b6aa7ad62cd7d935e62d658fe2fcbdf860dd1578e7df13adeb5ff67 - dce_ast: 9156cab1166175fb58271030b9b8af187c1799cff83c22ba2eafe189d4ed71e6 + - initial_symbol_table: 80ec703400cb984e51de9919876d4dc3dc482fe3c411101128eb6c3341ba72cb + type_checked_symbol_table: dc684b7d7f90ad16ae4f213aa0a14583d76458337b7dfba8449291ca88170756 + unrolled_symbol_table: dc684b7d7f90ad16ae4f213aa0a14583d76458337b7dfba8449291ca88170756 + initial_ast: e06886ff0d19cbaf020eb537c2a323db14f09b4253af6b617b5e212cc5c8808d + unrolled_ast: e06886ff0d19cbaf020eb537c2a323db14f09b4253af6b617b5e212cc5c8808d + ssa_ast: ee5c919ad98b1b537985bf6a86f582f53789a172ec7489f24b10cfbba93bcabf + flattened_ast: 00245aecd8a65cdd464fe73b3a1a96304849af64fb0c65aca69567ef642433ef + destructured_ast: 9c5803f9b50b668766a9b76d353a3bc05e94a72bb81e8084f4cd0876fd338313 + inlined_ast: 9c5803f9b50b668766a9b76d353a3bc05e94a72bb81e8084f4cd0876fd338313 + dce_ast: 848eec7b2efe8e0bfe2e4420b4e694a5a0d6afcb9b3a55d44efc16a7f99f212a bytecode: 55706d4cd4634a34de18450007e4de40f9cbc51382f3d70fe776cd58cfd49cfa errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u16.out index cd6f55c803..f42337e88c 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8420a6d608b36a35d1ed18dad031e4e6b2b460e5c86a32ff447eb1300566a136 - type_checked_symbol_table: 61a21dee1d85d25653bf8366bcb93304f0acd4fe1b443e72957cc54892ee234a - unrolled_symbol_table: 61a21dee1d85d25653bf8366bcb93304f0acd4fe1b443e72957cc54892ee234a - initial_ast: 319ebac819f18f61e2aee102b62ca74a1aa2fbb2e2c2f176ed3c971e08534875 - unrolled_ast: 319ebac819f18f61e2aee102b62ca74a1aa2fbb2e2c2f176ed3c971e08534875 - ssa_ast: 6cd2b311cd2eb685b0b3b862d5004c2286b0e9371b0d4b176edf9dce570b58e8 - flattened_ast: 086d924350b02713498e2bb26b7c83d728af959d96a42cfd0f1d814bb9081b07 - destructured_ast: 2b6af39132c1d62f984421ab70511111123f563cc24f7025b4321bf43ff77e35 - inlined_ast: 2b6af39132c1d62f984421ab70511111123f563cc24f7025b4321bf43ff77e35 - dce_ast: d7843ee67e12fa2bb642af6138662d9d2273e92318bd2396a5d9ea3295918f3f + - initial_symbol_table: 6d746d46d5a3943aedef82f9361cc0efa8b6f554f25060dcd2d855df33beac3d + type_checked_symbol_table: 8f6c8ac74aedba1dd90a5bb2e20c09ee19f5080b16ba8a7ad21dd85230691b18 + unrolled_symbol_table: 8f6c8ac74aedba1dd90a5bb2e20c09ee19f5080b16ba8a7ad21dd85230691b18 + initial_ast: fbee1113e343e517164ea7fe3b570c877e2ac1f1eba971ad4f6b20149891cbb0 + unrolled_ast: fbee1113e343e517164ea7fe3b570c877e2ac1f1eba971ad4f6b20149891cbb0 + ssa_ast: d47b1ed595f425a6f3505201dbffa1f131e1730ab47eab025d9cfaa7dd059165 + flattened_ast: 2c6994f5bb7b969d9eb202b4ed05d77dff53b4f294fde59670f401501aeb91a6 + destructured_ast: 1e282b63e2173bd5d4af1623a8c5091f9dd8dc07061f1bcecb4a0fedaaf9a0ee + inlined_ast: 1e282b63e2173bd5d4af1623a8c5091f9dd8dc07061f1bcecb4a0fedaaf9a0ee + dce_ast: 7b1a186035a026f2fdeebd571327fca8843ff44a151228563093622060a01257 bytecode: 33e4439af37c6a05aa55348ce0ec88471c0248498131db5b98b668e8cb828b5f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u32.out index 1fb0effedc..6cb75c651b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d1eb06ae1f9aa473dee2f789becd35b51ead25a881f48354c8897cdc93ba791d - type_checked_symbol_table: 1e8f34c6a238cb3202f6314d881e3afae5db6c6ab9bdcc1a41aecce17503b95a - unrolled_symbol_table: 1e8f34c6a238cb3202f6314d881e3afae5db6c6ab9bdcc1a41aecce17503b95a - initial_ast: 8d8333c2e5cac0e686b81513a865fb6903ec9e4f1c7bd2f1e6e2ab08a07e3eea - unrolled_ast: 8d8333c2e5cac0e686b81513a865fb6903ec9e4f1c7bd2f1e6e2ab08a07e3eea - ssa_ast: e8956c64c621031024293f5cea64b4104e61522920ad1434c03965149b327670 - flattened_ast: d3238936452a132d47708e3a36c7d4eddc796a378592087c88ec7f41e366e876 - destructured_ast: b15e169fe119e050cfd96388fc060d3e9a12424117b188a6167a051038e6af9f - inlined_ast: b15e169fe119e050cfd96388fc060d3e9a12424117b188a6167a051038e6af9f - dce_ast: 39f4c050fae29a64b1bd1d9a425b04fdda4781efd36b6853d11dec6675c8354c + - initial_symbol_table: 9559969b14eeeef69e62891d29f88e47c4d26f7198c13f91bb8a9532b65d4a00 + type_checked_symbol_table: d1f7df8fcacf1e892f794c4474e6332a051440ea4a584ca2b5cc762681a2fe72 + unrolled_symbol_table: d1f7df8fcacf1e892f794c4474e6332a051440ea4a584ca2b5cc762681a2fe72 + initial_ast: d15ce4225e559e5f525dfa87ba487ac04c235a0db9814327fffab97ea3d17369 + unrolled_ast: d15ce4225e559e5f525dfa87ba487ac04c235a0db9814327fffab97ea3d17369 + ssa_ast: 1c0cd4873142f0e150b6bd8108c4aca7b697f7673b5e5da21d8ab1a2e99d9495 + flattened_ast: 5c49c39a1be491c97c4d25e92a331801f511652af6dd2a609bfde6ab4f91b3a5 + destructured_ast: df76a8afe6fe55b42a5a8ec1752d1e15c219dd277b81a24f3281a3442fc0c9cc + inlined_ast: df76a8afe6fe55b42a5a8ec1752d1e15c219dd277b81a24f3281a3442fc0c9cc + dce_ast: 3cc89e221c7000324abed22c808632728b0d768bd6f69463ebd09b64ea7b0125 bytecode: fc54eeb5791a27e0482648998cf9da197519e5c139729cf2906c8b0e4c0103d6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u64.out index 8cc66b91e7..b1cc1aa1c4 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4e3b05e5f92ed8642580254cd0d3657e4013a654ed8cb702f046a00ceb91dd0b - type_checked_symbol_table: 68f3999ad9e8ac3d6fc6c2cc8e5af4c0edac056d702b4c3f457ea8451e8b67aa - unrolled_symbol_table: 68f3999ad9e8ac3d6fc6c2cc8e5af4c0edac056d702b4c3f457ea8451e8b67aa - initial_ast: 2a09e1dee796f3ed6a652b0bb958e5f92ac17ee22b19cf98de59112b876a1277 - unrolled_ast: 2a09e1dee796f3ed6a652b0bb958e5f92ac17ee22b19cf98de59112b876a1277 - ssa_ast: 4454a99c849a269c4defdbea76e4a85ac99b0c6627433929e8e7acd3f3965b62 - flattened_ast: 4adde942742ed1132a13bd54ee2db325fe2a15bb61d4a6dcd5237fe73532a59d - destructured_ast: 77bf10beed06a1ce45f2d983b7114c5ff87211cd5a4fc0ff033a0b772a3ec433 - inlined_ast: 77bf10beed06a1ce45f2d983b7114c5ff87211cd5a4fc0ff033a0b772a3ec433 - dce_ast: 727bd686162d6baec12d405b899d695954c7719dbcfe71ab8dd08ccd887596e1 + - initial_symbol_table: e1f7e3bb1896ae2c350d18b4006bfec84f04aa9a23bf783e381fecac8e894156 + type_checked_symbol_table: 16519317e6088d4ace734d1b998648c045146d49200f96819601fd044bad4e8e + unrolled_symbol_table: 16519317e6088d4ace734d1b998648c045146d49200f96819601fd044bad4e8e + initial_ast: 60f7f0addc2515d040137bdfc84dcfc1c3cd76cb73c6692e5d880ca549881235 + unrolled_ast: 60f7f0addc2515d040137bdfc84dcfc1c3cd76cb73c6692e5d880ca549881235 + ssa_ast: 8835d7aa39af2942523aad67ea4a35acc67be9a204978dc984731cd56631b560 + flattened_ast: 6cf5fd1042f51a6890036c9fdeee5388b4c5b16d7860bdc1dbdaca8e472f1282 + destructured_ast: df6fb79ff8e887b3df37f6597c1fe4fee6b898df766c84e81b7e486815965867 + inlined_ast: df6fb79ff8e887b3df37f6597c1fe4fee6b898df766c84e81b7e486815965867 + dce_ast: 5416e1d36f93a0eaa1a7bbf2ef48fa4337ab63797fc481d6e3194c91de74c5cb bytecode: 045a18fb7e954456ea49039adfc253c222a290fa124ca1b19f86ca824d4c1279 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u8.out index 3b3d1ebc47..e2d1a97c67 100644 --- a/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/pedersen64/pedersen64_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8aba1576a3b4c89eea3ddb2737969f7bdaef71d3eb75a9d596310fa25e0d7dbe - type_checked_symbol_table: d9f4ea2f5fd0c4328f46031a43d12b5f37b13774bc681a231063ae20e37d723c - unrolled_symbol_table: d9f4ea2f5fd0c4328f46031a43d12b5f37b13774bc681a231063ae20e37d723c - initial_ast: d738fdab4ac6b84f6f89f6153aaa7b6080d2bef920126365862526de7b6756b2 - unrolled_ast: d738fdab4ac6b84f6f89f6153aaa7b6080d2bef920126365862526de7b6756b2 - ssa_ast: 4c64bb8493f965598a6dc8a198fa0886f6c18d25370b736af3fdb10c0456c96a - flattened_ast: 8aa9e76a70a68a0bd0ac5a20172a50d4c8b4b728892c325bde92565e1017f24b - destructured_ast: 9b7e44c3b7215e9b429f81b4055b73343d9601248e73b85806032342efee697d - inlined_ast: 9b7e44c3b7215e9b429f81b4055b73343d9601248e73b85806032342efee697d - dce_ast: 3c540fbde688d129c2f21e31a4094c4667cbafcd873e9551ac7d3e6d73568591 + - initial_symbol_table: 5cf84c397a65f24670925f2d76e0e8860e47b3887e7b532e15eec6db72e9e90f + type_checked_symbol_table: be0543d4e0a173a1df88f99f0bf5f6e02907dd5c61099b626edef4d086ceae9b + unrolled_symbol_table: be0543d4e0a173a1df88f99f0bf5f6e02907dd5c61099b626edef4d086ceae9b + initial_ast: 9a40db0637981ece9f1f52f8085c682216d5ea697f0e4c5cd6840eca2263e711 + unrolled_ast: 9a40db0637981ece9f1f52f8085c682216d5ea697f0e4c5cd6840eca2263e711 + ssa_ast: 5ee52eb8e0754b2276a50f8f82c3f5537302887977cb86ee53214981fa162b6d + flattened_ast: 1c44720213db46cf632f6d5da90c77ff693fd7958c7af630e3813cd3c41eed1a + destructured_ast: 48636eb03fdca4ca574df906f8bf8a958938477c40c9f61a055854388a559042 + inlined_ast: 48636eb03fdca4ca574df906f8bf8a958938477c40c9f61a055854388a559042 + dce_ast: 07b77040beb04aeccbd2f5b222e374cdfbe2198fb811999bb76c3924caef8d1a bytecode: 044a44a2a8fb9301c313f1e1c2abe04383f7d338cda6ff66fcdf2434bd750cc1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i128.out index 70e9bb1fc9..708c7c9cd9 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 7e9562b9718599c0f02741ddd3e15d2f744da71911c6fd9f3c5d4ea602fa0b5c - unrolled_ast: 7e9562b9718599c0f02741ddd3e15d2f744da71911c6fd9f3c5d4ea602fa0b5c - ssa_ast: 343862058719811dbca08e123aca3defec9e1e4eb335fdc6a64d9db66a3e0f4c - flattened_ast: 1f81654cdc6d93e2b6d7623399ffc0bc3326fa90a1d6ecc8ab3cecb118fb0428 - destructured_ast: 71a3c3aad1173b3825cfbebb18f418a4bb5c17c8a98b02a7ee658434f6d36b0a - inlined_ast: 71a3c3aad1173b3825cfbebb18f418a4bb5c17c8a98b02a7ee658434f6d36b0a - dce_ast: e4c2b4ea0174b38c6f05e3936cb196f058f6a4517bce7951c339fceabfe41cc5 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: f1ec2ddf36333fd072f3f8256cb421f1168a4ab0980bb8fd04d2026f30f33709 + unrolled_ast: f1ec2ddf36333fd072f3f8256cb421f1168a4ab0980bb8fd04d2026f30f33709 + ssa_ast: 22f89f40583eec790c9452ad9405edf32e7c12209a73efb9cbec2d9189304363 + flattened_ast: d31514f8445c4eb5a96ed603c8f26b1adca9a50c445c30f8b5f47a3aa1795a31 + destructured_ast: 1821c906aaefbe2501540d93a936af852b9aee2461490d604955a475b487e42a + inlined_ast: 1821c906aaefbe2501540d93a936af852b9aee2461490d604955a475b487e42a + dce_ast: 980968265f8a43c2feeb1dff65870327926dc1fb4f1d8e53765c31100f738760 bytecode: ca315272f12d59819b589dbf79fe025227b812e9b896696349ac766a9a416960 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i16.out index 13de0bce43..b4b549497e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: b2a946fe5aeff1f7b419501a9acc67750fd3bdfca99a74e512dd5463a5a68b83 - unrolled_ast: b2a946fe5aeff1f7b419501a9acc67750fd3bdfca99a74e512dd5463a5a68b83 - ssa_ast: d1d854f73ee597843b388681c8e2b77a5b6079f1d19d23166effd3bb116ca49d - flattened_ast: eabfae5949353429480f84aa264eb36e5a7e063824ef96f5be5ee4a2de8dcd6a - destructured_ast: b07e0b3c816db83cbf55fd0483464e8191d8b69135bdb371d0960053931997bd - inlined_ast: b07e0b3c816db83cbf55fd0483464e8191d8b69135bdb371d0960053931997bd - dce_ast: 3caf2ea4c5178c6c39088ee03bcc1f7887a2f4c97feaae8a9e728967632a2fb9 + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: bfa4345153196aaf66433ab36efc54c770fdc4f5a397b7b6c291092e9aaa8244 + unrolled_ast: bfa4345153196aaf66433ab36efc54c770fdc4f5a397b7b6c291092e9aaa8244 + ssa_ast: 096b987184b3b98844a782d938401cbd7ad826e5039d2a284c32f0adb113d723 + flattened_ast: 99d267106cd6b2ead96e1551a8a8e0559a611f98e43194ba8dca9abc529cafbb + destructured_ast: c1c60bf66ab4dc62291dc6aafbd28a5a5d8eb105abbd4ecb7ef43aed70ce6c8d + inlined_ast: c1c60bf66ab4dc62291dc6aafbd28a5a5d8eb105abbd4ecb7ef43aed70ce6c8d + dce_ast: 6ea5cb076dff470b1aa862c34b7763701f554fb454935a508e0a20ad3a0e06ae bytecode: 0732a356f65a6b062517f1dfa76fbf9e9eb57cbf8ec4d50cbcec2ffa0da54122 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i32.out index fbd317a748..91541af923 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 40192d15fb4b0096531ff2ef560f969693ecdca6179be73ed555707b2293d5b5 - unrolled_ast: 40192d15fb4b0096531ff2ef560f969693ecdca6179be73ed555707b2293d5b5 - ssa_ast: 63dcbba3c0f7a6089d310f1f7996e97b92796e21273c78d30651db2cefbf859a - flattened_ast: fcb3753c26a444aefaf26fde70653c04c4cec3f4a9b395223a5dd00ab2f8b45e - destructured_ast: cbf451e07f7cad9dcca84dbf10c2ea7905a1761525df4a7e2894ebf485b0c1ff - inlined_ast: cbf451e07f7cad9dcca84dbf10c2ea7905a1761525df4a7e2894ebf485b0c1ff - dce_ast: bee98ac48c02ee1ecf3dc30753f1d82bf40495351c8347b0f2644cf614f793e2 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: ea4e84027d4bc8e177a9d9127f3247a1fc76d9c02db0c79b68a6cd7f0dc13d2e + unrolled_ast: ea4e84027d4bc8e177a9d9127f3247a1fc76d9c02db0c79b68a6cd7f0dc13d2e + ssa_ast: 29b99b21152dacf798b7e4f08881af565527eb68629047826ec8e1b3e34cad82 + flattened_ast: b44f02ad16ada39ba4d2aa0b4da4d6d23d989b2bd75e990d0ab17db33b34bcd9 + destructured_ast: bc34b866971b2cef2386d7c122e69168a2eb454dd1a6d1c09b56d053134348f0 + inlined_ast: bc34b866971b2cef2386d7c122e69168a2eb454dd1a6d1c09b56d053134348f0 + dce_ast: 42466078e0794ef99fda14d174ed83cb697bbf6193aa73e4648a0a64d425fc25 bytecode: 8c33439a30c50519ebd6ea519da98bac7452bc3d91e2062e069b36b716d8d711 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i64.out index 21edad975b..cd22313e27 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: ef5b2a34578288f5350e1cb93da2146a2fb771837004530d966e390dd220fb22 - unrolled_ast: ef5b2a34578288f5350e1cb93da2146a2fb771837004530d966e390dd220fb22 - ssa_ast: 13016f3c771ac08a0b434120399744830a66157c879deef37829d1816db9482c - flattened_ast: dcd1e9d9b40c63e56870e694923d86665f7d93ac350185c329cc8dcb9205bb4a - destructured_ast: fb07c858b1d5309ffd012a0c1f14a622cb2827f8b66832d08c14d0fd66e1a30b - inlined_ast: fb07c858b1d5309ffd012a0c1f14a622cb2827f8b66832d08c14d0fd66e1a30b - dce_ast: 33afb21c57adb6d61f61290d671f3d7cf8c3011fde385af77f8abf74d688fd8b + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 329dfed211acc4d331b8eec1a5bfee671e209003b7c9506ec319f572a45aab85 + unrolled_ast: 329dfed211acc4d331b8eec1a5bfee671e209003b7c9506ec319f572a45aab85 + ssa_ast: f09b2648e71a0f3baf3bd9c1753f57bb83210e9f3f503aa8d8d89caa15d5d999 + flattened_ast: eb14e482d9a36acc3242af1b2ba826dbdf0367946ea1deb3378fbdea3791b0c3 + destructured_ast: a8d826461f99955e33152563b9cb437068ac5385c5aacb2ea2db3b5754f7493f + inlined_ast: a8d826461f99955e33152563b9cb437068ac5385c5aacb2ea2db3b5754f7493f + dce_ast: 541b60d3e570d103ce950cd88de1706b95b62426e1acb923c2f1b70680bc4977 bytecode: d9d8535464393fb21afb06a16a608dfdc68041779c0c426378b17b68fa2ed0d6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i8.out index 62e4039896..44a073c137 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: d11ede4273920f6b0b04f5d56fe64e4b97299c3a59fe7871e425dfc9772cacd4 - unrolled_ast: d11ede4273920f6b0b04f5d56fe64e4b97299c3a59fe7871e425dfc9772cacd4 - ssa_ast: 77255dbad873514518bcdd8c97067160a8ea4eb49a89d8a4ee5a371d0ea47d27 - flattened_ast: f1b1e089ab4778ca4d8c24b6a8e9b1ce85359dcd06887012ffb9c4b4244f906f - destructured_ast: 8ee902a42eba20a96d1bbe2db353c44297a7f3ac1a550c2d31a6e578add138ec - inlined_ast: 8ee902a42eba20a96d1bbe2db353c44297a7f3ac1a550c2d31a6e578add138ec - dce_ast: 6eb3e69f7bd279caf57b8a651650e9232e66fb786803c309ef0f6573beb01a1a + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 4353e1105b0adf1726066e850fe373e6d7cbf78d3bec7f277094f525bb8833bb + unrolled_ast: 4353e1105b0adf1726066e850fe373e6d7cbf78d3bec7f277094f525bb8833bb + ssa_ast: 5b162a0af13c69b2ccaaffb80fc9ac4e7aacafc102dba857d64620b592463472 + flattened_ast: 2350d7f2b4751fbb341dce0aca9ecc2b564c34e649e648242ada055749347850 + destructured_ast: ca808003618aaac40499e4e46e647e25f9a9bb0a2dac4b2cc9ff250aab4f5553 + inlined_ast: ca808003618aaac40499e4e46e647e25f9a9bb0a2dac4b2cc9ff250aab4f5553 + dce_ast: 91456a7885a79c466b34ffa87af3bb52c949e0cc27ec5079e42439439f0f6b44 bytecode: 6cae47b82841a9b356abcaf49d25cc5ca7c86edc8d8bce4cab03128b57283051 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u128.out index 8d68d35689..c8372cac8d 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 74cc7d8b007aa051558bdb2912be577498550e2408b9f9cd6438623dffcaa4f4 - unrolled_ast: 74cc7d8b007aa051558bdb2912be577498550e2408b9f9cd6438623dffcaa4f4 - ssa_ast: 772fddae4fd6a3278899d2f59c6464433194c0f83ddc22c48b72e32b3dc2415d - flattened_ast: 9376dbf302f6d95fe0c0aca2d693fb2879d08e502a4b108669c332a8ce64b877 - destructured_ast: bd953a0688190f097ec91ca0d880c301765520f634384dfa63eadfa7c7267467 - inlined_ast: bd953a0688190f097ec91ca0d880c301765520f634384dfa63eadfa7c7267467 - dce_ast: f9927aad127a3feca920251c45de097871a3e8f4ef34803a03673f48b59401f4 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 61ebb47c77650e83ce705625db7c6d55459cef13c216c718c8a40d048711a86a + unrolled_ast: 61ebb47c77650e83ce705625db7c6d55459cef13c216c718c8a40d048711a86a + ssa_ast: 8c3c2cd77c40a6412f88da98ff0bafd863faea3733391f036110039fd9b40695 + flattened_ast: e67d7ec6b9102886828522301e6237839adce9bb5b09529567b62dd87183517f + destructured_ast: e3a0fdaaf22647449a6a5c7d2985cc9c53501d3ceee0baaa6e9fc7ac80a695ab + inlined_ast: e3a0fdaaf22647449a6a5c7d2985cc9c53501d3ceee0baaa6e9fc7ac80a695ab + dce_ast: b30ee05876109226ff58850f39a852400dce7cd293b321c3599976542077c31f bytecode: 975a1cb98ad7fed0f8c86d4f782f28acad38aaae51b8e5c6dbfd32f55ed2d8e8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u16.out index 406d82437b..fecc2fa4c1 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: fc263003f013eac25b14294f33f8ef83d2013b695c220da2ea47330be3347aff - unrolled_ast: fc263003f013eac25b14294f33f8ef83d2013b695c220da2ea47330be3347aff - ssa_ast: 01af0978dcdd4cb374135cf9c6f144440a475e6798517e66a1269ab26dc98277 - flattened_ast: 9d295106bae237be92f7600eb4aba4f92fe3dfc6ca440f2fc631d7d1d855ea4d - destructured_ast: b423ed979e105d86e4629611f5176cf093fcd2d475fc9e140bd8ef02299d35c8 - inlined_ast: b423ed979e105d86e4629611f5176cf093fcd2d475fc9e140bd8ef02299d35c8 - dce_ast: b3f961e27cd7dea2b1961b0400923cee87fede21346b1a31a1ef048d91826044 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: d226e30d9653873e08a71ab113a8dc72ce83cb442d21b9716732ba9f29d09d62 + unrolled_ast: d226e30d9653873e08a71ab113a8dc72ce83cb442d21b9716732ba9f29d09d62 + ssa_ast: 3291dbcbd8104c72d2db1125feb8354f7bd3c970b65eaea9b78aba8ec72dc1c0 + flattened_ast: b5b31460b17ea1b5c769ac1e929b76ffa9e2d64abcfbc2302320e5b89f26254f + destructured_ast: ffcbd992d5ed2ab6f689a4441634484543a9e1898cf54d976c60ae0d5b2251b7 + inlined_ast: ffcbd992d5ed2ab6f689a4441634484543a9e1898cf54d976c60ae0d5b2251b7 + dce_ast: ac62a9759e30faf12a7e9e597485c6944e41e0977d9e7b6f743882a48606bd2d bytecode: 798c6160516f2d9cbdf4c3e0c22a9e6c1be1fc46f3f7907aadd2294e4471bb94 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u32.out index 8b41658789..b1989777c4 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 29f0a677aaf3db99b8f8140363450ddc8503297b1eddc2ec32e79cebf24ee10a - unrolled_ast: 29f0a677aaf3db99b8f8140363450ddc8503297b1eddc2ec32e79cebf24ee10a - ssa_ast: 0aec20a1186423288fb86db467d5be9ae669740259f6043e59646b078efa427e - flattened_ast: 9a2a88db1a16155da209a9cfefd8d2633f4488a41e9cc3f1070fb3aec53231bf - destructured_ast: 8b0c9bceb19aa09c24321b11cda12a8a4b36e3b24ad7266a6785d26972c416ed - inlined_ast: 8b0c9bceb19aa09c24321b11cda12a8a4b36e3b24ad7266a6785d26972c416ed - dce_ast: 3561be80b8f8f78eb453acf9732e05c4465b1b029454ff1e6f345ce00461b4d6 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 222626d87ad4543c2599f4ca26ec7d090763cdc32bcb6cf6dc0d46dabd6c32bf + unrolled_ast: 222626d87ad4543c2599f4ca26ec7d090763cdc32bcb6cf6dc0d46dabd6c32bf + ssa_ast: 14bdf39f5a55f57e8e13b5b6fda03f58ac500fbe9d4890de8f92507ac67db610 + flattened_ast: 8cd309072af84daef5906f455052fb894c2736266f7d042f464881d9f461d44b + destructured_ast: 50bd59cf3770a5c1920f297f658d6728d2cad65b359f47aab6688c04f9e6e2c8 + inlined_ast: 50bd59cf3770a5c1920f297f658d6728d2cad65b359f47aab6688c04f9e6e2c8 + dce_ast: 0f3d32a1ebbf1d750826c7a5c5c2767fac17f56070c2df0d1f3e10b6863b6397 bytecode: b4e8a66b3535650cce69094a5691ed7e5da80420ef152a6c98c1084dc31cbcdb errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u64.out index 020eaf6d30..94edf0467a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: 53f7c2694415e56e63df35902a2cafd567ad36ea2bcaa8a3495ccfcbb849d0e8 - unrolled_ast: 53f7c2694415e56e63df35902a2cafd567ad36ea2bcaa8a3495ccfcbb849d0e8 - ssa_ast: d3dede0c737b6cc2eeac6c0c9574fe22f4b7f5903a9900da7f9313b3f210d63d - flattened_ast: 834f55681c6f8e2d310abbc173549a3725f54f916e77172651291318a620d26b - destructured_ast: 14d0de84490d79690a242a130ba789c9a46436d8f5754e06b9ca696a0e304ab5 - inlined_ast: 14d0de84490d79690a242a130ba789c9a46436d8f5754e06b9ca696a0e304ab5 - dce_ast: 144bfbaf6aa7014f81b545f96065a84411ff9765dd7122499a72a923efddc2be + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: e9e71865e68a87db4245011a1647a4eac94e0df850e32a29b9f1d0ba1b6a599a + unrolled_ast: e9e71865e68a87db4245011a1647a4eac94e0df850e32a29b9f1d0ba1b6a599a + ssa_ast: 9c16907209149c2e7f4a071da258a1c8983f15b1c2af9585785215120e17dee3 + flattened_ast: b7d850f98eb83741e72ad079103c8966235a319fe6715d4afdce63d91a83cb3d + destructured_ast: 6df630dc6721a004eae893ad29ab701b989b2b88b0f1954a6b8c4680a1536cd0 + inlined_ast: 6df630dc6721a004eae893ad29ab701b989b2b88b0f1954a6b8c4680a1536cd0 + dce_ast: 7851f3d2b0a7f1566c0367815f30570826d670cac0fd94544179def082c5e349 bytecode: d1c89170683dfbc163399a16200cbdb282cbf101ced8e53f5326bfdbf3343f57 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u8.out index 343ec609db..91dec99560 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon2/poseidon2_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: ee97e6cf5674efc764655413a64d0c77a71dfbb58371d9d60a053c6128315668 - unrolled_ast: ee97e6cf5674efc764655413a64d0c77a71dfbb58371d9d60a053c6128315668 - ssa_ast: 7797a2c1c6631654d435f93bd48ab738451524fd52f26247e712265dc87238f7 - flattened_ast: fc1b6d9a1531c1a560ba94c956f1a56d1ee6518f8b5b7aaec33b5bb5dbd28789 - destructured_ast: 90bf3b68ac9c711f2d806feed991c1dda5d27e93ef2ad6a1a937baa914763494 - inlined_ast: 90bf3b68ac9c711f2d806feed991c1dda5d27e93ef2ad6a1a937baa914763494 - dce_ast: 6d147e5cfc08c7470d373236e2095b728cd0b747268221e0eff00bca3e0f907d + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: d014327d40ddafa34604f31932caa430755beba0fd1489b22199d23ea53da81e + unrolled_ast: d014327d40ddafa34604f31932caa430755beba0fd1489b22199d23ea53da81e + ssa_ast: aa517723dad9dfb713bf37ba0f0322ae507203c90ae5cf4af04c2930d67c3523 + flattened_ast: 7417adba7268e19873ba49604543c6887cfd911a210b343619f4e9a2537220e2 + destructured_ast: 887729586236ec033431ce1ab19e2cda0fa42a5cd259e0023fc8b9800d2f0845 + inlined_ast: 887729586236ec033431ce1ab19e2cda0fa42a5cd259e0023fc8b9800d2f0845 + dce_ast: a0f658dc27e1d34c4d8328edd1f01233a585769ec4059a83c7b7d752d259c56e bytecode: 7c9f6b45e12973c86606c5cd3ca45c6af53d8819df40fa5660a987821b998301 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i128.out index baaa9fd3c5..52ad71467d 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 32123cc01c4942151a3eaeaf5c92b63fdfc88ae301a7b0b9dcad3f9e1c858094 - unrolled_ast: 32123cc01c4942151a3eaeaf5c92b63fdfc88ae301a7b0b9dcad3f9e1c858094 - ssa_ast: 50bba4ef2811c003242c5a82bd8f1bca6bb3d03a71f5de362986010f0f97016c - flattened_ast: edf954b17931be441331cf914596be095037a58183099246a084778c38382dda - destructured_ast: 7fdc3c5fed14ff0244528ca5f12082ca42fabe7792b72d1b2092c488bd0e0d7b - inlined_ast: 7fdc3c5fed14ff0244528ca5f12082ca42fabe7792b72d1b2092c488bd0e0d7b - dce_ast: 146a2fe7ae32267833a7e2505069e6f244b9633e4a23f94845e55067093098a1 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 48a74181653ca38246f0be8ee2fee2a5625442f54996fcfd499f79a7eee8c356 + unrolled_ast: 48a74181653ca38246f0be8ee2fee2a5625442f54996fcfd499f79a7eee8c356 + ssa_ast: 3e63bc57a92452b2913e1cf04c8cca88ec05c8771b6ce4695d6ea4530b82b8be + flattened_ast: 4f71e3335641418451a7b613ce31544704f66183cca14fc221dc9db8c608dfee + destructured_ast: bc849f5ab3dab8e00c2f4f165e165144dd0729d7e43597b6c9caca02e27d5892 + inlined_ast: bc849f5ab3dab8e00c2f4f165e165144dd0729d7e43597b6c9caca02e27d5892 + dce_ast: 1becd2737fd058048b47828dda4820e0898e66bba2ddbba6156e6b2507588d9b bytecode: f5027cec3929d0dcd05017a80763507e8c71561ab196a71f97304e48015c831c errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i16.out index e7cc4eb18a..218bac420f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 86b0010353d2912529fd19331f0821d8f3c2a5729e3116cd7e51b2992fc2f5bb - unrolled_ast: 86b0010353d2912529fd19331f0821d8f3c2a5729e3116cd7e51b2992fc2f5bb - ssa_ast: ee08b3cf503906cd8d837bbb51b48c8a05031166e6760734074906373d7b1263 - flattened_ast: 9549035d7d2f71a4434a1cf4e9388802543f5262655a31165bd17980dd32d5e0 - destructured_ast: 71095ff9866c530b7f829e28b906910dd87e3680415825fba477f02a13c3a53a - inlined_ast: 71095ff9866c530b7f829e28b906910dd87e3680415825fba477f02a13c3a53a - dce_ast: c0c133d07d02a61c92f470d8f7948d75b20f73ea6536df3834085b138e988c39 + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: 04a15916900736362be477fcb561efcb23927772cfdc974e8aead5aa92b4941d + unrolled_ast: 04a15916900736362be477fcb561efcb23927772cfdc974e8aead5aa92b4941d + ssa_ast: 187897581c90ab67786deb7928508d3ddf32c2489b65ad57f8e3aa48e1c760b7 + flattened_ast: 13f41e05814c61d04d22870cd83c99f94d3e2d6f270b9daab5056510f6f88629 + destructured_ast: f3b588e22cefcfc9a78f209af2e4d404b2bb72b0ef78dd064eb7060282b91598 + inlined_ast: f3b588e22cefcfc9a78f209af2e4d404b2bb72b0ef78dd064eb7060282b91598 + dce_ast: 99cce8a50719089159f73cb31d2eca6e3d0dba935979d7e8f6fa746d49df8644 bytecode: ed71694075a97e2d9d8919ff8e7138309c4735f1b29f66e41e7278d09872dec9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i32.out index a3d422248f..11d1bdf0be 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: b4b990955b34feda22702697b9d35df1a4f6df602b00f2e3f016a1c7cd67afca - unrolled_ast: b4b990955b34feda22702697b9d35df1a4f6df602b00f2e3f016a1c7cd67afca - ssa_ast: 190ff15389755cc64b5a16fc2cb7eae80d80952a063d607b288e5abcb314545f - flattened_ast: db4d3d1923bb8e5fbb3e91d6b7ecad26cf74eff868039be9b962621d23e5cf5f - destructured_ast: 330aa250bbc91956143dfa3a6a198876b120357150896ff6eb26df2e0599ea73 - inlined_ast: 330aa250bbc91956143dfa3a6a198876b120357150896ff6eb26df2e0599ea73 - dce_ast: 59f4b121e9de75aca03892f94b63a47212fb067da1a29b66b1a2554e3f40329d + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 158b3943967329849e15bbf40274cc69e7d1920637bd099bb8eb84121469ea3e + unrolled_ast: 158b3943967329849e15bbf40274cc69e7d1920637bd099bb8eb84121469ea3e + ssa_ast: e21ed99da7687d42e3d4ee02f93a0771abe645aad4e7908cde52b61adc354457 + flattened_ast: 21908a385d91a76829fbdbf15fe3aa2d07cf9e584612d926efa8c8b2a7945e61 + destructured_ast: 96d9fd2f42c32627f1205cc474fa867b21000b077cb04399c558a69e4175ab8b + inlined_ast: 96d9fd2f42c32627f1205cc474fa867b21000b077cb04399c558a69e4175ab8b + dce_ast: 1a8d152ebc7f9d76ce1bd376e2f35f8d350591b7dc5b766a3d5ccdf0d6082823 bytecode: 74977b8f00a84dcb2e9ba7ee129aa781d704272a242ea20a2bd4da5cfb85f4cc errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i64.out index 7cfc7275a0..7d8558fc82 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 569fc07ae0b815ea94ff5518ceacb1e3d9690ed8a6693a40ad33b7da2cbfc403 - unrolled_ast: 569fc07ae0b815ea94ff5518ceacb1e3d9690ed8a6693a40ad33b7da2cbfc403 - ssa_ast: 4e99373682240c467f90d6d821383510852812c2df78c2eaf0785f6afebeb027 - flattened_ast: e3c3686b407086062d84b888e3bfe5f9d895a62315411deb60124508d4d044b2 - destructured_ast: 29c1b9b46db6b520c3b1add43ec3b2781ea9564cd4eeee434eb3fce385dbaa5a - inlined_ast: 29c1b9b46db6b520c3b1add43ec3b2781ea9564cd4eeee434eb3fce385dbaa5a - dce_ast: 98fee4e9ec488e24da6d4dd38c2342b529adadc78c909e8612d3720a6e6d809c + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: e172285ccf70a63c205b53d7c17fb7e7482dd0bbba4d419f1db1538f2213869a + unrolled_ast: e172285ccf70a63c205b53d7c17fb7e7482dd0bbba4d419f1db1538f2213869a + ssa_ast: bbc9410f761d55d83d141c5898056815db43915c38ade77092b6a939ae2a82da + flattened_ast: fd88712b4a30257032fc4c95c57198fd3f63d465faf3c54a26c34a43a14453e6 + destructured_ast: a37a5ed158de98a63abfbd151d073416408462f875644e4c1c0edd9698fe2806 + inlined_ast: a37a5ed158de98a63abfbd151d073416408462f875644e4c1c0edd9698fe2806 + dce_ast: 521ed8dc72dcfcb97d5f84ce6b8211e310d6af076e259a8fa0517351c47685a2 bytecode: 321894d4016e60b5565182e3241bdf93b4e0336a851997cf94f3ddeaab1e8b0e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i8.out index 431a42db46..54ac867c63 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: 1f4e350510b239db07585669d14e459b60092e877aaaf534c83e7a2d465cc4eb - unrolled_ast: 1f4e350510b239db07585669d14e459b60092e877aaaf534c83e7a2d465cc4eb - ssa_ast: 73ad822da2c75c962ab8e19adddf8e29ae84eb0b53b627fccbfe64bdd19558ab - flattened_ast: 52f3ea88235f5a6eabd2d773fb0d9e8b3d5a8619da536060d8c1e4e3a18ef9ff - destructured_ast: 20b1850fbb055557c571ababae1bd08a3845e932b80bbb9ff127650145fe87ad - inlined_ast: 20b1850fbb055557c571ababae1bd08a3845e932b80bbb9ff127650145fe87ad - dce_ast: c1e8a120850a4b922636f9f4bf61fa2b22890c82e84d20ac718d36c93210ad49 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: fbd3bce2ee373ba3ef7ee79deec3a32ef77ad878c08a7da937b590dfe7c33132 + unrolled_ast: fbd3bce2ee373ba3ef7ee79deec3a32ef77ad878c08a7da937b590dfe7c33132 + ssa_ast: d7e2a3cc8d3e6c680e192fb5c07282b549d3c99fd770156e2b83516d44e5c563 + flattened_ast: 540c5d2c509c85bea0b19c4a1b77d1deed51c131c72d8b7b03313e286b65fa2c + destructured_ast: c055e8654d2394825016b08836bd8bac37889d3b20ca42eac12f61936e477dfd + inlined_ast: c055e8654d2394825016b08836bd8bac37889d3b20ca42eac12f61936e477dfd + dce_ast: b92c516641a939897128b9401a5a2d761b1919eb4092be3650bad8c85b8cf9b1 bytecode: 306d4beeb9abdcd43cf232ed35d4990aab8810ff286226fb2e606f46a0d7690e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u128.out index 2d57a48897..3378fee698 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 4407e4a5ab84fd70a998ad319ba97f76c669573eedc5774f5fbe985ead629b8f - unrolled_ast: 4407e4a5ab84fd70a998ad319ba97f76c669573eedc5774f5fbe985ead629b8f - ssa_ast: 5cf02447446965d7dc923b976d79f2371bfb392cb63ee1538aef26c989668380 - flattened_ast: 00640b6bb771e3db98dc3edd48d9c3ca4f09fa049ba3a026b7a2cf67718411b9 - destructured_ast: d722e875f6582668d8a6ac92b63e8faec7ffdb0ccb2abab7be07150029a31ab7 - inlined_ast: d722e875f6582668d8a6ac92b63e8faec7ffdb0ccb2abab7be07150029a31ab7 - dce_ast: f64e967ad8fbd6c7d7ff23e7043a4413bb9b6c516390ea7b54fa32f74031a488 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 7da27476133033e6adcf769ce66e093eab117db9f233169fc9ad657edf6ea7ff + unrolled_ast: 7da27476133033e6adcf769ce66e093eab117db9f233169fc9ad657edf6ea7ff + ssa_ast: 40f6d70bc0e9d51d61ce87f5a333fc13a03654d163faf3e026ee640f03335747 + flattened_ast: e0eeb06894cbab0898b1c342ec7c62a374bf0c727ad112c5ec1ebc05965a5884 + destructured_ast: 59db79779459bfb542d01d705a6027abb35be0b6ca573b66743dd97a9446a315 + inlined_ast: 59db79779459bfb542d01d705a6027abb35be0b6ca573b66743dd97a9446a315 + dce_ast: 5d0cc800b536b42cce21566afb7d7d0b64e84e75694f5eef74121fd2c07b04da bytecode: a9549d0d83827cd1143f924030ee0ede0865349f3b9f93bb6d4fb9a69d62db27 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u16.out index efedaaa665..896155a2c7 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: ab3eefdb3d56626ba3dea14ddd6579ce3c7c72113b6dd7e570c323ad1ca12803 - unrolled_ast: ab3eefdb3d56626ba3dea14ddd6579ce3c7c72113b6dd7e570c323ad1ca12803 - ssa_ast: 2ea48fedcbe894e279d2eb4bc317194b345139d2c94b9a5fd23019410bbf9b72 - flattened_ast: d5e9bf009f3caad58bd29387cd3e4be611d1008cc2cb13f38edd6935dba2012b - destructured_ast: 4f26b126b472df23468d46947ddb1fd12f85ed54ae20b75350d3673e21faf1e0 - inlined_ast: 4f26b126b472df23468d46947ddb1fd12f85ed54ae20b75350d3673e21faf1e0 - dce_ast: 1146e61e834a5b33e4900d2ba2f44f98fa6b8768d7557825620bb66dc074e7c9 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: dab2ee99cd57d6d40cb63052727645a9d7714d33260dea3b43bc75e4f21da0a7 + unrolled_ast: dab2ee99cd57d6d40cb63052727645a9d7714d33260dea3b43bc75e4f21da0a7 + ssa_ast: 8b15ad7f724ad93b238173d24584bf267e27484a3bf78d7e149fd4bf9802c641 + flattened_ast: b37dde76713d4fd149aab980a57eec050e935b319f3f4d674c0e7ed52b2d4ec9 + destructured_ast: 96559e2cf5fd57ebdb82f6a959d2801096ff261ea2cb5a04b20fce731d5e0167 + inlined_ast: 96559e2cf5fd57ebdb82f6a959d2801096ff261ea2cb5a04b20fce731d5e0167 + dce_ast: fac75c11aad232865c28f3210fa41ac72b60ad6428695eb5e524ecd17edc0073 bytecode: e6a59e3156a3ff5801a42607df078d08aa239f34556930470761e1c5848ae171 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u32.out index 908b9a372f..413a932edc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 581d2b301cec9c55e72baa2fd7d7100cc3f8bd457e1ddb9feedacd69a4c0bbcb - unrolled_ast: 581d2b301cec9c55e72baa2fd7d7100cc3f8bd457e1ddb9feedacd69a4c0bbcb - ssa_ast: 414cfe02f20f35ff960caa8569f554acd90c2878d5933dd084e2261be4a5d2a8 - flattened_ast: 45caa49e5a52c4359262a7f37eae489f9cf9b3601351662de721486c486cf815 - destructured_ast: d3bbf245aefac7e8aeb452f5b3cb587debaa7cdaffbf46d6f57cc6fc2d5fbd8e - inlined_ast: d3bbf245aefac7e8aeb452f5b3cb587debaa7cdaffbf46d6f57cc6fc2d5fbd8e - dce_ast: 3bc5bb62bbdbe277ff7c018901598cb52f0eabd3db317bc20a3f0bdf1878517c + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: d12a79aef12dfdc0db1a7a0e18174e64036a66737594d395651c68e048925920 + unrolled_ast: d12a79aef12dfdc0db1a7a0e18174e64036a66737594d395651c68e048925920 + ssa_ast: 8fc7c9db31eaf0df87a50e162d523f746a494087636e1fe704820b5dd9107883 + flattened_ast: c6e3efcfab7c3735e8cc1cf5cb9b84120ad2d6b8970b587db9552c93c26b1950 + destructured_ast: fe8f6191437347e788b9c82d6fa0b433719cd8340914db858e2fb0415cb5106d + inlined_ast: fe8f6191437347e788b9c82d6fa0b433719cd8340914db858e2fb0415cb5106d + dce_ast: f1887c3299d092cd82a2a3da609145a6318e4ed1619092f32aa94b6532cadf18 bytecode: fc04f975d1c07c4f7d018572d3d17a12328c5cd8e91d0b70c7745b3a1feb0618 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u64.out index 9637f0ddf2..10b388cd32 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: cf63202a7e81b2a19d9957937dbfcb89089bd5bdfccb1b84ab6f47f93778e886 - unrolled_ast: cf63202a7e81b2a19d9957937dbfcb89089bd5bdfccb1b84ab6f47f93778e886 - ssa_ast: 9982440be0be1fcaa55033141094b76dce87379b540c202d388e30e9b20e155b - flattened_ast: 918b8fc8329111f480d73202ab724582e8ac0762277aecbba696921899b45795 - destructured_ast: 11c8b00703e6b22374183c4f7c7d1dda517dc4d8889266cb0c4d13bba6a68c89 - inlined_ast: 11c8b00703e6b22374183c4f7c7d1dda517dc4d8889266cb0c4d13bba6a68c89 - dce_ast: 134035d57da55efe80930092689ea41ba9ae84553cb0494ea0e95f5b5c3393f0 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: f6b9e5024dd655261ed3cb50ecda8b44bc244c8c29eeb7652b219d9c70bd5ed2 + unrolled_ast: f6b9e5024dd655261ed3cb50ecda8b44bc244c8c29eeb7652b219d9c70bd5ed2 + ssa_ast: 0d27d734a098111f91679272a213ab7501ba72c073bbf15cedd1229f84e344be + flattened_ast: 04edd79023d5981b44c6470998fbce669e6e49594cabf9a83381b779b19cfc46 + destructured_ast: 5cd630bcbf6730db4ff2df207996a4ea1eeb02fe591cd7884dc924f1daaeac2b + inlined_ast: 5cd630bcbf6730db4ff2df207996a4ea1eeb02fe591cd7884dc924f1daaeac2b + dce_ast: d27e07dcaaec7b3510c68bc67ae9381932a57f266729e58a8ed2b10e5c4bd8fe bytecode: f4564b52ac16664bc0bdb32637268fc5353c50dda45c6d2d3f85c19597198588 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u8.out index f6aa75500d..236474aa7e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon4/poseidon4_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: e795903cde318217bae5d4e73ce6bf731d452ec4d1fb214b99e46acee171146e - unrolled_ast: e795903cde318217bae5d4e73ce6bf731d452ec4d1fb214b99e46acee171146e - ssa_ast: a14743c4386377854c475345118142407258d4ca227f2e01cb90d6675c1db4b4 - flattened_ast: 79354c804d71393d0304a36db7e8834584793e192451902db2d1609231cb3a57 - destructured_ast: f59ba03d107990e984eeed14d22564f519629068368656535bdf7001a91ffcdb - inlined_ast: f59ba03d107990e984eeed14d22564f519629068368656535bdf7001a91ffcdb - dce_ast: 0e7af7faed26eda6cd192eff43c5f10d2219f3a618b157cfdfbb72687de2b8de + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 53d24122e925800b4851ad5c695252f9b4931785b2d7c77b184fb25ea31126a2 + unrolled_ast: 53d24122e925800b4851ad5c695252f9b4931785b2d7c77b184fb25ea31126a2 + ssa_ast: a9f32123585fa1e5eef22796c219c29d486c2cb7febea445bd19fa2f267595f4 + flattened_ast: 380f67142274582535bca995009945c6e34da7ac1788dc511c56fdc68dfd9fe6 + destructured_ast: 4c7cb13083db0edde3d3a0b666d0df55cc8b454020475ad5ab13c71d0c984177 + inlined_ast: 4c7cb13083db0edde3d3a0b666d0df55cc8b454020475ad5ab13c71d0c984177 + dce_ast: f87d683a369eca6ec31abf78051d475ad05407746bf1e93de98f31031db1de5d bytecode: ae16c24cd484d13ce731e527cf9373ab9bcc8b9e6cce6d9a9a0dcbbfceb75e2a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i128.out index a1927f57ee..8a6eb0e87b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: fa28b564991de47d4b39efbaacccab8d3396696e95b6b6b1c13f87cd14c102a6 - unrolled_ast: fa28b564991de47d4b39efbaacccab8d3396696e95b6b6b1c13f87cd14c102a6 - ssa_ast: eacb4fa1f2172cc8abf0542b77d46c0d911c7f9ac4089b643547e6e1537363f7 - flattened_ast: bdbce34c404dab960b82f846cc595c2096354b77bc58e8b943b76ddbc4b6b496 - destructured_ast: a5c176628d0b2e4acd5b55021e2d59817fc10ea50419e0f240ad25399e3a686d - inlined_ast: a5c176628d0b2e4acd5b55021e2d59817fc10ea50419e0f240ad25399e3a686d - dce_ast: 4e752debc226ca491c77975f4a37ac532afb703e2fe96a411bafaea52140d6d6 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 6d3852647246ba920282cf02566e3eb50e8fdb7582c927ca605f143c03b9ed3f + unrolled_ast: 6d3852647246ba920282cf02566e3eb50e8fdb7582c927ca605f143c03b9ed3f + ssa_ast: 9e1ba93616ea8da36d918eebe19e9ef058a0cdc61130274165b7f40503f0f6a5 + flattened_ast: 70ef5d30087cbd28f0fd911c82bd8c5a41a0a25679caa8b229958d9ab9957ea1 + destructured_ast: 43aff1d7abca7e23d7d4bbf2a3b948a8c7d293645499682642d14069559c58cb + inlined_ast: 43aff1d7abca7e23d7d4bbf2a3b948a8c7d293645499682642d14069559c58cb + dce_ast: f86053f61c55ca655d3f076153d1466c4db248d61ad55210058f697ca1b3a357 bytecode: aa997d56c8583efc291ec4e9238a0dd73a45d8b4bc3b59f40b9ff6871f88aa09 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i16.out index 3fb8cacba1..f88c41eaf6 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 42e44f1503f804a84fe64a5523f78db7eaeeb2f69f27642c15e0bde0c028d3be - unrolled_ast: 42e44f1503f804a84fe64a5523f78db7eaeeb2f69f27642c15e0bde0c028d3be - ssa_ast: 1f3921e2ab491fa6fc4f6d7180dd88c3eb2e626cc1d4993472efb4d39a96281a - flattened_ast: 4601f489e37765122af4a36f15a4c02e0da45997d824e28b585fb5f6bf59e95d - destructured_ast: 3ed01592ffaed0ca00c23c5fd2df2149f2a9fa66c89ed7d507084728f9def0b8 - inlined_ast: 3ed01592ffaed0ca00c23c5fd2df2149f2a9fa66c89ed7d507084728f9def0b8 - dce_ast: 20116127e9ed34c42977646af75597959c07249d7cd823aed6baf3f238bf0faf + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: de1a83d99fc584639956d8e6bc7ce0606225b70972991dbcd9feb3267098a94f + unrolled_ast: de1a83d99fc584639956d8e6bc7ce0606225b70972991dbcd9feb3267098a94f + ssa_ast: 0db1603e018e437dfba071d33b209e7abf5351b6068cc1fc812aae9cdc6506e9 + flattened_ast: a4494837127b80266034ae8b73c1a07537116c4dc63744d37197786a3018776a + destructured_ast: 3105dd40401ad575a31dc507a0dde6d2accf12de474f13e02d16bbddc16b64f8 + inlined_ast: 3105dd40401ad575a31dc507a0dde6d2accf12de474f13e02d16bbddc16b64f8 + dce_ast: 834cb85d34a68beacaa4f59b37a16135e86eca68b63dfc194469d4a2044156fc bytecode: 6347188e178ead622b83b2acbd39e314b1c3afb15e3590111b716fe4ed33be5d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i32.out index ec35ff1867..b349022a6a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 3c9d696e1e79333745d4a7d08673406f7e5545af12cf2f63e6993bb89531bc83 - unrolled_ast: 3c9d696e1e79333745d4a7d08673406f7e5545af12cf2f63e6993bb89531bc83 - ssa_ast: 6da86624672b6bcc0386b923ca4c51ce460f626bb0178cf3960a75196527fffd - flattened_ast: 45099909f15efbcc3e6412a9ec57ba19ec4ff241a65b0ae3690eeadb26428e60 - destructured_ast: fa20339e7dec2aba8997232685cd533514b9a6509915f38003061b909e8d3210 - inlined_ast: fa20339e7dec2aba8997232685cd533514b9a6509915f38003061b909e8d3210 - dce_ast: eac98af2cb277cb0352721f2660ef0951cf37302612d9fda8406f45461e492c7 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: feafad9651aa8c1af52d9e140edd21cae11bd129df1c0897115e406f3a2b43e4 + unrolled_ast: feafad9651aa8c1af52d9e140edd21cae11bd129df1c0897115e406f3a2b43e4 + ssa_ast: 3d81687ec7be5247dc8d20869a8a460d7c0d7a283926baa0ef07d2fd5b3e7baa + flattened_ast: 48e5cf48f48aa0ee53a9cb44ae2c73acf6f187478514cb0df5a48d3848302fc8 + destructured_ast: c84811805aea88bc1a1235fe0dbe11b211987e5c365584ccb12616a3cc270554 + inlined_ast: c84811805aea88bc1a1235fe0dbe11b211987e5c365584ccb12616a3cc270554 + dce_ast: 352fc3bdfeed85834bc99402665d10cbfb1d6068893588a153c5655287cabce4 bytecode: 9cd6ff69d744b6baaf79b43b6edb4a17f93d5b77e51c389009cc741aa2cfa44b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i64.out index 63bb899727..6db6984270 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: d01bd4e5405ff1efecbda689f62b0631230115b564817eba52037b8f2ddd2603 - unrolled_ast: d01bd4e5405ff1efecbda689f62b0631230115b564817eba52037b8f2ddd2603 - ssa_ast: 7a293b32d6c8eabe1ccfb299c108834da28c6fc251d94e63a6ea2ed4afd84459 - flattened_ast: a6cff9e59dd5192aa9557fed8fc00a90ff6583f2fbad2d9580fe6aafe007ea1e - destructured_ast: ce8799ae8451ae954afeb3b07af15e43945f8ddd1947604ec467c6826b49f511 - inlined_ast: ce8799ae8451ae954afeb3b07af15e43945f8ddd1947604ec467c6826b49f511 - dce_ast: 158a5851b18c57fb2d77c66d92add17035e190330dcf7f432ae36810843a506d + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 3a132b5a0853635c01b4cf4818db7507d8973297240c5769f1e48d58bcc95f4e + unrolled_ast: 3a132b5a0853635c01b4cf4818db7507d8973297240c5769f1e48d58bcc95f4e + ssa_ast: abe05beaf1221144e5ffa98351e5208106fedd92730ad98f1e287e3b050edf8e + flattened_ast: 2bd8054772960c7e75f5bd7e979880bd4087698e751d09e321d1a08f6ed4760f + destructured_ast: 9c6d60a3b286c37b38506ffa9ac3fd281bcefb4bb0f8458b0b7960f33ab4f782 + inlined_ast: 9c6d60a3b286c37b38506ffa9ac3fd281bcefb4bb0f8458b0b7960f33ab4f782 + dce_ast: e766d1570729a18b390b2be83647eb68c20adf9e2f19fd4da3ebc9041fc8551f bytecode: 650266303e0c26417c626e2bb6d08055d1ed7f2350a716f344e9907448328e92 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i8.out index 1dd49c4954..ff6adde7b9 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: c22bda1fb7c4a8e3cd50d991ed32bb8cf6cafa08b13fb258c37a01ef7af21271 - unrolled_ast: c22bda1fb7c4a8e3cd50d991ed32bb8cf6cafa08b13fb258c37a01ef7af21271 - ssa_ast: de4b4dc67e42f9ae5678e6a13e3968935bb3d6eb0e69044688a0856f08e41f72 - flattened_ast: 462ef1f65ae5527c0fc62574bfaa7effeb5499a04f5e50931f5b7b7496da6af7 - destructured_ast: 7d727db8e507dbdc494d2400fae1c076fa3d3ba928d2885a8b1a5785e03ba662 - inlined_ast: 7d727db8e507dbdc494d2400fae1c076fa3d3ba928d2885a8b1a5785e03ba662 - dce_ast: 37ede39e3c965c114b0c3e3f644c576932eb94fa466af046744662e48ef35d86 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: e4ad425b4618027235eb0afc9a2427e0560878eb9892d311cec94489a9c2eb9b + unrolled_ast: e4ad425b4618027235eb0afc9a2427e0560878eb9892d311cec94489a9c2eb9b + ssa_ast: 195340beaa779a626099313dd2992f319e05e59ad7deb3bf5d7ec2870e751f4f + flattened_ast: 6012ce7d566c1f05c30c28d46f8c3eab06be54a6458e73196559080a5fafeb38 + destructured_ast: 3de70802c642653281ce4c696a0eaa44e34a1a7fd28a1d3e2d6132c28a2519e8 + inlined_ast: 3de70802c642653281ce4c696a0eaa44e34a1a7fd28a1d3e2d6132c28a2519e8 + dce_ast: 026f90980ab7f6c019b43f786e763ff132ee4c7fce3775182b489cceb4b795c8 bytecode: 84412d6ef9406a51c4eb06535acdc020845b277ae94f6b77e77fbf8d84772180 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u128.out index 057547dfc5..a5e0e12733 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 939b282e1c71749b4f6d183d6e39324a4bb7f3ff829344934f7e7b88ae7d78b4 - unrolled_ast: 939b282e1c71749b4f6d183d6e39324a4bb7f3ff829344934f7e7b88ae7d78b4 - ssa_ast: eb8cedaeaff6739946a44bc050804f58457b34ddc96cd7b2f16771eab121275c - flattened_ast: 17be3717670e97aa92c1e8e7d65894f2de1a3a64af6d2f44300b624eca0608f6 - destructured_ast: 18dc35c7d83a410e139ead51829e2b1ac0bfa705ab2d5243433c9cd5cf6ba01a - inlined_ast: 18dc35c7d83a410e139ead51829e2b1ac0bfa705ab2d5243433c9cd5cf6ba01a - dce_ast: ddb1d7b0d71c8523e2fb8a2db0d45811e4c2b6b540fe5674f2ba3f0f1c7196b3 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: c5799a38e4599fee492063efc4b74328c21c38ffba6b75ceb1a377d8fe8e7d18 + unrolled_ast: c5799a38e4599fee492063efc4b74328c21c38ffba6b75ceb1a377d8fe8e7d18 + ssa_ast: 25057eaefc8bcb8c737cb208f988914e4557d7313d0ce26422c4f6d4ebdc5fb1 + flattened_ast: be1696342c4152bf3c374b3d99a094028a9ea600723d9cf73e68c8207529d765 + destructured_ast: 8758baee9e3d6a1fa78612c0ddc51620e26d0c04ab6101a3dc86cb271dcdd9db + inlined_ast: 8758baee9e3d6a1fa78612c0ddc51620e26d0c04ab6101a3dc86cb271dcdd9db + dce_ast: 7a0280eb4b3cba87bc2daf05058ffe9df1898603b54c42275c78aa70de9a6fcb bytecode: c9e6b1ec453882c52c9756859ca950685719b644171a194ea55afbfe79175910 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u16.out index 04118901b6..6c5924743a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 44ce39e14b11e979493eabcd48581a1e543cfe1840f4fedba10bf3b25593a83e - unrolled_ast: 44ce39e14b11e979493eabcd48581a1e543cfe1840f4fedba10bf3b25593a83e - ssa_ast: 8bd5fe2d889ec475e8ddb199fc492ee5716c04bfb435a35f8b567974e252fac0 - flattened_ast: b41774d4a0f0ba59a1e7e66f28367dfd4ece70f35d5e78f333bffcb43e543f4a - destructured_ast: 6bd51040320e3eed1486aab139bbcb74de9166ee175da53e99726af6c23d105d - inlined_ast: 6bd51040320e3eed1486aab139bbcb74de9166ee175da53e99726af6c23d105d - dce_ast: f7e58957b558a16fc520329b2adfb2f95f2d1ff77b40bb92a326b59191601431 + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 927b78c3dd95491c9d5254e501e3ce39878b6d61e012bdccc07aab3db2f1ebe9 + unrolled_ast: 927b78c3dd95491c9d5254e501e3ce39878b6d61e012bdccc07aab3db2f1ebe9 + ssa_ast: 6774ab9056c91dddac950836c406b03ba871d393ee6a24e8bb3ae877cee37b2c + flattened_ast: 550d95a93777d2fa307098462d0e374a8095c8645a4ea403118d6df20a90ae99 + destructured_ast: 63685e01def1e7a62c8e1ce0b5f74900d2ddc4af9025ab0ca506cfbb3aa40ae8 + inlined_ast: 63685e01def1e7a62c8e1ce0b5f74900d2ddc4af9025ab0ca506cfbb3aa40ae8 + dce_ast: ec59661cda1e0bbb97ffb7cb5712df5201357861f33406681c4e5490278b6148 bytecode: eacd57222679e9302f98f9ee703913895034a15f0454b32d9438d75e77a825f3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u32.out index f80e81c9f6..a6becac36b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 00b85258eaeb61fab7438a63670059c1b1cff3a0f689a30597d910cb3cc35517 - unrolled_ast: 00b85258eaeb61fab7438a63670059c1b1cff3a0f689a30597d910cb3cc35517 - ssa_ast: 6c3ce382e3ac56f5fd1359816922b0eedefde8ad78e4d693cbbddb2057b0ea4e - flattened_ast: ecaf7f7507436fae096addedb1d7041e7c77bab20e736e21e93a2c6c6039d8a3 - destructured_ast: dd667030ad44e001c314b15abb6c6ba70cc208dda134933edfe346ec4d167f59 - inlined_ast: dd667030ad44e001c314b15abb6c6ba70cc208dda134933edfe346ec4d167f59 - dce_ast: cf172535d511da542fa003c0f177c7452121e92bbdf3a9752e60f48cde6efd64 + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: b40313146449fdd53d08628e1a9de2b2a5fcb44b249f8528d4e3e4c6c5cf1831 + unrolled_ast: b40313146449fdd53d08628e1a9de2b2a5fcb44b249f8528d4e3e4c6c5cf1831 + ssa_ast: 6215e53e1aadf7387118e1d68b974158a2a4dd96308c79bcbcaeb92518463071 + flattened_ast: 886b74b92690a799c26b49e038008122a109aafdba2ff99881af0fbd65256d2b + destructured_ast: 0f70b715aad5344cb016589ab64386aa3d6c97f64a65b58521a9d88817e8f630 + inlined_ast: 0f70b715aad5344cb016589ab64386aa3d6c97f64a65b58521a9d88817e8f630 + dce_ast: 01e5d6fb4595872bb2c95f743d8032851287867c38d3a01a175d8fee383af357 bytecode: 15b3b2f15f177b34eb81e2436cf4080578e2980fc07eec7472060469a1789b5d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u64.out index 8c139542c0..4780ea173e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: cffa09c36e7d25125a56ac1b5127a2930cd9ba1b0ff93c54ecd4df922baa3ebb - unrolled_ast: cffa09c36e7d25125a56ac1b5127a2930cd9ba1b0ff93c54ecd4df922baa3ebb - ssa_ast: 488f6c4ed53d77bd172ceb00078ef6fa1493f24a8cae08e7c31dc22723626ea7 - flattened_ast: 4340af2255dee9dd61e7259db00784eb81eda3e2d9782c1373be98e080521658 - destructured_ast: 382c7df567cef3bcaaf9795873896fecea85082472177afcc1914587032de0b6 - inlined_ast: 382c7df567cef3bcaaf9795873896fecea85082472177afcc1914587032de0b6 - dce_ast: 47debde0de027dd3c7a37b801099eb50b436d8eca1c7e302d81dd43d90368fab + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: bc85f9410254002c16f2618568034f1ec76f03b7e68ecc89abc80499c0979a25 + unrolled_ast: bc85f9410254002c16f2618568034f1ec76f03b7e68ecc89abc80499c0979a25 + ssa_ast: 73e217da88660d7cbfd62bafb81612f712cd3f13a0a7e45d665af24bd52cbcd8 + flattened_ast: 7f169aacee0756e1e2008abece383070f602465effa5006b50cc8bb276634158 + destructured_ast: d8e6511a2d75bcefbfea9d95ab21b7c5a00360e5cb71df5cdc8d562a37572148 + inlined_ast: d8e6511a2d75bcefbfea9d95ab21b7c5a00360e5cb71df5cdc8d562a37572148 + dce_ast: 65a16518607e5b1bcd8a4d0d260270f6a17f65bfe82d0c76debcf19fbe392b36 bytecode: 7990fc4abda5438acd7a4d58f60916144b5d56b891105fc8ea379e36569e0ff1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u8.out index f30d27b084..f2b0105ab7 100644 --- a/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/poseidon8/poseidon8_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: 28a923d938b88b681f1c610504fa80315f4c407458ce2e85573c222239b6fd02 - unrolled_ast: 28a923d938b88b681f1c610504fa80315f4c407458ce2e85573c222239b6fd02 - ssa_ast: cd647e0b7b6a4eff27b4e8ef3bf68c2b9f890d09d9e25805b5df7469c5ceb56e - flattened_ast: d14049b318b48559b67d9298fdbd17f633c64ca351bcac19722aba65a56485b2 - destructured_ast: 8dfaa4dd0411c4bec662dba4de210ea1febd74610b76628ad0cfb9e23b2da602 - inlined_ast: 8dfaa4dd0411c4bec662dba4de210ea1febd74610b76628ad0cfb9e23b2da602 - dce_ast: 45357530071e622e495adb3b443fe6309bfba356505bf3809500f513493a02d3 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: ce8696c336175e2e66a5d2cc722a5db3de1f5aa48f15bfc5e329118286791bea + unrolled_ast: ce8696c336175e2e66a5d2cc722a5db3de1f5aa48f15bfc5e329118286791bea + ssa_ast: 8e2d4ab0946ebcd57aee82edb0a015b47beb902106558436e55375b5b4c0d5a9 + flattened_ast: 25887e73d4775d62ab61b5eec04d11d25e762ce710b831b6f87b4eb2be543402 + destructured_ast: 4dc49eed81e2c55765bf9baa4d51d1d1829df2405080188393220138a6df0bed + inlined_ast: 4dc49eed81e2c55765bf9baa4d51d1d1829df2405080188393220138a6df0bed + dce_ast: 3cbc6994f11b13a93d97bde65eb8eb6244f277ac11768988269c14bef9c134a9 bytecode: 490f1367d32747ffc240c1b2a165f85ca487e65d00e2efee5d784e643213ce20 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i128.out index 9a75a3b588..7010a2920b 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: fdc9ee69b9633e7a727872a35b353aaf7f5d4c753b510960ec39eb304bde8e89 - unrolled_ast: fdc9ee69b9633e7a727872a35b353aaf7f5d4c753b510960ec39eb304bde8e89 - ssa_ast: 1de4218c47aa3f1a514df32efb3eb98f5acde81346e0b5c3447438a7f0728716 - flattened_ast: 74ff30d5ad42a493bf8593499a86c6b4613983685b0f791c903fb297678b227b - destructured_ast: 72869b8e18197f02b7a9ff5a52d38a6ffe884223b92e78247047d86827815282 - inlined_ast: 72869b8e18197f02b7a9ff5a52d38a6ffe884223b92e78247047d86827815282 - dce_ast: 818599012b1fe03c2edfc09f51212979ce2c0e2c33a4b9cdf9f55bd4a17cadfe + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 18629aa829970e89da02c80f1e99c490053a27759e09903578743ca16a84720f + unrolled_ast: 18629aa829970e89da02c80f1e99c490053a27759e09903578743ca16a84720f + ssa_ast: bc20e9662effa3f27cfae443e24744afc901c499ffd6308523e742b3939f825e + flattened_ast: d5fbc67b775001fdb32eebbdc0cd21846b99c885ce6c193c5db7eb6e7e3ecc8c + destructured_ast: 3fcb1db03a420b922289a7ef54fe2b5c9bc77da6f1eae3b481fcb6b2673675a6 + inlined_ast: 3fcb1db03a420b922289a7ef54fe2b5c9bc77da6f1eae3b481fcb6b2673675a6 + dce_ast: 74cfd497074f613e45470b12e5811b57856bd87873c8eb09a95ca5663bdd24da bytecode: 90719e9440e244c74e57dd63e47c928680066f5d4289d1f15e9c4a2c78e75e84 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i16.out index 81d12a8b31..b33165f0bc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 258655d395bd89333809133f82499eedb0fcab8f7e9792ad432af58910186ec6 - unrolled_ast: 258655d395bd89333809133f82499eedb0fcab8f7e9792ad432af58910186ec6 - ssa_ast: 797c0fc84178d89ec015a77389fbfd2c476b14d84df5d358fa4bc98f7d479030 - flattened_ast: a5c6264db32c242f29ecf790d197853d2a46d0fce3b676cf3655b21949d32bd9 - destructured_ast: f1b1216589259f8c60efa42ac074f290a7b05e89fd09c603b49042d9e8917ab8 - inlined_ast: f1b1216589259f8c60efa42ac074f290a7b05e89fd09c603b49042d9e8917ab8 - dce_ast: adac675f268ec1444276d578a9665545cf48714637451815bcf669cc60ce379b + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: 4f7d63413dcd95b00549a8c584a855451a8caa92d275e5f09503fbbecf123637 + unrolled_ast: 4f7d63413dcd95b00549a8c584a855451a8caa92d275e5f09503fbbecf123637 + ssa_ast: ec8b6664a1193267ef8a1db802377459e3fdcb13084bce7291f6a0d3b2552d24 + flattened_ast: fc3c7f0e96997e8c84fe34a710931d7209ca27b32625d3512a0614ecaf12e8dd + destructured_ast: ba15fa131ebe6110d1f447595f79fdeaa58cf40912ba03229479b76a7ea2806d + inlined_ast: ba15fa131ebe6110d1f447595f79fdeaa58cf40912ba03229479b76a7ea2806d + dce_ast: a653af3083b1764c4e7f3d8fb142216e74ae2023a2f3328f8cad55d933f71f09 bytecode: 2bf257739832acc917b4b4f18f149a72e6a8394336740568bd06cb6141704762 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i32.out index 07230e6ca4..6c2bd1a88f 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: bc1f8495fa95c1b945cc41dd0e6948356234788e19747a77af92a24ed4f59f1a - unrolled_ast: bc1f8495fa95c1b945cc41dd0e6948356234788e19747a77af92a24ed4f59f1a - ssa_ast: 98412bfd396699cf9684311016d44eb4c5431e68c190fc51bbc81fbea304b276 - flattened_ast: dc6544a542c38df0752bed6dcda832a27ea07368201c85ec831678b758494743 - destructured_ast: 64fa3097666d92c03279b05832c0997d31428c12086281f2ab152aacb021c221 - inlined_ast: 64fa3097666d92c03279b05832c0997d31428c12086281f2ab152aacb021c221 - dce_ast: 2946c4cf8b8163120c90ecb7a47d6637fe9e8d26e85d044b37220e204cd9179c + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 293754943c05d5be7c213a55bea0b7ee21e9a5d8a9b7d06c33f6b064c1f85ef7 + unrolled_ast: 293754943c05d5be7c213a55bea0b7ee21e9a5d8a9b7d06c33f6b064c1f85ef7 + ssa_ast: 5ff8afea4ea5af76f64c7b73a7135ca4051d71c7208faf4f0f4c4e1ff3d20a21 + flattened_ast: 0b6d16ee3e0e3618618a6472644e4ed911af207f4f573edf89e551db9bfee208 + destructured_ast: 4eef9a5c3c3eeca5065cc13a40b773e62e8d2f862e63900fb16d3ccc8d59f902 + inlined_ast: 4eef9a5c3c3eeca5065cc13a40b773e62e8d2f862e63900fb16d3ccc8d59f902 + dce_ast: 84730548e5b05a2271708878ddbec15855b7ea5bc2c623d0759729190a1d7613 bytecode: 7420791e00dae08a4887c2fa36f481bcbfe5b3c8d5c8268ec753a904f3e51ae1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i64.out index c472b3f2a1..cb04becca8 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 8b0640e9187a10c9d0ff0811688f0c0e0a4195eb188f659378b99e4343616d34 - unrolled_ast: 8b0640e9187a10c9d0ff0811688f0c0e0a4195eb188f659378b99e4343616d34 - ssa_ast: ad794836c8c6319ec98a5436897e01030492eba66e47112bf06c5e42501854b5 - flattened_ast: a165a5ed619720f551362100909f706bf76ebd2ccb980208d92c2cd10190beba - destructured_ast: 1e01df31a89176e7bfad92525c15958af473c1d46070f41a20c9a3c12772378e - inlined_ast: 1e01df31a89176e7bfad92525c15958af473c1d46070f41a20c9a3c12772378e - dce_ast: 6c33146177533cdc23f78a30996df29326495f5fec8a7069005b6f73155b7e93 + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 3198d498f57eaab060e77ee2d130800d7663ebd2d4cafc5bae2c25589677aea6 + unrolled_ast: 3198d498f57eaab060e77ee2d130800d7663ebd2d4cafc5bae2c25589677aea6 + ssa_ast: fc7594ff69f0c4d7be5d864d76c14cbc46593d8e3a04c31676312aabf9a672ba + flattened_ast: 787c0888c7dbb826f6d7ead4e36809897c58b73ab4f552ac0b22a9f796b9bbf2 + destructured_ast: 121a8b06618aa67610f92e5e849f68d657bb6cc185b2bc53f57f7af372fbaf86 + inlined_ast: 121a8b06618aa67610f92e5e849f68d657bb6cc185b2bc53f57f7af372fbaf86 + dce_ast: df7708b4b5238536599bfbebd2804751bd237b956ebb93b03b727da297ab0c69 bytecode: 6c433e307d008c270d0de4f6a677aa5069fcf55a7613d777379bbab14c24be61 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i8.out index 24aec4fc6a..f36f7ec1d9 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: 553ce95cf20601f7467513bf1a94b15d0a5a04959485915d11b3320a4e335376 - unrolled_ast: 553ce95cf20601f7467513bf1a94b15d0a5a04959485915d11b3320a4e335376 - ssa_ast: b775f1f4ff035f8525df3259f77e49f2c1a84adb3e0322c4dd1111a19f83bf1e - flattened_ast: e178940d2e33110534afd5e668a3523147f4186895fb658715f4ce153480bdd4 - destructured_ast: 68b6871518cc67c3c3758f4e5987d6e5dc0238a21df9233150e5be58480b6ce5 - inlined_ast: 68b6871518cc67c3c3758f4e5987d6e5dc0238a21df9233150e5be58480b6ce5 - dce_ast: 8d30aac85d0fb9cd0f4454aa2713aab527259d6ad9758fc1f9a0be827c05cd0d + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 4ca3541b409b61315f6fc696eff6990d5b8c761e96d1f758f09348a301c6e06f + unrolled_ast: 4ca3541b409b61315f6fc696eff6990d5b8c761e96d1f758f09348a301c6e06f + ssa_ast: d40b1832dd48198624158f1406101a4c353ec805c28b168dddd2ba8ad9216845 + flattened_ast: fcd765877145f644852f5da382fb4f3fe93ef34be3417dfe283d9ff6efb9bb1c + destructured_ast: 6150ef37c08911c05b4ecef7facd9aa00d34d3f5cee996225299442adcf364d9 + inlined_ast: 6150ef37c08911c05b4ecef7facd9aa00d34d3f5cee996225299442adcf364d9 + dce_ast: ae8538e4c3d848515360577b7fe92d3632221cf4437c59482db76dd52392e370 bytecode: 2d9a914eb6d3310ce7e2a0f8d7f3ea4e34fad2533c9e2c7b7bfcc9da17ee1313 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u128.out index 257f14204f..62627d318d 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: 6871e97c608fdbf5368b884bf3128c08d49027f993536959bc500e28bbacbd59 - unrolled_ast: 6871e97c608fdbf5368b884bf3128c08d49027f993536959bc500e28bbacbd59 - ssa_ast: 3bb2a26ac32ba4b52aca889768513e564a8fd610766f432e2870478901fd7803 - flattened_ast: 04685459f531d0fc89e01bf90669ac0b7e35b7a2666ce99821d1c6218cbdba8d - destructured_ast: bd1e7bbbf502e29ad357e2ff9b31aec916c2c0851af7c4e514a5defea67295de - inlined_ast: bd1e7bbbf502e29ad357e2ff9b31aec916c2c0851af7c4e514a5defea67295de - dce_ast: 9ef2f8c094756388f981abc2d115e01fa8739cf3bbb76ee0dcceb81eee8e198c + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 80831b5fef5124ac8500ee3bd87ceb541acd7ff9b154f03a3c23dab40c9ce1a8 + unrolled_ast: 80831b5fef5124ac8500ee3bd87ceb541acd7ff9b154f03a3c23dab40c9ce1a8 + ssa_ast: 4438492201d7b270abec6c9f3675238b030df6c1f6cbf0fe0517bf1209edddc4 + flattened_ast: 376c56e16a847820f8f741b4effd71aec1656b973e1d74f72600f08176ee82ce + destructured_ast: 9502c24b9a67419479d983cb7ab17358f9221e8223527480cf0e01ca619d8812 + inlined_ast: 9502c24b9a67419479d983cb7ab17358f9221e8223527480cf0e01ca619d8812 + dce_ast: a5cf0417efc8a3b26f5210ff7173b022e9a69bdfadd34fb32f71abfea279b7d2 bytecode: e2c7366a24109eb7d575db5c998ee9833edf454546a359ea4508eeabfff11d19 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u16.out index 2c414949b8..9ed2206c07 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 529644aa5860b87e70310b2cb96f35a325fbafdebdf6f3152496415556b413d8 - unrolled_ast: 529644aa5860b87e70310b2cb96f35a325fbafdebdf6f3152496415556b413d8 - ssa_ast: 8a9c19ce52c65b2afa31d9b1c5600003f51d742420e054e245157eae8449a24e - flattened_ast: 8aaabaa017cf915b74be4ed2acbbd3c50a8a9eae45600b9da2ef7dd571113c13 - destructured_ast: 78a51206feff0fd0c016cdd70f1c8a8201a2d5e7c6938bbc9843ec5564823bd9 - inlined_ast: 78a51206feff0fd0c016cdd70f1c8a8201a2d5e7c6938bbc9843ec5564823bd9 - dce_ast: b0a69014c1d765817545420ae2e268ba0abae74aa1faeedb2da1d7681a8e7f5a + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 9edf9387fdd80bc055997507218fdcaef02099c653033c3a6a1b473425875dde + unrolled_ast: 9edf9387fdd80bc055997507218fdcaef02099c653033c3a6a1b473425875dde + ssa_ast: 8b046a277e8452cab031b0b3a60f40de4487a9bbe598aa8e0367a5c1cf854f35 + flattened_ast: 6daa7806713a3427ff84da5f59e744ab1d6ea80a4e88086b3f493ac6c2cb5277 + destructured_ast: 4b9ee0512a7932b555e47ac22a0df2dcc85e70306ef22b70ba71cf0dd6aacca3 + inlined_ast: 4b9ee0512a7932b555e47ac22a0df2dcc85e70306ef22b70ba71cf0dd6aacca3 + dce_ast: 9ec3efb1ffa5dd35c4323cd1c308e28b307d79ada4e90b47cc9f3489473fbfcd bytecode: a789b985627d6892e58cab9b998763a2ab106196eb6b1c0c4452af122c7908fc errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u32.out index f7bd201291..c4e0fa5c8d 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 311a9396e6a21eee4880a4620969c802afbcc2e32cca0b6f95ae0c57b87a1660 - unrolled_ast: 311a9396e6a21eee4880a4620969c802afbcc2e32cca0b6f95ae0c57b87a1660 - ssa_ast: 3e3d6ed70af718d6a1920a72313b55dc2661bdd38cde3fdd75b315b3a149b377 - flattened_ast: 9697698559c03df66fe7071959ac1b242e30a714844888401ce89dba4ca02213 - destructured_ast: 07a37d49bb89ca336dbbd2e828d627321f14102342d8e21bc863fb9e14afb952 - inlined_ast: 07a37d49bb89ca336dbbd2e828d627321f14102342d8e21bc863fb9e14afb952 - dce_ast: ada247469bec98a67ca8ec77886135e3e1bb7c1c0df5a1b3ce7e2d1c9e3a2bfd + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: c2a698ff1339b63ca3d3e7005ddad41b561387d0e0247647ed2f07960f44b0ec + unrolled_ast: c2a698ff1339b63ca3d3e7005ddad41b561387d0e0247647ed2f07960f44b0ec + ssa_ast: b73e4f4c79f1a199701fa0a87e431aabfeca8713013c47be8bddd4e6971b9b8d + flattened_ast: 296848164cefd49fd63a99e36b356ffb4b74577039c6023a7a02797c765de865 + destructured_ast: d007f4f99e04f647f54e1e4eb23b21cf3b926065dcfd64d85143a5d0c87e90cd + inlined_ast: d007f4f99e04f647f54e1e4eb23b21cf3b926065dcfd64d85143a5d0c87e90cd + dce_ast: 3aa3174232ad717321ec4aa9a5b89b2ab4e31f589147e8a48fd875e5c3367e4a bytecode: 32f8e6f9a0f4869bb08c45ba1b94b5411c3641959a3f21203f34f54bfbdf120f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u64.out index aacd493762..941b135ae9 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: d7b19f8ba52b3f77e427f6b8cb625881d59757cc8cb66b211fe39a335aa49f1d - unrolled_ast: d7b19f8ba52b3f77e427f6b8cb625881d59757cc8cb66b211fe39a335aa49f1d - ssa_ast: e42cae35fba0fc9986843d3bc22520de3db72cabf5ddc67b5c5fae47c1713553 - flattened_ast: bbd9d27732326fefadee356b207c84fe1bd88f284bd1b27c57607e96b3ae506b - destructured_ast: 95098a7494359cf23e311782115ceaa41044c5ff531e330cff1fbda27ed9f816 - inlined_ast: 95098a7494359cf23e311782115ceaa41044c5ff531e330cff1fbda27ed9f816 - dce_ast: 79015d0f1fb704c3a66965d3fa2a9c079ce869d6212f68c91815f79e19cac202 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: ecf2df5f329fb76932623eb2f5c422361e2f2b24924bd044f94828141f536ae0 + unrolled_ast: ecf2df5f329fb76932623eb2f5c422361e2f2b24924bd044f94828141f536ae0 + ssa_ast: 717b1e4a52041b9588f2de38ef4b62187c9b80e16aaeb3b26dda1d9c0c14ca61 + flattened_ast: 9661a9c91b9f93ba1d991088ae57661f914c5d074d2ab4c3a15476c8b07d3bdb + destructured_ast: 54697a1f208a6de93b2971517e01825a2dea5729f8f9787c2ff7f714b275764a + inlined_ast: 54697a1f208a6de93b2971517e01825a2dea5729f8f9787c2ff7f714b275764a + dce_ast: 3add9ce8a7cb2d5a9191bb5a3d688942e3e0322e8cc3c6a17a0b4bed836e34fd bytecode: 9c22fdc85a23a84932bff4c1d2f420db2e3c8f60fe55b628e573a100318afc09 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u8.out index 49e97f22dd..fb2572f1c3 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_256/sha3_256_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: c176ce1d36b9111a5b12b0205293244f1ccb1317c27cb513068f782e741bfacf - unrolled_ast: c176ce1d36b9111a5b12b0205293244f1ccb1317c27cb513068f782e741bfacf - ssa_ast: f5a9b34a3c0d48c1aaf05e05b5233085d0846d417a3f2ce6b8fb79656a32bbb0 - flattened_ast: 5749d22bc824786dd7f279268c16e3a8fb6826e48da6b389644bbdc6a7f9377b - destructured_ast: 7fb59cbe99aa70342fcab84799d4d112ee5c467d963f571bf0a67c4b78713e89 - inlined_ast: 7fb59cbe99aa70342fcab84799d4d112ee5c467d963f571bf0a67c4b78713e89 - dce_ast: 20373e17dfe52cab484c61ba31e4f9541642b1c2a23f13a50397cc6636bcb702 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: b2b65f65b2cfcddbbeac11370c99c2d6b0d02a0e1132dd80ac245442dfb76c65 + unrolled_ast: b2b65f65b2cfcddbbeac11370c99c2d6b0d02a0e1132dd80ac245442dfb76c65 + ssa_ast: ab05524c95df83eae898ccd0f97e19cc635ff0827ee19c8b01e78019ebf5d5de + flattened_ast: 78ff68feaf055a9a1c039dabbd6b41688f6dc3d8e923938bbccb7521ef1a6472 + destructured_ast: a17cce4fab80e5b2d3bdc35a7729746ac69db692882fea88aea9bfed3ddacadc + inlined_ast: a17cce4fab80e5b2d3bdc35a7729746ac69db692882fea88aea9bfed3ddacadc + dce_ast: a54c606a62d8fd2c6374af7f7680695569ed66dcd40a3f0f21c938e7e340d273 bytecode: 3abe59e41cf33d2c2faa4a8b214ca184aa3b1a34b4264e0d26d520d9ccfaa10d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i128.out index bb4cf5456b..ba523187cc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 1d72f047b3774a7352503b6c35d58bca6d23252072e5199522f873692d9935fe - unrolled_ast: 1d72f047b3774a7352503b6c35d58bca6d23252072e5199522f873692d9935fe - ssa_ast: d0b0bf4be1ae017c6a34dae25873391adc5ad3bec2e47dec4b920e64b3fdd0c8 - flattened_ast: a7654df30807b0dde7c2a96110c59ea84f4403973ee697aee7740842237e075f - destructured_ast: 4b8cce0574f77a9525262743857a238cc45167b1ef42e1c926f3d36ce02f5304 - inlined_ast: 4b8cce0574f77a9525262743857a238cc45167b1ef42e1c926f3d36ce02f5304 - dce_ast: 4406c461875d2607d9139d0505a9a44c9e351d49fc8b942b8766f5ae96b894d0 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: 009878affec4f6886766b060e8af277cdb90e75a9608eeb0897c0445701bd6aa + unrolled_ast: 009878affec4f6886766b060e8af277cdb90e75a9608eeb0897c0445701bd6aa + ssa_ast: 6794bb517f04715dad0e3600206119e3cb96f12e9a1b19e63e394759bff3641d + flattened_ast: caf1e9ef7ab35b57c7d89098b7a074c1524f6aeda0895d34df075929775faee9 + destructured_ast: d8c88a741d86da0ae27fbc53bb4696b72c5fdc582a1e4731594cbba66377b59d + inlined_ast: d8c88a741d86da0ae27fbc53bb4696b72c5fdc582a1e4731594cbba66377b59d + dce_ast: c4614b7988a1a9f58973f51eeed4c80d0e278fb8feef082756f00fcc13972d56 bytecode: 49b4c6dd96208f99a71898243601f70b0905787e0a1d4c265a781db1a20cc0d5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i16.out index 3f3dfe6234..0dec285772 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 19cd673226e8c5a4178f5d7aae35d62ffed0e96233a63a338f277a0d5b1474bf - unrolled_ast: 19cd673226e8c5a4178f5d7aae35d62ffed0e96233a63a338f277a0d5b1474bf - ssa_ast: ad0be2f0b4d6884ddc1d32b1268eb9636ac24f12176137c81083ad69188e8587 - flattened_ast: 1bf9900f49302fe542e79da382e90e2c6f11e48be3e2d71ee740649171d5fcad - destructured_ast: 195d929bae80de4fa44078b0c731d00750f5d06b23d7600e7ae4e28555c27d6b - inlined_ast: 195d929bae80de4fa44078b0c731d00750f5d06b23d7600e7ae4e28555c27d6b - dce_ast: 0c746bfb9911eced605b3b4942a772629947f3cac69d138a1eb6e9f461df6f19 + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: 49f694343768ad89be8fdc6276ada574488cef7740ec206ff94a4e3f00117f3f + unrolled_ast: 49f694343768ad89be8fdc6276ada574488cef7740ec206ff94a4e3f00117f3f + ssa_ast: df674b42d1dabe1ab393572e13943e198afbbfb9f6941b70a14fd5deca400144 + flattened_ast: c8c7a5ba6d09d2c313aa1cd01b95e852df0bf5326ece1d7d9863102711871130 + destructured_ast: f56bc8fd34dbf813296e05896a3828632ce902d18085a725237c1484828752fc + inlined_ast: f56bc8fd34dbf813296e05896a3828632ce902d18085a725237c1484828752fc + dce_ast: 693f2c40fc936b283b1953953f54b559eabf0027efbd7f1eedf2d361e87747b9 bytecode: 363561300454f0f6b2213cdd668ddb222e6ae238cded832a3b2703d4d05394ce errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i32.out index 94dafaaa27..14ce719cce 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 15ef6faee8b4d4ed3a462ce536b35dfca46144fa6d00abd44a2f2a9a80a05d39 - unrolled_ast: 15ef6faee8b4d4ed3a462ce536b35dfca46144fa6d00abd44a2f2a9a80a05d39 - ssa_ast: 15b092b84d1b654b5c0d88ee1964531934be4885c9229784f2819c284ea4cff9 - flattened_ast: 3c2e618b2e412dfa1d24fb2dc9283e5f76d8f957ac9c4b4950c68874f9679ae5 - destructured_ast: 744cdd99b4947d3473c265f4da645a018ded279fc7dab656afebbdeda00700a2 - inlined_ast: 744cdd99b4947d3473c265f4da645a018ded279fc7dab656afebbdeda00700a2 - dce_ast: f27cf9a93f1e56140404c1fbdd56c2a5bd389688f8baa66458fae95808149d70 + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 84843c9065cb1e9e91eceb8aa4d726f0c2f512d724b754beca93b6ba647f2f01 + unrolled_ast: 84843c9065cb1e9e91eceb8aa4d726f0c2f512d724b754beca93b6ba647f2f01 + ssa_ast: 65c4564b51384ff117f0c59f5bb95c55fe3fd82b558225b4d841adb543ad10d5 + flattened_ast: 35dd4e1c5a47e8c6eaf13bbd979415a9836dfbb43f067a3502b538d8c8e8069d + destructured_ast: aa7810637f4a19a1d9536d2b5e7f4430fc09b10d6f4f2092073166487d6acd9c + inlined_ast: aa7810637f4a19a1d9536d2b5e7f4430fc09b10d6f4f2092073166487d6acd9c + dce_ast: 4842f29fb00c7dbdebf66c12561f12808340bd2f0263089f28f8cb15c8128512 bytecode: 8c0aeafc028be27891412b5df88c1352b25b522936310bd38afd3334c8f21042 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i64.out index de7bec226d..2a364e9e8e 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: b203f1cc1b978e0451a5176def1b687f143b1aa35218306f634efa32ef6994c4 - unrolled_ast: b203f1cc1b978e0451a5176def1b687f143b1aa35218306f634efa32ef6994c4 - ssa_ast: bdb6778d4f6c0a86e711485b3f976e1e085412343457fad405dce6a34fa200e0 - flattened_ast: c5a51848af1d16050edce551888ba996d09267012f03c25ac35f33bc5d70c3e2 - destructured_ast: 56baafe353a0533ffe64ac239672eee1fcca7d56465654926c417c66d39f34eb - inlined_ast: 56baafe353a0533ffe64ac239672eee1fcca7d56465654926c417c66d39f34eb - dce_ast: ba7804f883a410d26baf77114db9e0b79905c66e1ceb6102e3026a7e2360a8d9 + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 30dafc998c3c0e5054763f079b6668e26e93e7b3984cc8540be7cc7e1afd5a23 + unrolled_ast: 30dafc998c3c0e5054763f079b6668e26e93e7b3984cc8540be7cc7e1afd5a23 + ssa_ast: 468a001111bf3234bcdfa7e211a9014b835982d8eb9136568f9ce0a5514ee468 + flattened_ast: 45a1e270ba6d9114fe6db54968cfdebb631332a2756b6c8d94bec299098e5c49 + destructured_ast: 775707243bdeefba8dc688e5a4433e7982d211560c7957f0fced0700690a03a4 + inlined_ast: 775707243bdeefba8dc688e5a4433e7982d211560c7957f0fced0700690a03a4 + dce_ast: a8fa26586d8574a5dca47b1298c4880f6d4244484268b85f20ed9c6b9c27ae0c bytecode: a6f52a903b9de83e1cd758c63713591e8270f14276acd338000f47ea2ae40302 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i8.out index 1c32fd63e3..1c2a263f41 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: 24f570ffbab95f8bcd2af4f9a6c3d2116bf12b22c58c741f471008bae1b97819 - unrolled_ast: 24f570ffbab95f8bcd2af4f9a6c3d2116bf12b22c58c741f471008bae1b97819 - ssa_ast: ea62d5eb3d88d357784dea0b39d022609d5dc802b2b8f3c33e05da491a150f41 - flattened_ast: 8ccdfc7bc5dcccec76fc07c854625a2b2b7391ba1b882e3634f471222c43c54c - destructured_ast: c327103368183ec66a2e54bc0dd1a494af49e59088884aec0df992e31774655f - inlined_ast: c327103368183ec66a2e54bc0dd1a494af49e59088884aec0df992e31774655f - dce_ast: 4473bf5632c0149c6e4ebd7d5c5f95f67fab835fcffe90999d88f92163cd26cf + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 9ea9cbe5a727b4f6f6bbba5f4db63b960f10a85dad8a7326bed635ed9e952a69 + unrolled_ast: 9ea9cbe5a727b4f6f6bbba5f4db63b960f10a85dad8a7326bed635ed9e952a69 + ssa_ast: 9543c6b6dc43e5bc7ac568029f2e4802500c69d7b2a4a3bccac9a072cea5a45f + flattened_ast: aed53708ee0f6c34622be1b8225f7eae49dd5eb3d9e37620cd7261c16020f391 + destructured_ast: f409041ee4c479f30d80b1b01276b96421cdd398c99cd26dec3c2b6c05d60e24 + inlined_ast: f409041ee4c479f30d80b1b01276b96421cdd398c99cd26dec3c2b6c05d60e24 + dce_ast: 6fd3da415ce3e6e7f507ee764301d74409e57b51ad760a88001880251dfe37da bytecode: 8b1f3cfaee87de68b82bbdf34cdaaac42bcec03c7a1220993034fd1251d4d4dd errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u128.out index 35e28a800b..23c4b4d970 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: f6e7eeaeea02a2c113bdccaa6a3ae483660cc33a8d9f0233eae94ede23a00523 - unrolled_ast: f6e7eeaeea02a2c113bdccaa6a3ae483660cc33a8d9f0233eae94ede23a00523 - ssa_ast: 2e84083377437669d554217db990e9a8e6254d3a50d774545bfb98d4d7632752 - flattened_ast: ba19d6e2378579ce0cd2998c6ad6bb68e79c93cd6c47be68670c7ea57f2a8db2 - destructured_ast: 20a4f523fd490c3995da75884bcdae63670c186780555cd95ae90f960a0e9679 - inlined_ast: 20a4f523fd490c3995da75884bcdae63670c186780555cd95ae90f960a0e9679 - dce_ast: 48d2f96ee2687fdea26b782a4f125d9084a15f392aca524b0574a902896b03d8 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: a20c92762ba15fc84f489f893bb901967687c60f05683016df5262eb6eac80c1 + unrolled_ast: a20c92762ba15fc84f489f893bb901967687c60f05683016df5262eb6eac80c1 + ssa_ast: cbdb1124744647c581281f607937232110b3fa4b7f1fab92a2153b59d4d73ef4 + flattened_ast: f4277a44527b8540f70f3ead353fd6591fe79ce81caf9df01bfe39020f13db8f + destructured_ast: 8e2d1d1dc4627612a92c998443f9463df09e68fa8d1fc4316760ccc1c4514560 + inlined_ast: 8e2d1d1dc4627612a92c998443f9463df09e68fa8d1fc4316760ccc1c4514560 + dce_ast: b5eb7d6494823f2c9aeb40d6b22f90db6d72b6177d0334515e7aa9986a4c5ea1 bytecode: 638b45c57e81c04b6f17fe13aa0764399352a80bd71618b03ff4831da6855f6e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u16.out index 6d3b06be58..bbbd2fd79a 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 035533a0fea95ef107851bb6512b3ec1afc87e12a1e7713ffc3ca4509f26c8e7 - unrolled_ast: 035533a0fea95ef107851bb6512b3ec1afc87e12a1e7713ffc3ca4509f26c8e7 - ssa_ast: 316a4ae61383ccbf425004465af0375c47eedfac95d8a500b1fcca4d729e4b0c - flattened_ast: 03924d23419d73436c14955f565c083f941a32c4ed937b8a8cf55ae7bbea27aa - destructured_ast: 98960b2840874299e8c521fd934a91a1e18a4d8ee35660f673196ad7fbb28a4d - inlined_ast: 98960b2840874299e8c521fd934a91a1e18a4d8ee35660f673196ad7fbb28a4d - dce_ast: 4c94262ad3b45b7559ad4693df2d61de3c2985b5767b9308ed6f6a80430b5fca + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 5bfbdc0af5b69e8ab0f74d45e14abeb2a74dc3367fa3c4f290d7e8877409c900 + unrolled_ast: 5bfbdc0af5b69e8ab0f74d45e14abeb2a74dc3367fa3c4f290d7e8877409c900 + ssa_ast: 226a28898944a30e881d641b37dbc78a80ca8ff81b131c17e7a248602d58d831 + flattened_ast: 6cbd53170e82d21497397625c333c245d99af2dd2d12941febb7bda06ec75f73 + destructured_ast: f9ea7c6942f4737df273362cf7af6008c2717d6f0ddf42049988c01271011cac + inlined_ast: f9ea7c6942f4737df273362cf7af6008c2717d6f0ddf42049988c01271011cac + dce_ast: 991aae26014d8f8e4544e7ccc1a68ecc48f5d52798a13b704b052dd0053e8edf bytecode: bce86817893871d9d55d2a5a1dfb095822a7ec0813c029d7243200b20a401587 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u32.out index 39e3de6c1e..17b2dbd3a3 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: 5f1a4165f3812716fb64ffa63694c9d5a5147bf12d73caffaff93ef7aa723fab - unrolled_ast: 5f1a4165f3812716fb64ffa63694c9d5a5147bf12d73caffaff93ef7aa723fab - ssa_ast: 05652dbe00ceff852f33a1cd71e53b39792bcd13488cffd7ed2d30ff6133f20f - flattened_ast: 97544e449e67486ef020c626019184a5583944f78c906ab1ae750bfb80fef05a - destructured_ast: 35becdd35f963f5a139c5beb31c0d3b9d33c6c8d80e18ad9d60c7fd94e3fcae7 - inlined_ast: 35becdd35f963f5a139c5beb31c0d3b9d33c6c8d80e18ad9d60c7fd94e3fcae7 - dce_ast: 1f5b09b4b9ec38b48143caac19fc0b121c0017630a549ee05849f38f8c4c998c + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 4b47705ed8290bb0b2a6e36d7af87bf19d69f265f0049fe0db2a40d0e39df54a + unrolled_ast: 4b47705ed8290bb0b2a6e36d7af87bf19d69f265f0049fe0db2a40d0e39df54a + ssa_ast: 1669eeed593311775d6bf95cbec1ba91b1409228f4a88ba3a3c3e239abca0e8c + flattened_ast: 42731260e7bd47dea70ad51430012308573dd39f9c5d695be05176bf282b6220 + destructured_ast: 355c01b2776c82ffccfb292e81eaba26417169c8e0fbc9f9fc863b18cf2b9d1d + inlined_ast: 355c01b2776c82ffccfb292e81eaba26417169c8e0fbc9f9fc863b18cf2b9d1d + dce_ast: bc2e442181bad9953ee27c2a6e8c5d8ca18b8f4ba9ddd6fcb7a1ee8dee821eb9 bytecode: 66c33deb9dd42d3e8f6600d5210f16e5fec245557773b8041346f13fbca2c37d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u64.out index c1f78bbc5f..f2c3f994f7 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: 916ecb481971d4f0b290456b913fb7d5dbd4fddd86d1c8761fd60fe9ae09771b - unrolled_ast: 916ecb481971d4f0b290456b913fb7d5dbd4fddd86d1c8761fd60fe9ae09771b - ssa_ast: fcceb6d3a3bba3857030d121a8259e3e8f1efdfd9ea1f61bf88f8ed007791ad6 - flattened_ast: ba6369350849854184d19d830492223b9d79c730e73b5e8597d31f8129fed48f - destructured_ast: e5d148e86773f4b504d68f2192c6ac7b637004ab4e84ac169fa7ce953df2fbd4 - inlined_ast: e5d148e86773f4b504d68f2192c6ac7b637004ab4e84ac169fa7ce953df2fbd4 - dce_ast: 1b30fb6da800851b6e12206a21d5b3be72b919264364994707859e209a1d8b09 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: b623c6fdd17e8d64e9312f95fdabd658c284d8eb6429b2d8e995fe4798a1ffd2 + unrolled_ast: b623c6fdd17e8d64e9312f95fdabd658c284d8eb6429b2d8e995fe4798a1ffd2 + ssa_ast: 6993007bc8024f3bbdfe0ae234ae7eba6d4071cfa4ff130166e4bad3da6b1e65 + flattened_ast: 57db1e6e1c9aef816c592ac8117955173fe2aa973d2624b495b948bf0e3e8a34 + destructured_ast: 1b42eac8afcbc21c4d7e7bd92e7523c9da5242c543b696c2a3a2959ad1840288 + inlined_ast: 1b42eac8afcbc21c4d7e7bd92e7523c9da5242c543b696c2a3a2959ad1840288 + dce_ast: 501b85d5e1b34073cec385632e96e67651b66a170178c6d9c594916d8b926712 bytecode: 8b8c77b3c97fbee9405b7ee10e65b3d317e42479aa8944b3bd3f4fb6f02edbb6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u8.out index 909f23aea3..209821cb01 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_384/sha3_384_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: 157e3f12bd2f20d4848ec52253fad989c3b1886823c36f28ea3468a6bb70a782 - unrolled_ast: 157e3f12bd2f20d4848ec52253fad989c3b1886823c36f28ea3468a6bb70a782 - ssa_ast: 2f28456939fbe495a9c66a85733e85fd3208ae83f92625f6c0c1f1d340360f3e - flattened_ast: 7212366e0f1bc408bb209b33321ab31f0d77b7388d8bb230f536624248c6754c - destructured_ast: 46ce747f1a56114715d74d43cdaeff0ce6a60f978034f1177a3a53af278fbe3b - inlined_ast: 46ce747f1a56114715d74d43cdaeff0ce6a60f978034f1177a3a53af278fbe3b - dce_ast: cc5f6fb2c87c39f35eece3c5fb040180e131080befbe4c23287a2f08932a18bd + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: 15b90018a8b7490974a3a9c46338d533c1a1ee307d5f26ef7aaa83379a0d3419 + unrolled_ast: 15b90018a8b7490974a3a9c46338d533c1a1ee307d5f26ef7aaa83379a0d3419 + ssa_ast: 74282e9e954b731150db33f4dc8d219761be29c6c665498815793e280b7f77d7 + flattened_ast: 36df8b88a49d4de3404400f84f82a9400254517c72bda1558d0bea5b17d03609 + destructured_ast: 96f29365f5a653f24d7ac3f93d66ef1a4dbe14b5f1630cbd89f749b78b8038ef + inlined_ast: 96f29365f5a653f24d7ac3f93d66ef1a4dbe14b5f1630cbd89f749b78b8038ef + dce_ast: 9f7ee32c5de5e2f37d6f0aef7f4baec8b47d35d66f8fa557a9694e4f548609af bytecode: 29856bd31a6992636fabf8b9428115dbf7dc585688f358a617b9352c1c3a377f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i128.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i128.out index 3b1deea99d..8e15c1a061 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i128.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6467a63ee1354e95dba9760f5128eb6f561f4c747fe8c581d9785a312b66ea5a - type_checked_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - unrolled_symbol_table: eb50a48a6bb864efd915e9b6111ede0fd87b6757561df15ffe022ef380dc3069 - initial_ast: 1488ba98462285641e232e372e51186b9974341a0f01e6fb944da358a0e752ea - unrolled_ast: 1488ba98462285641e232e372e51186b9974341a0f01e6fb944da358a0e752ea - ssa_ast: 1c1b83bf14811ec7d794318ce8322d973265a187c0d26a32f6d91fa19439c895 - flattened_ast: 91dd24705951d6b7982d0c30c9315e862d619947248fa817caabc0e7ec534c2c - destructured_ast: 095e04e47850a98074c18b478f8c63136a0fa3f2598880ba7d124d9388386c5d - inlined_ast: 095e04e47850a98074c18b478f8c63136a0fa3f2598880ba7d124d9388386c5d - dce_ast: 4569829854999a683d875532c2062f7771adc84f920b8451cd14a4640aaaf394 + - initial_symbol_table: 7663250c6f266d8ff8bc029270277b0e00033e6628ea14a1b3dd9f46eeb34834 + type_checked_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + unrolled_symbol_table: 85f860a6f878c647bb1ce0795064b136203d3d64a6a12ca6ef59af594af77dce + initial_ast: a8cb3d7097eb49ad5abdbeb414d394b1c92bf1f42ca7cd7a50ddd9c132fa3f68 + unrolled_ast: a8cb3d7097eb49ad5abdbeb414d394b1c92bf1f42ca7cd7a50ddd9c132fa3f68 + ssa_ast: 352298a31c3231098ec3afa7454a8125a923aedcd8656ac6b55fb61ba059fcd0 + flattened_ast: f3822bac7de9ad17699771c1a928fe1c2f837807d74521da566b5fde3b9719b9 + destructured_ast: 56c61a1e69c86f3bc89feb7837daf3bf83cca190264a0d5a6e47c7a595f5047c + inlined_ast: 56c61a1e69c86f3bc89feb7837daf3bf83cca190264a0d5a6e47c7a595f5047c + dce_ast: 720bef4846bc65ce48b21718ac647c47b18f6cc2cb5b5dcd73aba8a5f4ee2143 bytecode: 84d2910c4f799e360581da0b0aca505e95e1c1bb187f45877c5b227e9561d936 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i16.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i16.out index 48a839e7fa..90e353cfc0 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i16.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e276b05db8e6b69ca3ffa88df800e2132553055ec7eeaf1fedbb6c34bf47822a - type_checked_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - unrolled_symbol_table: 36e3ba0129fb7ad935fa93867e1d3ce97a8aa25881ead5b6e37c1fc0deef2c7a - initial_ast: 2b22bcfe4f597e110d05a54ba0e69b70b4b457ccf7fcf3acefb9bfba8af6372c - unrolled_ast: 2b22bcfe4f597e110d05a54ba0e69b70b4b457ccf7fcf3acefb9bfba8af6372c - ssa_ast: 3ba058de70d20faec220975d0f01296095caa52c73630b615607732b7901c467 - flattened_ast: c7550b8d29cbe7b79dba5dd28b23f647766d84a4adb77e7427e6bc2813f03b97 - destructured_ast: 20615643b9cbb5538026d683b13b6650aca997696d6e3596fa1b42af761907cd - inlined_ast: 20615643b9cbb5538026d683b13b6650aca997696d6e3596fa1b42af761907cd - dce_ast: fc9432aec0f9e254a0671a994b85f18dfafdeb3ebcddafc8eb2c1d1c836d80fc + - initial_symbol_table: 290d40a093afd471bc1d3a52c29e2e26e92306eb875e45a0f4331fb42b9ce0f0 + type_checked_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + unrolled_symbol_table: 53cd6927f60374950c3d2059d575bd1ca571cba352ad61b93ee8ef0f3dd17d88 + initial_ast: e34ccdf7eb9587d0085d60835c547f2849132dc52dcd9577fbd7d69aadf6e4a7 + unrolled_ast: e34ccdf7eb9587d0085d60835c547f2849132dc52dcd9577fbd7d69aadf6e4a7 + ssa_ast: 6487848f5f86bb89f54ad63c1bb9727f4bc45125a394c56708ac41c1916a7ef2 + flattened_ast: 63162dcf502b4d786c88e58dac608cba1700b0e86409b34b46e114203e5d24e4 + destructured_ast: dced230951620c85d0c64e10780e41110cb9c4c6543ad5f364bddada4ea090fa + inlined_ast: dced230951620c85d0c64e10780e41110cb9c4c6543ad5f364bddada4ea090fa + dce_ast: f7863dfbf9af9e39f92b0c3b39fa707d0aba991050dd262e06bbcefcce5d1143 bytecode: 101fe1af849e29ba44ea27ea575a3393fba2e0d2e302e43327b8547561b5a2ff errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i32.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i32.out index 5327fcfbae..bf69235596 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i32.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4cebbf12b1be5edea4f632d15e3fb699ef4935d2ae703091da80fc474c8de9cc - type_checked_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - unrolled_symbol_table: 3f0d8599e1e7fee664aa8947d8d7e2aee461702e758a36ad7beec38224a4f521 - initial_ast: 77f0918a06860e75f37d4166f3ddd89accc6f38e3d257adf5372976ac0046ce7 - unrolled_ast: 77f0918a06860e75f37d4166f3ddd89accc6f38e3d257adf5372976ac0046ce7 - ssa_ast: ae59018da5d7fb6ffb49d8238eb9a6ddac3b3391afe364110a052a421a604231 - flattened_ast: fd88f699fa7c2859a5faa083e6b857357d30d82104951b25db00c4a96f1f3dec - destructured_ast: 7a55c70cff67da51e7ea5dc1276f1e397f815208ca402d7ad7d9596e3884287a - inlined_ast: 7a55c70cff67da51e7ea5dc1276f1e397f815208ca402d7ad7d9596e3884287a - dce_ast: 2aedc19a9e31beff0412e8784cbfc146156e7119c1dafb11c670267121fd718f + - initial_symbol_table: 4f1b711ac4ce320723caab53c19d79ca9d58c7f2713aa7a0ba7a88fcb3722380 + type_checked_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + unrolled_symbol_table: 94798bfa98c80ee322eb7ee8ef795ee8326b556310da986d1af3aca6b421793d + initial_ast: 1231eef7d090434c5fe263e9cff994b0ad1477a67e1bf246b801290d36e772d5 + unrolled_ast: 1231eef7d090434c5fe263e9cff994b0ad1477a67e1bf246b801290d36e772d5 + ssa_ast: 8e9ab10824f1df59b8084e01b7a446f1ab0836c6c6f5e1be4bc70bb3d9fb46ca + flattened_ast: 3a949aaea7ac59f8867522cc32192fd9cb608581e56c4f23ac1a2a26fdedb921 + destructured_ast: 2f62c43ec0dd1d851c73847b5ab016c6aa44b00652ed20fe96badb40abed8be3 + inlined_ast: 2f62c43ec0dd1d851c73847b5ab016c6aa44b00652ed20fe96badb40abed8be3 + dce_ast: f5c3013f251c512daa19015d256d8c5004460f8981a231e29c88d9539d743220 bytecode: 6ef5805c3336e65726b72f34cc357f5f87030d017dfd525f232f912f14c3f421 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i64.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i64.out index 5cc0e8be89..827648bf1c 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i64.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ee526275755ac00f4021d83c0910b43dfe778d89a9b648af676aeea6069c7ff - type_checked_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - unrolled_symbol_table: 667298b34ede0080d586ea0d33fea24caa30161858ea6b4909bc016307ee4998 - initial_ast: 41666751ba556202f71a3e37ac1ae769b59591d5d826451b1c129a29aeb2c87e - unrolled_ast: 41666751ba556202f71a3e37ac1ae769b59591d5d826451b1c129a29aeb2c87e - ssa_ast: 3385b2ba97737c768adecf5692348790296d2209665593b6150e2a7a64ad86ae - flattened_ast: 9d668c468c131a06f55b2efabb3caa85e9aed3bcfd4c95d89eb5e51afd7d21d3 - destructured_ast: 1c047ae1947c74393b28fb155e2a719b0683ed9f37a44a09d54025d5f2c0aa59 - inlined_ast: 1c047ae1947c74393b28fb155e2a719b0683ed9f37a44a09d54025d5f2c0aa59 - dce_ast: edd77e6e64f41014870c89090c2de4762b4585dda63675bc367ea836f3321284 + - initial_symbol_table: 07765fd5744b4db718505bb192e1b8d4f320959bd7637d3b17c239ae7251f2e3 + type_checked_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + unrolled_symbol_table: 7d73ccf676f12a6181beba19e2a833221e501cafb11a15de29b2a93efc5f3e55 + initial_ast: 2711c7880d897d8046b2bb472965ce36bee3f1f8703c48578ff56ebd76214be0 + unrolled_ast: 2711c7880d897d8046b2bb472965ce36bee3f1f8703c48578ff56ebd76214be0 + ssa_ast: 2da4a409225ddcfbe2d18ea6d5d005e2b5e6a486dc2778b3022256cdf38699c9 + flattened_ast: 981a8dec8e46ed079ff2645279a0d6090de8f6af962bb46597d5f707a655bdc5 + destructured_ast: 945d224931a7d0b02c93371002070ac36031dceb6d8c34d4abe707c58c35052b + inlined_ast: 945d224931a7d0b02c93371002070ac36031dceb6d8c34d4abe707c58c35052b + dce_ast: 8c0971b2c56a06bec0626e2dcf8a16d7bec63283ed49d2509837688f94ccec5d bytecode: 23b8c2466fbe8fc4cabd6fb7bb3b980b10ff779efecfd8fd347d3c4b46c2dc58 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i8.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i8.out index ecf5f5a09c..66b04b2064 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i8.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_i8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c22b100668257ba565eeb4bdac218e64a0317a34c8ddd7056b8cac6343c767e - type_checked_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - unrolled_symbol_table: 53a5b562cbbfc13ca31fb239ef1d13b13aa55c0e6fa2dacee730726f3ff3510e - initial_ast: fdd08bea4a327aaf1f2842eec112ebe73a238d1dd6064b3de0e77516b544f660 - unrolled_ast: fdd08bea4a327aaf1f2842eec112ebe73a238d1dd6064b3de0e77516b544f660 - ssa_ast: 68d349e7bbc6a088ce49e901840d9b6a048013d4a2cd1b887e7eaf69a81db00c - flattened_ast: 15c68d6012f01c7759b330dfa279ab58e13720e2eaefee2df9b7404ac55c14ba - destructured_ast: 6ddac2e3c2d020d68a604e42e4351063c64a6630a31cb71274a21f26998ba25a - inlined_ast: 6ddac2e3c2d020d68a604e42e4351063c64a6630a31cb71274a21f26998ba25a - dce_ast: bb7b655bdd384389c3fe6d6edeaa80d25abd96cfd5e3efbdb4a80cdd791f5c97 + - initial_symbol_table: 35ee2e769ba8d1a174cc4f967f1b9a4f8844bba3d9982c2ac3070ce1d6825060 + type_checked_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + unrolled_symbol_table: 499c212f93d8d1968ab8caeb746487a1733eed5a898dc32b222e09e5df217c9f + initial_ast: 367edf05b9546890fd3cb47175c26ae77377993344e89819f16bf8c34a82e920 + unrolled_ast: 367edf05b9546890fd3cb47175c26ae77377993344e89819f16bf8c34a82e920 + ssa_ast: 7348b506864bc069a0b7c4c3ed3e6f3430ac69f44c4dae7e5e7c981fcd866572 + flattened_ast: ad479a4cc39109cae56de8f71c72e76805d8ce6d35019d554bba77564551c033 + destructured_ast: c58dc43f95d71d94ae71ecc64e04fec98d5210c600b9f1b741708be06db0369a + inlined_ast: c58dc43f95d71d94ae71ecc64e04fec98d5210c600b9f1b741708be06db0369a + dce_ast: ce3de6eaa14ddf751f98602bd68d46d87b26f62ec486a16947f6d78094b12761 bytecode: aa8cfafa904c5e0d62b9bb6d271a6182830cb6cfb1bedaa78812a6e5be735597 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u128.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u128.out index 72c66cadb2..22f01cedbc 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u128.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u128.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 39f3fa8604259aee8964c8ff8d49efd1821694fecd76f0dc9007ca7f75ded146 - type_checked_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - unrolled_symbol_table: 8f22d66116ac703d735d89143a7ae2148e6f0ef26290a3cfd6337c9558e2949d - initial_ast: ae6b60e98be171e74f391df60acf342f325669e6551a53e6e5e712476e58d55f - unrolled_ast: ae6b60e98be171e74f391df60acf342f325669e6551a53e6e5e712476e58d55f - ssa_ast: 724275c895cd92901133c1b6f5327e1340d13fd57a40107ec7ed416844bda21c - flattened_ast: 7e0fee53cb062e8b7fa2444eb65d92fd5cf86047a1341c6d29f85fb74b028176 - destructured_ast: 515cb19eb6fddb9c2edd5489d4decde4467b1c7adf1ad476bf907e5c0708f8d3 - inlined_ast: 515cb19eb6fddb9c2edd5489d4decde4467b1c7adf1ad476bf907e5c0708f8d3 - dce_ast: 1f47112254c30f315dac3edf34a06af755c3eecbdbc3eebf2acda25df0a4a273 + - initial_symbol_table: c61001eb615254ac870ec9d0371f14625c9f8a37460dcd21200d89dc858a38b0 + type_checked_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + unrolled_symbol_table: 3b673765d4870f7a85c78676fd417b30a14bc2c4f7197a499b6f2f278440d39a + initial_ast: 9dae74aa869557b2742a6480593ac512c705853e8dc0a9a6669cfa616060d2cb + unrolled_ast: 9dae74aa869557b2742a6480593ac512c705853e8dc0a9a6669cfa616060d2cb + ssa_ast: 2790a4076305db4c5798bf3f50c7c89dab97725848e57a80520331cccc3752e6 + flattened_ast: fa990e4f5c17e90d3f6c087cf59da76244a155a18441e3cdd4ba20013874534b + destructured_ast: a244cf830016399bfdb5a72882bc7d0ccbc948b9c5b13f2dee9a73a75978971b + inlined_ast: a244cf830016399bfdb5a72882bc7d0ccbc948b9c5b13f2dee9a73a75978971b + dce_ast: c554e9f3695e80d52fd67ff2cb74cc6be29bc10c8e69e1a1a1959b9ed8de87f9 bytecode: 540f46ca90fbe10a5ad8ff7b757d5d55a6e735ffd21c22116e7c65f0b9bde58d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u16.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u16.out index bd6fa525f8..74e4d37d91 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u16.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u16.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0a4365cf4560871d2fcbf3ca79d88a935969d230993bd958d28cedcfddde4c94 - type_checked_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - unrolled_symbol_table: 652a4b5d0da7be31b390b792b4a6ddcc4da23fdf451975a6f8b0aad0806672ac - initial_ast: 6dc83719d4137a10533be67d7b06631e61104e630c7b6f6d1ec71d4d7964f817 - unrolled_ast: 6dc83719d4137a10533be67d7b06631e61104e630c7b6f6d1ec71d4d7964f817 - ssa_ast: c8f19a78914c0ab52de57cbd2a84eefad0735e1dbaa5252c5c5630d5a19ab133 - flattened_ast: b169229822a9f9c86bbc5708aab2a2c0302a9fcad7e657c95a69366e9471c4ef - destructured_ast: 9fa814006ed855c123e0136790c53afe39f221ba25ac187d315cf9ee2f91aaf3 - inlined_ast: 9fa814006ed855c123e0136790c53afe39f221ba25ac187d315cf9ee2f91aaf3 - dce_ast: b4d5ffc08d8fa9a94cd794e6c0a4738905d60bad6fb744abbacad4e4685d53ef + - initial_symbol_table: 0ca2caa5119ad8321c02902964c50669237711713d6ff2978bee751b9188925b + type_checked_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + unrolled_symbol_table: 4dca1d62163f5d313d3dc3eba26a64f890dd816c23c96432624135c5c1426af6 + initial_ast: 8cf064f5101fc0d4a437425fa49d009de1c545d9a9412688ebd95e92baf8690c + unrolled_ast: 8cf064f5101fc0d4a437425fa49d009de1c545d9a9412688ebd95e92baf8690c + ssa_ast: 04bc15e3a49edb19739690f759b6ac940d35c61b485a827189224ae13a5cd51e + flattened_ast: 0f44205a6ea70a44e0ec0930f0b39b6813a8d061814fd92074d0d6684a99b039 + destructured_ast: 6ff40ee20b9d473d30afb74d9310d56e2f8951fca1ac4b95f4506dc5db967b46 + inlined_ast: 6ff40ee20b9d473d30afb74d9310d56e2f8951fca1ac4b95f4506dc5db967b46 + dce_ast: 1ed573272e31a0680a2f65263dfa5520d0c2a56523813ce23a35f08608949e07 bytecode: a00a5d5ec5035a093b4928bdce57a4d79d9300e6f86565525e88bb670eb02957 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u32.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u32.out index 65e2a8db5d..b6bc94e103 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u32.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u32.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2dc7ad5e83f9c1cba20c56645ec155cb70abd718a81424b366f6c5678c6de77a - type_checked_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - unrolled_symbol_table: c149a9b656b0bf41d055568d6d3c38be12cb9e7c46fd669f861d918fc8f86e99 - initial_ast: b2d31a0d44c402a945902b126f461b34327d61f51f45943f8989ebc2cee534cc - unrolled_ast: b2d31a0d44c402a945902b126f461b34327d61f51f45943f8989ebc2cee534cc - ssa_ast: 9dd0bb92de09665ff3d6287f89208e0bc024af0c081534b182dcb98465080537 - flattened_ast: bb07239903e739320ec4a8b6e06b62e959b530c4b3e6cf89df4d159173df452f - destructured_ast: 2ff883395a6c682ac443951eb6e75e8e62f0a09cdea459726f02f7ae0208081b - inlined_ast: 2ff883395a6c682ac443951eb6e75e8e62f0a09cdea459726f02f7ae0208081b - dce_ast: 63c660e03e5d7d6ac8925bd1f385e0a19ee19e1ba60575fc67397722f460b39b + - initial_symbol_table: 8a8e3573eac7f8f017654f77635ed47fa35bdc38f8f236577f70eaf8d902f0bb + type_checked_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + unrolled_symbol_table: 28867dd4811976283a9b5e0d146926f02dbf0b1d1e23d3173901ffff0c26cce9 + initial_ast: 8490764c85b3d378c801a0d3391d672b65f8b2db8735cff86689fd12f086b8ae + unrolled_ast: 8490764c85b3d378c801a0d3391d672b65f8b2db8735cff86689fd12f086b8ae + ssa_ast: 0bfb8be8c6a7c8a4ffd1fa23afa757108f08a6f218c6f973d8b9c1bd04ad9336 + flattened_ast: 200b739da7da137c1d73d9b740937f2b87d5ae23c3c0515978fe6419332d914d + destructured_ast: 28478fa1aab27cfd6025b499f2447412d83f38a2e8c147164a79186a51f047a1 + inlined_ast: 28478fa1aab27cfd6025b499f2447412d83f38a2e8c147164a79186a51f047a1 + dce_ast: 97fca0869033e15184106f634041f0d26ee4217ee0cdf3691da8cb65bd4a4296 bytecode: 0719502c2e69186b2f64fe31ce1cc6f35abad01c9a86f5f6d7dafb7c465504b7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u64.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u64.out index f0e5d462ae..e306a25c65 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u64.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u64.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d5fd069f6ac8ae6bf3f0312c296b2e8992a55396485d96bcbed914675f614b70 - type_checked_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - unrolled_symbol_table: d5db26b218aac3755c6d6d30cf6a5599dbdf0efc1e739d355bd4362ee6939481 - initial_ast: a2812f29af14028ed954a6ccebc2ebee5e07e81ccdc8fe027c064de252479867 - unrolled_ast: a2812f29af14028ed954a6ccebc2ebee5e07e81ccdc8fe027c064de252479867 - ssa_ast: fc531333c182498badd881fa04447891813b2b2437d879073ca20d4a4789e553 - flattened_ast: 44fe605ff0a80dc0c82b9d278f3d7f0ba6b0ad8c983880198f39650358668fda - destructured_ast: ada11fb5bd2e77fd1ea987adb8b0fa731a3944e2130f426e9b6a3b2873c15afc - inlined_ast: ada11fb5bd2e77fd1ea987adb8b0fa731a3944e2130f426e9b6a3b2873c15afc - dce_ast: f44cea1db14df441d6a2b1d00a993d834abd866a3ca3620613ef088a2327d867 + - initial_symbol_table: bf263d04fc2a6ac36471c659256e5478fdf34037fdce7f864e8b162ff591efc1 + type_checked_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + unrolled_symbol_table: 53bf621a0d188b44634e3178e7de4ba51612d1f857927d994e2d44ffe1e9b8b3 + initial_ast: 004c22b333d9172d5651ef8bc1c52cbbb8a9554b9e9630406e76180bdf9e134d + unrolled_ast: 004c22b333d9172d5651ef8bc1c52cbbb8a9554b9e9630406e76180bdf9e134d + ssa_ast: 520fd8491e189f7eb7970f7bb6ea46210ed9e94726ec9c765b39b29706704062 + flattened_ast: 398e18779c355a4097eb5589e137d8e2b5be58ddd0af2c1b0582bb8d22ea0fe8 + destructured_ast: 1d9646c5e2deb8849d6a3534e643c1e427bfbe3002a95f7e33acb4b737a14615 + inlined_ast: 1d9646c5e2deb8849d6a3534e643c1e427bfbe3002a95f7e33acb4b737a14615 + dce_ast: 81cc7043323d42785d62ef16eb00dc3b615667006b95109a338b306491f0b2e4 bytecode: 2741bb1b69d7b32d52a4f6ae48a4b8197f73e8be7531d4d346fcce378bbda8dc errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u8.out b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u8.out index cf9d0b22af..15fb7702b6 100644 --- a/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u8.out +++ b/tests/expectations/compiler/core/algorithms/integers/sha3_512/sha3_512_hash_to_u8.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd9f4e83f6c323990bf20628ddb73c5db2fbfa246e70a8365e06dbb37bc88ff3 - type_checked_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - unrolled_symbol_table: 67190d8f33c3f10b6e31b4174b678a5767b21736929d10e1059c656efac2bac7 - initial_ast: ae265bf4ee827e37767fd7e91d0cb3183ef69f1475dc6afd5208fbb20b15ea31 - unrolled_ast: ae265bf4ee827e37767fd7e91d0cb3183ef69f1475dc6afd5208fbb20b15ea31 - ssa_ast: 0673420d7ad0acc31753659ac6b468bf96b65521658f687fec8c933515eeba0d - flattened_ast: d609c0d8f9aa6301d37ddc05ac4e6e3ff92902759da940b230a3ecd2fa83d4a6 - destructured_ast: d5c7d096696f6df82b713fb086f0c65678e20ed039d0ecbf2759930cc1b65c36 - inlined_ast: d5c7d096696f6df82b713fb086f0c65678e20ed039d0ecbf2759930cc1b65c36 - dce_ast: 261d1126d4d55ad551233dab8a3d7b462d6943d667ecb223652b3046569836f3 + - initial_symbol_table: 6f3b0bb827fe9e0527663a89ab2bb176631983eb7f66fc71c01437d229aab92f + type_checked_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + unrolled_symbol_table: 469c1b2c9bd2ca9d2a8bfdd68f3fdf29988d0ada94149ec8cb650ec3ff419534 + initial_ast: ac1776ca3515152b8ba5452aede4474538fd9b26d3619148437819f7bcadc46f + unrolled_ast: ac1776ca3515152b8ba5452aede4474538fd9b26d3619148437819f7bcadc46f + ssa_ast: 7cfd92634a26174c8329fd3d00885bbdecf7a5753e726ea686931bd94c518746 + flattened_ast: 9f9fb1c74fe56db7823f6f975a59a502d96cfe463c54329d5b90a9312ddb9af9 + destructured_ast: 6989e57f0d26f162ccfe98336e8f05cc80815883c1d5ead8ba44e211455e0d04 + inlined_ast: 6989e57f0d26f162ccfe98336e8f05cc80815883c1d5ead8ba44e211455e0d04 + dce_ast: 44ac974176e400882ec85cedf11e99db68ac41c02aa250e7b16002c11cf20ffa bytecode: 5c85a376013c529f75944db09bfa9ee85470aca42e5622cfee8cb8c8dec29145 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_address.out b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_address.out index b3a1cf55af..0339cb820d 100644 --- a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: c528132d7be5b76c9a35f393bae99e2e26e4a39e57c5f6121818a08fe84a3e97 - unrolled_ast: c528132d7be5b76c9a35f393bae99e2e26e4a39e57c5f6121818a08fe84a3e97 - ssa_ast: e7cd1542d64a70cfa0ac658afceb669f0fdf398a91528e19b8a61af4e5e76b87 - flattened_ast: 6569cd1eb9b550601d4b90e1cc343f32becf78e9777d6afbf09e3c0fd085506f - destructured_ast: e9e2abca24816d352227949f55f6adc6b79a64d1d23df16428c689614f4f7dc1 - inlined_ast: e9e2abca24816d352227949f55f6adc6b79a64d1d23df16428c689614f4f7dc1 - dce_ast: 88ee42f5fd06dfb1978c8e550305aab91a7c2f6367df7a10db294c9d5af27c4c + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 74b8439793cd3aec8038517bdaacb185b380800ebf48cbf245205a98701eba13 + unrolled_ast: 74b8439793cd3aec8038517bdaacb185b380800ebf48cbf245205a98701eba13 + ssa_ast: 2ef35645fc7a0db6282c8837a1c111654584f57c454c9967b5ee3936387001b0 + flattened_ast: f359d90a5f9291d2389c76027fbb3edb2bcc01de8d5edd040e472121d593ac4e + destructured_ast: 8b2f9edc092a44b71e69d197e53753d70a8c8b1e0e72e69c4d78a10e56359ab9 + inlined_ast: 8b2f9edc092a44b71e69d197e53753d70a8c8b1e0e72e69c4d78a10e56359ab9 + dce_ast: c2602bb850daf40b98737fb10e33db7cd6a860cf592bacd60554974866cfd409 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_field.out b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_field.out index 1d1bf826ec..80b813c672 100644 --- a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 3a519321eb405aee3cdff3a0d4cc9a6c3eb11e02b9bc2bc057b923e6e32dd2c6 - unrolled_ast: 3a519321eb405aee3cdff3a0d4cc9a6c3eb11e02b9bc2bc057b923e6e32dd2c6 - ssa_ast: f85821ee12494268bc0ed45e7e95226af68eb275640eb6c403ee3ccf0736c472 - flattened_ast: 0abb596b937927f53ab354cae39c6ecd333efe1449fb77b8108a38d8ec818c46 - destructured_ast: f150c0161a67f67c0e6bb86bb90d71fca8c4cf5f9d34a7891bef757bf3cad328 - inlined_ast: f150c0161a67f67c0e6bb86bb90d71fca8c4cf5f9d34a7891bef757bf3cad328 - dce_ast: 912ac3ca0e5ce765665e1baeb79c3a37c7718ff6ef9c9cbf384b04cceff2da36 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: d5cdd2c0ed0a3a7ca4183a11323d9fdbbd416ed4ad9a38603c031cb6eb9c2ee4 + unrolled_ast: d5cdd2c0ed0a3a7ca4183a11323d9fdbbd416ed4ad9a38603c031cb6eb9c2ee4 + ssa_ast: 11b8372d8821b315d8b64a5adaeae7f3867f33839d4c20ff8691c6972c82ce46 + flattened_ast: dbb50711d70701f5dd2b13d49a4a6c873981fc404c365026cf99392c19f284b0 + destructured_ast: 6bc004b2d1aac2a82ebfba5fef0de3016fd3878ddc91bb1ebc667ed722389203 + inlined_ast: 6bc004b2d1aac2a82ebfba5fef0de3016fd3878ddc91bb1ebc667ed722389203 + dce_ast: 3733db661dd6aed9a140c8dd2b6f5e72777a613c19c3befa34efb2ca8bc1ed22 bytecode: 21736a09a94367a2bf017cd7dc7dade802a2f064f2343cd3d295eac4e3dca0ae errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_group.out b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_group.out index 550b9306ac..ac0b531a95 100644 --- a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 376a98db77b336d61b78e87b4e3e4c9b890fdc272b15b4ed994f2edda5524534 - unrolled_ast: 376a98db77b336d61b78e87b4e3e4c9b890fdc272b15b4ed994f2edda5524534 - ssa_ast: 3399b8d31fd24f93442affa5b6d3b74a68b49a325ed32f445a0759506ceca2a8 - flattened_ast: 8943f237d07b8528a385d1b00ed9895d084fc35319791bdd47c2dfea6f90dd6f - destructured_ast: 521f87cce595edf7a4e62d6648df9509060593d8134b4d9b8ed6a319d8c41051 - inlined_ast: 521f87cce595edf7a4e62d6648df9509060593d8134b4d9b8ed6a319d8c41051 - dce_ast: 74783c5a8e287a0bab45085bb97e89b4a1d6a7ffcb0229bb27c83d3639427f49 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: b457991ff72aa25b81f35585388f596b67ba9d3ebfcc99f55ff09cb1b75e50e6 + unrolled_ast: b457991ff72aa25b81f35585388f596b67ba9d3ebfcc99f55ff09cb1b75e50e6 + ssa_ast: fd45cfe4d65ea588f51f1c1faa7bb2c272ae183c83849b40eaa5d58dcd11614f + flattened_ast: 9cceb97f6fbb6f5c858f882e6d2918a3aec5d837e19c0fabbaf83d622045b1d0 + destructured_ast: a9e9778690e67d8bb6f57aca804a137a5804cf2183f2579e37bc5b6288d4f628 + inlined_ast: a9e9778690e67d8bb6f57aca804a137a5804cf2183f2579e37bc5b6288d4f628 + dce_ast: a032b4b0365f1d9544ad419dd29aa881e42e184066d3764344244c1123faab6f bytecode: 12b2cee6aa44638371f466d0f9a4b6396e2a466669a11a938b7ac251a5b23eb6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_scalar.out index 60710b4f5b..32a1bf1c09 100644 --- a/tests/expectations/compiler/core/algorithms/keccak256_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/keccak256_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: 0c2662f7ca3885e151900fafc55837dc0ea62e42ea1b9adc51dc9c3da0f35ccf - unrolled_ast: 0c2662f7ca3885e151900fafc55837dc0ea62e42ea1b9adc51dc9c3da0f35ccf - ssa_ast: 6aa482132c9646a33d68aa96b4a0e48b6d2825acb244d3b2df1b6a49e63f4a58 - flattened_ast: d58bc631d4423cc5917d8ae30601997ef2318d6bda393fcc0715a42b813c0bc2 - destructured_ast: 3d366521d63e8c577a93e81280a2134401892b740661e766a5d645ecc625a032 - inlined_ast: 3d366521d63e8c577a93e81280a2134401892b740661e766a5d645ecc625a032 - dce_ast: f15203e22d1ec779ecdca512fb30d89f9ec7512b5f67b2e34f9bbdc12f538f4e + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: df04c87fe6445c001c5f926a0ce155700e97f4aa655f48e4fb00092d54d6064f + unrolled_ast: df04c87fe6445c001c5f926a0ce155700e97f4aa655f48e4fb00092d54d6064f + ssa_ast: ac7de5d821d23c2792e305bc56089ef4fe1e3ad9151c9f7298041efbd660320a + flattened_ast: de006e636f0e7bc76ccc79dc6f4af8871c60c6c7e2eb48771c136840e34bccf7 + destructured_ast: c1b9aee83c550d4189d74dd721bae089b72eeca43778e51001e21f6488df2fad + inlined_ast: c1b9aee83c550d4189d74dd721bae089b72eeca43778e51001e21f6488df2fad + dce_ast: c6eca166ee4627c83a092ab686b3a631cf7b0b6ef16eed1e9ffea1e603869d71 bytecode: 9600a008a2a7ac916f8e19cd292c150bf1474805e87b407c17fc2e079013c356 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_address.out b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_address.out index 95679fb4bc..34f043f81e 100644 --- a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 39238984c4f957313d498ac93d769d5eabf31529e86f084f249348f98ffc4f3d - unrolled_ast: 39238984c4f957313d498ac93d769d5eabf31529e86f084f249348f98ffc4f3d - ssa_ast: b5a21c311dc06cd3a1df24282de234330635ad8c04cebbe21019e6bf7749be3d - flattened_ast: 42e28ac119dfebc43d3c23b722b714ff6237238c029fa0814c1c510a10feec70 - destructured_ast: 7d7ed101712088169c4aa93d3592fcb2a6077bc360ba01aceb6e77a3d9235389 - inlined_ast: 7d7ed101712088169c4aa93d3592fcb2a6077bc360ba01aceb6e77a3d9235389 - dce_ast: 88ee42f5fd06dfb1978c8e550305aab91a7c2f6367df7a10db294c9d5af27c4c + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 6bcd1c099f810d22957b72b5ef96af5e8310e892387e5608606ef5b684fe4cbf + unrolled_ast: 6bcd1c099f810d22957b72b5ef96af5e8310e892387e5608606ef5b684fe4cbf + ssa_ast: 25f67b1d3dd7dd5c2025f20388446590f88d628be4dd1393b0023f0db7ee67cc + flattened_ast: 2a7d350f81a30c16f32f269ef506605f6fa32987c053daeafd7ae1f0b0655d88 + destructured_ast: bceb30e7699266968372de097472dd3502c2a4830d77aff31682b0f6d04afb88 + inlined_ast: bceb30e7699266968372de097472dd3502c2a4830d77aff31682b0f6d04afb88 + dce_ast: c2602bb850daf40b98737fb10e33db7cd6a860cf592bacd60554974866cfd409 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_field.out b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_field.out index 7da0f868da..117870886a 100644 --- a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 68b7b72b55487a3037a28ad97a8c66fea32dd888d146e0dbd9e0b54e15127e98 - unrolled_ast: 68b7b72b55487a3037a28ad97a8c66fea32dd888d146e0dbd9e0b54e15127e98 - ssa_ast: 6b02400cbee3589f04f676876baacaff4eaabf1b5f754bad5ea5a8910d955a6f - flattened_ast: e44c3cecbba9f76a11b26cbe9557313d8e5e4a234d209d1485bf8893eb51ccf0 - destructured_ast: 65842d12d143fa3427600e370147d2f1b1f73fec8d43cb5e0fbaf76af636b322 - inlined_ast: 65842d12d143fa3427600e370147d2f1b1f73fec8d43cb5e0fbaf76af636b322 - dce_ast: b02c97fa44749fc69a6bbc10f7ea9c05e0cc2fa9d873dbedc171407f36d1bc49 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 0d9a962eb41cf96b8482b5acbf76cc8a5f059072f178f4c4e9a4733eeab6845c + unrolled_ast: 0d9a962eb41cf96b8482b5acbf76cc8a5f059072f178f4c4e9a4733eeab6845c + ssa_ast: be7dd89151c0a9b59b6489d2baab059534d10261de924ffc7566d33fe1738680 + flattened_ast: 6b7bd18aaf9d512070ef7455ff39548cd1a4d35b778c452407f9070f4ab6e1ec + destructured_ast: f86e3bf3a6fba1897313108e7d717d55428d1c29c4773013ed38fa3a628d24b5 + inlined_ast: f86e3bf3a6fba1897313108e7d717d55428d1c29c4773013ed38fa3a628d24b5 + dce_ast: 4adc141d7c86c05310f4e79177808c38841ec8fb5291bcfbf808e650d3789faa bytecode: f5347c70dbb10f7c191f2e29dc9b2e58760207351d34b8e0a5ccb91e360e9f79 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_group.out b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_group.out index b3cc824eb7..a75c70a29e 100644 --- a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: d7d44afccd8495fee32434324a4921e72b25627ae16cff47101e34953d49acae - unrolled_ast: d7d44afccd8495fee32434324a4921e72b25627ae16cff47101e34953d49acae - ssa_ast: e300965c44827325260013540df5d6953bf6bc619493a9f3378da75a84a04a64 - flattened_ast: ed8fd025e8dfabbcd1afa1ad8bb30022360a68467ba917b1be625ff3168594a4 - destructured_ast: 1f4e72f82133caf0c7f09a2a359dbc799e6fe56e78dfb285b350d4897703b7bb - inlined_ast: 1f4e72f82133caf0c7f09a2a359dbc799e6fe56e78dfb285b350d4897703b7bb - dce_ast: 5ffc00dc79d447f1b7ca3c65a3f2c6099bed4d8f15ee8b079eebdce68f47379f + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: c94b251a7e87b605ed216014ba31cd38a2a647d9caafb759cffa27d1bde8894d + unrolled_ast: c94b251a7e87b605ed216014ba31cd38a2a647d9caafb759cffa27d1bde8894d + ssa_ast: 10767aaa6b47050cc4b23dbabfc3f6c947c3bc198f8f1b187530a1581c471d27 + flattened_ast: 9588838dd5dd452ce563900d70240e99c929fd371089ea59c620d08a65d23f45 + destructured_ast: 86fa6248248745e36f6786e3892c670fa111c63a4f1f8b9b295db7374f9566fb + inlined_ast: 86fa6248248745e36f6786e3892c670fa111c63a4f1f8b9b295db7374f9566fb + dce_ast: 3e621520e2f5d3c2cf998093f22d42abb55830699c264a8b29bf38461af6c190 bytecode: 7be24faec6f77c016109224b474ae5e5ef66bc3d02d058ae748d6b992990d165 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_scalar.out index 01da0f32be..be80e97666 100644 --- a/tests/expectations/compiler/core/algorithms/keccak384_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/keccak384_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: b6f276959fd703e8ae1edb245d3b59a9ea49c1173383cd4a92090f41082bd3ea - unrolled_ast: b6f276959fd703e8ae1edb245d3b59a9ea49c1173383cd4a92090f41082bd3ea - ssa_ast: 16201f18e752e2a44faa4861cca11743d7711252bd1a3998e51d6611ec5cc2a0 - flattened_ast: 951182fd1ce8453cd212a8d8d8d084f0e6da83e974e162748ac766dd91561d52 - destructured_ast: 85b261a0b426451c13c2566af22af10939056fc7bd1b9fe55d5cf2d7b9be5ea0 - inlined_ast: 85b261a0b426451c13c2566af22af10939056fc7bd1b9fe55d5cf2d7b9be5ea0 - dce_ast: d20dfae6fec81abc8385acc43f8f59b2735b3825ad313e0e9e3f7ee57cf5cfb7 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 5498ee84bb9442677b7c26db3444e80e0569be9a8c6b2a75a503442b42d9e41c + unrolled_ast: 5498ee84bb9442677b7c26db3444e80e0569be9a8c6b2a75a503442b42d9e41c + ssa_ast: 745291f73dac2fa63ab6a6cca5733a0237ef42dd1f896fc3254a4e169fe3e44d + flattened_ast: e9c7f1151d2084b00024ee5b435fb089ba6b0be4f1af887dd56ded73cdbe1d57 + destructured_ast: 5d1f188230eb48877d195b2b53af19be0243cb254bc737987c869a193020f6e7 + inlined_ast: 5d1f188230eb48877d195b2b53af19be0243cb254bc737987c869a193020f6e7 + dce_ast: 072f4eedfbd6691695c4b9f9ad6c735d3205bcd94786013d03bba58c2685a65f bytecode: b2109894ba866067ec33ab20cdc34620697485b592f6a0d511e922a89bb065e1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_address.out b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_address.out index e7680c7c61..20cfff4681 100644 --- a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: fd1db90143ff52bb90ca420572caa0ef8b9db6a41dc4bc8ac54cb3ec36a7ff0d - unrolled_ast: fd1db90143ff52bb90ca420572caa0ef8b9db6a41dc4bc8ac54cb3ec36a7ff0d - ssa_ast: d5160a676093cb9a07ec730c10b89d6d49b9f8114dcb388587ac53e9916c9dc3 - flattened_ast: defc232df64cdff70b1c6950cd3803e5db78f94849887a7c061802567ef8aaf8 - destructured_ast: 2aed164c98a792c89b65262aff4c3349e7d09a76a1cc2e3a7cdf4fa48da60431 - inlined_ast: 2aed164c98a792c89b65262aff4c3349e7d09a76a1cc2e3a7cdf4fa48da60431 - dce_ast: 88ee42f5fd06dfb1978c8e550305aab91a7c2f6367df7a10db294c9d5af27c4c + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: b6712c9ade16a69dec71c4ee419ac9576b56e5ed6924bd483102f0c313174645 + unrolled_ast: b6712c9ade16a69dec71c4ee419ac9576b56e5ed6924bd483102f0c313174645 + ssa_ast: 1b810d0984597e2752476ceaa8d71adea05c2612adcb8d1ff5d6683605f89baa + flattened_ast: 54198948f41683aee1effe9ae094d65f9aa95460c8a17f81f3697a00dbbebd05 + destructured_ast: fd3665e9e5a9235054ea463ead74ca82bdcab3035ed8e926ff68d9dbc804a66c + inlined_ast: fd3665e9e5a9235054ea463ead74ca82bdcab3035ed8e926ff68d9dbc804a66c + dce_ast: c2602bb850daf40b98737fb10e33db7cd6a860cf592bacd60554974866cfd409 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_field.out b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_field.out index 32989c0be7..02301f77a3 100644 --- a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 02bdeba6bd34e8bb2b0a5bcda880a3c4aaeb70855ee7362a7ea1a70d8d12001e - unrolled_ast: 02bdeba6bd34e8bb2b0a5bcda880a3c4aaeb70855ee7362a7ea1a70d8d12001e - ssa_ast: 83647dc64eca83a4d8d382a1452a55704d2f77539cd438cc96174e987b1c2bd6 - flattened_ast: 2efaac5c503fc9fd40aff62dcf14d3f682d2c5e3a40711061bc5e8129836004f - destructured_ast: 826d764013073c284e5536e3fa44e4bb182eda4224ce71d2e091a2f068433a07 - inlined_ast: 826d764013073c284e5536e3fa44e4bb182eda4224ce71d2e091a2f068433a07 - dce_ast: 99cf654a0c31d7736249d2674e1bd7bd7107fda1857cdd48be69df9697b2963d + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 3a636dc3fb9db4230f61d47c8c305e88107bd816e07019f17365a34c7de17009 + unrolled_ast: 3a636dc3fb9db4230f61d47c8c305e88107bd816e07019f17365a34c7de17009 + ssa_ast: 400a02e09ce413a56e8cafa7f18d9e124e216e9735ef19453ba2264b82898be0 + flattened_ast: b16b82ca80e483fd54185c71e149d5c70e8757ccf5528711a9aaae81519506d7 + destructured_ast: fed9b8bb3b5336f5dd0ea6b7d28172bf96738ac17f0df4648af3d5d2d6625da6 + inlined_ast: fed9b8bb3b5336f5dd0ea6b7d28172bf96738ac17f0df4648af3d5d2d6625da6 + dce_ast: cec0f492a801e4e766092fe039a5e43c5091e812951f86725535355647ca2a0a bytecode: 31250720832dea7675bf097f3ff4a7e878a544854d76a583daeaa8508e5b7165 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_group.out b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_group.out index 4f2c40b16f..8df00d0e9f 100644 --- a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: e97ddb087714e2c3d97ba425ecd89f9aab3ecf2f61bb7cd0551da9b7fb310c6d - unrolled_ast: e97ddb087714e2c3d97ba425ecd89f9aab3ecf2f61bb7cd0551da9b7fb310c6d - ssa_ast: 5563fb0e6ab54d72cf8ed055f54d72dff4922cb42f4cd821734804897e37482e - flattened_ast: 3ade22f960820ee25a4f0c4004b81772bc7a7967a47c375c02996f02dae8f596 - destructured_ast: 2bd7b147f6523005d9133788c0d5525d51286ce5bd221c3a17fdd574a4e67abd - inlined_ast: 2bd7b147f6523005d9133788c0d5525d51286ce5bd221c3a17fdd574a4e67abd - dce_ast: 831f24490f094612484fd4454925466c2cf9b6181f58b4acb23f42747b459344 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 84440e837ebfeb90d9d4008eb6e803f85a76fb608af3eac7631721d314c51eb1 + unrolled_ast: 84440e837ebfeb90d9d4008eb6e803f85a76fb608af3eac7631721d314c51eb1 + ssa_ast: 242099e480f43bc2b7601f6509508b8ec8e5bbd3dc65287a23500d0b9560a0bb + flattened_ast: e85723cedd3e7975d88caa17d8f9c9020c8042689ca7902416f60e534a148e0c + destructured_ast: acc8751b127d948ea03a80d0bec0a1ecd68665ab9447af9d65e0c44de7e9ecd0 + inlined_ast: acc8751b127d948ea03a80d0bec0a1ecd68665ab9447af9d65e0c44de7e9ecd0 + dce_ast: 3924aae3bf35fbeab0c9e68a72932c6f44060da59aca3381886bba9a35c1fca6 bytecode: 04dce70893b730595c768593a76510f027b13559817d71dc7b804933692e59a9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_scalar.out index 31ce4b532b..0124b5e8a2 100644 --- a/tests/expectations/compiler/core/algorithms/keccak512_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/keccak512_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: ed6748608bbb0c5b32b04ac0672019de988364d82e3276c1f7764f2ae6f8cd8c - unrolled_ast: ed6748608bbb0c5b32b04ac0672019de988364d82e3276c1f7764f2ae6f8cd8c - ssa_ast: ac540a6f37049564789c2c602118ff668c2e084ad574b183545ac872666a339b - flattened_ast: 2096da4a5e42d446fb6923fcc9ef0d6460da391c48d9f36714c0e0c7a7dfa881 - destructured_ast: 333aa2f6af5f53b63353d01e3bf54616ee577392fd6b875c97766b091444454b - inlined_ast: 333aa2f6af5f53b63353d01e3bf54616ee577392fd6b875c97766b091444454b - dce_ast: 438524a4b7eafaaba901eac20eb4e31e3cbd17be2ca0f986d0a740d126f6e5ac + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: fd2a7fb6e4c6f054a8ac8af51761dec4bacc5ccfa0ae53cc51b9a8023d812931 + unrolled_ast: fd2a7fb6e4c6f054a8ac8af51761dec4bacc5ccfa0ae53cc51b9a8023d812931 + ssa_ast: ead56d7fd898dd4aac09b513f8a153dbece6606a187eb184f5ebd156085fb826 + flattened_ast: bd530e70b9eee2067aae9dc7ff1eb5b5387b97edc83cab118f5300d28d292fbd + destructured_ast: 2ad3915a1c1143e7b62696fb5da2a3ef786b726f233bab9652669f8980bbc9cc + inlined_ast: 2ad3915a1c1143e7b62696fb5da2a3ef786b726f233bab9652669f8980bbc9cc + dce_ast: bdae40099ae0f8ada16aaa145c39992ab64f1dbd75476feb5a56f9ee7bb4dcc6 bytecode: 48564e67f77504fa5f896b7b8f03dcc3bd690898df96eed9027776e1346b07ad errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_address.out b/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_address.out index eabc9015bf..19c280dba6 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_address.out +++ b/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 548350baa6609049048c73f63eda8aceb9a80fb2d053d6c0107e0338c50eda25 - type_checked_symbol_table: 804cc38e8571801e08dab46bf9368d5dc8437105d89cc5a5af8380668ae3ea4c - unrolled_symbol_table: 804cc38e8571801e08dab46bf9368d5dc8437105d89cc5a5af8380668ae3ea4c - initial_ast: fd4c80d18986d5228d68cef6b5ea4e32abfff6bfd31db17217a9c97994ded475 - unrolled_ast: fd4c80d18986d5228d68cef6b5ea4e32abfff6bfd31db17217a9c97994ded475 - ssa_ast: 492ea5235816bec5e453b86942ea3865950dcef2ead541c9deb72202afcf732b - flattened_ast: 056f5e96537619f7846a36c492440ce8ed183194239dee1fea06fe3c6e99f4ca - destructured_ast: 61a3ae99281f62b5d4c75dca50460c1483c6fac5162774a8f0814526bb5110b2 - inlined_ast: 61a3ae99281f62b5d4c75dca50460c1483c6fac5162774a8f0814526bb5110b2 - dce_ast: af5c9cf197130658363bddc87e32b7520eb23a402481bc6939b86e576149ccb5 + - initial_symbol_table: 04671b04d276a6370f480b31a1641d4361b4f77af98b59d330cc879edae6c4e5 + type_checked_symbol_table: f102a9c3ab24faf24aea35cc9eedb366608e7bf82c125f8370b8725aedcd6a64 + unrolled_symbol_table: f102a9c3ab24faf24aea35cc9eedb366608e7bf82c125f8370b8725aedcd6a64 + initial_ast: d82dbd2b0199b3a75cc9fd5529ba4f1359cc2c6eb8c26247f4989abe9311cde0 + unrolled_ast: d82dbd2b0199b3a75cc9fd5529ba4f1359cc2c6eb8c26247f4989abe9311cde0 + ssa_ast: e0dfaa20f62dda4dff2326f9cb147d734f2810f9390707895228924dd46ebe26 + flattened_ast: c6023779f4110efd27a58f9bbfd251c641ca8f898fa348dc3e652a5c67adc46c + destructured_ast: a9eb66af6dbf6a943d94e01a6fd72d831cbfdaff5f723df995f31d719b1857b0 + inlined_ast: a9eb66af6dbf6a943d94e01a6fd72d831cbfdaff5f723df995f31d719b1857b0 + dce_ast: 74fd737f39c920838b2b56efd80fe8d0b83ebd0d24a053626f6de32a7fb3c348 bytecode: 3ba55e108c81a25abab4d1cbeb28c341bed35c9a1213a2bac6a6ffe3ad6cddb5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_field.out b/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_field.out index 9d01d04ec5..d9814035a3 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_field.out +++ b/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 548350baa6609049048c73f63eda8aceb9a80fb2d053d6c0107e0338c50eda25 - type_checked_symbol_table: 354dc36b165fa3da8a90147dcfdd29785b7ebc7afefb75b5b2340b0b2036b438 - unrolled_symbol_table: 354dc36b165fa3da8a90147dcfdd29785b7ebc7afefb75b5b2340b0b2036b438 - initial_ast: ce4531f302ff88f736a92b6ed1de3dc2420257680bc3f486a7159f83533350fb - unrolled_ast: ce4531f302ff88f736a92b6ed1de3dc2420257680bc3f486a7159f83533350fb - ssa_ast: a156b034d22a8be7c1dc3f338e737fc5aec13b4d09111e5c636c830bd6849f9b - flattened_ast: 5ec526862dd50a4e63840df7ac0f061f7416b108bf6e9181faf344eca26aeaa6 - destructured_ast: 210d356aa95d820ba762b3a67f3ba64c5b3192ceb52e41ae6afb138fb07646e8 - inlined_ast: 210d356aa95d820ba762b3a67f3ba64c5b3192ceb52e41ae6afb138fb07646e8 - dce_ast: 7bb11996fdfce8173582c91ebe688c96a762b7b7c75d70bfd7aeadd6fb9e86ac + - initial_symbol_table: 04671b04d276a6370f480b31a1641d4361b4f77af98b59d330cc879edae6c4e5 + type_checked_symbol_table: cbf81c3372d722fc2edb87df2b49b17b6d99ec1b25e4ffff1aef16dc83f18774 + unrolled_symbol_table: cbf81c3372d722fc2edb87df2b49b17b6d99ec1b25e4ffff1aef16dc83f18774 + initial_ast: 20d9b4c458312a142da7d3e7a074057a398acbd0877a8c0e69729c5670b2a3ea + unrolled_ast: 20d9b4c458312a142da7d3e7a074057a398acbd0877a8c0e69729c5670b2a3ea + ssa_ast: b4306d7bcfdd668311f9ce38667f2fda03a15110f5254f8733c5364259b4e381 + flattened_ast: 2d77e14a23114124f742577b9a8f9dc1691d6d053cfa356ea39728ed65213798 + destructured_ast: 49c891d6da51441fd929b32e85711da9415b49fd910f26a4aaebad980fbe6926 + inlined_ast: 49c891d6da51441fd929b32e85711da9415b49fd910f26a4aaebad980fbe6926 + dce_ast: fb1c025c6ffc798798d808034d002bcc6535ff0a4913018f08cba277b0c0d715 bytecode: 95bc95d7defa42a6fdedd6472d0260c5d05e8a8c8e6929af7bf8d0132686f70f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_group.out b/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_group.out index 03ac8ec56a..9573936aa2 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_group.out +++ b/tests/expectations/compiler/core/algorithms/pedersen128_commit_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 548350baa6609049048c73f63eda8aceb9a80fb2d053d6c0107e0338c50eda25 - type_checked_symbol_table: 5db9ac376333782cadaff4c1ce2f31a0ccddbd357069439fe6bd2e7f9750b9c3 - unrolled_symbol_table: 5db9ac376333782cadaff4c1ce2f31a0ccddbd357069439fe6bd2e7f9750b9c3 - initial_ast: 3b65a6bd41c2a03d8fa9f3f615b254522987c762b8b87708353f66befc844dbd - unrolled_ast: 3b65a6bd41c2a03d8fa9f3f615b254522987c762b8b87708353f66befc844dbd - ssa_ast: 1cd0dcd47276da0a6f14507b170292ea3d34cd952faa22416889fd7f18bdf57b - flattened_ast: f802c4978bed8b911519cbf7f7ad29b22dc913436ea680acd3c70dc9d42aaa2f - destructured_ast: 76354e16c0ea6ff6d9371d74f88c6b4b8c2b17b5fece17e419ac23a9a6fa8905 - inlined_ast: 76354e16c0ea6ff6d9371d74f88c6b4b8c2b17b5fece17e419ac23a9a6fa8905 - dce_ast: 5c876ec10ca148c798a5d4b92929cf170d8d6f04bcb9c1dfbbf722a800c74d14 + - initial_symbol_table: 04671b04d276a6370f480b31a1641d4361b4f77af98b59d330cc879edae6c4e5 + type_checked_symbol_table: 407a0f561dcc69094a9876f20a396f8be6718a2b771cd20c945f31e93f242f7a + unrolled_symbol_table: 407a0f561dcc69094a9876f20a396f8be6718a2b771cd20c945f31e93f242f7a + initial_ast: d3cf46583f2e1c6ff076c57a9b45cdcbd1602dbe56259afd3889222a11acdc3e + unrolled_ast: d3cf46583f2e1c6ff076c57a9b45cdcbd1602dbe56259afd3889222a11acdc3e + ssa_ast: c707648255be37138ae9507d1b052ec2c977b06e7ddfcb1a1ea9310889c1b8d1 + flattened_ast: 30926b7677d941023f7f47beda14de569c8c152cdc93e88c92247bfc3e44ea99 + destructured_ast: 0cda94ef627c6d31fa30ec655c3221179d7cbcf0ffadc16528f09eead3139f29 + inlined_ast: 0cda94ef627c6d31fa30ec655c3221179d7cbcf0ffadc16528f09eead3139f29 + dce_ast: 9ffbde90defa249afcf1829a1dadbe8cb7a68c928435173753a4d2793a049a84 bytecode: 549c95212d4613a4e5901fbee874d822214994c384db635f8e24ea7b477a57eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_address.out b/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_address.out index 89440ac066..5e46759f23 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 267e7ff3be98bb561dd7ba84359554b4bcebffefd9756fb1e270a2f7a8eb69c2 - type_checked_symbol_table: 6dbfe456877dbe6aa27476514f0f319b7816949035b4b843639cb72b0665c4e5 - unrolled_symbol_table: 6dbfe456877dbe6aa27476514f0f319b7816949035b4b843639cb72b0665c4e5 - initial_ast: 31e1ab32757b283fbaef4900736ec797df785040b84265d1705595919564665d - unrolled_ast: 31e1ab32757b283fbaef4900736ec797df785040b84265d1705595919564665d - ssa_ast: 903ef21b2a3b308d984dadba63b8e0d0dd734204b990ed7a4e7eea2839660911 - flattened_ast: 234aad7a65f3df4c94eaf0dd7b49a116a5bb39dcd98681e94fa9f4d887dd8351 - destructured_ast: 169ccfbdc3a6cc665f13738012befdc31fbaafc065c5698fb0fac4df239f4291 - inlined_ast: 169ccfbdc3a6cc665f13738012befdc31fbaafc065c5698fb0fac4df239f4291 - dce_ast: 7a9287833b3e4bd79b03ba2f3d93af1b74d1fcb7ede80e86ff2c52813fb241be + - initial_symbol_table: a04b5122c0728192d39dad203d457a857bc12fdb9b1373014c52b0d739a109b7 + type_checked_symbol_table: f532638b0406560f394e734f06f4e22e5f8929f3dacc8ab7c3cb63de96eae593 + unrolled_symbol_table: f532638b0406560f394e734f06f4e22e5f8929f3dacc8ab7c3cb63de96eae593 + initial_ast: 2c7348f0af5c0b40c2729c37c8dfbcc5865584e39f38a86af8c5b6504db3d235 + unrolled_ast: 2c7348f0af5c0b40c2729c37c8dfbcc5865584e39f38a86af8c5b6504db3d235 + ssa_ast: 31898627f66f3bba5d41609fc56fa4c1b6f16ed21f867062231e61195b2e5c16 + flattened_ast: 8b76a8b9fceda9e749d9b5655ef9c2cb29272f34db829a7e3a43e4c3ea0cbd0e + destructured_ast: 8f299eb320989e50413a315516ebe250f9090d47c8ff45f3c76079fe681fb588 + inlined_ast: 8f299eb320989e50413a315516ebe250f9090d47c8ff45f3c76079fe681fb588 + dce_ast: f38ebee938ddfc66ff3cd3c9700c18b8d13a6c4a8bcd1a77a36061046ea9db9d bytecode: 44c588be4c27d8d89cd0fb7701e64126d75526e14fcc9c590da2d768f3e12b84 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_field.out b/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_field.out index 513965bf9b..f8a5845c5d 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0543dffc968c93d133c51ca64dcfb7e65ee59789ed4e7ffb5161b1f95e3c13cd - type_checked_symbol_table: 2ee644826157b17ebad7a9c12d3fc4ab8a880201d21b63481b3c0f91be96db1a - unrolled_symbol_table: 2ee644826157b17ebad7a9c12d3fc4ab8a880201d21b63481b3c0f91be96db1a - initial_ast: ddf466ca90b4922d6abb9d978892a5b2f2337fd646ea74796720e172bf3e83bd - unrolled_ast: ddf466ca90b4922d6abb9d978892a5b2f2337fd646ea74796720e172bf3e83bd - ssa_ast: 55da5f9a80163a708a1e405b0a9ea0f821d94757981a6c7324f5a67aa246edc4 - flattened_ast: 26934fc32b9233089202472d14058de12a8dd63c2bcb87248d42bfcd0334b618 - destructured_ast: 9ea259aafbba7b85d1e6fae64b8b9b0696c61d3906557f5a776240597feda859 - inlined_ast: 9ea259aafbba7b85d1e6fae64b8b9b0696c61d3906557f5a776240597feda859 - dce_ast: ed5cf91d83c449fe6b9e08af5346e038be36ece3d45f3d02068d06b9eba37ef8 + - initial_symbol_table: 504a162cc219a92760046b78c4bd962a63597d507c115311bf56777d438e33ff + type_checked_symbol_table: 2a898c0f1ff4caac978680905775eb12270e794b0792ec5045a37c4fc5e236ef + unrolled_symbol_table: 2a898c0f1ff4caac978680905775eb12270e794b0792ec5045a37c4fc5e236ef + initial_ast: 717c67c2677ca5349a0c0bb941c4ad7e2354e0740cefdc3c4aa6e91f9fe89194 + unrolled_ast: 717c67c2677ca5349a0c0bb941c4ad7e2354e0740cefdc3c4aa6e91f9fe89194 + ssa_ast: 041c18573e2908032a82cd38104e7f7691f6da70496f50bdccef7c0c7cb8d4e4 + flattened_ast: 4b590b02c1fe5db19187a173caab2b430d96efba4ea9bba6e806d1fb843da96e + destructured_ast: c521c431eaf41076a86f3ea0e1a78a4349643c1bb7b903440f09125ccd145ee2 + inlined_ast: c521c431eaf41076a86f3ea0e1a78a4349643c1bb7b903440f09125ccd145ee2 + dce_ast: cfc58d73c002a38c8f0f7ff13f525e7c229951f0dad5c3e4e4cf4126e1aeddeb bytecode: c755ed1b4083ce7afb98a0cefc02c7ba3141dbf82b81b6fd922810d887c0a9c3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_group.out b/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_group.out index 73d10964e9..dc77df4de2 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/pedersen128_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e1767184ce922e5940e918f41721f224a3a9cefbbbb33f5281621e7005e89f00 - type_checked_symbol_table: a2c6481b9e20466a2c871f93d1858085135b44482a611af52d19767e770a8f2c - unrolled_symbol_table: a2c6481b9e20466a2c871f93d1858085135b44482a611af52d19767e770a8f2c - initial_ast: 1c5dc19aa2edae2ab7ec02768df75c158c77e9cbdb4f203c60ab9b69b9b1adbf - unrolled_ast: 1c5dc19aa2edae2ab7ec02768df75c158c77e9cbdb4f203c60ab9b69b9b1adbf - ssa_ast: 96d08e23aef127a1bd6ce9bd41ba8ca08d46731836f5ec401df3180f3802ec50 - flattened_ast: d7191c19f7ccafd2734a4493f304784792b534710538d4b7aec2790912702af1 - destructured_ast: 0ccfddd03ba19115fa1bd3c5f0c2b224870d30c34d18020a9a7426082bcc837c - inlined_ast: 0ccfddd03ba19115fa1bd3c5f0c2b224870d30c34d18020a9a7426082bcc837c - dce_ast: ef46c3c633b125bf21da3bc61359eea8e30ae4231ab7ce7840a49d4048103752 + - initial_symbol_table: 0f3abbd032073cd1ccbfca71aedbd2343e06aeef36ff5a57ccf63e2022f3022e + type_checked_symbol_table: f2573f9c362b01b335ff63bb27a206f51a4ea23e3cf1d64cd62edd56728d16f9 + unrolled_symbol_table: f2573f9c362b01b335ff63bb27a206f51a4ea23e3cf1d64cd62edd56728d16f9 + initial_ast: 7b07ce934ade29469ecfa4101064002e520a72d3dcc3bad0de7a632ccef8c829 + unrolled_ast: 7b07ce934ade29469ecfa4101064002e520a72d3dcc3bad0de7a632ccef8c829 + ssa_ast: b3a72965772b57078669dff6457f2cc909fe6c67224fdd4d10416a82db7deb18 + flattened_ast: bd1ddc663c7bbadae5945314b944e9d93a44bbd3521684c710528402fd7f4dd5 + destructured_ast: 19088fd13d137ec4da0661ae960350ed968588bd683532e47f5899cc41b3de1d + inlined_ast: 19088fd13d137ec4da0661ae960350ed968588bd683532e47f5899cc41b3de1d + dce_ast: 6359c735f54745a27c62376fd80f521c7a30f18ba272d4aadd4bdbfef5631d2e bytecode: c7524ba0aa2182bce5d66e93f36ddf6bb89a1251840bf51c7b9dce4218ac8562 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_address.out b/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_address.out index 5ae8000e83..6cd7471798 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_address.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2e2099bebdbd263ab21068b5869ec6baff527d81198f07a93992463717aab013 - type_checked_symbol_table: e0b3054da2ff76088ce73f1f9cd758f34428f4b05fc40cdd93fdeccc3da97338 - unrolled_symbol_table: e0b3054da2ff76088ce73f1f9cd758f34428f4b05fc40cdd93fdeccc3da97338 - initial_ast: bf134f56729cbceeeda3db29db1a29e871389fc2cf1683ecfe2ddbb3805a8bb4 - unrolled_ast: bf134f56729cbceeeda3db29db1a29e871389fc2cf1683ecfe2ddbb3805a8bb4 - ssa_ast: c2981d96d0c9674809fda31700b4decd8349dd2c8a1d48467492e1e928ea8bd9 - flattened_ast: e1d87292b6923e83951e043b1c9c88c7dc91ef8ef3b2f6d00ccd15414ee21a39 - destructured_ast: 4289a06d905aab1eeaf275275e858a6ac712316ce7ab5d88ba53aff117679080 - inlined_ast: 4289a06d905aab1eeaf275275e858a6ac712316ce7ab5d88ba53aff117679080 - dce_ast: 276295c5898131e98e89ddeced40a9e6f399c194c41a5784a5c65ce46fb2529e + - initial_symbol_table: c29d7b0da7cdf54c2eb38a55320edc6af34d3044bb967cb498c2a9fe58383801 + type_checked_symbol_table: 4f24427ffec670336080cf31536ae3bf40c486b1ca60fedbd5046a6222d7a13e + unrolled_symbol_table: 4f24427ffec670336080cf31536ae3bf40c486b1ca60fedbd5046a6222d7a13e + initial_ast: 456f0e0ce750132ad4750a7b1024bf197b012849c54aaf4dd0948c33f17ac7c0 + unrolled_ast: 456f0e0ce750132ad4750a7b1024bf197b012849c54aaf4dd0948c33f17ac7c0 + ssa_ast: 4c594c9b8c0f7a78aad67122a577d1229d5920c433c82e45dddf2b42812d89da + flattened_ast: 77aece8928818c6c372849f64bf5a34a0ed7270ab79e8ec3d21f5b19f1d92a23 + destructured_ast: 76fbb874d06091da86a606ca0a9ed54946dfaa6b7a0b6208bc6735e10fb35c1f + inlined_ast: 76fbb874d06091da86a606ca0a9ed54946dfaa6b7a0b6208bc6735e10fb35c1f + dce_ast: 7779ff0046295723d668094848e75ad400015f50fcab626c7c8ea8aedcfbe537 bytecode: c2c9e8924baad5a7a7f6726c909e5832d597a972067c714da606359d9709ed31 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_field.out b/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_field.out index ceac0ed195..a35fefc037 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_field.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2e2099bebdbd263ab21068b5869ec6baff527d81198f07a93992463717aab013 - type_checked_symbol_table: 5ad00d4f337d7d989a7a1cb9b9c275d75a4bd20886c33562f1a2c61921ce2785 - unrolled_symbol_table: 5ad00d4f337d7d989a7a1cb9b9c275d75a4bd20886c33562f1a2c61921ce2785 - initial_ast: c1995353e53427c1885c4a5cc4c6141b393ee3be9fa4584b464aeedca33c947f - unrolled_ast: c1995353e53427c1885c4a5cc4c6141b393ee3be9fa4584b464aeedca33c947f - ssa_ast: f925c44b5132d4196d577a3830d443f4c79b780cc4c126ad83408163cd1dd71b - flattened_ast: 62b5b9a9bcad841d57d6d1b339d9207df7c25d5fc2362826cd12c314dffbb5b3 - destructured_ast: e788ae07d533ca027b75799f43934c42e1f78e9b34af7c14a46985885f7b59f4 - inlined_ast: e788ae07d533ca027b75799f43934c42e1f78e9b34af7c14a46985885f7b59f4 - dce_ast: 37d801aa8c249d73075126215e7b34758f2a747b81ce98f4c1832a299c5b387f + - initial_symbol_table: c29d7b0da7cdf54c2eb38a55320edc6af34d3044bb967cb498c2a9fe58383801 + type_checked_symbol_table: f8dfff530fc7866118014627ed42b5310d6ac23bbfa6b00c6cbb295219426091 + unrolled_symbol_table: f8dfff530fc7866118014627ed42b5310d6ac23bbfa6b00c6cbb295219426091 + initial_ast: 9bc66285be17595dbb7cedaa2a474db79d17a43d55da1c0a86725dcb8578100b + unrolled_ast: 9bc66285be17595dbb7cedaa2a474db79d17a43d55da1c0a86725dcb8578100b + ssa_ast: b85f93bc480a88efb1a516125603db37c23924dd648e0ae7c7607628b2c10759 + flattened_ast: e4593379d4f67be559384722ba5235dd14c81ffef9f511cc3a1dfc33854ad102 + destructured_ast: e4d93207a2d861ce6e5a9b26548929111c25be6b45e6b196b3ee0ca0e5b22b70 + inlined_ast: e4d93207a2d861ce6e5a9b26548929111c25be6b45e6b196b3ee0ca0e5b22b70 + dce_ast: 93bf62fb33db738ad84a23b4442d68e0f62acbae9cdbf13a4831b92434e15103 bytecode: cd06659f46218302131b68a41fb05fd7ae3ba7a5cccab097f2725422427c799b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_group.out b/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_group.out index 9c166ea27c..26e68077b5 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_group.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_commit_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2e2099bebdbd263ab21068b5869ec6baff527d81198f07a93992463717aab013 - type_checked_symbol_table: db653f0c4549332233ad92696027c306c250d5f30531c061511760c78c788d10 - unrolled_symbol_table: db653f0c4549332233ad92696027c306c250d5f30531c061511760c78c788d10 - initial_ast: 201f66db76ef671b652440612916e5441d051dd32e7eb7e2ad4f2d9b13b75e4a - unrolled_ast: 201f66db76ef671b652440612916e5441d051dd32e7eb7e2ad4f2d9b13b75e4a - ssa_ast: cb1a8c7e346bd7af599d83cfac9999e773f424104ece03b49ba62252d8a4a38e - flattened_ast: ebb6b286cfaceaba42c14b7c26ab401f643b50e3844c047528af69d4883bfa4f - destructured_ast: 884c7f230dcebb309b832b05225277f9927641b614d4595c691d6a085a17504a - inlined_ast: 884c7f230dcebb309b832b05225277f9927641b614d4595c691d6a085a17504a - dce_ast: 30c895b8fba7ffea2e89602e82f57c1d6d41ecf82f35432a35bf7270576b428b + - initial_symbol_table: c29d7b0da7cdf54c2eb38a55320edc6af34d3044bb967cb498c2a9fe58383801 + type_checked_symbol_table: de1ffdc8df6c796a75f033fded8735cc630cabd7888723fa1a97e8d3ef48338b + unrolled_symbol_table: de1ffdc8df6c796a75f033fded8735cc630cabd7888723fa1a97e8d3ef48338b + initial_ast: 1fca3659f435280c70ba004de595ed4154998376900a80adf2ae18bee0e346fa + unrolled_ast: 1fca3659f435280c70ba004de595ed4154998376900a80adf2ae18bee0e346fa + ssa_ast: 97b8ba81c9d823109fac917b7ff797e7ec00a351d787e6f92b5d41158ca26a5f + flattened_ast: b3f12aaac6adf7ee424dcd8368f6f929d6710b3a745ad34bbdcccf116a9e6c6d + destructured_ast: 029f482656869be0b3a1e2241bd5184219a518f94efcb95ad4bfd49ff4d2b9ed + inlined_ast: 029f482656869be0b3a1e2241bd5184219a518f94efcb95ad4bfd49ff4d2b9ed + dce_ast: 9d7b54b612517248d4287698372e5ae6d9f725f9174178d92b56dee76db381b3 bytecode: cd0163ef5f278913b3e650356b1ec3eeb18731f152c64d78f29e21f88974c059 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_address.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_address.out index 4c5685bd23..ebca7e61d9 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a2342f0f3c1a750213f37726f7fba8e39540827ff50c740c3bc203f653f4f1b1 - type_checked_symbol_table: a95ad1a0891ca4ef10399ba8e6d0f66bf78bcce607afee8e8368147e49946d75 - unrolled_symbol_table: a95ad1a0891ca4ef10399ba8e6d0f66bf78bcce607afee8e8368147e49946d75 - initial_ast: ab7b87869211b27cf5ddcb305ec54f3e879f24881700cf57ada639f79c425e19 - unrolled_ast: ab7b87869211b27cf5ddcb305ec54f3e879f24881700cf57ada639f79c425e19 - ssa_ast: 4b6000596e1e33f1620aaa2237510a6f478ee0b57f0a360349b39a3b7ed9ea06 - flattened_ast: 78ef3527dcb9a15552fa7ea9fc3a04e96165915dd7782e6341a485a60fc1c2a0 - destructured_ast: d0a6ba5272fbc31a2c5dfa778a28fa738d995321355084f2eb3572e1c7f4ec92 - inlined_ast: d0a6ba5272fbc31a2c5dfa778a28fa738d995321355084f2eb3572e1c7f4ec92 - dce_ast: 66f4ccba608dbac0e9b26109e7a605733d5712358f127dfbe9f2eda38793ee18 + - initial_symbol_table: 6c4f4bc570791ac498a9481c425185a87db46f6422e080297e54239022ad7a6e + type_checked_symbol_table: b5250294a0724de114e8910d0d57698a9deceb492c77a20120eef7abc2ee8b39 + unrolled_symbol_table: b5250294a0724de114e8910d0d57698a9deceb492c77a20120eef7abc2ee8b39 + initial_ast: bdec4daf20c3b53994145667e12929586c66dc13dee99f62ff022914fc8432ba + unrolled_ast: bdec4daf20c3b53994145667e12929586c66dc13dee99f62ff022914fc8432ba + ssa_ast: c3c7aeda8c80c8c3d4c752d68ed10c4de973f311f9aabb83faaeeb1b3713502f + flattened_ast: f73012fb8a442e9d404790fefd29db4cf4521411d2aa6d938b9a8d4e253e5bf4 + destructured_ast: 77d7a5e267132ea8e94ca3c82bfd2da7d34ed8efa222feab5e925935e7dc2ab1 + inlined_ast: 77d7a5e267132ea8e94ca3c82bfd2da7d34ed8efa222feab5e925935e7dc2ab1 + dce_ast: 3257a70ce10535e691af3438de69ef55c43f1a1c5d91b13e21ddc694efa36075 bytecode: 944b1ffecfe76ffcc604cfe563b348727743928c63a8c55ced3ad4eccf39649e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_field.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_field.out index 5052daf1dc..4ecbaa620b 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f3660cccb2a70d24b95fe270160c38d5a9811bd8d9dfd104cbf79fa1b5c7cd2c - type_checked_symbol_table: c98a808f47bedad903ab05d2aa70a9c5abbb2a308168cc3b814c47a6eeeb3463 - unrolled_symbol_table: c98a808f47bedad903ab05d2aa70a9c5abbb2a308168cc3b814c47a6eeeb3463 - initial_ast: 1caf36449cd813d7e5b7b879bcbe865960e61659c433a6001be0897ace532fb3 - unrolled_ast: 1caf36449cd813d7e5b7b879bcbe865960e61659c433a6001be0897ace532fb3 - ssa_ast: 4ca839c67aa15aacdba818170075db96404c85cf669a4031fba5c9210f448051 - flattened_ast: 889d0f3a3ba60a0a097960c66abf1916f88ed88dc21adf4a06ae16adf8092b22 - destructured_ast: dbaecacb94ed317310873314ea2672e504602948b53271b536303940b0496814 - inlined_ast: dbaecacb94ed317310873314ea2672e504602948b53271b536303940b0496814 - dce_ast: 0a8f8f1153fb69d844d9af61e090b2111951017bf7b6061e165c1ef2dceafab5 + - initial_symbol_table: 8b4212d0df188f1ad327eb349619de2d54293c235caea67c3b68ff35cfd6ef3f + type_checked_symbol_table: c05873786db5244f8f7dfd06df6b2f3cfa9654ce0b936da272e454ba88740107 + unrolled_symbol_table: c05873786db5244f8f7dfd06df6b2f3cfa9654ce0b936da272e454ba88740107 + initial_ast: 2bdc4494a7b7a72b4e6bc4434e88fa9a3a80004e3081e38f52d94c9f3246275d + unrolled_ast: 2bdc4494a7b7a72b4e6bc4434e88fa9a3a80004e3081e38f52d94c9f3246275d + ssa_ast: 9de1c8d5b817119d053178b961857feab70b845edac799b6794da31a62589f37 + flattened_ast: 97556de913706d60369c2554c6e59b06ff5160068e0d193a2dd1450d07964722 + destructured_ast: 7dd8ce2f299303bd786d8113217642f5ed81856c19f228200487a849136db920 + inlined_ast: 7dd8ce2f299303bd786d8113217642f5ed81856c19f228200487a849136db920 + dce_ast: bafe8ed06382464def070451d861eb3487a67d38e1baeb3b931ccf57373f2be0 bytecode: 3d199e7bd35710525161f08b7c5cb1dc788ee7815cbd59a88967108b10c8f972 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_group.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_group.out index 489e69bc77..6c571f801f 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f27106e8aa0f87d16ddbc951630c83350e8032325343effb2d3b48ec56469309 - type_checked_symbol_table: b43bbc95ab3769334c97054d9d4b62d94eb582732e099c831a958125a62eb0ee - unrolled_symbol_table: b43bbc95ab3769334c97054d9d4b62d94eb582732e099c831a958125a62eb0ee - initial_ast: 9ed3b3d23618c4858ecb55a8f23500935cb2749e43bed0522d8dec9d7668be25 - unrolled_ast: 9ed3b3d23618c4858ecb55a8f23500935cb2749e43bed0522d8dec9d7668be25 - ssa_ast: 376310d027df8dce6b081aaed3630d7de9b31c637e0069d697460b6d47740887 - flattened_ast: 0f317ae5a5b997f882690cfcca68087f317a091dbcdc32f0e95d05af32cb27b7 - destructured_ast: d7f50f94392a59ba2365cfc222be6e6b0ebf78142f96a091ddacd48ab787ef8d - inlined_ast: d7f50f94392a59ba2365cfc222be6e6b0ebf78142f96a091ddacd48ab787ef8d - dce_ast: a3d0d36688a8a79a8a796e46755b7ff33195dd12eed6419f9efb18ee51783ad3 + - initial_symbol_table: c3cf1c08838874ba925260940fe9c64de8f786f4e1a8f6ac5d0106c234576ddb + type_checked_symbol_table: 0524c23af709b150dbf1c953aa4353d74820725365c837c6d9e3882cb90ca8c5 + unrolled_symbol_table: 0524c23af709b150dbf1c953aa4353d74820725365c837c6d9e3882cb90ca8c5 + initial_ast: 2cca3c8a42804e94fbc8d27d55c0d7a0b0ad6587d2e421fe118c416ac86e8d5c + unrolled_ast: 2cca3c8a42804e94fbc8d27d55c0d7a0b0ad6587d2e421fe118c416ac86e8d5c + ssa_ast: 92d25d30960b5604e231248038f93ba785bd9afacd0cc3c9a89f3ea2631ebeca + flattened_ast: 3070e1f5fbd7d33b2292e2212e473c8d04bb501e88d34d954c46d4e371546827 + destructured_ast: deba73a0d209a6de451f5fbf58367f17f70207e819033ecbd6ee2d2bc369fcf9 + inlined_ast: deba73a0d209a6de451f5fbf58367f17f70207e819033ecbd6ee2d2bc369fcf9 + dce_ast: ae9207f30d97fae5dbcdbecf57b2ac75dc6519b0cd294ef8e18f52494afebf3a bytecode: 908a1cadce203b91e79f9bce16280b922d6bab6f418a443b5e55989ad9f3a78c errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_scalar.out index 06588d037d..6be0b2e9ca 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/pedersen64_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a206ae58bd1d9e64851bc27419e20c9753609fe04abb8fc2e13882236750b0d8 - type_checked_symbol_table: 9ff8a6282a2a6bc98b687401ecccd7f853dede8a83ae77bab6aee69320efbda2 - unrolled_symbol_table: 9ff8a6282a2a6bc98b687401ecccd7f853dede8a83ae77bab6aee69320efbda2 - initial_ast: ad67464ef4bfb42fd569cafbd6add6ea5b79665ae8ddf4056b0fa9a00dbabcc0 - unrolled_ast: ad67464ef4bfb42fd569cafbd6add6ea5b79665ae8ddf4056b0fa9a00dbabcc0 - ssa_ast: f1a078395f9f6f11d424ac72dd875f4bcc22a4e47eeeff30b81d7cccab437bbb - flattened_ast: 693837a068db6f857ae5d2aa599df77a188f9c6730d4e613eb16e9200733d9d1 - destructured_ast: 25a736ff9fd870916ccafcdb53418ed3388e9181dfcaf08b3cdb0fca757adf3a - inlined_ast: 25a736ff9fd870916ccafcdb53418ed3388e9181dfcaf08b3cdb0fca757adf3a - dce_ast: cf838a28e5a881106ced7fcdeeba1bc753bb8404327109c4b6bab5272dacf527 + - initial_symbol_table: 9b1f0b132d9c96f7b7f0141043777789495e1814768922e4e02a81abf3ab594c + type_checked_symbol_table: eb2570efcaaf2df2cc60833d9b036ce065ba8ff4922521ae6037977567eec22e + unrolled_symbol_table: eb2570efcaaf2df2cc60833d9b036ce065ba8ff4922521ae6037977567eec22e + initial_ast: 974603fa6cb0a8670712e535d2e385a4ccdf6954301d002d178a3e6ccfeb9bc9 + unrolled_ast: 974603fa6cb0a8670712e535d2e385a4ccdf6954301d002d178a3e6ccfeb9bc9 + ssa_ast: 9ae137f1f3c88c742fbd44dd2c16a5bbd26cdaa68e6c8da1e6933632eb88a91c + flattened_ast: a468a4ab80f14e5afeb8da8ae85a66bd3f016abe1417a6997abe623ab6581368 + destructured_ast: abd368ba4731f67c022d132847e57a333a3877b863b756d5ca2d1bc012777d67 + inlined_ast: abd368ba4731f67c022d132847e57a333a3877b863b756d5ca2d1bc012777d67 + dce_ast: 1457ede50d7b2a8e04b1b05a9539b3b7ca79e4db7b72eae0fbba903181b81974 bytecode: 60461b2862272cfb6cbf27964e16921d3a0eaad4571b7313968485984101921e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/pedersen_fail.out b/tests/expectations/compiler/core/algorithms/pedersen_fail.out index 58d4128f1e..afe3bcc038 100644 --- a/tests/expectations/compiler/core/algorithms/pedersen_fail.out +++ b/tests/expectations/compiler/core/algorithms/pedersen_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372007]: Expected one type from `address, bool, field, group, struct, integer, scalar, struct`, but got `u128`\n --> compiler-test:5:50\n |\n 5 | let a: group = Pedersen64::hash_to_field(1u128); // Pedersen64 hash_to_field returns a field type\n | ^^^^^\nError [ETYC0372007]: Expected one type from `group`, but got `field`\n --> compiler-test:5:24\n |\n 5 | let a: group = Pedersen64::hash_to_field(1u128); // Pedersen64 hash_to_field returns a field type\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `address, bool, field, group, struct, integer, scalar, struct`, but got `u128`\n --> compiler-test:5:50\n |\n 5 | let a: group = Pedersen64::hash_to_field(1u128); // Pedersen64 hash_to_field returns a field type\n | ^^^^^\nError [ETYC0372007]: Expected one type from `group`, but got `field`\n --> compiler-test:5:24\n |\n 5 | let a: group = Pedersen64::hash_to_field(1u128); // Pedersen64 hash_to_field returns a field type\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_address.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_address.out index d838b3a228..726b1eed60 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 6d4c8fde1d7dc8cc530c6f55c0583b9904493107ee53fba5cf51778b8fac781f - unrolled_ast: 6d4c8fde1d7dc8cc530c6f55c0583b9904493107ee53fba5cf51778b8fac781f - ssa_ast: 8b739c4de9425ebf651a56552890b996deb8026b6cf599d42ff591bae05aa425 - flattened_ast: 5f5b55f156ee763b4c3667d7b20b53d1bd3eac849e219664fef3fd0d07350024 - destructured_ast: 816c4dc10da517d34a9b3a8c04b0f36ad90ac076a54f6ff77c34b0eb5e25639e - inlined_ast: 816c4dc10da517d34a9b3a8c04b0f36ad90ac076a54f6ff77c34b0eb5e25639e - dce_ast: 97ac6e43e9ca83db11c8b30c3f80326e926982dadbc3628c9b5a585fd4b0b757 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 7f77f0f67271103abfc5e145f4d9ea544a8ec6c149a737901b59dc56d8550796 + unrolled_ast: 7f77f0f67271103abfc5e145f4d9ea544a8ec6c149a737901b59dc56d8550796 + ssa_ast: 61746da9736c5a67075ac9156b32814000f540ede62c2fa89b3df8a8e05ee3a9 + flattened_ast: 518adf533740bccb995b3f5f008e3b8977e5c4f1534485f96215bf59821c6eb7 + destructured_ast: a00e82771e10a3f7e7da491141c259ef12d1cbd14095c6fb749dc449cfef031a + inlined_ast: a00e82771e10a3f7e7da491141c259ef12d1cbd14095c6fb749dc449cfef031a + dce_ast: 9f713e2625f323f9ee6c55241b9d7dbe78b696034e1c0f74d7f117cfa6196298 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_field.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_field.out index fb07bc9c8f..41d27564a9 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 96cc328db8189e7b4cf99b0b381b97b38fe5b5ff70c0edb5e8855188f9ae4276 - unrolled_ast: 96cc328db8189e7b4cf99b0b381b97b38fe5b5ff70c0edb5e8855188f9ae4276 - ssa_ast: 8a1382637fb695caeaea19b521229fb21798c01199302b536e035c6eee2c3eac - flattened_ast: 9b24f539aa0cac6ccdebde69742839b046e9ad5d292908e47da8be04cb04ef83 - destructured_ast: b19a57e77220458950319035c88040430284beb437a0842b8a11f3c67923b36a - inlined_ast: b19a57e77220458950319035c88040430284beb437a0842b8a11f3c67923b36a - dce_ast: d8aeb521edf88e5fe5971802c4578f7262b2120cca21f5a3afecc5c7ba113f35 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 4b09b8700d6dac26e6fe2210602f880757f700672100fcb1da7c67e8cfe39350 + unrolled_ast: 4b09b8700d6dac26e6fe2210602f880757f700672100fcb1da7c67e8cfe39350 + ssa_ast: ac3c6d1e686430699a673ffcd6f4fcdc9b9b38a097ff4525c9e00d6fa8c52167 + flattened_ast: dea56bad38dbaad7ecaecfffba2e5741a0200d22353eb97d7e595e08341e6b1c + destructured_ast: 1aff99d53adfbb6a699adebfcc974e68cbf4d0956d39b2ad3cbefd7464cbb392 + inlined_ast: 1aff99d53adfbb6a699adebfcc974e68cbf4d0956d39b2ad3cbefd7464cbb392 + dce_ast: d39d4e3c2c1a74f045475ebcc9fc90388de1138b7285dbc244b125b39b733cab bytecode: 4a7ee455b4552494a4153a4a4585aecfdb077ae2d89b2281da182e4213c20508 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_group.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_group.out index 1f286022fb..554b658b86 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 4c1e8288bc51b051d064eba8ab8f1258cbe5ad534a7f3432c48c4f932560ca21 - unrolled_ast: 4c1e8288bc51b051d064eba8ab8f1258cbe5ad534a7f3432c48c4f932560ca21 - ssa_ast: 26a2cad2150ae60c02e6627d003864ecac588987b3cea88650828fd46c9063fc - flattened_ast: 3713e8b2f40df7e56bd2c06dfa30ab668569a986f14807b39f5d59c21aa8ee09 - destructured_ast: a1b5b53230f92163126e6b3791c9e2ee324a2201d050e5b017fe652b9c691c5f - inlined_ast: a1b5b53230f92163126e6b3791c9e2ee324a2201d050e5b017fe652b9c691c5f - dce_ast: a30da19c9d00cac180a87d1bb098697e00db389e0a9b47406ba1601943201896 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 012114da1d13b31a5654a8a62828195f55559fe378eaa20b92130d0205f9316b + unrolled_ast: 012114da1d13b31a5654a8a62828195f55559fe378eaa20b92130d0205f9316b + ssa_ast: 6c89601689e51ca9c7c7cfd52cc69962f750b51ef26bb099156dc2729a2b213f + flattened_ast: d8b003cc1592aea6c7043b545581a0fa7d81f5c2e44bcd1097c707c88e125be5 + destructured_ast: a29660b0130f2a8d7fb76f348c2b8a4ef60d407883b84472efe90ed45e48dfd1 + inlined_ast: a29660b0130f2a8d7fb76f348c2b8a4ef60d407883b84472efe90ed45e48dfd1 + dce_ast: 0fa0c79769848867af6bd129161f35e7425c9dad7ddf42e282b1102578920ea6 bytecode: 5e1c3a522f56e1e46342bb1e4d14c2827d7d7dcf0e73d13c694ce9211181a90e errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_scalar.out index 7f84c63845..71e59d184b 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/poseidon2_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: f5d588e37ad84751cfe19e8cf7c432e823e1637ce018a3bfa536ae01638a80da - unrolled_ast: f5d588e37ad84751cfe19e8cf7c432e823e1637ce018a3bfa536ae01638a80da - ssa_ast: 94432f95ffcd4b9d0007e12ea118efb445c2f9f64f5d55720742ea230811d3c8 - flattened_ast: 3b3ec56ca5f57fcc87f60115da99133e05381d23bf7d0dc1a4a986280d57f7d9 - destructured_ast: f72dd65d26ab53f00c682bed8227467c1f0319806b1592e215ea8999debf7487 - inlined_ast: f72dd65d26ab53f00c682bed8227467c1f0319806b1592e215ea8999debf7487 - dce_ast: c2caa533254d02d255f4e9f4be98af15d12ed487f918aa426bd4d78740aa1d09 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 2c6df3acd7f65b66ab7655fa2d29312c52e7c914652f4486f4c41e8a6a05308a + unrolled_ast: 2c6df3acd7f65b66ab7655fa2d29312c52e7c914652f4486f4c41e8a6a05308a + ssa_ast: 03a0016d5358a5d32865042f72d2df6ca644788b81160c5c46eeb1bfeadf3492 + flattened_ast: 2d80ebe641a57cc8e8a0dbef9ac6e1493a1c74666d47e78c06bdb4d0f5bf38ef + destructured_ast: 79b8356edc81578fbdd68c714a2eeed8be1373f1c78fbbf2f06cb2e716c24ec3 + inlined_ast: 79b8356edc81578fbdd68c714a2eeed8be1373f1c78fbbf2f06cb2e716c24ec3 + dce_ast: d5f4c242e180bc316a9e5db1a8802d92d7395293a2dbb68610659e0dfc0f9fd2 bytecode: 2854f9d794d38f70f28b7715b25d597c94a380af36a51b6b3c04d1fe71e2cf3f errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_address.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_address.out index d85e21b3c9..f86440594e 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 5d33f2d10e4f1dc02e2b081a2b5c4ab2a8164c7fbcaed0d071c843cbeed5fbc7 - unrolled_ast: 5d33f2d10e4f1dc02e2b081a2b5c4ab2a8164c7fbcaed0d071c843cbeed5fbc7 - ssa_ast: df1bc8739a8ed0438a363b39fd20548e70aec1c2850894e8cf53346f0b23efd2 - flattened_ast: d1f9b57894e204553044d69ecce9f1d3952a27f92f681cb4db701256700e8c98 - destructured_ast: a439f967c62a9d059ddc3ef34891966c29da61c7b0a22ea54280315eee7178d2 - inlined_ast: a439f967c62a9d059ddc3ef34891966c29da61c7b0a22ea54280315eee7178d2 - dce_ast: 97ac6e43e9ca83db11c8b30c3f80326e926982dadbc3628c9b5a585fd4b0b757 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 8739a03137b59436f169b86851a41bb50b0c5d1bf9b2dfec619ff52c50622951 + unrolled_ast: 8739a03137b59436f169b86851a41bb50b0c5d1bf9b2dfec619ff52c50622951 + ssa_ast: 6f5d7120f42b5d4b3424b626073dbc03ced801ba70c9e81de3f7ab32822763e7 + flattened_ast: c06e839b4ec07b5ee42684dfd6efad79f83864c025be0f183a22cd79c1880697 + destructured_ast: a3c0d14538e935aa90302ff135f10795395d9cff7d5206d3a9eda0962ecf6238 + inlined_ast: a3c0d14538e935aa90302ff135f10795395d9cff7d5206d3a9eda0962ecf6238 + dce_ast: 9f713e2625f323f9ee6c55241b9d7dbe78b696034e1c0f74d7f117cfa6196298 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_field.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_field.out index 20c4bd61a0..299e9fa8ff 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 678c4c005b5a4dd31336fb14976d2a2a687370d15020489358de8e6de48980b0 - unrolled_ast: 678c4c005b5a4dd31336fb14976d2a2a687370d15020489358de8e6de48980b0 - ssa_ast: 4593ca78f02da8a10afbed3bea99636fa21e096b36ef6baf8fa9f14abf871b2c - flattened_ast: 4d0f59b0cb3f1dd054acd6b917af0a92928759227e42a1ea9d3e30304fbafa9c - destructured_ast: cd955951240a52ed4ca266868e7e98424f648794b1ca5270636b9554b6339778 - inlined_ast: cd955951240a52ed4ca266868e7e98424f648794b1ca5270636b9554b6339778 - dce_ast: 3090b10e9ecc608042cc89b113b79009ea55ee5e14de159e143f42920bf2246a + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: ed7afc9e9e6fad384574e18d3a785543b99cd757acf23fc7e58f5975f7ef5e68 + unrolled_ast: ed7afc9e9e6fad384574e18d3a785543b99cd757acf23fc7e58f5975f7ef5e68 + ssa_ast: 8a8a3270aa0ff8eb63319788b5fadd436ad3cff11cbd165ee9a2deac611b88ac + flattened_ast: e89103430b371638266af796144efe2412f7dd95ece44d8a8c0bd99fae8d2bcf + destructured_ast: ee6ae4a1c85bea3dc797107250edabb9caa1776f223aa787192f3868346ae53e + inlined_ast: ee6ae4a1c85bea3dc797107250edabb9caa1776f223aa787192f3868346ae53e + dce_ast: 419eb49d08941108d3f90ad15877e1b4ad76ee018bb69eb30aab6b2469a66e63 bytecode: 5afc04764a3838219b882f5feeafa9603549ecc199dc30e765320f00d70c0fc8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_group.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_group.out index d57ef4dff7..74457e6e38 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 40b32083b20684d2daf433cbefb036fcd74d00657dcde8db6ce6c533ae68cc27 - unrolled_ast: 40b32083b20684d2daf433cbefb036fcd74d00657dcde8db6ce6c533ae68cc27 - ssa_ast: 82f5f94e4b07eda6c3b074aee5c20f7f37237003aa94883d28dd05e70ea485ab - flattened_ast: 04612476ad72c6efbd0055e3ac962ed04304628aeb43bfbc4a0c28f984c01a66 - destructured_ast: e542305e38c0ff25a667c717344549dbafbe93726fd98ba9c32af433bd606cd5 - inlined_ast: e542305e38c0ff25a667c717344549dbafbe93726fd98ba9c32af433bd606cd5 - dce_ast: 9f2703ce2176bc07738b7862ddf773340fc7f1cee6f3ab31e307f0609afaa10d + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: eff3b4b46cd8c83ea5a99159bc7193aeec16e07adbe1912e1f7b843ab6c861c8 + unrolled_ast: eff3b4b46cd8c83ea5a99159bc7193aeec16e07adbe1912e1f7b843ab6c861c8 + ssa_ast: 747be443d46f6f6470d22a5ef5ae65f7fdecbc86cb0bb3e9f62e38c008abf4ee + flattened_ast: 3426f152d1cf71dfd42a53d7df377d470eeabb424911227b79a3c872f1d827d0 + destructured_ast: 8f62bc8595f80c9c24fcd4967d45780869377ff8d36214241f362eccfc622cfd + inlined_ast: 8f62bc8595f80c9c24fcd4967d45780869377ff8d36214241f362eccfc622cfd + dce_ast: e2e9a66750535b5e4e9be95582a042be4182b7282cbc1d3aaa295422cf346a7e bytecode: 1a55ccb2faa44b5220b4dadfb85af4d74f8018a6ca8726e85cc3d1db349cb24d errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_scalar.out index 9c3cf14286..4c7fdf75a9 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/poseidon4_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: 85c75fcbedd84ef334d6bfbc484e9f5ae890db7a7fe4b8394b47dbd6453775a0 - unrolled_ast: 85c75fcbedd84ef334d6bfbc484e9f5ae890db7a7fe4b8394b47dbd6453775a0 - ssa_ast: a36c8af76e2774ed9462df219fe9480290325236ed5f88ffdbc365b96664bb69 - flattened_ast: e6f840d8cbee43f6ceb34c7ecb95950a2a0e48c0991bed2034a047bdbc49689f - destructured_ast: 5768eb9e2d6d4be837fef1518ea706f7fbee45328698864a55d4acf53c7ae793 - inlined_ast: 5768eb9e2d6d4be837fef1518ea706f7fbee45328698864a55d4acf53c7ae793 - dce_ast: a9b419ea69ba4c64746e14d0751ba77b0bb6e8c447445921bb64e96f46499583 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: f00c8b53af2cd74e4e8dcc08de5e8314f9425d10bda100fce63f20cb512f5df3 + unrolled_ast: f00c8b53af2cd74e4e8dcc08de5e8314f9425d10bda100fce63f20cb512f5df3 + ssa_ast: a82b1c73a44d015402a3e8bf5a477eeef3bc5a3b84b9b2816591806cb2a47f46 + flattened_ast: 9d5efc4a73ca018c37c199a8038e5322d795d6a134c7b15d3a80ce6e7543295f + destructured_ast: aa5add9ad73dfbed0092d1ed976bb6436235c70037c20c0c982bf11c7d01799e + inlined_ast: aa5add9ad73dfbed0092d1ed976bb6436235c70037c20c0c982bf11c7d01799e + dce_ast: dd52959af7ab904029e3109fb6a4b21f26fb820bcbee97e3dd7009e1eae93b1a bytecode: 7dbc4e044d6ef673a73bcee19f7fbac023f640aeffa49485274c899666c45fa9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_address.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_address.out index b3d3d079c6..1f582c23d0 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 791baa436d99b49c08bb59fa3c83f0a86a6d365fa6d032c6720e8c4a7cf94996 - unrolled_ast: 791baa436d99b49c08bb59fa3c83f0a86a6d365fa6d032c6720e8c4a7cf94996 - ssa_ast: 52b79d36bb215f1c4cd6522759c2cf315e1ea52002f3ba4666740253e63f115f - flattened_ast: 4c368973704aff90ab10fd216cfb2f434f1847f429f0aa6863b5170c17596db7 - destructured_ast: d93e78518258120f7512e2f65e9e54c04d02c18aa4243f928e481e52a373bbec - inlined_ast: d93e78518258120f7512e2f65e9e54c04d02c18aa4243f928e481e52a373bbec - dce_ast: 97ac6e43e9ca83db11c8b30c3f80326e926982dadbc3628c9b5a585fd4b0b757 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: bfe34dfa63f7f7837422f54b2517bc9236ec5189c4fb474f9ddc26a1a72c95f3 + unrolled_ast: bfe34dfa63f7f7837422f54b2517bc9236ec5189c4fb474f9ddc26a1a72c95f3 + ssa_ast: 61e6ec153789b3831d4334fa5226280f88807e0d468765ea7fd53f9d1d7ce14f + flattened_ast: fa5f68b6d491b38775bd5a215faadb61182e8c38cbcaaf7b99de09c6196de3b9 + destructured_ast: 921ab4e6762ab5e516864f8f79983ba648a9811e93dc4bbf6089fc6149f3c999 + inlined_ast: 921ab4e6762ab5e516864f8f79983ba648a9811e93dc4bbf6089fc6149f3c999 + dce_ast: 9f713e2625f323f9ee6c55241b9d7dbe78b696034e1c0f74d7f117cfa6196298 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_field.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_field.out index 1db9af307f..dc0780da01 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 49e2727399822c21f7a16ee8885b672bd35303f6a8e74c7dd53dce657fc4943a - unrolled_ast: 49e2727399822c21f7a16ee8885b672bd35303f6a8e74c7dd53dce657fc4943a - ssa_ast: 4ba013d4341fbb82247552e8d25139b8d4c9238420b702bce8ccba7448436f6e - flattened_ast: b7050cb81da0c8e025b2973c3eb5cb10b40ec06ff868f7bce30f49bcb973b0e2 - destructured_ast: 4eb347883c78f9736ed9997f4895c5f4227e5b4237860325465f97eadb451e8e - inlined_ast: 4eb347883c78f9736ed9997f4895c5f4227e5b4237860325465f97eadb451e8e - dce_ast: cf4f5e76613f07fd916f4e66c58e29ad7f039e53bed49a8262783326a0a2b187 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: f7c43a7a1128a5f994626739b2a94ce5e89b42c091fb7f6ccff949e2e5c08f54 + unrolled_ast: f7c43a7a1128a5f994626739b2a94ce5e89b42c091fb7f6ccff949e2e5c08f54 + ssa_ast: 8f12d37d909b484d4b4381e5a11ef2b1d0ad81dfb37b9fa905aaace0ae3b603a + flattened_ast: cbda935e408b359a3f7297dfe4af7d47728ea76341fa2a148a3cb807087ec159 + destructured_ast: 4ba808d3bd63c834a6f453cb91ce9803af954ebc167494595401e399716f3b49 + inlined_ast: 4ba808d3bd63c834a6f453cb91ce9803af954ebc167494595401e399716f3b49 + dce_ast: c0661b584b7e8e0971d0be71b18d150714c1bced70f01a3689e948f2b8efa18b bytecode: 49aae76eea34a87eee6105d1ef33a771079970ce5efcddce06b56bdd162b0649 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_group.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_group.out index 8d524314cd..02b62779cc 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 12bedec62669e2b773269468bbb8d07ddbc72e23c124af055c176c0ec4e24f1b - unrolled_ast: 12bedec62669e2b773269468bbb8d07ddbc72e23c124af055c176c0ec4e24f1b - ssa_ast: a87389a83b736fc46cfe2ab4b4a1e7801c8c538f31d3a2cb4e915c297299e0d6 - flattened_ast: ceb0ae4bde695636adbed3fd5bfc3b73d2e7beaef37c0145ed4a73c5ef3738dd - destructured_ast: e12d863ce3351048e2a7adaaee79f81f7a5ddca53232a3d39e17344ec3a9e2d6 - inlined_ast: e12d863ce3351048e2a7adaaee79f81f7a5ddca53232a3d39e17344ec3a9e2d6 - dce_ast: bd84f9a5914afc02f27bd9848fe3361eae69c1476f934bd3ae257945f155c475 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 75a7f3f4d56cf5ea6206aa0fe56b586ee65a130b4250f0592006a84d4b17cc91 + unrolled_ast: 75a7f3f4d56cf5ea6206aa0fe56b586ee65a130b4250f0592006a84d4b17cc91 + ssa_ast: 03ea47ab271f2a2f623576940a7cc924b954eac9042af58436c92b31036e24b2 + flattened_ast: 3efb75f9d9c808d1d5581964c19b2022b84637f5ab877c8694495eecac3b59e6 + destructured_ast: 814517a88eeebf771f1795ec0e9b92ef988e93097d6ff13ce42156eefbc0870d + inlined_ast: 814517a88eeebf771f1795ec0e9b92ef988e93097d6ff13ce42156eefbc0870d + dce_ast: 5c027333eae1075743a5aeeaa6b1a3acfb7d53781b050a11b884a920b1429c57 bytecode: 02d47a7250c61ef4d17c7ab46f74657d42b407488f8e4a3a3035d9fd55772c72 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_scalar.out index f5212458aa..5abe2d0b11 100644 --- a/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/poseidon8_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: ae69d8ffe2fdacd176e755f7e6a526e4a5924d7b8a97b502078618b37bb04df7 - unrolled_ast: ae69d8ffe2fdacd176e755f7e6a526e4a5924d7b8a97b502078618b37bb04df7 - ssa_ast: b26163801af9c678d20c2657b1f0e3bd8e8ec4836f342a743293d38ed54dc094 - flattened_ast: 7e5eaf6dbf6843134a215a08b4fc6a471e76592f39c9bffe0a45d6ebc8a2ec2f - destructured_ast: 46194a2f3c06cdf8f312fd4aecc2a58e26d2535e4990a77b8cc21a4ce2235358 - inlined_ast: 46194a2f3c06cdf8f312fd4aecc2a58e26d2535e4990a77b8cc21a4ce2235358 - dce_ast: e56b136231e058aa304f5adb9b8c262cbcfecfc2d0b1e3f046a73e4eb709b8b0 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 46db3fa5929e7153cf92030b39d2179b7d590a9e0e971da3525bac98035a3c7f + unrolled_ast: 46db3fa5929e7153cf92030b39d2179b7d590a9e0e971da3525bac98035a3c7f + ssa_ast: b457cec4772eae44db395c43941cbc3fd5e53a616f5c427613c5f1a1affc667e + flattened_ast: 9031faecc3ecf669502097cf080a0add6fc019142de172cc87eba79700f6bf2b + destructured_ast: cc80b4ddf70bca0c11a1335e670d746910252b61c773b9ead9b2840fca946ba9 + inlined_ast: cc80b4ddf70bca0c11a1335e670d746910252b61c773b9ead9b2840fca946ba9 + dce_ast: f7886d5e6e78acb8cabffc4f8a64df5d7e67e2327d15915fb65df082a787ee1f bytecode: 5230c6c2a5d11187990baad02e10050166090cd500ef2cc6047d648384c8cac3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_address.out b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_address.out index c771d371f5..9366b303b4 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: bd89df2cf63e09b2aacbcaad8a268973c1574666c238c41aacbd3ba3c04d5902 - unrolled_ast: bd89df2cf63e09b2aacbcaad8a268973c1574666c238c41aacbd3ba3c04d5902 - ssa_ast: 7b392282852ea91a394a205127b0494025e3ae8c05ebbc3794dee3d9f4137789 - flattened_ast: d1d0a6a93408867e9a397e3c9112629d8f24abbde92853d35d47d33ba219039c - destructured_ast: 69b319521d7c8bd94f1132850031bf706e91bc76fdc19ed1379f245b4c209067 - inlined_ast: 69b319521d7c8bd94f1132850031bf706e91bc76fdc19ed1379f245b4c209067 - dce_ast: f35bc7a27cd90f45b1396e3de6323662e3a3e76ddbf5741715d7d3b4f55641bc + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 43ba0a12581491f0c998648269eea706d8a913d28bbd8e451b64781c836b6e80 + unrolled_ast: 43ba0a12581491f0c998648269eea706d8a913d28bbd8e451b64781c836b6e80 + ssa_ast: bdd78e7fb975bb5ac207e2212dc43f603a8ca8627946b8e4dfe3f8b1445940aa + flattened_ast: dbb8d9961672569ba0f0a034df9fe51fbad44889bda686bcc97be05c82e425be + destructured_ast: 47ac051e71c2a9ec74e015daf7e1e6c5c08ebe70d2d04610f47ff31138cbfde6 + inlined_ast: 47ac051e71c2a9ec74e015daf7e1e6c5c08ebe70d2d04610f47ff31138cbfde6 + dce_ast: f8f7b1491ea61b04cc1fec6906c8559e3e5b5d26b506f10789b7bac9d93a6265 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_field.out b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_field.out index f9a55db4ba..c6cddd0d21 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: fc65663308d4e0d86b0e88728f4fa83d59051d62fddaa8d375719ef46d497599 - unrolled_ast: fc65663308d4e0d86b0e88728f4fa83d59051d62fddaa8d375719ef46d497599 - ssa_ast: 8c5f64489d13f07007552f3806db19536d99b976b7ede5c534103d1a4442d6f2 - flattened_ast: 1ac2278a11df9c8230283102d770cd7878d5d5e5382d2e765bcf894ba8f69f0c - destructured_ast: 829a3fc2892d5e80ffe4af88b10076daf69a3cc329717178b6aae9c7962d6c1e - inlined_ast: 829a3fc2892d5e80ffe4af88b10076daf69a3cc329717178b6aae9c7962d6c1e - dce_ast: a53ddb4793a44e9a90b12d2bfc4f9493fc42dc8daa5403c4aaa9bec9bc37c2d1 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 5174401c3f2466d93d9a8e496f6ef47bf6cb05e99e8e5695efe52fc2dc3ea35a + unrolled_ast: 5174401c3f2466d93d9a8e496f6ef47bf6cb05e99e8e5695efe52fc2dc3ea35a + ssa_ast: c8a764a4ab2c7e3272841a1c666393442fade73e0eba94d4ccd320e46184ae09 + flattened_ast: 91d43293a20581e6f13cf7c8bd7e02eddc5b1621d37d4afcef1cc4e8a337e658 + destructured_ast: 992380cd2fce506a37cadff1eed26e88a38940473a83696098ea82650d0923a4 + inlined_ast: 992380cd2fce506a37cadff1eed26e88a38940473a83696098ea82650d0923a4 + dce_ast: f8fd0675a10fe8fc6d3dda329cc3ce3cba8ef8d13da95a1a6b0828f544af8bea bytecode: 690637a56c18881cf6f85a1531bb8b17cd18d901daf7c29301562c019fe495c7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_group.out b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_group.out index d8fe2f15b6..4fcefd46a6 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: d979cb06177ade4eec9fab801ec7fdcedb978cdc5faa6feee13c47de234b8a17 - unrolled_ast: d979cb06177ade4eec9fab801ec7fdcedb978cdc5faa6feee13c47de234b8a17 - ssa_ast: bed215bd7d037bb6930853451cd6113f128b9067c99883a00e242c7b2fbe92c0 - flattened_ast: e50bb4b75f667f86753fbe60dd700ff3101ba5fa741aa2d2c408e5d6d724b2e4 - destructured_ast: 7b423cc2834d512bedbbfeb4a03205f3a3a317781eeba3cf34bb684d0d540254 - inlined_ast: 7b423cc2834d512bedbbfeb4a03205f3a3a317781eeba3cf34bb684d0d540254 - dce_ast: e20b8489660179e4e19fee306c2a29cc0017cbbfd706143979402543bef73528 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 2b8977601f57916259e4bc8738a3951f22ab008decacdcd503cdfb6a87760441 + unrolled_ast: 2b8977601f57916259e4bc8738a3951f22ab008decacdcd503cdfb6a87760441 + ssa_ast: e40fd34b6f6d63ce4d6f77c255b2810650ba46c5f0057a5dde35876c4dee2df2 + flattened_ast: cd13394b29d1adfd772a089aeff0ce795347e27abd705c327593ae91c242e225 + destructured_ast: 460ed3f74350780670447a3bc8b16e9b82601c30ea2341d4f28432429a22b2fd + inlined_ast: 460ed3f74350780670447a3bc8b16e9b82601c30ea2341d4f28432429a22b2fd + dce_ast: 2be6a14ba04f816e108db7c3ac2a952a138b7d74b32a86b230c9272d46a82e84 bytecode: 46d916910ae925bea8c55fc0887b41d05efedac9228150f59f894ff52652a290 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_scalar.out index 94497846c2..eddf7d95d1 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/sha3_256_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: 8cc0ab155845e611e3aedf95fd7f6c170779aa834c20ea2b89d2e828f503027c - unrolled_ast: 8cc0ab155845e611e3aedf95fd7f6c170779aa834c20ea2b89d2e828f503027c - ssa_ast: dde1317f86db19375def352dadcad560081a35f7e807e0447bc2b75856bd8ee0 - flattened_ast: c13d3cc0804344b226cca8ffbcbd1fc149084307c8b2ccf19ad2d2d7e769ce00 - destructured_ast: cd93a842af2fdb50d735f5bcd4aed559ceca0c43d25fe0dabe26c56f4ed22d51 - inlined_ast: cd93a842af2fdb50d735f5bcd4aed559ceca0c43d25fe0dabe26c56f4ed22d51 - dce_ast: afe633662100d8029ec2db5a14a813176f88e06b0c51a0b578a176800a03a1ad + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 64b77208a4a336bac712f3458086cc12ff316ab23202eee83b39c5e6fb3c8a16 + unrolled_ast: 64b77208a4a336bac712f3458086cc12ff316ab23202eee83b39c5e6fb3c8a16 + ssa_ast: 4fe5896d8fb4b1e51c494ba1de2533a4d48e97c8e1ebe090a234cf7e514f0022 + flattened_ast: 9d3327cbf8199840b50ebb2bd44b52429a96fe9354d2adef85444fb4c3edb8ec + destructured_ast: 69c1671ef5844dfeaf56b7f3d79a3c159c09fad05ab2969aa591fd12b0fc0182 + inlined_ast: 69c1671ef5844dfeaf56b7f3d79a3c159c09fad05ab2969aa591fd12b0fc0182 + dce_ast: e8eb2455360cf86a964fc51a3c7e54085261b3bf16e7202aec5527f8b6a6bb29 bytecode: d6a9ad31d87c08ce7882a80a4d5067f89ce048108bd23a41487051aab4904268 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_address.out b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_address.out index d9f503777f..80b3b86bf6 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 63fa305f2e8a83ce0dfe1abf133a8282bccbbb1719b7cf2ac378685ec8f215f2 - unrolled_ast: 63fa305f2e8a83ce0dfe1abf133a8282bccbbb1719b7cf2ac378685ec8f215f2 - ssa_ast: a2e4227d8c3817ded02c57d06f74ef873f1344e44a2370756fe5855039bc8324 - flattened_ast: a80b2cf8fbb3f3e8f5598cea41ca2d1014e9ba1a7afd2e50205b08dd365863be - destructured_ast: 31d81696d4b87fb2a19ea4821b9683e1c93620486adb5be6e319408109b5f626 - inlined_ast: 31d81696d4b87fb2a19ea4821b9683e1c93620486adb5be6e319408109b5f626 - dce_ast: f35bc7a27cd90f45b1396e3de6323662e3a3e76ddbf5741715d7d3b4f55641bc + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: f5a11b8211e3f693b89fe10f0438ddc57d465acd4b5b8669f5c57ba816e93f5b + unrolled_ast: f5a11b8211e3f693b89fe10f0438ddc57d465acd4b5b8669f5c57ba816e93f5b + ssa_ast: debaa9931796328826f223b5e8c2d6fe4fda717b7aa0dc1e21ea0a062fb5ea79 + flattened_ast: 01a4d26d768448024a288701720cfb760a7d0ad167dd054cf74c01b72ca8fe01 + destructured_ast: 8b240a2a185a3fe7e191e3b3eca96fb236f39bc6b98fd7f51ef9296c0f281dce + inlined_ast: 8b240a2a185a3fe7e191e3b3eca96fb236f39bc6b98fd7f51ef9296c0f281dce + dce_ast: f8f7b1491ea61b04cc1fec6906c8559e3e5b5d26b506f10789b7bac9d93a6265 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_field.out b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_field.out index 98d81cbd0f..ff2949886d 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 2f98faa9ee9fa49e9d175a2cf6c29b8c8ea7404a2c289b68de20162c4aa1052d - unrolled_ast: 2f98faa9ee9fa49e9d175a2cf6c29b8c8ea7404a2c289b68de20162c4aa1052d - ssa_ast: b461095f30fd5daa7b5d8506e64c11c2de579e096fc63d434914e9af37fec28d - flattened_ast: c0c919f95f4ce601abab03666b6654a3c7f812fdc69aae74f5dcbd2b17833b86 - destructured_ast: 779f0fe3f01bb8883932a1d379763fd497378f46e12310627cb259f4e204fd65 - inlined_ast: 779f0fe3f01bb8883932a1d379763fd497378f46e12310627cb259f4e204fd65 - dce_ast: 1a6161e5a856e9a674a6c4c4b7d7542b0ebdbdfa7b46ea0256124a972c6f9fe5 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 81103907280756ecb0deb3eec74e5f4a0f78c6139d73192969b3d2b2d5644cbf + unrolled_ast: 81103907280756ecb0deb3eec74e5f4a0f78c6139d73192969b3d2b2d5644cbf + ssa_ast: 4fe02d2b1d8142f0e486d9e31cb25140efaaa3ad52abbe25e44966cca8bf3703 + flattened_ast: a4c94e4a18755da707cb53574197728fd213c880d7a9b2c8c8176436761f55f7 + destructured_ast: 895bf16a2b26d700ea03d118035a7162118ddd92a3df532ab7615888377862e8 + inlined_ast: 895bf16a2b26d700ea03d118035a7162118ddd92a3df532ab7615888377862e8 + dce_ast: b7ccd8f5f5e08cfe6ef8f9feeda2e6878c273d4f747ca587099e88d6c11ba043 bytecode: 2e3beeb8a0f7547611c2c519e43599ac9e5b7fafc215ee921eb500d921987252 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_group.out b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_group.out index 942d2e98f0..e9f41c962f 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 0090cdfd23a90670204287d0924da62eb6987f14e9902fcdf2e49168ce1905fe - unrolled_ast: 0090cdfd23a90670204287d0924da62eb6987f14e9902fcdf2e49168ce1905fe - ssa_ast: ca2048f889bf902ce8c20bd9259302ec32f05d895de3b0a51070c74f651e662c - flattened_ast: 58e5a7b8300bf12cfc38fb97c2bc9c26ca46d6420d3120a8cbf80779297c2b23 - destructured_ast: b4ab612488fe789843e5c6b1e1df254d974345265775eb8e2fa8b2a736dcd327 - inlined_ast: b4ab612488fe789843e5c6b1e1df254d974345265775eb8e2fa8b2a736dcd327 - dce_ast: 8d0d1fe8d99f97a36357c48b536d2604b97d985b4ffa30db4f6133cde52ff8d6 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: d8ed6cdeedf7a048b49009aa37e73c8ffd930b74ad188d02b5d40b244b4e41fa + unrolled_ast: d8ed6cdeedf7a048b49009aa37e73c8ffd930b74ad188d02b5d40b244b4e41fa + ssa_ast: 4f084091dd152f3f9afc9f5a2ebe0e9e581fa86a5261895662d7ff6ad1b45cc3 + flattened_ast: 6a8cb269ed3ef0468524a172ddd90ba3a264d87cfcbf66140e0879a79b2f7e8e + destructured_ast: be21875a0bba583ff907332f0236633c194bf9932f731b77502fa19eb8afc1bd + inlined_ast: be21875a0bba583ff907332f0236633c194bf9932f731b77502fa19eb8afc1bd + dce_ast: c1dcf010069c55d2eec3fd3d59233e19afd047e33a7d338202480177ef848ee0 bytecode: 9dddbe9729f05832d71afd33571dc4ea51212f6e4f6d6c6b27f523d38059f2a1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_scalar.out index f874d64ec0..814f79f9d1 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/sha3_384_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: c840f85fe397b0ad2c52709c7a5378cdbf01940eccba4ae6b7d6c7d630f70ecc - unrolled_ast: c840f85fe397b0ad2c52709c7a5378cdbf01940eccba4ae6b7d6c7d630f70ecc - ssa_ast: ce2ef3416e58f10b15f068001f52da6270d7e7cd1cb78318557ba4bd30251f03 - flattened_ast: 888c8290bf53ebb10e81a8cb7b8bf81f5543765711c44626f2a6c9060e63f10d - destructured_ast: ab79ce707c9b751f5ca2df456302215bd7a6043b1b7656f4a29511f5b23a3102 - inlined_ast: ab79ce707c9b751f5ca2df456302215bd7a6043b1b7656f4a29511f5b23a3102 - dce_ast: 4344db45605685bdb36560e2ddd869dfddead94c0bc105388365f9fdab5d6801 + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: 229cc05fa87bbd458688fdbfe49669b468fb026bbf0a3a617bc0d7fc34791c10 + unrolled_ast: 229cc05fa87bbd458688fdbfe49669b468fb026bbf0a3a617bc0d7fc34791c10 + ssa_ast: 5ea3a470d9fa8d5bf449d5355018b939d4e754a762649b25b74612cdb1da82b0 + flattened_ast: a5de7e4841ffe056217328229431440a87f8c14efeca05f0d75caf46db7089e5 + destructured_ast: 90ec0713564efb07e520a6a97b0ae0f9b54dd078d34f15f791e15e9ae0ceefe4 + inlined_ast: 90ec0713564efb07e520a6a97b0ae0f9b54dd078d34f15f791e15e9ae0ceefe4 + dce_ast: 13df51d84d305c1af95ebc5f2655912f62449471f341ff30992474cc7df16675 bytecode: 77991d7596edcef00041488b23dfbb364c0c979217f4de3a324d42d91ea28f5a errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_address.out b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_address.out index 4f0a690e75..1a4addb812 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_address.out +++ b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_address.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - unrolled_symbol_table: 7ea97bd3f2f1366697977d015b733d7f70222006a2c318ffd71f85b486683aa0 - initial_ast: 36f8e628b933d4c46daea0f7de09b12d931d4bf420ff147aee8da1710fcfe644 - unrolled_ast: 36f8e628b933d4c46daea0f7de09b12d931d4bf420ff147aee8da1710fcfe644 - ssa_ast: 3ab0b2468ce7ea78a5e12e730d23d0b1a12004ae4e57fc58995def2f855afe97 - flattened_ast: f02fbce54da59a09b27c833aa754582e5b9d3003273bf1a5c1abffe20c1c2f9e - destructured_ast: f8ea617b27ff0bb4a5496e1b7d30cbe2997a854d82fcd337e66751db5f5cfde6 - inlined_ast: f8ea617b27ff0bb4a5496e1b7d30cbe2997a854d82fcd337e66751db5f5cfde6 - dce_ast: f35bc7a27cd90f45b1396e3de6323662e3a3e76ddbf5741715d7d3b4f55641bc + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + unrolled_symbol_table: 9276817b440938ef8b32982f5bbfa1161c9d01d5f02c8440c3dc0ddbc30ba758 + initial_ast: 5952738dd9a939dad92fe6544b9a64f669f61e491a995d5e00f532c381e25be9 + unrolled_ast: 5952738dd9a939dad92fe6544b9a64f669f61e491a995d5e00f532c381e25be9 + ssa_ast: d9b3865de6b31730ddb407ce5a12f784a42efac835490a29c594af0ac4e2e84f + flattened_ast: bd2905ff71180d318703a1313f69fed04f3c8d6d6052ae80756a9a269b5371a7 + destructured_ast: 2c4110459ea0559c278def4939fd221e45616a85c16cb175be10e38ad6a2beea + inlined_ast: 2c4110459ea0559c278def4939fd221e45616a85c16cb175be10e38ad6a2beea + dce_ast: f8f7b1491ea61b04cc1fec6906c8559e3e5b5d26b506f10789b7bac9d93a6265 bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_field.out b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_field.out index e132ae03a2..e72562c389 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_field.out +++ b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0b53989640055bef15deab2fb1e4d8691b4f1b439f1bdba64f34278be1cb37e0 - type_checked_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - unrolled_symbol_table: 857ddcccc8ba5f91784b3dde333bcc63b5883ee12d4110112eda378ac43ccdc5 - initial_ast: 1687df8896d1f698f7f4f493025569acdb85c6feb7ce47c5f9c808681a46dd97 - unrolled_ast: 1687df8896d1f698f7f4f493025569acdb85c6feb7ce47c5f9c808681a46dd97 - ssa_ast: bdf68bbd3439f4fb2e0c25a4b5b5c78c99c8c36230ab8306edfb6681e5509d8b - flattened_ast: 7a45f7085de22f0097be4ea871cf48d01e73d08c4a84c9221f8bbc9c73faca58 - destructured_ast: db69568065e793d347eb559138d79974bef3bf87d8d28ffe665abeb6f30484ab - inlined_ast: db69568065e793d347eb559138d79974bef3bf87d8d28ffe665abeb6f30484ab - dce_ast: db5890c09882d1c16a149b5d1ea9adc21bb707a4c55d7d5718cc2c90351dce25 + - initial_symbol_table: 0f5d36005197cb2fccb650b60da08e392ad4e36923fd4feb47db3a6fbb7a11de + type_checked_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + unrolled_symbol_table: b67f708cc4a8ce4a48b40eefd2c35bfdfc54b558566f9ffee5c211dfd489ef66 + initial_ast: 5c326dffc1dd6457f5d5ec7dca529a013e5d5487163c514091344376ee46fc80 + unrolled_ast: 5c326dffc1dd6457f5d5ec7dca529a013e5d5487163c514091344376ee46fc80 + ssa_ast: 73ec91ce44b5f2598029cae90a0801ebe2abfebb7d8a8d01f03bce1734a4b1e4 + flattened_ast: bb1e541b7bf5e4bfa7d65a68c98779e035761d2a457ca6fc7a99af880f55ec45 + destructured_ast: 1e3ba56e5382e61e03fdfd2979164a848dc1edf26003b0272f51f98dbf81c305 + inlined_ast: 1e3ba56e5382e61e03fdfd2979164a848dc1edf26003b0272f51f98dbf81c305 + dce_ast: 705f126809042ac0bf4594c90dc526f81e896753731a6b413ba117d470c50ce9 bytecode: 5a8a82d9707b83f6fe1d6f317a88b89ec9d908cd30fde3658d4e465e4ddf88e8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_group.out b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_group.out index 3e74b3ccdf..7833f93556 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_group.out +++ b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_group.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bc00a6f0fa880e2cddf4bc424ff5f9968e43ce903d50d465f4f546e7cd4a2cf2 - type_checked_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - unrolled_symbol_table: 2b3107f8a94acb12092cb40d6eca58305e01681f8aaf3c4fe128ca80378d5390 - initial_ast: 5c5fc23355cac3e656a1a5e25323ef3dbdcfe32b9885fbe70371e9b933a8268c - unrolled_ast: 5c5fc23355cac3e656a1a5e25323ef3dbdcfe32b9885fbe70371e9b933a8268c - ssa_ast: ac8f5d7170232bc69d65b870edaaf678fcf053d6f9968d0362c9f3b65dd02e31 - flattened_ast: af4a154fb2e277db1c9da743bff756c9d312fee30a3c07e2b6b59633dd416303 - destructured_ast: ed9a1c032724b3e50d3505c412cdf2f0beea5bf353bac82137c7510700efe816 - inlined_ast: ed9a1c032724b3e50d3505c412cdf2f0beea5bf353bac82137c7510700efe816 - dce_ast: b01e6d9ea1ae58d8ea6b02d2f7e065cc467094b713269d0cb9ab68ae78692d21 + - initial_symbol_table: f0f996bd026e52be88eda1f06611a250f07beb461598af45364338b71c6be67e + type_checked_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + unrolled_symbol_table: ff73715654c51dd2d9fea914a60b8e6cae327c41c9b70edd77e8bc4e12e811e9 + initial_ast: 5fd25df011150fceb3a41a64e754b6a7c547b2984f734b687f4905df232d47d9 + unrolled_ast: 5fd25df011150fceb3a41a64e754b6a7c547b2984f734b687f4905df232d47d9 + ssa_ast: 6c3052affe4cf0b0ea2744625516fd6efee8f0442f583bee60363d394e764811 + flattened_ast: ab1b0e39829c189dfaa8d150595f706f05906eedc1c6c65c68526cde30019d73 + destructured_ast: 7ff97cada06928aa23a4c9748073eba4ef93a41f46489e330ceadf7963d019f7 + inlined_ast: 7ff97cada06928aa23a4c9748073eba4ef93a41f46489e330ceadf7963d019f7 + dce_ast: dbd351eb37e5e12c463cc99c683711a113a0180676a242fff51aedb0ebf5632a bytecode: 02daa75965baeaaad40c59c24d161cb796a2d833b10bd189c9bb2a38e8bf747b errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_scalar.out b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_scalar.out index 6481ae547a..8d28e5f4f6 100644 --- a/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_scalar.out +++ b/tests/expectations/compiler/core/algorithms/sha3_512_hash_to_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 79eed2f6e683aa3a028ae2e9dab1002207743d7b4a651658bbc6a5b8185e0f8c - type_checked_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - unrolled_symbol_table: 17abd653b2f3fa7cd1996c2f7675fb6f64a4b5dbdd281c46e8977676e7eb857c - initial_ast: 4607def290af20b5b62227326034f06026e8cbcdd32a36fd670d83801ad99902 - unrolled_ast: 4607def290af20b5b62227326034f06026e8cbcdd32a36fd670d83801ad99902 - ssa_ast: a176e30a93c5207ed0d874964e6d6e7ae3c081b1103d8dad50cb0bf6a6090d41 - flattened_ast: 594b7506fcf6fbec70b530cb7e51c53cdab54dd6a27343cdd523ccd34e692c43 - destructured_ast: 8e1cf7d7f8fd978ef1d64cdb899fe93655555d907f896b6e7c18a01383c1e029 - inlined_ast: 8e1cf7d7f8fd978ef1d64cdb899fe93655555d907f896b6e7c18a01383c1e029 - dce_ast: 3f14661508e3d2672b9049054796df05411f308aceaa2ab72b862d7a62add16b + - initial_symbol_table: cde267005ab63bbf7732222cdf11cba82760283e305d151eac86294c3ddeca5e + type_checked_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + unrolled_symbol_table: 70b1f7d016f3e65d2902d20fab38f69924278f04173bdbd4d112e98f751fe32d + initial_ast: fd34ed94615f69893b79b9867e8ef66cd332948f31c9cbef0abfe49de7f1d40c + unrolled_ast: fd34ed94615f69893b79b9867e8ef66cd332948f31c9cbef0abfe49de7f1d40c + ssa_ast: 13955d2954b2dda4fcc57bd85679ef46e4ca9aad02be63ba5a98ee995727c5da + flattened_ast: 8802ad10375eeb7097e0ab83c63e06ccb8d49d0b4d2483c94d9ad69f4ebb881e + destructured_ast: 51a17fba50daf33ddff63566d8ba94ecb613a84c10aa6a0cc15d7342daafc682 + inlined_ast: 51a17fba50daf33ddff63566d8ba94ecb613a84c10aa6a0cc15d7342daafc682 + dce_ast: c4790b38dfca72f6c2c4bff1152297013a5ce5e938a9404027836757ae571bd6 bytecode: ea26232ca66042daf7a856c208ce760f7355068171ed4cde5da403f375ab7d65 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/constants/group_gen.out b/tests/expectations/compiler/core/constants/group_gen.out index eb21d0d6cf..5f407ba130 100644 --- a/tests/expectations/compiler/core/constants/group_gen.out +++ b/tests/expectations/compiler/core/constants/group_gen.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0e6cdcc0120752c1f2e358be01cef22a14a2b9b6df6304df861bdde5e6615f9c - type_checked_symbol_table: 35993ce9d5debf3e76ec2a01bf9b64128807e3153ef9e4621606f4237e0818a0 - unrolled_symbol_table: 35993ce9d5debf3e76ec2a01bf9b64128807e3153ef9e4621606f4237e0818a0 - initial_ast: 2d3a643bd2d39f5776e33b1e757ca438401d128a3289a51fb467ce283b2e80ae - unrolled_ast: 2d3a643bd2d39f5776e33b1e757ca438401d128a3289a51fb467ce283b2e80ae - ssa_ast: d62fe51b8ff85daa579229dc6cc07d0bf48b402c65a8649936a70b8be2af4d72 - flattened_ast: f0118bce58aef6b5a44f8e4a206748a93b0d2c915001e8afc9e79df072824616 - destructured_ast: da829a3ef1d65ddce473c96ad59512956a116d1132f7ac7b625f9577820e4551 - inlined_ast: da829a3ef1d65ddce473c96ad59512956a116d1132f7ac7b625f9577820e4551 - dce_ast: da829a3ef1d65ddce473c96ad59512956a116d1132f7ac7b625f9577820e4551 + - initial_symbol_table: ea8f653da9c0fa724f7a242afdc9a7849ee961bb1a31b21abc3c5a5e8e3ccb33 + type_checked_symbol_table: 5eb7c6a123008d9ab6d3dca70c7709970ccb5df884ae433d6b069f2de7e1ba67 + unrolled_symbol_table: 5eb7c6a123008d9ab6d3dca70c7709970ccb5df884ae433d6b069f2de7e1ba67 + initial_ast: 0e8afe43640c078e9564e702da06b2b0c858bc98a3ba93983d0cf1314733005e + unrolled_ast: 0e8afe43640c078e9564e702da06b2b0c858bc98a3ba93983d0cf1314733005e + ssa_ast: b0cb17f8a73e5c756362cb40a129935521d873164491747d403ec96e51d94782 + flattened_ast: 4f94f53ab40cb09ca98ecc476eccd03e1e057f82b989a558a72978a77c485589 + destructured_ast: abab4fb40bca8e8fc97a59b45d51d9d1e34082fc2247c5ca1a71a2064655cbf6 + inlined_ast: abab4fb40bca8e8fc97a59b45d51d9d1e34082fc2247c5ca1a71a2064655cbf6 + dce_ast: abab4fb40bca8e8fc97a59b45d51d9d1e34082fc2247c5ca1a71a2064655cbf6 bytecode: cd542f776048c64f42b745a4be5ebe93fe7a8638c8d1692d3d774d491cadfe45 errors: "" warnings: "" diff --git a/tests/expectations/compiler/core/constants/group_gen_fail.out b/tests/expectations/compiler/core/constants/group_gen_fail.out index a738fda913..fc9c7a0abf 100644 --- a/tests/expectations/compiler/core/constants/group_gen_fail.out +++ b/tests/expectations/compiler/core/constants/group_gen_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372074]: group::GENERATOR is not a valid core constant.\n --> compiler-test:7:24\n |\n 7 | let a: group = group::GENERATOR;\n | ^^^^^\nError [ETYC0372073]: group::GENERATOR is not a valid associated constant.\n --> compiler-test:7:24\n |\n 7 | let a: group = group::GENERATOR;\n | ^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372064]: group::GENERATOR is not a valid core constant.\n --> compiler-test:7:24\n |\n 7 | let a: group = group::GENERATOR;\n | ^^^^^\nError [ETYC0372063]: group::GENERATOR is not a valid associated constant.\n --> compiler-test:7:24\n |\n 7 | let a: group = group::GENERATOR;\n | ^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/definition/define_multiple_variables_fail.out b/tests/expectations/compiler/definition/define_multiple_variables_fail.out index 85c78fb178..f4436ef67a 100644 --- a/tests/expectations/compiler/definition/define_multiple_variables_fail.out +++ b/tests/expectations/compiler/definition/define_multiple_variables_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372082]: Expected a tuple with 2 elements, found one with 3 elements\n --> compiler-test:5:13\n |\n 5 | let (a,b,c): (u8,u8) = (2u8,3u8);\n | ^^^^^^^\nError [ETYC0372082]: Expected a tuple with 3 elements, found one with 2 elements\n --> compiler-test:6:13\n |\n 6 | let (d,e): (u8,u8,u8) = (1u8,2u8,3u8);\n | ^^^^^\nError [ETYC0372003]: Expected type `(u8,u8,u8)` but type `u8` was found\n --> compiler-test:7:36\n |\n 7 | let (g,h,i): (u8,u8,u8) = (1u8);\n | ^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372072]: Expected a tuple with 2 elements, found one with 3 elements\n --> compiler-test:5:13\n |\n 5 | let (a,b,c): (u8,u8) = (2u8,3u8);\n | ^^^^^^^\nError [ETYC0372072]: Expected a tuple with 3 elements, found one with 2 elements\n --> compiler-test:6:13\n |\n 6 | let (d,e): (u8,u8,u8) = (1u8,2u8,3u8);\n | ^^^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `(u8,u8,u8)`\n --> compiler-test:7:36\n |\n 7 | let (g,h,i): (u8,u8,u8) = (1u8);\n | ^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/definition/out_of_order.out b/tests/expectations/compiler/definition/out_of_order.out index 8f1aaa2651..7b5360903c 100644 --- a/tests/expectations/compiler/definition/out_of_order.out +++ b/tests/expectations/compiler/definition/out_of_order.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 30486dc8d5f71038ce3a35dbc4072cd14efd11d083f34dad174db3354c70d91a - type_checked_symbol_table: d5f5bb7933eb7ac8509b56c192f29d8199973ff85cc285b183d602d74e8cb549 - unrolled_symbol_table: d5f5bb7933eb7ac8509b56c192f29d8199973ff85cc285b183d602d74e8cb549 - initial_ast: 3c940903056c3c30d644f18ceb1b2e2bd1334ac5ad5f50d40f61a79c4eb344d6 - unrolled_ast: 3c940903056c3c30d644f18ceb1b2e2bd1334ac5ad5f50d40f61a79c4eb344d6 - ssa_ast: e591502f02ae7ddf1aca686630c4732fc88ee409ffcda5602d61e7b25149d944 - flattened_ast: 5e190bb88ec6ff62976dca647806ddaf8a40b66182c2e062ca0ba2bdd1236306 - destructured_ast: 8316c83aa28bae7a29b57eef042ec8cb8d21a93aadc395aaab8fa1e19cd441a2 - inlined_ast: 8316c83aa28bae7a29b57eef042ec8cb8d21a93aadc395aaab8fa1e19cd441a2 - dce_ast: 8316c83aa28bae7a29b57eef042ec8cb8d21a93aadc395aaab8fa1e19cd441a2 + - initial_symbol_table: e7617a2d9bd76dc65121de2d81c3da1aa966eb5b6ea8df83407e69f69b144c71 + type_checked_symbol_table: 2f22f69e805807ac3b18b162481603206063b5dad6b2fbd38584df701624fb14 + unrolled_symbol_table: 2f22f69e805807ac3b18b162481603206063b5dad6b2fbd38584df701624fb14 + initial_ast: cf5a93ad00d6ae7f350d4bfa7ad941b7de97bec28909b230c63589a160ae81e9 + unrolled_ast: cf5a93ad00d6ae7f350d4bfa7ad941b7de97bec28909b230c63589a160ae81e9 + ssa_ast: 9df7f2325ef84c2465bab12a9ced3034ff23cd2c211ad9678cab9b75aa8f51bd + flattened_ast: d416ce1e1b13872dc456ea88b6a5dc7361002f091cce01d96601a3ed2990a251 + destructured_ast: 98ba5e0ddd65d087a9980c15e5184a871fd7fa452f7a6e13ae6d7321e89b89be + inlined_ast: 98ba5e0ddd65d087a9980c15e5184a871fd7fa452f7a6e13ae6d7321e89b89be + dce_ast: 98ba5e0ddd65d087a9980c15e5184a871fd7fa452f7a6e13ae6d7321e89b89be bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/definition/tuple_def_fail.out b/tests/expectations/compiler/definition/tuple_def_fail.out index 8e93220948..8ba333dbf7 100644 --- a/tests/expectations/compiler/definition/tuple_def_fail.out +++ b/tests/expectations/compiler/definition/tuple_def_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372061]: Tuples on the left-hand side of a `DefinitionStatement` can only contain identifiers.\n --> compiler-test:5:14\n |\n 5 | let (1u8+1u8,1u8+1u8): (u8,u8) = (1u8,2u8);\n | ^^^^^^^\nError [ETYC0372061]: Tuples on the left-hand side of a `DefinitionStatement` can only contain identifiers.\n --> compiler-test:5:22\n |\n 5 | let (1u8+1u8,1u8+1u8): (u8,u8) = (1u8,2u8);\n | ^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372054]: Tuples on the left-hand side of a `DefinitionStatement` can only contain identifiers.\n --> compiler-test:5:14\n |\n 5 | let (1u8+1u8,1u8+1u8): (u8,u8) = (1u8,2u8);\n | ^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out index ff087f274b..f45cbd5fb1 100644 --- a/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out +++ b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = b;\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = b;\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/examples/auction.out b/tests/expectations/compiler/examples/auction.out index c8bcb58eaa..36c95f0153 100644 --- a/tests/expectations/compiler/examples/auction.out +++ b/tests/expectations/compiler/examples/auction.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3594be65da1ecb9946068c4c7f93edac06ac696ad5007f7dbf981ea17fb6350f - type_checked_symbol_table: 712d27d9ee8cd11f8f5f0817aa4363055855dcaad1333d9a426a70cdb2746339 - unrolled_symbol_table: 712d27d9ee8cd11f8f5f0817aa4363055855dcaad1333d9a426a70cdb2746339 - initial_ast: 5c700b4ffce0ee2438c6b4f088dce5e3d358d39a233c221504183db7ce09022a - unrolled_ast: 5c700b4ffce0ee2438c6b4f088dce5e3d358d39a233c221504183db7ce09022a - ssa_ast: 817a5d91037f7139d941f0329886d4737eb4f2c4a0ea4e38c8e92d03c50b91a1 - flattened_ast: 6bdf19bea660922e9d7877c51530837cd38df3b9d39c70ab20a28777cf8bfd90 - destructured_ast: 6c6f52e8103042be17be34930580fcec2af4ace447de7526128f3e7a9bebb690 - inlined_ast: 6c6f52e8103042be17be34930580fcec2af4ace447de7526128f3e7a9bebb690 - dce_ast: 6c6f52e8103042be17be34930580fcec2af4ace447de7526128f3e7a9bebb690 + - initial_symbol_table: 98dd4675fc059c4a00806a7e7e516861a12b923c9d1562e0538600af3e178761 + type_checked_symbol_table: 3d77075c269d8bd6f4d93b3e74b56fe281949367ce30cea752c772df47fce03d + unrolled_symbol_table: 3d77075c269d8bd6f4d93b3e74b56fe281949367ce30cea752c772df47fce03d + initial_ast: 4c8b420b24847d96db3032eed861206fa0d3a0cc09139d20122ada68e7a18a9d + unrolled_ast: 4c8b420b24847d96db3032eed861206fa0d3a0cc09139d20122ada68e7a18a9d + ssa_ast: 531852ccd6723a903aa32b3ad59c7f85948a9f85a6d63459828225b72a1d9725 + flattened_ast: 88bdf522329c7c99e14f4769bc8d5b405d581b11a64b1b0437c87daafeb628c3 + destructured_ast: 3ba152716a26438ab67f37722d756469c115965c32581924a686e1f2af1a90f5 + inlined_ast: 3ba152716a26438ab67f37722d756469c115965c32581924a686e1f2af1a90f5 + dce_ast: 3ba152716a26438ab67f37722d756469c115965c32581924a686e1f2af1a90f5 bytecode: ae52309998de7e291d82e92418fdbf583b182ce12e710e844550132d8743380e errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/basic_bank.out b/tests/expectations/compiler/examples/basic_bank.out index 7fa754135e..8eeff0f81e 100644 --- a/tests/expectations/compiler/examples/basic_bank.out +++ b/tests/expectations/compiler/examples/basic_bank.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: eb6c840a7613c7a4d9febb66e6b1a1800187abdeae74d98a07fa4216c690801f - type_checked_symbol_table: 0a617d6dc9c55f97f74cc9d461ddad00b36b816f369b37be88a37c35a21dbf62 - unrolled_symbol_table: edb4f2fa0ec3aca0fdabe225115814c6eefa7be0cf91a213e607d406a39be4ec - initial_ast: 88083917f140198ec18d96f130e1e4ceef5d06eb3a698e6fd2b05dfb8a718906 - unrolled_ast: f815f3e95b3b9aa1412d2c3b1c1e3fa3b6b1a1295e7cbe73d0f206d1a08d669e - ssa_ast: 9ae4f53dea4d8851854ed682f1e23f1e21f7d6589d7b407c9aba93cfff3b277b - flattened_ast: f6d660d53e9669e68c2d5c12d24bc49fffd1056283f7c291de92065de74d1a8c - destructured_ast: fce75b2c4c8860ee956e6174f579af36d78394d08ff463201d00e2da7cdd0a94 - inlined_ast: 67a8c073a70ec5627e9920d6fe27ff411986abe2f50b4a011e171928e10f87e6 - dce_ast: 67a8c073a70ec5627e9920d6fe27ff411986abe2f50b4a011e171928e10f87e6 - bytecode: 799c84f9a28bcdd1cb72269b56baae0905a136fc2d041745fb7ae52c9958b24e + - initial_symbol_table: d247514d23689c751671c578520cd5f6d55c2fd211605f5e4f480e3bf016779d + type_checked_symbol_table: 217e662b777b05696c44ec0471f50a6b8812beb97429689493f6ce861babd532 + unrolled_symbol_table: 88517c37aac0036ce9d1ed1cf227f560a628acd32e51165e37cd60950dc2f6c3 + initial_ast: 8e5555b3a76deed3ce006ce144a4e38c056e727f369e66769f36b17f4f82d676 + unrolled_ast: b51d799f838e8823d6b182793d38ac794c70444ac421e8252a8fae6ffde2ef24 + ssa_ast: 6153ab111f87443b64df2d477bbc709939682c9737d695450419d2d0756a411c + flattened_ast: e94ed3c97338d782db860550cdeaa962d87f8e58dc5eed5aa5be02de8f26e637 + destructured_ast: 718a8eb4350c555918e40574027db80cd614e8b8659f5ce869f0cedc3f6f60cf + inlined_ast: ebd0d30b3d0cb29695a8a30b80b81f1d668b5f4790a00c790216f871d23eadb0 + dce_ast: ebd0d30b3d0cb29695a8a30b80b81f1d668b5f4790a00c790216f871d23eadb0 + bytecode: 0667a154749e9675b6d20ccc3d01e17a19b6f770629aef1640a1e14d375a6e5c errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/board.out b/tests/expectations/compiler/examples/board.out index 141cf2ecf9..6be98593ad 100644 --- a/tests/expectations/compiler/examples/board.out +++ b/tests/expectations/compiler/examples/board.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0609972aa2ca8244ca2c3bbb5e7a2ca52fc5b3adda433ee5fd0bd88d4fa6d421 - type_checked_symbol_table: 38a1d311ec0343cc9b6d7c78526fc4d38c5b02540b82efe69ba4ec2e718d3afd - unrolled_symbol_table: 38a1d311ec0343cc9b6d7c78526fc4d38c5b02540b82efe69ba4ec2e718d3afd - initial_ast: 038c4ca683aba38f08b68675d59f297f7126923556f8d5236cbc6193e2bacf43 - unrolled_ast: 7a31b5fb40d2684a38f79e8e89c2ec96e9819a46444af5813706b23931294bf9 - ssa_ast: 8b3c6ecca3971bdf25c103fa5cffddda9e920c96f091441bd1ab23c972c6c183 - flattened_ast: c06e4adf0c0cbe27ace4e5388ec3b5cf02baf02a3766262747ee44cb51dc2b16 - destructured_ast: 8e63445234e9eb53b5b7d2e92adbb148158a7acfd921fee0f7713efd521dd24d - inlined_ast: 8e63445234e9eb53b5b7d2e92adbb148158a7acfd921fee0f7713efd521dd24d - dce_ast: 8e63445234e9eb53b5b7d2e92adbb148158a7acfd921fee0f7713efd521dd24d + - initial_symbol_table: 51ed39873399902e0d5e7499b0d4caa13e5dd634ed7f5a1101e3bf50341d321e + type_checked_symbol_table: 8b0acece60ac0ae2292ba33e6aa3827775744a2612448067846729e041f16761 + unrolled_symbol_table: 8b0acece60ac0ae2292ba33e6aa3827775744a2612448067846729e041f16761 + initial_ast: ba33dfc6560fd7b14317438e5d1214fc16636f1ea9e22ceaa2fb841a549ec1a9 + unrolled_ast: 263380af80c67b75a25dd6d33cde3dad00abb54feba3fed478c797337d2bf5d8 + ssa_ast: 46cb61069d115728ea9c2f9ce69691e10bdaca6e27d450ad92c323c93f0b82ef + flattened_ast: a7d995d21e23551a2fe3e261e9419c649dbb8e8aeb1ad300556dfab0209ec98c + destructured_ast: db1635b3be04a9852bad4ee697f304fabf593f034d4a0702b12a0911bee7b9d3 + inlined_ast: db1635b3be04a9852bad4ee697f304fabf593f034d4a0702b12a0911bee7b9d3 + dce_ast: db1635b3be04a9852bad4ee697f304fabf593f034d4a0702b12a0911bee7b9d3 bytecode: aefb5e5a0f121ad8132981b01cc28fb487f749faf8306b7dc9d1b6c3400af180 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/bubblesort.out b/tests/expectations/compiler/examples/bubblesort.out index 10689b14f4..2ccb6f7dd0 100644 --- a/tests/expectations/compiler/examples/bubblesort.out +++ b/tests/expectations/compiler/examples/bubblesort.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 69c4c8c19a8951e64720ae5d3e2bdc8c058c957ec7110818730e32551d3e0457 - type_checked_symbol_table: 2c959954798929c53eb8eedb82e2148670f8a1d2516f088a328f1b2f80f8c5a0 - unrolled_symbol_table: 2c959954798929c53eb8eedb82e2148670f8a1d2516f088a328f1b2f80f8c5a0 - initial_ast: ef820400306bd4cf642e4abd1a31e90e8a00a50f569ef59c345c3c94cc5bcb84 - unrolled_ast: ef820400306bd4cf642e4abd1a31e90e8a00a50f569ef59c345c3c94cc5bcb84 - ssa_ast: 24f3f142667b18f963fb5fe3811ddfba61eae0ea420bb1c3dcd8a03c94ee2b5a - flattened_ast: e57e388d42cef4961873500430b0c5452a5d3b9e39ecf5a10d4166e45e5e6e6c - destructured_ast: 19ac04bab544655c1a53c2003c0db7bff55ecc471e28e430a0d89dac9828a325 - inlined_ast: 19ac04bab544655c1a53c2003c0db7bff55ecc471e28e430a0d89dac9828a325 - dce_ast: 19ac04bab544655c1a53c2003c0db7bff55ecc471e28e430a0d89dac9828a325 + - initial_symbol_table: a0749753b1345fb070230f31a9dcb5d47bfb43d52fbec004c7957199eba9f941 + type_checked_symbol_table: 51d3ee16b94ea891d7267e9551da41091a0620f24189a3c6f121e1e25d96696b + unrolled_symbol_table: 51d3ee16b94ea891d7267e9551da41091a0620f24189a3c6f121e1e25d96696b + initial_ast: 2e830de35c5b6e25a3f108920f876b09dd1115afba62aeb361e61d583b16fbdf + unrolled_ast: 2e830de35c5b6e25a3f108920f876b09dd1115afba62aeb361e61d583b16fbdf + ssa_ast: 58c8c69cd90a593c4333775ac0ef53db3d4f54ddb94ec36b20025e89fed6e676 + flattened_ast: 2daecccb2b450c5a6f852d37ed034e95485b2b21fb44ffb1e66c522b7f24a4b2 + destructured_ast: 6fcf1d4549d093fe1a7629e203dbbd6daf57335432bda09da1df92b2143bd73f + inlined_ast: 6fcf1d4549d093fe1a7629e203dbbd6daf57335432bda09da1df92b2143bd73f + dce_ast: 6fcf1d4549d093fe1a7629e203dbbd6daf57335432bda09da1df92b2143bd73f bytecode: 5adbf2387ed6209b64c8248741f74929f524771803ef803d5d9f9f8fb0d66ee7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/core.out b/tests/expectations/compiler/examples/core.out index 0b8672ec8c..70b4b426ea 100644 --- a/tests/expectations/compiler/examples/core.out +++ b/tests/expectations/compiler/examples/core.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 17d9465b131824de5771364a1b0fe537422a09d15a4c0dcb90fc99d6fd715883 - type_checked_symbol_table: 8dc851db7ec5665e3af3e6d2b1be4c81c6bf5e4b29cad44eaa2d6db9d9ab072f - unrolled_symbol_table: 8dc851db7ec5665e3af3e6d2b1be4c81c6bf5e4b29cad44eaa2d6db9d9ab072f - initial_ast: 077ba29e79b03f08b27661bea957c5665b3b93c7467e2cbda856b01aab8c10b3 - unrolled_ast: 077ba29e79b03f08b27661bea957c5665b3b93c7467e2cbda856b01aab8c10b3 - ssa_ast: f3dd68439f88c0ff0a52c18f416c2125c745c2e98ee969c79edc593e005f16a5 - flattened_ast: fa5a9f191547ad08cacac97da7431b307a5e4c42f279581cc19d29d78645a82f - destructured_ast: 66a87a551b468a1d7fd854deb5295a8174b540d562cff7ddc8a14f97246fe049 - inlined_ast: 66a87a551b468a1d7fd854deb5295a8174b540d562cff7ddc8a14f97246fe049 - dce_ast: 66a87a551b468a1d7fd854deb5295a8174b540d562cff7ddc8a14f97246fe049 + - initial_symbol_table: 7a8925587b0672decf15a5c5d0e2820c1fba651a63e5a80545e0c32c1659581d + type_checked_symbol_table: 74ce5353b758798f5b9f4904bfffdf45fcc47f15e3a82be78369e976f9c4c2fa + unrolled_symbol_table: 74ce5353b758798f5b9f4904bfffdf45fcc47f15e3a82be78369e976f9c4c2fa + initial_ast: 5a2366b017fa2a59e8398aafd74a3ccf9d80334d5f4c0291659f13f5f93f09a5 + unrolled_ast: 5a2366b017fa2a59e8398aafd74a3ccf9d80334d5f4c0291659f13f5f93f09a5 + ssa_ast: 7747cbfa8f4bd232ddca09e7773c6ca70b940616654662ebd008300073218a64 + flattened_ast: b4bf76b5ac02e32fa78a1852b455921b03f94160601c5f037e81d0947eb0ec5e + destructured_ast: a16ae67cc4e36bd91ea3968b2305d11c41caca9a9a3043f2f1027853691c68a6 + inlined_ast: a16ae67cc4e36bd91ea3968b2305d11c41caca9a9a3043f2f1027853691c68a6 + dce_ast: a16ae67cc4e36bd91ea3968b2305d11c41caca9a9a3043f2f1027853691c68a6 bytecode: b83219a26865ebfabc32ab427527151e26f2ca352b2dcc09e37069e38a102eb5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/fibonacci.out b/tests/expectations/compiler/examples/fibonacci.out index 3aff918164..385aad42f7 100644 --- a/tests/expectations/compiler/examples/fibonacci.out +++ b/tests/expectations/compiler/examples/fibonacci.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d028ab62e9e90d8e04e9ed2f7da45c96ec6bf01991c429bdc32266365a1dc05 - type_checked_symbol_table: b58e29e7b11b55ccf1a867233df1d97ba072af5c982fc45e5330e5f00a803a2a - unrolled_symbol_table: ba70649ef4a99f4485b7a576267e81fdb70a4df2c6667fd56bde151656496666 - initial_ast: 42399fd40ea746ba185e1ddd8ca594dbf5c1bb6e4c39bae1182fdc20829adc65 - unrolled_ast: 29f7e1cf45d6bcf561746f3b20793f6178a6196df6796ed19597570de193d6aa - ssa_ast: 1f9ff2f670467ba1a63b56d0a1c6629696771fbb7977f64a43e32cac371cefde - flattened_ast: 80e735864cadacde75f4aa7bbe3fac05660b3d4bd42bb45419198220a11814b3 - destructured_ast: 976d357e89ebbc69cfc58f0ea66ff8718b18b33053c31500c09cae320b8aa1c6 - inlined_ast: 915c7cf6ece99d930b27b6cf1ff73addcf874d436e85cedcab48940b4a5e7e52 - dce_ast: 84bd37c953b80439b608372c589b79e4a1ca6f8901ce50ebaf28e02aed328f01 + - initial_symbol_table: 217d4fab76e661696709990cea0d571f121dff83d52cda9c117f18b60b8e296a + type_checked_symbol_table: 028aff3398835d58c0b92743a9bdbac3a1965e86d3ab9e776c97ce821f488983 + unrolled_symbol_table: bfcdd5100be66775ab6330824361a0b4ca40543d83d2e7407b702ba36f62fd66 + initial_ast: 4fb15e748c8e72b1cb0aff12003f1bef0e7c6a50429cd9ed6d981753130399cc + unrolled_ast: 3cea6646d94708eaddfffbd836903c1da487706c15f685457a89d1a2fa2f0bc3 + ssa_ast: 7a468f52e546786fdbcbfd8ca2f369dbb95bb01c0eb5c8837aed6b763f23e1e4 + flattened_ast: d79222134e5dbd52ca42d18ecee091180dcd54218763b5680c7f26f603c285b6 + destructured_ast: 361953009aa43f926925b77c72342ef25b26effa62463694d303591140758298 + inlined_ast: c01c64fc4767d915d45608a67f7aff0177a8f02c487e484c1ff4a6c9e621642b + dce_ast: 8f029d4f8d5b3cfa5e247107a326148b16ee9e0e14722c9fc754ab48a6d6f044 bytecode: 3b90abd4333a964993382d9f47ba381cdd732a342f8b28828b99870c6dfafffc errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/groups.out b/tests/expectations/compiler/examples/groups.out index dcf7f8f941..23c730dfb5 100644 --- a/tests/expectations/compiler/examples/groups.out +++ b/tests/expectations/compiler/examples/groups.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 26ec7f6a9104027fbc65072acec9eb90d346b6a728e30b01183330e66db519d5 - type_checked_symbol_table: 4ab7daa16ca48a13dcceb6ff498772e0996a213b48cadd53e176f30712ce48cd - unrolled_symbol_table: 4ab7daa16ca48a13dcceb6ff498772e0996a213b48cadd53e176f30712ce48cd - initial_ast: a2a0b61fbc683f8b2b101aec466330e520ff4087d7fcddd084cb627940a4499e - unrolled_ast: a2a0b61fbc683f8b2b101aec466330e520ff4087d7fcddd084cb627940a4499e - ssa_ast: fad07269635be5bf09c22509adbb49e60eae691471f8ed5433619e0a9c7e5659 - flattened_ast: c0bf71269557a757270432421bccb85e76ce6af9449a37436cb511448e741292 - destructured_ast: 9e90e7ab5cbc4c2ed524de47e0d7e9c7fd4b5140543f94f0344c290331615299 - inlined_ast: 9e90e7ab5cbc4c2ed524de47e0d7e9c7fd4b5140543f94f0344c290331615299 - dce_ast: 9e90e7ab5cbc4c2ed524de47e0d7e9c7fd4b5140543f94f0344c290331615299 + - initial_symbol_table: 21d8404cf357158dffe3ae15650ad9d0ba4b571954574157e8f9e9e0561bc8f4 + type_checked_symbol_table: 2278895c7026f1872db500d64c2283d01e3b460c142a30f445bd81f7515c1896 + unrolled_symbol_table: 2278895c7026f1872db500d64c2283d01e3b460c142a30f445bd81f7515c1896 + initial_ast: 06d5fa5ddb76a168179b26158a65ba0809f85f04a152ddee5ba7b261dc9fcd58 + unrolled_ast: 06d5fa5ddb76a168179b26158a65ba0809f85f04a152ddee5ba7b261dc9fcd58 + ssa_ast: 3c381090f17e2f08ac58dbf1907f78cb8dcefa7cb6cdcb72c98705d42e011502 + flattened_ast: 9a70cb1310bed9cbe911f69e80e91e1fa2b771c267e365900293fbb00817f061 + destructured_ast: 282fac06d8562933704741703616f6cf725460f2c6481a8b121f7571acd482b1 + inlined_ast: 282fac06d8562933704741703616f6cf725460f2c6481a8b121f7571acd482b1 + dce_ast: 282fac06d8562933704741703616f6cf725460f2c6481a8b121f7571acd482b1 bytecode: 45196976b60c465ad542b11fe200c16d15959a4bf4d4a48f348aab42df3407ef errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/helloworld.out b/tests/expectations/compiler/examples/helloworld.out index a84a4368d1..1cbe4adce3 100644 --- a/tests/expectations/compiler/examples/helloworld.out +++ b/tests/expectations/compiler/examples/helloworld.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 350641f2e88e39c4f852062a7103bce82a65b327b892b2ba1e92fde1ac787eb1 - type_checked_symbol_table: 588fbe4872b21a9a463d0fd5b9ab9114e548975e8ff2ad5f033a8ae21c61d702 - unrolled_symbol_table: 588fbe4872b21a9a463d0fd5b9ab9114e548975e8ff2ad5f033a8ae21c61d702 - initial_ast: 62102daabdc95271cc0d71aa30d952f28c28c2c70cc522f524818703f357548e - unrolled_ast: 62102daabdc95271cc0d71aa30d952f28c28c2c70cc522f524818703f357548e - ssa_ast: c1ae622fa2f2fdc8552ee2723cafe291dab4f15ce19787435f054562f5839b6c - flattened_ast: add2fb763915e49189ef2151491c08551727bb3ff2c8baed42279f1d5325fd2d - destructured_ast: 44296e9211caf22e3e73a618db9d55a0bd7026d15b4892ca4c66eeac05182fec - inlined_ast: 44296e9211caf22e3e73a618db9d55a0bd7026d15b4892ca4c66eeac05182fec - dce_ast: 44296e9211caf22e3e73a618db9d55a0bd7026d15b4892ca4c66eeac05182fec + - initial_symbol_table: dc0a5087aa5685a18ab0ad366289b0f959aef2431e068065a54ad2c406f23c9d + type_checked_symbol_table: 1e652e69b6ec89cab778aa49b616629a05c858dc9789369d19f6e3d781f9087d + unrolled_symbol_table: 1e652e69b6ec89cab778aa49b616629a05c858dc9789369d19f6e3d781f9087d + initial_ast: 04dbaa69f4e3fcdfcd925c93288af43b0e17e9cf19c5a760b9e415a9045828e1 + unrolled_ast: 04dbaa69f4e3fcdfcd925c93288af43b0e17e9cf19c5a760b9e415a9045828e1 + ssa_ast: d706fadb42aa1f581cc2351686b09680fd23a303a7d0855d424e96d0ffa46d30 + flattened_ast: b68aa3edfaaaee5a12fcb6dd870cc5aba824c3fc0f9ae7539be8845a6c9e2b2a + destructured_ast: 77c4d1be9a1564da5001b4f43867e5a651379de2a43bb977376a2b94b311386d + inlined_ast: 77c4d1be9a1564da5001b4f43867e5a651379de2a43bb977376a2b94b311386d + dce_ast: 77c4d1be9a1564da5001b4f43867e5a651379de2a43bb977376a2b94b311386d bytecode: 774672545059d524d17b2709ca4d2f66dcc7fca13c4199ff8b5bf4a03d4d6c6a errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/interest.out b/tests/expectations/compiler/examples/interest.out index a25c494a94..b38723d6fe 100644 --- a/tests/expectations/compiler/examples/interest.out +++ b/tests/expectations/compiler/examples/interest.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 7e78a535aadebd5964c52acba57c2d0c4c001271063c0e669251dcb2b6166b74 - type_checked_symbol_table: 1fe0041c3e0874a1bef56212f627a9ba39b98fc5e81031c01e7c3882cb90931d - unrolled_symbol_table: 484b3f9d360c06179ab38b7308d4299528ecd3b62acbe97a08adf56f38188ee0 - initial_ast: d4a5ec27f4532c5c2fa1e218a59688a2c5d2e81de104aa0ffe509a5e7fff049a - unrolled_ast: 0953cd05d51be2a30f78c79066b894d2079bd68bf0e6e901cf345beb8e86d8b1 - ssa_ast: 501df3991960894f2ae10a50099e4481e3943eb2084a729d217f0697259412da - flattened_ast: c85a57b92944e368dc69a6a8a9ea408c3751c5ef6d3c9be4fa7a44b7c2555889 - destructured_ast: 4c331bb604678ace382c509b189a99b93d66e6e25d1a663b3b8418d68c00ba7b - inlined_ast: 4c331bb604678ace382c509b189a99b93d66e6e25d1a663b3b8418d68c00ba7b - dce_ast: 4c331bb604678ace382c509b189a99b93d66e6e25d1a663b3b8418d68c00ba7b + - initial_symbol_table: 2b9fd9a8fe2abac8fcacb9cdf96702654e34b01ef57d860b0ccd949d470c6fc3 + type_checked_symbol_table: 1d753f7f7a5c1baf24f64b735589b494323f0949951636e9622bbaaede68760f + unrolled_symbol_table: b2fa3e689b976e8810ba5c80be9799bda742d00595235374e17dce6cae72affd + initial_ast: 4378fa9edee82c753dc52aab314857ce361b6ad9a2fb39f6fed8f595593a6842 + unrolled_ast: 2569b1b594b3515a695e0d8bea43e1138be125334ed28f1a5568067b73f17e30 + ssa_ast: ca4e86d893c7d2e2b3001c627e4527b1b198085e922d1cf3020c0bf865a91dff + flattened_ast: abadde197ab5767f9e1c42630877908f4b1d65197f72474a11cc198722d401e4 + destructured_ast: 5a23e818bbf0ee36bba497d6655c74c07672a8e41c6378f90c48f2f1c46de443 + inlined_ast: 5a23e818bbf0ee36bba497d6655c74c07672a8e41c6378f90c48f2f1c46de443 + dce_ast: 5a23e818bbf0ee36bba497d6655c74c07672a8e41c6378f90c48f2f1c46de443 bytecode: 1425e7c87a38072c342ef9505090c0b039663ac1c5ce41632f999b376c81d348 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/lottery.out b/tests/expectations/compiler/examples/lottery.out index 40a4687e8a..241e00253d 100644 --- a/tests/expectations/compiler/examples/lottery.out +++ b/tests/expectations/compiler/examples/lottery.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3ab1aeab0596ee7c4496d7222977da942ab9555685138d4289799221f16a3d19 - type_checked_symbol_table: f3b78a355c42b87f6215bc53c8e9b4a8b09ce6a54b09e2c8fb1e599107639efe - unrolled_symbol_table: f3b78a355c42b87f6215bc53c8e9b4a8b09ce6a54b09e2c8fb1e599107639efe - initial_ast: 30768e06975a921e4a290a4540e70a65a9727ba9211d9e7b20f5eb18e8759bc7 - unrolled_ast: 30768e06975a921e4a290a4540e70a65a9727ba9211d9e7b20f5eb18e8759bc7 - ssa_ast: b00c1589c8623a22e0598d2301f0b0959276af2816b8b5fb06b0e0aa45d50a64 - flattened_ast: 1cea6ecdb76f314c37b3f5012fcdfd433d38d1feb45ee1ea69ebd733c49a38d9 - destructured_ast: 5f891559002de649d5c1b7cfc1e29973bb42f340396ca11c55e473f15b50e6c5 - inlined_ast: 5f891559002de649d5c1b7cfc1e29973bb42f340396ca11c55e473f15b50e6c5 - dce_ast: 5f891559002de649d5c1b7cfc1e29973bb42f340396ca11c55e473f15b50e6c5 - bytecode: ec9d10d78356538cf9f94bc46c20c33001a05100906259e217eeea2cfd0c4a66 + - initial_symbol_table: de199bdd9ae2c78e94fa54ed8e8baf87c9537e41de5026ab0d14f53b83aacdb0 + type_checked_symbol_table: eb4dd79e5f9dc3a1743543cf2115709402096e611f33fa03ea993cdef8bc2ca7 + unrolled_symbol_table: eb4dd79e5f9dc3a1743543cf2115709402096e611f33fa03ea993cdef8bc2ca7 + initial_ast: 2695f0de73b55b73073273d14447862bc29fecd03a0575dd737fba36efdbc3f2 + unrolled_ast: 2695f0de73b55b73073273d14447862bc29fecd03a0575dd737fba36efdbc3f2 + ssa_ast: cc2e32af3cbc042860462af631ac6cfd8acc98bf3bd614ee698d1245785a42ed + flattened_ast: 940a51451829f564cf21c37e5f3c94e5fb91db86879f1df8eb088ef99f5a3676 + destructured_ast: a1b69f45733bb295963985899cf6b2ac8504828fac25fd558141a1d6f6a98dcd + inlined_ast: ed731d9a86502b86b34384acb5656720340dc509fb93cae09495405d32a9b8ef + dce_ast: ed731d9a86502b86b34384acb5656720340dc509fb93cae09495405d32a9b8ef + bytecode: 5052b2b09a1510935d9fd84a968f73f9a57ba0a545d909951a4452b68e065ea4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/message.out b/tests/expectations/compiler/examples/message.out index 12fab55682..4f1110339e 100644 --- a/tests/expectations/compiler/examples/message.out +++ b/tests/expectations/compiler/examples/message.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 07ec93ae3e007a1f27ecfe5a106e3ccf13e4d563ed8e89bfd7a1887f83d09506 - type_checked_symbol_table: 46b7f6075d4a9b1c1a0fa048aec02dca7560e02374afd144b61a7a3885f4f624 - unrolled_symbol_table: 46b7f6075d4a9b1c1a0fa048aec02dca7560e02374afd144b61a7a3885f4f624 - initial_ast: a63fe71ec5418398b66c566d24531e602491752eaf6c04e6172adfe4d2f293ce - unrolled_ast: a63fe71ec5418398b66c566d24531e602491752eaf6c04e6172adfe4d2f293ce - ssa_ast: f358867e6dfcc91bec86e2dd791fee05d70ae53931f980e2348d021719ec09fa - flattened_ast: 3a011159ea09f9788fed1a467dcf27645500343ee4b43b6590ae1e900429aadb - destructured_ast: 9fb1f6513718bd21d367101384de7f9f8807d4c5c9b34e8720b64453a6e076ad - inlined_ast: 9fb1f6513718bd21d367101384de7f9f8807d4c5c9b34e8720b64453a6e076ad - dce_ast: 9fb1f6513718bd21d367101384de7f9f8807d4c5c9b34e8720b64453a6e076ad + - initial_symbol_table: c005d89f0d34b966411ae3569bc5b1ee5cb7e3d8ce343c50f80f5f75a83e9884 + type_checked_symbol_table: 5e9013cfb734f23bff090d9c22dae29e0c89808d64f1c8ac2be907955e211eb0 + unrolled_symbol_table: 5e9013cfb734f23bff090d9c22dae29e0c89808d64f1c8ac2be907955e211eb0 + initial_ast: 6d16c88ca8f785c360503604ccf10f57eae66fbddfc1b91e56dd51aab6184e15 + unrolled_ast: 6d16c88ca8f785c360503604ccf10f57eae66fbddfc1b91e56dd51aab6184e15 + ssa_ast: c0815de4bc82448bf79c979786241fffbcb3d84878c6ae2d77a3e9ddf9cf2570 + flattened_ast: cd02c846d739a70d5390d7fc40c52317638a62ad2546352c1b1945ee44aa2995 + destructured_ast: df40cf1e4f3c9a684f69814b5fc6ab314bd3a208dd9b211022e376f1f2fd4aa3 + inlined_ast: df40cf1e4f3c9a684f69814b5fc6ab314bd3a208dd9b211022e376f1f2fd4aa3 + dce_ast: df40cf1e4f3c9a684f69814b5fc6ab314bd3a208dd9b211022e376f1f2fd4aa3 bytecode: ecb647f74261a2c1212405edf2024aed89ab5e3c19353127dacdc9e31ccaf0f1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/move.out b/tests/expectations/compiler/examples/move.out index 23ac2b4841..0473383df8 100644 --- a/tests/expectations/compiler/examples/move.out +++ b/tests/expectations/compiler/examples/move.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f7e2542cd3b1b42bf44757a92985513287101cd5060e227a96071f7ca923bb5a - type_checked_symbol_table: 7e94015e4bb4493aaa9f99862aa7af33534de542ef534c7da2350a3b96440099 - unrolled_symbol_table: 7e94015e4bb4493aaa9f99862aa7af33534de542ef534c7da2350a3b96440099 - initial_ast: 7a70d8606129aa7751e7d0696db164ebd815054a0f50c081a104888229931c32 - unrolled_ast: beecc920ed047f742dcce2d89974effb9dd00f0369a52496ae45f39dbde86b7f - ssa_ast: f521668bc40fb108c2a2c4a0be0110f2c47d05be3020ede5c323c20c5960b544 - flattened_ast: fb20a10300e437b65a0719d60a2fd8d1d3e7c55001f98bc5672cc01ece5cfd1d - destructured_ast: dd420a65d5a8d92525bb500f9054dbad0372cb2446731ca12d9c9fd583bb1f01 - inlined_ast: dd420a65d5a8d92525bb500f9054dbad0372cb2446731ca12d9c9fd583bb1f01 - dce_ast: dd420a65d5a8d92525bb500f9054dbad0372cb2446731ca12d9c9fd583bb1f01 + - initial_symbol_table: a8b15c202ae508824fa9b19c9a7b2b267d80e5e7240baee602feef8d068d9350 + type_checked_symbol_table: 131249c996a358b1061cc6d3ae7c728988d0dace3ce18e33a7fb71e7443d4e6c + unrolled_symbol_table: 131249c996a358b1061cc6d3ae7c728988d0dace3ce18e33a7fb71e7443d4e6c + initial_ast: 5936c0f45e24a7575c82b4176af6c455f3c09ffb2d13f0993b38731b0e84adbb + unrolled_ast: 16050fa1cf390dc33abd826d93dc33c5ef4401c6dcf5fa65a48a73907c5e0b6b + ssa_ast: d099aff75d9a2b5df37a39ae94091b547c10e14f1c8912ce8e82eac0a9e9e725 + flattened_ast: 5f2604cc4c5778b37f14e8d831675cfcea45ec941462a66a783d4bda27aa50eb + destructured_ast: 8d0bae15ebe582ff420515123ef7a792f18bef31132970b49a83e853095ee8be + inlined_ast: 8d0bae15ebe582ff420515123ef7a792f18bef31132970b49a83e853095ee8be + dce_ast: 8d0bae15ebe582ff420515123ef7a792f18bef31132970b49a83e853095ee8be bytecode: 6ea0a455c7cc5f2bd868d5780a7735c599fb95c99157997d156dce175d6c6e94 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzdebruijn.out b/tests/expectations/compiler/examples/ntzdebruijn.out index cbc7d66bf8..2ca9393fda 100644 --- a/tests/expectations/compiler/examples/ntzdebruijn.out +++ b/tests/expectations/compiler/examples/ntzdebruijn.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f66fdd5d9415c2085920fd03d0d9e65ced6dbf252b025c03ab7ba9138a42cf5d - type_checked_symbol_table: f155c82d3c78b75380629905cca1253a9997d9b208fed4c22511f507ad261e62 - unrolled_symbol_table: f155c82d3c78b75380629905cca1253a9997d9b208fed4c22511f507ad261e62 - initial_ast: 01e1d992757e8021efff1392615c5aeb14dbf672ee4b3c642667674697421189 - unrolled_ast: 01e1d992757e8021efff1392615c5aeb14dbf672ee4b3c642667674697421189 - ssa_ast: 32342755adc17575f82dbe683d8881caf9ac6fdadb99775981c3bfd22e62c2d2 - flattened_ast: 9d75fe7f850960a266b8e0e8c4162a04bd485e4e67f816401522dc8f85322d4a - destructured_ast: 7879722315a7a432bf9923298e2f5bde74dd48e3f98e3bf8d5faa6e292547f51 - inlined_ast: ef903274b48df74f07f5e872ffeab9b9d7515bc5bd97a43bc8f09894abceaf81 - dce_ast: ef903274b48df74f07f5e872ffeab9b9d7515bc5bd97a43bc8f09894abceaf81 + - initial_symbol_table: 544438bd87fd1515b44517a6ce669387437ac603a2f2361ffbdee7c7c9d7d0d7 + type_checked_symbol_table: 5d1b33880ffe623138ef2573cced174bcbe2d88e7412736612ca2b55cd5a54ef + unrolled_symbol_table: 5d1b33880ffe623138ef2573cced174bcbe2d88e7412736612ca2b55cd5a54ef + initial_ast: e793791d5a4b1b1bb21ccaae4412f2b778814d528cfe9f4c2d1465bdb3beb77f + unrolled_ast: e793791d5a4b1b1bb21ccaae4412f2b778814d528cfe9f4c2d1465bdb3beb77f + ssa_ast: 650011c335255ed398bc951fe157dd85386fafe9923ee7994f19783a2adcb8a5 + flattened_ast: 198b5c8189538fd986f637f3e7309f6921837d7fa9e42f80fdf4ec2e925fbd00 + destructured_ast: 37866657a1a29a46c6e537d1907eabf4f243559b18dcf0e130a071334258ac9d + inlined_ast: d562d3ad9cdd93fb002f68b571c82db07d2b1f32b165abb9584379045a6da72a + dce_ast: d562d3ad9cdd93fb002f68b571c82db07d2b1f32b165abb9584379045a6da72a bytecode: ecf52756cc54e0e43ccfeb4db8369ff820a309fd7061bfaad5dcf535b58782b3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzgaudet.out b/tests/expectations/compiler/examples/ntzgaudet.out index ffdf8407bf..b62305bd41 100644 --- a/tests/expectations/compiler/examples/ntzgaudet.out +++ b/tests/expectations/compiler/examples/ntzgaudet.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9672e8f40fd630bd5c158b48e7126a0edc5dd409f15f2e1b24fa5c33ef2243a5 - type_checked_symbol_table: 84820792dc61c430d551c2ddfcdd7396c7a9fb3c2cae41f62f1647ed355634fd - unrolled_symbol_table: 84820792dc61c430d551c2ddfcdd7396c7a9fb3c2cae41f62f1647ed355634fd - initial_ast: 2d73285fdb3eb49bf6206eb0637758de16e0a798fcbae3ec90ad68bbf05a302d - unrolled_ast: 2d73285fdb3eb49bf6206eb0637758de16e0a798fcbae3ec90ad68bbf05a302d - ssa_ast: 0a4f7a5d4dde4fbacb0ab156bae568271bd4a99f8bf64dd588bb9e2f9162e02c - flattened_ast: 11fe80e269313408e4d294f93298e161b681b87dfc5b6adfd1301567dcee331e - destructured_ast: fdfd084afda3984ab6e0ac728221fcba7793391714efa961289dd00dd2146da2 - inlined_ast: fdfd084afda3984ab6e0ac728221fcba7793391714efa961289dd00dd2146da2 - dce_ast: fdfd084afda3984ab6e0ac728221fcba7793391714efa961289dd00dd2146da2 + - initial_symbol_table: 71f2ff5cd5e9f13d391d8c2e941b1c889fabdd27f538ba2a5c7ed918228ab154 + type_checked_symbol_table: ab9c6fd9fc5f959c94624afc6b7fc1efe2bf8c52993e87f087a6b2b42a9fa279 + unrolled_symbol_table: ab9c6fd9fc5f959c94624afc6b7fc1efe2bf8c52993e87f087a6b2b42a9fa279 + initial_ast: f537b4b2ece137533a09e34a5cde0a0866c357952f0df9745075ba8a508ed0c1 + unrolled_ast: f537b4b2ece137533a09e34a5cde0a0866c357952f0df9745075ba8a508ed0c1 + ssa_ast: ca175ae56ea6a4f87cb538a406ddd66d340bd756302bc76ed6bc59accbaa3375 + flattened_ast: d78ade6b08805fef8f5a800b0112b9b89741c22a0daa166ac8f31e9117b5ef40 + destructured_ast: 62e44a09733128d91db70411d1f171b61b9e4f0e9f83e8524ff514c0d2eae8fc + inlined_ast: 62e44a09733128d91db70411d1f171b61b9e4f0e9f83e8524ff514c0d2eae8fc + dce_ast: 62e44a09733128d91db70411d1f171b61b9e4f0e9f83e8524ff514c0d2eae8fc bytecode: 5fd0ec18707f7e6af93b8eacd72590b4bfd68559dba48ab95574a0b44a0b3313 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzloops.out b/tests/expectations/compiler/examples/ntzloops.out index db0f7e42e2..1b1398d5a3 100644 --- a/tests/expectations/compiler/examples/ntzloops.out +++ b/tests/expectations/compiler/examples/ntzloops.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1b570154ef46491cd3bd8054cf37b975dd3d5e8d0f2b09d21aa7ed8c4f912f06 - type_checked_symbol_table: aec15d1a0b0c3760c22d142c5708fa404314a2f63cf22f952ea85e7ece788cdf - unrolled_symbol_table: 359030cd1e2e464469e521feb546883978da22af9ecb862a984beec4f30efa4b - initial_ast: 25a8bfce0a7792ac91d7fd6ee8cc6b2a63440a18f33bc8cc7cf8cd22153d6c72 - unrolled_ast: 9d6d5516c204fd510476e28c205b9e703b16f0f89ff6e2baf1bfbd3544934694 - ssa_ast: 0f3b9df9fedef190c4df234f609700b9783517419ae83086dee2b92f502b7926 - flattened_ast: 92f19bb3ee9b970ce5f40a4dc51f5af5a475d77e1f11a714966c2a6cd89fd588 - destructured_ast: 5708b52a0fb04a318a42920412f789ea6ca6ea7c05af56f4da4ea8d3e3838ec6 - inlined_ast: 5708b52a0fb04a318a42920412f789ea6ca6ea7c05af56f4da4ea8d3e3838ec6 - dce_ast: d275e9950b5648e2cddd21ed2574a175c67a7ad68cd358abac50ad1aee21d54c + - initial_symbol_table: 6a20b73c0e5e4700b654ef12f0a5676c0ccb166f611e870bf97dfcd18687bb1c + type_checked_symbol_table: 4e47e6b55595a0ebe8d5a68d40880ba2a09e859b3a616ab12ffd4101e155bb75 + unrolled_symbol_table: b58f633ffc91f50c37ffc34dc46151b6c61ffff60a89229f9736dc0424c5ac8e + initial_ast: fe59aa722fcc92ec9b48bff0df5ea474f1fc03a82fa752c0a81522aab2669dfa + unrolled_ast: fdbfecf4b9e994d951abd0e136eb5514b242ef2f17a182f6a51089520b5562cb + ssa_ast: 7545307c7da47b7ee1ed23fd1db0d7bef20bc10760a18f16e8b568ec09cb7153 + flattened_ast: 96eb41032b7311825a5da85bc67496351a0b328ac1620c247f21f9bfe73d11af + destructured_ast: 57d59cc5a2d5bee05f7c671f3676b1789cbf24ffe64741a2839c9effaf732aa8 + inlined_ast: 57d59cc5a2d5bee05f7c671f3676b1789cbf24ffe64741a2839c9effaf732aa8 + dce_ast: 2fed074313f55a8c4133750b2f7b875fd74daed31ed97ff9f26f185251b4a815 bytecode: cca4637103b23653c5a99744693068186bc6d89052df73b09c1601c7f85f0eed errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzmasks.out b/tests/expectations/compiler/examples/ntzmasks.out index 442b7b83ed..54ba7e62c5 100644 --- a/tests/expectations/compiler/examples/ntzmasks.out +++ b/tests/expectations/compiler/examples/ntzmasks.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1b570154ef46491cd3bd8054cf37b975dd3d5e8d0f2b09d21aa7ed8c4f912f06 - type_checked_symbol_table: 615be310cd69f09140020c5c313bc333abceb04d169029a72ae3fc8d17408aea - unrolled_symbol_table: 615be310cd69f09140020c5c313bc333abceb04d169029a72ae3fc8d17408aea - initial_ast: 52529251a649a9e96d9cd88c781d7684a4559542dc03b3ea23d8914089969f94 - unrolled_ast: 52529251a649a9e96d9cd88c781d7684a4559542dc03b3ea23d8914089969f94 - ssa_ast: c75a76fa3c8e6d463dd1a9e669b3ebaeea018bac8fa728d82486f214cb4baa06 - flattened_ast: a033f85fbd546b438ef15bd46de3f51726436f5f582f7ab63c4bb305a8e66d3d - destructured_ast: d7ac7582ff1d9b9e1513e9e356fe91891f338e242c3bcc53839386efeb98f898 - inlined_ast: d7ac7582ff1d9b9e1513e9e356fe91891f338e242c3bcc53839386efeb98f898 - dce_ast: d7ac7582ff1d9b9e1513e9e356fe91891f338e242c3bcc53839386efeb98f898 + - initial_symbol_table: 6a20b73c0e5e4700b654ef12f0a5676c0ccb166f611e870bf97dfcd18687bb1c + type_checked_symbol_table: 937bb58735048f50cd5510a3c2ce46a9a2054eebea55d20a2aa10ced96ae0faf + unrolled_symbol_table: 937bb58735048f50cd5510a3c2ce46a9a2054eebea55d20a2aa10ced96ae0faf + initial_ast: a2c79f2889191d5dee011d7f9e2b5739ddbcf1e520f54030242c4b4adaf7a4a6 + unrolled_ast: a2c79f2889191d5dee011d7f9e2b5739ddbcf1e520f54030242c4b4adaf7a4a6 + ssa_ast: 8dcd573b4595ed46c9c6923cb71160c0e500874e15146510cdf8b2638a6de2c3 + flattened_ast: 546b67d2670deb19e21de77d9ac29b0d732c09971bc62bd5c693cdb1be493e4f + destructured_ast: 7b1128656074beeb3667bcdb7f7febee3c036a8b5d43764beb1f7c2899656c04 + inlined_ast: 7b1128656074beeb3667bcdb7f7febee3c036a8b5d43764beb1f7c2899656c04 + dce_ast: 7b1128656074beeb3667bcdb7f7febee3c036a8b5d43764beb1f7c2899656c04 bytecode: 9aba49a906bfc3f931cb314bd970e04dc8b74966ec2888efecc4f0f8795dc368 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzreisers.out b/tests/expectations/compiler/examples/ntzreisers.out index 19ec0db82c..7dfeaa80c7 100644 --- a/tests/expectations/compiler/examples/ntzreisers.out +++ b/tests/expectations/compiler/examples/ntzreisers.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2846d6cc8780e5541dc52709516760b0032bc76c9256689d6fa74fcaef0e40ed - type_checked_symbol_table: dd979a8ad2a565c2b5dfd6b7e16bd0e1da9bacb1197aa73536d82fc15d8253cb - unrolled_symbol_table: dd979a8ad2a565c2b5dfd6b7e16bd0e1da9bacb1197aa73536d82fc15d8253cb - initial_ast: 328aa06e8b639404907d21fd5255d951e866a724db89273c1f2e9d1668981839 - unrolled_ast: 328aa06e8b639404907d21fd5255d951e866a724db89273c1f2e9d1668981839 - ssa_ast: a7bbb7a016c3f78758d70fa0b80bad2f132c6f7ae19705d8dd024bbdbd4d4740 - flattened_ast: 10b731a2241313079a3410e425970ced98f3fc9aa4eb66e7285f05b162c37eec - destructured_ast: 73171458e3da09ca6fa47bf5c51ccd76d8bea0747642a9b7394623d7781d24bf - inlined_ast: b1dade0eaf6b843d9cf23bc4c408a1d4be75d1a6bd49d09fbd939a1fe02d1890 - dce_ast: b1dade0eaf6b843d9cf23bc4c408a1d4be75d1a6bd49d09fbd939a1fe02d1890 + - initial_symbol_table: 3e8a854b6e8182bafdf1549a1295ec7f3f6d53cdac8617d7dc6948718cdefdfe + type_checked_symbol_table: 79a14ba5d60a10fdfd1ee4db3326453709462c5b5d2293e2f4a1991ac856ae5c + unrolled_symbol_table: 79a14ba5d60a10fdfd1ee4db3326453709462c5b5d2293e2f4a1991ac856ae5c + initial_ast: 36e487a72849e7ea5bf9cbc59f4b32869446d088acaef18e4061089806ef38f6 + unrolled_ast: 36e487a72849e7ea5bf9cbc59f4b32869446d088acaef18e4061089806ef38f6 + ssa_ast: 7bb05c3e16ef5cc34962489166033a2d2106cc716e8f8b34ed5900c60c1c7905 + flattened_ast: 9bdbcf61f6795c3dc7ba1c783ae74dd3cdb58508a2d388c79bbd1d507541a67b + destructured_ast: dddf9b31f1bc9715425d6552371d50976bb6e4b59ca04c8b135af55a8c6ae2fe + inlined_ast: 29cc579dabc0c3fe5c86e8a60bcb9302fd79fc2006b220c3d127c351acd856c5 + dce_ast: 29cc579dabc0c3fe5c86e8a60bcb9302fd79fc2006b220c3d127c351acd856c5 bytecode: 38e21ed198874357b0a83d451d9498a59838a7f5ad979d372a405b5e6e5a4e17 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzsearchtree.out b/tests/expectations/compiler/examples/ntzsearchtree.out index 53bdabe58e..9907733ec6 100644 --- a/tests/expectations/compiler/examples/ntzsearchtree.out +++ b/tests/expectations/compiler/examples/ntzsearchtree.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c20a0219726883d91e651747e032454a6df25fe5b60ef0a49a98d72f597feb59 - type_checked_symbol_table: 10b7ac826acfe3133da96257404fa3f6d04d8b15cb8f061a8c34523d9f6df2c9 - unrolled_symbol_table: 10b7ac826acfe3133da96257404fa3f6d04d8b15cb8f061a8c34523d9f6df2c9 - initial_ast: 151382f7a4ca5e55f5010774212ef840e43e998e60a8ce00fa598087d9395524 - unrolled_ast: 151382f7a4ca5e55f5010774212ef840e43e998e60a8ce00fa598087d9395524 - ssa_ast: 798a0fa6573eb17bf16feac7ae1176daea0b7a6e3c674b23bfadae5b088ecb23 - flattened_ast: 8c1404c3e644892ef078f733bf8bbcaea9b2a43916526cda902d7764edc5442d - destructured_ast: eb8dd57ae105cb55984d3c96b562307f5fa9d94a659dad28e0a4a4dbea29fd99 - inlined_ast: eb8dd57ae105cb55984d3c96b562307f5fa9d94a659dad28e0a4a4dbea29fd99 - dce_ast: eb8dd57ae105cb55984d3c96b562307f5fa9d94a659dad28e0a4a4dbea29fd99 + - initial_symbol_table: 58872c24d4d8343fb7c4542e952a67fdab7c1a5ced6b046220748edebfcb3acc + type_checked_symbol_table: f91bf916b23a4431f7166384cef696a54fa659816a855d552ec67cfd94808d92 + unrolled_symbol_table: f91bf916b23a4431f7166384cef696a54fa659816a855d552ec67cfd94808d92 + initial_ast: b6df3167bbfb96942f1e790d1e7454e453b59ff8cc749d2d36defacd62674ac4 + unrolled_ast: b6df3167bbfb96942f1e790d1e7454e453b59ff8cc749d2d36defacd62674ac4 + ssa_ast: 822c20bd32ede5317e38758754d13927703c87cd6be8ac17938386b7bd3e7260 + flattened_ast: 8334b425fed2251bb047036374395b51e2742c00e7a09d11914f6e7dafb8e57d + destructured_ast: b7c2a4397d886bd73c0c779181892899e693f7b42a1311d0be8cb39f5bca4ad2 + inlined_ast: b7c2a4397d886bd73c0c779181892899e693f7b42a1311d0be8cb39f5bca4ad2 + dce_ast: b7c2a4397d886bd73c0c779181892899e693f7b42a1311d0be8cb39f5bca4ad2 bytecode: 3516104be238849345d986d90ff7aa2bc01fe31609f34330e279eef25edb7752 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/ntzsmallvals.out b/tests/expectations/compiler/examples/ntzsmallvals.out index 8d3777dd0e..d7b01e24e9 100644 --- a/tests/expectations/compiler/examples/ntzsmallvals.out +++ b/tests/expectations/compiler/examples/ntzsmallvals.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 5cdb409ab31fff22f5fb6df71523461ac1e2ccde9e73775bbd57a31b99a00d53 - type_checked_symbol_table: 64ffc7ca69603066b04942dd367b44ed9f29250acb09b43740b8cfc121fd28aa - unrolled_symbol_table: 64ffc7ca69603066b04942dd367b44ed9f29250acb09b43740b8cfc121fd28aa - initial_ast: ffb07dc601d98e38716066a776bf2703a742b6bf7734834abac00a9624d9e62d - unrolled_ast: ffb07dc601d98e38716066a776bf2703a742b6bf7734834abac00a9624d9e62d - ssa_ast: e8e870a2dea5812162df876aa18d3c0a15a7776c4adbe217369079558d22df10 - flattened_ast: 06389b4bff871a29dd85e2e0de4aef5d53982b754d99cada8b724e7e58055676 - destructured_ast: 43c713564c45ba5eea4f3e2abeb3266b261e512e9f8b4c6fe150888e7baa2146 - inlined_ast: 43c713564c45ba5eea4f3e2abeb3266b261e512e9f8b4c6fe150888e7baa2146 - dce_ast: 43c713564c45ba5eea4f3e2abeb3266b261e512e9f8b4c6fe150888e7baa2146 + - initial_symbol_table: abdd44de4a8859f6d06dfc3dd5f0f6cae511ea9030d304f5691843a4c1a89778 + type_checked_symbol_table: 1c679728b53fbf74dcecf29f20384612b4dae896cb326ae3481b70b2ed093f5f + unrolled_symbol_table: 1c679728b53fbf74dcecf29f20384612b4dae896cb326ae3481b70b2ed093f5f + initial_ast: 7787d083e77a67ad430ef82175c78cfc6b95f8b21b2c70e5ded68734c0e28d8f + unrolled_ast: 7787d083e77a67ad430ef82175c78cfc6b95f8b21b2c70e5ded68734c0e28d8f + ssa_ast: 57ab1acce6a1c7a7cdae1ceea62760bbab9038011b34b4f09db45d6f3b4da11d + flattened_ast: 099237c37ee33b81890bea707c49811c8396c1511a6fd88693cadeef91aac056 + destructured_ast: 9eb0c91881beac12d3395b2b23d58e28dd6485d8a2fd8afefe4601ac105df0ca + inlined_ast: 9eb0c91881beac12d3395b2b23d58e28dd6485d8a2fd8afefe4601ac105df0ca + dce_ast: 9eb0c91881beac12d3395b2b23d58e28dd6485d8a2fd8afefe4601ac105df0ca bytecode: 447867c0cff55fb14313d71ddd48f1a8fbee509cd357304c12fba830841dcd09 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/simple_token.out b/tests/expectations/compiler/examples/simple_token.out index 8634004e89..2324c21788 100644 --- a/tests/expectations/compiler/examples/simple_token.out +++ b/tests/expectations/compiler/examples/simple_token.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dcfad877195c7834ba34589ee49182b61330433609ef03d6bac4c64b0d35614f - type_checked_symbol_table: ca312aee810a010e4e1187420df9ca36f431a2c38eeffc7c28b11618e424f0b3 - unrolled_symbol_table: ca312aee810a010e4e1187420df9ca36f431a2c38eeffc7c28b11618e424f0b3 - initial_ast: 996715b30bf16492b130d1e9d86645808014bd0a220193d640b867914ea65bc6 - unrolled_ast: 996715b30bf16492b130d1e9d86645808014bd0a220193d640b867914ea65bc6 - ssa_ast: 02c803d66aabe51594ef4b22ad354122e40a0405e11e79c9295701e7c10aa0be - flattened_ast: c6549e8d2a5ae9aa308e2b185b32e6fce7e06ae5a7dec01a1e093131f5dcd5b1 - destructured_ast: e02041d8cbea5fd0168d18054cebc1a74a53226269da28862ef87e4e859dde14 - inlined_ast: e02041d8cbea5fd0168d18054cebc1a74a53226269da28862ef87e4e859dde14 - dce_ast: e02041d8cbea5fd0168d18054cebc1a74a53226269da28862ef87e4e859dde14 + - initial_symbol_table: c5942bb6ccca0ae5b2952eb371f4673b4c9a41eb0e25f198783a4b131c3fcc97 + type_checked_symbol_table: dddec6f08b08224d6bc516957b3d4749fb3e805a29936ddaea4d10c0272b5567 + unrolled_symbol_table: dddec6f08b08224d6bc516957b3d4749fb3e805a29936ddaea4d10c0272b5567 + initial_ast: 492b4988c6c596c11f20dd28724e411dfcf31e5e5f4491c0c2680761ec36e929 + unrolled_ast: 492b4988c6c596c11f20dd28724e411dfcf31e5e5f4491c0c2680761ec36e929 + ssa_ast: dbd96d670aecb5a8177137faba61de96f594ada8aa9a6bdcd38fad23a71763f1 + flattened_ast: 126d0638d6997cf135e910a371815b7db80c3705baad668c843f86f64d274af8 + destructured_ast: 078479edadd6ca2f758983b0ff1e666c8df3d0539bb7c36de93e1dcd5754e7b3 + inlined_ast: 078479edadd6ca2f758983b0ff1e666c8df3d0539bb7c36de93e1dcd5754e7b3 + dce_ast: 078479edadd6ca2f758983b0ff1e666c8df3d0539bb7c36de93e1dcd5754e7b3 bytecode: 1fb1eb1a0d28634e2e0ac374be81010d733d3749be3b2700cead1f03266ddfb0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/tictactoe.out b/tests/expectations/compiler/examples/tictactoe.out index c358c9e212..7d2a71506d 100644 --- a/tests/expectations/compiler/examples/tictactoe.out +++ b/tests/expectations/compiler/examples/tictactoe.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 617c1ebb375fca5f4c87be88e43d0f315ad4436cf58bb10f263905e32ca9da86 - type_checked_symbol_table: 2dafc0b7b94b810cd5205f2b7db71ede8acbeb249b77f0e2a5392f89d1c0fc16 - unrolled_symbol_table: 2dafc0b7b94b810cd5205f2b7db71ede8acbeb249b77f0e2a5392f89d1c0fc16 - initial_ast: 9355e4e644d2986baa7781fa65aac39a991e3e81ad5897e789ab35bfc53d0e07 - unrolled_ast: 9355e4e644d2986baa7781fa65aac39a991e3e81ad5897e789ab35bfc53d0e07 - ssa_ast: 72f9d678594ec15fb9f9f7a7cc085c2edead47f30f4bd6c667844e219d987fde - flattened_ast: 290d11c359b789593632cf753b68762984f237722fe9c239df7654169df03369 - destructured_ast: 337356e98d7d01324fd37ca4945327f186ef2b42ab6a1adc0dce2831ef999cb7 - inlined_ast: 337356e98d7d01324fd37ca4945327f186ef2b42ab6a1adc0dce2831ef999cb7 - dce_ast: ea3a7df186e324e6a555be0f5a18180e7e475a272f73189ceaebf489024efcc3 + - initial_symbol_table: a8ba119d927d4cc0eca3a044c67e512f41610f314f1cd989583616a210d2632f + type_checked_symbol_table: 24b9f4fd8831984d7a7dcfe76c295f96d50b401117a79b3ba12f2aeda9c503cf + unrolled_symbol_table: 24b9f4fd8831984d7a7dcfe76c295f96d50b401117a79b3ba12f2aeda9c503cf + initial_ast: 8525eab333b7546b35b8f435b0809cc5fa9b5acb27733be56f1e582944bfa20d + unrolled_ast: 8525eab333b7546b35b8f435b0809cc5fa9b5acb27733be56f1e582944bfa20d + ssa_ast: 195c31713df27cb146a30fba5894d00cc03bbd6601e4ecddf7e4392774bec5b2 + flattened_ast: 92472197292b74c83f4bfcb81b0d263bf36b34387e409e14d21cf31a6916ccf2 + destructured_ast: 72a43189e7753c09a0489422ba935f2ec67ecf2879cbc7a27bb2822eb8c6b3db + inlined_ast: 589322faa7c19bf9bb380f8813fa3e867bc897dc4f77b3699354f3154cb81fff + dce_ast: 9d3050c7a5a3af1ca13676064e9962903489ce1630ba359587e8de293dbec3e7 bytecode: 82d12cfea48eff976f9f70a6846c7f25870209fc3edf10b45b5f862a25ad3f40 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/token.out b/tests/expectations/compiler/examples/token.out index bb42f0e793..01a8de69bd 100644 --- a/tests/expectations/compiler/examples/token.out +++ b/tests/expectations/compiler/examples/token.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1dd787c948035f66cc4848941fcab1d41372bd4aeb564a6f679d2103d5689bb2 - type_checked_symbol_table: bc1aa75ed853135a0aed49ce04a90d5535724f914cd8c7c449d5d4a1ba33efd9 - unrolled_symbol_table: bc1aa75ed853135a0aed49ce04a90d5535724f914cd8c7c449d5d4a1ba33efd9 - initial_ast: be5e96cafbfd5d35ef58cfbd4e407060deaaa7c70735320c4705311c1566e664 - unrolled_ast: be5e96cafbfd5d35ef58cfbd4e407060deaaa7c70735320c4705311c1566e664 - ssa_ast: 1a5c3da792943be7e98e447e1b97a09d637ef711784f577497ddf47572255fad - flattened_ast: 595d23acd29d0f99777fb3de3f9b978ccb204b3a59cc0a5736599cadb4242541 - destructured_ast: 73483ed341fbaa9dd6be12f1a7b8adb3b3ea41b5ee7ee49c42299a3e947d389d - inlined_ast: 73483ed341fbaa9dd6be12f1a7b8adb3b3ea41b5ee7ee49c42299a3e947d389d - dce_ast: 73483ed341fbaa9dd6be12f1a7b8adb3b3ea41b5ee7ee49c42299a3e947d389d - bytecode: 379643d6f93f6040c0bb64ea96345269a23d6fb23fa3eae46ceb8e9ea9c73f9a + - initial_symbol_table: 360cbb3e1fbb7a2bdc6798712e40c8577740db261fcb88cacf7baa122ad893a5 + type_checked_symbol_table: 0a9cc1ae265d6f06800c5dddf898e154f85b486c33b7adef512399551612bb08 + unrolled_symbol_table: 0a9cc1ae265d6f06800c5dddf898e154f85b486c33b7adef512399551612bb08 + initial_ast: 10e3a89b3823000a5e0edd485af2759483a92c54d285c9c4d891614a8977e5df + unrolled_ast: 10e3a89b3823000a5e0edd485af2759483a92c54d285c9c4d891614a8977e5df + ssa_ast: b08a90f76b89904e2980fd99d666e801d8905d2cd9b1a289895b859747d6bf39 + flattened_ast: 491468cddc2556300da539d8d18f953b77fa3e0bd20dd00811cb97e6585545d5 + destructured_ast: 9b9a2d5eca2d8ad85c296512f315bffd1e427ec9346610164b5c02780eebf01e + inlined_ast: ae988501da90a51893fc7a19ec552e7a21ed425cc0d713dd58e812e6a38236cd + dce_ast: ae988501da90a51893fc7a19ec552e7a21ed425cc0d713dd58e812e6a38236cd + bytecode: 376346fcff5c4418e7d9e6a84eb5060f99b13ff743223475ef5e5b051b9d0bc8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/twoadicity.out b/tests/expectations/compiler/examples/twoadicity.out index 37ed769f2f..1f50c65157 100644 --- a/tests/expectations/compiler/examples/twoadicity.out +++ b/tests/expectations/compiler/examples/twoadicity.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ee8540a2e68f2aac3ddc712378cf7df4616c1f8036eb97bc13e08138ca2bacea - type_checked_symbol_table: 9fb24baa612aade50724d0c0fc098f7b4a20ade97f753f05e18fa8ed38260150 - unrolled_symbol_table: a428c3b973f4cde37d0515cfae8aeb3058cac878d196cb6f01df976dfb36bfed - initial_ast: 99bc1ded3c810f26493979f862b21b670690508d449b35aee05587b834c0b01e - unrolled_ast: 89407affad0ee51021f949699a750387087864a17cdb168ca155cce45b9d7765 - ssa_ast: 90328a3c64b72fe61b9f3e4b43b9ce4a0502bc8bab7c07875846e973a600213b - flattened_ast: e1f6b75d3675417873c888cd1a32d19b976b9c9ff3282446b32117f3ebccb790 - destructured_ast: 615262a5dc5c298334449c77554d8fa4283db78c513301aaf12c563ea21be775 - inlined_ast: c93aebd5b49b6caba85ec1ec96829bb01624661e552678df42b4485168ec250f - dce_ast: 5b0e51ef7784e5ae83b479e04e191ea84f56781289343c6414bbbf07397802d6 + - initial_symbol_table: 7857aaf88deea7bd06413c777e60bf431f74914d0388c8e794adc609b011ffff + type_checked_symbol_table: e68eb7141ede0e32edff6c36cc8a1096acbf417217da02823ce08667f0ab4ee3 + unrolled_symbol_table: 18ed390c785182274255e7642c5979d863b62f13b6b601c5a8c4a309fc579094 + initial_ast: bb349e6b5d5df047944094f5893f62e654942ab48f300ec24e0be0bd5df4c3f4 + unrolled_ast: 0e860854e7f9f0b4c835ce3a9359cade9240725a4e1755b1afb37ed49f1f4ee2 + ssa_ast: ac8886bc63d2e953b814baa884da2183a4e92506d324eabd4685abc997722e52 + flattened_ast: 701352b554772d75dfd7792f04e8aecf773b8fdf1db4ac57c06e0e4c8c04c9fb + destructured_ast: 76d826c945085e1bb4afb5f1f0f0fdd4505b9176d1fc325215bc6d96ca0c0dca + inlined_ast: 0223a090358a2c2f136b49daac77599435fc45bd017daf07e5c57d14ff0f1c42 + dce_ast: 44675ae507e2fd7cfc940a2ed0f1a2bc02b9a2a90f9b8cbfabb0138fe7dd4554 bytecode: c5073e255b7504fbc368079e634a99935c6c645c9db6830212e2c6077f8ebf3f errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/verify.out b/tests/expectations/compiler/examples/verify.out index f6787540cb..5fa4492765 100644 --- a/tests/expectations/compiler/examples/verify.out +++ b/tests/expectations/compiler/examples/verify.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d0b402c000632ad142fdbb8873570eb253a85a548ba711a73bf5c23806ec48dd - type_checked_symbol_table: 1ed307a2a50d6bdc345e35199af8aeec171d0a62a7ec550b6eb957a515fcdb98 - unrolled_symbol_table: 1ed307a2a50d6bdc345e35199af8aeec171d0a62a7ec550b6eb957a515fcdb98 - initial_ast: cadd9689dd6ed7ebc73bf708921f3c039706a17c5480fc1628e18a65ca258a72 - unrolled_ast: cadd9689dd6ed7ebc73bf708921f3c039706a17c5480fc1628e18a65ca258a72 - ssa_ast: c53c8ece9f63292ddbb293a5ad7d3a7863acad5d274494d04b75e17b103f36b8 - flattened_ast: 8fb808cfac8c3981623f6282d067039fb946c58e1909a4fc73808bb0353cfef8 - destructured_ast: 4b5e6beaf13927056064b0bd66c9a2e635b5f670949ee208b763f03ab8493418 - inlined_ast: 4b5e6beaf13927056064b0bd66c9a2e635b5f670949ee208b763f03ab8493418 - dce_ast: 4b5e6beaf13927056064b0bd66c9a2e635b5f670949ee208b763f03ab8493418 + - initial_symbol_table: e05e5c46ae3a8a3ee456ca2a337020261f8b0943621a19d66ce7f6ea402e3888 + type_checked_symbol_table: ba7fc493dbbd43f0474cfdff7d920aa3bb5307abc3a813704c8d1572cffda559 + unrolled_symbol_table: ba7fc493dbbd43f0474cfdff7d920aa3bb5307abc3a813704c8d1572cffda559 + initial_ast: c429f45dc836eb899fea0a735abd04027d90c371f2648412b3e43da790411e17 + unrolled_ast: c429f45dc836eb899fea0a735abd04027d90c371f2648412b3e43da790411e17 + ssa_ast: c21f901b4b3abba6da949b04e7bb9e5d9dc2dd7e7e6026a4fc9b63bd000541c0 + flattened_ast: 166b7187c9077e303c30c1f61902f3dd412c2f552a41594e927374312a5d5e85 + destructured_ast: 4b7e7f5c192544e73efffcc939542a6ecca49e94effce58f085e28b642d60ee9 + inlined_ast: a16ec37b48ab05cfdb714656ef018de0799599216d1e4f0debe73ac8cda0a6c9 + dce_ast: a16ec37b48ab05cfdb714656ef018de0799599216d1e4f0debe73ac8cda0a6c9 bytecode: 153cfd2616e879c311c136713624e83ef42642241ffebf540e308a29a610b058 errors: "" warnings: "" diff --git a/tests/expectations/compiler/examples/vote.out b/tests/expectations/compiler/examples/vote.out index f93b6936a3..aebc652c4c 100644 --- a/tests/expectations/compiler/examples/vote.out +++ b/tests/expectations/compiler/examples/vote.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b43f30cad53b635e2a38c6e3bab51d3903cfc765a9daa94c497308ca6410a2e8 - type_checked_symbol_table: e2966afa1fcbcd12a21e83ed2dd65703ca4c2bc5290e3aa34ea0b03c7bfcaa1d - unrolled_symbol_table: e2966afa1fcbcd12a21e83ed2dd65703ca4c2bc5290e3aa34ea0b03c7bfcaa1d - initial_ast: e3baf7644c011644e3c9e51e20dfa1c7242e86b93417f1083a992124f3b492d1 - unrolled_ast: aba2f62b495fb53afe02ab4d72b654c641be977ac4617fbe366294d5297ce7a4 - ssa_ast: 9e3964cf4307beabc3f22b27c610a49809bcfe75f4c66fd2cc406ad0c24ab4b9 - flattened_ast: 869d9dab385b00ba4d654a88e1c785c640533826da2287f63ccd8353ca4eb5ef - destructured_ast: bca9894b9c0ad05288b2a16005efe3f3da2717e7d7e72d65f1fbed7026407fdc - inlined_ast: bca9894b9c0ad05288b2a16005efe3f3da2717e7d7e72d65f1fbed7026407fdc - dce_ast: bca9894b9c0ad05288b2a16005efe3f3da2717e7d7e72d65f1fbed7026407fdc - bytecode: 0c73fbf3a08f7b89b82fc3189771704f58740f37c41f9c5aa7aef2a808badf9b + - initial_symbol_table: f415b7605bcdd5aefe3597204694d197c99b890f18a8cb3e1d9edb3d2a6e6e1d + type_checked_symbol_table: 5f0f99b699c2ab1b87b53afe5fe9dba0527226e1252bcf1c2db10e34cfa742bf + unrolled_symbol_table: 5f0f99b699c2ab1b87b53afe5fe9dba0527226e1252bcf1c2db10e34cfa742bf + initial_ast: a871660cebae96d2836adbafdf7950af0bdaeeb2574eebc8961291fb2b5a049c + unrolled_ast: f710e4a839d2cbf90fdc649df03a904c373dce067893540e462a96a7337c08f2 + ssa_ast: 722393f0313fc0525285721ddc203fe1af2ba5a9daaf5b1ac1620ddfc0488154 + flattened_ast: 75d824990d30c4b2c8d97d0e3ad09156141441aca851bb059200fc12bdfe74b3 + destructured_ast: 87dc5b2aadf94af9848d1aba038d7c2d3c5d8b44e407311285cd488d39e80dde + inlined_ast: 4cd7f8cf34502f4eee48b27508e712fbaec90e5f18cc7caaae8afc64309fd68c + dce_ast: 4cd7f8cf34502f4eee48b27508e712fbaec90e5f18cc7caaae8afc64309fd68c + bytecode: f5310d38dba01e579d5ec8cd7b3513997275d26de14c49ee3894d175a58c7aa5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/expression/cast.out b/tests/expectations/compiler/expression/cast.out index dad342fe45..d3842e14e3 100644 --- a/tests/expectations/compiler/expression/cast.out +++ b/tests/expectations/compiler/expression/cast.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2120fd4e86825b929ce5dab92e0978448ebaec50f4b9dbd95884c786a4b2298f - type_checked_symbol_table: 88eed4d28d494a665a2d6ec64118970c96698616e7315d2a6ad7f43fee9ccb51 - unrolled_symbol_table: 88eed4d28d494a665a2d6ec64118970c96698616e7315d2a6ad7f43fee9ccb51 - initial_ast: 023319cf4b6ef19ad296de40ec56f3682918003e36b97f46ee50f43bcad8afa8 - unrolled_ast: 023319cf4b6ef19ad296de40ec56f3682918003e36b97f46ee50f43bcad8afa8 - ssa_ast: 0ecd9a80a1df7a7216e9d6840037d7b9b55eeb97f1d8086d8d4ef172bd89fcb1 - flattened_ast: 588038b53a5ed1e4a6518c6f15aae0adef667974e40a105401a14cde594caeb2 - destructured_ast: 9cce2b3c507a8ffc12b0758479d2d434567112ad68f7cf7fc2a28a0dda001b64 - inlined_ast: 9cce2b3c507a8ffc12b0758479d2d434567112ad68f7cf7fc2a28a0dda001b64 - dce_ast: 5bc36eefc19da58ebbe0537f7dd49e26c84fe4a9c33e8a0ed4f5e2e3313b69ee + - initial_symbol_table: 7491903dbcb0fdec4c5e9cecb2a3d74ecb85c500ad7c73691f4894a992893d97 + type_checked_symbol_table: 3bda2eb3917866c88634c9825d4988b17ae084941187b7ea237dee50239454ec + unrolled_symbol_table: 3bda2eb3917866c88634c9825d4988b17ae084941187b7ea237dee50239454ec + initial_ast: 7756db7b6c767a1c52b67e44ff3c89a34316bf3df467675e2e78dcf494355036 + unrolled_ast: 7756db7b6c767a1c52b67e44ff3c89a34316bf3df467675e2e78dcf494355036 + ssa_ast: 339fcf6fc5baf484d69cd835a41e21d8e279e44f937dfdf4553f60f3a5013c19 + flattened_ast: fbb89431ae1bddaad0231adb2a8c127bac57c510f07eefac70cdb552ba26eff5 + destructured_ast: b04e55f4903848de9d4ac5d00ceaaf40b19717e4a7b23d43cf8e665e7a485656 + inlined_ast: b04e55f4903848de9d4ac5d00ceaaf40b19717e4a7b23d43cf8e665e7a485656 + dce_ast: 395ecb410a2d3a08b13a226a3fda2c2330d577afc80a4142438d5057717787ce bytecode: 3c8ea2338433747c1805ff0086031f7be0d253cf25b173de2f145945fdbf2c98 errors: "" warnings: "" diff --git a/tests/expectations/compiler/expression/cast_coersion.out b/tests/expectations/compiler/expression/cast_coersion.out index 74f1b9a880..e5b31fe7a7 100644 --- a/tests/expectations/compiler/expression/cast_coersion.out +++ b/tests/expectations/compiler/expression/cast_coersion.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 317827cd724f571eafec09fa160b593fdcf229602039d5b4a89761fab9f1b1e3 - type_checked_symbol_table: 6c32b4bb7fde567243391a0d86ed031b64c42612d9e33291f185bcc12df93def - unrolled_symbol_table: 6c32b4bb7fde567243391a0d86ed031b64c42612d9e33291f185bcc12df93def - initial_ast: 7592d7bc2b0854d24b1f6325d4fb29eac291bf5394deab0c7609e812c3f03316 - unrolled_ast: 7592d7bc2b0854d24b1f6325d4fb29eac291bf5394deab0c7609e812c3f03316 - ssa_ast: 4d65d18451d1333104073410d279c58d998cb41bc2bbc5122fa6e7285456b3de - flattened_ast: 991acab3b5bd42964c21be84a2b089f8a50ee0944d829af03ace717aec40d095 - destructured_ast: e5a9742576739e1687643f8d570131908d168e43ab4d2473f205967bcebf85db - inlined_ast: e5a9742576739e1687643f8d570131908d168e43ab4d2473f205967bcebf85db - dce_ast: e5a9742576739e1687643f8d570131908d168e43ab4d2473f205967bcebf85db + - initial_symbol_table: 92ba7bdf1b53646e735010d257aa0c132cf5513b4ce193b9aafc2af8f50e49da + type_checked_symbol_table: 638e7846f9de1b9dc446d6f6e323f03e224c602069f36482321acff12b97b7cc + unrolled_symbol_table: 638e7846f9de1b9dc446d6f6e323f03e224c602069f36482321acff12b97b7cc + initial_ast: d62c942139ef53452dfd202dea945c6ac70ae28f32342478a6501a62902a0e22 + unrolled_ast: d62c942139ef53452dfd202dea945c6ac70ae28f32342478a6501a62902a0e22 + ssa_ast: 6b4c246a373393560bdf5ca307e2be35e643b5c475b0c5ddf9c9376242db2a38 + flattened_ast: 75cc34526c6991fd78a4ad1d64606d5b9d15d5c83c6b6cf0e16fc06d04373781 + destructured_ast: a4ca3abba605cb76b18fa319233a24115e7a76be2293430e854da1bf34c1284e + inlined_ast: a4ca3abba605cb76b18fa319233a24115e7a76be2293430e854da1bf34c1284e + dce_ast: a4ca3abba605cb76b18fa319233a24115e7a76be2293430e854da1bf34c1284e bytecode: 675912267b82b91bd854fa2ef169b85c74ecaac6b73a157d7e99818e256b53b1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/expression/cast_fail.out b/tests/expectations/compiler/expression/cast_fail.out index af5064d352..0d8efa675e 100644 --- a/tests/expectations/compiler/expression/cast_fail.out +++ b/tests/expectations/compiler/expression/cast_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:13:9\n |\n 13 | let b: string = a as string;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `string`\n --> compiler-test:13:25\n |\n 13 | let b: string = a as string;\n | ^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `Foo`\n --> compiler-test:16:24\n |\n 16 | let d: field = c as field;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `(field,field)`\n --> compiler-test:19:24\n |\n 19 | let f: field = e as field;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `(field => field)`\n --> compiler-test:25:24\n |\n 25 | let b: field = balances as field;\n | ^^^^^^^^\n" + - "Error [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:13:9\n |\n 13 | let b: string = a as string;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `string`\n --> compiler-test:13:25\n |\n 13 | let b: string = a as string;\n | ^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `Foo`\n --> compiler-test:16:24\n |\n 16 | let d: field = c as field;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `(field,field)`\n --> compiler-test:19:24\n |\n 19 | let f: field = e as field;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128, boolean, address`, but got `(field => field)`\n --> compiler-test:25:24\n |\n 25 | let b: field = balances as field;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/expression/ternary.out b/tests/expectations/compiler/expression/ternary.out index de8e446a47..57265cc9c6 100644 --- a/tests/expectations/compiler/expression/ternary.out +++ b/tests/expectations/compiler/expression/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9e461f6f35fd64d9eb1c0cdc51ece5bf8c6fa37b2decb9b895c9df236f60a5eb - type_checked_symbol_table: b276c27923b04ebb15021650f2b6cc15e96d8b4570c48b53978e2c9019f6f527 - unrolled_symbol_table: b276c27923b04ebb15021650f2b6cc15e96d8b4570c48b53978e2c9019f6f527 - initial_ast: 76571ae1768e700c14d9ec9b1ee5e3747f84c02083394ca3c23b99ecc4376ebc - unrolled_ast: 76571ae1768e700c14d9ec9b1ee5e3747f84c02083394ca3c23b99ecc4376ebc - ssa_ast: 97a7d2025f29f6b5cb2d1f2bcb0ffcbbd6193d08477aab06508235afddcf7287 - flattened_ast: 606f5f56f656cbdc408fcee4fa5f59a8aa2ef34a34b64d17732c623f4b7c2639 - destructured_ast: bd6e1085641e46ee0c69c571ade59090d131e189866fda04ee961d4fea23f9a5 - inlined_ast: bd6e1085641e46ee0c69c571ade59090d131e189866fda04ee961d4fea23f9a5 - dce_ast: bd6e1085641e46ee0c69c571ade59090d131e189866fda04ee961d4fea23f9a5 + - initial_symbol_table: 12bc425c94e0b64cd27369b8ac05d98a7fa131d4c817d10786e8a964cb80fb0d + type_checked_symbol_table: 75a0827a21f18bdc89507ad4311cb8a8d91a8327aaad8f3dbfabd97f7c338d01 + unrolled_symbol_table: 75a0827a21f18bdc89507ad4311cb8a8d91a8327aaad8f3dbfabd97f7c338d01 + initial_ast: 7fa91c3cdc044bf0db2c1b95ab49db858fb8668db568f95de03a08e588fc72af + unrolled_ast: 7fa91c3cdc044bf0db2c1b95ab49db858fb8668db568f95de03a08e588fc72af + ssa_ast: dd941f1e48489377767eaf525d8eef34e60d7b8f84567175857491e031c98297 + flattened_ast: 79fdff1ca88adf82f4862445e7d7d7d0f7a2c176127a85d242147255ebd990b2 + destructured_ast: 37fd17c4edb98c6f6647796eaae531b3b0a4150252465b199c7fd78fafd0aac8 + inlined_ast: 37fd17c4edb98c6f6647796eaae531b3b0a4150252465b199c7fd78fafd0aac8 + dce_ast: 37fd17c4edb98c6f6647796eaae531b3b0a4150252465b199c7fd78fafd0aac8 bytecode: 11706f359e35f6269b2f879e483f2e1dc1df99c710fc8476dfb1e3c6115d8268 errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/add.out b/tests/expectations/compiler/field/add.out index 5e6b31c845..a3b2444d53 100644 --- a/tests/expectations/compiler/field/add.out +++ b/tests/expectations/compiler/field/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3064fc6761365aa5a2492c8c7e1a6160db032c9eb28a53908daddeb90e905025 - type_checked_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - unrolled_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - initial_ast: 2c8c06b0a981ccfe190d3e491bd3b1eb7ba601d95debc2398895630eec02c116 - unrolled_ast: 2c8c06b0a981ccfe190d3e491bd3b1eb7ba601d95debc2398895630eec02c116 - ssa_ast: 12c386f1f96e1dd94d6f02117d75b0a9ad0fd5cccc3cc0fa03456a28177507b9 - flattened_ast: 37240a7d81e111ef7609722788f7fe361715fc5cb0ad8cecb14632f3742373ad - destructured_ast: af3227b9e8fe60acca5e2b322b7286c6f365737f255e0dd322801a9d7347a1f1 - inlined_ast: af3227b9e8fe60acca5e2b322b7286c6f365737f255e0dd322801a9d7347a1f1 - dce_ast: af3227b9e8fe60acca5e2b322b7286c6f365737f255e0dd322801a9d7347a1f1 + - initial_symbol_table: 781e98a425e5a4cccdfa0cf282b9fa61aab03fabd2dce93473005944a59497ac + type_checked_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + unrolled_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + initial_ast: 414b6b6f5f537f95b1862bb0869161a98664a3b7925032aea8d6dd846022c1fa + unrolled_ast: 414b6b6f5f537f95b1862bb0869161a98664a3b7925032aea8d6dd846022c1fa + ssa_ast: d543a542f30606fdd5f7baeda1b8d3b55de1481aa760fa1e233a7dc728000927 + flattened_ast: 86d1369c7e5768c402fd5804fc89c449ea03af805fec1d7b5ec2c310100d7314 + destructured_ast: 19cd3368e9a81da05b6ae53136e674cb3174b92cda9a83e9883693628da3ddc6 + inlined_ast: 19cd3368e9a81da05b6ae53136e674cb3174b92cda9a83e9883693628da3ddc6 + dce_ast: 19cd3368e9a81da05b6ae53136e674cb3174b92cda9a83e9883693628da3ddc6 bytecode: 587770d63e2d2fe866f99683df9a32da50b718ee3a92aec0d9491cbb8569b80d errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/div.out b/tests/expectations/compiler/field/div.out index d0cf20df5f..d974f9e40c 100644 --- a/tests/expectations/compiler/field/div.out +++ b/tests/expectations/compiler/field/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3064fc6761365aa5a2492c8c7e1a6160db032c9eb28a53908daddeb90e905025 - type_checked_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - unrolled_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - initial_ast: 96a67b2f605140e85b5e3c13efe22617e3bc18ee1de6d408f06ae222b6d7db77 - unrolled_ast: 96a67b2f605140e85b5e3c13efe22617e3bc18ee1de6d408f06ae222b6d7db77 - ssa_ast: 8b9e26a49fa62faad1a1d6f63e3045975f9559e61bd3d4698a0fbc40bf5f5d20 - flattened_ast: 68399a613ab4cb58e255f3ab1c7989c368a09f0cfaba98a49c3e1af0d7c3f694 - destructured_ast: 82c1a6fba8a7183a4d2380593d60b91127586bf7b354968f3ff5ee5330be40eb - inlined_ast: 82c1a6fba8a7183a4d2380593d60b91127586bf7b354968f3ff5ee5330be40eb - dce_ast: 82c1a6fba8a7183a4d2380593d60b91127586bf7b354968f3ff5ee5330be40eb + - initial_symbol_table: 781e98a425e5a4cccdfa0cf282b9fa61aab03fabd2dce93473005944a59497ac + type_checked_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + unrolled_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + initial_ast: 37bf8e60733b184d4cb5b0862412bcd0e23b7bff37b314a93ab1aa2d0b66bb48 + unrolled_ast: 37bf8e60733b184d4cb5b0862412bcd0e23b7bff37b314a93ab1aa2d0b66bb48 + ssa_ast: 3bdb42e9741113b19e456c1a3a09439573603d952dafc95c64b0b7a458c95540 + flattened_ast: 1970b45ad4c13b6c33d707bb8225d32823bbad085cd985e2c0f4870dac24fda5 + destructured_ast: bb6402166c1641698b608136dcb061fd6ce096c7ef108528d1e2fb7ca134114d + inlined_ast: bb6402166c1641698b608136dcb061fd6ce096c7ef108528d1e2fb7ca134114d + dce_ast: bb6402166c1641698b608136dcb061fd6ce096c7ef108528d1e2fb7ca134114d bytecode: 8076383080c6f141d8c6038360d4c9494a44f39b20f85614faf57bb7f6e3a10d errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/eq.out b/tests/expectations/compiler/field/eq.out index 16cd056b18..cabfbc8684 100644 --- a/tests/expectations/compiler/field/eq.out +++ b/tests/expectations/compiler/field/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ffd6dbbabd7b0e67a7e89ace5c10491c6f71d6b337b66c78223bd98d210f0959 - type_checked_symbol_table: 3d214e5e1febd34d13fda9cb31135a11468fc758e33811e938863b4067318f88 - unrolled_symbol_table: 3d214e5e1febd34d13fda9cb31135a11468fc758e33811e938863b4067318f88 - initial_ast: 34a1abd6a2bd5c52c226f3841f79470e262dd779eb9435c5ac42c8b30b8f6098 - unrolled_ast: 34a1abd6a2bd5c52c226f3841f79470e262dd779eb9435c5ac42c8b30b8f6098 - ssa_ast: cb4f3be0079430f56d55ccac80a44633b138e77974961182afa892c3dbdc9356 - flattened_ast: 3912baae442574592cac7bf538a3c78c971abecdcfa9159ef05a364436e5187d - destructured_ast: cb5f7e0f01a336b09d365874e238619c98c7849f32c7fc3c86b97a259bf8aa19 - inlined_ast: cb5f7e0f01a336b09d365874e238619c98c7849f32c7fc3c86b97a259bf8aa19 - dce_ast: cb5f7e0f01a336b09d365874e238619c98c7849f32c7fc3c86b97a259bf8aa19 + - initial_symbol_table: a4dd4125ff7cc2aa202034438ab36f8f4c92b75aa151f750a3e004d1baef580d + type_checked_symbol_table: 22a997d88b3ed1f674afc3c86c8e7a1162869aa20df3916b515f13bb4efe43ef + unrolled_symbol_table: 22a997d88b3ed1f674afc3c86c8e7a1162869aa20df3916b515f13bb4efe43ef + initial_ast: 6f95d548674163cb45d37c96c414aed5b89845e67719c7c02221711f3ced8a0f + unrolled_ast: 6f95d548674163cb45d37c96c414aed5b89845e67719c7c02221711f3ced8a0f + ssa_ast: f7624d2e503f252ac748927d2c8f4157780495692b152669c6d77806688b1bad + flattened_ast: c238b99f127c63d50d22829486badcc5f47d69ebdf7f77a08ef8febb28526f09 + destructured_ast: 559e89c44d8018bb9437e8a7bb5968ddbdc2ada3c62484384ed612b3d2d64999 + inlined_ast: 559e89c44d8018bb9437e8a7bb5968ddbdc2ada3c62484384ed612b3d2d64999 + dce_ast: 559e89c44d8018bb9437e8a7bb5968ddbdc2ada3c62484384ed612b3d2d64999 bytecode: 935fb69a9229d935e0f2ec6ce8774b279e8d2ab9496ef8dfcf061aec2088db31 errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/field.out b/tests/expectations/compiler/field/field.out index da97357961..7d69afd9a1 100644 --- a/tests/expectations/compiler/field/field.out +++ b/tests/expectations/compiler/field/field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 943a905f6c17e9544f41306ca942fc6daad9054c3b1073098c140ab0de821911 - type_checked_symbol_table: 931e8d86de528b2502c9ea04afec3a4ae4c3618e49540b48019ab8c96b299b58 - unrolled_symbol_table: 931e8d86de528b2502c9ea04afec3a4ae4c3618e49540b48019ab8c96b299b58 - initial_ast: 5eef390d881d58702f66b802468939b7c76a5b9289a3f25384a76f1788ce67bf - unrolled_ast: 5eef390d881d58702f66b802468939b7c76a5b9289a3f25384a76f1788ce67bf - ssa_ast: d82208f3fb5cc94490fd089fb25d32a6066572c3066bc3b73221fd0b184012ee - flattened_ast: 33c5c0632060343f714d453342f022c1281edd64f1bec7eb54245ae9bd224440 - destructured_ast: 662f2fb3dd907ec4f5884f16ba5829aa50c6c88607582ae5d0a3dc1a30a8337e - inlined_ast: 662f2fb3dd907ec4f5884f16ba5829aa50c6c88607582ae5d0a3dc1a30a8337e - dce_ast: fab489cfa0c9d19acce9cc179fbf5ead29e2f4c28675d33e7fa504fe838f9b4f + - initial_symbol_table: ae5e4fcc114aa2e708b213b157a2f5419dfb28337adf4b4104866eeb3daa68b9 + type_checked_symbol_table: 82f9da6695bb2a46eb6e0068ad0498bc46422f2094e5e39bd50355a9e2529b54 + unrolled_symbol_table: 82f9da6695bb2a46eb6e0068ad0498bc46422f2094e5e39bd50355a9e2529b54 + initial_ast: 021dce7d921f38ee2366c6b3d87efe33abea1cf37ac001c8746ef962bce7c8dd + unrolled_ast: 021dce7d921f38ee2366c6b3d87efe33abea1cf37ac001c8746ef962bce7c8dd + ssa_ast: 5d29823da14114fd6d309b48bb2633525c9cf5d026423d7650d60931ad4b629b + flattened_ast: 26c255b28b084cc107ebd192c1c8251ecdfcae09a8f9228aaa5314f9cef0f3b2 + destructured_ast: 3b5626e329481599d4b26de1e72f14c6ff75470f1a9fa70a240ea88d1a5bf70a + inlined_ast: 3b5626e329481599d4b26de1e72f14c6ff75470f1a9fa70a240ea88d1a5bf70a + dce_ast: c101eba43eddcce576537b26b041efbe96e15a2bb483e715bf68df6aeee87708 bytecode: 649e93daf1fbf2a9870cd22788b26685b9f873b10ced0b6844974081b511080b errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/mul.out b/tests/expectations/compiler/field/mul.out index 993c762689..ad0d1efeb0 100644 --- a/tests/expectations/compiler/field/mul.out +++ b/tests/expectations/compiler/field/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3064fc6761365aa5a2492c8c7e1a6160db032c9eb28a53908daddeb90e905025 - type_checked_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - unrolled_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - initial_ast: 1181930e280beb3a8719a81f4f00afb55279f47e1be95a36d678c86cbc8a57ae - unrolled_ast: 1181930e280beb3a8719a81f4f00afb55279f47e1be95a36d678c86cbc8a57ae - ssa_ast: f2e9f6eb40711cd5cc48ca236243f6cc3d1fdd41c4b7237ab9d6356f6729f155 - flattened_ast: f7548ead4ed4d01d1c49f052e4b6136a18599e9992696f0c0827bbf41f3786a8 - destructured_ast: 9d0b9dd31907105a7019b5b2f65b06df80dee8b887cb8a031972645149e3d97a - inlined_ast: 9d0b9dd31907105a7019b5b2f65b06df80dee8b887cb8a031972645149e3d97a - dce_ast: 9d0b9dd31907105a7019b5b2f65b06df80dee8b887cb8a031972645149e3d97a + - initial_symbol_table: 781e98a425e5a4cccdfa0cf282b9fa61aab03fabd2dce93473005944a59497ac + type_checked_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + unrolled_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + initial_ast: 55e0b36aa6fa9c5335f9eda27974207462d1a89b1bd0c177b307d17abd826a3c + unrolled_ast: 55e0b36aa6fa9c5335f9eda27974207462d1a89b1bd0c177b307d17abd826a3c + ssa_ast: 4b4bb625d79a705f409b11216f65ee79216c55632a2f0c1627dc0556752d5885 + flattened_ast: f460c65a978971ad5ed81348faedd632b625e5befd1b0ee946e443a07f96eab9 + destructured_ast: d87723956b45cce4d58f35b8e0eb9dce058d55c8d359a5234f7eee509abdf760 + inlined_ast: d87723956b45cce4d58f35b8e0eb9dce058d55c8d359a5234f7eee509abdf760 + dce_ast: d87723956b45cce4d58f35b8e0eb9dce058d55c8d359a5234f7eee509abdf760 bytecode: b66977ddf8c6be2363f9c584853adf0dc546d28df9c4eb87ab94d393e9c39c59 errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/negate.out b/tests/expectations/compiler/field/negate.out index 7b216d3fce..be3fe4fdeb 100644 --- a/tests/expectations/compiler/field/negate.out +++ b/tests/expectations/compiler/field/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ffd6dbbabd7b0e67a7e89ace5c10491c6f71d6b337b66c78223bd98d210f0959 - type_checked_symbol_table: 3d214e5e1febd34d13fda9cb31135a11468fc758e33811e938863b4067318f88 - unrolled_symbol_table: 3d214e5e1febd34d13fda9cb31135a11468fc758e33811e938863b4067318f88 - initial_ast: d4c056e1be3272f25e5e4d1a82e67dd1695f5634c1a71b3c72905154acec4652 - unrolled_ast: d4c056e1be3272f25e5e4d1a82e67dd1695f5634c1a71b3c72905154acec4652 - ssa_ast: a1b9a27addc8bdab56169594dfa6f6332453745475c0619fb732c9372472edd8 - flattened_ast: 0df5416edff61064d5457c238f9cded03125a24894b85ff6f2c4f0c8999a1638 - destructured_ast: 547108a96ea7f15a814c48458a583cc1b9dfa7c03a8349d465f67dedfd0aafc3 - inlined_ast: 547108a96ea7f15a814c48458a583cc1b9dfa7c03a8349d465f67dedfd0aafc3 - dce_ast: 547108a96ea7f15a814c48458a583cc1b9dfa7c03a8349d465f67dedfd0aafc3 + - initial_symbol_table: a4dd4125ff7cc2aa202034438ab36f8f4c92b75aa151f750a3e004d1baef580d + type_checked_symbol_table: 22a997d88b3ed1f674afc3c86c8e7a1162869aa20df3916b515f13bb4efe43ef + unrolled_symbol_table: 22a997d88b3ed1f674afc3c86c8e7a1162869aa20df3916b515f13bb4efe43ef + initial_ast: f7adc52caae03a5564007b26b0d8a0e79ee7e72d096e7d6ff0b08af66d7a0489 + unrolled_ast: f7adc52caae03a5564007b26b0d8a0e79ee7e72d096e7d6ff0b08af66d7a0489 + ssa_ast: bb1d7f8ca838711f052278f666b80438ca5e33f52e1694357e42ce8923a574e0 + flattened_ast: bfe117223f8130fef7d941ad3a58141302f9b00b664af4859e6e2553c6f79555 + destructured_ast: 6235eae1db8805050b23922e69e49cea063997d3f054b4be44cee234f9b0f065 + inlined_ast: 6235eae1db8805050b23922e69e49cea063997d3f054b4be44cee234f9b0f065 + dce_ast: 6235eae1db8805050b23922e69e49cea063997d3f054b4be44cee234f9b0f065 bytecode: b9e119319f6a86cf6b4820d47924a35737646c2bee28ef72882d8e255cdaf7fb errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/operator_methods.out b/tests/expectations/compiler/field/operator_methods.out index 327037c490..0166cedaa1 100644 --- a/tests/expectations/compiler/field/operator_methods.out +++ b/tests/expectations/compiler/field/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ffd6dbbabd7b0e67a7e89ace5c10491c6f71d6b337b66c78223bd98d210f0959 - type_checked_symbol_table: 035486a5f1ccdbe8bdde6848b9e166486c2d3debab300609df5b8cbe870b8d70 - unrolled_symbol_table: 035486a5f1ccdbe8bdde6848b9e166486c2d3debab300609df5b8cbe870b8d70 - initial_ast: 547d1fb152a768f6bc1d1899b216d0cb3b2dd3e7b195837d160f304e60301c09 - unrolled_ast: 547d1fb152a768f6bc1d1899b216d0cb3b2dd3e7b195837d160f304e60301c09 - ssa_ast: 3f4df6de54093b0fa1bb580d43ac993fa915f110a5c4ebb5ac535a53037645c8 - flattened_ast: 9d40d145bb5c2d1ea51ce1dca5f8a24b784c55399815466c5781bb89a629bbe0 - destructured_ast: 87a8374286c101843c2a6df75f727aed1a99c8b7adee3591dd9e52b49c115059 - inlined_ast: 87a8374286c101843c2a6df75f727aed1a99c8b7adee3591dd9e52b49c115059 - dce_ast: dc77caf614d943cff3cf6e5696ed552db4abecd77bf8907900049d2011f51cc6 + - initial_symbol_table: a4dd4125ff7cc2aa202034438ab36f8f4c92b75aa151f750a3e004d1baef580d + type_checked_symbol_table: ea46ec1a8798effa6c7a224f06d44cc3e31a05d468e378fce699659600de6487 + unrolled_symbol_table: ea46ec1a8798effa6c7a224f06d44cc3e31a05d468e378fce699659600de6487 + initial_ast: 1b3373eff88cf07fe7b0f06efdde795b46fe5ef3af48bde19e5c9b98a038c987 + unrolled_ast: 1b3373eff88cf07fe7b0f06efdde795b46fe5ef3af48bde19e5c9b98a038c987 + ssa_ast: 7d1ca8c4c848066614667cd56ade577d0541816ab91e2a794ab384b6c4bd4863 + flattened_ast: 93d4ffb603708053c4edf6b65318592998e04c2e3f21ae6ad4af328774fee8dc + destructured_ast: 456b2b9fd9e7d3551c995dc16c590a5868a9e297b111a75d7313be3f1fc84806 + inlined_ast: 456b2b9fd9e7d3551c995dc16c590a5868a9e297b111a75d7313be3f1fc84806 + dce_ast: 796e28e723a483b9c566639d0d34944bb9b07e9340e70e071b62555049032554 bytecode: bc2da8a1b63f9c24fb14b7468faa8cc14da40ce5c61c9a1c86804b808533b92a errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/pow.out b/tests/expectations/compiler/field/pow.out index 151a730187..56b7487537 100644 --- a/tests/expectations/compiler/field/pow.out +++ b/tests/expectations/compiler/field/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 943a905f6c17e9544f41306ca942fc6daad9054c3b1073098c140ab0de821911 - type_checked_symbol_table: a23cff4c8204a990afc20f91eab9530061e5f14f89bd0fb00451ca7a0bd203d0 - unrolled_symbol_table: a23cff4c8204a990afc20f91eab9530061e5f14f89bd0fb00451ca7a0bd203d0 - initial_ast: 126e6a2fd83113100727b8234cf505d56b2192125e53c808debae0c71c86fcc3 - unrolled_ast: 126e6a2fd83113100727b8234cf505d56b2192125e53c808debae0c71c86fcc3 - ssa_ast: 703c55122f6b29bf9722ea10dbc823a95206ca21a3c68825d99e26850edeb840 - flattened_ast: 32096834edbeef21d9e18f4e5dda9d3fd4f06b9b461076bfbefff3dbc5ce0cbd - destructured_ast: d8143c987d4ee76b8221e688de81efcc80ddc0d23ef7fc24c205dd8c9a11af3d - inlined_ast: d8143c987d4ee76b8221e688de81efcc80ddc0d23ef7fc24c205dd8c9a11af3d - dce_ast: d8143c987d4ee76b8221e688de81efcc80ddc0d23ef7fc24c205dd8c9a11af3d + - initial_symbol_table: ae5e4fcc114aa2e708b213b157a2f5419dfb28337adf4b4104866eeb3daa68b9 + type_checked_symbol_table: 1db83490f5d4d1da3b765f442dd4688033fd3329f7deb090f83743104bea3d4a + unrolled_symbol_table: 1db83490f5d4d1da3b765f442dd4688033fd3329f7deb090f83743104bea3d4a + initial_ast: 40a5aa0df1dbb30d2c28e3daba5aec18c7c736a5395a8a666790a62628ab6f63 + unrolled_ast: 40a5aa0df1dbb30d2c28e3daba5aec18c7c736a5395a8a666790a62628ab6f63 + ssa_ast: c9e99b07d3fed8b8f7f1c4e98b378d48a6a68eb9c19dbb96bc68de87d813cfb8 + flattened_ast: 9be71179bde154b7f4feab52574297695c8c3c52a10bda745503b33896ecb675 + destructured_ast: 16c2fdb8b1ecbc7e81d783f3f0419531efb80efc379009c3285c7afd926a12c1 + inlined_ast: 16c2fdb8b1ecbc7e81d783f3f0419531efb80efc379009c3285c7afd926a12c1 + dce_ast: 16c2fdb8b1ecbc7e81d783f3f0419531efb80efc379009c3285c7afd926a12c1 bytecode: e31bed8381ccd85c771e3eba7b52867ed99d7cfbfadf9fed69211d5a815f89e2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/sub.out b/tests/expectations/compiler/field/sub.out index 990f8df1fd..cceb008c93 100644 --- a/tests/expectations/compiler/field/sub.out +++ b/tests/expectations/compiler/field/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3064fc6761365aa5a2492c8c7e1a6160db032c9eb28a53908daddeb90e905025 - type_checked_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - unrolled_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - initial_ast: 7229204ebc2ce07f033b6c8fdeade487d4999567ca9713d1cf78384c06314501 - unrolled_ast: 7229204ebc2ce07f033b6c8fdeade487d4999567ca9713d1cf78384c06314501 - ssa_ast: cd198d8a212d4487436f7368cdb01bc6b4b6c09377d56693b8cff2ec3c8a8058 - flattened_ast: b7a89c4030901e3405e3dee3b0eb125fab05c7e24801925a9d7535d6b033e5cc - destructured_ast: 3b426e50611fa48b869b4213d9b87bb6c7ebdc3959a008241470e459d7983294 - inlined_ast: 3b426e50611fa48b869b4213d9b87bb6c7ebdc3959a008241470e459d7983294 - dce_ast: 3b426e50611fa48b869b4213d9b87bb6c7ebdc3959a008241470e459d7983294 + - initial_symbol_table: 781e98a425e5a4cccdfa0cf282b9fa61aab03fabd2dce93473005944a59497ac + type_checked_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + unrolled_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + initial_ast: bdf88c463a903cff4f4090ff85714e895ecd18a4c6744d6f81fbc11deeab2889 + unrolled_ast: bdf88c463a903cff4f4090ff85714e895ecd18a4c6744d6f81fbc11deeab2889 + ssa_ast: 437b7c54e3fa5620356c8b602c94b71a36c7f29432ea463d0d2340f8159f927f + flattened_ast: f1a4ce6c833ddb040a882c50fc903e43bbd7a233904cb6f9dc6e5e59be0cd9ad + destructured_ast: 77cfb286ccb92b64520971146ca5afb04b1356ac75a24c23d6ab8663c89515e0 + inlined_ast: 77cfb286ccb92b64520971146ca5afb04b1356ac75a24c23d6ab8663c89515e0 + dce_ast: 77cfb286ccb92b64520971146ca5afb04b1356ac75a24c23d6ab8663c89515e0 bytecode: ad633a49970484d1285719af828974f068669c6aef5a1d0e6471cc1285469d09 errors: "" warnings: "" diff --git a/tests/expectations/compiler/field/ternary.out b/tests/expectations/compiler/field/ternary.out index 49abfe089f..588bb587f2 100644 --- a/tests/expectations/compiler/field/ternary.out +++ b/tests/expectations/compiler/field/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3064fc6761365aa5a2492c8c7e1a6160db032c9eb28a53908daddeb90e905025 - type_checked_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - unrolled_symbol_table: 5e2c56eb40e5ddfdc4bfc9dc36158553c9e772508a105aa351be0a92f1005cbd - initial_ast: c7253e34662450f403db86b1c43cfe10a1cf7e35c54fbadfa0ac8d5cfa3fe5c1 - unrolled_ast: c7253e34662450f403db86b1c43cfe10a1cf7e35c54fbadfa0ac8d5cfa3fe5c1 - ssa_ast: c93cd63bfd99d83ad31c5b2082c90778819cc25a40fd7c1ddaffaf6ea0102ed6 - flattened_ast: eca8bde0228c6eeab5fed70cead63ba5d988de3cbd46f3b01c8cfb823508b931 - destructured_ast: a83cb020ea05ab594f7d9f4b7709dd733043755ba8098bb0ba7fe610b0741f08 - inlined_ast: a83cb020ea05ab594f7d9f4b7709dd733043755ba8098bb0ba7fe610b0741f08 - dce_ast: a83cb020ea05ab594f7d9f4b7709dd733043755ba8098bb0ba7fe610b0741f08 + - initial_symbol_table: 781e98a425e5a4cccdfa0cf282b9fa61aab03fabd2dce93473005944a59497ac + type_checked_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + unrolled_symbol_table: 3289d570e78479443be89cada79ae9adad222f4f63835001c8de724b3e03b73d + initial_ast: bdd52b18b3d2d74fbbd5dfeee4b2b90153c138f59e3b4d35d7dc0a489f6fe122 + unrolled_ast: bdd52b18b3d2d74fbbd5dfeee4b2b90153c138f59e3b4d35d7dc0a489f6fe122 + ssa_ast: af3569476f67bb9abb7c657d7438179b52cc644c3cc2fddc71f66512eeed20f5 + flattened_ast: 2c5e9383c8ad46757573ff4d0e1acbb58845e304f1bd2d12fcf2931c76c24aed + destructured_ast: 02e6537df248e92ff5afa35fe9e269bf22926b6503050ff80e2505e91356caa1 + inlined_ast: 02e6537df248e92ff5afa35fe9e269bf22926b6503050ff80e2505e91356caa1 + dce_ast: 02e6537df248e92ff5afa35fe9e269bf22926b6503050ff80e2505e91356caa1 bytecode: 483aebac4ea170dd82b9056a667b2be13c0b9e0b957a151e5f833e0119f7650b errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/block_height.out b/tests/expectations/compiler/finalize/block_height.out index fc3e04d48a..496a3756f7 100644 --- a/tests/expectations/compiler/finalize/block_height.out +++ b/tests/expectations/compiler/finalize/block_height.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9a9ec08651d7410cb277083715a4a58af2ee09eea8da31cc1942bd0ca17e744 - type_checked_symbol_table: 21a0fc511e08b84fa3599faf88f33d063db86e4e2593b7927d75ba838d584cb2 - unrolled_symbol_table: 21a0fc511e08b84fa3599faf88f33d063db86e4e2593b7927d75ba838d584cb2 - initial_ast: 16747bc5d78708a85d70370654139c084fc3bdae5a9c8658ccaafb42a3807b66 - unrolled_ast: 16747bc5d78708a85d70370654139c084fc3bdae5a9c8658ccaafb42a3807b66 - ssa_ast: 07d88cb5734df3c87e7a7cfb6b45d53594fa1e011cd6c7d5dc9ce8f1cc6cbf5b - flattened_ast: e5cb616276daeb2405f438ad76b2ffe7df780c71a99a1b974723b07d26b7590b - destructured_ast: 8b7c5324449fdb8d21682fe50a06315f69f86240d67774cc07dcb46e41ffa2d8 - inlined_ast: 8b7c5324449fdb8d21682fe50a06315f69f86240d67774cc07dcb46e41ffa2d8 - dce_ast: 8b7c5324449fdb8d21682fe50a06315f69f86240d67774cc07dcb46e41ffa2d8 - bytecode: 6e4a8aeaf3eabc361bf427126c0a7f35c64030fb9c8f66e178c7c05bbede1c48 + - initial_symbol_table: 23c520620e5c7cdc66539d8d90c44259145d2ffc21d1a6f18661c85010f96c3a + type_checked_symbol_table: d7657b0227137ca8407a90509503a954c6b8e72b40da67122a12613adac74f3a + unrolled_symbol_table: d7657b0227137ca8407a90509503a954c6b8e72b40da67122a12613adac74f3a + initial_ast: 207c8773d796af86ab5fabfe28163640018d18aaeb828a9cca69812f80caf2f2 + unrolled_ast: 207c8773d796af86ab5fabfe28163640018d18aaeb828a9cca69812f80caf2f2 + ssa_ast: e052e23330dbeeb1c91842663902e8675d7c9ff49e6011d390b4e97c2fdac284 + flattened_ast: 2aaeb70f5c70c5e2ec3b5307180363f7e644eb1de9e2e93e172cb742c9299694 + destructured_ast: cd626427b5176a0758bcd51ab05153539d8bd7a6f2348a351c5c29bbbccee572 + inlined_ast: 996c507ca44d176862ed80439687d706d1c5b4e2cb26623a95490272dc1057e1 + dce_ast: 996c507ca44d176862ed80439687d706d1c5b4e2cb26623a95490272dc1057e1 + bytecode: efd6cf31c0ed4b1053dc7c99ebdea0147343fb8a2cb187d24a345e08debc169b errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/block_height_fail.out b/tests/expectations/compiler/finalize/block_height_fail.out index 72eec75d94..5128b60e5b 100644 --- a/tests/expectations/compiler/finalize/block_height_fail.out +++ b/tests/expectations/compiler/finalize/block_height_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372035]: `block.height` must be inside a finalize block.\n --> compiler-test:5:33\n |\n 5 | assert_eq(height, block.height);\n | ^^^^^^\n" + - "Error [ETYC0372034]: `block.height` must be inside an async function block.\n --> compiler-test:5:33\n |\n 5 | assert_eq(height, block.height);\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/closure_with_finalize_fail.out b/tests/expectations/compiler/finalize/closure_with_finalize_fail.out index 23edc142d5..ca09169fae 100644 --- a/tests/expectations/compiler/finalize/closure_with_finalize_fail.out +++ b/tests/expectations/compiler/finalize/closure_with_finalize_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372036]: Cannot use a `finalize` statement without a `finalize` block.\n --> compiler-test:5:9\n |\n 5 | return a + b then finalize(a, b);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372044]: Function must contain a `finalize` statement on all execution paths.\n --> compiler-test:8:5\n |\n 8 | function bar(a: u8, b: u8) -> u8 {\n 9 | return a + b;\n 10 | }\n | ^\nError [ETYC0372031]: Only transition functions can have a `finalize` block.\n --> compiler-test:12:5\n |\n 12 | finalize bar(a: u8, b: u8) -> u8 {\n 13 | return a + b;\n 14 | }\n | ^\n |\n = Remove the `finalize` block or use the keyword `transition` instead of `function`.\nError [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:12:5\n |\n 12 | finalize bar(a: u8, b: u8) -> u8 {\n 13 | return a + b;\n 14 | }\n | ^\nError [ETYC0372031]: Only transition functions can have a `finalize` block.\n --> compiler-test:21:5\n |\n 21 | finalize mint_public(receiver: address, amount: u64) {\n 22 | Mapping::set(account, receiver, amount);\n 23 | }\n | ^\n |\n = Remove the `finalize` block or use the keyword `transition` instead of `function`.\nError [ETYC0372005]: Unknown variable `account`\n --> compiler-test:22:22\n |\n 22 | Mapping::set(account, receiver, amount);\n | ^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [EPAR0370005]: expected ; -- found 'then'\n --> compiler-test:5:22\n |\n 5 | return a + b then finalize(a, b);\n | ^^^^" diff --git a/tests/expectations/compiler/finalize/contains.out b/tests/expectations/compiler/finalize/contains.out index 80988c9b8f..6274bddc95 100644 --- a/tests/expectations/compiler/finalize/contains.out +++ b/tests/expectations/compiler/finalize/contains.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2ae3af1955de3055ad1c14fb3fc57e084a948b40a3299001a2f6813044bbabf7 - type_checked_symbol_table: 761bdac2c7043ce1dbc2e69d21e8435beecca3a8a73e5a00a48e914bc796634a - unrolled_symbol_table: 761bdac2c7043ce1dbc2e69d21e8435beecca3a8a73e5a00a48e914bc796634a - initial_ast: 2ad7be1423d5805bb25c86c0f1682e6d5f4fac77f7f71bfac50f63597fad27d8 - unrolled_ast: 2ad7be1423d5805bb25c86c0f1682e6d5f4fac77f7f71bfac50f63597fad27d8 - ssa_ast: b9b9b1b90bd053e61f0f57e01523719bc6d5e8b9bf15f900b0a7489d038b9065 - flattened_ast: 48305e5780efcbf85bb6dfffcbcc6d943310cf499e82349283ab13d0058f6ef4 - destructured_ast: cb5ad5d1894ee3618996b30632c5cd4d13a88fa99e47d804fab8eae6d5f9792c - inlined_ast: cb5ad5d1894ee3618996b30632c5cd4d13a88fa99e47d804fab8eae6d5f9792c - dce_ast: cb5ad5d1894ee3618996b30632c5cd4d13a88fa99e47d804fab8eae6d5f9792c - bytecode: 2560848929684abb429a7de8a2ff0368fa2ea939f25ae84851be67374b652e8e + - initial_symbol_table: a03b039d5c94cc3063a364063f293051661dab87e9179d0241b14473d2f379fd + type_checked_symbol_table: a5388460e61b45cc12bbe7f06d5a5c81bda39153d45d11bacb0348a8650301c7 + unrolled_symbol_table: a5388460e61b45cc12bbe7f06d5a5c81bda39153d45d11bacb0348a8650301c7 + initial_ast: 2aa12e53e65e44e955a66938247469cc32eeee2a556ecf9bd750ed94ca79366e + unrolled_ast: 2aa12e53e65e44e955a66938247469cc32eeee2a556ecf9bd750ed94ca79366e + ssa_ast: 91ee704b157d546e69d33730402117725ffb5e0dc51656124e6a1fabc9383c23 + flattened_ast: a568f26893adff66b6184acea108da3162235018a32a1fb58262047d2c34cd71 + destructured_ast: 4ff35049bec0b9f3c548de1c07339ee8ae119c8cb7d0acbbc385f71ba59fb70f + inlined_ast: f2c64858adabe6a59859598121898433463bf04554f226536a652df5945290a7 + dce_ast: f2c64858adabe6a59859598121898433463bf04554f226536a652df5945290a7 + bytecode: 167f0db95f7c2be39c98ed17fde82214d5ca6afe1722a91d359dd7a801bad418 errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/decrement_via_get_set.out b/tests/expectations/compiler/finalize/decrement_via_get_set.out index 2e2e312514..db2f613cf8 100644 --- a/tests/expectations/compiler/finalize/decrement_via_get_set.out +++ b/tests/expectations/compiler/finalize/decrement_via_get_set.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ce1ed855fe151e330567bc6f3f186bda40123cf39c8f56187070b71af1253e30 - type_checked_symbol_table: 9dc6b157431d5c451e70cbb8add3052daa4cd9b1c8d642248479758a0844184d - unrolled_symbol_table: 9dc6b157431d5c451e70cbb8add3052daa4cd9b1c8d642248479758a0844184d - initial_ast: 23862093168d7b6f5f3a57c674bfcccd443f4e9bb5d69653310a458c8f897e51 - unrolled_ast: 23862093168d7b6f5f3a57c674bfcccd443f4e9bb5d69653310a458c8f897e51 - ssa_ast: d392caa85d17be16322c6c18813fb10c2065c8075499f158e197c7ef39e98034 - flattened_ast: 97b5bccca4b6661e67b74a89416341f4f779c6aee94969d17ae375195f22a35e - destructured_ast: a616ed11e77eaefc515602dfad1fcb451b536ffe7ef9be448253604730aead43 - inlined_ast: a616ed11e77eaefc515602dfad1fcb451b536ffe7ef9be448253604730aead43 - dce_ast: a616ed11e77eaefc515602dfad1fcb451b536ffe7ef9be448253604730aead43 - bytecode: bbef5ec539b8616fe91e41c03c8ea6a71dfd3cb9731e634919bc8356e6664594 + - initial_symbol_table: c53613899322551edff2f353d5506474fd374b1898786c5971d12c5bb597181e + type_checked_symbol_table: 08a550c993afdca66f98b9afd5e885779dcbccc10d8230a3f3f55592dbad881a + unrolled_symbol_table: 08a550c993afdca66f98b9afd5e885779dcbccc10d8230a3f3f55592dbad881a + initial_ast: af5d403a99f562b7e7ea8848681036aa8583ecdf84c72caadcde4a736e6517ac + unrolled_ast: af5d403a99f562b7e7ea8848681036aa8583ecdf84c72caadcde4a736e6517ac + ssa_ast: 3001e9c42d1f139b4600bdd668a517a6b3d21ee3af6e68a25407cf37e07a0475 + flattened_ast: d2fd17e59e6d137cc2d34a76f9d8a61bdee0f389bef477d9b632c72737250870 + destructured_ast: 192db782f618ecdbb96fedf132bcdfa9a53198745536baa52379bb9413dfa759 + inlined_ast: ddc76f2af7c8753d48a474baa1ab5d13576cff8468c5fd76c9b449e161e68e78 + dce_ast: ddc76f2af7c8753d48a474baa1ab5d13576cff8468c5fd76c9b449e161e68e78 + bytecode: 2d6d813315ed6124a9d165422f7eab08f392cae110767d6b7fbdbfcaca4e5bcf errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/empty_finalize_fail.out b/tests/expectations/compiler/finalize/empty_finalize_fail.out index 8affb83e06..3c256b97d4 100644 --- a/tests/expectations/compiler/finalize/empty_finalize_fail.out +++ b/tests/expectations/compiler/finalize/empty_finalize_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372039]: A finalize block cannot be empty.\n --> compiler-test:9:5\n |\n 9 | finalize mint_public (public receiver: address, public amount: u64) {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372037]: An async function call block cannot be empty.\n --> compiler-test:9:80\n |\n 9 | async function finalize_mint(public receiver: address, public amount: u64) {}\n | ^^\n" diff --git a/tests/expectations/compiler/finalize/finalize.out b/tests/expectations/compiler/finalize/finalize.out index 0e6e74d8fd..0f1210eb0b 100644 --- a/tests/expectations/compiler/finalize/finalize.out +++ b/tests/expectations/compiler/finalize/finalize.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 847ac6681d28871b3364962661895242f722ea0eb112f4d8aa7f46e3635906da - type_checked_symbol_table: 4d5f5a2edeca7dcfa8edfa563851005c61e873dd0ff1114edfb21459b71f320d - unrolled_symbol_table: 4d5f5a2edeca7dcfa8edfa563851005c61e873dd0ff1114edfb21459b71f320d - initial_ast: c4cfdb6b18bab53edad57dd2d80e86fe08ad84f5385caeac73356aa7b8f95e3a - unrolled_ast: c4cfdb6b18bab53edad57dd2d80e86fe08ad84f5385caeac73356aa7b8f95e3a - ssa_ast: e9877652a93ad8c89ec1a61c8cef8f1eb83e8252d79e0a3ca7ea3611f9e162f7 - flattened_ast: c9937b78596e9675922c3ed2143ea249557cbc6ae260f5cb7ce98e3ecea1f77d - destructured_ast: 866bbb287d3fa10c53aba3e86c6247763b8a4bc19672c512872beb036b5178c5 - inlined_ast: 866bbb287d3fa10c53aba3e86c6247763b8a4bc19672c512872beb036b5178c5 - dce_ast: 866bbb287d3fa10c53aba3e86c6247763b8a4bc19672c512872beb036b5178c5 - bytecode: 33d8ca1b78918f26980919a4a8b332fb9b375ac476b64636a387fdab715d4ed9 + - initial_symbol_table: 7a56c8d65b11d7a0a80b769f970507d84914e50ef3d14fcca5bbb9d978174747 + type_checked_symbol_table: 0f44d95ae606740ffe450ee643f09e5388c56740b2daea34bf0b5b3c46c67e9a + unrolled_symbol_table: 0f44d95ae606740ffe450ee643f09e5388c56740b2daea34bf0b5b3c46c67e9a + initial_ast: 328e7d8988867c6d52478a2c3952f75d1242d86d49eb8170d18c42eed3dc4299 + unrolled_ast: 328e7d8988867c6d52478a2c3952f75d1242d86d49eb8170d18c42eed3dc4299 + ssa_ast: 29f93cf07a9de564da9a4400a852cfc9584e4b26c4f499654e3f461f6c3e45ac + flattened_ast: f3a3bb9d04dba0b18bcbfbd345311e2e94fd9827a7bb54114af369d7922b835e + destructured_ast: a1389de666f1e28c1e95f1e0cbd7214f6a627027c3b25269f78eb4c38bd9bb77 + inlined_ast: 0fc9e70d7106894cfade352f1c9d98ea5a668420de42b0554177cf3a6c0c9206 + dce_ast: 0fc9e70d7106894cfade352f1c9d98ea5a668420de42b0554177cf3a6c0c9206 + bytecode: a146226b7799224cc098e11a978dd80923ab5abe74d33fcbf62e729d130ac61d errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/finalize_fail.out b/tests/expectations/compiler/finalize/finalize_fail.out index 8817d5cca7..38ec912fa4 100644 --- a/tests/expectations/compiler/finalize/finalize_fail.out +++ b/tests/expectations/compiler/finalize/finalize_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372005]: Unknown function `increment`\n --> compiler-test:12:9\n |\n 12 | increment(account, receiver, amount);\n | ^^^^^^^^^\nError [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:19:5\n |\n 19 | finalize public_adder(a: u8, b: u8) -> public u8 {\n 20 | return a + b;\n 21 | }\n | ^\nError [ETYC0372005]: Unknown function `increment`\n --> compiler-test:28:9\n |\n 28 | increment(values, 0u8, 1u8);\n | ^^^^^^^^^\nError [ETYC0372005]: Unknown function `increment`\n --> compiler-test:29:9\n |\n 29 | increment(account, self.caller, 1u64);\n | ^^^^^^^^^\nWarning [WPAR0370001]: The keyword `increment` is deprecated.\n --> compiler-test:12:9\n |\n 12 | increment(account, receiver, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Use `Mapping::{get, get_or_use, set, remove, contains}` for manipulating on-chain mappings.\nWarning [WPAR0370001]: The keyword `increment` is deprecated.\n --> compiler-test:28:9\n |\n 28 | increment(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Use `Mapping::{get, get_or_use, set, remove, contains}` for manipulating on-chain mappings.\nWarning [WPAR0370001]: The keyword `increment` is deprecated.\n --> compiler-test:29:9\n |\n 29 | increment(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Use `Mapping::{get, get_or_use, set, remove, contains}` for manipulating on-chain mappings." + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> compiler-test:8:21\n |\n 8 | return then finalize(receiver, amount);\n | ^^^^^^^^" diff --git a/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out b/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out index fb70913974..d69ff4f05e 100644 --- a/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out +++ b/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372032]: An input to a finalize block must be public.\n --> compiler-test:10:62\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n | ^^^^^^\n |\n = Use a `public` modifier to the input variable declaration or remove the visibility modifier entirely.\nError [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:10:5\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n 11 | Mapping::set(account, receiver, amount);\n 12 | }\n | ^\nError [ETYC0372033]: An output from a finalize block must be public.\n --> compiler-test:10:87\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n | ^^^\n |\n = Use a `public` modifier to the output type declaration or remove the visibility modifier entirely.\nError [ETYC0372038]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n 11 | Mapping::set(account, receiver, amount);\n 12 | }\n | ^\nError [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:18:5\n |\n 18 | finalize mint_public2(public receiver: address, amount: u64) -> u64 {\n 19 | Mapping::set(account, receiver, amount);\n 20 | return amount + amount;\n 21 | }\n | ^\n" + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> compiler-test:7:21\n |\n 7 | return then finalize(receiver, amount);\n | ^^^^^^^^" diff --git a/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out b/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out index 343ef7b6b3..d69ff4f05e 100644 --- a/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out +++ b/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:10:5\n |\n 10 | finalize mint_public(public receiver: address, public amount: u64) -> u64 {\n 11 | Mapping::set(account, receiver, amount);\n 12 | return 1u8 + 2u8;\n 13 | }\n | ^\nError [ETYC0372003]: Expected type `u64` but type `u8` was found\n --> compiler-test:12:16\n |\n 12 | return 1u8 + 2u8;\n | ^^^\nError [ETYC0372003]: Expected type `u64` but type `u8` was found\n --> compiler-test:12:22\n |\n 12 | return 1u8 + 2u8;\n | ^^^\n" + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> compiler-test:7:21\n |\n 7 | return then finalize(receiver, amount);\n | ^^^^^^^^" diff --git a/tests/expectations/compiler/finalize/finalize_missing_return_fail.out b/tests/expectations/compiler/finalize/finalize_missing_return_fail.out index 860588d214..6b11834c2d 100644 --- a/tests/expectations/compiler/finalize/finalize_missing_return_fail.out +++ b/tests/expectations/compiler/finalize/finalize_missing_return_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:11:5\n |\n 11 | finalize mint_public (public receiver: address, public amount: u64) -> u64 {\n 12 | Mapping::set(account, receiver, amount);\n 13 | }\n | ^\nError [ETYC0372038]: Function must return a value.\n --> compiler-test:11:5\n |\n 11 | finalize mint_public (public receiver: address, public amount: u64) -> u64 {\n 12 | Mapping::set(account, receiver, amount);\n 13 | }\n | ^\n" + - "Error [ETYC0372106]: An async function is not allowed to return a value.\n --> compiler-test:11:5\n |\n 11 | async function fin_mint(public receiver: address, public amount: u64) -> u64 {\n 12 | Mapping::set(account, receiver, amount);\n 13 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372036]: Function must return a value.\n --> compiler-test:11:5\n |\n 11 | async function fin_mint(public receiver: address, public amount: u64) -> u64 {\n 12 | Mapping::set(account, receiver, amount);\n 13 | }\n | ^\n" diff --git a/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out b/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out index 41173bd023..7073d4fad9 100644 --- a/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out +++ b/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372045]: `finalize` name `mint_public` does not match function name `mint_private`\n --> compiler-test:11:5\n |\n 11 | finalize mint_private (public receiver: address, public amount: u64) {\n 12 | Mapping::set(account, receiver, amount);\n 13 | }\n | ^\n" + - "Error [ETYC0372005]: Unknown function `finalize_mint_public`\n --> compiler-test:8:16\n |\n 8 | return finalize_mint_public(receiver, amount);\n | ^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372088]: An async transition must call an async function.\n --> compiler-test:7:5\n |\n 7 | async transition mint_public(public receiver: address, public amount: u64) -> Future {\n 8 | return finalize_mint_public(receiver, amount);\n 9 | }\n | ^\n |\n = Example: `async transition foo() -> Future { let a: Future = bar(); return await_futures(a); }`\nWarning [WTYC0372002]: The async function `finalize_mint_private` is never called by an async transition.\n --> compiler-test:11:5\n |\n 11 | async function finalize_mint_private (public receiver: address, public amount: u64) {\n 12 | Mapping::set(account, receiver, amount);\n 13 | }\n | ^" diff --git a/tests/expectations/compiler/finalize/finalize_returns_value_fail.out b/tests/expectations/compiler/finalize/finalize_returns_value_fail.out index f30b2bbc06..aab85d1e4b 100644 --- a/tests/expectations/compiler/finalize/finalize_returns_value_fail.out +++ b/tests/expectations/compiler/finalize/finalize_returns_value_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:8:5\n |\n 8 | finalize public_adder(a: u8, b: u8) -> public u8 {\n 9 | return a + b;\n 10 | }\n | ^\n" + - "Error [ETYC0372106]: An async function is not allowed to return a value.\n --> compiler-test:8:5\n |\n 8 | async function finalize_public_adder(a: u8, b: u8) -> public u8 {\n 9 | return a + b;\n 10 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\n" diff --git a/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out b/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out index 6d62dcb0e7..f7d86c8cb6 100644 --- a/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out +++ b/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372042]: `finalize` expected `2` args, but got `3`\n --> compiler-test:8:9\n |\n 8 | return then finalize(receiver, amount, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372006]: Call expected `2` args, but got `3`\n --> compiler-test:8:16\n |\n 8 | return finalize_mint_public(receiver, amount, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/finalize_with_method_calls.out b/tests/expectations/compiler/finalize/finalize_with_method_calls.out index ad51b6efde..49219ddb74 100644 --- a/tests/expectations/compiler/finalize/finalize_with_method_calls.out +++ b/tests/expectations/compiler/finalize/finalize_with_method_calls.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b80193083c4cb8c674b1c93753c56fc684676a7e6da1829ca7dbb00f22c87435 - type_checked_symbol_table: 8c0562c9af98ab5ace687a727271614d9e8296aa7f3de606b9a577d8dbdcd07a - unrolled_symbol_table: 8c0562c9af98ab5ace687a727271614d9e8296aa7f3de606b9a577d8dbdcd07a - initial_ast: 1fffd7f9f23d900652ad502de76e580bbaa9dc68c2ae95e8ce43ed7212f6c9f2 - unrolled_ast: 1fffd7f9f23d900652ad502de76e580bbaa9dc68c2ae95e8ce43ed7212f6c9f2 - ssa_ast: ef8353a914d5612175e95acfee3af6b57f9f0a749ba454b3a67b5dca4d3af65c - flattened_ast: 84ad39da600b2a054c4233e3f00c6e8faf3208fded492cc990693333bf634947 - destructured_ast: 7d3854ed5c983016eb32f8420908427e4918692c1e6b24449276c35cafd12040 - inlined_ast: 7d3854ed5c983016eb32f8420908427e4918692c1e6b24449276c35cafd12040 - dce_ast: 7d3854ed5c983016eb32f8420908427e4918692c1e6b24449276c35cafd12040 - bytecode: e9bcea998f0ff492fb57deabfcf08c4ed3f854880b595f17c9aa89181feb3764 + - initial_symbol_table: 6c9c3ff25f58feeb1273af3c3bf92b2edc13f9508defd63d040b339f417414ae + type_checked_symbol_table: 0e1e772c0a5657778f22c52ee56fd231213c3f721b8dcde1e9713f8859002952 + unrolled_symbol_table: 0e1e772c0a5657778f22c52ee56fd231213c3f721b8dcde1e9713f8859002952 + initial_ast: 653b99dcefa9b5114e5237d84d9a4cb4a0f5d1e19c7297ba5e5c1742bdc4ff84 + unrolled_ast: 653b99dcefa9b5114e5237d84d9a4cb4a0f5d1e19c7297ba5e5c1742bdc4ff84 + ssa_ast: 41f41f0b5a37a3d39a3f8bea2e280bf676a3abfdf1b7b6008192be51d766763f + flattened_ast: 63f6fee71fa45c437d3dcee9a035a2320eeab300eded4dcbc1eed5b530df58fa + destructured_ast: 43890c35ec6be850f7a93238ae4aba099ee908a5b18f5c322c574fd770381fb4 + inlined_ast: 9f10c4b3d9551d9ff6d382526cec3fac62d4d3d2d19776752d1df5a8ebed50a5 + dce_ast: 9f10c4b3d9551d9ff6d382526cec3fac62d4d3d2d19776752d1df5a8ebed50a5 + bytecode: c9efd41503bd559059cb4b5101eebd99917818e3a0def6062fc1f82d0cf66845 errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/finalize_with_return.out b/tests/expectations/compiler/finalize/finalize_with_return.out index 9db2edcd90..b41275e213 100644 --- a/tests/expectations/compiler/finalize/finalize_with_return.out +++ b/tests/expectations/compiler/finalize/finalize_with_return.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:11:5\n |\n 11 | finalize mint_public (public receiver: address, public amount: u64) -> u64 {\n 12 | Mapping::set(account, receiver, amount);\n 13 | return amount;\n 14 | }\n | ^\nError [ETYC0372071]: A finalize block cannot return a value.\n --> compiler-test:18:7\n |\n 18 | } finalize public_adder(a: u8, b: u8) -> public u8 {\n 19 | return a + b;\n 20 | }\n | ^\n" + - "Error [ETYC0372106]: An async function is not allowed to return a value.\n --> compiler-test:11:5\n |\n 11 | async function finalize_mint_public (public receiver: address, public amount: u64) -> u64 {\n 12 | Mapping::set(account, receiver, amount);\n 13 | return amount;\n 14 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\nError [ETYC0372106]: An async function is not allowed to return a value.\n --> compiler-test:18:7\n |\n 18 | } async function finalize_public_adder(a: u8, b: u8) -> public u8 {\n 19 | return a + b;\n 20 | }\n | ^\n |\n = Remove an output type in the function signature, and remove the return statement from the function. Note that the future returned by async functions is automatically inferred, and must not be explicitly written.\n" diff --git a/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out b/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out index fdc5c61b63..a8d88b70d7 100644 --- a/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out +++ b/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372044]: Function must contain a `finalize` statement on all execution paths.\n --> compiler-test:6:5\n |\n 6 | transition mint_public(public receiver: address, public amount: u64) {\n 7 | \n 8 | }\n | ^\n" + - "Error [ETYC0372088]: An async transition must call an async function.\n --> compiler-test:6:5\n |\n 6 | async transition mint_public(public receiver: address, public amount: u64) {\n 7 | \n 8 | }\n | ^\n |\n = Example: `async transition foo() -> Future { let a: Future = bar(); return await_futures(a); }`\nWarning [WTYC0372002]: The async function `finalize_mint_public` is never called by an async transition.\n --> compiler-test:10:5\n |\n 10 | async function finalize_mint_public (public receiver: address, public amount: u64) {\n 11 | Mapping::set(account, receiver, amount);\n 12 | }\n | ^" diff --git a/tests/expectations/compiler/finalize/get_incorrect_type_fail.out b/tests/expectations/compiler/finalize/get_incorrect_type_fail.out index b578c81be1..27e7f253be 100644 --- a/tests/expectations/compiler/finalize/get_incorrect_type_fail.out +++ b/tests/expectations/compiler/finalize/get_incorrect_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372030]: A mapping's value cannot be a record\n --> compiler-test:10:5\n |\n 10 | mapping tokens: address => Token;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `boolean`\n --> compiler-test:17:30\n |\n 17 | Mapping::get(tokens, true);\n | ^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `boolean`\n --> compiler-test:18:20\n |\n 18 | tokens.get(true);\n | ^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:31\n |\n 19 | Mapping::get(amounts, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:20:21\n |\n 20 | amounts.get(1u8);\n | ^^^\n" + - "Error [ETYC0372031]: A mapping's value cannot be a record\n --> compiler-test:10:5\n |\n 10 | mapping tokens: address => Token;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `boolean`\n --> compiler-test:17:30\n |\n 17 | Mapping::get(tokens, true);\n | ^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `boolean`\n --> compiler-test:18:20\n |\n 18 | tokens.get(true);\n | ^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:31\n |\n 19 | Mapping::get(amounts, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:20:21\n |\n 20 | amounts.get(1u8);\n | ^^^\n" diff --git a/tests/expectations/compiler/finalize/get_or_incorrect_type_fail.out b/tests/expectations/compiler/finalize/get_or_incorrect_type_fail.out index ab45fefbe8..06b88049f2 100644 --- a/tests/expectations/compiler/finalize/get_or_incorrect_type_fail.out +++ b/tests/expectations/compiler/finalize/get_or_incorrect_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372030]: A mapping's value cannot be a record\n --> compiler-test:10:5\n |\n 10 | mapping tokens: address => Token;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:17:43\n |\n 17 | Mapping::get_or_use(tokens, addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:18:33\n |\n 18 | tokens.get_or_use(addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:38\n |\n 19 | Mapping::get_or_use(amounts, 1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:20:28\n |\n 20 | amounts.get_or_use(1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:21:44\n |\n 21 | Mapping::get_or_use(amounts, addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:22:34\n |\n 22 | amounts.get_or_use(addr, 1u8);\n | ^^^\nError [ETYC0372003]: Expected type `u128` but type `u8` was found\n --> compiler-test:23:72\n |\n 23 | Mapping::get_or_use(tokens, addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372003]: Expected type `u128` but type `u8` was found\n --> compiler-test:24:62\n |\n 24 | tokens.get_or_use(addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:25:29\n |\n 25 | Mapping::get_or_use(foo, addr, amount);\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:26:9\n |\n 26 | foo.get_or_use(addr, amount);\n | ^^^\n" + - "Error [ETYC0372031]: A mapping's value cannot be a record\n --> compiler-test:10:5\n |\n 10 | mapping tokens: address => Token;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:17:43\n |\n 17 | Mapping::get_or_use(tokens, addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:18:33\n |\n 18 | tokens.get_or_use(addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:38\n |\n 19 | Mapping::get_or_use(amounts, 1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:20:28\n |\n 20 | amounts.get_or_use(1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:21:44\n |\n 21 | Mapping::get_or_use(amounts, addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:22:34\n |\n 22 | amounts.get_or_use(addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `u128`\n --> compiler-test:23:72\n |\n 23 | Mapping::get_or_use(tokens, addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `u128`\n --> compiler-test:24:62\n |\n 24 | tokens.get_or_use(addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:25:29\n |\n 25 | Mapping::get_or_use(foo, addr, amount);\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:26:9\n |\n 26 | foo.get_or_use(addr, amount);\n | ^^^\n" diff --git a/tests/expectations/compiler/finalize/increment_via_get_set.out b/tests/expectations/compiler/finalize/increment_via_get_set.out index 1e4a14bdec..d6bc109294 100644 --- a/tests/expectations/compiler/finalize/increment_via_get_set.out +++ b/tests/expectations/compiler/finalize/increment_via_get_set.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 577b8865f276e736edef05104906d98bcce956544480abaa86ef8ffb4c4ed75b - type_checked_symbol_table: 8816f12fb66e59417256bf15681064fc7b301a811662aaf0dda1c34e97f1877c - unrolled_symbol_table: 8816f12fb66e59417256bf15681064fc7b301a811662aaf0dda1c34e97f1877c - initial_ast: cce69e6030357b055c442fc74e512ec5d01d3cb752a6a70e924812ba9136d193 - unrolled_ast: cce69e6030357b055c442fc74e512ec5d01d3cb752a6a70e924812ba9136d193 - ssa_ast: 67ac35d3e2bd3642a4cc1b247b0f9bc067a09f6571bbe484fe27116faf8d9df3 - flattened_ast: 789b7f7363a1510387e86395da1c01995fd2660c111184b5e827f866c116ae92 - destructured_ast: 5ef10faaba4377cf6af18c35d6a517bf60981e2761507cdbc46513c982b09a7f - inlined_ast: 5ef10faaba4377cf6af18c35d6a517bf60981e2761507cdbc46513c982b09a7f - dce_ast: 5ef10faaba4377cf6af18c35d6a517bf60981e2761507cdbc46513c982b09a7f - bytecode: 10e754c190939dcffa342c5eef2be0dcb73ef1a9b4391a99e963db6dc61bd38a + - initial_symbol_table: c9a0373dcea237ccc8dd41dfc4c39400eee952d702ab0b2a8697dd0e9aa64b33 + type_checked_symbol_table: 032589815e005e85a855fec90639ec1e69dc01f6b2a793f9c42583335f710afe + unrolled_symbol_table: 032589815e005e85a855fec90639ec1e69dc01f6b2a793f9c42583335f710afe + initial_ast: 8b044cf269c10c69888385cb431368c312dc1240aea2dfe25eb327d470b5332a + unrolled_ast: 8b044cf269c10c69888385cb431368c312dc1240aea2dfe25eb327d470b5332a + ssa_ast: 33b2b045049e06fe7ab0919b616b2bd33097777dc46cc45ce21f2314eebcc752 + flattened_ast: e5c8bbc2672885271ad3de13ea19aa36827d8f326a833689e7ceb754d2c97b1e + destructured_ast: 1ef6fca4d89c40ef5263259e4cfeb27072a7535840e4475992af8649c617f96d + inlined_ast: 5e45ffa292250ff139803c5796e75350c92e129b5028db59fe3b5c7a12fcc222 + dce_ast: 5e45ffa292250ff139803c5796e75350c92e129b5028db59fe3b5c7a12fcc222 + bytecode: b4f8e195256812d62d49c09bb152bf956c95cd2e8375eff8c4bee84d176a2cc5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/inline_in_finalize.out b/tests/expectations/compiler/finalize/inline_in_finalize.out index 2bbd3bc5dc..a682f96063 100644 --- a/tests/expectations/compiler/finalize/inline_in_finalize.out +++ b/tests/expectations/compiler/finalize/inline_in_finalize.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6754312fbddd0a41ab494ef8d343c6e2a6723812537a36561cecd6fbbd52e0d7 - type_checked_symbol_table: eb81d3475298e8283a7d66cc51896a8e3710c20606adebf5b3a5a07f77e00349 - unrolled_symbol_table: eb81d3475298e8283a7d66cc51896a8e3710c20606adebf5b3a5a07f77e00349 - initial_ast: ac1db52af8950a8990e1b90126556c6789578677fb131c34bcda4507f014d3af - unrolled_ast: ac1db52af8950a8990e1b90126556c6789578677fb131c34bcda4507f014d3af - ssa_ast: 54716ea4fa3994b0d07b18da23de3026c4600255dab1d86eecde06805c8c407c - flattened_ast: 874d9ddaed9e40ca320d178d8b66281806b33764c391c3551067d084d6a68c84 - destructured_ast: e6ce7fa9bf424dcb7ce0ca75b83116a5ea1d030b3a73617fbf7a4d4e839164a2 - inlined_ast: 45750109c4a1350a9c2886c44b6e18de606251fcc3d594c3e0ea3768b3a825d8 - dce_ast: 45750109c4a1350a9c2886c44b6e18de606251fcc3d594c3e0ea3768b3a825d8 - bytecode: 643990908e94b8c16515df0d5dcd64918c17b356ad82d652cd9d6504089c49f0 + - initial_symbol_table: cfff1224954ed83993ea7795afaeb91f12fa8f2c3d8973e3b296a7d5da6d2ed5 + type_checked_symbol_table: 201ce7f8a317e1b0e724ffcc6936a5663fa5cb4d1628826c1f42a1e3fa14a453 + unrolled_symbol_table: 201ce7f8a317e1b0e724ffcc6936a5663fa5cb4d1628826c1f42a1e3fa14a453 + initial_ast: 60c9f87cd4a9b5eb65547b16558d2fdc0d9eaba592d31300d7b191090cdcd152 + unrolled_ast: 60c9f87cd4a9b5eb65547b16558d2fdc0d9eaba592d31300d7b191090cdcd152 + ssa_ast: da8ea998b1ebcb90a9147c3e68d48b18c95409bcc6a82953125556ec37bb1b93 + flattened_ast: ac21b2c6e5ac04ef4bc1c76019bef460fb468d4c7b8a2e430716416a87fd1b3f + destructured_ast: 67c12720c1344d1d9e0a9f3ee3bc76168694f6985a1737d5070c7dbc483ad939 + inlined_ast: 189ca4b8577b38b59ca5060c2bf7f418551d9de97fcadecf6ca14620da4a03d5 + dce_ast: 189ca4b8577b38b59ca5060c2bf7f418551d9de97fcadecf6ca14620da4a03d5 + bytecode: 2fb2571e88289773df76468e6470aba403dd4f3e8fd48ec3f25c650a54e6402f errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/mapping.out b/tests/expectations/compiler/finalize/mapping.out index 06c54691eb..0e0974d5c1 100644 --- a/tests/expectations/compiler/finalize/mapping.out +++ b/tests/expectations/compiler/finalize/mapping.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1538b670829e5632e6e1ccabe745f3014ad80b9436efe29593b7d8b83caf5ff4 - type_checked_symbol_table: 3836ae29708904b0927cb9200c3829771aa3a7861293efe3581f62eb6c0100ff - unrolled_symbol_table: 3836ae29708904b0927cb9200c3829771aa3a7861293efe3581f62eb6c0100ff - initial_ast: 031ef6aaead58d45cbddc96e0c34d70cb23bbe2992e9acbe6098534a8af00f04 - unrolled_ast: 031ef6aaead58d45cbddc96e0c34d70cb23bbe2992e9acbe6098534a8af00f04 - ssa_ast: cab910162fc58c97ad816fdcb97fae9f9c616d411fd2b6d93c4bc71719461b99 - flattened_ast: bd0cef58179ab8354a8c7a097c2d180b7410d2470992b09afff7bdd94f71c536 - destructured_ast: b5caad28d1bf15768201178c53cb8554a6a6825ce7ef1d7f21e53f25286e42e2 - inlined_ast: b5caad28d1bf15768201178c53cb8554a6a6825ce7ef1d7f21e53f25286e42e2 - dce_ast: b5caad28d1bf15768201178c53cb8554a6a6825ce7ef1d7f21e53f25286e42e2 + - initial_symbol_table: 110a526f29c2aaed626dc13768f5e7d3136e94e1995922e43552d1a6a9071d84 + type_checked_symbol_table: a8543eed8b928c2202107e06105d0486d3da37e4eb99e71effc233a2796218a2 + unrolled_symbol_table: a8543eed8b928c2202107e06105d0486d3da37e4eb99e71effc233a2796218a2 + initial_ast: 4985990bfd8e9471152a370ae6012a7ee85744360e4c1f530f0208e63e6fd326 + unrolled_ast: 4985990bfd8e9471152a370ae6012a7ee85744360e4c1f530f0208e63e6fd326 + ssa_ast: e9f4f35ee414cdf184f4a1003308cb219cfe8039f4098f8b3067c1edae84b1eb + flattened_ast: 8c5d279e22fff4e9fec30bb2ba2ee26228d66770b18eb4539828640b4098675c + destructured_ast: 01fdd4bd99a63dde8f4cdf66e78bf0137ce86f4e43882df432f68ccaf384f6f3 + inlined_ast: 01fdd4bd99a63dde8f4cdf66e78bf0137ce86f4e43882df432f68ccaf384f6f3 + dce_ast: 01fdd4bd99a63dde8f4cdf66e78bf0137ce86f4e43882df432f68ccaf384f6f3 bytecode: 312c25062c283bf27a955dc0d7035c166da12e5e40eb55b9e6572af8750e0474 errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/mapping_fail.out b/tests/expectations/compiler/finalize/mapping_fail.out index b11a44e699..b677c8c875 100644 --- a/tests/expectations/compiler/finalize/mapping_fail.out +++ b/tests/expectations/compiler/finalize/mapping_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372030]: A mapping's key cannot be a tuple\n --> compiler-test:4:5\n |\n 4 | mapping foo: (u32, u32) => u32;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372017]: The type `baz` is not found in the current scope.\n --> compiler-test:6:5\n |\n 6 | mapping floo: baz => u8;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:8:5\n |\n 8 | mapping floop: foo => foo;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:8:5\n |\n 8 | mapping floop: foo => foo;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:10:5\n |\n 10 | mapping bar: foo => baz;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `baz` is not found in the current scope.\n --> compiler-test:10:5\n |\n 10 | mapping bar: foo => baz;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372030]: A mapping's value cannot be a record\n --> compiler-test:19:5\n |\n 19 | mapping real_tokens: address => RealToken;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372030]: A mapping's key cannot be a record\n --> compiler-test:21:5\n |\n 21 | mapping owners: RealToken => address;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372031]: A mapping's key cannot be a tuple\n --> compiler-test:4:5\n |\n 4 | mapping foo: (u32, u32) => u32;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372017]: The type `baz` is not found in the current scope.\n --> compiler-test:6:5\n |\n 6 | mapping floo: baz => u8;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:8:5\n |\n 8 | mapping floop: foo => foo;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:8:5\n |\n 8 | mapping floop: foo => foo;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:10:5\n |\n 10 | mapping bar: foo => baz;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `baz` is not found in the current scope.\n --> compiler-test:10:5\n |\n 10 | mapping bar: foo => baz;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372031]: A mapping's value cannot be a record\n --> compiler-test:19:5\n |\n 19 | mapping real_tokens: address => RealToken;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372031]: A mapping's key cannot be a record\n --> compiler-test:21:5\n |\n 21 | mapping owners: RealToken => address;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/mapping_operations_in_inline_fail.out b/tests/expectations/compiler/finalize/mapping_operations_in_inline_fail.out index 0a34d79183..bf8780c885 100644 --- a/tests/expectations/compiler/finalize/mapping_operations_in_inline_fail.out +++ b/tests/expectations/compiler/finalize/mapping_operations_in_inline_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:8:9\n |\n 8 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `Mapping::set` must be inside a finalize block.\n --> compiler-test:8:9\n |\n 8 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:9:9\n |\n 9 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `Mapping::get_or` must be inside a finalize block.\n --> compiler-test:9:9\n |\n 9 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:10:9\n |\n 10 | Mapping::get(values, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `Mapping::get` must be inside a finalize block.\n --> compiler-test:10:9\n |\n 10 | Mapping::get(values, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:14:9\n |\n 14 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `Mapping::set` must be inside a finalize block.\n --> compiler-test:14:9\n |\n 14 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:15:9\n |\n 15 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `Mapping::get_or` must be inside a finalize block.\n --> compiler-test:15:9\n |\n 15 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:16:9\n |\n 16 | Mapping::get(values, 0u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `Mapping::get` must be inside a finalize block.\n --> compiler-test:16:9\n |\n 16 | Mapping::get(values, 0u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372044]: Function must contain a `finalize` statement on all execution paths.\n --> compiler-test:13:5\n |\n 13 | inline bar() {\n 14 | Mapping::set(values, 0u8, 1u8);\n 15 | Mapping::get_or_use(account, self.caller, 1u64);\n 16 | Mapping::get(values, 0u8);\n 17 | }\n | ^\nError [ETYC0372031]: Only transition functions can have a `finalize` block.\n --> compiler-test:19:5\n |\n 19 | finalize finalize_no_params() {\n 20 | foo();\n 21 | bar();\n 22 | }\n | ^\n |\n = Remove the `finalize` block or use the keyword `transition` instead of `function`.\nError [ETYC0372045]: `finalize` name `bar` does not match function name `finalize_no_params`\n --> compiler-test:19:5\n |\n 19 | finalize finalize_no_params() {\n 20 | foo();\n 21 | bar();\n 22 | }\n | ^\nError [ETYC0372066]: Cyclic dependency between functions: `bar` --> `bar`\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:8:9\n |\n 8 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372034]: `Mapping::set` must be inside an async function block.\n --> compiler-test:8:9\n |\n 8 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:9:9\n |\n 9 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372034]: `Mapping::get_or` must be inside an async function block.\n --> compiler-test:9:9\n |\n 9 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:10:9\n |\n 10 | Mapping::get(values, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372034]: `Mapping::get` must be inside an async function block.\n --> compiler-test:10:9\n |\n 10 | Mapping::get(values, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:14:9\n |\n 14 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372034]: `Mapping::set` must be inside an async function block.\n --> compiler-test:14:9\n |\n 14 | Mapping::set(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:15:9\n |\n 15 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372034]: `Mapping::get_or` must be inside an async function block.\n --> compiler-test:15:9\n |\n 15 | Mapping::get_or_use(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:16:9\n |\n 16 | Mapping::get(values, 0u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372034]: `Mapping::get` must be inside an async function block.\n --> compiler-test:16:9\n |\n 16 | Mapping::get(values, 0u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\nWarning [WTYC0372002]: The async function `finalize_finalize_no_params` is never called by an async transition.\n --> compiler-test:19:5\n |\n 19 | async function finalize_finalize_no_params() {\n 20 | foo();\n 21 | bar();\n 22 | }\n | ^" diff --git a/tests/expectations/compiler/finalize/only_finalize_with_flattening.out b/tests/expectations/compiler/finalize/only_finalize_with_flattening.out index da628d3fc6..ecf82afdf9 100644 --- a/tests/expectations/compiler/finalize/only_finalize_with_flattening.out +++ b/tests/expectations/compiler/finalize/only_finalize_with_flattening.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1037eebfcb702a108733bdf8d4aa1a9c3f35ff6b9d2b1f78a44c4b99b59c7238 - type_checked_symbol_table: 01a3e4a3a41864cbca66a63ac761d0021300d4f74984c92c39a7bdaf5a56c03a - unrolled_symbol_table: 01a3e4a3a41864cbca66a63ac761d0021300d4f74984c92c39a7bdaf5a56c03a - initial_ast: 6726149bba858064439fc62c698f711c8456ecd1cbf764803b9dc89758928fd4 - unrolled_ast: 6726149bba858064439fc62c698f711c8456ecd1cbf764803b9dc89758928fd4 - ssa_ast: f8c8c864e1e09ffda9f3dea52d844e42b2612afcc08db547cbb10158af92371c - flattened_ast: f75ab90370cb169b567245bc4d92f18ae6713eea90b1e17fc0acce08e4ee5475 - destructured_ast: 1a71cdee50c0d5a7a392fefdf4bca6b1a7f91f7dcf6f9a54ffe53dac0540c8c6 - inlined_ast: 1a71cdee50c0d5a7a392fefdf4bca6b1a7f91f7dcf6f9a54ffe53dac0540c8c6 - dce_ast: 1a71cdee50c0d5a7a392fefdf4bca6b1a7f91f7dcf6f9a54ffe53dac0540c8c6 - bytecode: d1cb76177aa7ffcdc033855e2696b25791292c7c6b38fdc3c1e145dadc0f838a + - initial_symbol_table: 40daeecdcea7289dfbd0edb0a81bf0779b2d873e6f83772017d6c8297ceee19e + type_checked_symbol_table: 227effc2008da54d7dd266633e862f23fd99d08ce789f59acd05f030f23fa999 + unrolled_symbol_table: 227effc2008da54d7dd266633e862f23fd99d08ce789f59acd05f030f23fa999 + initial_ast: 14ba6a42c070b10174e90a6b77d3db526f5477831689c252861d0fa06dfa063c + unrolled_ast: 14ba6a42c070b10174e90a6b77d3db526f5477831689c252861d0fa06dfa063c + ssa_ast: 8d857a1d26d9c59b2b217809d7c34406c1979d6af65615509f7b5f3625613690 + flattened_ast: 4f0e9923c10141a41aad1aa027299733a2fb9d78e46b82c65a097797eff14c37 + destructured_ast: e523f3945816e3cff31012ac0f95303f05d941da1e8bd18e6a3cada7ce0380b9 + inlined_ast: ed5efaa1a3696b3a06c5585cd471896ad25f67098112a46a5a6204cbfa443fe9 + dce_ast: ed5efaa1a3696b3a06c5585cd471896ad25f67098112a46a5a6204cbfa443fe9 + bytecode: d6edcce70bf27b2fad397a62ae0bee08448a0c157d89e49867d843d83a04bfb7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/private_input_ouput_fail.out b/tests/expectations/compiler/finalize/private_input_ouput_fail.out index 1fd03251a5..918eb2d452 100644 --- a/tests/expectations/compiler/finalize/private_input_ouput_fail.out +++ b/tests/expectations/compiler/finalize/private_input_ouput_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> compiler-test:5:15\n |\n 5 | async finalize(a);\n | ^^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'async'\n --> compiler-test:5:9\n |\n 5 | async finalize_foo(a);\n | ^^^^^" diff --git a/tests/expectations/compiler/finalize/rand.out b/tests/expectations/compiler/finalize/rand.out index 1fcf2608b6..7fb09ec104 100644 --- a/tests/expectations/compiler/finalize/rand.out +++ b/tests/expectations/compiler/finalize/rand.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 641f5817a163ef7e00ae3e27c53876137e01634da6cc9a05a57f71dee0890db9 - type_checked_symbol_table: 23de4bfaffaef56a4a8431d6ef6bd9d84d5972dfd053b6001c9bc44556107d3f - unrolled_symbol_table: 23de4bfaffaef56a4a8431d6ef6bd9d84d5972dfd053b6001c9bc44556107d3f - initial_ast: 2ecdc46c95dfd4317447595490716949274d6acbd6b952886a36473c1a92ddd6 - unrolled_ast: 2ecdc46c95dfd4317447595490716949274d6acbd6b952886a36473c1a92ddd6 - ssa_ast: 752d946f7bfce55c490605e43814a6effaba2584b93dd250dfd01bb72e568720 - flattened_ast: 895e2a824b3381bd1d589f848ca1df994a85587d0051d629187375df2f1ef916 - destructured_ast: b0ddab401a6857d807034c9e19635d0d341905eb5a8e51a018965eff7ade28b7 - inlined_ast: b0ddab401a6857d807034c9e19635d0d341905eb5a8e51a018965eff7ade28b7 - dce_ast: 54a919c6eaa140f36a22ec7ab6878359f9f3a1238daf9973e3ff97c1bfcabff8 - bytecode: c5e80399ab1edccfae4591f3c38695e9a4129b35ad2cc75238859a2e109a245f + - initial_symbol_table: d874d22f303fe4b2e65fd277875664376ae7ea5b4de7238763167dcd76d3eea0 + type_checked_symbol_table: 15abdab3195aaaa9a990e7a8497775ad9e36da3cc859b2ffc62aac92ca3cd13e + unrolled_symbol_table: 15abdab3195aaaa9a990e7a8497775ad9e36da3cc859b2ffc62aac92ca3cd13e + initial_ast: 07b3caf65009ec361c8909393e96611a2a71bd55c0368324547ad1bf0fe8f5f6 + unrolled_ast: 07b3caf65009ec361c8909393e96611a2a71bd55c0368324547ad1bf0fe8f5f6 + ssa_ast: 423d02a0f83ee624dde3ac114ec68e906a54623986fbb864cd1d9f27b42179b4 + flattened_ast: a6f919d444537a57062d901e5faa7c4d93b94d47d72425ba53a90d96d119acf8 + destructured_ast: 14bdbcec4ef2f87ebecc6bebe4dae545008d115f1cd7b5dfe0bae3480c44470a + inlined_ast: c43b8044c40575cec34b694733ce913449ff846a23fd8ece70a516e5ce832aa0 + dce_ast: 2a2e0ffcae57a3b4276f0a4b2a6070f6c30fe064bbbfb55b32fd353852319de8 + bytecode: b8b21b4bfb77f76bf7d38787897832f3b8cc65ab6c7133607b6ed373a4517e06 errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/rand_not_in_finalize.out b/tests/expectations/compiler/finalize/rand_not_in_finalize.out index 801d6d67fd..737cc37680 100644 --- a/tests/expectations/compiler/finalize/rand_not_in_finalize.out +++ b/tests/expectations/compiler/finalize/rand_not_in_finalize.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372077]: This operation can only be used in a `finalize` block.\n --> compiler-test:8:25\n |\n 8 | let a: scalar = ChaCha::rand_scalar();\n | ^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372067]: This operation can only be used in an async function block.\n --> compiler-test:8:25\n |\n 8 | let a: scalar = ChaCha::rand_scalar();\n | ^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/read_write_mapping_fail.out b/tests/expectations/compiler/finalize/read_write_mapping_fail.out index da1827effc..f17d72806f 100644 --- a/tests/expectations/compiler/finalize/read_write_mapping_fail.out +++ b/tests/expectations/compiler/finalize/read_write_mapping_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EPAR0370031]: `finalize` statements are deprecated.\n --> compiler-test:15:9\n |\n 15 | finalize(addr);\n | ^^^^^^^^\n |\n = Use `return then finalize()` instead." + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ':'\n --> compiler-test:26:53\n |\n 26 | async function finalize_write_in_finalize(public: addr: address, public amount: u128) {\n | ^" diff --git a/tests/expectations/compiler/finalize/remove.out b/tests/expectations/compiler/finalize/remove.out index a3d9b63e45..690a70ebcf 100644 --- a/tests/expectations/compiler/finalize/remove.out +++ b/tests/expectations/compiler/finalize/remove.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2ae3af1955de3055ad1c14fb3fc57e084a948b40a3299001a2f6813044bbabf7 - type_checked_symbol_table: dbf0aaf564a08e7dbfc8e679bab7b1aab92c0475af8ba4de303587fd6c2d8fb2 - unrolled_symbol_table: dbf0aaf564a08e7dbfc8e679bab7b1aab92c0475af8ba4de303587fd6c2d8fb2 - initial_ast: 5b715f1ba792d6e01f83f6bcdad82ce00e88f25d15e19b8292695c2f245e9e4d - unrolled_ast: 5b715f1ba792d6e01f83f6bcdad82ce00e88f25d15e19b8292695c2f245e9e4d - ssa_ast: 882ce8ddd14b276ab765145f686e9e39ca9954bca03b5fcd0b60ce193db9590c - flattened_ast: 93ac89505d1e9ad329fb2a2375634a650cce29375bb13c0e9f70243d78df404c - destructured_ast: 08c8ffbab54b142cbfbc9bfd9fa0b4844813fbf165e10a52f466a3d8f175687d - inlined_ast: 08c8ffbab54b142cbfbc9bfd9fa0b4844813fbf165e10a52f466a3d8f175687d - dce_ast: 08c8ffbab54b142cbfbc9bfd9fa0b4844813fbf165e10a52f466a3d8f175687d - bytecode: 7598ca95ba8e589482a0d951cae6f2f8571e7ae33ec8f56dbe83077dac5100d4 + - initial_symbol_table: a03b039d5c94cc3063a364063f293051661dab87e9179d0241b14473d2f379fd + type_checked_symbol_table: 19e76e0e790645ce3b589f797c786adffaefd8d7271a1f5d8a53007604db94af + unrolled_symbol_table: 19e76e0e790645ce3b589f797c786adffaefd8d7271a1f5d8a53007604db94af + initial_ast: 8eed6837611108f196529986e88556c7d369a1b8e0c42d4802c50f53d8271f3c + unrolled_ast: 8eed6837611108f196529986e88556c7d369a1b8e0c42d4802c50f53d8271f3c + ssa_ast: 1412bafbb62aaa0e522473f7e5727851d2659ef848595722a65ba6dbc7badf68 + flattened_ast: f44811cc717710a0b7f3c3de7b68bbc9f350e3078439818d70de52af13cea445 + destructured_ast: 8845971df269712b9e4fe3af1840337ecbaf1686cf8bbab3bf903e54dc436e1a + inlined_ast: c5b9e1c5edc07ced3c8d1474f69be886f3ced6e6cd2675b25b2db0a17d64a4e5 + dce_ast: c5b9e1c5edc07ced3c8d1474f69be886f3ced6e6cd2675b25b2db0a17d64a4e5 + bytecode: 62a1ca065b30b8addb4443ae24600555fb3d94b5f3f3d48cb17bb47e46bd4b3d errors: "" warnings: "" diff --git a/tests/expectations/compiler/finalize/set_in_an_assignment_fail.out b/tests/expectations/compiler/finalize/set_in_an_assignment_fail.out index 96168c262e..e955d521de 100644 --- a/tests/expectations/compiler/finalize/set_in_an_assignment_fail.out +++ b/tests/expectations/compiler/finalize/set_in_an_assignment_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372062]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:11:9\n |\n 11 | let result: () = Mapping::set(amounts, addr, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `()`\n --> compiler-test:12:28\n |\n 12 | let result: u128 = Mapping::set(amounts, addr, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [EAST0372009]: variable `result` shadowed by\n --> compiler-test:12:13\n |\n 12 | let result: u128 = Mapping::set(amounts, addr, amount);\n | ^^^^^^\n" + - "Error [ETYC0372055]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:11:9\n |\n 11 | let result: () = Mapping::set(amounts, addr, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `()`\n --> compiler-test:12:28\n |\n 12 | let result: u128 = Mapping::set(amounts, addr, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [EAST0372009]: variable `result` shadowed by\n --> compiler-test:12:13\n |\n 12 | let result: u128 = Mapping::set(amounts, addr, amount);\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/set_incorrect_type_fail.out b/tests/expectations/compiler/finalize/set_incorrect_type_fail.out index b8f4234c82..ee060e4ea2 100644 --- a/tests/expectations/compiler/finalize/set_incorrect_type_fail.out +++ b/tests/expectations/compiler/finalize/set_incorrect_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372030]: A mapping's value cannot be a record\n --> compiler-test:10:5\n |\n 10 | mapping tokens: address => Token;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:17:36\n |\n 17 | Mapping::set(tokens, addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:18:26\n |\n 18 | tokens.set(addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:31\n |\n 19 | Mapping::set(amounts, 1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:20:21\n |\n 20 | amounts.set(1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:21:37\n |\n 21 | Mapping::set(amounts, addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:22:27\n |\n 22 | amounts.set(addr, 1u8);\n | ^^^\nError [ETYC0372003]: Expected type `u128` but type `u8` was found\n --> compiler-test:23:65\n |\n 23 | Mapping::set(tokens, addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372003]: Expected type `u128` but type `u8` was found\n --> compiler-test:24:55\n |\n 24 | tokens.set(addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:25:22\n |\n 25 | Mapping::set(foo, addr, amount);\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:26:9\n |\n 26 | foo.set(addr, amount);\n | ^^^\n" + - "Error [ETYC0372031]: A mapping's value cannot be a record\n --> compiler-test:10:5\n |\n 10 | mapping tokens: address => Token;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:17:36\n |\n 17 | Mapping::set(tokens, addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:18:26\n |\n 18 | tokens.set(addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:31\n |\n 19 | Mapping::set(amounts, 1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:20:21\n |\n 20 | amounts.set(1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:21:37\n |\n 21 | Mapping::set(amounts, addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:22:27\n |\n 22 | amounts.set(addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `u128`\n --> compiler-test:23:65\n |\n 23 | Mapping::set(tokens, addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `u128`\n --> compiler-test:24:55\n |\n 24 | tokens.set(addr, Token { owner: addr, amount: 1u8 });\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:25:22\n |\n 25 | Mapping::set(foo, addr, amount);\n | ^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:26:9\n |\n 26 | foo.set(addr, amount);\n | ^^^\n" diff --git a/tests/expectations/compiler/finalize/unknown_mapping_operation_fail.out b/tests/expectations/compiler/finalize/unknown_mapping_operation_fail.out index 4a419407e2..d073761eff 100644 --- a/tests/expectations/compiler/finalize/unknown_mapping_operation_fail.out +++ b/tests/expectations/compiler/finalize/unknown_mapping_operation_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372009]: Mapping::has_key is not a valid core function.\n --> compiler-test:12:30\n |\n 12 | let has_key: bool = Mapping::has_key(account, receiver);\n | ^^^^^^^\nError [ETYC0372014]: Mapping::has_key is not a valid core function call.\n --> compiler-test:12:30\n |\n 12 | let has_key: bool = Mapping::has_key(account, receiver);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372107]: The output of an async function must be assigned to a `Future` type..\n --> compiler-test:8:17\n |\n 8 | return finalize_mint_public(receiver, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `Future`, but got `()`\n --> compiler-test:8:17\n |\n 8 | return finalize_mint_public(receiver, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372009]: Mapping::has_key is not a valid core function.\n --> compiler-test:12:30\n |\n 12 | let has_key: bool = Mapping::has_key(account, receiver);\n | ^^^^^^^\nError [ETYC0372014]: Mapping::has_key is not a valid core function call.\n --> compiler-test:12:30\n |\n 12 | let has_key: bool = Mapping::has_key(account, receiver);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/annotated_function_fail.out b/tests/expectations/compiler/function/annotated_function_fail.out index ad0e868b55..b84752626b 100644 --- a/tests/expectations/compiler/function/annotated_function_fail.out +++ b/tests/expectations/compiler/function/annotated_function_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372027]: Unknown annotation: `@test`.\n --> compiler-test:4:5\n |\n 4 | @test\n | ^^^^^\nError [ETYC0372027]: Unknown annotation: `@program`.\n --> compiler-test:9:5\n |\n 9 | @program\n | ^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372027]: Unknown annotation: `@test`.\n --> compiler-test:4:5\n |\n 4 | @test\n | ^^^^^\nError [ETYC0372027]: Unknown annotation: `@program`.\n --> compiler-test:9:5\n |\n 9 | @program\n | ^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/basic_async.out b/tests/expectations/compiler/function/basic_async.out index 25e0c25af9..829252493f 100644 --- a/tests/expectations/compiler/function/basic_async.out +++ b/tests/expectations/compiler/function/basic_async.out @@ -2,15 +2,17 @@ namespace: Compile expectation: Pass outputs: - - - initial_symbol_table: 8239588580197a92398142074283d5ba36891e04cbfc82ab52c4d28019580d7c - type_checked_symbol_table: a0fa0ea6c44833ed71fd6ce4affd5437a66e72f04f5af19c7a68deae7ae2d5fa - unrolled_symbol_table: a0fa0ea6c44833ed71fd6ce4affd5437a66e72f04f5af19c7a68deae7ae2d5fa - initial_ast: a55bb5df325267ca729880d011015ab304d4a58422a2c80bc5dc79293706282e - unrolled_ast: a55bb5df325267ca729880d011015ab304d4a58422a2c80bc5dc79293706282e - ssa_ast: b99d35fa7e0f0d79cc0e71e0471d9b35cad3d0cb59af5c26540b018d6ae91383 - flattened_ast: 198fb9e46b0813fe23dc14d88826b985a3e68e5898ab0314af7996e0ae682427 - destructured_ast: 29a5a70b3c59b46c636930fcaff8ff40036d021b4b84d88b2c5d79234c7138c8 - inlined_ast: 2323fb24086f3f3e03f339e3c1b81ea95866e84bb590d8be1d37309abeb22981 - dce_ast: 2323fb24086f3f3e03f339e3c1b81ea95866e84bb590d8be1d37309abeb22981 - bytecode: cc273037c3ab51d0adc1aa2a98ba98703f5bc15c14cce5207e29b1f6e3d88ab7 - warnings: "Warning [WTYC0372000]: Not all paths through the function await all futures. 1/1 paths contain at least one future that is never awaited.\n --> compiler-test:11:5\n |\n 11 | async function finalize_main(a:u32, b:u32) {\n 12 | Mapping::set(Yo, a, b);\n 13 | }\n | ^\n |\n = Ex: `f.await()` to await a future. Remove this warning by including the `--disable-conditional-branch-type-checking` flag." + - - compile: + - initial_symbol_table: abb6832433f8abdafece357acef6c23a24ed43cf4ffedc8ebab5737c946cb49a + type_checked_symbol_table: b0612ceaa5efd7c4c50bcf6bbea21cb08b6333420b187d0b3f5d53adf92b1e0b + unrolled_symbol_table: b0612ceaa5efd7c4c50bcf6bbea21cb08b6333420b187d0b3f5d53adf92b1e0b + initial_ast: c5d71825599d2330a6732d0a45120fa7cdeea0f26d14b52711081f05e59d706e + unrolled_ast: c5d71825599d2330a6732d0a45120fa7cdeea0f26d14b52711081f05e59d706e + ssa_ast: 2bd218a2cbd878b15690e927f108e7c94f3c1c76668f2e4df36ec2e1f91d2388 + flattened_ast: f905d3aa8253284ae117c7987f67bd979e9d0522c65bcc1a156e44258775977a + destructured_ast: bbd6c90ef1f1901af2b0629fb78ced7eb8dd8fd1ce79703e8be883e270f590cb + inlined_ast: 5839761b5e07e8667f0f3b857e31bb8f7ffa82d179fc3862be849cac3789d94c + dce_ast: 5839761b5e07e8667f0f3b857e31bb8f7ffa82d179fc3862be849cac3789d94c + bytecode: cc273037c3ab51d0adc1aa2a98ba98703f5bc15c14cce5207e29b1f6e3d88ab7 + errors: "" + warnings: "" diff --git a/tests/expectations/compiler/function/complex_recursion_fail.out b/tests/expectations/compiler/function/complex_recursion_fail.out index 3e51af1807..1566ccf7b3 100644 --- a/tests/expectations/compiler/function/complex_recursion_fail.out +++ b/tests/expectations/compiler/function/complex_recursion_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:7:16\n |\n 7 | return two(n);\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:11:16\n |\n 11 | return three(n) + four(n);\n | ^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:11:27\n |\n 11 | return three(n) + four(n);\n | ^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:15:16\n |\n 15 | return one(n);\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:19:16\n |\n 19 | return one(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:23:16\n |\n 23 | return six(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:27:16\n |\n 27 | return seven(n) + eight(n);\n | ^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:27:27\n |\n 27 | return seven(n) + eight(n);\n | ^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:31:16\n |\n 31 | return five(n);\n | ^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:35:16\n |\n 35 | return five(n);\n | ^^^^^^^\nError [ETYC0372066]: Cyclic dependency between functions: `one` --> `two` --> `three` --> `one`\n" + - "Error [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:23:16\n |\n 23 | return six(n);\n | ^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:27:16\n |\n 27 | return seven(n) + eight(n);\n | ^^^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:27:27\n |\n 27 | return seven(n) + eight(n);\n | ^^^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:31:16\n |\n 31 | return five(n);\n | ^^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:35:16\n |\n 35 | return five(n);\n | ^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:7:16\n |\n 7 | return two(n);\n | ^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:11:16\n |\n 11 | return three(n) + four(n);\n | ^^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:11:27\n |\n 11 | return three(n) + four(n);\n | ^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:15:16\n |\n 15 | return one(n);\n | ^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:19:16\n |\n 19 | return one(n);\n | ^^^^^^\nError [ETYC0372059]: Cyclic dependency between functions: `five` --> `six` --> `seven` --> `five`\n" diff --git a/tests/expectations/compiler/function/conditional_return.out b/tests/expectations/compiler/function/conditional_return.out index 796d4be053..3d029fdab0 100644 --- a/tests/expectations/compiler/function/conditional_return.out +++ b/tests/expectations/compiler/function/conditional_return.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0973e070508f61d91ecd820203b9bc894e859338fbb59490afba965bc9384c98 - type_checked_symbol_table: 04328fc9ac3801eec674b02ff690b0ebdac335ac0e0ae990e6286919c55f9a20 - unrolled_symbol_table: 04328fc9ac3801eec674b02ff690b0ebdac335ac0e0ae990e6286919c55f9a20 - initial_ast: ec21f48bec7cc4e4a33c051a903d165f23fda4072b4b7621f184db6bd956d72d - unrolled_ast: ec21f48bec7cc4e4a33c051a903d165f23fda4072b4b7621f184db6bd956d72d - ssa_ast: 4fcd72896d7d8063c30140384b21ef2f1cae2c0a717d79078c2d278ad1b54596 - flattened_ast: e581e004167defde1a9ffe64169aea0e681e42d9077c06f67223274bfcd19030 - destructured_ast: b55a36dca87a18ccf075f875f0aacae728fe852e924c7d2d9cf8c7977aabeb43 - inlined_ast: b55a36dca87a18ccf075f875f0aacae728fe852e924c7d2d9cf8c7977aabeb43 - dce_ast: b55a36dca87a18ccf075f875f0aacae728fe852e924c7d2d9cf8c7977aabeb43 + - initial_symbol_table: f88c0c29553e5b1f7bcd41468fcf07ddccfabf23a3ac2c8159658a695a1704d7 + type_checked_symbol_table: db365ac5596460bda7ba1b6f12764937f1588817a3c89557680856adc6dd18f9 + unrolled_symbol_table: db365ac5596460bda7ba1b6f12764937f1588817a3c89557680856adc6dd18f9 + initial_ast: 95a7fb019ae1ec833622cb805da9a6177f9743b573658248b5b7c9ab094bcdbd + unrolled_ast: 95a7fb019ae1ec833622cb805da9a6177f9743b573658248b5b7c9ab094bcdbd + ssa_ast: faaaf89f25f0b2e11eac4b7bf736a0782821bac7e260eb382aa49e4a359f40a2 + flattened_ast: fb1058a5d18804717b9dac41052e350cb3ad50199aee53fc970d8f461b9c3dce + destructured_ast: aacafe2b2cddb20ecaee288445dadcc47d05bcd4cd894443061e1a2a7db3003c + inlined_ast: aacafe2b2cddb20ecaee288445dadcc47d05bcd4cd894443061e1a2a7db3003c + dce_ast: aacafe2b2cddb20ecaee288445dadcc47d05bcd4cd894443061e1a2a7db3003c bytecode: 7fe490ec8230a29dea04ba2ade935868530bcdcde28707abfa794c90833cc678 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/dead_code_elimination.out b/tests/expectations/compiler/function/dead_code_elimination.out index 48e0503efa..697b3a81eb 100644 --- a/tests/expectations/compiler/function/dead_code_elimination.out +++ b/tests/expectations/compiler/function/dead_code_elimination.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ad5c56aaf60c6c77c71d18677260f652b6c9a2c9b3252a782d04f7da40846298 - type_checked_symbol_table: e3702472d3f857bd2e638babb97b01869c81fa68250278d7df2703a26cdffe7c - unrolled_symbol_table: e3702472d3f857bd2e638babb97b01869c81fa68250278d7df2703a26cdffe7c - initial_ast: 11a339d1388cd5d282c46fbb865a4aeeaf517ebeac0a91596311d331c0c4b0bc - unrolled_ast: 11a339d1388cd5d282c46fbb865a4aeeaf517ebeac0a91596311d331c0c4b0bc - ssa_ast: a2e0b828461d529b3d9010e6a0aef39d6aee6236d414c1d19edfe90e2dfbd05b - flattened_ast: ab1f14db933f0808aee36c0edad0a2a92a65d0dfa7f59d8b8adf51beb567d354 - destructured_ast: 83b0c9777662d7b98d1c157c8a486586f812fbb3145c7ea62f25cf4bbb1dde0d - inlined_ast: 9c53e5830b56ec1bce809da0b4f3f0d5bc89f57299da3139bbfdb28a38094f64 - dce_ast: c236c9e0566ca76d1586af5aaa5cac77c7f74e1e14909dd49bb6e0b122e3657d + - initial_symbol_table: b17a501283f61a438697f4fef6f76a8571ef14bc87cdd4eb82b8cf5b76252fa9 + type_checked_symbol_table: 7e124c06f17fce4f2c238e898cf6f401faa80f92f36c4c74ef0831e5d2707fc2 + unrolled_symbol_table: 7e124c06f17fce4f2c238e898cf6f401faa80f92f36c4c74ef0831e5d2707fc2 + initial_ast: d383410e1372db6d9ebe2e36d88f7c0983e6434a045788bc70441e219a1e031c + unrolled_ast: d383410e1372db6d9ebe2e36d88f7c0983e6434a045788bc70441e219a1e031c + ssa_ast: 3670a49ea49b836e3d54cda363094518361784665d905dc014f7d3b5a807d3c1 + flattened_ast: 00ab065aac38c8804d8616b005d9bf5188092ce6ff309c19a9189d4f4005cf69 + destructured_ast: 453ef29970579b27235e5b7bb310c6ee99b21423f643281da17c76b88c3312d8 + inlined_ast: ab048ba5f4b14c493cf7ed3beaf4ebe5400332042679aae6cd966de942b74dfe + dce_ast: d886fab06b7eec4ed06d6d6bdecf2e41627aa8d658bd5e73a95c8895df3691dc bytecode: 68f3c939bd54966a95293dd018927a50887a633eea6d5dc60fca8a1ba5400607 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/flatten_arrays.out b/tests/expectations/compiler/function/flatten_arrays.out index 9e142b70a6..a0f3d6bf63 100644 --- a/tests/expectations/compiler/function/flatten_arrays.out +++ b/tests/expectations/compiler/function/flatten_arrays.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9be7b6aa90ce5a15e60de8557ac2c2670e7126824b91088b5fb6f78e80ec228d - type_checked_symbol_table: 70e2a57ae116131ad8c05e3e21c8d12d3d7712e7c0e1b2fce06dcca76df10f13 - unrolled_symbol_table: 70e2a57ae116131ad8c05e3e21c8d12d3d7712e7c0e1b2fce06dcca76df10f13 - initial_ast: 7397780076e2c102dcbbda5d1a57baa865f84aec4c92dfee436b6e5a923a498f - unrolled_ast: 7397780076e2c102dcbbda5d1a57baa865f84aec4c92dfee436b6e5a923a498f - ssa_ast: 0bab4c3eb769d5eb9652fc082162c531545621b6dab23152e63916b72a050edd - flattened_ast: dacd1aceab61e2821761bcc996fe65a1f09edf58a272c35511b2735986ee215a - destructured_ast: 86f315df8ed6285058c14fd8ee6391626978a5b0f7cb27d77b39a2611b616462 - inlined_ast: 86f315df8ed6285058c14fd8ee6391626978a5b0f7cb27d77b39a2611b616462 - dce_ast: 86f315df8ed6285058c14fd8ee6391626978a5b0f7cb27d77b39a2611b616462 + - initial_symbol_table: 484be5d0d31a286ced9af7ef7f766b2c9d9e3eb2b3ed6dcc2eb8963e8f168ded + type_checked_symbol_table: b8c264bd3b8b7a8f457a321a75b14e3aa806cda8516eb3130d24781905f5f0dc + unrolled_symbol_table: b8c264bd3b8b7a8f457a321a75b14e3aa806cda8516eb3130d24781905f5f0dc + initial_ast: 22f62e9a79126c4d217e5397c94f2909318f412a3daccf1886bfb60683637ee5 + unrolled_ast: 22f62e9a79126c4d217e5397c94f2909318f412a3daccf1886bfb60683637ee5 + ssa_ast: e9528e4e390cc55850489e3d72c416c60094447036ac95782499017154504b35 + flattened_ast: 073be098838291fd9f41b4fdec56949eb02680d963d96dccebe4659ef4b3a13d + destructured_ast: 170b0a7263e26aa3eb56266e4037049b2a8a92c8454f0297f6fc73377882f7a2 + inlined_ast: 97a4661fd99845b454c473afac65630ba9cb6c5e7061db5e6077569343964b4f + dce_ast: 97a4661fd99845b454c473afac65630ba9cb6c5e7061db5e6077569343964b4f bytecode: be43f1b20093160fdfc6c5f85fbbe6c3693a41505738d4d0db70b1fcf2243a4f errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out b/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out index ff9abad3de..63f58799cd 100644 --- a/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out +++ b/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 24aa8c0e343040d9653727bdd93088217c65815919e868ab0712b433964fc886 - type_checked_symbol_table: 91a63f2d99467d116951d8d2059a90044f1035767a7002ff7591089788ea2f47 - unrolled_symbol_table: 91a63f2d99467d116951d8d2059a90044f1035767a7002ff7591089788ea2f47 - initial_ast: e90feb84b272e004e48a6bdd23fe72d215b3ca6f49a3d7684ae6d97562db6dec - unrolled_ast: e90feb84b272e004e48a6bdd23fe72d215b3ca6f49a3d7684ae6d97562db6dec - ssa_ast: 1cfe4f1234263a87b09b81e5a0990d0d2e2f934db9fff31de28e6b60bed0f235 - flattened_ast: d061b77fdaec7259f011fb493a4fd2b61a69677e45283599a6d1f771d8d1d060 - destructured_ast: e5759814c2c3176bfaca359f51de38eb81a825d17d18815c61a306d2405e815d - inlined_ast: 026c72cd4308ff9ccdda46b670b9b8b5567ace4c4dee78465217fb3ab54aae42 - dce_ast: 026c72cd4308ff9ccdda46b670b9b8b5567ace4c4dee78465217fb3ab54aae42 + - initial_symbol_table: 6a5289bc967561630e2cfa927a36a56f49a0af98b59c64a741558b26ba148aba + type_checked_symbol_table: b9cf123f75accd2b5d90980dca6cc0fbd3efe219bdea625ab3ed21ee6c8c7f3c + unrolled_symbol_table: b9cf123f75accd2b5d90980dca6cc0fbd3efe219bdea625ab3ed21ee6c8c7f3c + initial_ast: a0856ffe506520bc578f86d2e56e9b014f2f3ab6aadbd64848015be96b8aa812 + unrolled_ast: a0856ffe506520bc578f86d2e56e9b014f2f3ab6aadbd64848015be96b8aa812 + ssa_ast: 1910d268d56bb246cce897557ba8f9719502af9fc7c5b8de731e20347182d541 + flattened_ast: 233cf16943a0da1ff75a719ab66a45721163e513e0bdc0b0eac0c9229d662c9d + destructured_ast: 58bb93da220a2f0b9111fb0b2ad33318154ef66b27d765d38945e9ea86e3c3c5 + inlined_ast: 647c2c3c17ab6258264bebcdbd4af02ee6d919c3d593e66e0153c2613a1585f3 + dce_ast: 647c2c3c17ab6258264bebcdbd4af02ee6d919c3d593e66e0153c2613a1585f3 bytecode: fffe093215f68fcc292f2c7b67e847897cd0334cdbf4a410f288d7957541a1d3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/flatten_test.out b/tests/expectations/compiler/function/flatten_test.out index 5248a481b2..e942404757 100644 --- a/tests/expectations/compiler/function/flatten_test.out +++ b/tests/expectations/compiler/function/flatten_test.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dee2b17000e5b7d530beff9afebd2178fce73e0d7f73acb0d2d89ff2876927f5 - type_checked_symbol_table: 149832df18a724dd7d6a49475f08e7d0e5a98383b8f98e96192e2562076abf6f - unrolled_symbol_table: 149832df18a724dd7d6a49475f08e7d0e5a98383b8f98e96192e2562076abf6f - initial_ast: 1c7165de817fe16301b0a1cb69ead8c6e8a62c7c7e6ad7b678d0b996f943956c - unrolled_ast: 1c7165de817fe16301b0a1cb69ead8c6e8a62c7c7e6ad7b678d0b996f943956c - ssa_ast: 86d766d2f732227e5841281f18012edce8c97fccec35c6829a0cf55160d39fe1 - flattened_ast: e76ac3473596377b29f6367f4f560f1afbcaead110a8c321e639fe9bdb628f19 - destructured_ast: bf0780dba98e03a75b7b30c0f36e5da55090844bccf9159c84793810d814a4e6 - inlined_ast: bf0780dba98e03a75b7b30c0f36e5da55090844bccf9159c84793810d814a4e6 - dce_ast: bf0780dba98e03a75b7b30c0f36e5da55090844bccf9159c84793810d814a4e6 + - initial_symbol_table: 70074bd0e567d8ecb6127d16dc64d060fa4ba2853ac1ee9a269f22c68dd51949 + type_checked_symbol_table: c8711c48add8a3399b9d372deed531172182fdaf2993e74c36080c7ad5fed672 + unrolled_symbol_table: c8711c48add8a3399b9d372deed531172182fdaf2993e74c36080c7ad5fed672 + initial_ast: cab6747aa0e31ce88f36be4af9c601faa94ae409abae51d6f00ad81fe66a6440 + unrolled_ast: cab6747aa0e31ce88f36be4af9c601faa94ae409abae51d6f00ad81fe66a6440 + ssa_ast: 5f9e3b363927f8264b8565d72025d5bd93e5264ff4d8097b277484e38204b4f9 + flattened_ast: cc32bd128dc2ffb4c068974f3c6943ecdc5550b411d1672a6e54956622257bf1 + destructured_ast: 339356bffbefc0756e9e0a3aa932b8e62726e645d271d2e59c67876488d77869 + inlined_ast: 38a55d26714db25c46913fefd80b26a0e360919bd411714f29bd5303a215302c + dce_ast: 38a55d26714db25c46913fefd80b26a0e360919bd411714f29bd5303a215302c bytecode: 6b4668099fa04bf4027b390ce9def813a3ade976add6104944433b3fab6a4ad9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/flatten_test_2.out b/tests/expectations/compiler/function/flatten_test_2.out index 086a4d7e65..57784906d1 100644 --- a/tests/expectations/compiler/function/flatten_test_2.out +++ b/tests/expectations/compiler/function/flatten_test_2.out @@ -3,30 +3,30 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2d910e475530a6218a24d395af7f94285bf848bf8f7e80e9a9dafc07c8e84933 - type_checked_symbol_table: 12fae3c571893dc672bfdabe18c7cc90c832fdbed2be15c2fbf55ee73dc2ad7f - unrolled_symbol_table: 12fae3c571893dc672bfdabe18c7cc90c832fdbed2be15c2fbf55ee73dc2ad7f - initial_ast: 7e0d016df4b6a04f603d7bf6a579f5f49a8a8143ecc682d65402855ec5666583 - unrolled_ast: 7e0d016df4b6a04f603d7bf6a579f5f49a8a8143ecc682d65402855ec5666583 - ssa_ast: e587e5b2e3782720a6583d8552ffbd35189955b2140a87b079942088e8665c92 - flattened_ast: 7d4c47df3f666f70b9184fb136b6371245dd7a8b9088dadca6f7dc74cb6a7065 - destructured_ast: 6c1d866430b78a365b922ae0a641810987831f0f64710f4c7b5551fc9e6fd5b1 - inlined_ast: 6c1d866430b78a365b922ae0a641810987831f0f64710f4c7b5551fc9e6fd5b1 - dce_ast: 98b87c8795f10e34b700c096d00df6c8c3df88f0e40e6e58f2fa2154b9e76121 + - initial_symbol_table: c00ea1694c262b10d8a3fe2b8eac206339b2eb284faa2ab239345bbf085a84e2 + type_checked_symbol_table: 02c2f1436e528eacd4cd0a1b5931241ad718e8598cbe38650c2177fd5f2fc076 + unrolled_symbol_table: 02c2f1436e528eacd4cd0a1b5931241ad718e8598cbe38650c2177fd5f2fc076 + initial_ast: cdd2b965bc15658db2d4389823dc4b5e59c078c6cc91dfe3652ef4bd743f21d0 + unrolled_ast: cdd2b965bc15658db2d4389823dc4b5e59c078c6cc91dfe3652ef4bd743f21d0 + ssa_ast: 8ff3d7625f1d0a70792bbd3fbc440412b4dc223f72806d27c19815b8464088df + flattened_ast: 0d77a48506a93750349415b9acf92ca1117b40a3c880a6eb3fcc98917d224bea + destructured_ast: 037d9a569f647e7a9752d25b111d78deb03961bb58bca4bb8c66ed644d030efb + inlined_ast: 037d9a569f647e7a9752d25b111d78deb03961bb58bca4bb8c66ed644d030efb + dce_ast: 74f961fb8d468bab9932e4572deb9e7ca2a2b272b7dd87136552d82674831e92 bytecode: 34ea2316698e1b32c9a8cecafbc7ec613d38e33d39bc50b517a10f255e9c8a03 errors: "" warnings: "" - compile: - - initial_symbol_table: 3c9b6c65a3fcb5f24f8b9dbd3ae5e61aa1bf5725cc4d572c6acb1dd79e37f1ec - type_checked_symbol_table: 54771438b4339893644158162b7bfe069d96abf91d9564f7f08e255a9f403905 - unrolled_symbol_table: 54771438b4339893644158162b7bfe069d96abf91d9564f7f08e255a9f403905 - initial_ast: 01d45873f14b46e92c2d82d1057bc704c4be38ec3ad6da991f9d72a82e808819 - unrolled_ast: 01d45873f14b46e92c2d82d1057bc704c4be38ec3ad6da991f9d72a82e808819 - ssa_ast: fb1f9bf339efb5e8a357a438c8ef75c01bb27fc18ba53fb915f6abb0538e99f5 - flattened_ast: ec534e71855165fc201c5647e17401a6db00b335f34524b396c1235bb7244afa - destructured_ast: f77476c2778da919cec8bea51a9f597cbeaeb2a89be9e9cf4a5add5e41317740 - inlined_ast: f77476c2778da919cec8bea51a9f597cbeaeb2a89be9e9cf4a5add5e41317740 - dce_ast: f77476c2778da919cec8bea51a9f597cbeaeb2a89be9e9cf4a5add5e41317740 + - initial_symbol_table: 68aea401c28a5ccbb48e0ca38e87aa4180c6cd3c9863d81cb9607d41dfb8c5cc + type_checked_symbol_table: 97c211b439657503cbc6d4aa64b0cc5ecf35c971496bfa37b11920738ac7c66e + unrolled_symbol_table: 97c211b439657503cbc6d4aa64b0cc5ecf35c971496bfa37b11920738ac7c66e + initial_ast: 548489877d5ecfa14d4048886991bde30ce3e28d8acef90db971b386a81a6565 + unrolled_ast: 548489877d5ecfa14d4048886991bde30ce3e28d8acef90db971b386a81a6565 + ssa_ast: 717c7a837cd4c808ffa9e8fc6153aeb459bc25f72a658580b33973efa7f0fe1f + flattened_ast: 5e17a40aaadec5eb7b6e00153c530dc34dc99ea153789eee5b4cb28fc4282d49 + destructured_ast: a6b635bc3d004b069c2b6f3207b65e49787976034d6d5b0e47b26141441579d1 + inlined_ast: a6b635bc3d004b069c2b6f3207b65e49787976034d6d5b0e47b26141441579d1 + dce_ast: a6b635bc3d004b069c2b6f3207b65e49787976034d6d5b0e47b26141441579d1 bytecode: b42d3c958c08364d974824a28437565b32bce03a6dc86c38a03cfe741cac6995 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/flatten_tuples_of_structs.out b/tests/expectations/compiler/function/flatten_tuples_of_structs.out index facedb5f19..d539418bbe 100644 --- a/tests/expectations/compiler/function/flatten_tuples_of_structs.out +++ b/tests/expectations/compiler/function/flatten_tuples_of_structs.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c10ba2b1396b39c27f6f726a2a9c4cd729f7538449f40d81b57bfed884aba80 - type_checked_symbol_table: 1cbcf3538ce4a19f8e147557a5fc6eae69c87c6beb702eb3870a7e556a74d31c - unrolled_symbol_table: 1cbcf3538ce4a19f8e147557a5fc6eae69c87c6beb702eb3870a7e556a74d31c - initial_ast: c48652418477b5f0df6793d57e9a24557e3ac8f02185a0fab2ae8c4c0190f1be - unrolled_ast: c48652418477b5f0df6793d57e9a24557e3ac8f02185a0fab2ae8c4c0190f1be - ssa_ast: 8c66b19bd6d7c5a0a8c3e08f17d6143eec76ffc1e9ff1840d09cb1f62ac0a6f8 - flattened_ast: 1fa7c2ae61883eb250c9d7bc7c01c1ca8210d2d0a8564e352b0d7d3723a04d42 - destructured_ast: dbe26a5813d613ce30b0af806650782d5bda3bd070ef5130ea9614c6f0ebd91d - inlined_ast: dbe26a5813d613ce30b0af806650782d5bda3bd070ef5130ea9614c6f0ebd91d - dce_ast: dbe26a5813d613ce30b0af806650782d5bda3bd070ef5130ea9614c6f0ebd91d + - initial_symbol_table: 23aa778acc6da45fade6ab1a6bc8b8e45f706a5d1c73db7bd59b0fd00c73434c + type_checked_symbol_table: 8dd9e0ff9543e70904965f786756897ab646f52abf4d3a9e025f33037e4daac8 + unrolled_symbol_table: 8dd9e0ff9543e70904965f786756897ab646f52abf4d3a9e025f33037e4daac8 + initial_ast: f2814f2393b99499bb368d3b16cf706b5abecc9f4a39a3bc6a18f2b916f4b7ad + unrolled_ast: f2814f2393b99499bb368d3b16cf706b5abecc9f4a39a3bc6a18f2b916f4b7ad + ssa_ast: d484794a65587bccfc4cc465c33bc6e08de4ce410b763968a9cf02bcedabbc0c + flattened_ast: 85acd58213edc511c5bebaedf308498bbddeb546e8ed32865d188f9f7b0a30c7 + destructured_ast: 1664bfc7d6d60b38a3b0cdcfb7bea242597f268e7534f8e426eca2b9b472e0ab + inlined_ast: a08877cb196f822d2cc1c2143ac1151112d88ff8499e67ee40c9b75b2e76513d + dce_ast: a08877cb196f822d2cc1c2143ac1151112d88ff8499e67ee40c9b75b2e76513d bytecode: 023b08025f2aa0f03538528dde0e9b8e6ddf7efb3feb3af35ff79a1d930e42cc errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/flatten_unit_expressions.out b/tests/expectations/compiler/function/flatten_unit_expressions.out index d95d9bb7ac..812a208b5f 100644 --- a/tests/expectations/compiler/function/flatten_unit_expressions.out +++ b/tests/expectations/compiler/function/flatten_unit_expressions.out @@ -3,30 +3,30 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a3104062809642350b9fda830757e057f7de3b287a8ad9bbe32037644b52e5ca - type_checked_symbol_table: a7ab61ebe58783c55a7796b2ca87dbced7aef45f1cf3701abd4caf7e9892a2fb - unrolled_symbol_table: a7ab61ebe58783c55a7796b2ca87dbced7aef45f1cf3701abd4caf7e9892a2fb - initial_ast: 41c9f3e1ebb97e63ed8ca4f326cb5b496a2b71f478d1def45ac7c9159f238766 - unrolled_ast: 41c9f3e1ebb97e63ed8ca4f326cb5b496a2b71f478d1def45ac7c9159f238766 - ssa_ast: 909473098b05ec70de449a295aea5970ff289b944c80c3c8e5e7ad3a2808b831 - flattened_ast: 1ef569f564cfb374d82bdaac81f1b55b7b868398a4e895aa98ad420b3b14fc8f - destructured_ast: 71c3a36c89c81627ddf0b6da278f38847a546344256abb0d2f6cf4d1f390fb05 - inlined_ast: 71c3a36c89c81627ddf0b6da278f38847a546344256abb0d2f6cf4d1f390fb05 - dce_ast: b2ed655e4d792c6efcd64da50f55234673f8d6cdc7a8fc6b5c8e249d96c4e266 + - initial_symbol_table: c8235e4aaec64de0278ab061f528e9e08858b5c91581d86c511f9827969722bf + type_checked_symbol_table: 10b97ae7d29d12a13ec429d1a5c7b048be301edbdae0071882bf3fd2fde5c7b6 + unrolled_symbol_table: 10b97ae7d29d12a13ec429d1a5c7b048be301edbdae0071882bf3fd2fde5c7b6 + initial_ast: 858bf2fb16e87d10c82a7d0e2569a2535779bceec0e371bc7cc9ff84d433f648 + unrolled_ast: 858bf2fb16e87d10c82a7d0e2569a2535779bceec0e371bc7cc9ff84d433f648 + ssa_ast: 085dfdc6611943a9f1042eeeb84b9f5793600f9405e15581adb7fc1e4b69deaf + flattened_ast: fe1ea191970875b42ee3e7fbbf7045276d4a4105ca707501d88798fcaa116a5e + destructured_ast: 28235d92ee3f4158de56a5a3c276fbceaeb190dfe9a29885c21816df5db45c49 + inlined_ast: 28235d92ee3f4158de56a5a3c276fbceaeb190dfe9a29885c21816df5db45c49 + dce_ast: 225970fceb4182722631073f4cb294fa40effed2b8b5858389c10bb2078e59f9 bytecode: b5e0f18e08535e19b2bc80bd0bc3d2893e58223cea4d006a8a8de262d3ab41fd errors: "" warnings: "" - compile: - - initial_symbol_table: a3104062809642350b9fda830757e057f7de3b287a8ad9bbe32037644b52e5ca - type_checked_symbol_table: a7ab61ebe58783c55a7796b2ca87dbced7aef45f1cf3701abd4caf7e9892a2fb - unrolled_symbol_table: a7ab61ebe58783c55a7796b2ca87dbced7aef45f1cf3701abd4caf7e9892a2fb - initial_ast: db19607898306b098057f0f02f09d502ecbccaae75febec3bd679ed7bde02bc8 - unrolled_ast: db19607898306b098057f0f02f09d502ecbccaae75febec3bd679ed7bde02bc8 - ssa_ast: 3132fc9e684f7f62ab7518ef2f94e94c508d98ec396e5025c58f9c4edde40303 - flattened_ast: 03b9463c7c54313a72b56f709474edb0671cace99927eaacdf9b5cd0d4fb9922 - destructured_ast: 45f95b18687edfa76d0debafc231ce34d5e4a79832f8f50fba734030779c4181 - inlined_ast: 45f95b18687edfa76d0debafc231ce34d5e4a79832f8f50fba734030779c4181 - dce_ast: 45f95b18687edfa76d0debafc231ce34d5e4a79832f8f50fba734030779c4181 + - initial_symbol_table: c8235e4aaec64de0278ab061f528e9e08858b5c91581d86c511f9827969722bf + type_checked_symbol_table: 10b97ae7d29d12a13ec429d1a5c7b048be301edbdae0071882bf3fd2fde5c7b6 + unrolled_symbol_table: 10b97ae7d29d12a13ec429d1a5c7b048be301edbdae0071882bf3fd2fde5c7b6 + initial_ast: 7516ce18766eb2c7838ded66e8bacf43c4475f592669ed4295d3e3785c04debf + unrolled_ast: 7516ce18766eb2c7838ded66e8bacf43c4475f592669ed4295d3e3785c04debf + ssa_ast: 328c20b0db3057ecbd9727a1cd49a7a7bc7772fe4559da1642ec0e1e14439049 + flattened_ast: f6d06fca46355784710dc076d08c68b0da259c60f3b2da4eb42ea8b0bdf7cc01 + destructured_ast: d0e0988939819fd027b437ff72651204e2af870ac81aa9130709fcc37c792823 + inlined_ast: d0e0988939819fd027b437ff72651204e2af870ac81aa9130709fcc37c792823 + dce_ast: d0e0988939819fd027b437ff72651204e2af870ac81aa9130709fcc37c792823 bytecode: b5e0f18e08535e19b2bc80bd0bc3d2893e58223cea4d006a8a8de262d3ab41fd errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/function_call.out b/tests/expectations/compiler/function/function_call.out index 32dc8b8af7..a003943beb 100644 --- a/tests/expectations/compiler/function/function_call.out +++ b/tests/expectations/compiler/function/function_call.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8ae00b8ba32a6c9377cfe3d2296e31fff47db82994f551c8cf85540edc244c6c - type_checked_symbol_table: 270734ad2434f15fd127df416b7a6548b6d5b55fda1ce40286c3ef1ac8748bfe - unrolled_symbol_table: 270734ad2434f15fd127df416b7a6548b6d5b55fda1ce40286c3ef1ac8748bfe - initial_ast: d689460564e898219993b1b91dc9b07d464a2eae44bd02d30ca47bb1f1df31f4 - unrolled_ast: d689460564e898219993b1b91dc9b07d464a2eae44bd02d30ca47bb1f1df31f4 - ssa_ast: fd8603bbf06b332cbbe86c2dbcee5d35bb566441789562471f2654fc56300a65 - flattened_ast: 1c5349238914059f0470c4b86e21365390d3cc330a80cee5a2bb94e32fca52db - destructured_ast: 130a7ae1936d71b41940fafb99dc9f0bec32b6eb7905febf4882791d2f8dea21 - inlined_ast: e59bc306250ff573fc0a94ad283226171351a123ccff0f33e3604d2e28890a36 - dce_ast: e59bc306250ff573fc0a94ad283226171351a123ccff0f33e3604d2e28890a36 + - initial_symbol_table: 5d5a25b8289717f78d9d5caa750537e99400015ddc5630def8cdac6ec7bf102d + type_checked_symbol_table: 2a968fc9a8c7e8d2d4a03dfdd208f206e3d5867ec2d6b777f5eb1f25fc3e2b81 + unrolled_symbol_table: 2a968fc9a8c7e8d2d4a03dfdd208f206e3d5867ec2d6b777f5eb1f25fc3e2b81 + initial_ast: c60b2f25471fe819d5bca460873f6f15c94113e275146c3ef96dd32685b3b956 + unrolled_ast: c60b2f25471fe819d5bca460873f6f15c94113e275146c3ef96dd32685b3b956 + ssa_ast: 9a6f602ab1e4716daf20cc56860b43342613a0d670575576d4d5c1af7338d202 + flattened_ast: 418eea1451e2103df0a1a7da48bae483839dc7856640603035f4bbade1c2a5b0 + destructured_ast: 8ba0fa023463a01d8b14fdc4cb7f494837662767df300c642ddaa247b71b4d90 + inlined_ast: e6e35f0bccd1de1b4ce0526a9f49fb5d3b06ef3f822887e8e3c5e2cde5cd7b18 + dce_ast: e6e35f0bccd1de1b4ce0526a9f49fb5d3b06ef3f822887e8e3c5e2cde5cd7b18 bytecode: ce0dbf69a657e1fbc866ccc8c4a1cb4f8080a561d1ba4bafca831cee80a3ef81 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/function_call_inline.out b/tests/expectations/compiler/function/function_call_inline.out index 699eed0535..c72ba171da 100644 --- a/tests/expectations/compiler/function/function_call_inline.out +++ b/tests/expectations/compiler/function/function_call_inline.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: dd002f4c80c21565e0b5a9e766f7d379041c2f0edfdebddf0cec057df42de24b - type_checked_symbol_table: de20a6673931bac93ca3116c4b600d19eff78717fc133541a12606660d5240bf - unrolled_symbol_table: de20a6673931bac93ca3116c4b600d19eff78717fc133541a12606660d5240bf - initial_ast: 7d98b6d4b0990c7e8c97bca515f9975ae0b2735c5a0db22758282ff0c90141db - unrolled_ast: 7d98b6d4b0990c7e8c97bca515f9975ae0b2735c5a0db22758282ff0c90141db - ssa_ast: af1918131f402990e7aba186f0c7c4c9904aec7ee2a7ebd561572bad97e47482 - flattened_ast: 9722d80927e25b704e140cf50b18d45d7fac2d98aeddf12a29a5e87c696671ed - destructured_ast: a34ae9eecdd499120d395a8d061c1723071b7ece17ba51e095de80f5dd1512ab - inlined_ast: a78499b30924ec37223a74cb099c9551639581a50418d84f092a23e0211a9105 - dce_ast: a78499b30924ec37223a74cb099c9551639581a50418d84f092a23e0211a9105 + - initial_symbol_table: 80e11013c8baf64d6125e5ffdd092c74b25b731fbf69a2b8d588f55356ae1802 + type_checked_symbol_table: a7ffae55b5aa8c10c53760b1ee47ebca6e188a3391cdb856fbfb94161f6f3405 + unrolled_symbol_table: a7ffae55b5aa8c10c53760b1ee47ebca6e188a3391cdb856fbfb94161f6f3405 + initial_ast: 167466c1c23f8f4ce0cc7f1d328a238920dcfca3d8f6f6307e51f33e6560c7a3 + unrolled_ast: 167466c1c23f8f4ce0cc7f1d328a238920dcfca3d8f6f6307e51f33e6560c7a3 + ssa_ast: cf1ad0fce170e294a12cb46439c210613e52de9f6272bb024968ab445d18d78e + flattened_ast: 8ddb9fc8245afd720731f0fe27a413fb04fb6b3528b2e0b8ebaf95b88ee606e5 + destructured_ast: fbf51b0d5bf70b15982e61501eda58bb21f020babb9f04fa10118d8ab5934d7f + inlined_ast: 714d4e92b8d830390327d90d9937db6132e032b0b4f39be3861143d8710074a4 + dce_ast: 714d4e92b8d830390327d90d9937db6132e032b0b4f39be3861143d8710074a4 bytecode: 44ea5bc8171ad40715c28c40333b673e70474ef9ba2d8f60d6517c0bfc3539e0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/function_call_out_of_order.out b/tests/expectations/compiler/function/function_call_out_of_order.out index 41a1f0e5cb..6e5160ecbe 100644 --- a/tests/expectations/compiler/function/function_call_out_of_order.out +++ b/tests/expectations/compiler/function/function_call_out_of_order.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 14bd882f231e7044252fd43c650871256ddf70be53194a73720479985d7d0238 - type_checked_symbol_table: 5989aec79d53343c3e051c6089d91fd555b97fd2cf16cfc14657299a31c39321 - unrolled_symbol_table: 5989aec79d53343c3e051c6089d91fd555b97fd2cf16cfc14657299a31c39321 - initial_ast: fa2eef5220f315ff6e22e805afc90e138e9c053f73636ad02a5e24e507c04e9f - unrolled_ast: fa2eef5220f315ff6e22e805afc90e138e9c053f73636ad02a5e24e507c04e9f - ssa_ast: 764bde418b7ddaf53eee3f5c650c1429f96a598671ac08f6952f872bf9317fe1 - flattened_ast: 5498363e67467196f66f6e105554828f1c004d5eb17d92e4344f9a79947cf7a0 - destructured_ast: 57c38ea329b34c72e63d813fe071b75b969e4294e861d94a0d5b3d8b7feb80f3 - inlined_ast: c2730c772b2b9e249671555340f782ebcac8fcb635733f99298ba343a5857d32 - dce_ast: c2730c772b2b9e249671555340f782ebcac8fcb635733f99298ba343a5857d32 + - initial_symbol_table: 495543f76a50f7c995da978ebcb32dd7bb9d041e49db84470b683a1dd2448d81 + type_checked_symbol_table: c02c44c3a89769d02936dcdbf7a3851fc2453c26d171472f9e9c3101c502dfbf + unrolled_symbol_table: c02c44c3a89769d02936dcdbf7a3851fc2453c26d171472f9e9c3101c502dfbf + initial_ast: 8cf5f3701a63415ef87adc9956d4ffe0f60da3eb5bed43ce999562e54e4da5ac + unrolled_ast: 8cf5f3701a63415ef87adc9956d4ffe0f60da3eb5bed43ce999562e54e4da5ac + ssa_ast: b81176f4a4380b6ef3dc3d7820af13b14175bb4ac1c7872c7b4bf3c35a1e08b7 + flattened_ast: 41aaff9c1c97f1c15fccdabbb4917310fd8f861e98e44add5f9e16d858ada047 + destructured_ast: 7c52e883201992ab1b0192c03fc00010fe5ec67669969236b9c83b102ea5558e + inlined_ast: 95551d549a6f6993623e4a198155b3c6304bb305a661fbbd4127647a480662ae + dce_ast: 95551d549a6f6993623e4a198155b3c6304bb305a661fbbd4127647a480662ae bytecode: 0d1f4cbd82531fbd8e3be16dd6b130e30da05f95568ab89856527ead1a0d68a3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/function_call_tyc_fail.out b/tests/expectations/compiler/function/function_call_tyc_fail.out index 4bf8563a2e..faf45714bf 100644 --- a/tests/expectations/compiler/function/function_call_tyc_fail.out +++ b/tests/expectations/compiler/function/function_call_tyc_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `i8` but type `u8` was found\n --> compiler-test:16:13\n |\n 16 | x = f1(1u8);\n | ^^^^^^^\nError [ETYC0372003]: Expected type `i8` but type `u8` was found\n --> compiler-test:20:13\n |\n 20 | y = f3(y, z);\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:20:16\n |\n 20 | y = f3(y, z);\n | ^\n" + - "Error [ETYC0372007]: Expected one type from `u8`, but got `i8`\n --> compiler-test:16:13\n |\n 16 | x = f1(1u8);\n | ^^^^^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `i8`\n --> compiler-test:20:13\n |\n 20 | y = f3(y, z);\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:20:16\n |\n 20 | y = f3(y, z);\n | ^\n" diff --git a/tests/expectations/compiler/function/function_returns_record_fail.out b/tests/expectations/compiler/function/function_returns_record_fail.out index 6075d90fdd..92cfb8ae5e 100644 --- a/tests/expectations/compiler/function/function_returns_record_fail.out +++ b/tests/expectations/compiler/function/function_returns_record_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:9:18\n |\n 9 | function foo(board: Board, data: u8) -> Board {\n | ^^^^^\nError [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:9:45\n |\n 9 | function foo(board: Board, data: u8) -> Board {\n | ^^^^^\nError [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:16:18\n |\n 16 | function bar(board: Board) {\n | ^^^^^\n" + - "Error [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:9:18\n |\n 9 | function foo(board: Board, data: u8) -> Board {\n | ^^^^^\nError [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:9:45\n |\n 9 | function foo(board: Board, data: u8) -> Board {\n | ^^^^^\nError [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:16:18\n |\n 16 | function bar(board: Board) {\n | ^^^^^\n" diff --git a/tests/expectations/compiler/function/helper_function_with_interface.out b/tests/expectations/compiler/function/helper_function_with_interface.out index b0657cb230..133a641e4c 100644 --- a/tests/expectations/compiler/function/helper_function_with_interface.out +++ b/tests/expectations/compiler/function/helper_function_with_interface.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3862a5555d2f7878748e7ee59f67e7a5c3b5137ee4d36bb0b5d5a49cb06d711a - type_checked_symbol_table: 501fbbbdeded1c1226fb9960094333904e76d2bc720a17ba8909c5ef15f22b04 - unrolled_symbol_table: 501fbbbdeded1c1226fb9960094333904e76d2bc720a17ba8909c5ef15f22b04 - initial_ast: 9e429aee174a4ce29f4346fa2dbe489a019478a63389d69dea33f17f932d6b88 - unrolled_ast: 9e429aee174a4ce29f4346fa2dbe489a019478a63389d69dea33f17f932d6b88 - ssa_ast: 5b7d3ad076c241cb4da3ca0003be3fcabba243eb285874b34e012808c22c3dec - flattened_ast: e7bc3f3bb2ef2035aa54a6db05c88ccc3d66bf6a5d3a14bc74e5fbdb7a1c0f1a - destructured_ast: 98f8c4f20fcf743e5351e71fd7fcefc224c17a1ff6e9a7c8dff1aaa03e3b8c2d - inlined_ast: 98f8c4f20fcf743e5351e71fd7fcefc224c17a1ff6e9a7c8dff1aaa03e3b8c2d - dce_ast: 98f8c4f20fcf743e5351e71fd7fcefc224c17a1ff6e9a7c8dff1aaa03e3b8c2d + - initial_symbol_table: 8820183c3f97a47e246f2f8fca9a300e8d4f67e630ceea76603398be970a7567 + type_checked_symbol_table: 8ca28e65a3b5178efc0f10b2467f7f48cfa76864c656b230e05fadd10967b1ec + unrolled_symbol_table: 8ca28e65a3b5178efc0f10b2467f7f48cfa76864c656b230e05fadd10967b1ec + initial_ast: a148c937972c9922064c82adb0a2dee1295359086965a98ce72eb20307c201fc + unrolled_ast: a148c937972c9922064c82adb0a2dee1295359086965a98ce72eb20307c201fc + ssa_ast: c9ddbfcd538f9eecb836edf839a6be93cbc56c104f46fecae8f67cc1928b49f9 + flattened_ast: 3e6218d8b75c2a888d823ad2e1f796da925718209453e6bc02ca2a50a56e9574 + destructured_ast: 712a1a94f923cd63bd1a7b1e94690dca2b6336b1c6b648a425567a85e2909a73 + inlined_ast: 712a1a94f923cd63bd1a7b1e94690dca2b6336b1c6b648a425567a85e2909a73 + dce_ast: 712a1a94f923cd63bd1a7b1e94690dca2b6336b1c6b648a425567a85e2909a73 bytecode: b48e67a8ef2d6c9c20bb5d14b831c6fdcccc5093212bccf31f75483613edb518 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/inline_expr_statement.out b/tests/expectations/compiler/function/inline_expr_statement.out index cc842b51d9..097fd76078 100644 --- a/tests/expectations/compiler/function/inline_expr_statement.out +++ b/tests/expectations/compiler/function/inline_expr_statement.out @@ -3,30 +3,30 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 592db5eb77e5cbe0b59431ccb2e2796cf0cd526fd07d36e284ea7dc48dc3a93c - type_checked_symbol_table: 2918fa125b63b1c455cec4e03690b37c6708e8e7ce1f7a409ee9baeb2944ea9a - unrolled_symbol_table: 2918fa125b63b1c455cec4e03690b37c6708e8e7ce1f7a409ee9baeb2944ea9a - initial_ast: 5f33f8a79d9150e561b54c65b85bfd9e5fffb13c03f28287f59772fa582fe280 - unrolled_ast: 5f33f8a79d9150e561b54c65b85bfd9e5fffb13c03f28287f59772fa582fe280 - ssa_ast: d5f09c20c81a87b4c94b853c718c368507a5f598bd79f8c9c69e72c2275ec811 - flattened_ast: 00bcfca03a88b95cfe4c77503589b40c69928589192b7b3c8c40beb256c48177 - destructured_ast: 779dab0f7eb43628ae4cf5eaa09808616b257a5aaef949de4733b52bb10f9699 - inlined_ast: 619d8abbbda1a18561a68c674a0bca54e1e96a454e5f18b97efe446e96f20976 - dce_ast: 53fa51417bebc9e0050a93a6869fc8315599e4ac73f1897ce3623c9c00ba6b11 + - initial_symbol_table: f5fed22d4e4b6b4c301fcfffae56985e0e1e86fab64783ed9e3f9ec27c3998c1 + type_checked_symbol_table: 811441f1f803e3cab41aad2c660ae48e6b5ff6f56b9a9696cb9c5d0541a8eada + unrolled_symbol_table: 811441f1f803e3cab41aad2c660ae48e6b5ff6f56b9a9696cb9c5d0541a8eada + initial_ast: 965e6d388f8fac4ff2d1837ab1013f483d08505d000e0a27de4972cf29f6e387 + unrolled_ast: 965e6d388f8fac4ff2d1837ab1013f483d08505d000e0a27de4972cf29f6e387 + ssa_ast: 958e2f4c64e4bc91ef0adcff8c0a9f5cecfb9bea19ee98811e0fde4c99e4b77d + flattened_ast: db6b0288b7f0a3f08f8a59e2c4aaa041ee981beabc2366375b00367367511f19 + destructured_ast: 956fd9fdbf21714a3f8167837eae6b2d9035c338ef209177381b05d1fe2f6a07 + inlined_ast: 1ef4d26de307466774a04912ef440a1954f752aed6a1308a0f71f85f4772ebfa + dce_ast: b9cd816dc3f0e5566ca5390650b0d680606ea2f41d5121403c743ccec85f1f0f bytecode: 3c05138e2787f4f82e5e0503d73b7a23b55758efa05449d5fd6f691902e575f3 errors: "" warnings: "" - compile: - - initial_symbol_table: 73a0c420f5a2c30bb60fa71e998a1a47c1d8ee64a102e6de921e3275158ee015 - type_checked_symbol_table: 1cf0afb79bf084c16f90d5444c2d9b0042dda5418149958b7f373fac12c637ed - unrolled_symbol_table: 1cf0afb79bf084c16f90d5444c2d9b0042dda5418149958b7f373fac12c637ed - initial_ast: f0d5f3ac03f8208085d3554d8049b82bd95c4de0dd08e664152ac1f3c51cdb44 - unrolled_ast: f0d5f3ac03f8208085d3554d8049b82bd95c4de0dd08e664152ac1f3c51cdb44 - ssa_ast: 0e42e0035a8ff3800bf4fd0b62a42678e41769c4851d12b0261891a449e77041 - flattened_ast: 90ac7a5f6ad698e1dff91ecb6a0805f2bcecc45bf3aea9d99cb77fc541bb877f - destructured_ast: 40473edee84038fa0deecdef023b99d8a552f5fbc8b7f1e1372467ccf189c339 - inlined_ast: f2de975e0a43733678d5daf367d136c547fd35579b51e79e640ce899f3cadc20 - dce_ast: f2de975e0a43733678d5daf367d136c547fd35579b51e79e640ce899f3cadc20 + - initial_symbol_table: cf84013b82210e7ff0a66d1c72f5ae2c3ec99c13ce9c6e273d8aa356ae251318 + type_checked_symbol_table: a39b18f5e6fead98a9a30a32266359dae808632d2778e73b78f8b44e470de442 + unrolled_symbol_table: a39b18f5e6fead98a9a30a32266359dae808632d2778e73b78f8b44e470de442 + initial_ast: ca5277fbe6c0c39ff05017835f3bd97b57208259b94eeeb84e1cbf6229e1171c + unrolled_ast: ca5277fbe6c0c39ff05017835f3bd97b57208259b94eeeb84e1cbf6229e1171c + ssa_ast: 5253755c9529c1b553a154429977f3efbf94e87ecae5b50380fbeb759fe215ca + flattened_ast: 51734056e7c63a70f5432313ad3f428af04e267b0bf5ce2ba97d83ab41864fd8 + destructured_ast: b3aad34aab4b5b2579d1f43c76b75780e534435cdd0dc45dac3e687f875092ff + inlined_ast: 798850e934ada8af3c0d6c907f5e00cfffe727a32c58a034d0d0da26381ad142 + dce_ast: 798850e934ada8af3c0d6c907f5e00cfffe727a32c58a034d0d0da26381ad142 bytecode: a0b5126f2fda64d2ee08377b08a787af8dcdb825268db2acf45a4a9d94dd8887 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/inline_twice.out b/tests/expectations/compiler/function/inline_twice.out index 45806dd207..0b2e230cc5 100644 --- a/tests/expectations/compiler/function/inline_twice.out +++ b/tests/expectations/compiler/function/inline_twice.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a79dd5bd949ae85f7f7a09c9d276f8c2172ca96b5ff7083f733d8b299b545119 - type_checked_symbol_table: 25b1c98795914c24c7b6d422f0fc63fdea2c433afb64152eaf22ad6c821875d7 - unrolled_symbol_table: 25b1c98795914c24c7b6d422f0fc63fdea2c433afb64152eaf22ad6c821875d7 - initial_ast: 24c967fb6865207abb9ee66af5895c09f63139851088084bde801ff5231b3cdf - unrolled_ast: 24c967fb6865207abb9ee66af5895c09f63139851088084bde801ff5231b3cdf - ssa_ast: 6d053f065878d5a6a32f174499980d024dfe109ee156930ca03e1d88055fabff - flattened_ast: 758c8f3ad6c239bc8aa3ffc8519d709638bac03707e82332163d3171652d286a - destructured_ast: 6b2a4b9949a84800ed5046198d881d319b3996a8aca6c15b42e1b75edf0af183 - inlined_ast: 63004f5dcad36178ee5ddd71ea31e66460b70207587d686b5be883702ef9bc3b - dce_ast: 63004f5dcad36178ee5ddd71ea31e66460b70207587d686b5be883702ef9bc3b + - initial_symbol_table: e6bedd945ae75cbdd3d92d4962ed471217f72ad7fd35342d07a4afaa5d76a484 + type_checked_symbol_table: b7ce5f33cd8a84fcc357f16f5defe064fa1d900d24526b243a5e75282c209eab + unrolled_symbol_table: b7ce5f33cd8a84fcc357f16f5defe064fa1d900d24526b243a5e75282c209eab + initial_ast: 94de07d6670e7104e90dc0b9c14b9e2067f53b74f392e52288b49e894812692c + unrolled_ast: 94de07d6670e7104e90dc0b9c14b9e2067f53b74f392e52288b49e894812692c + ssa_ast: 722cf87b87a48bf0094e6cfa46a3ed45c4a20b3846cc217ae5b4a8c508058e94 + flattened_ast: ce8296448fa0567bd26e233be2ea7f7ea84738c5f81ecbcecc0b9763b26b9767 + destructured_ast: b7a75eb255f3da9bffb5c5df85d3f1011f6ce50fbe84d38d669aff658fc9e57b + inlined_ast: 840f25316d576c990e3daf079855d7414bd79c29923a837f0c5d29f8ecab99c4 + dce_ast: 840f25316d576c990e3daf079855d7414bd79c29923a837f0c5d29f8ecab99c4 bytecode: 0d572a58b3609a5835754184c0d7b55b9bb11b101a11a1be25546a212a668e25 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/mutual_recursion_fail.out b/tests/expectations/compiler/function/mutual_recursion_fail.out index 3e481b993e..066807c110 100644 --- a/tests/expectations/compiler/function/mutual_recursion_fail.out +++ b/tests/expectations/compiler/function/mutual_recursion_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:5:16\n |\n 5 | return bar(n);\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:9:16\n |\n 9 | return foo(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:13:16\n |\n 13 | return bax(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:17:16\n |\n 17 | return baz(n);\n | ^^^^^^\nError [ETYC0372066]: Cyclic dependency between functions: `foo` --> `bar` --> `foo`\n" + - "Error [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:13:16\n |\n 13 | return bax(n);\n | ^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:17:16\n |\n 17 | return baz(n);\n | ^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:5:16\n |\n 5 | return bar(n);\n | ^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:9:16\n |\n 9 | return foo(n);\n | ^^^^^^\nError [ETYC0372059]: Cyclic dependency between functions: `baz` --> `bax` --> `baz`\n" diff --git a/tests/expectations/compiler/function/no_return.out b/tests/expectations/compiler/function/no_return.out index 2a3b54a714..7e2fd24e68 100644 --- a/tests/expectations/compiler/function/no_return.out +++ b/tests/expectations/compiler/function/no_return.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372038]: Function must return a value.\n --> compiler-test:4:5\n |\n 4 | transition main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372036]: Function must return a value.\n --> compiler-test:4:5\n |\n 4 | transition main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/no_transition_fail.out b/tests/expectations/compiler/function/no_transition_fail.out index 2c7570fd43..0c4487e7ea 100644 --- a/tests/expectations/compiler/function/no_transition_fail.out +++ b/tests/expectations/compiler/function/no_transition_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/non_transition_variant_input_record_fail.out b/tests/expectations/compiler/function/non_transition_variant_input_record_fail.out index 04b1ed4a81..66b8153e88 100644 --- a/tests/expectations/compiler/function/non_transition_variant_input_record_fail.out +++ b/tests/expectations/compiler/function/non_transition_variant_input_record_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:9:18\n |\n 9 | function foo(a: credits) -> u8 {\n | ^\nError [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:13:41\n |\n 13 | function boo(a: address, b: u64) -> credits {\n | ^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:9:18\n |\n 9 | function foo(a: credits) -> u8 {\n | ^\nError [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:13:41\n |\n 13 | function boo(a: address, b: u64) -> credits {\n | ^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/private_input_output.out b/tests/expectations/compiler/function/private_input_output.out index a5b6f74811..d38304a7db 100644 --- a/tests/expectations/compiler/function/private_input_output.out +++ b/tests/expectations/compiler/function/private_input_output.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f92df45a670c09725e3882d598273ec881593f42aeb3aa381fd8de32ddefd7e8 - type_checked_symbol_table: 90378fce43244ca9aeed7d95a4471e0073e14729e378dc28172b6d7215784581 - unrolled_symbol_table: 90378fce43244ca9aeed7d95a4471e0073e14729e378dc28172b6d7215784581 - initial_ast: 22cf2a151d4dafef51e81087affc1c9034a6579b8495f8aad57dfe5083449103 - unrolled_ast: 22cf2a151d4dafef51e81087affc1c9034a6579b8495f8aad57dfe5083449103 - ssa_ast: ab7fd9c6d26b8e4dada7c8556def772d04693720e8e6d1c0a00f13a8ce629ac4 - flattened_ast: 7068cc5c40be3fbb24a942fc651ffeba8a16bab70c45ba923bbbb3c4b2499111 - destructured_ast: fd8dd62aff00c173bed215b3e77aa4af8b32c75ad798b6cee8e394711e87324b - inlined_ast: fd8dd62aff00c173bed215b3e77aa4af8b32c75ad798b6cee8e394711e87324b - dce_ast: fd8dd62aff00c173bed215b3e77aa4af8b32c75ad798b6cee8e394711e87324b + - initial_symbol_table: 44b1f66c69246b837a76afd3f6394e152853e8da5220d401d4d4aa920c16f3cf + type_checked_symbol_table: d9fdf9503bee5e6f960b0ef4b51fd1bd6b46dfc76544bf94372515a194f8ee45 + unrolled_symbol_table: d9fdf9503bee5e6f960b0ef4b51fd1bd6b46dfc76544bf94372515a194f8ee45 + initial_ast: d36d3814d0989597c2ea8b96e588e98d3ecaf22644a2f36fa4593148cc449d14 + unrolled_ast: d36d3814d0989597c2ea8b96e588e98d3ecaf22644a2f36fa4593148cc449d14 + ssa_ast: f672e2be0ed7639ef77d7d1eff01c6e1b0f662108655739585671b228ad34a0f + flattened_ast: aad9368f5fc1116ae6640ec4f5f65cf901d38884151ab32d8719de3dd47d829f + destructured_ast: e72ce36e36bc32af981877d248516f11c8767581e6629b689c749267a4449dc6 + inlined_ast: e72ce36e36bc32af981877d248516f11c8767581e6629b689c749267a4449dc6 + dce_ast: e72ce36e36bc32af981877d248516f11c8767581e6629b689c749267a4449dc6 bytecode: 9b307e37c2c37a7ce3a9817079f2c4701e09be5a72610792a62a26d9e2027e0d errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out b/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out index 7cbc47b75a..d681d17f24 100644 --- a/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out +++ b/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9adf04102299238505d5d65b877542a1192dbee8b884ed01fe338f15df830949 - type_checked_symbol_table: 07ef4c6e2eac4b32c5c1dc79c52839ae377f354c95a22733bc2b1e52913302bf - unrolled_symbol_table: 07ef4c6e2eac4b32c5c1dc79c52839ae377f354c95a22733bc2b1e52913302bf - initial_ast: 999cb59ebfd75e76bb769c4aa913b28699336e9f5f99f2dddc37f5fb3a618a62 - unrolled_ast: 999cb59ebfd75e76bb769c4aa913b28699336e9f5f99f2dddc37f5fb3a618a62 - ssa_ast: 913943a403ee3e1b6953c83d7c24daa65392554d2a715bcfd492ce16650e595a - flattened_ast: 288cb89eee02d67e7a3bc8a7c13e5f35d2e441ead006e766db7b020f1622d314 - destructured_ast: 6fd735e4701ab993f2b33ee9ac29a458df27e702f77400a6cba5b5d74687c3aa - inlined_ast: 6fd735e4701ab993f2b33ee9ac29a458df27e702f77400a6cba5b5d74687c3aa - dce_ast: 6fd735e4701ab993f2b33ee9ac29a458df27e702f77400a6cba5b5d74687c3aa + - initial_symbol_table: b6d1816a8f6e870b3bc423b766997f0133e002a9e31349b49d49bff3691e3d0c + type_checked_symbol_table: 7bf4f8d87ca1fd505c66351c39344b71dc8c3ccc2597b6d1d38325a12090142c + unrolled_symbol_table: 7bf4f8d87ca1fd505c66351c39344b71dc8c3ccc2597b6d1d38325a12090142c + initial_ast: 52135cf71908952d29f25fde253875455f33ffdadf4a8f29efe57705987b2966 + unrolled_ast: 52135cf71908952d29f25fde253875455f33ffdadf4a8f29efe57705987b2966 + ssa_ast: f140051a26d63d84766d796ee21d05c45032bea98d002b61b16bd631912f483d + flattened_ast: 347069c563cbb2f18571427d7aafc7e28e557b404fcdb58749d4347fcd63653f + destructured_ast: 45c613aa4294537e8aece42564bf02e5e5469e3c39982364983af2cd39b567ae + inlined_ast: 45c613aa4294537e8aece42564bf02e5e5469e3c39982364983af2cd39b567ae + dce_ast: 45c613aa4294537e8aece42564bf02e5e5469e3c39982364983af2cd39b567ae bytecode: eac5d0cfbac44a017f12d12a655088f7aa15d0567afa771b5ff8d83ba7a9eacd errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/program_function_empty_body.out b/tests/expectations/compiler/function/program_function_empty_body.out index edf72435ff..23e28e7207 100644 --- a/tests/expectations/compiler/function/program_function_empty_body.out +++ b/tests/expectations/compiler/function/program_function_empty_body.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 65b73250de2824bffd0585254957132ceb31dff88b3892b4d91a83292b3887af - type_checked_symbol_table: a6c6b899788184b0fccdc0e9279db249d581302e79d90e2b907c5244aac08f86 - unrolled_symbol_table: a6c6b899788184b0fccdc0e9279db249d581302e79d90e2b907c5244aac08f86 - initial_ast: 17ca34f4ecd83a3a65a0aa8a748c6b0e8aa502049e7ba72fbc469b359db77dcf - unrolled_ast: 17ca34f4ecd83a3a65a0aa8a748c6b0e8aa502049e7ba72fbc469b359db77dcf - ssa_ast: 17ca34f4ecd83a3a65a0aa8a748c6b0e8aa502049e7ba72fbc469b359db77dcf - flattened_ast: 692ab0eaaf4145c13985169fd69a9dce9e450f1a2c1bea11757cd2704e5b5ab6 - destructured_ast: 610c53ca1be7d51275d8ea52b6cf5cfc038f62c73f953c439033679e28374068 - inlined_ast: 610c53ca1be7d51275d8ea52b6cf5cfc038f62c73f953c439033679e28374068 - dce_ast: 610c53ca1be7d51275d8ea52b6cf5cfc038f62c73f953c439033679e28374068 + - initial_symbol_table: 36b7faf9448e2d448d4e2f6a8e56a4859d2d30a73fdafbe2b1395f251c2264f0 + type_checked_symbol_table: ca838513a9f6efe74a534aedc58ab3b949ac0fa94b922045854e8ec41e9a21d2 + unrolled_symbol_table: ca838513a9f6efe74a534aedc58ab3b949ac0fa94b922045854e8ec41e9a21d2 + initial_ast: e08ce8353e657ceba1edc49323184ced2f0ffc6ddd477970cdd23f006e612a6f + unrolled_ast: e08ce8353e657ceba1edc49323184ced2f0ffc6ddd477970cdd23f006e612a6f + ssa_ast: e08ce8353e657ceba1edc49323184ced2f0ffc6ddd477970cdd23f006e612a6f + flattened_ast: 50281b94d5bd235fc95f6a409433434e97260bfdb6a9d7f51240bbe7db781940 + destructured_ast: 08357608404b82786abf6fc0c4f42e07c50ae0b8d18e63221971a4e7ead6b195 + inlined_ast: 08357608404b82786abf6fc0c4f42e07c50ae0b8d18e63221971a4e7ead6b195 + dce_ast: 08357608404b82786abf6fc0c4f42e07c50ae0b8d18e63221971a4e7ead6b195 bytecode: abc411306856bb13d787153cb890d742f962dfe924477954c427b7a3ab4e279b errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/program_function_unit_type.out b/tests/expectations/compiler/function/program_function_unit_type.out index 88b81e6675..7b7853e8ba 100644 --- a/tests/expectations/compiler/function/program_function_unit_type.out +++ b/tests/expectations/compiler/function/program_function_unit_type.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c2861e09439b0c5a4fb79b4f58afbb3b5888609d6acc3fea40569febb72bfdbc - type_checked_symbol_table: c7796002f668497bc41329aaa9b9419b65fe474009b9adcbc6c654f95fc1216d - unrolled_symbol_table: c7796002f668497bc41329aaa9b9419b65fe474009b9adcbc6c654f95fc1216d - initial_ast: b6f739542611385c856d2884d7783f8c0ab311d09c786a2610285dd87ccdad01 - unrolled_ast: b6f739542611385c856d2884d7783f8c0ab311d09c786a2610285dd87ccdad01 - ssa_ast: b6f739542611385c856d2884d7783f8c0ab311d09c786a2610285dd87ccdad01 - flattened_ast: c71ae7872d89a458a747a9374892efe1ac89fa742323009b7b90227ddf2fd214 - destructured_ast: 06712be35ecebdfa14ab57b8b5e999d8f3a81bf1290355fb593d60d83b80523c - inlined_ast: 06712be35ecebdfa14ab57b8b5e999d8f3a81bf1290355fb593d60d83b80523c - dce_ast: 06712be35ecebdfa14ab57b8b5e999d8f3a81bf1290355fb593d60d83b80523c + - initial_symbol_table: fc13bdde1a137e7830afea9101201b3bfeeb17c7fef3d35434cd38f2606caa4b + type_checked_symbol_table: c0c1df878b7bad602bfcd3f9e8be8485685986fbd451b8b41bb6a16e171b859e + unrolled_symbol_table: c0c1df878b7bad602bfcd3f9e8be8485685986fbd451b8b41bb6a16e171b859e + initial_ast: 20e7402cb8986e14a16e37c103d7f38b9b979fdca0436cc315c80c229ed90d61 + unrolled_ast: 20e7402cb8986e14a16e37c103d7f38b9b979fdca0436cc315c80c229ed90d61 + ssa_ast: 20e7402cb8986e14a16e37c103d7f38b9b979fdca0436cc315c80c229ed90d61 + flattened_ast: 3c3edc53601c3a6382e1dc3b598c3e7cef75aa140fb92a8100eb38d153ec322a + destructured_ast: d816bd3278a5af867c500dc8e00cd7cd34a1db05fd067dd5a338e2666b5ccc0a + inlined_ast: d816bd3278a5af867c500dc8e00cd7cd34a1db05fd067dd5a338e2666b5ccc0a + dce_ast: d816bd3278a5af867c500dc8e00cd7cd34a1db05fd067dd5a338e2666b5ccc0a bytecode: 8ed93150ef7e3de74faaace88f995a65373e73428068d75142100775684d2fe7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/program_function_with_mode.out b/tests/expectations/compiler/function/program_function_with_mode.out index 0b6edfd5bd..d87ca171fd 100644 --- a/tests/expectations/compiler/function/program_function_with_mode.out +++ b/tests/expectations/compiler/function/program_function_with_mode.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 991ce4017279108753122a6d5be2c08cd77302adaffb15570961f3f2ebef94ae - type_checked_symbol_table: d472d0eb65bba5677bc1770a49ae5fcbafb7d093a6bbe84d3c6e76d39775f1f0 - unrolled_symbol_table: d472d0eb65bba5677bc1770a49ae5fcbafb7d093a6bbe84d3c6e76d39775f1f0 - initial_ast: 40472bd39d89d379ff967fcf7a182c8e45854f61533551379e91c4882bedf487 - unrolled_ast: 40472bd39d89d379ff967fcf7a182c8e45854f61533551379e91c4882bedf487 - ssa_ast: 2c3af1dbd64cc15fd35761b28221b477297ca8d017baa2df1251b5537a357647 - flattened_ast: cf1ac13e1fc4637aa67eaf104198b77664a01c376c88190ae438d27cd59e6b92 - destructured_ast: 377bda4b165f6ccdb41963c4bddcd85c11856ae09265ad58a6b798f04ef992ca - inlined_ast: 377bda4b165f6ccdb41963c4bddcd85c11856ae09265ad58a6b798f04ef992ca - dce_ast: 377bda4b165f6ccdb41963c4bddcd85c11856ae09265ad58a6b798f04ef992ca + - initial_symbol_table: 7007debebaa5f7e9740a711496ecc0bb7e72e7ef2d81f031c00c70a3e5ceeb8c + type_checked_symbol_table: 888c672247d32ce8e49b7d940bb57603eab0e7817f2a9e4c514cda560a456da7 + unrolled_symbol_table: 888c672247d32ce8e49b7d940bb57603eab0e7817f2a9e4c514cda560a456da7 + initial_ast: 7a332fc1982554487217740d1a693b80a30f1655cee66a426043eb2b524e9976 + unrolled_ast: 7a332fc1982554487217740d1a693b80a30f1655cee66a426043eb2b524e9976 + ssa_ast: 55974d58679932eadfb0648753a8b187e93a62f3c21e21d4618c7138d584434e + flattened_ast: f1cf587c0060c545b053ad73f70ee214411986bc9d74ea43ea959b5953d82068 + destructured_ast: 67b3aaf0a2f2809d102ac889896300967f29a7b39e026fd56d4281834c3b6bc3 + inlined_ast: 67b3aaf0a2f2809d102ac889896300967f29a7b39e026fd56d4281834c3b6bc3 + dce_ast: 67b3aaf0a2f2809d102ac889896300967f29a7b39e026fd56d4281834c3b6bc3 bytecode: 7d4b43f8c90f7d5050fe8df5f3e44485187d882e4ecd4a9fcf9aae5ae14413df errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/record_in_conditional_return.out b/tests/expectations/compiler/function/record_in_conditional_return.out index ed9bc95a81..304d9229f9 100644 --- a/tests/expectations/compiler/function/record_in_conditional_return.out +++ b/tests/expectations/compiler/function/record_in_conditional_return.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c9c7930e21c304c4eb3a001bea566f2abdc6306ccf40df4115f3ca799e64b019 - type_checked_symbol_table: 0452610f22ea9023fc2c0f30008f08ec1f4cb5875b6ab605c989851f92550dba - unrolled_symbol_table: 0452610f22ea9023fc2c0f30008f08ec1f4cb5875b6ab605c989851f92550dba - initial_ast: 7facbc41e899f18c1539079c0ea5b631c1133b83de690fedd3aa1f9b195989bc - unrolled_ast: 7facbc41e899f18c1539079c0ea5b631c1133b83de690fedd3aa1f9b195989bc - ssa_ast: f350e5832a4dac127e4090e1cf95ad5a51e0b92d0b6577bb9f1fc79944327c94 - flattened_ast: 68312f829f54d454a421f7bc17c962daec1f07b62d75ec2afaf6b35bfc3351d8 - destructured_ast: 3c5221277c80ce811f051d0b6e723453a975b749d2c735dbfa5be038469fe180 - inlined_ast: 3c5221277c80ce811f051d0b6e723453a975b749d2c735dbfa5be038469fe180 - dce_ast: 3c5221277c80ce811f051d0b6e723453a975b749d2c735dbfa5be038469fe180 + - initial_symbol_table: 1edb65b066760f5f4ee37856d6537b44ca3abbfb89680fbe6b2707b58f0a16c6 + type_checked_symbol_table: 5c6d6fc56c98030aaa4169337164ef98cc762ba0c07acbd246955a93c99bd040 + unrolled_symbol_table: 5c6d6fc56c98030aaa4169337164ef98cc762ba0c07acbd246955a93c99bd040 + initial_ast: 0cfaae0397667dc5bb5a27cb566e9af5e06a5744e98c6f4c18bded4c5b7c5dcb + unrolled_ast: 0cfaae0397667dc5bb5a27cb566e9af5e06a5744e98c6f4c18bded4c5b7c5dcb + ssa_ast: 61fdbf42d50cfc8a21a3849ab5095638113dfad2dac524eed85ee959bbbfaacb + flattened_ast: c3b75206fc05d7409c77748c5b760605dd12fd9297c86bb8af46375e3bce2015 + destructured_ast: f3610bd6b642a03ff3e02436ef92e463cf929e2279ea450d87041cfec32a46e5 + inlined_ast: f3610bd6b642a03ff3e02436ef92e463cf929e2279ea450d87041cfec32a46e5 + dce_ast: f3610bd6b642a03ff3e02436ef92e463cf929e2279ea450d87041cfec32a46e5 bytecode: d33387a022d43e9692d4e894d0f01081de02b7a97bca69ab6b769b9ee41672a2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/self.out b/tests/expectations/compiler/function/self.out index 0aa24907f4..b23842c4f1 100644 --- a/tests/expectations/compiler/function/self.out +++ b/tests/expectations/compiler/function/self.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1c610ef981fc2509135ab631da2b5a6f77d7aa77862dae39b1f711c0d2224af1 - type_checked_symbol_table: 7147f52922b597a99b875b328ba9ecdd4e10fd955f5ee60fbe9b3da73cdcc036 - unrolled_symbol_table: 7147f52922b597a99b875b328ba9ecdd4e10fd955f5ee60fbe9b3da73cdcc036 - initial_ast: b9689a5975a03be76c64c26895bd2e44fd8aba6ad77f05b7d418df45b1374364 - unrolled_ast: b9689a5975a03be76c64c26895bd2e44fd8aba6ad77f05b7d418df45b1374364 - ssa_ast: 2a5314d4543035de335d29082709c8fe49df3ce016aad13d4008e88f40ac5f4c - flattened_ast: c1157d5e5d0fccad82188015ffe3abec0bd4ef9ddaf3a7dc9ff160c755e1adb4 - destructured_ast: 4992a44e5559fad365b8a495eec2e26e9f5beda423ece31217a42440d56c49f9 - inlined_ast: 4992a44e5559fad365b8a495eec2e26e9f5beda423ece31217a42440d56c49f9 - dce_ast: 4992a44e5559fad365b8a495eec2e26e9f5beda423ece31217a42440d56c49f9 + - initial_symbol_table: 315f1c570d914dafe7e426172263e370c28b16a38be7da61322ee60aa16dcc5b + type_checked_symbol_table: 67472c8290ff03d6776375b89c9b29d4fe0cd7480f9f8f0dc23aef520d546dc3 + unrolled_symbol_table: 67472c8290ff03d6776375b89c9b29d4fe0cd7480f9f8f0dc23aef520d546dc3 + initial_ast: fb5b5cb4532d9634983bcb5414778a9dcf29597d517d21fffbc2c9acd03f80c2 + unrolled_ast: fb5b5cb4532d9634983bcb5414778a9dcf29597d517d21fffbc2c9acd03f80c2 + ssa_ast: df256812b65e2c276cac201b1ec5ac000f50e43e7a26b62f25f6d6814b12483e + flattened_ast: 483ef9b276c70a03cd5999f942abe6cb073739e4329f817d7689921077884c80 + destructured_ast: cff63edd7810b0158a480d8b2cf0001f97ce0a1d45e48d52228fe7ae33e2c1cc + inlined_ast: cff63edd7810b0158a480d8b2cf0001f97ce0a1d45e48d52228fe7ae33e2c1cc + dce_ast: cff63edd7810b0158a480d8b2cf0001f97ce0a1d45e48d52228fe7ae33e2c1cc bytecode: 189a1342c4be53d495f4ebae39c645cb1f27532c1cc1f27f4ed656ed200f05af errors: "" warnings: "" diff --git a/tests/expectations/compiler/function/self_fail.out b/tests/expectations/compiler/function/self_fail.out index 9a2254843b..bac44bf633 100644 --- a/tests/expectations/compiler/function/self_fail.out +++ b/tests/expectations/compiler/function/self_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372043]: The allowed accesses to `self` are `self.caller` and `self.signer`.\n --> compiler-test:5:21\n |\n 5 | return self.foo == addr;\n | ^^^\nError [ETYC0372003]: Expected type `address` but type `no type` was found\n --> compiler-test:5:16\n |\n 5 | return self.foo == addr;\n | ^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372040]: The allowed accesses to `self` are `self.caller` and `self.signer`.\n --> compiler-test:5:21\n |\n 5 | return self.foo == addr;\n | ^^^\nError [ETYC0372003]: Expected type `address` but type `no type` was found\n --> compiler-test:5:16\n |\n 5 | return self.foo == addr;\n | ^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/self_finalize_fail.out b/tests/expectations/compiler/function/self_finalize_fail.out index d943da4f2b..7a7e3c2820 100644 --- a/tests/expectations/compiler/function/self_finalize_fail.out +++ b/tests/expectations/compiler/function/self_finalize_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372076]: `self.caller` is not a valid operand in a finalize context.\n --> compiler-test:7:30\n |\n 7 | assert_eq(addr, self.caller);\n | ^^^^^^\n" + - "Error [ETYC0372066]: `self.caller` is not a valid operand in an async function call context.\n --> compiler-test:8:30\n |\n 8 | assert_eq(addr, self.caller);\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/function/self_recursive_cycle_fail.out b/tests/expectations/compiler/function/self_recursive_cycle_fail.out index 3e62dc6be8..7b609eb46e 100644 --- a/tests/expectations/compiler/function/self_recursive_cycle_fail.out +++ b/tests/expectations/compiler/function/self_recursive_cycle_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return fib(n - 1u8) + fib(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:35\n |\n 8 | return fib(n - 1u8) + fib(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:16:20\n |\n 16 | return foo(n - 1u8) + foo(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:16:35\n |\n 16 | return foo(n - 1u8) + foo(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372066]: Cyclic dependency between functions: `fib` --> `fib`\n" + - "Error [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:16:20\n |\n 16 | return foo(n - 1u8) + foo(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:16:35\n |\n 16 | return foo(n - 1u8) + foo(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return fib(n - 1u8) + fib(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:35\n |\n 8 | return fib(n - 1u8) + fib(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372059]: Cyclic dependency between functions: `foo` --> `foo`\n" diff --git a/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out b/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out index 60f92ca84d..6b02687451 100644 --- a/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out +++ b/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out b/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out index 4d89eab9be..dfb281c08f 100644 --- a/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out +++ b/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/too_many_transitions_fail.out b/tests/expectations/compiler/function/too_many_transitions_fail.out index 641b3e16e5..cecf67c255 100644 --- a/tests/expectations/compiler/function/too_many_transitions_fail.out +++ b/tests/expectations/compiler/function/too_many_transitions_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372052]: The number of transitions exceeds the maximum. snarkVM allows up to 31 transitions within a single program.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372047]: The number of transitions exceeds the maximum. snarkVM allows up to 31 transitions within a single program.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out b/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out index 7f296da9c6..b3f4a9a109 100644 --- a/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out +++ b/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/undefined_data_type_fail.out b/tests/expectations/compiler/function/undefined_data_type_fail.out index 5db603eeae..e1f35aa452 100644 --- a/tests/expectations/compiler/function/undefined_data_type_fail.out +++ b/tests/expectations/compiler/function/undefined_data_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372017]: The type `Board` is not found in the current scope.\n --> compiler-test:4:35\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `u128bool` is not found in the current scope.\n --> compiler-test:4:55\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372005]: Unknown variable `test`\n --> compiler-test:5:16\n |\n 5 | return test;\n | ^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372017]: The type `Board` is not found in the current scope.\n --> compiler-test:4:35\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Board` is not found in the current scope.\n --> compiler-test:4:35\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `u128bool` is not found in the current scope.\n --> compiler-test:4:55\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372005]: Unknown variable `test`\n --> compiler-test:5:16\n |\n 5 | return test;\n | ^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/undefined_fail.out b/tests/expectations/compiler/function/undefined_fail.out index 9f7902209a..3c5111e5ea 100644 --- a/tests/expectations/compiler/function/undefined_fail.out +++ b/tests/expectations/compiler/function/undefined_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372005]: Unknown function `my_function`\n --> compiler-test:5:9\n |\n 5 | my_function();\n | ^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372005]: Unknown function `my_function`\n --> compiler-test:5:9\n |\n 5 | my_function();\n | ^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/unknown_parameter_type_fail.out b/tests/expectations/compiler/function/unknown_parameter_type_fail.out index 62bd80146b..51b0b078a2 100644 --- a/tests/expectations/compiler/function/unknown_parameter_type_fail.out +++ b/tests/expectations/compiler/function/unknown_parameter_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:4:28\n |\n 4 | transition main(a: u8, foo: Foo) -> u8 {\n | ^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:8:38\n |\n 8 | transition returns_foo(a: u8) -> Foo {\n | ^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372003]: Expected type `Foo` but type `u8` was found\n --> compiler-test:9:16\n |\n 9 | return a;\n | ^\n" + - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:4:28\n |\n 4 | transition main(a: u8, foo: Foo) -> u8 {\n | ^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:8:38\n |\n 8 | transition returns_foo(a: u8) -> Foo {\n | ^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372007]: Expected one type from `u8`, but got `Foo`\n --> compiler-test:9:16\n |\n 9 | return a;\n | ^\n" diff --git a/tests/expectations/compiler/group/add.out b/tests/expectations/compiler/group/add.out index 5b6169c681..6be1354bea 100644 --- a/tests/expectations/compiler/group/add.out +++ b/tests/expectations/compiler/group/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ded86d6230a1fc2fed0afd1a289b434681fb3848b70065ac284e30f01ea8c520 - type_checked_symbol_table: f075ee0b1b41034aa379643b5ef996656fcbbd4b854a879ab66cb4b5a0aca92b - unrolled_symbol_table: f075ee0b1b41034aa379643b5ef996656fcbbd4b854a879ab66cb4b5a0aca92b - initial_ast: b2e5fef44fea1f5da290f4094823355112e5c09573711e87242d8b4b1f3e87c4 - unrolled_ast: b2e5fef44fea1f5da290f4094823355112e5c09573711e87242d8b4b1f3e87c4 - ssa_ast: a5b4049d9343c56b85cec34dc2f374cecac4c01345235a310e38b88f675a843c - flattened_ast: f82f325697681132dd9be364376d7613ddc98307cc0061572a527ddad51c7b7d - destructured_ast: 006703e49f526c7b2481bc85468d9f629cca64f084abbbe1b30735acea76b2de - inlined_ast: 006703e49f526c7b2481bc85468d9f629cca64f084abbbe1b30735acea76b2de - dce_ast: 006703e49f526c7b2481bc85468d9f629cca64f084abbbe1b30735acea76b2de + - initial_symbol_table: b8bb90f0d62930603ce663c559b0960f6a787f57c11c12b4b3488a25e4847bcf + type_checked_symbol_table: 574ace7afae151d2ea92f3debc7dbbf38e22ed193fbe969d747ce6e5add695e6 + unrolled_symbol_table: 574ace7afae151d2ea92f3debc7dbbf38e22ed193fbe969d747ce6e5add695e6 + initial_ast: 8cf20813df6f4ed8f792dc6ccc52d81601521cec79377d6a9eb39a9d997c1b52 + unrolled_ast: 8cf20813df6f4ed8f792dc6ccc52d81601521cec79377d6a9eb39a9d997c1b52 + ssa_ast: c7b56503e1ec4333ec92912124eba8b295bb55b98b31169d050c3afcc96f19f4 + flattened_ast: 6ed0d49212f092aafacd0cf6e8fa575367c6dc5d9438d01c965649cfaf865e88 + destructured_ast: 98d8fc8be6560f42a96e8f0a3ab795769fb5e314551ed70deb44f21685424de5 + inlined_ast: 98d8fc8be6560f42a96e8f0a3ab795769fb5e314551ed70deb44f21685424de5 + dce_ast: 98d8fc8be6560f42a96e8f0a3ab795769fb5e314551ed70deb44f21685424de5 bytecode: e5ff5cd670d0f32a96530eeba1b403bf2d6d5ff8ed31f4328227bb8857708f76 errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/assert_eq.out b/tests/expectations/compiler/group/assert_eq.out index c62812953e..96f15e2ec5 100644 --- a/tests/expectations/compiler/group/assert_eq.out +++ b/tests/expectations/compiler/group/assert_eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f08aa27687df89a108a6f10eff8f7fb2b3ab00ae260da4a9e0cc20ca365356d0 - type_checked_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - unrolled_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - initial_ast: 7556e586ba1ed4e359b375b4f78966f5fd09b67a75d61c8ea38226f6f025218b - unrolled_ast: 7556e586ba1ed4e359b375b4f78966f5fd09b67a75d61c8ea38226f6f025218b - ssa_ast: 0a4e3ece2d5e8e691a450d3240c113656c14b558887fd7f4312e5b6fddcd9602 - flattened_ast: e58340dcab0c2a2132dda3ccbdf9f578a551485cf47e384cfc2b9941dcb8d87b - destructured_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 - inlined_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 - dce_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 + - initial_symbol_table: c6ace36f846cca393665c4d05737bf9e988ee9f0ce4bb10e448e40111cc8fbf8 + type_checked_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + unrolled_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + initial_ast: 1bf680009a7d98932fd85b95b35156eb5244abaaf2ced952b228065291145133 + unrolled_ast: 1bf680009a7d98932fd85b95b35156eb5244abaaf2ced952b228065291145133 + ssa_ast: b2f06fa01a316ebfc04ce1ef8d734f182a853df4b0e3cb386e8e99f7acc71235 + flattened_ast: f5d8d63a8a4f8ff28beb6977f3f15fd8b409164226f6496be9ea1015e761b656 + destructured_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e + inlined_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e + dce_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e bytecode: eb0861b61cc665bd3edf10993c284116f86a8853e5c44847b4f0ec2d99fd6c3f errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/eq.out b/tests/expectations/compiler/group/eq.out index c62812953e..96f15e2ec5 100644 --- a/tests/expectations/compiler/group/eq.out +++ b/tests/expectations/compiler/group/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f08aa27687df89a108a6f10eff8f7fb2b3ab00ae260da4a9e0cc20ca365356d0 - type_checked_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - unrolled_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - initial_ast: 7556e586ba1ed4e359b375b4f78966f5fd09b67a75d61c8ea38226f6f025218b - unrolled_ast: 7556e586ba1ed4e359b375b4f78966f5fd09b67a75d61c8ea38226f6f025218b - ssa_ast: 0a4e3ece2d5e8e691a450d3240c113656c14b558887fd7f4312e5b6fddcd9602 - flattened_ast: e58340dcab0c2a2132dda3ccbdf9f578a551485cf47e384cfc2b9941dcb8d87b - destructured_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 - inlined_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 - dce_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 + - initial_symbol_table: c6ace36f846cca393665c4d05737bf9e988ee9f0ce4bb10e448e40111cc8fbf8 + type_checked_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + unrolled_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + initial_ast: 1bf680009a7d98932fd85b95b35156eb5244abaaf2ced952b228065291145133 + unrolled_ast: 1bf680009a7d98932fd85b95b35156eb5244abaaf2ced952b228065291145133 + ssa_ast: b2f06fa01a316ebfc04ce1ef8d734f182a853df4b0e3cb386e8e99f7acc71235 + flattened_ast: f5d8d63a8a4f8ff28beb6977f3f15fd8b409164226f6496be9ea1015e761b656 + destructured_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e + inlined_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e + dce_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e bytecode: eb0861b61cc665bd3edf10993c284116f86a8853e5c44847b4f0ec2d99fd6c3f errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/group_mul.out b/tests/expectations/compiler/group/group_mul.out index 848545615c..18e0e5afee 100644 --- a/tests/expectations/compiler/group/group_mul.out +++ b/tests/expectations/compiler/group/group_mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b8a07b9f59d86ca1ca10262248be8fb9aae99714207021149512e1b011b08176 - type_checked_symbol_table: da6ef3baefa8c83242079dfe037ba4ea087a04fb82ba2aae0353375860f1ad97 - unrolled_symbol_table: da6ef3baefa8c83242079dfe037ba4ea087a04fb82ba2aae0353375860f1ad97 - initial_ast: 90dfbb43026b9d3786272e4b184d7517621353147439606c9f6209cb2510a240 - unrolled_ast: 90dfbb43026b9d3786272e4b184d7517621353147439606c9f6209cb2510a240 - ssa_ast: b37d1138c6944297ac922f64193ab4f5782abadea5dc47eeca271eaeaf98bbd8 - flattened_ast: 95af8e740811fe9c643dad2fa731b7a7d3cadc463d95f8e10b7bca31638391fd - destructured_ast: 55cc7f1c2c0a39cd2c79e41c1e28b334fe90cfd415c3da71943ea3b8c5c30453 - inlined_ast: 55cc7f1c2c0a39cd2c79e41c1e28b334fe90cfd415c3da71943ea3b8c5c30453 - dce_ast: 60f933d6ab69be1fa96d73f6e8b107878a34503a22b298634ea0cd30c4ef9c75 + - initial_symbol_table: ad8aed9b76c721c0f02b3009ca7f0f71951828f41ca7a47b6457f72fb534dcf3 + type_checked_symbol_table: 19bae2c3cd8c5e27499684fc6a0c1bd2e59280eb6b5866bbb71181722c8bdbcd + unrolled_symbol_table: 19bae2c3cd8c5e27499684fc6a0c1bd2e59280eb6b5866bbb71181722c8bdbcd + initial_ast: 1a4b528cb556631ca0787d9ab675ddd0d932a1f3940bdb27e34ecf76f86f57ca + unrolled_ast: 1a4b528cb556631ca0787d9ab675ddd0d932a1f3940bdb27e34ecf76f86f57ca + ssa_ast: 405e9166ac62e6d7794dcfe562137776970d362936f5d2418593c0f57d8d9c9f + flattened_ast: 5d6822d342573822827af6c932b7d097a86193977c75b83964e8ad599fb61d85 + destructured_ast: a90b537fa7c191b73befd0697eb52560683c3bbb36e81ddae73b853da3f992f7 + inlined_ast: a90b537fa7c191b73befd0697eb52560683c3bbb36e81ddae73b853da3f992f7 + dce_ast: b69e37ef6c3ebe7caa3fdadf0d956ee9b5cbdccfd8baf31f1d28781ba7cfd86b bytecode: 893927d508e10659ff793c68266c2702a5002dab713b22c8e5d00abec91925e7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/input.out b/tests/expectations/compiler/group/input.out index c62812953e..96f15e2ec5 100644 --- a/tests/expectations/compiler/group/input.out +++ b/tests/expectations/compiler/group/input.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f08aa27687df89a108a6f10eff8f7fb2b3ab00ae260da4a9e0cc20ca365356d0 - type_checked_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - unrolled_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - initial_ast: 7556e586ba1ed4e359b375b4f78966f5fd09b67a75d61c8ea38226f6f025218b - unrolled_ast: 7556e586ba1ed4e359b375b4f78966f5fd09b67a75d61c8ea38226f6f025218b - ssa_ast: 0a4e3ece2d5e8e691a450d3240c113656c14b558887fd7f4312e5b6fddcd9602 - flattened_ast: e58340dcab0c2a2132dda3ccbdf9f578a551485cf47e384cfc2b9941dcb8d87b - destructured_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 - inlined_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 - dce_ast: 2149236c569da741270aba4f93c5b14392d265c14c666257b2e554bccdd5b397 + - initial_symbol_table: c6ace36f846cca393665c4d05737bf9e988ee9f0ce4bb10e448e40111cc8fbf8 + type_checked_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + unrolled_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + initial_ast: 1bf680009a7d98932fd85b95b35156eb5244abaaf2ced952b228065291145133 + unrolled_ast: 1bf680009a7d98932fd85b95b35156eb5244abaaf2ced952b228065291145133 + ssa_ast: b2f06fa01a316ebfc04ce1ef8d734f182a853df4b0e3cb386e8e99f7acc71235 + flattened_ast: f5d8d63a8a4f8ff28beb6977f3f15fd8b409164226f6496be9ea1015e761b656 + destructured_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e + inlined_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e + dce_ast: c6c64f71b1a09bc91a1f15c443c4c2e207b9219665f57b56758604ea00006e9e bytecode: eb0861b61cc665bd3edf10993c284116f86a8853e5c44847b4f0ec2d99fd6c3f errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/mul.out b/tests/expectations/compiler/group/mul.out index 72d7ba8e3d..145351cd62 100644 --- a/tests/expectations/compiler/group/mul.out +++ b/tests/expectations/compiler/group/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 46d5cfc41222014c8a3fab15a273ddf3413f9b28dc6b462688bb79c6be9919ba - type_checked_symbol_table: 2883046e936b27a40d8168bd8f8a2cabcb83bcb218f7766b2751f2e4cc3a9882 - unrolled_symbol_table: 2883046e936b27a40d8168bd8f8a2cabcb83bcb218f7766b2751f2e4cc3a9882 - initial_ast: 9738a91834a2fde42464f6c793e8a695615fd577de46e9533329092854ec37e4 - unrolled_ast: 9738a91834a2fde42464f6c793e8a695615fd577de46e9533329092854ec37e4 - ssa_ast: 5fcd27ff5650650884a7f1ebe56870a21cd71a9ee202c26e693718311dcc6e36 - flattened_ast: 93053235bddb07ec69b6e8a973e6f850ffd2963990a6ee66f5a72e2a62436393 - destructured_ast: a35215cbf67f283d9dd76f04fc881365b82e642660887917476f1e513f65e68b - inlined_ast: a35215cbf67f283d9dd76f04fc881365b82e642660887917476f1e513f65e68b - dce_ast: a35215cbf67f283d9dd76f04fc881365b82e642660887917476f1e513f65e68b + - initial_symbol_table: 22ce0cd044150ef2a0f54cc199c59d0ff80c5f9b444cc06c09ed31d391edbba8 + type_checked_symbol_table: 9e980cb4dd85e94c9af2cf468497aa8a57c7ad87b609ec4cacbe7752d4bb6f6c + unrolled_symbol_table: 9e980cb4dd85e94c9af2cf468497aa8a57c7ad87b609ec4cacbe7752d4bb6f6c + initial_ast: 8bd9f368fa2f4c11a5ed1d1afa5906949ac2c83dc9ac41ef2e8ad58a3783dce2 + unrolled_ast: 8bd9f368fa2f4c11a5ed1d1afa5906949ac2c83dc9ac41ef2e8ad58a3783dce2 + ssa_ast: c3139c0fc7fc73beabf70f5fa56673cc51ac137f1004d88683bfc97cd9dcc2f5 + flattened_ast: ef0b164a9190b47eb4d7a2692a8ad5b6449557bd5df915df69a9e50180b87887 + destructured_ast: e8a2a4add1abf40b37e1ee656db72992fb5be9a836e9be8994e48d3e6ac221a4 + inlined_ast: e8a2a4add1abf40b37e1ee656db72992fb5be9a836e9be8994e48d3e6ac221a4 + dce_ast: e8a2a4add1abf40b37e1ee656db72992fb5be9a836e9be8994e48d3e6ac221a4 bytecode: 5ae93b430e99846cd18eedb09361257138ec9e2708bdb12c5f8de43ee470c031 errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/mult_by_group_fail.out b/tests/expectations/compiler/group/mult_by_group_fail.out index 12c9e2a2b3..3a28e8e5c4 100644 --- a/tests/expectations/compiler/group/mult_by_group_fail.out +++ b/tests/expectations/compiler/group/mult_by_group_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372007]: Expected one type from `scalar`, but got `group`\n --> compiler-test:5:30\n |\n 5 | return (_, _)group * a;\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `scalar`, but got `group`\n --> compiler-test:5:30\n |\n 5 | return (_, _)group * a;\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/group/mult_by_scalar.out b/tests/expectations/compiler/group/mult_by_scalar.out index 8ff4ad73b2..2c973d708c 100644 --- a/tests/expectations/compiler/group/mult_by_scalar.out +++ b/tests/expectations/compiler/group/mult_by_scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0812de430c7609d5dca0f4423d3154c339a1028ccee1e47b3ce027dca0c8d480 - type_checked_symbol_table: bdc3f09a291f8c62a73a170f02fe9925f4f50f89d005f44a428d13b766b1a2be - unrolled_symbol_table: bdc3f09a291f8c62a73a170f02fe9925f4f50f89d005f44a428d13b766b1a2be - initial_ast: 813c73e64ae05db305d08f50869eaa3c2e270cd5b5664354ada43b3eb93674d4 - unrolled_ast: 813c73e64ae05db305d08f50869eaa3c2e270cd5b5664354ada43b3eb93674d4 - ssa_ast: 6fa439376fedd4d05edfef5d70744cc39c3991a8053852fda646e5f80219a1b6 - flattened_ast: 90afdea597d0083d702ea2c31dfb0f97f756ab15f7a8a83c1a2ef6922e78fb22 - destructured_ast: 619f73f3cfafc0395f99a1095e901ac6c41f7c4262f4129fc64f7f1eb4263a95 - inlined_ast: 619f73f3cfafc0395f99a1095e901ac6c41f7c4262f4129fc64f7f1eb4263a95 - dce_ast: 619f73f3cfafc0395f99a1095e901ac6c41f7c4262f4129fc64f7f1eb4263a95 + - initial_symbol_table: ef7f6afe9cd8622a933ad9ce8bce105f0ca1b7c4841855ded3894b3e528ca8c8 + type_checked_symbol_table: 6aae82215d7edd4d8a3a23310a6d2aab9f5933c298e02bfcd1afc13837bd1592 + unrolled_symbol_table: 6aae82215d7edd4d8a3a23310a6d2aab9f5933c298e02bfcd1afc13837bd1592 + initial_ast: 10c5ac3a4616dada2985a5b09afb74182eff1dd528babaf66df3327fb0b99a37 + unrolled_ast: 10c5ac3a4616dada2985a5b09afb74182eff1dd528babaf66df3327fb0b99a37 + ssa_ast: 61275b891ce720afd066f8649ee48f550a514b5840e240dddec514a186c23f2b + flattened_ast: 676ee82672f4f5f19bca4ac4499b9d22a236af5aa1f2072b60e60be7879ba101 + destructured_ast: 36be42829f401dceb5960a746a59ab713d44ac8a88f83fa9e9568429c4dc39cd + inlined_ast: 36be42829f401dceb5960a746a59ab713d44ac8a88f83fa9e9568429c4dc39cd + dce_ast: 36be42829f401dceb5960a746a59ab713d44ac8a88f83fa9e9568429c4dc39cd bytecode: 8d98c485074bce1870f038811bfa40e7910f16e7e489f22263f9b1816b1e2d8c errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/negate.out b/tests/expectations/compiler/group/negate.out index f4ad9ea5b2..38181d7d11 100644 --- a/tests/expectations/compiler/group/negate.out +++ b/tests/expectations/compiler/group/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f08aa27687df89a108a6f10eff8f7fb2b3ab00ae260da4a9e0cc20ca365356d0 - type_checked_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - unrolled_symbol_table: 561dbe0d1cf5198931c2751a6b7e6ba4bca631f7ee1bee51b85554cfc1c1a441 - initial_ast: c2fb0eb07dad743e882d89950f5639607992d6689110b92ab7ff52cb92b8b2a2 - unrolled_ast: c2fb0eb07dad743e882d89950f5639607992d6689110b92ab7ff52cb92b8b2a2 - ssa_ast: 500b8911803d0e7ebe38429e30c5c73d10d1e3556acfb29195335f8b19f9523f - flattened_ast: b61e7ca9f9eebbb0ef9b3b83a40da67656d61778efc16747f4bf4c1362b0e56b - destructured_ast: cb0e4d3bd5485a6499957cfa2f1b9c7f838c09c662f846c84ce60e937be59b91 - inlined_ast: cb0e4d3bd5485a6499957cfa2f1b9c7f838c09c662f846c84ce60e937be59b91 - dce_ast: cb0e4d3bd5485a6499957cfa2f1b9c7f838c09c662f846c84ce60e937be59b91 + - initial_symbol_table: c6ace36f846cca393665c4d05737bf9e988ee9f0ce4bb10e448e40111cc8fbf8 + type_checked_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + unrolled_symbol_table: 243154e4e9d528b08e05ce26e06b4f507c012d66513c227c5c0bedb5c78b027a + initial_ast: dee3fa8e431f56270bd93beee70e302359441fd13354e2fac93535177927603a + unrolled_ast: dee3fa8e431f56270bd93beee70e302359441fd13354e2fac93535177927603a + ssa_ast: 4c90ea9a3c13f6d10ad366fa71e6915a7972245e7ef15b11da0dd1bb56470a4f + flattened_ast: 930103f44b206972538ef0c1f3cfb387c6a28df65489e012670284990b2d570a + destructured_ast: 5a823be536271a8f98432776687ad9df4d85a84770229f44c996782d81d72354 + inlined_ast: 5a823be536271a8f98432776687ad9df4d85a84770229f44c996782d81d72354 + dce_ast: 5a823be536271a8f98432776687ad9df4d85a84770229f44c996782d81d72354 bytecode: 0d7662a131d11ba04a4f945b24906a6f1899ac4260e423cc48aadd781371d3f5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/operator_methods.out b/tests/expectations/compiler/group/operator_methods.out index 742f8b7519..f4b0cb0a48 100644 --- a/tests/expectations/compiler/group/operator_methods.out +++ b/tests/expectations/compiler/group/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f08aa27687df89a108a6f10eff8f7fb2b3ab00ae260da4a9e0cc20ca365356d0 - type_checked_symbol_table: 40c60583b4d9030cf62776200188db0db7d5181abe0d009b9c33d32b3248d982 - unrolled_symbol_table: 40c60583b4d9030cf62776200188db0db7d5181abe0d009b9c33d32b3248d982 - initial_ast: f441b607863add307ac4af67d92c2962a52385bf5c984a25f5703622f7fa895a - unrolled_ast: f441b607863add307ac4af67d92c2962a52385bf5c984a25f5703622f7fa895a - ssa_ast: 3fb97942a68ccc7e2d1e0062c668727ccdb56149f31fdba65fea5a92dd91d920 - flattened_ast: 1e46402c3369f04cd97ac773f1c052418c57c9d1bb42fd34de25852d9419162b - destructured_ast: 04279df8d5e4b043618b80b7e01cedc9e69f8fae11631ebcce58d894fddcf27b - inlined_ast: 04279df8d5e4b043618b80b7e01cedc9e69f8fae11631ebcce58d894fddcf27b - dce_ast: bc59e20a57a8038eef1ca20341282c99337319d2513b77bca884c2df174fcf14 + - initial_symbol_table: c6ace36f846cca393665c4d05737bf9e988ee9f0ce4bb10e448e40111cc8fbf8 + type_checked_symbol_table: f83f1eead29ef23e1dfad2d768fc6e4049a11d67ed8ec27f10e7528588b677fa + unrolled_symbol_table: f83f1eead29ef23e1dfad2d768fc6e4049a11d67ed8ec27f10e7528588b677fa + initial_ast: 4aedfe1324601cf3a5b99e4fbfdf7b89875a0d3e961b217b7a7e1244d218a5e7 + unrolled_ast: 4aedfe1324601cf3a5b99e4fbfdf7b89875a0d3e961b217b7a7e1244d218a5e7 + ssa_ast: 3b7fd623a757b76d1f1cb02de2f498d0a62bda8160533b987315acda1695a71c + flattened_ast: 1189032ffb0f60bba2052ba99ad5182f7a8e99cb69e32d432f91003fb6ec87cc + destructured_ast: ea78635ce0beafb54495d28599b4e4ea5d5cd29ffdd895fb08ccdae344c15413 + inlined_ast: ea78635ce0beafb54495d28599b4e4ea5d5cd29ffdd895fb08ccdae344c15413 + dce_ast: 0aae065ac3e1e5b17c0aff4ad17131925f8643fd58810eb5767ba709482d9714 bytecode: f8f1b8520fc2b0b64155f840db31d03aeee1afecd309f7a4be10038ee72fc5ea errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/point_input.out b/tests/expectations/compiler/group/point_input.out index 255ecfcdf9..380436268e 100644 --- a/tests/expectations/compiler/group/point_input.out +++ b/tests/expectations/compiler/group/point_input.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3e731a43e29a1a179de2be0961a866d1582bb8aac704f46fd8756f0da15a6f7a - type_checked_symbol_table: 1532868e25a49142867e1fe42d151cf6c4aceee964cb49b3546e1ceb7682d47f - unrolled_symbol_table: 1532868e25a49142867e1fe42d151cf6c4aceee964cb49b3546e1ceb7682d47f - initial_ast: 66dfe26d01f7ef9b13958fa433003dbc59bbe5fd211ce8fc25cda39b82ed285f - unrolled_ast: 66dfe26d01f7ef9b13958fa433003dbc59bbe5fd211ce8fc25cda39b82ed285f - ssa_ast: 44fd21f436c423cd4c8458411ce506bb34e64aaf1a108fc253af42fea014baaf - flattened_ast: 50e977f7be50ad4771c500fd5c5f485600ab73afa98a86b3b0faa85867588b4d - destructured_ast: 1f5bac67e0a2808361cf9a8b012ea8d283c70db59e48944ee5d502218f47c9a4 - inlined_ast: 1f5bac67e0a2808361cf9a8b012ea8d283c70db59e48944ee5d502218f47c9a4 - dce_ast: 1f5bac67e0a2808361cf9a8b012ea8d283c70db59e48944ee5d502218f47c9a4 + - initial_symbol_table: d63a6f87263221b689db82919f188fdc14b7513a61ed01f1c0c58700b7fdda9b + type_checked_symbol_table: 0aa02a13fe95e6446f5c8b787efcc75b6da4c28dee5b5c3d6c652cc2d44a887e + unrolled_symbol_table: 0aa02a13fe95e6446f5c8b787efcc75b6da4c28dee5b5c3d6c652cc2d44a887e + initial_ast: 8788cd76c0339033858cb5025c719163b89edbd8a0b65a390918ef6dfccba582 + unrolled_ast: 8788cd76c0339033858cb5025c719163b89edbd8a0b65a390918ef6dfccba582 + ssa_ast: e620f377c33c3b01f00a25aa818a638824eded29f75e5707eefb52386cd3166c + flattened_ast: 0a4c052b04b6a26acb2692638685c890a706bd37f22722141285cb50c374ab3e + destructured_ast: 26083d22c306a91f16f0905a15a3fb5deccc719684cc0cb9e07af00ac274f513 + inlined_ast: 26083d22c306a91f16f0905a15a3fb5deccc719684cc0cb9e07af00ac274f513 + dce_ast: 26083d22c306a91f16f0905a15a3fb5deccc719684cc0cb9e07af00ac274f513 bytecode: e7f080384059049f2c24ec0a010b5ec6b055497b51b78d736a5e2e8fa7b441eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/sub.out b/tests/expectations/compiler/group/sub.out index 164fed2061..7196b51030 100644 --- a/tests/expectations/compiler/group/sub.out +++ b/tests/expectations/compiler/group/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ded86d6230a1fc2fed0afd1a289b434681fb3848b70065ac284e30f01ea8c520 - type_checked_symbol_table: f075ee0b1b41034aa379643b5ef996656fcbbd4b854a879ab66cb4b5a0aca92b - unrolled_symbol_table: f075ee0b1b41034aa379643b5ef996656fcbbd4b854a879ab66cb4b5a0aca92b - initial_ast: 13b06544c321efe08f18f78541f41da7b0f14ced681066c51e456b0f30418d78 - unrolled_ast: 13b06544c321efe08f18f78541f41da7b0f14ced681066c51e456b0f30418d78 - ssa_ast: bb66c45a37fcf3faa7cecb32a5ed141b664808e7a6c3c3fa87df4ec2671fff3f - flattened_ast: 55a41f6c9b1d043582a8d52d7dc31f5984f10ee5ee7c16f9bf175d44a3317ebe - destructured_ast: 87efdf9900691a6bba9a59a5a12020d729ef2afd82ecb29a3fe57720749b8c70 - inlined_ast: 87efdf9900691a6bba9a59a5a12020d729ef2afd82ecb29a3fe57720749b8c70 - dce_ast: 87efdf9900691a6bba9a59a5a12020d729ef2afd82ecb29a3fe57720749b8c70 + - initial_symbol_table: b8bb90f0d62930603ce663c559b0960f6a787f57c11c12b4b3488a25e4847bcf + type_checked_symbol_table: 574ace7afae151d2ea92f3debc7dbbf38e22ed193fbe969d747ce6e5add695e6 + unrolled_symbol_table: 574ace7afae151d2ea92f3debc7dbbf38e22ed193fbe969d747ce6e5add695e6 + initial_ast: d23074e238aa1e0b499b3cd2a9623af559283cdc0bd286d7ce0fc40147d2f167 + unrolled_ast: d23074e238aa1e0b499b3cd2a9623af559283cdc0bd286d7ce0fc40147d2f167 + ssa_ast: 15eccf76b57c98e1d6a5ba29bc49efa2837d043b5943ba1eee7384c879e1c1b9 + flattened_ast: d74d26d0a11ff6d4b15285fddf3f9fb0534d0ab1c4068dfca45bd6cd6ddc3e34 + destructured_ast: c2065855703c2dbee01910169624c4864d75793ab63153e796787847f6a01b97 + inlined_ast: c2065855703c2dbee01910169624c4864d75793ab63153e796787847f6a01b97 + dce_ast: c2065855703c2dbee01910169624c4864d75793ab63153e796787847f6a01b97 bytecode: cab98d3ba5835201a8db5ce82ab32e51dc68f37a01156374e2f00a8bcbd82308 errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/ternary.out b/tests/expectations/compiler/group/ternary.out index ca024cde87..42cf1c90be 100644 --- a/tests/expectations/compiler/group/ternary.out +++ b/tests/expectations/compiler/group/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ded86d6230a1fc2fed0afd1a289b434681fb3848b70065ac284e30f01ea8c520 - type_checked_symbol_table: e8874f5205aecaebbd2a48f213a4abbdd2a7a9db72e6767975011c74bce1d913 - unrolled_symbol_table: e8874f5205aecaebbd2a48f213a4abbdd2a7a9db72e6767975011c74bce1d913 - initial_ast: 85eb916f3755aa04328d110a52d79fbe6e524d88d6c57a05df997aa5b3e4204a - unrolled_ast: 85eb916f3755aa04328d110a52d79fbe6e524d88d6c57a05df997aa5b3e4204a - ssa_ast: 1efc7322ee547d7b7c4b62b39cedfcda6e2b36943f0517b1ecf16faff347450e - flattened_ast: 6c86f2321e2e57ad2c6726409462925777d65e6c2c56743a11b73ea886858d59 - destructured_ast: a40aac1948d580cdc52f723c8e555cf389b2735a800234d54f4dc287f8348f97 - inlined_ast: a40aac1948d580cdc52f723c8e555cf389b2735a800234d54f4dc287f8348f97 - dce_ast: a40aac1948d580cdc52f723c8e555cf389b2735a800234d54f4dc287f8348f97 + - initial_symbol_table: b8bb90f0d62930603ce663c559b0960f6a787f57c11c12b4b3488a25e4847bcf + type_checked_symbol_table: 85553b9eae9d1f2862059a4ec666b810f88bb81ada88c077a7e62bb1efc6bfcd + unrolled_symbol_table: 85553b9eae9d1f2862059a4ec666b810f88bb81ada88c077a7e62bb1efc6bfcd + initial_ast: 9da677ebf303229d47697e5afae31d625099d4d367b54e079eed358e2559a7d9 + unrolled_ast: 9da677ebf303229d47697e5afae31d625099d4d367b54e079eed358e2559a7d9 + ssa_ast: 9751199c2cf4c31a14666c2bdd0fba06e8c48cbfec995fedc932697a7605db6d + flattened_ast: df79975fd42e49212e9101d899a192c844bed0aa38f8792a6ee7579901158e45 + destructured_ast: 85bf0d42bd94483b14952818c203b0ba3da06f1157d088bd7c7b8a3d46d0f5d8 + inlined_ast: 85bf0d42bd94483b14952818c203b0ba3da06f1157d088bd7c7b8a3d46d0f5d8 + dce_ast: 85bf0d42bd94483b14952818c203b0ba3da06f1157d088bd7c7b8a3d46d0f5d8 bytecode: d60be9014c6563fb9bb800891ce6238d2f99473faf47c92cf99893ad1474a64e errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/to_x_coordinate.out b/tests/expectations/compiler/group/to_x_coordinate.out index 9b0e48ef97..6ca7434330 100644 --- a/tests/expectations/compiler/group/to_x_coordinate.out +++ b/tests/expectations/compiler/group/to_x_coordinate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 742f03900399c639926d0de2c7ae8d18812d4d21b702dda02916b639eb343f9f - type_checked_symbol_table: d7f09b3e9aa4edcc786411ff26df63e583a8662bcd127a15169f49573932d971 - unrolled_symbol_table: d7f09b3e9aa4edcc786411ff26df63e583a8662bcd127a15169f49573932d971 - initial_ast: c14024841200239ac3207c46eca02091cbe9fd76fcd61d81b6d2f8bff70735fd - unrolled_ast: c14024841200239ac3207c46eca02091cbe9fd76fcd61d81b6d2f8bff70735fd - ssa_ast: 65c89bedb60ebef142d9988bea52eb382f3033bb9ba2bceddede75a27c3deddd - flattened_ast: 05bb78ba77e7648af884261e337dd5ee5fbace06e4cd068927cc6be7b5fb3ab9 - destructured_ast: fc17fcc83b01dac4238f61fde08acbbdec642ab2030388842858b0cf5e3dd671 - inlined_ast: fc17fcc83b01dac4238f61fde08acbbdec642ab2030388842858b0cf5e3dd671 - dce_ast: c1c56c66653bccfc200dd3251d823392cb8cfca84da0fc339ee77b779c11e7bf + - initial_symbol_table: 17188755e30dc7d7a9ab5ec2e39bb6128457d47f00b1a3e04e6f4a675ebae339 + type_checked_symbol_table: c3c6acdbc46d878275e1456a8bcba914dc123c3bba75775ffb6cb9de980191f7 + unrolled_symbol_table: c3c6acdbc46d878275e1456a8bcba914dc123c3bba75775ffb6cb9de980191f7 + initial_ast: d7fcd24b982459f8ee06999660b9c2b805cabe8363be00cf36db74a57f2ba7a7 + unrolled_ast: d7fcd24b982459f8ee06999660b9c2b805cabe8363be00cf36db74a57f2ba7a7 + ssa_ast: 0400c69af4ac0a476d2bbce24e534e172417848fe7756ca478991df6ebee841a + flattened_ast: af7105f53323ff7edd906435b4c8d78d871603df2b498b82fb530cf2a2c39f58 + destructured_ast: 4b3dffdd4e1c8159722054b0de6c19761d336a16f5f97869dd640b0b6d7e9007 + inlined_ast: 4b3dffdd4e1c8159722054b0de6c19761d336a16f5f97869dd640b0b6d7e9007 + dce_ast: 4fad68ac439e8b7fef5fcd1f22cf87ff8b83655ae8078ac4a8ab480926568a41 bytecode: 51e95e10668242bec30e9917715d9856da632e933c33207ee41c5ed38d6366aa errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/to_y_coordinate.out b/tests/expectations/compiler/group/to_y_coordinate.out index 6a874b7147..ea393790ba 100644 --- a/tests/expectations/compiler/group/to_y_coordinate.out +++ b/tests/expectations/compiler/group/to_y_coordinate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 742f03900399c639926d0de2c7ae8d18812d4d21b702dda02916b639eb343f9f - type_checked_symbol_table: d7f09b3e9aa4edcc786411ff26df63e583a8662bcd127a15169f49573932d971 - unrolled_symbol_table: d7f09b3e9aa4edcc786411ff26df63e583a8662bcd127a15169f49573932d971 - initial_ast: 7a4eb6d898eac408003ee4176ba8dd6cdc5412a7669e00794da7014313f97ba0 - unrolled_ast: 7a4eb6d898eac408003ee4176ba8dd6cdc5412a7669e00794da7014313f97ba0 - ssa_ast: daf6ac147025ba46fe4a8012b9c0622bbeedca1ee66eea0778aa11f545e29a7d - flattened_ast: 67967710c91e41f04cc48c11eee2fc9126f594cf121df116cd847dc37e0d43da - destructured_ast: 32d25d3d6b4d362c987a13faaa913bbb88f63a4cd5c08b0c3bb48291eaf9a545 - inlined_ast: 32d25d3d6b4d362c987a13faaa913bbb88f63a4cd5c08b0c3bb48291eaf9a545 - dce_ast: 553ab2537083ec74454dbfcae729141e0f1248654bd1d981227e6f765f53aad6 + - initial_symbol_table: 17188755e30dc7d7a9ab5ec2e39bb6128457d47f00b1a3e04e6f4a675ebae339 + type_checked_symbol_table: c3c6acdbc46d878275e1456a8bcba914dc123c3bba75775ffb6cb9de980191f7 + unrolled_symbol_table: c3c6acdbc46d878275e1456a8bcba914dc123c3bba75775ffb6cb9de980191f7 + initial_ast: 625f4f0648ca3dc60330f95889ab334fa6dec9f833cf7db29354418389c7f99f + unrolled_ast: 625f4f0648ca3dc60330f95889ab334fa6dec9f833cf7db29354418389c7f99f + ssa_ast: 17855723b6a97bda448f7aba476be078de85c108255a36e73774fecfbf24afd7 + flattened_ast: fd6ebe6fcdb3f7583df496a8249e7ef7d6da3be04a37c527b2051639e3738072 + destructured_ast: 18a28cf4be278925699e103b11c8f540a555d799345fb076537dbe270a1cdfd3 + inlined_ast: 18a28cf4be278925699e103b11c8f540a555d799345fb076537dbe270a1cdfd3 + dce_ast: 94573194ca80e429e39da00036e8edb7036c119c40a38e05841cc33c2f69f703 bytecode: ea2e94f0f589fac4565040575643b1b7cd7813fe513d5b09b17c191bbf0f727e errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/x_and_y.out b/tests/expectations/compiler/group/x_and_y.out index 42b1b8b0bc..e8b7cf84d5 100644 --- a/tests/expectations/compiler/group/x_and_y.out +++ b/tests/expectations/compiler/group/x_and_y.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6daa60689a1724d94a9fd605b9e0a520336f493d059fbb64ce604d928547af0 - type_checked_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - unrolled_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - initial_ast: 4c92717c98e246d94f34b634f272f17e7d0fca69e562ef55e670478343e746a1 - unrolled_ast: 4c92717c98e246d94f34b634f272f17e7d0fca69e562ef55e670478343e746a1 - ssa_ast: 601fd1248d4e3001398f5ae0363211933624381a7281184a63838e8b1e86c956 - flattened_ast: 0b3ffdadea9fc662acbc43f01ff2348541193ecda0ac7a9ab3038991e73af8b4 - destructured_ast: a014a5f6ca5f18957d8fb6abf6070eeef345ebb42d0652fb4f41d734112df67b - inlined_ast: a014a5f6ca5f18957d8fb6abf6070eeef345ebb42d0652fb4f41d734112df67b - dce_ast: a014a5f6ca5f18957d8fb6abf6070eeef345ebb42d0652fb4f41d734112df67b + - initial_symbol_table: 2c48847b3e895ff7040f6e961c5d31ce6a22e4a68050777121d948f50584857c + type_checked_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + unrolled_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + initial_ast: e91054f12e568097f1941f48ef1e72bb14bea1621e3cc343bccae4ebdd58e7eb + unrolled_ast: e91054f12e568097f1941f48ef1e72bb14bea1621e3cc343bccae4ebdd58e7eb + ssa_ast: 889a76e7f19d92f19c85c41b3b5fd155d03ea5fd0a0f6e490b5039df0a95d368 + flattened_ast: 28d516077689acbe8a644df6310828ca4ae03bc80f04c0150f3009672a69cbbf + destructured_ast: 39e412d01798e2b380effd39165fed243a4368a77fce836b049b627835e26d3b + inlined_ast: 39e412d01798e2b380effd39165fed243a4368a77fce836b049b627835e26d3b + dce_ast: 39e412d01798e2b380effd39165fed243a4368a77fce836b049b627835e26d3b bytecode: c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/x_sign_high.out b/tests/expectations/compiler/group/x_sign_high.out index 42ee3873eb..f9820da045 100644 --- a/tests/expectations/compiler/group/x_sign_high.out +++ b/tests/expectations/compiler/group/x_sign_high.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6daa60689a1724d94a9fd605b9e0a520336f493d059fbb64ce604d928547af0 - type_checked_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - unrolled_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - initial_ast: 1dc6e14f597973f5aca41a72494c54edae0f10cebf9710b35eea0bdd1f94b4aa - unrolled_ast: 1dc6e14f597973f5aca41a72494c54edae0f10cebf9710b35eea0bdd1f94b4aa - ssa_ast: 097efeef18365a5c2824296c7f0bc5efb0c918ce1abff206b54e9ec99e9a3500 - flattened_ast: 47263ed9228cd8ed29357af48bae657dbec601c2984c2d4e635a0129407c00b5 - destructured_ast: ee3b27eb19899ba09c7a4e4569dacd7d570fa3df3f0378173084c506954659a1 - inlined_ast: ee3b27eb19899ba09c7a4e4569dacd7d570fa3df3f0378173084c506954659a1 - dce_ast: ee3b27eb19899ba09c7a4e4569dacd7d570fa3df3f0378173084c506954659a1 + - initial_symbol_table: 2c48847b3e895ff7040f6e961c5d31ce6a22e4a68050777121d948f50584857c + type_checked_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + unrolled_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + initial_ast: 9fb9e65e5ed4fcf143b4bad6fb8a912ee8589d22cca640e6e5d0179d1402d2fd + unrolled_ast: 9fb9e65e5ed4fcf143b4bad6fb8a912ee8589d22cca640e6e5d0179d1402d2fd + ssa_ast: 09207db62b93ab8d421c781872586f7af1cb7a69d65d07f27e47fa2f788945db + flattened_ast: 8f0039c768092f7ac1626cfb1b41473e2fba246357b01c3fdf830a6897cadeab + destructured_ast: 9eda4967e4c351f224e6e68a119e4655871e2b05020d39fa1f30fe9d4dbd5e93 + inlined_ast: 9eda4967e4c351f224e6e68a119e4655871e2b05020d39fa1f30fe9d4dbd5e93 + dce_ast: 9eda4967e4c351f224e6e68a119e4655871e2b05020d39fa1f30fe9d4dbd5e93 bytecode: c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/x_sign_inferred.out b/tests/expectations/compiler/group/x_sign_inferred.out index 86baf80e9e..9683bc7933 100644 --- a/tests/expectations/compiler/group/x_sign_inferred.out +++ b/tests/expectations/compiler/group/x_sign_inferred.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6daa60689a1724d94a9fd605b9e0a520336f493d059fbb64ce604d928547af0 - type_checked_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - unrolled_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - initial_ast: 971ece4a7efd945c9b2090c7f129ff9431114ca4005949d80c16e354cef104a1 - unrolled_ast: 971ece4a7efd945c9b2090c7f129ff9431114ca4005949d80c16e354cef104a1 - ssa_ast: 801cedc73c0261106c154952cbff8dc9cb504ffd667f70f1941c77bed94dc5d8 - flattened_ast: e09973b5c53c62f15924f70afafccfee5b940f099d239c49c8e76ef2cc8c7788 - destructured_ast: e74b120b1d2aa2742f20b294bcc2a18231351852c11559689d0380aedab848d5 - inlined_ast: e74b120b1d2aa2742f20b294bcc2a18231351852c11559689d0380aedab848d5 - dce_ast: e74b120b1d2aa2742f20b294bcc2a18231351852c11559689d0380aedab848d5 + - initial_symbol_table: 2c48847b3e895ff7040f6e961c5d31ce6a22e4a68050777121d948f50584857c + type_checked_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + unrolled_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + initial_ast: ca9fdf03e492aef9e948581408fc26973cde95e267d5dda12d7b3e7d9bf9da2b + unrolled_ast: ca9fdf03e492aef9e948581408fc26973cde95e267d5dda12d7b3e7d9bf9da2b + ssa_ast: a4a2af23224824565c6d131d2eca7c15da8c1946da208ff0fa149e59276d557d + flattened_ast: 2336613682efbaa8bbcc6d509af493241248b7f4cd1516b10d8dd7cc5468ead8 + destructured_ast: 6ce25ddcc994c09254285014f7163e0a4d2e1c93b4ff795cd1430cf56db78b43 + inlined_ast: 6ce25ddcc994c09254285014f7163e0a4d2e1c93b4ff795cd1430cf56db78b43 + dce_ast: 6ce25ddcc994c09254285014f7163e0a4d2e1c93b4ff795cd1430cf56db78b43 bytecode: c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/x_sign_low.out b/tests/expectations/compiler/group/x_sign_low.out index 83e4ba7fc7..9546e5d27a 100644 --- a/tests/expectations/compiler/group/x_sign_low.out +++ b/tests/expectations/compiler/group/x_sign_low.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6daa60689a1724d94a9fd605b9e0a520336f493d059fbb64ce604d928547af0 - type_checked_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - unrolled_symbol_table: 302dfafd7748b3bb0c0fd104339dbf87e8ed7ad4dd0fd3afbd4c5cabb58eb32e - initial_ast: bbe8816f75d5430d9ce10f46e0e7f1b8a761f3d2f0db27a7b8d63237294180a4 - unrolled_ast: bbe8816f75d5430d9ce10f46e0e7f1b8a761f3d2f0db27a7b8d63237294180a4 - ssa_ast: a6c24077261cd24d298b4078465ba36bcece044da9ceeec373afb9e5278624d7 - flattened_ast: a1cf4bae4bcbbeeda516c08bf97ee21d9c72a46685d6b12a61aa06525bf407c8 - destructured_ast: 17574fccdefaf8b9955f2dda2682069f75ed25abf487beb1a9c8c31659429575 - inlined_ast: 17574fccdefaf8b9955f2dda2682069f75ed25abf487beb1a9c8c31659429575 - dce_ast: 17574fccdefaf8b9955f2dda2682069f75ed25abf487beb1a9c8c31659429575 + - initial_symbol_table: 2c48847b3e895ff7040f6e961c5d31ce6a22e4a68050777121d948f50584857c + type_checked_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + unrolled_symbol_table: c4207767bd02c9ce25162e56c386ad78fb115382374ae50549b676c25244ef89 + initial_ast: 41fde7ce3d20f9fc33a9dc0d6c935a985130ed8a3eaa94f798631074a46957b4 + unrolled_ast: 41fde7ce3d20f9fc33a9dc0d6c935a985130ed8a3eaa94f798631074a46957b4 + ssa_ast: aafd3b19c5255f1c950820c5142272035d27adfb02605d7c71897c30cc3db901 + flattened_ast: 4c9d8dccad1163262210e6d8c48cd84cfe27a457cf6b5b91cb1b93cc622a5416 + destructured_ast: 042b90a4d5a01633917d077fc2d1cd352e02f1c772917ff777c05729f096ca28 + inlined_ast: 042b90a4d5a01633917d077fc2d1cd352e02f1c772917ff777c05729f096ca28 + dce_ast: 042b90a4d5a01633917d077fc2d1cd352e02f1c772917ff777c05729f096ca28 bytecode: c8688cd1fc15c816d4af483fa444f44414acb4b679b0165f9fb7093f77738f5a errors: "" warnings: "" diff --git a/tests/expectations/compiler/group/zero.out b/tests/expectations/compiler/group/zero.out index c96874d1f8..9a8c1bc86b 100644 --- a/tests/expectations/compiler/group/zero.out +++ b/tests/expectations/compiler/group/zero.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6daa60689a1724d94a9fd605b9e0a520336f493d059fbb64ce604d928547af0 - type_checked_symbol_table: 2839274970e3f2a5073a53029f6e7f1a5da4919389b1b62d39bc56eedd473545 - unrolled_symbol_table: 2839274970e3f2a5073a53029f6e7f1a5da4919389b1b62d39bc56eedd473545 - initial_ast: 79bf864cdefe09f0f7ed257a251b8a1bcf73a980f99e3a7e624ac7c4578493ea - unrolled_ast: 79bf864cdefe09f0f7ed257a251b8a1bcf73a980f99e3a7e624ac7c4578493ea - ssa_ast: 15265a7d0aecbc6990e38946da2aeb13e9d179a8ed2bba0c818a1c0deb43897f - flattened_ast: ebf45dfc61537d6321ba63b27973fba52e1e976af26c1a073eb03b06b0cb2007 - destructured_ast: fa31c2da3740eb4fc0068519d65148cee65a07f30c0c9d0c3b4cc973089bb122 - inlined_ast: fa31c2da3740eb4fc0068519d65148cee65a07f30c0c9d0c3b4cc973089bb122 - dce_ast: fa31c2da3740eb4fc0068519d65148cee65a07f30c0c9d0c3b4cc973089bb122 + - initial_symbol_table: 2c48847b3e895ff7040f6e961c5d31ce6a22e4a68050777121d948f50584857c + type_checked_symbol_table: 98e9d79672c07388cb4ed4249f9ca84832d8213ceab603eeb701b57ca904409f + unrolled_symbol_table: 98e9d79672c07388cb4ed4249f9ca84832d8213ceab603eeb701b57ca904409f + initial_ast: df89c685c0f2ced5cb829fb53f6d9df5eb49dc19e3e7d13b0e66c7f2b0f29ed6 + unrolled_ast: df89c685c0f2ced5cb829fb53f6d9df5eb49dc19e3e7d13b0e66c7f2b0f29ed6 + ssa_ast: b059e20d1b8afb440c9a7d481531998005be58627936d94f6bbd3a0c8dfff64e + flattened_ast: 776fc257f3155c8387d9dd275d1006e2c5d3548e96d71fc9015f1390e44b7890 + destructured_ast: e8ab7ca3f4faff85aebcdd6bb93f6c47b4e463ae058c8250277c463b7a201cc2 + inlined_ast: e8ab7ca3f4faff85aebcdd6bb93f6c47b4e463ae058c8250277c463b7a201cc2 + dce_ast: e8ab7ca3f4faff85aebcdd6bb93f6c47b4e463ae058c8250277c463b7a201cc2 bytecode: 1d6fcff80cb39d7f9451de676f70ab1e4dd1bcca8f7c9d0f1ddd34d12f159594 errors: "" warnings: "" diff --git a/tests/expectations/compiler/input/main.out b/tests/expectations/compiler/input/main.out index 2dbfe953b9..7e159ea0bb 100644 --- a/tests/expectations/compiler/input/main.out +++ b/tests/expectations/compiler/input/main.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d386311e914536e0ea514fc3ce193ff562ae5583bf2db2412d689581c17f9287 - type_checked_symbol_table: 035d8ece40b9c097ec95baba855fb859100eb94ae29c1d40da028daa51c22dbd - unrolled_symbol_table: 035d8ece40b9c097ec95baba855fb859100eb94ae29c1d40da028daa51c22dbd - initial_ast: 3a0ce285e8d83ab1e183a1d3030108851d8875bd79ebf149c8d31bf478a8decc - unrolled_ast: 3a0ce285e8d83ab1e183a1d3030108851d8875bd79ebf149c8d31bf478a8decc - ssa_ast: 551e064d40e98b171949d71dd08bd7dbf9810e11430ff09d7b8c302962d0d319 - flattened_ast: a240dc8b39d71006aa904ffa62e4c6ddea074ff4335a1fae6405c36ff76e01d1 - destructured_ast: 1a922a75290105a2a5721df8d6cacbffc03e15bd39f14efca5a261914ac29790 - inlined_ast: 1a922a75290105a2a5721df8d6cacbffc03e15bd39f14efca5a261914ac29790 - dce_ast: 1a922a75290105a2a5721df8d6cacbffc03e15bd39f14efca5a261914ac29790 + - initial_symbol_table: 2188b44a0ff4222331bdcaa90c9d70a74eb48b1b0535a757a35fd5faa677d0f2 + type_checked_symbol_table: 91a40bd0037e6bef7c97d88106dba172887b6fd837398c83c8d11fb0a4e0f9a9 + unrolled_symbol_table: 91a40bd0037e6bef7c97d88106dba172887b6fd837398c83c8d11fb0a4e0f9a9 + initial_ast: aaf274df6005aacd81dec06a2d88fc1e58652c4847e81db717378de989c73c9d + unrolled_ast: aaf274df6005aacd81dec06a2d88fc1e58652c4847e81db717378de989c73c9d + ssa_ast: 30b8138520b23ccc39cc832ab51fa303bf6195fac8085a816102b0e752f03adf + flattened_ast: a03aa2354ff6089efb32eead33067131e16c3cb30ef01ac6fc480c7e24551b67 + destructured_ast: f50b43e9def697e64b94a4e2076e43a043929fd3600421b2b51b7f0460b67e21 + inlined_ast: f50b43e9def697e64b94a4e2076e43a043929fd3600421b2b51b7f0460b67e21 + dce_ast: f50b43e9def697e64b94a4e2076e43a043929fd3600421b2b51b7f0460b67e21 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/input/main_field.out b/tests/expectations/compiler/input/main_field.out index e834f43c8f..cc1bcc2094 100644 --- a/tests/expectations/compiler/input/main_field.out +++ b/tests/expectations/compiler/input/main_field.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b34a1682fc9b4960e9f794fc1398ae82b5900ba619391515c3da3ec52c4ac31a - type_checked_symbol_table: 7dadc2b97a248377683f2a7af4847bb61663aa37670abcbf6615a7bc3eb9d30f - unrolled_symbol_table: 7dadc2b97a248377683f2a7af4847bb61663aa37670abcbf6615a7bc3eb9d30f - initial_ast: 642600065819915bc28991076f492696f75e7f634babf57f6242f05e1ef95155 - unrolled_ast: 642600065819915bc28991076f492696f75e7f634babf57f6242f05e1ef95155 - ssa_ast: c9a14d054df008b72d96f40c0e22c906dbc441de20e7090c8794ec00de9ddd68 - flattened_ast: 27dfe2de6b5701fa9922ca2f7e518c3b4abbd4d3461ffdf92808303c26dbc21e - destructured_ast: 87ff77660c0d5c0cc0bc47244037732653eeeb0c0c8d9aff1ec555e8f2b3c98b - inlined_ast: 87ff77660c0d5c0cc0bc47244037732653eeeb0c0c8d9aff1ec555e8f2b3c98b - dce_ast: 87ff77660c0d5c0cc0bc47244037732653eeeb0c0c8d9aff1ec555e8f2b3c98b + - initial_symbol_table: 0ba19d6f919ec98161547380967085e042704a63a1b7e1e48ab5663d4842c246 + type_checked_symbol_table: ff0ee53815880d00b05f495c523a1c1842eb694e3cc3d5b41814866638da40c3 + unrolled_symbol_table: ff0ee53815880d00b05f495c523a1c1842eb694e3cc3d5b41814866638da40c3 + initial_ast: 35f057a11f519e5f1677dee62d53fa1a8fe1edf128b4def6ea458c1f7e130bcc + unrolled_ast: 35f057a11f519e5f1677dee62d53fa1a8fe1edf128b4def6ea458c1f7e130bcc + ssa_ast: 855d03f9c74b521f9841c4a3372d5cacac645e850b009d98462241cab41aad6b + flattened_ast: df42e472eb231625b998aff6d5e692429a7cc94762780786fea7b8a022c66ff0 + destructured_ast: d442df30231a2ac67fb6617c5f87ebf0f42c9a25012e724e526af878ab930013 + inlined_ast: d442df30231a2ac67fb6617c5f87ebf0f42c9a25012e724e526af878ab930013 + dce_ast: d442df30231a2ac67fb6617c5f87ebf0f42c9a25012e724e526af878ab930013 bytecode: 5634fe853e1a2815f0828063a855b798b56cc6051b24205568908a5490c7d531 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/add.out b/tests/expectations/compiler/integers/i128/add.out index 5b7d1e710e..85a01d8af4 100644 --- a/tests/expectations/compiler/integers/i128/add.out +++ b/tests/expectations/compiler/integers/i128/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: 7029802a8ed59f638b0fc519a1ac8f1309668cd25d805a564ed5772b01bb01fe - unrolled_ast: 7029802a8ed59f638b0fc519a1ac8f1309668cd25d805a564ed5772b01bb01fe - ssa_ast: a146a207208ba85f0a49e9b7b9b2915482ea0c58c1de602a89e37cdd14228232 - flattened_ast: 774a88b691be40d7b8b627fc6529141e1db8ea262edbfbc99daa2560cf65d7a1 - destructured_ast: a2c043180c5ba7e895ab0af300332c112c55afb75c216fb52a9aaede62c32a90 - inlined_ast: a2c043180c5ba7e895ab0af300332c112c55afb75c216fb52a9aaede62c32a90 - dce_ast: a2c043180c5ba7e895ab0af300332c112c55afb75c216fb52a9aaede62c32a90 + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 0692a3a4cf54f74483c7da45ae1ad9333f45ba2f17efac000c2f7a8774a4f5c6 + unrolled_ast: 0692a3a4cf54f74483c7da45ae1ad9333f45ba2f17efac000c2f7a8774a4f5c6 + ssa_ast: 3861283f1c6efdbb91680611b6a3c2561e298a251af6722db380c14a9eb84c85 + flattened_ast: 889554c875c97fd810e6aaa3cc5807122a854ee99bdfc3475585815d6ab00d19 + destructured_ast: ae726ed8dcf81f0c1d10325b03414763cd8a29ff55203a3fe5357bc1ab71c21e + inlined_ast: ae726ed8dcf81f0c1d10325b03414763cd8a29ff55203a3fe5357bc1ab71c21e + dce_ast: ae726ed8dcf81f0c1d10325b03414763cd8a29ff55203a3fe5357bc1ab71c21e bytecode: 494e6857a1963542c9c28acd1b0d3584e2fa7aa4541a3c4d2accdaffa21a5363 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/and.out b/tests/expectations/compiler/integers/i128/and.out index 181169640a..eebadb5ead 100644 --- a/tests/expectations/compiler/integers/i128/and.out +++ b/tests/expectations/compiler/integers/i128/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: 0970c83f9c75ceb9d23b799cc3035b82735067a2d707cee7205946717376d936 - unrolled_ast: 0970c83f9c75ceb9d23b799cc3035b82735067a2d707cee7205946717376d936 - ssa_ast: c8b0264d430895bb84d01d7e08337da31d1fa367551af9fec5f3a2de89f9d9cf - flattened_ast: f2538b436d3e9d3e5c281d225cfbbe3ae734f00575d6bf73cdd1eee06fe5ea77 - destructured_ast: 9617cd84cc7bc7c3989271ae3d371734886ae20e3de04d7866f1d6d0466f50fe - inlined_ast: 9617cd84cc7bc7c3989271ae3d371734886ae20e3de04d7866f1d6d0466f50fe - dce_ast: 9617cd84cc7bc7c3989271ae3d371734886ae20e3de04d7866f1d6d0466f50fe + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 06d653b22a1e3d90919d88bea517eeabac5ea6e52cd60efc1a59c970fcce387b + unrolled_ast: 06d653b22a1e3d90919d88bea517eeabac5ea6e52cd60efc1a59c970fcce387b + ssa_ast: f1425bc00d759e9b8cbb7903a4217c5dfb33d3839d1fe58cb5bf8bcb08d6c642 + flattened_ast: 62625b3d5b24c8bb97166e685d1de29f6db6329cadfb467480eb3d833fcca4fe + destructured_ast: bc226c0d749a1406556bec3019f85af456a38febd40f549abf3143b2e1260ea8 + inlined_ast: bc226c0d749a1406556bec3019f85af456a38febd40f549abf3143b2e1260ea8 + dce_ast: bc226c0d749a1406556bec3019f85af456a38febd40f549abf3143b2e1260ea8 bytecode: 8285a2e1709b0ec4a12c265fcbfc8fafe3168599b60c587c0c4cb2eead7d4cb5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/console_assert.out b/tests/expectations/compiler/integers/i128/console_assert.out index 7b15ed8914..c27c438ba2 100644 --- a/tests/expectations/compiler/integers/i128/console_assert.out +++ b/tests/expectations/compiler/integers/i128/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9f555c476a06d6ea8a6f591dda6ad59d83bb1bd710c8103a44da65580a91fc0d - type_checked_symbol_table: 0c73d87189cced26aaf48d03dd6c195b97b99f72bdb74a8b36c34521a433ca5f - unrolled_symbol_table: 0c73d87189cced26aaf48d03dd6c195b97b99f72bdb74a8b36c34521a433ca5f - initial_ast: 98aad0d9aede8877a7c0640b4740f3c61b83a4c047b77c6f12ff1b682b3c961a - unrolled_ast: 98aad0d9aede8877a7c0640b4740f3c61b83a4c047b77c6f12ff1b682b3c961a - ssa_ast: 20b4889d0af45388cdeffb113e396f5aa441e1581125fd68d04c054b85c1190d - flattened_ast: b3389830b18f37b2ac194c867b1b62fa86489f3f9ebb41086c534d24e848cac1 - destructured_ast: f522adb17bdfa09e2bd7715322e29cb80d9652c3a7e89b9ea4e9e32d237e4ed2 - inlined_ast: f522adb17bdfa09e2bd7715322e29cb80d9652c3a7e89b9ea4e9e32d237e4ed2 - dce_ast: f522adb17bdfa09e2bd7715322e29cb80d9652c3a7e89b9ea4e9e32d237e4ed2 + - initial_symbol_table: 88ec669c9e4c6e3d0007f3d8eaceb73051c2736549107d2a4fa46cefcc65352b + type_checked_symbol_table: 0f8782f99ed98e45be6e3e3c5c042a77399ef83db3d8e82525a4da432b9bbc9a + unrolled_symbol_table: 0f8782f99ed98e45be6e3e3c5c042a77399ef83db3d8e82525a4da432b9bbc9a + initial_ast: 594911dcb9565a4bf112d39670c9cc7257ea9b8caf864861d6a086f0eca64b1e + unrolled_ast: 594911dcb9565a4bf112d39670c9cc7257ea9b8caf864861d6a086f0eca64b1e + ssa_ast: 53015ab590a611b644d3615cbaa6e4c5ff218a34ef6124953f108211f36af7b0 + flattened_ast: 90dfd51b3527b4f24ab60a36f9bc8f27edeb310b5a7e2e7c3b6056e675a4906b + destructured_ast: c6c48cdf457b0e8e966986e7427a01bb704101b1ac359b764c02f9dfc5b6eea2 + inlined_ast: c6c48cdf457b0e8e966986e7427a01bb704101b1ac359b764c02f9dfc5b6eea2 + dce_ast: c6c48cdf457b0e8e966986e7427a01bb704101b1ac359b764c02f9dfc5b6eea2 bytecode: cfb775c32747a200198579e073ead1a4acd478ed2346b0e51ff488e71b5f806c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/div.out b/tests/expectations/compiler/integers/i128/div.out index b8d2e45184..1b60d37e18 100644 --- a/tests/expectations/compiler/integers/i128/div.out +++ b/tests/expectations/compiler/integers/i128/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: 503ec3d80bf0ecc98557d4bc20601c043281bf47d415fa5369a5685e9c1bc5fb - unrolled_ast: 503ec3d80bf0ecc98557d4bc20601c043281bf47d415fa5369a5685e9c1bc5fb - ssa_ast: 3aacd179b55306416b96c2b237527a4f9888713154c0601e57bc0df4067f4706 - flattened_ast: fdbb7d88fc7e8c1dadfb5766526463c5d6de348028b7d0a634402ee836c96954 - destructured_ast: 34df532019837fddcd91c5bbc3b4801e3adea6c000a458291cb2f9fae5f45fb0 - inlined_ast: 34df532019837fddcd91c5bbc3b4801e3adea6c000a458291cb2f9fae5f45fb0 - dce_ast: 34df532019837fddcd91c5bbc3b4801e3adea6c000a458291cb2f9fae5f45fb0 + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: c0bcb89dba8c3cf29ea99567274775dccb150d4240d67c2b8054f0de85d241d8 + unrolled_ast: c0bcb89dba8c3cf29ea99567274775dccb150d4240d67c2b8054f0de85d241d8 + ssa_ast: 8320464d4dc2b692951bfd69b071507559a1c0f5f2cc5216036302aea5b504aa + flattened_ast: 821d53ac5d5eff3da2d50a55fd703a418bc9e3bac794979ae87371dafc142af1 + destructured_ast: 6cc5d69f7d4100ca8dbf5010a76214bec4f2153b631be9e213543f9210127574 + inlined_ast: 6cc5d69f7d4100ca8dbf5010a76214bec4f2153b631be9e213543f9210127574 + dce_ast: 6cc5d69f7d4100ca8dbf5010a76214bec4f2153b631be9e213543f9210127574 bytecode: 65f57028681592ca0f5c4fed50abb89f4aa53139b2371bc00c3e701d5b8e896f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/eq.out b/tests/expectations/compiler/integers/i128/eq.out index 41fc36419f..ae93614263 100644 --- a/tests/expectations/compiler/integers/i128/eq.out +++ b/tests/expectations/compiler/integers/i128/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c695580d6e19f82a6b953a6b5ff9ffdda721cd6c82f92342935634fd27bf67a1 - type_checked_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - unrolled_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - initial_ast: 6851881a45711a390ba8292e6dfc38d3d1aa0059d6eff7cef1439d24730dd8b6 - unrolled_ast: 6851881a45711a390ba8292e6dfc38d3d1aa0059d6eff7cef1439d24730dd8b6 - ssa_ast: 82cc7df4b592bd021949e11961da98b4fa4b7375ba09baff8e6125c22824fea8 - flattened_ast: 9f71cb0ca11e8fa3b94bb591fbd847400698b9f7caad918671712452b6fcb26f - destructured_ast: 34270d9e56a1f86c4ff6ed64ac6d3103a3bf23cccf0220f5ca7a92e40191036b - inlined_ast: 34270d9e56a1f86c4ff6ed64ac6d3103a3bf23cccf0220f5ca7a92e40191036b - dce_ast: 34270d9e56a1f86c4ff6ed64ac6d3103a3bf23cccf0220f5ca7a92e40191036b + - initial_symbol_table: 048d12785b65a253303e27b5360a25119c2c98f172883d58cffbc07e49a93e6e + type_checked_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + unrolled_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + initial_ast: acc532badf13952758c439543ce89ea45d061535f45ca64f7c6a80043eeee587 + unrolled_ast: acc532badf13952758c439543ce89ea45d061535f45ca64f7c6a80043eeee587 + ssa_ast: fdd4d6654fc465b83723dd12a20b0c76f43df09da1b9ad24b3aba0e4a737c718 + flattened_ast: 8f0b74f08b33302b69822395dc9c4073bcf810e7473befaebf4c6c5a926bf6f4 + destructured_ast: 1813817d7f22b85b13d6e38e6894157340466088f0c729ed9ad9dbef1c875e14 + inlined_ast: 1813817d7f22b85b13d6e38e6894157340466088f0c729ed9ad9dbef1c875e14 + dce_ast: 1813817d7f22b85b13d6e38e6894157340466088f0c729ed9ad9dbef1c875e14 bytecode: 3cdd93b31b489b0c21ed940752b5f00fdbde28dc7e52fbe97bd6c0f5b3f2e2e3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/ge.out b/tests/expectations/compiler/integers/i128/ge.out index 49c571a319..f75bfca08b 100644 --- a/tests/expectations/compiler/integers/i128/ge.out +++ b/tests/expectations/compiler/integers/i128/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c695580d6e19f82a6b953a6b5ff9ffdda721cd6c82f92342935634fd27bf67a1 - type_checked_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - unrolled_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - initial_ast: 279b9dedd24e4f84944790336eb1f9db96fefe30d8f036456952c6b00e9291f1 - unrolled_ast: 279b9dedd24e4f84944790336eb1f9db96fefe30d8f036456952c6b00e9291f1 - ssa_ast: e32a9f0d7f6bf928c14edf78979f80918fc063742cb605e9802d4a83e8eca331 - flattened_ast: c55c37e4840a81aee0a3b38f754032c108ee6a42743d636dba5779ff1f54e30f - destructured_ast: e51a505f66381e5934c3cb8ae1846afb2b1086df632e4ad8dc51a3244b01375b - inlined_ast: e51a505f66381e5934c3cb8ae1846afb2b1086df632e4ad8dc51a3244b01375b - dce_ast: e51a505f66381e5934c3cb8ae1846afb2b1086df632e4ad8dc51a3244b01375b + - initial_symbol_table: 048d12785b65a253303e27b5360a25119c2c98f172883d58cffbc07e49a93e6e + type_checked_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + unrolled_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + initial_ast: f8754573a21765e07940a912e3e23e08efef47dcff9acc823c04e2c56dadb1af + unrolled_ast: f8754573a21765e07940a912e3e23e08efef47dcff9acc823c04e2c56dadb1af + ssa_ast: f9f5b6c4d9292e916710f17a53e8d282ace2151cbd3827ef91bfc2be98f3afbe + flattened_ast: 0cd682d3505aed2da9a488a8ac5a8dee16455083c597c6f1329773abd60c38f6 + destructured_ast: 46a4fa829160c3ac2f1a012ed6a8724b1e5f33f488223bdf8bdde65e864f70d3 + inlined_ast: 46a4fa829160c3ac2f1a012ed6a8724b1e5f33f488223bdf8bdde65e864f70d3 + dce_ast: 46a4fa829160c3ac2f1a012ed6a8724b1e5f33f488223bdf8bdde65e864f70d3 bytecode: 10cd5a11422cda879fb35cd61b5e1b83e0a3b954e6583f44762802917d338085 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/gt.out b/tests/expectations/compiler/integers/i128/gt.out index f05c2c7737..e1f18e5668 100644 --- a/tests/expectations/compiler/integers/i128/gt.out +++ b/tests/expectations/compiler/integers/i128/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c695580d6e19f82a6b953a6b5ff9ffdda721cd6c82f92342935634fd27bf67a1 - type_checked_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - unrolled_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - initial_ast: 1ea526d73dd9fd6440db9a8f59b017b3cf74af6e042ac9748f4a294c8d88dada - unrolled_ast: 1ea526d73dd9fd6440db9a8f59b017b3cf74af6e042ac9748f4a294c8d88dada - ssa_ast: c285b431e68b56d439663f4b1e5c295bed52283770d2b4399f75dfd74e0ff84a - flattened_ast: 23bd48d6d437435bd1a4dc5f386becde33f97e502aebb69733694e4c9c2b4b0e - destructured_ast: 4b4de71ceb2bdc8940f1634b0cddd5995eb3fd14955aa3c099c259ede2d53cb7 - inlined_ast: 4b4de71ceb2bdc8940f1634b0cddd5995eb3fd14955aa3c099c259ede2d53cb7 - dce_ast: 4b4de71ceb2bdc8940f1634b0cddd5995eb3fd14955aa3c099c259ede2d53cb7 + - initial_symbol_table: 048d12785b65a253303e27b5360a25119c2c98f172883d58cffbc07e49a93e6e + type_checked_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + unrolled_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + initial_ast: 4b230f1f36b568f2e7e30534f3d690bc4b2a2c9abf2860a447d17be7a6fd6d1c + unrolled_ast: 4b230f1f36b568f2e7e30534f3d690bc4b2a2c9abf2860a447d17be7a6fd6d1c + ssa_ast: cc0d061e1e934d05fa43c1c7056502d0650ae657114c1d728f009de0ecd780d1 + flattened_ast: be77c1f6c95f41eb0157d449e345500abf77e2b92d4cbf9b16d3ec4bf9eb4551 + destructured_ast: 834dfe572693165a97f4ca592e72480bd420245c2cb3002f9937c32793f22a5a + inlined_ast: 834dfe572693165a97f4ca592e72480bd420245c2cb3002f9937c32793f22a5a + dce_ast: 834dfe572693165a97f4ca592e72480bd420245c2cb3002f9937c32793f22a5a bytecode: 484e03eaf5d4db72c6c47e37433ad15e9bf225f8ee65964eebcbbb627e1229d5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/le.out b/tests/expectations/compiler/integers/i128/le.out index fa2cd9f86d..2ed4103a06 100644 --- a/tests/expectations/compiler/integers/i128/le.out +++ b/tests/expectations/compiler/integers/i128/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c695580d6e19f82a6b953a6b5ff9ffdda721cd6c82f92342935634fd27bf67a1 - type_checked_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - unrolled_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - initial_ast: cb254c772bc0109c007986cfa8ad211aad55a22541f21275edd139c3e583debb - unrolled_ast: cb254c772bc0109c007986cfa8ad211aad55a22541f21275edd139c3e583debb - ssa_ast: e56f80c590e7a2673bca5b9adaa6b0c22895e24f62ee3e8a7b73d85d4adaebb6 - flattened_ast: d66a43eac31b8330890f756253849f77540f79b9352d5a79658f1ede21c706c2 - destructured_ast: 09c12e8d79612d3681b64d4dd3e5fa15445429980f00b2a922e82f6ce587851d - inlined_ast: 09c12e8d79612d3681b64d4dd3e5fa15445429980f00b2a922e82f6ce587851d - dce_ast: 09c12e8d79612d3681b64d4dd3e5fa15445429980f00b2a922e82f6ce587851d + - initial_symbol_table: 048d12785b65a253303e27b5360a25119c2c98f172883d58cffbc07e49a93e6e + type_checked_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + unrolled_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + initial_ast: f6bccc06fae21b09d011a6b4eadca9139848b1cb8cfc96724c395dd754e72049 + unrolled_ast: f6bccc06fae21b09d011a6b4eadca9139848b1cb8cfc96724c395dd754e72049 + ssa_ast: 0389f5a951e8aa219810601ead2239bb8b5bfad22613b996030bf745956bb32f + flattened_ast: f92f2473198f09ba69125c93c8922f6f0efbd3b7f40e2bc3b114d94461d350e5 + destructured_ast: 8c2c6c7cb08f521be1a3101275452bc7877d32d19a73afeb806a2d4091f003a7 + inlined_ast: 8c2c6c7cb08f521be1a3101275452bc7877d32d19a73afeb806a2d4091f003a7 + dce_ast: 8c2c6c7cb08f521be1a3101275452bc7877d32d19a73afeb806a2d4091f003a7 bytecode: cc1ee4fde8609e495d29513d4f1ba6088310c0b68929e619e6fef2fbcf127b13 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/lt.out b/tests/expectations/compiler/integers/i128/lt.out index 1dbb964c89..b4af9c615d 100644 --- a/tests/expectations/compiler/integers/i128/lt.out +++ b/tests/expectations/compiler/integers/i128/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c695580d6e19f82a6b953a6b5ff9ffdda721cd6c82f92342935634fd27bf67a1 - type_checked_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - unrolled_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - initial_ast: 9d8abde8fbaf453cbdd1a6c104be361d0ab4b94c8f5e935d11a30bd0c4427a99 - unrolled_ast: 9d8abde8fbaf453cbdd1a6c104be361d0ab4b94c8f5e935d11a30bd0c4427a99 - ssa_ast: d4f4bc0e12f1889b4b178096081c80da464c9cbbc5811266c8646c20baba5ebb - flattened_ast: 91c803312ea0cf19ee663b7eb2ac11ccb3d17993afc76cc0c8d107c0fa524e2c - destructured_ast: c6df692448ec0fd7a6f551b4e625dbaf7327625ba65d736842a77246eb87bfd7 - inlined_ast: c6df692448ec0fd7a6f551b4e625dbaf7327625ba65d736842a77246eb87bfd7 - dce_ast: c6df692448ec0fd7a6f551b4e625dbaf7327625ba65d736842a77246eb87bfd7 + - initial_symbol_table: 048d12785b65a253303e27b5360a25119c2c98f172883d58cffbc07e49a93e6e + type_checked_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + unrolled_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + initial_ast: a943ebed4de626ab133be38892bf463bbab0b9caafc3e50f8a6d0baeed79e1f7 + unrolled_ast: a943ebed4de626ab133be38892bf463bbab0b9caafc3e50f8a6d0baeed79e1f7 + ssa_ast: b91e36c12ec8b834948d85165b7a7e91bfd8e3ce9c0dee68a1b1ea17ad86dcbe + flattened_ast: 7c5f4be0ce8a16b89aab7ea8f56e86c56e4d5e323ea945d2608cc356810a0a6c + destructured_ast: 4b84ccb6ce88644430223655ded4246b4efe6f4486dcbfa7170b41cefff037e4 + inlined_ast: 4b84ccb6ce88644430223655ded4246b4efe6f4486dcbfa7170b41cefff037e4 + dce_ast: 4b84ccb6ce88644430223655ded4246b4efe6f4486dcbfa7170b41cefff037e4 bytecode: b1fc620dc1f15fe250bfd4e7bbf7ec3e51d72f7a47867a1b0ad680f7d97906aa errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/max.out b/tests/expectations/compiler/integers/i128/max.out index d54dea8232..1de6f732ff 100644 --- a/tests/expectations/compiler/integers/i128/max.out +++ b/tests/expectations/compiler/integers/i128/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1e0bb2c1c98d9ca4884dd7632c54d3b888395e4acd4cab72973b5ee7f0680b55 - type_checked_symbol_table: 6e4cffc901ee65ae6a85dbcc024439ba3820c6a97677935b742db82977546764 - unrolled_symbol_table: 6e4cffc901ee65ae6a85dbcc024439ba3820c6a97677935b742db82977546764 - initial_ast: a1dde9ccf35a705c416773400be5f3a7a5bd8ec9ca308633076c3ffcfef45b75 - unrolled_ast: a1dde9ccf35a705c416773400be5f3a7a5bd8ec9ca308633076c3ffcfef45b75 - ssa_ast: 1727b870a385bece44a7ce87de265b6ffc0c903687ff7fe3ced4838f8bc1b572 - flattened_ast: 3e7c052cb325a2220a85da633be035aa91f4c61abd171923563871b09e18abe6 - destructured_ast: 234007a689280ee519235b76e66a9fa6d5ae598b7bc7ab1d3f95e75899394ec8 - inlined_ast: 234007a689280ee519235b76e66a9fa6d5ae598b7bc7ab1d3f95e75899394ec8 - dce_ast: 234007a689280ee519235b76e66a9fa6d5ae598b7bc7ab1d3f95e75899394ec8 + - initial_symbol_table: 58658d0a4130232cb8aca0ef1bfd6cefb70c9a4e88dca0d3ae0ab4f036889d6f + type_checked_symbol_table: e260e4ee37a2ddf46861edfd6c612f5cbdf9ed78e3dcadbb52fbe271d4f08213 + unrolled_symbol_table: e260e4ee37a2ddf46861edfd6c612f5cbdf9ed78e3dcadbb52fbe271d4f08213 + initial_ast: 5ae50be3bd0398bb3465e19fb3ff44e5e6547193aeb49a69e15090d3dfd6a0a4 + unrolled_ast: 5ae50be3bd0398bb3465e19fb3ff44e5e6547193aeb49a69e15090d3dfd6a0a4 + ssa_ast: ccc268a4a928bd4d189a4efdea526fda88578b948aeeb0bb0894dc50ebdace73 + flattened_ast: c6853326192fb81311aa57414233619f20bd7788c176c20e9da3d044e05d3e50 + destructured_ast: ab41f39891d7fdf764a6bc5d610fb911735321e7dcde618b919d4af816861466 + inlined_ast: ab41f39891d7fdf764a6bc5d610fb911735321e7dcde618b919d4af816861466 + dce_ast: ab41f39891d7fdf764a6bc5d610fb911735321e7dcde618b919d4af816861466 bytecode: 0c9250cc00df66aac1199455cdfacc5d1a37bbf3719a4661a022b02d023ef962 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/max_fail.out b/tests/expectations/compiler/integers/i128/max_fail.out index e629cd1283..8f3ac4b3f8 100644 --- a/tests/expectations/compiler/integers/i128/max_fail.out +++ b/tests/expectations/compiler/integers/i128/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 170141183460469231731687303715884105728 is not a valid `i128`\n --> compiler-test:5:23\n |\n 5 | let a: i128 = 170141183460469231731687303715884105728i128;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 170141183460469231731687303715884105728 is not a valid `i128`\n --> compiler-test:5:23\n |\n 5 | let a: i128 = 170141183460469231731687303715884105728i128;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i128/min.out b/tests/expectations/compiler/integers/i128/min.out index 7ee69ec386..fed4d3a1e3 100644 --- a/tests/expectations/compiler/integers/i128/min.out +++ b/tests/expectations/compiler/integers/i128/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1e0bb2c1c98d9ca4884dd7632c54d3b888395e4acd4cab72973b5ee7f0680b55 - type_checked_symbol_table: 6e4cffc901ee65ae6a85dbcc024439ba3820c6a97677935b742db82977546764 - unrolled_symbol_table: 6e4cffc901ee65ae6a85dbcc024439ba3820c6a97677935b742db82977546764 - initial_ast: 8b86aed9874509a9375d095d0bd1baad9275a1e72fe0e331dc81c9a980b0cc38 - unrolled_ast: 8b86aed9874509a9375d095d0bd1baad9275a1e72fe0e331dc81c9a980b0cc38 - ssa_ast: 3cf1245355a2583cb73ba0c2e10f56fe307ad22462d0eaa83171b804cb386f70 - flattened_ast: f0fd8a4e8e335ce8f4daef3704d0d5fde52d2949e8a04fdefd17eea03965bdd5 - destructured_ast: 143f5599560a2971002956b0c681236683f30fbe117573d7a051067406cfd36c - inlined_ast: 143f5599560a2971002956b0c681236683f30fbe117573d7a051067406cfd36c - dce_ast: 143f5599560a2971002956b0c681236683f30fbe117573d7a051067406cfd36c + - initial_symbol_table: 58658d0a4130232cb8aca0ef1bfd6cefb70c9a4e88dca0d3ae0ab4f036889d6f + type_checked_symbol_table: e260e4ee37a2ddf46861edfd6c612f5cbdf9ed78e3dcadbb52fbe271d4f08213 + unrolled_symbol_table: e260e4ee37a2ddf46861edfd6c612f5cbdf9ed78e3dcadbb52fbe271d4f08213 + initial_ast: e18fa032b67010b6ae7678524bea33302a369c740456826c4176eaaa7403cb9f + unrolled_ast: e18fa032b67010b6ae7678524bea33302a369c740456826c4176eaaa7403cb9f + ssa_ast: 9e68aba63c76fc89024ebe6af0ef56d7fb1cdacb247b90b946ca63695ab63551 + flattened_ast: b3e9d7e1235c8e8ea1b39c45de512eaec12ce5ee88cfe319c617e45fccb7e641 + destructured_ast: 2d7809debf113e4a89f33b2487cf288ed79bc5d53b4c84aa0ad63f5eea1ec406 + inlined_ast: 2d7809debf113e4a89f33b2487cf288ed79bc5d53b4c84aa0ad63f5eea1ec406 + dce_ast: 2d7809debf113e4a89f33b2487cf288ed79bc5d53b4c84aa0ad63f5eea1ec406 bytecode: 3371e90020913ff2646967d8f24bd5da1033f31c46c1b46c1996331bb488b96e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/min_fail.out b/tests/expectations/compiler/integers/i128/min_fail.out index afdb552e6d..7fa181c58e 100644 --- a/tests/expectations/compiler/integers/i128/min_fail.out +++ b/tests/expectations/compiler/integers/i128/min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2f6217f9982b6a3c2cda0f7f87e09a2fc908c086824aab49697ed9761714ccf3 - type_checked_symbol_table: 6366eb06cc21c61ba56f76739f20d651c556079b150bfd5b7965ffc4a67c84d5 - unrolled_symbol_table: 6366eb06cc21c61ba56f76739f20d651c556079b150bfd5b7965ffc4a67c84d5 - initial_ast: 3ae9dfd3abb1693f7d6b96eb9f57eb8f48347bae4b6c0586648994cdabf34909 - unrolled_ast: 3ae9dfd3abb1693f7d6b96eb9f57eb8f48347bae4b6c0586648994cdabf34909 - ssa_ast: 73911aa4cba7970c24b18b0d5340c22e2a592dd4f1d381da3bf35e170f1b4e8e - flattened_ast: 6d38be711eeed32933c31c739130bb8aa2bafe46aafa17e1801034ab14d9b5c5 - destructured_ast: ad507713c7065eb938f0df42261f33e611f102dd0dd7d211e0244a612c1af636 - inlined_ast: ad507713c7065eb938f0df42261f33e611f102dd0dd7d211e0244a612c1af636 - dce_ast: ad507713c7065eb938f0df42261f33e611f102dd0dd7d211e0244a612c1af636 + - initial_symbol_table: c377a40a9af2363c7196bfe6ecb01732445a7071ccc9e4fa40cf5ff83bd9f95c + type_checked_symbol_table: c6c4c6720aa2e146c63bf206ea7ebc0c17606ac08730726c677887d0a00e1077 + unrolled_symbol_table: c6c4c6720aa2e146c63bf206ea7ebc0c17606ac08730726c677887d0a00e1077 + initial_ast: 18d515f2e17a6421757c560987e7a51edc746cb7d9b67324fb8ab0ba2e3cd049 + unrolled_ast: 18d515f2e17a6421757c560987e7a51edc746cb7d9b67324fb8ab0ba2e3cd049 + ssa_ast: cdb89edf270a35b547541de05b199278ecbd67c0076f6c78fa4cf99602143700 + flattened_ast: a21e1de3eb040bea406f509277b060917732807ce3b1b83bd5d0127f2c86daf0 + destructured_ast: 7761ec390f29fa668e64f5568857fdf6fde78e9f8449668c4665b03a17c4f6db + inlined_ast: 7761ec390f29fa668e64f5568857fdf6fde78e9f8449668c4665b03a17c4f6db + dce_ast: 7761ec390f29fa668e64f5568857fdf6fde78e9f8449668c4665b03a17c4f6db bytecode: 01713226f7ba799a801ed169d73aa94e4a3cb8048c6c069fdc874c2807e8ead6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/mul.out b/tests/expectations/compiler/integers/i128/mul.out index fafcb01417..5b3486729f 100644 --- a/tests/expectations/compiler/integers/i128/mul.out +++ b/tests/expectations/compiler/integers/i128/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: 7660464dfe2b9195ca4567dd3857f9afd8297b34c6a62b1a77fc2e6c45d3d0dc - unrolled_ast: 7660464dfe2b9195ca4567dd3857f9afd8297b34c6a62b1a77fc2e6c45d3d0dc - ssa_ast: b4c07c9ef5f1931fb56544482d4b5106802ecf90a729f7d50c9a3c664a9fd8f4 - flattened_ast: f9dfcce824cd3bead71b2abf89cb4919a0445598160215e071d713ef27b8b183 - destructured_ast: beb2b59d65971f4c852b454ca54dc41074795f7964d43dbccfb3a1375c2c443a - inlined_ast: beb2b59d65971f4c852b454ca54dc41074795f7964d43dbccfb3a1375c2c443a - dce_ast: beb2b59d65971f4c852b454ca54dc41074795f7964d43dbccfb3a1375c2c443a + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 67b83aa42724e8081e211400f9b864945440922a5b4bdf1c9b472e9fc3d318bf + unrolled_ast: 67b83aa42724e8081e211400f9b864945440922a5b4bdf1c9b472e9fc3d318bf + ssa_ast: 2d98bced66413b92745d2af2ed97b48611ef4a1671631d4fb39e65a7ff043e56 + flattened_ast: 08aa00aa0e1a46456b609c29deccd15810b00bc1dfb26cf998ba712ebcdc4b70 + destructured_ast: 0d1d5b60714cb06c687bff4848e076541d37d79c380ed1bc85a7a45ae591f61f + inlined_ast: 0d1d5b60714cb06c687bff4848e076541d37d79c380ed1bc85a7a45ae591f61f + dce_ast: 0d1d5b60714cb06c687bff4848e076541d37d79c380ed1bc85a7a45ae591f61f bytecode: d0d6aecd823bb5cd501ed807e6a169820dbee3db351de35303d4b8dda007e0d8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/ne.out b/tests/expectations/compiler/integers/i128/ne.out index 27ed091777..59ae5afef6 100644 --- a/tests/expectations/compiler/integers/i128/ne.out +++ b/tests/expectations/compiler/integers/i128/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c695580d6e19f82a6b953a6b5ff9ffdda721cd6c82f92342935634fd27bf67a1 - type_checked_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - unrolled_symbol_table: 06b3471150debe16c328c9c28ef673506fa0a753049142fd04df8dde59708455 - initial_ast: 8fc2fa45894bb21442e88336134ca4e54333385383ad1575460def60b3dc2ed7 - unrolled_ast: 8fc2fa45894bb21442e88336134ca4e54333385383ad1575460def60b3dc2ed7 - ssa_ast: d86ba3d40675ef15c9340b6680404814dfd0edae3f5bc6e17f23896369cb9555 - flattened_ast: acd9bca508749127ebddfc807dfa280d4d32e8d9c486a5d1802fefc17ea55658 - destructured_ast: 1b9729e7d2ed5ac9d0454c7318f915a0e2d34e274f46c917c850016acc179afe - inlined_ast: 1b9729e7d2ed5ac9d0454c7318f915a0e2d34e274f46c917c850016acc179afe - dce_ast: 1b9729e7d2ed5ac9d0454c7318f915a0e2d34e274f46c917c850016acc179afe + - initial_symbol_table: 048d12785b65a253303e27b5360a25119c2c98f172883d58cffbc07e49a93e6e + type_checked_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + unrolled_symbol_table: 45b25983b4fa035c7bb87ba9a0097f18bdfb01a5134827ae97d005d9ed41f649 + initial_ast: 2d98b21a35fa64cddc9047c861489ab3bb225180d9ca0b92bb820f084e1abd26 + unrolled_ast: 2d98b21a35fa64cddc9047c861489ab3bb225180d9ca0b92bb820f084e1abd26 + ssa_ast: 02dcd4a7ee93fb0c1a4a9d07c459efcbec74f4b4a0b4f8ccd03c379f500c2c7f + flattened_ast: 0dbea9302918916e352c8645f77f26f533e34b8a17f327afa056872986d18058 + destructured_ast: 3703f523ca17a33b0bb16d35d864f4260a1bcda32c8414d8e1829b3fa50c4733 + inlined_ast: 3703f523ca17a33b0bb16d35d864f4260a1bcda32c8414d8e1829b3fa50c4733 + dce_ast: 3703f523ca17a33b0bb16d35d864f4260a1bcda32c8414d8e1829b3fa50c4733 bytecode: 234d1c18ac19b0979e3bf09581be0370faa2e2b322474f693d90c52cb2991177 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/negate.out b/tests/expectations/compiler/integers/i128/negate.out index b292d7a849..a02a9a27b2 100644 --- a/tests/expectations/compiler/integers/i128/negate.out +++ b/tests/expectations/compiler/integers/i128/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9f555c476a06d6ea8a6f591dda6ad59d83bb1bd710c8103a44da65580a91fc0d - type_checked_symbol_table: 3986f23c54b9606297a9663dd1fa002ecd7b16001479b76664b780d0646a5610 - unrolled_symbol_table: 3986f23c54b9606297a9663dd1fa002ecd7b16001479b76664b780d0646a5610 - initial_ast: 498a2a98bd995c199f3deb82581b07cc26f3fa22dbbe5348082cc2a31b1923ce - unrolled_ast: 498a2a98bd995c199f3deb82581b07cc26f3fa22dbbe5348082cc2a31b1923ce - ssa_ast: a10c6df9f238628822978efbe365aed4fcf7a1328a878e5b197a09961f510352 - flattened_ast: 18fa42d700983e42c30868e453b69dbdc82400c8e296a4a1cd86a470cb1d3edf - destructured_ast: 8fdb5d9c5248c5bfa32da99edc20880f75a6ac6d033484b1d72a1c02dd80f35e - inlined_ast: 8fdb5d9c5248c5bfa32da99edc20880f75a6ac6d033484b1d72a1c02dd80f35e - dce_ast: 8fdb5d9c5248c5bfa32da99edc20880f75a6ac6d033484b1d72a1c02dd80f35e + - initial_symbol_table: 88ec669c9e4c6e3d0007f3d8eaceb73051c2736549107d2a4fa46cefcc65352b + type_checked_symbol_table: f1a390ea53460c5399d68327a9a07791ee433b064098fdfb23d0bdcc209236c0 + unrolled_symbol_table: f1a390ea53460c5399d68327a9a07791ee433b064098fdfb23d0bdcc209236c0 + initial_ast: 2e135125aa35a1e2dc1e50c491d7f31d9e222dc2a613e3bd9fc12af76a3ea5e1 + unrolled_ast: 2e135125aa35a1e2dc1e50c491d7f31d9e222dc2a613e3bd9fc12af76a3ea5e1 + ssa_ast: 8bed91a5318320708e97851dd163338277b5a994c9b1e08ad8973aed2b78a247 + flattened_ast: fcbfacf656f764ce6a7b03fb279fdaa15046852fca679746b486f56eef2f7d68 + destructured_ast: 9c9dddc0ecef9517db86da0f13a231a8771eff33eddef987bb7d16b970e96165 + inlined_ast: 9c9dddc0ecef9517db86da0f13a231a8771eff33eddef987bb7d16b970e96165 + dce_ast: 9c9dddc0ecef9517db86da0f13a231a8771eff33eddef987bb7d16b970e96165 bytecode: 8fbbd1ffdc2128ce18c84c8eee60a408dd29cdc99ca197ffe094a8be0c4019c4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/negate_min_fail.out b/tests/expectations/compiler/integers/i128/negate_min_fail.out index 26eae8cb7f..05ae3ef109 100644 --- a/tests/expectations/compiler/integers/i128/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i128/negate_min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2f6217f9982b6a3c2cda0f7f87e09a2fc908c086824aab49697ed9761714ccf3 - type_checked_symbol_table: 6366eb06cc21c61ba56f76739f20d651c556079b150bfd5b7965ffc4a67c84d5 - unrolled_symbol_table: 6366eb06cc21c61ba56f76739f20d651c556079b150bfd5b7965ffc4a67c84d5 - initial_ast: 86b9fe5682d6496f8928882bf81c081e34749e0ce5edd35aefd1d48a3d81a49a - unrolled_ast: 86b9fe5682d6496f8928882bf81c081e34749e0ce5edd35aefd1d48a3d81a49a - ssa_ast: 8d9fc40f7eae1b97815ab8db8fb2393a7898307ce4b9a18e9ef54b2bdb284477 - flattened_ast: 1e52db02fdc448a10dcfd3f3888911c535dc010820ae1c7f6fb8eb18b247d019 - destructured_ast: eb5d46bb730044b5c27d52b9857d9d0b6d0af44a9aa82b8273b0520b3649ca9e - inlined_ast: eb5d46bb730044b5c27d52b9857d9d0b6d0af44a9aa82b8273b0520b3649ca9e - dce_ast: eb5d46bb730044b5c27d52b9857d9d0b6d0af44a9aa82b8273b0520b3649ca9e + - initial_symbol_table: c377a40a9af2363c7196bfe6ecb01732445a7071ccc9e4fa40cf5ff83bd9f95c + type_checked_symbol_table: c6c4c6720aa2e146c63bf206ea7ebc0c17606ac08730726c677887d0a00e1077 + unrolled_symbol_table: c6c4c6720aa2e146c63bf206ea7ebc0c17606ac08730726c677887d0a00e1077 + initial_ast: 7c2582e76d34c361f1a3b31cacd16b0a85b4d744fcf5d73e0f2fb6ae26419bc4 + unrolled_ast: 7c2582e76d34c361f1a3b31cacd16b0a85b4d744fcf5d73e0f2fb6ae26419bc4 + ssa_ast: addd0095a62ca44e3f2f51b8c1a2537adff5358b36d0236c0fc3750bceb60823 + flattened_ast: c0dba4536561f2319b16054f0441ff95e020d984e480ec25267262b6e0cb28fd + destructured_ast: 195777c6d5c3c46dae5d3d5e1a5933d6a26d9012ce958a526b9d5ed512caf716 + inlined_ast: 195777c6d5c3c46dae5d3d5e1a5933d6a26d9012ce958a526b9d5ed512caf716 + dce_ast: 195777c6d5c3c46dae5d3d5e1a5933d6a26d9012ce958a526b9d5ed512caf716 bytecode: a9a22fd3ceba8f7aa3bc7f1e577a63bfdf395c9cad00987880cf75066bdf85c8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/negate_zero.out b/tests/expectations/compiler/integers/i128/negate_zero.out index 56b5d51a05..2e32036ace 100644 --- a/tests/expectations/compiler/integers/i128/negate_zero.out +++ b/tests/expectations/compiler/integers/i128/negate_zero.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 852378bf7a29d4c30d68162f1c8c58c8674e335054bffb82af19dc00705f852f - unrolled_symbol_table: 852378bf7a29d4c30d68162f1c8c58c8674e335054bffb82af19dc00705f852f - initial_ast: ddde14fb11980bf3c8b65980275dae1fe3ec5d810f240c4c8eb1583ac3ad83c8 - unrolled_ast: ddde14fb11980bf3c8b65980275dae1fe3ec5d810f240c4c8eb1583ac3ad83c8 - ssa_ast: b330ad51094dac14267302facb10056484f0a377d72507d7f8f9788773c3bd6a - flattened_ast: 6a24bfc8971e393eb1d03490818d8cab88f5a41b56ad90bf646c25064d7d0a27 - destructured_ast: 8ed597245442fc03ac93860c9730eb73d4c4326e06b49537fa8d1f6639fddc63 - inlined_ast: 8ed597245442fc03ac93860c9730eb73d4c4326e06b49537fa8d1f6639fddc63 - dce_ast: 8ed597245442fc03ac93860c9730eb73d4c4326e06b49537fa8d1f6639fddc63 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 650c189c5be12fbc68f882260c3746745f643d2d8a7a964505ad1f3e9efcfddd + unrolled_symbol_table: 650c189c5be12fbc68f882260c3746745f643d2d8a7a964505ad1f3e9efcfddd + initial_ast: 74772e5266ebb16bdb461414bf1acf512caeed947ae1a1885d0bf0aa5d8d4989 + unrolled_ast: 74772e5266ebb16bdb461414bf1acf512caeed947ae1a1885d0bf0aa5d8d4989 + ssa_ast: 17ea8141f67b35f39a00a753808614f80efb23556e02f8a0d4ba9e16ba4f838f + flattened_ast: 0190af0cd1ab106f544575cba3a1c60fcfde4731f3672c6b48348cae6c75f74d + destructured_ast: 4a910a28faa4bdcb0caa94550c9ff07a6f121c575b6dc8bb37495a3b67aaf157 + inlined_ast: 4a910a28faa4bdcb0caa94550c9ff07a6f121c575b6dc8bb37495a3b67aaf157 + dce_ast: 4a910a28faa4bdcb0caa94550c9ff07a6f121c575b6dc8bb37495a3b67aaf157 bytecode: 163f69d6df6294a79a4f27ccb9ed64ebd0e5df96c5205cf176f1201eab229deb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/operator_methods.out b/tests/expectations/compiler/integers/i128/operator_methods.out index 2311ce415e..a3fbce7e5b 100644 --- a/tests/expectations/compiler/integers/i128/operator_methods.out +++ b/tests/expectations/compiler/integers/i128/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9f555c476a06d6ea8a6f591dda6ad59d83bb1bd710c8103a44da65580a91fc0d - type_checked_symbol_table: 52984ec094211138f985c3a7bd337e5ae837f4633ba789e9736f90a776b716e3 - unrolled_symbol_table: 52984ec094211138f985c3a7bd337e5ae837f4633ba789e9736f90a776b716e3 - initial_ast: 014b0ba715640fdaadc24a31ae384dbe95f99b7962e5d30a2b1812733b40156a - unrolled_ast: 014b0ba715640fdaadc24a31ae384dbe95f99b7962e5d30a2b1812733b40156a - ssa_ast: 26440e3a3e6b1d0e9d51dc4ff4d0084def507edb63ababf43719370724f8fef0 - flattened_ast: 3509824384d4f758fee3585052adb7e80e570ee1d845e4ad49139a6262f2e807 - destructured_ast: 657ee725d55ed06fa42c5a4d1783935ee15759902dfff77ea55442d36c384fb2 - inlined_ast: 657ee725d55ed06fa42c5a4d1783935ee15759902dfff77ea55442d36c384fb2 - dce_ast: bfdf642ac967ba96ee3ce5ebb034c85a9fa1d347234849115544e3094fa5deb1 + - initial_symbol_table: 88ec669c9e4c6e3d0007f3d8eaceb73051c2736549107d2a4fa46cefcc65352b + type_checked_symbol_table: 9e304683f00f9caf15282c531b770ea0cd3d0496cba6de1a1b7ac962ca4a6ce7 + unrolled_symbol_table: 9e304683f00f9caf15282c531b770ea0cd3d0496cba6de1a1b7ac962ca4a6ce7 + initial_ast: ad5a0404796ea15823d9d3c8446b4649fbbf0acee75ac8ff5cfbd8293a4c0bc4 + unrolled_ast: ad5a0404796ea15823d9d3c8446b4649fbbf0acee75ac8ff5cfbd8293a4c0bc4 + ssa_ast: 7d30aac345a00e5ae8a4cc775f63251d10238bf2bfe09eff5f069039a318a73a + flattened_ast: 518c87daf31bdfa7d38af9a95530261fa30686ffd89894f095f715c74d40c59f + destructured_ast: 3df805c6195ca7825e2871f7f96da1bc8e1172ecbd94a12a893b1de2a90f9b7f + inlined_ast: 3df805c6195ca7825e2871f7f96da1bc8e1172ecbd94a12a893b1de2a90f9b7f + dce_ast: eb2db604f81838b18989cf1d821d79e2c2e6af751c5780f4e6fb7237fa9c445f bytecode: 3f9bcd59307e76bb9f1ec70f6b5aa9d7d279141fd0ac17f03e19ad42c64b292e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/or.out b/tests/expectations/compiler/integers/i128/or.out index a90d508cf6..a39e44ed12 100644 --- a/tests/expectations/compiler/integers/i128/or.out +++ b/tests/expectations/compiler/integers/i128/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: b1a2efe3db61f65fa4beb49eab52335d78173296ae8567da63ee6da970315411 - unrolled_ast: b1a2efe3db61f65fa4beb49eab52335d78173296ae8567da63ee6da970315411 - ssa_ast: e17022a24a73e843fa88877dd60a77807499b0c02c6d3cb86909178eec91e322 - flattened_ast: 3792238eed792f5a49def567846a5eb17a3babf8ff7c25c5456bb964e4a7745d - destructured_ast: dbace63493b53a6778d1d75413a4c5cf924adeffdfcc8c668188508dae2872f0 - inlined_ast: dbace63493b53a6778d1d75413a4c5cf924adeffdfcc8c668188508dae2872f0 - dce_ast: dbace63493b53a6778d1d75413a4c5cf924adeffdfcc8c668188508dae2872f0 + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 9b0dd741af2810a1805a2b40587327cc8c280aba2513a6e2f60d94c51a4f0993 + unrolled_ast: 9b0dd741af2810a1805a2b40587327cc8c280aba2513a6e2f60d94c51a4f0993 + ssa_ast: a0efafe25f30474b8cbca13b2e693d34677326266333673f65f66f41f627fcb5 + flattened_ast: 1addc96c3066874b4bef1e046b0483457a4f791b982e7e7228c40b464417a430 + destructured_ast: 78b93b2a511e637ce3f24e7c682277fb06cd8191345541b21363836508987f5a + inlined_ast: 78b93b2a511e637ce3f24e7c682277fb06cd8191345541b21363836508987f5a + dce_ast: 78b93b2a511e637ce3f24e7c682277fb06cd8191345541b21363836508987f5a bytecode: 85fa769a183361184804ca78415e58cd4df150b04f1b50a743771dc28df46b4b errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/pow.out b/tests/expectations/compiler/integers/i128/pow.out index d5ff69d519..31e1a7029c 100644 --- a/tests/expectations/compiler/integers/i128/pow.out +++ b/tests/expectations/compiler/integers/i128/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: c4f404e0f546287f4f314e9cb14042dd58f3582bcddcccc0240ace04e02a8d15 - unrolled_ast: c4f404e0f546287f4f314e9cb14042dd58f3582bcddcccc0240ace04e02a8d15 - ssa_ast: 84a19ef1ded8f090f7b42511c4f95eed0b6cfed26905bb863d64d58107b0e7d2 - flattened_ast: eb01654079cbd2ba4d7e67039fc662e9d18ea83d20b96d6cb331ae198011693c - destructured_ast: 1839fc7cf9420f6223b3b66524696fee11c1dc90103fd37591b7c213865d31d3 - inlined_ast: 1839fc7cf9420f6223b3b66524696fee11c1dc90103fd37591b7c213865d31d3 - dce_ast: 1839fc7cf9420f6223b3b66524696fee11c1dc90103fd37591b7c213865d31d3 + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: d9fc3ccd427fe7f61ddb54450ae4d482b93ac2394e30a28c8f9516b7142f2526 + unrolled_ast: d9fc3ccd427fe7f61ddb54450ae4d482b93ac2394e30a28c8f9516b7142f2526 + ssa_ast: a462611d443fa2ce82fc425fb33dca08f076279219da3e2fe3a6ccc51a381410 + flattened_ast: 2f8212400f3c9bf85bd05b022b2a74dabb963d6f5f1319612ad33195c24212c9 + destructured_ast: cc4d48b9298a7b4b59bd1a1b08c086478453f0d5583fd0162a7cdec11faca51d + inlined_ast: cc4d48b9298a7b4b59bd1a1b08c086478453f0d5583fd0162a7cdec11faca51d + dce_ast: cc4d48b9298a7b4b59bd1a1b08c086478453f0d5583fd0162a7cdec11faca51d bytecode: d190616fb105ce612eb0022279524f88dacfa3a9bef033cc54a70954b0140ef6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/rem.out b/tests/expectations/compiler/integers/i128/rem.out index 9b6f413133..91aebf42bc 100644 --- a/tests/expectations/compiler/integers/i128/rem.out +++ b/tests/expectations/compiler/integers/i128/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: c4cbe7205b8fab61d0b9a9741a8c3c662e2da1d18a0b5d50841ba6d1f3c267d7 - unrolled_ast: c4cbe7205b8fab61d0b9a9741a8c3c662e2da1d18a0b5d50841ba6d1f3c267d7 - ssa_ast: aad2083ef04b0e1a58319893d6678f4295d89fa5ee039301aee0a7f677d8f39b - flattened_ast: 66417924e4c26f7bcc0a83e5f22020f0db6eddebfbdbcd6376472b2a4e0c32a7 - destructured_ast: 0234ece45636f621e5ed844fd586442eeb035350baf73c9a7e989a3a7418f760 - inlined_ast: 0234ece45636f621e5ed844fd586442eeb035350baf73c9a7e989a3a7418f760 - dce_ast: 0234ece45636f621e5ed844fd586442eeb035350baf73c9a7e989a3a7418f760 + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 4651eb6dd6f25e5d6b2c582b679b4f253ceabbb455d2e943e0389d8cc1cbf96e + unrolled_ast: 4651eb6dd6f25e5d6b2c582b679b4f253ceabbb455d2e943e0389d8cc1cbf96e + ssa_ast: 01a1e65347134107ccc696a1e218b717d3ba1492b37623c58ab9fc5c789cc5a2 + flattened_ast: 1349cda07b20fd01ea36abe6f8bd3bbc92d23410742c64a96e3ff825219d5b1d + destructured_ast: bd0d0ebbce3ea22fc76df42fae7fd58fb15f7e1bcf079603a9e8db0bf5130b1c + inlined_ast: bd0d0ebbce3ea22fc76df42fae7fd58fb15f7e1bcf079603a9e8db0bf5130b1c + dce_ast: bd0d0ebbce3ea22fc76df42fae7fd58fb15f7e1bcf079603a9e8db0bf5130b1c bytecode: 5d53e21705893d69b529fbcd09e2200ac612868aa3b553ab83eac9ab33ecdcad errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/shl.out b/tests/expectations/compiler/integers/i128/shl.out index 42fe369f1a..bceedc467d 100644 --- a/tests/expectations/compiler/integers/i128/shl.out +++ b/tests/expectations/compiler/integers/i128/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: 4e9b5095d9097a75588cbc57629bfa6423edf1a8556f5ff00466819e40a1ef84 - unrolled_ast: 4e9b5095d9097a75588cbc57629bfa6423edf1a8556f5ff00466819e40a1ef84 - ssa_ast: 054e1bab584ca61c831d22c43d5ebc30b70d26b7460c447055b6dc9209a4e1ba - flattened_ast: 41c0a2fe336ae62a6f2f91aefb1ff045b37ed06edb8b43b264e6e58ab8a0aa3b - destructured_ast: 9e637c255852553c3884192af46afcdd0fb2a8e3032712ec72a75fcb269dfb2f - inlined_ast: 9e637c255852553c3884192af46afcdd0fb2a8e3032712ec72a75fcb269dfb2f - dce_ast: 9e637c255852553c3884192af46afcdd0fb2a8e3032712ec72a75fcb269dfb2f + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 9fdd6454ca2c92bdf07d2de54f26d3e67d15fe2345603d16d4da491e372b4939 + unrolled_ast: 9fdd6454ca2c92bdf07d2de54f26d3e67d15fe2345603d16d4da491e372b4939 + ssa_ast: 370909d5a80417364cac03514a17162c958781924e78c582541de6c72cc1482d + flattened_ast: 8061f03f73889f2f2032b2ccafb2833fda61a67c52fe6263fc8e8786b9f928f7 + destructured_ast: 2b61b6428667218c61253a3dda8b45efb762de90d2c7588b2a07cec967711057 + inlined_ast: 2b61b6428667218c61253a3dda8b45efb762de90d2c7588b2a07cec967711057 + dce_ast: 2b61b6428667218c61253a3dda8b45efb762de90d2c7588b2a07cec967711057 bytecode: d27718f2372db60651de0720d5d611c3199e4be462f5a122ec9fbf05720f9700 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/shr.out b/tests/expectations/compiler/integers/i128/shr.out index aadf2eab94..a04e3c861f 100644 --- a/tests/expectations/compiler/integers/i128/shr.out +++ b/tests/expectations/compiler/integers/i128/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: b0e7eb3061dd0f3c34bd29aaeeb2d16ebb8263217302e05e545f9b496950e8de - unrolled_ast: b0e7eb3061dd0f3c34bd29aaeeb2d16ebb8263217302e05e545f9b496950e8de - ssa_ast: 6e40d505ea403f51781b160b230ec2d7c0f21f13ba9da85545227b68953a878a - flattened_ast: 7c70de79b883267c09eed2f293fbddeb4183dae58996837fe44fbec892c75fb6 - destructured_ast: 3dd08cded1283bb6bfa261da6ac06a6426ab5ad41fc9fae8bd1cdaa50050152d - inlined_ast: 3dd08cded1283bb6bfa261da6ac06a6426ab5ad41fc9fae8bd1cdaa50050152d - dce_ast: 3dd08cded1283bb6bfa261da6ac06a6426ab5ad41fc9fae8bd1cdaa50050152d + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: 289c7e1d847e6f22d38ae7c98fd488b347dba400e01fe0259c44b3952f82e3d5 + unrolled_ast: 289c7e1d847e6f22d38ae7c98fd488b347dba400e01fe0259c44b3952f82e3d5 + ssa_ast: 1ca43387e0eea8e3107a451f39d20c3c7140325264a45292405aacaa1186c9a8 + flattened_ast: 31628690c27a809b46d79f3c36f2764376b5228e6a92aec5138f5fd568c20394 + destructured_ast: fff5254b0ff7f38ea8ceac6b55edb49e5541ab536812d5cba0a12e0d02427726 + inlined_ast: fff5254b0ff7f38ea8ceac6b55edb49e5541ab536812d5cba0a12e0d02427726 + dce_ast: fff5254b0ff7f38ea8ceac6b55edb49e5541ab536812d5cba0a12e0d02427726 bytecode: 3835c59e778362b72f87e954fe6c9777904bf7d390f68b5ff47fb6c8ef5bb258 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/sub.out b/tests/expectations/compiler/integers/i128/sub.out index f6b6d83e27..f48882c1c0 100644 --- a/tests/expectations/compiler/integers/i128/sub.out +++ b/tests/expectations/compiler/integers/i128/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a9f05f36ee0222ac4a853e6efbd5e5090eb8dfebb004c669fb329e2e72eee112 - type_checked_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - unrolled_symbol_table: ede8b1b375ab8209a1d3c82fde90aa5b2aa52bfa3e989d36a2bbb10f4262004e - initial_ast: bea96ede139d6d54fd4193a5f2fb2f84fd6701db3dc6cca5b50bb09d098ea075 - unrolled_ast: bea96ede139d6d54fd4193a5f2fb2f84fd6701db3dc6cca5b50bb09d098ea075 - ssa_ast: 225d1a097028b734295428640e3a7476311baeb655e5c478ba283f4db221e64d - flattened_ast: 3914d375dd59d3dbe5739b90588a054a939421be23214b31ba03593aefff8bd7 - destructured_ast: be2afd326148325a5e57f05188e7dbb962871d12f1229b31fce8c039c6f10add - inlined_ast: be2afd326148325a5e57f05188e7dbb962871d12f1229b31fce8c039c6f10add - dce_ast: be2afd326148325a5e57f05188e7dbb962871d12f1229b31fce8c039c6f10add + - initial_symbol_table: 0b378f89825f397fb24888f96c8e0459299a75e3bff6ed498a1e4dea93c83409 + type_checked_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + unrolled_symbol_table: 9ff3de3675e8f915655051969ec6db7bdaaf0827773b17bb7a87bf5f7662ceb5 + initial_ast: ab51d470aecabe2c294055a04aa46a660cbcd6c99e1841c5414f496f8e0a2b30 + unrolled_ast: ab51d470aecabe2c294055a04aa46a660cbcd6c99e1841c5414f496f8e0a2b30 + ssa_ast: b7801b4ccdb2c1cb86e57f68ce6805700108d4a964979304416741a1938e96c0 + flattened_ast: 8120a58951e78ffe45e68659de7b42bc07640ec6cc29f6690c86a4a8b024f82a + destructured_ast: 7bce5ef2ce525e9a28e652b9a79e7cb04e49dd26d158956e793980685c634e81 + inlined_ast: 7bce5ef2ce525e9a28e652b9a79e7cb04e49dd26d158956e793980685c634e81 + dce_ast: 7bce5ef2ce525e9a28e652b9a79e7cb04e49dd26d158956e793980685c634e81 bytecode: 1adab47eb5efe9d41dbad9d8b31eb8866871818b40ef6bd54a77c8b016683a5a errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/ternary.out b/tests/expectations/compiler/integers/i128/ternary.out index 19c2f82b8c..78b4c77d5a 100644 --- a/tests/expectations/compiler/integers/i128/ternary.out +++ b/tests/expectations/compiler/integers/i128/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a47bf394dab76c7665e22803a7556df5636cbe34abbf74336861333f775ad06c - type_checked_symbol_table: 234c6c0822903f391436c58e10b80a396a8d1abeeb0486bf95e09c5033274bd8 - unrolled_symbol_table: 234c6c0822903f391436c58e10b80a396a8d1abeeb0486bf95e09c5033274bd8 - initial_ast: 74b479bc4c653b80e93533d4bfccdd848d9e61a88cbefc5f75eed76dc9f23404 - unrolled_ast: 74b479bc4c653b80e93533d4bfccdd848d9e61a88cbefc5f75eed76dc9f23404 - ssa_ast: 75abc6057520d5500c25d174c8690be638c98850a695620d6b8198c12d251859 - flattened_ast: 38c4e5cdbe63b44a3c9dea189763a5e0c35af4409f03ff753daf8a21ff2fdd2e - destructured_ast: d1179bee75fbd9dd6b9b3aa5291afde1ce3e72567c0d3dba098f106909735134 - inlined_ast: d1179bee75fbd9dd6b9b3aa5291afde1ce3e72567c0d3dba098f106909735134 - dce_ast: d1179bee75fbd9dd6b9b3aa5291afde1ce3e72567c0d3dba098f106909735134 + - initial_symbol_table: d8e193c0fc1513520dda5573beb3d6a86aaac67ac308998f4c605e9c62b379b8 + type_checked_symbol_table: 3ebcfde97d6e997f14872db3cb2a4d8a9705b9332646f0b7e93e9dae4ae01393 + unrolled_symbol_table: 3ebcfde97d6e997f14872db3cb2a4d8a9705b9332646f0b7e93e9dae4ae01393 + initial_ast: 99e7b2d1ee23a9451ce84722bbc7dcf6d6832780c881e0942eb5311dd5b8adce + unrolled_ast: 99e7b2d1ee23a9451ce84722bbc7dcf6d6832780c881e0942eb5311dd5b8adce + ssa_ast: bdf103e51a0fa3b605970cce452ca3acc4aa6f9981dea6cffe2e6e87b6554445 + flattened_ast: 8add84c7286f0accfb9e7e9d60a5f93562b2c88b89d2bcf3fa7330675dcee522 + destructured_ast: 31d5c0097af3f7ad97de4eed1366a60b3440ed1e5130836f63be11f087e03821 + inlined_ast: 31d5c0097af3f7ad97de4eed1366a60b3440ed1e5130836f63be11f087e03821 + dce_ast: 31d5c0097af3f7ad97de4eed1366a60b3440ed1e5130836f63be11f087e03821 bytecode: dfa955d512febab56fa2b549f3f0857663aaddb77a71f0322d48b26af49eb2af errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i128/xor.out b/tests/expectations/compiler/integers/i128/xor.out index f5cdf19e00..bc29ff9035 100644 --- a/tests/expectations/compiler/integers/i128/xor.out +++ b/tests/expectations/compiler/integers/i128/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b3cbb1581c450b27f5e4c56082ab408ebd4bbf15124851901bf1f2d8deb8a42f - type_checked_symbol_table: 42516130bcc576411393f64a301e84cbf16361971a51cae637d1df905dc21c05 - unrolled_symbol_table: 42516130bcc576411393f64a301e84cbf16361971a51cae637d1df905dc21c05 - initial_ast: 1d0480bac99cb537562f34b64cb72fa20bd5ad586946dec7b9e78a8c00e185ad - unrolled_ast: 1d0480bac99cb537562f34b64cb72fa20bd5ad586946dec7b9e78a8c00e185ad - ssa_ast: 594f31541e9449c1162fcefbe7d8d450b5203df535d0cef59cdb3d4357365659 - flattened_ast: c04dc55cc063fb38d98d0cbedf2b19aadaa95d6718708f1b32cab65ca28bfebd - destructured_ast: 07bed5e967422ea66381879d50e700ce90faec65d223d9cde179e7f838ae33a5 - inlined_ast: 07bed5e967422ea66381879d50e700ce90faec65d223d9cde179e7f838ae33a5 - dce_ast: 07bed5e967422ea66381879d50e700ce90faec65d223d9cde179e7f838ae33a5 + - initial_symbol_table: 2bd0f4581e2159ad514f8a5cebe937d017c14d9b9f66aee62b8362ae31cdb6ff + type_checked_symbol_table: 51d5abb1f6fa934e1afb6f3623024cb80f864ed34a50bdb0002e18423ec89d50 + unrolled_symbol_table: 51d5abb1f6fa934e1afb6f3623024cb80f864ed34a50bdb0002e18423ec89d50 + initial_ast: d51551a95ea033e035e612ac458cbbaeea1cfdb4e4e6bffaf98f1515f61cb70e + unrolled_ast: d51551a95ea033e035e612ac458cbbaeea1cfdb4e4e6bffaf98f1515f61cb70e + ssa_ast: 8c62efb7a8bea8f7a949b7aafec74c5767e09edc836263d30f694852aaf730c1 + flattened_ast: f117e903732601387d7f0a62a2109abc4e93dcf96f872404d85b334631aa6e6a + destructured_ast: 01a6434931218abb131d1883901fa6834cf5c21f2e4bb2f6997903a0d01e5233 + inlined_ast: 01a6434931218abb131d1883901fa6834cf5c21f2e4bb2f6997903a0d01e5233 + dce_ast: 01a6434931218abb131d1883901fa6834cf5c21f2e4bb2f6997903a0d01e5233 bytecode: a4e52d530daa111c685a34ebf07350f49f886e72fb1af5fd8c789c1ece9813b9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/add.out b/tests/expectations/compiler/integers/i16/add.out index b722f36451..8d50412c33 100644 --- a/tests/expectations/compiler/integers/i16/add.out +++ b/tests/expectations/compiler/integers/i16/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 737656f278c000d14d3a7a2d65ed6a15f798a98ee57325b6a7086e83ca6f5392 - unrolled_ast: 737656f278c000d14d3a7a2d65ed6a15f798a98ee57325b6a7086e83ca6f5392 - ssa_ast: 516ea160eab03b099e904e755fd9a15ebe62cf2277beeaf4683915adf0244c36 - flattened_ast: 06a7bc6432a0f6010812c5ac09c33e9d0ffd8fa8d21bdb3b56adc48245e40bab - destructured_ast: 88b3f91e27b1bc817e0a25311659bc13999d6c2f48468821d20b32ebc1a1ed40 - inlined_ast: 88b3f91e27b1bc817e0a25311659bc13999d6c2f48468821d20b32ebc1a1ed40 - dce_ast: 88b3f91e27b1bc817e0a25311659bc13999d6c2f48468821d20b32ebc1a1ed40 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 46ddea86c03d4953813569cd19afc0d8253baf004d2852bb1c0080cc40a0acb1 + unrolled_ast: 46ddea86c03d4953813569cd19afc0d8253baf004d2852bb1c0080cc40a0acb1 + ssa_ast: cc1b268222fd8f9f21ea8c3e1ca4d4ea2183cb80875801686be0e92e999f7b8d + flattened_ast: f756823671158aea124fab01263f41669b6faa555927bc02d4b5f3e26dcea5b9 + destructured_ast: b7a4f210b42c152a039fb903688f3334f65417f4aa5ba5f1dcd4104d0b13f749 + inlined_ast: b7a4f210b42c152a039fb903688f3334f65417f4aa5ba5f1dcd4104d0b13f749 + dce_ast: b7a4f210b42c152a039fb903688f3334f65417f4aa5ba5f1dcd4104d0b13f749 bytecode: 4d6180dac5a97d9a8f2825b4cae41adec00897380b309e1ffadda4ddd4f607fa errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/and.out b/tests/expectations/compiler/integers/i16/and.out index b720ed924a..1b33f510e0 100644 --- a/tests/expectations/compiler/integers/i16/and.out +++ b/tests/expectations/compiler/integers/i16/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: ec6fe69e3670a5aef3995d928809a84fc7640f1c8548702b827a04e7c0d1989c - unrolled_ast: ec6fe69e3670a5aef3995d928809a84fc7640f1c8548702b827a04e7c0d1989c - ssa_ast: 6f92d105e5164a9f0515c9fcda3efc6ea118d9606c5717caa816b08c157651b3 - flattened_ast: b57bc996b9f1a8aebc9550465253ae432b3e377e7fc8a16616a22c066f8570d0 - destructured_ast: c24a0757960e47234946bbf5fbfda352755491edcdaa9b05ea50b34527af6521 - inlined_ast: c24a0757960e47234946bbf5fbfda352755491edcdaa9b05ea50b34527af6521 - dce_ast: c24a0757960e47234946bbf5fbfda352755491edcdaa9b05ea50b34527af6521 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 89df494319d101ed629de0b7c416961a28c0ecdf25086b54bf84e571d10829a2 + unrolled_ast: 89df494319d101ed629de0b7c416961a28c0ecdf25086b54bf84e571d10829a2 + ssa_ast: 96858aaa8f929c3409dcafa2f65487f135d85b87dd85bb3a20fa7b1b48f85846 + flattened_ast: e1844083444642fd717aad715324ba40fc0426aa84247c31d84df25745c52e11 + destructured_ast: d862170ae55b64d5c891df79dd871ecc257b879b3b675715ba6bfe9643980ea0 + inlined_ast: d862170ae55b64d5c891df79dd871ecc257b879b3b675715ba6bfe9643980ea0 + dce_ast: d862170ae55b64d5c891df79dd871ecc257b879b3b675715ba6bfe9643980ea0 bytecode: a0056ca7a6a670a9bb0bc979e224136219b6a336c43d3ecd624c218cba49ba22 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/console_assert.out b/tests/expectations/compiler/integers/i16/console_assert.out index 20142a3f30..4983825acb 100644 --- a/tests/expectations/compiler/integers/i16/console_assert.out +++ b/tests/expectations/compiler/integers/i16/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d65a2abb00b7828161c6739ef6ca0db03cbd3d03a4adaf57e975e08ac38a785 - type_checked_symbol_table: da9c09fa982c6eb41410ff3b463714a45fe653853e516e8b762967dae6f6301f - unrolled_symbol_table: da9c09fa982c6eb41410ff3b463714a45fe653853e516e8b762967dae6f6301f - initial_ast: c6915dd5f52578cdb08f6e0f728a475f86a6b9cc3652f5e328fb01e82bbb666e - unrolled_ast: c6915dd5f52578cdb08f6e0f728a475f86a6b9cc3652f5e328fb01e82bbb666e - ssa_ast: c4f9ead9f1bd21b7e313a146ce0694d704dce1c1658bcc4df04424e143e8eabc - flattened_ast: 14de0ed76b15b01fc10ae7b8270dc029979f485e2b965bcd4fbfe47ae3e1f908 - destructured_ast: fabf5a631ace4c50c4a221faf8aa3b08b192be8ab276abb2772df57270582922 - inlined_ast: fabf5a631ace4c50c4a221faf8aa3b08b192be8ab276abb2772df57270582922 - dce_ast: fabf5a631ace4c50c4a221faf8aa3b08b192be8ab276abb2772df57270582922 + - initial_symbol_table: 87026c8f60d2ae148fca60e481525a7a7e4953d8773c22b4dbf55e55ed5cf67b + type_checked_symbol_table: 7faae9a9330816f60f0a5c9f456f1b0e34285fa72b7c1d82cb0d071f15a93748 + unrolled_symbol_table: 7faae9a9330816f60f0a5c9f456f1b0e34285fa72b7c1d82cb0d071f15a93748 + initial_ast: 32cf436574aefa3afa763fa1f06f6d7592cda5d638fd05d6b2ce865d0250a7f3 + unrolled_ast: 32cf436574aefa3afa763fa1f06f6d7592cda5d638fd05d6b2ce865d0250a7f3 + ssa_ast: 368d5a6acee23d6f290faf4c9658f8b8cdca0ce930095aec1c1a30ebab937adb + flattened_ast: 21a0ce89ed00ad3e6b066a6d25c074ad1cc1047d5cdb2b8c9b775a43fc696f3e + destructured_ast: b897c4acf9dd8e415e9c15cfd4c88bca6c4e4ec38914611ffdcad6a288f2c3ab + inlined_ast: b897c4acf9dd8e415e9c15cfd4c88bca6c4e4ec38914611ffdcad6a288f2c3ab + dce_ast: b897c4acf9dd8e415e9c15cfd4c88bca6c4e4ec38914611ffdcad6a288f2c3ab bytecode: ac2d2f57bf49761437884caa2b7f46c8c33df05175d3cba3ace16cb068374f18 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/div.out b/tests/expectations/compiler/integers/i16/div.out index 7f8e0d9f86..6ee4b8831d 100644 --- a/tests/expectations/compiler/integers/i16/div.out +++ b/tests/expectations/compiler/integers/i16/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: a3ff57bc03c1af1213e218fac4be39f09a6306826dd2b77fbc29b4dd4871e4fa - unrolled_ast: a3ff57bc03c1af1213e218fac4be39f09a6306826dd2b77fbc29b4dd4871e4fa - ssa_ast: 395fb4036af005fa744b33fc2e07fdb61152f1afe74e512d52bfddb64d576422 - flattened_ast: e17b407c1616ad39c40dbe6ae85f6dc4994205a84a713ac65d1c3ac7c2afa0c1 - destructured_ast: a3868473d70387ab82ea5144ca62395b8fe2c15123064a284cfbce4ad991bbe6 - inlined_ast: a3868473d70387ab82ea5144ca62395b8fe2c15123064a284cfbce4ad991bbe6 - dce_ast: a3868473d70387ab82ea5144ca62395b8fe2c15123064a284cfbce4ad991bbe6 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: de2773adff58d9aae83869980b7e2984362e0612f8ce454fffce763f39b125ea + unrolled_ast: de2773adff58d9aae83869980b7e2984362e0612f8ce454fffce763f39b125ea + ssa_ast: 726ed0da9ace03a933f29a0b4b1c36878f8c6ec2e9fee2d1ce816831a6235199 + flattened_ast: 80c89f99546bc9f353f5ba0aa6c7f0e06a9c8e2468bcf19ff18b26e2b7184680 + destructured_ast: b85e6a2c692399b9be65dcdde192a507baaec4df6aff75679ffdfd4087bc5cf0 + inlined_ast: b85e6a2c692399b9be65dcdde192a507baaec4df6aff75679ffdfd4087bc5cf0 + dce_ast: b85e6a2c692399b9be65dcdde192a507baaec4df6aff75679ffdfd4087bc5cf0 bytecode: 0d753f8ac24fd6daf4150b9ab5d1469e61c65d75c6eddcc8a5dd859e8084fb2f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/eq.out b/tests/expectations/compiler/integers/i16/eq.out index a78834a8db..04b3ba8eae 100644 --- a/tests/expectations/compiler/integers/i16/eq.out +++ b/tests/expectations/compiler/integers/i16/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99dbe3e2dbac9ca70ae79a045cb21a9b8f1760c3eab3c972dfae7cc68cc0d99c - type_checked_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - unrolled_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - initial_ast: 7b6f45d04aa60a5242bf3a68eb2d93f34bc8d93d1755301d9596fc46d5bea89e - unrolled_ast: 7b6f45d04aa60a5242bf3a68eb2d93f34bc8d93d1755301d9596fc46d5bea89e - ssa_ast: da1a9579865cd38c6da4eb37bdaaeb33bdd2fa27706cef89582283efe310ec35 - flattened_ast: b8686599f86abfc4d88cc0e8a2d2423f253e6d1145b041f9bf6301c0a475887d - destructured_ast: c6067da1254c2236220ee3f094dac1116acc21aced105c374b3c0bfa72f53bf6 - inlined_ast: c6067da1254c2236220ee3f094dac1116acc21aced105c374b3c0bfa72f53bf6 - dce_ast: c6067da1254c2236220ee3f094dac1116acc21aced105c374b3c0bfa72f53bf6 + - initial_symbol_table: e7b21f40b9654580d8754120954678fae12ece205e429dbb7e251afea82cc6d0 + type_checked_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + unrolled_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + initial_ast: 3f7fc2cb2571bcae5a00c807e183ee8fd7b32d91ca8d77c93f2ec69e869c8d2d + unrolled_ast: 3f7fc2cb2571bcae5a00c807e183ee8fd7b32d91ca8d77c93f2ec69e869c8d2d + ssa_ast: 22de2df1c771dfd2e135046ee010e017c774a35bc8f90f35c0ada3c17466275e + flattened_ast: 3049ba0393b2ad818c08336899ae039298d4a2cc11a7e7961515009fa7ec174f + destructured_ast: 909a4380991e90f6d16383fc9f8646526cdafb25221381407ad43b23c376971a + inlined_ast: 909a4380991e90f6d16383fc9f8646526cdafb25221381407ad43b23c376971a + dce_ast: 909a4380991e90f6d16383fc9f8646526cdafb25221381407ad43b23c376971a bytecode: 898a6a5cc452219a2c31f1cc7f0c73c6eea23a72d4d331e013cfb866167467e2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/ge.out b/tests/expectations/compiler/integers/i16/ge.out index 6e291ec41f..625e71e5e9 100644 --- a/tests/expectations/compiler/integers/i16/ge.out +++ b/tests/expectations/compiler/integers/i16/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99dbe3e2dbac9ca70ae79a045cb21a9b8f1760c3eab3c972dfae7cc68cc0d99c - type_checked_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - unrolled_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - initial_ast: 0bf1ec7621ec96da15bf41331b10455d6c7ea5de3748ed0ef0f8f0d71b736b6a - unrolled_ast: 0bf1ec7621ec96da15bf41331b10455d6c7ea5de3748ed0ef0f8f0d71b736b6a - ssa_ast: 4038f69fa82757752eb29b619cea50947850103cc4ef272acc9d2fad14ecdcac - flattened_ast: 2e19dd891b8bbc42783440e8b376179218733a15855b0f59b559c5d905188117 - destructured_ast: 95209d2f97b5e2d8e6b83a9589fab904d6ea6f4f41f021eceff34b9d0c1af8ac - inlined_ast: 95209d2f97b5e2d8e6b83a9589fab904d6ea6f4f41f021eceff34b9d0c1af8ac - dce_ast: 95209d2f97b5e2d8e6b83a9589fab904d6ea6f4f41f021eceff34b9d0c1af8ac + - initial_symbol_table: e7b21f40b9654580d8754120954678fae12ece205e429dbb7e251afea82cc6d0 + type_checked_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + unrolled_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + initial_ast: dc74e52db306cfe7dc131d4342bad6f40f72a73d08de200d3651365e2d045fc9 + unrolled_ast: dc74e52db306cfe7dc131d4342bad6f40f72a73d08de200d3651365e2d045fc9 + ssa_ast: bb010e94f027e2f753d531a72f32509c5c1cca2c21c6c0d7992731101e2cfbf7 + flattened_ast: 23144d06fcf80cf430de47b1d9ab9119d22d8ba2cfacf2e558eb904a2cebcf08 + destructured_ast: 32f8fa7c046385dd52bc84c2b7ccdb11bb69935cdabea2dc3ec8df08a08e05a8 + inlined_ast: 32f8fa7c046385dd52bc84c2b7ccdb11bb69935cdabea2dc3ec8df08a08e05a8 + dce_ast: 32f8fa7c046385dd52bc84c2b7ccdb11bb69935cdabea2dc3ec8df08a08e05a8 bytecode: e35d3733d6b9cdae2cad91fa9100d057efcbdf45f16994f11a75319486a81e64 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/gt.out b/tests/expectations/compiler/integers/i16/gt.out index f532e26e00..2d55854efc 100644 --- a/tests/expectations/compiler/integers/i16/gt.out +++ b/tests/expectations/compiler/integers/i16/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99dbe3e2dbac9ca70ae79a045cb21a9b8f1760c3eab3c972dfae7cc68cc0d99c - type_checked_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - unrolled_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - initial_ast: 0f6e05e3b3533d9c600973a6734710895954f9fa2dd829ab77be056beace0311 - unrolled_ast: 0f6e05e3b3533d9c600973a6734710895954f9fa2dd829ab77be056beace0311 - ssa_ast: 81a7c8be72e9061592dd16f5b16aa1fb78298e198f07bfc2c74a0f9eba388c59 - flattened_ast: 5b817cf6b693a206ff60f2fa5c97d15addcf65a8445906c5012cb3379dbadbde - destructured_ast: 7be0f8b1b230ede98dcce718665cc022eaf4804fcfc5d9f82b1fc225c37cbf7c - inlined_ast: 7be0f8b1b230ede98dcce718665cc022eaf4804fcfc5d9f82b1fc225c37cbf7c - dce_ast: 7be0f8b1b230ede98dcce718665cc022eaf4804fcfc5d9f82b1fc225c37cbf7c + - initial_symbol_table: e7b21f40b9654580d8754120954678fae12ece205e429dbb7e251afea82cc6d0 + type_checked_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + unrolled_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + initial_ast: d69ef53efb63c418bab4f1108a7393ddde3a3538aacb12fcbd885f3ce4e791fb + unrolled_ast: d69ef53efb63c418bab4f1108a7393ddde3a3538aacb12fcbd885f3ce4e791fb + ssa_ast: 5bba4f39177e0541231144db83ec28380cc10ddbc97d3f2af5a09d1dc18e46ee + flattened_ast: 1f9106f1eeb54176a25763af35d994fc21a7711db3d193c893290c10f45ca435 + destructured_ast: c3395f93858bcaeb0e5eba597aad0c6579c88616bf8626143e75ea99d85c9b49 + inlined_ast: c3395f93858bcaeb0e5eba597aad0c6579c88616bf8626143e75ea99d85c9b49 + dce_ast: c3395f93858bcaeb0e5eba597aad0c6579c88616bf8626143e75ea99d85c9b49 bytecode: 8195766fd4b565e30f6f4e088c57977e5a558d68847e0a61fe2b8de79bd2590d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/le.out b/tests/expectations/compiler/integers/i16/le.out index 75f481813d..acd7fbf8fb 100644 --- a/tests/expectations/compiler/integers/i16/le.out +++ b/tests/expectations/compiler/integers/i16/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99dbe3e2dbac9ca70ae79a045cb21a9b8f1760c3eab3c972dfae7cc68cc0d99c - type_checked_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - unrolled_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - initial_ast: 71588b61e091656a859a690d675483a39e2ed4ff6600d4d8106530ee42a96fee - unrolled_ast: 71588b61e091656a859a690d675483a39e2ed4ff6600d4d8106530ee42a96fee - ssa_ast: 9a64f2b5a756a5f4fb100457cd1bf2ee212ca557e9847241ca3215269da59e47 - flattened_ast: f80efc3c6fe993586aa8b58a17624c84bdab01dad7ea16861dd2acc74a647883 - destructured_ast: e759b31b4e2293e1fb076044fb192fc2d9ee6e92c348754e22a22055a7c9914d - inlined_ast: e759b31b4e2293e1fb076044fb192fc2d9ee6e92c348754e22a22055a7c9914d - dce_ast: e759b31b4e2293e1fb076044fb192fc2d9ee6e92c348754e22a22055a7c9914d + - initial_symbol_table: e7b21f40b9654580d8754120954678fae12ece205e429dbb7e251afea82cc6d0 + type_checked_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + unrolled_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + initial_ast: 5d6fa29b285d7e465605e73466aee30c72dc4da54e406e0970906a6a3c91f546 + unrolled_ast: 5d6fa29b285d7e465605e73466aee30c72dc4da54e406e0970906a6a3c91f546 + ssa_ast: cf9cebceaa75b5ad559138d777d961dc5fb73fdd1c4062bc65874472be5438bb + flattened_ast: 932961363c210a74f56ecacb2b168395eed59e35a6b49a8e899ec6fcd5b3fcc1 + destructured_ast: 14f9c057e8e380daa3c8719f4914e8065bb906f68e0d2f75a988db7414d67380 + inlined_ast: 14f9c057e8e380daa3c8719f4914e8065bb906f68e0d2f75a988db7414d67380 + dce_ast: 14f9c057e8e380daa3c8719f4914e8065bb906f68e0d2f75a988db7414d67380 bytecode: 98dc59dd7939556e96fd2a7f222612401d18c45c3d38845f2c68d273b1d848c3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/lt.out b/tests/expectations/compiler/integers/i16/lt.out index 75d7bde54d..0ec4aea212 100644 --- a/tests/expectations/compiler/integers/i16/lt.out +++ b/tests/expectations/compiler/integers/i16/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99dbe3e2dbac9ca70ae79a045cb21a9b8f1760c3eab3c972dfae7cc68cc0d99c - type_checked_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - unrolled_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - initial_ast: ebc5d20735920d7e1f81dfd046bfeb94a89dbab58e0ed3d356351fe2a936d2f0 - unrolled_ast: ebc5d20735920d7e1f81dfd046bfeb94a89dbab58e0ed3d356351fe2a936d2f0 - ssa_ast: 4ab5f389a1b4448c13b07ea81b54dc42ceba713abf277db4c10655878a8f1c10 - flattened_ast: 3072878684079f5c2c746b28ec70ce67cef76d18e2f14b239ddbe3c1b02b3aaf - destructured_ast: 77048a020764981fdf82095a65f4bed2097eb80b7bb785c31ce16a23b21965a7 - inlined_ast: 77048a020764981fdf82095a65f4bed2097eb80b7bb785c31ce16a23b21965a7 - dce_ast: 77048a020764981fdf82095a65f4bed2097eb80b7bb785c31ce16a23b21965a7 + - initial_symbol_table: e7b21f40b9654580d8754120954678fae12ece205e429dbb7e251afea82cc6d0 + type_checked_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + unrolled_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + initial_ast: 5018df0be73e74dbe1c2ff146c6fdb8a2d27ff69986c7265a9425ec4b39fa337 + unrolled_ast: 5018df0be73e74dbe1c2ff146c6fdb8a2d27ff69986c7265a9425ec4b39fa337 + ssa_ast: 683f6091887c03d5142ac76a99a3287a9e3ad58e7e14782ba211d8fffcb2e9c1 + flattened_ast: 4c2af6d6ca29bd95357d370abdb23b96b2d0eb66687fadf47cea8274ff1695c8 + destructured_ast: e545738cab56a3b10f9f4dc4b1fe15478b0dd86f160a06dc1757bb62bc45c2a7 + inlined_ast: e545738cab56a3b10f9f4dc4b1fe15478b0dd86f160a06dc1757bb62bc45c2a7 + dce_ast: e545738cab56a3b10f9f4dc4b1fe15478b0dd86f160a06dc1757bb62bc45c2a7 bytecode: 1ce9578b21f22dfd7342da3a2ea28ed86cb30b94475fc02329dab93fe121eaa3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/max.out b/tests/expectations/compiler/integers/i16/max.out index b768622d45..a0699d4ef0 100644 --- a/tests/expectations/compiler/integers/i16/max.out +++ b/tests/expectations/compiler/integers/i16/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3f00e5f1007865c28afbc03bc240a0299cb9e714d7acccb6fa1b263b50eb8735 - type_checked_symbol_table: 3da335e7a4c13eab40f6d45487b032641c724fea71ec5e5a454de6da7e54da38 - unrolled_symbol_table: 3da335e7a4c13eab40f6d45487b032641c724fea71ec5e5a454de6da7e54da38 - initial_ast: 40a6660ee8bde24982ed7938343e22babc06d5c7ba3572a886f4cc141b481698 - unrolled_ast: 40a6660ee8bde24982ed7938343e22babc06d5c7ba3572a886f4cc141b481698 - ssa_ast: 51a643fd85e36674bbd4540bf66988f5a64532ac2446f23591ad51ba8f8b75c2 - flattened_ast: 74ccf97ef6f05828bb1cf891916075c78ca12bae9e795a7c5041cd0c1ebd5eb7 - destructured_ast: bc729a0cdde258e2a61b4c0620de84e5bc82872437bf351685dffb1bb2067f4c - inlined_ast: bc729a0cdde258e2a61b4c0620de84e5bc82872437bf351685dffb1bb2067f4c - dce_ast: bc729a0cdde258e2a61b4c0620de84e5bc82872437bf351685dffb1bb2067f4c + - initial_symbol_table: 21be806b47489e1f660127cd776d3b988c1ff28582acae6db51ff2571d24e6ee + type_checked_symbol_table: 09fbcb482dd4cb8653577654e49fb16f37431397d3b4edde346528b52f1f7842 + unrolled_symbol_table: 09fbcb482dd4cb8653577654e49fb16f37431397d3b4edde346528b52f1f7842 + initial_ast: d351461cac06b6238a0e646f7b22f12606aa8915ce1ddf4fdc998cc657fb5fde + unrolled_ast: d351461cac06b6238a0e646f7b22f12606aa8915ce1ddf4fdc998cc657fb5fde + ssa_ast: b0c879e3dcb80f905f762e006a97e48fafc7daa54b419d2b32476e75e6e4363a + flattened_ast: 091fa75e1c5315f631694aae8aac9cbe6aa5361a52cb3f99492e22fa66279715 + destructured_ast: e97066fc2c6787924228f6edbda2f412e41ddba7115fd21ff103cb067da1bfac + inlined_ast: e97066fc2c6787924228f6edbda2f412e41ddba7115fd21ff103cb067da1bfac + dce_ast: e97066fc2c6787924228f6edbda2f412e41ddba7115fd21ff103cb067da1bfac bytecode: 45295d2179ab802afcc86d7d5b8c0b17afcdab726c8cca491370f77918e64a2b errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/min.out b/tests/expectations/compiler/integers/i16/min.out index 7d7fbd8368..9acad6f1da 100644 --- a/tests/expectations/compiler/integers/i16/min.out +++ b/tests/expectations/compiler/integers/i16/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3f00e5f1007865c28afbc03bc240a0299cb9e714d7acccb6fa1b263b50eb8735 - type_checked_symbol_table: 3da335e7a4c13eab40f6d45487b032641c724fea71ec5e5a454de6da7e54da38 - unrolled_symbol_table: 3da335e7a4c13eab40f6d45487b032641c724fea71ec5e5a454de6da7e54da38 - initial_ast: a1c28e1b4e225cc8465ed7c726ffbf14044db0b372801594de7b844ac7506d33 - unrolled_ast: a1c28e1b4e225cc8465ed7c726ffbf14044db0b372801594de7b844ac7506d33 - ssa_ast: e6e61b9ff66a14cb0ff66e715f70471731b09f75345fc483d4e164d1341890fe - flattened_ast: ce7603cd98d0140cb6ddc3071aa8307db9fb194bcabfb513a73216036baab6a8 - destructured_ast: 315c5c340aa5bdc2909b6ebb584ca9b2cbdeb293f91ab7e19eb72069fbbcfd59 - inlined_ast: 315c5c340aa5bdc2909b6ebb584ca9b2cbdeb293f91ab7e19eb72069fbbcfd59 - dce_ast: 315c5c340aa5bdc2909b6ebb584ca9b2cbdeb293f91ab7e19eb72069fbbcfd59 + - initial_symbol_table: 21be806b47489e1f660127cd776d3b988c1ff28582acae6db51ff2571d24e6ee + type_checked_symbol_table: 09fbcb482dd4cb8653577654e49fb16f37431397d3b4edde346528b52f1f7842 + unrolled_symbol_table: 09fbcb482dd4cb8653577654e49fb16f37431397d3b4edde346528b52f1f7842 + initial_ast: 4d7fd1f6956b619023703c5ba09b344e56aca3c07f0bd651de551a51f89191a9 + unrolled_ast: 4d7fd1f6956b619023703c5ba09b344e56aca3c07f0bd651de551a51f89191a9 + ssa_ast: 624d78cfbe96d184ae960ff2badce4b261c9a2a96b23b0199336c707661a977f + flattened_ast: db424f228d236e0576c90c806e05f4637eba6a98f701afc96ebcd48cb3b15832 + destructured_ast: 98ee05feec94d773f3cf3c9d063c5f7340b8ffe8d6052a2d81420508b0a57666 + inlined_ast: 98ee05feec94d773f3cf3c9d063c5f7340b8ffe8d6052a2d81420508b0a57666 + dce_ast: 98ee05feec94d773f3cf3c9d063c5f7340b8ffe8d6052a2d81420508b0a57666 bytecode: b4ca9ba0607d70a519a65b1415ffb48639cda59835abf8a7a892710f309b0abc errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/min_fail.out b/tests/expectations/compiler/integers/i16/min_fail.out index 07d862269f..be55dc14a6 100644 --- a/tests/expectations/compiler/integers/i16/min_fail.out +++ b/tests/expectations/compiler/integers/i16/min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3f5c26a8234a5dea1b9960ff60978c2f1bf478c6f3d028ed2086972a09b1883d - type_checked_symbol_table: c6c63c230852496724cfe569b8feed1d2dfe1335b359e1828783a62ee5578ac6 - unrolled_symbol_table: c6c63c230852496724cfe569b8feed1d2dfe1335b359e1828783a62ee5578ac6 - initial_ast: e4feb9031cbcdc60d148494d4b9fb66717b019f923cbc359f9dc68352f98e89b - unrolled_ast: e4feb9031cbcdc60d148494d4b9fb66717b019f923cbc359f9dc68352f98e89b - ssa_ast: da21f2e766350419aa4e1b8aa8cbe9748213121cb85730a9807302925a2b471f - flattened_ast: 064101be0407bc2ed46758654d695d1cec2823a1f3865400210c8d7de2348df5 - destructured_ast: e70eaa71728d48f9d2561093dbdca7c5ea23f05f6fb2c2e5e37fba9795916015 - inlined_ast: e70eaa71728d48f9d2561093dbdca7c5ea23f05f6fb2c2e5e37fba9795916015 - dce_ast: e70eaa71728d48f9d2561093dbdca7c5ea23f05f6fb2c2e5e37fba9795916015 + - initial_symbol_table: daa8932f6a6ff683d644025b6011f01afefef4a32bab71e5b3cf2a20b5b406c0 + type_checked_symbol_table: bd477229966d9a5accd0aaad334370650559d8b8dd104ba9010789e8ff6b71f6 + unrolled_symbol_table: bd477229966d9a5accd0aaad334370650559d8b8dd104ba9010789e8ff6b71f6 + initial_ast: dd5f2d87082ac8ff97ec9b7481039a646e5bcf67eb66aa03dbf2dce1a2ec5ea6 + unrolled_ast: dd5f2d87082ac8ff97ec9b7481039a646e5bcf67eb66aa03dbf2dce1a2ec5ea6 + ssa_ast: 6522d6fcd45c9c1473fdd280636e99c09fb060598c0dceec9fb30733bc69b2a3 + flattened_ast: bcbada2c72cffd30bad9885885ee4d79c1909fdb32c17867885928b3eeb05a7b + destructured_ast: c8eb69ba33077fbd42d9e3159784e78f379b66fa70168edf4dc231e93faee061 + inlined_ast: c8eb69ba33077fbd42d9e3159784e78f379b66fa70168edf4dc231e93faee061 + dce_ast: c8eb69ba33077fbd42d9e3159784e78f379b66fa70168edf4dc231e93faee061 bytecode: 5d5bc4c63f62ab0bf4b07e3791e046417ea909f69375729be199bbdba267e742 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/mul.out b/tests/expectations/compiler/integers/i16/mul.out index 244fe3e63d..f44fb7f4aa 100644 --- a/tests/expectations/compiler/integers/i16/mul.out +++ b/tests/expectations/compiler/integers/i16/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 610b0b716f0b337142a46d46278b9b8699957c3e0cb6e9811ea6e06d5f9f3e89 - unrolled_ast: 610b0b716f0b337142a46d46278b9b8699957c3e0cb6e9811ea6e06d5f9f3e89 - ssa_ast: 883f07c8479e2eef6a720e02f7171136a6f33a589ce3d298437eb243083e4c7b - flattened_ast: b9033a897e5c889c3203ce69029436a007830751684c88ee68f2e69325745d36 - destructured_ast: bdbe38ef7b1569e76157feda84e1695334ffb39cdfc30189419d06d6da8d2702 - inlined_ast: bdbe38ef7b1569e76157feda84e1695334ffb39cdfc30189419d06d6da8d2702 - dce_ast: bdbe38ef7b1569e76157feda84e1695334ffb39cdfc30189419d06d6da8d2702 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 8872106e0c41454a04eb6472b3065ed5aa8c21f1a4e04b53e9ee584c9a751fda + unrolled_ast: 8872106e0c41454a04eb6472b3065ed5aa8c21f1a4e04b53e9ee584c9a751fda + ssa_ast: 92e19838e5afe4250d684abd92aa22a5812d359bde4c2554608ac930214df63d + flattened_ast: cc9ee2fc1a7952280ad3f4b5b0b7d9990ef89a499d2bc9880ebf7ee2d1876d11 + destructured_ast: 5b02688723c3dbc2b2c2851c7b8ac9d153d88be2c3655cba53c218374a9aaf5f + inlined_ast: 5b02688723c3dbc2b2c2851c7b8ac9d153d88be2c3655cba53c218374a9aaf5f + dce_ast: 5b02688723c3dbc2b2c2851c7b8ac9d153d88be2c3655cba53c218374a9aaf5f bytecode: dfd9acb20823234cdd87513c5b6ee195f0e5b925b52e035009dcb7ff22e6900a errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/ne.out b/tests/expectations/compiler/integers/i16/ne.out index e59b538ca5..06b1c67603 100644 --- a/tests/expectations/compiler/integers/i16/ne.out +++ b/tests/expectations/compiler/integers/i16/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99dbe3e2dbac9ca70ae79a045cb21a9b8f1760c3eab3c972dfae7cc68cc0d99c - type_checked_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - unrolled_symbol_table: 8511be2fe8496e670693e0be9d32494ddca6df83ec9696f1f6dbb56c82f2611f - initial_ast: e59d5767584e59cc80c211502d1988e98903fd73fc6dbc0615a65a3e90d626f8 - unrolled_ast: e59d5767584e59cc80c211502d1988e98903fd73fc6dbc0615a65a3e90d626f8 - ssa_ast: ed50455eeaebc6991842a6140ecd4ea43a3179da073f608fcfdc05c2c2438fa8 - flattened_ast: de991e83f05fb8385e5b443298d13e6d707131f4b243f8fa82db878983271c44 - destructured_ast: ef984dda91e9ad324644f057cc8462ebc4b29ec7919b22595cb6b5179238633d - inlined_ast: ef984dda91e9ad324644f057cc8462ebc4b29ec7919b22595cb6b5179238633d - dce_ast: ef984dda91e9ad324644f057cc8462ebc4b29ec7919b22595cb6b5179238633d + - initial_symbol_table: e7b21f40b9654580d8754120954678fae12ece205e429dbb7e251afea82cc6d0 + type_checked_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + unrolled_symbol_table: 7042b9b86f92bd849c092df43c30c5def207c6de105436986eb6ca61ef6a84f1 + initial_ast: 04e3b92d2e93b47920c700b5933fe26ddde787f803c6d64493f1b19847d84f89 + unrolled_ast: 04e3b92d2e93b47920c700b5933fe26ddde787f803c6d64493f1b19847d84f89 + ssa_ast: 06956cb69cb75230686c60b49c66d00eaee806c81d4659ce45a7f49eb7f6163c + flattened_ast: a7ebfe653b752ea52674b9b2a2113f5d94b4cdc9060afd92b577289de72167b9 + destructured_ast: 1fdc2c043661f775b389d343df60da471b0efe178841679fc3310a189797939b + inlined_ast: 1fdc2c043661f775b389d343df60da471b0efe178841679fc3310a189797939b + dce_ast: 1fdc2c043661f775b389d343df60da471b0efe178841679fc3310a189797939b bytecode: 955b3e3d4d80a6816de6d59563cc6f31f94dbff43853facba45936dfdc2012ca errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/negate.out b/tests/expectations/compiler/integers/i16/negate.out index 37e1b7eb32..88e53bc4ae 100644 --- a/tests/expectations/compiler/integers/i16/negate.out +++ b/tests/expectations/compiler/integers/i16/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d65a2abb00b7828161c6739ef6ca0db03cbd3d03a4adaf57e975e08ac38a785 - type_checked_symbol_table: 50a43eb912e2847b7c1f6fce51fdf79138a0c94ec730aeba070411f650c850b3 - unrolled_symbol_table: 50a43eb912e2847b7c1f6fce51fdf79138a0c94ec730aeba070411f650c850b3 - initial_ast: fc89ebe9c70ba3ecf6bd342823a83f85e41f2c21189e3850472a0d20dafa58e7 - unrolled_ast: fc89ebe9c70ba3ecf6bd342823a83f85e41f2c21189e3850472a0d20dafa58e7 - ssa_ast: 095f5bdeb85af39368fd96aa7feda88196e7d31d26fd8c08cb2546218a875d81 - flattened_ast: 9d2820f4def88add34871f7a8c8a4366378d723e191b5c91125aa914f56befef - destructured_ast: ec5144127d9a8ecc7ae556e0070dd56a2f3c9c984e9a89e8590b7114a6528cec - inlined_ast: ec5144127d9a8ecc7ae556e0070dd56a2f3c9c984e9a89e8590b7114a6528cec - dce_ast: ec5144127d9a8ecc7ae556e0070dd56a2f3c9c984e9a89e8590b7114a6528cec + - initial_symbol_table: 87026c8f60d2ae148fca60e481525a7a7e4953d8773c22b4dbf55e55ed5cf67b + type_checked_symbol_table: f3047c0dacd5eb802a2884bdcd04577d2a545d03df579f5da7553d25714744bd + unrolled_symbol_table: f3047c0dacd5eb802a2884bdcd04577d2a545d03df579f5da7553d25714744bd + initial_ast: 18fe6f0ff7feff829fb80a461207499f923cf55b64962600c670c23475799728 + unrolled_ast: 18fe6f0ff7feff829fb80a461207499f923cf55b64962600c670c23475799728 + ssa_ast: d868ed5482f1bb03b4585119636e063775d6037466b3267cb88d1553099f4edf + flattened_ast: 673332f25160604dad5c6c08153863e4885f1edcb55c8b9f14157fb4df279bab + destructured_ast: d649ff607d752c6eb9946fbe2b3d7402ef75e4b81e241c18dd5f68028212585f + inlined_ast: d649ff607d752c6eb9946fbe2b3d7402ef75e4b81e241c18dd5f68028212585f + dce_ast: d649ff607d752c6eb9946fbe2b3d7402ef75e4b81e241c18dd5f68028212585f bytecode: 4c2a08bbf8cfdd45438e33b981a9f3d77b1d44225227714b3189e3e641e428e9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/negate_min_fail.out b/tests/expectations/compiler/integers/i16/negate_min_fail.out index a78a3c7463..79290f7abd 100644 --- a/tests/expectations/compiler/integers/i16/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i16/negate_min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3f5c26a8234a5dea1b9960ff60978c2f1bf478c6f3d028ed2086972a09b1883d - type_checked_symbol_table: c6c63c230852496724cfe569b8feed1d2dfe1335b359e1828783a62ee5578ac6 - unrolled_symbol_table: c6c63c230852496724cfe569b8feed1d2dfe1335b359e1828783a62ee5578ac6 - initial_ast: 54c738c88204726455b5a9725ffa9191a17580eb66111aa32c8f7d1914f95cca - unrolled_ast: 54c738c88204726455b5a9725ffa9191a17580eb66111aa32c8f7d1914f95cca - ssa_ast: 35f002826e4b0c82ba791f6e677a2d627ca1b88c7560879b4a6dc5e0e4857362 - flattened_ast: adce117b0cb383ce6caa6020e7a71fe95bfbc5e738df5f563339f4fbd9e55872 - destructured_ast: 4f54edb9f10c72e7fd50c6c8bd1a61aeab76bae079e1b89610aeb5b216d188d9 - inlined_ast: 4f54edb9f10c72e7fd50c6c8bd1a61aeab76bae079e1b89610aeb5b216d188d9 - dce_ast: 4f54edb9f10c72e7fd50c6c8bd1a61aeab76bae079e1b89610aeb5b216d188d9 + - initial_symbol_table: daa8932f6a6ff683d644025b6011f01afefef4a32bab71e5b3cf2a20b5b406c0 + type_checked_symbol_table: bd477229966d9a5accd0aaad334370650559d8b8dd104ba9010789e8ff6b71f6 + unrolled_symbol_table: bd477229966d9a5accd0aaad334370650559d8b8dd104ba9010789e8ff6b71f6 + initial_ast: c6be3cc663dff0d6e273dafb9948b6fed5c3d2e9cab2d7483a42c8fe833b11a7 + unrolled_ast: c6be3cc663dff0d6e273dafb9948b6fed5c3d2e9cab2d7483a42c8fe833b11a7 + ssa_ast: cfcef88a2a85ea95ee7e121346389111520c44225ffb4b691685f0e5e8960275 + flattened_ast: 14e02da64f40febd7a23f033b6921ae2264ef2c943370f7034f1dbcb60617598 + destructured_ast: 1fe52bada4bd509baf02ce9186c0ff7138b18c1135a54417d604686de8b44ba6 + inlined_ast: 1fe52bada4bd509baf02ce9186c0ff7138b18c1135a54417d604686de8b44ba6 + dce_ast: 1fe52bada4bd509baf02ce9186c0ff7138b18c1135a54417d604686de8b44ba6 bytecode: f1c720ffbffc836bb5dcc1bdf2b2e9cb95de97275e7798b6f8e508c9116d757c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/negate_zero.out b/tests/expectations/compiler/integers/i16/negate_zero.out index 1c61fe0215..eb2f7dc752 100644 --- a/tests/expectations/compiler/integers/i16/negate_zero.out +++ b/tests/expectations/compiler/integers/i16/negate_zero.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 76e788a703e0c8816f982801305178ae185e85fcf96310c3efec1cf284c3dfcb - unrolled_symbol_table: 76e788a703e0c8816f982801305178ae185e85fcf96310c3efec1cf284c3dfcb - initial_ast: a19a37db715c74c669c8ba97056e0e4780f7799e9c0ed3ab63010a0fafbc8251 - unrolled_ast: a19a37db715c74c669c8ba97056e0e4780f7799e9c0ed3ab63010a0fafbc8251 - ssa_ast: 8c4ee3ad2e1267e3b10c78c9c3fba595ab694a1455432baa5b931e3de1558602 - flattened_ast: c3f597338aea8f357d87e5a9d9b7533761854286714c907e32fc22038b7180c9 - destructured_ast: 8a6fbaa416c70a3218d6b2ac631297b3b7f51866cdef7c7d55ed89e9ba71421f - inlined_ast: 8a6fbaa416c70a3218d6b2ac631297b3b7f51866cdef7c7d55ed89e9ba71421f - dce_ast: 8a6fbaa416c70a3218d6b2ac631297b3b7f51866cdef7c7d55ed89e9ba71421f + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 0d7a0bdf79fccaee2ad0b30d2566e0f6728ef096138cb3c43fc728be6a81be10 + unrolled_symbol_table: 0d7a0bdf79fccaee2ad0b30d2566e0f6728ef096138cb3c43fc728be6a81be10 + initial_ast: e9861793c15091bd9f072548ef4b77e4614526b64a605cc604dd50bb9bb93d5b + unrolled_ast: e9861793c15091bd9f072548ef4b77e4614526b64a605cc604dd50bb9bb93d5b + ssa_ast: 9ae69a099a5a130e6ada2b6952b823cbb05ad689e8b0ce38580204152187ebdd + flattened_ast: a2158af67245121ca076e4697bc480b05936e438e16be8a9d318ea1a402a37ad + destructured_ast: d4876124a48acd7e908668e839f0f2c0d87ac6b25fbadfe50acfe7c6684716e9 + inlined_ast: d4876124a48acd7e908668e839f0f2c0d87ac6b25fbadfe50acfe7c6684716e9 + dce_ast: d4876124a48acd7e908668e839f0f2c0d87ac6b25fbadfe50acfe7c6684716e9 bytecode: 041ad04237619df46380596339019563fc1d330a7e3792a3d856e4b600e8501e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/operator_methods.out b/tests/expectations/compiler/integers/i16/operator_methods.out index 4217a1608c..2ebab06069 100644 --- a/tests/expectations/compiler/integers/i16/operator_methods.out +++ b/tests/expectations/compiler/integers/i16/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d65a2abb00b7828161c6739ef6ca0db03cbd3d03a4adaf57e975e08ac38a785 - type_checked_symbol_table: c524d09472695efbebd8470f03a94ccc01d48a7bd5a67d08ba26d7b55a0601c1 - unrolled_symbol_table: c524d09472695efbebd8470f03a94ccc01d48a7bd5a67d08ba26d7b55a0601c1 - initial_ast: 5e4bb8b82e757004a58ac0408c0431c4561f868c6014d3be144e11ad06759af3 - unrolled_ast: 5e4bb8b82e757004a58ac0408c0431c4561f868c6014d3be144e11ad06759af3 - ssa_ast: 04c009502ba8749787e2db36a25c2f1efea0c4b10adf646936bd20b2208289e5 - flattened_ast: 62dff79732a828d9764c10bf80dc58de81d29a0259b372ab86cfff9b937cee51 - destructured_ast: 43528dde312b7e819fd7fe66bf0eb82a522eaa36395cf5652ab149aa9182ac72 - inlined_ast: 43528dde312b7e819fd7fe66bf0eb82a522eaa36395cf5652ab149aa9182ac72 - dce_ast: 47b4b6cb53d8470b20a9260209fbbed4a5584e7f1de481a20523d7b405b97438 + - initial_symbol_table: 87026c8f60d2ae148fca60e481525a7a7e4953d8773c22b4dbf55e55ed5cf67b + type_checked_symbol_table: aa215b1de08623bc5cbaae034f9eb28bafb34f5a051aa4b261fa0fdbddaff4da + unrolled_symbol_table: aa215b1de08623bc5cbaae034f9eb28bafb34f5a051aa4b261fa0fdbddaff4da + initial_ast: 095abd56fe10ec9182491ccd1d442904354e4bd99e2aa79a47585db984012815 + unrolled_ast: 095abd56fe10ec9182491ccd1d442904354e4bd99e2aa79a47585db984012815 + ssa_ast: 40c2c09ca980f2ab53559ce1c788e45763bcc0d4584df07f381294dceb799e4a + flattened_ast: b05a124f6f4e29c3e95fdcf299978996c39cf1e911b757d60a74bccf4e4896ed + destructured_ast: 46b90a488008ba2faef16dc4e3d2780233086c087d43afc6bd616151bb6ebe8b + inlined_ast: 46b90a488008ba2faef16dc4e3d2780233086c087d43afc6bd616151bb6ebe8b + dce_ast: ab3ce7b0f8c60365ed2289409471152ba745775d518edca0a0fb9d08f3e16654 bytecode: 2ae0c269722de40ebea82115838ca6bc794e781954d9437afc1684c0f171847f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/or.out b/tests/expectations/compiler/integers/i16/or.out index f9d5ad147a..2c810d5314 100644 --- a/tests/expectations/compiler/integers/i16/or.out +++ b/tests/expectations/compiler/integers/i16/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 2acb89be78f2b7deb6cfdf1d620acf5b7dac35b47cae9be9b083162c9080cbd9 - unrolled_ast: 2acb89be78f2b7deb6cfdf1d620acf5b7dac35b47cae9be9b083162c9080cbd9 - ssa_ast: 29f6683fab3da29d233d3e1169e75759aae8c2eb02e2fe6feba4625163e18268 - flattened_ast: ad483d772845309e55a55ca7647ef477991136ea3408fb890abad4d82bd0d52a - destructured_ast: 94bd02573d136e207eb720c2f222b25255cbe136904002dcf475a38d87ea0acb - inlined_ast: 94bd02573d136e207eb720c2f222b25255cbe136904002dcf475a38d87ea0acb - dce_ast: 94bd02573d136e207eb720c2f222b25255cbe136904002dcf475a38d87ea0acb + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: d29cfa2ac9096eca4267f78d2660dfa47a5f827a0f2385c32e9ba74964f4e46d + unrolled_ast: d29cfa2ac9096eca4267f78d2660dfa47a5f827a0f2385c32e9ba74964f4e46d + ssa_ast: c8298a4387b1b5a3770267ae170962dc1d8a0536903bb288e0a45f256030c7d0 + flattened_ast: 6fcbc7082d9b19ebef092124fa3bef1db20835f7070ea67d0ef8af8b01bc0e3d + destructured_ast: 08cc460024261519aed687ddb5a4ca251d7087be5fc55b11546cf9204afd52c7 + inlined_ast: 08cc460024261519aed687ddb5a4ca251d7087be5fc55b11546cf9204afd52c7 + dce_ast: 08cc460024261519aed687ddb5a4ca251d7087be5fc55b11546cf9204afd52c7 bytecode: ce2896db5a90c1bfd62a00f9b8721cc2285e1ef077a8e225e2748bb33742564b errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/pow.out b/tests/expectations/compiler/integers/i16/pow.out index 10185a03de..0c26f7019e 100644 --- a/tests/expectations/compiler/integers/i16/pow.out +++ b/tests/expectations/compiler/integers/i16/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 4654710312952472b1f01ffbab95ef1921567bbdc9b5de2cefd9f03c5d19ea0d - unrolled_ast: 4654710312952472b1f01ffbab95ef1921567bbdc9b5de2cefd9f03c5d19ea0d - ssa_ast: e401bf07a8d3f6837489656170be4dc2b3a65ff24ccfae9d2599be65847b4f6a - flattened_ast: 60bd3e1dfd81c8028e90e0aecace4eb6ae33745036ba1a9d38deb410879be1ac - destructured_ast: 563fd7c917bf98d3b7c18a52207ac0e7edaa7fba676fbed23a509de8b8931087 - inlined_ast: 563fd7c917bf98d3b7c18a52207ac0e7edaa7fba676fbed23a509de8b8931087 - dce_ast: 563fd7c917bf98d3b7c18a52207ac0e7edaa7fba676fbed23a509de8b8931087 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 1b5ac0c384ada4a708bc5369bfa744c874d4798f44da4436c51742b3c477b0f0 + unrolled_ast: 1b5ac0c384ada4a708bc5369bfa744c874d4798f44da4436c51742b3c477b0f0 + ssa_ast: cd916fcdf76653bb41daa8d365a1f90db9a056a93b0970f1a902a8246292dfbe + flattened_ast: 32c4b19b7f17980ea37d8fb8f108bc01428612658e11f11f4d4c4e52b90e0f3f + destructured_ast: f9f2e8ad4660c16517319b5b024828c64c3c5b640607c38aac795058170170de + inlined_ast: f9f2e8ad4660c16517319b5b024828c64c3c5b640607c38aac795058170170de + dce_ast: f9f2e8ad4660c16517319b5b024828c64c3c5b640607c38aac795058170170de bytecode: 5566b622f6c5ea37b1b130db8b59ea5d69140dbe2aae45a1ada003d92482f7a9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/rem.out b/tests/expectations/compiler/integers/i16/rem.out index 313fa3bc0a..e4f2b24990 100644 --- a/tests/expectations/compiler/integers/i16/rem.out +++ b/tests/expectations/compiler/integers/i16/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 2e4b6a9302b609a00eff71b1571d582ddca71d0c7aa4d6b3c88d8e35f5abb6ed - unrolled_ast: 2e4b6a9302b609a00eff71b1571d582ddca71d0c7aa4d6b3c88d8e35f5abb6ed - ssa_ast: aae47c98aabfda4923197d2794444b61db6470cc4fe9950ef7b94dd60328dc14 - flattened_ast: 26299327ae79ce2bef0f791dce993ce879c83bbead8f47fed599f53806e09048 - destructured_ast: 11e67db713ba45022be7b3803371d089232df70e798d5f7c736040a88d9fd2d3 - inlined_ast: 11e67db713ba45022be7b3803371d089232df70e798d5f7c736040a88d9fd2d3 - dce_ast: 11e67db713ba45022be7b3803371d089232df70e798d5f7c736040a88d9fd2d3 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: fad717adc48e5802f34e7be3aed80cdea8410cd7aa118e08b744ddc9dc46d571 + unrolled_ast: fad717adc48e5802f34e7be3aed80cdea8410cd7aa118e08b744ddc9dc46d571 + ssa_ast: fe48cb1af0881138ae97b3ec5ffe24b44eb99468c395d85d275fc19e03d083b7 + flattened_ast: f31bfdaa15d719ad07691b92d53c92e751c7833b26425b4db6e3816de8b4064a + destructured_ast: b858b8b1c219b289059cd3428fc9ac9caa8d745790ee071c0de34a0ba485d7ca + inlined_ast: b858b8b1c219b289059cd3428fc9ac9caa8d745790ee071c0de34a0ba485d7ca + dce_ast: b858b8b1c219b289059cd3428fc9ac9caa8d745790ee071c0de34a0ba485d7ca bytecode: 9db0a74c24c209fa63e0d47919e9fa1a10cde21b15179098872b9c99f821cb16 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/shl.out b/tests/expectations/compiler/integers/i16/shl.out index 0a300fe043..872782798e 100644 --- a/tests/expectations/compiler/integers/i16/shl.out +++ b/tests/expectations/compiler/integers/i16/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 5742989becada2a159f1aef317e82987ae65bf127b85eed4c0a17d205e82f332 - unrolled_ast: 5742989becada2a159f1aef317e82987ae65bf127b85eed4c0a17d205e82f332 - ssa_ast: dd3c04cdc1867e1f4b51c2b65a3b6c73bc70700fd93eaa558eb814d218808623 - flattened_ast: 5c24eb343ac31273bf188a7f97a66f98d64f59be28525aa23cd77d05eb9adbbb - destructured_ast: 16fd9dc88df1db36443193cabe4e11887dcba1909c60c40e8243aaab7e6bb4e9 - inlined_ast: 16fd9dc88df1db36443193cabe4e11887dcba1909c60c40e8243aaab7e6bb4e9 - dce_ast: 16fd9dc88df1db36443193cabe4e11887dcba1909c60c40e8243aaab7e6bb4e9 + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 9df09d2470947010ff73d33f9b52a8a6d38856d7822490cc73472b96c5f6b946 + unrolled_ast: 9df09d2470947010ff73d33f9b52a8a6d38856d7822490cc73472b96c5f6b946 + ssa_ast: 22bdf29b54762d77ba825c9dd99d135b683f6fd4792bb0bcad7b18187dc8082b + flattened_ast: df889d210c9b15939b591113acb5d4b4ddf6914606c5dae8f10088557e437d78 + destructured_ast: c8673af91f9fb3790455518c81e853e8e14833576a3a8e3917e783f75881b12b + inlined_ast: c8673af91f9fb3790455518c81e853e8e14833576a3a8e3917e783f75881b12b + dce_ast: c8673af91f9fb3790455518c81e853e8e14833576a3a8e3917e783f75881b12b bytecode: 65af41a661155e3ce64ac1afced0c2ad5098a59a458f1ef3215f34f5a8e4247a errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/shr.out b/tests/expectations/compiler/integers/i16/shr.out index 4369f38d53..5a4254caf3 100644 --- a/tests/expectations/compiler/integers/i16/shr.out +++ b/tests/expectations/compiler/integers/i16/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: b0de32b5a981c520307ff7627dda689e57f3606d4000c1c00cfb023f42e44e48 - unrolled_ast: b0de32b5a981c520307ff7627dda689e57f3606d4000c1c00cfb023f42e44e48 - ssa_ast: 71004ddc0bae02fa5e6cbc6660e7458e682b5b057f6797d9bfdc00c5f54ff6fa - flattened_ast: 7a1f2ec837cf8b74e2aefdcd68eeacf0bea5c7d611acb4247e6f04cca70b83f1 - destructured_ast: 5a1f58fc9612a26102a4d32878c0d0328a5a0d96df0dd55a137021bbf24adaec - inlined_ast: 5a1f58fc9612a26102a4d32878c0d0328a5a0d96df0dd55a137021bbf24adaec - dce_ast: 5a1f58fc9612a26102a4d32878c0d0328a5a0d96df0dd55a137021bbf24adaec + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 386bacec3524f131cbfca90d77735aa8d215a2ce22948c24f358e9dc882e134f + unrolled_ast: 386bacec3524f131cbfca90d77735aa8d215a2ce22948c24f358e9dc882e134f + ssa_ast: 147f38c20b19bdd1636e75fd7a78e99abb1885df6b2278628842757ebae154ca + flattened_ast: 28a1d422a9f5e8255b6f8c9866d16184e807a98aac360a30db2c46ac4fc06aad + destructured_ast: 17a49139c4bae8f68d17d668ca8e30960f033f9c797e416de0aea3c1aaca4d0e + inlined_ast: 17a49139c4bae8f68d17d668ca8e30960f033f9c797e416de0aea3c1aaca4d0e + dce_ast: 17a49139c4bae8f68d17d668ca8e30960f033f9c797e416de0aea3c1aaca4d0e bytecode: 1af055915587aced3dca90d1e065481be3648546d2bc465461d50b03c2974f6a errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/sub.out b/tests/expectations/compiler/integers/i16/sub.out index a28377f3b0..5bd9ee7392 100644 --- a/tests/expectations/compiler/integers/i16/sub.out +++ b/tests/expectations/compiler/integers/i16/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 133fcbba9bb86f1d0958a6f72b4960abcd59d162a5ceefa2296a927c7cf149d9 - type_checked_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - unrolled_symbol_table: b50b494402d36ace0a248fac90024f9c74622d22c92bda44696bb012dad8966a - initial_ast: 0d3826880c8ed9cff07faace50101557378718851e9bba82f221d7b7155bd2d0 - unrolled_ast: 0d3826880c8ed9cff07faace50101557378718851e9bba82f221d7b7155bd2d0 - ssa_ast: 48112ad7bf9d69fe73bc873d934c66f29921e3f71445ce3997f504d5d2cfc2ac - flattened_ast: 5bbf0ab08ff223372149e83892a0d83450f21996e5114a4a31ffe4bdd9bc03a4 - destructured_ast: b312d6776eae8c9ce9abbbe4468ba09d86796b0da2c8b5b83e27cd21fffcd82c - inlined_ast: b312d6776eae8c9ce9abbbe4468ba09d86796b0da2c8b5b83e27cd21fffcd82c - dce_ast: b312d6776eae8c9ce9abbbe4468ba09d86796b0da2c8b5b83e27cd21fffcd82c + - initial_symbol_table: b681f966c95a87258b38318a68e491f61746a959d82cbdc756fbb31e47f82bba + type_checked_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + unrolled_symbol_table: 620611494d5cb34b734668716dec8e842f0c85b0f79a514c8dda59982328a89e + initial_ast: 6e5a68cf52df4ed256381a38ee6e5a7860273458388690d17dde59c6e5daad95 + unrolled_ast: 6e5a68cf52df4ed256381a38ee6e5a7860273458388690d17dde59c6e5daad95 + ssa_ast: 9a4dd101c7e8127ee00de4f3930890dd0230e72d1c6d4c4568b8aef47ad65d49 + flattened_ast: 63814c602d8c3ef7e8de5b425654752ff0e3d8ca4df3601f8fac6b487adf0976 + destructured_ast: 2a188dcfb664ddad88c7951f16f3dd27689ef157b9638ffb13c5c672be284c82 + inlined_ast: 2a188dcfb664ddad88c7951f16f3dd27689ef157b9638ffb13c5c672be284c82 + dce_ast: 2a188dcfb664ddad88c7951f16f3dd27689ef157b9638ffb13c5c672be284c82 bytecode: 17009388ef3907c90aabc4a26d822d5b361f00d4753cca95dda6539866f8d908 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/ternary.out b/tests/expectations/compiler/integers/i16/ternary.out index d9ceae1528..a08a6073a2 100644 --- a/tests/expectations/compiler/integers/i16/ternary.out +++ b/tests/expectations/compiler/integers/i16/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e0f42555a180688f205e15e8c56ac8612b8d75845243341837962fde668604d7 - type_checked_symbol_table: b881ea685a2921cc1163cd47d73938241bd14f14edb5212cc2f32a03b4dd9e74 - unrolled_symbol_table: b881ea685a2921cc1163cd47d73938241bd14f14edb5212cc2f32a03b4dd9e74 - initial_ast: 6c72cccebecf83e83173d6c1b19120fa9d51f01fe0536971915c667fccc2a768 - unrolled_ast: 6c72cccebecf83e83173d6c1b19120fa9d51f01fe0536971915c667fccc2a768 - ssa_ast: 5210c8d455ad2ff8c345445aadc79f9584453fbbb63a7307717322a29b635714 - flattened_ast: f5ae006f2fb29a1b15b2b680e705c2590cc3ed9d709b8bb8587a217e764908b4 - destructured_ast: f615459ea21bceba60bd38e63acfb6a43b52bdc54b02feb970ec862574f8e4f9 - inlined_ast: f615459ea21bceba60bd38e63acfb6a43b52bdc54b02feb970ec862574f8e4f9 - dce_ast: f615459ea21bceba60bd38e63acfb6a43b52bdc54b02feb970ec862574f8e4f9 + - initial_symbol_table: 57781e11ed40257e55b4b1d1cdfaa25e7bebe7795a64e73f2c85362d459c5028 + type_checked_symbol_table: 39b27fcc1684980d5232bca8993c427b9282f5ced4aa1427864a0885c4789b05 + unrolled_symbol_table: 39b27fcc1684980d5232bca8993c427b9282f5ced4aa1427864a0885c4789b05 + initial_ast: 010c59b28d927784698e48a92fe5cd541fe02f1b91cbb33a6fe5cc9fc4cfa2b2 + unrolled_ast: 010c59b28d927784698e48a92fe5cd541fe02f1b91cbb33a6fe5cc9fc4cfa2b2 + ssa_ast: 31cdf683d9b2601f245879679d89f5ad6094ec06d578fd97132b816db95bf6e1 + flattened_ast: bb6ae8c9898ca4411e586f28a6a1b96cd3182e8ee32fdbc40af25697e9479bd7 + destructured_ast: 36178f7c69aaa7bf27ffc7aca78e0ae55049a87a2401b0bffd7c20216b793c44 + inlined_ast: 36178f7c69aaa7bf27ffc7aca78e0ae55049a87a2401b0bffd7c20216b793c44 + dce_ast: 36178f7c69aaa7bf27ffc7aca78e0ae55049a87a2401b0bffd7c20216b793c44 bytecode: 36a621308b0c9bc17df0d85b9b4734e73d1d64cbcacdd813603f3d79f74e8996 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i16/xor.out b/tests/expectations/compiler/integers/i16/xor.out index 4f5bcf10dc..45127cb9b8 100644 --- a/tests/expectations/compiler/integers/i16/xor.out +++ b/tests/expectations/compiler/integers/i16/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bfb397205e9d092e5dd5b7c9b53311e8548e0b439cd21dcf695b9fa2de8b1b3c - type_checked_symbol_table: 367695d4845e05a123f89c870ff7435b621967b2beb16f88fe349a539b74310e - unrolled_symbol_table: 367695d4845e05a123f89c870ff7435b621967b2beb16f88fe349a539b74310e - initial_ast: 5e4631215a565fd8684245c4f6c8976193dd16dbacb8b9cadea2af906b7d3be3 - unrolled_ast: 5e4631215a565fd8684245c4f6c8976193dd16dbacb8b9cadea2af906b7d3be3 - ssa_ast: af39be4787d443ffd8333352caf478967b930e16bf8de3cafa1d82c535bf6acf - flattened_ast: d8409ad72239b1651d05297294bd89a9e5e41e1828774967cedef7bd25026a86 - destructured_ast: 35c0fa04e47643883f7f2765aae61e4e1aee8de18b6f3a78f3e4b1488200a7f4 - inlined_ast: 35c0fa04e47643883f7f2765aae61e4e1aee8de18b6f3a78f3e4b1488200a7f4 - dce_ast: 35c0fa04e47643883f7f2765aae61e4e1aee8de18b6f3a78f3e4b1488200a7f4 + - initial_symbol_table: 284da7fea74a4ad5cdf3f468c20efff7811d57734e8ff4d31fb1e33ca531d842 + type_checked_symbol_table: dcca0a24ed185efb753efabb5e85b92376a6e10f9816af413faf633e6ec1fc69 + unrolled_symbol_table: dcca0a24ed185efb753efabb5e85b92376a6e10f9816af413faf633e6ec1fc69 + initial_ast: 9f24efc93cb41e37275342f7122d1e1536a67b3def5a0566a9b3966b20d05b87 + unrolled_ast: 9f24efc93cb41e37275342f7122d1e1536a67b3def5a0566a9b3966b20d05b87 + ssa_ast: 7e6396446cf99f65630b5bbc2ef5d8e4d27b1b0c010de199ab723fb9af87ae73 + flattened_ast: de45b7cc22554d0f4baf3fc0b1fb25c056c9920c8e48f8fdc93841602a74415e + destructured_ast: 2a2748c5e2c52982509aa6a5c045ea0370ce6b7bb093cda110c564e09811dec2 + inlined_ast: 2a2748c5e2c52982509aa6a5c045ea0370ce6b7bb093cda110c564e09811dec2 + dce_ast: 2a2748c5e2c52982509aa6a5c045ea0370ce6b7bb093cda110c564e09811dec2 bytecode: b3f7fd0a992ed66d1a25b6669e1387d7567d6fad58e97b43c160249c2109f516 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/add.out b/tests/expectations/compiler/integers/i32/add.out index f4872b0252..6645369a9c 100644 --- a/tests/expectations/compiler/integers/i32/add.out +++ b/tests/expectations/compiler/integers/i32/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: beba85d646adf647f95aaec4b2419b12ec3e468cd89e15333b7a88f0b205f689 - unrolled_ast: beba85d646adf647f95aaec4b2419b12ec3e468cd89e15333b7a88f0b205f689 - ssa_ast: 4109d4d2337ccff84d89b7460ccf5119f23ffc59ed4c281cca9f29f1b34738cc - flattened_ast: b91918ad4966d507214662d97d422a3e4abd3ee21f10e22203bdedaa70332f1d - destructured_ast: 3d9ae5f4d09d31d7ca5b4663f4675118cd22f45a6eaa8966e236086ea6d8211f - inlined_ast: 3d9ae5f4d09d31d7ca5b4663f4675118cd22f45a6eaa8966e236086ea6d8211f - dce_ast: 3d9ae5f4d09d31d7ca5b4663f4675118cd22f45a6eaa8966e236086ea6d8211f + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 56bc4f278802dd003a7dead444e491fd7f2a20054083a0625597f500b8a83bb8 + unrolled_ast: 56bc4f278802dd003a7dead444e491fd7f2a20054083a0625597f500b8a83bb8 + ssa_ast: d28c1b0a2e0f457a38dcabcf8c90551e5b86446e6db16a05f9cf8b4eff4853da + flattened_ast: 05817bd77b53fd3668373996abed7b690e85c27a4da24fd2ceafe9bf6769cacf + destructured_ast: 73d31416a358d0981319627996c1c8eac319b74fc25b98f4bbe401df8d25562e + inlined_ast: 73d31416a358d0981319627996c1c8eac319b74fc25b98f4bbe401df8d25562e + dce_ast: 73d31416a358d0981319627996c1c8eac319b74fc25b98f4bbe401df8d25562e bytecode: 2a2cbf02e188b3022afe1de563d58f86c9c18a2277c8dbeb307dd1b5dc66f8d3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/and.out b/tests/expectations/compiler/integers/i32/and.out index 0d1e1561c7..11b3a5d3af 100644 --- a/tests/expectations/compiler/integers/i32/and.out +++ b/tests/expectations/compiler/integers/i32/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 7619f0bc7d38c1be7446020ab8dd2024565c54bd9a27936c54d6ba66e3cef852 - unrolled_ast: 7619f0bc7d38c1be7446020ab8dd2024565c54bd9a27936c54d6ba66e3cef852 - ssa_ast: 20d0c016a53e0ef5ed6407aced9b008bbb14498d302a8baf1b004442c01065b3 - flattened_ast: 3022de9d76cff2532ebc1e85dc710d8b658537e44290c6dd14f653150d5faa6e - destructured_ast: db8881cfcad1035dbfe2697b17e2299254bb1859c66b69a4ae6f7a7669e4ebfd - inlined_ast: db8881cfcad1035dbfe2697b17e2299254bb1859c66b69a4ae6f7a7669e4ebfd - dce_ast: db8881cfcad1035dbfe2697b17e2299254bb1859c66b69a4ae6f7a7669e4ebfd + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: af9b99e128923902ffc8bc630bd90c68e34bc56bede359f97d9ee813205c394f + unrolled_ast: af9b99e128923902ffc8bc630bd90c68e34bc56bede359f97d9ee813205c394f + ssa_ast: ff267c44b7a18e73f3a3fabbfc543f660cbae978497ead2982fa9d47760670db + flattened_ast: 6b268c7e24545e5ee85579404734d20eca8e9ae848a1c6f2e33383478aa2582d + destructured_ast: 381dcc57c9f36d0141145797a2bae5cba325105ad2604825eb1d946a247c3a46 + inlined_ast: 381dcc57c9f36d0141145797a2bae5cba325105ad2604825eb1d946a247c3a46 + dce_ast: 381dcc57c9f36d0141145797a2bae5cba325105ad2604825eb1d946a247c3a46 bytecode: eee50040aac3f0f43988dcc4e46afc2f734d30f614a2ae6ee1ce88f39b5f2827 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/console_assert.out b/tests/expectations/compiler/integers/i32/console_assert.out index 31b4f97840..9bbefa9a72 100644 --- a/tests/expectations/compiler/integers/i32/console_assert.out +++ b/tests/expectations/compiler/integers/i32/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c9cd921b782c002a724ff3d33cdc98fcaf3fb952b19d461a426b94bb4e608b2 - type_checked_symbol_table: 490b38e3ad06777bcd78f3a334075e58dd270814be2efa59c917e46ac17e4369 - unrolled_symbol_table: 490b38e3ad06777bcd78f3a334075e58dd270814be2efa59c917e46ac17e4369 - initial_ast: 28ae333f92050722829e59737445d344431e2126d057f9ca535eac8a393fee06 - unrolled_ast: 28ae333f92050722829e59737445d344431e2126d057f9ca535eac8a393fee06 - ssa_ast: 6edded8ed265e3d15d487d629273072bc814bf3643db772066b2ff99a0c62812 - flattened_ast: 7afad8eb716c449eea651924d20242560a8e5e76652a5fd084ceff0eff5e8171 - destructured_ast: b17b2e5b84e6e0365e519898a9ebd62a5b7c191e452308a8230127c737f2033e - inlined_ast: b17b2e5b84e6e0365e519898a9ebd62a5b7c191e452308a8230127c737f2033e - dce_ast: b17b2e5b84e6e0365e519898a9ebd62a5b7c191e452308a8230127c737f2033e + - initial_symbol_table: 66b952ec337d00873d477ad42e8f72428b66832307be8112bda44e3d0f617317 + type_checked_symbol_table: 8348ba05357363604954cf20e7f5bc78adc56eca98c8aa88cdf7fee449569395 + unrolled_symbol_table: 8348ba05357363604954cf20e7f5bc78adc56eca98c8aa88cdf7fee449569395 + initial_ast: 8cb3a2731807f1af13a4153e557da8dcc8e4da4854563874a2f8d9fed69e5e23 + unrolled_ast: 8cb3a2731807f1af13a4153e557da8dcc8e4da4854563874a2f8d9fed69e5e23 + ssa_ast: 0dd6203c9ecd2bf11b65e3c43a25267c289dbecdfc1680fb339ca00fc7f149be + flattened_ast: bb3e8791f721964afe94bbbafc9818ad16aa37f922ef0ab1fa8f05688df2c3b0 + destructured_ast: a1453860dde87808786265f45ad5f3ff69cecfbb1761bcf63dccf0d4c39532da + inlined_ast: a1453860dde87808786265f45ad5f3ff69cecfbb1761bcf63dccf0d4c39532da + dce_ast: a1453860dde87808786265f45ad5f3ff69cecfbb1761bcf63dccf0d4c39532da bytecode: e8b3b5f71b01963e4df9f24f4f4f47e9976e5e5b099659e6083cef239d37a2d1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/div.out b/tests/expectations/compiler/integers/i32/div.out index 2e91292272..6c1598423b 100644 --- a/tests/expectations/compiler/integers/i32/div.out +++ b/tests/expectations/compiler/integers/i32/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: c6debb7a967172fbef2b949dd0b91cd07f6f464bf6d44ac53163151b27450408 - unrolled_ast: c6debb7a967172fbef2b949dd0b91cd07f6f464bf6d44ac53163151b27450408 - ssa_ast: 7efacf4dcf8bd91bab1205657b7749b625a5d3aff5cffad18f643ed7dc51c2f0 - flattened_ast: ae2dbe30bcd91101b08c76b46d9293556a16a4737426610854bf44f352dfcb9b - destructured_ast: 3782338fd437cbef00c39121438fde573a50c2f331ae92fd17a4f7d7baa33736 - inlined_ast: 3782338fd437cbef00c39121438fde573a50c2f331ae92fd17a4f7d7baa33736 - dce_ast: 3782338fd437cbef00c39121438fde573a50c2f331ae92fd17a4f7d7baa33736 + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 255068e26a8e3eeab5b70ba9a768dc1a2991174496934f9ab9232b0cb4cdede8 + unrolled_ast: 255068e26a8e3eeab5b70ba9a768dc1a2991174496934f9ab9232b0cb4cdede8 + ssa_ast: 5b53fcfbefd5e3bd3599aef94440c8202dc1c7e9944583cc134810ec3b7f8f02 + flattened_ast: 5d8505935369787a2d61afaab5c890cd06a17d91aba33f48f07adc999756b23e + destructured_ast: 30fe7be7d6a44e21789ae255019ca836697f298bbaf32c0dc8f6d4da14ac03a2 + inlined_ast: 30fe7be7d6a44e21789ae255019ca836697f298bbaf32c0dc8f6d4da14ac03a2 + dce_ast: 30fe7be7d6a44e21789ae255019ca836697f298bbaf32c0dc8f6d4da14ac03a2 bytecode: 22fa0cb05cba0820444e31f02772af70719116ea4f41c50faaed75a4c50cb845 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/eq.out b/tests/expectations/compiler/integers/i32/eq.out index fbe85a7238..79ae18eddd 100644 --- a/tests/expectations/compiler/integers/i32/eq.out +++ b/tests/expectations/compiler/integers/i32/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6f2e35337709bfaaa8117b87c12c814128ac5519c1c00041e5e67aa7536e00f - type_checked_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - unrolled_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - initial_ast: 64bf68fe67df60e98c9a23ee75c6e55532f2c10544ac5d4a2a2acb70e2692c95 - unrolled_ast: 64bf68fe67df60e98c9a23ee75c6e55532f2c10544ac5d4a2a2acb70e2692c95 - ssa_ast: 4b031ba3e299f246a9d489fedbc5c7d0e14265226a0de571a4aa410a3048c91c - flattened_ast: 8c92e30044aade90bfa72b83bee8f6b407f635f1ce1b2848b64266fa691fd107 - destructured_ast: b4c6da86700a641982de24ad5e2a16ed51b4293fe2e17bbb5e58b4700d61d65b - inlined_ast: b4c6da86700a641982de24ad5e2a16ed51b4293fe2e17bbb5e58b4700d61d65b - dce_ast: b4c6da86700a641982de24ad5e2a16ed51b4293fe2e17bbb5e58b4700d61d65b + - initial_symbol_table: 0449ed47bc01fed62f50b732bb0e1979ca000847e8a02c3b71812390938257eb + type_checked_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + unrolled_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + initial_ast: e74aca2e6ca484eb47c63eab2da1b5992c142b7da1e677df7f8e5cdb21146596 + unrolled_ast: e74aca2e6ca484eb47c63eab2da1b5992c142b7da1e677df7f8e5cdb21146596 + ssa_ast: a008e4a2dce34b02cec037709c2303dbd7474cf2604e30f665defa5169bd2e14 + flattened_ast: a7c75869f0b16c7327b49061835b9755ef06e33d2d773121a045c103b25e601f + destructured_ast: 338e048ad2019d75cb92070fb13bc79ce6ba9d4cbf4affbe6fa1e9799c45279a + inlined_ast: 338e048ad2019d75cb92070fb13bc79ce6ba9d4cbf4affbe6fa1e9799c45279a + dce_ast: 338e048ad2019d75cb92070fb13bc79ce6ba9d4cbf4affbe6fa1e9799c45279a bytecode: db6394a0bd5332bffbca151ba7a0ea7bdb38f83f732c3afef149535db47a71cb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/ge.out b/tests/expectations/compiler/integers/i32/ge.out index 0fc3c34f62..8a109e50f4 100644 --- a/tests/expectations/compiler/integers/i32/ge.out +++ b/tests/expectations/compiler/integers/i32/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6f2e35337709bfaaa8117b87c12c814128ac5519c1c00041e5e67aa7536e00f - type_checked_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - unrolled_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - initial_ast: fd49423086e80748e2df0611434ab8ea239afbeb70a4583a1fad90265ab38698 - unrolled_ast: fd49423086e80748e2df0611434ab8ea239afbeb70a4583a1fad90265ab38698 - ssa_ast: 7b281b52d3b0ca2ed6603a0b10a5b92ca048f9c176381fc6d0a0dc2a94bc4c79 - flattened_ast: fb52cb954eda18d22bd8b68f86e67844850b2d085c9aa220fd2138f335bf1c88 - destructured_ast: 1b276c077bc5b8cefdaf1a41771f6cac1638cd64f8f4c9e3562c7c83e4619828 - inlined_ast: 1b276c077bc5b8cefdaf1a41771f6cac1638cd64f8f4c9e3562c7c83e4619828 - dce_ast: 1b276c077bc5b8cefdaf1a41771f6cac1638cd64f8f4c9e3562c7c83e4619828 + - initial_symbol_table: 0449ed47bc01fed62f50b732bb0e1979ca000847e8a02c3b71812390938257eb + type_checked_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + unrolled_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + initial_ast: 8f705a3b658be56eb128906b4dee7f744cc51c50e8aef1e6752e67d4f9f3f430 + unrolled_ast: 8f705a3b658be56eb128906b4dee7f744cc51c50e8aef1e6752e67d4f9f3f430 + ssa_ast: 86981c562ebce0b25d87042e44825deb618f8cc9b745c10e19395fb2c4cdc2ec + flattened_ast: c49299f6cb558491082168ef0bf1bfc22872b78988f8eeefc664f74b793d5dd6 + destructured_ast: f03022e6ecd8c7ce6ba1931e4cb46c6393a769970a3b016e7312d94b309acae9 + inlined_ast: f03022e6ecd8c7ce6ba1931e4cb46c6393a769970a3b016e7312d94b309acae9 + dce_ast: f03022e6ecd8c7ce6ba1931e4cb46c6393a769970a3b016e7312d94b309acae9 bytecode: 319b96ef20018acc654ec52780087d599a75f6204095ab426882087218865bcc errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/gt.out b/tests/expectations/compiler/integers/i32/gt.out index 3ab2d1a9eb..2745f7c31e 100644 --- a/tests/expectations/compiler/integers/i32/gt.out +++ b/tests/expectations/compiler/integers/i32/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6f2e35337709bfaaa8117b87c12c814128ac5519c1c00041e5e67aa7536e00f - type_checked_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - unrolled_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - initial_ast: 578e1205551b5e9dd50ddb07cee4c1c298f9c3e6048cf4056c481ce28b083eda - unrolled_ast: 578e1205551b5e9dd50ddb07cee4c1c298f9c3e6048cf4056c481ce28b083eda - ssa_ast: d0e6477ac585bbb34271dd46556bb1bdc1ab8883606946cde3731b92cf4f5112 - flattened_ast: 5cf58c17cd0e9aee7b7a7b613b0ee12217547991d4f05153ba925c37f529285b - destructured_ast: 5b41c19c220c5f9dbfa06d07dae1c1ff4dea1c49c7f2fad4ec8b828ee8798712 - inlined_ast: 5b41c19c220c5f9dbfa06d07dae1c1ff4dea1c49c7f2fad4ec8b828ee8798712 - dce_ast: 5b41c19c220c5f9dbfa06d07dae1c1ff4dea1c49c7f2fad4ec8b828ee8798712 + - initial_symbol_table: 0449ed47bc01fed62f50b732bb0e1979ca000847e8a02c3b71812390938257eb + type_checked_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + unrolled_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + initial_ast: b88bf038857ba3d960d3bae5004f6ba14bc3f0b1692f808f23886dd0c4ea7085 + unrolled_ast: b88bf038857ba3d960d3bae5004f6ba14bc3f0b1692f808f23886dd0c4ea7085 + ssa_ast: b23f1f69473fa0ca20534cde86ccd6fd29b00f93c3cde5a079a23c5f9e7dcc16 + flattened_ast: 52a80cb79a34ae0230bfca3e988773487779649ac8640e05ca6a33247eaa0dad + destructured_ast: 3552a2779307e9708851c59c44ddb549581f511db8e6d084fe6ac2859c66e1d4 + inlined_ast: 3552a2779307e9708851c59c44ddb549581f511db8e6d084fe6ac2859c66e1d4 + dce_ast: 3552a2779307e9708851c59c44ddb549581f511db8e6d084fe6ac2859c66e1d4 bytecode: 7b0157b83a4db9b46a3c6572aeb5ccae55be420768dc034163508ac4a99308ea errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/le.out b/tests/expectations/compiler/integers/i32/le.out index 51964aa0c4..51d5b35710 100644 --- a/tests/expectations/compiler/integers/i32/le.out +++ b/tests/expectations/compiler/integers/i32/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6f2e35337709bfaaa8117b87c12c814128ac5519c1c00041e5e67aa7536e00f - type_checked_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - unrolled_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - initial_ast: d06bfac0d12e52a874cbf5d802e940923dc63aa8a6f58975b7e414a84970b096 - unrolled_ast: d06bfac0d12e52a874cbf5d802e940923dc63aa8a6f58975b7e414a84970b096 - ssa_ast: 4e6e967dc4686f01d03d50ca08fa8f9eaba2008ad3dfb0417642604f1080d0c6 - flattened_ast: 142c8508fa1fcdb21398dde3c5b4c1ebe9d28b98087c3e6ac1e969b770271dc6 - destructured_ast: cdf5c007fe211855656e8a990671adbff29666e06a44e61970ba6f11b5164ddb - inlined_ast: cdf5c007fe211855656e8a990671adbff29666e06a44e61970ba6f11b5164ddb - dce_ast: cdf5c007fe211855656e8a990671adbff29666e06a44e61970ba6f11b5164ddb + - initial_symbol_table: 0449ed47bc01fed62f50b732bb0e1979ca000847e8a02c3b71812390938257eb + type_checked_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + unrolled_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + initial_ast: 5ed82793ad16d58ebeaf8034f5a8783914aad845c75e1bceab1a10d1dbc8c5d1 + unrolled_ast: 5ed82793ad16d58ebeaf8034f5a8783914aad845c75e1bceab1a10d1dbc8c5d1 + ssa_ast: 861203dd504217c3122da6e73bdb565a06163166700e9dd3417dbc01da6aa6ee + flattened_ast: 02b1e9a467f6ed57e8202d32749adbddf81ec0fc2660f2faa532aef678f8ccc6 + destructured_ast: 242fa7d4269b22a6d02e3a568cd61b5466f7e4522250675087f3bb58ece85872 + inlined_ast: 242fa7d4269b22a6d02e3a568cd61b5466f7e4522250675087f3bb58ece85872 + dce_ast: 242fa7d4269b22a6d02e3a568cd61b5466f7e4522250675087f3bb58ece85872 bytecode: cc2d953415427376e9e3c26c04b4e66630e4b77f19e04e932b28f04599b7fe77 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/lt.out b/tests/expectations/compiler/integers/i32/lt.out index 50f0c7a79c..846312d75b 100644 --- a/tests/expectations/compiler/integers/i32/lt.out +++ b/tests/expectations/compiler/integers/i32/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6f2e35337709bfaaa8117b87c12c814128ac5519c1c00041e5e67aa7536e00f - type_checked_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - unrolled_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - initial_ast: 092686146d2fac0c423253e0c360aaf8c636178afc69438075fbf0a45bdf7a34 - unrolled_ast: 092686146d2fac0c423253e0c360aaf8c636178afc69438075fbf0a45bdf7a34 - ssa_ast: fb2f0ce2709b3e6d2e480241310fdb1eecc4d3f74d87a4dce479ae4ab46962ec - flattened_ast: b0238e4fb10dc6821eacd9cda1aa985dac92889c6d7cb0659c239cbda64e29f3 - destructured_ast: dc74c35986fd2fbf816d30a4886a9329d961f8b2638dd259621d5df1f32f3e4f - inlined_ast: dc74c35986fd2fbf816d30a4886a9329d961f8b2638dd259621d5df1f32f3e4f - dce_ast: dc74c35986fd2fbf816d30a4886a9329d961f8b2638dd259621d5df1f32f3e4f + - initial_symbol_table: 0449ed47bc01fed62f50b732bb0e1979ca000847e8a02c3b71812390938257eb + type_checked_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + unrolled_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + initial_ast: 5c42dab6f95383adfc16efe05ec0ee5f11385738489e745cc50e49729e64ef93 + unrolled_ast: 5c42dab6f95383adfc16efe05ec0ee5f11385738489e745cc50e49729e64ef93 + ssa_ast: 9385e212eea32327b55be29b0ef4ecf93e4d0ac5faf7b3e5a9a3f6b7a4e1aa6a + flattened_ast: c01bb33ff9153d35d23af887d1597e00f833a45b221b22d4e3cfa997bb21aa48 + destructured_ast: b74fee62e06d08ad57379b9c5bd307bbe5c9fd1b558abfeddce8ffb4f4a8bcd9 + inlined_ast: b74fee62e06d08ad57379b9c5bd307bbe5c9fd1b558abfeddce8ffb4f4a8bcd9 + dce_ast: b74fee62e06d08ad57379b9c5bd307bbe5c9fd1b558abfeddce8ffb4f4a8bcd9 bytecode: 815cbaa285c68d1b7707bbe1df33b84fcb00a81bfbae3d4d9cd290902e2ce091 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/max.out b/tests/expectations/compiler/integers/i32/max.out index ea96a3c6ab..811fa43ff0 100644 --- a/tests/expectations/compiler/integers/i32/max.out +++ b/tests/expectations/compiler/integers/i32/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c1839a281852a21423abfdc2bbc53198fc6a5f020ea894b821ddb7f062f8eb04 - type_checked_symbol_table: c2a59af30950713f5a2404a8b44955781286faee28d03dcf0d0093e8d1c50082 - unrolled_symbol_table: c2a59af30950713f5a2404a8b44955781286faee28d03dcf0d0093e8d1c50082 - initial_ast: 2c2d91fc4cac2301eb74b9367e19c85aa67b1080f4e9426bb9affc8ca5a76672 - unrolled_ast: 2c2d91fc4cac2301eb74b9367e19c85aa67b1080f4e9426bb9affc8ca5a76672 - ssa_ast: 835a2deeb091836d22d98deee9eb81b534fb5af125dc8f95af75954d5c780a27 - flattened_ast: ed74c63cd2e3adc12e03df27727a2fcf79ae907d74d3cf39a1fca29cb15e0215 - destructured_ast: ef4d22926a836d788dda060d91cebfc3380ef2c129566b9fc7aceec1278173e8 - inlined_ast: ef4d22926a836d788dda060d91cebfc3380ef2c129566b9fc7aceec1278173e8 - dce_ast: ef4d22926a836d788dda060d91cebfc3380ef2c129566b9fc7aceec1278173e8 + - initial_symbol_table: e524975733789e46dfc5f8c48f9758af86778937b158ecc7dcf34b4d1ad0d986 + type_checked_symbol_table: 9280e38812978d491046a19ba1bd9f5656e15308b4ac5b7993d6300cc76612fc + unrolled_symbol_table: 9280e38812978d491046a19ba1bd9f5656e15308b4ac5b7993d6300cc76612fc + initial_ast: 5a895e243b22680ce8c15e27e0d64c10be19bf526d489fc6f66748883fd76330 + unrolled_ast: 5a895e243b22680ce8c15e27e0d64c10be19bf526d489fc6f66748883fd76330 + ssa_ast: a68de371c73e03d234bfbd004e4fd8994c6e02462aac7e43ad41dd0a9cdd07b3 + flattened_ast: d12e768d4782301dc64aa35f80530d837fa8fb051cc12eb94dfc2c44054bc3ba + destructured_ast: dffb3357928dbb114403d89059dec73be53108712f02974b21c1378c03bee892 + inlined_ast: dffb3357928dbb114403d89059dec73be53108712f02974b21c1378c03bee892 + dce_ast: dffb3357928dbb114403d89059dec73be53108712f02974b21c1378c03bee892 bytecode: 6821174db234fb38a3ded7835589628bf76443f2faff6cf9aa2f2fc5a5da71cb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/max_fail.out b/tests/expectations/compiler/integers/i32/max_fail.out index 988b21f596..8895c83509 100644 --- a/tests/expectations/compiler/integers/i32/max_fail.out +++ b/tests/expectations/compiler/integers/i32/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 2147483648 is not a valid `i32`\n --> compiler-test:5:22\n |\n 5 | let a: i32 = 2147483648i32;\n | ^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 2147483648 is not a valid `i32`\n --> compiler-test:5:22\n |\n 5 | let a: i32 = 2147483648i32;\n | ^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i32/min.out b/tests/expectations/compiler/integers/i32/min.out index 5be37753b7..80b2e38014 100644 --- a/tests/expectations/compiler/integers/i32/min.out +++ b/tests/expectations/compiler/integers/i32/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c1839a281852a21423abfdc2bbc53198fc6a5f020ea894b821ddb7f062f8eb04 - type_checked_symbol_table: c2a59af30950713f5a2404a8b44955781286faee28d03dcf0d0093e8d1c50082 - unrolled_symbol_table: c2a59af30950713f5a2404a8b44955781286faee28d03dcf0d0093e8d1c50082 - initial_ast: 81f8f0d6d5dc42a41eb1adf85a563224629d1157b517b2ba1c030ba47dd8cddd - unrolled_ast: 81f8f0d6d5dc42a41eb1adf85a563224629d1157b517b2ba1c030ba47dd8cddd - ssa_ast: 1d318b698eb0c25c6be8f024e45f7026656484559673e746bd3c26f43ca52bc8 - flattened_ast: 4f6fa993332fd527d0cbe30dfb9adadfba918fd80240d7a2d3b8ddcbd6a4c8a5 - destructured_ast: 4255a9739bb2061d88c849e438bff6749abce1030fc7fc6fb4206a427fb4f0e9 - inlined_ast: 4255a9739bb2061d88c849e438bff6749abce1030fc7fc6fb4206a427fb4f0e9 - dce_ast: 4255a9739bb2061d88c849e438bff6749abce1030fc7fc6fb4206a427fb4f0e9 + - initial_symbol_table: e524975733789e46dfc5f8c48f9758af86778937b158ecc7dcf34b4d1ad0d986 + type_checked_symbol_table: 9280e38812978d491046a19ba1bd9f5656e15308b4ac5b7993d6300cc76612fc + unrolled_symbol_table: 9280e38812978d491046a19ba1bd9f5656e15308b4ac5b7993d6300cc76612fc + initial_ast: 29503783563c6a02a123213211a3231d8ee606498b388cfdda5fc9eda40326f8 + unrolled_ast: 29503783563c6a02a123213211a3231d8ee606498b388cfdda5fc9eda40326f8 + ssa_ast: 0828d0e166c128115652b5289340a2f58d2fa93537cc61168139e494807d4446 + flattened_ast: 8015bb13799f2db8ebfdfe800b046b20c53254a30f76a30741e559a4105f926d + destructured_ast: 3b88b9aa7c0d652a8aee2cd945d04adc0b35d89b5ee311c833c6f4b1383700dd + inlined_ast: 3b88b9aa7c0d652a8aee2cd945d04adc0b35d89b5ee311c833c6f4b1383700dd + dce_ast: 3b88b9aa7c0d652a8aee2cd945d04adc0b35d89b5ee311c833c6f4b1383700dd bytecode: 71fa0293c129cb150cfbc206d6709f67884cd0864200dd8a6382ae6d30a3dac2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/min_fail.out b/tests/expectations/compiler/integers/i32/min_fail.out index 8c52ca2264..c43cd0bb23 100644 --- a/tests/expectations/compiler/integers/i32/min_fail.out +++ b/tests/expectations/compiler/integers/i32/min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 122846b2e7effe7512f7dfa606313278e4117635ff57cc2fd6f9c8393407ae1f - type_checked_symbol_table: 48e6126ecc3935498c9f38d64f6a4154eb0c6faed03105f866aa5886851defa7 - unrolled_symbol_table: 48e6126ecc3935498c9f38d64f6a4154eb0c6faed03105f866aa5886851defa7 - initial_ast: 993f963efa4b10611bd61bf469f0fee02c152d8c35d88f5981bc19dca1c35b21 - unrolled_ast: 993f963efa4b10611bd61bf469f0fee02c152d8c35d88f5981bc19dca1c35b21 - ssa_ast: 30df16e221d9c18559d999504d41b8fa2f5b5820128ad001087f6bf89256cec2 - flattened_ast: 8af1837e3528f124c7825e6a445e657d178dacb2400321973109762a2392c230 - destructured_ast: d4fc4e33799e761017e28e1f3b9bc483ad5a3443b1394dd713db476ddeef0fda - inlined_ast: d4fc4e33799e761017e28e1f3b9bc483ad5a3443b1394dd713db476ddeef0fda - dce_ast: d4fc4e33799e761017e28e1f3b9bc483ad5a3443b1394dd713db476ddeef0fda + - initial_symbol_table: 9a841180167ac09ded0114802462f431d4d5406dc2712dd0ef9c13855ff8c40b + type_checked_symbol_table: ab0f55e5508d472b487f21f83846f6a6b6c9671404175805d5c3f2de0924e536 + unrolled_symbol_table: ab0f55e5508d472b487f21f83846f6a6b6c9671404175805d5c3f2de0924e536 + initial_ast: 267ba9d770454b73df6042367abb19fe06819b181455c48db2a6df07593d9810 + unrolled_ast: 267ba9d770454b73df6042367abb19fe06819b181455c48db2a6df07593d9810 + ssa_ast: 0b18b68ee662534459566328b0be77d90a108ac02999ba6aa1fbe8504460240e + flattened_ast: d6d8b2bbf723c5cd9ca9a7d467f6d19095e6b74fe89d376905808fab84bd7aa5 + destructured_ast: 9ea946494cc5740d26b44832a66d8719ef7d31af4df4f7e03319395192bcc814 + inlined_ast: 9ea946494cc5740d26b44832a66d8719ef7d31af4df4f7e03319395192bcc814 + dce_ast: 9ea946494cc5740d26b44832a66d8719ef7d31af4df4f7e03319395192bcc814 bytecode: e28a0b12a5006a7f44ebd60e001a3b2bb2142f3e2bc03564b5870415a1bd1e6d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/mul.out b/tests/expectations/compiler/integers/i32/mul.out index 51396411bc..d4863c9297 100644 --- a/tests/expectations/compiler/integers/i32/mul.out +++ b/tests/expectations/compiler/integers/i32/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 529d9656241b5803b4f860dd6c820679a48029a0f406b2db5408ad6136cabfd2 - unrolled_ast: 529d9656241b5803b4f860dd6c820679a48029a0f406b2db5408ad6136cabfd2 - ssa_ast: 7bc73a211041faeb560fe07a0615a392bb8b8b15b4ed51c2ba42d761774eda04 - flattened_ast: a0d4f20dad7b060c709e027b5241279769c3791e57ba8808d6031b75078c9fd2 - destructured_ast: 1539446ca210b18645328310391dcf3fe6153036fae6143958d3808532c8888d - inlined_ast: 1539446ca210b18645328310391dcf3fe6153036fae6143958d3808532c8888d - dce_ast: 1539446ca210b18645328310391dcf3fe6153036fae6143958d3808532c8888d + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 9acb567d279e3a2bf7bd2060d89d38e020b0bac56fd462ba0be162c5343e2a87 + unrolled_ast: 9acb567d279e3a2bf7bd2060d89d38e020b0bac56fd462ba0be162c5343e2a87 + ssa_ast: ae9e6f601d427ca63080f0e8f649463197a0e2f2e2afc2551ede1bc9a80e6aab + flattened_ast: 1a1b41ead55b51dc0657151c668907307351a69124ecb4bc31cad81d92eff24e + destructured_ast: 9fb788428e3eddfde977e1a5307eef90248590add59d3d2e036391a477f1f12b + inlined_ast: 9fb788428e3eddfde977e1a5307eef90248590add59d3d2e036391a477f1f12b + dce_ast: 9fb788428e3eddfde977e1a5307eef90248590add59d3d2e036391a477f1f12b bytecode: 6a5893dfd948c5fa425269a9ddab867cbcf55956e015e95b3d4a5be7a861d763 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/ne.out b/tests/expectations/compiler/integers/i32/ne.out index 4670d09ba4..71331ea13a 100644 --- a/tests/expectations/compiler/integers/i32/ne.out +++ b/tests/expectations/compiler/integers/i32/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f6f2e35337709bfaaa8117b87c12c814128ac5519c1c00041e5e67aa7536e00f - type_checked_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - unrolled_symbol_table: 504f40fef7e2fb8267f2e8338c3580e86d3c2ec5710c7d5c80faa063bb021a67 - initial_ast: 398ed1c61b59ceb914780d4ac300b7a31b3fbb6c5d44756deea201f51671aa87 - unrolled_ast: 398ed1c61b59ceb914780d4ac300b7a31b3fbb6c5d44756deea201f51671aa87 - ssa_ast: e42681232d6b65b17eef649c3d6f7f3fbc3db018ba09cd552afe00de88d91d99 - flattened_ast: ba75a3c2c5130908ab11f2b8397cca23da82a96fe30f068ab24cd7036ff7c711 - destructured_ast: f4f6fdb57575b96aa87f5c2ea21dec24343140680e821fff52e6859f8af40b74 - inlined_ast: f4f6fdb57575b96aa87f5c2ea21dec24343140680e821fff52e6859f8af40b74 - dce_ast: f4f6fdb57575b96aa87f5c2ea21dec24343140680e821fff52e6859f8af40b74 + - initial_symbol_table: 0449ed47bc01fed62f50b732bb0e1979ca000847e8a02c3b71812390938257eb + type_checked_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + unrolled_symbol_table: f33fb3762ed3e6af58b4a336b516b50b36e6215d657bc3c227b632edbcfd2b06 + initial_ast: a893db5b3dd0142f9390af408ab17e5683e4b1717f2f6a5bbbeaf2f43f911f72 + unrolled_ast: a893db5b3dd0142f9390af408ab17e5683e4b1717f2f6a5bbbeaf2f43f911f72 + ssa_ast: f7a9ef7e5918efcfd533a5b627473cd80b895b39e200987565c42d0205de1780 + flattened_ast: 87cbbd1341ddfcba94accf14378b2cce62b04f6ac66d1011b9056f4a878e477f + destructured_ast: b781eaa1062ea68f045215d4ebff19d73d6131b6251494a973b7a81aa345ce69 + inlined_ast: b781eaa1062ea68f045215d4ebff19d73d6131b6251494a973b7a81aa345ce69 + dce_ast: b781eaa1062ea68f045215d4ebff19d73d6131b6251494a973b7a81aa345ce69 bytecode: 7e3f7a34eaf764f2d9b7119b882a649e4eaceabcd8e54ac5313127b3add0c091 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/negate.out b/tests/expectations/compiler/integers/i32/negate.out index 035a390ac4..ab1fdfe07b 100644 --- a/tests/expectations/compiler/integers/i32/negate.out +++ b/tests/expectations/compiler/integers/i32/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c9cd921b782c002a724ff3d33cdc98fcaf3fb952b19d461a426b94bb4e608b2 - type_checked_symbol_table: a535ef7db1e98b6a4ca7026b8f80ad79cb9a1a891ba15a8d718244f1cca0c05b - unrolled_symbol_table: a535ef7db1e98b6a4ca7026b8f80ad79cb9a1a891ba15a8d718244f1cca0c05b - initial_ast: 014539d9b2373bb14b73fab4d301ccea021f102a9477816696ae526767c59ed1 - unrolled_ast: 014539d9b2373bb14b73fab4d301ccea021f102a9477816696ae526767c59ed1 - ssa_ast: d0c19c5d9fc9db489260661ee3066e74c1257b433fd6e3f170f36bd97e058d60 - flattened_ast: cea073541998cab98d4c3c1018cbefb8fbef974fe60bd27bffbf7adaa5bf858a - destructured_ast: 08a451e0bb2bd53dc283639d6ce3385f36be601e167fd1051164bdebb849d368 - inlined_ast: 08a451e0bb2bd53dc283639d6ce3385f36be601e167fd1051164bdebb849d368 - dce_ast: 08a451e0bb2bd53dc283639d6ce3385f36be601e167fd1051164bdebb849d368 + - initial_symbol_table: 66b952ec337d00873d477ad42e8f72428b66832307be8112bda44e3d0f617317 + type_checked_symbol_table: 334f3829c517f63013cba6b60c47b6f62a06323ed24b3c54a1db7634848cfcaa + unrolled_symbol_table: 334f3829c517f63013cba6b60c47b6f62a06323ed24b3c54a1db7634848cfcaa + initial_ast: fffeaf865730bf95f6f5885e65796da891b202c92d2ad5efc4eb792e263a7c84 + unrolled_ast: fffeaf865730bf95f6f5885e65796da891b202c92d2ad5efc4eb792e263a7c84 + ssa_ast: aaa4fc8f86848df75f7482df633c35e3e7a44f18b29540947371204ef82467d4 + flattened_ast: 42693fb48f30e04aff5f43e797613c8751c0842b360574f1c8389c7f678c046a + destructured_ast: e0e411b52123bc58f194220c93b420082950582606a1a242f626808b5bc6a1e7 + inlined_ast: e0e411b52123bc58f194220c93b420082950582606a1a242f626808b5bc6a1e7 + dce_ast: e0e411b52123bc58f194220c93b420082950582606a1a242f626808b5bc6a1e7 bytecode: 009e138c1ef58588c8c34fdd4b56c5cd984a2f4664d71a3ce1f5811350d5cc1f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/negate_min_fail.out b/tests/expectations/compiler/integers/i32/negate_min_fail.out index 1a3614a770..30c7e1da46 100644 --- a/tests/expectations/compiler/integers/i32/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i32/negate_min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 122846b2e7effe7512f7dfa606313278e4117635ff57cc2fd6f9c8393407ae1f - type_checked_symbol_table: 48e6126ecc3935498c9f38d64f6a4154eb0c6faed03105f866aa5886851defa7 - unrolled_symbol_table: 48e6126ecc3935498c9f38d64f6a4154eb0c6faed03105f866aa5886851defa7 - initial_ast: 19047ee503c6c2d9268e16a347486495156e16481a9568428a25c78a13f04bc8 - unrolled_ast: 19047ee503c6c2d9268e16a347486495156e16481a9568428a25c78a13f04bc8 - ssa_ast: 478ea647359fcabfd1635f30fe16f78cb5c5a04a3e5dba035e70748b175fa5b5 - flattened_ast: 86092c431412750bf9254822700701c0a7534a641b5fb25043a542c5da3581f8 - destructured_ast: 3f81ee5496db513fea8ff4f70c45dfb59715b23c7cdd767d4ceb0f3a6a995010 - inlined_ast: 3f81ee5496db513fea8ff4f70c45dfb59715b23c7cdd767d4ceb0f3a6a995010 - dce_ast: 3f81ee5496db513fea8ff4f70c45dfb59715b23c7cdd767d4ceb0f3a6a995010 + - initial_symbol_table: 9a841180167ac09ded0114802462f431d4d5406dc2712dd0ef9c13855ff8c40b + type_checked_symbol_table: ab0f55e5508d472b487f21f83846f6a6b6c9671404175805d5c3f2de0924e536 + unrolled_symbol_table: ab0f55e5508d472b487f21f83846f6a6b6c9671404175805d5c3f2de0924e536 + initial_ast: 8d3747bad1748a967caea7316b8325f0060dcefd0f9776ec9ab286da1ff448b9 + unrolled_ast: 8d3747bad1748a967caea7316b8325f0060dcefd0f9776ec9ab286da1ff448b9 + ssa_ast: 1580466df00a08100fd8700bf9b359ddd7589aa7b241c1386b783bc7c0cdc669 + flattened_ast: 44bcee0661fa922a7c2d6da39f2a3665a14e70dbca9c09331c3f172dfd9372da + destructured_ast: 94acbb0e96da7bda3bd2c18179e808872252f91f374d90e77bc255a9a5137a1f + inlined_ast: 94acbb0e96da7bda3bd2c18179e808872252f91f374d90e77bc255a9a5137a1f + dce_ast: 94acbb0e96da7bda3bd2c18179e808872252f91f374d90e77bc255a9a5137a1f bytecode: 7014d5adeb6ff035c6415dd1001650301e64c7bb14426a4adc0f9b9daa514f69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/negate_zero.out b/tests/expectations/compiler/integers/i32/negate_zero.out index c233447ba0..8c6b198d4b 100644 --- a/tests/expectations/compiler/integers/i32/negate_zero.out +++ b/tests/expectations/compiler/integers/i32/negate_zero.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: d542dd5116fe76bc161ee133f47ff5c1ffc945129d3d1b7f394b2a61ad3cda63 - unrolled_symbol_table: d542dd5116fe76bc161ee133f47ff5c1ffc945129d3d1b7f394b2a61ad3cda63 - initial_ast: d9fb32f865aceeb65b0f9ea636d858e9307145ac236f09161af9bd39d066c47a - unrolled_ast: d9fb32f865aceeb65b0f9ea636d858e9307145ac236f09161af9bd39d066c47a - ssa_ast: fd463e6ca3e9cf358ac61a1aa4039734caa8a90c148ea7ae978d68636e24363f - flattened_ast: f1b6733e1f00e065a9742cb986ee81c878185ab49bee9d4054e265b4ed96e192 - destructured_ast: 4ad063f1901c958a0467412ba382179caf82bc51f8650b08a336f325c5e90ae8 - inlined_ast: 4ad063f1901c958a0467412ba382179caf82bc51f8650b08a336f325c5e90ae8 - dce_ast: 4ad063f1901c958a0467412ba382179caf82bc51f8650b08a336f325c5e90ae8 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 94a1ce7de050221daa6f16737af19f155919ef42890c836c6ecd600d52b6850f + unrolled_symbol_table: 94a1ce7de050221daa6f16737af19f155919ef42890c836c6ecd600d52b6850f + initial_ast: c7031160ed421cc17bf19ea4327b1ab2b9b73bbe8bcca30ebe3769070779e3c7 + unrolled_ast: c7031160ed421cc17bf19ea4327b1ab2b9b73bbe8bcca30ebe3769070779e3c7 + ssa_ast: e873815cd617312c75af63b3f9c1770625049da95e01a0ac2c3aed0d64808e17 + flattened_ast: 046a7150e3e668f7e098d2becb1f9177b98b659504f01d2d533c6730ac7b4b97 + destructured_ast: 1dbff6e5bf5accf6333799cde8f009bea190e6f541da0804f60a771dde93c4fa + inlined_ast: 1dbff6e5bf5accf6333799cde8f009bea190e6f541da0804f60a771dde93c4fa + dce_ast: 1dbff6e5bf5accf6333799cde8f009bea190e6f541da0804f60a771dde93c4fa bytecode: 0d7b74771220febbbf1600fe72c373d3398998c0d1200c1fd592d3b3da56b928 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/operator_methods.out b/tests/expectations/compiler/integers/i32/operator_methods.out index ede5305343..dffc554c4f 100644 --- a/tests/expectations/compiler/integers/i32/operator_methods.out +++ b/tests/expectations/compiler/integers/i32/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8c9cd921b782c002a724ff3d33cdc98fcaf3fb952b19d461a426b94bb4e608b2 - type_checked_symbol_table: b58fdd221d6a12133e9ea92e8655534f3a23e37a4f1110b1cc4ef42daa76b4a6 - unrolled_symbol_table: b58fdd221d6a12133e9ea92e8655534f3a23e37a4f1110b1cc4ef42daa76b4a6 - initial_ast: d4258b512a5e52c992cbd1d45cacb61e72eeb0a30cadbf1755d453b721ee2ffc - unrolled_ast: d4258b512a5e52c992cbd1d45cacb61e72eeb0a30cadbf1755d453b721ee2ffc - ssa_ast: ae2fade872d99786db506d0984bf63426c8392286968ddb0d7ce4f3816dc4ede - flattened_ast: 58f170d2939f31be8b7e95e01c2ab9b9901e8d00c3b82aa6e7148b4215a349dc - destructured_ast: d80ec1ffddc35be6bbbf077cb3daf65b4ab3fcf97f5175aff647b57839f3ef59 - inlined_ast: d80ec1ffddc35be6bbbf077cb3daf65b4ab3fcf97f5175aff647b57839f3ef59 - dce_ast: 3286837f9e802d63e867f2b9a387bae9f8c8f3d4d7f6171cc8810de8cf17ff82 + - initial_symbol_table: 66b952ec337d00873d477ad42e8f72428b66832307be8112bda44e3d0f617317 + type_checked_symbol_table: 98d31443f200743ef4c48f62f17ff376c7744e9702ea53d00b9555583b9c80fd + unrolled_symbol_table: 98d31443f200743ef4c48f62f17ff376c7744e9702ea53d00b9555583b9c80fd + initial_ast: 13990f2f4886f0de2240c4e84c94289bb12e131b2c41748c0f18239389a97d4a + unrolled_ast: 13990f2f4886f0de2240c4e84c94289bb12e131b2c41748c0f18239389a97d4a + ssa_ast: ae9b46baffdee53c9e0d5e505972f83deaf640fa7ab840f7cb05e5c14a2927d9 + flattened_ast: 14430d98573fea58983dd14d2d8cb2439ba466dd02efda1824d192d01063552e + destructured_ast: 97075f53ead72e0666cf57656202d10a9eeba2decdb09b0b470c57789fb2d0d7 + inlined_ast: 97075f53ead72e0666cf57656202d10a9eeba2decdb09b0b470c57789fb2d0d7 + dce_ast: 841aea9e416ac91d502ad4ad6005ce85ca7c504fc44b4c79132720c087e5ac1d bytecode: 40661150b3b39dd341d29dab9771982c77efa03e028104d1965c1e2e2fbf3c28 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/or.out b/tests/expectations/compiler/integers/i32/or.out index 20ba0ea667..652eec7742 100644 --- a/tests/expectations/compiler/integers/i32/or.out +++ b/tests/expectations/compiler/integers/i32/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 0561d711436cebb7040ab0979e44582124a6b9f85ac13e7078ac0ae91582d3dd - unrolled_ast: 0561d711436cebb7040ab0979e44582124a6b9f85ac13e7078ac0ae91582d3dd - ssa_ast: 6dbd93c77fbf4c411211de8f8b40b0b14077b8ecacd9503bac69839bdfd0184c - flattened_ast: beb6f3f08bae84aa97051321865feb6935d5a29b3cb85cf390da760c9c1bff09 - destructured_ast: 38693acbfaeb8a1c9b49459b28e47f022e80693fbc17169e80b3bb4dd440bdae - inlined_ast: 38693acbfaeb8a1c9b49459b28e47f022e80693fbc17169e80b3bb4dd440bdae - dce_ast: 38693acbfaeb8a1c9b49459b28e47f022e80693fbc17169e80b3bb4dd440bdae + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 71af7e59428039f4297d293b5f002ec650ea7e9fa482e2b6c815429c1d76f09c + unrolled_ast: 71af7e59428039f4297d293b5f002ec650ea7e9fa482e2b6c815429c1d76f09c + ssa_ast: cda03e000fb36808f7a84a1689e749a69e7a7864c88381af789550e32e6fed7f + flattened_ast: bb5bad41502776021587d1ce361cde9d0f3c93782b94f0da285ea64add45973b + destructured_ast: 34a8320befb78164e36bd0c0a35fa145a97c848d891cedca39f44fa615d83636 + inlined_ast: 34a8320befb78164e36bd0c0a35fa145a97c848d891cedca39f44fa615d83636 + dce_ast: 34a8320befb78164e36bd0c0a35fa145a97c848d891cedca39f44fa615d83636 bytecode: 607f946bff91ee499a6d977e52f6cbc32678d1306e1e6437adc3ed3720d77a02 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/pow.out b/tests/expectations/compiler/integers/i32/pow.out index 492ad16524..942a990bd3 100644 --- a/tests/expectations/compiler/integers/i32/pow.out +++ b/tests/expectations/compiler/integers/i32/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 0681e34cc8ee87a5c33d63dba23b10ebcc3b613ba058d785c61f3225566f690d - unrolled_ast: 0681e34cc8ee87a5c33d63dba23b10ebcc3b613ba058d785c61f3225566f690d - ssa_ast: a775b23c4775095d2f04c70df0349e9d04fca64df836d5500f943f1fc0232e35 - flattened_ast: 8eef92244727cbcc9cbe3fe29a85aed10d4a38c2a6926834b65fb0e82937f532 - destructured_ast: 38989b12936be80a8396f01ec49762e2210995cb385294e85cb1980fc764f835 - inlined_ast: 38989b12936be80a8396f01ec49762e2210995cb385294e85cb1980fc764f835 - dce_ast: 38989b12936be80a8396f01ec49762e2210995cb385294e85cb1980fc764f835 + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 05e13f429348333ba903636927b2c50162c8a347d66e26667d1e1b8aba0ca8a2 + unrolled_ast: 05e13f429348333ba903636927b2c50162c8a347d66e26667d1e1b8aba0ca8a2 + ssa_ast: 244d290b79b21e525f93d00eac4d06129ba3bb357e76febf785ea5cad4f7c0cb + flattened_ast: e0202c213fbd5c3ccb5869187174645cf8f4f5718a11aef1c4307957e2df5e51 + destructured_ast: d308c2d3bdd7b358ba20742b0dc6ce50f7cf530a9a19dd27452ab02beba2b134 + inlined_ast: d308c2d3bdd7b358ba20742b0dc6ce50f7cf530a9a19dd27452ab02beba2b134 + dce_ast: d308c2d3bdd7b358ba20742b0dc6ce50f7cf530a9a19dd27452ab02beba2b134 bytecode: 356e8fd9b7a616538d51b58accbf2cb604812f8d4e1d984ed091819b6b1dd7ef errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/rem.out b/tests/expectations/compiler/integers/i32/rem.out index 20acee3d61..f2c8087022 100644 --- a/tests/expectations/compiler/integers/i32/rem.out +++ b/tests/expectations/compiler/integers/i32/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 52a39fb369a88f016a95e8dc24c10f01eee9747dd0685e683d621a37c390af5a - unrolled_ast: 52a39fb369a88f016a95e8dc24c10f01eee9747dd0685e683d621a37c390af5a - ssa_ast: 383a5bcb61ab5ad1c95ebaf3aab7d6bddb9a21fdf5b580370d765e55d4a71dee - flattened_ast: f23f1ffae8b0bb7b0e68b1dbe27957f9815aa8cb03dcc66e5dc4b85c26bed3b0 - destructured_ast: fa7c3f8cd14afb16217310937943b823fca9585eb32249afd1d42e6fb54d7ea5 - inlined_ast: fa7c3f8cd14afb16217310937943b823fca9585eb32249afd1d42e6fb54d7ea5 - dce_ast: fa7c3f8cd14afb16217310937943b823fca9585eb32249afd1d42e6fb54d7ea5 + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: acba908e9d5b1767789cfe82a56fd9ed73934d99ed475444c2df64313ffd1bd8 + unrolled_ast: acba908e9d5b1767789cfe82a56fd9ed73934d99ed475444c2df64313ffd1bd8 + ssa_ast: a4b6bdce3f32753d32e21edaf319875cb7f4f3737cc398e26ed1dd2b936c6520 + flattened_ast: c4ce78fbc629d58d53e738ef9280304760a8e4ced8ad731d133bce56d665f782 + destructured_ast: bdcce15872299da3d32dd2c89c1d53a0c72ea5dd26b658fa75759aa259826123 + inlined_ast: bdcce15872299da3d32dd2c89c1d53a0c72ea5dd26b658fa75759aa259826123 + dce_ast: bdcce15872299da3d32dd2c89c1d53a0c72ea5dd26b658fa75759aa259826123 bytecode: 58eca9e830625c2f8ae8836c94380e3decec48e4ea0b0b07421a69dffafc9366 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/shl.out b/tests/expectations/compiler/integers/i32/shl.out index c142685527..7942f2900f 100644 --- a/tests/expectations/compiler/integers/i32/shl.out +++ b/tests/expectations/compiler/integers/i32/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 4a84b913b313375e06c6fa56f22da093c85df75ada9a6826ce87501a5425a55a - unrolled_ast: 4a84b913b313375e06c6fa56f22da093c85df75ada9a6826ce87501a5425a55a - ssa_ast: 0150e16600559333268e9546d044ffc2dec7cefec9694aca1c3138aef5928d80 - flattened_ast: f234f2f8f9dd9824cd8191c7b930180deb8894ca0f3d77f13e60978eb569dbfb - destructured_ast: fd23ee01d47289138a96e1c755f1dc1b7c57c9e8b52ba0198d0f8285d8088d28 - inlined_ast: fd23ee01d47289138a96e1c755f1dc1b7c57c9e8b52ba0198d0f8285d8088d28 - dce_ast: fd23ee01d47289138a96e1c755f1dc1b7c57c9e8b52ba0198d0f8285d8088d28 + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 12099ec5183c5cbc22451fc6587b091dd154b90657b897872590acff5db71f0d + unrolled_ast: 12099ec5183c5cbc22451fc6587b091dd154b90657b897872590acff5db71f0d + ssa_ast: 6a4ca2dafff756a41be9ce8f17e0ea15b1ad3dffd0c23676a0152c9fcb72ffe9 + flattened_ast: af94e9f76a67dee7501ebe78fca9a11aaf9febefd891d35ec0c9c0608aedb8b9 + destructured_ast: ebfaa68e27712b1a2dad15d004061710695aa179e0e7e4855cff53679ddd3aa4 + inlined_ast: ebfaa68e27712b1a2dad15d004061710695aa179e0e7e4855cff53679ddd3aa4 + dce_ast: ebfaa68e27712b1a2dad15d004061710695aa179e0e7e4855cff53679ddd3aa4 bytecode: 7b5bbc80ede3dfcc182728241b3f4a889f3c1afc6e5db865947f34cc0eab889c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/shr.out b/tests/expectations/compiler/integers/i32/shr.out index 923a2ba7d9..1aa3f4eaa1 100644 --- a/tests/expectations/compiler/integers/i32/shr.out +++ b/tests/expectations/compiler/integers/i32/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: ddfda0595113a2069fbdae4ff1954fad3915afb4ba18aeb6a9ed6ae822acdc0c - unrolled_ast: ddfda0595113a2069fbdae4ff1954fad3915afb4ba18aeb6a9ed6ae822acdc0c - ssa_ast: ee82a5f21be2d5177fb279f1d1772f165671e09d02616c805238b4471158681c - flattened_ast: e4d61caf4e1d3687c2683d3c2247e2cbe27d2b5944aaef2344281a8b61f53a87 - destructured_ast: 5982a4213f1d3131ba8c69d55618da0a3221abbb2c88e1a6c40932f127362417 - inlined_ast: 5982a4213f1d3131ba8c69d55618da0a3221abbb2c88e1a6c40932f127362417 - dce_ast: 5982a4213f1d3131ba8c69d55618da0a3221abbb2c88e1a6c40932f127362417 + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: a09a095a6d675622d1adfd7f85ef07e4dcf29554e94c4ac371c84097781664dd + unrolled_ast: a09a095a6d675622d1adfd7f85ef07e4dcf29554e94c4ac371c84097781664dd + ssa_ast: 2bc98c325a44d9d345a83b39480b326ca88d0850fd96c148be941d64ccc2c765 + flattened_ast: 7cd8b90ae5254a3ceb8722aec0de9720b760ae259066f619c5f225e1310c4e42 + destructured_ast: 8337b00fa19e5398b06e8be9079e636eeaf512870f1771a4beeb87c9749ea1a5 + inlined_ast: 8337b00fa19e5398b06e8be9079e636eeaf512870f1771a4beeb87c9749ea1a5 + dce_ast: 8337b00fa19e5398b06e8be9079e636eeaf512870f1771a4beeb87c9749ea1a5 bytecode: 4beebe6f64c29d63c9bafe8a3a58e52b14705368f667c1a44fd85d5d46e80f6c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/sub.out b/tests/expectations/compiler/integers/i32/sub.out index 7a1c11cc0c..f07c88f6fc 100644 --- a/tests/expectations/compiler/integers/i32/sub.out +++ b/tests/expectations/compiler/integers/i32/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: e023e85d4fe4e8731f19cfd2611f50e9f4c386bd6f27537c909d0f66acfe8caf - type_checked_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - unrolled_symbol_table: 8fef237a7520215ffe90454abf80ea48a8b557494e913e6fb6c61735078960b4 - initial_ast: 47fe9b510cc376cbfae45425cf68fba621d28ae2f8c3ac27f1000ff71111a723 - unrolled_ast: 47fe9b510cc376cbfae45425cf68fba621d28ae2f8c3ac27f1000ff71111a723 - ssa_ast: c6688ecc7c5646350db4d917481b96ee91b163db7966623cc5d54e807bccc57a - flattened_ast: cf460aea030e7130316675c89065a23985cb4ee77b17b1d68882c34b72f4846d - destructured_ast: 815f4d00c9df498ae302ed96b8752f4cd105311c6f8d96e930a6b2d6289edb3a - inlined_ast: 815f4d00c9df498ae302ed96b8752f4cd105311c6f8d96e930a6b2d6289edb3a - dce_ast: 815f4d00c9df498ae302ed96b8752f4cd105311c6f8d96e930a6b2d6289edb3a + - initial_symbol_table: fb4311ca1b374715d63002d60a5460943b85b1f3369784aa3d80d36e82c0f015 + type_checked_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + unrolled_symbol_table: f3d10541b6e1549f2e93043e338effe9d53e2adbae384ed8596c61c8618050d2 + initial_ast: 064a22dc07662c201b54d69378f72bd081ef55bd1407aa030235503481203123 + unrolled_ast: 064a22dc07662c201b54d69378f72bd081ef55bd1407aa030235503481203123 + ssa_ast: b05b83b3d3efe19f0861c866f1c6079b2babd9ab9ad089fe092a84f7874922de + flattened_ast: 44adb1b7ccee424f93f15cb6a63de4920b2ec121453e4eaa4fca07899a804fda + destructured_ast: 272ae9ae35e27a280415b8d7fb15d7fccbe936ac1dfa1e7bab910db6559a3804 + inlined_ast: 272ae9ae35e27a280415b8d7fb15d7fccbe936ac1dfa1e7bab910db6559a3804 + dce_ast: 272ae9ae35e27a280415b8d7fb15d7fccbe936ac1dfa1e7bab910db6559a3804 bytecode: 8efbc5343f7c2f0c0978f035231692e7ff00b213495d8713911fe1be40aa91f4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/ternary.out b/tests/expectations/compiler/integers/i32/ternary.out index 5d7f048394..3d47cf7aad 100644 --- a/tests/expectations/compiler/integers/i32/ternary.out +++ b/tests/expectations/compiler/integers/i32/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: bdb921d2ad7722e89d04b1cb435f9d9e9e8b13bffaf72d03422d9951a9c112fd - type_checked_symbol_table: 340d8f3ac157ef65d3e58e9ccfe2ae08aeca484b8ec315b609c808df7606e0a2 - unrolled_symbol_table: 340d8f3ac157ef65d3e58e9ccfe2ae08aeca484b8ec315b609c808df7606e0a2 - initial_ast: 578c42356c412b14a9cf2fa1582bf0d942175522224b1ad6010118605c00ddda - unrolled_ast: 578c42356c412b14a9cf2fa1582bf0d942175522224b1ad6010118605c00ddda - ssa_ast: aaf1c7dd7921dd0db97f0b3defe3c2415984d06f1cd3e1251342d44d7b0ebc43 - flattened_ast: 23aefac2ce289cfa9805f4ce0aa2c3a5880293c01688646c7a16c731242dc535 - destructured_ast: 71013457888787a0586670da5335653fc112424fc92df5a18b685de66d268286 - inlined_ast: 71013457888787a0586670da5335653fc112424fc92df5a18b685de66d268286 - dce_ast: 71013457888787a0586670da5335653fc112424fc92df5a18b685de66d268286 + - initial_symbol_table: d4123b51f613e69646151db2530e356dcdd887224a390a64d7acdbd331c36ff0 + type_checked_symbol_table: 4b92865e6658ff189fab18e349e4f91bb971c105d3a37499165613ee9293c71a + unrolled_symbol_table: 4b92865e6658ff189fab18e349e4f91bb971c105d3a37499165613ee9293c71a + initial_ast: 4f6ff85562e92f6ba1245fceb0499d13118935be0e8c83f4534576e8389fa175 + unrolled_ast: 4f6ff85562e92f6ba1245fceb0499d13118935be0e8c83f4534576e8389fa175 + ssa_ast: 5631639db9e247409a80dce752029a18239275613d90af456fcdeba1042a945d + flattened_ast: 1383ced06864d1b61e8db9def42dd065116c1834ab1d3ffefe67f23787bed1dd + destructured_ast: c7c8a8aab904d7b1bee7c8dc536b2089a1f43a7e1e6d8d02950c995fb4ea2038 + inlined_ast: c7c8a8aab904d7b1bee7c8dc536b2089a1f43a7e1e6d8d02950c995fb4ea2038 + dce_ast: c7c8a8aab904d7b1bee7c8dc536b2089a1f43a7e1e6d8d02950c995fb4ea2038 bytecode: 8255076ed16f7675cce867bf0b6ab1eacad9bdc4735188bb9b1b2dc40cf24ce0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i32/xor.out b/tests/expectations/compiler/integers/i32/xor.out index fdc59df311..5951e31087 100644 --- a/tests/expectations/compiler/integers/i32/xor.out +++ b/tests/expectations/compiler/integers/i32/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 90df190b2a889ce4bf7f89a10d3a5e7650e09d9f8a142425c6523b638c99ca02 - type_checked_symbol_table: f455127bfb94b2c38be60c32e5c6135e29d3337bf3e8da17752f1544bbebc1ac - unrolled_symbol_table: f455127bfb94b2c38be60c32e5c6135e29d3337bf3e8da17752f1544bbebc1ac - initial_ast: ead579240717b91b2bee70eece07f00935926f284c8b7dd959d3167fc988cb27 - unrolled_ast: ead579240717b91b2bee70eece07f00935926f284c8b7dd959d3167fc988cb27 - ssa_ast: 2cc247a486a8c03cca0e4adf73f02380dfc58dc2131a5257f8ad0daae7b9faa6 - flattened_ast: 82c4a936d99ad18939ef13c060917dc1fcfc97e9664e2fe2155ef5e8e48dca56 - destructured_ast: bc3db6eb3047b46343543901ff6488157990ee76aa1e90c946b9f6cee1e48606 - inlined_ast: bc3db6eb3047b46343543901ff6488157990ee76aa1e90c946b9f6cee1e48606 - dce_ast: bc3db6eb3047b46343543901ff6488157990ee76aa1e90c946b9f6cee1e48606 + - initial_symbol_table: 8cdbad9bcb0cd15822e8bdaaf2cca47aeb3a5eddefa41e39897a7a64ea95e928 + type_checked_symbol_table: 3625136886544543a6db8d1ea492f789ba092cc5bc6e956f8498386f44d39313 + unrolled_symbol_table: 3625136886544543a6db8d1ea492f789ba092cc5bc6e956f8498386f44d39313 + initial_ast: 81c2decb0cb1f537c37388714fe04e8cb654281520c0dcc6d237ba3ebc469a34 + unrolled_ast: 81c2decb0cb1f537c37388714fe04e8cb654281520c0dcc6d237ba3ebc469a34 + ssa_ast: 43c273668b2189d1ef88d67b13a0ecfe3da8c68f186f4735c8927c07ff3d4636 + flattened_ast: 8d927c8aa598beff09a292f3a7fedfb81a2859e287922ef22dda9df9145a577e + destructured_ast: 3759eb8b5750bd7c6d69ebabbdcac69e1cdceed42bcb36615e88a49aaae534c6 + inlined_ast: 3759eb8b5750bd7c6d69ebabbdcac69e1cdceed42bcb36615e88a49aaae534c6 + dce_ast: 3759eb8b5750bd7c6d69ebabbdcac69e1cdceed42bcb36615e88a49aaae534c6 bytecode: 6a7c1505b6d57a26f767b63372873413e4ca3a4b7ff7b42f652a2841d843da64 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/add.out b/tests/expectations/compiler/integers/i64/add.out index 5fed8777bb..f6e857e1a7 100644 --- a/tests/expectations/compiler/integers/i64/add.out +++ b/tests/expectations/compiler/integers/i64/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: 1b56f68dabbeb2505bbff74317456b5569dc4f8df73c284efa574e10b365b406 - unrolled_ast: 1b56f68dabbeb2505bbff74317456b5569dc4f8df73c284efa574e10b365b406 - ssa_ast: e25501bc5741d4d7983d0eef4082176a1dbbf85c139aae784906001bb8f2603d - flattened_ast: 25778e271d3274b5491a073855ab14b20478144b9b5ddf11de6002e176a49743 - destructured_ast: 3973b4519ea0d3bf0d4bad54b5ab243279c89d3683f4d3745298c7fd31dc84ea - inlined_ast: 3973b4519ea0d3bf0d4bad54b5ab243279c89d3683f4d3745298c7fd31dc84ea - dce_ast: 3973b4519ea0d3bf0d4bad54b5ab243279c89d3683f4d3745298c7fd31dc84ea + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: c9d232fb83a35adfe16995c9b1af68993420c81097839679e731e3d3fb0f5b00 + unrolled_ast: c9d232fb83a35adfe16995c9b1af68993420c81097839679e731e3d3fb0f5b00 + ssa_ast: c355bc55fa2cca58bd38fbb06725e3f190eda3de7ab781a7bac2c7e762297500 + flattened_ast: 9e3faeeca01245c4d5ae9ba567a7e41ea49bc0b3f229b687655691b9aac489dd + destructured_ast: 6be9bafd4ecd999e5d7f3078ffc370a5ae51536cf8859d66349a2d0aba906d67 + inlined_ast: 6be9bafd4ecd999e5d7f3078ffc370a5ae51536cf8859d66349a2d0aba906d67 + dce_ast: 6be9bafd4ecd999e5d7f3078ffc370a5ae51536cf8859d66349a2d0aba906d67 bytecode: cacab9d7bb5db2f55373c7acaab14386b1e68569b39d0ca4837e07d67d31b78e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/and.out b/tests/expectations/compiler/integers/i64/and.out index 5995758284..01cac562a0 100644 --- a/tests/expectations/compiler/integers/i64/and.out +++ b/tests/expectations/compiler/integers/i64/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: 697db87e2a4427e75c4bdb92757d8a1a33886c38456bdfdf2b191a2624074b88 - unrolled_ast: 697db87e2a4427e75c4bdb92757d8a1a33886c38456bdfdf2b191a2624074b88 - ssa_ast: fab891202ff58691ba00af58b4e4fa79c7f05dc64ad325f9b058a1171ef6aa48 - flattened_ast: d2fe05e2a2d58475d799963d286b634a660de811b82441b835dc95d007103df0 - destructured_ast: 63f8c90a20c5e65f3226c6f2820ff1507a96debe00423b8eaff0007635950180 - inlined_ast: 63f8c90a20c5e65f3226c6f2820ff1507a96debe00423b8eaff0007635950180 - dce_ast: 63f8c90a20c5e65f3226c6f2820ff1507a96debe00423b8eaff0007635950180 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 0f11c1b6985527f06c6556fb6fc1e7887e3c535df9779fd05da4b198358c7bc9 + unrolled_ast: 0f11c1b6985527f06c6556fb6fc1e7887e3c535df9779fd05da4b198358c7bc9 + ssa_ast: 375ce6fcbd9791d57fb5df396d8c16588984146cdcf122a9f10ddbed863c40e3 + flattened_ast: 86a101062845589a5cf093beabbc2cb4da257a0815e782c82bc5dc7d10e02895 + destructured_ast: c9b360ae03010851530259579868ca91dc86a7ca291e2944ac29acf6a3785cdb + inlined_ast: c9b360ae03010851530259579868ca91dc86a7ca291e2944ac29acf6a3785cdb + dce_ast: c9b360ae03010851530259579868ca91dc86a7ca291e2944ac29acf6a3785cdb bytecode: 8867cc02772ac290447a78df347c850a4f5a2cf3077d76fa71c1c3ee43ba6e55 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/console_assert.out b/tests/expectations/compiler/integers/i64/console_assert.out index 707b0267ce..324e1c3d60 100644 --- a/tests/expectations/compiler/integers/i64/console_assert.out +++ b/tests/expectations/compiler/integers/i64/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c93d3b6c13abe2719937ce4c349ec6db9d80f12f0beef4c5b18937c2093ba0ac - type_checked_symbol_table: 874a315f03e475a795d888d4f4ccf88f7a2f48baa508ff6bc5b4e22245c2b9fa - unrolled_symbol_table: 874a315f03e475a795d888d4f4ccf88f7a2f48baa508ff6bc5b4e22245c2b9fa - initial_ast: 80a4ceca3ccc559a08c8e500403ddb7f9732278367e05c5336ab9cf129682ec8 - unrolled_ast: 80a4ceca3ccc559a08c8e500403ddb7f9732278367e05c5336ab9cf129682ec8 - ssa_ast: 9556d88134fc806ee934f73bb381e56fa41de7a194ca19bbcc689db3693024f5 - flattened_ast: 1f4ffe8058f0273e5cf0d7e0398bca6d7f01038d3290d281ee1cc2770fe034ff - destructured_ast: 1e128afe877e48c5fb2dece5ee00ec2020d7b03d25a9b2ac888cbf5c6a8647d4 - inlined_ast: 1e128afe877e48c5fb2dece5ee00ec2020d7b03d25a9b2ac888cbf5c6a8647d4 - dce_ast: 1e128afe877e48c5fb2dece5ee00ec2020d7b03d25a9b2ac888cbf5c6a8647d4 + - initial_symbol_table: c2055f52822c6c4fbd3df96e111f91a2d34eb15656c69025171164c7c04c346f + type_checked_symbol_table: a632eca855c3b1ccf38e4ee51a669c3fd201b5cb9e2a019b01155842505b7880 + unrolled_symbol_table: a632eca855c3b1ccf38e4ee51a669c3fd201b5cb9e2a019b01155842505b7880 + initial_ast: 228ad887064b44a51d5cc1573bf8734c523b11c9ce7dd5643dee86ca256e3485 + unrolled_ast: 228ad887064b44a51d5cc1573bf8734c523b11c9ce7dd5643dee86ca256e3485 + ssa_ast: 934822936ed7db4c73d743d401554a85f4f6d7c05dd12292e5266183c9cd5f38 + flattened_ast: 2cfde0d97e3f182fad5a034f3b54f17c6d305396ae90f3b8ab4c529df9687485 + destructured_ast: fbc317872993cddc0c5b52b989b8b4d375625aedd15eb47e4042bcac1858b33c + inlined_ast: fbc317872993cddc0c5b52b989b8b4d375625aedd15eb47e4042bcac1858b33c + dce_ast: fbc317872993cddc0c5b52b989b8b4d375625aedd15eb47e4042bcac1858b33c bytecode: 84d9ec69408c0662a22522e0fde8c535c8f73af3da10f98f7b228a9c9ac2742e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/div.out b/tests/expectations/compiler/integers/i64/div.out index 4241f6db54..9d985884be 100644 --- a/tests/expectations/compiler/integers/i64/div.out +++ b/tests/expectations/compiler/integers/i64/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: cabc341c910fef84096f7dff3943fd87825c733a3366da07df5a3e9b9ffffb42 - unrolled_ast: cabc341c910fef84096f7dff3943fd87825c733a3366da07df5a3e9b9ffffb42 - ssa_ast: a975b9af77991ae1337e66d7cbef85413f2ab300e3922535748b329ff41b73a1 - flattened_ast: 6bb2286584a648158a351581ab9d747d284e3a0401624c7ed2f65e77163b9f36 - destructured_ast: 6bdf380121dea637dfe81efea135d48c133892003acb1b697352f4424db14e95 - inlined_ast: 6bdf380121dea637dfe81efea135d48c133892003acb1b697352f4424db14e95 - dce_ast: 6bdf380121dea637dfe81efea135d48c133892003acb1b697352f4424db14e95 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 5045c0756bc926839854f62eca1fbe1974619a89a99c858ad763953a253481fd + unrolled_ast: 5045c0756bc926839854f62eca1fbe1974619a89a99c858ad763953a253481fd + ssa_ast: 0674dda31c63bb8ced209b7e6ba90680dc2db04b7ee3a21d21423afac284cb74 + flattened_ast: 6603f9ffa4c76d1a8c6755326c6cf75240d6124027c5dce109a27cecc1372d1d + destructured_ast: 52fd2a739fc8ea98513212c92652d41762248c7dc028478b4180c35ffbc51beb + inlined_ast: 52fd2a739fc8ea98513212c92652d41762248c7dc028478b4180c35ffbc51beb + dce_ast: 52fd2a739fc8ea98513212c92652d41762248c7dc028478b4180c35ffbc51beb bytecode: 1d370b22d4ae239f0bcb12a771b471bfbbf8c43ad4b3f15b8223b6f122f29457 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/eq.out b/tests/expectations/compiler/integers/i64/eq.out index e41858cb6d..e8edf90f48 100644 --- a/tests/expectations/compiler/integers/i64/eq.out +++ b/tests/expectations/compiler/integers/i64/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b78baad402bc3681fafbe605b5347b9a3e664654d54ef82470cdca7b53718b91 - type_checked_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - unrolled_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - initial_ast: d7d1299bd300d07ee6e6625439b2b7f29be52e79c6aff7a8b25c50e72086c049 - unrolled_ast: d7d1299bd300d07ee6e6625439b2b7f29be52e79c6aff7a8b25c50e72086c049 - ssa_ast: 5c21227e543bde9b460e61acb47678f569444869b1eb37b6365d42be383277d4 - flattened_ast: 534838fba2ca02e971919cb677f302f061bac78f36a9b3d8dcd30ee4b3530d5a - destructured_ast: ebcabab6f859326e27cb32a76ac634a00e67f9f5ebcf85f629de0e0cfdfc00b6 - inlined_ast: ebcabab6f859326e27cb32a76ac634a00e67f9f5ebcf85f629de0e0cfdfc00b6 - dce_ast: ebcabab6f859326e27cb32a76ac634a00e67f9f5ebcf85f629de0e0cfdfc00b6 + - initial_symbol_table: 36ef986ed919c0c882e3c597226a90c2b404cca0f7adacfcf595a752410ebe22 + type_checked_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + unrolled_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + initial_ast: a8ad3c5520da991c87c44504222f6855aee28d8d264aeca64ce40cde42857437 + unrolled_ast: a8ad3c5520da991c87c44504222f6855aee28d8d264aeca64ce40cde42857437 + ssa_ast: d29739a4b179ddadefe51dbfbdff32ace15c4168c0ca48a169be13f60126eeb9 + flattened_ast: 98a42b22def2de73f594e53b0c8b4b5229eb3ac58ec57bb7c85ea631ecd38b39 + destructured_ast: f14e04f892f9eacaf1f0008a498f84cbb171c22e535199d693ce1ce959b43ad0 + inlined_ast: f14e04f892f9eacaf1f0008a498f84cbb171c22e535199d693ce1ce959b43ad0 + dce_ast: f14e04f892f9eacaf1f0008a498f84cbb171c22e535199d693ce1ce959b43ad0 bytecode: 3b16a9ffcba2d86d0099abfc040442550dad3a04f8ba2bbdec05f93ec3c1b6ec errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/ge.out b/tests/expectations/compiler/integers/i64/ge.out index 4b8a2a1988..db5ffc0c67 100644 --- a/tests/expectations/compiler/integers/i64/ge.out +++ b/tests/expectations/compiler/integers/i64/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b78baad402bc3681fafbe605b5347b9a3e664654d54ef82470cdca7b53718b91 - type_checked_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - unrolled_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - initial_ast: b661de33fe13385a3e9f888c27e1ffdd57bafb803a76d0fab3dd357fa39ddf2b - unrolled_ast: b661de33fe13385a3e9f888c27e1ffdd57bafb803a76d0fab3dd357fa39ddf2b - ssa_ast: ccfa90c47542bd76c69361cc207b7b3a95ea3f467e3d18fb35ef5c081303e131 - flattened_ast: 03bd1342db2f54c21d5934600a5033e62e5fa1f3e350db0c65a300b873817af0 - destructured_ast: 5ac059e837720b25691c307897faeef11aef1692b76ac06997ddd39e12338d8e - inlined_ast: 5ac059e837720b25691c307897faeef11aef1692b76ac06997ddd39e12338d8e - dce_ast: 5ac059e837720b25691c307897faeef11aef1692b76ac06997ddd39e12338d8e + - initial_symbol_table: 36ef986ed919c0c882e3c597226a90c2b404cca0f7adacfcf595a752410ebe22 + type_checked_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + unrolled_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + initial_ast: fdcada6a315654b6399df0fc70d26b86927943f79ec724bdca3fd52f69e26238 + unrolled_ast: fdcada6a315654b6399df0fc70d26b86927943f79ec724bdca3fd52f69e26238 + ssa_ast: afb4e157d263cb0193277a9adfec092d5ed7c347bce3d0a0f5820b908b69a267 + flattened_ast: d20c61b3b243f7fb2c487a8178d84b5a29a69aa9d27c0535d1f18d7b40183c2e + destructured_ast: 77e71497ea665a3796b2ca4764799f792fa349681038e7b5d770736d1581aafd + inlined_ast: 77e71497ea665a3796b2ca4764799f792fa349681038e7b5d770736d1581aafd + dce_ast: 77e71497ea665a3796b2ca4764799f792fa349681038e7b5d770736d1581aafd bytecode: ed40a103f79cba4bb4b6ca00730fb673def3a223840271519eecbc1ee845f325 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/gt.out b/tests/expectations/compiler/integers/i64/gt.out index 5b6f293910..8388a961bc 100644 --- a/tests/expectations/compiler/integers/i64/gt.out +++ b/tests/expectations/compiler/integers/i64/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b78baad402bc3681fafbe605b5347b9a3e664654d54ef82470cdca7b53718b91 - type_checked_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - unrolled_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - initial_ast: af5841af2ae09c14d87e037afa1febbb29857fa3afedd3dc53ec748b3df25587 - unrolled_ast: af5841af2ae09c14d87e037afa1febbb29857fa3afedd3dc53ec748b3df25587 - ssa_ast: af47af625ff4592c0f0dbe766c4151071317d340cd745846409647d9cb4ad444 - flattened_ast: 5b02743c60de25a58567b73e025b8212f4a8abef0131127dfdcf51ad3be9c87b - destructured_ast: 4804d0c676c2424144921d82ef545cb893ca30e78bee447fef66f16f384a98a3 - inlined_ast: 4804d0c676c2424144921d82ef545cb893ca30e78bee447fef66f16f384a98a3 - dce_ast: 4804d0c676c2424144921d82ef545cb893ca30e78bee447fef66f16f384a98a3 + - initial_symbol_table: 36ef986ed919c0c882e3c597226a90c2b404cca0f7adacfcf595a752410ebe22 + type_checked_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + unrolled_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + initial_ast: c1ef85dd91e562042b90dc06cbbd2fd825d2d258c0c83d8e8d93902920f4c574 + unrolled_ast: c1ef85dd91e562042b90dc06cbbd2fd825d2d258c0c83d8e8d93902920f4c574 + ssa_ast: 28f28b5e6c952277b12156ecf52212dd7b07c1f0c11ea6fe380320d178497b5d + flattened_ast: e9fe75910cede9386b5588243fc4803491f5736ecaeba29ce1b50d60b649b8a1 + destructured_ast: 91d66bab405cc49f08df2e3789559d7f8480f3427b8a7fb1733f21b80b2df6fb + inlined_ast: 91d66bab405cc49f08df2e3789559d7f8480f3427b8a7fb1733f21b80b2df6fb + dce_ast: 91d66bab405cc49f08df2e3789559d7f8480f3427b8a7fb1733f21b80b2df6fb bytecode: 9e8596394abe6381f7e39ef612e78acc5b9fd4e2cd036a0b3f1296686182a3e5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/le.out b/tests/expectations/compiler/integers/i64/le.out index d0d67363c6..26a23617bd 100644 --- a/tests/expectations/compiler/integers/i64/le.out +++ b/tests/expectations/compiler/integers/i64/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b78baad402bc3681fafbe605b5347b9a3e664654d54ef82470cdca7b53718b91 - type_checked_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - unrolled_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - initial_ast: a6b0575c5ef03630b11f92c3b44a0045916b5dd151524d00b2f47b6b74cbb494 - unrolled_ast: a6b0575c5ef03630b11f92c3b44a0045916b5dd151524d00b2f47b6b74cbb494 - ssa_ast: bebf7d225a2b71307999ab49edd1026e816428ad486dd1e29973376e9ff2cb86 - flattened_ast: 32c6bbf4bd1f6b6b5e2ef9cbb28719a60e6f47da114e9d2a7a42d786099cec8b - destructured_ast: 3db2b5311af112c806357e6aa14c29028e88982e86f8c97e09a5dd54b838683a - inlined_ast: 3db2b5311af112c806357e6aa14c29028e88982e86f8c97e09a5dd54b838683a - dce_ast: 3db2b5311af112c806357e6aa14c29028e88982e86f8c97e09a5dd54b838683a + - initial_symbol_table: 36ef986ed919c0c882e3c597226a90c2b404cca0f7adacfcf595a752410ebe22 + type_checked_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + unrolled_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + initial_ast: be458f57dbafcb28a90423f83b3383509052be46383da5dafd0ff4b602c3ec33 + unrolled_ast: be458f57dbafcb28a90423f83b3383509052be46383da5dafd0ff4b602c3ec33 + ssa_ast: 1ddfcd0546b3b2ddfe7eb73654a8d5042da8165d390f91d11f11bb6744f5e835 + flattened_ast: 6bc8134caf85c00cf01b26505fb5b8dd7f4ff473c0d1b680df227e8f4737bc3f + destructured_ast: 8ff08a91e5629ab7e74e11e65f04b2b2f015c05ee26db913ce4ba70f9628700b + inlined_ast: 8ff08a91e5629ab7e74e11e65f04b2b2f015c05ee26db913ce4ba70f9628700b + dce_ast: 8ff08a91e5629ab7e74e11e65f04b2b2f015c05ee26db913ce4ba70f9628700b bytecode: b1f586e188d06fec69970d2cbf367157f2046040b6b848b8b0bc3dd6b02aa095 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/lt.out b/tests/expectations/compiler/integers/i64/lt.out index a8c0f920eb..b626e1be9c 100644 --- a/tests/expectations/compiler/integers/i64/lt.out +++ b/tests/expectations/compiler/integers/i64/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b78baad402bc3681fafbe605b5347b9a3e664654d54ef82470cdca7b53718b91 - type_checked_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - unrolled_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - initial_ast: 05361e716c050e23686a1a344197845333b767ab87dce894456e40312c5805da - unrolled_ast: 05361e716c050e23686a1a344197845333b767ab87dce894456e40312c5805da - ssa_ast: 374224cb2005b3beda46de8390280243735e323c0411fa30a4d2dd3eb99d522f - flattened_ast: cbef5e2c57e4d5e115fc88540ae168faf7c06a178cf1c02aae1ee102b9cd9d16 - destructured_ast: 3e3f0c51d3260ff76a732c8e95b641259e029ac651a1c4d82fabc4a0680c7b8f - inlined_ast: 3e3f0c51d3260ff76a732c8e95b641259e029ac651a1c4d82fabc4a0680c7b8f - dce_ast: 3e3f0c51d3260ff76a732c8e95b641259e029ac651a1c4d82fabc4a0680c7b8f + - initial_symbol_table: 36ef986ed919c0c882e3c597226a90c2b404cca0f7adacfcf595a752410ebe22 + type_checked_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + unrolled_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + initial_ast: 0fe03f3c52a08bfbf3e33516c7cc0ffdc5947fcdfcb008398ba7fd2107852347 + unrolled_ast: 0fe03f3c52a08bfbf3e33516c7cc0ffdc5947fcdfcb008398ba7fd2107852347 + ssa_ast: 098e58f28b08fc0eee6eb2aca90c75a3ebc84a2e5107adbf613a7c1a351ad773 + flattened_ast: 3ec92b21818048d6ec56f4a8fad7149a01d1b35702993fac014239f262a28807 + destructured_ast: 9e95d364232c9acd62fbdac466a07347553398a09132ddbf420c261f41b5a528 + inlined_ast: 9e95d364232c9acd62fbdac466a07347553398a09132ddbf420c261f41b5a528 + dce_ast: 9e95d364232c9acd62fbdac466a07347553398a09132ddbf420c261f41b5a528 bytecode: 146646862a181a2d9c802993b30c04190405d0ec9cf00847c755162af14ab765 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/max.out b/tests/expectations/compiler/integers/i64/max.out index 51af958e9a..81cc6b0d5b 100644 --- a/tests/expectations/compiler/integers/i64/max.out +++ b/tests/expectations/compiler/integers/i64/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3fb7c5e176116a7dc4954b3be4325dd998acd896b4c1293a688acc0594794cb2 - type_checked_symbol_table: 4723a68475c24e4356c62cacee0160128e99deb4da91b3b92aa389cee4fe1c0d - unrolled_symbol_table: 4723a68475c24e4356c62cacee0160128e99deb4da91b3b92aa389cee4fe1c0d - initial_ast: ddc22e32285977e9debd489b5f54fa8184f9cf8bc7a55856fe3ac98f9532db74 - unrolled_ast: ddc22e32285977e9debd489b5f54fa8184f9cf8bc7a55856fe3ac98f9532db74 - ssa_ast: 90850c45cdc66258a926996e026ace7b44f3eca8512cda71f1b14cfaea2f7d84 - flattened_ast: e44f386aa5c52822788c06a271763bed56236df2fe00378973649deba175649d - destructured_ast: 6fd15644ac7492d45e098aaae4fe81181f94a2e282c4f4cf68be31cb6742ec42 - inlined_ast: 6fd15644ac7492d45e098aaae4fe81181f94a2e282c4f4cf68be31cb6742ec42 - dce_ast: 6fd15644ac7492d45e098aaae4fe81181f94a2e282c4f4cf68be31cb6742ec42 + - initial_symbol_table: 7ea20ae6d53ab7d6b33f2f5b775dfa7199bf8b80e7a899ea98da70cb69a1a201 + type_checked_symbol_table: aa9c8d7924b7876e8885975a283fe55b4564a291c3a241da95811f00d7ace5e8 + unrolled_symbol_table: aa9c8d7924b7876e8885975a283fe55b4564a291c3a241da95811f00d7ace5e8 + initial_ast: 9da49c3eba196eb891299be7534a59d7a5e5b4f6290530168957f4c2f4ca8749 + unrolled_ast: 9da49c3eba196eb891299be7534a59d7a5e5b4f6290530168957f4c2f4ca8749 + ssa_ast: 9a44e06036606f59b9c8b82ebf1c2380975f7f8809f2e74e488068a06b57a03a + flattened_ast: 2c4673bfc76d8b03e861b9b0cefcfed4d8114d88df545e1cf4d03bbfb05ac6b9 + destructured_ast: e3b910672502d5475004fe40c3d14ed047b4f2fee318e3aab4c390b98601d58b + inlined_ast: e3b910672502d5475004fe40c3d14ed047b4f2fee318e3aab4c390b98601d58b + dce_ast: e3b910672502d5475004fe40c3d14ed047b4f2fee318e3aab4c390b98601d58b bytecode: c8d4abba332861ba511e2f210502137e5aeeef23c159740de5649958515e3910 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/max_fail.out b/tests/expectations/compiler/integers/i64/max_fail.out index 88290b7609..21b3272ce7 100644 --- a/tests/expectations/compiler/integers/i64/max_fail.out +++ b/tests/expectations/compiler/integers/i64/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 9223372036854775808 is not a valid `i64`\n --> compiler-test:5:22\n |\n 5 | let a: i64 = 9223372036854775808i64;\n | ^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 9223372036854775808 is not a valid `i64`\n --> compiler-test:5:22\n |\n 5 | let a: i64 = 9223372036854775808i64;\n | ^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i64/min.out b/tests/expectations/compiler/integers/i64/min.out index c58c4eb734..9723b9264a 100644 --- a/tests/expectations/compiler/integers/i64/min.out +++ b/tests/expectations/compiler/integers/i64/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3fb7c5e176116a7dc4954b3be4325dd998acd896b4c1293a688acc0594794cb2 - type_checked_symbol_table: 4723a68475c24e4356c62cacee0160128e99deb4da91b3b92aa389cee4fe1c0d - unrolled_symbol_table: 4723a68475c24e4356c62cacee0160128e99deb4da91b3b92aa389cee4fe1c0d - initial_ast: 2587cc013ba5127252208765f88cd85fb66d83216617fb01ee0c50767207007b - unrolled_ast: 2587cc013ba5127252208765f88cd85fb66d83216617fb01ee0c50767207007b - ssa_ast: a002fa9344f406cd094423e0a90f3220c03e7eadd1ff5358f9c394776def1589 - flattened_ast: 05b8d4a02f686915898c23b74150bef385548d1039d631de36bf6e20103a8293 - destructured_ast: 5dd6b8e0cd406be5a8720ca8a65e414bd4381e59dff7c7219e2daa5b1da45333 - inlined_ast: 5dd6b8e0cd406be5a8720ca8a65e414bd4381e59dff7c7219e2daa5b1da45333 - dce_ast: 5dd6b8e0cd406be5a8720ca8a65e414bd4381e59dff7c7219e2daa5b1da45333 + - initial_symbol_table: 7ea20ae6d53ab7d6b33f2f5b775dfa7199bf8b80e7a899ea98da70cb69a1a201 + type_checked_symbol_table: aa9c8d7924b7876e8885975a283fe55b4564a291c3a241da95811f00d7ace5e8 + unrolled_symbol_table: aa9c8d7924b7876e8885975a283fe55b4564a291c3a241da95811f00d7ace5e8 + initial_ast: 744270cd3fc0c3c4baa5e44dc5b819b367618ae70e3b5de138a9c197a7b627d1 + unrolled_ast: 744270cd3fc0c3c4baa5e44dc5b819b367618ae70e3b5de138a9c197a7b627d1 + ssa_ast: bff22650c239198d63e378471d0e43a137f5cd6ba1507cfaca47254db5b11f33 + flattened_ast: 212392c6e1c4737020106015b77c38ebfd89848f2d7c6f32731c7eb76caad908 + destructured_ast: 7c4932e436a662f8598a71ea8d577c814e74a43975c67a6065bdbd728484913c + inlined_ast: 7c4932e436a662f8598a71ea8d577c814e74a43975c67a6065bdbd728484913c + dce_ast: 7c4932e436a662f8598a71ea8d577c814e74a43975c67a6065bdbd728484913c bytecode: ba879d9c018e4334cff11992ba1b8a0bcb0901d6efdb29a6daac15ce9bb32e2c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/min_fail.out b/tests/expectations/compiler/integers/i64/min_fail.out index 7e87b31545..ab2153f218 100644 --- a/tests/expectations/compiler/integers/i64/min_fail.out +++ b/tests/expectations/compiler/integers/i64/min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: feda4c31663d14a3d3e056cb5f57a5f9c9928ce9ad4c9379fc523ba0755264a7 - type_checked_symbol_table: 9b5ceb6b645c9805a11164ef2a6d3b7e9291d5e3cbd9d80afd696e8f3eca1032 - unrolled_symbol_table: 9b5ceb6b645c9805a11164ef2a6d3b7e9291d5e3cbd9d80afd696e8f3eca1032 - initial_ast: 64588bbd99109a2ff1056c4382a6b07c55e76af642a5a5846a2aa7104645c2e1 - unrolled_ast: 64588bbd99109a2ff1056c4382a6b07c55e76af642a5a5846a2aa7104645c2e1 - ssa_ast: 56099de077a67b75a010890f5b4866b3eddbfb6ea2532799b7c3d361ae1a761a - flattened_ast: 9b76b77d8888ffd960dc592cd7be510a63ffd282ae484b13624cff81720a7d50 - destructured_ast: 62b4e467b5e641d12d9d031fc465a1cd46985ebc810cc37df7979e5b4ad8978a - inlined_ast: 62b4e467b5e641d12d9d031fc465a1cd46985ebc810cc37df7979e5b4ad8978a - dce_ast: 62b4e467b5e641d12d9d031fc465a1cd46985ebc810cc37df7979e5b4ad8978a + - initial_symbol_table: 947c60bfce423ea3357684479af65b9a58e90287f2172387b3a4f563d5fad158 + type_checked_symbol_table: eadc9939ccff929c6b26b1d8f84b24cef6197462a6f99b4cdc5097a3c35ff418 + unrolled_symbol_table: eadc9939ccff929c6b26b1d8f84b24cef6197462a6f99b4cdc5097a3c35ff418 + initial_ast: 04005e74d09cc2287987ea07e25b793e127ff304a8490b51831f1dcb7d786e9b + unrolled_ast: 04005e74d09cc2287987ea07e25b793e127ff304a8490b51831f1dcb7d786e9b + ssa_ast: e83d1925a020f1daf0532abf07c22a6b9e5d6f237a4961246734decda7c23d76 + flattened_ast: 6293d515dbf52326ccd663dae41dde7520d1262309e434fa2a42eb55959284eb + destructured_ast: c47fb443282936b85ebd34cf78a1d50de82d76088eb917762311c787ffb8c493 + inlined_ast: c47fb443282936b85ebd34cf78a1d50de82d76088eb917762311c787ffb8c493 + dce_ast: c47fb443282936b85ebd34cf78a1d50de82d76088eb917762311c787ffb8c493 bytecode: 8060d7771b9a815e84dd576354e32cd26c7bf342fb513fe3b589de4c094701b4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/mul.out b/tests/expectations/compiler/integers/i64/mul.out index a04791a29d..18a932880d 100644 --- a/tests/expectations/compiler/integers/i64/mul.out +++ b/tests/expectations/compiler/integers/i64/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: 6961c970e2670191f87d6e853c7827793ba8afcd0363390260ea0d4b7f74f119 - unrolled_ast: 6961c970e2670191f87d6e853c7827793ba8afcd0363390260ea0d4b7f74f119 - ssa_ast: f93caadd7323414ae2a796fe5379f975139c278a18acfb664df8a81e0a4158e9 - flattened_ast: 63b8c508783ba6d0c2dc6e1970257194ccea7bc45804fe3b847a98dc23e33364 - destructured_ast: 4821938406a9330d533f01b9f81284945c3b345c107f3b9dde7007471110d696 - inlined_ast: 4821938406a9330d533f01b9f81284945c3b345c107f3b9dde7007471110d696 - dce_ast: 4821938406a9330d533f01b9f81284945c3b345c107f3b9dde7007471110d696 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 215649b715b55ec9baf3b428a8b5b310adcda570ac0259b62a4b1714b6efbb79 + unrolled_ast: 215649b715b55ec9baf3b428a8b5b310adcda570ac0259b62a4b1714b6efbb79 + ssa_ast: a8740b0db42dfdf982127aab19e1c1635d8203b71979bd492580b0e3fab3b1b0 + flattened_ast: fda9c96a743d635cdb92b2f48d73fac9c5404c5d80537726a9d419734a9f5a9c + destructured_ast: 98bd095fc7a4b9445fb72e3bd374e8b39a4b7d75898e63038457531d668f795b + inlined_ast: 98bd095fc7a4b9445fb72e3bd374e8b39a4b7d75898e63038457531d668f795b + dce_ast: 98bd095fc7a4b9445fb72e3bd374e8b39a4b7d75898e63038457531d668f795b bytecode: f4641ddee6184f6fc437aa0f4422f2ea01a26648f9c7bf5559a2471505ed8096 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/ne.out b/tests/expectations/compiler/integers/i64/ne.out index a8742ff77d..63929832f6 100644 --- a/tests/expectations/compiler/integers/i64/ne.out +++ b/tests/expectations/compiler/integers/i64/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b78baad402bc3681fafbe605b5347b9a3e664654d54ef82470cdca7b53718b91 - type_checked_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - unrolled_symbol_table: 042549976c2715bd8c0117dfae92d974f486281102158cbd4b787a07f4117811 - initial_ast: 3dcf6bcf0db4ca8c9b11663af343acd28dc393819167cf710603b546326b4d1e - unrolled_ast: 3dcf6bcf0db4ca8c9b11663af343acd28dc393819167cf710603b546326b4d1e - ssa_ast: a1daca57cc1343fce52fa4a56e51bd666c42f1bb27a11bee079b2205cc2da202 - flattened_ast: 915816ddb7a4ffbc7bf7167ea552c44b8a985bfa1a70dfbc7e5df13bba4a7d1a - destructured_ast: a3e47f2b9939f70b037d904fd60c22c87cd19b51ffdd68c94549b089e0345e6f - inlined_ast: a3e47f2b9939f70b037d904fd60c22c87cd19b51ffdd68c94549b089e0345e6f - dce_ast: a3e47f2b9939f70b037d904fd60c22c87cd19b51ffdd68c94549b089e0345e6f + - initial_symbol_table: 36ef986ed919c0c882e3c597226a90c2b404cca0f7adacfcf595a752410ebe22 + type_checked_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + unrolled_symbol_table: 55ec431915ff03a384b14523e0e184745d2381cbe7449feb6d306b1938a1dd62 + initial_ast: 675441b5f1318cf93ef605f072d52fabb7deb2401eb28736045369361e383dca + unrolled_ast: 675441b5f1318cf93ef605f072d52fabb7deb2401eb28736045369361e383dca + ssa_ast: 32275d22f04c2c460f1e91c997e3c75f4d3ca8270f4db0dcd1c96ef3ae1fa2d5 + flattened_ast: ffe158386ddcfde463095f7fc265a5cac83eb5c61edfd7a1ef7523fdc7e99a86 + destructured_ast: 05ddd35028a57640cb6e9a6cce414469aa9efdd5c5493a19f0dfbe358dcfa4a0 + inlined_ast: 05ddd35028a57640cb6e9a6cce414469aa9efdd5c5493a19f0dfbe358dcfa4a0 + dce_ast: 05ddd35028a57640cb6e9a6cce414469aa9efdd5c5493a19f0dfbe358dcfa4a0 bytecode: 56e6953042e8cf528010b3706c59f9240a38c0e4537f2bcedb790d17e0595327 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/negate.out b/tests/expectations/compiler/integers/i64/negate.out index 5885460bd9..d9fd9a5cd0 100644 --- a/tests/expectations/compiler/integers/i64/negate.out +++ b/tests/expectations/compiler/integers/i64/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c93d3b6c13abe2719937ce4c349ec6db9d80f12f0beef4c5b18937c2093ba0ac - type_checked_symbol_table: 67c0605a8c012133389722bf70860d45f925d6322ba17ca78d7a6200fc600f2e - unrolled_symbol_table: 67c0605a8c012133389722bf70860d45f925d6322ba17ca78d7a6200fc600f2e - initial_ast: 748fedcdc0b9a4a5fee4bfd1689d51b2278b6a8edf7bd20e26985349498e4cf4 - unrolled_ast: 748fedcdc0b9a4a5fee4bfd1689d51b2278b6a8edf7bd20e26985349498e4cf4 - ssa_ast: 9e632f8b2d01bdfe597b4b08a2bdd6fc456198818d42990f4fefbaa341f019d8 - flattened_ast: 4848361dce2b4a105eda709c7f1775740781aa70a9afcf61dd9f77f74ca80dcf - destructured_ast: 44c3bd3392010a7483c3aea0d0c67088146385d91634b1977b1a97ec5d8ce1a3 - inlined_ast: 44c3bd3392010a7483c3aea0d0c67088146385d91634b1977b1a97ec5d8ce1a3 - dce_ast: 44c3bd3392010a7483c3aea0d0c67088146385d91634b1977b1a97ec5d8ce1a3 + - initial_symbol_table: c2055f52822c6c4fbd3df96e111f91a2d34eb15656c69025171164c7c04c346f + type_checked_symbol_table: a51f41c1978a7d0ce9b471ca249632a4b4ec68ffe4514f0b858731356706ebea + unrolled_symbol_table: a51f41c1978a7d0ce9b471ca249632a4b4ec68ffe4514f0b858731356706ebea + initial_ast: 43f907a06a9a61391409a447c3f87e37f019aaf711726d5dd1bb6aa48505cafd + unrolled_ast: 43f907a06a9a61391409a447c3f87e37f019aaf711726d5dd1bb6aa48505cafd + ssa_ast: 913a4435069fb974adccc15c51036884e451fdc7e4b9fb375fb7757317b2ed0e + flattened_ast: 79f2302648e9b4fe213147ca910d409df355f586c96e5394f7e6a213bc59b07a + destructured_ast: e2402fa0793c2a45c87f4f754788c1e3ee38fcd5fb0cd0bd58586089c5da7628 + inlined_ast: e2402fa0793c2a45c87f4f754788c1e3ee38fcd5fb0cd0bd58586089c5da7628 + dce_ast: e2402fa0793c2a45c87f4f754788c1e3ee38fcd5fb0cd0bd58586089c5da7628 bytecode: 4a3cad0d173991e84e84d40f5868e63fccab04b6561f1de4afef8976a90dbf17 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/negate_min_fail.out b/tests/expectations/compiler/integers/i64/negate_min_fail.out index 26e9a592c7..01dc8f4636 100644 --- a/tests/expectations/compiler/integers/i64/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i64/negate_min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: feda4c31663d14a3d3e056cb5f57a5f9c9928ce9ad4c9379fc523ba0755264a7 - type_checked_symbol_table: 9b5ceb6b645c9805a11164ef2a6d3b7e9291d5e3cbd9d80afd696e8f3eca1032 - unrolled_symbol_table: 9b5ceb6b645c9805a11164ef2a6d3b7e9291d5e3cbd9d80afd696e8f3eca1032 - initial_ast: 5c0db4459eb38473072db34d289916372a19613277b7ac66babc99d1d8c0681f - unrolled_ast: 5c0db4459eb38473072db34d289916372a19613277b7ac66babc99d1d8c0681f - ssa_ast: 6501123efe0a750f4869c4d3bfef2f81a1fbcfb43911024d958cac8f83414ace - flattened_ast: bb0445d305c19a658175915e2cb9495f9033c269a60dbf7ee505d1edf5a57255 - destructured_ast: 3894fbc6cf94e0c0ed26c95098856e2d006603fc19ad78fcb1bba796653eec91 - inlined_ast: 3894fbc6cf94e0c0ed26c95098856e2d006603fc19ad78fcb1bba796653eec91 - dce_ast: 3894fbc6cf94e0c0ed26c95098856e2d006603fc19ad78fcb1bba796653eec91 + - initial_symbol_table: 947c60bfce423ea3357684479af65b9a58e90287f2172387b3a4f563d5fad158 + type_checked_symbol_table: eadc9939ccff929c6b26b1d8f84b24cef6197462a6f99b4cdc5097a3c35ff418 + unrolled_symbol_table: eadc9939ccff929c6b26b1d8f84b24cef6197462a6f99b4cdc5097a3c35ff418 + initial_ast: 1fe13f991a25eda6dd3e7d55e0db4ac82461a429cbf3e20db975b510ebdec5ab + unrolled_ast: 1fe13f991a25eda6dd3e7d55e0db4ac82461a429cbf3e20db975b510ebdec5ab + ssa_ast: 220e3619f982cc145525f4ca080d76ce695b2c887b18b92047b2e000cc3006a4 + flattened_ast: d9f72d47b48229654970008615814b5e637f6ae41da8aee3200ad638945bfc0f + destructured_ast: fa609df9af27e30d93a890c9bf0f85cfb7f38e58a569930d7c8c4f6fdce98cb6 + inlined_ast: fa609df9af27e30d93a890c9bf0f85cfb7f38e58a569930d7c8c4f6fdce98cb6 + dce_ast: fa609df9af27e30d93a890c9bf0f85cfb7f38e58a569930d7c8c4f6fdce98cb6 bytecode: eb8fb8c25730005f5c6c14d190313c0bee2ae389d6295686dd1867663fc93f67 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/negate_zero.out b/tests/expectations/compiler/integers/i64/negate_zero.out index a05eb05d4e..a147d45dc4 100644 --- a/tests/expectations/compiler/integers/i64/negate_zero.out +++ b/tests/expectations/compiler/integers/i64/negate_zero.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 905c4dc0b7b445cdde5815134de8d3fbdc0eae59a1919c4d4f0f381ea7696e90 - unrolled_symbol_table: 905c4dc0b7b445cdde5815134de8d3fbdc0eae59a1919c4d4f0f381ea7696e90 - initial_ast: 1b941ba2b94d3fa43932b5634432ad381df9738cc7f1fe18e2cdd583a6facdfb - unrolled_ast: 1b941ba2b94d3fa43932b5634432ad381df9738cc7f1fe18e2cdd583a6facdfb - ssa_ast: e5c7c691861d6bb94cc30fc170232916cd0c9194f2f2351b96be561cb2e20270 - flattened_ast: 512461fb1e44ae044721ef19a22157aeb7d3c2e4168ab5f5206b654dc0030af1 - destructured_ast: 4de7e939e1456e63080f183f49bffd1a09d0e88ecb65b6b8dfc3968ec503d1d9 - inlined_ast: 4de7e939e1456e63080f183f49bffd1a09d0e88ecb65b6b8dfc3968ec503d1d9 - dce_ast: 4de7e939e1456e63080f183f49bffd1a09d0e88ecb65b6b8dfc3968ec503d1d9 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 88e86661d755eb3d876869deb7aa2b15d827c8ef243d527a421a0e07e9351555 + unrolled_symbol_table: 88e86661d755eb3d876869deb7aa2b15d827c8ef243d527a421a0e07e9351555 + initial_ast: a70f6e3033f663d99efa7a7e01c4bb2bece1b8beb2a9756233c2d071b3ef49da + unrolled_ast: a70f6e3033f663d99efa7a7e01c4bb2bece1b8beb2a9756233c2d071b3ef49da + ssa_ast: f893ea0ee7d024de533a77aa210348078f47f7a2fc4e9aed4d20f2fca80699ae + flattened_ast: ec2c32b2cddca15948ddff2e039795d0bd508651e8d2b2f4307d783119c24414 + destructured_ast: 592dfd24a491ded2760c073b61f3b948b3aabfec99fa0a84e58d4d7d820fa397 + inlined_ast: 592dfd24a491ded2760c073b61f3b948b3aabfec99fa0a84e58d4d7d820fa397 + dce_ast: 592dfd24a491ded2760c073b61f3b948b3aabfec99fa0a84e58d4d7d820fa397 bytecode: dbe5b65eae7786eb721e8e7bf810718e8482635802c2e5d5da2996d8c0c3f7f4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/operator_methods.out b/tests/expectations/compiler/integers/i64/operator_methods.out index 57a3646ac0..8a5ff78043 100644 --- a/tests/expectations/compiler/integers/i64/operator_methods.out +++ b/tests/expectations/compiler/integers/i64/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c93d3b6c13abe2719937ce4c349ec6db9d80f12f0beef4c5b18937c2093ba0ac - type_checked_symbol_table: efcdf983fd90c860acca88d1a6cca2ba636da59428838613882043ee023fa13e - unrolled_symbol_table: efcdf983fd90c860acca88d1a6cca2ba636da59428838613882043ee023fa13e - initial_ast: 57b6af2e5678d411080f54bab795717581d4d25bbd519086fcd20f695d155296 - unrolled_ast: 57b6af2e5678d411080f54bab795717581d4d25bbd519086fcd20f695d155296 - ssa_ast: e8149defddf98813bb3c0c276368d9ee80addd3f37df306cb9dcf93371fec907 - flattened_ast: 8ea3cebb05533589e56ed1d3c81ad9918f4372322445561e7baa07791a23f750 - destructured_ast: 20ba9831aa424f76b4553f1e3ad793b508af484da50c7601c954aa868ab05c32 - inlined_ast: 20ba9831aa424f76b4553f1e3ad793b508af484da50c7601c954aa868ab05c32 - dce_ast: 8fc59a2808c21accca6441ba787d2e648adb2cb9dacbb10c496db8adda8ae07c + - initial_symbol_table: c2055f52822c6c4fbd3df96e111f91a2d34eb15656c69025171164c7c04c346f + type_checked_symbol_table: 9eb40688d354d352b258afca6eaf889bbe11929e79c2a9e3afd7689c9bb17c36 + unrolled_symbol_table: 9eb40688d354d352b258afca6eaf889bbe11929e79c2a9e3afd7689c9bb17c36 + initial_ast: 02cee663d01eb7b9916cfeb8e98852644fb508795cd183052549fb161437d9b1 + unrolled_ast: 02cee663d01eb7b9916cfeb8e98852644fb508795cd183052549fb161437d9b1 + ssa_ast: 761c0ae9a054ece7c7d536cf6acb8ff2ced77bdd147308a7d1c8f0fd596f4096 + flattened_ast: 791eb37170b60d588c01e4410b8cb5e87ec42aa1af123dc30ebe5904090fa1b7 + destructured_ast: cc9cbef7ec0bd9ce20f85b0dc7b2411240971de7bb6311ac6b7efde7cffd33d6 + inlined_ast: cc9cbef7ec0bd9ce20f85b0dc7b2411240971de7bb6311ac6b7efde7cffd33d6 + dce_ast: 59eef896755156c7102c6337158fe74fb70b106e2d1427bfec9e5ee6e22df2a0 bytecode: 94719443d1e9713563afa7861751ae6fac8380851db816055ed46c207a613efc errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/or.out b/tests/expectations/compiler/integers/i64/or.out index 1a0ed4178f..04d0f78408 100644 --- a/tests/expectations/compiler/integers/i64/or.out +++ b/tests/expectations/compiler/integers/i64/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: 6dfb464c806dadfaaaf9052f0e1531944e4af29f32acc95c9c06066d153fdca6 - unrolled_ast: 6dfb464c806dadfaaaf9052f0e1531944e4af29f32acc95c9c06066d153fdca6 - ssa_ast: 87ba8ca2b39feb046c80db0cccafc35030338cbee61279dbfa9bd2bfef0a2741 - flattened_ast: cc48d7c4f5ca6dc93b93d181b1051af7e0bd8c83f79b551ddcc96ce01ac449e2 - destructured_ast: 10e84480dea853e4f906e0ba1c3bc8d254670014c1b42321766fe8c35f1b91a8 - inlined_ast: 10e84480dea853e4f906e0ba1c3bc8d254670014c1b42321766fe8c35f1b91a8 - dce_ast: 10e84480dea853e4f906e0ba1c3bc8d254670014c1b42321766fe8c35f1b91a8 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 7dcf077ca91f4b7036e090d75fe0a9c664c2ea878e8d3a8581e76117bfa80989 + unrolled_ast: 7dcf077ca91f4b7036e090d75fe0a9c664c2ea878e8d3a8581e76117bfa80989 + ssa_ast: 57120b0bf539fc5eb45ecb9035fc9abc83e75b1834664f7823f7afbdfb473366 + flattened_ast: f8f79e457e00073fd43bf81c6d5eb9a23ae7a7c6b73189ebebfc677b99b6c56f + destructured_ast: 8538d1d887bb7e1e61103697fb20b77f56bd25a86fad62026ed39338a78e4564 + inlined_ast: 8538d1d887bb7e1e61103697fb20b77f56bd25a86fad62026ed39338a78e4564 + dce_ast: 8538d1d887bb7e1e61103697fb20b77f56bd25a86fad62026ed39338a78e4564 bytecode: 4bdb71dbcb23bcb6519ef3ddab06e79a70b155f8be87cc5d2b9d95221affd686 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/pow.out b/tests/expectations/compiler/integers/i64/pow.out index 04f72fdea9..477c1c24bc 100644 --- a/tests/expectations/compiler/integers/i64/pow.out +++ b/tests/expectations/compiler/integers/i64/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: c05b079c4970b56889b0dde71b3532ad6babd51e8bd472346ceaabd1c6b74b41 - unrolled_ast: c05b079c4970b56889b0dde71b3532ad6babd51e8bd472346ceaabd1c6b74b41 - ssa_ast: b4dbcf4e2a5f44d3b8826c82512c204236a824223f3d59f2ece5bb958962ab28 - flattened_ast: d9590d43e4cf1231b6cda55145a7f573cadf63e97dc8bccb889a343ebe5809e5 - destructured_ast: 699195dedcf8993260b2808cd24e35694c57bbc57211d33a83b0e714025d4d12 - inlined_ast: 699195dedcf8993260b2808cd24e35694c57bbc57211d33a83b0e714025d4d12 - dce_ast: 699195dedcf8993260b2808cd24e35694c57bbc57211d33a83b0e714025d4d12 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: f52543f59382655c45a48a9570aefd0f58b7838946b4b6d4ed9d7bafc32b7d73 + unrolled_ast: f52543f59382655c45a48a9570aefd0f58b7838946b4b6d4ed9d7bafc32b7d73 + ssa_ast: cb379714b217c8ce8fd134043ecf6bbf34e4fbf1a1ec282fc3143c37458c0781 + flattened_ast: a287d3aef6e694166de2ac233ef42be3b0fb655c4b51f4c7d533f65c87518ab3 + destructured_ast: 82f02564f364d5e6cf3585ef39c289f6ad5b5fc331058e0f2b157ff6e7349f46 + inlined_ast: 82f02564f364d5e6cf3585ef39c289f6ad5b5fc331058e0f2b157ff6e7349f46 + dce_ast: 82f02564f364d5e6cf3585ef39c289f6ad5b5fc331058e0f2b157ff6e7349f46 bytecode: ff1ba1259f2f4a90553920fc5a9391125c9d5fbc583e2a648b80dc409b62d5fc errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/rem.out b/tests/expectations/compiler/integers/i64/rem.out index d70304c27d..0435c4f800 100644 --- a/tests/expectations/compiler/integers/i64/rem.out +++ b/tests/expectations/compiler/integers/i64/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: 52166c5bd41526b13948a63bf71c4f5137d9ea987cc1530c169a101120bc7d7b - unrolled_ast: 52166c5bd41526b13948a63bf71c4f5137d9ea987cc1530c169a101120bc7d7b - ssa_ast: ac8eec6d23ea40a9ef46d82db171d1fad660cae538e6611c527998518877c8fe - flattened_ast: 96753d3fef16908791f7ce928781ce259edaf67c52e373066b063d2e57c99b8d - destructured_ast: 9249502cc813bd1516695ff51267c60280fd269766d4dc2d226851cc3211c2e9 - inlined_ast: 9249502cc813bd1516695ff51267c60280fd269766d4dc2d226851cc3211c2e9 - dce_ast: 9249502cc813bd1516695ff51267c60280fd269766d4dc2d226851cc3211c2e9 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 43a5ca839219f9f999371477105bc5c99210d6b06eae64a79ce3f93f98b3ced0 + unrolled_ast: 43a5ca839219f9f999371477105bc5c99210d6b06eae64a79ce3f93f98b3ced0 + ssa_ast: 8dcf478831c09e7b4139a9ad7798f55b19ac150fc746148025946d4e3d393306 + flattened_ast: 88660fb4f8b65819304b83f723c34b0628ae0f191c41e89c89054f7921e4af2a + destructured_ast: 6d4ce7532f7f4109bfa6861b6bda1c71e867fbbe6ad78606d4739a1b639cbb54 + inlined_ast: 6d4ce7532f7f4109bfa6861b6bda1c71e867fbbe6ad78606d4739a1b639cbb54 + dce_ast: 6d4ce7532f7f4109bfa6861b6bda1c71e867fbbe6ad78606d4739a1b639cbb54 bytecode: 89effef213f290d8097c5e2289a9010d4379e63954959a7eeca9a25e4e5f50b8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/shl.out b/tests/expectations/compiler/integers/i64/shl.out index 098a1c089a..95cbea9528 100644 --- a/tests/expectations/compiler/integers/i64/shl.out +++ b/tests/expectations/compiler/integers/i64/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: cdcfc82670841d37783c84a45a510d21dbf23334d43c61363aa23672d73b629f - unrolled_ast: cdcfc82670841d37783c84a45a510d21dbf23334d43c61363aa23672d73b629f - ssa_ast: 07c2a97737e183ba33a0905f3a58c619c89ddf383988cd2d504f674edb9026f1 - flattened_ast: 9cf16162f2d40691538c29e8ec6ac041a05d4416a4e99a8fc309bef94c0ce5cd - destructured_ast: 191714d66cde846687d107f407333f78a2405adb43130c05127ce5fe97c9304f - inlined_ast: 191714d66cde846687d107f407333f78a2405adb43130c05127ce5fe97c9304f - dce_ast: 191714d66cde846687d107f407333f78a2405adb43130c05127ce5fe97c9304f + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 5ed76e9cb4cea8a35598a4f766fda7404185d5cf62fe7e527016ebad7f980936 + unrolled_ast: 5ed76e9cb4cea8a35598a4f766fda7404185d5cf62fe7e527016ebad7f980936 + ssa_ast: f22fd8de65facfe6db0609cf359e560c146ace3bba68da32a7d6040318c0364a + flattened_ast: c59474c6711cc16e801122c655694004460dffc5045945ba565447a4ceead275 + destructured_ast: b258e4453d018507de48d4ddb65c3a9f0cc2bcc0df84b5e36b47ca1838b375bb + inlined_ast: b258e4453d018507de48d4ddb65c3a9f0cc2bcc0df84b5e36b47ca1838b375bb + dce_ast: b258e4453d018507de48d4ddb65c3a9f0cc2bcc0df84b5e36b47ca1838b375bb bytecode: 44b4f1e4aff3e8f3343854e8efc5146404333da549cc6e04bca927e7e1484487 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/shr.out b/tests/expectations/compiler/integers/i64/shr.out index 3a60bf13e0..aeb90fbb7f 100644 --- a/tests/expectations/compiler/integers/i64/shr.out +++ b/tests/expectations/compiler/integers/i64/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: cec77d990c94077ac343de00ef7eea644bf9d23456747573bfc67d996d092e48 - unrolled_ast: cec77d990c94077ac343de00ef7eea644bf9d23456747573bfc67d996d092e48 - ssa_ast: a5aaa2ca0dc34cba246a576b5c40bc3ca4525645a5bd037f6ab81106d5c9bdc1 - flattened_ast: 06e299d093af6ac4c8b016251f014c8bcd183d8610bb7a9ccd5aacc739d850a0 - destructured_ast: 4bcb82bcd4e837aa5fd0cdef45a15ffb0176683e4db2017818474d2724436789 - inlined_ast: 4bcb82bcd4e837aa5fd0cdef45a15ffb0176683e4db2017818474d2724436789 - dce_ast: 4bcb82bcd4e837aa5fd0cdef45a15ffb0176683e4db2017818474d2724436789 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: e32e41c6b2f9ad39e1ba38a771e990d8e4481da8529582b368f62ef355d0b887 + unrolled_ast: e32e41c6b2f9ad39e1ba38a771e990d8e4481da8529582b368f62ef355d0b887 + ssa_ast: 46c24bf6ec9725b2a665253ad132eadc3d5a93320aa5d0956ee977da589e88d1 + flattened_ast: 4af35772c099e36241b39d674e605300da8022deb356efd173646b5bb25f4416 + destructured_ast: 3c750161af6e50341f1a18d4a5d8e9aac1bab5796a7dc7af14224085521cc81b + inlined_ast: 3c750161af6e50341f1a18d4a5d8e9aac1bab5796a7dc7af14224085521cc81b + dce_ast: 3c750161af6e50341f1a18d4a5d8e9aac1bab5796a7dc7af14224085521cc81b bytecode: 2768046fc5a9e4812b3b19a67908baca08c0e3d5141323dabb57cff84e659d62 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/sub.out b/tests/expectations/compiler/integers/i64/sub.out index 93f324e86d..b369cd638b 100644 --- a/tests/expectations/compiler/integers/i64/sub.out +++ b/tests/expectations/compiler/integers/i64/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9c97c8975f8fd1397b4742e92bb72157516a7b512603b028924cc89424310ca - type_checked_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - unrolled_symbol_table: 783f5b03cff6fc182f207d9c31a98e2c2e081535968643d17b670f77b508f480 - initial_ast: ceeb441deda1f314a96093696600eca433c45a3044a31f9d396bfdf505130bd7 - unrolled_ast: ceeb441deda1f314a96093696600eca433c45a3044a31f9d396bfdf505130bd7 - ssa_ast: d236318674e928395509b3d1709e2be65c2087cfe1bb50d193835bf6d50525b7 - flattened_ast: 7eeb0c1fcd543ea6a6b38de63cd9a4e789e159e7cf52237358ecab2317806f49 - destructured_ast: 6826b5b5668e62309e55f359e5367a93a76c80f666009d3b296851d0a91e88a1 - inlined_ast: 6826b5b5668e62309e55f359e5367a93a76c80f666009d3b296851d0a91e88a1 - dce_ast: 6826b5b5668e62309e55f359e5367a93a76c80f666009d3b296851d0a91e88a1 + - initial_symbol_table: 48b42404e656336b958ba7b6d7c377d59fdf0fb680cf48856c09047fca4f99b8 + type_checked_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + unrolled_symbol_table: a66d96ce72ef05fc31af41f9c3f2997534a841b0c6eee74cbaeabff5bb4f699d + initial_ast: 1679e2a2d77f3f486cab180fa83c3e66aef4e9bdbe061588863242b8e6d8ee43 + unrolled_ast: 1679e2a2d77f3f486cab180fa83c3e66aef4e9bdbe061588863242b8e6d8ee43 + ssa_ast: b9cec69360801d6dbd1d3c318681c6685f14ea462d9e42ffbd3290a8bc660f30 + flattened_ast: 0d72ccd0bb321b835747095502450eb3d7f46916975545f71a6b78f83a2f95a1 + destructured_ast: 6f6233a87f3b8967dfbc111597e8696903e5aa6432f5079e7c8d08afe0034c1b + inlined_ast: 6f6233a87f3b8967dfbc111597e8696903e5aa6432f5079e7c8d08afe0034c1b + dce_ast: 6f6233a87f3b8967dfbc111597e8696903e5aa6432f5079e7c8d08afe0034c1b bytecode: 3394c4bead78f2ab177206a71d03d27cc9e584d5eb7aa587e7a9101911c1e76d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/ternary.out b/tests/expectations/compiler/integers/i64/ternary.out index 293ed3619b..b903a168f2 100644 --- a/tests/expectations/compiler/integers/i64/ternary.out +++ b/tests/expectations/compiler/integers/i64/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 99742029cf41895df48697afc5bc40466b6c6af92b233427b6a333d453bbc227 - type_checked_symbol_table: fe5adef78dda50be8a1378d2738c0a1e46f15c7d8b6a03152976ba137a4b8261 - unrolled_symbol_table: fe5adef78dda50be8a1378d2738c0a1e46f15c7d8b6a03152976ba137a4b8261 - initial_ast: d9a693ebea59b68b6fdd477c6fc6b50dfef0df531efa2b5731983fecc967863a - unrolled_ast: d9a693ebea59b68b6fdd477c6fc6b50dfef0df531efa2b5731983fecc967863a - ssa_ast: f0ade902feea35a76101c9e6ace9a73b0ce2eefe3071319cac21d8931e5f3864 - flattened_ast: 74e12a9898c8909cbbb62da940f0609bd3ff3b4ce0b577b4c83b6cea1959df3c - destructured_ast: cfee2f0f1420abe3a66c1abf6c422fbc6ffa3915c314920eff741fa526802fab - inlined_ast: cfee2f0f1420abe3a66c1abf6c422fbc6ffa3915c314920eff741fa526802fab - dce_ast: cfee2f0f1420abe3a66c1abf6c422fbc6ffa3915c314920eff741fa526802fab + - initial_symbol_table: 34692099f11f6cbb670fa5cd716be663788b0f514c6c015f8aafa3041825234a + type_checked_symbol_table: bfc235b8689b1d1d49c83b21af53f85bf57397318d4c1a5e77e292a9ab21fdc9 + unrolled_symbol_table: bfc235b8689b1d1d49c83b21af53f85bf57397318d4c1a5e77e292a9ab21fdc9 + initial_ast: fe95d48ec1841f4d19aaf391db4cea8b5faad5fb40583dc27b22351476f0d3e4 + unrolled_ast: fe95d48ec1841f4d19aaf391db4cea8b5faad5fb40583dc27b22351476f0d3e4 + ssa_ast: 9df5f7806460dee740493c58b5409f1d693b88d3826b79dd0c5f616384c38b11 + flattened_ast: 6ca1b3c8bd902b1467c1444417191bc70be7097efdbb7f34c33181b00bfaf509 + destructured_ast: 0942e8abf05db3e9d7c75300c55f0a81f3a69b9ba9ca4946972c728ee52c2654 + inlined_ast: 0942e8abf05db3e9d7c75300c55f0a81f3a69b9ba9ca4946972c728ee52c2654 + dce_ast: 0942e8abf05db3e9d7c75300c55f0a81f3a69b9ba9ca4946972c728ee52c2654 bytecode: 4a10ca6f583fa9516bfbdad6094fdaadefd4d6069c0f87f13cc0e3fc1d36029e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i64/xor.out b/tests/expectations/compiler/integers/i64/xor.out index 42d92f7f11..f640f860f0 100644 --- a/tests/expectations/compiler/integers/i64/xor.out +++ b/tests/expectations/compiler/integers/i64/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: cd77cee86fb8fb74c64f90b0424f2cdc0d0aafdc640d399e7206abd5813d47d5 - type_checked_symbol_table: d6e32f3ecb0e51bb8281059abb605999353d2b1d72da40141b82154d9639b741 - unrolled_symbol_table: d6e32f3ecb0e51bb8281059abb605999353d2b1d72da40141b82154d9639b741 - initial_ast: c62b9cf247e3ee754728cfd8d71cdbfaac4a1a9031dfcf101b3199402f45cb0b - unrolled_ast: c62b9cf247e3ee754728cfd8d71cdbfaac4a1a9031dfcf101b3199402f45cb0b - ssa_ast: c40dca1c5cdfd59af3d2f773fa591db9b25510ef341c87e69d8c28d0e4cd1837 - flattened_ast: 1777d2ba89ab46e8e46abc8cac336387717290530a061c1c92f9fe48f74a077b - destructured_ast: 55280b340c6bc76e7bde99b6388b20106527dde5f2bf3c18fae77db5c8ab9206 - inlined_ast: 55280b340c6bc76e7bde99b6388b20106527dde5f2bf3c18fae77db5c8ab9206 - dce_ast: 55280b340c6bc76e7bde99b6388b20106527dde5f2bf3c18fae77db5c8ab9206 + - initial_symbol_table: bb3b57b30d209ffee5dd492fc85582853d75bf0904040d151cb3b6a47b3bf197 + type_checked_symbol_table: 42f30480aab49bdd659e4ad5220e9350d4ad3003eaab2c3529f0d648c7f965e4 + unrolled_symbol_table: 42f30480aab49bdd659e4ad5220e9350d4ad3003eaab2c3529f0d648c7f965e4 + initial_ast: b3be5634155bd02a31d3e6783ee3a26e412d18096468b6a6a6a4fe3ed5cf4522 + unrolled_ast: b3be5634155bd02a31d3e6783ee3a26e412d18096468b6a6a6a4fe3ed5cf4522 + ssa_ast: b33dc3ecf618bbb53125b3e639c34a76210705f2723cffa8a5685e0916e097fb + flattened_ast: 327e3b14f5e9ac1133a6f7bbd2b8d9ca01df45d1c57120a983c1f88753290495 + destructured_ast: 6607d9c12b30018cd093bc20e2f0737c2da9fab774bc6b3258c4e5cf640e31d6 + inlined_ast: 6607d9c12b30018cd093bc20e2f0737c2da9fab774bc6b3258c4e5cf640e31d6 + dce_ast: 6607d9c12b30018cd093bc20e2f0737c2da9fab774bc6b3258c4e5cf640e31d6 bytecode: 202aa93c8b415346f4cc8b49533c89cf2004fb273e78581f033c75ea57dad512 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/add.out b/tests/expectations/compiler/integers/i8/add.out index 9ab64ad6a6..fe6387c120 100644 --- a/tests/expectations/compiler/integers/i8/add.out +++ b/tests/expectations/compiler/integers/i8/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: 8d0da87650e5bd4b73b1c9a4f43bd92771d749d59244da699156088f784a52a6 - unrolled_ast: 8d0da87650e5bd4b73b1c9a4f43bd92771d749d59244da699156088f784a52a6 - ssa_ast: fb4fc46c088b99695ebf297137a9b9246cfe720249c844bd8b9417ae1f95bc45 - flattened_ast: f33c09c5fe8946bbd67f2c3f15877a810a157d459107c4a7a69d80c4a314552d - destructured_ast: a03f12621dfbb3c71040850b887d855b61b1bd54b687e868b01cda746fc54614 - inlined_ast: a03f12621dfbb3c71040850b887d855b61b1bd54b687e868b01cda746fc54614 - dce_ast: a03f12621dfbb3c71040850b887d855b61b1bd54b687e868b01cda746fc54614 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: 4845a9947f65c5231fb58245d74a64645af4b9b837305a6c61b836e9f87d394b + unrolled_ast: 4845a9947f65c5231fb58245d74a64645af4b9b837305a6c61b836e9f87d394b + ssa_ast: 851c4c953ae8f1c71dc63e25d7fcf19e829e2f5218c06fa3983a760f45412645 + flattened_ast: 2faffa61e9fbf2ea1521da9eb48095d1836b45367b254672e7f43c10e277d7d9 + destructured_ast: de87dc2dee6dc7018c272c38cc1d7a660ab7a772102e3ce12d840ec1ec686d91 + inlined_ast: de87dc2dee6dc7018c272c38cc1d7a660ab7a772102e3ce12d840ec1ec686d91 + dce_ast: de87dc2dee6dc7018c272c38cc1d7a660ab7a772102e3ce12d840ec1ec686d91 bytecode: b55a8d40426fb145352765c99ed1875c872f2a6a0aeaa46f5734c543b5cc17a0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/and.out b/tests/expectations/compiler/integers/i8/and.out index 9251474303..866a60c615 100644 --- a/tests/expectations/compiler/integers/i8/and.out +++ b/tests/expectations/compiler/integers/i8/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: 6b72fc4c93611a88a0a63483da51b64f88781719f9ae3ef654c6b9b3b22e0534 - unrolled_ast: 6b72fc4c93611a88a0a63483da51b64f88781719f9ae3ef654c6b9b3b22e0534 - ssa_ast: 724b9b001d8d1e47831a345f495879870af80833aef6697379e8bace15b98a70 - flattened_ast: 279223e676a98754d04d42cbb070b62c2efe1d6bbf7198f1125070e8def06eb8 - destructured_ast: ad13e05fe1d31693ff579fa5ffc51c5770248a1b922b3bfd4c7c990a9e3cb5b3 - inlined_ast: ad13e05fe1d31693ff579fa5ffc51c5770248a1b922b3bfd4c7c990a9e3cb5b3 - dce_ast: ad13e05fe1d31693ff579fa5ffc51c5770248a1b922b3bfd4c7c990a9e3cb5b3 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: 96d15e85d60cb99c33cf76985f3fe2902c0130b0f6e284135f59e2b87e34e258 + unrolled_ast: 96d15e85d60cb99c33cf76985f3fe2902c0130b0f6e284135f59e2b87e34e258 + ssa_ast: eeccb7c53959c3e0ba149e873610d3ef1a4fd15fa76782ce06cc1f960a266bf4 + flattened_ast: 6250313f90b81248970283917cdf7f9f7dc8b01ad2eff198ed49b87325e33b97 + destructured_ast: 933ab944415d8603955fdba3561150975369631c50e43b317861e13875ce1faf + inlined_ast: 933ab944415d8603955fdba3561150975369631c50e43b317861e13875ce1faf + dce_ast: 933ab944415d8603955fdba3561150975369631c50e43b317861e13875ce1faf bytecode: 6696abc2bfb9eeab6ab4255dad93e1c66316b93bf19136e37fdefb22a09b50c9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/console_assert.out b/tests/expectations/compiler/integers/i8/console_assert.out index 97aac7445f..0926780936 100644 --- a/tests/expectations/compiler/integers/i8/console_assert.out +++ b/tests/expectations/compiler/integers/i8/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0d86d9a02728d478f76d22ff6dc614bc735dda20e82d363aa8c8952c51fdbf59 - type_checked_symbol_table: 81a166f9f38e20de931ece8e275815cb85d387e4d05902ca6c3ea134b82bea1c - unrolled_symbol_table: 81a166f9f38e20de931ece8e275815cb85d387e4d05902ca6c3ea134b82bea1c - initial_ast: ffcc86bde2510dae4918394da0638a6aa42bfbb008c8dcdd161d37069c25ec1c - unrolled_ast: ffcc86bde2510dae4918394da0638a6aa42bfbb008c8dcdd161d37069c25ec1c - ssa_ast: 95d81c75b062e1f36202043206a0862f39044a899a130702e1467185d408f115 - flattened_ast: b80cafa65abc4913b29b05b4b17322d7f00ecfd3b3c246e9d30f131d71a042ff - destructured_ast: 839eed35a3d4c576fdcf357f73b3c104b7a8153e67e9155376139e9bc1223097 - inlined_ast: 839eed35a3d4c576fdcf357f73b3c104b7a8153e67e9155376139e9bc1223097 - dce_ast: 839eed35a3d4c576fdcf357f73b3c104b7a8153e67e9155376139e9bc1223097 + - initial_symbol_table: 435e2e4d3f4a0fb6a20346bd5431a571e4f59b22d7369ec3e37fca0929a0d4ee + type_checked_symbol_table: 4a288497b2995b1eed99c1889dbbfe1c7b923c874d7995dd318cf84df6d66bfb + unrolled_symbol_table: 4a288497b2995b1eed99c1889dbbfe1c7b923c874d7995dd318cf84df6d66bfb + initial_ast: 3240b19708cb82c6ce071272773cf3e2278a630cd145d3caa9bda722134448a3 + unrolled_ast: 3240b19708cb82c6ce071272773cf3e2278a630cd145d3caa9bda722134448a3 + ssa_ast: f4e507ffb280a191dbe8631f7ce6534c66c0096a4e51e0c2ba57437557a5e6f9 + flattened_ast: 6239ef5489bc44c2c81b4d66df2b27de56bebfd56699fac69b3964bf647071a7 + destructured_ast: 2dbd75f3d89ca75236c7668adad34287c03d9950954d0a8c3dfc40cbdf5a4985 + inlined_ast: 2dbd75f3d89ca75236c7668adad34287c03d9950954d0a8c3dfc40cbdf5a4985 + dce_ast: 2dbd75f3d89ca75236c7668adad34287c03d9950954d0a8c3dfc40cbdf5a4985 bytecode: abe50f2f70110c2d0e6728636967d2e3ef06c1bdad64c39cf82f7402a924f769 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/div.out b/tests/expectations/compiler/integers/i8/div.out index a72cc92f74..a4e9f262cb 100644 --- a/tests/expectations/compiler/integers/i8/div.out +++ b/tests/expectations/compiler/integers/i8/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: 30403dfb64a4b5cfef0cf555cf429bb4cc31004a62b94dbf4fc2a6577b52f122 - unrolled_ast: 30403dfb64a4b5cfef0cf555cf429bb4cc31004a62b94dbf4fc2a6577b52f122 - ssa_ast: 033e2271fc75622e18ac6120f059f4b12e895fc028fe663c1f33663f7813a432 - flattened_ast: 3c18cbe47967114402ec352c6e143373019fbd1eaef8384400ba7a0c9987d1f3 - destructured_ast: 8f90d78164c8493fa0b025cbe02d06e4fd3d92efaab83dce9597a9fd406706c0 - inlined_ast: 8f90d78164c8493fa0b025cbe02d06e4fd3d92efaab83dce9597a9fd406706c0 - dce_ast: 8f90d78164c8493fa0b025cbe02d06e4fd3d92efaab83dce9597a9fd406706c0 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: 3cfb031e44c25ce7eb9a4202e08c83f263b5a632a8fb2c4969a67a7c79ec7ca9 + unrolled_ast: 3cfb031e44c25ce7eb9a4202e08c83f263b5a632a8fb2c4969a67a7c79ec7ca9 + ssa_ast: 10842bf434bffc638837be5228e072904fc11f7ab709bb6dee7298e20edde0a9 + flattened_ast: 67cda6c79835c4a46969da582818385e81a5053904228465f9b968e3dc0c2ab1 + destructured_ast: 6acee3f8ec83da7aa0e1e4a86fe0e9a23795df85da03548971a686151cc27ea7 + inlined_ast: 6acee3f8ec83da7aa0e1e4a86fe0e9a23795df85da03548971a686151cc27ea7 + dce_ast: 6acee3f8ec83da7aa0e1e4a86fe0e9a23795df85da03548971a686151cc27ea7 bytecode: a748bd3dea41e7274e04929fa60b4e6e1a93c07f229afe99bf12c5fc29162f68 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/eq.out b/tests/expectations/compiler/integers/i8/eq.out index ed4d420eaa..55507146d1 100644 --- a/tests/expectations/compiler/integers/i8/eq.out +++ b/tests/expectations/compiler/integers/i8/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4ba4e2ae899d9c9a040d7e63833106fda2327381c71b3bbb3654d378275acee0 - type_checked_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - unrolled_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - initial_ast: c6152b09d65ccb486ba54ab754a7f6bb5bea6a4965dfe07d671c923efba8c4ef - unrolled_ast: c6152b09d65ccb486ba54ab754a7f6bb5bea6a4965dfe07d671c923efba8c4ef - ssa_ast: 3cdb5e82de55242871ef8053c5875ed09170d16af6a5038b388d5770b8eccf3e - flattened_ast: f1a1ab1eb13e59f476285d1ded0cf38f49a252d70f206222eb38f3c597b45234 - destructured_ast: 4129e245a83aa6132cb33f98b0d7827c550f1b8c12343d8de0a516ad5e46c055 - inlined_ast: 4129e245a83aa6132cb33f98b0d7827c550f1b8c12343d8de0a516ad5e46c055 - dce_ast: 4129e245a83aa6132cb33f98b0d7827c550f1b8c12343d8de0a516ad5e46c055 + - initial_symbol_table: 2fec643bab68303b83da5e504c04e2689fb6eba70142b915c2f8843503948889 + type_checked_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + unrolled_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + initial_ast: 7d5d6ba078b7c26baa823353dc0994068777e8bb6e118c5c516ad92af50053dd + unrolled_ast: 7d5d6ba078b7c26baa823353dc0994068777e8bb6e118c5c516ad92af50053dd + ssa_ast: 3c1890032f6c13a2071e114589314ed29072c55c5e367150948dcff5371c2d9e + flattened_ast: 9039cc14303434d97a41f11d91fb60b0c34924f3c227db758b7a4ff9e5491896 + destructured_ast: fa27c8b914404b7e9d3eba9aad06668045f557f4396effe07fcfe5416991a2c6 + inlined_ast: fa27c8b914404b7e9d3eba9aad06668045f557f4396effe07fcfe5416991a2c6 + dce_ast: fa27c8b914404b7e9d3eba9aad06668045f557f4396effe07fcfe5416991a2c6 bytecode: a78d778b5d4c7ab76e80a1c944c5060214f0e474a0892dca998044ec07f736f9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/ge.out b/tests/expectations/compiler/integers/i8/ge.out index 2d4ce64763..d3c0cabbc6 100644 --- a/tests/expectations/compiler/integers/i8/ge.out +++ b/tests/expectations/compiler/integers/i8/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4ba4e2ae899d9c9a040d7e63833106fda2327381c71b3bbb3654d378275acee0 - type_checked_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - unrolled_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - initial_ast: 0c624133e5313def7e438b12759ce08e8b77ad68263bca149b5434bcdaa0359b - unrolled_ast: 0c624133e5313def7e438b12759ce08e8b77ad68263bca149b5434bcdaa0359b - ssa_ast: 11b0a9f801ad6586a43434c5ac29a1f270de3875c8151c7384b1d5f527ce84bc - flattened_ast: cf07809170bfc110cd7fe4039e4fdef11610f5530b6873a282074cd2c06cd4ec - destructured_ast: 612a689f70e8c5dfcd49bdad5ba3496e49ad03940f68ef3f49cb3adf3e586dae - inlined_ast: 612a689f70e8c5dfcd49bdad5ba3496e49ad03940f68ef3f49cb3adf3e586dae - dce_ast: 612a689f70e8c5dfcd49bdad5ba3496e49ad03940f68ef3f49cb3adf3e586dae + - initial_symbol_table: 2fec643bab68303b83da5e504c04e2689fb6eba70142b915c2f8843503948889 + type_checked_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + unrolled_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + initial_ast: e6ca1d4d37464851e5a94d8122c3fc32d4df3bb7da3c93af78c5988b041458e0 + unrolled_ast: e6ca1d4d37464851e5a94d8122c3fc32d4df3bb7da3c93af78c5988b041458e0 + ssa_ast: ba07f3c6c71d04cbc193f6af3419774e48b2d74eb5aafe31a962fdffeeada0b8 + flattened_ast: 9037703720a04d406407ba5e0a3c40068bcb8f5aaa667ffd97ce5545359140ea + destructured_ast: a8b24060b132356a8fbb47546bf9bd5fa82927835c9228a6c2a2e145bd98b454 + inlined_ast: a8b24060b132356a8fbb47546bf9bd5fa82927835c9228a6c2a2e145bd98b454 + dce_ast: a8b24060b132356a8fbb47546bf9bd5fa82927835c9228a6c2a2e145bd98b454 bytecode: 94572b27b48d4abfd620aa9e9b2826915ffa548e81e7163562a598777c174b9d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/gt.out b/tests/expectations/compiler/integers/i8/gt.out index fc5b406819..104bb5e7b0 100644 --- a/tests/expectations/compiler/integers/i8/gt.out +++ b/tests/expectations/compiler/integers/i8/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4ba4e2ae899d9c9a040d7e63833106fda2327381c71b3bbb3654d378275acee0 - type_checked_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - unrolled_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - initial_ast: cb6c0159054ecd9a0186fbdab21706a22ff730c9d9fb90682627433b3d9bbde0 - unrolled_ast: cb6c0159054ecd9a0186fbdab21706a22ff730c9d9fb90682627433b3d9bbde0 - ssa_ast: 483f5b098633ae196b473943932bdf555203f1a31ece33837659a972925c8a8c - flattened_ast: 62ca958fd2bb846b7992915b7e82e5c27f86547a4a380489cd5d1be254bc73ad - destructured_ast: 186e2b3a8db5f7b3738dace11b06621568f09f09c4ec0def4f7c1eb1269ea451 - inlined_ast: 186e2b3a8db5f7b3738dace11b06621568f09f09c4ec0def4f7c1eb1269ea451 - dce_ast: 186e2b3a8db5f7b3738dace11b06621568f09f09c4ec0def4f7c1eb1269ea451 + - initial_symbol_table: 2fec643bab68303b83da5e504c04e2689fb6eba70142b915c2f8843503948889 + type_checked_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + unrolled_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + initial_ast: bc3a176210639d3a859a14c63d29cd57692976ae520b9886e351a1f0eb4d07e0 + unrolled_ast: bc3a176210639d3a859a14c63d29cd57692976ae520b9886e351a1f0eb4d07e0 + ssa_ast: aaeeb00973b2676e4fd5ee6ca0b50529136a4ca58a9e92d2b0ed09cf0b9a0a5c + flattened_ast: b161002b661af381af2508d8f2e1ebc0bf185c3ceed404f54926e9c2bdc4f091 + destructured_ast: 379478dadaa977f8e51b0a072ab35a32d1a82f9c44b36954e24b6beafcb372c0 + inlined_ast: 379478dadaa977f8e51b0a072ab35a32d1a82f9c44b36954e24b6beafcb372c0 + dce_ast: 379478dadaa977f8e51b0a072ab35a32d1a82f9c44b36954e24b6beafcb372c0 bytecode: 12088489a333361c2ba46423958eb72cf877d9db1e0acc0520b13b02a6d0467e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/le.out b/tests/expectations/compiler/integers/i8/le.out index 03617de8d3..9237403bfc 100644 --- a/tests/expectations/compiler/integers/i8/le.out +++ b/tests/expectations/compiler/integers/i8/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4ba4e2ae899d9c9a040d7e63833106fda2327381c71b3bbb3654d378275acee0 - type_checked_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - unrolled_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - initial_ast: abff3bb41dd9f38acdf595d23e035f2f7e59584eb1309153e3c6bdddb71a0d68 - unrolled_ast: abff3bb41dd9f38acdf595d23e035f2f7e59584eb1309153e3c6bdddb71a0d68 - ssa_ast: f3cf09e291ab2af9c9b6a43381965c3024435ad341383acd65d3a21c43ff355b - flattened_ast: 0a7bd2d211e0c1849d68dc94454fbe32cd1ed8653ef30e76d2b195d7d0291186 - destructured_ast: f4a7e9c6311a082176af0f904cbe695258f8eab7bac0ce8899d118a477099801 - inlined_ast: f4a7e9c6311a082176af0f904cbe695258f8eab7bac0ce8899d118a477099801 - dce_ast: f4a7e9c6311a082176af0f904cbe695258f8eab7bac0ce8899d118a477099801 + - initial_symbol_table: 2fec643bab68303b83da5e504c04e2689fb6eba70142b915c2f8843503948889 + type_checked_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + unrolled_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + initial_ast: e556a319ad850401aa73f78d213cc6e7b351ad2c5352572415715ea25adda58b + unrolled_ast: e556a319ad850401aa73f78d213cc6e7b351ad2c5352572415715ea25adda58b + ssa_ast: b41667968c51c9a9c9b3056131aa02add5fa6ed78f71d07837dc63ed0d2d98a9 + flattened_ast: d54628195d3ec1049432161a341b23dfad202f084993b571f38674820b32e555 + destructured_ast: 13026037b7c1e4de942226493c399f008ebdf994ed40e8311108f1128343d960 + inlined_ast: 13026037b7c1e4de942226493c399f008ebdf994ed40e8311108f1128343d960 + dce_ast: 13026037b7c1e4de942226493c399f008ebdf994ed40e8311108f1128343d960 bytecode: 13ee1135be90a2ac630bba0dddd170b24bdf375295c4d3e21ddb511d388f9c31 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/lt.out b/tests/expectations/compiler/integers/i8/lt.out index 6e821e9e5d..d6970324b8 100644 --- a/tests/expectations/compiler/integers/i8/lt.out +++ b/tests/expectations/compiler/integers/i8/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4ba4e2ae899d9c9a040d7e63833106fda2327381c71b3bbb3654d378275acee0 - type_checked_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - unrolled_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - initial_ast: ac2554f699503e56995362ed2b0412f72ea8a9a53d83fcb5c41a6d13c8f85879 - unrolled_ast: ac2554f699503e56995362ed2b0412f72ea8a9a53d83fcb5c41a6d13c8f85879 - ssa_ast: fbca40a6dcd1d19ba415a32cf874d7c8876e521d5dad3e4da4f5f033b15bd7c8 - flattened_ast: 7ec9213e733537cc128e4cfffbccd7f23781203560a76846f8d24a676fe66883 - destructured_ast: f4b76b6a33a3f76d1404ef4f7fbaedb45d25c07dac55f0feeca4d4c6999e11fa - inlined_ast: f4b76b6a33a3f76d1404ef4f7fbaedb45d25c07dac55f0feeca4d4c6999e11fa - dce_ast: f4b76b6a33a3f76d1404ef4f7fbaedb45d25c07dac55f0feeca4d4c6999e11fa + - initial_symbol_table: 2fec643bab68303b83da5e504c04e2689fb6eba70142b915c2f8843503948889 + type_checked_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + unrolled_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + initial_ast: af69114196d0218f02b31bb59eb2216e74d4c03c6ca3591203f560fd0a0b0111 + unrolled_ast: af69114196d0218f02b31bb59eb2216e74d4c03c6ca3591203f560fd0a0b0111 + ssa_ast: ea5736dc2dcdb9915dd5b9e40a793be6cfa0214b8b44ff9b85bc797b27269974 + flattened_ast: 60dd25b03491e3f7a730b3d33bc9e294f4b9ebd08f21de61d7b04d84482b8291 + destructured_ast: 623c1eca6872b3e27aac6568248edcd5b4b48e84adc7280135c12a4449c67d9c + inlined_ast: 623c1eca6872b3e27aac6568248edcd5b4b48e84adc7280135c12a4449c67d9c + dce_ast: 623c1eca6872b3e27aac6568248edcd5b4b48e84adc7280135c12a4449c67d9c bytecode: 603e5cdb76df60951144b9bf25a52c5707dd4286906cae46fccc43f3b87292e2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/max.out b/tests/expectations/compiler/integers/i8/max.out index dc4a2e55d9..90294cb4e7 100644 --- a/tests/expectations/compiler/integers/i8/max.out +++ b/tests/expectations/compiler/integers/i8/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2bb604ab5da0673c363846fc2109710e51f760eebe3879e9bc2effeefe228aa1 - type_checked_symbol_table: 98b3e65843923f51d04b7519a16f2a1169792af01abb28fe4e0d325c2b799f9a - unrolled_symbol_table: 98b3e65843923f51d04b7519a16f2a1169792af01abb28fe4e0d325c2b799f9a - initial_ast: 69a42f880d4f0ac836619250ee701458c163d4f9eff358304cf7cd032fd9ad75 - unrolled_ast: 69a42f880d4f0ac836619250ee701458c163d4f9eff358304cf7cd032fd9ad75 - ssa_ast: 5f7b86958fcbbef52c49d9987510608a701cd9ca04e60d3035ffb4990ef3fd30 - flattened_ast: 0e54d7b6577a35445717c6ff5af7aa76b40f975d394684e4347efad371c4c658 - destructured_ast: 614271c80644a2233087a74a29f209abe856a0f153ff6a6047829fbc364aab67 - inlined_ast: 614271c80644a2233087a74a29f209abe856a0f153ff6a6047829fbc364aab67 - dce_ast: 614271c80644a2233087a74a29f209abe856a0f153ff6a6047829fbc364aab67 + - initial_symbol_table: 0c644277fea9633946a5e1cdd6d44e43e7ecbd07f31e92938ff07442e93c8a7d + type_checked_symbol_table: 2fecbec36f945eca9bb4c39ad47fea02501d694f646b6195a7c7d762193ccd6a + unrolled_symbol_table: 2fecbec36f945eca9bb4c39ad47fea02501d694f646b6195a7c7d762193ccd6a + initial_ast: 4b61fbbe89303cd9feb58f8abcb06a4f2ffd84af2945f58e91a61ecdb9e6035a + unrolled_ast: 4b61fbbe89303cd9feb58f8abcb06a4f2ffd84af2945f58e91a61ecdb9e6035a + ssa_ast: f168376c36edb00c272a834f463e37a713491000c2697c3f6af182578b2cce93 + flattened_ast: aed6c9ce365e75f7c6e4f92d6a0529895da19bbffff61134158c24b32e90379e + destructured_ast: d6ecd601f8f81c08b85ac88ebe8e4e8db9611d3c86b8bad8c294d9fc6ce61a76 + inlined_ast: d6ecd601f8f81c08b85ac88ebe8e4e8db9611d3c86b8bad8c294d9fc6ce61a76 + dce_ast: d6ecd601f8f81c08b85ac88ebe8e4e8db9611d3c86b8bad8c294d9fc6ce61a76 bytecode: 3c067ad506fc41e4e9e7db063d5364cb4b48df235e552f3cae7d5de2cbb781e0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/max_fail.out b/tests/expectations/compiler/integers/i8/max_fail.out index 72a865c7b0..c484603789 100644 --- a/tests/expectations/compiler/integers/i8/max_fail.out +++ b/tests/expectations/compiler/integers/i8/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 128 is not a valid `i8`\n --> compiler-test:5:21\n |\n 5 | let a: i8 = 128i8;\n | ^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 128 is not a valid `i8`\n --> compiler-test:5:21\n |\n 5 | let a: i8 = 128i8;\n | ^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i8/min.out b/tests/expectations/compiler/integers/i8/min.out index aebbba2419..4f7087cbe1 100644 --- a/tests/expectations/compiler/integers/i8/min.out +++ b/tests/expectations/compiler/integers/i8/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2bb604ab5da0673c363846fc2109710e51f760eebe3879e9bc2effeefe228aa1 - type_checked_symbol_table: 98b3e65843923f51d04b7519a16f2a1169792af01abb28fe4e0d325c2b799f9a - unrolled_symbol_table: 98b3e65843923f51d04b7519a16f2a1169792af01abb28fe4e0d325c2b799f9a - initial_ast: edbd2517b9a618a7537bf0cf00d7077abb99936b1ab053d861cd486297794217 - unrolled_ast: edbd2517b9a618a7537bf0cf00d7077abb99936b1ab053d861cd486297794217 - ssa_ast: 79446421e819533c85d47beb323849be890e276d02f4374867e7d5cb68c6c677 - flattened_ast: c35070c4e85d272ec92511fb6eaa4ff665dbabb44c835edac78796515bb90f03 - destructured_ast: 2e3e21930b869bc0ee00fff40b34f224da738dc324bcc5a965e6cea52a8006c5 - inlined_ast: 2e3e21930b869bc0ee00fff40b34f224da738dc324bcc5a965e6cea52a8006c5 - dce_ast: 2e3e21930b869bc0ee00fff40b34f224da738dc324bcc5a965e6cea52a8006c5 + - initial_symbol_table: 0c644277fea9633946a5e1cdd6d44e43e7ecbd07f31e92938ff07442e93c8a7d + type_checked_symbol_table: 2fecbec36f945eca9bb4c39ad47fea02501d694f646b6195a7c7d762193ccd6a + unrolled_symbol_table: 2fecbec36f945eca9bb4c39ad47fea02501d694f646b6195a7c7d762193ccd6a + initial_ast: d8d2b161dde04b18c3d331e52e97d9f2c6ddce4093cddd7ca41ace57a5187547 + unrolled_ast: d8d2b161dde04b18c3d331e52e97d9f2c6ddce4093cddd7ca41ace57a5187547 + ssa_ast: 0aeea25f2e2cb11169aab9f8ce12915b954f06c1f28f13d469eb56a90a2e4255 + flattened_ast: ba08840b763b0f296cf1b3d7e2e3bcba959417f05c35197203c4f4f564bfcca5 + destructured_ast: 488cbd8629108cd83b55550fc116b76f776523ed90e86f3f44705158182009bb + inlined_ast: 488cbd8629108cd83b55550fc116b76f776523ed90e86f3f44705158182009bb + dce_ast: 488cbd8629108cd83b55550fc116b76f776523ed90e86f3f44705158182009bb bytecode: 55a111c89ca19d386df2b23007d709d5c8787909e9e1160c29499b3f7a01dcf5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/min_fail.out b/tests/expectations/compiler/integers/i8/min_fail.out index dc8566db3a..59eafd4f55 100644 --- a/tests/expectations/compiler/integers/i8/min_fail.out +++ b/tests/expectations/compiler/integers/i8/min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a86e114042d2b5e885f80266a1bafa0673ac9cbd34117c87d6bd26470d2ab1e5 - type_checked_symbol_table: 35205b931047cd90c6fc18bc5efc4f045d54ac4afe574d99dc035ab21a2d5c5a - unrolled_symbol_table: 35205b931047cd90c6fc18bc5efc4f045d54ac4afe574d99dc035ab21a2d5c5a - initial_ast: bd9d1a6c4f374da390b67577935e40eb5992c6d841fdcaf4e0356972cd5ab31c - unrolled_ast: bd9d1a6c4f374da390b67577935e40eb5992c6d841fdcaf4e0356972cd5ab31c - ssa_ast: faa1fef7802ded24ecc41aa2500c8754659d948e28072c19445c208d93944611 - flattened_ast: 0d5d3015b5440d451791a588ab9fcccf8e57ca35eaa48dcc34c0fc75bad503b8 - destructured_ast: 004a7cb9ec7f581256586bb63bc5e585c69b7465a6db610648a7900d48654447 - inlined_ast: 004a7cb9ec7f581256586bb63bc5e585c69b7465a6db610648a7900d48654447 - dce_ast: 004a7cb9ec7f581256586bb63bc5e585c69b7465a6db610648a7900d48654447 + - initial_symbol_table: 53cd8c6069d14d5d164498d588e5cc8a1474d01b2c60e1bcd9adccdd59682808 + type_checked_symbol_table: 900c1617396d0410388c0c58234bf75cdc80070cda02ed5da2ffdff9669d76c8 + unrolled_symbol_table: 900c1617396d0410388c0c58234bf75cdc80070cda02ed5da2ffdff9669d76c8 + initial_ast: ba5892a5eec708aca18463c9819453a43beba1c685002a4bfd0d285a56388f34 + unrolled_ast: ba5892a5eec708aca18463c9819453a43beba1c685002a4bfd0d285a56388f34 + ssa_ast: d285613c52db9a19eb7356feffab53d620befe081790781194754fec953fcc45 + flattened_ast: ccddd34994e8c782edd29ffc512f61193af2f8ad312b314a351228dd46ea5553 + destructured_ast: 832dd0370e4619e7d7c147d9620659bfbd3b358366c9b7a3d194abe5d07a6dc0 + inlined_ast: 832dd0370e4619e7d7c147d9620659bfbd3b358366c9b7a3d194abe5d07a6dc0 + dce_ast: 832dd0370e4619e7d7c147d9620659bfbd3b358366c9b7a3d194abe5d07a6dc0 bytecode: 2181efe703d35367134a1f8a3601cc57254af6fff5313d65f4b442e1bb24ca38 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/mul.out b/tests/expectations/compiler/integers/i8/mul.out index bde003473d..a2a1a1b4be 100644 --- a/tests/expectations/compiler/integers/i8/mul.out +++ b/tests/expectations/compiler/integers/i8/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: cc9f27368d6823616de65544b5fc476c74924961b4ddc7e4df28ea5514019312 - unrolled_ast: cc9f27368d6823616de65544b5fc476c74924961b4ddc7e4df28ea5514019312 - ssa_ast: 2d494fa86fe7c8643dbb9f2de12caf263c37179384679be085a357166b82ada6 - flattened_ast: 00008181abf53b8dd44cef9fefd2e3d8067b6624d695fd653e38bcfd187bb9c9 - destructured_ast: 8c7890cf467083430b25a2aeac991e2ac4aef48085ff75765aec5376aecab48a - inlined_ast: 8c7890cf467083430b25a2aeac991e2ac4aef48085ff75765aec5376aecab48a - dce_ast: 8c7890cf467083430b25a2aeac991e2ac4aef48085ff75765aec5376aecab48a + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: b76648b5bafb9fc7cf3e11ec6f54daa5a141eb2f1decca2bf9776b627799668f + unrolled_ast: b76648b5bafb9fc7cf3e11ec6f54daa5a141eb2f1decca2bf9776b627799668f + ssa_ast: b2d2ca237e0d589ce801966940172f6a15b706007b136636d1d03c3cc068c7bf + flattened_ast: 2600fafd856698250c70ffab3c48a3ddc2906dbbe1d789d7448c7de4ae7faaba + destructured_ast: 1d06c978b0e7517c649c3c6aafca6787b60da8df43e86c2c69b281af76102143 + inlined_ast: 1d06c978b0e7517c649c3c6aafca6787b60da8df43e86c2c69b281af76102143 + dce_ast: 1d06c978b0e7517c649c3c6aafca6787b60da8df43e86c2c69b281af76102143 bytecode: 4d7f4174af8a36e85cdb61b3aea8ff9d5d2fff98c50e002f82e4e37cec9beab8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/ne.out b/tests/expectations/compiler/integers/i8/ne.out index 76477a3578..8d22eb29a1 100644 --- a/tests/expectations/compiler/integers/i8/ne.out +++ b/tests/expectations/compiler/integers/i8/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4ba4e2ae899d9c9a040d7e63833106fda2327381c71b3bbb3654d378275acee0 - type_checked_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - unrolled_symbol_table: 1158e2705be8d9f439f917107f9542086dc59b1de3a3e5cb9feec9500dce0dc5 - initial_ast: 88e9e4b659d11b1720c1f45ebeea8f0b62c83ac68ae7c289cf97ad42e5bc1411 - unrolled_ast: 88e9e4b659d11b1720c1f45ebeea8f0b62c83ac68ae7c289cf97ad42e5bc1411 - ssa_ast: 0204e231174568b24ddfca4f56fc938d59f04b5b23b3a48df87c9ef2144d8294 - flattened_ast: 093b8f470bbc76eee2fc5d0aae02efae321806456005195f2ba9564b08070c48 - destructured_ast: 2380bf07c0fda71cd5eca82c24c56d97d20653e79c17da22661fb46ac8bb734c - inlined_ast: 2380bf07c0fda71cd5eca82c24c56d97d20653e79c17da22661fb46ac8bb734c - dce_ast: 2380bf07c0fda71cd5eca82c24c56d97d20653e79c17da22661fb46ac8bb734c + - initial_symbol_table: 2fec643bab68303b83da5e504c04e2689fb6eba70142b915c2f8843503948889 + type_checked_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + unrolled_symbol_table: a587dc57823091bd326ec0e1b94ba824fcd9a09a1524441ca0662beeacc3167c + initial_ast: de247b41e40b9f9e3774a580f08dabd3343cadf894922451578aea71fce0bc15 + unrolled_ast: de247b41e40b9f9e3774a580f08dabd3343cadf894922451578aea71fce0bc15 + ssa_ast: 55f9afec16c43f96df49ad874ee231f50b651d5bf539ca601bd85881fa4ec29b + flattened_ast: de1f12876a60ab819832d41b9a0de9971e6610f230053aa901a0276e87525c50 + destructured_ast: 0edaa4c6122fb46e44f65ee51ceb42770b355c5607f365917e1270918365232c + inlined_ast: 0edaa4c6122fb46e44f65ee51ceb42770b355c5607f365917e1270918365232c + dce_ast: 0edaa4c6122fb46e44f65ee51ceb42770b355c5607f365917e1270918365232c bytecode: d7dd8a73bf281baa5edbf7c488b9752d703a092ec1840c0e35d830a7c6f9c007 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/negate.out b/tests/expectations/compiler/integers/i8/negate.out index aa3215f515..04f0b5e8ca 100644 --- a/tests/expectations/compiler/integers/i8/negate.out +++ b/tests/expectations/compiler/integers/i8/negate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0d86d9a02728d478f76d22ff6dc614bc735dda20e82d363aa8c8952c51fdbf59 - type_checked_symbol_table: 55b9a749845215fb08d3ac7c2384640fc8d42806c58ac73b2ef1827b7fe75940 - unrolled_symbol_table: 55b9a749845215fb08d3ac7c2384640fc8d42806c58ac73b2ef1827b7fe75940 - initial_ast: b7589322287f6756a44a06222c9485b011510d7241e534e21086752da9b4687e - unrolled_ast: b7589322287f6756a44a06222c9485b011510d7241e534e21086752da9b4687e - ssa_ast: b2d7e6ea733ac1c3529a53c778c89ade07ab278a527276e698835480f06bb6b5 - flattened_ast: 54e2b35699e93414679844638d2fcef5860309056a5021dc9c755885672ebc47 - destructured_ast: d1f25a70727773df39791e6c086a3336d6f585a7e3a212bd5fc84d0d4cff667c - inlined_ast: d1f25a70727773df39791e6c086a3336d6f585a7e3a212bd5fc84d0d4cff667c - dce_ast: d1f25a70727773df39791e6c086a3336d6f585a7e3a212bd5fc84d0d4cff667c + - initial_symbol_table: 435e2e4d3f4a0fb6a20346bd5431a571e4f59b22d7369ec3e37fca0929a0d4ee + type_checked_symbol_table: 4ea70ce9f8b2a4e0d44807b8d157f76066529df820162949a54032946332aef5 + unrolled_symbol_table: 4ea70ce9f8b2a4e0d44807b8d157f76066529df820162949a54032946332aef5 + initial_ast: 979e02c9464a7dcd7c559b5a93fda3badff3fcd386262987a1c0b9739f119756 + unrolled_ast: 979e02c9464a7dcd7c559b5a93fda3badff3fcd386262987a1c0b9739f119756 + ssa_ast: b21e65014d8d892ded6cb6e8de50652887ba9733305601978fdaa9b218d3423a + flattened_ast: 41c718e8d0e22f369fd85c95421ec38ece6dea442e400c59fa1ca51f7ba6f0a4 + destructured_ast: 90ac4742f6d9fef6168e009a5b4ed4e1512b3d397d0b2d6540082d560b252c11 + inlined_ast: 90ac4742f6d9fef6168e009a5b4ed4e1512b3d397d0b2d6540082d560b252c11 + dce_ast: 90ac4742f6d9fef6168e009a5b4ed4e1512b3d397d0b2d6540082d560b252c11 bytecode: 68da5691d330a6bcaa3f223f7a2140e1c01993fe61750a646efe6241bccb88c9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/negate_min_fail.out b/tests/expectations/compiler/integers/i8/negate_min_fail.out index 68542abc17..d74c411e0f 100644 --- a/tests/expectations/compiler/integers/i8/negate_min_fail.out +++ b/tests/expectations/compiler/integers/i8/negate_min_fail.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a86e114042d2b5e885f80266a1bafa0673ac9cbd34117c87d6bd26470d2ab1e5 - type_checked_symbol_table: 35205b931047cd90c6fc18bc5efc4f045d54ac4afe574d99dc035ab21a2d5c5a - unrolled_symbol_table: 35205b931047cd90c6fc18bc5efc4f045d54ac4afe574d99dc035ab21a2d5c5a - initial_ast: 191df0f0490f7de78df677eaba0e3b373fcc282dadf7ca02d868f07582e7402d - unrolled_ast: 191df0f0490f7de78df677eaba0e3b373fcc282dadf7ca02d868f07582e7402d - ssa_ast: 63cc95fef08652e5c2f318a2a81afbee537f3733ec55cbe234248b267379072c - flattened_ast: 12213c88f160150ee3b55560e60cc3ad1ac8128f7f3e47de313c08f8a1e791a0 - destructured_ast: f88ca97e8db6a19ad6ae8f6d42332192ebf6f3399c476314490027e78dca49c0 - inlined_ast: f88ca97e8db6a19ad6ae8f6d42332192ebf6f3399c476314490027e78dca49c0 - dce_ast: f88ca97e8db6a19ad6ae8f6d42332192ebf6f3399c476314490027e78dca49c0 + - initial_symbol_table: 53cd8c6069d14d5d164498d588e5cc8a1474d01b2c60e1bcd9adccdd59682808 + type_checked_symbol_table: 900c1617396d0410388c0c58234bf75cdc80070cda02ed5da2ffdff9669d76c8 + unrolled_symbol_table: 900c1617396d0410388c0c58234bf75cdc80070cda02ed5da2ffdff9669d76c8 + initial_ast: f4ce65332c12b58260a13bf5837d4c8b0b7da5141d189bd5321a1a4aa7b2d121 + unrolled_ast: f4ce65332c12b58260a13bf5837d4c8b0b7da5141d189bd5321a1a4aa7b2d121 + ssa_ast: fee4d402531e919f0cf0a66790eb3b114d647af4f48b637c77d2223de8e5cfb6 + flattened_ast: c9b20d6f31b014f56b2b06b26f8f62e203e2046ae1c7dc91051b7511fc8d7f64 + destructured_ast: cd9c13ce5b16650258e3d8449e4c5a5ac4508bd8494cf490d9ff3a1cd400a95b + inlined_ast: cd9c13ce5b16650258e3d8449e4c5a5ac4508bd8494cf490d9ff3a1cd400a95b + dce_ast: cd9c13ce5b16650258e3d8449e4c5a5ac4508bd8494cf490d9ff3a1cd400a95b bytecode: a4ebf23c558ad51c1a52d068bb7ac0b76d19edf6545cb32d068ab3206f87bef4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/negate_zero.out b/tests/expectations/compiler/integers/i8/negate_zero.out index 9038b4707a..a6e9621594 100644 --- a/tests/expectations/compiler/integers/i8/negate_zero.out +++ b/tests/expectations/compiler/integers/i8/negate_zero.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: c2d13854571d0a457a87f8cdaddb9191491ec93fda4cf6a7a2aff1cb4ccc3ef3 - unrolled_symbol_table: c2d13854571d0a457a87f8cdaddb9191491ec93fda4cf6a7a2aff1cb4ccc3ef3 - initial_ast: 5ae339c4489627477818a271f0bc0a31131adca32441ace6b54021781e2c5125 - unrolled_ast: 5ae339c4489627477818a271f0bc0a31131adca32441ace6b54021781e2c5125 - ssa_ast: f8b3f3e8608aa9fad0113fcf0f147324ec5181dae1b1456c2976bc7b83050b6d - flattened_ast: d6c5b397dec9cad992f5f56b0798096764ce00be81f9080bd278edb9d527219d - destructured_ast: 2aa48753affa2fd46256fd32d36820d1481ee7e6739c0c23276efbfe8a01e664 - inlined_ast: 2aa48753affa2fd46256fd32d36820d1481ee7e6739c0c23276efbfe8a01e664 - dce_ast: 2aa48753affa2fd46256fd32d36820d1481ee7e6739c0c23276efbfe8a01e664 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: bbc9b6ac3e34c83287ff18797d5172902a135dec3c843ae23a12340fb696ced4 + unrolled_symbol_table: bbc9b6ac3e34c83287ff18797d5172902a135dec3c843ae23a12340fb696ced4 + initial_ast: c25d8f06488510eeb0dd9a7835326aa3a4edb235802a0b8f7bbc88a186e72f8f + unrolled_ast: c25d8f06488510eeb0dd9a7835326aa3a4edb235802a0b8f7bbc88a186e72f8f + ssa_ast: 7ac952982f9dcbb0d50f43655d6d2e0a61787acde93fb5f50913d7b071fbaaa9 + flattened_ast: a03343a320349f96bda3763c25ec7689dc80d10125a4ef7d3be6dd82c7e784cb + destructured_ast: 3947e1f1ae87b421df9fcf3302d98d40e80d75f3935fcea79190f703b9ffd6d1 + inlined_ast: 3947e1f1ae87b421df9fcf3302d98d40e80d75f3935fcea79190f703b9ffd6d1 + dce_ast: 3947e1f1ae87b421df9fcf3302d98d40e80d75f3935fcea79190f703b9ffd6d1 bytecode: d93c33f2a15e75c32e9a604904fecc39f063d4a2a3463240b68a401105a55053 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/operator_methods.out b/tests/expectations/compiler/integers/i8/operator_methods.out index f61d4d4fe6..0fb3f55cb3 100644 --- a/tests/expectations/compiler/integers/i8/operator_methods.out +++ b/tests/expectations/compiler/integers/i8/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0d86d9a02728d478f76d22ff6dc614bc735dda20e82d363aa8c8952c51fdbf59 - type_checked_symbol_table: 078b113173a6df1dfd356248a98cd43a64ed564d10f420bd7948c5a5ea844461 - unrolled_symbol_table: 078b113173a6df1dfd356248a98cd43a64ed564d10f420bd7948c5a5ea844461 - initial_ast: dcad7cfd1c45ff3fd0c55987d42471297b57cb51306fe938d9bd0efd64873cf8 - unrolled_ast: dcad7cfd1c45ff3fd0c55987d42471297b57cb51306fe938d9bd0efd64873cf8 - ssa_ast: e85cc802d21dc84fbf7858973ed52b6572685bd79d77bc44608d122b47a303f6 - flattened_ast: c49f4acfb16c40607c2c58da66228382633e30d0383514b1d55184a566e8fbec - destructured_ast: c087dcf0eaf628689fdced95e2d07b1a4b565a90a6055061b7cfc8d3ec918322 - inlined_ast: c087dcf0eaf628689fdced95e2d07b1a4b565a90a6055061b7cfc8d3ec918322 - dce_ast: 18b8ace6e48ff1150f96a324741f70cd567cf102977a79fd6e0dd7128f6c9ad6 + - initial_symbol_table: 435e2e4d3f4a0fb6a20346bd5431a571e4f59b22d7369ec3e37fca0929a0d4ee + type_checked_symbol_table: 4c724279887995f9a773379d995c2ada7b541487dfa8dcad0a03cc27cb6710c0 + unrolled_symbol_table: 4c724279887995f9a773379d995c2ada7b541487dfa8dcad0a03cc27cb6710c0 + initial_ast: 536a27a54b54af26ebb769a5c2ce8c48bb683ea1f545a897c74185d17c8a4b9f + unrolled_ast: 536a27a54b54af26ebb769a5c2ce8c48bb683ea1f545a897c74185d17c8a4b9f + ssa_ast: 1256baced0fd272a7af23178e5f81bba7cc09cb58dea011207348cb530bde5ab + flattened_ast: 31fab623f1640f7b09a13d846d6bfcf26dcc0964f66b15d1324d7dc36ff0e24a + destructured_ast: e59f1b545d57f6ccb5b149bb94fbbb25f61e642cb353c828b96e220632670d8e + inlined_ast: e59f1b545d57f6ccb5b149bb94fbbb25f61e642cb353c828b96e220632670d8e + dce_ast: 5f71931cc604569f7031bc2e9a97f3eebcd10aa7abd2a282a9b31de6b35da6c6 bytecode: faddd6204de19b830842ea34e1f218276b8e8914ecd7fdbfd4143b0f08d305c1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/or.out b/tests/expectations/compiler/integers/i8/or.out index 8e4f886792..f4b3290a69 100644 --- a/tests/expectations/compiler/integers/i8/or.out +++ b/tests/expectations/compiler/integers/i8/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: 283133ca700f5d07cc198233f344e5c60789746ccd2d1d6fe7e25b82f90a7429 - unrolled_ast: 283133ca700f5d07cc198233f344e5c60789746ccd2d1d6fe7e25b82f90a7429 - ssa_ast: 5e184ac7dc0002836adce9af31ee135015a107188b6b8936eb33ef1ea433e213 - flattened_ast: 9eb2777182f221f82d282dfce99ef15ffc327c459ad85014783be20b0e3c350f - destructured_ast: 0a77b64b6d18af4c306aeb0e1da17dd4cb6daaff9b4f9f93303ce8849f8e4440 - inlined_ast: 0a77b64b6d18af4c306aeb0e1da17dd4cb6daaff9b4f9f93303ce8849f8e4440 - dce_ast: 0a77b64b6d18af4c306aeb0e1da17dd4cb6daaff9b4f9f93303ce8849f8e4440 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: a63dfebf79f0b8d7a4c88e6c8623e37603351205de44768179b306bbb327fd67 + unrolled_ast: a63dfebf79f0b8d7a4c88e6c8623e37603351205de44768179b306bbb327fd67 + ssa_ast: 94371d06a52ee8da77061d447ff55c96ebc419b172b155eb58a25776c6845c75 + flattened_ast: 217c5de8dc0b98b2c3eb8066165219c46eb36c0e91600d4b545f9184b1568228 + destructured_ast: 132d37868948fe118daff568661bdb4bcd113da736adbb9669be898c1cf5c67a + inlined_ast: 132d37868948fe118daff568661bdb4bcd113da736adbb9669be898c1cf5c67a + dce_ast: 132d37868948fe118daff568661bdb4bcd113da736adbb9669be898c1cf5c67a bytecode: 4ea2659376ff2503f5dbf9e6bda9c9f13fb84dec3182bb626646806f874e00eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/pow.out b/tests/expectations/compiler/integers/i8/pow.out index 698cbf9e28..f1d5183cda 100644 --- a/tests/expectations/compiler/integers/i8/pow.out +++ b/tests/expectations/compiler/integers/i8/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: fdaa8a3242c5f74ae5fef7689631a32e661107dd089636b159428fff167bdfd4 - unrolled_ast: fdaa8a3242c5f74ae5fef7689631a32e661107dd089636b159428fff167bdfd4 - ssa_ast: 2080baca06deef83cee24196a46120c421e884d1e163029e5849e24eff517b44 - flattened_ast: dd286138b3cd7792f952c367bdec50403cabe2e2de417ed286fd04af75078fc1 - destructured_ast: e895ac76b5102246683c0afd9d0050ced5beee8f5391ea4e19a26aa989b78c60 - inlined_ast: e895ac76b5102246683c0afd9d0050ced5beee8f5391ea4e19a26aa989b78c60 - dce_ast: e895ac76b5102246683c0afd9d0050ced5beee8f5391ea4e19a26aa989b78c60 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: d3e511a103ecbccc7896688c8f8aa824e5d58309401904a4e11d17b3723f00fe + unrolled_ast: d3e511a103ecbccc7896688c8f8aa824e5d58309401904a4e11d17b3723f00fe + ssa_ast: 079d10083a4d075d31046a59e56e5a534a66c0a3ac6cc81b617ff55397f03eca + flattened_ast: ba539a197253eaea9b5ed3f3de01d6290aa85549c07d2cbba82d2e7225d38ebf + destructured_ast: 8392b3d029986b6d608a727674b13fb7cf9596f55e8e18c6eb596d44b6992ead + inlined_ast: 8392b3d029986b6d608a727674b13fb7cf9596f55e8e18c6eb596d44b6992ead + dce_ast: 8392b3d029986b6d608a727674b13fb7cf9596f55e8e18c6eb596d44b6992ead bytecode: edd5ec13303284be804f592351207aa0ac4c7c6e0c0b7f9a6377f8b75e0d377e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/rem.out b/tests/expectations/compiler/integers/i8/rem.out index 8a08dc06c2..e9216258f4 100644 --- a/tests/expectations/compiler/integers/i8/rem.out +++ b/tests/expectations/compiler/integers/i8/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: 8414f14a6843b26417fe7ebdde379a44b90bc631fd383578a9c23e8bb04ff941 - unrolled_ast: 8414f14a6843b26417fe7ebdde379a44b90bc631fd383578a9c23e8bb04ff941 - ssa_ast: a12b8d03af940b09ce786258084627bf83ac16a316926ff16c6cd6f7ae11293c - flattened_ast: e49adb3bf43f32404f6a5574f33c591c62089412a8289fe84ee8ad0534c53095 - destructured_ast: d459533a797eeabcfcab0376bb58ed1e64f1bee495460321d7b9ff4c6aba4e93 - inlined_ast: d459533a797eeabcfcab0376bb58ed1e64f1bee495460321d7b9ff4c6aba4e93 - dce_ast: d459533a797eeabcfcab0376bb58ed1e64f1bee495460321d7b9ff4c6aba4e93 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: 30e55a20adf265ccea6832202ab78463e078856ae3a2e63ec55e4e1a2bdff425 + unrolled_ast: 30e55a20adf265ccea6832202ab78463e078856ae3a2e63ec55e4e1a2bdff425 + ssa_ast: 2180b545764483595c4a9d7e6a950638457255e03a1fde9a315882b6daa45f53 + flattened_ast: 37f9e02848521727636686b4cc3ca9c7e71e1a868ec6f9907844b9e723f1db4e + destructured_ast: 045dddd0fcda7971557abbcaffbba999413ec93cb068fabb0565b9f139569c2f + inlined_ast: 045dddd0fcda7971557abbcaffbba999413ec93cb068fabb0565b9f139569c2f + dce_ast: 045dddd0fcda7971557abbcaffbba999413ec93cb068fabb0565b9f139569c2f bytecode: 34eda0edb2d4048d2b3e2ea19e929f063903b4ca94d90f8a0e1525a0bb2d0134 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/shl.out b/tests/expectations/compiler/integers/i8/shl.out index 9fd390c65d..7f41c3e1b1 100644 --- a/tests/expectations/compiler/integers/i8/shl.out +++ b/tests/expectations/compiler/integers/i8/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: 65de1cd0ddc9d15981d2303b53025caf1bd44d045ae80a2b58660b54ead7b941 - unrolled_ast: 65de1cd0ddc9d15981d2303b53025caf1bd44d045ae80a2b58660b54ead7b941 - ssa_ast: 439056adc705762aaaff92c319014cf6d53905c2d842ac7fdebfa8e938b9bd59 - flattened_ast: be7a9efeece483cf7a4a7919d390c9a55e1f3a04eec1221f7065efe58b740115 - destructured_ast: f48540a949bd17124a1534959f0a125bbe555c166055de6788ef794286ddd982 - inlined_ast: f48540a949bd17124a1534959f0a125bbe555c166055de6788ef794286ddd982 - dce_ast: f48540a949bd17124a1534959f0a125bbe555c166055de6788ef794286ddd982 + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: 4fc392eec410efbe1de20789c87b71f5391d3a7eb59cc959803d3c80bfd90ad9 + unrolled_ast: 4fc392eec410efbe1de20789c87b71f5391d3a7eb59cc959803d3c80bfd90ad9 + ssa_ast: 2e13427d5803058ca13333041fc6db98cd5cfd594ea9cade432dfac28451845b + flattened_ast: a17f9502a1ce15587170e5607276578cc5bf68843b421e7ce524add1123611e3 + destructured_ast: 76dfa0c624067fb59b919a413621691ad4d24ea7b265bad0ab04fdb0638134ca + inlined_ast: 76dfa0c624067fb59b919a413621691ad4d24ea7b265bad0ab04fdb0638134ca + dce_ast: 76dfa0c624067fb59b919a413621691ad4d24ea7b265bad0ab04fdb0638134ca bytecode: 307c17323af8fd5de808a828e634ce97419a0ba67815102016fab6c883b7e052 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/shr.out b/tests/expectations/compiler/integers/i8/shr.out index 2a61a0991d..0f4b38fcec 100644 --- a/tests/expectations/compiler/integers/i8/shr.out +++ b/tests/expectations/compiler/integers/i8/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: c71eaa1ad931a7e6a116074e76c64f455d2549de4b7a5c025a12c7f4d1bb6922 - unrolled_ast: c71eaa1ad931a7e6a116074e76c64f455d2549de4b7a5c025a12c7f4d1bb6922 - ssa_ast: 3785c3dd0d865869b74be154803b87c6035426299cf394bd2526915538996cca - flattened_ast: 87de20c07bda34f623a641aff33b1585f745497dd102f66a05fae3bef31731c1 - destructured_ast: 16715f82a4b0c66d63c4b9e7613fdda7b9e66614b9e412a38fa35eafc7a45a8d - inlined_ast: 16715f82a4b0c66d63c4b9e7613fdda7b9e66614b9e412a38fa35eafc7a45a8d - dce_ast: 16715f82a4b0c66d63c4b9e7613fdda7b9e66614b9e412a38fa35eafc7a45a8d + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: 04349b3707faf905e4cd5f9b69f411a92174978862203c050f2dc5a92e008987 + unrolled_ast: 04349b3707faf905e4cd5f9b69f411a92174978862203c050f2dc5a92e008987 + ssa_ast: d9825f0e35aaac061fe0a8206775a7bb80f015c84b3ff50d065021a48199cd9e + flattened_ast: 3c9729a52567a87339af45fc78649309e825181662fca899b19947e479d97ad2 + destructured_ast: 982923d2107bf87137efcb5736a2c6320276d6c50b9aae56c336b97550c68876 + inlined_ast: 982923d2107bf87137efcb5736a2c6320276d6c50b9aae56c336b97550c68876 + dce_ast: 982923d2107bf87137efcb5736a2c6320276d6c50b9aae56c336b97550c68876 bytecode: e0110365aec2e78cbf8f7accb85b8c7e36d2c606cdd6a4cafd02a2b4dc7dfe38 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/sub.out b/tests/expectations/compiler/integers/i8/sub.out index 20e39a200b..4251ae7ffc 100644 --- a/tests/expectations/compiler/integers/i8/sub.out +++ b/tests/expectations/compiler/integers/i8/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b762ac0070d13ebedad056e5857dccfa3271d4dde168cab15353fa30af7723a9 - type_checked_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - unrolled_symbol_table: e86eb7491a10b9271c4a7dab1dd9d4bd619567009fd1e93cbd04d43e6a5c6684 - initial_ast: c40b083d513eb0664f82b95c4028bc6408c93e230291e6c82b3e06439314bbba - unrolled_ast: c40b083d513eb0664f82b95c4028bc6408c93e230291e6c82b3e06439314bbba - ssa_ast: 36c6193b8af3b15e47d9fe3cfb9803f19de102c6f387f0d0ec322ea2aa14f685 - flattened_ast: b9780eefbeeb3b74dd240cecfada14c832fb6f804c7e71e1345db5b57957e80a - destructured_ast: 6fe9ff13bea8f505f06af000c976d3431bbe40525b4128ed63380764eb3f9f7e - inlined_ast: 6fe9ff13bea8f505f06af000c976d3431bbe40525b4128ed63380764eb3f9f7e - dce_ast: 6fe9ff13bea8f505f06af000c976d3431bbe40525b4128ed63380764eb3f9f7e + - initial_symbol_table: 2bcb01175109d08fc9945ce76a6e0e23c14ca9a8120aafd8c1f438f1bf095b09 + type_checked_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + unrolled_symbol_table: 6e510a23ab1bfab0dc17134709a96349999e92de2aeaf7330505898f24d07849 + initial_ast: aab9c7dbb8dc96b2a370135d6e872365ac4f17271935742c22fc813323572764 + unrolled_ast: aab9c7dbb8dc96b2a370135d6e872365ac4f17271935742c22fc813323572764 + ssa_ast: e0097e8f10ffc4d5cf9ead7ac15fdca074db781b43af4860d9c71ca719e6e708 + flattened_ast: 86540ed64cc3147e09652c00e375579c048c61db62cacf701aedd2e5b097a9eb + destructured_ast: 90187c9d8f9b6f5bb9fe359ea3564833d07050f12295f0a194b4058d68813120 + inlined_ast: 90187c9d8f9b6f5bb9fe359ea3564833d07050f12295f0a194b4058d68813120 + dce_ast: 90187c9d8f9b6f5bb9fe359ea3564833d07050f12295f0a194b4058d68813120 bytecode: 6638d0f711e011432b8371bf648e0903f22612d062139a650ebe4d75783a8393 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/ternary.out b/tests/expectations/compiler/integers/i8/ternary.out index 8bd6f391c4..9599ada83f 100644 --- a/tests/expectations/compiler/integers/i8/ternary.out +++ b/tests/expectations/compiler/integers/i8/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 932a0ca49b2a4c543c8df34fd486a81949a6e38348521a2b4dd701714ee1d55d - type_checked_symbol_table: 6f9de988c1c7e2bd7fb237785d926c3c3dc98c25a9b0ff874cb4df20e3fe6b30 - unrolled_symbol_table: 6f9de988c1c7e2bd7fb237785d926c3c3dc98c25a9b0ff874cb4df20e3fe6b30 - initial_ast: 9b6b114455f0fee6e4630a97b2e3210245e72f55daf419dfa945c78c23124c44 - unrolled_ast: 9b6b114455f0fee6e4630a97b2e3210245e72f55daf419dfa945c78c23124c44 - ssa_ast: d7b7da77502b4926c2bf3194d1ff83c2b348af1c04f12da73520d2916896ef8b - flattened_ast: f43184ab862241c903c9bed3bd4b1cc4b505d06f5c17f7ca9752dd928eda668f - destructured_ast: 918ec04a1525fbf68d634f02cb2bee8ec7b4ff6d079616e047b92f40a96bed11 - inlined_ast: 918ec04a1525fbf68d634f02cb2bee8ec7b4ff6d079616e047b92f40a96bed11 - dce_ast: 918ec04a1525fbf68d634f02cb2bee8ec7b4ff6d079616e047b92f40a96bed11 + - initial_symbol_table: 59b5958e45c2be7223ec7cda69a0fdc79aa7c19ee17b3acab311bc340551331f + type_checked_symbol_table: f3a03ce0f0a61ee34bf8bb8030201905bcf4f9546669d0ec89590e8216063932 + unrolled_symbol_table: f3a03ce0f0a61ee34bf8bb8030201905bcf4f9546669d0ec89590e8216063932 + initial_ast: 56ada25362d0683d5d425c3431cd671d0055bda90ede9b7d85f28f9eaff9eea0 + unrolled_ast: 56ada25362d0683d5d425c3431cd671d0055bda90ede9b7d85f28f9eaff9eea0 + ssa_ast: 93b8f6890cd832f9c411c8b15d9c7029112f07d80f1b95a9766866ecb6445bbc + flattened_ast: 58c64826e319fd27fdf9981d2d8650e268a67f338bf5b78e9554b2dc34730458 + destructured_ast: fe532696b7a6dc2aa27762cd4a695ff1b5ecc78541dce2c8b12489e007e07543 + inlined_ast: fe532696b7a6dc2aa27762cd4a695ff1b5ecc78541dce2c8b12489e007e07543 + dce_ast: fe532696b7a6dc2aa27762cd4a695ff1b5ecc78541dce2c8b12489e007e07543 bytecode: 61eac30d1e0b3a4fa0357855b11e228b012203b9cd2f814c0faa660a2be5996d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/i8/xor.out b/tests/expectations/compiler/integers/i8/xor.out index 68c3e4b8f2..ebe609bb5d 100644 --- a/tests/expectations/compiler/integers/i8/xor.out +++ b/tests/expectations/compiler/integers/i8/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c58aee15a05243c7d85bc9c836e3e65d2dd7a8461fe829a6943c3f452a73c579 - type_checked_symbol_table: 7a60d62a1a1c406316d9ba0a618422dc012da66df290a742f1baaffa9a3eb475 - unrolled_symbol_table: 7a60d62a1a1c406316d9ba0a618422dc012da66df290a742f1baaffa9a3eb475 - initial_ast: d854ab4bbadcd95fe21ddfab4412b76bfc122dea5d16b77c10db06242db80f0d - unrolled_ast: d854ab4bbadcd95fe21ddfab4412b76bfc122dea5d16b77c10db06242db80f0d - ssa_ast: 4c73dd95afd27bf5e03288bb42ea49a1430b8e87541699e2739da2c285a896e5 - flattened_ast: 2c3729908430ddf544de0c32aa5837334a5797021017a171d27b9eef8f77960b - destructured_ast: 9018457034e0b6ad4d0aaf843b5c951d8c1fb39d738d2e53a0d0ff04bb9cb21f - inlined_ast: 9018457034e0b6ad4d0aaf843b5c951d8c1fb39d738d2e53a0d0ff04bb9cb21f - dce_ast: 9018457034e0b6ad4d0aaf843b5c951d8c1fb39d738d2e53a0d0ff04bb9cb21f + - initial_symbol_table: 8c9eac03d79e2d2b8e8dec061dcb37abf15a96cddf903e7d9ced5c996ad5f58d + type_checked_symbol_table: 312e9a9a29141a40f09c2c48167a932750196da788d128c179a2d24b49266ee9 + unrolled_symbol_table: 312e9a9a29141a40f09c2c48167a932750196da788d128c179a2d24b49266ee9 + initial_ast: 58eb16b3a9df3c3f36b3c10390616642a98affceabaad512cead973dddb58b78 + unrolled_ast: 58eb16b3a9df3c3f36b3c10390616642a98affceabaad512cead973dddb58b78 + ssa_ast: 0c8675ac779427136ad5ddcda40f5b4363b9a8fc44e6bf7f24fcefa4acaf5bf4 + flattened_ast: 5d6a9b810f9d7a3b4003dee5f1bff4ee5ec8db6e7596506559536af83e6b6fd2 + destructured_ast: 1e5638f438ffd404a721fc8cd8395e5afbfa16448723ea26413df9db509e4fd1 + inlined_ast: 1e5638f438ffd404a721fc8cd8395e5afbfa16448723ea26413df9db509e4fd1 + dce_ast: 1e5638f438ffd404a721fc8cd8395e5afbfa16448723ea26413df9db509e4fd1 bytecode: 219e0ef5cb7c0ac1ecb9541920637d11e5f48c5e52adab2060e6ed389647eee4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/add.out b/tests/expectations/compiler/integers/u128/add.out index 69141ced4d..75c0f928e5 100644 --- a/tests/expectations/compiler/integers/u128/add.out +++ b/tests/expectations/compiler/integers/u128/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: 70a3d168a2a2f300e98e60a80528bac8f547e5e2d9ac327fee615b3f240de54c - unrolled_ast: 70a3d168a2a2f300e98e60a80528bac8f547e5e2d9ac327fee615b3f240de54c - ssa_ast: 52659862a577a251afda527f777d30a53dd1bf309f17628471e71b819108f220 - flattened_ast: 009d8bb1183aaf8a4a7101692d2368cc5cf10c74240c1d193403caf384f3fc5a - destructured_ast: 777e43d3ef682d1e135f331e5b2d9d785fd22a3deca1053ab664b41152ac5c2b - inlined_ast: 777e43d3ef682d1e135f331e5b2d9d785fd22a3deca1053ab664b41152ac5c2b - dce_ast: 777e43d3ef682d1e135f331e5b2d9d785fd22a3deca1053ab664b41152ac5c2b + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 19a8ccdb2d31e57f3275a98bd2934abf8e4911ce92aa9a73ac7b3b48a993ca94 + unrolled_ast: 19a8ccdb2d31e57f3275a98bd2934abf8e4911ce92aa9a73ac7b3b48a993ca94 + ssa_ast: 63667731ab843c4a1b37193b94fb55fa482fb0a8414798388f6f3c5f7db4c7c9 + flattened_ast: 05c87052ec99a45ef4c7591ebb58d69d924734cbc07d956b1690b339fb349905 + destructured_ast: 48dbc0f9a7233b610ede9cdf55e9a1b98569eb0169c3aced35d2bba3341dbe46 + inlined_ast: 48dbc0f9a7233b610ede9cdf55e9a1b98569eb0169c3aced35d2bba3341dbe46 + dce_ast: 48dbc0f9a7233b610ede9cdf55e9a1b98569eb0169c3aced35d2bba3341dbe46 bytecode: 2d327c3f6b7f23cc5f8e292ef00cf94df2fa9afad2bc8fe26ca28dc6f338d2cc errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/and.out b/tests/expectations/compiler/integers/u128/and.out index 8693dbc2e3..4b5bca584c 100644 --- a/tests/expectations/compiler/integers/u128/and.out +++ b/tests/expectations/compiler/integers/u128/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: abb88e5c62797b426ca282b0a68f75ff101c0e90a40c807252bccf0237ae83ca - unrolled_ast: abb88e5c62797b426ca282b0a68f75ff101c0e90a40c807252bccf0237ae83ca - ssa_ast: a44c0778f980d6f77ccf291e1f6f399928019d8be142804a7f75d0c9554e682f - flattened_ast: ce9ff7129b9b370ec44e0f74d724ddd4f2819e4008e0cb28bda6acb920513f82 - destructured_ast: eabf1ab82201fdc9729582fe3cf53364fd15155ffba4b81ef79f832934c8b6e1 - inlined_ast: eabf1ab82201fdc9729582fe3cf53364fd15155ffba4b81ef79f832934c8b6e1 - dce_ast: eabf1ab82201fdc9729582fe3cf53364fd15155ffba4b81ef79f832934c8b6e1 + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 4da2e7852d0ec29b568efc652d39e54cfb04f9855a17472262a38dcdff79d228 + unrolled_ast: 4da2e7852d0ec29b568efc652d39e54cfb04f9855a17472262a38dcdff79d228 + ssa_ast: 0ff360637285b511eeedaa8c35ef8b91965ed31291180583c8a0df74154a14bb + flattened_ast: 5d77250d1ea24ca9de759abca37ccd489ff9e8f7db5110cb31123b5dba9ab63d + destructured_ast: 20ac230d8bbc870b59c28eebaba89e362905215acda0b8654b97c1fed82459c6 + inlined_ast: 20ac230d8bbc870b59c28eebaba89e362905215acda0b8654b97c1fed82459c6 + dce_ast: 20ac230d8bbc870b59c28eebaba89e362905215acda0b8654b97c1fed82459c6 bytecode: 5400590002c3acc5121a18ff585e8ca17b695e7486ea09a61cb2520dfd09f413 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/console_assert.out b/tests/expectations/compiler/integers/u128/console_assert.out index 1dced72011..14499f5371 100644 --- a/tests/expectations/compiler/integers/u128/console_assert.out +++ b/tests/expectations/compiler/integers/u128/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 558f0b1b32353f64b68359e6fc763e272e12c3a04890c1c0ff6371412dff060a - type_checked_symbol_table: 2c6aef46bd179e82f07dd3415b0eda9434faac4a7aad67e58a7e7ea2281d837f - unrolled_symbol_table: 2c6aef46bd179e82f07dd3415b0eda9434faac4a7aad67e58a7e7ea2281d837f - initial_ast: 8cd7ae4a74ddafc04bd74caaeb3e2cae3394a339d62e83c13f0528d1303af83d - unrolled_ast: 8cd7ae4a74ddafc04bd74caaeb3e2cae3394a339d62e83c13f0528d1303af83d - ssa_ast: 3c5aa4dbf1c58d2b7b127d2814e91effd1d9d83da19997d4054880ac18dbfe0d - flattened_ast: d4c70d57084dfe9bbfcb7065339cb91d263f1a35d3161f2247542c5c4b802084 - destructured_ast: d2de970d172f84ebf79314fdd35c03795044e3d251fe8eecdba7209907132af0 - inlined_ast: d2de970d172f84ebf79314fdd35c03795044e3d251fe8eecdba7209907132af0 - dce_ast: d2de970d172f84ebf79314fdd35c03795044e3d251fe8eecdba7209907132af0 + - initial_symbol_table: 64cb3627b83115b57a1cd17a6dae953e3d0c2bada1248fe849b2b0632e2bc89a + type_checked_symbol_table: 751bc36609a0767afa029d3a2124f26919e209876791d820deeb8cb9bb7fc716 + unrolled_symbol_table: 751bc36609a0767afa029d3a2124f26919e209876791d820deeb8cb9bb7fc716 + initial_ast: 3fb238e1f685a41ab0cb1608b2a9577521e35adc07d4ab8b363b9337b0aa9188 + unrolled_ast: 3fb238e1f685a41ab0cb1608b2a9577521e35adc07d4ab8b363b9337b0aa9188 + ssa_ast: b5ad9916fccd161a5ce51975f50eeea0bbdecf3164e61dcb86d2cc5405c183d8 + flattened_ast: efa3d79693818f9219c4e90b2276159823c608e3ea2cfbe1216fe6350f5ef6fb + destructured_ast: 7e4bd2ceb013e3a0919180aff801e9552277965d5673da11c9bb913b2bb5e4f1 + inlined_ast: 7e4bd2ceb013e3a0919180aff801e9552277965d5673da11c9bb913b2bb5e4f1 + dce_ast: 7e4bd2ceb013e3a0919180aff801e9552277965d5673da11c9bb913b2bb5e4f1 bytecode: 0d83f401cd41e95e3c0df3dc876c4f162207f2073c8e550beca92e21ef07a3b9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/div.out b/tests/expectations/compiler/integers/u128/div.out index 26aab5c664..12b3bec996 100644 --- a/tests/expectations/compiler/integers/u128/div.out +++ b/tests/expectations/compiler/integers/u128/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: 11d4509fc73579f0c56f491a093388720b8ba2f62f86f8de3dabf8b6e80ce89a - unrolled_ast: 11d4509fc73579f0c56f491a093388720b8ba2f62f86f8de3dabf8b6e80ce89a - ssa_ast: 4b0a6405508a4b781c4ab9128572d47f0b4d1e599ade21372788dca3cb7aee78 - flattened_ast: 241f51e7abd2b9ff2c6e942f94d6d63cc8f93727d39e84e8d81337cb8c092ebb - destructured_ast: b51bd7d6d64a616856a0e25aa67fb6732dbc9655651be3c8d7ff3ef1f3027aa1 - inlined_ast: b51bd7d6d64a616856a0e25aa67fb6732dbc9655651be3c8d7ff3ef1f3027aa1 - dce_ast: b51bd7d6d64a616856a0e25aa67fb6732dbc9655651be3c8d7ff3ef1f3027aa1 + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 5d417824ba9b083be7b75f062ca2aeadc269b6ebc95a5d5d8fcbcf297c92f878 + unrolled_ast: 5d417824ba9b083be7b75f062ca2aeadc269b6ebc95a5d5d8fcbcf297c92f878 + ssa_ast: 65192bcc316a6d2044403f536639c44b5f26d1fdae60f7ae928dbcf7e50cfc9e + flattened_ast: e23a6f61fbc0805c14b005387f24deb9c6bfa56c5ee2e33d48af7a1d5fe7299d + destructured_ast: 254a083f5e6bc7fd3e6d61b8da628e8460646ea773ed0258263d2e09c4174205 + inlined_ast: 254a083f5e6bc7fd3e6d61b8da628e8460646ea773ed0258263d2e09c4174205 + dce_ast: 254a083f5e6bc7fd3e6d61b8da628e8460646ea773ed0258263d2e09c4174205 bytecode: 1ca018f3c002538884233e7f1e7dee0584a346f54675e78fb69af2c90d7d32e8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/eq.out b/tests/expectations/compiler/integers/u128/eq.out index a5ae67d1ee..31d0c5f6fd 100644 --- a/tests/expectations/compiler/integers/u128/eq.out +++ b/tests/expectations/compiler/integers/u128/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 018a63b6a77f037a0aca4bbdb6e29e8dad02fa1481654c5a69b77310eb102856 - type_checked_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - unrolled_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - initial_ast: d1943d936c664b3f575f4909468ac559ef1de3d68266b1b5129f21dfeab7c225 - unrolled_ast: d1943d936c664b3f575f4909468ac559ef1de3d68266b1b5129f21dfeab7c225 - ssa_ast: 8a026114deb9122712664793be3af53c26cdf8fe2dd44aa944f30e5550f147f2 - flattened_ast: 3a386ce0d1d645dd59e353e08edef403a59c51afbb2b5ebfbe6a78e1fd558555 - destructured_ast: 384f678ed8c971732b81422269d7483cbd2946535f812254af3d1aa6e377c1a4 - inlined_ast: 384f678ed8c971732b81422269d7483cbd2946535f812254af3d1aa6e377c1a4 - dce_ast: 384f678ed8c971732b81422269d7483cbd2946535f812254af3d1aa6e377c1a4 + - initial_symbol_table: a4ccb204af8ab9ae346f48ea5d62488a157e46d0e5e1083661f0292609a22992 + type_checked_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + unrolled_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + initial_ast: 3006541bdf727d9b53ba3661765a22cecc24ff5788695fd91d5826c04b78a0f4 + unrolled_ast: 3006541bdf727d9b53ba3661765a22cecc24ff5788695fd91d5826c04b78a0f4 + ssa_ast: bfaa73f19da9fd816ec4bd93e472f0ec061e9efc4dbc696a3e29a1ef38a064fd + flattened_ast: ba9c05a9e8f3f68d721fc62dd6fc0a9eb2696e89c5c2b0659cbd35c9e619cd78 + destructured_ast: c992c2eea5168f86fd8574da80813e4aca72f89e0e831e8b8f334558386eb67a + inlined_ast: c992c2eea5168f86fd8574da80813e4aca72f89e0e831e8b8f334558386eb67a + dce_ast: c992c2eea5168f86fd8574da80813e4aca72f89e0e831e8b8f334558386eb67a bytecode: 38011d05593d9cf5baa1fca933e8155d3154ad934a4b0ae9d67111b324875f86 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/ge.out b/tests/expectations/compiler/integers/u128/ge.out index 1fbbefe15e..52d4183e0f 100644 --- a/tests/expectations/compiler/integers/u128/ge.out +++ b/tests/expectations/compiler/integers/u128/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 018a63b6a77f037a0aca4bbdb6e29e8dad02fa1481654c5a69b77310eb102856 - type_checked_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - unrolled_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - initial_ast: 02e9f94ad0b6416332820818669e28de896175baddbcb70a7bf6ec1769a4d563 - unrolled_ast: 02e9f94ad0b6416332820818669e28de896175baddbcb70a7bf6ec1769a4d563 - ssa_ast: e236f3f5ce36f5d1fd9a07db4d4be92f10fa1ba50e03a30348b12a1b10960d94 - flattened_ast: b11ef5bcd244d21c1fc328dbe02fc801c38ed2b186bf5b37526baa9baebdf571 - destructured_ast: b2d0e6a6afa17ad476f259bd21e1ecc0918eac59fb9cf6e469f13104b8d13908 - inlined_ast: b2d0e6a6afa17ad476f259bd21e1ecc0918eac59fb9cf6e469f13104b8d13908 - dce_ast: b2d0e6a6afa17ad476f259bd21e1ecc0918eac59fb9cf6e469f13104b8d13908 + - initial_symbol_table: a4ccb204af8ab9ae346f48ea5d62488a157e46d0e5e1083661f0292609a22992 + type_checked_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + unrolled_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + initial_ast: 82736d06f449f3e3569f07de3436a6ccdff04d5eced8eab2c53dc15d0c1f9d37 + unrolled_ast: 82736d06f449f3e3569f07de3436a6ccdff04d5eced8eab2c53dc15d0c1f9d37 + ssa_ast: ff1ba303fc4310fa2c43ff9dbb38ceb7c220be403999bd9fc751a5597e248cd9 + flattened_ast: 015ffe5557586abbf7b068cdef6fdac18ef1ab4c37c9055cc34896c1535870b3 + destructured_ast: e58183aa1dbd1bbef97b6aedbf14f04bb1aa5b612ebd57ebb622bbcd69c538a8 + inlined_ast: e58183aa1dbd1bbef97b6aedbf14f04bb1aa5b612ebd57ebb622bbcd69c538a8 + dce_ast: e58183aa1dbd1bbef97b6aedbf14f04bb1aa5b612ebd57ebb622bbcd69c538a8 bytecode: 92057edeaefa3fca292e9539868a1d2004a4ff6161d837428e1acff9ae8e0298 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/gt.out b/tests/expectations/compiler/integers/u128/gt.out index a88ef1d30f..43d119e53e 100644 --- a/tests/expectations/compiler/integers/u128/gt.out +++ b/tests/expectations/compiler/integers/u128/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 018a63b6a77f037a0aca4bbdb6e29e8dad02fa1481654c5a69b77310eb102856 - type_checked_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - unrolled_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - initial_ast: c6a06b42a0575c4028713643899f0b8fb7a946b43fd963f10828679a89c7ddd1 - unrolled_ast: c6a06b42a0575c4028713643899f0b8fb7a946b43fd963f10828679a89c7ddd1 - ssa_ast: d4882889ef647809ad9922059e5d6ef4d6e7dd9ff45d10ac7c99b0977f8b857e - flattened_ast: 100458dca23249d188ee29b15774290813b25efba6c4ad8f73d1c07c37db046e - destructured_ast: 37ecc767b31b73f4abfc74801c44f7f83d3d56bd19f5bcdb9c51f5c6227cb56b - inlined_ast: 37ecc767b31b73f4abfc74801c44f7f83d3d56bd19f5bcdb9c51f5c6227cb56b - dce_ast: 37ecc767b31b73f4abfc74801c44f7f83d3d56bd19f5bcdb9c51f5c6227cb56b + - initial_symbol_table: a4ccb204af8ab9ae346f48ea5d62488a157e46d0e5e1083661f0292609a22992 + type_checked_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + unrolled_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + initial_ast: 64fbdfefc1072d2688e1109cc1014c69190f1dd00ea360151ccd35d417c3086a + unrolled_ast: 64fbdfefc1072d2688e1109cc1014c69190f1dd00ea360151ccd35d417c3086a + ssa_ast: d060686f5699874e8e43bc407fd57ecfc40821e004243db808ba0be53a1d4bc9 + flattened_ast: f2bd77006cbd532378b477375972c84f4a7d0731f4875db600b38582ccc507c1 + destructured_ast: 9f0ade1878a3dedd51cfb0172e67e7bb6bc11969dab5bae15f0b5dfe19a9ccd8 + inlined_ast: 9f0ade1878a3dedd51cfb0172e67e7bb6bc11969dab5bae15f0b5dfe19a9ccd8 + dce_ast: 9f0ade1878a3dedd51cfb0172e67e7bb6bc11969dab5bae15f0b5dfe19a9ccd8 bytecode: 14a4cbf43177cac769cf5e4befa2689f01a6755871f5fd288664ffff22e498c5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/le.out b/tests/expectations/compiler/integers/u128/le.out index bca33db276..fc38a4d8a8 100644 --- a/tests/expectations/compiler/integers/u128/le.out +++ b/tests/expectations/compiler/integers/u128/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 018a63b6a77f037a0aca4bbdb6e29e8dad02fa1481654c5a69b77310eb102856 - type_checked_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - unrolled_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - initial_ast: c230edc3d2852c1d228ab0c7b0bfdeaf75a4bf2ca17bae5abf7fd6458306a26b - unrolled_ast: c230edc3d2852c1d228ab0c7b0bfdeaf75a4bf2ca17bae5abf7fd6458306a26b - ssa_ast: 79be655180be3da75d0f364be85cb117e158d9a4e2fcaea277e6e8c1170eaf49 - flattened_ast: 5407368ce7b204cb73884dce6335d083d2e34c6734dade25cbb84be4f37dd2a3 - destructured_ast: f4c8ea0f59f09b8238778259007fae0203362d8d7cd0f2034ad7c425a1beec48 - inlined_ast: f4c8ea0f59f09b8238778259007fae0203362d8d7cd0f2034ad7c425a1beec48 - dce_ast: f4c8ea0f59f09b8238778259007fae0203362d8d7cd0f2034ad7c425a1beec48 + - initial_symbol_table: a4ccb204af8ab9ae346f48ea5d62488a157e46d0e5e1083661f0292609a22992 + type_checked_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + unrolled_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + initial_ast: 2c9f50dc431159fa6966436ac2807a57db7fab6b626d04e7f7a84f19d162f5b3 + unrolled_ast: 2c9f50dc431159fa6966436ac2807a57db7fab6b626d04e7f7a84f19d162f5b3 + ssa_ast: 2828a176bd36462664a0809757fa5c7a30063471126592b860890d8badd6d211 + flattened_ast: 357260bd03e7d5abeee1166f16ad7892cb32e13d1f42be41eccbf95e93aff150 + destructured_ast: 4928949752eb0dd526e35427ecc7ebf273e2fe754fe969a0848366c636717573 + inlined_ast: 4928949752eb0dd526e35427ecc7ebf273e2fe754fe969a0848366c636717573 + dce_ast: 4928949752eb0dd526e35427ecc7ebf273e2fe754fe969a0848366c636717573 bytecode: 6a2f064cee58782422db7fc88c4395f7e18281c9bf22e8b7546a054712482d8e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/lt.out b/tests/expectations/compiler/integers/u128/lt.out index 9a9a036dcd..5c959302a9 100644 --- a/tests/expectations/compiler/integers/u128/lt.out +++ b/tests/expectations/compiler/integers/u128/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 018a63b6a77f037a0aca4bbdb6e29e8dad02fa1481654c5a69b77310eb102856 - type_checked_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - unrolled_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - initial_ast: d3a6d68ee551a80e0e8abb1be0b64890909bbaed61351fbd2f9c811c9db4ddb2 - unrolled_ast: d3a6d68ee551a80e0e8abb1be0b64890909bbaed61351fbd2f9c811c9db4ddb2 - ssa_ast: 17022617034f504bdd9881057a3360dec86cfdd892e239d2bac7efa6cc5b8fa9 - flattened_ast: b81f31af680810a833f863a94e7ea3f82f217f9415b3c644b0270719eff3008a - destructured_ast: 5081ee575518da0e9e79a39f9576fb625c45fb5d46bdcaad31147ef19048c935 - inlined_ast: 5081ee575518da0e9e79a39f9576fb625c45fb5d46bdcaad31147ef19048c935 - dce_ast: 5081ee575518da0e9e79a39f9576fb625c45fb5d46bdcaad31147ef19048c935 + - initial_symbol_table: a4ccb204af8ab9ae346f48ea5d62488a157e46d0e5e1083661f0292609a22992 + type_checked_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + unrolled_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + initial_ast: 510f64cdcc8f3b0bbd148c30a23fd7d2d6383559bb81a8ac09371adfe8897773 + unrolled_ast: 510f64cdcc8f3b0bbd148c30a23fd7d2d6383559bb81a8ac09371adfe8897773 + ssa_ast: 32aa105309d3c1ad2def351e3685f00ecbaa4096c7355d3766ad0c9511a659d7 + flattened_ast: d0c2622e04d29a4449b5c78349d680ace6455d1080e1ddd6af9df09f5d71e4a8 + destructured_ast: 973a7e9f9cc60a15d0891a953c388983a69613cc576cfcacf3e04b2b1216a800 + inlined_ast: 973a7e9f9cc60a15d0891a953c388983a69613cc576cfcacf3e04b2b1216a800 + dce_ast: 973a7e9f9cc60a15d0891a953c388983a69613cc576cfcacf3e04b2b1216a800 bytecode: 459e412ddd219e315cc1ef6bf05f9b2490bae8dc003dcefc25f5976b8ff053f4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/max.out b/tests/expectations/compiler/integers/u128/max.out index 133e4bec16..e0ea8a66b3 100644 --- a/tests/expectations/compiler/integers/u128/max.out +++ b/tests/expectations/compiler/integers/u128/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 5f0ca117091ba75b8578852f33f5d353baf3b9bb97f1b2905d046fc3a7f78938 - unrolled_symbol_table: 5f0ca117091ba75b8578852f33f5d353baf3b9bb97f1b2905d046fc3a7f78938 - initial_ast: 8b3661e768b6e4bc47d7c11aa1cf1862ab518d7d5a6f7cd2ced7a0fce4979fa9 - unrolled_ast: 8b3661e768b6e4bc47d7c11aa1cf1862ab518d7d5a6f7cd2ced7a0fce4979fa9 - ssa_ast: 6e806586f813e495739f2aec04fea4d362019892d731d41d13d3d333c28c4a2d - flattened_ast: fc8faa896e51b8ae7898f887488a97f57d8d650db76689d1b6d21a67f37fd5aa - destructured_ast: 815b5070e0ba6b4f6554151312272b0bffc975496c3a6e311f1acde2300a75cd - inlined_ast: 815b5070e0ba6b4f6554151312272b0bffc975496c3a6e311f1acde2300a75cd - dce_ast: fc1baff92cc3b8406e1a1bd7787631ed85003a2d29be298d93b360104ad036a9 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: bc3485f5c375cec5483531e16b5b9640a6ea341acc835bbc1d9783473bc90790 + unrolled_symbol_table: bc3485f5c375cec5483531e16b5b9640a6ea341acc835bbc1d9783473bc90790 + initial_ast: 1cdc3a158b3eacf2558ede30e9347ad047d1e989e6ce6d9712b2bff245d1b844 + unrolled_ast: 1cdc3a158b3eacf2558ede30e9347ad047d1e989e6ce6d9712b2bff245d1b844 + ssa_ast: 09269498b9c2f21f6a9ce011edbff26297a0a440fc1ca73456bbe3bcd19dbdaa + flattened_ast: e67baf01bbd42d2de5f496a9cb0b09218d38b0a22bc92bc9fd5a47b303b31808 + destructured_ast: f6c234c2095bf66f60dc0da5d7570f2c95f4f44bd90da6c419ebce2f3642ab7e + inlined_ast: f6c234c2095bf66f60dc0da5d7570f2c95f4f44bd90da6c419ebce2f3642ab7e + dce_ast: 2c4692a103d87ad9b78aa4f65adbd23a17080108b1eb7b007ab44685c06713a9 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/max_fail.out b/tests/expectations/compiler/integers/u128/max_fail.out index 47e1b850fc..86f49b6beb 100644 --- a/tests/expectations/compiler/integers/u128/max_fail.out +++ b/tests/expectations/compiler/integers/u128/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 340282366920938463463374607431768211456 is not a valid `u128`\n --> compiler-test:5:23\n |\n 5 | let a: u128 = 340282366920938463463374607431768211456u128;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 340282366920938463463374607431768211456 is not a valid `u128`\n --> compiler-test:5:23\n |\n 5 | let a: u128 = 340282366920938463463374607431768211456u128;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u128/min.out b/tests/expectations/compiler/integers/u128/min.out index 029964316a..9ad97009ff 100644 --- a/tests/expectations/compiler/integers/u128/min.out +++ b/tests/expectations/compiler/integers/u128/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 5f0ca117091ba75b8578852f33f5d353baf3b9bb97f1b2905d046fc3a7f78938 - unrolled_symbol_table: 5f0ca117091ba75b8578852f33f5d353baf3b9bb97f1b2905d046fc3a7f78938 - initial_ast: 27a179a1934ac9068d9128e7e68d023ff2147853eb079baee50538f0fda08ed8 - unrolled_ast: 27a179a1934ac9068d9128e7e68d023ff2147853eb079baee50538f0fda08ed8 - ssa_ast: ad384d12fc74fc80448d5c208e4c1514aa36a8c662fed371d9b7996f1084bbab - flattened_ast: 723ae34984179b0165167153f2c86552d03d5b1c0481eae7d25b5e1ae3301481 - destructured_ast: 9ac937b03f8f3a034deb71047fd52a059ba7cc279f395eb4509a34d553b41504 - inlined_ast: 9ac937b03f8f3a034deb71047fd52a059ba7cc279f395eb4509a34d553b41504 - dce_ast: 1cb7510b84b5b721c60f3436cd45afaee3bc81874887d7e84e59489760538331 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: bc3485f5c375cec5483531e16b5b9640a6ea341acc835bbc1d9783473bc90790 + unrolled_symbol_table: bc3485f5c375cec5483531e16b5b9640a6ea341acc835bbc1d9783473bc90790 + initial_ast: f208fa21bb48dbad408c48b373e7ce7269f9fb8a200ca6447b6c779f991792e4 + unrolled_ast: f208fa21bb48dbad408c48b373e7ce7269f9fb8a200ca6447b6c779f991792e4 + ssa_ast: b0eb2750d266898ad957adaf2ff4e1cde308783891ca9cdfd320c53375ed0d22 + flattened_ast: 418a8ef8b282fb9cfcc35292fb5c45e760c84ea19ca418edd76cf15830aebb7a + destructured_ast: 3ae2c1802b1d05afc4230dde9f569fff9e6164d5f984fea2c1ebef5ec86c2ec7 + inlined_ast: 3ae2c1802b1d05afc4230dde9f569fff9e6164d5f984fea2c1ebef5ec86c2ec7 + dce_ast: d83a112cd84fc9e91c98df391231fa880578fe8bd65da23a55f99f66d965313b bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/min_fail.out b/tests/expectations/compiler/integers/u128/min_fail.out index 585090db53..a707ebb59b 100644 --- a/tests/expectations/compiler/integers/u128/min_fail.out +++ b/tests/expectations/compiler/integers/u128/min_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value -1 is not a valid `u128`\n --> compiler-test:5:23\n |\n 5 | let a: u128 = -1u128;\n | ^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value -1 is not a valid `u128`\n --> compiler-test:5:23\n |\n 5 | let a: u128 = -1u128;\n | ^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u128/mul.out b/tests/expectations/compiler/integers/u128/mul.out index e6273c7b6e..f45be3b2aa 100644 --- a/tests/expectations/compiler/integers/u128/mul.out +++ b/tests/expectations/compiler/integers/u128/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: 9d26eecc862680767154859e8a6938f090c8367cb66ec0bde548651954f39ca8 - unrolled_ast: 9d26eecc862680767154859e8a6938f090c8367cb66ec0bde548651954f39ca8 - ssa_ast: f9b1f8ba9c53dea52419ef403b8233f6a4e7a815003b63183a857f44056a01c0 - flattened_ast: a85ad5f114d413dd7051e42a97fffd64632de7fb56e97cf1264b4ad6beeca3c8 - destructured_ast: 35f1b19cc5e2b31012708c5cf968a9a9b0348c3650f6139f7c50eb728909084a - inlined_ast: 35f1b19cc5e2b31012708c5cf968a9a9b0348c3650f6139f7c50eb728909084a - dce_ast: 35f1b19cc5e2b31012708c5cf968a9a9b0348c3650f6139f7c50eb728909084a + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: b9c858bdf8f40cf11a352c21dac3d4e4c38f1c7a53978a38bcfdd17f8eca7ef3 + unrolled_ast: b9c858bdf8f40cf11a352c21dac3d4e4c38f1c7a53978a38bcfdd17f8eca7ef3 + ssa_ast: 7609e7357ad38475545b859fb7824a0dec9a50dc009ee2f14a9ee3f0167d4e1b + flattened_ast: 0710a7586264c93a5982e7c624d55c265edf22c73b948b4ca995f5a3ce144783 + destructured_ast: 2d443bf959897af4aa3d509b07859b0850edcdfafea7370164f088ba32521b43 + inlined_ast: 2d443bf959897af4aa3d509b07859b0850edcdfafea7370164f088ba32521b43 + dce_ast: 2d443bf959897af4aa3d509b07859b0850edcdfafea7370164f088ba32521b43 bytecode: 67857a350a412ed022768ab4aaa6387e63e548b7dc0b552dcb061b719abc90bb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/ne.out b/tests/expectations/compiler/integers/u128/ne.out index a8d3f4dabd..a564c7b028 100644 --- a/tests/expectations/compiler/integers/u128/ne.out +++ b/tests/expectations/compiler/integers/u128/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 018a63b6a77f037a0aca4bbdb6e29e8dad02fa1481654c5a69b77310eb102856 - type_checked_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - unrolled_symbol_table: 942ec87105995b34fc4707b96e568c53377a02adf24696d14d771b621b239dd2 - initial_ast: d8aca9f298dc6414f9215dabd9e00774d564806d8b7b40023cf00fcec891b344 - unrolled_ast: d8aca9f298dc6414f9215dabd9e00774d564806d8b7b40023cf00fcec891b344 - ssa_ast: 7f7cb71f8c8d7d04c78f545058fb0356256bdf11c5467c5efe05f0dabc6039b5 - flattened_ast: 73bfd09d6af5db123272f6a2f5679a9c340ba58c63bc837d3158a7ec0e88b049 - destructured_ast: 760f6271892cb1cdf98b72a003ec41a60f796433a105158e55f1b12303a371e1 - inlined_ast: 760f6271892cb1cdf98b72a003ec41a60f796433a105158e55f1b12303a371e1 - dce_ast: 760f6271892cb1cdf98b72a003ec41a60f796433a105158e55f1b12303a371e1 + - initial_symbol_table: a4ccb204af8ab9ae346f48ea5d62488a157e46d0e5e1083661f0292609a22992 + type_checked_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + unrolled_symbol_table: 40f5d5514a5bba93a7a23a5bccd29aa28e34aa758370e7c3a78943aee4fc85ef + initial_ast: ffbb923d0fdc7aa750984bb4b376f4e8d82d1f377cf785e726c17cddc4a6f250 + unrolled_ast: ffbb923d0fdc7aa750984bb4b376f4e8d82d1f377cf785e726c17cddc4a6f250 + ssa_ast: 14734540148e4255ac4edb569f145e951a172b8c0e2b6b655857e8fd962c11ce + flattened_ast: c9d1945c5f3c4e20728e505939b48c29d74e0da05c813b8688f21f139100e324 + destructured_ast: a8849a1bd9b60fe8a45e08364da0934927fd0b3511cf9a94191bf7de6bb41422 + inlined_ast: a8849a1bd9b60fe8a45e08364da0934927fd0b3511cf9a94191bf7de6bb41422 + dce_ast: a8849a1bd9b60fe8a45e08364da0934927fd0b3511cf9a94191bf7de6bb41422 bytecode: 63457f4ddad404af243d9707a6e9e6f6f878cb639895a110bca73b804395bd14 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/operator_methods.out b/tests/expectations/compiler/integers/u128/operator_methods.out index f83b5b2376..a6dde701e6 100644 --- a/tests/expectations/compiler/integers/u128/operator_methods.out +++ b/tests/expectations/compiler/integers/u128/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 558f0b1b32353f64b68359e6fc763e272e12c3a04890c1c0ff6371412dff060a - type_checked_symbol_table: f6ba1929d579611280f3a7fd83bcf6ee0682efc14d7ac784d3f1c031045c4e13 - unrolled_symbol_table: f6ba1929d579611280f3a7fd83bcf6ee0682efc14d7ac784d3f1c031045c4e13 - initial_ast: 3f9bf0e97aecbfab20156f484f44015cfa2dfd83824b523004781f5ff073aa8e - unrolled_ast: 3f9bf0e97aecbfab20156f484f44015cfa2dfd83824b523004781f5ff073aa8e - ssa_ast: 054698422d5cdc9498232694ea803b668ce5d6fdb9214991280d7456ccc6f155 - flattened_ast: 6928b3715ed82926aa237b5e5fb2f99992be80ef258bc41b8108f90040796530 - destructured_ast: df11bb5ebafd0bfd3561b5156141c5d401f7d68a9b5cf1c24867262a060a614a - inlined_ast: df11bb5ebafd0bfd3561b5156141c5d401f7d68a9b5cf1c24867262a060a614a - dce_ast: 0ecfece92b8ff0eeba636841c936351ff9afc42060b696c8ea9fa9720f5f29dc + - initial_symbol_table: 64cb3627b83115b57a1cd17a6dae953e3d0c2bada1248fe849b2b0632e2bc89a + type_checked_symbol_table: e4de1fd640beeb65cc6a90ed762a8decdcf009d07d16e903fb16e947a5ebc5d9 + unrolled_symbol_table: e4de1fd640beeb65cc6a90ed762a8decdcf009d07d16e903fb16e947a5ebc5d9 + initial_ast: 5576b7080945c72d9c6c0c33274e4f8596883dc4a4483c60dbf39a4e600236a8 + unrolled_ast: 5576b7080945c72d9c6c0c33274e4f8596883dc4a4483c60dbf39a4e600236a8 + ssa_ast: 1afbabcbe808f9d07eb199ec5e6092212b60248e80377253a8ab0930d20e78ef + flattened_ast: ccce60094922b98e9da5f7cab69f3b5999c7d8ae6951e1536f388e0d744fd28d + destructured_ast: c1030aa4590403d8f0d28a02c165d81a7055e026a9c53101273fdb91e9b82458 + inlined_ast: c1030aa4590403d8f0d28a02c165d81a7055e026a9c53101273fdb91e9b82458 + dce_ast: 50b17174e4ae90ea4a639ce2b9d7e3311f38657be3c5f32a9915907e4cd44d6a bytecode: a669206687d494820bada50c8468f052183b69cd778ff0ce870a370ac8ea7bf4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/or.out b/tests/expectations/compiler/integers/u128/or.out index 3333178267..2811af8b37 100644 --- a/tests/expectations/compiler/integers/u128/or.out +++ b/tests/expectations/compiler/integers/u128/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: 1540f53d8bc1303c6013f4aca8400298d11ddf59e3b55fd3f09e08e6aaccf286 - unrolled_ast: 1540f53d8bc1303c6013f4aca8400298d11ddf59e3b55fd3f09e08e6aaccf286 - ssa_ast: 23948f9252325b82d1e2ee7f553cac0546b7a8d240230813573d9cb8ab34b9ec - flattened_ast: 940ff40ec0c79f96311841df1bbd54e9b938761a32b9f16afa823de323c35cb0 - destructured_ast: c9838559229684fad4f3d27e65ec191ab790aab1dcd47938cbfcc11d1c4bc0a4 - inlined_ast: c9838559229684fad4f3d27e65ec191ab790aab1dcd47938cbfcc11d1c4bc0a4 - dce_ast: c9838559229684fad4f3d27e65ec191ab790aab1dcd47938cbfcc11d1c4bc0a4 + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 09a3cb784bb41a822508520975b314e916850bc80103cd4bde29d52b1120a9a1 + unrolled_ast: 09a3cb784bb41a822508520975b314e916850bc80103cd4bde29d52b1120a9a1 + ssa_ast: d214cba63df0cdb8e734d5e29b77c5bcbcdcd0d6aa779f7f920f19fe97abe18a + flattened_ast: 83e94a24138840e122186701e5538531b95095d4943917d5e7abaf7f2ee45466 + destructured_ast: cdc837c671bafa1d010d00cd8f3a84458dd334df6ed68a6d265e386cac078074 + inlined_ast: cdc837c671bafa1d010d00cd8f3a84458dd334df6ed68a6d265e386cac078074 + dce_ast: cdc837c671bafa1d010d00cd8f3a84458dd334df6ed68a6d265e386cac078074 bytecode: 004cb45ea888f207ca8e42a4f7acf3687aa3294a975462c89541c2d0f53dcdf3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/pow.out b/tests/expectations/compiler/integers/u128/pow.out index 2055e702cf..7cc18ff91f 100644 --- a/tests/expectations/compiler/integers/u128/pow.out +++ b/tests/expectations/compiler/integers/u128/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: daecc770ad91c4a5104c21ada23d80c67ff1c182a6f31432edbdd948ba306479 - unrolled_ast: daecc770ad91c4a5104c21ada23d80c67ff1c182a6f31432edbdd948ba306479 - ssa_ast: b0271beb9a4e000192b8bd859826bd583dc585c0576319d9757d237ec2a1f810 - flattened_ast: ad499eaf30561d2bad65be020342c290d1e81ca93af7d6facc811289825b8814 - destructured_ast: e09f1859f669bd91a6c505a7a9dd5146a67a5846e415485ea7237ef2564d8a72 - inlined_ast: e09f1859f669bd91a6c505a7a9dd5146a67a5846e415485ea7237ef2564d8a72 - dce_ast: e09f1859f669bd91a6c505a7a9dd5146a67a5846e415485ea7237ef2564d8a72 + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: ed4cc038133553e7ee67ed43385602fba7da60f4bf1e8cc4ffe36762ea0667cd + unrolled_ast: ed4cc038133553e7ee67ed43385602fba7da60f4bf1e8cc4ffe36762ea0667cd + ssa_ast: c7274128b4516a7fa4deadc8a261d707bb53ecbe9a5e72ff97e5d4aa910690eb + flattened_ast: bda07e094d0790ca7eaeb1f0b2b3379b244bfd79615695c5ae877b6caf1ded5e + destructured_ast: a762a55f73d595851300d21f8310a870636cdc29be74e24dcde7eadff90cb76c + inlined_ast: a762a55f73d595851300d21f8310a870636cdc29be74e24dcde7eadff90cb76c + dce_ast: a762a55f73d595851300d21f8310a870636cdc29be74e24dcde7eadff90cb76c bytecode: f88e8b16ebc2a407989f9f316ad6a9edfec6f134c7a0d9b25cea571df8161900 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/rem.out b/tests/expectations/compiler/integers/u128/rem.out index 20b7b41c5d..2cd10644b7 100644 --- a/tests/expectations/compiler/integers/u128/rem.out +++ b/tests/expectations/compiler/integers/u128/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: 256ed8abb77a1e756213733bcff0fe8a99ce70e6ed4a12ee172f9b02e2de349e - unrolled_ast: 256ed8abb77a1e756213733bcff0fe8a99ce70e6ed4a12ee172f9b02e2de349e - ssa_ast: 5fe745f4b0e54ebe4201503ca8df679f93af0b160859f8870c8e1cf9d54f43db - flattened_ast: 98cab39b5e0e3421b0bc82972d0ee84446b6767be9ef2797b81cf010fc6c6b38 - destructured_ast: 4ff6a2aad2e235c897327211416f845b4855b21b3664c8cfc844653b0d00cf2c - inlined_ast: 4ff6a2aad2e235c897327211416f845b4855b21b3664c8cfc844653b0d00cf2c - dce_ast: 4ff6a2aad2e235c897327211416f845b4855b21b3664c8cfc844653b0d00cf2c + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: d2ee4edb714539e5f7823c492b4001dcc0e753ac265a3c4210013371bcd3d296 + unrolled_ast: d2ee4edb714539e5f7823c492b4001dcc0e753ac265a3c4210013371bcd3d296 + ssa_ast: 38a11544ac101d4b52bf84e9920afcc0850bc2bf148d61ab4ea549e7f00f5e46 + flattened_ast: 3ae70d9ed28b3dfc4eff0b5cddc73323874ccf70355a97260ba72acebc6079ed + destructured_ast: ab7da622e4ea1bb3afc5e37d9a3783fc7b62378868fc45a2bb0b20c0d8a645af + inlined_ast: ab7da622e4ea1bb3afc5e37d9a3783fc7b62378868fc45a2bb0b20c0d8a645af + dce_ast: ab7da622e4ea1bb3afc5e37d9a3783fc7b62378868fc45a2bb0b20c0d8a645af bytecode: 77cd05d1f311504fae6e47a74e98a964f1dd411e6fd447b33b57a2d475bb5aed errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/shl.out b/tests/expectations/compiler/integers/u128/shl.out index 6c32bb1b3e..b9d9f7cd63 100644 --- a/tests/expectations/compiler/integers/u128/shl.out +++ b/tests/expectations/compiler/integers/u128/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: c9100157213cbbcb2640bba9a51225e006ba4b1dbb321b55aacb8865bb710b0b - unrolled_ast: c9100157213cbbcb2640bba9a51225e006ba4b1dbb321b55aacb8865bb710b0b - ssa_ast: ddc5db337313e3295f93bd62275c71ecbd1cb5d91c660420652dc614638eb61e - flattened_ast: ab329978df768c14331a7951e0c3ae955b161b20bccd00fc5896770b8a69b67e - destructured_ast: 8d38528f123f1b017b100a37d60fd62c82facf00be0bee25bb75b945f2d5c30b - inlined_ast: 8d38528f123f1b017b100a37d60fd62c82facf00be0bee25bb75b945f2d5c30b - dce_ast: 8d38528f123f1b017b100a37d60fd62c82facf00be0bee25bb75b945f2d5c30b + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 43bcae3d2fcd6d18a631b0e5540b23f1be18c9acdd703f982bb057476d2a43ef + unrolled_ast: 43bcae3d2fcd6d18a631b0e5540b23f1be18c9acdd703f982bb057476d2a43ef + ssa_ast: 989eb66f1528f6c8f978b86f6aba3460b67727edabca08ee908305d3a8860684 + flattened_ast: 8e42b13a632c4add68212401eff210a1549ff6f0a9f0982bc3ac8761dc29d2ef + destructured_ast: 2be9d22d6eae48173c94b3014f19b5c29ff47309207b9d8282e1286c9b8f7cc3 + inlined_ast: 2be9d22d6eae48173c94b3014f19b5c29ff47309207b9d8282e1286c9b8f7cc3 + dce_ast: 2be9d22d6eae48173c94b3014f19b5c29ff47309207b9d8282e1286c9b8f7cc3 bytecode: f9f90b58b9fc961c6ee4909ef338c77962403add4feee851959038263971eba9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/shr.out b/tests/expectations/compiler/integers/u128/shr.out index 188a770ebc..5ece870bc8 100644 --- a/tests/expectations/compiler/integers/u128/shr.out +++ b/tests/expectations/compiler/integers/u128/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: 5cb8bf81a9eed1401b6c2d1fcf6157f76ace172abd8ff65528f940ca011fe8a2 - unrolled_ast: 5cb8bf81a9eed1401b6c2d1fcf6157f76ace172abd8ff65528f940ca011fe8a2 - ssa_ast: 597e831d0ef8e46b244e30fddf53b3099b6748b97d27d5a1a01a5249fc901994 - flattened_ast: c3731068eccf25f090ec12d2b90c3c74efabc7f399a9624b872b775eff4786d4 - destructured_ast: 918ecda668240ea389a54ec861a886acb7f5a39a5c5c088fefdaa209088e475c - inlined_ast: 918ecda668240ea389a54ec861a886acb7f5a39a5c5c088fefdaa209088e475c - dce_ast: 918ecda668240ea389a54ec861a886acb7f5a39a5c5c088fefdaa209088e475c + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 6b8d8b45061705dd6fdd74eec6aba301b145ac1d878e3f0f7c9400578c2307c7 + unrolled_ast: 6b8d8b45061705dd6fdd74eec6aba301b145ac1d878e3f0f7c9400578c2307c7 + ssa_ast: f848da2184a172db8301c962bdc51b7bebcd0fb34e7dc65ce2214b4e4540cbf9 + flattened_ast: 69c58c55d7ff1c9a004d99180c52e6cfcb92501ff3dceff81d6826584abf79cb + destructured_ast: dba9cede017c72945d45f2c9c41ff2a6336869a11f8c03ab4e696ad41cda5d7e + inlined_ast: dba9cede017c72945d45f2c9c41ff2a6336869a11f8c03ab4e696ad41cda5d7e + dce_ast: dba9cede017c72945d45f2c9c41ff2a6336869a11f8c03ab4e696ad41cda5d7e bytecode: c3f89cd7a94e013dfafa5e7deaa5bf758e78a9bee96b9324d8b2314d67ea6a27 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/sub.out b/tests/expectations/compiler/integers/u128/sub.out index a5969955c1..88951f0983 100644 --- a/tests/expectations/compiler/integers/u128/sub.out +++ b/tests/expectations/compiler/integers/u128/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ff04a976a11dfc9210196e8d66f9601b75c013a19897a539bf835267617dfe61 - type_checked_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - unrolled_symbol_table: 8531b82060fecbdfa1aa3ec455eea0e6c0f711372aa0cd1a5212f0d6963b8768 - initial_ast: be49bd8225a26e407ecaea803af4bbe4f19c50d30a78075802d4b92a9dba9d7d - unrolled_ast: be49bd8225a26e407ecaea803af4bbe4f19c50d30a78075802d4b92a9dba9d7d - ssa_ast: 6d4c9d9dc65e4210a1296c44b670e987d2194faf906b6c5194a561b77da81714 - flattened_ast: e6aa8888546c35ef595a36e71f931476a883ed0e59cc90e1629beb708d154d7e - destructured_ast: ef8a08b8a7229cc67dc61c41515fefe1d540dd8ad6bccb4c83486faa1c06be37 - inlined_ast: ef8a08b8a7229cc67dc61c41515fefe1d540dd8ad6bccb4c83486faa1c06be37 - dce_ast: ef8a08b8a7229cc67dc61c41515fefe1d540dd8ad6bccb4c83486faa1c06be37 + - initial_symbol_table: bfe102bbf57d53cbd5571775f377199d49c476f66cdb998a11f0e875cf92ccc3 + type_checked_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + unrolled_symbol_table: d5b19c9d7aa92e2b655f87524d7d1bf8386bdd3848b934b167665897a029e659 + initial_ast: 9fff985417d1accea860453611e2f939767547da359aaa50583ee4041d3e2e27 + unrolled_ast: 9fff985417d1accea860453611e2f939767547da359aaa50583ee4041d3e2e27 + ssa_ast: 603fe0a47353ba2ae121cd3c57e8881f87eeebc0dbbc03d8b7085b4489a43301 + flattened_ast: 01ece5b9235ff9110c71c1987aeefd68bd42aafe64b73b620a9a7eb5d505f7a3 + destructured_ast: dd8cd1d7291f1f4a9b3b71bcfa0bd46b64c811bc17b3224aa698e86c6c1637e1 + inlined_ast: dd8cd1d7291f1f4a9b3b71bcfa0bd46b64c811bc17b3224aa698e86c6c1637e1 + dce_ast: dd8cd1d7291f1f4a9b3b71bcfa0bd46b64c811bc17b3224aa698e86c6c1637e1 bytecode: 92ed5e41e02f9f2ee5862aad62d54a2a0f2e1a2fc2edde87f1c6ee1fa84de67c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/ternary.out b/tests/expectations/compiler/integers/u128/ternary.out index bd2f2d2fc7..4e8e10aa7e 100644 --- a/tests/expectations/compiler/integers/u128/ternary.out +++ b/tests/expectations/compiler/integers/u128/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 035682cb7c8bdf8c3210879a86abb7ddcc9ff4af45306c981d55bdbcce7dd8b9 - type_checked_symbol_table: 5355ccb28e2920ec2902585152fb099048cca734e5e2eacd87aee0e40990251b - unrolled_symbol_table: 5355ccb28e2920ec2902585152fb099048cca734e5e2eacd87aee0e40990251b - initial_ast: c9dc6969b7431358cec571367e5a602a20ee6c157e6f939208f5f0f58ca6884a - unrolled_ast: c9dc6969b7431358cec571367e5a602a20ee6c157e6f939208f5f0f58ca6884a - ssa_ast: d36571bf6379a01246502f3eebb8af503c059a4057fd483fd2f14b8ec165eb66 - flattened_ast: e07ec63d00ceade4060c97ffcba72ecf9a6552d4ab8f8562bcee9212ed94ae82 - destructured_ast: ace999ed2198dc1870fdf46766f3e70be8bf6a4e18ba82db36bab97e9e664590 - inlined_ast: ace999ed2198dc1870fdf46766f3e70be8bf6a4e18ba82db36bab97e9e664590 - dce_ast: ace999ed2198dc1870fdf46766f3e70be8bf6a4e18ba82db36bab97e9e664590 + - initial_symbol_table: 64507b52c698690f12a6765e45f1d2cbf39f8f782c57ba9de2233a9e7fe256fe + type_checked_symbol_table: 875e46fec295bd2bd1875a27aef1c840fd75c5d68b2dba1f6c3835c287ade190 + unrolled_symbol_table: 875e46fec295bd2bd1875a27aef1c840fd75c5d68b2dba1f6c3835c287ade190 + initial_ast: 6e1b44d83becdc55f7c5f4f78d6c020c40627e183018fde75726687466a1532d + unrolled_ast: 6e1b44d83becdc55f7c5f4f78d6c020c40627e183018fde75726687466a1532d + ssa_ast: 184951c232e5f448dff4ce8dea7349b057fd77bbe4b7e53b6d09d44a45935a85 + flattened_ast: 13d50ce3fe3439d5944779ebe7b97ad3e4abde18efa14b83a9a89afd0ea35c67 + destructured_ast: becb5c0cbc502321094183dadb71420772170cab2cb80057835e3bc8419851ea + inlined_ast: becb5c0cbc502321094183dadb71420772170cab2cb80057835e3bc8419851ea + dce_ast: becb5c0cbc502321094183dadb71420772170cab2cb80057835e3bc8419851ea bytecode: d360bfc2331d64cee6cebe783b9ac261efe5c6e8aaa334be38a9c56ab40261b2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u128/xor.out b/tests/expectations/compiler/integers/u128/xor.out index 973c4183b0..a9b5903955 100644 --- a/tests/expectations/compiler/integers/u128/xor.out +++ b/tests/expectations/compiler/integers/u128/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 8deefe89c6e8ae33809dc9d5ad5b4e82841478403c715c9abf111e47b3d9b232 - type_checked_symbol_table: 32385cde6593b9d56b955c3473d6b5debdd6e47d8f50a195359064355f79aad8 - unrolled_symbol_table: 32385cde6593b9d56b955c3473d6b5debdd6e47d8f50a195359064355f79aad8 - initial_ast: 11d2063e231ec4911f56aaf047ff965fa1b6b7d2401fb1e4cbaf431fd5c10883 - unrolled_ast: 11d2063e231ec4911f56aaf047ff965fa1b6b7d2401fb1e4cbaf431fd5c10883 - ssa_ast: dd628ad83d079e6146c11599db48efd27566c9bdc89dd2c462b17d46f50d9d9e - flattened_ast: 107f5091b1e78305c6e08f754f1e5fca452682e33a53de9381a097303e4cdc6a - destructured_ast: 326a0c8e17fa299878a69d5a81b3d99355059570fc6c38754c4e2cefe478f420 - inlined_ast: 326a0c8e17fa299878a69d5a81b3d99355059570fc6c38754c4e2cefe478f420 - dce_ast: 326a0c8e17fa299878a69d5a81b3d99355059570fc6c38754c4e2cefe478f420 + - initial_symbol_table: 96dfd2623b35599f17b4697d72f1f9d4280f44ae95cfbadb44c48b41cef650fc + type_checked_symbol_table: 3fc02bc4767ae99c296a1f8847069e255cce62b9de8138f0f1a53e37b43fb965 + unrolled_symbol_table: 3fc02bc4767ae99c296a1f8847069e255cce62b9de8138f0f1a53e37b43fb965 + initial_ast: 0548005c6ab0d857aaa55f79bf19161527fd4afba50d3e9a6e2c7161873e58d5 + unrolled_ast: 0548005c6ab0d857aaa55f79bf19161527fd4afba50d3e9a6e2c7161873e58d5 + ssa_ast: 204a4d3f6e2d3ac146c68a5acaf6b8056bd039bf9cd0d9ce472bd4b6bb36001f + flattened_ast: 41bdb41c86df17b3a7e075766ad865fa6bfa9da952b4b545dd3460280049d5d4 + destructured_ast: 53a8e67b90ddddca46a55b65e7e13f743a3b29e2da292c0f55a49b9393e4e3b6 + inlined_ast: 53a8e67b90ddddca46a55b65e7e13f743a3b29e2da292c0f55a49b9393e4e3b6 + dce_ast: 53a8e67b90ddddca46a55b65e7e13f743a3b29e2da292c0f55a49b9393e4e3b6 bytecode: 63a04f95623ff9dfbe22b389e7b7b6127999e1340aa1ed3e2eb59228d92d9aab errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/add.out b/tests/expectations/compiler/integers/u16/add.out index 6b26405d84..ef24fc6559 100644 --- a/tests/expectations/compiler/integers/u16/add.out +++ b/tests/expectations/compiler/integers/u16/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: 9fec86521841d1e973f4b6535a71fa40f4c1811e919ae62064ff7ab8fbeee585 - unrolled_ast: 9fec86521841d1e973f4b6535a71fa40f4c1811e919ae62064ff7ab8fbeee585 - ssa_ast: b8c9ff814b48cb9b8facd10667ed70179cf75cde77c6e576bb0cfe24ae662dfb - flattened_ast: b3749a81ed21cb3494db4e0edd7b17ced45c34265f00286bf870fba2231f25b4 - destructured_ast: 6954ca189c83dc452e2cc7f05701429f191c05b6dee2b1c510cf0685412f0819 - inlined_ast: 6954ca189c83dc452e2cc7f05701429f191c05b6dee2b1c510cf0685412f0819 - dce_ast: 6954ca189c83dc452e2cc7f05701429f191c05b6dee2b1c510cf0685412f0819 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: b6759c96fd2b51d2a805020352bc3d0d05dc447f7b642687076e72655fcfceca + unrolled_ast: b6759c96fd2b51d2a805020352bc3d0d05dc447f7b642687076e72655fcfceca + ssa_ast: 5e04fc51c8de4e7a8a41b520a76b1dd41d0b5cfb28ffeaa2b3522eb495db057b + flattened_ast: 014b8e8961b51484730c8b01b9eee65e07bddeab4d7d014315c9aa65b078dcee + destructured_ast: 87be069d4a464a1d09dffddb29b925a40d767cc636e527fd0881191e65b4fef1 + inlined_ast: 87be069d4a464a1d09dffddb29b925a40d767cc636e527fd0881191e65b4fef1 + dce_ast: 87be069d4a464a1d09dffddb29b925a40d767cc636e527fd0881191e65b4fef1 bytecode: 2252ca765c9f4d167815c556dedf80fd261ecb82c22da486f1c019b62ca9b59c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/and.out b/tests/expectations/compiler/integers/u16/and.out index 72c89befd6..9792194728 100644 --- a/tests/expectations/compiler/integers/u16/and.out +++ b/tests/expectations/compiler/integers/u16/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: db012b09606088087a43dc827f6d515aff4c6ad265c91f552361c4b6c4d9e493 - unrolled_ast: db012b09606088087a43dc827f6d515aff4c6ad265c91f552361c4b6c4d9e493 - ssa_ast: 796c14f3b1f27a587bc7fda59f62dc9edda8c90050f9b3c9a94060eb3931bf75 - flattened_ast: a80e83b07fba0fb13035f5f878b4e0652b57617b408cf8a2227e40f5402efc05 - destructured_ast: b7ab6a0833c9ea9b64decf299047997cb4817201f910e7191013c27652081e45 - inlined_ast: b7ab6a0833c9ea9b64decf299047997cb4817201f910e7191013c27652081e45 - dce_ast: b7ab6a0833c9ea9b64decf299047997cb4817201f910e7191013c27652081e45 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 77e7bd1bb111cba9dc552535251a968e6cf4ff73f11722d202102592650d6f85 + unrolled_ast: 77e7bd1bb111cba9dc552535251a968e6cf4ff73f11722d202102592650d6f85 + ssa_ast: e2f03d29a4261d87be8176c57b48a07b44ea083ad7def68c594569398e7c0642 + flattened_ast: 800377c700caeca70c6482894936a32331afde4b31c4c082474f7f12418112b0 + destructured_ast: 8fc9e6e7971add226f435f90e9b31b9382d27b2cef13d92dca2373e1f808b3e8 + inlined_ast: 8fc9e6e7971add226f435f90e9b31b9382d27b2cef13d92dca2373e1f808b3e8 + dce_ast: 8fc9e6e7971add226f435f90e9b31b9382d27b2cef13d92dca2373e1f808b3e8 bytecode: 6160eab9fab5c6648122e91366d143924e69bdc272bc606f68be14f22f88cd1a errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/console_assert.out b/tests/expectations/compiler/integers/u16/console_assert.out index 48120a9985..3f30e31e93 100644 --- a/tests/expectations/compiler/integers/u16/console_assert.out +++ b/tests/expectations/compiler/integers/u16/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b60aeeb622de14695ba5a9ec596824830779f55b6c9535b73665b91fd2255cc2 - type_checked_symbol_table: a68a3e190e37cf4f91ba9af5ed452832cb749405555414ac54dca8ae04aa113b - unrolled_symbol_table: a68a3e190e37cf4f91ba9af5ed452832cb749405555414ac54dca8ae04aa113b - initial_ast: 191c68dde8323e67f9e08ca0bdab05bd7f04035c5955ce69d6a17b15748c7c79 - unrolled_ast: 191c68dde8323e67f9e08ca0bdab05bd7f04035c5955ce69d6a17b15748c7c79 - ssa_ast: 7ee5ae218ddef0a8a760d2ddaf02848d5dea02f43c131ed1a4d001d912bdb1b5 - flattened_ast: b2a28e6b9d40b4ca1e411acf9ee085f1298c79ae8051757fd6caf7016bde87f5 - destructured_ast: 74a0fc4f1415f91949f7be0dc3c0a498ab3ece30d29569793e3521a89417c400 - inlined_ast: 74a0fc4f1415f91949f7be0dc3c0a498ab3ece30d29569793e3521a89417c400 - dce_ast: 74a0fc4f1415f91949f7be0dc3c0a498ab3ece30d29569793e3521a89417c400 + - initial_symbol_table: 85354022e81d85a085f025040ddb6990261214a895de0e7b8e3b2ad9ce159e50 + type_checked_symbol_table: 028ac0bf3223b5c128d7d8644683d7effbf5c0ad0a173433b8857ad235ae799d + unrolled_symbol_table: 028ac0bf3223b5c128d7d8644683d7effbf5c0ad0a173433b8857ad235ae799d + initial_ast: 97cb09a50ff4ed2d76417ff98629cb903c5e5538632f8eb302d2bb562486a847 + unrolled_ast: 97cb09a50ff4ed2d76417ff98629cb903c5e5538632f8eb302d2bb562486a847 + ssa_ast: 57fd0b90269bbc554bddc8110933a8885f160f6944d4ef90f51f9d958156c6fe + flattened_ast: d6723dee36ed0ac30bfb823b9d0be747c06bd073e8197f564123c50291025c4c + destructured_ast: 54dd501508bc22c225f5617e377124305f7958e32a91c7e8f4aa645ce737b511 + inlined_ast: 54dd501508bc22c225f5617e377124305f7958e32a91c7e8f4aa645ce737b511 + dce_ast: 54dd501508bc22c225f5617e377124305f7958e32a91c7e8f4aa645ce737b511 bytecode: 986d6843806fcd3a479d777dcc4373b94817a5d3b9fb4cc1a6c3da752a69c925 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/div.out b/tests/expectations/compiler/integers/u16/div.out index 8324137d37..3b22ed06ef 100644 --- a/tests/expectations/compiler/integers/u16/div.out +++ b/tests/expectations/compiler/integers/u16/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: e5dd0953c6829509674de47465e0ccf0196b7918f4c28e5b64eff3cf20dc6b8d - unrolled_ast: e5dd0953c6829509674de47465e0ccf0196b7918f4c28e5b64eff3cf20dc6b8d - ssa_ast: 3d03937d70fcdbddd896692b3458c93a314c68b41ce6bcda64bc6533c2bc21bc - flattened_ast: 3473c510f30c00b58a6a142b55316a8321005068660dd18d078e70d65a7fa8bc - destructured_ast: 4cfb394c3eef7bac9763219e864586d05e0edc9956f765f66a28eb70e97de526 - inlined_ast: 4cfb394c3eef7bac9763219e864586d05e0edc9956f765f66a28eb70e97de526 - dce_ast: 4cfb394c3eef7bac9763219e864586d05e0edc9956f765f66a28eb70e97de526 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 43d0362a8317af7969de3514e1293d74ca2a341e0a7925c83232b1dd81ee0af6 + unrolled_ast: 43d0362a8317af7969de3514e1293d74ca2a341e0a7925c83232b1dd81ee0af6 + ssa_ast: 40c834b5ce9baaacff780cfa9cf08841427dd2251cf67509579f16e89d2276a4 + flattened_ast: 71724a4006ccd33b246c02db8c6adf1378a3a75b7c4f6e878b65d5af1bb7e207 + destructured_ast: d71a95206582816912ac5abf0ef38ad290485d740e7c45957eade4c3ae284f38 + inlined_ast: d71a95206582816912ac5abf0ef38ad290485d740e7c45957eade4c3ae284f38 + dce_ast: d71a95206582816912ac5abf0ef38ad290485d740e7c45957eade4c3ae284f38 bytecode: 99ba89ed030480c15697c6ba3b9dce82fa489d24dbba6d2edbc4934fc8baeb6c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/eq.out b/tests/expectations/compiler/integers/u16/eq.out index fb490ff55f..67ad2073c6 100644 --- a/tests/expectations/compiler/integers/u16/eq.out +++ b/tests/expectations/compiler/integers/u16/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3834c469d5725fa6e8205160b72d2ce2bc6bdeab512ba025b2f2ad888bc0ce63 - type_checked_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - unrolled_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - initial_ast: 46119c8a3be53e091a31cdc719d42c0c7098625f6dc2eb21e3e2df0d1af58650 - unrolled_ast: 46119c8a3be53e091a31cdc719d42c0c7098625f6dc2eb21e3e2df0d1af58650 - ssa_ast: 9a404984161645ecab06bdb2f867eeaa737d5aad6c9b3455b2506c85cfb7e179 - flattened_ast: 244f5fd02495583f3416ca1dbf483ff898320743b112ed77d8f9f74cd46c226c - destructured_ast: e060f4c1f8d050559c5ab147c3e9f25944154eeb58daedb02b2553b64a2181eb - inlined_ast: e060f4c1f8d050559c5ab147c3e9f25944154eeb58daedb02b2553b64a2181eb - dce_ast: e060f4c1f8d050559c5ab147c3e9f25944154eeb58daedb02b2553b64a2181eb + - initial_symbol_table: e8686dca74c6382e7863165b0c72ebda903de5b6d030330acd5a77455fa365a5 + type_checked_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + unrolled_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + initial_ast: bebd01c0e2ab4ae60f8f7c04d655e51ed78b479af3cf53fed47aec22655aff08 + unrolled_ast: bebd01c0e2ab4ae60f8f7c04d655e51ed78b479af3cf53fed47aec22655aff08 + ssa_ast: a0955d1bb56ca51ca2a3cf5bd2fd7e85f65d0ea8bb2f8ec1f5b60e5361c89b21 + flattened_ast: 8888ab67d340b3190897b9ff5df9f7b6c06ed87294af12610a6bf61187532b13 + destructured_ast: f570b5ebe29af98bca8a2bbabbbcf4d8d3a96f2ab5bbfca5a5a6fbc54c7181bb + inlined_ast: f570b5ebe29af98bca8a2bbabbbcf4d8d3a96f2ab5bbfca5a5a6fbc54c7181bb + dce_ast: f570b5ebe29af98bca8a2bbabbbcf4d8d3a96f2ab5bbfca5a5a6fbc54c7181bb bytecode: f125a6c62a71bd66b09211e1febbdfaa6491b9255270bbe3ac27ef505f4c46e0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/ge.out b/tests/expectations/compiler/integers/u16/ge.out index 7118cf9083..949fbb578a 100644 --- a/tests/expectations/compiler/integers/u16/ge.out +++ b/tests/expectations/compiler/integers/u16/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3834c469d5725fa6e8205160b72d2ce2bc6bdeab512ba025b2f2ad888bc0ce63 - type_checked_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - unrolled_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - initial_ast: 5689dcc3b6df36e135dc752163061b3490795a8fc77ad76d821b4bf6a4cfaaa0 - unrolled_ast: 5689dcc3b6df36e135dc752163061b3490795a8fc77ad76d821b4bf6a4cfaaa0 - ssa_ast: 21d607d0a457bf1fc773f817a4ea986fc36f9970831339e4f0734162b3ee3b37 - flattened_ast: 79397b220b3f6129b23649bfb1bf091ab27775f5e488892d50a46eb395822718 - destructured_ast: 9b594648246b86d0cf33934beea4bb45e0b6fda6203d6d7fe61ca85241119069 - inlined_ast: 9b594648246b86d0cf33934beea4bb45e0b6fda6203d6d7fe61ca85241119069 - dce_ast: 9b594648246b86d0cf33934beea4bb45e0b6fda6203d6d7fe61ca85241119069 + - initial_symbol_table: e8686dca74c6382e7863165b0c72ebda903de5b6d030330acd5a77455fa365a5 + type_checked_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + unrolled_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + initial_ast: e507b8eb13aaf6e7854aaba9419ede4c0a3d8a30715d9cfe5c01f9af7da8e4c3 + unrolled_ast: e507b8eb13aaf6e7854aaba9419ede4c0a3d8a30715d9cfe5c01f9af7da8e4c3 + ssa_ast: 2695a18ae964ba33efa2c26d240ce4c0af2eed74e67d29764c14d70568fd9938 + flattened_ast: 79407f9a06247a08649cbd8970caaef6ce1d429bc77f2236c4fd4d417f699ae4 + destructured_ast: 741b2f563c36e7bf728a8bcbee2a87be3341d1e5a6c85e1b51d1a84ae91de5ad + inlined_ast: 741b2f563c36e7bf728a8bcbee2a87be3341d1e5a6c85e1b51d1a84ae91de5ad + dce_ast: 741b2f563c36e7bf728a8bcbee2a87be3341d1e5a6c85e1b51d1a84ae91de5ad bytecode: ee2f4384477fac864957953a97c53275060e4c4ba793a180d6007af25b50b8df errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/gt.out b/tests/expectations/compiler/integers/u16/gt.out index 2f3e64c296..8fe347342c 100644 --- a/tests/expectations/compiler/integers/u16/gt.out +++ b/tests/expectations/compiler/integers/u16/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3834c469d5725fa6e8205160b72d2ce2bc6bdeab512ba025b2f2ad888bc0ce63 - type_checked_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - unrolled_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - initial_ast: b10fd4a22a1663fc6ec99fb3c082b92ef55c8e8cd124bf0756ef17acbba6fc70 - unrolled_ast: b10fd4a22a1663fc6ec99fb3c082b92ef55c8e8cd124bf0756ef17acbba6fc70 - ssa_ast: c5d1ccd686ab45545c2691febd31f5ae69982ae8f2e8a7151f5df0c2d5d9956f - flattened_ast: e8b5b25b8bdc8fb76b5add2a39a0cb6cfd6bd2211bdd56de8c8274043aa42c84 - destructured_ast: 6fb288033d0f53494809828581fe2b0cb7264c9347a83d8bf39b91bbcb1071ac - inlined_ast: 6fb288033d0f53494809828581fe2b0cb7264c9347a83d8bf39b91bbcb1071ac - dce_ast: 6fb288033d0f53494809828581fe2b0cb7264c9347a83d8bf39b91bbcb1071ac + - initial_symbol_table: e8686dca74c6382e7863165b0c72ebda903de5b6d030330acd5a77455fa365a5 + type_checked_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + unrolled_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + initial_ast: 2d0287421faeae187cad56ccd619d9704f6fd066374deaf9e62f29b19ae018e3 + unrolled_ast: 2d0287421faeae187cad56ccd619d9704f6fd066374deaf9e62f29b19ae018e3 + ssa_ast: ec10965d73036fea5f2b5394ccf1e78ad94c8cd8943e22c3a7c085e69ad4384a + flattened_ast: e0c4f4cd503f6e2f777f9ca7fc8a40b99aa30a3d1b98fc6e564844a310e2847b + destructured_ast: 00226edc02f55d7766227ee6102ef216263ff61e39ae5b1d7c8c357e56ea3c23 + inlined_ast: 00226edc02f55d7766227ee6102ef216263ff61e39ae5b1d7c8c357e56ea3c23 + dce_ast: 00226edc02f55d7766227ee6102ef216263ff61e39ae5b1d7c8c357e56ea3c23 bytecode: f7ff09e980c11a6a98c8178e5cecbe8cbf83e40f25f5feec526358c95262fe96 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/le.out b/tests/expectations/compiler/integers/u16/le.out index 5281563c12..d4042b82dc 100644 --- a/tests/expectations/compiler/integers/u16/le.out +++ b/tests/expectations/compiler/integers/u16/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3834c469d5725fa6e8205160b72d2ce2bc6bdeab512ba025b2f2ad888bc0ce63 - type_checked_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - unrolled_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - initial_ast: 35287d8062cbf83f3440c051df10db952d41f56a7636a6b0bcaec36852cf4e2b - unrolled_ast: 35287d8062cbf83f3440c051df10db952d41f56a7636a6b0bcaec36852cf4e2b - ssa_ast: 5baeb3fff6a7260abb9521d4d84ed30bc4f32b8efb4566bd0b9196f71ca3c670 - flattened_ast: f1ec1112f69587257b3cef9efaf51bce6b6326df840b67ed8f12ce92b4fd0a85 - destructured_ast: 3e77c6e956b447f4686d4fa094b3012fccf4f7cc6941c17d2c46a986275e34f8 - inlined_ast: 3e77c6e956b447f4686d4fa094b3012fccf4f7cc6941c17d2c46a986275e34f8 - dce_ast: 3e77c6e956b447f4686d4fa094b3012fccf4f7cc6941c17d2c46a986275e34f8 + - initial_symbol_table: e8686dca74c6382e7863165b0c72ebda903de5b6d030330acd5a77455fa365a5 + type_checked_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + unrolled_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + initial_ast: a64ace05140f0c6e40e29e9a3e3e70718b2e77be1dee912c584b17f84ebb752b + unrolled_ast: a64ace05140f0c6e40e29e9a3e3e70718b2e77be1dee912c584b17f84ebb752b + ssa_ast: 2fc9fc7ec09e5d8c6fd634260d96354368cdca4541f41759c6b45658607940dc + flattened_ast: 07735798b80005a87d31c4536724f631c468859600c33eb866bd8c252c2d98bf + destructured_ast: 89fcec03e3a080ca7c4f04f2fb04ee1cc8d478056ce9520e70f3654fdd334104 + inlined_ast: 89fcec03e3a080ca7c4f04f2fb04ee1cc8d478056ce9520e70f3654fdd334104 + dce_ast: 89fcec03e3a080ca7c4f04f2fb04ee1cc8d478056ce9520e70f3654fdd334104 bytecode: 1a4dc861ca94e33a883b8326dcf9a21345fdd65b1d00dcaab408cbe8bf2e7c23 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/lt.out b/tests/expectations/compiler/integers/u16/lt.out index 6c0f633ea0..76aabed72a 100644 --- a/tests/expectations/compiler/integers/u16/lt.out +++ b/tests/expectations/compiler/integers/u16/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3834c469d5725fa6e8205160b72d2ce2bc6bdeab512ba025b2f2ad888bc0ce63 - type_checked_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - unrolled_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - initial_ast: 82728f40fe6c08bf25c4839e10da9ea05e80507278d7c6abe2d4f6200bd265bd - unrolled_ast: 82728f40fe6c08bf25c4839e10da9ea05e80507278d7c6abe2d4f6200bd265bd - ssa_ast: c0000484cd5f79f1cc116bf08b70b69e1366a3ecec16cdcb149b6fe96b3b2cac - flattened_ast: 39d8a80072bae1f0b93438d4f923fbed3310077633476a417e8e8daff9579e64 - destructured_ast: eda97e3971991e64002709dae629a7f4f9ba366f10b9781a09eee5b29888e187 - inlined_ast: eda97e3971991e64002709dae629a7f4f9ba366f10b9781a09eee5b29888e187 - dce_ast: eda97e3971991e64002709dae629a7f4f9ba366f10b9781a09eee5b29888e187 + - initial_symbol_table: e8686dca74c6382e7863165b0c72ebda903de5b6d030330acd5a77455fa365a5 + type_checked_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + unrolled_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + initial_ast: 60c1da338b3c4b74a92f6fb7abfaefb524a3a3c0c3d73b736d19c6f47b3c7ade + unrolled_ast: 60c1da338b3c4b74a92f6fb7abfaefb524a3a3c0c3d73b736d19c6f47b3c7ade + ssa_ast: c4bdece2cae656af7b3d64b0f17b1565272c6c1d133ea559551ce179a7b48884 + flattened_ast: 24959ba1aa5e49050d85d7128c07b4126654c8d94b925c71d3165f0fddfe0b8a + destructured_ast: 31c6a81ab7a91ed22bdf4e9fe2f67fce7894fc0d5c09aa124ac7c4d0443cd602 + inlined_ast: 31c6a81ab7a91ed22bdf4e9fe2f67fce7894fc0d5c09aa124ac7c4d0443cd602 + dce_ast: 31c6a81ab7a91ed22bdf4e9fe2f67fce7894fc0d5c09aa124ac7c4d0443cd602 bytecode: 3b2dd5b9dfa587ed0f67449bbc6a9a0b90edb7c9ffbee5e36f1c40512e09bb1d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/max.out b/tests/expectations/compiler/integers/u16/max.out index 0d03c60668..80f47ffa87 100644 --- a/tests/expectations/compiler/integers/u16/max.out +++ b/tests/expectations/compiler/integers/u16/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 048b477976252010a698561ab521f939276783a82a75428724cd7f96f1307d4a - unrolled_symbol_table: 048b477976252010a698561ab521f939276783a82a75428724cd7f96f1307d4a - initial_ast: 87a2561cfe655696461c41cd9bd436b8e91f124fbaba8345f07ba26f471ba97c - unrolled_ast: 87a2561cfe655696461c41cd9bd436b8e91f124fbaba8345f07ba26f471ba97c - ssa_ast: d2f58fdb177ab210daea4704b93b109a9e467915987c4a62b7c7144a4d12d4b8 - flattened_ast: 26ca702e0232351f7b26da36580f029064ef3863eddf6f6b1c7351bad3770f2d - destructured_ast: cf16f7a242276cd28d9a527c346a3332d01924360c7c6a9f2da9ebcbe5ebf2a7 - inlined_ast: cf16f7a242276cd28d9a527c346a3332d01924360c7c6a9f2da9ebcbe5ebf2a7 - dce_ast: 3b38e9a2e3b475628690538cb46778a856190f328952c8bd7553c55d918ca22e + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: bc1e4e3b89182fb235da26781d1e959676328726545feb50e66c99c93c1502e9 + unrolled_symbol_table: bc1e4e3b89182fb235da26781d1e959676328726545feb50e66c99c93c1502e9 + initial_ast: a437f4d6d8e7b54d6758bc421a3c1477c35770bf82addaf64e11bb6b9e4960b4 + unrolled_ast: a437f4d6d8e7b54d6758bc421a3c1477c35770bf82addaf64e11bb6b9e4960b4 + ssa_ast: 16649be57c1feb21da66aeaea007b2ce60fb8dbc0d9c76f51a5ba688418607e9 + flattened_ast: 263c4043a86f4e05c1fd2f63fa849207d46b0dba85c9adcd547292ea44c1fb3b + destructured_ast: a450dc1ee7114b77663c96c4f623a47d014531affcb1151fb2ccceb1df649a22 + inlined_ast: a450dc1ee7114b77663c96c4f623a47d014531affcb1151fb2ccceb1df649a22 + dce_ast: fa3cb0d6449bc86c87f673fe0ac3d7a6235a44a21700e5fa85af35191ac3df85 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/max_fail.out b/tests/expectations/compiler/integers/u16/max_fail.out index c1228a192f..4a4548939f 100644 --- a/tests/expectations/compiler/integers/u16/max_fail.out +++ b/tests/expectations/compiler/integers/u16/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 65536 is not a valid `u16`\n --> compiler-test:5:22\n |\n 5 | let a: u16 = 65536u16;\n | ^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 65536 is not a valid `u16`\n --> compiler-test:5:22\n |\n 5 | let a: u16 = 65536u16;\n | ^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u16/min.out b/tests/expectations/compiler/integers/u16/min.out index 090eb0d211..4c377ac835 100644 --- a/tests/expectations/compiler/integers/u16/min.out +++ b/tests/expectations/compiler/integers/u16/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 048b477976252010a698561ab521f939276783a82a75428724cd7f96f1307d4a - unrolled_symbol_table: 048b477976252010a698561ab521f939276783a82a75428724cd7f96f1307d4a - initial_ast: a413041a7e3b2e6e550650a8379196a732e24eced05fdbf23b19fabfa2e2e3b5 - unrolled_ast: a413041a7e3b2e6e550650a8379196a732e24eced05fdbf23b19fabfa2e2e3b5 - ssa_ast: 1d3d5c5958bcc870d2695d30612f0d86c122727260b068e3687ec67642d72680 - flattened_ast: 553fee60cc8eb4c4aacac38a5421f0e81423e15edeae65ba95afd58c9f2fd66c - destructured_ast: 6499646dc44a24ed7934676131ef6275c5e602432950742064701a257f90cb23 - inlined_ast: 6499646dc44a24ed7934676131ef6275c5e602432950742064701a257f90cb23 - dce_ast: 0d193ba2542b79e695a630054aae5f4a65f5ab9364fa8d3e5bb783485c4c0c2e + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: bc1e4e3b89182fb235da26781d1e959676328726545feb50e66c99c93c1502e9 + unrolled_symbol_table: bc1e4e3b89182fb235da26781d1e959676328726545feb50e66c99c93c1502e9 + initial_ast: bec56fe040744d36ac1d646a24e0936bd838d72b7a95b87777a66461b16e25aa + unrolled_ast: bec56fe040744d36ac1d646a24e0936bd838d72b7a95b87777a66461b16e25aa + ssa_ast: 668c4aa2bede4d3d3241827a31a230847602c249b15add58d2b3f97b6720550b + flattened_ast: 7477a057259f0e23964da8ed4e3cde30f29793522825aaa7737f243148c61a98 + destructured_ast: 1977aa4f10d8f291da908b87b7d968e1b369d4c7f121eaab2937d2dfa653a013 + inlined_ast: 1977aa4f10d8f291da908b87b7d968e1b369d4c7f121eaab2937d2dfa653a013 + dce_ast: c52972ede00e5e4c9a05bb401e8b72a8f751b710a379af9fc333c3595d598395 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/min_fail.out b/tests/expectations/compiler/integers/u16/min_fail.out index 6f5a5a127a..0aae51e972 100644 --- a/tests/expectations/compiler/integers/u16/min_fail.out +++ b/tests/expectations/compiler/integers/u16/min_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value -1 is not a valid `u16`\n --> compiler-test:5:22\n |\n 5 | let a: u16 = -1u16;\n | ^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value -1 is not a valid `u16`\n --> compiler-test:5:22\n |\n 5 | let a: u16 = -1u16;\n | ^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u16/mul.out b/tests/expectations/compiler/integers/u16/mul.out index 2d15dd0b63..1e7b4dad1d 100644 --- a/tests/expectations/compiler/integers/u16/mul.out +++ b/tests/expectations/compiler/integers/u16/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: 9ab7c369cecaf0c31f710a8d9bb41ef45c1d60f611d139349b840dd58a2e39e0 - unrolled_ast: 9ab7c369cecaf0c31f710a8d9bb41ef45c1d60f611d139349b840dd58a2e39e0 - ssa_ast: b9f77e91880a4220b63aa94d79710d9d906bf401d823bdc47b0cb5102229a059 - flattened_ast: 2344c7318102a622ebacd9f6e2c71cf3da015be451fd9a8192a5def9c448503f - destructured_ast: 16c578a1db25de87abaa57d371d922f5b4677bcca42c2bb9f1e28683f2c03915 - inlined_ast: 16c578a1db25de87abaa57d371d922f5b4677bcca42c2bb9f1e28683f2c03915 - dce_ast: 16c578a1db25de87abaa57d371d922f5b4677bcca42c2bb9f1e28683f2c03915 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 2cda7f0f5a1063eb6e5426237060d7854592c553a1fa102bc74ca00277ac60c5 + unrolled_ast: 2cda7f0f5a1063eb6e5426237060d7854592c553a1fa102bc74ca00277ac60c5 + ssa_ast: 35767673d8c2ef6031de6106239f9b81cefa2fa03c6f3ede6bc9ab516478e887 + flattened_ast: 4161563a8627d4127a503f087d770023b70a4ad6370154522cf9b38d9cd62f14 + destructured_ast: d9655a95a2719729f1c4f88985d6df835e3f625ddcfda3741495c9e91e544f24 + inlined_ast: d9655a95a2719729f1c4f88985d6df835e3f625ddcfda3741495c9e91e544f24 + dce_ast: d9655a95a2719729f1c4f88985d6df835e3f625ddcfda3741495c9e91e544f24 bytecode: 5495593b6e8c8b396503f1f61e5f3b620d1ccc173721316cfb1f30b268486ed5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/ne.out b/tests/expectations/compiler/integers/u16/ne.out index 2d773b5142..1aa5717b88 100644 --- a/tests/expectations/compiler/integers/u16/ne.out +++ b/tests/expectations/compiler/integers/u16/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3834c469d5725fa6e8205160b72d2ce2bc6bdeab512ba025b2f2ad888bc0ce63 - type_checked_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - unrolled_symbol_table: 19e4af71e707284465ee901df0877e63d05d1f623e621f0a761c6918922a00a9 - initial_ast: 50a77b95ce7364790942a633815bedf747365b901938d1c59a45cb5338a0956b - unrolled_ast: 50a77b95ce7364790942a633815bedf747365b901938d1c59a45cb5338a0956b - ssa_ast: cc520aab22c8f8412d13c1b8be063e0cde9ff7e7d1e323db52a23169d3872ead - flattened_ast: 5ba513af1e00aa20e2deb393a7c9f5df8127271d6add8bad82a78cc6ba40ad9e - destructured_ast: da017b0298afd1d32dc8cc855a88dfc86b203944377c6d5cb1cd5bf11d21463a - inlined_ast: da017b0298afd1d32dc8cc855a88dfc86b203944377c6d5cb1cd5bf11d21463a - dce_ast: da017b0298afd1d32dc8cc855a88dfc86b203944377c6d5cb1cd5bf11d21463a + - initial_symbol_table: e8686dca74c6382e7863165b0c72ebda903de5b6d030330acd5a77455fa365a5 + type_checked_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + unrolled_symbol_table: 33583dfa32a078d9a353b75e780f8bf2dadda44a9c570571835dd64f63a4a3cd + initial_ast: 023d917f6295c036933b9dcf67a94cc408f4a1b02dc78b0c7c23a603a5bcd2ac + unrolled_ast: 023d917f6295c036933b9dcf67a94cc408f4a1b02dc78b0c7c23a603a5bcd2ac + ssa_ast: 61a08a0f1661e1d5b50985b7f0354b53e8ce4445b69f888c5b9e79a06229e32a + flattened_ast: f90f8060b49114eb41c45d71cfbb9011da56e6266ed6b1dff8c5967b99992e57 + destructured_ast: b6ce3073d5853720af952f5bce69cdcc380f8106b699d1d783f6204abdc42080 + inlined_ast: b6ce3073d5853720af952f5bce69cdcc380f8106b699d1d783f6204abdc42080 + dce_ast: b6ce3073d5853720af952f5bce69cdcc380f8106b699d1d783f6204abdc42080 bytecode: 02468182490bfd77f1aae9ed8c5a4b1cd2a3373c2bdc998f6567f5c900fefe33 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/operator_methods.out b/tests/expectations/compiler/integers/u16/operator_methods.out index e3950260b6..3311004bf5 100644 --- a/tests/expectations/compiler/integers/u16/operator_methods.out +++ b/tests/expectations/compiler/integers/u16/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3a38fec756ada928199e6e92ef41d89e4a16b8aca85c2704577cfb2c10676d0a - type_checked_symbol_table: 1da08293c5809e13b14edb271a0948a093041aacb1d95472f3ac8c872815c830 - unrolled_symbol_table: 1da08293c5809e13b14edb271a0948a093041aacb1d95472f3ac8c872815c830 - initial_ast: 2be94f7f14cb82af3cea750f9755d70f58786c24dbde3388f24056d76944a893 - unrolled_ast: 2be94f7f14cb82af3cea750f9755d70f58786c24dbde3388f24056d76944a893 - ssa_ast: 41b5a22bb30710529f0ef1a3fa7b46eb7428443bbe7b8be7c618c06c10ecb6a9 - flattened_ast: 812e9fad2ce49444ab40f252465dc7e594605a1b6cb141aa26659550a3303296 - destructured_ast: 0bf09b1cf4a8b584db3782eada77e2daf2e0eec7f43c02a2f8537911830d9d74 - inlined_ast: 0bf09b1cf4a8b584db3782eada77e2daf2e0eec7f43c02a2f8537911830d9d74 - dce_ast: 6308a06b2b44e288fd19714352a8fccb7702499f46c33e3c2ff83865edebb7a6 + - initial_symbol_table: b6a994716a62f7b616f9a73b74f5a2b2e4877a94219e492b4172ceb20ff2b834 + type_checked_symbol_table: db1b91984bc324aec0de3176ffdcbc11b66c1c139783ffc7eca99f3b2d6ff78f + unrolled_symbol_table: db1b91984bc324aec0de3176ffdcbc11b66c1c139783ffc7eca99f3b2d6ff78f + initial_ast: 22267400ccfd8d03d68671905afa8ebf2110e304a210c159931466c8ae390a13 + unrolled_ast: 22267400ccfd8d03d68671905afa8ebf2110e304a210c159931466c8ae390a13 + ssa_ast: d297de4498501a7e9000ceb26fffd0a978740a844ef405552d12c543dd11540c + flattened_ast: d342d821a4e3e6479fe61bd5d63bb0c7f24d0d34ef429da63000b200fb96de5e + destructured_ast: 84abbae7a5cdcf0982fcfd999caaa1660c70b71eefccb8972d40059fdd10901b + inlined_ast: 84abbae7a5cdcf0982fcfd999caaa1660c70b71eefccb8972d40059fdd10901b + dce_ast: faa679be8dafa58c70576e3d2d02a8aefb9d56c6e6c27d310fd9bcc5703a7e97 bytecode: 842bf9cb4647adc6c67cecc1c36ec85f5a659d9245571869e10e93bb303ff343 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/or.out b/tests/expectations/compiler/integers/u16/or.out index 0d5a82538e..7f21041e53 100644 --- a/tests/expectations/compiler/integers/u16/or.out +++ b/tests/expectations/compiler/integers/u16/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: 70d8f09706d34b405ec967b434e26573780e77da908d8e5836d4086a419dec5c - unrolled_ast: 70d8f09706d34b405ec967b434e26573780e77da908d8e5836d4086a419dec5c - ssa_ast: f2705c0b089ad1ee855dfc535c247ce2ec9ed73ef37e5776ed6f00d97dcb5fb0 - flattened_ast: 920b68be8fd91cd90ac3121b4b1a7ce18820eb678633ff0aa1c158d529b30da1 - destructured_ast: 3cb92765316517693ac8f5f95d19fd8d6894f471a27b389a2a585451d4b7be4d - inlined_ast: 3cb92765316517693ac8f5f95d19fd8d6894f471a27b389a2a585451d4b7be4d - dce_ast: 3cb92765316517693ac8f5f95d19fd8d6894f471a27b389a2a585451d4b7be4d + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 644fa0f2d250896e2dcb4d6d6c94a54f01a79d25a4acca1cee1a7010b64aac8c + unrolled_ast: 644fa0f2d250896e2dcb4d6d6c94a54f01a79d25a4acca1cee1a7010b64aac8c + ssa_ast: fe8463b840c5a99f6fc2229526428b681e41ae897287bee09056c3eb9347a132 + flattened_ast: bbd0d1b9cd79bfd27c356a3c72dd936a2cdbe49017c2e9f5ebdb38b72cce5ef4 + destructured_ast: 45968a86756ac74c4c7bf2264ab914af63cf1b3f431d833e4e2b9f5f169e31ff + inlined_ast: 45968a86756ac74c4c7bf2264ab914af63cf1b3f431d833e4e2b9f5f169e31ff + dce_ast: 45968a86756ac74c4c7bf2264ab914af63cf1b3f431d833e4e2b9f5f169e31ff bytecode: 50061292bb5678c2bbb3062570d3f8d5233316e274c6504aa6b012816e2f511e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/pow.out b/tests/expectations/compiler/integers/u16/pow.out index fdb6808808..729e07d85b 100644 --- a/tests/expectations/compiler/integers/u16/pow.out +++ b/tests/expectations/compiler/integers/u16/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: e8f3fe13174beaef89eb17aa1d4f583cdae754fb3c15154825508a1e8a2ebc93 - unrolled_ast: e8f3fe13174beaef89eb17aa1d4f583cdae754fb3c15154825508a1e8a2ebc93 - ssa_ast: b5fc11b9a8f803e981ab90d69ccc60b75476f3011e83a8bd65daec0894e5375c - flattened_ast: 8bb92a2d976f3ee6ed8c242d7a195ba672fbb4628a4d901aae07765b862b7f94 - destructured_ast: 553c7352c92f6d16faec85661121b2151fc1dd8122567f545054923ac06102d6 - inlined_ast: 553c7352c92f6d16faec85661121b2151fc1dd8122567f545054923ac06102d6 - dce_ast: 553c7352c92f6d16faec85661121b2151fc1dd8122567f545054923ac06102d6 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 1beeccff01a5b0544f080c9503d527389078cc3d3ea46c14b237e861b5c05925 + unrolled_ast: 1beeccff01a5b0544f080c9503d527389078cc3d3ea46c14b237e861b5c05925 + ssa_ast: 81a65f63dea5f1016c2667a0ff08f697bbc16b4d1eeed03b4da3a3d32ddac0bf + flattened_ast: 64da21de7c2f0666108affbe411fe48113014b8f0f254cf7c8179334e23476eb + destructured_ast: aa3018ba4b39413937e7cda8a031793f4425a5a1020d63bf36554e54863da397 + inlined_ast: aa3018ba4b39413937e7cda8a031793f4425a5a1020d63bf36554e54863da397 + dce_ast: aa3018ba4b39413937e7cda8a031793f4425a5a1020d63bf36554e54863da397 bytecode: 57544c7875d33d64e359c3e64ab2115a3d431c3ecba318223e0237fbbbdfcde0 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/rem.out b/tests/expectations/compiler/integers/u16/rem.out index 3e5a819890..edf2eb14fe 100644 --- a/tests/expectations/compiler/integers/u16/rem.out +++ b/tests/expectations/compiler/integers/u16/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: 81fd20901794a04ad1fe979d36a60afe63cc8de81c85fddf771040b95d867970 - unrolled_ast: 81fd20901794a04ad1fe979d36a60afe63cc8de81c85fddf771040b95d867970 - ssa_ast: c9347587c54f4650b4d009df4e88cc6b760b144131a41ec8e443e663219cbbf2 - flattened_ast: b695763d1ed775326969e7c682247ca453245eae628c7f7680dfc8ed6b726085 - destructured_ast: 85bde1b97ba863d23eb808db6bdfdcc14a2bf1b07d18930e5710c8e3763cc99c - inlined_ast: 85bde1b97ba863d23eb808db6bdfdcc14a2bf1b07d18930e5710c8e3763cc99c - dce_ast: 85bde1b97ba863d23eb808db6bdfdcc14a2bf1b07d18930e5710c8e3763cc99c + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 362b0cb93aa3d28d348d7b9209bed566a00c2829334d6a787b00652d5f0a68bd + unrolled_ast: 362b0cb93aa3d28d348d7b9209bed566a00c2829334d6a787b00652d5f0a68bd + ssa_ast: 3d3d5fac168ba583b50a00f4aa6e65da9c3eccf3bca0b23b589964eb82c85b93 + flattened_ast: 602eb4ff05b9c40967a69312c3183abe0f9a4d8735ea24b7675d84d3a98110ce + destructured_ast: 1752686dff4ceb2390a6d7cb7417471105133e99dd696792929c76dc7fe97d6f + inlined_ast: 1752686dff4ceb2390a6d7cb7417471105133e99dd696792929c76dc7fe97d6f + dce_ast: 1752686dff4ceb2390a6d7cb7417471105133e99dd696792929c76dc7fe97d6f bytecode: 312a00be59034a01944b77f36b32275e4d54b11d5b098a7e19c7bb4906e6ca6f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/shl.out b/tests/expectations/compiler/integers/u16/shl.out index ef1105bc33..d5d9ff8100 100644 --- a/tests/expectations/compiler/integers/u16/shl.out +++ b/tests/expectations/compiler/integers/u16/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: 7bfafde4b3876cf8fd91a55fdd0eb069c633267ff5a9cb9238ba6cc2f989b891 - unrolled_ast: 7bfafde4b3876cf8fd91a55fdd0eb069c633267ff5a9cb9238ba6cc2f989b891 - ssa_ast: f15dedab995b58e35803418860da53be720bd063f4db9e4b34b2295b2f8771fe - flattened_ast: 639c20c906e0388d0a5ee5bfebc542523ef6c19e32c364eea0ab3c79d473e2af - destructured_ast: dcd841c9ab27b13b100efc5913951d56ac3950dc900d679185575d0e47b08a7a - inlined_ast: dcd841c9ab27b13b100efc5913951d56ac3950dc900d679185575d0e47b08a7a - dce_ast: dcd841c9ab27b13b100efc5913951d56ac3950dc900d679185575d0e47b08a7a + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 836c8e0a3e748aa93f05041a317e5e74a778e19dae07424aa33d92088750598d + unrolled_ast: 836c8e0a3e748aa93f05041a317e5e74a778e19dae07424aa33d92088750598d + ssa_ast: cc99714846d8c78e2366b3d55532c5c1dcff639f0be04e466d59c27127e41409 + flattened_ast: cf042aca889607d9d80ab013e349dc96945a1d1a099ad92dc404b56160c32255 + destructured_ast: 19f8b4cae69c86688239947740f1f4880ee0bbdf91e0bfe1301ef331863e0bbd + inlined_ast: 19f8b4cae69c86688239947740f1f4880ee0bbdf91e0bfe1301ef331863e0bbd + dce_ast: 19f8b4cae69c86688239947740f1f4880ee0bbdf91e0bfe1301ef331863e0bbd bytecode: 5ebe5527cde826ed570752b1e9ffd16a4805c5071c3adbd4099ebad9174d5f11 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/shr.out b/tests/expectations/compiler/integers/u16/shr.out index 511bb1b2bc..affadf7bc9 100644 --- a/tests/expectations/compiler/integers/u16/shr.out +++ b/tests/expectations/compiler/integers/u16/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: ef59dce0b6422ba47a0940a123cceba9376ab7f365d1ef7fb5f5690116c2c749 - unrolled_ast: ef59dce0b6422ba47a0940a123cceba9376ab7f365d1ef7fb5f5690116c2c749 - ssa_ast: 4e64f54d0ca9f9194437b9fef6675c960e3acf50594d813efb448e59748f5e75 - flattened_ast: 38c1257a48ee3e76cd6ca0fa6e9d563a16578ccd1eb167f47298fad285e6d664 - destructured_ast: 5c0abf1a8932b29e89db3be1bab66b21da6f389d7dff3d8ccb8c962ee4a81837 - inlined_ast: 5c0abf1a8932b29e89db3be1bab66b21da6f389d7dff3d8ccb8c962ee4a81837 - dce_ast: 5c0abf1a8932b29e89db3be1bab66b21da6f389d7dff3d8ccb8c962ee4a81837 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 897ace7b7228e38c0653036eed7fa6b2fc9601694c9e615282837133cdc45258 + unrolled_ast: 897ace7b7228e38c0653036eed7fa6b2fc9601694c9e615282837133cdc45258 + ssa_ast: 14fad103638989d9eddb69242e8354b4bdc9e84b5e9a2363328442b3b5f1309d + flattened_ast: 7e42dc74c7258e8fc859be0793f8c7d169e435d46319bdb4c050166f7e9030c5 + destructured_ast: b740b83f7f3b9253c7ad08dc06258b753809e26a2ecbb60336580712051c33c9 + inlined_ast: b740b83f7f3b9253c7ad08dc06258b753809e26a2ecbb60336580712051c33c9 + dce_ast: b740b83f7f3b9253c7ad08dc06258b753809e26a2ecbb60336580712051c33c9 bytecode: 27908eccc0ae25f792ff3b23f7b243cec3dc74e4167e62f5db0d2ac9c8d91d2c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/sub.out b/tests/expectations/compiler/integers/u16/sub.out index 855acb2a8c..6bca305301 100644 --- a/tests/expectations/compiler/integers/u16/sub.out +++ b/tests/expectations/compiler/integers/u16/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6e099cc37b82158d16419fbbb8abff7ad73289d2de5267446422313519ddfbf - type_checked_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - unrolled_symbol_table: 5931fa1134570ba854c9f8998af18bca824c2e1e1e10b50325ee26c8e555bc2b - initial_ast: f60d3840d81a140c8ac91432832b2b9e551fd46db31e9275aaf6d9edc0353eb5 - unrolled_ast: f60d3840d81a140c8ac91432832b2b9e551fd46db31e9275aaf6d9edc0353eb5 - ssa_ast: c78e8e7c172fa137c92be7456cc2ab5b96cfee9123ba319957a99ec566f177b4 - flattened_ast: eb3cba99fb0bc1ea6f4eee7f501a46d0142d076257ae4341712f948918278fbc - destructured_ast: d80daf06c845a7f5b80d4c9e42546b367c7bcfe3726f3b5b0fe0205f95c29529 - inlined_ast: d80daf06c845a7f5b80d4c9e42546b367c7bcfe3726f3b5b0fe0205f95c29529 - dce_ast: d80daf06c845a7f5b80d4c9e42546b367c7bcfe3726f3b5b0fe0205f95c29529 + - initial_symbol_table: f6b637ac4638db0248808d38d51e14d0467cd8cb6f300891a91d5feb8e95f9b9 + type_checked_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + unrolled_symbol_table: beabeb621d2e528ab5a89ec75ebc7beab5eea795a6d1b597b35a15c599a61add + initial_ast: 904c35924ecc25edf00cf73355aae9a720572a5e0f196e4a6d71702c2edbfaa2 + unrolled_ast: 904c35924ecc25edf00cf73355aae9a720572a5e0f196e4a6d71702c2edbfaa2 + ssa_ast: 2ea1a43da6dc8811714cb607bd97ba3336912ba41e5d911c2d4055faa6fc9a8d + flattened_ast: 47162fd92431c1425f1568d3803f64bef1b65ebd7b22dcc0d546320e04bc4560 + destructured_ast: 6a1e34f0d022d1eb5df3f17b4e775eff93eafc022fa517fee42520c543bf4c5b + inlined_ast: 6a1e34f0d022d1eb5df3f17b4e775eff93eafc022fa517fee42520c543bf4c5b + dce_ast: 6a1e34f0d022d1eb5df3f17b4e775eff93eafc022fa517fee42520c543bf4c5b bytecode: d6c71656a8b803092075816e82fbc5c044f3700139c5ca079a1a8f2be846d573 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/ternary.out b/tests/expectations/compiler/integers/u16/ternary.out index 25e4f5ef8a..59d446e8ab 100644 --- a/tests/expectations/compiler/integers/u16/ternary.out +++ b/tests/expectations/compiler/integers/u16/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: eed9ab8075a6a3b5f082ff7b75a5bed863d48ec8f4ac7b164ca81a74bb408bb1 - type_checked_symbol_table: 89157094807596bfa618aef2f5eb78a9e3e5135e96b11dbc06063c887ef0cd70 - unrolled_symbol_table: 89157094807596bfa618aef2f5eb78a9e3e5135e96b11dbc06063c887ef0cd70 - initial_ast: 041088edbf74d02f60df01a4c142a334e89709b1040b2378d1f90079f6168aff - unrolled_ast: 041088edbf74d02f60df01a4c142a334e89709b1040b2378d1f90079f6168aff - ssa_ast: 55e1082ca25e98fa61a609cdc491a68493571fcc709a9be03435ef62b676cedd - flattened_ast: ba99ff4c09b6226274c0eb09cb362c7512ced922c8830bc5e5b35bd1b159d548 - destructured_ast: 2244c6b3f34abace9384c3a925cb1974fb1f2ac6b2d536f60772a2bbaae052d3 - inlined_ast: 2244c6b3f34abace9384c3a925cb1974fb1f2ac6b2d536f60772a2bbaae052d3 - dce_ast: 2244c6b3f34abace9384c3a925cb1974fb1f2ac6b2d536f60772a2bbaae052d3 + - initial_symbol_table: aac34aa86818be8fa8979c83109a6cd01ce1b3657106fbb91c052c3d4d2f7059 + type_checked_symbol_table: 7e8768b4eeb9102a3db736cd9a0ac6d66ec2bd705d8366584f7781340800d608 + unrolled_symbol_table: 7e8768b4eeb9102a3db736cd9a0ac6d66ec2bd705d8366584f7781340800d608 + initial_ast: 7b923366c500649b340f103089a640faab635f488289fe8b32a059cd7e77b1fd + unrolled_ast: 7b923366c500649b340f103089a640faab635f488289fe8b32a059cd7e77b1fd + ssa_ast: 2ee49b4948529bd5baba4691a1d7cd2351779eb5cc6be41be8a1a2da7175f0d0 + flattened_ast: ddb969db495c1bbc2bfc04d8486c7d120958361965bf5866f1c188f3f2941210 + destructured_ast: 3a550364e458f5144407c2105c0e8dfaffcf5e0a6faaf007d9d20889297c3bb6 + inlined_ast: 3a550364e458f5144407c2105c0e8dfaffcf5e0a6faaf007d9d20889297c3bb6 + dce_ast: 3a550364e458f5144407c2105c0e8dfaffcf5e0a6faaf007d9d20889297c3bb6 bytecode: 113603fb207a83e65ee275be10ad122173cea7a90327c07028eab9fffe449016 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u16/xor.out b/tests/expectations/compiler/integers/u16/xor.out index 68baaaaa73..4490af8fe4 100644 --- a/tests/expectations/compiler/integers/u16/xor.out +++ b/tests/expectations/compiler/integers/u16/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f1deb595a8207dd0d9e08b6194a05e9bcd079b5745b96ef08143c6580a28ec70 - type_checked_symbol_table: a9406759d544c843444bd3193b3138244f64b70f132f05e9983546338c3fb6f2 - unrolled_symbol_table: a9406759d544c843444bd3193b3138244f64b70f132f05e9983546338c3fb6f2 - initial_ast: ad119d71e95f3963c0442efa57da3c6663a80e13b12b6c8eee3d0d1d6424cb97 - unrolled_ast: ad119d71e95f3963c0442efa57da3c6663a80e13b12b6c8eee3d0d1d6424cb97 - ssa_ast: 03de435ef9af578038860208de770eaae2fecf9ea6c221bf3f0d9e7d129c5452 - flattened_ast: 8e417009ea72c94aa0015297cd82107cae0afadc29b1e37572a5fb30a32dec71 - destructured_ast: 4d232b9b6b4b1f1f45900550d4f7ab1a560cdaf27841b5a5e2e92ba267ee1a50 - inlined_ast: 4d232b9b6b4b1f1f45900550d4f7ab1a560cdaf27841b5a5e2e92ba267ee1a50 - dce_ast: 4d232b9b6b4b1f1f45900550d4f7ab1a560cdaf27841b5a5e2e92ba267ee1a50 + - initial_symbol_table: f359baf17b1a1305f912fe5aa64e14809b965c3139baeee5eb80cee3e5e64701 + type_checked_symbol_table: a06d7a39ea06878588f45562456d9de30d0cedce37f66da85e3cf13a7c4be2c2 + unrolled_symbol_table: a06d7a39ea06878588f45562456d9de30d0cedce37f66da85e3cf13a7c4be2c2 + initial_ast: ef9217f8770d06b09d5bfb7ea5ea3ba316a947202ddfcde6eaac04ec210ea1fa + unrolled_ast: ef9217f8770d06b09d5bfb7ea5ea3ba316a947202ddfcde6eaac04ec210ea1fa + ssa_ast: 32c1320394264310dd700af6648c66e9212f7f1aa24191468ee3b0071002a08e + flattened_ast: 81bd2436cf530e41b441d2a65ec18b9b122811ead58bddc75f245956482a3264 + destructured_ast: f8e119014894ae0e7fe6b5904a0a89961e59ba5f6a8e7ba113c1c277951b0e77 + inlined_ast: f8e119014894ae0e7fe6b5904a0a89961e59ba5f6a8e7ba113c1c277951b0e77 + dce_ast: f8e119014894ae0e7fe6b5904a0a89961e59ba5f6a8e7ba113c1c277951b0e77 bytecode: eb928c87aa9dab9c5fd3d063c6f3bd9400ca1fb12eea712baf4406852dc1f439 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/add.out b/tests/expectations/compiler/integers/u32/add.out index 31adcbbcb7..f888f25ed8 100644 --- a/tests/expectations/compiler/integers/u32/add.out +++ b/tests/expectations/compiler/integers/u32/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 60cf7cc2f6c0954f6d932b70b7b4ec8fada9464bdb7a1f532a6c0984c455da0f - unrolled_ast: 60cf7cc2f6c0954f6d932b70b7b4ec8fada9464bdb7a1f532a6c0984c455da0f - ssa_ast: 5753ad4f62bf7fd9eebffa3721360472e9b27f0dbfa315deb11604720a518fa8 - flattened_ast: dc28211bf13d3d7a6c02e4c764104d4f1ad208f04956be71e3fb76243e369ad8 - destructured_ast: 4b4ecc13062584b06b9cbefc5269eba29c12012be4989cbf99ddfca8186f5e61 - inlined_ast: 4b4ecc13062584b06b9cbefc5269eba29c12012be4989cbf99ddfca8186f5e61 - dce_ast: 4b4ecc13062584b06b9cbefc5269eba29c12012be4989cbf99ddfca8186f5e61 + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 245be48b8476457132199c451b7dde47d1d34bb9d0b68ed3ab80affae3092470 + unrolled_ast: 245be48b8476457132199c451b7dde47d1d34bb9d0b68ed3ab80affae3092470 + ssa_ast: 6311e03b71fe5e580cbdef2e8821b2aa237f719f2788999f57bc1157024f7027 + flattened_ast: d36d4b88ccd63be1c8ed18509278147913392a5573f3f07c54936f6dd282defc + destructured_ast: 7691c4f5d44b07df6aec114d2c424a3685f6a97869a88ce6321eaf8a276c5601 + inlined_ast: 7691c4f5d44b07df6aec114d2c424a3685f6a97869a88ce6321eaf8a276c5601 + dce_ast: 7691c4f5d44b07df6aec114d2c424a3685f6a97869a88ce6321eaf8a276c5601 bytecode: 6a79f884436b0bdadcee0ff3dd76a5e3fb16cd5d733f2091cbb17cc680c8b185 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/and.out b/tests/expectations/compiler/integers/u32/and.out index b8adb9b1dc..c31483bdda 100644 --- a/tests/expectations/compiler/integers/u32/and.out +++ b/tests/expectations/compiler/integers/u32/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 8ebd170d84f849b6a82f1d7b75ad08aa776a6e1c25b788b7e6faaf7e1f8a8bcf - unrolled_ast: 8ebd170d84f849b6a82f1d7b75ad08aa776a6e1c25b788b7e6faaf7e1f8a8bcf - ssa_ast: 4551e992cbc9734ddda2e0ef9c177cb48dceea67a66a40b7babc3bb80683faf2 - flattened_ast: 47a10ed816d660fe789b3e7be747c12f9bcdd4bd2c68e587f9638d5034bfd91f - destructured_ast: 8440af20046ccc813a15701afa47773922780e651892ebf16a91379eec1745db - inlined_ast: 8440af20046ccc813a15701afa47773922780e651892ebf16a91379eec1745db - dce_ast: 8440af20046ccc813a15701afa47773922780e651892ebf16a91379eec1745db + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 1e0002b01cee794c3ead4e7e726291c232a6192a578089c0851a69edd0adead0 + unrolled_ast: 1e0002b01cee794c3ead4e7e726291c232a6192a578089c0851a69edd0adead0 + ssa_ast: dc68da87868085ae90924e2c8b77aa8eeb14dbdfa59b7a5f0185e9ee7bf4d2e3 + flattened_ast: 9db484600ca2ab54a3a3a34536e2888876dc1affc54fab9f7b005ee3c6b1b0aa + destructured_ast: ac2c8f9b6c9fecdcc5ad96b1ee20d29afe6b7b2053bb456a61aae2cb4cb11ef8 + inlined_ast: ac2c8f9b6c9fecdcc5ad96b1ee20d29afe6b7b2053bb456a61aae2cb4cb11ef8 + dce_ast: ac2c8f9b6c9fecdcc5ad96b1ee20d29afe6b7b2053bb456a61aae2cb4cb11ef8 bytecode: 8cf2c9baf4dd960c2135a86ac62576bcb4d04c2ba826ff413bdce7f05d230516 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/console_assert.out b/tests/expectations/compiler/integers/u32/console_assert.out index 45013e5b34..11194064c5 100644 --- a/tests/expectations/compiler/integers/u32/console_assert.out +++ b/tests/expectations/compiler/integers/u32/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: fa9b67e2eb8166d32ce0b622a2c1e7ea80541f22e6f5234ca61be0142e604831 - type_checked_symbol_table: ad9fcf90a5650008860618bb83a8f1827a67ba90e6de2fb0e2ab7050123e904f - unrolled_symbol_table: ad9fcf90a5650008860618bb83a8f1827a67ba90e6de2fb0e2ab7050123e904f - initial_ast: 1757010ab489602e4364324e67380f7288984fb2e055662d619c9754c136599b - unrolled_ast: 1757010ab489602e4364324e67380f7288984fb2e055662d619c9754c136599b - ssa_ast: 59892fb35629c4c4485321b01a06648801e0732244f2560e637557884539c39c - flattened_ast: 3fdaef4d6276f94e3019d90b4bb58ad797f0aa307d3f0c527e50774da0a52a54 - destructured_ast: 82344f1d986e86efb08a4e54f781f1e1ace310bb102dbfacb8af8559a1e414f9 - inlined_ast: 82344f1d986e86efb08a4e54f781f1e1ace310bb102dbfacb8af8559a1e414f9 - dce_ast: 82344f1d986e86efb08a4e54f781f1e1ace310bb102dbfacb8af8559a1e414f9 + - initial_symbol_table: 02f5c3f518becf24f88cf61faf5c7e7ad2c67651ddf3c4f8de43b3727938abd4 + type_checked_symbol_table: a1ff920a445d1584358fbe492d670d0ee954c8627ca9e5b623c3c59b710f0697 + unrolled_symbol_table: a1ff920a445d1584358fbe492d670d0ee954c8627ca9e5b623c3c59b710f0697 + initial_ast: 2efbff7ad81fbb17ae1585ae8181fccf6415bdb8145286948e6f6f3c9036890d + unrolled_ast: 2efbff7ad81fbb17ae1585ae8181fccf6415bdb8145286948e6f6f3c9036890d + ssa_ast: 18744de731a83bdb23b859c06384ccd18b61bda64ff7051816d5dbe92a19233a + flattened_ast: 353bf8a38add5188c8abf7e1d5f2f526686cd43abbf2b6c6be9f5de44de41d38 + destructured_ast: acbb4c35c664b6340cacef391e9a8541cd2b22561c0d6da182d97f3b51c07457 + inlined_ast: acbb4c35c664b6340cacef391e9a8541cd2b22561c0d6da182d97f3b51c07457 + dce_ast: acbb4c35c664b6340cacef391e9a8541cd2b22561c0d6da182d97f3b51c07457 bytecode: c05a2b573d0bcf072a9b4cda004f6e3c44b73fba4238919546eb3703cb05c258 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/div.out b/tests/expectations/compiler/integers/u32/div.out index bcb8e15b55..feec1652de 100644 --- a/tests/expectations/compiler/integers/u32/div.out +++ b/tests/expectations/compiler/integers/u32/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: a7a6b872a34d9586ac457eab95a1e3410e110bb00a3deabfcb0aeef1828d5897 - unrolled_ast: a7a6b872a34d9586ac457eab95a1e3410e110bb00a3deabfcb0aeef1828d5897 - ssa_ast: c704cfc6eaf8a9f0e43e3517e0440f6345d452562bf194098b288d06dcafd5f8 - flattened_ast: 492281258c829dfe30395b1b32aecf32dc5174973673cc9f6cfd20ab186586c6 - destructured_ast: 42d996464cb50b87674d883660ed7d6c87ebae66bc478f45284acdc69cd3b6a1 - inlined_ast: 42d996464cb50b87674d883660ed7d6c87ebae66bc478f45284acdc69cd3b6a1 - dce_ast: 42d996464cb50b87674d883660ed7d6c87ebae66bc478f45284acdc69cd3b6a1 + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 8f5c767cfc5d16eeea85c590df96ca13b439bf6ec31a32730093986bb3ef97a7 + unrolled_ast: 8f5c767cfc5d16eeea85c590df96ca13b439bf6ec31a32730093986bb3ef97a7 + ssa_ast: 6529b5e4ba9afe617b27f24c10c028092cc36a6459c4845e9fd8508cbab71bd0 + flattened_ast: 66fa299783a8abe80c87337da7f8d100b83b6b187a10dd87b28c86f4850615e9 + destructured_ast: c9a6be966db9afb066c918abb27d7df70699d1da45f9890757a3cb98d7cc34d0 + inlined_ast: c9a6be966db9afb066c918abb27d7df70699d1da45f9890757a3cb98d7cc34d0 + dce_ast: c9a6be966db9afb066c918abb27d7df70699d1da45f9890757a3cb98d7cc34d0 bytecode: 544b47ba167ef02d93729c64e3bb7f76cd94229385874a8c68b48cdf9f7cf767 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/eq.out b/tests/expectations/compiler/integers/u32/eq.out index 63b19f7304..0150e3cc81 100644 --- a/tests/expectations/compiler/integers/u32/eq.out +++ b/tests/expectations/compiler/integers/u32/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f96a86feb93832210c34579e5d63e518bd29a0f943320fe8c94aab85aeba4849 - type_checked_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - unrolled_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - initial_ast: 7bebc2f0f845d2b403110e88ceabbf11707a3ac37d0ea0b6c56e639a3217a700 - unrolled_ast: 7bebc2f0f845d2b403110e88ceabbf11707a3ac37d0ea0b6c56e639a3217a700 - ssa_ast: 0fd184c7373a73bce5e93c0aec342d7863143defa93af177e3540955572f552e - flattened_ast: 024bb505cd2fbfad08eda6d12ca898d7a1724ee6e8c02aa271178a4fc196063b - destructured_ast: 571acbdb2f71bd98d85d324b4c5f0234704054bac011c0c8edb07cd147d2d80b - inlined_ast: 571acbdb2f71bd98d85d324b4c5f0234704054bac011c0c8edb07cd147d2d80b - dce_ast: 571acbdb2f71bd98d85d324b4c5f0234704054bac011c0c8edb07cd147d2d80b + - initial_symbol_table: de475748bc1840ad7993d80ef7da1a12d8a2050ef9bd614c32678b9ea3f123de + type_checked_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + unrolled_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + initial_ast: cdab5f957b943230f54c926bbbf8ea8d844563979abea269f48f490dd718540d + unrolled_ast: cdab5f957b943230f54c926bbbf8ea8d844563979abea269f48f490dd718540d + ssa_ast: 99548f7cac3a31cf5cd30e07c4c79556dcea3403571197b151ce8e5d412d6fd1 + flattened_ast: 136de440f9dde2538647a3cbe012f0ed7e38ace82cc3a33465032a012d3673d5 + destructured_ast: fe0b469416ab39e44b376c96cf7c7c4eea3abbe0fb27fb1ae9bda3fba61a0e4f + inlined_ast: fe0b469416ab39e44b376c96cf7c7c4eea3abbe0fb27fb1ae9bda3fba61a0e4f + dce_ast: fe0b469416ab39e44b376c96cf7c7c4eea3abbe0fb27fb1ae9bda3fba61a0e4f bytecode: eb74a56b4c761a3050ee4ca8c5ac6f4085675f0ba71514b9c10cc49044251472 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/ge.out b/tests/expectations/compiler/integers/u32/ge.out index ef8ccc0d05..ed8520184c 100644 --- a/tests/expectations/compiler/integers/u32/ge.out +++ b/tests/expectations/compiler/integers/u32/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f96a86feb93832210c34579e5d63e518bd29a0f943320fe8c94aab85aeba4849 - type_checked_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - unrolled_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - initial_ast: d1f1a4d034ac008c7c4c5bbce316867a9827e551d23807db3d5f6b937a6279c7 - unrolled_ast: d1f1a4d034ac008c7c4c5bbce316867a9827e551d23807db3d5f6b937a6279c7 - ssa_ast: 7dccf4d7528073d1aa54852e520d12fed292f51c720ed1fff50e4712d9ffd5b8 - flattened_ast: 2ebf1d956a724d269cb6723b29c72047947d76a7204632a07f34ac9d4d0dc41c - destructured_ast: ab0076c844eca1f96a0d90b6951f0b50cec0a342da6c76af4925537fee874f65 - inlined_ast: ab0076c844eca1f96a0d90b6951f0b50cec0a342da6c76af4925537fee874f65 - dce_ast: ab0076c844eca1f96a0d90b6951f0b50cec0a342da6c76af4925537fee874f65 + - initial_symbol_table: de475748bc1840ad7993d80ef7da1a12d8a2050ef9bd614c32678b9ea3f123de + type_checked_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + unrolled_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + initial_ast: 6f7eab6b0fdcab80fbe3ac583769b0cc9caa550cab34b76a7f5ad11b83b95974 + unrolled_ast: 6f7eab6b0fdcab80fbe3ac583769b0cc9caa550cab34b76a7f5ad11b83b95974 + ssa_ast: 2c65d2b68281659f526686164b6308f082691ce764c9db65aa74fc6f1025b5fa + flattened_ast: 3e8b65f8ec52b0a4f895faf161fb35503aeb37f4970661e07120c4c8ff1947aa + destructured_ast: 27b2544d93fb235178e93b41370e245236d7eecbf6bcb6bc14da60ccdf0098dc + inlined_ast: 27b2544d93fb235178e93b41370e245236d7eecbf6bcb6bc14da60ccdf0098dc + dce_ast: 27b2544d93fb235178e93b41370e245236d7eecbf6bcb6bc14da60ccdf0098dc bytecode: d5c6740e9f4b930180fb52ddc268e35b87ed215c56fe529e98ee015dbfa08b3e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/gt.out b/tests/expectations/compiler/integers/u32/gt.out index 14b74cc1f2..6bd5be7ece 100644 --- a/tests/expectations/compiler/integers/u32/gt.out +++ b/tests/expectations/compiler/integers/u32/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f96a86feb93832210c34579e5d63e518bd29a0f943320fe8c94aab85aeba4849 - type_checked_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - unrolled_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - initial_ast: 1eef699852e204b4833a9c3795b1bee8c28de8ec0f9a8fdaebda8d0f9a4dda53 - unrolled_ast: 1eef699852e204b4833a9c3795b1bee8c28de8ec0f9a8fdaebda8d0f9a4dda53 - ssa_ast: 305f4513019191685099cdd2c4b815d9b8d47084e97ad597e0583e6ea6e2f4ca - flattened_ast: c7d979dba958e4ddb52513a778826bf8e0169ef676bf58d55cb76c6557e78f77 - destructured_ast: 6a6e877433dce7b6194b8694978ec221000cfebf22a72a14a3cb3a3f87294b9b - inlined_ast: 6a6e877433dce7b6194b8694978ec221000cfebf22a72a14a3cb3a3f87294b9b - dce_ast: 6a6e877433dce7b6194b8694978ec221000cfebf22a72a14a3cb3a3f87294b9b + - initial_symbol_table: de475748bc1840ad7993d80ef7da1a12d8a2050ef9bd614c32678b9ea3f123de + type_checked_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + unrolled_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + initial_ast: 77e1d38fd80b57b93a91e900d11ac24b9fa1e6550772c043f0464690e456777f + unrolled_ast: 77e1d38fd80b57b93a91e900d11ac24b9fa1e6550772c043f0464690e456777f + ssa_ast: 29d5f625549be54843593e969bfce562d09b0b652ff532bffdd4c9735b06d075 + flattened_ast: 21cda401c9ea616f864da4d1c3d1fa4053a55f51a7a970a1ece4ae3cdfdff626 + destructured_ast: 297014dacce429df66de6bd27b80e1f1ee119ca4a609ee80c2754d2adcfad7c9 + inlined_ast: 297014dacce429df66de6bd27b80e1f1ee119ca4a609ee80c2754d2adcfad7c9 + dce_ast: 297014dacce429df66de6bd27b80e1f1ee119ca4a609ee80c2754d2adcfad7c9 bytecode: 5b1536cb2d2f274904ed23cabc28dad63d0e22a9bd4d1a5615b88b2c3ea6d7eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/le.out b/tests/expectations/compiler/integers/u32/le.out index da3c333726..5e1cf23908 100644 --- a/tests/expectations/compiler/integers/u32/le.out +++ b/tests/expectations/compiler/integers/u32/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f96a86feb93832210c34579e5d63e518bd29a0f943320fe8c94aab85aeba4849 - type_checked_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - unrolled_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - initial_ast: 76fc13245a58f3b14a54df8f3ccc63265060b01ebc304009681363ea1fba7437 - unrolled_ast: 76fc13245a58f3b14a54df8f3ccc63265060b01ebc304009681363ea1fba7437 - ssa_ast: 6723fef0eb2ddac9dcb7855e6460cf36ef003fc575d4525a9424760fd59bbf86 - flattened_ast: 78ba29523642b7779bc8b94475843766f9b43725e8ea0c4c9ca6b624a934b46e - destructured_ast: c2afcbf61bbabd9be8588e01c1cee3a884bdc8f3f2ca41f152fa1554842f65c8 - inlined_ast: c2afcbf61bbabd9be8588e01c1cee3a884bdc8f3f2ca41f152fa1554842f65c8 - dce_ast: c2afcbf61bbabd9be8588e01c1cee3a884bdc8f3f2ca41f152fa1554842f65c8 + - initial_symbol_table: de475748bc1840ad7993d80ef7da1a12d8a2050ef9bd614c32678b9ea3f123de + type_checked_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + unrolled_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + initial_ast: 4dacb221285be859f37863f11db943855b19c326ca04880639b87e96e752456a + unrolled_ast: 4dacb221285be859f37863f11db943855b19c326ca04880639b87e96e752456a + ssa_ast: 9f32fa1690daaddcb3390b4ae379263f7c6a9ae171c4281e2a550d9faad5ae14 + flattened_ast: 649e77d7467103b1a76338e8d2deecb3d528a76bbd00849277d697a92cf31523 + destructured_ast: 9897c8b16181f66b2b991d603ea12696800077db8b07116002746a9bd27d7f21 + inlined_ast: 9897c8b16181f66b2b991d603ea12696800077db8b07116002746a9bd27d7f21 + dce_ast: 9897c8b16181f66b2b991d603ea12696800077db8b07116002746a9bd27d7f21 bytecode: 76d3ed305f669697432c49a48165440a287bc91eb95c2110f936235259d824ed errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/lt.out b/tests/expectations/compiler/integers/u32/lt.out index 5e1cc5efb4..8666c64504 100644 --- a/tests/expectations/compiler/integers/u32/lt.out +++ b/tests/expectations/compiler/integers/u32/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f96a86feb93832210c34579e5d63e518bd29a0f943320fe8c94aab85aeba4849 - type_checked_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - unrolled_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - initial_ast: 96c54910abc3b4a1649d14c71a56ac8780e10b5b0e822a17ada6f2ce93608214 - unrolled_ast: 96c54910abc3b4a1649d14c71a56ac8780e10b5b0e822a17ada6f2ce93608214 - ssa_ast: d483bb5d9e66113382bbc477ba609f9b0a68a22406711cf6fd0ab3feb20262ae - flattened_ast: cc1951814a52e28826236d5af24d122606ae0a4d565485ea6115017ee74fca66 - destructured_ast: 31347701d73607348fd5a5b14dc9e07574006cfa04a4915137c8eac2f4356a6b - inlined_ast: 31347701d73607348fd5a5b14dc9e07574006cfa04a4915137c8eac2f4356a6b - dce_ast: 31347701d73607348fd5a5b14dc9e07574006cfa04a4915137c8eac2f4356a6b + - initial_symbol_table: de475748bc1840ad7993d80ef7da1a12d8a2050ef9bd614c32678b9ea3f123de + type_checked_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + unrolled_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + initial_ast: d019f362bde7176eac7356293ee67543bb5ad485606957ef0f8941328849b17a + unrolled_ast: d019f362bde7176eac7356293ee67543bb5ad485606957ef0f8941328849b17a + ssa_ast: 76fa8e6cb78fb15e127232e7a7c48ee0602da5d1277ad47a554c24986e3cf860 + flattened_ast: 2282ba3f52b78baf2422adddf5deb2e83d8c3c256e6bcb63a283b61f38ba89bd + destructured_ast: 45e12c029c4bdbd6286a98aeebb717b79968bb1cb83a67f00332fb975e872945 + inlined_ast: 45e12c029c4bdbd6286a98aeebb717b79968bb1cb83a67f00332fb975e872945 + dce_ast: 45e12c029c4bdbd6286a98aeebb717b79968bb1cb83a67f00332fb975e872945 bytecode: 4aac77fed46b036a9aaced7512320c824d26a5a025292fdb91c422b4ef3fadfd errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/max.out b/tests/expectations/compiler/integers/u32/max.out index a8bb0292eb..4738806365 100644 --- a/tests/expectations/compiler/integers/u32/max.out +++ b/tests/expectations/compiler/integers/u32/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 016dda98e11648d724ffa15cb8b60591e702b2a54833412abc6e34a2983caf26 - unrolled_symbol_table: 016dda98e11648d724ffa15cb8b60591e702b2a54833412abc6e34a2983caf26 - initial_ast: f8723d099448783b4a423ed7e24d2592db202e785ba306afc0a09853eee051cc - unrolled_ast: f8723d099448783b4a423ed7e24d2592db202e785ba306afc0a09853eee051cc - ssa_ast: de7e83447abaf3cc39785bd8514f9770c0fc6117414c99870ad1bd2ab08040f8 - flattened_ast: 20308f0db9b334dd939fde68c48c11753c3d3b7058af1bffb1eb8e6ec2f2ead6 - destructured_ast: 3e24e345781d1b2898047d8d0e4e348808d9ccdb19592fdb11dcb99c0df1e867 - inlined_ast: 3e24e345781d1b2898047d8d0e4e348808d9ccdb19592fdb11dcb99c0df1e867 - dce_ast: 8dc9187c1863e0f7ab8e0236f192830af310d0ed8aa03d5e39ef8a3b13a2997c + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: f1295b3e40a1286f9280121b8a3d4308ad9e358bf13c43773aad36373e3689f2 + unrolled_symbol_table: f1295b3e40a1286f9280121b8a3d4308ad9e358bf13c43773aad36373e3689f2 + initial_ast: 8b8d955b49ab96d567137a0970aa44a137659bf6ecddedb3307ce7d94aa5963d + unrolled_ast: 8b8d955b49ab96d567137a0970aa44a137659bf6ecddedb3307ce7d94aa5963d + ssa_ast: 305d51220993e0b6f6d9e672f920b8d25475c58df9a196bc3cf61fe8d40f38de + flattened_ast: 8c5ea634bbb5490e929800cbf97bf7b979793c54d2629c4b1650a05247f066a4 + destructured_ast: d93423c01edb55d0486a41abcea023a8b677e7e7ae951119218980334b507ad3 + inlined_ast: d93423c01edb55d0486a41abcea023a8b677e7e7ae951119218980334b507ad3 + dce_ast: 862c6d133d8ee003cdc1dce6449e746ab2e46a4a7e925c7491f33bb6f0ae5bf7 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/max_fail.out b/tests/expectations/compiler/integers/u32/max_fail.out index d72189abc8..c737c0105a 100644 --- a/tests/expectations/compiler/integers/u32/max_fail.out +++ b/tests/expectations/compiler/integers/u32/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 4294967296 is not a valid `u32`\n --> compiler-test:5:22\n |\n 5 | let a: u32 = 4294967296u32;\n | ^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 4294967296 is not a valid `u32`\n --> compiler-test:5:22\n |\n 5 | let a: u32 = 4294967296u32;\n | ^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u32/min.out b/tests/expectations/compiler/integers/u32/min.out index dfc6bb2248..7223be9261 100644 --- a/tests/expectations/compiler/integers/u32/min.out +++ b/tests/expectations/compiler/integers/u32/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 016dda98e11648d724ffa15cb8b60591e702b2a54833412abc6e34a2983caf26 - unrolled_symbol_table: 016dda98e11648d724ffa15cb8b60591e702b2a54833412abc6e34a2983caf26 - initial_ast: 3e82fd4804b82b8a9e75a25283f79806fb81a54b59af769583a13cedabfa4736 - unrolled_ast: 3e82fd4804b82b8a9e75a25283f79806fb81a54b59af769583a13cedabfa4736 - ssa_ast: 44337036240794027c0e6953e0bb1fd19aa0a5c1fd32fae1d62d9b93eaed58d7 - flattened_ast: ef96a5e5f1b41ecfe3b9e45c7f3d08aeea1f46f28d9acaff5d140f59ee06728a - destructured_ast: 33f0d19b04cc9502a710faeadd68422fdb8cc2287f66aace3406617866c4ed3b - inlined_ast: 33f0d19b04cc9502a710faeadd68422fdb8cc2287f66aace3406617866c4ed3b - dce_ast: 0d193ba2542b79e695a630054aae5f4a65f5ab9364fa8d3e5bb783485c4c0c2e + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: f1295b3e40a1286f9280121b8a3d4308ad9e358bf13c43773aad36373e3689f2 + unrolled_symbol_table: f1295b3e40a1286f9280121b8a3d4308ad9e358bf13c43773aad36373e3689f2 + initial_ast: b7e2cce3c2a03bdf1906d8d02e25b5bd82ed5b40dde62d80d59bc496231a9107 + unrolled_ast: b7e2cce3c2a03bdf1906d8d02e25b5bd82ed5b40dde62d80d59bc496231a9107 + ssa_ast: afd517505d78a63db7aff66b4199bf65451c0e8db4b63cbf826cb6c65fbfbdb9 + flattened_ast: 8ccc626b5815c303e64f1d839cffb269a9259253c68b4e59cb89512d421df873 + destructured_ast: c8d8f600fc8563094b1974dbad302ff32eaf711df37befa6a5ce65e0c9f559c0 + inlined_ast: c8d8f600fc8563094b1974dbad302ff32eaf711df37befa6a5ce65e0c9f559c0 + dce_ast: c52972ede00e5e4c9a05bb401e8b72a8f751b710a379af9fc333c3595d598395 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/min_fail.out b/tests/expectations/compiler/integers/u32/min_fail.out index 7846a98071..60092a6a97 100644 --- a/tests/expectations/compiler/integers/u32/min_fail.out +++ b/tests/expectations/compiler/integers/u32/min_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value -1 is not a valid `u32`\n --> compiler-test:5:22\n |\n 5 | let a: u32 = -1u32;\n | ^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value -1 is not a valid `u32`\n --> compiler-test:5:22\n |\n 5 | let a: u32 = -1u32;\n | ^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u32/mul.out b/tests/expectations/compiler/integers/u32/mul.out index 3e68234273..81ce8a8561 100644 --- a/tests/expectations/compiler/integers/u32/mul.out +++ b/tests/expectations/compiler/integers/u32/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 00b5da4ed3af8a991dd8a68a58762b0b457be3b45624ed62bc8ea46f34e0aa6e - unrolled_ast: 00b5da4ed3af8a991dd8a68a58762b0b457be3b45624ed62bc8ea46f34e0aa6e - ssa_ast: 770e11b02f54888e9f70f23e389a55d3a716e2e8346f686dda6c68f1a4da3a26 - flattened_ast: fc3231c85faad21c112bd545f4f4c2b65a9189273d2e1495a20af4f376a192f6 - destructured_ast: 32d0d12f214d0f4ba5d2b82e854fcbd9fe7b4469bcffda645080db77824259ac - inlined_ast: 32d0d12f214d0f4ba5d2b82e854fcbd9fe7b4469bcffda645080db77824259ac - dce_ast: 32d0d12f214d0f4ba5d2b82e854fcbd9fe7b4469bcffda645080db77824259ac + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 0bbc1065442ce86c8d80cda090c8db8ac82241d0b7345ffdeb3006ff1dbdc296 + unrolled_ast: 0bbc1065442ce86c8d80cda090c8db8ac82241d0b7345ffdeb3006ff1dbdc296 + ssa_ast: 448a207e09aec913ba89adfe848d05853079467a5a81487ea122d752c6ee58a3 + flattened_ast: 2010fb0452efc9b1df73043a5cfed7e327776a996e6565a6dac808bb7a2eb0de + destructured_ast: be77a5f0c6c9b71de502dad3aea1ff602330789b67370c5e2a542f08f8b891ed + inlined_ast: be77a5f0c6c9b71de502dad3aea1ff602330789b67370c5e2a542f08f8b891ed + dce_ast: be77a5f0c6c9b71de502dad3aea1ff602330789b67370c5e2a542f08f8b891ed bytecode: 1dfb6b0bc60a60fdf5e7049346815ffb6fc80d045cb8282510fa518f3337e089 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/ne.out b/tests/expectations/compiler/integers/u32/ne.out index 450331d4a7..1b5d5c3d17 100644 --- a/tests/expectations/compiler/integers/u32/ne.out +++ b/tests/expectations/compiler/integers/u32/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f96a86feb93832210c34579e5d63e518bd29a0f943320fe8c94aab85aeba4849 - type_checked_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - unrolled_symbol_table: 87436319e1f08abb5b7607d136352c799f21b9c18d791aa644721629baf003ea - initial_ast: e24b3d4bf92b0d9589f258091f04a0f3d9a5b51cdab623a772f0252d50ee27e5 - unrolled_ast: e24b3d4bf92b0d9589f258091f04a0f3d9a5b51cdab623a772f0252d50ee27e5 - ssa_ast: 9b1aec1c61ac9d34d996c6d2dc8500a57a6d4b27183f9a6d7b3a74236a74c986 - flattened_ast: 3c544ae2bdbff2c910b9f4bb5e1382b0178495ef6d9f47190824ed5aeb0b976c - destructured_ast: 63e6bd867c32e2950d8139f82f031bbcf36048d53fc215823eb4e161ec17441e - inlined_ast: 63e6bd867c32e2950d8139f82f031bbcf36048d53fc215823eb4e161ec17441e - dce_ast: 63e6bd867c32e2950d8139f82f031bbcf36048d53fc215823eb4e161ec17441e + - initial_symbol_table: de475748bc1840ad7993d80ef7da1a12d8a2050ef9bd614c32678b9ea3f123de + type_checked_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + unrolled_symbol_table: beccbc5e80c6de3eca97a3a6d16b74fe3737f2b8905e07c3e676f8466f9be311 + initial_ast: 939f6d926b799d3711928184cf06c82055aa9e85e5b84188e77b1fab34551aba + unrolled_ast: 939f6d926b799d3711928184cf06c82055aa9e85e5b84188e77b1fab34551aba + ssa_ast: 6af63d0ae4b5bec7d9418d8c1b7030fa89e414575345cf572ecc190415a2e253 + flattened_ast: 2f88f4c7d75c8fb34d1fdad871c27f499790078d9bded21c8fd370239a57e567 + destructured_ast: bd6f9a4e1ff2999e548eeefadf583a2567558e783df90221d4d1b2c91ae5ee30 + inlined_ast: bd6f9a4e1ff2999e548eeefadf583a2567558e783df90221d4d1b2c91ae5ee30 + dce_ast: bd6f9a4e1ff2999e548eeefadf583a2567558e783df90221d4d1b2c91ae5ee30 bytecode: 0fe1011e038cf47ffdbb7e95c4ac2326b985aeeffca177329c145c144fc46639 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/operator_methods.out b/tests/expectations/compiler/integers/u32/operator_methods.out index 9c86d2429b..881be46286 100644 --- a/tests/expectations/compiler/integers/u32/operator_methods.out +++ b/tests/expectations/compiler/integers/u32/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3daa2fe73d892fe3665808268bea1e7821bc738804fe1e39006dc0e1b5c8c4ad - type_checked_symbol_table: 4c88628061999503c6c316ae1ca08b7a3c051927628ed03d054a7e3c32b60846 - unrolled_symbol_table: 4c88628061999503c6c316ae1ca08b7a3c051927628ed03d054a7e3c32b60846 - initial_ast: 92aa36b05dc4d524ae17fbc02d407c28464cf60ff9616bd1c8ccb0146fc38590 - unrolled_ast: 92aa36b05dc4d524ae17fbc02d407c28464cf60ff9616bd1c8ccb0146fc38590 - ssa_ast: 33c8e7b025e6f13561eb096c6d8206099b3e34d9d1ffa3a71abdb2fe25ce18ee - flattened_ast: 3de2296508ea6ff1f08bf6c0993f608200374b92b1eef8633cbb43043ba5bc68 - destructured_ast: fad48920bedb6f4af08e6abf7e06dd04ed7c420a0b18a84dfef9f7cfabf3a1a4 - inlined_ast: fad48920bedb6f4af08e6abf7e06dd04ed7c420a0b18a84dfef9f7cfabf3a1a4 - dce_ast: e1ed253cbd42c453356a2e30e76b2e00cd8a597e6098207f770ffd0622823b11 + - initial_symbol_table: 1fa9860f673b2a12f2ebe20a7d9af1e0f5b29e721cbcf71fe2ba6e18a1e61197 + type_checked_symbol_table: 1e0c4891e0247dcc0050ca84562d0e5ac5ba1fb88b6c47d4a7571c60aa147fb4 + unrolled_symbol_table: 1e0c4891e0247dcc0050ca84562d0e5ac5ba1fb88b6c47d4a7571c60aa147fb4 + initial_ast: de17bd5d5fe1b19a6e91101ed1214b323938405ae71e782526a9e3a4eebd82be + unrolled_ast: de17bd5d5fe1b19a6e91101ed1214b323938405ae71e782526a9e3a4eebd82be + ssa_ast: 7f8ec008bda0eeecf9c9f8b0052b2f36eac0e5efb56d51759f16fd593a12bb86 + flattened_ast: 876591699bdb7113a0341ca19aa56d8e13f08770528b1b7d12a776d0d9fc559c + destructured_ast: 36caf44987c3f3093d20a32d67b8d204fe92fd7906c477d908ed628b24707ad0 + inlined_ast: 36caf44987c3f3093d20a32d67b8d204fe92fd7906c477d908ed628b24707ad0 + dce_ast: 60be7d6f906e4c58529df20179a079a9d8e1d3a1df3a40bd8fa134ca20e15993 bytecode: aec6ee0fcfa292c5e3a4b9165408e9627b7c73b520302dc986293cc36fea4383 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/or.out b/tests/expectations/compiler/integers/u32/or.out index a66c2b8d92..95e5312490 100644 --- a/tests/expectations/compiler/integers/u32/or.out +++ b/tests/expectations/compiler/integers/u32/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: fc702de71f9410a8b765b34f8bb9126c4280e119dfe4052ec111891f98233053 - unrolled_ast: fc702de71f9410a8b765b34f8bb9126c4280e119dfe4052ec111891f98233053 - ssa_ast: e28b7ee53412bad79d38437800af58df38729a696c407486d8e8981c0f01992e - flattened_ast: 5634c2381d4f4f9041dccfecb1d09e59790f55435a0ec750e7380632fb77a523 - destructured_ast: ec8ab7930da2146b8104f3963f80640862291bda3a1fab2aa772e45fb6f8f39e - inlined_ast: ec8ab7930da2146b8104f3963f80640862291bda3a1fab2aa772e45fb6f8f39e - dce_ast: ec8ab7930da2146b8104f3963f80640862291bda3a1fab2aa772e45fb6f8f39e + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: d48b059efda9d8aed36aec80fde7db9ef4f1c7712db271d9427f4c047948a231 + unrolled_ast: d48b059efda9d8aed36aec80fde7db9ef4f1c7712db271d9427f4c047948a231 + ssa_ast: a8001d66cf029346964204b10e8ee33b3f4d0def782666d1082cbc6e219c9c81 + flattened_ast: c0237e7013487605c779d17d6cb9acf55cd0cde4654c1b5d0784283a6ab9ba6b + destructured_ast: c87db65216ee75ff07effeffcaf6d8e65b8bb9e251b59a7626a1ea2c6b340910 + inlined_ast: c87db65216ee75ff07effeffcaf6d8e65b8bb9e251b59a7626a1ea2c6b340910 + dce_ast: c87db65216ee75ff07effeffcaf6d8e65b8bb9e251b59a7626a1ea2c6b340910 bytecode: 53c22439941468b3986c9021bd4d3436c1e3ce8aa1ac79e04de9a0d08b16b3eb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/pow.out b/tests/expectations/compiler/integers/u32/pow.out index c2257f031f..01b9017876 100644 --- a/tests/expectations/compiler/integers/u32/pow.out +++ b/tests/expectations/compiler/integers/u32/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 44cfef0c9826df6286d6ef1b7258eb6bc0d7cb01f42d28d603120e2ca0d3160a - unrolled_ast: 44cfef0c9826df6286d6ef1b7258eb6bc0d7cb01f42d28d603120e2ca0d3160a - ssa_ast: ffaa690373a23de202ff703e87df649f149b228dfee6107c721c1a743f85fd7f - flattened_ast: c77173fb734c19f28dce6d575fb140aa9ed404a46b51b36bfc8ca6a8f4069cab - destructured_ast: eae127e2238ca0c60d732d6150daeaf71e24dd4a0ea0ce220c32270549e23ce5 - inlined_ast: eae127e2238ca0c60d732d6150daeaf71e24dd4a0ea0ce220c32270549e23ce5 - dce_ast: eae127e2238ca0c60d732d6150daeaf71e24dd4a0ea0ce220c32270549e23ce5 + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 676032a77000d55eec53dee3f3b4864cf11d81cbdf70411a178fe74ecfcc18ac + unrolled_ast: 676032a77000d55eec53dee3f3b4864cf11d81cbdf70411a178fe74ecfcc18ac + ssa_ast: 47c6dd09a4a57e2da891d35f929f7ea82416176f0f4bf538dcd42969d47f8379 + flattened_ast: e2fddf6422d8490a5d5f008ae219d437a0368a4cf4f01b9b248282a8141e8dc5 + destructured_ast: c6a1e9b1ec13705f699dff063e290c6f47e3ea14a6433c6b41a94613dc9f7fe9 + inlined_ast: c6a1e9b1ec13705f699dff063e290c6f47e3ea14a6433c6b41a94613dc9f7fe9 + dce_ast: c6a1e9b1ec13705f699dff063e290c6f47e3ea14a6433c6b41a94613dc9f7fe9 bytecode: ea3230d133de200302ce0c5577ef8daca458af44512b67f567dfdeaeb60ef62d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/rem.out b/tests/expectations/compiler/integers/u32/rem.out index 0dedd87dd0..831d30c658 100644 --- a/tests/expectations/compiler/integers/u32/rem.out +++ b/tests/expectations/compiler/integers/u32/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 3de9fee08211d60b2dd14024b13cb9a7bf36d3194b15579e54c504c02f7df2ce - unrolled_ast: 3de9fee08211d60b2dd14024b13cb9a7bf36d3194b15579e54c504c02f7df2ce - ssa_ast: 129601347a87870ff390ff6184abcc76e91d576103a48d0aa128be8104da16a5 - flattened_ast: 8a16f0e3b372b3dba74de07af2b41fb5b395abd4bfa303384232c60bd2ede70f - destructured_ast: df7adbf7dbbcb5cf1d9e34b57e3836727ffd0d67f15165bfce2491e388910358 - inlined_ast: df7adbf7dbbcb5cf1d9e34b57e3836727ffd0d67f15165bfce2491e388910358 - dce_ast: df7adbf7dbbcb5cf1d9e34b57e3836727ffd0d67f15165bfce2491e388910358 + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 7219f0f283639b2cd8d283f02b7dba4fa032838bdce2650a447e2a2e0d48b5b4 + unrolled_ast: 7219f0f283639b2cd8d283f02b7dba4fa032838bdce2650a447e2a2e0d48b5b4 + ssa_ast: 53da413ae491501c08a3e7974cb684decf6785725fe93439e2ced33acbf40abd + flattened_ast: ab09036ff1c196e2d68a4595db943a471d6b069cf2f309e94a1e3b7f87b02660 + destructured_ast: f2f3ea730bd45cb23d134e3bf517c9ee60f0758b4681998fea4dd1aa68198b25 + inlined_ast: f2f3ea730bd45cb23d134e3bf517c9ee60f0758b4681998fea4dd1aa68198b25 + dce_ast: f2f3ea730bd45cb23d134e3bf517c9ee60f0758b4681998fea4dd1aa68198b25 bytecode: 654c6c9d87b686ee8ac83d2561ae0db42eaed0e933d018514d99d2eee2dc350c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/shl.out b/tests/expectations/compiler/integers/u32/shl.out index bb6276cb64..ec39e2e3d9 100644 --- a/tests/expectations/compiler/integers/u32/shl.out +++ b/tests/expectations/compiler/integers/u32/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 7eee34731e452caedeeb4372dd8ca449c09a139c2efda6a19b574f404f813285 - unrolled_ast: 7eee34731e452caedeeb4372dd8ca449c09a139c2efda6a19b574f404f813285 - ssa_ast: 5dba4e1f5e78c9bb9ff5f301d1b717fd5b024751d5a44695834813c68e17926f - flattened_ast: a7d638d1e7039ce1a8ea7730c1019a517e0a6e9fd13e4b2e4d3a79a7ca815778 - destructured_ast: 8ea9ef214bea2fd511517be955acdc94922dfd56b3b8bb3829dbdec7facdf709 - inlined_ast: 8ea9ef214bea2fd511517be955acdc94922dfd56b3b8bb3829dbdec7facdf709 - dce_ast: 8ea9ef214bea2fd511517be955acdc94922dfd56b3b8bb3829dbdec7facdf709 + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 6a97c2f12b8b73e5fded7d24d9fe642d9178e69efe866b51a8a054fa7d5cf1b2 + unrolled_ast: 6a97c2f12b8b73e5fded7d24d9fe642d9178e69efe866b51a8a054fa7d5cf1b2 + ssa_ast: 193685af0cfb0126b82ed06357b08f412a751f007f2f19e114a655d1c179e65b + flattened_ast: 5b5dcd2dc91417cd7ca43e5680de6dfd3c5ac6480ea7febd15ea01e9667ad94a + destructured_ast: 09dc43667e0bef6c4662cd8c4306c7e06469e72306d451faff27e7c42dfa84cf + inlined_ast: 09dc43667e0bef6c4662cd8c4306c7e06469e72306d451faff27e7c42dfa84cf + dce_ast: 09dc43667e0bef6c4662cd8c4306c7e06469e72306d451faff27e7c42dfa84cf bytecode: d00fc78598c5002f3dd2576928bd1fb6121f078f9fc5b2b7394ff8338192172d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/shr.out b/tests/expectations/compiler/integers/u32/shr.out index 67ec4a943f..e8a436727d 100644 --- a/tests/expectations/compiler/integers/u32/shr.out +++ b/tests/expectations/compiler/integers/u32/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: ce43924c846c3b2e7050eef240b15b896d065002523015ffcd3b02c8be895e80 - unrolled_ast: ce43924c846c3b2e7050eef240b15b896d065002523015ffcd3b02c8be895e80 - ssa_ast: 916c9bfe6569b51d354af7acd5443e42d2671060437a12d3303376584daec635 - flattened_ast: 83c40a8bbc3a4183ea42b6c99e01faaecc6bd7ea0d6789ee11041075b15faf53 - destructured_ast: 4885879d19de57199854f18bfcf1a6580118e61458599dd786fcbde4276bd84a - inlined_ast: 4885879d19de57199854f18bfcf1a6580118e61458599dd786fcbde4276bd84a - dce_ast: 4885879d19de57199854f18bfcf1a6580118e61458599dd786fcbde4276bd84a + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: be185ef9e808921af5f0216601368c3b56fe6cacaa78030800328ef01b49f88a + unrolled_ast: be185ef9e808921af5f0216601368c3b56fe6cacaa78030800328ef01b49f88a + ssa_ast: dfa3c79e32a3698dc7f3bd608b85c85c01d191da06a529d9271ae570723f1cbb + flattened_ast: d80ede042b2bf7149d842687b165aeaf9a3b0d73da205bc59da48af85e670453 + destructured_ast: fea14903e4c9c12e37389cd01dc5b68b05335ded386667d6ae4820378c18d257 + inlined_ast: fea14903e4c9c12e37389cd01dc5b68b05335ded386667d6ae4820378c18d257 + dce_ast: fea14903e4c9c12e37389cd01dc5b68b05335ded386667d6ae4820378c18d257 bytecode: 80a1a42b727652cf9808ca4800943f424edc0f0b8e43781b9a6686e3ef7801e1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/sub.out b/tests/expectations/compiler/integers/u32/sub.out index a28da34109..72fa20e541 100644 --- a/tests/expectations/compiler/integers/u32/sub.out +++ b/tests/expectations/compiler/integers/u32/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 576a78c958b455aeff4ea8d9b48164b80c48c009db22ce8a96403dd1e350aa72 - type_checked_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - unrolled_symbol_table: 53bf3cc66af5ee76a2bdd3d12b89b6c829935fbe3239d352733c4c81b543d893 - initial_ast: 48527216319de23a87695673ada9af364221290b9c60df6bf783997ef80e7077 - unrolled_ast: 48527216319de23a87695673ada9af364221290b9c60df6bf783997ef80e7077 - ssa_ast: 9c822c2124c8cda5c1db6a18681b35986b946dda0d268d981727ab1ee0eb09cb - flattened_ast: 84aa41f75cc199e61cf5bbe0d63f433a94098b851e514959fd861b24724c24ca - destructured_ast: 1d7f31070d0824161aa41984fc038de23bcef046b5db65b4c797d326efc62f2f - inlined_ast: 1d7f31070d0824161aa41984fc038de23bcef046b5db65b4c797d326efc62f2f - dce_ast: 1d7f31070d0824161aa41984fc038de23bcef046b5db65b4c797d326efc62f2f + - initial_symbol_table: a6ec7dcf73c05c9a5181380d10c333f2ee08c64dbe10eb35414d3b47c3f99d87 + type_checked_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + unrolled_symbol_table: b4e67af2a30af384f2af1bb217d1558a8ae0e64c83ea0501db92e9c3e458b112 + initial_ast: 2311f84d3653fbc4265c84946b2a16a79e6e0011b038789935f3fcbc5fe87cde + unrolled_ast: 2311f84d3653fbc4265c84946b2a16a79e6e0011b038789935f3fcbc5fe87cde + ssa_ast: d3c2a18cfdca6347650a73627aa11f8a00e98c91c13a194c4f2298aedf4d81fb + flattened_ast: dda78fc09d85fd6ea829f85918342167d6024612b1427fef1ba58817c8967a2a + destructured_ast: c628c70d551e8c049e24a9f62b1089f65a80debde784be9aaf6d9ee6aca6ddf0 + inlined_ast: c628c70d551e8c049e24a9f62b1089f65a80debde784be9aaf6d9ee6aca6ddf0 + dce_ast: c628c70d551e8c049e24a9f62b1089f65a80debde784be9aaf6d9ee6aca6ddf0 bytecode: 979ef93cea21ee04681e95a25458674a5c7bbc15e717b104e6dc1b16d5a7111b errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/ternary.out b/tests/expectations/compiler/integers/u32/ternary.out index 8696bdd708..c541906d47 100644 --- a/tests/expectations/compiler/integers/u32/ternary.out +++ b/tests/expectations/compiler/integers/u32/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: fd7bae2aebf363defd5b5d88ce16e19bfef763f258007a11b7228ecd76d19737 - type_checked_symbol_table: 5f710f8161551765e69913e0b6c63f09decf794865bff93296b3de9d21e1b629 - unrolled_symbol_table: 5f710f8161551765e69913e0b6c63f09decf794865bff93296b3de9d21e1b629 - initial_ast: 06db803843cdfbc99a6281cb29008b2f96f30d02c47fd49e3b8a42453d9043fd - unrolled_ast: 06db803843cdfbc99a6281cb29008b2f96f30d02c47fd49e3b8a42453d9043fd - ssa_ast: ffe28f7d03f7fffaa08c37e66dcccb88494964beb8271d92da3d402914f24162 - flattened_ast: 3e3e077d6bb8a80a0a0b3ac6a1d8a496e081dd13b3961f49e13381e88ffe7561 - destructured_ast: 32148297c2178b58e29674b4c4b10a7695abf011011f3c58af406baee478c7a5 - inlined_ast: 32148297c2178b58e29674b4c4b10a7695abf011011f3c58af406baee478c7a5 - dce_ast: 32148297c2178b58e29674b4c4b10a7695abf011011f3c58af406baee478c7a5 + - initial_symbol_table: 69cbbbdd88feb5a38f2de175e714795ca476606fe0eafdf31d0994964f17369e + type_checked_symbol_table: 4a09f3e5d3c84e3ccfa18dc495651ad7fa93d5ec753796cb268313fa01158bff + unrolled_symbol_table: 4a09f3e5d3c84e3ccfa18dc495651ad7fa93d5ec753796cb268313fa01158bff + initial_ast: 82739b94abd3d33943c7c1132537cf45f6a26342f10e876266c2cc5f4db64068 + unrolled_ast: 82739b94abd3d33943c7c1132537cf45f6a26342f10e876266c2cc5f4db64068 + ssa_ast: 46c1d30411a15c8fc0d06eddb097463ef31720a9c790f600119baa8f80df56dd + flattened_ast: fa9abc6b33add4df6f8937af61bd21bcf5a623312b5d24f53419e307c0767975 + destructured_ast: a8440fef3796ff36480333e27688aa52811ea580d5d78e0a41b65c5e5e9a1b09 + inlined_ast: a8440fef3796ff36480333e27688aa52811ea580d5d78e0a41b65c5e5e9a1b09 + dce_ast: a8440fef3796ff36480333e27688aa52811ea580d5d78e0a41b65c5e5e9a1b09 bytecode: 0ecd93e68a7f1e72535d2f014714c6b6dbf91f2b0a18df56913798be12ec1515 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u32/xor.out b/tests/expectations/compiler/integers/u32/xor.out index 205ba1eae4..3d5cf8cae2 100644 --- a/tests/expectations/compiler/integers/u32/xor.out +++ b/tests/expectations/compiler/integers/u32/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: a8f617304307f5b014380afdf7f97dc3c78a25f495dabd065f2b7426f19faf3e - type_checked_symbol_table: 3d4c6b83d627fc2ce35dc96882597c2392c69e25bd356d1718b02809e7d54d9c - unrolled_symbol_table: 3d4c6b83d627fc2ce35dc96882597c2392c69e25bd356d1718b02809e7d54d9c - initial_ast: 6ebb6a119609a3f49b901e7fcfcab0cc4d6f6c8c5882f38309e4b771dd85a39e - unrolled_ast: 6ebb6a119609a3f49b901e7fcfcab0cc4d6f6c8c5882f38309e4b771dd85a39e - ssa_ast: ce349ea9de691e8e38124851a4d82325312ba0332869fececef1c7faebb16221 - flattened_ast: 875f362f7fa8f4763298a93d4ea6115623377baca25b4e3292de573e29195fef - destructured_ast: 8924d67f7070de98897ee966ec2971938699d70ca4e7f4a4f1369c7f4f106aea - inlined_ast: 8924d67f7070de98897ee966ec2971938699d70ca4e7f4a4f1369c7f4f106aea - dce_ast: 8924d67f7070de98897ee966ec2971938699d70ca4e7f4a4f1369c7f4f106aea + - initial_symbol_table: 209d2647cadb7a991df716b8d5a45f9294360c97e72c950ea345e2abc3bd79ae + type_checked_symbol_table: ee08168b1fe4add062c66b230283579a5a4fa0bf6886160872b1096cc1516608 + unrolled_symbol_table: ee08168b1fe4add062c66b230283579a5a4fa0bf6886160872b1096cc1516608 + initial_ast: e36364a6b8a97696946f13d7fa2cceb171f45d06f4342c28f6540027b52a6f63 + unrolled_ast: e36364a6b8a97696946f13d7fa2cceb171f45d06f4342c28f6540027b52a6f63 + ssa_ast: e84a3c88b406ef6f5d1a809bda7d8d76fadcdafea67477942d90887266f0bf44 + flattened_ast: d6d41f3e0b72cb224d93055f2e448ec58485bedd12027b12a5f78ebb8236aecf + destructured_ast: 49fd5fb21c431dec65c9b1f58b645bbd18d32720941930ff7012283243e92231 + inlined_ast: 49fd5fb21c431dec65c9b1f58b645bbd18d32720941930ff7012283243e92231 + dce_ast: 49fd5fb21c431dec65c9b1f58b645bbd18d32720941930ff7012283243e92231 bytecode: f870b2c0a3ffc0935a53b790fbd562a4e160982136e597762e14d3a11f7572c7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/add.out b/tests/expectations/compiler/integers/u64/add.out index d1af8898a8..d166485793 100644 --- a/tests/expectations/compiler/integers/u64/add.out +++ b/tests/expectations/compiler/integers/u64/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 87371928ecb08d77d1d820fb6ef3c7ca71a7ba84c7980e37e6a4478344e1fcfd - unrolled_ast: 87371928ecb08d77d1d820fb6ef3c7ca71a7ba84c7980e37e6a4478344e1fcfd - ssa_ast: 64a578bb11460e88eeaa8fce9cdc47105f680740928f65174585b04924d0c308 - flattened_ast: 243cec8eea348ef8205a4ce8279745301bb5ec11e3c8cd22178973b059b1b502 - destructured_ast: d691316de8b1d6a07e7ef4e8ebc7cede170cb88812ba5c59bfc8be0695db7e47 - inlined_ast: d691316de8b1d6a07e7ef4e8ebc7cede170cb88812ba5c59bfc8be0695db7e47 - dce_ast: d691316de8b1d6a07e7ef4e8ebc7cede170cb88812ba5c59bfc8be0695db7e47 + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: 1aa88c605bf5eed35ee3c9b62599c743997628a3b6617d063a977e84d6818f5c + unrolled_ast: 1aa88c605bf5eed35ee3c9b62599c743997628a3b6617d063a977e84d6818f5c + ssa_ast: 7f5bf513854a4639aa7303f6feb0d7bf809152197403a3b65b35856a97831140 + flattened_ast: 139c295101f3470e91aee31f045e79c684187c76d46583467c97f7d2be4d76b8 + destructured_ast: 2bc266b8d6ee053c0f3410446f077f5183c7f14a4458a04f3a80d1d4f35a486b + inlined_ast: 2bc266b8d6ee053c0f3410446f077f5183c7f14a4458a04f3a80d1d4f35a486b + dce_ast: 2bc266b8d6ee053c0f3410446f077f5183c7f14a4458a04f3a80d1d4f35a486b bytecode: 3be0f7452f3ef5033f9f4c29362b7f16ca7d059569909b356d23fe3dbd898486 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/and.out b/tests/expectations/compiler/integers/u64/and.out index d667b035db..3dbef8c75f 100644 --- a/tests/expectations/compiler/integers/u64/and.out +++ b/tests/expectations/compiler/integers/u64/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 3b76cc33388729c0ab23b3857a6abeb7c0dd1ebc3d04e7ea8c7331cb2dd42118 - unrolled_ast: 3b76cc33388729c0ab23b3857a6abeb7c0dd1ebc3d04e7ea8c7331cb2dd42118 - ssa_ast: a9fc6743c8252087855a55a7b60b0d9deecb6dd94e234426fc9540dcae23e34f - flattened_ast: 11eb426530a27d74b1de34af6e97db89384b9c5ecf2d054a7d67de947a93b979 - destructured_ast: edb086ea649419c1b91d014a306e7645ceb61a995a27f3fae8563842998e1154 - inlined_ast: edb086ea649419c1b91d014a306e7645ceb61a995a27f3fae8563842998e1154 - dce_ast: edb086ea649419c1b91d014a306e7645ceb61a995a27f3fae8563842998e1154 + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: ee8413fc2c1b1f56508e2a1d05e8c23ebfdb2da5ed532260f59a4b1001fc2bcc + unrolled_ast: ee8413fc2c1b1f56508e2a1d05e8c23ebfdb2da5ed532260f59a4b1001fc2bcc + ssa_ast: fdd40a6579dd0f34f3a3f4f5bbfdef443bc92d0da690ef72f2a2467d719a6285 + flattened_ast: 26f6ac8ae80e0331cc52b31f2968ae312cc5c1e5a6f5e4c4485dca1bcef2b57b + destructured_ast: c4c0d5122896ba7b3c1f7d89338f63a0b75bb68652c7e52d65e73fd254e22382 + inlined_ast: c4c0d5122896ba7b3c1f7d89338f63a0b75bb68652c7e52d65e73fd254e22382 + dce_ast: c4c0d5122896ba7b3c1f7d89338f63a0b75bb68652c7e52d65e73fd254e22382 bytecode: af4239d923d8c22f7bbdfdf8643c85648b25ba62b82819217a6c50924208d529 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/console_assert.out b/tests/expectations/compiler/integers/u64/console_assert.out index ece1b48b9b..37f869ae42 100644 --- a/tests/expectations/compiler/integers/u64/console_assert.out +++ b/tests/expectations/compiler/integers/u64/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4b64805cca9061d30dc91415363d8b9d3189aa75ac4513ec3dc48d3f99ae85b8 - type_checked_symbol_table: ff776508cf1bfab2cbae0391e909c18fd3033f247e3ef60e1aa480de60f5298c - unrolled_symbol_table: ff776508cf1bfab2cbae0391e909c18fd3033f247e3ef60e1aa480de60f5298c - initial_ast: c3ef7228d371b8951253fb7ad879330b15e15f83bd86e11f44efe989b35e7673 - unrolled_ast: c3ef7228d371b8951253fb7ad879330b15e15f83bd86e11f44efe989b35e7673 - ssa_ast: db96560f13e06e0bc222f31d3c059a599f6643ac1566110c0205e76e3fe5b9c8 - flattened_ast: f7e8f4feb029bfecdbe983aa60e30bb8f346aeb5cf6f0b2db9d07abae9f7496e - destructured_ast: b4451ac527a79f5a4a6fc2e5cf674468c6288dee5c5d74a5c99d11e5c592ebf9 - inlined_ast: b4451ac527a79f5a4a6fc2e5cf674468c6288dee5c5d74a5c99d11e5c592ebf9 - dce_ast: b4451ac527a79f5a4a6fc2e5cf674468c6288dee5c5d74a5c99d11e5c592ebf9 + - initial_symbol_table: 003490a19678147b1ca2b2c6945480d5699d4f95c8ce750bc266610810a2f1a6 + type_checked_symbol_table: f621a55cf921b3cf0dce112ece1f4a3d2eda4c5697b4e3dd1e195dbd498e6dd5 + unrolled_symbol_table: f621a55cf921b3cf0dce112ece1f4a3d2eda4c5697b4e3dd1e195dbd498e6dd5 + initial_ast: 8945d529e6e6b36fb6e1acfa45650ec17f5fd008cd871f2ce32acab06b518c43 + unrolled_ast: 8945d529e6e6b36fb6e1acfa45650ec17f5fd008cd871f2ce32acab06b518c43 + ssa_ast: 862a369a7e963b7ec550ae12bd4e2025d66a804fbcb5fe62da9326f64592109a + flattened_ast: 80a8436dde11267278f2e9443f5871984ae79a8072e1e1a96fd6b8e4eaa5aa73 + destructured_ast: 37085be941a358752d2ef6b3d5f47031b661be693bd681e7c3623d44547ec62a + inlined_ast: 37085be941a358752d2ef6b3d5f47031b661be693bd681e7c3623d44547ec62a + dce_ast: 37085be941a358752d2ef6b3d5f47031b661be693bd681e7c3623d44547ec62a bytecode: 0ee1282c31147bd35917b56ca5e0b6ed9ae7178f4a8e0681cb788bfe2803d2e5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/div.out b/tests/expectations/compiler/integers/u64/div.out index 5ae1c91516..18cbfde800 100644 --- a/tests/expectations/compiler/integers/u64/div.out +++ b/tests/expectations/compiler/integers/u64/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 375a60ae73977563629e9b3dc1246ec43ef37b66fe6663a2c6f2a521d1950420 - unrolled_ast: 375a60ae73977563629e9b3dc1246ec43ef37b66fe6663a2c6f2a521d1950420 - ssa_ast: a196e4eaa009f5cc477736e1902293d1aa9301dde19ac66ddf351941cb2f61fc - flattened_ast: d7cbe43fc0f38544bfc55258c637559f09aa3b46a5403ba7bd0c95771d2fbbda - destructured_ast: 3937706563b214338ffdfeb142959a8f00c9bcd6feaa2e555db8417064ab6dc5 - inlined_ast: 3937706563b214338ffdfeb142959a8f00c9bcd6feaa2e555db8417064ab6dc5 - dce_ast: 3937706563b214338ffdfeb142959a8f00c9bcd6feaa2e555db8417064ab6dc5 + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: 9f6f733b0c67a27a9ea868cf760b1518c07a118eeff04fd3495631d1ee051764 + unrolled_ast: 9f6f733b0c67a27a9ea868cf760b1518c07a118eeff04fd3495631d1ee051764 + ssa_ast: 017fb2a7d327cd0f6b6244d97012dff870475d516b263c3ac7e453b72ed645d6 + flattened_ast: c22790e9c34b5902a13f2bb68a8f9f9022fbc7988953af8e0ec85207eadf466d + destructured_ast: d978db4d8ee12a2c519ce27d8f6c3d796f5b1ee081caa266ff63198171378d06 + inlined_ast: d978db4d8ee12a2c519ce27d8f6c3d796f5b1ee081caa266ff63198171378d06 + dce_ast: d978db4d8ee12a2c519ce27d8f6c3d796f5b1ee081caa266ff63198171378d06 bytecode: 2a4e7edc50312cff13755a1480eadc016a474629e3655a4d8b878a85001b75c3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/eq.out b/tests/expectations/compiler/integers/u64/eq.out index a094a547e4..3e720a1e15 100644 --- a/tests/expectations/compiler/integers/u64/eq.out +++ b/tests/expectations/compiler/integers/u64/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c653b0ee3ff81fe7667bf7fcc7d7c60ca1a0bc1341882524ab7566e7d88b1281 - type_checked_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - unrolled_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - initial_ast: abb4e4b86de9e9a22078ae4e98b7a571d084ec7c1482fad870dceabaf0664b8b - unrolled_ast: abb4e4b86de9e9a22078ae4e98b7a571d084ec7c1482fad870dceabaf0664b8b - ssa_ast: faa3d8ebf5504996fc3e630adb8800aa94ec7b973ecd4f80edbb7e1404c95939 - flattened_ast: e238d415d2a2cdc91c9c7dd0763b705e540b0ced5e7ca902005d35830a43cf05 - destructured_ast: a54739d0d79dcabd43c333f67dffaaa712aa1b3898b01b0d5d3034eaa977e310 - inlined_ast: a54739d0d79dcabd43c333f67dffaaa712aa1b3898b01b0d5d3034eaa977e310 - dce_ast: a54739d0d79dcabd43c333f67dffaaa712aa1b3898b01b0d5d3034eaa977e310 + - initial_symbol_table: 9c6cdd3405ed919f2d705557a8acbe02607b8e13d4528b63f734e80af398be0a + type_checked_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + unrolled_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + initial_ast: a454279bbc6d9c819e9376428fb8ef5983541f87baeef44b3a0c6d44cd9e3e4e + unrolled_ast: a454279bbc6d9c819e9376428fb8ef5983541f87baeef44b3a0c6d44cd9e3e4e + ssa_ast: 2a6c050f19bb996c0ec24deadd72ac58eb4a269f38b5673655b8a8f104efdb85 + flattened_ast: adbfcbea65e0cbf4c1b6728c90ff0588d0b155260087f2fa4e36818e70dec89d + destructured_ast: 9c71507619dce9081319de4ca0e8b439a1dc983c99d766dd3ce0313c23292351 + inlined_ast: 9c71507619dce9081319de4ca0e8b439a1dc983c99d766dd3ce0313c23292351 + dce_ast: 9c71507619dce9081319de4ca0e8b439a1dc983c99d766dd3ce0313c23292351 bytecode: c3b043c14b4d869eddba1a5c38b463704b8fdc7a7b6dbfb8b54dbc4ba66e706f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/ge.out b/tests/expectations/compiler/integers/u64/ge.out index 64e4ca6ab2..fd36c86937 100644 --- a/tests/expectations/compiler/integers/u64/ge.out +++ b/tests/expectations/compiler/integers/u64/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c653b0ee3ff81fe7667bf7fcc7d7c60ca1a0bc1341882524ab7566e7d88b1281 - type_checked_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - unrolled_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - initial_ast: f27508e9a50b9ce7bbcedf47513637702a8d82120885868901fcb4fbdccb7dee - unrolled_ast: f27508e9a50b9ce7bbcedf47513637702a8d82120885868901fcb4fbdccb7dee - ssa_ast: 18a102d6648f3bf2946ac9eb2ab61c8b6434334911f5283baceddb51c43e44b2 - flattened_ast: 4f592fed1ab280010277c21c3e339173d25426bc9c5ab1bc84bf1dc680625178 - destructured_ast: c12c20fd7ef055dc2624247b7230240b1b12d7e9518c939a8c57d801f5605434 - inlined_ast: c12c20fd7ef055dc2624247b7230240b1b12d7e9518c939a8c57d801f5605434 - dce_ast: c12c20fd7ef055dc2624247b7230240b1b12d7e9518c939a8c57d801f5605434 + - initial_symbol_table: 9c6cdd3405ed919f2d705557a8acbe02607b8e13d4528b63f734e80af398be0a + type_checked_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + unrolled_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + initial_ast: 632666bb9d9e75d982e2429268d2e26bcc168c7e77a56508f106687ae1131e36 + unrolled_ast: 632666bb9d9e75d982e2429268d2e26bcc168c7e77a56508f106687ae1131e36 + ssa_ast: 8bb65d49b9111e74c8f1f02351d314ce65975dc863c0dbc797e2ab380d097479 + flattened_ast: cece7d4cbb11ed4097b7fc221655fa9642f994814f9e51d6c4f0d0a1455314c0 + destructured_ast: 5561f4abae0430da67354939d9ef5f26668d5236fe9b2212392bdff6156b3842 + inlined_ast: 5561f4abae0430da67354939d9ef5f26668d5236fe9b2212392bdff6156b3842 + dce_ast: 5561f4abae0430da67354939d9ef5f26668d5236fe9b2212392bdff6156b3842 bytecode: b2e3005d49e16c6431a7731d180ba407dbf3c26564e1015a3e803681959a6e7c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/gt.out b/tests/expectations/compiler/integers/u64/gt.out index 23dcb88d0c..7b74e6ca77 100644 --- a/tests/expectations/compiler/integers/u64/gt.out +++ b/tests/expectations/compiler/integers/u64/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c653b0ee3ff81fe7667bf7fcc7d7c60ca1a0bc1341882524ab7566e7d88b1281 - type_checked_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - unrolled_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - initial_ast: 3cb8652a2440a7447a099e3621207745b773b59e767b2a47d42c66c9a01caac3 - unrolled_ast: 3cb8652a2440a7447a099e3621207745b773b59e767b2a47d42c66c9a01caac3 - ssa_ast: 60a4b4b064cc81f77a53aa6560c58f04c98363457a15c857dd84b94125caf990 - flattened_ast: 914b3672de1b49c0ab81ca98cd1a4eb7e76632fc8296dff18a1c7ab3b76644e1 - destructured_ast: aac3e0a4038512ab6cd516b1dba79e1a6d759976f50fe2f571e5cdf005b6e10b - inlined_ast: aac3e0a4038512ab6cd516b1dba79e1a6d759976f50fe2f571e5cdf005b6e10b - dce_ast: aac3e0a4038512ab6cd516b1dba79e1a6d759976f50fe2f571e5cdf005b6e10b + - initial_symbol_table: 9c6cdd3405ed919f2d705557a8acbe02607b8e13d4528b63f734e80af398be0a + type_checked_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + unrolled_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + initial_ast: a2e5a85e419613abd290d3ce3cb7ffddf2f5b1170540a46d70ae54165f02cba9 + unrolled_ast: a2e5a85e419613abd290d3ce3cb7ffddf2f5b1170540a46d70ae54165f02cba9 + ssa_ast: df724e08266e0a565ffafc315b7b6beefbce20986314de78729094038049ad73 + flattened_ast: a990abee3f9fd6ab77b7f8201822a3fd544cf79c6dacf17d5043abb77c19554c + destructured_ast: 1a3ca602afa526f481fc4430c7eac0f8ecaf1bf3bf06b711e8b8badb943c0a9d + inlined_ast: 1a3ca602afa526f481fc4430c7eac0f8ecaf1bf3bf06b711e8b8badb943c0a9d + dce_ast: 1a3ca602afa526f481fc4430c7eac0f8ecaf1bf3bf06b711e8b8badb943c0a9d bytecode: 1e385f77b2a0d6c95fc6747906e33664cce2d0a97477de15da923d515c2747b7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/le.out b/tests/expectations/compiler/integers/u64/le.out index b7f81eb129..05f4d36ab1 100644 --- a/tests/expectations/compiler/integers/u64/le.out +++ b/tests/expectations/compiler/integers/u64/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c653b0ee3ff81fe7667bf7fcc7d7c60ca1a0bc1341882524ab7566e7d88b1281 - type_checked_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - unrolled_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - initial_ast: ad0c64df5ac223da5687ae654516639b88f56a90a95837b36813dcccffa543c0 - unrolled_ast: ad0c64df5ac223da5687ae654516639b88f56a90a95837b36813dcccffa543c0 - ssa_ast: c531b53eea554f00e5f0ff531f2d12ad96cced91d72fa59a80372a2bfa776d15 - flattened_ast: ca0b3416132fe5470d6cdbd57b267f2f50a50aa6e433b79cb7c24d57f7c74d9d - destructured_ast: 2561be33a390b8a6df3207912b2b39ce1edbf3ec425e501e11cdd596b26ca919 - inlined_ast: 2561be33a390b8a6df3207912b2b39ce1edbf3ec425e501e11cdd596b26ca919 - dce_ast: 2561be33a390b8a6df3207912b2b39ce1edbf3ec425e501e11cdd596b26ca919 + - initial_symbol_table: 9c6cdd3405ed919f2d705557a8acbe02607b8e13d4528b63f734e80af398be0a + type_checked_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + unrolled_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + initial_ast: 826ed624983006abded4ae8eb5aa4ed2954cc78bf2f962bb04ac49cf67813cf5 + unrolled_ast: 826ed624983006abded4ae8eb5aa4ed2954cc78bf2f962bb04ac49cf67813cf5 + ssa_ast: 2f557003a97c58edb88f25b3e5354ad217db01b2b8f153bb410db55be40db88f + flattened_ast: 4e313a564a5f426c9fe9e3d5b62776b65da101892f49f680f90b180026777d7a + destructured_ast: 5e83b8854f038a3f9894ceb6cb511f925906b2330514261477ba9b7a3940a91d + inlined_ast: 5e83b8854f038a3f9894ceb6cb511f925906b2330514261477ba9b7a3940a91d + dce_ast: 5e83b8854f038a3f9894ceb6cb511f925906b2330514261477ba9b7a3940a91d bytecode: 8236ef7329613c24727637bdb29f45feb3ad59e82ed99249b8f5098b82922859 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/lt.out b/tests/expectations/compiler/integers/u64/lt.out index 5a089be9cb..5c67a7dcdf 100644 --- a/tests/expectations/compiler/integers/u64/lt.out +++ b/tests/expectations/compiler/integers/u64/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c653b0ee3ff81fe7667bf7fcc7d7c60ca1a0bc1341882524ab7566e7d88b1281 - type_checked_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - unrolled_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - initial_ast: 4c95faf46ed0390f4a533cba5cbe22b489a274700be52e1b71facc9c6cb33cef - unrolled_ast: 4c95faf46ed0390f4a533cba5cbe22b489a274700be52e1b71facc9c6cb33cef - ssa_ast: d7fe7973678e9c73ddd7e2b6be881c6e76072c7bd4110d32f47fcdd41f7c1f7e - flattened_ast: fbe821585324a6d8209c62f53f2d9ba65b873200eacab94a8059f2c24265ce3c - destructured_ast: 73a14029b1371fb629fee0664009ff031156f61b55412b19dc20799189e642c5 - inlined_ast: 73a14029b1371fb629fee0664009ff031156f61b55412b19dc20799189e642c5 - dce_ast: 73a14029b1371fb629fee0664009ff031156f61b55412b19dc20799189e642c5 + - initial_symbol_table: 9c6cdd3405ed919f2d705557a8acbe02607b8e13d4528b63f734e80af398be0a + type_checked_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + unrolled_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + initial_ast: bb4d1ee0cf7de0a5a9faef4d634c3aa786a9d836c275d375e8c1ed5cbe8dc2a3 + unrolled_ast: bb4d1ee0cf7de0a5a9faef4d634c3aa786a9d836c275d375e8c1ed5cbe8dc2a3 + ssa_ast: 5d5b340f80444755660d2593ae611cdb36d40649e23e7cb931cf8d1b4c230728 + flattened_ast: e01023b8caffb11cea35cfa429c6d295a5537d4387d05aeff1ba340e4727c952 + destructured_ast: 1f4cfe2b85e56acebd64d56bcde03aee94edf810e3b1e61d6653ca57ae100561 + inlined_ast: 1f4cfe2b85e56acebd64d56bcde03aee94edf810e3b1e61d6653ca57ae100561 + dce_ast: 1f4cfe2b85e56acebd64d56bcde03aee94edf810e3b1e61d6653ca57ae100561 bytecode: b436a196b7beab8b7a51791cc458801a2cd9498aeced74c07b81a7f1cc77e183 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/max.out b/tests/expectations/compiler/integers/u64/max.out index 93af8c742a..176b3a635a 100644 --- a/tests/expectations/compiler/integers/u64/max.out +++ b/tests/expectations/compiler/integers/u64/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: ccc187db838d3403e392b6dc47f24b52cd5e27acb6b0b9a6965b8b7df93e83f7 - unrolled_symbol_table: ccc187db838d3403e392b6dc47f24b52cd5e27acb6b0b9a6965b8b7df93e83f7 - initial_ast: 2970532e88b79207820bc2d5cfe12a0667850ed2852f4099b1533ea4ba24c6b6 - unrolled_ast: 2970532e88b79207820bc2d5cfe12a0667850ed2852f4099b1533ea4ba24c6b6 - ssa_ast: fffe7940469c36ee4516d4e9ad0a62e3cf7e2574958b1a1e3cb07a3f46fd0ddf - flattened_ast: 52469ed321bef115e54476be4ef9ad533596fa2c5f110503bae26b87e240172d - destructured_ast: 02c240a487bca2849e025e18b087a145b0fe868ea9f7eba5dcef9ab3662c97dc - inlined_ast: 02c240a487bca2849e025e18b087a145b0fe868ea9f7eba5dcef9ab3662c97dc - dce_ast: 0304d0b38db216390302492a2c510e0f700263cceecb02267b7f02c02f18a118 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 84a11395224a53d007241515954c5413573415ced20d928e73ec245502616015 + unrolled_symbol_table: 84a11395224a53d007241515954c5413573415ced20d928e73ec245502616015 + initial_ast: 1e6f48111c0b56b512db5f8276078608c5fbdd15451427a7a8d659e9e37bc77c + unrolled_ast: 1e6f48111c0b56b512db5f8276078608c5fbdd15451427a7a8d659e9e37bc77c + ssa_ast: c9195c298dc4fd7ac8d2533f002d889d656447155bda5eb45e6583100c9e78a1 + flattened_ast: cd32603b6511f51c37a801f80d55fe43d118d764733ada03060235ae9fd5e672 + destructured_ast: 48b7d4d50e03b9d34f8ae3404ff50d2237bdb658aba6334991510e73901dd519 + inlined_ast: 48b7d4d50e03b9d34f8ae3404ff50d2237bdb658aba6334991510e73901dd519 + dce_ast: 27dbc749eae92d4ee7b86ad8ac8e6df936fcded9a9d2481cdf16be912bceb177 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/max_fail.out b/tests/expectations/compiler/integers/u64/max_fail.out index 04b442aa04..8dd4d931ec 100644 --- a/tests/expectations/compiler/integers/u64/max_fail.out +++ b/tests/expectations/compiler/integers/u64/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 18446744073709551616 is not a valid `u64`\n --> compiler-test:5:22\n |\n 5 | let a: u64 = 18446744073709551616u64;\n | ^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 18446744073709551616 is not a valid `u64`\n --> compiler-test:5:22\n |\n 5 | let a: u64 = 18446744073709551616u64;\n | ^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u64/min.out b/tests/expectations/compiler/integers/u64/min.out index f693a593f0..2ba91c61c9 100644 --- a/tests/expectations/compiler/integers/u64/min.out +++ b/tests/expectations/compiler/integers/u64/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: ccc187db838d3403e392b6dc47f24b52cd5e27acb6b0b9a6965b8b7df93e83f7 - unrolled_symbol_table: ccc187db838d3403e392b6dc47f24b52cd5e27acb6b0b9a6965b8b7df93e83f7 - initial_ast: 9abec6c3d2d9dc467f596b1ba450eb98be65c5bf7ee486938faebf047d268aa5 - unrolled_ast: 9abec6c3d2d9dc467f596b1ba450eb98be65c5bf7ee486938faebf047d268aa5 - ssa_ast: 642c867be586aa4308a1c5b3e6751f1e5afbc03b0d299de71d1725c47320c80b - flattened_ast: b3f5de46cb63a667f7d138185a502a1acfbbe53cbef7b3e41d0fa3d4f2534a3a - destructured_ast: fa4ee890d9ec0f14474479dcf2550bd810bc4a0fa92191b4de585c6653ea61e9 - inlined_ast: fa4ee890d9ec0f14474479dcf2550bd810bc4a0fa92191b4de585c6653ea61e9 - dce_ast: 0d193ba2542b79e695a630054aae5f4a65f5ab9364fa8d3e5bb783485c4c0c2e + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 84a11395224a53d007241515954c5413573415ced20d928e73ec245502616015 + unrolled_symbol_table: 84a11395224a53d007241515954c5413573415ced20d928e73ec245502616015 + initial_ast: 36c72cf646d4908e4195216e53630f6c3be8be75553918e3146fc80dc99c9e0d + unrolled_ast: 36c72cf646d4908e4195216e53630f6c3be8be75553918e3146fc80dc99c9e0d + ssa_ast: dec64451f331455bcd738b7bfa5654ad6492d06f9c8ec05c6b614bd7e1c09a70 + flattened_ast: aab1948efdb2e045e4acc45b24ea0ac8168c25acc2c81ddd6542141588847142 + destructured_ast: 8b587b910564097fb45511bd866e699709ebd0726923ffc35edb47c1a228452d + inlined_ast: 8b587b910564097fb45511bd866e699709ebd0726923ffc35edb47c1a228452d + dce_ast: c52972ede00e5e4c9a05bb401e8b72a8f751b710a379af9fc333c3595d598395 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/min_fail.out b/tests/expectations/compiler/integers/u64/min_fail.out index 3426306592..fb95e00e45 100644 --- a/tests/expectations/compiler/integers/u64/min_fail.out +++ b/tests/expectations/compiler/integers/u64/min_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value -1 is not a valid `u64`\n --> compiler-test:5:22\n |\n 5 | let a: u64 = -1u64;\n | ^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value -1 is not a valid `u64`\n --> compiler-test:5:22\n |\n 5 | let a: u64 = -1u64;\n | ^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u64/mul.out b/tests/expectations/compiler/integers/u64/mul.out index 5aa9f35ab4..062f74bc0b 100644 --- a/tests/expectations/compiler/integers/u64/mul.out +++ b/tests/expectations/compiler/integers/u64/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: d8624408909fd8b9c42d7385962d6444ea8ab7c41f19cd941206a222c91b6eca - unrolled_ast: d8624408909fd8b9c42d7385962d6444ea8ab7c41f19cd941206a222c91b6eca - ssa_ast: 09638f4a122c82a1c88edfe46fb4bd1f63199d01541db570a93ccd31bd9d7d15 - flattened_ast: 52e72b81ba8d5fb83677010cecc50e5db14329012d4e1fab17dcd23818cdf2b8 - destructured_ast: c7350cf84d84cc9919c63537449fb39db9d8cf3f075025d38748a6681d06ec9f - inlined_ast: c7350cf84d84cc9919c63537449fb39db9d8cf3f075025d38748a6681d06ec9f - dce_ast: c7350cf84d84cc9919c63537449fb39db9d8cf3f075025d38748a6681d06ec9f + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: cf3935aae28726f1f7ddbc92cee5f1e8a7cb5a808f57bc72f06b3c816cec751e + unrolled_ast: cf3935aae28726f1f7ddbc92cee5f1e8a7cb5a808f57bc72f06b3c816cec751e + ssa_ast: 01ac65b157d5a755fbe71ecf2808a727c5248901ebb9be3ab48d895cc80e60af + flattened_ast: 5910d04bee9bc09493464df21a690bd4697e18ba0f23e65d696804748efa662a + destructured_ast: 107fec33b4f0d15ac560fb74fca21c7f3a955570a80d17da1b71f03fac1124df + inlined_ast: 107fec33b4f0d15ac560fb74fca21c7f3a955570a80d17da1b71f03fac1124df + dce_ast: 107fec33b4f0d15ac560fb74fca21c7f3a955570a80d17da1b71f03fac1124df bytecode: 78f1462dd03f403c4a6d09ee9fe96c4a38f860069190d718a34416b68b9b5643 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/ne.out b/tests/expectations/compiler/integers/u64/ne.out index 1722163fc4..29a6df5937 100644 --- a/tests/expectations/compiler/integers/u64/ne.out +++ b/tests/expectations/compiler/integers/u64/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c653b0ee3ff81fe7667bf7fcc7d7c60ca1a0bc1341882524ab7566e7d88b1281 - type_checked_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - unrolled_symbol_table: 4549f3ea5b3851f878546dc99e83068797deef6cc426fd0e4473e8d4a9a08f51 - initial_ast: 98046affc5db027c704688139e61904ef5997c51e9632378f78a15846692d1d0 - unrolled_ast: 98046affc5db027c704688139e61904ef5997c51e9632378f78a15846692d1d0 - ssa_ast: 70010817ca79a8d7dc5b683543b13a15341eab00baad0443e4203dddda849f8a - flattened_ast: c9488b34fc7925cb0b99bf08badc8571d02b85103137dd647137f861bdeb5542 - destructured_ast: 74d53f70c8b9fe372e137803c5d68b75c7237e9c95f0705bce1bd340bea6e518 - inlined_ast: 74d53f70c8b9fe372e137803c5d68b75c7237e9c95f0705bce1bd340bea6e518 - dce_ast: 74d53f70c8b9fe372e137803c5d68b75c7237e9c95f0705bce1bd340bea6e518 + - initial_symbol_table: 9c6cdd3405ed919f2d705557a8acbe02607b8e13d4528b63f734e80af398be0a + type_checked_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + unrolled_symbol_table: aeca5974112a2e2fc56a7062b499459d8f674239efa03343f0ee7fb994724b08 + initial_ast: 5bab4163c68a1f5887d07305a0bb9743bc87021fd41e466619a862cf5fdcf44a + unrolled_ast: 5bab4163c68a1f5887d07305a0bb9743bc87021fd41e466619a862cf5fdcf44a + ssa_ast: 0f1ef4e9b609ea8ab470665805008284235c5fbfc6ffc42a3b60176bf9781dc7 + flattened_ast: fb2915f9af14a7df03d0342316051caaa2713b5ca8922e67ae9e5523901e2edc + destructured_ast: 07430425dccec739997765606909ee752392b4c473b7da03bcd2911c7cd647b7 + inlined_ast: 07430425dccec739997765606909ee752392b4c473b7da03bcd2911c7cd647b7 + dce_ast: 07430425dccec739997765606909ee752392b4c473b7da03bcd2911c7cd647b7 bytecode: a7b99df5f7c17bca61aa58a32b7dd8b1b4281302d545b2a88b8c162d1c52dbaa errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/operator_methods.out b/tests/expectations/compiler/integers/u64/operator_methods.out index 7a8d202510..7762f97c7c 100644 --- a/tests/expectations/compiler/integers/u64/operator_methods.out +++ b/tests/expectations/compiler/integers/u64/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4b64805cca9061d30dc91415363d8b9d3189aa75ac4513ec3dc48d3f99ae85b8 - type_checked_symbol_table: e592b07ba4d3327f664e085599f935c3101f6a58c4bd55591b0ed1e33c7b70a3 - unrolled_symbol_table: e592b07ba4d3327f664e085599f935c3101f6a58c4bd55591b0ed1e33c7b70a3 - initial_ast: fdd6d4b24630cec56d37f0e2f6a2a90f65826e3f2293b7a5f327f4d81782d049 - unrolled_ast: fdd6d4b24630cec56d37f0e2f6a2a90f65826e3f2293b7a5f327f4d81782d049 - ssa_ast: ccf2d58a09919ba3cc305f1269c5a0996a75c5bd983ca897648d0818580eaea8 - flattened_ast: 5508e63d0e5c0f40fea601c6710adc577afcf708f36b3b5bf2b2e1adf3c71d58 - destructured_ast: 9a1d18354bfa654b4bae54f935627bf04b13abf916fc7e4421a4429a014b4087 - inlined_ast: 9a1d18354bfa654b4bae54f935627bf04b13abf916fc7e4421a4429a014b4087 - dce_ast: 1c68287c84a972fef3537db27a154a6f7be177bda789553a3cc8fe7af55e86db + - initial_symbol_table: 003490a19678147b1ca2b2c6945480d5699d4f95c8ce750bc266610810a2f1a6 + type_checked_symbol_table: 6347cf2eea46dcc2b6721660dfdc65c40e025c6b609a8235e8edad26c67404dd + unrolled_symbol_table: 6347cf2eea46dcc2b6721660dfdc65c40e025c6b609a8235e8edad26c67404dd + initial_ast: 743e310d4ad1a394afa1c7ea6724772396956a119c4f95a5a87ec1c12d8b9618 + unrolled_ast: 743e310d4ad1a394afa1c7ea6724772396956a119c4f95a5a87ec1c12d8b9618 + ssa_ast: a9b76e6cd40643f2f42587828a19daab098c675017597bf58f0c60f55f0d4cd6 + flattened_ast: 8c2355b560077450dc4838d32ed6ea4bd8eaa18cc649ba8b02411adc10492e0c + destructured_ast: f10676129b99b58b168001d7f76ae6bd843dc69ac4048edd19098856756d7e6d + inlined_ast: f10676129b99b58b168001d7f76ae6bd843dc69ac4048edd19098856756d7e6d + dce_ast: 9c9b38d2b4b5083e43727bc28b22e0e67ad1a1261dd3b2c58773c9ce3c40227f bytecode: e5ef9b94c6b2173341804d3fd3d6ca89bcdebc38ed22f7444bb4e140d86f5f00 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/or.out b/tests/expectations/compiler/integers/u64/or.out index 318c1021f3..0bfba4215c 100644 --- a/tests/expectations/compiler/integers/u64/or.out +++ b/tests/expectations/compiler/integers/u64/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 41051ad1000f4568c77a32b4331cb01fb8ec056fb747dcbf422e0a068f7995aa - unrolled_ast: 41051ad1000f4568c77a32b4331cb01fb8ec056fb747dcbf422e0a068f7995aa - ssa_ast: da1ffdc1d754fdee4df03580756802fb8d40ff14ca68951c860a1f4518cb2236 - flattened_ast: 99ff5c765a435ddc9ee0b12ae87fd636925dc910ae6459e0a999a2653d94318c - destructured_ast: 508110f1aae297a549ab471da891a10621b1fb500c2b5b93adcd797bb337ccfb - inlined_ast: 508110f1aae297a549ab471da891a10621b1fb500c2b5b93adcd797bb337ccfb - dce_ast: 508110f1aae297a549ab471da891a10621b1fb500c2b5b93adcd797bb337ccfb + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: 8ce0559b69855019d20a0815879613fd189c72724d605bcc3162f1988e0a804f + unrolled_ast: 8ce0559b69855019d20a0815879613fd189c72724d605bcc3162f1988e0a804f + ssa_ast: fb826baf59a41e20a7bce001602851154e1ec02c402f7800420fbd9e0fc90db5 + flattened_ast: 876217e6028ab0c0c3dd625fe452ff57bffe7d14d452b73f6e7ea1fed1cb0613 + destructured_ast: ef4d48a81eb6549844f2e3564790c6e496b19927b6b035bc962fc2632a43150a + inlined_ast: ef4d48a81eb6549844f2e3564790c6e496b19927b6b035bc962fc2632a43150a + dce_ast: ef4d48a81eb6549844f2e3564790c6e496b19927b6b035bc962fc2632a43150a bytecode: 13cd83b19f077edfeb58e50adbd76dac67742cef9747f50f4bc4bdb3ec3dc38e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/pow.out b/tests/expectations/compiler/integers/u64/pow.out index 2df52beb18..e29d9a2ed8 100644 --- a/tests/expectations/compiler/integers/u64/pow.out +++ b/tests/expectations/compiler/integers/u64/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 8f8b5c49915a2bd294bb6b87573130c1040c05cfc63ef79866fdc11b1ecac1af - unrolled_ast: 8f8b5c49915a2bd294bb6b87573130c1040c05cfc63ef79866fdc11b1ecac1af - ssa_ast: 827fbd6aec054ce1fe775edd98d42ff2eb58deda4256f559561931eb3b3b5c3a - flattened_ast: 3d453e3c9be9e19cee269d69a51e25ee2be21f93e4cd87ff4c11bb0bcde3d857 - destructured_ast: 4c0ccb6747c587c7398fc602bfc475dcbc30f3079cb1d5b9e05cd3acf7111c80 - inlined_ast: 4c0ccb6747c587c7398fc602bfc475dcbc30f3079cb1d5b9e05cd3acf7111c80 - dce_ast: 4c0ccb6747c587c7398fc602bfc475dcbc30f3079cb1d5b9e05cd3acf7111c80 + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: a66c3c68dba2022329ac420935636e46a07afaab184c412fac92433bf174c04f + unrolled_ast: a66c3c68dba2022329ac420935636e46a07afaab184c412fac92433bf174c04f + ssa_ast: cf173a4c1a56467889dd526e944d3279e24c90f40b597f90763a1f7bcb8d3d29 + flattened_ast: 63fef927b5300960364b18d4b5722f7928d13426c9615e7b084e75368ed6429e + destructured_ast: 55ffbc6c26563cdfeff1b7d1ee1f21fa610bbbc0fa52552b6e1d2bda6fdec557 + inlined_ast: 55ffbc6c26563cdfeff1b7d1ee1f21fa610bbbc0fa52552b6e1d2bda6fdec557 + dce_ast: 55ffbc6c26563cdfeff1b7d1ee1f21fa610bbbc0fa52552b6e1d2bda6fdec557 bytecode: d1aaa5f10bdbc9f2ea3144d83472c27d7f6d6ae31fa26196f320db6d7a9b0403 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/rem.out b/tests/expectations/compiler/integers/u64/rem.out index 7d64ea86f5..ce365a5d7f 100644 --- a/tests/expectations/compiler/integers/u64/rem.out +++ b/tests/expectations/compiler/integers/u64/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 176035ddabdcf9c6d01e46dca68c0a359e759ea80129174de840aabc92fc2648 - unrolled_ast: 176035ddabdcf9c6d01e46dca68c0a359e759ea80129174de840aabc92fc2648 - ssa_ast: a554c512dc38589405dc471a472fed97973506bccb2bf00ade5c956388c88c7a - flattened_ast: 1da5ad81640cf7b1e9dd11b8a495ac138ba9c6d3e9a64948306f4b749a0508a6 - destructured_ast: d140a9a50d0984459fae5578f5815289c87adced250f4e1051d7a64287c7ae26 - inlined_ast: d140a9a50d0984459fae5578f5815289c87adced250f4e1051d7a64287c7ae26 - dce_ast: d140a9a50d0984459fae5578f5815289c87adced250f4e1051d7a64287c7ae26 + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: 232145f6e64321c57344fd734c952c776f333e069fef163988bbed268e47b1ef + unrolled_ast: 232145f6e64321c57344fd734c952c776f333e069fef163988bbed268e47b1ef + ssa_ast: c041a6d62f7ea5878ad8cb5fa1dabbbd52898483959b78b044eed4001446ca85 + flattened_ast: 7526f7e27e8203b5ec8c7a630bad516192fa1c358573790e017fd2e2bd5ae92f + destructured_ast: 399d79988d20adf7822fbacd8958add7e541ba1ef06ed831edc05c35c4dd8c82 + inlined_ast: 399d79988d20adf7822fbacd8958add7e541ba1ef06ed831edc05c35c4dd8c82 + dce_ast: 399d79988d20adf7822fbacd8958add7e541ba1ef06ed831edc05c35c4dd8c82 bytecode: a9ad512e3741c4b6ee79435b76680783f4e9de0ae6720f3945fe03a8a4fd4d0d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/shl.out b/tests/expectations/compiler/integers/u64/shl.out index a25522ecc2..45c87081d5 100644 --- a/tests/expectations/compiler/integers/u64/shl.out +++ b/tests/expectations/compiler/integers/u64/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: aae9baea5695d0b40faa76a3db0ff866ccd94367b611ee6df9219b50f487a766 - unrolled_ast: aae9baea5695d0b40faa76a3db0ff866ccd94367b611ee6df9219b50f487a766 - ssa_ast: bc186661401167dd83e340d42341aa6cf750747a3e569c473ffcf83bf886d3d8 - flattened_ast: 00d351e32ac28aa99900a4abadf0721f62813319cc71efaf5f263a04a33da78e - destructured_ast: 66b7aaa3deb7b120fdbaaaeaf8f3dd25d0f850df5a96bd9dce732369531de7ac - inlined_ast: 66b7aaa3deb7b120fdbaaaeaf8f3dd25d0f850df5a96bd9dce732369531de7ac - dce_ast: 66b7aaa3deb7b120fdbaaaeaf8f3dd25d0f850df5a96bd9dce732369531de7ac + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: 0823e900db229226bff735f32c345c717fede5187e3503285584ff95b9cdf463 + unrolled_ast: 0823e900db229226bff735f32c345c717fede5187e3503285584ff95b9cdf463 + ssa_ast: 9a4621b19dcb72a9543166c255a940da6b50f4bdbb50acbf9be1703f1c60b0f0 + flattened_ast: 036848a414e55e984cb910e7af444db2814879db8822d62f110e93d04f9d738e + destructured_ast: 281cc1f263d3e4ae74e8ff6f0bd4c78f09a1da7352addef92604bfe5c42efa69 + inlined_ast: 281cc1f263d3e4ae74e8ff6f0bd4c78f09a1da7352addef92604bfe5c42efa69 + dce_ast: 281cc1f263d3e4ae74e8ff6f0bd4c78f09a1da7352addef92604bfe5c42efa69 bytecode: d36e49eaf108a44b1c40155c909914f866e5ce509034c1ae630d22a37c702cba errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/shr.out b/tests/expectations/compiler/integers/u64/shr.out index 1401b732f3..4efac8a245 100644 --- a/tests/expectations/compiler/integers/u64/shr.out +++ b/tests/expectations/compiler/integers/u64/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: 88bc81938d1befebd80f6c8fc28a946ed92cef71d1d48a6370226c6d3dd6e275 - unrolled_ast: 88bc81938d1befebd80f6c8fc28a946ed92cef71d1d48a6370226c6d3dd6e275 - ssa_ast: 11481a96bc1623f5be441e8a0d219f6f89e0a1ede3f89e39f743b4d6cc22bc43 - flattened_ast: 17040ec9d7fef4cc30b14d871e40b8ff4833525796a618373e91c8f9094a0a04 - destructured_ast: 04009d9c740bf563faddc2d568b9a9b192c5f3b081d3a9356c1d4284513c8616 - inlined_ast: 04009d9c740bf563faddc2d568b9a9b192c5f3b081d3a9356c1d4284513c8616 - dce_ast: 04009d9c740bf563faddc2d568b9a9b192c5f3b081d3a9356c1d4284513c8616 + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: 87a2fda3d14b883bbfb23c02f75d534ff6a76df4fc082043177635eb5739d2b1 + unrolled_ast: 87a2fda3d14b883bbfb23c02f75d534ff6a76df4fc082043177635eb5739d2b1 + ssa_ast: d56cfe2a0960cf40c3d39bbe667fe53548b6be0dcb51a44f58e4a700611ffd7c + flattened_ast: 8c6ee15fd081cc5436663b6e3ca3739be8166148ac20115bfea30047170fc246 + destructured_ast: d2603d93752f2cea1467454f329a7b63add8327440acb5adf2a815dc048d3135 + inlined_ast: d2603d93752f2cea1467454f329a7b63add8327440acb5adf2a815dc048d3135 + dce_ast: d2603d93752f2cea1467454f329a7b63add8327440acb5adf2a815dc048d3135 bytecode: 58d1ec6467fbeb13930300da8864ec299ab548393dd572f1ccd4878a599873e2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/sub.out b/tests/expectations/compiler/integers/u64/sub.out index 22d1f0ae3e..052de95ee7 100644 --- a/tests/expectations/compiler/integers/u64/sub.out +++ b/tests/expectations/compiler/integers/u64/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 47380a34e178f98d53a47400092091c0bd7c608506d2ffdf05dfea84b9766c60 - type_checked_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - unrolled_symbol_table: e876f544cf02497e80ba94d33688b76059d4286be78fd8f2cf3a6f0ac92ecb2e - initial_ast: eccff74c4eb6edd90df56cb6b43ad3dd0ce9251927192b81b8989149d923e422 - unrolled_ast: eccff74c4eb6edd90df56cb6b43ad3dd0ce9251927192b81b8989149d923e422 - ssa_ast: 4e71ee5df204bd17808ec72d793022643ac94281ec012237d9bbf90655cfe65a - flattened_ast: 207114d05686043a6ac9a7ea6661dc4829824b9970ca22ead6417cd585d742fe - destructured_ast: ec9e79558311b01747bc5d08cd8a465f66528b03c4b58bf84e9d4a30c48fe83a - inlined_ast: ec9e79558311b01747bc5d08cd8a465f66528b03c4b58bf84e9d4a30c48fe83a - dce_ast: ec9e79558311b01747bc5d08cd8a465f66528b03c4b58bf84e9d4a30c48fe83a + - initial_symbol_table: b97a22b05414293318cc5e850eb9091d26c540cf2eba6b5e3391d35848caba09 + type_checked_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + unrolled_symbol_table: 8a9f1c3bbf519651ab1364af722af5fafd7142ad773338bdbf9bd79a1587b542 + initial_ast: e4da1213aa0f8315f613559d409ac820f37a7ef995a22470b22a584bb4998008 + unrolled_ast: e4da1213aa0f8315f613559d409ac820f37a7ef995a22470b22a584bb4998008 + ssa_ast: da399dfc0c9775d22b97bc7837b701093594ceaa9cdbd1a41018e7436f7be9c6 + flattened_ast: 0d3daa69ec6283bd4efb92c38fd0ed1c8187ecd68e809b0f1163fc5bc95e9d43 + destructured_ast: b1e89a58c4f8463506cacc65c12baf1b0eca2014228370a3f81a78d8ca0ed069 + inlined_ast: b1e89a58c4f8463506cacc65c12baf1b0eca2014228370a3f81a78d8ca0ed069 + dce_ast: b1e89a58c4f8463506cacc65c12baf1b0eca2014228370a3f81a78d8ca0ed069 bytecode: fe0eb66afc2af38ebf4fd30fa4eb0af15eda6be5302fb2a7470485b4536d06e4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/ternary.out b/tests/expectations/compiler/integers/u64/ternary.out index 81146e7c37..5bcd7bc0cf 100644 --- a/tests/expectations/compiler/integers/u64/ternary.out +++ b/tests/expectations/compiler/integers/u64/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 40dc791d6e8527464cbf83f4093ae0611896c43fe8fbf589ca391b03ce5a72f1 - type_checked_symbol_table: 339a5d171f484f5e6d987ea305104d1a3857367cee17023c6a5c5e48aaea0768 - unrolled_symbol_table: 339a5d171f484f5e6d987ea305104d1a3857367cee17023c6a5c5e48aaea0768 - initial_ast: 84945f3226e5b876a66ca6cd15bc545e3de7e66a26400a2eaaf2cbc0d31905c4 - unrolled_ast: 84945f3226e5b876a66ca6cd15bc545e3de7e66a26400a2eaaf2cbc0d31905c4 - ssa_ast: 8f4485d1fef3e2a50fb2683e6124457d965c1ed6c26416f427a7067482b1896e - flattened_ast: 21d8e33d177304ffdbae9431c495bd99570740949d12eacad2bc230d96c7ba81 - destructured_ast: 506e36646efb81ecba6a030139a5db768001f572354987140b81f62efa08d4aa - inlined_ast: 506e36646efb81ecba6a030139a5db768001f572354987140b81f62efa08d4aa - dce_ast: 506e36646efb81ecba6a030139a5db768001f572354987140b81f62efa08d4aa + - initial_symbol_table: c997a7e1a18c1748e10b3bfe8fa18c1361f9730a88f9e9893d3d1f0d691c39d9 + type_checked_symbol_table: d346ad2eaf0eeb03b5dafa0d7e62187894081f0bef141cf4df2b903ab300496f + unrolled_symbol_table: d346ad2eaf0eeb03b5dafa0d7e62187894081f0bef141cf4df2b903ab300496f + initial_ast: 1ba216560eebd726807c864b57d0b178214602d0e103b7d1ae5d324c2e9ca8a2 + unrolled_ast: 1ba216560eebd726807c864b57d0b178214602d0e103b7d1ae5d324c2e9ca8a2 + ssa_ast: 6a18249db61fd7f089a16fe6156f448e1494002478224a5e0bc013ff59b8ee90 + flattened_ast: 7a51d521739c8e7e06043c44f47ba527144ea2d1bd7af82a39f8d5e894e3644a + destructured_ast: 44c1535a33b78bbdc221dc0020b3365072a5b8024bd37211dbcdeb8c41532eeb + inlined_ast: 44c1535a33b78bbdc221dc0020b3365072a5b8024bd37211dbcdeb8c41532eeb + dce_ast: 44c1535a33b78bbdc221dc0020b3365072a5b8024bd37211dbcdeb8c41532eeb bytecode: 4e191316243b5f6fff5d47a3177f3ec59d72ce76b7f3d6d3aa0da615f67a4087 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u64/xor.out b/tests/expectations/compiler/integers/u64/xor.out index 8e25eec328..37f277d4e5 100644 --- a/tests/expectations/compiler/integers/u64/xor.out +++ b/tests/expectations/compiler/integers/u64/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 693a784aade96b320edcee895568a7a96fe91a3e689a65b2dbc015ea94f313a3 - type_checked_symbol_table: e3f625b5fbfe2b68adcb6527e955c444f07312d05013f3d46716168e9dccbec0 - unrolled_symbol_table: e3f625b5fbfe2b68adcb6527e955c444f07312d05013f3d46716168e9dccbec0 - initial_ast: 63ea85c5fd4843aad247463b3c1c3c37f76448d8120802aa5d5f06645da27f05 - unrolled_ast: 63ea85c5fd4843aad247463b3c1c3c37f76448d8120802aa5d5f06645da27f05 - ssa_ast: c5185885a2b87882640acc198747f4ed5179d559fdc4bcabb20c68cea47c8874 - flattened_ast: 80a20c492748e8355177216e04bbc88e84f56ccf158faaa64712ee2f11379d2a - destructured_ast: 13c5e348bc25c187148a4062437bd245e86ad9515e1617e66574a21342cbb44c - inlined_ast: 13c5e348bc25c187148a4062437bd245e86ad9515e1617e66574a21342cbb44c - dce_ast: 13c5e348bc25c187148a4062437bd245e86ad9515e1617e66574a21342cbb44c + - initial_symbol_table: 770bc40b59183699f90a4e96da39714c9f3c057a9bcc554bdc83914bffc576ea + type_checked_symbol_table: d321dcb0dd1e2d2df001068f9741c6bcd183ff9ccb51e004e791c3ea768c259a + unrolled_symbol_table: d321dcb0dd1e2d2df001068f9741c6bcd183ff9ccb51e004e791c3ea768c259a + initial_ast: 22882b4413f2d645527a761dd44bb0063cee68913599cd80ecaf1a3f1ecb96fe + unrolled_ast: 22882b4413f2d645527a761dd44bb0063cee68913599cd80ecaf1a3f1ecb96fe + ssa_ast: 5c56ce0a9de59f94ad91c9a13d87791e7141388d70ba715fb406c592752042c4 + flattened_ast: 9f71c7db4ea4a464681628be4730e94ffdfd5e771340a9fc90a1e0d3e1770b4b + destructured_ast: f6780b37413c410c7be2bbd7e622806c87ee24230e3bcf764c826693ec93398b + inlined_ast: f6780b37413c410c7be2bbd7e622806c87ee24230e3bcf764c826693ec93398b + dce_ast: f6780b37413c410c7be2bbd7e622806c87ee24230e3bcf764c826693ec93398b bytecode: cf0a59e484f688e214a001360e2b18445ca6764fbd6c05f133ff317504b3fb3c errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/add.out b/tests/expectations/compiler/integers/u8/add.out index 9bdd3f59e7..1a4b0a5849 100644 --- a/tests/expectations/compiler/integers/u8/add.out +++ b/tests/expectations/compiler/integers/u8/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 3a3f2aa81b9adbe14e63ca15e7e8d84ccade9b53868c09187655067d9f56e473 - unrolled_ast: 3a3f2aa81b9adbe14e63ca15e7e8d84ccade9b53868c09187655067d9f56e473 - ssa_ast: 923b73c6798d845676be45e091370911217bb27b3dd9a005e18b0a67a1a6e201 - flattened_ast: cb768477f7ebdef33e0eb29ef8ef845b25fc697bf795313fda79f7030b16fcb1 - destructured_ast: c0db5ab8db6a229d6084104322416211c93a21249f6251b257188f3b587283b3 - inlined_ast: c0db5ab8db6a229d6084104322416211c93a21249f6251b257188f3b587283b3 - dce_ast: c0db5ab8db6a229d6084104322416211c93a21249f6251b257188f3b587283b3 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 64bd4cc869d7dbe0475b7c43c61bed95519d551c301514122dbb6985d137a3ee + unrolled_ast: 64bd4cc869d7dbe0475b7c43c61bed95519d551c301514122dbb6985d137a3ee + ssa_ast: 2ffabd7de99a190ad16da5a493ddf3f5b611c0339bcf87b1027432b1c9e9bff6 + flattened_ast: c99d77668606e4b6b974aac221c107b7de68ae2093ec26a60b3b3da0cbe3ee98 + destructured_ast: 5c844db63210b2b3846a3c2bb9de4e52d27601c3a2920a04552ae79923a4ebab + inlined_ast: 5c844db63210b2b3846a3c2bb9de4e52d27601c3a2920a04552ae79923a4ebab + dce_ast: 5c844db63210b2b3846a3c2bb9de4e52d27601c3a2920a04552ae79923a4ebab bytecode: 6761db493c28a4d597f857d8d63da1678bb9f4408795168fe82a841acf77f89e errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/and.out b/tests/expectations/compiler/integers/u8/and.out index a83f691f4a..029761a37d 100644 --- a/tests/expectations/compiler/integers/u8/and.out +++ b/tests/expectations/compiler/integers/u8/and.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 42b0080cd840f83ec454d81ec20fb7970f49847bb47bab70ba39c3947d8dd7bc - unrolled_ast: 42b0080cd840f83ec454d81ec20fb7970f49847bb47bab70ba39c3947d8dd7bc - ssa_ast: c3292e9c6fc01a081f03fd037cbb0ab8b9870f2180c086e618d2428d8ee132b3 - flattened_ast: b37faa73265ae8cd434f06638e7627b5c17193658bfdc4daa6fc311124ba3bf9 - destructured_ast: fbcfe6ccb209acc83c26f14b2aab7fe26fa35f91f474e25fb597e3c43d3eea0b - inlined_ast: fbcfe6ccb209acc83c26f14b2aab7fe26fa35f91f474e25fb597e3c43d3eea0b - dce_ast: fbcfe6ccb209acc83c26f14b2aab7fe26fa35f91f474e25fb597e3c43d3eea0b + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: a6f6a0ebde739f49b20cbb2a40ec8ef1e44fe621cd04f1cee9cf858afdc2e840 + unrolled_ast: a6f6a0ebde739f49b20cbb2a40ec8ef1e44fe621cd04f1cee9cf858afdc2e840 + ssa_ast: cd2f584c9dda39bb6260b50514ec8e3b6b71aad107485f4a5691b8870b05dea1 + flattened_ast: 4f68550630a2f3ab0167a470084d269fa937955e6aed0095c502d8e2c0281d0d + destructured_ast: 1d3faeff518dbedb8ba642a5f3344403a7de83b1c34bfb934538a8f106e52784 + inlined_ast: 1d3faeff518dbedb8ba642a5f3344403a7de83b1c34bfb934538a8f106e52784 + dce_ast: 1d3faeff518dbedb8ba642a5f3344403a7de83b1c34bfb934538a8f106e52784 bytecode: 31f37fed73b997c95b00e68369546c32ee9baeac9bc4c08113248156f68f7365 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/console_assert.out b/tests/expectations/compiler/integers/u8/console_assert.out index 702bc593d6..06a505af17 100644 --- a/tests/expectations/compiler/integers/u8/console_assert.out +++ b/tests/expectations/compiler/integers/u8/console_assert.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4a2fd997b06efd34b35ca16431740520808e98b361c1ff4b87d0cb4fbef1f7ca - type_checked_symbol_table: 9a8e788c0cb726e77e7f899f31d897ad56d6dab5d0fde2374da727f9b359a4ea - unrolled_symbol_table: 9a8e788c0cb726e77e7f899f31d897ad56d6dab5d0fde2374da727f9b359a4ea - initial_ast: 760784d11779ec16a4c1ee3c43d2b57b7910416306b311b27a931e56e88727b8 - unrolled_ast: 760784d11779ec16a4c1ee3c43d2b57b7910416306b311b27a931e56e88727b8 - ssa_ast: c087de3b57244492606ae75f2ba045da80d0103568ff779ef390c016a7fde748 - flattened_ast: 0e618ee8a57e239adf51d64c0805be5f2f49cd9ace11a0c6aadab82947406532 - destructured_ast: 607591f286d5494768cab961a38fc5182ee1bec7f751c347acb65c4fd3370559 - inlined_ast: 607591f286d5494768cab961a38fc5182ee1bec7f751c347acb65c4fd3370559 - dce_ast: 607591f286d5494768cab961a38fc5182ee1bec7f751c347acb65c4fd3370559 + - initial_symbol_table: fe29069cb295e73524bfff0efbfe41a086a1ff5420e746dc23314b1deb5550c7 + type_checked_symbol_table: 5d05dd000acd210f3e9fea4fe4dbd1227f2c74c11dd0bb339367fc6ffc6f7c87 + unrolled_symbol_table: 5d05dd000acd210f3e9fea4fe4dbd1227f2c74c11dd0bb339367fc6ffc6f7c87 + initial_ast: ca5e3682f1d7a66dd442b08c89611a830eec1413530dc4f28bab4faaad0ff1be + unrolled_ast: ca5e3682f1d7a66dd442b08c89611a830eec1413530dc4f28bab4faaad0ff1be + ssa_ast: 70c373b2fe8d5addf206cbc04619a5122d5a3645004e881f51ccb90fadafee39 + flattened_ast: fa90177509edbca4aea457b83b62b4f892b6748f5a701bd3cb302bab9d4e36c9 + destructured_ast: 5444cae03b63345a21475b63831dedf4a7430f784f33a4d3d3233daaad2a3a75 + inlined_ast: 5444cae03b63345a21475b63831dedf4a7430f784f33a4d3d3233daaad2a3a75 + dce_ast: 5444cae03b63345a21475b63831dedf4a7430f784f33a4d3d3233daaad2a3a75 bytecode: 4c7bc1ae9e77f79475afa9f5201eefc0fe85291af17b3d746bd69336e42101a1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/div.out b/tests/expectations/compiler/integers/u8/div.out index 28fc3efef5..c49e7fd192 100644 --- a/tests/expectations/compiler/integers/u8/div.out +++ b/tests/expectations/compiler/integers/u8/div.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 095f06231238c2dd1ada5880fda5f262bd222fa552e6e83ff36508b86a55e6b7 - unrolled_ast: 095f06231238c2dd1ada5880fda5f262bd222fa552e6e83ff36508b86a55e6b7 - ssa_ast: 41146677ea9978a93811aca1a274e3f8143aea45db5c969550cdaaa20f559851 - flattened_ast: 73abd5d60db4e4f2659e7dd2b33ef00bbd3339fd49b2796c108c056e882301f6 - destructured_ast: dfc86d274febf5a12f86569670a7909afc1a3486e3f95b1eab41ee75ab62f646 - inlined_ast: dfc86d274febf5a12f86569670a7909afc1a3486e3f95b1eab41ee75ab62f646 - dce_ast: dfc86d274febf5a12f86569670a7909afc1a3486e3f95b1eab41ee75ab62f646 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 1d44c63f74c0d5c0ce2ba0624d15f8a0bfbaa65e67c4f004784363d444816b2c + unrolled_ast: 1d44c63f74c0d5c0ce2ba0624d15f8a0bfbaa65e67c4f004784363d444816b2c + ssa_ast: 1cefaf3cc7d4b89520f25b061302c872ccacb2d6487b6092aa1606adb660d90b + flattened_ast: f0ee4adab8ae0f71e06cc8b0ddcfdbfad888208136f1130ae4e3e99b1f724598 + destructured_ast: 07de64d33033c0909e599e5a18df567414b76ef3f53fa6b0359b38b1d71b341f + inlined_ast: 07de64d33033c0909e599e5a18df567414b76ef3f53fa6b0359b38b1d71b341f + dce_ast: 07de64d33033c0909e599e5a18df567414b76ef3f53fa6b0359b38b1d71b341f bytecode: 632b53e1874bb592e38caef626784ecc81f0b250a76ed6ece1d92b0e3e07f0f3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/eq.out b/tests/expectations/compiler/integers/u8/eq.out index 9390d54db5..c7d76a2564 100644 --- a/tests/expectations/compiler/integers/u8/eq.out +++ b/tests/expectations/compiler/integers/u8/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9f23aeb7907eefa2350ad898c9ad3b351cf6c813782e18b66f58ff287d72f1b - type_checked_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - unrolled_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - initial_ast: 5a36081bba939244f780a496a391da77b61117572c0b010a226dfd49da6b0371 - unrolled_ast: 5a36081bba939244f780a496a391da77b61117572c0b010a226dfd49da6b0371 - ssa_ast: a33c425da40d00bb1ce0eb38a949a2a32813a59002df4138dbb18985bf0975c9 - flattened_ast: 06631e5679a63c5d0e747fde2b6608c927312d56808a9a1420104e8b04979b93 - destructured_ast: bab0a18db37d910b8414879de306f4f704f2fbc42026dbe1f5abd31064b58de7 - inlined_ast: bab0a18db37d910b8414879de306f4f704f2fbc42026dbe1f5abd31064b58de7 - dce_ast: bab0a18db37d910b8414879de306f4f704f2fbc42026dbe1f5abd31064b58de7 + - initial_symbol_table: e473c2047abb71ade74fdb75838d889b9428412f2cdc775c2a8d654b12bf760a + type_checked_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + unrolled_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + initial_ast: 698f91bb067a0e79d0ed681df782055e56b168b0813686404dc10c337e832a16 + unrolled_ast: 698f91bb067a0e79d0ed681df782055e56b168b0813686404dc10c337e832a16 + ssa_ast: 7233e537e31671b827abc834415eeda54e63f3045ffbdcf807253925de7125e1 + flattened_ast: 1a21240fe999ffd473f8ceee04b32fc1a25cffe798bebf7e7f247472924d66cd + destructured_ast: 0b3c8a2216371e6881cc4a9b708c7144d2dbe409f022a2f33172e249e5bc2aef + inlined_ast: 0b3c8a2216371e6881cc4a9b708c7144d2dbe409f022a2f33172e249e5bc2aef + dce_ast: 0b3c8a2216371e6881cc4a9b708c7144d2dbe409f022a2f33172e249e5bc2aef bytecode: a8fabd0b697054bb6de3971dbb93d8a9fb228135f08372b2ae641bb32d670d62 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/ge.out b/tests/expectations/compiler/integers/u8/ge.out index 0c91afe25a..37f155c43f 100644 --- a/tests/expectations/compiler/integers/u8/ge.out +++ b/tests/expectations/compiler/integers/u8/ge.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9f23aeb7907eefa2350ad898c9ad3b351cf6c813782e18b66f58ff287d72f1b - type_checked_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - unrolled_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - initial_ast: bfeffe61cd4f68efc6e31a32c99d49a724b4fc33d0ffbfea7beafc80f1f3566e - unrolled_ast: bfeffe61cd4f68efc6e31a32c99d49a724b4fc33d0ffbfea7beafc80f1f3566e - ssa_ast: edab03ccf94c5d470b736b96281b81d6a3c6c70002df1db88fc1ed1cb47b1226 - flattened_ast: f6ef0be14b9d698edc3919e7b398b1d55ae0adf2a47cc8fa081c971aa81f4d60 - destructured_ast: d21a60b4c7cd195a7029abc8ef104ea45f792dbbef6c554e8cd18120ffcaae45 - inlined_ast: d21a60b4c7cd195a7029abc8ef104ea45f792dbbef6c554e8cd18120ffcaae45 - dce_ast: d21a60b4c7cd195a7029abc8ef104ea45f792dbbef6c554e8cd18120ffcaae45 + - initial_symbol_table: e473c2047abb71ade74fdb75838d889b9428412f2cdc775c2a8d654b12bf760a + type_checked_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + unrolled_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + initial_ast: a53a2bd857e9e3b2927ac8a216f25aaa2dfdc5c8b206f248b0a0a2fde5542c1a + unrolled_ast: a53a2bd857e9e3b2927ac8a216f25aaa2dfdc5c8b206f248b0a0a2fde5542c1a + ssa_ast: 81c68cc352af7716d212e619e67f36f2aa4968684d38d6684fa8d78e9d034328 + flattened_ast: 3ec002fb33e0a6a12448c70f1c783e013368409ce8c4a99b675622628b223cb3 + destructured_ast: bf98c4ac1a51b7bc23d7bb5b8993666fb935ca27d8953d43c7ce69b6fcde5555 + inlined_ast: bf98c4ac1a51b7bc23d7bb5b8993666fb935ca27d8953d43c7ce69b6fcde5555 + dce_ast: bf98c4ac1a51b7bc23d7bb5b8993666fb935ca27d8953d43c7ce69b6fcde5555 bytecode: f6c47583029e6e00d1d236422c0365a273e4da8dad6dabfb1fe6d1081dc03311 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/gt.out b/tests/expectations/compiler/integers/u8/gt.out index bc88cf5a9f..a49881a2e3 100644 --- a/tests/expectations/compiler/integers/u8/gt.out +++ b/tests/expectations/compiler/integers/u8/gt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9f23aeb7907eefa2350ad898c9ad3b351cf6c813782e18b66f58ff287d72f1b - type_checked_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - unrolled_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - initial_ast: 8fb56cbd9424a1dd59e93f5efcc072f0378f3c74385a6d2f2ff582f3b6746038 - unrolled_ast: 8fb56cbd9424a1dd59e93f5efcc072f0378f3c74385a6d2f2ff582f3b6746038 - ssa_ast: 62440c777f06b578d6f4bf0d8b6cb1b34506c5da9fd9063e011b96d1f2e464be - flattened_ast: edb626e24d5915071535d78700da176e1936e1904c35ac9fc2baa0472087ca8d - destructured_ast: efc81635341203dd330640f5206e24418bd6d750705b64e7b2492820cab6cad9 - inlined_ast: efc81635341203dd330640f5206e24418bd6d750705b64e7b2492820cab6cad9 - dce_ast: efc81635341203dd330640f5206e24418bd6d750705b64e7b2492820cab6cad9 + - initial_symbol_table: e473c2047abb71ade74fdb75838d889b9428412f2cdc775c2a8d654b12bf760a + type_checked_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + unrolled_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + initial_ast: 0f50fddc669090adff56fdad64cf7f94021a396d9f225f7834670c96801b47d5 + unrolled_ast: 0f50fddc669090adff56fdad64cf7f94021a396d9f225f7834670c96801b47d5 + ssa_ast: 4eb55f345f9eb162fe348893d0118cabcce5551940ac889c3d0523b63021b869 + flattened_ast: 1c61dd5b2dda92660d792ade9aa00b7e8558f417282a27bd2a3dd2e66e609090 + destructured_ast: b1f3b4eeba819add331a20e70d9a06fe15bccdae015751280e6b1e18f252704b + inlined_ast: b1f3b4eeba819add331a20e70d9a06fe15bccdae015751280e6b1e18f252704b + dce_ast: b1f3b4eeba819add331a20e70d9a06fe15bccdae015751280e6b1e18f252704b bytecode: 33459897e4a71fffb71fcfaead0d591ef888473dd61c5c1b83465aa7f99c7f69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/le.out b/tests/expectations/compiler/integers/u8/le.out index bdb05e6c80..d6702b0560 100644 --- a/tests/expectations/compiler/integers/u8/le.out +++ b/tests/expectations/compiler/integers/u8/le.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9f23aeb7907eefa2350ad898c9ad3b351cf6c813782e18b66f58ff287d72f1b - type_checked_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - unrolled_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - initial_ast: c4dedb7b8b754317fdd54fdd1359459d5f0c40a3d72e4e9ac06b40c24bda34f6 - unrolled_ast: c4dedb7b8b754317fdd54fdd1359459d5f0c40a3d72e4e9ac06b40c24bda34f6 - ssa_ast: f9faa5e17ba95b3a691ad385568df5232c4232e15d56318d42a97effa39d3f08 - flattened_ast: 1cd06638a32be646073d12a5c9e81bc2a28bbecda78a137e35aa2d75c002f80b - destructured_ast: 28da5d1ab95d0a4ff7be15624af4fccb3c2764cee8c24179c35492022fbfbf25 - inlined_ast: 28da5d1ab95d0a4ff7be15624af4fccb3c2764cee8c24179c35492022fbfbf25 - dce_ast: 28da5d1ab95d0a4ff7be15624af4fccb3c2764cee8c24179c35492022fbfbf25 + - initial_symbol_table: e473c2047abb71ade74fdb75838d889b9428412f2cdc775c2a8d654b12bf760a + type_checked_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + unrolled_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + initial_ast: feacd40b96b28667781461d99b85f80f024ff178e32e7a47c13efc5e3186fc38 + unrolled_ast: feacd40b96b28667781461d99b85f80f024ff178e32e7a47c13efc5e3186fc38 + ssa_ast: f3be3592872decee9257cfeb932d4f777a345f478bd4fbfe02d27595b3837196 + flattened_ast: 7761a8468a68417c2e1227e789216ac2dc2349056c3a0df71577d1e4fbcf8fa9 + destructured_ast: f5c84ccd0f24537b124fb206ac679b8479ca8e1b2659d4d3a9012cfb1ccdd1db + inlined_ast: f5c84ccd0f24537b124fb206ac679b8479ca8e1b2659d4d3a9012cfb1ccdd1db + dce_ast: f5c84ccd0f24537b124fb206ac679b8479ca8e1b2659d4d3a9012cfb1ccdd1db bytecode: 4e59b997e48f430720d435483ba0e45c45df4be732f87661f59f7f6b87331c30 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/lt.out b/tests/expectations/compiler/integers/u8/lt.out index 7522d711eb..5eaa119f31 100644 --- a/tests/expectations/compiler/integers/u8/lt.out +++ b/tests/expectations/compiler/integers/u8/lt.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9f23aeb7907eefa2350ad898c9ad3b351cf6c813782e18b66f58ff287d72f1b - type_checked_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - unrolled_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - initial_ast: 3bbd455fe30f8fd650274bed69c86dd126c6f15d8a8bfc0811365267eb200b5e - unrolled_ast: 3bbd455fe30f8fd650274bed69c86dd126c6f15d8a8bfc0811365267eb200b5e - ssa_ast: 95a2507d4c8b07354745c34690b8d2ced00ded0b6756f407263c6351be377d25 - flattened_ast: 91f7a4ad177e06b68397652781909110746ce696731c4255385f84c8d680690d - destructured_ast: 9eae3419f6e63d9246813aaadb149300ece53b12794a904fca2f40bcc0f54511 - inlined_ast: 9eae3419f6e63d9246813aaadb149300ece53b12794a904fca2f40bcc0f54511 - dce_ast: 9eae3419f6e63d9246813aaadb149300ece53b12794a904fca2f40bcc0f54511 + - initial_symbol_table: e473c2047abb71ade74fdb75838d889b9428412f2cdc775c2a8d654b12bf760a + type_checked_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + unrolled_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + initial_ast: b9be9865c94dacfb3d82bf8542d0c106554754661680216da4839fccc2d72f02 + unrolled_ast: b9be9865c94dacfb3d82bf8542d0c106554754661680216da4839fccc2d72f02 + ssa_ast: d950254accdb4641150a608af39120c93ea63cbe86c96a0765a6db15bb39280f + flattened_ast: e8f5f95147dcc7add495a756304b0889a58ea147bcdf1279c67f84b3315b037f + destructured_ast: 4d256bf757f2ac1c563ea7c4bf03dd5b6050c884bd303b8cdc79ac08f408a8b7 + inlined_ast: 4d256bf757f2ac1c563ea7c4bf03dd5b6050c884bd303b8cdc79ac08f408a8b7 + dce_ast: 4d256bf757f2ac1c563ea7c4bf03dd5b6050c884bd303b8cdc79ac08f408a8b7 bytecode: a785c0d8cfd6988cde7a87a968cf8aa87ac982a4c4aef53474348c4e0525d714 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/max.out b/tests/expectations/compiler/integers/u8/max.out index 9240af96db..605348fadc 100644 --- a/tests/expectations/compiler/integers/u8/max.out +++ b/tests/expectations/compiler/integers/u8/max.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 2748e90030f748ba1b05d7c5897c2759e8ae6eeade5434e620bb6774e228d522 - unrolled_symbol_table: 2748e90030f748ba1b05d7c5897c2759e8ae6eeade5434e620bb6774e228d522 - initial_ast: a29b29b77a3cf424495e951b55c1f0e8d5062a6d0d18c15f0befcbc00513c636 - unrolled_ast: a29b29b77a3cf424495e951b55c1f0e8d5062a6d0d18c15f0befcbc00513c636 - ssa_ast: dde205dc90b076d86d7c643b1a22e884828e33407c43fa8a1cc2614ce1284068 - flattened_ast: 44ab7c95d27ea43500dc4e74151c88afb634c7250e68c67448561bd4a7c30552 - destructured_ast: 2e7a5d06dc9e0c1299f8e786c69bc4ab32689f1fb6f6a8f0013d7cf9ffa986a8 - inlined_ast: 2e7a5d06dc9e0c1299f8e786c69bc4ab32689f1fb6f6a8f0013d7cf9ffa986a8 - dce_ast: 0d193ba2542b79e695a630054aae5f4a65f5ab9364fa8d3e5bb783485c4c0c2e + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 7391e280677aecf42afe797d185bdfde0ff3c525b4cc70373121a8c021e11c2e + unrolled_symbol_table: 7391e280677aecf42afe797d185bdfde0ff3c525b4cc70373121a8c021e11c2e + initial_ast: 2fc85fc4b24ec2fe3fd9ce143893de6b7a1805984d16ef8c11a07908ca693bc0 + unrolled_ast: 2fc85fc4b24ec2fe3fd9ce143893de6b7a1805984d16ef8c11a07908ca693bc0 + ssa_ast: f83c16236a52268495da8276805157b9cbd334fe4c38ff8305173b2f1cf17d2a + flattened_ast: 7a4931f15975f3b8aa206c7e2dd15e70a2241667bac92ca833f951722f702cda + destructured_ast: 6cacf9c52f2f54ed635f9d05f3908892b78732de05bca4a64a1b64b39ace4654 + inlined_ast: 6cacf9c52f2f54ed635f9d05f3908892b78732de05bca4a64a1b64b39ace4654 + dce_ast: c52972ede00e5e4c9a05bb401e8b72a8f751b710a379af9fc333c3595d598395 bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/max_fail.out b/tests/expectations/compiler/integers/u8/max_fail.out index ad7267865c..2d0ad875c3 100644 --- a/tests/expectations/compiler/integers/u8/max_fail.out +++ b/tests/expectations/compiler/integers/u8/max_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 256 is not a valid `u8`\n --> compiler-test:5:21\n |\n 5 | let a: u8 = 256u8;\n | ^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 256 is not a valid `u8`\n --> compiler-test:5:21\n |\n 5 | let a: u8 = 256u8;\n | ^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u8/min.out b/tests/expectations/compiler/integers/u8/min.out index 7befa37e34..d584337200 100644 --- a/tests/expectations/compiler/integers/u8/min.out +++ b/tests/expectations/compiler/integers/u8/min.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c6c304f3b4e52233218b6c9b9a4ada0f739b5bb501c31ae0b2c72671858191f8 - type_checked_symbol_table: 2748e90030f748ba1b05d7c5897c2759e8ae6eeade5434e620bb6774e228d522 - unrolled_symbol_table: 2748e90030f748ba1b05d7c5897c2759e8ae6eeade5434e620bb6774e228d522 - initial_ast: a7b1386f0e39bbb4859d68cd0dd82a450cae020554e1820e8bebfbf816e4b046 - unrolled_ast: a7b1386f0e39bbb4859d68cd0dd82a450cae020554e1820e8bebfbf816e4b046 - ssa_ast: 173aa20733eae7e9f65ceffb7ea51a281afecabc33d74f083b618fff576c9918 - flattened_ast: 0c86b22012a358da1b424819c88f9a952931215ab342da3e2d613fbd95961f26 - destructured_ast: ccd0a46976be32dd99d97d9414920d22484b6c00323e65a70d8a32d2b3206652 - inlined_ast: ccd0a46976be32dd99d97d9414920d22484b6c00323e65a70d8a32d2b3206652 - dce_ast: 21d909827d51c660bb6c9308540c1701918f19c753735b1a3f516efd82b9f335 + - initial_symbol_table: 24b9d6f7320cde641797d7c62ef7755a02a5d06e6b2204fa6630f593c6206b93 + type_checked_symbol_table: 7391e280677aecf42afe797d185bdfde0ff3c525b4cc70373121a8c021e11c2e + unrolled_symbol_table: 7391e280677aecf42afe797d185bdfde0ff3c525b4cc70373121a8c021e11c2e + initial_ast: 41b6c5dd543614303d630b689ddc4956cfa682a1e318e060bca0a0f6c93f1718 + unrolled_ast: 41b6c5dd543614303d630b689ddc4956cfa682a1e318e060bca0a0f6c93f1718 + ssa_ast: a3ecd61ca652c58c3777fdb7a7231657a2317eb41c6dc04399f118a3cb1ffaa3 + flattened_ast: 9ba3fde053fd35a0023a93ae7066e70eebc23d82a84288555ca73573bcc983b3 + destructured_ast: ef2119d02e5f749bc8e9357e23cf47463b45102fcb0bfdd6b88719f8d384e486 + inlined_ast: ef2119d02e5f749bc8e9357e23cf47463b45102fcb0bfdd6b88719f8d384e486 + dce_ast: 5d06e7f6d85993ad99451d526eb972a152b39332300f9712b4ba5dbbd8b8e6fd bytecode: 651a250bda995df00cf3b4659d1ea35912ed94da32b5d487677dead9126b5d69 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/min_fail.out b/tests/expectations/compiler/integers/u8/min_fail.out index bcdceece58..c9287af369 100644 --- a/tests/expectations/compiler/integers/u8/min_fail.out +++ b/tests/expectations/compiler/integers/u8/min_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:21\n |\n 5 | let a: u8 = -1u8;\n | ^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:21\n |\n 5 | let a: u8 = -1u8;\n | ^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u8/mul.out b/tests/expectations/compiler/integers/u8/mul.out index 3faa404319..582aef5e26 100644 --- a/tests/expectations/compiler/integers/u8/mul.out +++ b/tests/expectations/compiler/integers/u8/mul.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 0caf0aa965269624dae627fd5f40284c25f238df25656a7efbd2cdcc351840c6 - unrolled_ast: 0caf0aa965269624dae627fd5f40284c25f238df25656a7efbd2cdcc351840c6 - ssa_ast: bd37efb5ae4f3540998478cadde4f1176972bcc14f32407cf73195db23370a0f - flattened_ast: 8e5840bc9a91d7b86089a815eeaf9fb3fb17cf6d894dff09da74acde77d1a515 - destructured_ast: 6c0f972c01e80e87f3eefedcbbabda88cf6329445862200f864764e3916d28f5 - inlined_ast: 6c0f972c01e80e87f3eefedcbbabda88cf6329445862200f864764e3916d28f5 - dce_ast: 6c0f972c01e80e87f3eefedcbbabda88cf6329445862200f864764e3916d28f5 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 5c26fc2cd91191998b321b22e58d5b7ba124bffc9a83d12de46f7ce6ea321e84 + unrolled_ast: 5c26fc2cd91191998b321b22e58d5b7ba124bffc9a83d12de46f7ce6ea321e84 + ssa_ast: 3a0a6f1abaeecda0637ead803e3e92e12652b620d989c26e5e4333727880421e + flattened_ast: 3757a8eecbadd6eddc2f4049ab3dca5597b64adfa1e9bf65707e6d976936b063 + destructured_ast: f1ce8772353e66064140015344226841efe56cd86344723f213248c5c9b51329 + inlined_ast: f1ce8772353e66064140015344226841efe56cd86344723f213248c5c9b51329 + dce_ast: f1ce8772353e66064140015344226841efe56cd86344723f213248c5c9b51329 bytecode: 937e45d26a72a2f9c73609facb8351023ac2bd00390e289501ad3729b65adbb4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/ne.out b/tests/expectations/compiler/integers/u8/ne.out index 80b3c5f224..48ba1ed645 100644 --- a/tests/expectations/compiler/integers/u8/ne.out +++ b/tests/expectations/compiler/integers/u8/ne.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f9f23aeb7907eefa2350ad898c9ad3b351cf6c813782e18b66f58ff287d72f1b - type_checked_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - unrolled_symbol_table: 9d32663ad5107fb23dcacf2e1ebb66e064dcc04c279cb8afb3d00e4ece5bfcb1 - initial_ast: 50562fe0b57a152ff81b2891c7b0822b59d24ad8b66c243e5788cffbbd756fdc - unrolled_ast: 50562fe0b57a152ff81b2891c7b0822b59d24ad8b66c243e5788cffbbd756fdc - ssa_ast: 5ad0a476def60a0c348abedfebc70123c6f38e615b5a50559b74d1feffd5e0e3 - flattened_ast: 792a20bad942be82d7c254ecc147080c0c21dd28516d2fe762ca0a94399865d0 - destructured_ast: 8173278dc866b7240d094a8dd377e7fda457d94bf4d9788a4401040aa633a790 - inlined_ast: 8173278dc866b7240d094a8dd377e7fda457d94bf4d9788a4401040aa633a790 - dce_ast: 8173278dc866b7240d094a8dd377e7fda457d94bf4d9788a4401040aa633a790 + - initial_symbol_table: e473c2047abb71ade74fdb75838d889b9428412f2cdc775c2a8d654b12bf760a + type_checked_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + unrolled_symbol_table: c6ee1da0d4d082e70ff8b6df880c6de02aa511af730f737739d108971b215f0a + initial_ast: aecb5e261111f90e66b188550792601fe1b194e550eba42339712933fa657dc6 + unrolled_ast: aecb5e261111f90e66b188550792601fe1b194e550eba42339712933fa657dc6 + ssa_ast: b29f771401a539675eacb7aa2550f1457a0ebadb39714fe47960d59f02c58411 + flattened_ast: 20e28cd8803e9132aa542aae48c40a8d25fe9587af5c2b352e536f7eb6a5f2d8 + destructured_ast: 4870996da22a00174c86233c6a3a3b183027d55745d36c9a51d05aba8d665aa9 + inlined_ast: 4870996da22a00174c86233c6a3a3b183027d55745d36c9a51d05aba8d665aa9 + dce_ast: 4870996da22a00174c86233c6a3a3b183027d55745d36c9a51d05aba8d665aa9 bytecode: 675110e460b707b82a70a488ae58b8d118d946909f825c9afd6121254e676c03 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/operator_methods.out b/tests/expectations/compiler/integers/u8/operator_methods.out index e2bdf0242b..05d493fca6 100644 --- a/tests/expectations/compiler/integers/u8/operator_methods.out +++ b/tests/expectations/compiler/integers/u8/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4a2fd997b06efd34b35ca16431740520808e98b361c1ff4b87d0cb4fbef1f7ca - type_checked_symbol_table: ed2df54380f6a2e91990fddb2c61311562dc3d1a11a31cee46ac0f8fe55193c9 - unrolled_symbol_table: ed2df54380f6a2e91990fddb2c61311562dc3d1a11a31cee46ac0f8fe55193c9 - initial_ast: 36c710c158f8157399ae9f03d3b6a2f88fc4e50481743e07eb663d7a2cb46e1a - unrolled_ast: 36c710c158f8157399ae9f03d3b6a2f88fc4e50481743e07eb663d7a2cb46e1a - ssa_ast: f189d045feec5f50c26be7633987c8f5655b3cbd6dced8f4905cfb2b1f537878 - flattened_ast: dfffb708bf0a0643d031c7a927ff1bea99a927263dfbf94f54b6b35d6c29463d - destructured_ast: 792740bbf7ce557de08310cdf9a0c1178fb2e6ab4b0d10817cf4bd6cce301025 - inlined_ast: 792740bbf7ce557de08310cdf9a0c1178fb2e6ab4b0d10817cf4bd6cce301025 - dce_ast: 0e8770da5a2bc13fa7d75e800ba3c47ed49f2679130d8ec9582d0e05a8080f62 + - initial_symbol_table: fe29069cb295e73524bfff0efbfe41a086a1ff5420e746dc23314b1deb5550c7 + type_checked_symbol_table: 4558b95441659581ce3058d5263255319264422d3bd0f7b1dd338032d58a37f6 + unrolled_symbol_table: 4558b95441659581ce3058d5263255319264422d3bd0f7b1dd338032d58a37f6 + initial_ast: 4fbc549dd18d667ac74b26b001c16698d44dd3879ff3ae322bc3673ab572f7ff + unrolled_ast: 4fbc549dd18d667ac74b26b001c16698d44dd3879ff3ae322bc3673ab572f7ff + ssa_ast: a4565afe285b0fc9a278e86bdcd7e5e9d640c2f51feb34d4c54a0c069d65fc82 + flattened_ast: bb9d52fd6fbb50397b7b93c9d5e8217d4734c77864c8b0a630bd1b0440cefa09 + destructured_ast: b210969e1a746a33657a29c9baff1f8677ca850d02a5abe1af6a0db8d7aa6c5c + inlined_ast: b210969e1a746a33657a29c9baff1f8677ca850d02a5abe1af6a0db8d7aa6c5c + dce_ast: 3f7f0fa1c1bc0cee8c944075aeb842e468464b862d10a3213c8b55bdeb516b40 bytecode: 525aa7ee628bc18ddc77b4d2c0f21cc66858ecbdd517233862c7ba491158c69f errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/or.out b/tests/expectations/compiler/integers/u8/or.out index c908f55a8d..b1d3b8fb29 100644 --- a/tests/expectations/compiler/integers/u8/or.out +++ b/tests/expectations/compiler/integers/u8/or.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 07fc74d41806f2a765ca6ce3ef2db26c4d70a4e96a65aac6cc0be07c2032bb28 - unrolled_ast: 07fc74d41806f2a765ca6ce3ef2db26c4d70a4e96a65aac6cc0be07c2032bb28 - ssa_ast: 925cf2bc997d319c9040ea0b310061332663494e494fe6d969f650baf91a8911 - flattened_ast: 6a4ecbd73f9763e644d6ffc39c0529621f6756296f757c51390172fa59aead7b - destructured_ast: 257699ea61d6bb963fa180abe7a8dbdc072de6b7f0f75231b2afaefb38a2c3d7 - inlined_ast: 257699ea61d6bb963fa180abe7a8dbdc072de6b7f0f75231b2afaefb38a2c3d7 - dce_ast: 257699ea61d6bb963fa180abe7a8dbdc072de6b7f0f75231b2afaefb38a2c3d7 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 8975105cefd90e9026403b014b1d04471075ea5ffa2de6ef9eefe6577f2f388d + unrolled_ast: 8975105cefd90e9026403b014b1d04471075ea5ffa2de6ef9eefe6577f2f388d + ssa_ast: 175567a48e7edadde13f2dfa777b4d2c3a4182edcfb1276ab96e8db59c4b272c + flattened_ast: d9f13b3e54167995cd688ad08ebe495042b93c9d0d6107c8a3aa9f2b7995e090 + destructured_ast: fa457959df2a73e29c4fae5aefde7e8f1ab9a59ea2f7b38557acb6f796eee420 + inlined_ast: fa457959df2a73e29c4fae5aefde7e8f1ab9a59ea2f7b38557acb6f796eee420 + dce_ast: fa457959df2a73e29c4fae5aefde7e8f1ab9a59ea2f7b38557acb6f796eee420 bytecode: dc659eaf16fad4225b86c68e2986ec498a85bfa9f34ad54a538119692169d54d errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/pow.out b/tests/expectations/compiler/integers/u8/pow.out index be40f0a358..6cc9af7fb5 100644 --- a/tests/expectations/compiler/integers/u8/pow.out +++ b/tests/expectations/compiler/integers/u8/pow.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: fb4e6f1c8d118ad4b39f56f703de9694ba90c1ff2827d8b73f25fe69be20569c - unrolled_ast: fb4e6f1c8d118ad4b39f56f703de9694ba90c1ff2827d8b73f25fe69be20569c - ssa_ast: 8de1568f0a5709c816e33d85502ea49d17c07c720374bdc323e3df87eea33636 - flattened_ast: a7965e0f0c687d9e9857d2a1691103140613869c34003689246c74ad202c53af - destructured_ast: 0da7d969e1864dd4de1f2efecd0d3fc15822a9d09bf1c86cfb070309ee21e05d - inlined_ast: 0da7d969e1864dd4de1f2efecd0d3fc15822a9d09bf1c86cfb070309ee21e05d - dce_ast: 0da7d969e1864dd4de1f2efecd0d3fc15822a9d09bf1c86cfb070309ee21e05d + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 871c83ec47c29c1d0e05cb42f36b5c0ae0bc9b79e616485452c9c3d8dcab3d5c + unrolled_ast: 871c83ec47c29c1d0e05cb42f36b5c0ae0bc9b79e616485452c9c3d8dcab3d5c + ssa_ast: dd2d3ad9f93ccd3f89db6a562668c822ff88e95bfff473426464a89fdcd65c83 + flattened_ast: 97c2c6049045895596d58b8691a9cc2ec504068b1b7fa63d1dea25efa0f14571 + destructured_ast: 8b71f356d00e5da81000414aaaa914e25bca7b8628f0b047d57d28aece1b1ba9 + inlined_ast: 8b71f356d00e5da81000414aaaa914e25bca7b8628f0b047d57d28aece1b1ba9 + dce_ast: 8b71f356d00e5da81000414aaaa914e25bca7b8628f0b047d57d28aece1b1ba9 bytecode: 6f39595f71ec6b6a1a2c622b9c18785cb99323fe027c8cd95d4f49a20b875f39 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/rem.out b/tests/expectations/compiler/integers/u8/rem.out index a0b05c5301..f81ae2f565 100644 --- a/tests/expectations/compiler/integers/u8/rem.out +++ b/tests/expectations/compiler/integers/u8/rem.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 74dd449ad3c33286167df4a7e5fd9422356a33999a109d5adbae396665dac938 - unrolled_ast: 74dd449ad3c33286167df4a7e5fd9422356a33999a109d5adbae396665dac938 - ssa_ast: e94ba2abb2b689e155df2ef0b1a9e7bdbff61a4099c66affc2514054a37fec44 - flattened_ast: 3f4c57261615d78866e16249da03925013b4a7536166cc7f0df0326ac1659801 - destructured_ast: 371f5205cb476f135d4a0ba83bbec3f8a973f88117101c65168f7eebbda19127 - inlined_ast: 371f5205cb476f135d4a0ba83bbec3f8a973f88117101c65168f7eebbda19127 - dce_ast: 371f5205cb476f135d4a0ba83bbec3f8a973f88117101c65168f7eebbda19127 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 1d461af0170fdd57c76cc01ee02c43c6f66a53b570496aa763e977858b01e1be + unrolled_ast: 1d461af0170fdd57c76cc01ee02c43c6f66a53b570496aa763e977858b01e1be + ssa_ast: e8cba89295e52e03dafc3b0b9a6cec3123c9732daaeb8affeb9c8b2a9f3162ae + flattened_ast: f2e0d12ba1e5bcb3b0ed411b7bc006f2967a282f92cf1578e03831098f684ce8 + destructured_ast: cd761b5af7c55bdea792c495e3930ec215ea17dfcc1fb9cc0209633cdca4908f + inlined_ast: cd761b5af7c55bdea792c495e3930ec215ea17dfcc1fb9cc0209633cdca4908f + dce_ast: cd761b5af7c55bdea792c495e3930ec215ea17dfcc1fb9cc0209633cdca4908f bytecode: eb0766ef7942b5b5f50c4778d1d82479583761acb0d4e903ca3b4998e9036ce8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/shl.out b/tests/expectations/compiler/integers/u8/shl.out index 227c40f926..3e3da13dd9 100644 --- a/tests/expectations/compiler/integers/u8/shl.out +++ b/tests/expectations/compiler/integers/u8/shl.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 0a3bed8d74ba75aa5de7358959895af054d392f2dca767e4887906455af88f13 - unrolled_ast: 0a3bed8d74ba75aa5de7358959895af054d392f2dca767e4887906455af88f13 - ssa_ast: 74d2866e7f24ff101b6159fc27fadec12872d901daa57677c140475cc2671b3f - flattened_ast: 35b5b6c47ecdcbb7bf40830276b35ca62d26325467e351b2c662000fb1d0c595 - destructured_ast: 4ff2fe10069f47065a65ed15df144594ed8ec6c73a70008a5a6b957f00141e42 - inlined_ast: 4ff2fe10069f47065a65ed15df144594ed8ec6c73a70008a5a6b957f00141e42 - dce_ast: 4ff2fe10069f47065a65ed15df144594ed8ec6c73a70008a5a6b957f00141e42 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 62b9143edf4b2af8de7d17e3760fc79f6c69682bd1fbc6bf49df3603c048f154 + unrolled_ast: 62b9143edf4b2af8de7d17e3760fc79f6c69682bd1fbc6bf49df3603c048f154 + ssa_ast: 90c571faa576d841b46a96893e4da02c93ea3f9f6562da9305199fffdb8e08ed + flattened_ast: adfa84ca86fd3e69687f8d300245300aba9eb636ac0ae6013f17a1f0ebf07735 + destructured_ast: da6302edea2b553822935178b5bded90c3c5d3f4eb0f3e579fdf86fa3c029be3 + inlined_ast: da6302edea2b553822935178b5bded90c3c5d3f4eb0f3e579fdf86fa3c029be3 + dce_ast: da6302edea2b553822935178b5bded90c3c5d3f4eb0f3e579fdf86fa3c029be3 bytecode: c080998e39be58c165d147352fed55e49828e93d487976c27e4e6e160736f4f6 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/shr.out b/tests/expectations/compiler/integers/u8/shr.out index fe3a9ca18e..f03c4906b6 100644 --- a/tests/expectations/compiler/integers/u8/shr.out +++ b/tests/expectations/compiler/integers/u8/shr.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: b0b57ac1137cc42a526be79de40e854ce990917fcf6a9c962434133eb3bada59 - unrolled_ast: b0b57ac1137cc42a526be79de40e854ce990917fcf6a9c962434133eb3bada59 - ssa_ast: 89539f641147a5038eafaed650a6c55d3515c53163e43793b8d137c204613af9 - flattened_ast: 25e17ed3d32efeabc18d13d417ecb7826e0d8fbc649fe0e002653d336e17a348 - destructured_ast: 3e10d80309509a979cba947f3074247cd13c7d2862fbf06e30ee53d9d3d20752 - inlined_ast: 3e10d80309509a979cba947f3074247cd13c7d2862fbf06e30ee53d9d3d20752 - dce_ast: 3e10d80309509a979cba947f3074247cd13c7d2862fbf06e30ee53d9d3d20752 + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 230633b71fc4f53dbca4c7e06ff487a855f7b66e7894ad6574a51d80f3a82d44 + unrolled_ast: 230633b71fc4f53dbca4c7e06ff487a855f7b66e7894ad6574a51d80f3a82d44 + ssa_ast: 3569171d85d166379c71c160024a87ddc5d964775bf7411a59d8d15a4a47c57c + flattened_ast: 494698de5935e3cbc5d7862012fd691484a5ffa2125ac84ef458b055a5cac350 + destructured_ast: 29d8ac367807f56ec9f8d06c95a5efb4bea3716f8eda4c390fb4d51790d9f5a5 + inlined_ast: 29d8ac367807f56ec9f8d06c95a5efb4bea3716f8eda4c390fb4d51790d9f5a5 + dce_ast: 29d8ac367807f56ec9f8d06c95a5efb4bea3716f8eda4c390fb4d51790d9f5a5 bytecode: 115a3954fe97b0bf052859b3e2060732a5988a738e33e38fa9fc6124009a3df1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/sub.out b/tests/expectations/compiler/integers/u8/sub.out index c86679413f..ac3b502308 100644 --- a/tests/expectations/compiler/integers/u8/sub.out +++ b/tests/expectations/compiler/integers/u8/sub.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: b7633b492dde66b4883849b400a967efe1a09d4aa6d1018559703f489d242da8 - type_checked_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - unrolled_symbol_table: d6fca559dd0e6ebd27e20d20a5744835388048cf5912d9ba2a0d73c0d2ff08c2 - initial_ast: 19f4228dbc5ec9d705122a5434ec51a94101e5d3ac99e7a7eeef99fb4504dcf5 - unrolled_ast: 19f4228dbc5ec9d705122a5434ec51a94101e5d3ac99e7a7eeef99fb4504dcf5 - ssa_ast: 0e72db26b36b2125d6e297398e3ffcf9019fde386f623259e6becdccd03ac92b - flattened_ast: 673474599f9c99682aaac5c1be21d7a967ed176f16ed36725cd4cce1cd354270 - destructured_ast: 3286e7483ec3bd43f34bd16de742f2228b1f131c648b89e8d4fd8507b72f800a - inlined_ast: 3286e7483ec3bd43f34bd16de742f2228b1f131c648b89e8d4fd8507b72f800a - dce_ast: 3286e7483ec3bd43f34bd16de742f2228b1f131c648b89e8d4fd8507b72f800a + - initial_symbol_table: 05ec2d92254ff35ad17293f850b1280cf88490c2db146247e2cbd47caec485c0 + type_checked_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + unrolled_symbol_table: 2155a0e3a9c431c42c068617530e12ef44fd7c66079a40526792306c22221b3f + initial_ast: 1ee3d9d62c2952f6885b44f79dae4cf7c178f5a050a94e2e500c52d1993ba014 + unrolled_ast: 1ee3d9d62c2952f6885b44f79dae4cf7c178f5a050a94e2e500c52d1993ba014 + ssa_ast: 04e6290b799bc4b6f41917e09a28a6e7ad90823f47e98ea5b622310da6b911c3 + flattened_ast: bf627b3c137bc9261a5fae05fde541b09f0679031b9d97a693c6c9cbeeba776a + destructured_ast: dde5abc11a200b8f0d076a98f30febe52fb700117dad27f3c153ca7c772642b1 + inlined_ast: dde5abc11a200b8f0d076a98f30febe52fb700117dad27f3c153ca7c772642b1 + dce_ast: dde5abc11a200b8f0d076a98f30febe52fb700117dad27f3c153ca7c772642b1 bytecode: 000488241130473cec7bf53df1dc0bdab4ae452ab173fe563a9b9311c73f35fe errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/ternary.out b/tests/expectations/compiler/integers/u8/ternary.out index e4241ea92a..92ac2d0fff 100644 --- a/tests/expectations/compiler/integers/u8/ternary.out +++ b/tests/expectations/compiler/integers/u8/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 168d8cf189a03725958f1a77fba13a8e4bf34676d5512191e2d5ab00dfdba0fe - type_checked_symbol_table: 446fab1616d54db1640473dc969945c36292e46a1376b93f4190e9eb2caa4004 - unrolled_symbol_table: 446fab1616d54db1640473dc969945c36292e46a1376b93f4190e9eb2caa4004 - initial_ast: eae78028efe8712a46d2cc5943ae839249f69723a3ed3a15df8d3166dccd193b - unrolled_ast: eae78028efe8712a46d2cc5943ae839249f69723a3ed3a15df8d3166dccd193b - ssa_ast: 7885b3c0ad81bb12d251e1baa9960df6a5d740f7640095c94ef6fc3cddc635e8 - flattened_ast: a6b812625d061f401aceba7f6adcf2b231dd8a2c797e3b55590fdf898ef40332 - destructured_ast: d1a089ecff1b95a2371a46b24f36fa8c63557059a65484d96ae9ac08244ff1cb - inlined_ast: d1a089ecff1b95a2371a46b24f36fa8c63557059a65484d96ae9ac08244ff1cb - dce_ast: d1a089ecff1b95a2371a46b24f36fa8c63557059a65484d96ae9ac08244ff1cb + - initial_symbol_table: eba7e9882e65802d90eeac7fb95fe0e9fccf779e9890e03dfff02fa0dabc9bc8 + type_checked_symbol_table: 44714fd64f8f899223800f3a91540808cbde6f89f6dd28a8e3c453d201646769 + unrolled_symbol_table: 44714fd64f8f899223800f3a91540808cbde6f89f6dd28a8e3c453d201646769 + initial_ast: 3a105608930dd2ffe956e5d3b3dc927e63effb7f65c7ae33306e740a48618f80 + unrolled_ast: 3a105608930dd2ffe956e5d3b3dc927e63effb7f65c7ae33306e740a48618f80 + ssa_ast: 68b1d1b15b7ea5b10cca734116ac091a8332c07e8c1bf2d6f2e3f9b06484134d + flattened_ast: 2c048420c3a6a82e142c40a3dbaae054124a2c935c7ba0c99d31c692946d98af + destructured_ast: a7b655172616ebc2908adafe1bf3b1fc58d7ad0d3c2f67dda9f8faeda89a6d5e + inlined_ast: a7b655172616ebc2908adafe1bf3b1fc58d7ad0d3c2f67dda9f8faeda89a6d5e + dce_ast: a7b655172616ebc2908adafe1bf3b1fc58d7ad0d3c2f67dda9f8faeda89a6d5e bytecode: 070a1a31af23c4436a8adf74befb9bae19c60a73da4ca1b8c295213c0505b1cb errors: "" warnings: "" diff --git a/tests/expectations/compiler/integers/u8/xor.out b/tests/expectations/compiler/integers/u8/xor.out index 7e8a989180..9bebdd672e 100644 --- a/tests/expectations/compiler/integers/u8/xor.out +++ b/tests/expectations/compiler/integers/u8/xor.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 806f02e741d97a74df01d0ac2bd4c3824d9b9f48134bb2122d2a26b787599fe8 - type_checked_symbol_table: c47c804c3697622c68938e259a1a14e444e55b15458045cf429bd409f80c88e5 - unrolled_symbol_table: c47c804c3697622c68938e259a1a14e444e55b15458045cf429bd409f80c88e5 - initial_ast: 59a67b791f6f50a3de6d9eb3a04ae9a73ac41151a763f727060b4d283f6e4823 - unrolled_ast: 59a67b791f6f50a3de6d9eb3a04ae9a73ac41151a763f727060b4d283f6e4823 - ssa_ast: 464d22d0a0e68208401a83036325ec276f6caaf0f7b25452523deb51987fd3cf - flattened_ast: 1a7027be4ed60d14a81338c721b61efd47041a84c3d7c4e543d69da27c71a5c8 - destructured_ast: 883bbe3d239afe9e021383595f1569817b2c506dfa86c5ca0a7e25e6eed8ae69 - inlined_ast: 883bbe3d239afe9e021383595f1569817b2c506dfa86c5ca0a7e25e6eed8ae69 - dce_ast: 883bbe3d239afe9e021383595f1569817b2c506dfa86c5ca0a7e25e6eed8ae69 + - initial_symbol_table: 06c4fab8f93b5835c491188513cab24da42c5a8aa387ef9af0dd79d1929c68bc + type_checked_symbol_table: fa6ae58b1255c8587ca1e177d39891b553c5ba88629dbe04954555ca19e76aa7 + unrolled_symbol_table: fa6ae58b1255c8587ca1e177d39891b553c5ba88629dbe04954555ca19e76aa7 + initial_ast: 47e4321c8d73f5d78869d7b6e1cc0edcf45840e66b18ee0cdf92bbef54d2cd83 + unrolled_ast: 47e4321c8d73f5d78869d7b6e1cc0edcf45840e66b18ee0cdf92bbef54d2cd83 + ssa_ast: c6de104d6dc360e5d10a2972fd212d8e8e067a1ad582371b6a0f6787706a009c + flattened_ast: 0c884caac63d8973c7d4fedf183066bf65b0cec26f6cd103fa1d6b081c494b0b + destructured_ast: 0a31c60af807de17c490a73d9ecf14cea94b76b193143f9b8c825509d09a59fc + inlined_ast: 0a31c60af807de17c490a73d9ecf14cea94b76b193143f9b8c825509d09a59fc + dce_ast: 0a31c60af807de17c490a73d9ecf14cea94b76b193143f9b8c825509d09a59fc bytecode: a4c6a3559c050f7e666b347ea9cedd29ef60140d4bee54d145160726d4c31880 errors: "" warnings: "" diff --git a/tests/expectations/compiler/mappings/max_mappings.out b/tests/expectations/compiler/mappings/max_mappings.out index 29e7d21e45..35cd61f866 100644 --- a/tests/expectations/compiler/mappings/max_mappings.out +++ b/tests/expectations/compiler/mappings/max_mappings.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 34edd130a88ec79cf1bffb97463a75025c9ef5f052262880ed745bb9e8f9a5f9 - type_checked_symbol_table: f6322a8c8e9e64b22226631dbdee83d25f9b22cd17dfce13767ffb32fa31279c - unrolled_symbol_table: f6322a8c8e9e64b22226631dbdee83d25f9b22cd17dfce13767ffb32fa31279c - initial_ast: 150dd9e51de303f340bf42c43e56212ffd9249f80a76068ce09f89d41329d791 - unrolled_ast: 150dd9e51de303f340bf42c43e56212ffd9249f80a76068ce09f89d41329d791 - ssa_ast: d9ba913dbadab575952cc049c051e1fbd5bdf6f8134639fe112eb9621c72639c - flattened_ast: 252a72bd6bc5c2e49c3eda6fa380f8b02f77ff7a937977856c71b3536e20a149 - destructured_ast: ae8d4f958068a458b17a9e236eedb2751d497d976eccc66c60fc06ee998b0b11 - inlined_ast: ae8d4f958068a458b17a9e236eedb2751d497d976eccc66c60fc06ee998b0b11 - dce_ast: ae8d4f958068a458b17a9e236eedb2751d497d976eccc66c60fc06ee998b0b11 + - initial_symbol_table: 31996f72ace053dcaa3beb2ec60de78fcade8e4047cf92897dfd244f210987f7 + type_checked_symbol_table: 64be9ee1773f9450cf04c18cbf377102aab7c0aba277e7c036c770ab8614b5f0 + unrolled_symbol_table: 64be9ee1773f9450cf04c18cbf377102aab7c0aba277e7c036c770ab8614b5f0 + initial_ast: bf4f49760c078b3c4a78361adf9fd379700f2029674a48e418fad97c4f82b5ba + unrolled_ast: bf4f49760c078b3c4a78361adf9fd379700f2029674a48e418fad97c4f82b5ba + ssa_ast: 43ad41ce3448cdad92ce6f3dab2c1f1d636166bce7d33b25d0bc10a138553e93 + flattened_ast: b73def7aa68bb5bc16b4139a44b4aebcc4a72ada4bffe6d52aa559e054a20bb0 + destructured_ast: cd208e1afa3359f38b1489d9185306c3fe3000067620dde6fbe789c248fd415e + inlined_ast: cd208e1afa3359f38b1489d9185306c3fe3000067620dde6fbe789c248fd415e + dce_ast: cd208e1afa3359f38b1489d9185306c3fe3000067620dde6fbe789c248fd415e bytecode: 510d9a029bd4900c2278ae7b0d1a7a595b0bd6bae6e362e7bf3ca900ef8bdc8d errors: "" warnings: "" diff --git a/tests/expectations/compiler/mappings/read_external_mapping.out b/tests/expectations/compiler/mappings/read_external_mapping.out index 4f9784e53c..a8c6e2f7b7 100644 --- a/tests/expectations/compiler/mappings/read_external_mapping.out +++ b/tests/expectations/compiler/mappings/read_external_mapping.out @@ -3,29 +3,29 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 7451c094e7b88ca46239b92cf776a86dcfe3557d19d9518367be405ea0f0867c - type_checked_symbol_table: 5f381ae8cd5a670b6583e91ceb6ac77f114e8dc14ec5628549022745f7daecca - unrolled_symbol_table: 5f381ae8cd5a670b6583e91ceb6ac77f114e8dc14ec5628549022745f7daecca - initial_ast: 86e48730f8e92400fd88dba80ab0f127d9482d4fc77e6ef90f71b41c0abc172f - unrolled_ast: 86e48730f8e92400fd88dba80ab0f127d9482d4fc77e6ef90f71b41c0abc172f - ssa_ast: fe92668a4538356db262e3130c9776e9e59278775ca85a14e9774eff4513f20e - flattened_ast: 2fcb45d35ed01007903369762d4f6c66c7265c8037a667b0605930e97f5d1164 - destructured_ast: e45cbf7845145504575074babe9704bdbf0531ea7407c261a15c34a5fa1885f4 - inlined_ast: e45cbf7845145504575074babe9704bdbf0531ea7407c261a15c34a5fa1885f4 - dce_ast: e45cbf7845145504575074babe9704bdbf0531ea7407c261a15c34a5fa1885f4 - bytecode: c44dd5a8d2158e3729310c6e423739cde6f4f8261609820886f26aa09afe707b + - initial_symbol_table: 4acdffc0a454d2df01d6e604b726ef67d831ecf0d1d47a72f9b284ba42b4c542 + type_checked_symbol_table: 6b99efcf26d1b4111c61210a523d5e0254100619def6cb83f179afccf9220953 + unrolled_symbol_table: 6b99efcf26d1b4111c61210a523d5e0254100619def6cb83f179afccf9220953 + initial_ast: 0bd7aa2a25a1538d3b394b22d1c4a7ac2eafa84784a56e5d629962ed1f234de7 + unrolled_ast: 0bd7aa2a25a1538d3b394b22d1c4a7ac2eafa84784a56e5d629962ed1f234de7 + ssa_ast: 44ebbe97b334cfaa225f98f72b4f0d1747428214ba6198d23d783a3dababbf09 + flattened_ast: 0aca52d267618145910569f99f6639655588bb1e2b169126fca714d13f8e79ec + destructured_ast: 4782e0e60ffa80636ee0d146905b80b166731a5b7d004c79cfd31667dfce68e6 + inlined_ast: 7299bd056f03d1c896bbd9d2d45d1cfdc46cf8db8fdda4068c1dab9228cfefe4 + dce_ast: 7299bd056f03d1c896bbd9d2d45d1cfdc46cf8db8fdda4068c1dab9228cfefe4 + bytecode: 112afa595f98c7a5f0143c80c5f809c04e64da735f5965e21fca7d147470705b errors: "" warnings: "" - - initial_symbol_table: fbe7b97bd85bd4d788d8973a17a73ef63cb42b389639ee166301a6928d9aa429 - type_checked_symbol_table: f712c16610a96ec846141df4068ade8878ddfd8bebc4d1e182b69a4a2b6c81fe - unrolled_symbol_table: f712c16610a96ec846141df4068ade8878ddfd8bebc4d1e182b69a4a2b6c81fe - initial_ast: 443e7342407db51c493d0b22ac4a678c3dec2d285600c58c90f045987d88c683 - unrolled_ast: 4d735be74cb434f8e080c4ff9f53585ff7552e7e6974237afb19ebb23b8930de - ssa_ast: a673ea7e1d26fcb38da8875ff8a07f9bc56af177f5878884484d350f1bdb5035 - flattened_ast: ef3ae77ef40d80ab5d210790c8182198298156570ec561687d095af4e5a8d00e - destructured_ast: 994a7f9bb6da7683f71a5f6df480a3d9311d71208184a9d8396f51a66edb8283 - inlined_ast: 994a7f9bb6da7683f71a5f6df480a3d9311d71208184a9d8396f51a66edb8283 - dce_ast: 994a7f9bb6da7683f71a5f6df480a3d9311d71208184a9d8396f51a66edb8283 - bytecode: 1260b31fff8f93549822bd3a3bba846b38ca6dd13eacaf908842384748b4ea4c + - initial_symbol_table: b27409ab60dc9dc145f09fed244b5290555736692f823ca690a67b98df651123 + type_checked_symbol_table: 395bac6a7a09d0c1e8fd267ba708520df2548ada3ac7dabf881f26c4554a8aa8 + unrolled_symbol_table: 395bac6a7a09d0c1e8fd267ba708520df2548ada3ac7dabf881f26c4554a8aa8 + initial_ast: f9f4c04850d3bd97c29805176ea3cb9753ccc67f5890094e8c5a7272325b76f6 + unrolled_ast: 40fed7e3a227db065c82b56d50dbc5e4cd35a1db51fb185ab62bf7509381bc20 + ssa_ast: b3f173f12fdfc461932033cc44726e2aae9727a774d684a2a1205d935ae5d214 + flattened_ast: 8c90d96091852a22fba734a877a67ea304b420806078762a8ae94073c99350a5 + destructured_ast: 4d3003b6b2baf3a00ccb921ce59a426a46e0e57dfbd072a34a9434f6de730136 + inlined_ast: efb0c25768f4317c9a283644a73585302cfe169b059aa563747b3d8fab49cdc6 + dce_ast: efb0c25768f4317c9a283644a73585302cfe169b059aa563747b3d8fab49cdc6 + bytecode: 885815a86613c757d67c00e8c0c4e1530c543364841f05788564c486eaf24bb2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/mappings/too_many_mappings_fail.out b/tests/expectations/compiler/mappings/too_many_mappings_fail.out index ca3e912043..b3b032ec25 100644 --- a/tests/expectations/compiler/mappings/too_many_mappings_fail.out +++ b/tests/expectations/compiler/mappings/too_many_mappings_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372072]: The number of mappings exceeds the maximum. snarkVM allows up to 31 mappings within a single program.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372062]: The number of mappings exceeds the maximum. snarkVM allows up to 31 mappings within a single program.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/balance_wrong_ty.out b/tests/expectations/compiler/records/balance_wrong_ty.out index 737bb1fe31..b475828fc8 100644 --- a/tests/expectations/compiler/records/balance_wrong_ty.out +++ b/tests/expectations/compiler/records/balance_wrong_ty.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 7f9ed7d7a05995063d88d96043d2b8fb52205171ccb2636c3248023122073763 - type_checked_symbol_table: 6131967ecdd0ba3dc2cbfc2afc24c068913acf6a21a9b6beb673c6abc1dce2de - unrolled_symbol_table: 6131967ecdd0ba3dc2cbfc2afc24c068913acf6a21a9b6beb673c6abc1dce2de - initial_ast: 303d638ad2eed5b9d684610b8c88063bb0191c75b712af6c5601fc9f0f243f90 - unrolled_ast: 303d638ad2eed5b9d684610b8c88063bb0191c75b712af6c5601fc9f0f243f90 - ssa_ast: 675e5483a496c6d6b79192991f2d033c4a3121783fff4530d8f7063eb3249796 - flattened_ast: 2261b08933f20e43f07483fa8b3c4075b4220e1c0332daf402f8ff62e6825c33 - destructured_ast: 8a13ac43d950b64d800296433b5a7697613a2fe153e9e00dc6b52c8f69246323 - inlined_ast: 8a13ac43d950b64d800296433b5a7697613a2fe153e9e00dc6b52c8f69246323 - dce_ast: 8a13ac43d950b64d800296433b5a7697613a2fe153e9e00dc6b52c8f69246323 + - initial_symbol_table: 18ebaa11fc6e8cdc763010427965b53fd34f582276a0eccdc1499ab57657efb7 + type_checked_symbol_table: d2b994c376a3e4aba7b40f2be025851e9fe713659c1fc5a36c7e15c890e43fcc + unrolled_symbol_table: d2b994c376a3e4aba7b40f2be025851e9fe713659c1fc5a36c7e15c890e43fcc + initial_ast: 3589952e831d7132e989d9368788727ad81f851c9ecdb9be4163d02c2a113719 + unrolled_ast: 3589952e831d7132e989d9368788727ad81f851c9ecdb9be4163d02c2a113719 + ssa_ast: a9e5f3bf53c5f4bf924222b894de7b521bd40e5e4aa7949d2e180ffe7b257fde + flattened_ast: 8f954d454869c89d6c2763c6de5f40d8bbb08efbd225d45b756b8c31eeea975f + destructured_ast: 8e18ed4ce9b6cef04638cb6aa112d05fe7115ec3996ff8ca0e79bbbd73199f9f + inlined_ast: 8e18ed4ce9b6cef04638cb6aa112d05fe7115ec3996ff8ca0e79bbbd73199f9f + dce_ast: 8e18ed4ce9b6cef04638cb6aa112d05fe7115ec3996ff8ca0e79bbbd73199f9f bytecode: c0e06b094899a8b986048ec322e2fccaf4812febf185e635cb734797a25a7626 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/declaration.out b/tests/expectations/compiler/records/declaration.out index 3aa6a9a9c5..fadbe146d9 100644 --- a/tests/expectations/compiler/records/declaration.out +++ b/tests/expectations/compiler/records/declaration.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0d1bcb70633b6984a642751db1648a2a76b6e27166e222827e17cb285e5686bd - type_checked_symbol_table: bb1fc7d7aae33dbda3a2151b6dc72edfb74707b2c2aa8a385b0cb7c1bb0bd46a - unrolled_symbol_table: bb1fc7d7aae33dbda3a2151b6dc72edfb74707b2c2aa8a385b0cb7c1bb0bd46a - initial_ast: 99a6f03e7fcf4d948291baa393b676e08e88ecf4060b1e0592c1fd1d43a67093 - unrolled_ast: 99a6f03e7fcf4d948291baa393b676e08e88ecf4060b1e0592c1fd1d43a67093 - ssa_ast: e6d1b290ed83cc2410ac99cbf58a43ff029ed502150dc4d466e8dd8d6f0f4aa1 - flattened_ast: 96587629f7b6d821aac0ee0a8284ae80d730e24740796fa746f98e5133af12e0 - destructured_ast: 46e7f8515d9fd2d022dc388390e3b41a7011fb38fb544912b39a6ce8163da583 - inlined_ast: 46e7f8515d9fd2d022dc388390e3b41a7011fb38fb544912b39a6ce8163da583 - dce_ast: 46e7f8515d9fd2d022dc388390e3b41a7011fb38fb544912b39a6ce8163da583 + - initial_symbol_table: 8542ae69ff108fd84c2ff7cdc7a3649ae4d6d692b3d187c5edea2403ef5e1200 + type_checked_symbol_table: e47517ef1fa2a48979772b789a9910d0bdfdb3aa851b65a31e3031a760d4c223 + unrolled_symbol_table: e47517ef1fa2a48979772b789a9910d0bdfdb3aa851b65a31e3031a760d4c223 + initial_ast: 3bc3d0aa516bb347307817f809c8b9e4f0081164f08fd45f2bc058d86d76e422 + unrolled_ast: 3bc3d0aa516bb347307817f809c8b9e4f0081164f08fd45f2bc058d86d76e422 + ssa_ast: 912c65fcb5d28711a74d1575a00288b6855aba5e58b23246f661aabb797e33b5 + flattened_ast: c6ea93336d1a0e50aa02668f672adee3a2b9369f659ae875c3f8aa5ef3557e3b + destructured_ast: 4b554bd9928679034fc3a55d10cbc714ce8162fd4a87c682425f453864bb92ea + inlined_ast: 4b554bd9928679034fc3a55d10cbc714ce8162fd4a87c682425f453864bb92ea + dce_ast: 4b554bd9928679034fc3a55d10cbc714ce8162fd4a87c682425f453864bb92ea bytecode: 567f936a9f498a3648860fa0c7028b9fe84c93e9843fc82865e39298bc99c525 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/duplicate_var_fail.out b/tests/expectations/compiler/records/duplicate_var_fail.out index 860d70b4dd..5cd2dd4b74 100644 --- a/tests/expectations/compiler/records/duplicate_var_fail.out +++ b/tests/expectations/compiler/records/duplicate_var_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372016]: Record Token defined with more than one variable with the same name.\n --> compiler-test:4:5\n |\n 4 | record Token {\n 5 | // The token owner.\n 6 | owner: address,\n 7 | // The token owner.\n 8 | owner: address, // Cannot define two record variables with the same name.\n 9 | // The token amount.\n 10 | amount: u64,\n 11 | }\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372016]: Record Token defined with more than one variable with the same name.\n --> compiler-test:4:5\n |\n 4 | record Token {\n 5 | // The token owner.\n 6 | owner: address,\n 7 | // The token owner.\n 8 | owner: address, // Cannot define two record variables with the same name.\n 9 | // The token amount.\n 10 | amount: u64,\n 11 | }\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/gates_is_allowed.out b/tests/expectations/compiler/records/gates_is_allowed.out index 35153efa72..5191fb7287 100644 --- a/tests/expectations/compiler/records/gates_is_allowed.out +++ b/tests/expectations/compiler/records/gates_is_allowed.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c0256d322b5e4723dd8350640a34c6c5f985df73655b2b33dd9bc9b8dee684b2 - type_checked_symbol_table: 998d738482855eaba83dc4676499495e27e000a90198b3cc6fc28412e82c1c7f - unrolled_symbol_table: 998d738482855eaba83dc4676499495e27e000a90198b3cc6fc28412e82c1c7f - initial_ast: fc840b2ef6a841bfcdb759afd7535fbfa7ec23ebb07f5a8b6ae95853c1faece8 - unrolled_ast: fc840b2ef6a841bfcdb759afd7535fbfa7ec23ebb07f5a8b6ae95853c1faece8 - ssa_ast: 78c3e0e7799af2f4b7f8722fc8c13586207e5dc11efee9ad1810ad7dee40d7b5 - flattened_ast: dcf919dcb97025a1e275659ee5fa0465d5012dbe9931fb1468c096bea8ead4e6 - destructured_ast: 2ca84fce628d5d84b0ea0e360b1b5cdac04661791fea8444c4ee9b750e2d04d0 - inlined_ast: 2ca84fce628d5d84b0ea0e360b1b5cdac04661791fea8444c4ee9b750e2d04d0 - dce_ast: 2ca84fce628d5d84b0ea0e360b1b5cdac04661791fea8444c4ee9b750e2d04d0 + - initial_symbol_table: 73ca6737725b8ed94234750f7e6f03db1afe2318f4b4c6652904abf336834e85 + type_checked_symbol_table: 2864348c71db4641f73d6382836b5a6884046c296d8fe810187ee6613a145231 + unrolled_symbol_table: 2864348c71db4641f73d6382836b5a6884046c296d8fe810187ee6613a145231 + initial_ast: a2c898381edd495ac2aa99111d2315fe71e48f180c4db1949777169ae47e6701 + unrolled_ast: a2c898381edd495ac2aa99111d2315fe71e48f180c4db1949777169ae47e6701 + ssa_ast: 743e64afc4dc2c81585ce4ca6af3e6ba0080f888bf27deceddd9b59bc8e4f10b + flattened_ast: 0e67dd09e93069f793898da4c4e30a8e9314d4a3cfe1c244d7ff72efc56dd6c7 + destructured_ast: 981b76764e66112e95244f85db5bd57507e0e9430f6398064bde72f2eb830d8c + inlined_ast: 981b76764e66112e95244f85db5bd57507e0e9430f6398064bde72f2eb830d8c + dce_ast: 981b76764e66112e95244f85db5bd57507e0e9430f6398064bde72f2eb830d8c bytecode: 48e7881ab72ea8eaea757488386d315e8b5572f7ed34a5f1c70a5d19b2c4c481 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/init_expression.out b/tests/expectations/compiler/records/init_expression.out index d6416a541b..d269835225 100644 --- a/tests/expectations/compiler/records/init_expression.out +++ b/tests/expectations/compiler/records/init_expression.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: d67ee45aa93d861839f59aa51b8c9737079a1907f928592d6dd074574d81cc50 - type_checked_symbol_table: b3bf60f14aa590101ef4855d5a10c0eb3cab62f1db411b9611aa158a93831c41 - unrolled_symbol_table: b3bf60f14aa590101ef4855d5a10c0eb3cab62f1db411b9611aa158a93831c41 - initial_ast: a7b2a5d2bab9b5acba3c8228d3072c1d52548c7c3473feba3137f5dcdd5086c5 - unrolled_ast: a7b2a5d2bab9b5acba3c8228d3072c1d52548c7c3473feba3137f5dcdd5086c5 - ssa_ast: 06a544feefd68be5c023f01762c6cf60934ba807582027c579248abadab1ae3d - flattened_ast: c355bcb319fce184010560804ddb46629c49edf309800b3b7b0c7acd35beec57 - destructured_ast: 156e3a35671f0e8ea90c10ebb4349851ad2deb7d0c7f21903b4b9ff43e5dc10e - inlined_ast: 156e3a35671f0e8ea90c10ebb4349851ad2deb7d0c7f21903b4b9ff43e5dc10e - dce_ast: a973ff8bf4371bf76f3bcc567e10a3869224ca238d75ceceb7ecfb2c4ee22fd1 + - initial_symbol_table: 663ca3ed75566cfea49db3143f41aaffa95bc496311ddaa70344d3469a6fe410 + type_checked_symbol_table: 674df691f657867fcab32da3d952de4754d424ad92449f6c46686760edf926b5 + unrolled_symbol_table: 674df691f657867fcab32da3d952de4754d424ad92449f6c46686760edf926b5 + initial_ast: 47b2794d6d928690b48bc76cb4050d912f9beb0a374a60ddd10d890cf1fe74fd + unrolled_ast: 47b2794d6d928690b48bc76cb4050d912f9beb0a374a60ddd10d890cf1fe74fd + ssa_ast: 8a73d001d7aaa5c6567adcc1d57cf36d1e3381e2f931b209ae4da4c80e83e039 + flattened_ast: 76ec7b1d5b62c765ae7649da7cdaf55c1cfe3c40477a8d834f92d86854506a31 + destructured_ast: c66b012ede85e34c1b23a7ba28cd466ef336e1e16c97f1eb9853065fd53ad00e + inlined_ast: c66b012ede85e34c1b23a7ba28cd466ef336e1e16c97f1eb9853065fd53ad00e + dce_ast: 04fa3cdf83a4a3a701d5c408a9425f71972b4a6bf4007e82bfbe12f1ea440094 bytecode: f243717a23b7bcbf2e4656d741a9e43b8a60184892683964efb628e22e36e7f1 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/init_expression_shorthand.out b/tests/expectations/compiler/records/init_expression_shorthand.out index 5dda74ca7a..fe4ce2f180 100644 --- a/tests/expectations/compiler/records/init_expression_shorthand.out +++ b/tests/expectations/compiler/records/init_expression_shorthand.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4fcfeee924b6a87e38a7c629ac1f56fd13339e2eb7dcde54d0c33006c047016c - type_checked_symbol_table: 19129d377722476fbc3e8821b1c677e74f38f223726c85e1c8d95396aacfde9c - unrolled_symbol_table: 19129d377722476fbc3e8821b1c677e74f38f223726c85e1c8d95396aacfde9c - initial_ast: 6e4fff38559b9fb57704beddab88b2bed5069c777919f439c367006c52581fee - unrolled_ast: c4d55818902e07eb4cfcac1d4a174b5242344a831d7660374fdc06633a4492e0 - ssa_ast: eb1fce5fe86bc1f15a559638fbab7bf15c305945d91d711718a68c5494000037 - flattened_ast: a0fdbbf35bd9f35d7f90c76997356ff3cefa048ee3d31e3806ce1242a4f95680 - destructured_ast: 3393ccaa2acbe995ba63c0c4fdb3da97f14b46c0aea43abca191b458bdae04ba - inlined_ast: 3393ccaa2acbe995ba63c0c4fdb3da97f14b46c0aea43abca191b458bdae04ba - dce_ast: 0498d407f60ec4344bb521c6f8632f854395c61b424eb191ba10c005fc177a89 + - initial_symbol_table: d7536b21d33ce567d6ea223e89b3f8b7c87cc7e5ac5ebe1110de59fe6677f34b + type_checked_symbol_table: 8ed68cac04c1509896b2c5c519112f82068b06ecc37d25b97c465728dec7d4bc + unrolled_symbol_table: 8ed68cac04c1509896b2c5c519112f82068b06ecc37d25b97c465728dec7d4bc + initial_ast: 39d4202f5b6cf465baf925ad8c0cb510fb6ef6e573a1313a41626adca7fc63bd + unrolled_ast: a578b2b163fa434a1c08391c666f6cb36f7d6838a1c21387d31b4c710b373712 + ssa_ast: d3edb48d94d4fbca62ad065d002b84e982f16e094b48a098dffe47d2d4694100 + flattened_ast: 11eebf708d187d53069cadb93f937fbae2bedf3b7f8b79e76b10a02dedda45e5 + destructured_ast: c25e2fa9fcbe2fdacd92b459320f216d69f26ea6261898b408e1d6ca19ca35fa + inlined_ast: c25e2fa9fcbe2fdacd92b459320f216d69f26ea6261898b408e1d6ca19ca35fa + dce_ast: 6cd34ad155a0c325c0714e44378157e0169baa9b7e931ca8ffd719e5c8f64930 bytecode: 0df6e3d77f2b3503e1b948582ccf17e40ef1cc0ba784bfb0ee91dd6388003630 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/init_expression_type_fail.out b/tests/expectations/compiler/records/init_expression_type_fail.out index 4cf22a1ff4..2007b6139b 100644 --- a/tests/expectations/compiler/records/init_expression_type_fail.out +++ b/tests/expectations/compiler/records/init_expression_type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:11:44\n |\n 11 | function mint(r0: address, r1: u64) -> Token {\n | ^^^^^\nError [ETYC0372003]: Expected type `address` but type `u64` was found\n --> compiler-test:13:20\n |\n 13 | owner: r1, // This variable should be type address.\n | ^^\nError [ETYC0372003]: Expected type `u64` but type `address` was found\n --> compiler-test:14:21\n |\n 14 | amount: r0, // This variable should be type u64.\n | ^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:20:24\n |\n 20 | let t: Token = mint(x, c);\n | ^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:11:44\n |\n 11 | function mint(r0: address, r1: u64) -> Token {\n | ^^^^^\nError [ETYC0372007]: Expected one type from `u64`, but got `address`\n --> compiler-test:13:20\n |\n 13 | owner: r1, // This variable should be type address.\n | ^^\nError [ETYC0372007]: Expected one type from `address`, but got `u64`\n --> compiler-test:14:21\n |\n 14 | amount: r0, // This variable should be type u64.\n | ^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:20:24\n |\n 20 | let t: Token = mint(x, c);\n | ^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/init_expression_var_fail.out b/tests/expectations/compiler/records/init_expression_var_fail.out index 29d5a78208..2b6d7cb390 100644 --- a/tests/expectations/compiler/records/init_expression_var_fail.out +++ b/tests/expectations/compiler/records/init_expression_var_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372064]: A `function` cannot have a record as input or output.\n --> compiler-test:11:44\n |\n 11 | function mint(r0: address, r1: u64) -> Token {\n | ^^^^^\nError [ETYC0372013]: Struct initialization expression for `Token` is missing member `owner`.\n --> compiler-test:12:16\n |\n 12 | return Token {\n 13 | sender: r0, // This variable should be named `owner`.\n 14 | amount: r1,\n 15 | };\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:20:24\n |\n 20 | let t: Token = mint(x, c);\n | ^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372057]: Only `transition` functions can have a record as input or output.\n --> compiler-test:11:44\n |\n 11 | function mint(r0: address, r1: u64) -> Token {\n | ^^^^^\nError [ETYC0372013]: Struct initialization expression for `Token` is missing member `owner`.\n --> compiler-test:12:16\n |\n 12 | return Token {\n 13 | sender: r0, // This variable should be named `owner`.\n 14 | amount: r1,\n 15 | };\n | ^^^^^^\nError [ETYC0372042]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:20:24\n |\n 20 | let t: Token = mint(x, c);\n | ^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/nested_record.out b/tests/expectations/compiler/records/nested_record.out index 5d2235a4da..42427cc53a 100644 --- a/tests/expectations/compiler/records/nested_record.out +++ b/tests/expectations/compiler/records/nested_record.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 390a3faf48166fbd42008423665eece5501185356b1949bac4172c8036fcc608 - type_checked_symbol_table: 155331fa9a35de4f64c4d70314df88f7d73539f366f1da4a38811bfdbea35657 - unrolled_symbol_table: 155331fa9a35de4f64c4d70314df88f7d73539f366f1da4a38811bfdbea35657 - initial_ast: e51b297c6490fe3a00f5e2ef311f43af977176c5462bc898a905b6cb64e3b70b - unrolled_ast: e51b297c6490fe3a00f5e2ef311f43af977176c5462bc898a905b6cb64e3b70b - ssa_ast: 5b6082bc97cb75d570962386d74b47f1e118b29f0b438b3e1a193210d860e2a4 - flattened_ast: 9ee8f02902485b2ecf516276de4110a46222274a37d7b69f756f62115e0aa568 - destructured_ast: 1275b2c4a6f92e30730b7437ee70e95c398570b0ba71b189c47261c437bb7f6c - inlined_ast: 1275b2c4a6f92e30730b7437ee70e95c398570b0ba71b189c47261c437bb7f6c - dce_ast: 1c4c611b3bf931eac128eff6d0519d9ea7a4b6707bbfc30dc164276c814ef569 + - initial_symbol_table: 97cd4e55ffcafcd23a70ced02904088ca9f09a4b3862159660a77cb666c7fa99 + type_checked_symbol_table: ac415c9c118ecd9224e798f260240292b6d9cea8f984632bb22e3703ee3a4faa + unrolled_symbol_table: ac415c9c118ecd9224e798f260240292b6d9cea8f984632bb22e3703ee3a4faa + initial_ast: bddaa1c292c2746ed3dc6090b6f1bec0ac56bd8651ca826782cd7787faf0087e + unrolled_ast: bddaa1c292c2746ed3dc6090b6f1bec0ac56bd8651ca826782cd7787faf0087e + ssa_ast: f1a8349452550dd7551723f35d8c8fe995bad506bafff981818cfce1ed2909ad + flattened_ast: a60af9fca9d43c5489d32ee664c4fc6250f20bb90492bb71c17acb905683479b + destructured_ast: a0ccfceded160e777e6e5e5177ebb233c17da6a783e002f6543bc5cdfd10eb02 + inlined_ast: a0ccfceded160e777e6e5e5177ebb233c17da6a783e002f6543bc5cdfd10eb02 + dce_ast: 1ac28f9a2dd6c7cf62cb89053f1f6578c04f73e26711983fee2e63f8cf14cfe8 bytecode: 9477487eb30939ab953ae2b069d924cc89d50b2b1062bfad64dcb7c79d817b6f errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/nested_record_1_fail.out b/tests/expectations/compiler/records/nested_record_1_fail.out index fde6f824c6..53a33dbf96 100644 --- a/tests/expectations/compiler/records/nested_record_1_fail.out +++ b/tests/expectations/compiler/records/nested_record_1_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:11:9\n |\n 11 | foo: Foo,\n | ^^^\n |\n = Remove the record `Foo` from `Token`.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:11:9\n |\n 11 | foo: Foo,\n | ^^^\n |\n = Remove the record `Foo` from `Token`.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/nested_record_2_fail.out b/tests/expectations/compiler/records/nested_record_2_fail.out index be59edf87e..50d550d6eb 100644 --- a/tests/expectations/compiler/records/nested_record_2_fail.out +++ b/tests/expectations/compiler/records/nested_record_2_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372055]: A record cannot contain a tuple.\n --> compiler-test:7:9\n |\n 7 | foo: (Foo, Foo),\n | ^^^\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:7:9\n |\n 7 | foo: (Foo, Foo),\n | ^^^\n |\n = Remove the record `Foo` from `Token2`.\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:7:9\n |\n 7 | foo: (Foo, Foo),\n | ^^^\n |\n = Remove the record `Foo` from `Token2`.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372050]: A record cannot contain a tuple.\n --> compiler-test:7:9\n |\n 7 | foo: (Foo, Foo),\n | ^^^\nError [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:7:9\n |\n 7 | foo: (Foo, Foo),\n | ^^^\n |\n = Remove the record `Foo` from `Token2`.\nError [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:7:9\n |\n 7 | foo: (Foo, Foo),\n | ^^^\n |\n = Remove the record `Foo` from `Token2`.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/nested_record_3_fail.out b/tests/expectations/compiler/records/nested_record_3_fail.out index 926dfc3cad..42973e0d79 100644 --- a/tests/expectations/compiler/records/nested_record_3_fail.out +++ b/tests/expectations/compiler/records/nested_record_3_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:11:9\n |\n 11 | bar: Foo,\n | ^^^\n |\n = Remove the record `Foo` from `Bar`.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:11:9\n |\n 11 | bar: Foo,\n | ^^^\n |\n = Remove the record `Foo` from `Bar`.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/nested_record_4_fail.out b/tests/expectations/compiler/records/nested_record_4_fail.out index 641cc7a33e..878db0f959 100644 --- a/tests/expectations/compiler/records/nested_record_4_fail.out +++ b/tests/expectations/compiler/records/nested_record_4_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372055]: A record cannot contain a tuple.\n --> compiler-test:6:9\n |\n 6 | bar: (Bar, Bar),\n | ^^^\nError [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:10:9\n |\n 10 | bar: (Token, Token),\n | ^^^\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:10:9\n |\n 10 | bar: (Token, Token),\n | ^^^\n |\n = Remove the record `Token` from `Bar`.\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:10:9\n |\n 10 | bar: (Token, Token),\n | ^^^\n |\n = Remove the record `Token` from `Bar`.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372050]: A record cannot contain a tuple.\n --> compiler-test:6:9\n |\n 6 | bar: (Bar, Bar),\n | ^^^\nError [ETYC0372050]: A struct cannot contain a tuple.\n --> compiler-test:10:9\n |\n 10 | bar: (Token, Token),\n | ^^^\nError [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:10:9\n |\n 10 | bar: (Token, Token),\n | ^^^\n |\n = Remove the record `Token` from `Bar`.\nError [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:10:9\n |\n 10 | bar: (Token, Token),\n | ^^^\n |\n = Remove the record `Token` from `Bar`.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/no_owner_fail.out b/tests/expectations/compiler/records/no_owner_fail.out index 4f8e4d372e..30bebe93fd 100644 --- a/tests/expectations/compiler/records/no_owner_fail.out +++ b/tests/expectations/compiler/records/no_owner_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372019]: The `record` type requires the variable `owner: address`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | // The token amount.\n 7 | amount: u64,\n 8 | }\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372019]: The `record` type requires the variable `owner: address`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | // The token amount.\n 7 | amount: u64,\n 8 | }\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/owner_wrong_ty.out b/tests/expectations/compiler/records/owner_wrong_ty.out index dbb4cb8982..00cb2c9c68 100644 --- a/tests/expectations/compiler/records/owner_wrong_ty.out +++ b/tests/expectations/compiler/records/owner_wrong_ty.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372020]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | owner: bool,\n 7 | }\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372020]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | owner: bool,\n 7 | }\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/record_declaration_out_of_order.out b/tests/expectations/compiler/records/record_declaration_out_of_order.out index fdc5355c70..eff3a06a4d 100644 --- a/tests/expectations/compiler/records/record_declaration_out_of_order.out +++ b/tests/expectations/compiler/records/record_declaration_out_of_order.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 824cf9839d223e21c7d811154f01831c361aada3003baf4d6fab6625faa3c05e - type_checked_symbol_table: 3d67a6354e95270e69bbcd823b0de26599033f781df33e82879e3328589be4c1 - unrolled_symbol_table: 3d67a6354e95270e69bbcd823b0de26599033f781df33e82879e3328589be4c1 - initial_ast: 8c8bdde0c9230930e054e337991eec2c498ebab5d44fd01346f9dc45a7974d8f - unrolled_ast: 8c8bdde0c9230930e054e337991eec2c498ebab5d44fd01346f9dc45a7974d8f - ssa_ast: fbccaf3c6390458a0676189e1bf8fbfd6af62c0015333b393f15b07ae8caf9ee - flattened_ast: fb30da9a23d71844b4d9a512155bcbd7298e8117868601899aeb4c71b1ec32bc - destructured_ast: 17b563ae30ad8c77bdb7a7b95ee826e30a99d537a465c1efd7721263dc63f478 - inlined_ast: 17b563ae30ad8c77bdb7a7b95ee826e30a99d537a465c1efd7721263dc63f478 - dce_ast: 17b563ae30ad8c77bdb7a7b95ee826e30a99d537a465c1efd7721263dc63f478 + - initial_symbol_table: 373fdfb903c580b6c8606db2dd2546b210377ec07f9fcb4742ea09b696380ad9 + type_checked_symbol_table: abf147140f9c6ed314c04f41036b122a75f891a664bfdba7c21b13e16d876b53 + unrolled_symbol_table: abf147140f9c6ed314c04f41036b122a75f891a664bfdba7c21b13e16d876b53 + initial_ast: ca50fe8def46a19a63b5c32375b4fd64a30813d275b3ca2c13e302885fb1e858 + unrolled_ast: ca50fe8def46a19a63b5c32375b4fd64a30813d275b3ca2c13e302885fb1e858 + ssa_ast: e3b2589f6644dd34c72d957e5a520c2a70f4f975851807071746bb084739a845 + flattened_ast: 50532c4917cee88282b1215d0b0fb1af06753d15a33842f5d5df92c4893186aa + destructured_ast: 0d551e889be2770e2c8369c4c626c5fcf4810ad30ff7664ab046f5d8e25da369 + inlined_ast: 0d551e889be2770e2c8369c4c626c5fcf4810ad30ff7664ab046f5d8e25da369 + dce_ast: 0d551e889be2770e2c8369c4c626c5fcf4810ad30ff7664ab046f5d8e25da369 bytecode: 567f936a9f498a3648860fa0c7028b9fe84c93e9843fc82865e39298bc99c525 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/record_init_out_of_order.out b/tests/expectations/compiler/records/record_init_out_of_order.out index 50e333cc29..e7eac74da8 100644 --- a/tests/expectations/compiler/records/record_init_out_of_order.out +++ b/tests/expectations/compiler/records/record_init_out_of_order.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1a9740c4a43ff2f343d3cf17926129c4a739750fda226bf6c35b98a170640ff7 - type_checked_symbol_table: aa133660b58b5e69053d80900594964d896bd11af0486d6ffdc575bcfa961607 - unrolled_symbol_table: aa133660b58b5e69053d80900594964d896bd11af0486d6ffdc575bcfa961607 - initial_ast: 3ce4a574b2f632d27e523026af73d82455109ca3cd2ede49491ae47d87326dcc - unrolled_ast: d2431f8a40442625446a8c698fab8d8981f01b384f689918093f28e481c86943 - ssa_ast: 24a2592927eefe82ea5d7334281ab6823fd88a00f98db626799a171bb1bb882e - flattened_ast: 6d24a033ae2c915b82516935d20f7b96eb9408996df925e5849bc17150881f40 - destructured_ast: 1fd85a0697fbf43a08325d1471d891da97667d9835e36dedf25e491028598c72 - inlined_ast: 1fd85a0697fbf43a08325d1471d891da97667d9835e36dedf25e491028598c72 - dce_ast: 1fd85a0697fbf43a08325d1471d891da97667d9835e36dedf25e491028598c72 + - initial_symbol_table: 2cc7e3aed27842133f95e31261766f8a9b1ba9d1c4d9d7d4ed6947efbfe29bba + type_checked_symbol_table: ad07a15ba81112a280d0e6e5e99c633968c0010eb902a24c0dd5c341a232398c + unrolled_symbol_table: ad07a15ba81112a280d0e6e5e99c633968c0010eb902a24c0dd5c341a232398c + initial_ast: c136ee8bf27b94ba3dbd36af662d510f849e6596e6d486ff4d074361f354b3f9 + unrolled_ast: 18ac94dd4c92f0ca206234a474d73a93be4ce41eef13e96b48b35bea8cbbdc0b + ssa_ast: b5afdcf1546c85e54b949c62282ffd0b3e2a8f951ee76a051d1e6fc7e8a14faf + flattened_ast: 87b5d7d13eb37bcaf09559b1a7a892a4ceef0a99de21108b1e25a42c1a2d14c0 + destructured_ast: 132ab04725a97f75afed8c0b01570422e2b316d072450946b3e97d20c9516b85 + inlined_ast: 132ab04725a97f75afed8c0b01570422e2b316d072450946b3e97d20c9516b85 + dce_ast: 132ab04725a97f75afed8c0b01570422e2b316d072450946b3e97d20c9516b85 bytecode: 8c8992021f4a3ff29c9d5b1ddb3a34e14878b9cd822ac6e470018a4e268b2769 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/record_with_visibility.out b/tests/expectations/compiler/records/record_with_visibility.out index 3bfb1e0662..b6bcf9cd7a 100644 --- a/tests/expectations/compiler/records/record_with_visibility.out +++ b/tests/expectations/compiler/records/record_with_visibility.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 3afd40ff44bafba49a37d8143216ea7702fcf632dcd0dbf32db61c6fb2c88e60 - type_checked_symbol_table: 6c7790239960d7041b5d60d4a0335f2c1fa58178290f2710d7dfbc31f312b0c4 - unrolled_symbol_table: 6c7790239960d7041b5d60d4a0335f2c1fa58178290f2710d7dfbc31f312b0c4 - initial_ast: 5171747bd3930f8d4606fbd6205fcb53cde76afe9d7bbbbb028e672acefa12bb - unrolled_ast: 5171747bd3930f8d4606fbd6205fcb53cde76afe9d7bbbbb028e672acefa12bb - ssa_ast: 96c888c5cbc23605c54865da5caf5cf57aeefe8af5b704c5d2e8d0a732d27f56 - flattened_ast: 75c4f79353184fb68cbb0d03be6b99bbedad8a382261b50c052b91aff0eb2cdf - destructured_ast: d70a2ab23ed68a4558d4407d1e2eddc57ffbc97e227ea9f9cf709c70c26fd148 - inlined_ast: d70a2ab23ed68a4558d4407d1e2eddc57ffbc97e227ea9f9cf709c70c26fd148 - dce_ast: d70a2ab23ed68a4558d4407d1e2eddc57ffbc97e227ea9f9cf709c70c26fd148 + - initial_symbol_table: b6eeab11e63a5c1996d7264c271a6aa84d0c124f9d71e74f74a185f972e0cce6 + type_checked_symbol_table: 003d0c7416a5c9a4933f1c3e35c805c3493b5c727071f9c0724342f84abad609 + unrolled_symbol_table: 003d0c7416a5c9a4933f1c3e35c805c3493b5c727071f9c0724342f84abad609 + initial_ast: f65e4587f80cc3d1bc99a3f1e0e3ad1f680c2f8f61adc4aa40784ddc261fdb06 + unrolled_ast: f65e4587f80cc3d1bc99a3f1e0e3ad1f680c2f8f61adc4aa40784ddc261fdb06 + ssa_ast: 11cb30a69f94c6c891c36bf308d9125bed95f1f5cd44d17ccdba9c173c7871b5 + flattened_ast: 929b19634068a563236ff7cc2d4ea29eb3759e1be3b8b2f665c2a4e074f21a72 + destructured_ast: b55680ce1cffdab60fe8698a6e1cf169c04129bc684b149f22903545ee8cf592 + inlined_ast: b55680ce1cffdab60fe8698a6e1cf169c04129bc684b149f22903545ee8cf592 + dce_ast: b55680ce1cffdab60fe8698a6e1cf169c04129bc684b149f22903545ee8cf592 bytecode: b028178300130b3ccbbce4d1d496a8feb1e4ac876572588e646c6e220105ff70 errors: "" warnings: "" diff --git a/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out b/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out index 1ae17e2493..6c97582174 100644 --- a/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out +++ b/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `()` but type `test_credits` was found\n --> compiler-test:10:16\n |\n 10 | return test_credits {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `test_credits`, but got `()`\n --> compiler-test:10:16\n |\n 10 | return test_credits {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/add.out b/tests/expectations/compiler/scalar/add.out index 914d7369bc..1139720fe3 100644 --- a/tests/expectations/compiler/scalar/add.out +++ b/tests/expectations/compiler/scalar/add.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 41bf383186d73da21b2a4b131c8a6c247ef5cc5909ba087efc8d1edc8c006fab - type_checked_symbol_table: 3a017e4c2307c8cc3fa1443293fe3cc80ab72899d3644b2160277c9493646755 - unrolled_symbol_table: 3a017e4c2307c8cc3fa1443293fe3cc80ab72899d3644b2160277c9493646755 - initial_ast: 08f39745a07415da0fbe7eb1a392f55af57eef872dd47c6d1a8ee75e4a33cdd3 - unrolled_ast: 08f39745a07415da0fbe7eb1a392f55af57eef872dd47c6d1a8ee75e4a33cdd3 - ssa_ast: b87900723f3d413bbb0c307ce9cd61e54938665b3b00bf644d01edfc080d2d6f - flattened_ast: 3b652943853dcc0833441ed8aafacaebe2035ddf6e8ca0a492cb129f4e971063 - destructured_ast: cde301edf0a917159f685db8129746c7e36b48e6184f90a5efea0df3cc93a373 - inlined_ast: cde301edf0a917159f685db8129746c7e36b48e6184f90a5efea0df3cc93a373 - dce_ast: cde301edf0a917159f685db8129746c7e36b48e6184f90a5efea0df3cc93a373 + - initial_symbol_table: 4bbdf4d58a8db289fd38f6f38dd7264e28c9038dbff518e89ff44a96f5c35c66 + type_checked_symbol_table: b2b9970d95557c21a8896986919623efede43acc6906dab4d1e0012af4e99f52 + unrolled_symbol_table: b2b9970d95557c21a8896986919623efede43acc6906dab4d1e0012af4e99f52 + initial_ast: 7703ac79fbb336df7f926d1fae66cee1f6c7dd1f02bf3d573c29d8af65b0e0ec + unrolled_ast: 7703ac79fbb336df7f926d1fae66cee1f6c7dd1f02bf3d573c29d8af65b0e0ec + ssa_ast: 246537d5a2e8aaa7427c02737d28b5fd86910c5f8964f1cbe1310426b568ada6 + flattened_ast: aa85d6dcf3baa2a402511dac7922ec0685dc90d8ecafa27aec29132f56abca23 + destructured_ast: 4d5788c85bb783f43d916abf700ac3617b4a8ceaecb578d065b522f62f5fcaa9 + inlined_ast: 4d5788c85bb783f43d916abf700ac3617b4a8ceaecb578d065b522f62f5fcaa9 + dce_ast: 4d5788c85bb783f43d916abf700ac3617b4a8ceaecb578d065b522f62f5fcaa9 bytecode: bfac2c829066d9dc43d56bc1d4e4f592f42e576220f3e3cfd57b060b7bb17222 errors: "" warnings: "" diff --git a/tests/expectations/compiler/scalar/cmp.out b/tests/expectations/compiler/scalar/cmp.out index 21e8f6f8ce..c8dd2913a5 100644 --- a/tests/expectations/compiler/scalar/cmp.out +++ b/tests/expectations/compiler/scalar/cmp.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c8b681115588beca92c62d7c9918d14451418e73d201df8632c0dd8751551158 - type_checked_symbol_table: 0b6e278ec62fd6e5633c45366d0c3ee95cc11b02f8c90cc6cc8ce3e737f4b9c7 - unrolled_symbol_table: 0b6e278ec62fd6e5633c45366d0c3ee95cc11b02f8c90cc6cc8ce3e737f4b9c7 - initial_ast: 539aaf31d15dcce93051083101002d157e3ff4595bec26447bd4eb8f0717d233 - unrolled_ast: 539aaf31d15dcce93051083101002d157e3ff4595bec26447bd4eb8f0717d233 - ssa_ast: a3eea78aead1ea76c63ff52ac41fd281c58b9387ad640520e4fa80211674aa37 - flattened_ast: b29c17385a584763a6ee1ec051b14b1a353411acf884fe911b675015eac01030 - destructured_ast: 5d166a439e63c9bb3057ffda009fa45134f8c75f64e7052c50491e41dfea240e - inlined_ast: 5d166a439e63c9bb3057ffda009fa45134f8c75f64e7052c50491e41dfea240e - dce_ast: 6f96ba4f488f0c8ced160f431a8c05a70b9553d29a79bb3f29b83383d311b78f + - initial_symbol_table: c43e045cd9681a77520ab4b985019ea5ffbc45a7192312789a524f335875d98c + type_checked_symbol_table: 5550a64b912d049d17307b6de3f23244a6f84673b1d7144182d364dd277ed864 + unrolled_symbol_table: 5550a64b912d049d17307b6de3f23244a6f84673b1d7144182d364dd277ed864 + initial_ast: 965f40cc9b833ef8c27b9ddfa0f68a93626c6990a88f7b9c2625b904b365813d + unrolled_ast: 965f40cc9b833ef8c27b9ddfa0f68a93626c6990a88f7b9c2625b904b365813d + ssa_ast: 4c23cfd592d3b526c849a48287836d969d361d8fad88d968565009773a7045be + flattened_ast: 7c4266a7b1483d76df925900110283e4773acb70b521a5a05132a9fdd70283a4 + destructured_ast: 0204a9b9072471a440cf7e96f2c57ef0584b5a95b5456748e6b35a6cc00516df + inlined_ast: 0204a9b9072471a440cf7e96f2c57ef0584b5a95b5456748e6b35a6cc00516df + dce_ast: 62086d8b8233f22bdd3f97d41d033a686274269203aa9593c62551c7ed802620 bytecode: 09f008c4bdc1d4ba78adbf989c031779310385b96fa346f7979a810c7d7cb118 errors: "" warnings: "" diff --git a/tests/expectations/compiler/scalar/div_fail.out b/tests/expectations/compiler/scalar/div_fail.out index 6ff34c5283..6433003983 100644 --- a/tests/expectations/compiler/scalar/div_fail.out +++ b/tests/expectations/compiler/scalar/div_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372007]: Expected one type from `field, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `scalar`\n --> compiler-test:5:16\n |\n 5 | return a / b; // division not supported for scalar types.\n | ^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `field, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `scalar`\n --> compiler-test:5:16\n |\n 5 | return a / b; // division not supported for scalar types.\n | ^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/eq.out b/tests/expectations/compiler/scalar/eq.out index 83de6dcf8c..cf7da775bd 100644 --- a/tests/expectations/compiler/scalar/eq.out +++ b/tests/expectations/compiler/scalar/eq.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c8b681115588beca92c62d7c9918d14451418e73d201df8632c0dd8751551158 - type_checked_symbol_table: bf65a5d8f74af13711beb9d99e0a1852e1b7a78dee26baa54bff0b00e51666a1 - unrolled_symbol_table: bf65a5d8f74af13711beb9d99e0a1852e1b7a78dee26baa54bff0b00e51666a1 - initial_ast: 8f8e27b233d9ccb62bde4da815b1e42ef4408e912a69bf70f9a731d529167580 - unrolled_ast: 8f8e27b233d9ccb62bde4da815b1e42ef4408e912a69bf70f9a731d529167580 - ssa_ast: 82f18cd52e37ad22d4535a7a0c88ac9c1d013cf6a51b7413fe74a4f9507eda22 - flattened_ast: a76b0d15f1c2e052e085cc1025b6d9e4333daad9f7ef083375cc21aaa7716386 - destructured_ast: e0e303eb53d4f0c6b9e5608a3f3d2f9658704a584c839f76fec441fd33943578 - inlined_ast: e0e303eb53d4f0c6b9e5608a3f3d2f9658704a584c839f76fec441fd33943578 - dce_ast: 0f46f2e877dd128f165a8337d99fe3b8dc513a54a23776e66cc60d3212d69718 + - initial_symbol_table: c43e045cd9681a77520ab4b985019ea5ffbc45a7192312789a524f335875d98c + type_checked_symbol_table: d714fd6431e4c475a6cf9fd99817d9501cd7dc19f034b762af5e9a095aaa3374 + unrolled_symbol_table: d714fd6431e4c475a6cf9fd99817d9501cd7dc19f034b762af5e9a095aaa3374 + initial_ast: 106c9054b34ab376e36641fe96b97697231bf0106f2c793c497c7380854f1eb0 + unrolled_ast: 106c9054b34ab376e36641fe96b97697231bf0106f2c793c497c7380854f1eb0 + ssa_ast: c3cabbe6e87f2468f3349937077ceee1c0f14741c0a33be48e644c8fc1e422b3 + flattened_ast: 42a7060c050f1275651961f3c3070232d80ff00d42918265386c8b3c1091bb43 + destructured_ast: c2058c9bd03e0969249ff24aa31275c264a3d8cc89b9bb3e204edf9b83b55dd2 + inlined_ast: c2058c9bd03e0969249ff24aa31275c264a3d8cc89b9bb3e204edf9b83b55dd2 + dce_ast: d77e753345b8de4242a23cfe2dff28ee11297c63d7881cf1832bdceeb34588a0 bytecode: 5c71b9ef5f7774188b6b5be9f6ed558b26059dc5d008d590e2f6860076bcd893 errors: "" warnings: "" diff --git a/tests/expectations/compiler/scalar/operator_methods.out b/tests/expectations/compiler/scalar/operator_methods.out index 1d7d740fc5..6081dd97d7 100644 --- a/tests/expectations/compiler/scalar/operator_methods.out +++ b/tests/expectations/compiler/scalar/operator_methods.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c8b681115588beca92c62d7c9918d14451418e73d201df8632c0dd8751551158 - type_checked_symbol_table: 9d5c8fbb67d4f385be0fa3b61bf0e25cef51d26b680b49fa5169b689dd257ba4 - unrolled_symbol_table: 9d5c8fbb67d4f385be0fa3b61bf0e25cef51d26b680b49fa5169b689dd257ba4 - initial_ast: 815a7ccc93624da4c1093ac5fe358568f08ce0a5b8472050719a038bd411e696 - unrolled_ast: 815a7ccc93624da4c1093ac5fe358568f08ce0a5b8472050719a038bd411e696 - ssa_ast: b3af138e103befa40105ab86b0201ce810784e08019a9dd84237d8ffeff2aed6 - flattened_ast: 63a6b24269dcaf5974cf37001c800f940a261b23484c3616c6c2b84ef0be9fc7 - destructured_ast: 1e13b5299625b75dcba5cd044d13ae65867d96f71190397e742e7862c072291a - inlined_ast: 1e13b5299625b75dcba5cd044d13ae65867d96f71190397e742e7862c072291a - dce_ast: c3ab53e4935566100452018eab197fde77bfd5f1da645e90bd8a5952820bd27e + - initial_symbol_table: c43e045cd9681a77520ab4b985019ea5ffbc45a7192312789a524f335875d98c + type_checked_symbol_table: 695ed9f6c038fd58f40b666f785b9b617d27ff7c3b38604c381a01777d792f78 + unrolled_symbol_table: 695ed9f6c038fd58f40b666f785b9b617d27ff7c3b38604c381a01777d792f78 + initial_ast: 14b2da84e0df2cfbb423e5de057a523aedb68d42ce5bbe26bfa13f7426c611f4 + unrolled_ast: 14b2da84e0df2cfbb423e5de057a523aedb68d42ce5bbe26bfa13f7426c611f4 + ssa_ast: 526cea25a5610186047b60f6b50319683e9b61c46628ee67f9ea4ad2228b43ab + flattened_ast: 5ba87fb029fbf816e9c79e8a9052b6cc0e55a3bc8ab21384a1803ee1396eec2d + destructured_ast: 2736efb58a2bc1e41f44ed1756850421e0f9208c3692d1fdbc53b4ecde48cdaa + inlined_ast: 2736efb58a2bc1e41f44ed1756850421e0f9208c3692d1fdbc53b4ecde48cdaa + dce_ast: f20dd60d006732b1fd04c095cfa2f2d4150fc301817e04f7d3ed60ab37133989 bytecode: 36a164c1507612060ab556cee9d668118147a8f6bedb09e8eea30c9ce800f907 errors: "" warnings: "" diff --git a/tests/expectations/compiler/scalar/scalar.out b/tests/expectations/compiler/scalar/scalar.out index 923359ebcc..014bf945c9 100644 --- a/tests/expectations/compiler/scalar/scalar.out +++ b/tests/expectations/compiler/scalar/scalar.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: fae35d27eb52c97a3036ebc90aa38df15b01e481a14cb1c74753fcecf8e197b4 - type_checked_symbol_table: c6aa29ac24284254317b9031622603b7d86f8bb79fd2c5bd1a596343ad0f5256 - unrolled_symbol_table: c6aa29ac24284254317b9031622603b7d86f8bb79fd2c5bd1a596343ad0f5256 - initial_ast: 1da23c395a37ee6dc654d8253edf11a59c70213726d0c3c6dbf1884a1554afae - unrolled_ast: 1da23c395a37ee6dc654d8253edf11a59c70213726d0c3c6dbf1884a1554afae - ssa_ast: 296ef6e588d0ec2c347afe08fd8772c660bbabb3e8a0d8cc2591595b88d9a3e8 - flattened_ast: 84fc866e1a2da6579c24c583fb06b2e7c00c9f596a0da5d77acce6c1579d503d - destructured_ast: 3687ace37591cd8405a3ba3159f6308e671618cffbfa4de62e084d71de855088 - inlined_ast: 3687ace37591cd8405a3ba3159f6308e671618cffbfa4de62e084d71de855088 - dce_ast: 3687ace37591cd8405a3ba3159f6308e671618cffbfa4de62e084d71de855088 + - initial_symbol_table: b553b93473106b9a33369cfe3af68df0ffc4c19025c79cb6eb64fe285c90cc88 + type_checked_symbol_table: 978cb852211c012697b20978b55fc3bf5488324df4ac6aa3f677ca07ab699947 + unrolled_symbol_table: 978cb852211c012697b20978b55fc3bf5488324df4ac6aa3f677ca07ab699947 + initial_ast: 17762b5745e4f586ba8656f6df46b38b1fa6d4523c20e5375c6c6446b95caea0 + unrolled_ast: 17762b5745e4f586ba8656f6df46b38b1fa6d4523c20e5375c6c6446b95caea0 + ssa_ast: c100202b4a141efcc2bfecdea136ffbd258e5ad3b06084df023e7e8ae06e9893 + flattened_ast: 939e6ce8a64407f58bc629edb936c1c88f17ad417eae86de4444fe2c90a0a90e + destructured_ast: af6a76ba49312326e8f154d91ce1dd65b827503d8cdc3b5ef124948df1029c61 + inlined_ast: af6a76ba49312326e8f154d91ce1dd65b827503d8cdc3b5ef124948df1029c61 + dce_ast: af6a76ba49312326e8f154d91ce1dd65b827503d8cdc3b5ef124948df1029c61 bytecode: 2ef042858531dce1d8583ebee5f799243cabbf2327d245957c535a35c146aef9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/scalar/square_root_fail.out b/tests/expectations/compiler/scalar/square_root_fail.out index 11c9e0b2c7..e4823d7f8e 100644 --- a/tests/expectations/compiler/scalar/square_root_fail.out +++ b/tests/expectations/compiler/scalar/square_root_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372007]: Expected one type from `field`, but got `scalar`\n --> compiler-test:5:16\n |\n 5 | return a.square_root(); // square root not supported for scalar types.\n | ^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `field`, but got `scalar`\n --> compiler-test:5:16\n |\n 5 | return a.square_root(); // square root not supported for scalar types.\n | ^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/ternary.out b/tests/expectations/compiler/scalar/ternary.out index 4482a2ad7c..d48eeb7d8e 100644 --- a/tests/expectations/compiler/scalar/ternary.out +++ b/tests/expectations/compiler/scalar/ternary.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 41bf383186d73da21b2a4b131c8a6c247ef5cc5909ba087efc8d1edc8c006fab - type_checked_symbol_table: 3a017e4c2307c8cc3fa1443293fe3cc80ab72899d3644b2160277c9493646755 - unrolled_symbol_table: 3a017e4c2307c8cc3fa1443293fe3cc80ab72899d3644b2160277c9493646755 - initial_ast: 78849f44d4544f2bdbc41572d68175df072f3c95f6750449c2de7a52aefe5348 - unrolled_ast: 78849f44d4544f2bdbc41572d68175df072f3c95f6750449c2de7a52aefe5348 - ssa_ast: fc00e8ecc770a733ad98578b9b9cd1b7a9c0908f34452b55f21b059817428282 - flattened_ast: aa738c84857fd31aa1151af8d34f8f876c820192cb0c1c97f699c3a7dddab3c2 - destructured_ast: fcfae6f7e02ffa4a62d2a32b11bb7addab0c070fec639d88051ff3dae4ffc829 - inlined_ast: fcfae6f7e02ffa4a62d2a32b11bb7addab0c070fec639d88051ff3dae4ffc829 - dce_ast: fcfae6f7e02ffa4a62d2a32b11bb7addab0c070fec639d88051ff3dae4ffc829 + - initial_symbol_table: 4bbdf4d58a8db289fd38f6f38dd7264e28c9038dbff518e89ff44a96f5c35c66 + type_checked_symbol_table: b2b9970d95557c21a8896986919623efede43acc6906dab4d1e0012af4e99f52 + unrolled_symbol_table: b2b9970d95557c21a8896986919623efede43acc6906dab4d1e0012af4e99f52 + initial_ast: 3ce31af0d64087a8a0134c48c641bb2259bfd11b1eb564a823de12ba3d91d4a9 + unrolled_ast: 3ce31af0d64087a8a0134c48c641bb2259bfd11b1eb564a823de12ba3d91d4a9 + ssa_ast: a10854ef83bbc4173a74e2244366cca40ca71488ee9d3f6987dac39af8a6f532 + flattened_ast: 7f8bf194f0a86a6ee39466f6221aa61031e557306ae98744ba4434decd45db46 + destructured_ast: 10ef91129f93f965a6825c0a22cecb8f91be3e06f6ab37766d244a722d1bc432 + inlined_ast: 10ef91129f93f965a6825c0a22cecb8f91be3e06f6ab37766d244a722d1bc432 + dce_ast: 10ef91129f93f965a6825c0a22cecb8f91be3e06f6ab37766d244a722d1bc432 bytecode: 23e6cb091f2093299d0ea6100cce0c3af523c81111da120d423976348681eda9 errors: "" warnings: "" diff --git a/tests/expectations/compiler/signature/signature.out b/tests/expectations/compiler/signature/signature.out index 9c109597cb..ad3dfcea47 100644 --- a/tests/expectations/compiler/signature/signature.out +++ b/tests/expectations/compiler/signature/signature.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 2cf29ffa26bc8d616addb935d0ee04d797aa8d640338810de43925e7a50f0855 - type_checked_symbol_table: 13cffda27d5b5b7fed358e01eaa91f3a73a5239f90f5ecd5154b9c17ef352de6 - unrolled_symbol_table: 13cffda27d5b5b7fed358e01eaa91f3a73a5239f90f5ecd5154b9c17ef352de6 - initial_ast: 4b5523cb19aee939d95379542f2a4cd29c779d2ac3be58f585ddcc1cd7fadfca - unrolled_ast: 4b5523cb19aee939d95379542f2a4cd29c779d2ac3be58f585ddcc1cd7fadfca - ssa_ast: 95a044f87b1135829f8547f1f11336c21dc13601d24b6e5c16ec494512e53ece - flattened_ast: 6ab17bdac4eb566fc842d8bd950f8fb3750a68621c7b4a9268ab77786753b4c7 - destructured_ast: 0890148c689a44981cb7ced17f3c9a737a1dae3f515dc48d0ab760d62c8696b1 - inlined_ast: 0890148c689a44981cb7ced17f3c9a737a1dae3f515dc48d0ab760d62c8696b1 - dce_ast: 0273e67fade16763d7a82f64942f87a1365cdf9462c02e1a3a0b33d41ccc6273 + - initial_symbol_table: 3aeb26960968fa15062f10766099afa84f2265f769fb727e708e48fcff014bde + type_checked_symbol_table: b20b8b5c6834715bca3a7e5b1788b6992c2afa8b778d9784b34de0754b10c336 + unrolled_symbol_table: b20b8b5c6834715bca3a7e5b1788b6992c2afa8b778d9784b34de0754b10c336 + initial_ast: c2e020b3e33f6f7ef9f3f0b732272fd71520a021b282652be36d6014c4520a78 + unrolled_ast: c2e020b3e33f6f7ef9f3f0b732272fd71520a021b282652be36d6014c4520a78 + ssa_ast: c4dd615bf8426c11a6f266ff4ab4d57b67c545c0ad71d1e05ddff0ae5b1f6b29 + flattened_ast: 5d2edae76dcc0b39dad5e0a8e2c7cfbe59842a0374852e96215c673f110adae3 + destructured_ast: 882c39976184d1560674aa2c5ef14556142ba1fc32305575ec7a29acf5895a0d + inlined_ast: 882c39976184d1560674aa2c5ef14556142ba1fc32305575ec7a29acf5895a0d + dce_ast: 36cc80d8943de84e0f206c9fd1e6bafcd451b370a8ec82946cb3d9c4b0304037 bytecode: 9a042a6076c83bb376f10443261e56704956030b03df62da5d5f4742ac10c74d errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/assign.out b/tests/expectations/compiler/statements/assign.out index 8f6c9bd94b..6345ca4ccd 100644 --- a/tests/expectations/compiler/statements/assign.out +++ b/tests/expectations/compiler/statements/assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 5374fec5b1894904c170048e8f2b3cc4e15114370ed828a2d045eeef86326e75 - type_checked_symbol_table: fb30ac22bd93a5748578931476a917658eda4d14b42b1ff238d174b0927e4868 - unrolled_symbol_table: fb30ac22bd93a5748578931476a917658eda4d14b42b1ff238d174b0927e4868 - initial_ast: c9819f0ca6a08e515ef5aaa5e18bba6ea2941c889714107da62b0e6ca8c2e5f0 - unrolled_ast: c9819f0ca6a08e515ef5aaa5e18bba6ea2941c889714107da62b0e6ca8c2e5f0 - ssa_ast: e46fa2a0c768a7090e0815d9ad69931883936f09a71b8ba1d1a4ecf6343f0c54 - flattened_ast: d01949462375229692845ad98f1754f67659fa54d50ad2556f5d21e6bab20db6 - destructured_ast: 5f5abe2e59f02bffa0153d18a168a65366a4f88866665f53cbeab8f4d49fb412 - inlined_ast: 5f5abe2e59f02bffa0153d18a168a65366a4f88866665f53cbeab8f4d49fb412 - dce_ast: 5f5abe2e59f02bffa0153d18a168a65366a4f88866665f53cbeab8f4d49fb412 + - initial_symbol_table: b074cad2abce4a23d2308e9b1573c54d2c49f33f128959ce27a51aadc0a54478 + type_checked_symbol_table: d7837eb744b0a61d1ebcc33607b01131997d00f665fe76c58e9484632214609f + unrolled_symbol_table: d7837eb744b0a61d1ebcc33607b01131997d00f665fe76c58e9484632214609f + initial_ast: 666f28dd92874c01798fb79a849f6b3348718d98bcb6489f2dc788adeaa546f8 + unrolled_ast: 666f28dd92874c01798fb79a849f6b3348718d98bcb6489f2dc788adeaa546f8 + ssa_ast: ee68a43c0c2503602056b92946fcb4a1223058fdca12944fcc1dba2ca398fa73 + flattened_ast: ae1e4dfc95d49835691f53f8723202a31aa6d22468b56b32d76bcc9cb7ef8b04 + destructured_ast: 74431f37d48c1b7072ddca078e549fa895cbacf29959941881f042426ef82d4d + inlined_ast: 74431f37d48c1b7072ddca078e549fa895cbacf29959941881f042426ef82d4d + dce_ast: 74431f37d48c1b7072ddca078e549fa895cbacf29959941881f042426ef82d4d bytecode: 5487f807b82f67172b386aaf992fed06bcb134d1749202c409a300633a37a9bf errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/assign_ternary.out b/tests/expectations/compiler/statements/assign_ternary.out index fc0166651f..2803accacb 100644 --- a/tests/expectations/compiler/statements/assign_ternary.out +++ b/tests/expectations/compiler/statements/assign_ternary.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `boolean` but type `u32` was found\n --> compiler-test:5:30\n |\n 5 | let x: bool = true ? x: true;\n | ^\nError [EAST0372009]: variable `x` shadowed by\n --> compiler-test:5:13\n |\n 5 | let x: bool = true ? x: true;\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `u32`, but got `boolean`\n --> compiler-test:5:30\n |\n 5 | let x: bool = true ? x: true;\n | ^\nError [EAST0372009]: variable `x` shadowed by\n --> compiler-test:5:13\n |\n 5 | let x: bool = true ? x: true;\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/block.out b/tests/expectations/compiler/statements/block.out index 94ddcf3082..fb22ce5fc5 100644 --- a/tests/expectations/compiler/statements/block.out +++ b/tests/expectations/compiler/statements/block.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d8632a1a2fa69ff76cf59869e3f4f0fd0d3a67df7acd68e84dc620bd9c080cc - type_checked_symbol_table: 228dd0836cc718c05d84baa9a0f96a30b4bfac2d5fab86244c78f3dc410c7215 - unrolled_symbol_table: 228dd0836cc718c05d84baa9a0f96a30b4bfac2d5fab86244c78f3dc410c7215 - initial_ast: 55bbe227e9ce35afcdfcc1a3d0d4f8c0123c1d2ce7ba72d560b4643fb347869e - unrolled_ast: 55bbe227e9ce35afcdfcc1a3d0d4f8c0123c1d2ce7ba72d560b4643fb347869e - ssa_ast: 3316e522304ba18f6e91afd680427f73c4f7ca248947a5760ed8db6eb703f66d - flattened_ast: dcdb8161949ebf70c3465176a178df2a77b0fe30ea762d5e0c6a9375df5d6875 - destructured_ast: ba2b4ff1ea3f2e0d055bd92810a01d9b9dab20985b70aaa9c44fd39d63080e19 - inlined_ast: ba2b4ff1ea3f2e0d055bd92810a01d9b9dab20985b70aaa9c44fd39d63080e19 - dce_ast: ba2b4ff1ea3f2e0d055bd92810a01d9b9dab20985b70aaa9c44fd39d63080e19 + - initial_symbol_table: afe2cb0a5d27126ad8ee79c859b2821f3782ea4dbc63ee28264f7ec69f1a8072 + type_checked_symbol_table: 971839305fe78e6a8f2e630ba93a3c8b28bd6504f590b1764b43ced11ca2a96d + unrolled_symbol_table: 971839305fe78e6a8f2e630ba93a3c8b28bd6504f590b1764b43ced11ca2a96d + initial_ast: 9588c3aacde033f930721d4fe7190a95542ea81dfb210d8788b0008b92d266e5 + unrolled_ast: 9588c3aacde033f930721d4fe7190a95542ea81dfb210d8788b0008b92d266e5 + ssa_ast: 979c6662ca54091e56c5d3378cc440a194430c6921cf86bf97f57218f3129054 + flattened_ast: bacd3fa92fa99ea810ae69a9c11bde64c8ef5acc51f814e4255881e79e1995e6 + destructured_ast: 5740e4287335155878c3ea30962054486524d46f7750dfab637a9a889c84e9fc + inlined_ast: 5740e4287335155878c3ea30962054486524d46f7750dfab637a9a889c84e9fc + dce_ast: 5740e4287335155878c3ea30962054486524d46f7750dfab637a9a889c84e9fc bytecode: 9f2bbabd0f858db6e5f4e529fdd5e246023994bf27bbabe6dc1aa6bbf8bf5cfd errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/chain.out b/tests/expectations/compiler/statements/chain.out index 40fa38fb55..4750734934 100644 --- a/tests/expectations/compiler/statements/chain.out +++ b/tests/expectations/compiler/statements/chain.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1fae498dd24d5bb583ed1af029d658ab34145de9833396acdbac6db7a89280d5 - type_checked_symbol_table: bebbbabce241b025bd104dd8b4daad6744ab729b5289f5a7c17786856a779f9d - unrolled_symbol_table: bebbbabce241b025bd104dd8b4daad6744ab729b5289f5a7c17786856a779f9d - initial_ast: babc9ec745d6294d7d72fbc9876ecba9a063466ca638f4bc10fc32f467a394ec - unrolled_ast: babc9ec745d6294d7d72fbc9876ecba9a063466ca638f4bc10fc32f467a394ec - ssa_ast: 1ae012488be36a55c1fa7f963819552447d89f17e159dcb6b8664e19d50673cd - flattened_ast: 44521f0814c24d0767e28dfaaf7a91d83080d1e4634e913b8dae746c8ba92b18 - destructured_ast: a3adb76f60b591edeca6c4fc92a1fcf0af88963f589d76171198fcac88504e2c - inlined_ast: a3adb76f60b591edeca6c4fc92a1fcf0af88963f589d76171198fcac88504e2c - dce_ast: a8cdb4f72a236413085fb00428603df4dd83ce55978aeaff65ea0bba33aa1b55 + - initial_symbol_table: fa54adc40c266872e64ea99f07ccfd571ef9ba58bedf6bda1d1d4a6a763ef008 + type_checked_symbol_table: 0c04c128821edf982865fd52418ed7fb8367edbbb7b5c3da843ce6c4fdb995f0 + unrolled_symbol_table: 0c04c128821edf982865fd52418ed7fb8367edbbb7b5c3da843ce6c4fdb995f0 + initial_ast: dd5c1e368920a1645ec5ba2d14e4b5bab98a3cfe704f739675dbc1b64a72e942 + unrolled_ast: dd5c1e368920a1645ec5ba2d14e4b5bab98a3cfe704f739675dbc1b64a72e942 + ssa_ast: 19c2c903d8367365b51cec7b6211c8eb388432f85034a819ad2ee74fd967735e + flattened_ast: 3bdfc3c19ae2d2534b55f14220560272c92ee5c3cba62b97f62dff2664ec8321 + destructured_ast: fa4a69ff20b051050e7e999788ce1cda5f1d492ab754910dd9e91b1d8839513f + inlined_ast: fa4a69ff20b051050e7e999788ce1cda5f1d492ab754910dd9e91b1d8839513f + dce_ast: 43a5fb64a24558eec7ce6af5af09a89592a03ba5d3cf6f876cb074461a571670 bytecode: f6aaf7f7a13fb233511385db7479f2612e7a77734ee6a189f063bd3d33a7afaa errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/compare_diff_types_fail.out b/tests/expectations/compiler/statements/compare_diff_types_fail.out index ff28366f06..c61ea2311c 100644 --- a/tests/expectations/compiler/statements/compare_diff_types_fail.out +++ b/tests/expectations/compiler/statements/compare_diff_types_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:5:23\n |\n 5 | let b: bool = a == 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:6:23\n |\n 6 | let c: bool = a != 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:7:23\n |\n 7 | let d: bool = a > 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:8:23\n |\n 8 | let e: bool = a < 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:9:23\n |\n 9 | let f: bool = a >= 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:10:23\n |\n 10 | let g: bool = a <= 1u8;\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:11:26\n |\n 11 | let h: u32 = a * 1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:11:22\n |\n 11 | let h: u32 = a * 1u8;\n | ^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:5:23\n |\n 5 | let b: bool = a == 1u8;\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:6:23\n |\n 6 | let c: bool = a != 1u8;\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:7:23\n |\n 7 | let d: bool = a > 1u8;\n | ^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:8:23\n |\n 8 | let e: bool = a < 1u8;\n | ^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:9:23\n |\n 9 | let f: bool = a >= 1u8;\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:10:23\n |\n 10 | let g: bool = a <= 1u8;\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:11:26\n |\n 11 | let h: u32 = a * 1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:11:22\n |\n 11 | let h: u32 = a * 1u8;\n | ^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/compare_invalid_negates_fail.out b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out index e99b36af48..4028922785 100644 --- a/tests/expectations/compiler/statements/compare_invalid_negates_fail.out +++ b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:24\n |\n 5 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:29\n |\n 5 | let b: bool = -a == -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:24\n |\n 6 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:6:28\n |\n 6 | let c: bool = -a > -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:24\n |\n 7 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:7:28\n |\n 7 | let d: bool = -a < -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:24\n |\n 8 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:8:29\n |\n 8 | let e: bool = -a >= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:24\n |\n 9 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:9:29\n |\n 9 | let f: bool = -a <= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:22\n |\n 10 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:10:26\n |\n 10 | let g: u8 = -a * -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:11:22\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:11:27\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:24\n |\n 5 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:29\n |\n 5 | let b: bool = -a == -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:24\n |\n 6 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:6:28\n |\n 6 | let c: bool = -a > -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:24\n |\n 7 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:7:28\n |\n 7 | let d: bool = -a < -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:24\n |\n 8 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:8:29\n |\n 8 | let e: bool = -a >= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:24\n |\n 9 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:9:29\n |\n 9 | let f: bool = -a <= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:22\n |\n 10 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:10:26\n |\n 10 | let g: u8 = -a * -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:11:22\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:11:27\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/duplicate_variable.out b/tests/expectations/compiler/statements/duplicate_variable.out index de6c34f2a5..1a8f53e257 100644 --- a/tests/expectations/compiler/statements/duplicate_variable.out +++ b/tests/expectations/compiler/statements/duplicate_variable.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [EAST0372009]: variable `x` shadowed by\n --> compiler-test:6:12\n |\n 6 | \tlet x: bool = true;\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [EAST0372009]: variable `x` shadowed by\n --> compiler-test:6:12\n |\n 6 | \tlet x: bool = true;\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/expr_statement.out b/tests/expectations/compiler/statements/expr_statement.out index ef9c7b3665..50c1fa8c25 100644 --- a/tests/expectations/compiler/statements/expr_statement.out +++ b/tests/expectations/compiler/statements/expr_statement.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 975b9ae3b071c1afad9706f86978391ccffe7e40a702c14b44b3c3592e8e5b64 - type_checked_symbol_table: 4a6e3b9c87e655d7f25fd07daa98afa1d2016117fac9897b4309b1e83b723ceb - unrolled_symbol_table: 4a6e3b9c87e655d7f25fd07daa98afa1d2016117fac9897b4309b1e83b723ceb - initial_ast: c8324ded660c3d7d90ff497fac14dc9a2b01919d8321de60d6812578da9247c8 - unrolled_ast: c8324ded660c3d7d90ff497fac14dc9a2b01919d8321de60d6812578da9247c8 - ssa_ast: 6a90d6806611905cfd50308dafc1ab3f2fbcf127c11ad4e9464009ebee5ae260 - flattened_ast: f0cf3eb6ab68d348b1a1162f32bfe4b089c2c1e09481bcfdda3f69a5d855e340 - destructured_ast: 6f7817d5e28b19428bf0493ca47cf05ac155882e9511ba2279c9b1eabe521167 - inlined_ast: 6f7817d5e28b19428bf0493ca47cf05ac155882e9511ba2279c9b1eabe521167 - dce_ast: 6f7817d5e28b19428bf0493ca47cf05ac155882e9511ba2279c9b1eabe521167 + - initial_symbol_table: a17593c5fe6e593eb17cd9248b1ea2759bea7e38529a8d9eab3a26507dcbc2ba + type_checked_symbol_table: 3c0906c883bd0dc62d4cd4daf93e3404fc59dad1b54cadcf3b9f31464fc137c4 + unrolled_symbol_table: 3c0906c883bd0dc62d4cd4daf93e3404fc59dad1b54cadcf3b9f31464fc137c4 + initial_ast: 695e5a8369e3791643b8a2bdbd7158ce21274bf4cee9bf36f0c67b45fc522a5c + unrolled_ast: 695e5a8369e3791643b8a2bdbd7158ce21274bf4cee9bf36f0c67b45fc522a5c + ssa_ast: 231e2938a9a440ccf41ae088000c5db6aded838cd5deef4eaf03d0721a4da434 + flattened_ast: 995d782e3adb46c8ce7b10d3b5ca7adc05e5240a2c042f8c656999fb3df7ed70 + destructured_ast: b247c17755893a86df6dab60c53b1baac5522fb7a07e9904cf38fa0c6bb0b781 + inlined_ast: 40119f2215646d5873e4e9a8fd936cad2ed5d88c7b7658ac12a96c1245141a3a + dce_ast: 40119f2215646d5873e4e9a8fd936cad2ed5d88c7b7658ac12a96c1245141a3a bytecode: 401bb4388cffbc9e0df078a93024b669f7de284cfe97f564143486a27cb070ab errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/expr_statement_fail.out b/tests/expectations/compiler/statements/expr_statement_fail.out index 92c76bc3ec..6dcb37af3e 100644 --- a/tests/expectations/compiler/statements/expr_statement_fail.out +++ b/tests/expectations/compiler/statements/expr_statement_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:10:9\n |\n 10 | a + b;\n | ^^^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:11:9\n |\n 11 | flag ? a : b;\n | ^^^^^^^^^^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:12:9\n |\n 12 | foo.a;\n | ^^^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:13:9\n |\n 13 | Foo {\n 14 | a: a,\n 15 | };\n | ^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:16:9\n |\n 16 | a;\n | ^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:17:9\n |\n 17 | 1u8;\n | ^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:18:9\n |\n 18 | -i8;\n | ^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:19:9\n |\n 19 | ();\n | ^^^\n" + - "Error [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:10:9\n |\n 10 | a + b;\n | ^^^^^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:11:9\n |\n 11 | flag ? a : b;\n | ^^^^^^^^^^^^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:12:9\n |\n 12 | foo.a;\n | ^^^^^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:13:9\n |\n 13 | Foo {\n 14 | a: a,\n 15 | };\n | ^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:16:9\n |\n 16 | a;\n | ^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:17:9\n |\n 17 | 1u8;\n | ^^^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:18:9\n |\n 18 | -i8;\n | ^^^^\nError [ETYC0372053]: An expression statement must be a function call.\n --> compiler-test:19:9\n |\n 19 | ();\n | ^^^\n" diff --git a/tests/expectations/compiler/statements/iteration_basic.out b/tests/expectations/compiler/statements/iteration_basic.out index 9cdfc9e0f4..244c9815c8 100644 --- a/tests/expectations/compiler/statements/iteration_basic.out +++ b/tests/expectations/compiler/statements/iteration_basic.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1fae498dd24d5bb583ed1af029d658ab34145de9833396acdbac6db7a89280d5 - type_checked_symbol_table: a90ae24a99c0b0d0698389ad4273411f6c212b1c50c71208f218e632c2a21b99 - unrolled_symbol_table: 2bbcffef412f776a20b8af03906990df50557047c3160cc7b1307071f0cc1de5 - initial_ast: 345b478700f8b84a9c80c2bfc9b9dcbfbd276c751c22bb45e5cb211dc9fc5a19 - unrolled_ast: b597c7f97e377be8df0e2741fc1cbb3a076e6606ebf2b662a801687c742e6cf4 - ssa_ast: 0770f3ea728d224942e96ea0a221cb0af7d934fcabde6f1d2c16fefed291585c - flattened_ast: e3a196511c2cb7663df9e405de44d497ef4878a5d44ee4c69145c324249ed03e - destructured_ast: 8a07a78afb9ee28d147eaead238e9ef27b6b12287cc9564a437fbcdeba5b9ab1 - inlined_ast: 8a07a78afb9ee28d147eaead238e9ef27b6b12287cc9564a437fbcdeba5b9ab1 - dce_ast: 8a07a78afb9ee28d147eaead238e9ef27b6b12287cc9564a437fbcdeba5b9ab1 + - initial_symbol_table: fa54adc40c266872e64ea99f07ccfd571ef9ba58bedf6bda1d1d4a6a763ef008 + type_checked_symbol_table: 9b8ed003fa53fb576362bfce1cfdfc1fc8e6582ae1ccec93769f6f0d1b1173d2 + unrolled_symbol_table: 8b8ce15a9d48e6dd570224706d50b3bbd6ce2a8cf8761d01fc8a2f27129f2ee2 + initial_ast: e6a58adb6a3339abe8d2df887c6d57e725d47f12cbd0b6e29a65401ea4efb16d + unrolled_ast: b4dbbce03b27ab0e14811ed3026da6382885326772ffe5b05868c4201092409d + ssa_ast: 7f8fb36ddb3f8fd2d527845c9c96bd7f8c26aa6948ab11718077f8af2a7d9c52 + flattened_ast: 076f1330aca20626d9cb731a93291f49c3799710aef376043a3788ccb2a6aad8 + destructured_ast: e60a74e69fd7b3e4e643738e8a3eb529d302131acfda773d1a7b3e422b961b04 + inlined_ast: e60a74e69fd7b3e4e643738e8a3eb529d302131acfda773d1a7b3e422b961b04 + dce_ast: e60a74e69fd7b3e4e643738e8a3eb529d302131acfda773d1a7b3e422b961b04 bytecode: 41bf59ecf2ab2485e223b6501897613108441d2d881640d2d235f79201615cd3 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out b/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out index 6b7d188528..fda5ddd79e 100644 --- a/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out +++ b/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372008]: The value 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000 is not a valid `u64`\n --> compiler-test:7:28\n |\n 7 | for i:u64 in 0u64..1000000000000000000000000000000000000000000000000000000000000000000000000000000000000u64 {\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372008]: The value 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000 is not a valid `u64`\n --> compiler-test:7:28\n |\n 7 | for i:u64 in 0u64..1000000000000000000000000000000000000000000000000000000000000000000000000000000000000u64 {\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/iteration_nested.out b/tests/expectations/compiler/statements/iteration_nested.out index 9f8f94850d..063ea33c3d 100644 --- a/tests/expectations/compiler/statements/iteration_nested.out +++ b/tests/expectations/compiler/statements/iteration_nested.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 0c2aa56da16df0e29a010187b08bc18cfb647eb822f1b44886952fe8487ef354 - type_checked_symbol_table: f5a3ae1ebb60f7d02a461b87461e82bb79d7344473bbfefa2d8064cde8a0dd93 - unrolled_symbol_table: 3a41526d7ccdd70e3f3c8598846644bb54a177decaa67c999b04c7f3b5bb11e9 - initial_ast: bc0522a19ce5bdedae76d24bedf018c4b47d81e6e2dba499e2d24e03e45cdd76 - unrolled_ast: 836c792dbcd5c2180e37105dec0a41e1a7d93d24342e96082a2a3b6f9d6f3c08 - ssa_ast: 2a6bcc6a24f14c40c79f798bfe97036f0f22d1ee13e38efeb523e38c017d51aa - flattened_ast: b18303dbc527de1a2a8a8e2723dd8bd0e0d7a530a7808f8d47400a8dc4d9a88c - destructured_ast: 05dcda1290537b8da7dca2f487c7646c839712b9cd7432fdd565f4580e521953 - inlined_ast: 05dcda1290537b8da7dca2f487c7646c839712b9cd7432fdd565f4580e521953 - dce_ast: 05dcda1290537b8da7dca2f487c7646c839712b9cd7432fdd565f4580e521953 + - initial_symbol_table: 53f1abe40005232ac7216b5cab367ea788a8d211dec72066fde81467f01ed2d6 + type_checked_symbol_table: 145464a192e558ec4a12a82b3bf7baf40445f5df70fad78905cc194f7cb22cd9 + unrolled_symbol_table: 26a53d15132891cd14e47bd315a27d981e83c630385925ea5bd7dc97b9f8d045 + initial_ast: 3ee2d380b4ca167138945430ba47c2c89b595b6a306968288c552921782c8d65 + unrolled_ast: 23d8128102cfb6f6a06b39e7f48f5d8ce255aa8bb29e9b558ef1b528eba4c3bf + ssa_ast: 03745bd65b0abd7dbffcef023368276ddd12fe1c0db4ed963912072f653e61f7 + flattened_ast: 48e0bf023fef54c80326c4f69cab37c3f9a95b6f808077711f63f61fef00538c + destructured_ast: 74e546e73c312a38cee25cbb379d3a3596dd79f57d57dcc0f0f474618bb35767 + inlined_ast: 74e546e73c312a38cee25cbb379d3a3596dd79f57d57dcc0f0f474618bb35767 + dce_ast: 74e546e73c312a38cee25cbb379d3a3596dd79f57d57dcc0f0f474618bb35767 bytecode: e6fba28a70e1d844cc46f8e9dcf040658b9431f4fd49a4896dfc7ffb3ebfeb25 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out b/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out index 9f6c9ba18a..fc78e281be 100644 --- a/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out +++ b/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372081]: The loop bound must be a literal or a const\n --> compiler-test:11:28\n |\n 11 | for i:u64 in 0u64..amount {\n | ^^^^^^\n" + - "Error [ETYC0372071]: The loop bound must be a literal or a const\n --> compiler-test:11:28\n |\n 11 | for i:u64 in 0u64..amount {\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/statements/loop_returns_fail.out b/tests/expectations/compiler/statements/loop_returns_fail.out index d7ec6c544b..bdf5155944 100644 --- a/tests/expectations/compiler/statements/loop_returns_fail.out +++ b/tests/expectations/compiler/statements/loop_returns_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372026]: Loop body contains a return statement or always returns.\n --> compiler-test:6:9\n |\n 6 | for i: u32 in 0u32..9u32 {\n 7 | return false;\n 8 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372026]: Loop body contains a return statement or always returns.\n --> compiler-test:10:9\n |\n 10 | for i: u32 in 0u32..9u32 {\n 11 | if (x == 0u32) {\n 12 | return false;\n 13 | } else {\n 14 | return true;\n 15 | }\n 16 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372026]: Loop body contains a return statement or always returns.\n --> compiler-test:6:9\n |\n 6 | for i: u32 in 0u32..9u32 {\n 7 | return false;\n 8 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372026]: Loop body contains a return statement or always returns.\n --> compiler-test:10:9\n |\n 10 | for i: u32 in 0u32..9u32 {\n 11 | if (x == 0u32) {\n 12 | return false;\n 13 | } else {\n 14 | return true;\n 15 | }\n 16 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/multiple_returns.out b/tests/expectations/compiler/statements/multiple_returns.out index 50367a572c..a7e5deec41 100644 --- a/tests/expectations/compiler/statements/multiple_returns.out +++ b/tests/expectations/compiler/statements/multiple_returns.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1fae498dd24d5bb583ed1af029d658ab34145de9833396acdbac6db7a89280d5 - type_checked_symbol_table: e7d8107eff994b91baa9dbabce36ad57a25e8c0c4cda53d6d732ed55009fb024 - unrolled_symbol_table: e7d8107eff994b91baa9dbabce36ad57a25e8c0c4cda53d6d732ed55009fb024 - initial_ast: 18525ab30bc32efe2ae28cda3c8e1bce6f825af144b60ef937b0459438b54875 - unrolled_ast: 18525ab30bc32efe2ae28cda3c8e1bce6f825af144b60ef937b0459438b54875 - ssa_ast: 4f25337bf5c90f169f1e104b9f1b2a7a889ae872f8e073c2ea5dff5b28dc73b3 - flattened_ast: 4c36ea89bec87c580bb8963dd3099525fa4c8c80547cdf588973186837addc24 - destructured_ast: 7bda7bdeb35967432de3245c2fe0cb75188e387246fc10be94866c3c49b322e5 - inlined_ast: 7bda7bdeb35967432de3245c2fe0cb75188e387246fc10be94866c3c49b322e5 - dce_ast: 7bda7bdeb35967432de3245c2fe0cb75188e387246fc10be94866c3c49b322e5 + - initial_symbol_table: fa54adc40c266872e64ea99f07ccfd571ef9ba58bedf6bda1d1d4a6a763ef008 + type_checked_symbol_table: 6cfcd981e9de754bc9d7f13d94334cc49b61fede8820affdedc243871be2a520 + unrolled_symbol_table: 6cfcd981e9de754bc9d7f13d94334cc49b61fede8820affdedc243871be2a520 + initial_ast: 0204c83754e08c8eab1e47cfcff8a62e797f0b7e75f900bc8223c5348aa27a40 + unrolled_ast: 0204c83754e08c8eab1e47cfcff8a62e797f0b7e75f900bc8223c5348aa27a40 + ssa_ast: 66dcd1f0724cc17d771936999406e21105f053c764c882c73127df36d7e54a29 + flattened_ast: d3f2e524a2e9f3907263b3cad5e4597f4468b0139c372468efcbaecd315227b7 + destructured_ast: c2a352c5cd9dcf980e08f14f7dc86db7dff2c1ebc4cb0fcc6a2beddabc16f705 + inlined_ast: c2a352c5cd9dcf980e08f14f7dc86db7dff2c1ebc4cb0fcc6a2beddabc16f705 + dce_ast: c2a352c5cd9dcf980e08f14f7dc86db7dff2c1ebc4cb0fcc6a2beddabc16f705 bytecode: e8fad70723ee17dc768faab9e2ee64ec338b6b1bd4ec1d9350791665c1abd697 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out index 55a7b7629d..9e0cba2ec1 100644 --- a/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out +++ b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:6:9\n |\n 6 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:7:9\n |\n 7 | return double;\n | ^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:6:9\n |\n 6 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:7:9\n |\n 7 | return double;\n | ^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/mutate.out b/tests/expectations/compiler/statements/mutate.out index 66e0f3844f..aa9addbb99 100644 --- a/tests/expectations/compiler/statements/mutate.out +++ b/tests/expectations/compiler/statements/mutate.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1fae498dd24d5bb583ed1af029d658ab34145de9833396acdbac6db7a89280d5 - type_checked_symbol_table: 29920e123c0aee8b99a83a9db16ea20ed51abe478aa1798ef97bb47841c95a15 - unrolled_symbol_table: 29920e123c0aee8b99a83a9db16ea20ed51abe478aa1798ef97bb47841c95a15 - initial_ast: c0d2dec770fc35bb87730440aa9fcf3a6e7fa3d38889b770be77305bf680ede3 - unrolled_ast: c0d2dec770fc35bb87730440aa9fcf3a6e7fa3d38889b770be77305bf680ede3 - ssa_ast: 432264ef6ab5768b4ee45acbac39586b81e077f6b28bd25bfd3a538dc1f4970c - flattened_ast: 4ed2e36301247617bca50934fc7c7127e426c4b2b72d9af8ee908ca4e6d2aed5 - destructured_ast: 190cef0420cdcd006047a23b8c3a5af26012122faccb1de15e79415ece9a23ed - inlined_ast: 190cef0420cdcd006047a23b8c3a5af26012122faccb1de15e79415ece9a23ed - dce_ast: 53c5782337418054f8b904145feea6b6e7f51b6930bf3ab7da73097adeb97984 + - initial_symbol_table: fa54adc40c266872e64ea99f07ccfd571ef9ba58bedf6bda1d1d4a6a763ef008 + type_checked_symbol_table: 2f2b128267a06d54643510fe36966ea8b8076d80f4b34ba39617786cef68daab + unrolled_symbol_table: 2f2b128267a06d54643510fe36966ea8b8076d80f4b34ba39617786cef68daab + initial_ast: 9c413137b48e0cb1b89c5501387eb5400b86b4d6b53af5591cca28be1913bd6c + unrolled_ast: 9c413137b48e0cb1b89c5501387eb5400b86b4d6b53af5591cca28be1913bd6c + ssa_ast: 570e607c270d8c04a96202d5f1fe65e03bb45e31064ded1bdf95f84db8f4696c + flattened_ast: c4abfe8049d4f5a95567f11e8fe4d4d6072a15f0766a36f7dc737c0c1dbee6c3 + destructured_ast: fb9b3de56bf27b8e470bbf99ef4a9c52ebf68b9c0cc160a2bf3242a1914fc6a9 + inlined_ast: fb9b3de56bf27b8e470bbf99ef4a9c52ebf68b9c0cc160a2bf3242a1914fc6a9 + dce_ast: 755a3cf846c6c6cc7d5f894f20be0192f1842ff449210bf36a0e6bb2ae68b370 bytecode: 4f4c5c377fed78feede8ee754c9f838f449f8d00cf771b2bb65884e876f90b7e errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/non_existant_var_exp_fail.out b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out index 36636ea0fa..3bab4e33c5 100644 --- a/tests/expectations/compiler/statements/non_existant_var_exp_fail.out +++ b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372005]: Unknown variable `z`\n --> compiler-test:5:23\n |\n 5 | \tlet b: u8 = 1u8**z;\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372005]: Unknown variable `z`\n --> compiler-test:5:23\n |\n 5 | \tlet b: u8 = 1u8**z;\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out index f6c9b9dca7..b7f08c019f 100644 --- a/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out +++ b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372005]: Unknown variable `x`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372005]: Unknown variable `z`\n --> compiler-test:5:20\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Could not determine the type of `x`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Could not determine the type of `z`\n --> compiler-test:5:20\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372005]: Unknown variable `x`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372005]: Unknown variable `z`\n --> compiler-test:5:20\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Could not determine the type of `x`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Could not determine the type of `z`\n --> compiler-test:5:20\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/operations/add_assign.out b/tests/expectations/compiler/statements/operations/add_assign.out index 157ccd7d04..ef0def11d0 100644 --- a/tests/expectations/compiler/statements/operations/add_assign.out +++ b/tests/expectations/compiler/statements/operations/add_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: 3aa74a26d1b5a7100d693dae36b0fc501a1cb4fdd4fe642b96487cf355634ae3 - unrolled_ast: 3aa74a26d1b5a7100d693dae36b0fc501a1cb4fdd4fe642b96487cf355634ae3 - ssa_ast: 9d915654a1161e75159760a4b12b364ba1ee8b02c98516a6ee171a8c9057bcf7 - flattened_ast: bba1d01226b6f470e27f12bda3876b6d9c4de3547f8f93393fed89fef13075b6 - destructured_ast: 5467db9bb148c4d1d2dfc22c6d37df59180af3edcf96987a0b1134b27b5b9814 - inlined_ast: 5467db9bb148c4d1d2dfc22c6d37df59180af3edcf96987a0b1134b27b5b9814 - dce_ast: 5467db9bb148c4d1d2dfc22c6d37df59180af3edcf96987a0b1134b27b5b9814 + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: bef022ae21a8ae5eefeb178988c18aa7cb7fcfeda53add6821f05d25221dde84 + unrolled_ast: bef022ae21a8ae5eefeb178988c18aa7cb7fcfeda53add6821f05d25221dde84 + ssa_ast: 4b510a5b2a9c7af60d9b3fda3bf31213bd8ec3bf51a63931874ce44b0e7a1f75 + flattened_ast: d9cc7523ad47d38c0fe05b67fda9c4a81dfe54ad9e40628e621e00ae9c032e63 + destructured_ast: bfd90da4442e9eebef0c0ab2dc6a8fac33b93ea5592c91332a4c27c07107e5af + inlined_ast: bfd90da4442e9eebef0c0ab2dc6a8fac33b93ea5592c91332a4c27c07107e5af + dce_ast: bfd90da4442e9eebef0c0ab2dc6a8fac33b93ea5592c91332a4c27c07107e5af bytecode: f9bb06bbdb06665d260633e11e377d5b2a428e169220f31b9ad9cd8ac8c94f6d errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/and_assign.out b/tests/expectations/compiler/statements/operations/and_assign.out index 1880c90db3..eda99ba1fc 100644 --- a/tests/expectations/compiler/statements/operations/and_assign.out +++ b/tests/expectations/compiler/statements/operations/and_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 24eba50d689b587f5698545b6077712c3d1cbaec9b43599eef9d9a6d33284e23 - type_checked_symbol_table: 05f3297efc3d7d3e916a3e59dbc3ac68ef3defba85d448dd85b36499bce55d52 - unrolled_symbol_table: 05f3297efc3d7d3e916a3e59dbc3ac68ef3defba85d448dd85b36499bce55d52 - initial_ast: 608ff467a97369f6811d0722055432a8497fee590b89cb85bcd3afd31fb64a11 - unrolled_ast: 608ff467a97369f6811d0722055432a8497fee590b89cb85bcd3afd31fb64a11 - ssa_ast: d86ea65a36b8f48abb9a665d8956c7642e5b445855e37c860ec8c69e27364b9f - flattened_ast: 0a49b0a576a9fd6268a14330cc5e92bc17017d6f0daea2cb05549dca00796142 - destructured_ast: cc031769e6396e830e75aa52d5a2f5dd813e3ff115a77be68155e3efc9cbca0a - inlined_ast: cc031769e6396e830e75aa52d5a2f5dd813e3ff115a77be68155e3efc9cbca0a - dce_ast: cc031769e6396e830e75aa52d5a2f5dd813e3ff115a77be68155e3efc9cbca0a + - initial_symbol_table: 8313bfff3b5e7e1fce281ec46bd51d88911ae4f827ac1edc95475cbf133957a3 + type_checked_symbol_table: c25ee4fd12606905b043bd9330bea9125df2c2fc920a04b7facf7b670ffbba1e + unrolled_symbol_table: c25ee4fd12606905b043bd9330bea9125df2c2fc920a04b7facf7b670ffbba1e + initial_ast: 8b3a29a59f47ac1baa5c744fc8523514d952469ccb4a2f9fc34009d8d42f600b + unrolled_ast: 8b3a29a59f47ac1baa5c744fc8523514d952469ccb4a2f9fc34009d8d42f600b + ssa_ast: cf08639011c7817b75642c2a59376effd7a5973945d97b7c7d978c077d5b2847 + flattened_ast: 0ab49855efbcec532547e888e1d1af0ec589c8b4a57d017e5ea93e6e9a38d24a + destructured_ast: 9cd10858178862747d0dc3b735a52a0da6b813f681c31cefd0f8e4e8d326a423 + inlined_ast: 9cd10858178862747d0dc3b735a52a0da6b813f681c31cefd0f8e4e8d326a423 + dce_ast: 9cd10858178862747d0dc3b735a52a0da6b813f681c31cefd0f8e4e8d326a423 bytecode: 7b9e392bda5b29d56ff94dc3eaefe68313d852336209db998714308d19ea6102 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/bitand_assign.out b/tests/expectations/compiler/statements/operations/bitand_assign.out index 1c77049018..42d9108fb4 100644 --- a/tests/expectations/compiler/statements/operations/bitand_assign.out +++ b/tests/expectations/compiler/statements/operations/bitand_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: c7878762ae58834cbf3ec6c0b75e66f24b00ec0a9d548cfaa5a828e26dc072ce - unrolled_ast: c7878762ae58834cbf3ec6c0b75e66f24b00ec0a9d548cfaa5a828e26dc072ce - ssa_ast: 47ef7f8591004f6415257a7c248adf944a7501b4c9d939104cebadaa4d93625e - flattened_ast: 9579a7a5db8435028765288e13e9b3b9bef5e4a9caeab3f32c19f492c9c38b70 - destructured_ast: 69676ff05de822f6d69680291113bbaa61e671779e983a7878a21a1c5d5e4fa2 - inlined_ast: 69676ff05de822f6d69680291113bbaa61e671779e983a7878a21a1c5d5e4fa2 - dce_ast: 69676ff05de822f6d69680291113bbaa61e671779e983a7878a21a1c5d5e4fa2 + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: 439c0092796f3eaa7152ad822de67a1ddb1ba763f0ab5ea25003d8e19467adfb + unrolled_ast: 439c0092796f3eaa7152ad822de67a1ddb1ba763f0ab5ea25003d8e19467adfb + ssa_ast: 1c8a89b238249c1962e52cac9c41a65fb570ac72d49f02f8cee7daaf03a3e43c + flattened_ast: 8f2fc9c537ad604d59a59f96410dfacdba33983c8a36a2f7a5d784e3d6293960 + destructured_ast: 9c44bbfc40a0586c62a8d24288081527e5d560d6afc986acb2020119f602738c + inlined_ast: 9c44bbfc40a0586c62a8d24288081527e5d560d6afc986acb2020119f602738c + dce_ast: 9c44bbfc40a0586c62a8d24288081527e5d560d6afc986acb2020119f602738c bytecode: 6dab0d771ad5e0b95b5ded8ffb214368621dc0ee9434113549f85abd0eb6c626 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/bitor_assign.out b/tests/expectations/compiler/statements/operations/bitor_assign.out index 700d16d1b9..1ef71c3c92 100644 --- a/tests/expectations/compiler/statements/operations/bitor_assign.out +++ b/tests/expectations/compiler/statements/operations/bitor_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: 32f7f5943fd839050aad456e1c9638c5b02fc2bcedcf3cec7c88cf5359c4dd1a - unrolled_ast: 32f7f5943fd839050aad456e1c9638c5b02fc2bcedcf3cec7c88cf5359c4dd1a - ssa_ast: d1eed9a5b07a3065e046b9d6e75065e612c2cf14351e06c3e90ad36f54dd214e - flattened_ast: 8fdd125ff116abefe8938587ed24901624f60316b63f5f93c4ba17b6bec37795 - destructured_ast: 7d4b565bee7df2d62c8dab86547b969307997103f919db11f1ad34a23e8c3de3 - inlined_ast: 7d4b565bee7df2d62c8dab86547b969307997103f919db11f1ad34a23e8c3de3 - dce_ast: 7d4b565bee7df2d62c8dab86547b969307997103f919db11f1ad34a23e8c3de3 + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: 1c2b8860b4d4e75f591cecb0ceeb452a327fd7b678643f8a58b7b395575db862 + unrolled_ast: 1c2b8860b4d4e75f591cecb0ceeb452a327fd7b678643f8a58b7b395575db862 + ssa_ast: 88da330dca5d087aa14365b7b5478370f3149599340faa0d13202aea1ffd069e + flattened_ast: 57df6b278e0622f508a04d126f31f82c9b43782eb4770a72ba1699954752c428 + destructured_ast: 72576608e77d54c0e0775c2442dc0794d02e80f3d7dc1578b9c7ed2c895cd97c + inlined_ast: 72576608e77d54c0e0775c2442dc0794d02e80f3d7dc1578b9c7ed2c895cd97c + dce_ast: 72576608e77d54c0e0775c2442dc0794d02e80f3d7dc1578b9c7ed2c895cd97c bytecode: f551499188e28449b06b9aa17ef8af4d1daedbf0ac75484b5e3f8e81836ffb63 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/bitxor_assign.out b/tests/expectations/compiler/statements/operations/bitxor_assign.out index c828bfd3ba..cfca7a435b 100644 --- a/tests/expectations/compiler/statements/operations/bitxor_assign.out +++ b/tests/expectations/compiler/statements/operations/bitxor_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: cc6c3aa487fdea72dd6a3ecbd7e42525948a21b623c5050a94ff4e7f39cc9062 - unrolled_ast: cc6c3aa487fdea72dd6a3ecbd7e42525948a21b623c5050a94ff4e7f39cc9062 - ssa_ast: 6e39657fa42088be4516a4c63cf95587f7148b4547fae893b87d668c313c0b76 - flattened_ast: 8dbf8ec8afde6b6124b75b559a3a54e0ac3150a0bd6a2fb67b0d069648913207 - destructured_ast: 176c336857288984eb414db8a76d80ba7b8c76715a88b8ebc97a8e27b699b23a - inlined_ast: 176c336857288984eb414db8a76d80ba7b8c76715a88b8ebc97a8e27b699b23a - dce_ast: 176c336857288984eb414db8a76d80ba7b8c76715a88b8ebc97a8e27b699b23a + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: e0d2456f917b2778b7f9c52fdd2f4a29b8aff11abdd062d10912ffd045e42617 + unrolled_ast: e0d2456f917b2778b7f9c52fdd2f4a29b8aff11abdd062d10912ffd045e42617 + ssa_ast: 5535213f8688d6639c9fd3e4c61b83b9cdde408b96cea2976969ba7f1efe18f2 + flattened_ast: 9a3aa04a195e6fec68f57836ce0cfade448b41bf376f6aa6eedc3beb96515b97 + destructured_ast: 2efaff38f04871a6762d8d891f6390c0c8cf753448c5978c289e741cec8847aa + inlined_ast: 2efaff38f04871a6762d8d891f6390c0c8cf753448c5978c289e741cec8847aa + dce_ast: 2efaff38f04871a6762d8d891f6390c0c8cf753448c5978c289e741cec8847aa bytecode: cc7cc1d77829ab20a01838d82d9d75e2f4d9b5231667aeeb7517083740d299f5 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/div_assign.out b/tests/expectations/compiler/statements/operations/div_assign.out index 90c2288702..ba7c3eed5b 100644 --- a/tests/expectations/compiler/statements/operations/div_assign.out +++ b/tests/expectations/compiler/statements/operations/div_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: 05fdfab4d31df7f4fdc1d25f5304fc647defb98fb6791d58ae2ef36d89c5e2a3 - unrolled_ast: 05fdfab4d31df7f4fdc1d25f5304fc647defb98fb6791d58ae2ef36d89c5e2a3 - ssa_ast: 93331ea11ee7e593766cf96adab480699c71dcf6ab71cfcdbbc26fb800c81282 - flattened_ast: 5590ddaca23d07d0a4f075e02691fe1fad1a1b1eaaead8f9543998228329b07e - destructured_ast: 8e8ce6ca224daafc661d36d2cd51214ef6152b329e9fcefb2f0b4a2d749d151e - inlined_ast: 8e8ce6ca224daafc661d36d2cd51214ef6152b329e9fcefb2f0b4a2d749d151e - dce_ast: 8e8ce6ca224daafc661d36d2cd51214ef6152b329e9fcefb2f0b4a2d749d151e + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: e23510a7f5e69465ee05fc2dd736fceccd12842e17ef6a8b726f5ea14486fdfe + unrolled_ast: e23510a7f5e69465ee05fc2dd736fceccd12842e17ef6a8b726f5ea14486fdfe + ssa_ast: bcd0ca4c3fca426ebb497c0974cd90b2d2b49fefb0a68ed86b0af43d8dea99da + flattened_ast: db286eaaa9f80d8753d0a0dfa0d09702a08762aad39f939e3ce1203386b9d25d + destructured_ast: cce2aceb686d8931b6bc36580ca8fef2bc74d27a5158334989087cd36c6adb4e + inlined_ast: cce2aceb686d8931b6bc36580ca8fef2bc74d27a5158334989087cd36c6adb4e + dce_ast: cce2aceb686d8931b6bc36580ca8fef2bc74d27a5158334989087cd36c6adb4e bytecode: 852a26ba7ae67c2f2cdf00814963c66786bd383cb645b9740b782cb07e747c41 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/mul_assign.out b/tests/expectations/compiler/statements/operations/mul_assign.out index aa2434b960..71f06b3651 100644 --- a/tests/expectations/compiler/statements/operations/mul_assign.out +++ b/tests/expectations/compiler/statements/operations/mul_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: b623057842158014b5c75ca2567d77a69391f55e227faf8250270579555fd640 - unrolled_ast: b623057842158014b5c75ca2567d77a69391f55e227faf8250270579555fd640 - ssa_ast: e81b0c7d608eccd1101192ee4826ecdfb72b143a1fc596e7fdeeccbe7cc62c4c - flattened_ast: d7a5b5c66db10b34700c61dfe636c7ee41a228596a0a679409d3033a310d3944 - destructured_ast: f563d1bde7dabe1e42c993500e39983cbb1162897b4536e77f124845ff7d9b41 - inlined_ast: f563d1bde7dabe1e42c993500e39983cbb1162897b4536e77f124845ff7d9b41 - dce_ast: f563d1bde7dabe1e42c993500e39983cbb1162897b4536e77f124845ff7d9b41 + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: 42b9ef1a31e0ab477199d551003ea4cddc38e62d7250aa9a93ef41d367bc318c + unrolled_ast: 42b9ef1a31e0ab477199d551003ea4cddc38e62d7250aa9a93ef41d367bc318c + ssa_ast: 5a99a7531c416be3144f85b8044290975286eaf616a51e93c476d00547ecb901 + flattened_ast: e35e1d6d56049b38e2aef26f6f0a24e4f00e206e4da279fd91e2ff782411971f + destructured_ast: 3ff0936b13fa245f2ba480e881da12f057a29ea3724e4b0165fee8b06cf14447 + inlined_ast: 3ff0936b13fa245f2ba480e881da12f057a29ea3724e4b0165fee8b06cf14447 + dce_ast: 3ff0936b13fa245f2ba480e881da12f057a29ea3724e4b0165fee8b06cf14447 bytecode: e458b602541d030c368e1e498d1dae92b0a26e9505a02ca3cd93858ca3bdb277 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/or_assign.out b/tests/expectations/compiler/statements/operations/or_assign.out index ebc6420ad1..c5b6d03bfd 100644 --- a/tests/expectations/compiler/statements/operations/or_assign.out +++ b/tests/expectations/compiler/statements/operations/or_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 24eba50d689b587f5698545b6077712c3d1cbaec9b43599eef9d9a6d33284e23 - type_checked_symbol_table: 05f3297efc3d7d3e916a3e59dbc3ac68ef3defba85d448dd85b36499bce55d52 - unrolled_symbol_table: 05f3297efc3d7d3e916a3e59dbc3ac68ef3defba85d448dd85b36499bce55d52 - initial_ast: eeaeb066abef7f365cedd2a08c2ad959bb100b8ae663f33ebdf22b6416d6e90d - unrolled_ast: eeaeb066abef7f365cedd2a08c2ad959bb100b8ae663f33ebdf22b6416d6e90d - ssa_ast: fe136cae1db70bedc3da0719d66dbe4c6d49750fc1f89046f5d393d08fdf7e82 - flattened_ast: 0055309ade0b0491746ac11dff4d3a0a954b3a6066ed7b78d3ed879e74e8aeec - destructured_ast: f4c15b2f89975719d7fb796b52a3061e03e7fc18785898b4c3e723c15f3b3e4c - inlined_ast: f4c15b2f89975719d7fb796b52a3061e03e7fc18785898b4c3e723c15f3b3e4c - dce_ast: f4c15b2f89975719d7fb796b52a3061e03e7fc18785898b4c3e723c15f3b3e4c + - initial_symbol_table: 8313bfff3b5e7e1fce281ec46bd51d88911ae4f827ac1edc95475cbf133957a3 + type_checked_symbol_table: c25ee4fd12606905b043bd9330bea9125df2c2fc920a04b7facf7b670ffbba1e + unrolled_symbol_table: c25ee4fd12606905b043bd9330bea9125df2c2fc920a04b7facf7b670ffbba1e + initial_ast: 24ca36fbb2d08eac1f499871b5ac4290c412c954398bca6bcb09e13a5bc4c668 + unrolled_ast: 24ca36fbb2d08eac1f499871b5ac4290c412c954398bca6bcb09e13a5bc4c668 + ssa_ast: 4f5d8c82a82d00f071766590e3696db0416f00feb0ccb380c10fdf90032e7215 + flattened_ast: a08f85e7b886d01459d901d78a37f76b3755a0ce8703b2013504f1d9b113a92d + destructured_ast: 4e01c648033f50874aac530e0c9ef587bb739e8b6421978307b18950f5bbd1c7 + inlined_ast: 4e01c648033f50874aac530e0c9ef587bb739e8b6421978307b18950f5bbd1c7 + dce_ast: 4e01c648033f50874aac530e0c9ef587bb739e8b6421978307b18950f5bbd1c7 bytecode: 6d6695b67fa8f1cff43f2d00c6ce7e118342fb3e0bd05008d952820bf0e6dca8 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/pow_assign.out b/tests/expectations/compiler/statements/operations/pow_assign.out index e3895050f0..e4cbb4a661 100644 --- a/tests/expectations/compiler/statements/operations/pow_assign.out +++ b/tests/expectations/compiler/statements/operations/pow_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 19ef8140ce3d7880552e50ccbbaabe5ed3f9e8703a0f2c362220426df8923979 - type_checked_symbol_table: 9bca93783ba0e5b7ff140b9b7976ff26ece45aaceb48fed00b59a7bc9deb5807 - unrolled_symbol_table: 9bca93783ba0e5b7ff140b9b7976ff26ece45aaceb48fed00b59a7bc9deb5807 - initial_ast: 53ef9b9422f163a44da0744ded75d37b16cac31855c3034dd171eba677fec590 - unrolled_ast: 53ef9b9422f163a44da0744ded75d37b16cac31855c3034dd171eba677fec590 - ssa_ast: b825b1792593bcee74ea81212c7306d549331ed607b8038862a5c426cc0b878f - flattened_ast: cba526287740583432e084115aa4eecad973c85a96efaf14786ef2ce0bbc2f78 - destructured_ast: 1effb89804f0d5f9c9c3d54d4293ddd6727fcc368f278ae56c2b2ae1e0dd7eb1 - inlined_ast: 1effb89804f0d5f9c9c3d54d4293ddd6727fcc368f278ae56c2b2ae1e0dd7eb1 - dce_ast: 1effb89804f0d5f9c9c3d54d4293ddd6727fcc368f278ae56c2b2ae1e0dd7eb1 + - initial_symbol_table: 97aa75659b0b5d4a0aff8760464842832f7c324919428111a6079eaca988df17 + type_checked_symbol_table: d7d64b39630438fb751ee9254521ab09a2c58ee89b4c76c96ce35bd23e49c0a6 + unrolled_symbol_table: d7d64b39630438fb751ee9254521ab09a2c58ee89b4c76c96ce35bd23e49c0a6 + initial_ast: 007177aed4978a0f73c4bbf6934d5b50db45b106abcad678f44289b001b0530d + unrolled_ast: 007177aed4978a0f73c4bbf6934d5b50db45b106abcad678f44289b001b0530d + ssa_ast: c8512818ab46c6757469e1b75b5a8ca2272f4234a590659502f2359b61639ba3 + flattened_ast: aa39b478b4925ed9438f814970352afffb70f3091647d08d02c1cd7edd0c2b5e + destructured_ast: 1fd2dd2271e2574fe4c11f3749981807f93eb7bfdaa9aa6cc9509d3e36abe5f7 + inlined_ast: 1fd2dd2271e2574fe4c11f3749981807f93eb7bfdaa9aa6cc9509d3e36abe5f7 + dce_ast: 1fd2dd2271e2574fe4c11f3749981807f93eb7bfdaa9aa6cc9509d3e36abe5f7 bytecode: 69c6644fb42c55979ce03fb2d5d6712f6eee57bafc5853fd5866a04a44e4e534 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/rem_assign.out b/tests/expectations/compiler/statements/operations/rem_assign.out index 77c34e6e0c..1885dd75f2 100644 --- a/tests/expectations/compiler/statements/operations/rem_assign.out +++ b/tests/expectations/compiler/statements/operations/rem_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: 93bb664d26e0e3e9b2ae1313c122f70b0b800d939f7a3729d57c9458b4a6f0cf - unrolled_ast: 93bb664d26e0e3e9b2ae1313c122f70b0b800d939f7a3729d57c9458b4a6f0cf - ssa_ast: 6f77950404621455ddc23917991e1c5bc79115a47c36512ba71c6f6deefb24f5 - flattened_ast: af147c7e88330c7d4070823edad5de6eeeb7d6a1659ea504afcc271e8c2082b1 - destructured_ast: f9d51d0e0691bdf827e409cbf1843d7bfa709e9c4c78756878970c39e452ec33 - inlined_ast: f9d51d0e0691bdf827e409cbf1843d7bfa709e9c4c78756878970c39e452ec33 - dce_ast: f9d51d0e0691bdf827e409cbf1843d7bfa709e9c4c78756878970c39e452ec33 + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: afd04ed5002fe27a24693b36871bfe5b502fe8cde60d3c6b9f1db603fcaf06b4 + unrolled_ast: afd04ed5002fe27a24693b36871bfe5b502fe8cde60d3c6b9f1db603fcaf06b4 + ssa_ast: a3808a761bc6a4bcde0903d19998798cd50f96937c27b7747f8bd160a98c61e6 + flattened_ast: fd46bab3bf902c5f7efb8fc752523374499d573ca930e8c76ed67f99a5e1ddd0 + destructured_ast: 2158c9e8b1362e1bf457b451b3d9bc1a5c2267943b1c7d4a38ea6a52732298c5 + inlined_ast: 2158c9e8b1362e1bf457b451b3d9bc1a5c2267943b1c7d4a38ea6a52732298c5 + dce_ast: 2158c9e8b1362e1bf457b451b3d9bc1a5c2267943b1c7d4a38ea6a52732298c5 bytecode: f67d2ba495c6cbed24bf76003e4521182d8aaec5f8a3d42ab1929d56af65452b errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/shl_assign.out b/tests/expectations/compiler/statements/operations/shl_assign.out index 8d21f2a4ee..797173e157 100644 --- a/tests/expectations/compiler/statements/operations/shl_assign.out +++ b/tests/expectations/compiler/statements/operations/shl_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 19ef8140ce3d7880552e50ccbbaabe5ed3f9e8703a0f2c362220426df8923979 - type_checked_symbol_table: 9bca93783ba0e5b7ff140b9b7976ff26ece45aaceb48fed00b59a7bc9deb5807 - unrolled_symbol_table: 9bca93783ba0e5b7ff140b9b7976ff26ece45aaceb48fed00b59a7bc9deb5807 - initial_ast: 77b1ade5c94f97659e39da91067aac9cd9f0ddb00b24a0ed8f4afdf96a1d65e7 - unrolled_ast: 77b1ade5c94f97659e39da91067aac9cd9f0ddb00b24a0ed8f4afdf96a1d65e7 - ssa_ast: 7b859387e3249990387b31d70954db3182c676b70b34814dd2e8ba5b8ae64761 - flattened_ast: 2619c2e9b8776558ab6b86e4234ba97db54a82145e3148d4c205aaa3ea10aae4 - destructured_ast: 3c625e8a14ca68b83aa33b9b9ad9c19a35030c93ac85baa87d6afddb99bcddf0 - inlined_ast: 3c625e8a14ca68b83aa33b9b9ad9c19a35030c93ac85baa87d6afddb99bcddf0 - dce_ast: 3c625e8a14ca68b83aa33b9b9ad9c19a35030c93ac85baa87d6afddb99bcddf0 + - initial_symbol_table: 97aa75659b0b5d4a0aff8760464842832f7c324919428111a6079eaca988df17 + type_checked_symbol_table: d7d64b39630438fb751ee9254521ab09a2c58ee89b4c76c96ce35bd23e49c0a6 + unrolled_symbol_table: d7d64b39630438fb751ee9254521ab09a2c58ee89b4c76c96ce35bd23e49c0a6 + initial_ast: 58faf0fa6c880d6a5fdafcd8505a009d5cc1f037c9b3bad179c2ed8c7e5154eb + unrolled_ast: 58faf0fa6c880d6a5fdafcd8505a009d5cc1f037c9b3bad179c2ed8c7e5154eb + ssa_ast: 6347e71097d6318a6ce886586ed51a04d8cce9273a40cb10f1c659d855aeb2bd + flattened_ast: 6ac4a2e444a448b43808167ebe516089da5735afb62b9bb6348493172c678730 + destructured_ast: c2047651bf9ec444750fc8a2a771edc2186cf19b7e0c7747b257ad929ccc4e72 + inlined_ast: c2047651bf9ec444750fc8a2a771edc2186cf19b7e0c7747b257ad929ccc4e72 + dce_ast: c2047651bf9ec444750fc8a2a771edc2186cf19b7e0c7747b257ad929ccc4e72 bytecode: c7e481877eba9b3d2f0f08797c30c5404e6da930c4fc82bf58a7bdeb46ba251e errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/shr_assign.out b/tests/expectations/compiler/statements/operations/shr_assign.out index 62449b48ab..8e3a0b79e8 100644 --- a/tests/expectations/compiler/statements/operations/shr_assign.out +++ b/tests/expectations/compiler/statements/operations/shr_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 19ef8140ce3d7880552e50ccbbaabe5ed3f9e8703a0f2c362220426df8923979 - type_checked_symbol_table: 9bca93783ba0e5b7ff140b9b7976ff26ece45aaceb48fed00b59a7bc9deb5807 - unrolled_symbol_table: 9bca93783ba0e5b7ff140b9b7976ff26ece45aaceb48fed00b59a7bc9deb5807 - initial_ast: fa916b00dc5f716a89795f8b9166e9e0f77c6bf96a9d28ff886bf99766aeaebf - unrolled_ast: fa916b00dc5f716a89795f8b9166e9e0f77c6bf96a9d28ff886bf99766aeaebf - ssa_ast: faa236a32363e9628ab44ece4e079d2f7e8f74b28d082766cbce18279d15e0f1 - flattened_ast: ffb4e1b580f5bd971bdeb8cb2fa1933e2acfad3b83916658877ee4c3aec57dd1 - destructured_ast: 38bdb6e848d89dae237efe73bd7d52aa8f9587f2333d347ac9bc2c2f14efc8eb - inlined_ast: 38bdb6e848d89dae237efe73bd7d52aa8f9587f2333d347ac9bc2c2f14efc8eb - dce_ast: 38bdb6e848d89dae237efe73bd7d52aa8f9587f2333d347ac9bc2c2f14efc8eb + - initial_symbol_table: 97aa75659b0b5d4a0aff8760464842832f7c324919428111a6079eaca988df17 + type_checked_symbol_table: d7d64b39630438fb751ee9254521ab09a2c58ee89b4c76c96ce35bd23e49c0a6 + unrolled_symbol_table: d7d64b39630438fb751ee9254521ab09a2c58ee89b4c76c96ce35bd23e49c0a6 + initial_ast: 96383c02c87cd1cda1f84adbb2552eace87deb0c8c4281ed6c835ac6f49889cf + unrolled_ast: 96383c02c87cd1cda1f84adbb2552eace87deb0c8c4281ed6c835ac6f49889cf + ssa_ast: 8024c32947ebe458a850fa27e81f478b4e1d8930cf1f9a73a8e666342c4f37d1 + flattened_ast: b34686bc5bbd84f858278879c97032ead417740bdbe87d99c981d8c4acbeb644 + destructured_ast: c397c7d87320b2dd7c83ba5aab6361fe65563ff51563953f78d2ef6e476ef4b6 + inlined_ast: c397c7d87320b2dd7c83ba5aab6361fe65563ff51563953f78d2ef6e476ef4b6 + dce_ast: c397c7d87320b2dd7c83ba5aab6361fe65563ff51563953f78d2ef6e476ef4b6 bytecode: c9b6d8b47fbe5b72e82bc81b952ba14ed281fd0bde9182bf8c6d8e165fa84001 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/operations/sub_assign.out b/tests/expectations/compiler/statements/operations/sub_assign.out index 6f5a75c8c4..b24fcf0aea 100644 --- a/tests/expectations/compiler/statements/operations/sub_assign.out +++ b/tests/expectations/compiler/statements/operations/sub_assign.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 845d8b73bbb020a4d67058ca70badab9472d9381b0442fc7cab0263d7bf186b1 - type_checked_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - unrolled_symbol_table: 7daadb2caac6b0ea9617fdd5c0d5882d0b21adae1197bdfeab30aa77c15f0a26 - initial_ast: 22cc22077198206d18e3510ed4db5147293dddf20c73d68cf1670f555868a108 - unrolled_ast: 22cc22077198206d18e3510ed4db5147293dddf20c73d68cf1670f555868a108 - ssa_ast: 7a9dd27f378628ef2852de5405cf6b8a79f4b84c11cea4a3caff7b39ccb180e4 - flattened_ast: 36560fc1ee2902ad4a70b4c163017a03388b048d39a0080009a87106cae1da9a - destructured_ast: 9fdb5a02ba206d3c8ae901bb58c6b5f88763e73ce9d9248f0f4105da9185535c - inlined_ast: 9fdb5a02ba206d3c8ae901bb58c6b5f88763e73ce9d9248f0f4105da9185535c - dce_ast: 9fdb5a02ba206d3c8ae901bb58c6b5f88763e73ce9d9248f0f4105da9185535c + - initial_symbol_table: 006e094c2edf6cb4d11c6601714f88a42754035f7da4b186f1b914f5908e9316 + type_checked_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + unrolled_symbol_table: db5b98c786f51f96262501647110ea046b839283f8e452b24f952c092e66336f + initial_ast: cfed655c4118336371c45609d99a20570a00850db72bf18d7bbd675b5254b2b4 + unrolled_ast: cfed655c4118336371c45609d99a20570a00850db72bf18d7bbd675b5254b2b4 + ssa_ast: 916e904c214eec18ad97b7da8dc8d1817174cbdc8e7e0efc0739a752943f2aa0 + flattened_ast: 5c01c6f704b984b382719a08d251b5ccaf8836f69c9614a72f3227609b425d84 + destructured_ast: 4cfc5d88f83e988200f129421e29c891067ec9cd0f8ea5fc21e35f8c79dec449 + inlined_ast: 4cfc5d88f83e988200f129421e29c891067ec9cd0f8ea5fc21e35f8c79dec449 + dce_ast: 4cfc5d88f83e988200f129421e29c891067ec9cd0f8ea5fc21e35f8c79dec449 bytecode: e2d11ed53799ed66404c1913fe646293953de9e3b44fca9a3add80e04e9a34fc errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out index 095bc16140..ca8f058c48 100644 --- a/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out +++ b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:10:9\n |\n 10 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:11:9\n |\n 11 | return double;\n | ^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:10:9\n |\n 10 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:11:9\n |\n 11 | return double;\n | ^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out index eaf0cfc4c4..2b602276ef 100644 --- a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out +++ b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4045229cbf3708f1c1305fc1dd3478d9d86d0acbeae5b69fd1664750233538a8 - type_checked_symbol_table: 13910fa69b396f93a7aaf25fa60dd6695847c43f41c0e053ae64d9bb4b1b3e55 - unrolled_symbol_table: 13910fa69b396f93a7aaf25fa60dd6695847c43f41c0e053ae64d9bb4b1b3e55 - initial_ast: 3c9369cf267006f87343bdaf9dc2c9779133e8467812ab9afbdfd055b6850b78 - unrolled_ast: 3c9369cf267006f87343bdaf9dc2c9779133e8467812ab9afbdfd055b6850b78 - ssa_ast: 2f052ec0ba0bfbedda284648ad671ac99e7b73951a5874b7f5aa0f987b02869f - flattened_ast: ea0d6cce26e36df81605edc5c96f324f97b21ec2ce5e27a92ea42714cdc75e33 - destructured_ast: f46c7894b25caeee607422e9a22a869b5995c0fb225be708015e21f1119ebfcd - inlined_ast: f46c7894b25caeee607422e9a22a869b5995c0fb225be708015e21f1119ebfcd - dce_ast: f46c7894b25caeee607422e9a22a869b5995c0fb225be708015e21f1119ebfcd + - initial_symbol_table: 736f3b63f4cfcbe2906a2e2b0e01f3c276435a56e71c39926bc3b5492003655a + type_checked_symbol_table: 2fe04bba6a05a2200c11cd1632c1d66a86be81e6c4c26d2e7b8f80a40f3c3ee5 + unrolled_symbol_table: 2fe04bba6a05a2200c11cd1632c1d66a86be81e6c4c26d2e7b8f80a40f3c3ee5 + initial_ast: 4f8ee24596b3ff836f1074dbc6f09c0514e45fba37b078b59cb1f0246d2f9ff1 + unrolled_ast: 4f8ee24596b3ff836f1074dbc6f09c0514e45fba37b078b59cb1f0246d2f9ff1 + ssa_ast: b3fb543c996a2ff2ed1c6bc49cf016e94de814c1c4768bedca634c4af570e514 + flattened_ast: 7654b7a28c59efe7b0c970ec421126c7fff2aea09c90c6ff44ea85f24a02d945 + destructured_ast: 51c295d726f59f6433abc89e3fc1f9e7a5b38d55f2163a223fa7ae1dc35b1955 + inlined_ast: 51c295d726f59f6433abc89e3fc1f9e7a5b38d55f2163a223fa7ae1dc35b1955 + dce_ast: 51c295d726f59f6433abc89e3fc1f9e7a5b38d55f2163a223fa7ae1dc35b1955 bytecode: f8245e78b1dfaf2eeeb6aff9629ee561cdf6bf80f029c173fd32c6c002ad6e73 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/typecheck_statements_fail.out b/tests/expectations/compiler/statements/typecheck_statements_fail.out index 1aa6339b91..cdb45233f8 100644 --- a/tests/expectations/compiler/statements/typecheck_statements_fail.out +++ b/tests/expectations/compiler/statements/typecheck_statements_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372007]: Expected one type from `i16`, but got `i32`\n --> compiler-test:5:33\n |\n 5 | let c1 : u32 = 123i16 * 123i32;\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `u32`\n --> compiler-test:5:24\n |\n 5 | let c1 : u32 = 123i16 * 123i32;\n | ^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `string`\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:44\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `string`\n --> compiler-test:6:44\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `u32`\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:7:24\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:7:35\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^\nError [ETYC0372003]: Expected type `field, group, integer, or scalar` but type `string` was found\n --> compiler-test:7:24\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `field, group, integer, or scalar` but type `string` was found\n --> compiler-test:7:35\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i16`\n --> compiler-test:8:30\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i32`\n --> compiler-test:8:37\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i64`\n --> compiler-test:8:44\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:8:51\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u16`\n --> compiler-test:8:57\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:8:64\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u64`\n --> compiler-test:8:71\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:8:24\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:9:26\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `i16` but type `string` was found\n --> compiler-test:9:26\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^\nError [ETYC0372003]: Expected type `i8` but type `string` was found\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^\nError [ETYC0372003]: Expected type `i8` but type `string` was found\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372003]: Expected type `u32` but type `string` was found\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n" + - "Error [ETYC0372007]: Expected one type from `i16`, but got `i32`\n --> compiler-test:5:33\n |\n 5 | let c1 : u32 = 123i16 * 123i32;\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `u32`\n --> compiler-test:5:24\n |\n 5 | let c1 : u32 = 123i16 * 123i32;\n | ^^^^^^^^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `string`\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:6:44\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `string`\n --> compiler-test:6:44\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `u32`\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:7:24\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:7:35\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^\nError [ETYC0372003]: Expected type `field, group, integer, or scalar` but type `string` was found\n --> compiler-test:7:24\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `field, group, integer, or scalar` but type `string` was found\n --> compiler-test:7:35\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i16`\n --> compiler-test:8:30\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i32`\n --> compiler-test:8:37\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i64`\n --> compiler-test:8:44\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:8:51\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u16`\n --> compiler-test:8:57\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:8:64\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u64`\n --> compiler-test:8:71\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:8:24\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:9:26\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `string`, but got `i16`\n --> compiler-test:9:26\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^\nError [ETYC0372007]: Expected one type from `string`, but got `i8`\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `string`, but got `i8`\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `string`, but got `u32`\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/underscore_for_loop.out b/tests/expectations/compiler/statements/underscore_for_loop.out index 394b87c693..e25e6d0034 100644 --- a/tests/expectations/compiler/statements/underscore_for_loop.out +++ b/tests/expectations/compiler/statements/underscore_for_loop.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d8632a1a2fa69ff76cf59869e3f4f0fd0d3a67df7acd68e84dc620bd9c080cc - type_checked_symbol_table: 27e3e46a4fcf48fad090fe195e1ccbd9c160bcc9505f75ccd33a046e7384e977 - unrolled_symbol_table: 4662126a2a03d9a091fa502bbb2422ae9f2103c6a6fd1ce0e5aa665856f09ee5 - initial_ast: dba194edd2331920b8af97d44cd71ade0102504dbbe684691515f3997ad34f2d - unrolled_ast: 8e682efac4521aa801e89ee003143fa8d0a8b32216d1a92a9b0134264523bd95 - ssa_ast: d49889f56ae7e7def599d62ac121782abc1b6e5de11ec6983ce07db80cc334a2 - flattened_ast: 71f660689d7e66b1dacd57e6538ea83a0baf24568b4f00b1d17d768b8f83373e - destructured_ast: dd52393c39bbfaabcb4218d0c7fa5ff2985f445e16e0484ba4e07a23927dfd42 - inlined_ast: dd52393c39bbfaabcb4218d0c7fa5ff2985f445e16e0484ba4e07a23927dfd42 - dce_ast: fba3181573a5c51b823ac977799be400271cf891d8056120131bf46a69b8fd49 + - initial_symbol_table: afe2cb0a5d27126ad8ee79c859b2821f3782ea4dbc63ee28264f7ec69f1a8072 + type_checked_symbol_table: fe1c423c5db994de30adf8204e8bbe77508f825149b43140c3888bdd3d2eaa95 + unrolled_symbol_table: a12eb4c311bb47d968e279cd12755fb1b93742b347f7976c68883b9cc5263e14 + initial_ast: 2599407b7f11d8891e1851d2dd541d3cf865a5081019f9a3eb459cf8f3f69722 + unrolled_ast: 71eec36e48c21b9f6461f64f8f787af1aaa70da7b18a87430c9482d587d6f14e + ssa_ast: 107fecdf5e138cd052ec4db5268ccd8bb34d832ee83a0027db8e0b993887e674 + flattened_ast: f9240ec5f990148c7539e7ae7303a7c23b50b262023a92eab70501882f2e0d6b + destructured_ast: 758021d5dbb6aeb3e20f4b97539d1ea644de73111f50735db03995a0fda1c975 + inlined_ast: 758021d5dbb6aeb3e20f4b97539d1ea644de73111f50735db03995a0fda1c975 + dce_ast: 49f183f07eeb369a92d89d7039d04c17f87aa05ed3297bbdf9247b6bd9f4219a bytecode: 61cc464cdc1104635ea399648d62a06b112dc3462634b3f992151c6e5572d6f7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out b/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out index 92be95cd85..b12551f47c 100644 --- a/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out +++ b/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:6\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:6\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372003]: Expected type `Foo` but type `u8` was found\n --> compiler-test:5:19\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^\n" + - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:6\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:6\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372007]: Expected one type from `u8`, but got `Foo`\n --> compiler-test:5:19\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/strings/string.out b/tests/expectations/compiler/strings/string.out index 74a7b00e48..3b3afbc7a8 100644 --- a/tests/expectations/compiler/strings/string.out +++ b/tests/expectations/compiler/strings/string.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:9\n |\n 6 | let str:string = \"a a a\";\n | ^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:26\n |\n 6 | let str:string = \"a a a\";\n | ^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:7:19\n |\n 7 | if(str == \"b b b\") {\n | ^^^^^^^^\n" + - "Error [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:6:9\n |\n 6 | let str:string = \"a a a\";\n | ^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:6:26\n |\n 6 | let str:string = \"a a a\";\n | ^^^^^^^\nError [ETYC0372045]: Strings are not yet supported.\n --> compiler-test:7:19\n |\n 7 | if(str == \"b b b\") {\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/cyclic_structs_one_fail.out b/tests/expectations/compiler/structs/cyclic_structs_one_fail.out index 034d2d40cb..3821c43070 100644 --- a/tests/expectations/compiler/structs/cyclic_structs_one_fail.out +++ b/tests/expectations/compiler/structs/cyclic_structs_one_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372065]: Cyclic dependency between structs: `Foo` --> `Foo`\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372058]: Cyclic dependency between structs: `Foo` --> `Foo`\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/cyclic_structs_three_fail.out b/tests/expectations/compiler/structs/cyclic_structs_three_fail.out index 1839d19cfb..41c05c04eb 100644 --- a/tests/expectations/compiler/structs/cyclic_structs_three_fail.out +++ b/tests/expectations/compiler/structs/cyclic_structs_three_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372065]: Cyclic dependency between structs: `One` --> `Two` --> `Three` --> `One`\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372058]: Cyclic dependency between structs: `One` --> `Two` --> `Three` --> `One`\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/cyclic_structs_two_fail.out b/tests/expectations/compiler/structs/cyclic_structs_two_fail.out index b6dcfff9b9..be5f9bcd19 100644 --- a/tests/expectations/compiler/structs/cyclic_structs_two_fail.out +++ b/tests/expectations/compiler/structs/cyclic_structs_two_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372065]: Cyclic dependency between structs: `Bar` --> `Baz` --> `Bar`\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372058]: Cyclic dependency between structs: `Bar` --> `Baz` --> `Bar`\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/duplicate_struct_variable.out b/tests/expectations/compiler/structs/duplicate_struct_variable.out index 745a5017fd..3d34d799cb 100644 --- a/tests/expectations/compiler/structs/duplicate_struct_variable.out +++ b/tests/expectations/compiler/structs/duplicate_struct_variable.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372015]: Struct Bar defined with more than one member with the same name.\n --> compiler-test:4:5\n |\n 4 | struct Bar {\n 5 | x: u32,\n 6 | x: u32,\n 7 | }\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372015]: Struct Bar defined with more than one member with the same name.\n --> compiler-test:4:5\n |\n 4 | struct Bar {\n 5 | x: u32,\n 6 | x: u32,\n 7 | }\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/inline.out b/tests/expectations/compiler/structs/inline.out index 90aad5b3dc..4539b32ceb 100644 --- a/tests/expectations/compiler/structs/inline.out +++ b/tests/expectations/compiler/structs/inline.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 44df02a2ad2b80a65437f8d65d2d4a829e3406c6b09632332f4fd5c86ef84e1a - type_checked_symbol_table: c3508a4886b561825f823aa7cff473551ef44b8fb35cb88fc731b113ab46167a - unrolled_symbol_table: c3508a4886b561825f823aa7cff473551ef44b8fb35cb88fc731b113ab46167a - initial_ast: 983b3ad5f526516fe042a25f363c7bc37dd1dcf7b2cae80d69e65862db4d1e3c - unrolled_ast: 983b3ad5f526516fe042a25f363c7bc37dd1dcf7b2cae80d69e65862db4d1e3c - ssa_ast: faafaeb48d7814ac033b0642d6a15a8ed755bb5ce87e7ab35a05a7bc92c77345 - flattened_ast: b20bb85566ff1478c577a6b6a5622b4cb7d5bbcae66124902563e718956a7417 - destructured_ast: 608e9ee97cfb656afc029064e1178fa4cb82d5c3b60bf07be55a0a3788b4b168 - inlined_ast: 608e9ee97cfb656afc029064e1178fa4cb82d5c3b60bf07be55a0a3788b4b168 - dce_ast: 608e9ee97cfb656afc029064e1178fa4cb82d5c3b60bf07be55a0a3788b4b168 + - initial_symbol_table: 0a5e8e4a283da165f2c016526d7407c738ca8dc55ce4e27139ecf1e0819a867e + type_checked_symbol_table: f4e53910e5c45a6a1a2acb84c99f679c0531526d82f7e1b13cfea4beef566e27 + unrolled_symbol_table: f4e53910e5c45a6a1a2acb84c99f679c0531526d82f7e1b13cfea4beef566e27 + initial_ast: a566d241f0b468a79c37de8744c7e428e53e051c9e45e9f1d1bffd28a50c9158 + unrolled_ast: a566d241f0b468a79c37de8744c7e428e53e051c9e45e9f1d1bffd28a50c9158 + ssa_ast: c15e183796e78a86d4a661fa8de5800c6a668c99e6c025bee192d287b652c20b + flattened_ast: d29e0221e80306726d64190184e7e159e1f95eb84f45ceec1ee1c1f3963a08ca + destructured_ast: c7f3a6b39fe937b8eebf34e87ab5a471a5362748440ed5b1c77847944679600c + inlined_ast: c7f3a6b39fe937b8eebf34e87ab5a471a5362748440ed5b1c77847944679600c + dce_ast: c7f3a6b39fe937b8eebf34e87ab5a471a5362748440ed5b1c77847944679600c bytecode: ec61be65e2947187dd58fdd1cf6f98301443d81e225b3ba2a3971b38ed950b05 errors: "" warnings: "" diff --git a/tests/expectations/compiler/structs/inline_fail.out b/tests/expectations/compiler/structs/inline_fail.out index a0df2919ff..a8c0a42625 100644 --- a/tests/expectations/compiler/structs/inline_fail.out +++ b/tests/expectations/compiler/structs/inline_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372013]: Struct initialization expression for `Foo` is missing member `x`.\n --> compiler-test:10:22\n |\n 10 | let a: Foo = Foo { y: 0u32 };\n | ^^^^^^^^^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372013]: Struct initialization expression for `Foo` is missing member `x`.\n --> compiler-test:10:22\n |\n 10 | let a: Foo = Foo { y: 0u32 };\n | ^^^^^^^^^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/inline_undefined.out b/tests/expectations/compiler/structs/inline_undefined.out index 6ae0cf5553..a097c93011 100644 --- a/tests/expectations/compiler/structs/inline_undefined.out +++ b/tests/expectations/compiler/structs/inline_undefined.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:9\n |\n 5 | let a: Foo = Foo { };\n | ^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:9\n |\n 5 | let a: Foo = Foo { };\n | ^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372005]: Unknown struct `Foo`\n --> compiler-test:5:22\n |\n 5 | let a: Foo = Foo { };\n | ^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:9\n |\n 5 | let a: Foo = Foo { };\n | ^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:9\n |\n 5 | let a: Foo = Foo { };\n | ^^^^^^^^^^^^^^^^^^^^\n |\n = If you are using an external type, make sure to preface with the program name. Ex: `credits.aleo/credits` instead of `credits`\nError [ETYC0372005]: Unknown struct `Foo`\n --> compiler-test:5:22\n |\n 5 | let a: Foo = Foo { };\n | ^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/member_variable.out b/tests/expectations/compiler/structs/member_variable.out index 4ba23c75f4..fb1dbab3df 100644 --- a/tests/expectations/compiler/structs/member_variable.out +++ b/tests/expectations/compiler/structs/member_variable.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4667fa49869abe16075748c1a61baad2b8ccc2b09ce08b8e3e84d0b9c3b4d292 - type_checked_symbol_table: 0cb0654b2a10c9ff7ce6088bc1bcb03a5e6e8fbe6ad0862a3bdf4799481a0ba0 - unrolled_symbol_table: 0cb0654b2a10c9ff7ce6088bc1bcb03a5e6e8fbe6ad0862a3bdf4799481a0ba0 - initial_ast: 33a450e5fcf5d21a2c9e8bfaa2f6c8057dfdafd578f57d80b8fc86d217f4e1df - unrolled_ast: 33a450e5fcf5d21a2c9e8bfaa2f6c8057dfdafd578f57d80b8fc86d217f4e1df - ssa_ast: 9c809d9108ecf5e2aa27a951bc37b38b77e566757755477b135dabd4e71035c0 - flattened_ast: 29f6f0a7ff908ff7f230a040e70a3d16caa9d902d6c42c64e2aa109eb2a9f64d - destructured_ast: 7fe773814f3d65f538f90854743246f98b310510e9dfc8e32e8a6124db26b9ba - inlined_ast: 7fe773814f3d65f538f90854743246f98b310510e9dfc8e32e8a6124db26b9ba - dce_ast: 7fe773814f3d65f538f90854743246f98b310510e9dfc8e32e8a6124db26b9ba + - initial_symbol_table: 3a0e8f6b514807f126da8d03f29c845ee8516874a01a3366f76c34348ff9e4ff + type_checked_symbol_table: 86c62f8c890328dab1fad6585cad1a9311a46dc87dc2759db20a553630541e73 + unrolled_symbol_table: 86c62f8c890328dab1fad6585cad1a9311a46dc87dc2759db20a553630541e73 + initial_ast: 2dd9978bfbb58ae761b07c21606a55dc12c51222562047b78f0e6d224f1e3e2f + unrolled_ast: 2dd9978bfbb58ae761b07c21606a55dc12c51222562047b78f0e6d224f1e3e2f + ssa_ast: ba3fe9b9d18b089bd032514dd3adf3736116300dd3f5834021f20d1e923e0e0b + flattened_ast: fa7ea71a18f6dbd86505ee2a76bc2d6a7cd4020e9246670cb55b5437c572259f + destructured_ast: 7d87328ea5dede4b15b25379ed4012ba4f1b40ec2353565532cc4d15aa9b7f1e + inlined_ast: 7d87328ea5dede4b15b25379ed4012ba4f1b40ec2353565532cc4d15aa9b7f1e + dce_ast: 7d87328ea5dede4b15b25379ed4012ba4f1b40ec2353565532cc4d15aa9b7f1e bytecode: 762d4097e94ed495b4a3996bae354d8c1b9396d0620e8f794ae4356829a6e89d errors: "" warnings: "" diff --git a/tests/expectations/compiler/structs/struct_access_fail.out b/tests/expectations/compiler/structs/struct_access_fail.out index 91015b412a..277fcc777d 100644 --- a/tests/expectations/compiler/structs/struct_access_fail.out +++ b/tests/expectations/compiler/structs/struct_access_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `i8` but type `u32` was found\n --> compiler-test:11:21\n |\n 11 | let x: i8 = s.f1;\n | ^^^^\n" + - "Error [ETYC0372007]: Expected one type from `u32`, but got `i8`\n --> compiler-test:11:21\n |\n 11 | let x: i8 = s.f1;\n | ^^^^\n" diff --git a/tests/expectations/compiler/structs/struct_contains_record_fail.out b/tests/expectations/compiler/structs/struct_contains_record_fail.out index fc1e8f32e5..a31e8432d5 100644 --- a/tests/expectations/compiler/structs/struct_contains_record_fail.out +++ b/tests/expectations/compiler/structs/struct_contains_record_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:6:9\n |\n 6 | token: Token,\n | ^^^^^\n |\n = Remove the record `Token` from `Foo`.\nError [ETYC0372065]: Cyclic dependency between structs: `Foo` --> `Token` --> `Foo`\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372030]: A struct or record cannot contain another record.\n --> compiler-test:6:9\n |\n 6 | token: Token,\n | ^^^^^\n |\n = Remove the record `Token` from `Foo`.\nError [ETYC0372058]: Cyclic dependency between structs: `Foo` --> `Token` --> `Foo`\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/struct_declaration_out_of_order.out b/tests/expectations/compiler/structs/struct_declaration_out_of_order.out index 9dc34874d7..0efae0aed5 100644 --- a/tests/expectations/compiler/structs/struct_declaration_out_of_order.out +++ b/tests/expectations/compiler/structs/struct_declaration_out_of_order.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 6b43d8c8b23b467365009382a571767fb1d103da905adea3f7a5b189a8f3d5d8 - type_checked_symbol_table: 1d6a5efedb3096b78f013ed82b25fc96461827d3eb119396663e6d22203dc2cb - unrolled_symbol_table: 1d6a5efedb3096b78f013ed82b25fc96461827d3eb119396663e6d22203dc2cb - initial_ast: 52b80d6c696604d571d975735d7a3a2e5ef43bd193e200e39082b2f434c1711e - unrolled_ast: 52b80d6c696604d571d975735d7a3a2e5ef43bd193e200e39082b2f434c1711e - ssa_ast: 630a65faa1e3a6ebc644dee6530c05c713c8cab1d3379feaafd8a5bb9f5623f0 - flattened_ast: ab8df7cb8ace25317f9d8d5c9d5fe356440a979b365547c07799a5116c0cab5e - destructured_ast: e5be54db46e1bc47a053b235c9cd58639e0c1b55ebd09969f46f6b35e05cf302 - inlined_ast: e5be54db46e1bc47a053b235c9cd58639e0c1b55ebd09969f46f6b35e05cf302 - dce_ast: e5be54db46e1bc47a053b235c9cd58639e0c1b55ebd09969f46f6b35e05cf302 + - initial_symbol_table: 1e095a500d2a47f10722ea3abfef561bdedab653294df0cebef55e1703153b24 + type_checked_symbol_table: cf5d4509d46eef8af70509adf38b883fbcf9f6aaa68ceb96c1aaf636c6b55f4e + unrolled_symbol_table: cf5d4509d46eef8af70509adf38b883fbcf9f6aaa68ceb96c1aaf636c6b55f4e + initial_ast: 2e81216de43c1e3c5ad19344a3f8817b5e24bb92d315078eafb63f3477db27fe + unrolled_ast: 2e81216de43c1e3c5ad19344a3f8817b5e24bb92d315078eafb63f3477db27fe + ssa_ast: 64b49da5117194b267802a5e91e5ed700a859bc65c01a0b607d2ad5e4c9966a5 + flattened_ast: 22bc03498047ceb252549b2bfbbfe76853ea48533d834e9f6adec23cb9abc5fd + destructured_ast: 9d33df52d77dd2a388a5f922c5304b56417d899495be1b6b15554416304df53e + inlined_ast: 9d33df52d77dd2a388a5f922c5304b56417d899495be1b6b15554416304df53e + dce_ast: 9d33df52d77dd2a388a5f922c5304b56417d899495be1b6b15554416304df53e bytecode: 863e38ce365f290cb635173708362b07c114f9c938e377d5373d2cdbd5555098 errors: "" warnings: "" diff --git a/tests/expectations/compiler/structs/struct_init_out_of_order.out b/tests/expectations/compiler/structs/struct_init_out_of_order.out index a755b2dc40..424bd7795c 100644 --- a/tests/expectations/compiler/structs/struct_init_out_of_order.out +++ b/tests/expectations/compiler/structs/struct_init_out_of_order.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 233797bcc28fd17cd05d541f7ce6c78aa8701cb2f4ab055b3fff9f1709722be7 - type_checked_symbol_table: ae3828335f3fdaa6bf9e3cd0fb81c1f9deb62b9d37315b8a61c6255668ef9948 - unrolled_symbol_table: ae3828335f3fdaa6bf9e3cd0fb81c1f9deb62b9d37315b8a61c6255668ef9948 - initial_ast: 62e7d18a8541b7d1dbacecbb6a0de10a51ae1c06c87ba065b9f8c5111adb08d4 - unrolled_ast: 62e7d18a8541b7d1dbacecbb6a0de10a51ae1c06c87ba065b9f8c5111adb08d4 - ssa_ast: 4d61dfcddad4ec8c8734214c5279967ba3c8d1d15f79a23a75b5cd3658d28cb4 - flattened_ast: 0cd17780181935509b35b2475c5ff277a9eecb016478f3d341c3c0e9b8bdf39c - destructured_ast: 326fb909f3c14f9e485670aba6e62279771ce223ae6468ed1afc7c8ae4b86cb8 - inlined_ast: 326fb909f3c14f9e485670aba6e62279771ce223ae6468ed1afc7c8ae4b86cb8 - dce_ast: 326fb909f3c14f9e485670aba6e62279771ce223ae6468ed1afc7c8ae4b86cb8 + - initial_symbol_table: 142d0baae2607883f675f0c3ff68744189576bc556706d62a5f098c839af77c7 + type_checked_symbol_table: ff390dfdd49f4d4bdbe52b4bdae6ae1d023f11d1556dc0d05720eb655b7abe4b + unrolled_symbol_table: ff390dfdd49f4d4bdbe52b4bdae6ae1d023f11d1556dc0d05720eb655b7abe4b + initial_ast: 358c75fa2da9cd6548ce5934ec8332c101e3191a437905df9aa6b413e2ca3ea8 + unrolled_ast: 358c75fa2da9cd6548ce5934ec8332c101e3191a437905df9aa6b413e2ca3ea8 + ssa_ast: 353a7cb27dff31bf626d29cfa95c94b3ab34e0dc80fa6f469dde6ff7b18f3c36 + flattened_ast: cfc5c1f06be3430e6a41b130ecf644896256253396af75171bdb352e6895d416 + destructured_ast: 0f4808784ea932e8334a74c7e3721d0fe414c03afb92fe7a0b16296b52ae5740 + inlined_ast: 0f4808784ea932e8334a74c7e3721d0fe414c03afb92fe7a0b16296b52ae5740 + dce_ast: 0f4808784ea932e8334a74c7e3721d0fe414c03afb92fe7a0b16296b52ae5740 bytecode: e8b13087d9609aaed141be0bd8bcdcf8941faa1eff034046212c276ff58e0cf4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/structs/struct_with_visibility_fail.out b/tests/expectations/compiler/structs/struct_with_visibility_fail.out index 83704d341b..44d2422823 100644 --- a/tests/expectations/compiler/structs/struct_with_visibility_fail.out +++ b/tests/expectations/compiler/structs/struct_with_visibility_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372067]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:5:18\n |\n 5 | constant a: u8,\n | ^^^^^\nError [ETYC0372067]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:6:17\n |\n 6 | private bar: bool,\n | ^^^^^^^^^\nError [ETYC0372067]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:7:16\n |\n 7 | public bax: u16,\n | ^^^^^^^^\n" + - "Error [ETYC0372060]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:5:18\n |\n 5 | constant a: u8,\n | ^^^^^\nError [ETYC0372060]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:6:17\n |\n 6 | private bar: bool,\n | ^^^^^^^^^\nError [ETYC0372060]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:7:16\n |\n 7 | public bax: u16,\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out index ecd1df1d78..b602cbb13f 100644 --- a/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out +++ b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core function call.\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core function call.\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/assign_unit_fail.out b/tests/expectations/compiler/tuple/assign_unit_fail.out index f09242f943..71a2276b9f 100644 --- a/tests/expectations/compiler/tuple/assign_unit_fail.out +++ b/tests/expectations/compiler/tuple/assign_unit_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372062]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:6:9\n |\n 6 | let b: () = ();\n | ^^^^^^^^^^^^^^\nError [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:6:21\n |\n 6 | let b: () = ();\n | ^^\nError [ETYC0372062]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:11:9\n |\n 11 | let b: () = bar();\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:11:21\n |\n 11 | let b: () = bar();\n | ^^^^^\nError [ETYC0372006]: Call expected `1` args, but got `0`\n --> compiler-test:11:21\n |\n 11 | let b: () = bar();\n | ^^^^^\n" + - "Error [ETYC0372055]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:6:9\n |\n 6 | let b: () = ();\n | ^^^^^^^^^^^^^^\nError [ETYC0372056]: Unit expressions can only be used in return statements.\n --> compiler-test:6:21\n |\n 6 | let b: () = ();\n | ^^\nError [ETYC0372055]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:11:9\n |\n 11 | let b: () = bar();\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372043]: Cannot call a local transition function from a transition function.\n --> compiler-test:11:21\n |\n 11 | let b: () = bar();\n | ^^^^^\nError [ETYC0372006]: Call expected `1` args, but got `0`\n --> compiler-test:11:21\n |\n 11 | let b: () = bar();\n | ^^^^^\n" diff --git a/tests/expectations/compiler/tuple/declare_fail.out b/tests/expectations/compiler/tuple/declare_fail.out index 9c81abf0ef..99191f3607 100644 --- a/tests/expectations/compiler/tuple/declare_fail.out +++ b/tests/expectations/compiler/tuple/declare_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:5:35\n |\n 5 | let t: (bool, bool) = (a, 1u64); // We should be declaring to a boolean, not a u64.\n | ^^^^\n" + - "Error [ETYC0372007]: Expected one type from `u64`, but got `boolean`\n --> compiler-test:5:35\n |\n 5 | let t: (bool, bool) = (a, 1u64); // We should be declaring to a boolean, not a u64.\n | ^^^^\n" diff --git a/tests/expectations/compiler/tuple/function_call_returns_tuple.out b/tests/expectations/compiler/tuple/function_call_returns_tuple.out index 2644fffbd2..dff8c950a1 100644 --- a/tests/expectations/compiler/tuple/function_call_returns_tuple.out +++ b/tests/expectations/compiler/tuple/function_call_returns_tuple.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f5ab866b238499eac22c17e69673bfc3cfc48b0ceb248e448655f9aa7d2f1f6d - type_checked_symbol_table: e72300be76c3791d1957ed314a1272c5fe1b923c776133e25f536e7932d06a37 - unrolled_symbol_table: e72300be76c3791d1957ed314a1272c5fe1b923c776133e25f536e7932d06a37 - initial_ast: 241b1f09f3aedc819c2ff71f3137006deb64bb6df2faa59fd33fc0ea605cffeb - unrolled_ast: 241b1f09f3aedc819c2ff71f3137006deb64bb6df2faa59fd33fc0ea605cffeb - ssa_ast: 8bdc4158cbf4b7f9ba113a1cd112299832d629bed68b9b436afa9072064e4092 - flattened_ast: 25bb4c9e408cb2c3264d537a88bd574c9cf044bc7c94aa36c7081c2698a9274a - destructured_ast: 2bd6170fc0634da49a074ebdd86a4282202beecf8c2a216025d441dc9b1a0770 - inlined_ast: 2bd6170fc0634da49a074ebdd86a4282202beecf8c2a216025d441dc9b1a0770 - dce_ast: 2bd6170fc0634da49a074ebdd86a4282202beecf8c2a216025d441dc9b1a0770 + - initial_symbol_table: 20e11487247e735ad4083e90e76df1f00b7228632c9a53772a3247df1c204bb3 + type_checked_symbol_table: 280b10c6e109dbd43fa3b0d3f0bc9f281a40bf3de2feb59746b053835392d495 + unrolled_symbol_table: 280b10c6e109dbd43fa3b0d3f0bc9f281a40bf3de2feb59746b053835392d495 + initial_ast: 3c12e66038132cb376746a1bdc4336b4a546df744d4686f4b2b043bf31bcfb5a + unrolled_ast: 3c12e66038132cb376746a1bdc4336b4a546df744d4686f4b2b043bf31bcfb5a + ssa_ast: b4e530d1ed541f433ec32ed0c1919d56e43f23b1a5955154b2c9a0f23f475e66 + flattened_ast: 239f86905cbe86a637834dbc9d1e1b1df94d3d7cecd00edb8df0c2c9bee5319d + destructured_ast: ff7292128410be00175acc64bbd9c93fd830a349b660ac04034daba6579443b4 + inlined_ast: aea5efa79775cce48b56c85d588200174096167dd7991d7fb597b8da1fb5c4a1 + dce_ast: aea5efa79775cce48b56c85d588200174096167dd7991d7fb597b8da1fb5c4a1 bytecode: f8a3d7352634db2882bc62840443ed6981ab356b6037c6bce8b2361189e82319 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/function_early_return.out b/tests/expectations/compiler/tuple/function_early_return.out index 108553acf5..1ceb9dce86 100644 --- a/tests/expectations/compiler/tuple/function_early_return.out +++ b/tests/expectations/compiler/tuple/function_early_return.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4d158c5e604c22808513443fa1471bd16be9c9ae242331adf1af1ee87b075354 - type_checked_symbol_table: 6693348edd33360ba3488099a5cc2db7d736bd6a8154273e625c87fe84423a0d - unrolled_symbol_table: 6693348edd33360ba3488099a5cc2db7d736bd6a8154273e625c87fe84423a0d - initial_ast: 50f57839afd389ff291671abcd7709268a9e154fc15acacf3fd8a2d76c72eed8 - unrolled_ast: 50f57839afd389ff291671abcd7709268a9e154fc15acacf3fd8a2d76c72eed8 - ssa_ast: b0d4bc69d18209b1932925861fc67876fa95518ad3bfe89ff68e3dac804e8a11 - flattened_ast: c35ca6f004ab9f183986349908b537c3c5c985556dbe05d896187d61837fba73 - destructured_ast: 45300705c4c5844d02e9b185ab4e47092345700b9ed7280f0ccc85d39b262f5b - inlined_ast: 45300705c4c5844d02e9b185ab4e47092345700b9ed7280f0ccc85d39b262f5b - dce_ast: 45300705c4c5844d02e9b185ab4e47092345700b9ed7280f0ccc85d39b262f5b + - initial_symbol_table: 38e7bb895cf1c311c590566fc911a00e88327c9138dacd5fa5cc1d1c21fe3d61 + type_checked_symbol_table: 2ca04e52063878e245f5d32984dad8a685ad3c091bdfd28c723bbcd3c43ac6d0 + unrolled_symbol_table: 2ca04e52063878e245f5d32984dad8a685ad3c091bdfd28c723bbcd3c43ac6d0 + initial_ast: b677619a6b8dd0e230954d346375954d81042428b71ec72adb3d0e0fc02e2e9b + unrolled_ast: b677619a6b8dd0e230954d346375954d81042428b71ec72adb3d0e0fc02e2e9b + ssa_ast: 3375a0e2ff0910ead22540a57ccde62cfd30491090ba8b396b3628dcbcc08077 + flattened_ast: 7e185d77b93b70def05fbaf1ba6422a64530ae88a1748ae9229c937a6f831fa4 + destructured_ast: 064059b7e18ac60c842655d3d0c17037626f26f601b90ab42e10e76746f55628 + inlined_ast: 064059b7e18ac60c842655d3d0c17037626f26f601b90ab42e10e76746f55628 + dce_ast: 064059b7e18ac60c842655d3d0c17037626f26f601b90ab42e10e76746f55628 bytecode: cab2a38bed741bf7b4ae067086da9762dfce98c256155aece53158ebbfad7198 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/function_return.out b/tests/expectations/compiler/tuple/function_return.out index fdbb2a0731..85f6342c80 100644 --- a/tests/expectations/compiler/tuple/function_return.out +++ b/tests/expectations/compiler/tuple/function_return.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4d158c5e604c22808513443fa1471bd16be9c9ae242331adf1af1ee87b075354 - type_checked_symbol_table: 9d7c586d959f1df24dc1aee7202a91190c0c5155f715a580f457f21fb98930b0 - unrolled_symbol_table: 9d7c586d959f1df24dc1aee7202a91190c0c5155f715a580f457f21fb98930b0 - initial_ast: 24407d3676108b13009f231b90e6ef1974462af6fd462d25176070779febf3f2 - unrolled_ast: 24407d3676108b13009f231b90e6ef1974462af6fd462d25176070779febf3f2 - ssa_ast: 88bf832acb0c0ae8bcd471cbbea8b09ac157cf11250ffd3501c1ced84b5047c2 - flattened_ast: adce067e80f6d0331c583cc84ec216c701b18ea6e0aaaab1720953776093e779 - destructured_ast: 93f2190b6076e055790f445f8e782d991a24a33739934b082a4681c46129e570 - inlined_ast: 93f2190b6076e055790f445f8e782d991a24a33739934b082a4681c46129e570 - dce_ast: 93f2190b6076e055790f445f8e782d991a24a33739934b082a4681c46129e570 + - initial_symbol_table: 38e7bb895cf1c311c590566fc911a00e88327c9138dacd5fa5cc1d1c21fe3d61 + type_checked_symbol_table: e37a28669ba62cd19d09a16ab52d45338411a59178d161cf04c8e197287031a8 + unrolled_symbol_table: e37a28669ba62cd19d09a16ab52d45338411a59178d161cf04c8e197287031a8 + initial_ast: c599dcea091e71112d7fbfb518595ec5dd6bbc704d122dfe41cb4ab019a55609 + unrolled_ast: c599dcea091e71112d7fbfb518595ec5dd6bbc704d122dfe41cb4ab019a55609 + ssa_ast: 7025c1aef0619063764f6cd35ccb9230b2dcdb7057b95d577dff8754260033f4 + flattened_ast: 45a60ffddad90dd81548d0ed6786710bb59693717dc14ec4f48b07fd12412642 + destructured_ast: 43b1fab95cb87dc96914472d01178a8ffe28b3269846ab05899aea28a80b0696 + inlined_ast: 43b1fab95cb87dc96914472d01178a8ffe28b3269846ab05899aea28a80b0696 + dce_ast: 43b1fab95cb87dc96914472d01178a8ffe28b3269846ab05899aea28a80b0696 bytecode: 4ab0ff9007818a0bf7b45a22297f4a5bdbed8a46d1b2a70e6f6d2f347f8e8b1e errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/function_return_nothing.out b/tests/expectations/compiler/tuple/function_return_nothing.out index 1a3f46f58b..d109267057 100644 --- a/tests/expectations/compiler/tuple/function_return_nothing.out +++ b/tests/expectations/compiler/tuple/function_return_nothing.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1ac71e1b5a420c9512b7bc6886e30d70bb4a57aaee1d28f0444e0685a2b50b88 - type_checked_symbol_table: 8ed7a8dbc503fa1d2118309e0e9dda2c5ac3cecd3de5766c00307e9f2a8fec67 - unrolled_symbol_table: 8ed7a8dbc503fa1d2118309e0e9dda2c5ac3cecd3de5766c00307e9f2a8fec67 - initial_ast: 0858846bce8fad857fec791dee7efc2f11dd47e3724f04730c32f6c5a8f3dba4 - unrolled_ast: 0858846bce8fad857fec791dee7efc2f11dd47e3724f04730c32f6c5a8f3dba4 - ssa_ast: 0858846bce8fad857fec791dee7efc2f11dd47e3724f04730c32f6c5a8f3dba4 - flattened_ast: 2c3dbcf6a6cecbc4a4e2c9deee3a24741b20f015ec2ae6bd377e56cfd6c13ea3 - destructured_ast: e26be981bb32881dd74f5dd783be1a5dec1ce2caf1bb713119a51a68aa8e4f99 - inlined_ast: e26be981bb32881dd74f5dd783be1a5dec1ce2caf1bb713119a51a68aa8e4f99 - dce_ast: e26be981bb32881dd74f5dd783be1a5dec1ce2caf1bb713119a51a68aa8e4f99 + - initial_symbol_table: d34930d89c8aec07c1d731374d33438d56bddf131e1082f1cb33a6bd0a051fe4 + type_checked_symbol_table: 566beb9020eb2831c03e33e9ccc57745a48e0d1e8da1bfc58728b540009a2241 + unrolled_symbol_table: 566beb9020eb2831c03e33e9ccc57745a48e0d1e8da1bfc58728b540009a2241 + initial_ast: 38c52463a4ea7bf50a58c0dcce2207a67285ecb1bada3cba00b440e4143e90c8 + unrolled_ast: 38c52463a4ea7bf50a58c0dcce2207a67285ecb1bada3cba00b440e4143e90c8 + ssa_ast: 38c52463a4ea7bf50a58c0dcce2207a67285ecb1bada3cba00b440e4143e90c8 + flattened_ast: 6488a50344b7bfcc72bd9bc1dc6f8bb6ba8c1100b62d90d9e4db03fc31e699a6 + destructured_ast: 08e8f00945489967c912f27ec19d92fd71188992b72391cefc3fcfce9f948052 + inlined_ast: 08e8f00945489967c912f27ec19d92fd71188992b72391cefc3fcfce9f948052 + dce_ast: 08e8f00945489967c912f27ec19d92fd71188992b72391cefc3fcfce9f948052 bytecode: e997c02547a6881722d6ea219cf748dd821a13a4a7f2e4063aad71bb683a94c2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/function_return_unit.out b/tests/expectations/compiler/tuple/function_return_unit.out index 1a3f46f58b..d109267057 100644 --- a/tests/expectations/compiler/tuple/function_return_unit.out +++ b/tests/expectations/compiler/tuple/function_return_unit.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1ac71e1b5a420c9512b7bc6886e30d70bb4a57aaee1d28f0444e0685a2b50b88 - type_checked_symbol_table: 8ed7a8dbc503fa1d2118309e0e9dda2c5ac3cecd3de5766c00307e9f2a8fec67 - unrolled_symbol_table: 8ed7a8dbc503fa1d2118309e0e9dda2c5ac3cecd3de5766c00307e9f2a8fec67 - initial_ast: 0858846bce8fad857fec791dee7efc2f11dd47e3724f04730c32f6c5a8f3dba4 - unrolled_ast: 0858846bce8fad857fec791dee7efc2f11dd47e3724f04730c32f6c5a8f3dba4 - ssa_ast: 0858846bce8fad857fec791dee7efc2f11dd47e3724f04730c32f6c5a8f3dba4 - flattened_ast: 2c3dbcf6a6cecbc4a4e2c9deee3a24741b20f015ec2ae6bd377e56cfd6c13ea3 - destructured_ast: e26be981bb32881dd74f5dd783be1a5dec1ce2caf1bb713119a51a68aa8e4f99 - inlined_ast: e26be981bb32881dd74f5dd783be1a5dec1ce2caf1bb713119a51a68aa8e4f99 - dce_ast: e26be981bb32881dd74f5dd783be1a5dec1ce2caf1bb713119a51a68aa8e4f99 + - initial_symbol_table: d34930d89c8aec07c1d731374d33438d56bddf131e1082f1cb33a6bd0a051fe4 + type_checked_symbol_table: 566beb9020eb2831c03e33e9ccc57745a48e0d1e8da1bfc58728b540009a2241 + unrolled_symbol_table: 566beb9020eb2831c03e33e9ccc57745a48e0d1e8da1bfc58728b540009a2241 + initial_ast: 38c52463a4ea7bf50a58c0dcce2207a67285ecb1bada3cba00b440e4143e90c8 + unrolled_ast: 38c52463a4ea7bf50a58c0dcce2207a67285ecb1bada3cba00b440e4143e90c8 + ssa_ast: 38c52463a4ea7bf50a58c0dcce2207a67285ecb1bada3cba00b440e4143e90c8 + flattened_ast: 6488a50344b7bfcc72bd9bc1dc6f8bb6ba8c1100b62d90d9e4db03fc31e699a6 + destructured_ast: 08e8f00945489967c912f27ec19d92fd71188992b72391cefc3fcfce9f948052 + inlined_ast: 08e8f00945489967c912f27ec19d92fd71188992b72391cefc3fcfce9f948052 + dce_ast: 08e8f00945489967c912f27ec19d92fd71188992b72391cefc3fcfce9f948052 bytecode: e997c02547a6881722d6ea219cf748dd821a13a4a7f2e4063aad71bb683a94c2 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/function_return_varying_modes.out b/tests/expectations/compiler/tuple/function_return_varying_modes.out index 28028fe922..5282815423 100644 --- a/tests/expectations/compiler/tuple/function_return_varying_modes.out +++ b/tests/expectations/compiler/tuple/function_return_varying_modes.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 4d158c5e604c22808513443fa1471bd16be9c9ae242331adf1af1ee87b075354 - type_checked_symbol_table: 9d7c586d959f1df24dc1aee7202a91190c0c5155f715a580f457f21fb98930b0 - unrolled_symbol_table: 9d7c586d959f1df24dc1aee7202a91190c0c5155f715a580f457f21fb98930b0 - initial_ast: ea788e347e918c2063ecf7f12ffaecf2ab800924ac2b960f6dc00ee62f3daf95 - unrolled_ast: ea788e347e918c2063ecf7f12ffaecf2ab800924ac2b960f6dc00ee62f3daf95 - ssa_ast: 20356e72332fd29d93923c4f1cdbf07e7a0ee0c13f6ec2b0ce332f91b2ff73b1 - flattened_ast: 77f1dbc16b0634628f16d44d4ecf5ce2cbe47f7bd056e80c48cdb41d222f3978 - destructured_ast: b60d1b0182c72de245c118252a2dfcddb0d92eb602100732b2351c9bc541c12b - inlined_ast: b60d1b0182c72de245c118252a2dfcddb0d92eb602100732b2351c9bc541c12b - dce_ast: b60d1b0182c72de245c118252a2dfcddb0d92eb602100732b2351c9bc541c12b + - initial_symbol_table: 38e7bb895cf1c311c590566fc911a00e88327c9138dacd5fa5cc1d1c21fe3d61 + type_checked_symbol_table: e37a28669ba62cd19d09a16ab52d45338411a59178d161cf04c8e197287031a8 + unrolled_symbol_table: e37a28669ba62cd19d09a16ab52d45338411a59178d161cf04c8e197287031a8 + initial_ast: d469d18b4f9d31f05af6c427d08142497719533ec73ab51787f9f26602505511 + unrolled_ast: d469d18b4f9d31f05af6c427d08142497719533ec73ab51787f9f26602505511 + ssa_ast: 816320e5d403d11d72c95c85ba5ad263b99e8509266c64569a03ba863f6a573c + flattened_ast: f9096844f855a01c9bd005d575f8a38f5ba254a5ae3ba8aea53cfa45e4b2ddfb + destructured_ast: 12d90618bb0969d19d9984fab0dac29ea4553c97e10678828f1b801a6de02f79 + inlined_ast: 12d90618bb0969d19d9984fab0dac29ea4553c97e10678828f1b801a6de02f79 + dce_ast: 12d90618bb0969d19d9984fab0dac29ea4553c97e10678828f1b801a6de02f79 bytecode: 1743c6b346840b6c0bf0662b87f679119996cf9d3023c1236730fd0f5ff28df4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/function_unit_input_fail.out b/tests/expectations/compiler/tuple/function_unit_input_fail.out index b9a9c692b4..9f253f3ead 100644 --- a/tests/expectations/compiler/tuple/function_unit_input_fail.out +++ b/tests/expectations/compiler/tuple/function_unit_input_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:10:13\n |\n 10 | foo(());\n | ^^\n" + - "Error [ETYC0372056]: Unit expressions can only be used in return statements.\n --> compiler-test:10:13\n |\n 10 | foo(());\n | ^^\n" diff --git a/tests/expectations/compiler/tuple/return_with_different_modes.out b/tests/expectations/compiler/tuple/return_with_different_modes.out index cb4634f3fd..14aca2938b 100644 --- a/tests/expectations/compiler/tuple/return_with_different_modes.out +++ b/tests/expectations/compiler/tuple/return_with_different_modes.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 9d61592fbaca0a896d2557e778b55573d03d90bd64ee8a50d8fd8e2faa41b622 - type_checked_symbol_table: 78bd6fac168b635176a538e19371e235a8f1474057115fa46b279c32e124561e - unrolled_symbol_table: 78bd6fac168b635176a538e19371e235a8f1474057115fa46b279c32e124561e - initial_ast: 8be8ba1d0a33526bde4ab84a139be6acf2e7a23c7eb19e032af786d2c3cea84b - unrolled_ast: 8be8ba1d0a33526bde4ab84a139be6acf2e7a23c7eb19e032af786d2c3cea84b - ssa_ast: 0f9ec27dab2279f447b8876f6f848c2a67cde04d692f8f88c0a5f2fe0dc45e9e - flattened_ast: a4c835e9b37d93f39e99943909743063f95165d300b13e4cf0456278ac257358 - destructured_ast: 779b3c70de0c212ade6c87cac39ea1f2dc237b2607d43e9d3eea143e69b9ed0b - inlined_ast: 779b3c70de0c212ade6c87cac39ea1f2dc237b2607d43e9d3eea143e69b9ed0b - dce_ast: 779b3c70de0c212ade6c87cac39ea1f2dc237b2607d43e9d3eea143e69b9ed0b + - initial_symbol_table: f1267fd475b10853eedbd760edc04b9e2b9b227edf9d633fb766a0d7b368fca7 + type_checked_symbol_table: f5a080b3649bcd8e3c0cfd7705f9f56581be33a94cb5fee744164dc8ce078d37 + unrolled_symbol_table: f5a080b3649bcd8e3c0cfd7705f9f56581be33a94cb5fee744164dc8ce078d37 + initial_ast: 0fd17db5cb54c3360904bc0aa491fe8f2aab6bb1136dd1860891ddd0d65ec6c8 + unrolled_ast: 0fd17db5cb54c3360904bc0aa491fe8f2aab6bb1136dd1860891ddd0d65ec6c8 + ssa_ast: 5a071e8d85391f5e923c0c3e19f8632a81b4b4e4e9fd8c1b24ba7c6004b7d727 + flattened_ast: a50038b98999669f2fed5582a41f63de7aa14c0d07a33bb8b6f7df4e81984f91 + destructured_ast: 2f93860f30a117687b4794ddaa2f12991f346d7e327b7eb70906b864c556c17b + inlined_ast: 2f93860f30a117687b4794ddaa2f12991f346d7e327b7eb70906b864c556c17b + dce_ast: 2f93860f30a117687b4794ddaa2f12991f346d7e327b7eb70906b864c556c17b bytecode: 1743c6b346840b6c0bf0662b87f679119996cf9d3023c1236730fd0f5ff28df4 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/tuple_access.out b/tests/expectations/compiler/tuple/tuple_access.out index 7f8fd5c62b..ff7e1dd205 100644 --- a/tests/expectations/compiler/tuple/tuple_access.out +++ b/tests/expectations/compiler/tuple/tuple_access.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: f4b964b1d33e85d945f8606a8afb46bba1a2de36eec1af0fc2f5e5777bbc9202 - type_checked_symbol_table: 9fe27e837b9a43a5fd13978870331aa65b48d46120d9a16d8527bc1466fe4288 - unrolled_symbol_table: 9fe27e837b9a43a5fd13978870331aa65b48d46120d9a16d8527bc1466fe4288 - initial_ast: 82d3fa9f6cde4a683c75f85f59681144d2d01e22fc636fe061f0d400fb30272c - unrolled_ast: 82d3fa9f6cde4a683c75f85f59681144d2d01e22fc636fe061f0d400fb30272c - ssa_ast: 481ce80b954b00dfcf4192bcf4b5a2a3412007de620cdddba0e59379bb52b239 - flattened_ast: a2044d3aa33b2df5696afe158a8e155d46ad629a6a3a0631cb37da54a5fd064d - destructured_ast: aaa3b61d149a386275bbc3eeabf4a4217fb46602528461ca38ac52ebb719c53f - inlined_ast: aaa3b61d149a386275bbc3eeabf4a4217fb46602528461ca38ac52ebb719c53f - dce_ast: aaa3b61d149a386275bbc3eeabf4a4217fb46602528461ca38ac52ebb719c53f + - initial_symbol_table: 9672a1c6522be66467da02ece3d645da24847e66b9a42f0d995edc3dba4a29c2 + type_checked_symbol_table: a7c1d8e3ef332eaf8521890a5c4fdaa6284e0628f6084c039b3899d79c69fa47 + unrolled_symbol_table: a7c1d8e3ef332eaf8521890a5c4fdaa6284e0628f6084c039b3899d79c69fa47 + initial_ast: 1428853f8304d26818f18be5089eef6fed2b5591ddf25a5c98c3d7dee91e42a3 + unrolled_ast: 1428853f8304d26818f18be5089eef6fed2b5591ddf25a5c98c3d7dee91e42a3 + ssa_ast: bb4ff4b256c5f0983811309b8debe1b1137b247a6e6868ce2ca57037f58e8c6e + flattened_ast: 9ca34eab870390ff156737489e43cbe076b6b2574ee5ed51d6ee56e337dc2353 + destructured_ast: c7d31add2c6e1f874d4f1285a74b7d938f095aa39a8570324ff109767f06c94a + inlined_ast: c7d31add2c6e1f874d4f1285a74b7d938f095aa39a8570324ff109767f06c94a + dce_ast: c7d31add2c6e1f874d4f1285a74b7d938f095aa39a8570324ff109767f06c94a bytecode: 66ae5f7e0fec4de855fa451272351313df6f03b4a3799edd57ce21da859051da errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/tuple_destructure.out b/tests/expectations/compiler/tuple/tuple_destructure.out index eef471f928..7f4cde3d23 100644 --- a/tests/expectations/compiler/tuple/tuple_destructure.out +++ b/tests/expectations/compiler/tuple/tuple_destructure.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: ba61046fa1260eb59fd20fbd0766d23c1e67e35ac5c7f7788e457a9d9c97c506 - type_checked_symbol_table: a205634af3ce7d157d88622635e8f33dfe5b1fc9b57e87169b7e8c851dce86c9 - unrolled_symbol_table: a205634af3ce7d157d88622635e8f33dfe5b1fc9b57e87169b7e8c851dce86c9 - initial_ast: 99d4dddeec67bef33f5878b9426c55728683512da012e20c24b69bff7556965c - unrolled_ast: 99d4dddeec67bef33f5878b9426c55728683512da012e20c24b69bff7556965c - ssa_ast: e6335b7628386ba188907eb137e2813d95663c1543569be9142c44af7ded8552 - flattened_ast: 64bca0237ab7c0cdfcbfd8deb562478eeed4b470c5215210443e5d9954696f67 - destructured_ast: e16b57ce329a714aff7d0307f7bfffa7f456d86db3b1e6930b76be4d9a98bc80 - inlined_ast: e16b57ce329a714aff7d0307f7bfffa7f456d86db3b1e6930b76be4d9a98bc80 - dce_ast: e16b57ce329a714aff7d0307f7bfffa7f456d86db3b1e6930b76be4d9a98bc80 + - initial_symbol_table: 615e5c4873bfb065c7d899465b63f3ca44b6efaba5a14e825cd8bfbfc84be5e2 + type_checked_symbol_table: 226494e9b8cedbb630fd66ed538082130b2914f492ce04856c1c45a54b5ec054 + unrolled_symbol_table: 226494e9b8cedbb630fd66ed538082130b2914f492ce04856c1c45a54b5ec054 + initial_ast: 7894a617f7305927f11f7785628db1966f82260554fab4146b0e25d9c2292aa3 + unrolled_ast: 7894a617f7305927f11f7785628db1966f82260554fab4146b0e25d9c2292aa3 + ssa_ast: 541bae04df22e55c57e0dfd9a626c7c5dfbc6c104603a4c0e19611729f001d6e + flattened_ast: c2ff5afdca1cbf0ddbc7b154e30b0adfbb2fb3b6862cf9cb80f73fa71d926e1b + destructured_ast: 63f1e1b4174daea23d3b5cee9dc0101e50c688b24fad6fa0dc25eeb71d329fae + inlined_ast: b78dc090260ee6a681fbde61bb83eb71221cfd70604a4aa4fc7be6c0ffec2dbb + dce_ast: b78dc090260ee6a681fbde61bb83eb71221cfd70604a4aa4fc7be6c0ffec2dbb bytecode: 404bfa1fcdb0b113686f984a5d33322565e6acbb2438db7def4dd40d20f52093 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/tuple_in_assignment.out b/tests/expectations/compiler/tuple/tuple_in_assignment.out index ff52168b9f..b88f0816e0 100644 --- a/tests/expectations/compiler/tuple/tuple_in_assignment.out +++ b/tests/expectations/compiler/tuple/tuple_in_assignment.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 98970b51d53cfe55fa5233dd0e53c5060013d5f965b4319dbb65f5f3c197a575 - type_checked_symbol_table: 0fed7bc9897b9c66952dca28a6df89f0d0449a418fd192157c0ee4482db7816f - unrolled_symbol_table: 0fed7bc9897b9c66952dca28a6df89f0d0449a418fd192157c0ee4482db7816f - initial_ast: 0bcb2c4889cc9768a63edd3d51c78c2efcfd88e2527894211a7ebf02f6d79878 - unrolled_ast: 0bcb2c4889cc9768a63edd3d51c78c2efcfd88e2527894211a7ebf02f6d79878 - ssa_ast: 89d92b66da159f9e441a28c4634858a623928596d4bfa9b3334ed2e7fcb15d4c - flattened_ast: ffd298f12c33ec410ae91c190043dd8b7e671088d8722d656fdf614d5de760c6 - destructured_ast: 30fc0190379f9f2c3638e77bbedaa7277d3fe4779210731447a0f2a5a0684b19 - inlined_ast: 30fc0190379f9f2c3638e77bbedaa7277d3fe4779210731447a0f2a5a0684b19 - dce_ast: 891501a79d08323802535ae73380312c518d6f6ba1cbce357b5ba071d33cec53 + - initial_symbol_table: be1c3a1e825b2a993de4d748b62e806ffebc1d0f593e4c28bb5cfb938e9fbbb2 + type_checked_symbol_table: 40057f0926583ab6e7afffb71b27f1e111021ae7dd34efdbfcc8b5ea9bf92593 + unrolled_symbol_table: 40057f0926583ab6e7afffb71b27f1e111021ae7dd34efdbfcc8b5ea9bf92593 + initial_ast: b639b02096a876218388c5a35777bd59a0932eb16d18a3c6073ec0ab4108787c + unrolled_ast: b639b02096a876218388c5a35777bd59a0932eb16d18a3c6073ec0ab4108787c + ssa_ast: 0ac6215b9e70a4b1e1257456f4aaa959ef0728fcc72bc9bfb17262f62cf1a0b7 + flattened_ast: 8d6afb7a824fc6483aed24940254725d461d5c35b2acac44b6f423ea319d19ed + destructured_ast: c303f6c85c98125084d9b37cb251502b7dd81ed884b115f17c755c9a9a194c26 + inlined_ast: c303f6c85c98125084d9b37cb251502b7dd81ed884b115f17c755c9a9a194c26 + dce_ast: 2d904ea24afd9e4a0594419bff0accb3d620d95893050630f0df2aa1f5c418f0 bytecode: e58af56a6497ae064f0ac928ee1f89df6f05c41482ef3619acbacd8f1dfae217 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/tuple_in_definition.out b/tests/expectations/compiler/tuple/tuple_in_definition.out index 190ee96804..d0c23bc9d6 100644 --- a/tests/expectations/compiler/tuple/tuple_in_definition.out +++ b/tests/expectations/compiler/tuple/tuple_in_definition.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 41e6ada8c83400558af3f988c3ff570d80330b9877883f7c120635242a0deeef - type_checked_symbol_table: e1c36e4a8e486aac91ec0eaa1314a38db026d97a6a798d56a664b0d43afbb3a6 - unrolled_symbol_table: e1c36e4a8e486aac91ec0eaa1314a38db026d97a6a798d56a664b0d43afbb3a6 - initial_ast: f2a010303ab0097a671f677b34f1f10400a7bc6edf8e97013e76d0cf521f14f0 - unrolled_ast: f2a010303ab0097a671f677b34f1f10400a7bc6edf8e97013e76d0cf521f14f0 - ssa_ast: 50b84b6345b10f42990bc06a4d0d699ea59874f8ffba520b8e6272dbcd5a5285 - flattened_ast: 93c4f289ce6f68ab9e8a5ee81d24b11e2f63a1ffd925dc8d80884c80290c317c - destructured_ast: f930890677346a802c6808fb732e464aab9e45a65848ea639cefe1d140743573 - inlined_ast: f930890677346a802c6808fb732e464aab9e45a65848ea639cefe1d140743573 - dce_ast: 560f580ad89ada190a2de4ad2abb57a8e5b6c9e1a51741916acaed99f444cf29 + - initial_symbol_table: 3ec5268ababb12c85551a8b27519461805353f1a55cd6acdca32b142c944c625 + type_checked_symbol_table: b68a9ba626a5ea7cab7f2b02d7502a0d5811fc890f07306782a17665adba3b84 + unrolled_symbol_table: b68a9ba626a5ea7cab7f2b02d7502a0d5811fc890f07306782a17665adba3b84 + initial_ast: f1dd412df3fb6ad3d9acadf23f2e7e69e10bbea40a47ca91fdb96430cb994473 + unrolled_ast: f1dd412df3fb6ad3d9acadf23f2e7e69e10bbea40a47ca91fdb96430cb994473 + ssa_ast: 26e453e5843a1bd7aabfbf19ef3108fec377505e2197b1fadec749446c02504a + flattened_ast: bb122d119fc374e1d41cd4fa5558119d872df4d795cd19374fec67cd372e9654 + destructured_ast: df86f3d808f0f01aa1678130d5df537c3fffc8e25cc0fe02141e0126c4a95ad8 + inlined_ast: df86f3d808f0f01aa1678130d5df537c3fffc8e25cc0fe02141e0126c4a95ad8 + dce_ast: 017608244bef673f0bc431c2a0e560072c662a149fdeaad8c6bc3d276fc9e364 bytecode: 26120360e31f59b6a23dae65fe61c87e9e310aa11c12d90e995485dbeef81151 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/tuple_in_function_param.out b/tests/expectations/compiler/tuple/tuple_in_function_param.out index 48c20b9668..5327e20632 100644 --- a/tests/expectations/compiler/tuple/tuple_in_function_param.out +++ b/tests/expectations/compiler/tuple/tuple_in_function_param.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372056]: A function cannot take in a tuple as input.\n --> compiler-test:4:20\n |\n 4 | transition foo(a: (u8, u16)) -> (u8, u16) {\n | ^\n" + - "Error [ETYC0372051]: A function cannot take in a tuple as input.\n --> compiler-test:4:20\n |\n 4 | transition foo(a: (u8, u16)) -> (u8, u16) {\n | ^\n" diff --git a/tests/expectations/compiler/tuple/tuple_in_loop.out b/tests/expectations/compiler/tuple/tuple_in_loop.out index 94ff5b212f..0cebf70cd7 100644 --- a/tests/expectations/compiler/tuple/tuple_in_loop.out +++ b/tests/expectations/compiler/tuple/tuple_in_loop.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: 1cd8902413beacdbab73d31596c5a0502725efa914452fd82949533592482b55 - type_checked_symbol_table: 1622e71425318fd9521f4f995e218224023fff2c84ba7676cf6b39d4233b782f - unrolled_symbol_table: 1a4f5d4d5a1f75174269561983c8b12a481d7ab072cb3dd383746a81c5e2b1f3 - initial_ast: 35b9d53b7b87659ec3cea19eab80be0c69d9c1e3a56b865a9406020a083f55d6 - unrolled_ast: 9c1f40f519b68a1d7fe0b2c61c7b89b925f64baa372816d7bc20d15f117c9f76 - ssa_ast: 2d22cc1e939116bd64b08394ed1e6ad0ae6120c3ba49173f97f63e6b3533ae58 - flattened_ast: 392dc18bb022b3c3409dec45f0a09e280703117bc9effa0537f3ec09c389a813 - destructured_ast: ceeb00f0e674648fc62bf5f18956450516d8711b53455959c6b002578a1a710e - inlined_ast: ceeb00f0e674648fc62bf5f18956450516d8711b53455959c6b002578a1a710e - dce_ast: ceeb00f0e674648fc62bf5f18956450516d8711b53455959c6b002578a1a710e + - initial_symbol_table: ebe57e74cb35aa30d1d8d0ea4ae54399623762e0a3a1df7a4936c259c3def698 + type_checked_symbol_table: 9c6a88c3beeb531d8a2ba981b5b20c6f0469b2f5bac1bee0a0bf83097fb83f89 + unrolled_symbol_table: b03be4161c7cb3c28c7591ff551184f33e32a5bbfbd76e4f7e16a7c72fc7f10b + initial_ast: 8f78e2ea166237b2e3f6445a0e833ec2f1746d29258eb4fda70cbd8b523ae8fd + unrolled_ast: 9cffc6fd61683e74358c4c3bd29c717831682e57b54c6a5159af72da40a4c3b9 + ssa_ast: 3b078580d37661d1c52464c7badfaef301ec357bee6ad38829b48476b053bf01 + flattened_ast: d52855dfb323ed6d5f12b5cbb9da3f639fca4a22a09461b33d5a7bafc528254a + destructured_ast: 2b27043224884bdc6304978c4855d0642ba4c78f98e67d3127ee58b500f31e17 + inlined_ast: 2b27043224884bdc6304978c4855d0642ba4c78f98e67d3127ee58b500f31e17 + dce_ast: 2b27043224884bdc6304978c4855d0642ba4c78f98e67d3127ee58b500f31e17 bytecode: 9ef5de2d557b3a8119e5545ab597779492a53ca6f7097a946262eb65c1acdca7 errors: "" warnings: "" diff --git a/tests/expectations/compiler/tuple/tuple_in_record_fail.out b/tests/expectations/compiler/tuple/tuple_in_record_fail.out index d4e74d8455..343058c7ab 100644 --- a/tests/expectations/compiler/tuple/tuple_in_record_fail.out +++ b/tests/expectations/compiler/tuple/tuple_in_record_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372055]: A record cannot contain a tuple.\n --> compiler-test:6:9\n |\n 6 | amounts: (u64, u64),\n | ^^^^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372050]: A record cannot contain a tuple.\n --> compiler-test:6:9\n |\n 6 | amounts: (u64, u64),\n | ^^^^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/tuple_in_return_type.out b/tests/expectations/compiler/tuple/tuple_in_return_type.out index 3724da1c31..48487c4664 100644 --- a/tests/expectations/compiler/tuple/tuple_in_return_type.out +++ b/tests/expectations/compiler/tuple/tuple_in_return_type.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372054]: A tuple type cannot contain a tuple.\n --> compiler-test:4:35\n |\n 4 | transition bar(a: u8) -> (u8, (u8, u8)) {\n | ^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:5:20\n |\n 5 | return (a, (a + a, a * a));\n | ^^^^^^^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:5:20\n |\n 5 | return (a, (a + a, a * a));\n | ^^^^^^^^^^^^^^\n" + - "Error [ETYC0372049]: A tuple type cannot contain a tuple.\n --> compiler-test:4:35\n |\n 4 | transition bar(a: u8) -> (u8, (u8, u8)) {\n | ^^^^^^^^\nError [ETYC0372052]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:5:20\n |\n 5 | return (a, (a + a, a * a));\n | ^^^^^^^^^^^^^^\nError [ETYC0372052]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:5:20\n |\n 5 | return (a, (a + a, a * a));\n | ^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/tuple_in_struct_fail.out b/tests/expectations/compiler/tuple/tuple_in_struct_fail.out index 5c32bc3911..2e6b62bf03 100644 --- a/tests/expectations/compiler/tuple/tuple_in_struct_fail.out +++ b/tests/expectations/compiler/tuple/tuple_in_struct_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:5:9\n |\n 5 | mem: (u8, u16)\n | ^^^\nError [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:9:9\n |\n 9 | mems: (A, A)\n | ^^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372050]: A struct cannot contain a tuple.\n --> compiler-test:5:9\n |\n 5 | mem: (u8, u16)\n | ^^^\nError [ETYC0372050]: A struct cannot contain a tuple.\n --> compiler-test:9:9\n |\n 9 | mems: (A, A)\n | ^^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out b/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out index 0ba80a81f0..1bff2f9f7e 100644 --- a/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out +++ b/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:22:9\n |\n 22 | mem: (u8, u16)\n | ^^^\nError [ETYC0372056]: A function cannot take in a tuple as input.\n --> compiler-test:8:18\n |\n 8 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372054]: A tuple type cannot contain a tuple.\n --> compiler-test:12:28\n |\n 12 | function bar() -> (u8, (u16, u32)) {\n | ^^^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:13:22\n |\n 13 | return (1u8, (2u16, 3u32));\n | ^^^^^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:13:22\n |\n 13 | return (1u8, (2u16, 3u32));\n | ^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:17:13\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:17:29\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:17:34\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372093]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" + - "Error [ETYC0372050]: A struct cannot contain a tuple.\n --> compiler-test:22:9\n |\n 22 | mem: (u8, u16)\n | ^^^\nError [ETYC0372051]: A function cannot take in a tuple as input.\n --> compiler-test:8:18\n |\n 8 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372049]: A tuple type cannot contain a tuple.\n --> compiler-test:12:28\n |\n 12 | function bar() -> (u8, (u16, u32)) {\n | ^^^^^^^^^^\nError [ETYC0372052]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:13:22\n |\n 13 | return (1u8, (2u16, 3u32));\n | ^^^^^^^^^^^^\nError [ETYC0372052]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:13:22\n |\n 13 | return (1u8, (2u16, 3u32));\n | ^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:17:13\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372007]: Expected one type from `u8`, but got `(u8,u16)`\n --> compiler-test:17:29\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372007]: Expected one type from `u8`, but got `(u8,u16)`\n --> compiler-test:17:34\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372083]: A program must have at least one transition function.\n --> compiler-test:1:1\n |\n 1 | \n 2 | \n 3 | program test.aleo { \n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/type_fail.out b/tests/expectations/compiler/tuple/type_fail.out index 8dc2824c18..9bcc4dbef7 100644 --- a/tests/expectations/compiler/tuple/type_fail.out +++ b/tests/expectations/compiler/tuple/type_fail.out @@ -2,4 +2,4 @@ namespace: Compile expectation: Fail outputs: - - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:5:34\n |\n 5 | let t: (bool, u64) = (a, b); // We should expect a boolean, not a u64.\n | ^\nError [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.1);\n | ^\n" + - "Error [ETYC0372007]: Expected one type from `boolean`, but got `u64`\n --> compiler-test:5:34\n |\n 5 | let t: (bool, u64) = (a, b); // We should expect a boolean, not a u64.\n | ^\nError [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.1);\n | ^\n" diff --git a/tests/expectations/compiler/tuple/unit.out b/tests/expectations/compiler/tuple/unit.out index 5018fda41b..081fc59fcd 100644 --- a/tests/expectations/compiler/tuple/unit.out +++ b/tests/expectations/compiler/tuple/unit.out @@ -3,16 +3,16 @@ namespace: Compile expectation: Pass outputs: - - compile: - - initial_symbol_table: c79a221b65f20b98cdfe0e2cab9905ba1dcfd86d182d486edfde333e76db1de3 - type_checked_symbol_table: 1dccafce004a36493328ce5739febf9131062d2cd675d0a827226fb7dc2bea3e - unrolled_symbol_table: 1dccafce004a36493328ce5739febf9131062d2cd675d0a827226fb7dc2bea3e - initial_ast: 80dcf345fe4035e78ebda495dfb37f6dd6c19ef88357836d41c0200d98eda11e - unrolled_ast: 80dcf345fe4035e78ebda495dfb37f6dd6c19ef88357836d41c0200d98eda11e - ssa_ast: 80dcf345fe4035e78ebda495dfb37f6dd6c19ef88357836d41c0200d98eda11e - flattened_ast: a0c45d0f12bd6b99509561e38c4166449ca0e7e0cefa5f64a7c380e784bf9156 - destructured_ast: 8a6ce3ef76ad32d6911e2e6f46f2d4302691bd365b8126ac8840c81928dec316 - inlined_ast: 8a6ce3ef76ad32d6911e2e6f46f2d4302691bd365b8126ac8840c81928dec316 - dce_ast: 8a6ce3ef76ad32d6911e2e6f46f2d4302691bd365b8126ac8840c81928dec316 + - initial_symbol_table: b185604059c54f5a653ca1a0218060ebd2d912e622c7b1b4a89ca06d0618aff1 + type_checked_symbol_table: 92f9a4d72236d6d1374ae48803b00918c7d43eb4977976cc4251344fdf2302fe + unrolled_symbol_table: 92f9a4d72236d6d1374ae48803b00918c7d43eb4977976cc4251344fdf2302fe + initial_ast: c30576df4fc0be550f9981ee00b2c4dce273647b271ca30e08cb31defdd49ade + unrolled_ast: c30576df4fc0be550f9981ee00b2c4dce273647b271ca30e08cb31defdd49ade + ssa_ast: c30576df4fc0be550f9981ee00b2c4dce273647b271ca30e08cb31defdd49ade + flattened_ast: 485ebd2a9befa906ba98b0b0f69b9a729b70256880da854da2d2541179e7d77c + destructured_ast: b3c560b087a0700a4ff999d4f705374373baad47e7db310a0ac59a1ed09e0c09 + inlined_ast: b3c560b087a0700a4ff999d4f705374373baad47e7db310a0ac59a1ed09e0c09 + dce_ast: b3c560b087a0700a4ff999d4f705374373baad47e7db310a0ac59a1ed09e0c09 bytecode: 0b868939da4554de26106307f8749db7e5c629b71ec06c0870b138bc7ffabad4 errors: "" warnings: "" diff --git a/tests/expectations/execution/complex_finalization.out b/tests/expectations/execution/complex_finalization.out index 9127489d31..da2adaed7d 100644 --- a/tests/expectations/execution/complex_finalization.out +++ b/tests/expectations/execution/complex_finalization.out @@ -3,69 +3,69 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: b59573c01c725ed7a59419404e80e2899a6d6efe238f9de44beae554771ca99f - type_checked_symbol_table: 4ee79a9fb42907c52031de84e950ffa517f897a2f6991db187b93fefc902fe83 - unrolled_symbol_table: 4ee79a9fb42907c52031de84e950ffa517f897a2f6991db187b93fefc902fe83 - initial_ast: 4941955ee57e7baed71a857072ec05222cfdbe99db4101d0f1272e8f5ad0c34e - unrolled_ast: 4941955ee57e7baed71a857072ec05222cfdbe99db4101d0f1272e8f5ad0c34e - ssa_ast: 15d756f9b7585fffe01b646c9b4ea69526204d654f285038c54f108c5573f631 - flattened_ast: d1bb078bfdb57e129fe45fd0b506aca7c5b83d4667b66e7fa6cd952701987dcb - destructured_ast: 7bdd909ded82dbaefba1b11958129711d05d6c6f2618b0c586283bbcf3e8689e - inlined_ast: 7bdd909ded82dbaefba1b11958129711d05d6c6f2618b0c586283bbcf3e8689e - dce_ast: 7bdd909ded82dbaefba1b11958129711d05d6c6f2618b0c586283bbcf3e8689e - bytecode: 56b9658985c66ccadb9f1193ce728164bf8a64605f1ebf23bca2489366856408 + - initial_symbol_table: 7bb77482d474a1acc594c4ac6262192542850ef270ed39102e2025eea236b808 + type_checked_symbol_table: b9d6c93d2061af5c972f3ef8c58b4bd3ff2f37b64185573fffcfcd2f48f3e97a + unrolled_symbol_table: b9d6c93d2061af5c972f3ef8c58b4bd3ff2f37b64185573fffcfcd2f48f3e97a + initial_ast: 597f8b4af7afb81a09a012b4db9c0e321b46326405943e6f79f3656e606b0a19 + unrolled_ast: 597f8b4af7afb81a09a012b4db9c0e321b46326405943e6f79f3656e606b0a19 + ssa_ast: ab9ba4c06e2e51da12fe198ab00d6d78e624c9f57fb6514426a508070a15905d + flattened_ast: 7a253761f1f11632c9cb6709a38c0e804876185664b5fe737a28f2c4cb6490c5 + destructured_ast: d0bd11fe81652d33725f59e628bdbe62f20e3cc07c5c23b243cb99be6c33977a + inlined_ast: 575708ecdea5b44804de6c57b18af123b871982589e163c394d1bf6984ad0c21 + dce_ast: 575708ecdea5b44804de6c57b18af123b871982589e163c394d1bf6984ad0c21 + bytecode: 52779e86c63e1768f658aa3b1bbdaaa43251abbc0ea64c1d898a9e85cba92bb5 errors: "" warnings: "" - - initial_symbol_table: b461c032257a92400afaf032514ca947e4fbe8169b1eade3ed1550834c679e73 - type_checked_symbol_table: f2788d817dd0bbfaa0d61ec589737a17549c78b3213522aad0bb3b7de4718fbb - unrolled_symbol_table: f2788d817dd0bbfaa0d61ec589737a17549c78b3213522aad0bb3b7de4718fbb - initial_ast: b07de1732f9fbf56bda4bfa497774c02abeb63d1f31aeef52ec5f17245975746 - unrolled_ast: b07de1732f9fbf56bda4bfa497774c02abeb63d1f31aeef52ec5f17245975746 - ssa_ast: 69755e4b5a7f6818af26292291b3aa589a96845ecca58a322b401b5627751715 - flattened_ast: f8accc186f834b84a94efbfc54645e0fa73482891f48c6c591468176a3108050 - destructured_ast: 1723206e5e640c5c4c0ce31b99f4248ebc811c1c5e0e4b3694c4ce19e181eca5 - inlined_ast: 1723206e5e640c5c4c0ce31b99f4248ebc811c1c5e0e4b3694c4ce19e181eca5 - dce_ast: 1723206e5e640c5c4c0ce31b99f4248ebc811c1c5e0e4b3694c4ce19e181eca5 - bytecode: 2a3a8d08d08cb50221d366a70bb52bc132b8e46552dacf23efa66b85e306affc + - initial_symbol_table: 6667630862df8cdd7b8105d89a964848d62d0bf4cc14f7ac2c4c560b018ba2bf + type_checked_symbol_table: f6968b34b07b04cb6f7b13184b7cb1fd7611f23baffb6ccbd1558c3f0a4a3e6a + unrolled_symbol_table: f6968b34b07b04cb6f7b13184b7cb1fd7611f23baffb6ccbd1558c3f0a4a3e6a + initial_ast: 438ee4ed70a1b4128af38843e72fb958f0da90b692a323f416871f4d09bd2fc2 + unrolled_ast: 438ee4ed70a1b4128af38843e72fb958f0da90b692a323f416871f4d09bd2fc2 + ssa_ast: 47585633dcf9c67eab48e5591d83ca8fac8bc6ca7fb3cc5a12f6b506b47307fe + flattened_ast: 35ecef63a2e1f0a80953466724f75cf8cc957b6223f3dfd28e0fdf2e7bb03802 + destructured_ast: 6956b86ddb419103a5ddea8849cc7b4590e7f6e9eda563c7adb3c1c835728314 + inlined_ast: 957ea102944efaffa0e371291a1fb2615be487fc7f6f9eaa73a34b337b5e974f + dce_ast: 957ea102944efaffa0e371291a1fb2615be487fc7f6f9eaa73a34b337b5e974f + bytecode: 745bf39548194d111a724d0f689714d35016d491c0ca78bcc82b500affe6dd05 errors: "" warnings: "" - - initial_symbol_table: f3a1951ac268fe8393566f81c1ea44728310d824918ed6acafdf36844c0a1f79 - type_checked_symbol_table: 73d416a422eb9e1c6fbfd816fee82fdd33db323b58e0535323a3b8cfffb2167c - unrolled_symbol_table: 73d416a422eb9e1c6fbfd816fee82fdd33db323b58e0535323a3b8cfffb2167c - initial_ast: 09e0564f8ba064260e149f10e0e9ebb54d600280772f6327f21ec8c8ff7a5289 - unrolled_ast: 7e767eb2e1e12c85c3d73978e9e9e04ae0f13bcc91e9dd8efde1e35d090933aa - ssa_ast: f020625c7103b27f946f6516b4675377414aed95e3c0a5aadbd66f1e35756285 - flattened_ast: e3879ba4aa9064ffeca028688b6dcad0c341049e5554cf733343e9fde90b03ef - destructured_ast: b00c40e48e7b085780331ca63c6e9d4db10de33517fc43660cc490263c8cc7a7 - inlined_ast: b00c40e48e7b085780331ca63c6e9d4db10de33517fc43660cc490263c8cc7a7 - dce_ast: b00c40e48e7b085780331ca63c6e9d4db10de33517fc43660cc490263c8cc7a7 - bytecode: 115508df86f6c7e48dae71a5a27aed36bade699723aef76ac71e64316e995c03 + - initial_symbol_table: 29785798efbd04f53bc0d705842e2ff4b657d3fc42edeef0b715d846f0676468 + type_checked_symbol_table: 4c32dda9f1cb075a03e1ee595e9c3159979ca577b22525dfff0f2e363ead3814 + unrolled_symbol_table: 4c32dda9f1cb075a03e1ee595e9c3159979ca577b22525dfff0f2e363ead3814 + initial_ast: 305aae3c5c71f9fe12d2e0c1725384abee875bb4711654975230c0d47e126a46 + unrolled_ast: ed3eed3d381d06067bbf598180bdb94c0a565a08048f5b49a49f6d58b4853b2f + ssa_ast: 4d55388068e004f4a703bc5b23d48394fc6253de65d043798c6f812727dff259 + flattened_ast: 5bf37e19ec1b1e60210c4a56aae3c73da7a92ecfa9263f5a4779d4267a5cd513 + destructured_ast: cdbfa92f5df6a1ef9ab10a5cf03c9b775d80e77bc34b03ffd0250a1e76f7bf66 + inlined_ast: b27f52d0d352c9bbec3f795bc7bf877a712f6dd829153b2a77491fece6c5a768 + dce_ast: b27f52d0d352c9bbec3f795bc7bf877a712f6dd829153b2a77491fece6c5a768 + bytecode: 63f847c74fa6d9e087be27e6cdbe40035b78675c173b83f75929ab082d1362c8 errors: "" warnings: "" - - initial_symbol_table: c328b48a0b49f71637374a18bca07dd2b7a5552e14528ffc746e4107946ddad2 - type_checked_symbol_table: 028c6362225f3fb69685c859a45819432d319029029faa86e08b6480b9b9c5d3 - unrolled_symbol_table: 028c6362225f3fb69685c859a45819432d319029029faa86e08b6480b9b9c5d3 - initial_ast: 4e2a12578f9664dea231e66b4184d5a00480de14b77dcb5e3e8179d28eff73f9 - unrolled_ast: 156bd0fd8b98ae634a88f00fd89ec4ad7dfb1736c9d761d09e1310daa3ac6920 - ssa_ast: 0f2b7ffe40a64cc9a3313d91ea9ca1c07ed1646808c8e1448db7503aa8af8085 - flattened_ast: 8503f519476ca0a8ef22b3206ffd096e4b7cc089fbb6ae94c3a693268c2bd0bb - destructured_ast: b041e9064e0a07ec7e1b94d85b8e0d2bb2b6536a54e19fa600c81e8e308b6c11 - inlined_ast: b041e9064e0a07ec7e1b94d85b8e0d2bb2b6536a54e19fa600c81e8e308b6c11 - dce_ast: b041e9064e0a07ec7e1b94d85b8e0d2bb2b6536a54e19fa600c81e8e308b6c11 - bytecode: 52f79fd1e434cc22a2984e367922be363de60fb3bcdc7f2792c2ff44beaa3025 + - initial_symbol_table: 07432ad562709e5ba484e54a0724e23d68616146b7c3b30329e7f7a70f35c080 + type_checked_symbol_table: 5c25d239e8e164d40378b1b8941e6c868d14516befea4436dcfdd53ea1e9eedb + unrolled_symbol_table: 5c25d239e8e164d40378b1b8941e6c868d14516befea4436dcfdd53ea1e9eedb + initial_ast: 62a3f6c9feeb8010ba621b31329f79c41e5ee03b4dde0d24ec132548dfe11a48 + unrolled_ast: 438ac0d2e4c3ddedeecb33edf92a1f63a176682cfbb4e931cf1716ac6ce51f26 + ssa_ast: 228b23f95808b96f4fb541d23d6cfb05617ddefa56be984a31da845d860b1e77 + flattened_ast: c6c6693e536026fe985065083ff57e46e1f3d58ab50b91759dad3b4fe7cc9fd8 + destructured_ast: f89cfb448f82b0981e04b43c66b388423047d13bb28beef69f1b03d6b2b4fc92 + inlined_ast: dbd079d563a12e237f241b307fecb7915d7840a19340ad9526828a9b41b05810 + dce_ast: dbd079d563a12e237f241b307fecb7915d7840a19340ad9526828a9b41b05810 + bytecode: d1e5f85421db54ae081514b026936fe5000a36feaa60a4cf7b28212303f6456f errors: "" warnings: "" - - initial_symbol_table: e70a0291a9f05bdea8956f36b7460ea80d62c4d24ba9e687d4e1db9469d54950 - type_checked_symbol_table: 6dfe26843921dc2b3c3fb91bbabe183c8ed0b8ad1a3d006d85fedccb62e45054 - unrolled_symbol_table: 6dfe26843921dc2b3c3fb91bbabe183c8ed0b8ad1a3d006d85fedccb62e45054 - initial_ast: 3e15d5343e89262d46f01552b755964ebe9e6e31add605a6e7f0bf97923306a2 - unrolled_ast: 81e2bd9530ebbc1c9d015ff3317105d5e93eee2b15cd90e79f3723913ca62335 - ssa_ast: 68c5d2a41856db575d4920302489316768565937602720fd14e2bd27ac377329 - flattened_ast: 414d9623f1d25ead4f30d4c0bdcbfe8d74df40fb08606dafd6d4ebe0272bda2d - destructured_ast: 9bc0e63b7b23956bd54f2394b013f585dff191aec6b76ded36868ab4d541291c - inlined_ast: 9bc0e63b7b23956bd54f2394b013f585dff191aec6b76ded36868ab4d541291c - dce_ast: 9bc0e63b7b23956bd54f2394b013f585dff191aec6b76ded36868ab4d541291c - bytecode: a4f1358380ab021bfa21fc627b0dac45b4065098f6b688fca09daa3906e7c768 + - initial_symbol_table: 18c4fe5183f4f9627898461523cc1d50412a8959b6441b34bfc4216895777e8a + type_checked_symbol_table: 2433e6f49939519b69cce7e9d6c856c4dd6a5581e5c144805d17737323d45c0a + unrolled_symbol_table: 2433e6f49939519b69cce7e9d6c856c4dd6a5581e5c144805d17737323d45c0a + initial_ast: a05405bdd249823d3d69dd4cb4c2035910e5267df59e1ddafe268260171a2d49 + unrolled_ast: 19a07cf89a8bf81b341d3eaf365f894d6a634db4272a46c76c600a8378eb1b6a + ssa_ast: 0cb2c5a02e25b5b495a49ae931352d10e3fcddd1a15d68e8b2aed31035efc354 + flattened_ast: 7c44d8db0a4623cbb28dbf13e336036106a7c2b01a5380c05e0362ca71317b9c + destructured_ast: 2111b92c65736229850f94bd1d341b9964c3307833c06ae8ef2c34fd0ae131c3 + inlined_ast: 6e627c33343177cbcdd2a6805e4fdb518ad90bcecd4f60fe519b4dd1cf3e6d8a + dce_ast: 6e627c33343177cbcdd2a6805e4fdb518ad90bcecd4f60fe519b4dd1cf3e6d8a + bytecode: 7eae5abe4170258417df0bc1e66ec3ff346dfc2a1b325844241bf5e2c7430a12 errors: "" warnings: "" execute: diff --git a/tests/tests/compiler/array/array_in_finalize.leo b/tests/tests/compiler/array/array_in_finalize.leo index 85864096cf..3ad8ab73c2 100644 --- a/tests/tests/compiler/array/array_in_finalize.leo +++ b/tests/tests/compiler/array/array_in_finalize.leo @@ -4,11 +4,11 @@ expectation: Pass */ program test.aleo { - transition foo(a: [bool; 8]) { - return then finalize a; + async transition foo(a: [bool; 8]) -> Future { + return fin_foo(a); } - finalize foo(a: [bool; 8]) { + async function fin_foo(a: [bool; 8]) { assert_eq(true, true); } } diff --git a/tests/tests/compiler/array/array_in_mapping.leo b/tests/tests/compiler/array/array_in_mapping.leo index 43fce814e2..24e91e3151 100644 --- a/tests/tests/compiler/array/array_in_mapping.leo +++ b/tests/tests/compiler/array/array_in_mapping.leo @@ -6,11 +6,11 @@ expectation: Pass program test.aleo { mapping data: address => [bool; 8]; - transition foo(a: [bool; 8]) { - return then finalize(self.caller, a); + async transition foo(a: [bool; 8]) -> Future { + return fin_foo(self.caller, a); } - finalize foo(caller: address, a: [bool; 8]) { + async function fin_foo(caller: address, a: [bool; 8]) { data.set(caller, a); } } diff --git a/tests/tests/compiler/constants/constant_finalize.leo b/tests/tests/compiler/constants/constant_finalize.leo index e0e95d7588..a6bec06311 100644 --- a/tests/tests/compiler/constants/constant_finalize.leo +++ b/tests/tests/compiler/constants/constant_finalize.leo @@ -8,11 +8,11 @@ program test.aleo { mapping values: u8 => u8; const BIG_NUMBER: u8 = 1u8; - transition finalize_self_caller() -> () { - return then finalize(self.caller); + async transition finalize_self_caller() -> Future { + return finalize_finalize_self_caller(self.caller); } - finalize finalize_self_caller(caller: address) -> () { + async function finalize_finalize_self_caller(caller: address) -> () { const TINY: u8 = 3u8; let current_value: u8 = Mapping::get_or_use(values, 0u8, 0u8) + TINY + BIG_NUMBER; Mapping::set(values, 0u8, current_value + 1u8); diff --git a/tests/tests/compiler/examples/basic_bank.leo b/tests/tests/compiler/examples/basic_bank.leo index c7ab2fa5c1..5519bc32e5 100644 --- a/tests/tests/compiler/examples/basic_bank.leo +++ b/tests/tests/compiler/examples/basic_bank.leo @@ -3,7 +3,7 @@ namespace: Compile expectation: Pass */ -program test.aleo { +program basic_bank.aleo { // A token, issued by a bank. // - 'owner' : The address of the account that owns the record associated with this token. // - 'amount' : The amount of tokens owned by the account. @@ -33,7 +33,7 @@ program test.aleo { // Returns a new Token with the remaining amount of money. // - `token` : A record containing tokens to deposit. // - `amount`: The amount of tokens to deposit. - transition deposit(token: Token, amount: u64) -> Token { + async transition deposit(token: Token, amount: u64) -> (Token, Future) { let difference: u64 = token.amount - amount; let remaining: Token = Token { @@ -44,13 +44,13 @@ program test.aleo { // Compute the hash of the token owner. let hash: field = BHP256::hash_to_field(token.owner); - return remaining then finalize(hash, amount); + return (remaining, finalize_deposit(hash, amount)); } // Updates on-chain state by the amount of tokens deposited. // - `hash` : The hash of the token owner. // - `amount`: The amount of tokens that were deposited. - finalize deposit(hash: field, amount: u64) { + async function finalize_deposit(hash: field, amount: u64) { let current_amount: u64 = Mapping::get_or_use(balances, hash, 0u64); Mapping::set(balances, hash, current_amount + amount); } @@ -61,7 +61,7 @@ program test.aleo { // - `rate` : The compound interest rate. // - `periods` : The number of periods to compound the interest over. // Requires that the function caller is the bank. - transition withdraw(recipient: address, amount: u64, rate: u64, periods: u64) -> Token { + async transition withdraw(recipient: address, amount: u64, rate: u64, periods: u64) -> (Token, Future) { assert_eq(self.caller, aleo1t0uer3jgtsgmx5tq6x6f9ecu8tr57rzzfnc2dgmcqldceal0ls9qf6st7a); let hash: field = BHP256::hash_to_field(recipient); @@ -72,13 +72,13 @@ program test.aleo { amount: total, }; - return token then finalize(hash, amount); + return (token, finalize_withdraw(hash, amount)); } // Updates on-chain state by the amount of tokens withdrawn. // - `hash` : The hash of the token owner. // - `amount`: The amount of tokens that were withdrawn. - finalize withdraw(hash: field, amount: u64) { + async function finalize_withdraw(hash: field, amount: u64) { let current_amount: u64 = Mapping::get_or_use(balances, hash, 0u64); Mapping::set(balances, hash, current_amount - amount); } diff --git a/tests/tests/compiler/examples/lottery.leo b/tests/tests/compiler/examples/lottery.leo index f7fccfb719..0317f32428 100644 --- a/tests/tests/compiler/examples/lottery.leo +++ b/tests/tests/compiler/examples/lottery.leo @@ -4,7 +4,7 @@ expectation: Pass */ // The 'lottery' program. -program test.aleo { +program lottery.aleo { mapping num_winners: u8 => u8; @@ -12,14 +12,14 @@ program test.aleo { owner: address, } - transition play() -> Ticket { + async transition play() -> (Ticket, Future) { let ticket: Ticket = Ticket { owner: self.caller, }; - return ticket then finalize(); + return (ticket, finalize_play()); } - finalize play() { + async function finalize_play() { // Check that the lottery has not expired. assert(block.height <= 1000u32); @@ -33,3 +33,4 @@ program test.aleo { } } + diff --git a/tests/tests/compiler/examples/token.leo b/tests/tests/compiler/examples/token.leo index b860415570..66dbed5a0d 100644 --- a/tests/tests/compiler/examples/token.leo +++ b/tests/tests/compiler/examples/token.leo @@ -3,7 +3,7 @@ namespace: Compile expectation: Pass */ -program test.aleo { +program token.aleo { // On-chain storage of an `account` map, with `address` as the key, // and `u64` as the value. mapping account: address => u64; @@ -18,12 +18,12 @@ program test.aleo { /* Mint */ // The function `mint_public` issues the specified token amount for the token receiver publicly on the network. - transition mint_public(public receiver: address, public amount: u64) { + async transition mint_public(public receiver: address, public amount: u64) -> Future { // Mint the tokens publicly by invoking the computation on-chain. - return then finalize(receiver, amount); + return finalize_mint_public(receiver, amount); } - finalize mint_public(public receiver: address, public amount: u64) { + async function finalize_mint_public(public receiver: address, public amount: u64) { // Increments `account[receiver]` by `amount`. // If `account[receiver]` does not exist, it will be created. // If `account[receiver] + amount` overflows, `mint_public` is reverted. @@ -40,12 +40,12 @@ program test.aleo { } /* Transfer */ - transition transfer_public(public receiver: address, public amount: u64) { + async transition transfer_public(public receiver: address, public amount: u64) -> Future { // Transfer the tokens publicly, by invoking the computation on-chain. - return then finalize(self.caller, receiver, amount); + return finalize_transfer_public(self.caller, receiver, amount); } - finalize transfer_public(public sender: address, public receiver: address, public amount: u64) { + async function finalize_transfer_public(public sender: address, public receiver: address, public amount: u64) { // Decrements `account[sender]` by `amount`. // If `account[sender]` does not exist, it will be created. // If `account[sender] - amount` underflows, `transfer_public` is reverted. @@ -83,7 +83,7 @@ program test.aleo { // The function `transfer_private_to_public` turns a specified token amount from a token record into public tokens for the specified receiver. // This function preserves privacy for the sender's record, however it publicly reveals the token receiver and the token amount. - transition transfer_private_to_public(sender: token, public receiver: address, public amount: u64) -> token { + async transition transfer_private_to_public(sender: token, public receiver: address, public amount: u64) -> (token, Future) { // Checks the given token record has a sufficient token amount. // This `sub` operation is safe, and the proof will fail if an underflow occurs. // `difference` holds the change amount for the caller. @@ -97,10 +97,10 @@ program test.aleo { // Output the sender's change record. // Increment the token amount publicly for the token receiver. - return remaining then finalize(receiver, amount); + return (remaining, finalize_transfer_private_to_public(receiver, amount)); } - finalize transfer_private_to_public(public receiver: address, public amount: u64) { + async function finalize_transfer_private_to_public(public receiver: address, public amount: u64) { // Increments `account[receiver]` by `amount`. // If `account[receiver]` does not exist, it will be created. // If `account[receiver] + amount` overflows, `transfer_private_to_public` is reverted. @@ -110,7 +110,7 @@ program test.aleo { // The function `transfer_public_to_private` turns a specified token amount from `account` into a token record for the specified receiver. // This function preserves privacy for the receiver's record, however it publicly reveals the caller and the specified token amount. - transition transfer_public_to_private(public receiver: address, public amount: u64) -> token { + async transition transfer_public_to_private(public receiver: address, public amount: u64) -> (token, Future) { // Produces a token record for the token receiver. let transferred: token = token { owner: receiver, @@ -119,10 +119,10 @@ program test.aleo { // Output the receiver's record. // Decrement the token amount of the caller publicly. - return transferred then finalize(self.caller, amount); + return (transferred, finalize_transfer_public_to_private(self.caller, amount)); } - finalize transfer_public_to_private(public sender: address, public amount: u64) { + async function finalize_transfer_public_to_private(public sender: address, public amount: u64) { // Decrements `account[sender]` by `amount`. // If `account[sender]` does not exist, it will be created. // If `account[sender] - amount` underflows, `transfer_public_to_private` is reverted. @@ -131,3 +131,4 @@ program test.aleo { } } + diff --git a/tests/tests/compiler/examples/vote.leo b/tests/tests/compiler/examples/vote.leo index 9df11b8cdf..e6ec070564 100644 --- a/tests/tests/compiler/examples/vote.leo +++ b/tests/tests/compiler/examples/vote.leo @@ -4,7 +4,7 @@ expectation: Pass */ // The 'vote.leo' program. -program test.aleo { +program vote.aleo { // Proposal details struct ProposalInfo { title: field, @@ -36,7 +36,7 @@ program test.aleo { mapping disagree_votes: field => u64; // Propose a new proposal to vote on. - transition propose(public info: ProposalInfo) -> Proposal { + async transition propose(public info: ProposalInfo) -> (Proposal, Future) { // Authenticate proposer. assert_eq(self.caller, info.proposer); @@ -46,52 +46,45 @@ program test.aleo { // Return a new record for the proposal. // Finalize the proposal id. - return Proposal { - owner: self.caller, - id, - info, - } then finalize(id); + return (Proposal { owner: self.caller, id, info }, finalize_propose(id)); } // Create a new proposal in the "tickets" mapping. - finalize propose(public id: field) { + async function finalize_propose(public id: field) { Mapping::set(tickets, id, 0u64); } // Create a new ticket to vote with. - transition new_ticket( + async transition new_ticket( public pid: field, public voter: address, - ) -> Ticket { + ) -> (Ticket, Future) { // Finalize the proposal id for the ticket. - return Ticket { - owner: voter, - pid, - } then finalize(pid); + return (Ticket { owner: voter, pid }, finalize_new_ticket(pid)); } // Create a new ticket on a proposal in the "tickets" mapping. - finalize new_ticket(public pid: field) { + async function finalize_new_ticket(public pid: field) { let current: u64 = Mapping::get_or_use(tickets, pid, 0u64); Mapping::set(tickets, pid, current + 1u64); } // Vote privately to agree with a proposal. - transition agree(ticket: Ticket) { + async transition agree(ticket: Ticket) -> Future { // Finalize this vote. - return then finalize(ticket.pid); + return finalize_agree(ticket.pid); } - finalize agree(public pid: field) { + async function finalize_agree(public pid: field) { // Publicly increment the number of agree votes. let current: u64 = Mapping::get_or_use(agree_votes, pid, 0u64); Mapping::set(agree_votes, pid, current + 1u64); } // Vote privately to disagree with a proposal. - transition disagree(ticket: Ticket) { + async transition disagree(ticket: Ticket) -> Future { // Finalize this vote. - return then finalize(ticket.pid); + return finalize_disagree(ticket.pid); } - finalize disagree(pid: field) { + async function finalize_disagree(pid: field) { // Publicly increment the number of disagree votes. let current: u64 = Mapping::get_or_use(disagree_votes, pid, 0u64); Mapping::set(disagree_votes, pid, current + 1u64); diff --git a/tests/tests/compiler/expression/cast_fail.leo b/tests/tests/compiler/expression/cast_fail.leo index d70abbacdf..8db06b78d7 100644 --- a/tests/tests/compiler/expression/cast_fail.leo +++ b/tests/tests/compiler/expression/cast_fail.leo @@ -11,7 +11,7 @@ program test.aleo { data: field; } - transition main(a: field) { + async transition main(a: field) -> Future { // Cannot cast to a string. let b: string = a as string; // Cannot cast a struct. @@ -20,10 +20,10 @@ program test.aleo { // Cannot cast a tuple. let e: (field, field) = (a, a); let f: field = e as field; - return then finalize(a); + return finalize_main(a); } - finalize main(a: field) { + async function finalize_main(a: field) { // Cannot cast a mapping. let b: field = balances as field; assert_eq(b, a); diff --git a/tests/tests/compiler/finalize/block_height.leo b/tests/tests/compiler/finalize/block_height.leo index c457b54abb..d129990fc0 100644 --- a/tests/tests/compiler/finalize/block_height.leo +++ b/tests/tests/compiler/finalize/block_height.leo @@ -4,9 +4,11 @@ expectation: Pass */ program test.aleo { - transition matches(height: u32) { - return then finalize(height); - } finalize matches(height: u32) { + async transition matches(height: u32) -> Future { + return finalize_matches(height); + } + + async function finalize_matches(height: u32) { assert_eq(height, block.height); } } diff --git a/tests/tests/compiler/finalize/closure_with_finalize_fail.leo b/tests/tests/compiler/finalize/closure_with_finalize_fail.leo index 132bbaa6dd..b435058f73 100644 --- a/tests/tests/compiler/finalize/closure_with_finalize_fail.leo +++ b/tests/tests/compiler/finalize/closure_with_finalize_fail.leo @@ -12,16 +12,16 @@ program test.aleo { return a + b; } - finalize bar(a: u8, b: u8) -> u8 { + async function finalize_bar(a: u8, b: u8) -> u8 { return a + b; } - function mint_public(receiver: address, amount: u64) { - return then finalize(receiver, amount); + function mint_public(receiver: address, amount: u64) -> Future { + return finalize_mint(receiver, amount); } - finalize mint_public(receiver: address, amount: u64) { + async function finalize_mint(receiver: address, amount: u64) { Mapping::set(account, receiver, amount); } diff --git a/tests/tests/compiler/finalize/contains.leo b/tests/tests/compiler/finalize/contains.leo index 1bcac8d4c5..43e254978a 100644 --- a/tests/tests/compiler/finalize/contains.leo +++ b/tests/tests/compiler/finalize/contains.leo @@ -7,11 +7,11 @@ program test.aleo { mapping balances: address => u32; - transition foo() -> () { - return then finalize(self.caller); + async transition foo() -> Future { + return finalize_foo(self.caller); } - finalize foo(account: address) -> () { + async function finalize_foo(account: address) -> () { let expect_false: bool = Mapping::contains(balances, account); assert(!expect_false); } diff --git a/tests/tests/compiler/finalize/decrement_fail.leo b/tests/tests/compiler/finalize/decrement_fail.leo index dc513caebc..13486f1b7e 100644 --- a/tests/tests/compiler/finalize/decrement_fail.leo +++ b/tests/tests/compiler/finalize/decrement_fail.leo @@ -6,11 +6,11 @@ expectation: Fail program test.aleo { mapping amounts: address => u128; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_dec(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_dec(addr: address, amount: u128) { decrement(amounts, addr, amount); } } diff --git a/tests/tests/compiler/finalize/decrement_via_get_set.leo b/tests/tests/compiler/finalize/decrement_via_get_set.leo index cbee8a3cd7..710598a813 100644 --- a/tests/tests/compiler/finalize/decrement_via_get_set.leo +++ b/tests/tests/compiler/finalize/decrement_via_get_set.leo @@ -6,11 +6,11 @@ expectation: Pass program test.aleo { mapping amounts: address => u128; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_dec(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_dec(addr: address, amount: u128) { let current_amount: u128 = Mapping::get_or_use(amounts, addr, 0u128); Mapping::set(amounts, addr, current_amount - amount); } diff --git a/tests/tests/compiler/finalize/empty_finalize_fail.leo b/tests/tests/compiler/finalize/empty_finalize_fail.leo index ce1cfee9b9..bacf3884bf 100644 --- a/tests/tests/compiler/finalize/empty_finalize_fail.leo +++ b/tests/tests/compiler/finalize/empty_finalize_fail.leo @@ -5,9 +5,9 @@ expectation: Fail program test.aleo { - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return finalize_mint(receiver, amount); } - finalize mint_public (public receiver: address, public amount: u64) {} + async function finalize_mint(public receiver: address, public amount: u64) {} } diff --git a/tests/tests/compiler/finalize/finalize.leo b/tests/tests/compiler/finalize/finalize.leo index 5ba0c24124..f760c08829 100644 --- a/tests/tests/compiler/finalize/finalize.leo +++ b/tests/tests/compiler/finalize/finalize.leo @@ -7,20 +7,20 @@ program test.aleo { mapping account: address => u64; mapping values: u8 => u8; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return finalize_mint(receiver, amount); } - finalize mint_public (public receiver: address, public amount: u64) { + async function finalize_mint(public receiver: address, public amount: u64) { let current_amount: u64 = Mapping::get_or_use(account, receiver, 0u64); Mapping::set(account, receiver, current_amount + amount); } - transition finalize_self_caller() -> () { - return then finalize(self.caller); + async transition finalize_self_caller() -> Future { + return finalize_finalize_self_caller(self.caller); } - finalize finalize_self_caller(caller: address) -> () { + async function finalize_finalize_self_caller(caller: address) -> () { let current_value: u8 = Mapping::get_or_use(values, 0u8, 0u8); Mapping::set(values, 0u8, current_value + 1u8); let current_amount: u64 = Mapping::get_or_use(account, caller, 0u64); diff --git a/tests/tests/compiler/finalize/finalize_fail.leo b/tests/tests/compiler/finalize/finalize_fail.leo index deeb214fbe..309454d7bd 100644 --- a/tests/tests/compiler/finalize/finalize_fail.leo +++ b/tests/tests/compiler/finalize/finalize_fail.leo @@ -7,7 +7,7 @@ program test.aleo { mapping account: address => u64; mapping values: u8 => u8; - transition mint_public(public receiver: address, public amount: u64) { + async transition mint_public(public receiver: address, public amount: u64) -> Future { return then finalize(receiver, amount); } diff --git a/tests/tests/compiler/finalize/finalize_missing_return_fail.leo b/tests/tests/compiler/finalize/finalize_missing_return_fail.leo index 7e541f9f7a..4111aff052 100644 --- a/tests/tests/compiler/finalize/finalize_missing_return_fail.leo +++ b/tests/tests/compiler/finalize/finalize_missing_return_fail.leo @@ -7,11 +7,11 @@ program test.aleo { mapping account: address => u64; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return fin_mint(receiver, amount); } - finalize mint_public (public receiver: address, public amount: u64) -> u64 { + async function fin_mint(public receiver: address, public amount: u64) -> u64 { Mapping::set(account, receiver, amount); } } diff --git a/tests/tests/compiler/finalize/finalize_name_mismatch_fail.leo b/tests/tests/compiler/finalize/finalize_name_mismatch_fail.leo index 0391c479a0..a1a83965ad 100644 --- a/tests/tests/compiler/finalize/finalize_name_mismatch_fail.leo +++ b/tests/tests/compiler/finalize/finalize_name_mismatch_fail.leo @@ -7,11 +7,11 @@ program test.aleo { mapping account: address => u64; mapping values: u8 => u8; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return finalize_mint_public(receiver, amount); } - finalize mint_private (public receiver: address, public amount: u64) { + async function finalize_mint_private (public receiver: address, public amount: u64) { Mapping::set(account, receiver, amount); } diff --git a/tests/tests/compiler/finalize/finalize_returns_value_fail.leo b/tests/tests/compiler/finalize/finalize_returns_value_fail.leo index d00154386a..1655e882f5 100644 --- a/tests/tests/compiler/finalize/finalize_returns_value_fail.leo +++ b/tests/tests/compiler/finalize/finalize_returns_value_fail.leo @@ -4,11 +4,11 @@ expectation: Fail */ program test.aleo { - transition public_adder(public a: u8, public b: u8) { - return then finalize(a, b); + async transition public_adder(public a: u8, public b: u8) -> Future { + return finalize_public_adder(a, b); } - finalize public_adder(a: u8, b: u8) -> public u8 { + async function finalize_public_adder(a: u8, b: u8) -> public u8 { return a + b; } } \ No newline at end of file diff --git a/tests/tests/compiler/finalize/finalize_statement_incorrect_args_fail.leo b/tests/tests/compiler/finalize/finalize_statement_incorrect_args_fail.leo index c15e11a7c4..3fbe73ecac 100644 --- a/tests/tests/compiler/finalize/finalize_statement_incorrect_args_fail.leo +++ b/tests/tests/compiler/finalize/finalize_statement_incorrect_args_fail.leo @@ -7,11 +7,11 @@ program test.aleo { mapping account: address => u64; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return finalize_mint_public(receiver, amount, amount); } - finalize mint_public (public receiver: address, public amount: u64) { + async function finalize_mint_public (public receiver: address, public amount: u64) { Mapping::set(account, receiver, amount); } } diff --git a/tests/tests/compiler/finalize/finalize_with_method_calls.leo b/tests/tests/compiler/finalize/finalize_with_method_calls.leo index e4c365844a..26f0cc6c0d 100644 --- a/tests/tests/compiler/finalize/finalize_with_method_calls.leo +++ b/tests/tests/compiler/finalize/finalize_with_method_calls.leo @@ -7,20 +7,20 @@ program test.aleo { mapping account: address => u64; mapping values: u8 => u8; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return finalize_mint_public(receiver, amount); } - finalize mint_public (public receiver: address, public amount: u64) { + async function finalize_mint_public (public receiver: address, public amount: u64) { let current_amount: u64 = account.get_or_use(receiver, 0u64); account.set(receiver, current_amount + amount); } - transition finalize_self_caller() { - return then finalize(self.caller); + async transition finalize_self_caller() -> Future { + return finalize_finalize_self_caller(self.caller); } - finalize finalize_self_caller(caller: address) { + async function finalize_finalize_self_caller(caller: address) { let current_value: u8 = values.get_or_use(0u8, 0u8); values.set(0u8, current_value + 1u8); let current_amount: u64 = account.get_or_use(caller, 0u64); diff --git a/tests/tests/compiler/finalize/finalize_with_return.leo b/tests/tests/compiler/finalize/finalize_with_return.leo index df2453d270..e546c2b9ca 100644 --- a/tests/tests/compiler/finalize/finalize_with_return.leo +++ b/tests/tests/compiler/finalize/finalize_with_return.leo @@ -7,18 +7,18 @@ program test.aleo { mapping account: address => u64; mapping values: u8 => u8; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) -> Future { + return finalize_mint_public(receiver, amount); } - finalize mint_public (public receiver: address, public amount: u64) -> u64 { + async function finalize_mint_public (public receiver: address, public amount: u64) -> u64 { Mapping::set(account, receiver, amount); return amount; } - transition public_adder(public a: u8, public b: u8) { - return then finalize(a, b); - } finalize public_adder(a: u8, b: u8) -> public u8 { + async transition public_adder(public a: u8, public b: u8) -> Future { + return finalize_public_adder(a, b); + } async function finalize_public_adder(a: u8, b: u8) -> public u8 { return a + b; } diff --git a/tests/tests/compiler/finalize/finalize_without_finalize_statement_fail.leo b/tests/tests/compiler/finalize/finalize_without_finalize_statement_fail.leo index d3f8b49848..ea56897c3e 100644 --- a/tests/tests/compiler/finalize/finalize_without_finalize_statement_fail.leo +++ b/tests/tests/compiler/finalize/finalize_without_finalize_statement_fail.leo @@ -6,11 +6,11 @@ expectation: Fail program test.aleo { mapping account: address => u64; - transition mint_public(public receiver: address, public amount: u64) { + async transition mint_public(public receiver: address, public amount: u64) { } - finalize mint_public (public receiver: address, public amount: u64) { + async function finalize_mint_public (public receiver: address, public amount: u64) { Mapping::set(account, receiver, amount); } } diff --git a/tests/tests/compiler/finalize/get_incorrect_num_operands.leo b/tests/tests/compiler/finalize/get_incorrect_num_operands.leo index 625e2ff785..fba89997bd 100644 --- a/tests/tests/compiler/finalize/get_incorrect_num_operands.leo +++ b/tests/tests/compiler/finalize/get_incorrect_num_operands.leo @@ -12,11 +12,11 @@ program test.aleo { mapping amounts: address => u128; mapping tokens: address => Token; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { Mapping::get(tokens, true, true); tokens.get(true, true); Mapping::get(amounts); diff --git a/tests/tests/compiler/finalize/get_incorrect_type_fail.leo b/tests/tests/compiler/finalize/get_incorrect_type_fail.leo index 76a913cb90..0cd4f84e98 100644 --- a/tests/tests/compiler/finalize/get_incorrect_type_fail.leo +++ b/tests/tests/compiler/finalize/get_incorrect_type_fail.leo @@ -12,11 +12,11 @@ program test.aleo { mapping amounts: address => u128; mapping tokens: address => Token; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { Mapping::get(tokens, true); tokens.get(true); Mapping::get(amounts, 1u8); diff --git a/tests/tests/compiler/finalize/get_or_incorrect_num_operands.leo b/tests/tests/compiler/finalize/get_or_incorrect_num_operands.leo index 6b665dee3b..ff3207c9c1 100644 --- a/tests/tests/compiler/finalize/get_or_incorrect_num_operands.leo +++ b/tests/tests/compiler/finalize/get_or_incorrect_num_operands.leo @@ -12,11 +12,11 @@ program test.aleo { mapping amounts: address => u128; mapping tokens: address => Token; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { Mapping::get_or_use(tokens, addr, amount, 1u128); tokens.get_or_use(addr, amount, 1u128); Mapping::get_or_use(amounts, 1u8); diff --git a/tests/tests/compiler/finalize/get_or_incorrect_type_fail.leo b/tests/tests/compiler/finalize/get_or_incorrect_type_fail.leo index 6712456e6f..bb705a00bb 100644 --- a/tests/tests/compiler/finalize/get_or_incorrect_type_fail.leo +++ b/tests/tests/compiler/finalize/get_or_incorrect_type_fail.leo @@ -12,11 +12,11 @@ program test.aleo { mapping amounts: address => u128; mapping tokens: address => Token; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { Mapping::get_or_use(tokens, addr, amount); tokens.get_or_use(addr, amount); Mapping::get_or_use(amounts, 1u8, amount); diff --git a/tests/tests/compiler/finalize/increment_fail.leo b/tests/tests/compiler/finalize/increment_fail.leo index c429379f80..3e52278d3f 100644 --- a/tests/tests/compiler/finalize/increment_fail.leo +++ b/tests/tests/compiler/finalize/increment_fail.leo @@ -6,11 +6,11 @@ expectation: Fail program test.aleo { mapping amounts: address => u128; - transition increase_self(amount: u128) { - return then finalize(self.caller, amount); + async transition increase_self(amount: u128) -> Future { + return finalize_increase_self(self.caller, amount); } - finalize increase_self(addr: address, amount: u128) { + async function finalize_increase_self(addr: address, amount: u128) { increment(amounts, addr, amount); } } diff --git a/tests/tests/compiler/finalize/increment_via_get_set.leo b/tests/tests/compiler/finalize/increment_via_get_set.leo index 8a74e11ed2..23c0c3991d 100644 --- a/tests/tests/compiler/finalize/increment_via_get_set.leo +++ b/tests/tests/compiler/finalize/increment_via_get_set.leo @@ -6,11 +6,11 @@ expectation: Pass program test.aleo { mapping amounts: address => u128; - transition increase_self(amount: u128) { - return then finalize(self.caller, amount); + async transition increase_self(amount: u128) -> Future { + return finalize_increase_self(self.caller, amount); } - finalize increase_self(addr: address, amount: u128) { + async function finalize_increase_self(addr: address, amount: u128) { let current_amount: u128 = Mapping::get_or_use(amounts, addr, 0u128); Mapping::set(amounts, addr, current_amount + amount); } diff --git a/tests/tests/compiler/finalize/inline_in_finalize.leo b/tests/tests/compiler/finalize/inline_in_finalize.leo index 47e4cd7942..eb9058e41d 100644 --- a/tests/tests/compiler/finalize/inline_in_finalize.leo +++ b/tests/tests/compiler/finalize/inline_in_finalize.leo @@ -10,9 +10,9 @@ program test.aleo { return a + b; } - transition public_adder(public a: u8, public b: u8) { - return then finalize(a, b); - } finalize public_adder(a: u8, b: u8) { + async transition public_adder(public a: u8, public b: u8) -> Future { + return finalize_public_adder(a, b); + } async function finalize_public_adder(a: u8, b: u8) { let result: u8 = foo(a, b); assert_neq(result, 0u8); } diff --git a/tests/tests/compiler/finalize/mapping_operations_in_inline_fail.leo b/tests/tests/compiler/finalize/mapping_operations_in_inline_fail.leo index d94e88386d..ce316b7e8a 100644 --- a/tests/tests/compiler/finalize/mapping_operations_in_inline_fail.leo +++ b/tests/tests/compiler/finalize/mapping_operations_in_inline_fail.leo @@ -19,7 +19,7 @@ program test.aleo { Mapping::get(values, 0u8); } - finalize finalize_no_params() { + async function finalize_finalize_no_params() { foo(); bar(); } diff --git a/tests/tests/compiler/finalize/only_finalize_with_flattening.leo b/tests/tests/compiler/finalize/only_finalize_with_flattening.leo index 4ec903bf73..335be3392f 100644 --- a/tests/tests/compiler/finalize/only_finalize_with_flattening.leo +++ b/tests/tests/compiler/finalize/only_finalize_with_flattening.leo @@ -12,10 +12,10 @@ program test.aleo { mapping token_name_to_info: field => TokenInfo; - transition add_new_liquidity_token () { - return then finalize(); + async transition add_new_liquidity_token () -> Future { + return finalize_add_new_liquidity_token(); } - finalize add_new_liquidity_token() { + async function finalize_add_new_liquidity_token() -> () { if (false) { return; } @@ -33,12 +33,12 @@ program test.aleo { } } - transition add_new_liquidity_token_2 () { - return then finalize(); + async transition add_new_liquidity_token_2 () -> Future { + return finalize_add_new_liquidity_token_2(); } - finalize add_new_liquidity_token_2() { + async function finalize_add_new_liquidity_token_2() { let try_get_token: TokenInfo = Mapping::get_or_use( token_name_to_info, 0field, diff --git a/tests/tests/compiler/finalize/private_input_ouput_fail.leo b/tests/tests/compiler/finalize/private_input_ouput_fail.leo index f3f04f6451..6177c294a7 100644 --- a/tests/tests/compiler/finalize/private_input_ouput_fail.leo +++ b/tests/tests/compiler/finalize/private_input_ouput_fail.leo @@ -4,21 +4,21 @@ expectation: Fail */ program test.aleo { - transition foo(public a: u8) -> u8 { - async finalize(a); + async transition foo(public a: u8) -> (u8, Future) { + async finalize_foo(a); return a + a; } - finalize foo(private a: u8) -> u8 { + async function finalize_foo(private a: u8) -> u8 { return a * a; } - transition bar(public a: u8) -> u8 { - async finalize (a); + async transition bar(public a: u8) -> (u8, Future) { + async finalize_bar(a); return a + a; } - finalize bar(a: u8) -> private u8 { + async function finalize_bar(a: u8) -> private u8 { return a * a; } } diff --git a/tests/tests/compiler/finalize/rand.leo b/tests/tests/compiler/finalize/rand.leo index 1ea0493297..a78c68420d 100644 --- a/tests/tests/compiler/finalize/rand.leo +++ b/tests/tests/compiler/finalize/rand.leo @@ -5,11 +5,11 @@ expectation: Pass program test.aleo { - transition foo() { - return then finalize(); + async transition foo() -> Future { + return finalize_foo(); } - finalize foo() { + async function finalize_foo() { let a: address = ChaCha::rand_address(); let b: bool = ChaCha::rand_bool(); let c: field = ChaCha::rand_field(); diff --git a/tests/tests/compiler/finalize/rand_incorrect_num_operands.leo b/tests/tests/compiler/finalize/rand_incorrect_num_operands.leo index d176123747..07bef1dcc9 100644 --- a/tests/tests/compiler/finalize/rand_incorrect_num_operands.leo +++ b/tests/tests/compiler/finalize/rand_incorrect_num_operands.leo @@ -7,11 +7,11 @@ program test.aleo { mapping values: field => field; - transition foo() { - return then finalize(); + async transition foo() -> Future { + return finalize_foo(); } - finalize foo() { + async function finalize_foo() { let a: field = ChaCha::rand_field(1field); let b: field = ChaCha::rand_field(1field, 2field); values.set(a, b); diff --git a/tests/tests/compiler/finalize/rand_incorrect_type_fail.leo b/tests/tests/compiler/finalize/rand_incorrect_type_fail.leo index deb2e0e9cc..403d5c7774 100644 --- a/tests/tests/compiler/finalize/rand_incorrect_type_fail.leo +++ b/tests/tests/compiler/finalize/rand_incorrect_type_fail.leo @@ -7,11 +7,11 @@ program test.aleo { mapping values: scalar => group; - transition foo() { - return then finalize(); + async transition foo() -> Future { + return finalize_foo(); } - finalize foo() { + async function finalize_foo() { let a: scalar = ChaCha::rand_field(); let b: group = ChaCha::rand_field(); values.set(a, b); diff --git a/tests/tests/compiler/finalize/rand_not_in_finalize.leo b/tests/tests/compiler/finalize/rand_not_in_finalize.leo index e7ed6fd1e3..921a892217 100644 --- a/tests/tests/compiler/finalize/rand_not_in_finalize.leo +++ b/tests/tests/compiler/finalize/rand_not_in_finalize.leo @@ -7,12 +7,12 @@ program test.aleo { mapping values: scalar => group; - transition foo() { + async transition foo() -> Future { let a: scalar = ChaCha::rand_scalar(); - return then finalize(a); + return finalize_foo(a); } - finalize foo(a: scalar) { + async function finalize_foo(a: scalar) { let b: group = ChaCha::rand_group(); values.set(a, b); } diff --git a/tests/tests/compiler/finalize/read_write_mapping_fail.leo b/tests/tests/compiler/finalize/read_write_mapping_fail.leo index 4031715d15..c287ba8153 100644 --- a/tests/tests/compiler/finalize/read_write_mapping_fail.leo +++ b/tests/tests/compiler/finalize/read_write_mapping_fail.leo @@ -15,18 +15,18 @@ program test.aleo { } function read_in_finalize(public addr: address) { - finalize(addr); + return finalize_read_in_finalize(addr); } - finalize read_in_finalize(public addr: address) -> public u128 { + async function finalize_read_in_finalize(public addr: address) -> public u128 { return balances[addr]; } function write_in_finalize(public addr: address, public amount: u128) { - return then finalize(addr, amount); + return finalize_write_in_finalize(addr, amount); } - finalize write_in_finalize(public: addr: address, public amount: u128) { + async function finalize_write_in_finalize(public: addr: address, public amount: u128) { balances[addr] = amount; } } diff --git a/tests/tests/compiler/finalize/remove.leo b/tests/tests/compiler/finalize/remove.leo index c801fbddcf..b5f54fa404 100644 --- a/tests/tests/compiler/finalize/remove.leo +++ b/tests/tests/compiler/finalize/remove.leo @@ -7,11 +7,11 @@ program test.aleo { mapping balances: address => u32; - transition foo() -> () { - return then finalize(self.caller); + async transition foo() -> Future { + return finalize_foo(self.caller); } - finalize foo(account: address) -> () { + async function finalize_foo(account: address) -> () { Mapping::set(balances, account, 1u32); let expect_true: bool = Mapping::contains(balances, account); diff --git a/tests/tests/compiler/finalize/set_in_an_assignment_fail.leo b/tests/tests/compiler/finalize/set_in_an_assignment_fail.leo index ef7c1719b7..d382dfc2fb 100644 --- a/tests/tests/compiler/finalize/set_in_an_assignment_fail.leo +++ b/tests/tests/compiler/finalize/set_in_an_assignment_fail.leo @@ -6,11 +6,11 @@ expectation: Fail program test.aleo { mapping amounts: address => u128; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { let result: () = Mapping::set(amounts, addr, amount); let result: u128 = Mapping::set(amounts, addr, amount); } diff --git a/tests/tests/compiler/finalize/set_incorrect_num_operands.leo b/tests/tests/compiler/finalize/set_incorrect_num_operands.leo index 88d7d8476f..4a66a3fa1f 100644 --- a/tests/tests/compiler/finalize/set_incorrect_num_operands.leo +++ b/tests/tests/compiler/finalize/set_incorrect_num_operands.leo @@ -12,11 +12,11 @@ program test.aleo { mapping amounts: address => u128; mapping tokens: address => Token; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { Mapping::set(tokens, addr, amount, 1u128); tokens.set(addr, amount, 1u128); Mapping::set(amounts, 1u8); diff --git a/tests/tests/compiler/finalize/set_incorrect_type_fail.leo b/tests/tests/compiler/finalize/set_incorrect_type_fail.leo index 41a71973cb..e6cfd749f5 100644 --- a/tests/tests/compiler/finalize/set_incorrect_type_fail.leo +++ b/tests/tests/compiler/finalize/set_incorrect_type_fail.leo @@ -12,11 +12,11 @@ program test.aleo { mapping amounts: address => u128; mapping tokens: address => Token; - transition decrease_self(amount: u128) { - return then finalize(self.caller, amount); + async transition decrease_self(amount: u128) -> Future { + return finalize_decrease_self(self.caller, amount); } - finalize decrease_self(addr: address, amount: u128) { + async function finalize_decrease_self(addr: address, amount: u128) { Mapping::set(tokens, addr, amount); tokens.set(addr, amount); Mapping::set(amounts, 1u8, amount); diff --git a/tests/tests/compiler/finalize/unknown_mapping_operation_fail.leo b/tests/tests/compiler/finalize/unknown_mapping_operation_fail.leo index fbfa691e43..ad4230bbf7 100644 --- a/tests/tests/compiler/finalize/unknown_mapping_operation_fail.leo +++ b/tests/tests/compiler/finalize/unknown_mapping_operation_fail.leo @@ -7,11 +7,11 @@ program test.aleo { mapping account: address => u64; - transition mint_public(public receiver: address, public amount: u64) { - return then finalize(receiver, amount); + async transition mint_public(public receiver: address, public amount: u64) { + return finalize_mint_public(receiver, amount); } - finalize mint_public (public receiver: address, public amount: u64) { + async function finalize_mint_public (public receiver: address, public amount: u64) { let has_key: bool = Mapping::has_key(account, receiver); Mapping::set(account, receiver, amount); } diff --git a/tests/tests/compiler/function/self_finalize_fail.leo b/tests/tests/compiler/function/self_finalize_fail.leo index 34effbfd4a..0d843e3c32 100644 --- a/tests/tests/compiler/function/self_finalize_fail.leo +++ b/tests/tests/compiler/function/self_finalize_fail.leo @@ -4,9 +4,10 @@ expectation: Fail */ program test.aleo { - transition matches(addr: address) -> bool { - return self.caller == addr then finalize(self.caller); - } finalize matches(addr: address) { + async transition matches(addr: address) -> (bool, Future) { + return (self.caller == addr, finalize_matches(self.caller)); + } + async function finalize_matches(addr: address) { assert_eq(addr, self.caller); } } diff --git a/tests/tests/compiler/mappings/external_read_with_local_fail.leo b/tests/tests/compiler/mappings/external_read_with_local_fail.leo index a9a9a46f91..7a9112cf16 100644 --- a/tests/tests/compiler/mappings/external_read_with_local_fail.leo +++ b/tests/tests/compiler/mappings/external_read_with_local_fail.leo @@ -6,10 +6,10 @@ expectation: Fail program registry.aleo { mapping users: address => bool; - transition register() { - return then finalize(self.caller); + async transition register() -> Future { + return finalize_register(self.caller); } - finalize register(addr: address) { + async function finalize_register(addr: address) { Mapping::set(users, addr, true); } } @@ -20,10 +20,10 @@ import registry.aleo; program relay.aleo { mapping users: address => bool; - transition send(addr: address) { - return then finalize(addr); + async transition send(addr: address) -> Future { + return finalize_send(addr); } - finalize send(addr: address) { + async function finalize_send(addr: address) { let a:bool = Mapping::get(relay.aleo/users, addr); assert_eq(a, true); } diff --git a/tests/tests/compiler/mappings/locator_expression_fail.leo b/tests/tests/compiler/mappings/locator_expression_fail.leo index a42e510731..b95347aaf3 100644 --- a/tests/tests/compiler/mappings/locator_expression_fail.leo +++ b/tests/tests/compiler/mappings/locator_expression_fail.leo @@ -6,11 +6,11 @@ expectation: Fail program relay.aleo { mapping users: address => bool; - transition send(addr: address) { + async transition send(addr: address) -> Future { let a: u32 = relay.aleo/users; - return then finalize(addr); + return finalize_send(addr); } - finalize send(addr: address) { + async function finalize_send(addr: address) { let a:bool = Mapping::get(relay.aleo/users, addr); } } diff --git a/tests/tests/compiler/mappings/no_import_external_read_fail.leo b/tests/tests/compiler/mappings/no_import_external_read_fail.leo index 746a133bd7..2ad02c9f10 100644 --- a/tests/tests/compiler/mappings/no_import_external_read_fail.leo +++ b/tests/tests/compiler/mappings/no_import_external_read_fail.leo @@ -6,10 +6,10 @@ expectation: Fail program registry.aleo { mapping users: address => bool; - transition register() { - return then finalize(self.caller); + async transition register() -> Future { + return finalize_register(self.caller); } - finalize register(addr: address) { + async function finalize_register(addr: address) { Mapping::set(users, addr, true); } } @@ -17,10 +17,10 @@ program registry.aleo { // --- Next Program --- // program relay.aleo { - transition send(addr: address) { - return then finalize(addr); + async transition send(addr: address) -> Future { + return finalize_send(addr); } - finalize send(addr: address) { + async function finalize_send(addr: address) { let a:bool = Mapping::get(registry.aleo/users, addr); assert_eq(a, true); } diff --git a/tests/tests/compiler/mappings/read_external_mapping.leo b/tests/tests/compiler/mappings/read_external_mapping.leo index 7997cecc88..1d5b37d548 100644 --- a/tests/tests/compiler/mappings/read_external_mapping.leo +++ b/tests/tests/compiler/mappings/read_external_mapping.leo @@ -6,16 +6,16 @@ expectation: Pass program registry.aleo { mapping users: address => bool; - transition register() { - return then finalize(self.caller); + async transition register() -> Future { + return finalize_register(self.caller); } - finalize register(addr: address) { + async function finalize_register(addr: address) { Mapping::set(users, addr, true); } - transition unregister() { - return then finalize(self.caller); + async transition unregister() -> Future { + return finalize_unregister(self.caller); } - finalize unregister(addr: address) { + async function finalize_unregister(addr: address) { Mapping::set(users, addr, false); } } @@ -31,18 +31,18 @@ program relay.aleo { data: u8; } - transition send(addr: address, val: u8) -> message { - return message {owner: addr, data: val} then finalize(addr); + async transition send(addr: address, val: u8) -> (message, Future) { + return (message {owner: addr, data: val}, finalize_send(addr)); } - finalize send(addr: address) { + async function finalize_send(addr: address) { let a:bool = Mapping::get(registry.aleo/users, addr); assert_eq(a, true); } - transition send_without_check(addr: address, val: u8) -> message { - return message {owner: addr, data: val} then finalize(addr); + async transition send_without_check(addr: address, val: u8) -> (message, Future) { + return (message {owner: addr, data: val}, finalize_send_without_check(addr)); } - finalize send_without_check(addr: address) { + async function finalize_send_without_check(addr: address) { let a:bool = Mapping::get_or_use(registry.aleo/users, addr, true); assert_eq(a, true); } diff --git a/tests/tests/compiler/mappings/unknown_external_mapping_fail.leo b/tests/tests/compiler/mappings/unknown_external_mapping_fail.leo index 959f5b7cc6..4b336b8a4f 100644 --- a/tests/tests/compiler/mappings/unknown_external_mapping_fail.leo +++ b/tests/tests/compiler/mappings/unknown_external_mapping_fail.leo @@ -6,10 +6,10 @@ expectation: Fail program registry.aleo { mapping users: address => bool; - transition register() { - return then finalize(self.caller); + async transition register() -> Future { + return finalize_register(self.caller); } - finalize register(addr: address) { + async function finalize_register(addr: address) { Mapping::set(users, addr, true); } } @@ -18,10 +18,10 @@ program registry.aleo { import registry.aleo; program relay.aleo { - transition send(addr: address) { - return then finalize(addr); + async transition send(addr: address) -> Future { + return finalize_send(addr); } - finalize send(addr: address) { + async function finalize_send(addr: address) { let a:bool = Mapping::get(registry.aleo/foo, addr); assert_eq(a, true); } diff --git a/tests/tests/execution/complex_finalization.leo b/tests/tests/execution/complex_finalization.leo index f8ec30b07b..8c90a31c17 100644 --- a/tests/tests/execution/complex_finalization.leo +++ b/tests/tests/execution/complex_finalization.leo @@ -25,11 +25,11 @@ program zero_program.aleo { mapping counts: address => u64; - transition c() { - return then finalize(self.signer); + async transition c() -> Future { + return finalize_c(self.signer); } - finalize c(addr: address) { + async function finalize_c(addr: address) { let count: u64 = counts.get_or_use(addr, 0u64); counts.set(addr, count + 1u64); } @@ -44,11 +44,11 @@ program one_program.aleo { mapping counts: address => u64; - transition d() { - return then finalize(self.signer); + async transition d() -> Future { + return finalize_d(self.signer); } - finalize d(addr: address) { + async function finalize_d(addr: address) { let count: u64 = counts.get_or_use(addr, 0u64); counts.set(addr, count + 1u64); } @@ -66,13 +66,15 @@ program two_program.aleo { mapping counts: address => u64; - transition b() { - zero_program.aleo/c(); - one_program.aleo/d(); - return then finalize(self.signer); + async transition b() -> Future { + let f0: Future = zero_program.aleo/c(); + let f1: Future = one_program.aleo/d(); + return finalize_b(f0, f1, self.signer); } - finalize b(addr: address) { + async function finalize_b(f0: Future, f1: Future, addr: address) { + f0.await(); + f1.await(); let count: u64 = counts.get_or_use(addr, 0u64); counts.set(addr, count + 1u64); } @@ -91,14 +93,17 @@ program three_program.aleo { mapping counts: address => u64; - transition e() { - two_program.aleo/b(); - one_program.aleo/d(); - zero_program.aleo/c(); - return then finalize(self.signer); + async transition e() -> Future { + let f0: Future = two_program.aleo/b(); + let f1: Future = one_program.aleo/d(); + let f2: Future = zero_program.aleo/c(); + return finalize_e(f0, f1, f2, self.signer); } - finalize e(addr: address) { + async function finalize_e(f0: Future, f1: Future, f2: Future, addr: address) { + f0.await(); + f1.await(); + f2.await(); let count: u64 = counts.get_or_use(addr, 0u64); counts.set(addr, count + 1u64); } @@ -116,13 +121,15 @@ program four_program.aleo { mapping counts: address => u64; - transition a() { - two_program.aleo/b(); - three_program.aleo/e(); - return then finalize(self.signer); + async transition a() -> Future { + let f0: Future = two_program.aleo/b(); + let f1: Future = three_program.aleo/e(); + return finalize_a(f0, f1, self.signer); } - finalize a(addr: address) { + async function finalize_a(f0: Future, f1: Future, addr: address) { + f0.await(); + f1.await(); let count: u64 = counts.get_or_use(addr, 0u64); counts.set(addr, count + 1u64); } diff --git a/tests/tests/execution/counter.leo b/tests/tests/execution/counter.leo index fd4d75a5c1..802a73fa4c 100644 --- a/tests/tests/execution/counter.leo +++ b/tests/tests/execution/counter.leo @@ -24,11 +24,11 @@ program test.aleo { const SMALL:u64 = 0_1u64; mapping counter: address => u64; - transition dubble() { - return then finalize(self.caller); + async transition dubble() -> Future { + return finalize_dubble(self.caller); } - finalize dubble(addr: address) { + async function finalize_dubble(addr: address) { const BIG: u64 = 234u64; let current_value: u64 = Mapping::get_or_use(counter, addr, 0_0u64 + BIG + SMALL); Mapping::set(counter, addr, current_value + 1__u64); @@ -36,11 +36,11 @@ program test.aleo { Mapping::set(counter, addr, current_value + 0___1u64); } - transition unsafe_increment() { - return then finalize(self.caller); + async transition unsafe_increment() -> Future { + return finalize_unsafe_increment(self.caller); } - finalize unsafe_increment(addr: address) { + async function finalize_unsafe_increment(addr: address) { let current_value: u64 = Mapping::get(counter, addr); for i:u64 in SMALL..10u64 { current_value = current_value + 1u64; diff --git a/tests/tests/parser/finalize/finalize.leo b/tests/tests/parser/finalize/finalize.leo index 3ee205d2cc..0c76dfd683 100644 --- a/tests/tests/parser/finalize/finalize.leo +++ b/tests/tests/parser/finalize/finalize.leo @@ -4,17 +4,18 @@ expectation: Pass */ program test.aleo { - function main() -> bool { + async transition main() -> bool { } - finalize main() { + async function finalize_main() { } function main() -> bool { - } finalize main(a: foo, b: bar) -> baz { + } + async function main(a: foo, b: bar) -> baz { } diff --git a/tests/tests/parser/finalize/finalize_statement.leo b/tests/tests/parser/finalize/finalize_statement.leo deleted file mode 100644 index b4a433954c..0000000000 --- a/tests/tests/parser/finalize/finalize_statement.leo +++ /dev/null @@ -1,12 +0,0 @@ -/* -namespace: ParseStatement -expectation: Pass -*/ - -return then finalize; - -return then finalize(); - -return then finalize(foo); - -return then finalize(foo, bar); diff --git a/tests/tests/parser/finalize/finalize_statement_fail.leo b/tests/tests/parser/finalize/finalize_statement_fail.leo index d91d9983ff..5f839df9a8 100644 --- a/tests/tests/parser/finalize/finalize_statement_fail.leo +++ b/tests/tests/parser/finalize/finalize_statement_fail.leo @@ -3,16 +3,10 @@ namespace: ParseStatement expectation: Fail */ -finalize(; +return then finalize; -finalize(foo, ,); +return then finalize(); -finalize(foo, bar) +return then finalize(foo); -async async finalize(foo); - -finalize; - -asyn finalize(foo); - -return then fin; +return then finalize(foo, bar); diff --git a/tests/tests/parser/functions/empty_function_non_empty_finalize_fail.leo b/tests/tests/parser/functions/empty_function_non_empty_finalize_fail.leo deleted file mode 100644 index 0be3b1a677..0000000000 --- a/tests/tests/parser/functions/empty_function_non_empty_finalize_fail.leo +++ /dev/null @@ -1,17 +0,0 @@ -/* -namespace: Parse -expectation: Fail -*/ - -stub foo.aleo { - transition foo(x: u32, y: i32); - finalize foo() { - let a:u8 = 1u8; - } -} - -program test.aleo { - transition doo(x: u32, y: i32) -> u32 { - return 0u32; - } -} \ No newline at end of file diff --git a/tests/tests/parser/functions/public_const_param_fail.leo b/tests/tests/parser/functions/public_const_param_fail.leo index 0756e6ebac..66710fe0fe 100644 --- a/tests/tests/parser/functions/public_const_param_fail.leo +++ b/tests/tests/parser/functions/public_const_param_fail.leo @@ -8,6 +8,6 @@ program test.aleo { return 0; } - function x(public constant x: u32, y: i32) { + async function x(public constant x: u32, y: i32) { return 0; }} diff --git a/tests/tests/parser/program/external_mapping.leo b/tests/tests/parser/program/external_mapping.leo index 2e8ba16dbf..fa9b2082ae 100644 --- a/tests/tests/parser/program/external_mapping.leo +++ b/tests/tests/parser/program/external_mapping.leo @@ -4,11 +4,11 @@ expectation: Pass */ import hello.aleo; program test.aleo { - function main() { + async transition main() { let x:u8 = 1u8; return then finalize(); } - finalize main() { + async function finalize_main() { Mapping::set(hello.aleo/counter, addr, current_value + 1u64); Mapping::remove(hello.aleo/foo, addr); let a:u32 = Mapping::get(hello.aleo/foo, addr); diff --git a/tests/tests/parser/program/locator_expression_fail.leo b/tests/tests/parser/program/locator_expression_fail.leo index 766281fc1b..e47dbc5591 100644 --- a/tests/tests/parser/program/locator_expression_fail.leo +++ b/tests/tests/parser/program/locator_expression_fail.leo @@ -10,7 +10,7 @@ program relay.aleo { let a: mapping = relay.aleo/users; return then finalize(addr); } - finalize send(addr: address) { + async function finalize_send(addr: address) { let a:bool = Mapping::get(relay.aleo/users, addr); } } \ No newline at end of file From e6ba5069dc115837b1df361099db3db265f75676 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:11:51 -0700 Subject: [PATCH 76/80] Fix suggestions --- compiler/ast/src/access/method_call.rs | 44 ------------------- compiler/ast/src/access/mod.rs | 3 -- compiler/ast/src/expressions/access.rs | 7 --- compiler/ast/src/passes/reconstructor.rs | 14 ------ .../tests/utilities/check_unique_node_ids.rs | 8 ---- .../src/code_generation/visit_expressions.rs | 7 --- .../function_inlining/inline_expression.rs | 4 +- .../rename_statement.rs | 18 -------- .../src/type_checking/check_expressions.rs | 1 - .../src/type_checking/check_statements.rs | 4 +- 10 files changed, 4 insertions(+), 106 deletions(-) delete mode 100644 compiler/ast/src/access/method_call.rs diff --git a/compiler/ast/src/access/method_call.rs b/compiler/ast/src/access/method_call.rs deleted file mode 100644 index 5874ea0ea4..0000000000 --- a/compiler/ast/src/access/method_call.rs +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2019-2023 Aleo Systems Inc. -// This file is part of the Leo library. - -// The Leo library is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// The Leo library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with the Leo library. If not, see . - -use crate::{Expression, Identifier, Node, NodeID}; -use leo_span::Span; - -use serde::{Deserialize, Serialize}; -use std::fmt; - -/// An access expression to a method call in a struct, e.g.`future_var.await()`. -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] -pub struct MethodCall { - /// The target of the method call. - pub receiver: Box, - /// The name of the method that is being called. - pub name: Identifier, - /// The arguments passed to the function `name`. - pub arguments: Vec, - /// The span for the entire expression. - pub span: Span, - /// The ID of the node. - pub id: NodeID, -} - -impl fmt::Display for MethodCall { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}{}()", self.receiver, self.name) - } -} - -crate::simple_node_impl!(MethodCall); diff --git a/compiler/ast/src/access/mod.rs b/compiler/ast/src/access/mod.rs index edfca1709e..95aeed7bcc 100644 --- a/compiler/ast/src/access/mod.rs +++ b/compiler/ast/src/access/mod.rs @@ -26,8 +26,5 @@ pub use associated_function_access::*; mod member_access; pub use member_access::*; -pub mod method_call; -pub use method_call::*; - mod tuple_access; pub use tuple_access::*; diff --git a/compiler/ast/src/expressions/access.rs b/compiler/ast/src/expressions/access.rs index 53134d487f..0b6375e9af 100644 --- a/compiler/ast/src/expressions/access.rs +++ b/compiler/ast/src/expressions/access.rs @@ -33,8 +33,6 @@ pub enum AccessExpression { AssociatedFunction(AssociatedFunction), /// An expression accessing a field in a structure, e.g., `struct_var.field`. Member(MemberAccess), - /// Access a method associated to an instance of a struct, `f.await()`. - MethodCall(MethodCall), /// Access to a tuple field using its position, e.g., `tuple.1`. Tuple(TupleAccess), } @@ -46,7 +44,6 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.span(), AccessExpression::AssociatedFunction(n) => n.span(), AccessExpression::Member(n) => n.span(), - AccessExpression::MethodCall(n) => n.span(), AccessExpression::Tuple(n) => n.span(), } } @@ -57,7 +54,6 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.set_span(span), AccessExpression::AssociatedFunction(n) => n.set_span(span), AccessExpression::Member(n) => n.set_span(span), - AccessExpression::MethodCall(n) => n.set_span(span), AccessExpression::Tuple(n) => n.set_span(span), } } @@ -68,7 +64,6 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.id(), AccessExpression::AssociatedFunction(n) => n.id(), AccessExpression::Member(n) => n.id(), - AccessExpression::MethodCall(n) => n.id(), AccessExpression::Tuple(n) => n.id(), } } @@ -79,7 +74,6 @@ impl Node for AccessExpression { AccessExpression::AssociatedConstant(n) => n.set_id(id), AccessExpression::AssociatedFunction(n) => n.set_id(id), AccessExpression::Member(n) => n.set_id(id), - AccessExpression::MethodCall(n) => n.set_id(id), AccessExpression::Tuple(n) => n.set_id(id), } } @@ -93,7 +87,6 @@ impl fmt::Display for AccessExpression { AssociatedConstant(access) => access.fmt(f), AssociatedFunction(access) => access.fmt(f), Member(access) => access.fmt(f), - MethodCall(access) => access.fmt(f), Tuple(access) => access.fmt(f), } } diff --git a/compiler/ast/src/passes/reconstructor.rs b/compiler/ast/src/passes/reconstructor.rs index c0837a355b..48c9ab97f0 100644 --- a/compiler/ast/src/passes/reconstructor.rs +++ b/compiler/ast/src/passes/reconstructor.rs @@ -49,7 +49,6 @@ pub trait ExpressionReconstructor { AccessExpression::AssociatedConstant(constant) => self.reconstruct_associated_constant(constant), AccessExpression::AssociatedFunction(function) => self.reconstruct_associated_function(function), AccessExpression::Member(member) => self.reconstruct_member_access(member), - AccessExpression::MethodCall(call) => self.reconstruct_method_call(call), AccessExpression::Tuple(tuple) => self.reconstruct_tuple_access(tuple), } } @@ -103,19 +102,6 @@ pub trait ExpressionReconstructor { ) } - fn reconstruct_method_call(&mut self, input: MethodCall) -> (Expression, Self::AdditionalOutput) { - ( - Expression::Access(AccessExpression::MethodCall(MethodCall { - receiver: input.receiver, - arguments: input.arguments.into_iter().map(|arg| self.reconstruct_expression(arg).0).collect(), - span: input.span, - id: input.id, - name: input.name, - })), - Default::default(), - ) - } - fn reconstruct_tuple_access(&mut self, input: TupleAccess) -> (Expression, Self::AdditionalOutput) { ( Expression::Access(AccessExpression::Tuple(TupleAccess { diff --git a/compiler/compiler/tests/utilities/check_unique_node_ids.rs b/compiler/compiler/tests/utilities/check_unique_node_ids.rs index 3c7f1971ff..4b357abd2c 100644 --- a/compiler/compiler/tests/utilities/check_unique_node_ids.rs +++ b/compiler/compiler/tests/utilities/check_unique_node_ids.rs @@ -86,14 +86,6 @@ impl<'a> ExpressionVisitor<'a> for CheckUniqueNodeIds<'a> { self.visit_identifier(name, &Default::default()); self.check(*id); } - AccessExpression::MethodCall(MethodCall { receiver, name, arguments, id, .. }) => { - self.visit_expression(receiver, &Default::default()); - self.visit_identifier(name, &Default::default()); - for argument in arguments { - self.visit_expression(argument, &Default::default()); - } - self.check(*id); - } AccessExpression::Tuple(TupleAccess { tuple, id, .. }) => { self.visit_expression(tuple, &Default::default()); self.check(*id); diff --git a/compiler/passes/src/code_generation/visit_expressions.rs b/compiler/passes/src/code_generation/visit_expressions.rs index 15c748470b..6d1dc87f1a 100644 --- a/compiler/passes/src/code_generation/visit_expressions.rs +++ b/compiler/passes/src/code_generation/visit_expressions.rs @@ -32,7 +32,6 @@ use leo_ast::{ Location, LocatorExpression, MemberAccess, - MethodCall, StructExpression, TernaryExpression, TupleExpression, @@ -311,11 +310,6 @@ impl<'a> CodeGenerator<'a> { (member_access, String::new()) } - // f.await() -> await r3; - fn visit_method_call(&mut self, _input: &'a MethodCall) -> (String, String) { - panic!("Method calls should not appear at this phase of compilation."); - } - // group::GEN -> group::GEN fn visit_associated_constant(&mut self, input: &'a AssociatedConstant) -> (String, String) { (format!("{input}"), String::new()) @@ -501,7 +495,6 @@ impl<'a> CodeGenerator<'a> { match input { AccessExpression::Array(array) => self.visit_array_access(array), AccessExpression::Member(access) => self.visit_member_access(access), - AccessExpression::MethodCall(call) => self.visit_method_call(call), AccessExpression::AssociatedConstant(constant) => self.visit_associated_constant(constant), AccessExpression::AssociatedFunction(function) => self.visit_associated_function(function), AccessExpression::Tuple(_) => { diff --git a/compiler/passes/src/function_inlining/inline_expression.rs b/compiler/passes/src/function_inlining/inline_expression.rs index 70f22fdb52..d9ff1c3824 100644 --- a/compiler/passes/src/function_inlining/inline_expression.rs +++ b/compiler/passes/src/function_inlining/inline_expression.rs @@ -102,7 +102,9 @@ impl ExpressionReconstructor for FunctionInliner<'_> { (result, inlined_statements) } - _ => (Expression::Call(input), Default::default()), + Variant::Function | Variant::AsyncFunction | Variant::Transition | Variant::AsyncTransition => { + (Expression::Call(input), Default::default()) + } } } } diff --git a/compiler/passes/src/static_single_assignment/rename_statement.rs b/compiler/passes/src/static_single_assignment/rename_statement.rs index eefc8e9e92..0b4d522784 100644 --- a/compiler/passes/src/static_single_assignment/rename_statement.rs +++ b/compiler/passes/src/static_single_assignment/rename_statement.rs @@ -33,7 +33,6 @@ use leo_ast::{ ExpressionStatement, Identifier, IterationStatement, - MethodCall, Node, ReturnStatement, Statement, @@ -370,23 +369,6 @@ impl StatementConsumer for StaticSingleAssigner<'_> { id: input.id, })) } - Expression::Access(AccessExpression::MethodCall(method_call)) => { - // Process the arguments. - let arguments = process_arguments(method_call.arguments); - // Create and accumulate the new expression statement. - // Note that we do not create a new assignment for the method call; this is necessary for correct code generation. - statements.push(Statement::Expression(ExpressionStatement { - expression: Expression::Access(AccessExpression::MethodCall(MethodCall { - receiver: method_call.receiver, - arguments, - span: method_call.span, - id: method_call.id, - name: method_call.name, - })), - span: input.span, - id: input.id, - })) - } _ => unreachable!("Type checking guarantees that expression statements are always function calls."), } diff --git a/compiler/passes/src/type_checking/check_expressions.rs b/compiler/passes/src/type_checking/check_expressions.rs index 43a4123d25..6c3c5692e5 100644 --- a/compiler/passes/src/type_checking/check_expressions.rs +++ b/compiler/passes/src/type_checking/check_expressions.rs @@ -139,7 +139,6 @@ impl<'a> ExpressionVisitor<'a> for TypeChecker<'a> { self.emit_err(TypeCheckerError::invalid_core_function_call(access, access.span())); } } - AccessExpression::MethodCall(_) => panic!("Method calls should not appear in this area of the code."), AccessExpression::Tuple(access) => { if let Some(type_) = self.visit_expression(&access.tuple, &None) { match type_ { diff --git a/compiler/passes/src/type_checking/check_statements.rs b/compiler/passes/src/type_checking/check_statements.rs index 0bd9254be2..9a7fa9f4b2 100644 --- a/compiler/passes/src/type_checking/check_statements.rs +++ b/compiler/passes/src/type_checking/check_statements.rs @@ -297,9 +297,7 @@ impl<'a> StatementVisitor<'a> for TypeChecker<'a> { // Expression statements can only be function calls. if !matches!( input.expression, - Expression::Call(_) - | Expression::Access(AccessExpression::AssociatedFunction(_)) - | Expression::Access(AccessExpression::MethodCall(_)) + Expression::Call(_) | Expression::Access(AccessExpression::AssociatedFunction(_)) ) { self.emit_err(TypeCheckerError::expression_statement_must_be_function_call(input.span())); } else { From 71c39b5c31720d2c3d965f6606f1a6a7e9209d63 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Thu, 11 Apr 2024 12:02:09 -0700 Subject: [PATCH 77/80] update expectations --- compiler/ast/src/types/type_.rs | 4 +++- tests/expectations/execution/array_sum.out | 20 ++++++++-------- .../expectations/execution/cast_coersion.out | 20 ++++++++-------- tests/expectations/execution/chain.out | 20 ++++++++-------- tests/expectations/execution/counter.out | 22 ++++++++--------- tests/expectations/execution/eq.out | 24 +++++++++---------- .../flattened_function_and_inline_matches.out | 22 ++++++++--------- .../execution/group_operations.out | 20 ++++++++-------- tests/expectations/execution/mint.out | 20 ++++++++-------- .../execution/primitive_casts.out | 20 ++++++++-------- 10 files changed, 97 insertions(+), 95 deletions(-) diff --git a/compiler/ast/src/types/type_.rs b/compiler/ast/src/types/type_.rs index c73b225676..4dd72b618e 100644 --- a/compiler/ast/src/types/type_.rs +++ b/compiler/ast/src/types/type_.rs @@ -96,7 +96,9 @@ impl Type { (Type::Composite(left), Type::Composite(right)) => { left.id.name == right.id.name && left.program == right.program } - (Type::Future(left), Type::Future(right)) if left.inputs.len() == right.inputs.len() => { + (Type::Future(left), Type::Future(right)) + if left.inputs.len() == right.inputs.len() && left.location.is_some() && right.location.is_some() => + { left.location == right.location && left .inputs() diff --git a/tests/expectations/execution/array_sum.out b/tests/expectations/execution/array_sum.out index 2da07561eb..e8f64f31e8 100644 --- a/tests/expectations/execution/array_sum.out +++ b/tests/expectations/execution/array_sum.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: b1930335d43c6a4946c2ddc425b7986a9fbeca7aed15edd9ffd5551a6d930797 - type_checked_symbol_table: 19007cdbe0894c75abf82f0dede3703837dee2d17e6556e721fd50f594df9e24 - unrolled_symbol_table: e59364c597307bb4b65c3a5201cbd259cd6b8d3072f890115a32c1e044ae6f2c - initial_ast: 0be65d212691feb1576afd5bcf8e4e0035e19b8ea5341dcabb9cebbe9f524290 - unrolled_ast: 33ec084d4501cf090a236ac6f2d8779d6f7f9d7e6cdee0143702ca33380c9aa0 - ssa_ast: 5f412da9a0d11271e346f828a64e1dbc8a9ab261d9cd5c36d5ede1280c6ca560 - flattened_ast: 3a40ae4daae510fcf6c347e9e7aeeece38ead108edd0ad068de63fe9892c94fe - destructured_ast: f83ef6e6767c939da3655f5956094fd3f170c6643749b0bc508300b974c738a6 - inlined_ast: f83ef6e6767c939da3655f5956094fd3f170c6643749b0bc508300b974c738a6 - dce_ast: f83ef6e6767c939da3655f5956094fd3f170c6643749b0bc508300b974c738a6 + - initial_symbol_table: ee0de47140c1b8678a33fc81b64052c4f7f1e1161d913723c179957a03458d95 + type_checked_symbol_table: 49c65a24fda9b60f090d5fd9b6063b02b2ff55c2d91c01c8e63f60e035ebd76b + unrolled_symbol_table: baa86c66c1804bff73e50d43a3402067f6bfe961fd6093d607bd8368269132b7 + initial_ast: 30ceb048011fe4acda742bbd63153ab9614bd32b450fcf7f001b7ea41eb4e08e + unrolled_ast: ebce91de02eb287c82087c5672d3e209a60e2af82ece200c98ac53a946d534bd + ssa_ast: 840fec2a19ccf35201187b709019fab4cf67d834fc25b86885bd3f433daad3ac + flattened_ast: 3e1b9c6c43814007ff1ff5aa8abd6295488423f9fcb2fdd304903327887e9487 + destructured_ast: cb22dfd6700e48d2b6789b4d3cec3fb5e9ec958cc123351ba1980b9855a51f87 + inlined_ast: cb22dfd6700e48d2b6789b4d3cec3fb5e9ec958cc123351ba1980b9855a51f87 + dce_ast: cb22dfd6700e48d2b6789b4d3cec3fb5e9ec958cc123351ba1980b9855a51f87 bytecode: f8442f404e7a865ea2161ba7fa50f682ad3b4fe62585456913ccc47a01a6c5ef errors: "" warnings: "" diff --git a/tests/expectations/execution/cast_coersion.out b/tests/expectations/execution/cast_coersion.out index e362cd79f8..71252cb6f0 100644 --- a/tests/expectations/execution/cast_coersion.out +++ b/tests/expectations/execution/cast_coersion.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: 317827cd724f571eafec09fa160b593fdcf229602039d5b4a89761fab9f1b1e3 - type_checked_symbol_table: 6c32b4bb7fde567243391a0d86ed031b64c42612d9e33291f185bcc12df93def - unrolled_symbol_table: 6c32b4bb7fde567243391a0d86ed031b64c42612d9e33291f185bcc12df93def - initial_ast: 7592d7bc2b0854d24b1f6325d4fb29eac291bf5394deab0c7609e812c3f03316 - unrolled_ast: 7592d7bc2b0854d24b1f6325d4fb29eac291bf5394deab0c7609e812c3f03316 - ssa_ast: 4d65d18451d1333104073410d279c58d998cb41bc2bbc5122fa6e7285456b3de - flattened_ast: 991acab3b5bd42964c21be84a2b089f8a50ee0944d829af03ace717aec40d095 - destructured_ast: e5a9742576739e1687643f8d570131908d168e43ab4d2473f205967bcebf85db - inlined_ast: e5a9742576739e1687643f8d570131908d168e43ab4d2473f205967bcebf85db - dce_ast: e5a9742576739e1687643f8d570131908d168e43ab4d2473f205967bcebf85db + - initial_symbol_table: 92ba7bdf1b53646e735010d257aa0c132cf5513b4ce193b9aafc2af8f50e49da + type_checked_symbol_table: 638e7846f9de1b9dc446d6f6e323f03e224c602069f36482321acff12b97b7cc + unrolled_symbol_table: 638e7846f9de1b9dc446d6f6e323f03e224c602069f36482321acff12b97b7cc + initial_ast: d62c942139ef53452dfd202dea945c6ac70ae28f32342478a6501a62902a0e22 + unrolled_ast: d62c942139ef53452dfd202dea945c6ac70ae28f32342478a6501a62902a0e22 + ssa_ast: 6b4c246a373393560bdf5ca307e2be35e643b5c475b0c5ddf9c9376242db2a38 + flattened_ast: 75cc34526c6991fd78a4ad1d64606d5b9d15d5c83c6b6cf0e16fc06d04373781 + destructured_ast: a4ca3abba605cb76b18fa319233a24115e7a76be2293430e854da1bf34c1284e + inlined_ast: a4ca3abba605cb76b18fa319233a24115e7a76be2293430e854da1bf34c1284e + dce_ast: a4ca3abba605cb76b18fa319233a24115e7a76be2293430e854da1bf34c1284e bytecode: 675912267b82b91bd854fa2ef169b85c74ecaac6b73a157d7e99818e256b53b1 errors: "" warnings: "" diff --git a/tests/expectations/execution/chain.out b/tests/expectations/execution/chain.out index 08df0575e1..ecfbbc2fe2 100644 --- a/tests/expectations/execution/chain.out +++ b/tests/expectations/execution/chain.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: 1d8632a1a2fa69ff76cf59869e3f4f0fd0d3a67df7acd68e84dc620bd9c080cc - type_checked_symbol_table: 788657858fc7d1391e64f03bc5e45963f1135e9545e38e93eb97f5818a593651 - unrolled_symbol_table: 788657858fc7d1391e64f03bc5e45963f1135e9545e38e93eb97f5818a593651 - initial_ast: 671ad6b623c417287a562a53a7f4804d9165d94f36f7df397c79463b5d6d219b - unrolled_ast: 671ad6b623c417287a562a53a7f4804d9165d94f36f7df397c79463b5d6d219b - ssa_ast: d1384235205da73c64abe3f46d464bb2c58ed9da71f667c4136331d25727048a - flattened_ast: 808a602f56b5b820abb83e0d9893674703d6d8b87a6472b1c7eaee1dcf19fd36 - destructured_ast: 321095336a0801e17b885f9132505767d7d4d927199da4b052508b9ff4ca49e6 - inlined_ast: 321095336a0801e17b885f9132505767d7d4d927199da4b052508b9ff4ca49e6 - dce_ast: cf79556733f708589458e59541c54aa18a81e52e6d168265baa0b1b5f0389f42 + - initial_symbol_table: afe2cb0a5d27126ad8ee79c859b2821f3782ea4dbc63ee28264f7ec69f1a8072 + type_checked_symbol_table: d5c578bc15d114faf9227788840a1fa9788bd6a35ea95505a98825b527d2446c + unrolled_symbol_table: d5c578bc15d114faf9227788840a1fa9788bd6a35ea95505a98825b527d2446c + initial_ast: d696751abc1759eceef02391db368a0cd99d51158c5ac23a7952dd1f131895de + unrolled_ast: d696751abc1759eceef02391db368a0cd99d51158c5ac23a7952dd1f131895de + ssa_ast: 0f39b8a8a8b57f698309cd7092d420214503d53a033f253e6bb3b53f7186f8ee + flattened_ast: c9defa5b726f9a2a4a1f1f50e6247d05cfd16df5a644550f1c0533eb7cb9574b + destructured_ast: e0ca4d81bdace6c7c67cfc7af098c00e32374e833d3dbd80e2bb5804c05a4f1d + inlined_ast: e0ca4d81bdace6c7c67cfc7af098c00e32374e833d3dbd80e2bb5804c05a4f1d + dce_ast: 182cfa6151375d9365fc5dae299edf6e8dca6dc7bac75b5adb3f4516ad8c0f5b bytecode: f6aaf7f7a13fb233511385db7479f2612e7a77734ee6a189f063bd3d33a7afaa errors: "" warnings: "" diff --git a/tests/expectations/execution/counter.out b/tests/expectations/execution/counter.out index b70068ef4a..294bbf8312 100644 --- a/tests/expectations/execution/counter.out +++ b/tests/expectations/execution/counter.out @@ -3,17 +3,17 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: 9573a0a69494187f0d44626f4af49ed8ad8fe388f52d12ab38c30c5308626c3c - type_checked_symbol_table: 670b9e0e503bd7f3c425c6329eb1af62324b8f81dafa2d9d4f88c8dc0d6289aa - unrolled_symbol_table: ff438510f1ac8fd48441db3220b012a1c5d3aa636ae1f5058a1db7a09b40889c - initial_ast: c3fc544b34a68911ff6b67586ec9b75027053a9185ba35a0646514d2a7ff24d1 - unrolled_ast: 3c45e63ecdaf7930aece1cc5ea7d21780fed1b4bec977eced28cf6a8983f87f5 - ssa_ast: 4cfb191e591b288784e02d4ee1b1117d58a8c6350c22d573397ad43b6e0cdb89 - flattened_ast: 3e9ee53f31fa10c15493a9ac20023bd2d9eac53849e61afd6e89ba5a46daf188 - destructured_ast: d0cccd7afb3419c2cd5f697686a67f427174229282ece387e4465a1b0ccce435 - inlined_ast: d0cccd7afb3419c2cd5f697686a67f427174229282ece387e4465a1b0ccce435 - dce_ast: d0cccd7afb3419c2cd5f697686a67f427174229282ece387e4465a1b0ccce435 - bytecode: 75252a5477a2943c07eaf114bef3dd214acbd7184b3118f14786beb8215bfb94 + - initial_symbol_table: 09dadb761c8ffcdf5202058edf630a4bdaa5a7ee5c1dd1afc9da81e5dae64d05 + type_checked_symbol_table: 635d6036a8ec63cfa3a97a4667a1a1fb8002ef3a5386bd4c6f4dafca0e218aa8 + unrolled_symbol_table: 6ae16d9d95fb7c876b1c9aa5674e20f608dad46efd684a9e8ab028ee1d25d2c1 + initial_ast: 4a28149974915dd3e5bfb2b7f9a73be37f88408f99c5818454bdabdd2524b690 + unrolled_ast: 3d6c4b138fdcceab0e0668c6b6589b2f7d62f05059f1b675b6679288b83c6eb7 + ssa_ast: 28a6b1664f8ed8a4e86fdf5dec8faa0f7fe03115f627f94380d825a1a99dc21d + flattened_ast: 1dc0a1c08dfe2c0a41f3f33b52338dfd23405ac3b7735824bc5b7862013e305b + destructured_ast: 94f93a9b262d26ae4fc74c98b131201aa5537b01267d7de685a00411ba497492 + inlined_ast: a6960e1444005d75fa6b34142797a33411d758f7eec5a00cf2731f7f51b0f94b + dce_ast: a6960e1444005d75fa6b34142797a33411d758f7eec5a00cf2731f7f51b0f94b + bytecode: 34f95c324649b856e6e1178f1db6dfb00abe322f43e2ea08b37ba9065c6f3897 errors: "" warnings: "" execute: diff --git a/tests/expectations/execution/eq.out b/tests/expectations/execution/eq.out index 5910fa2690..a51f5b6591 100644 --- a/tests/expectations/execution/eq.out +++ b/tests/expectations/execution/eq.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: a56c5db08f6890c8f13ddf9458ca5ed0cc39b8388bcc7545672c59ff33b9eb2e - type_checked_symbol_table: c1e1d43165e75cdfbf1ea9beb21e38cf186133261eea7e334c79cbb92f41ede3 - unrolled_symbol_table: c1e1d43165e75cdfbf1ea9beb21e38cf186133261eea7e334c79cbb92f41ede3 - initial_ast: 5e206ade9b06975fab301cb0906cc9f410b02cf17eed9df44db072f832489e9a - unrolled_ast: 5e206ade9b06975fab301cb0906cc9f410b02cf17eed9df44db072f832489e9a - ssa_ast: 5b38714260ed02a1fa30e2226fb8d69363a8cc28c8b19a99d501cd25e52fe499 - flattened_ast: b217d33cfcd234126e9f708676e43d8edc957692b5cb36b8284f092c9a14bad9 - destructured_ast: 57cb70fc75d108f8a5db472b3abe02215d76486e20fe8932fefa7fa9096193c7 - inlined_ast: 57cb70fc75d108f8a5db472b3abe02215d76486e20fe8932fefa7fa9096193c7 - dce_ast: 57cb70fc75d108f8a5db472b3abe02215d76486e20fe8932fefa7fa9096193c7 + - initial_symbol_table: 159884d2742a5521517561b227c926e101eeab217420aa5d3df19114bf7ae7e8 + type_checked_symbol_table: 51b2cf2c293a27685d5635bed550f6ee9232159e2b4cc61e64e3a979160d2cf4 + unrolled_symbol_table: 51b2cf2c293a27685d5635bed550f6ee9232159e2b4cc61e64e3a979160d2cf4 + initial_ast: 2c4ec22c3b11ecc678d01e0ca265f79de84f7f8d59423141529da760a019ed2b + unrolled_ast: 2c4ec22c3b11ecc678d01e0ca265f79de84f7f8d59423141529da760a019ed2b + ssa_ast: 563e0a1aa0829b1e5981920fa19869ee4d316063010bf8cb53a9ed3c061b787e + flattened_ast: 078e3c8ffd1ebe8d1be1eb16a1f55e03cfeb7195f0dff37d79ee94a7f4001a12 + destructured_ast: c5c656475130a192478c712890436eac836d21f0f16e3d5627d51e8c6eb07f11 + inlined_ast: c5c656475130a192478c712890436eac836d21f0f16e3d5627d51e8c6eb07f11 + dce_ast: c5c656475130a192478c712890436eac836d21f0f16e3d5627d51e8c6eb07f11 bytecode: 15a3a90b1837b318b43b3f3bfc5e454a8821357b4c3feb01da00a4db810bde89 errors: "" warnings: "" @@ -20,7 +20,7 @@ outputs: - execution: ~ verified: false status: none - errors: "Failed to evaluate instruction (assert.eq r0 r1 ;): 'assert.eq' failed: '0u32' is not equal to '1u32' (should be equal)" + errors: "SnarkVMError(Failed to evaluate instruction (assert.eq r0 r1 ;): 'assert.eq' failed: '0u32' is not equal to '1u32' (should be equal))" warnings: "" - execution: transitions: @@ -50,7 +50,7 @@ outputs: - execution: ~ verified: false status: none - errors: "Failed to evaluate instruction (assert.eq r0 r1 ;): 'assert.eq' failed: '1u32' is not equal to '2u32' (should be equal)" + errors: "SnarkVMError(Failed to evaluate instruction (assert.eq r0 r1 ;): 'assert.eq' failed: '1u32' is not equal to '2u32' (should be equal))" warnings: "" - execution: transitions: diff --git a/tests/expectations/execution/flattened_function_and_inline_matches.out b/tests/expectations/execution/flattened_function_and_inline_matches.out index 7228771e50..3df3cf31bd 100644 --- a/tests/expectations/execution/flattened_function_and_inline_matches.out +++ b/tests/expectations/execution/flattened_function_and_inline_matches.out @@ -3,17 +3,17 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: c7a33b0d5bd93fdbd98db6f9d78d1eba07a086f81525e17adf1bf2e68c010913 - type_checked_symbol_table: dc7cb2d2922fa38913789a07ee6b54c9646e3c217901f7b88b9115ee34357bdc - unrolled_symbol_table: dc7cb2d2922fa38913789a07ee6b54c9646e3c217901f7b88b9115ee34357bdc - initial_ast: 7d9a65519bb845fab9b55079398081fb914696bc238ee4c812627caa7b37464c - unrolled_ast: 7d9a65519bb845fab9b55079398081fb914696bc238ee4c812627caa7b37464c - ssa_ast: 10c44a166fb3db2fc34a951084c32fb8c05729cbb4db6f0dfa0511d72935db5c - flattened_ast: 6aad1d66abfd56333cdc09b2cda82e5b1fb51f550fc5011c422737fb0a6bcf4e - destructured_ast: 3639df563c953bc23096b632e11660b585a63ed0013856c8ed5d49f1086f96a0 - inlined_ast: 6e4a838ab05190d43f44bd5bc17ad86d072d9efa83b635b4796c015452808b10 - dce_ast: 6e4a838ab05190d43f44bd5bc17ad86d072d9efa83b635b4796c015452808b10 - bytecode: a52c852c5ea5e31d35c812e4ab15e4c098022431bb58b592d797137abf015e29 + - initial_symbol_table: a64c2df2218dcdc0c9fc535a2ba98c72f244c651778962113546a06d4a55b021 + type_checked_symbol_table: d5d52a6484534904002290253e880ee2706525e99238f25af9283e93d8473125 + unrolled_symbol_table: d5d52a6484534904002290253e880ee2706525e99238f25af9283e93d8473125 + initial_ast: 5dd014fca5fa8cd0315dc3780a3f78313f2f1102b8c5e5f2b97e8d1f0bb8e61b + unrolled_ast: 5dd014fca5fa8cd0315dc3780a3f78313f2f1102b8c5e5f2b97e8d1f0bb8e61b + ssa_ast: 435c72dcb084e7ce90b3dddc095c489068fdf19b9501c91b59a5d853dadb9491 + flattened_ast: 8ee9530499e1b22c9a3a75b5f01e84920bb93edf259a96fcef90aeaa7448f9a6 + destructured_ast: 9941dac2f381d0f8fc6855ae81656da5b44bdef6f611382531177c4070d899a0 + inlined_ast: e2b28097c05c369a3e28b6ae00343aa749b47f532cfa2aabb097795a085d5dec + dce_ast: e2b28097c05c369a3e28b6ae00343aa749b47f532cfa2aabb097795a085d5dec + bytecode: 1524806e8239505d72e66621c387acc0e3342a9507535f00db692088eb933b1b errors: "" warnings: "" execute: diff --git a/tests/expectations/execution/group_operations.out b/tests/expectations/execution/group_operations.out index b08d38cf84..9bf79dfea3 100644 --- a/tests/expectations/execution/group_operations.out +++ b/tests/expectations/execution/group_operations.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: bc514d42fda9301342e97526a5d7b285932c2f08397380e8adaa7a936446c2b5 - type_checked_symbol_table: faec5a168946bcb416ad867754c3dff7e9e500a17cecb27d41eb87ba53830b5a - unrolled_symbol_table: faec5a168946bcb416ad867754c3dff7e9e500a17cecb27d41eb87ba53830b5a - initial_ast: 4794f01f6892393550582ac94044c1da19fcb709d930818b3642f025e42fc765 - unrolled_ast: 4794f01f6892393550582ac94044c1da19fcb709d930818b3642f025e42fc765 - ssa_ast: 0b298dfa420e1b53ef9aaabb715915789be62e281ef78f5fe52569d6473db1c4 - flattened_ast: 92cceac872757a41b2ae195c3d2fd3c4da0fab39815345a7a4c21a1109c2a655 - destructured_ast: c4e86396b7b518b17b715805716ff155a7178046b7b78b35a476ef4c7651feef - inlined_ast: c4e86396b7b518b17b715805716ff155a7178046b7b78b35a476ef4c7651feef - dce_ast: c4e86396b7b518b17b715805716ff155a7178046b7b78b35a476ef4c7651feef + - initial_symbol_table: 7a8d440b6dd7400ed43ba849a5df90b405f2e30ddc99263ead8e3b7cff10e5e2 + type_checked_symbol_table: 9557771118cc1ffb4389620abd010d56e0ee942862d16c5ceb345bc3e629882a + unrolled_symbol_table: 9557771118cc1ffb4389620abd010d56e0ee942862d16c5ceb345bc3e629882a + initial_ast: 36e02c46991c81f53c1a15bc9cb630598ed27391941d500ec8cb4e38e228f9e1 + unrolled_ast: 36e02c46991c81f53c1a15bc9cb630598ed27391941d500ec8cb4e38e228f9e1 + ssa_ast: 9a7f1732a4a0b81698ebb9ae293952c3a4fb2949c9a24d73b1d5d189bc83f044 + flattened_ast: aee527343b7a952e3cb0f6c9161cd7c754b0bde78144431497a309d412ace6b7 + destructured_ast: 32ad90467c3b4474be4afb036d26d0838820b89e9068c5db6b32cad2d6d504ac + inlined_ast: 32ad90467c3b4474be4afb036d26d0838820b89e9068c5db6b32cad2d6d504ac + dce_ast: 32ad90467c3b4474be4afb036d26d0838820b89e9068c5db6b32cad2d6d504ac bytecode: 5c20fda21a40464a1462524cf913438776a39383a671949312f48ce8ceb2dd16 errors: "" warnings: "" diff --git a/tests/expectations/execution/mint.out b/tests/expectations/execution/mint.out index c201919c76..fa5525e27b 100644 --- a/tests/expectations/execution/mint.out +++ b/tests/expectations/execution/mint.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: efa9087e88f3d49f7e1b4db71e0d2facf4f2d8cd6babd9a5f2d3d1087a741bc6 - type_checked_symbol_table: 69eb1827a3984cf1f84d228c6a81508430a197c5ccb4574e4bc31476cb54467e - unrolled_symbol_table: 69eb1827a3984cf1f84d228c6a81508430a197c5ccb4574e4bc31476cb54467e - initial_ast: 6c1994b601ef44f2e37e8b65b242a84407707b6c6c35c0777569ddf61e9fa610 - unrolled_ast: 7ad3d032eb757db254079ee69dfd765c9713d432066b2efcdc869adac64d5a39 - ssa_ast: 4f006f2cb738f369c599f56b412707108d2c463147a46e4719f36339f1b27693 - flattened_ast: 43a444e70204e8fd43ecaca9d30bdd7d02cdf4cd647e3bb3dafc716cff64bba4 - destructured_ast: a6d5b0fb0e3b904b8a8dc08d00fd73877b13dd773814e201e418fad4d00fa7a0 - inlined_ast: a6d5b0fb0e3b904b8a8dc08d00fd73877b13dd773814e201e418fad4d00fa7a0 - dce_ast: a6d5b0fb0e3b904b8a8dc08d00fd73877b13dd773814e201e418fad4d00fa7a0 + - initial_symbol_table: b1f9bcf1f443341ec196f782064054896884c294038e1afdf83a85ecb9b031fb + type_checked_symbol_table: 9c7094b46c9ccc6a750928f5148be19926451db47da795d863579523501ffe25 + unrolled_symbol_table: 9c7094b46c9ccc6a750928f5148be19926451db47da795d863579523501ffe25 + initial_ast: ffc5222b7b6cba96184f074a75f9f364bd7ecfffc3e64a36f52fb10cdc7cebc1 + unrolled_ast: 8b3fd23bfaed6623d37b1b83e8a33eac6a0e614b74e1b1a2a5430e99387f7102 + ssa_ast: 01f9c123ebe1756458f6fc1843cbc8cd7c9feade37a1063ba03634d9a53c8152 + flattened_ast: 755895aad16b7010794653237db6c6315cf98f02f96d7ed02cc6371143742090 + destructured_ast: 7ef7f6148b88cfd152252be481eb795755ae7a69f948282a140f0f69e17a811e + inlined_ast: 7ef7f6148b88cfd152252be481eb795755ae7a69f948282a140f0f69e17a811e + dce_ast: 7ef7f6148b88cfd152252be481eb795755ae7a69f948282a140f0f69e17a811e bytecode: d47819ba59e730eb159ee9e33fef5a35aac6062e70c743a749157d54824a45d9 errors: "" warnings: "" diff --git a/tests/expectations/execution/primitive_casts.out b/tests/expectations/execution/primitive_casts.out index cbc1c43466..d3e883b28c 100644 --- a/tests/expectations/execution/primitive_casts.out +++ b/tests/expectations/execution/primitive_casts.out @@ -3,16 +3,16 @@ namespace: Execute expectation: Pass outputs: - - compile: - - initial_symbol_table: e611a78afa6af3c9c1db69e070685ae2128be70e885fe8a08d0e3c338d3d4875 - type_checked_symbol_table: 7601618645fe498ebab922d0a184541a301ce0e25afdddafee60a0e47c831652 - unrolled_symbol_table: 7601618645fe498ebab922d0a184541a301ce0e25afdddafee60a0e47c831652 - initial_ast: f44a900febfed965542eac47b9ac67d3aaf8192448e98eeab095e0de99644a28 - unrolled_ast: f44a900febfed965542eac47b9ac67d3aaf8192448e98eeab095e0de99644a28 - ssa_ast: ce3be575b20be0c216257610a3c212d3c879532d32f9795ceeed49f51a34df05 - flattened_ast: 739cd6b87835e8a1d0024449545d42a9fe54ba25822779ccb721c17d6b1cca7b - destructured_ast: e51d4dc381b1ce51c560c68b1441103d8be7b844005ffd13ac73745640b8d367 - inlined_ast: e51d4dc381b1ce51c560c68b1441103d8be7b844005ffd13ac73745640b8d367 - dce_ast: e51d4dc381b1ce51c560c68b1441103d8be7b844005ffd13ac73745640b8d367 + - initial_symbol_table: 1b5e9738cd2d724c425f7638faa566f2b6641ff54efc0ba3dc3c29ae9d73d2e2 + type_checked_symbol_table: c856ed4dc5bedf2239a79b000c2f3d727a2991f994bc2aca08052a844d082e94 + unrolled_symbol_table: c856ed4dc5bedf2239a79b000c2f3d727a2991f994bc2aca08052a844d082e94 + initial_ast: 6c02dd560160a639803115c1cba59cee3628c90d7c50ffabecee2ae291b09f72 + unrolled_ast: 6c02dd560160a639803115c1cba59cee3628c90d7c50ffabecee2ae291b09f72 + ssa_ast: a82433297553ea054d38f8e719df537c2e5e07ef41510bf17922f9cee6971e20 + flattened_ast: 6e0ef9f2490bbe837a7da67560d3c18e9d73d9c1b71892c122f317b6ae593a57 + destructured_ast: d30b8ad204a56b43065ed8e62db4e3e2e7051f349b42ea8bab870d81a59877c7 + inlined_ast: d30b8ad204a56b43065ed8e62db4e3e2e7051f349b42ea8bab870d81a59877c7 + dce_ast: d30b8ad204a56b43065ed8e62db4e3e2e7051f349b42ea8bab870d81a59877c7 bytecode: 9f8baa3f1bada186c32440e4880e858bd76b54dedb2d667a2b93c2d2a98f0752 errors: "" warnings: "" From 004484b58c3749e9be71b876833d8608eb6ef97a Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:19:08 -0700 Subject: [PATCH 78/80] refactor ntzseals --- .../hackers-delight/ntzseals/src/main.leo | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/examples/hackers-delight/ntzseals/src/main.leo b/examples/hackers-delight/ntzseals/src/main.leo index 3e0d705293..04c3064456 100644 --- a/examples/hackers-delight/ntzseals/src/main.leo +++ b/examples/hackers-delight/ntzseals/src/main.leo @@ -61,32 +61,32 @@ program ntzseals.aleo { if i == 38u32 {return 0u8;} else // unused if i == 39u32 {return 0u8;} else // unused - if i == 40u32 {return 9u8;} else - if i == 41u32 {return 0u8;} else // unused - if i == 42u32 {return 0u8;} else // unused - if i == 43u32 {return 24u8;} else - if i == 44u32 {return 0u8;} else // unused - if i == 45u32 {return 0u8;} else // unused - if i == 46u32 {return 20u8;} else - if i == 47u32 {return 26u8;} else + // if i == 40u32 {return 9u8;} else + // if i == 41u32 {return 0u8;} else // unused + // if i == 42u32 {return 0u8;} else // unused + // if i == 43u32 {return 24u8;} else + // if i == 44u32 {return 0u8;} else // unused + // if i == 45u32 {return 0u8;} else // unused + // if i == 46u32 {return 20u8;} else + // if i == 47u32 {return 26u8;} else - if i == 48u32 {return 30u8;} else - if i == 49u32 {return 0u8;} else // unused - if i == 50u32 {return 0u8;} else // unused - if i == 51u32 {return 0u8;} else // unused - if i == 52u32 {return 0u8;} else // unused - if i == 53u32 {return 23u8;} else - if i == 54u32 {return 0u8;} else // unused - if i == 55u32 {return 19u8;} else + // if i == 48u32 {return 30u8;} else + // if i == 49u32 {return 0u8;} else // unused + // if i == 50u32 {return 0u8;} else // unused + // if i == 51u32 {return 0u8;} else // unused + // if i == 52u32 {return 0u8;} else // unused + // if i == 53u32 {return 23u8;} else + // if i == 54u32 {return 0u8;} else // unused + // if i == 55u32 {return 19u8;} else - if i == 56u32 {return 29u8;} else - if i == 57u32 {return 0u8;} else // unused - if i == 58u32 {return 22u8;} else - if i == 59u32 {return 18u8;} else - if i == 60u32 {return 28u8;} else - if i == 61u32 {return 17u8;} else - if i == 62u32 {return 16u8;} else - if i == 63u32 {return 0u8;} else // unused + // if i == 56u32 {return 29u8;} else + // if i == 57u32 {return 0u8;} else // unused + // if i == 58u32 {return 22u8;} else + // if i == 59u32 {return 18u8;} else + // if i == 60u32 {return 28u8;} else + // if i == 61u32 {return 17u8;} else + // if i == 62u32 {return 16u8;} else + // if i == 63u32 {return 0u8;} else // unused {return 0u8;} // unused } } From d8216a4d6e9411679b85df0c6904f11be7ba0996 Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu <23022326+d0cd@users.noreply.github.com> Date: Sat, 13 Apr 2024 10:49:32 -0700 Subject: [PATCH 79/80] Regen expectations --- .../parser/expression/cast_fail.out | 4 +- .../expectations/parser/finalize/finalize.out | 160 ++++---- .../parser/finalize/finalize_fail.out | 2 +- .../finalize/finalize_statement_fail.out | 11 +- .../parser/functions/annotated_context.out | 8 +- .../parser/functions/annotated_functions.out | 62 ++- .../parser/functions/bounded_recursion.out | 7 +- .../parser/functions/const_param.out | 8 +- .../parser/functions/constant_input.out | 3 +- .../functions/danling_annotations_fail.out | 3 +- .../expectations/parser/functions/empty2.out | 3 +- .../parser/functions/infinite_recursion.out | 7 +- .../parser/functions/inline_function.out | 2 - .../expectations/parser/functions/params.out | 4 +- .../parser/functions/params_return.out | 4 +- .../parser/functions/public_param.out | 8 +- .../expectations/parser/functions/return.out | 4 +- .../parser/functions/transition_function.out | 2 - .../parser/program/async_basic.out | 16 +- .../parser/program/external_mapping.out | 371 +++++++++--------- tests/expectations/parser/program/import.out | 3 +- .../program/locator_expression_fail.out | 2 +- .../parser/serialize/one_plus_one.out | 4 +- .../parser/statement/async_fail.out | 2 +- tests/expectations/parser/statement/block.out | 3 - .../parser/statement/conditional.out | 3 - .../parser/statement/definition_fail.out | 6 +- .../parser/statement/finalize_fail.out | 19 +- .../parser/statement/iteration.out | 3 - .../expectations/parser/statement/return.out | 2 - tests/expectations/parser/type_/signature.out | 4 - .../tests/parser/program/external_mapping.leo | 4 +- .../tests/parser/statement/finalize_fail.leo | 2 +- 33 files changed, 359 insertions(+), 387 deletions(-) diff --git a/tests/expectations/parser/expression/cast_fail.out b/tests/expectations/parser/expression/cast_fail.out index dfa299f8f0..63b62f6281 100644 --- a/tests/expectations/parser/expression/cast_fail.out +++ b/tests/expectations/parser/expression/cast_fail.out @@ -3,7 +3,7 @@ namespace: ParseExpression expectation: Fail outputs: - "did not consume all input: 'aas' @ 1:5-8\n'u8' @ 1:9-11\n" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '{'\n --> test:1:10\n |\n 1 | 1u128 as { foo: u8 }\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'Future', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '{'\n --> test:1:10\n |\n 1 | 1u128 as { foo: u8 }\n | ^" - "did not consume all input: ';' @ 1:14-15\n" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'bar'\n --> test:1:8\n |\n 1 | 1u8 as bar;\n | ^^^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'Future', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'bar'\n --> test:1:8\n |\n 1 | 1u8 as bar;\n | ^^^" - "did not consume all input: 'asu8' @ 1:5-9\n" diff --git a/tests/expectations/parser/finalize/finalize.out b/tests/expectations/parser/finalize/finalize.out index 8b03c4c3ef..706f88d720 100644 --- a/tests/expectations/parser/finalize/finalize.out +++ b/tests/expectations/parser/finalize/finalize.out @@ -13,117 +13,121 @@ outputs: functions: - - main - annotations: [] - variant: Standard - identifier: "{\"id\":\"2\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":43}\"}" + variant: AsyncTransition + identifier: "{\"id\":\"2\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":47,\\\"hi\\\":51}\"}" input: [] output: - Internal: mode: None type_: Boolean span: - lo: 49 - hi: 53 + lo: 57 + hi: 61 id: 3 output_type: Boolean block: statements: [] span: - lo: 54 - hi: 66 + lo: 62 + hi: 74 id: 4 - finalize: - identifier: "{\"id\":\"5\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":89}\"}" - input: [] - output: [] - output_type: Unit - block: - statements: [] - span: - lo: 92 - hi: 104 - id: 6 + span: + lo: 30 + hi: 74 + id: 5 + - - finalize_main + - annotations: [] + variant: AsyncFunction + identifier: "{\"id\":\"6\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":99,\\\"hi\\\":112}\"}" + input: [] + output: [] + output_type: Unit + block: + statements: [] span: - lo: 76 - hi: 104 + lo: 115 + hi: 127 id: 7 span: - lo: 30 - hi: 66 + lo: 84 + hi: 127 id: 8 - - main - annotations: [] - variant: Standard - identifier: "{\"id\":\"9\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":123,\\\"hi\\\":127}\"}" + variant: Function + identifier: "{\"id\":\"9\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":146,\\\"hi\\\":150}\"}" input: [] output: - Internal: mode: None type_: Boolean span: - lo: 133 - hi: 137 + lo: 156 + hi: 160 id: 10 output_type: Boolean block: statements: [] span: - lo: 138 - hi: 150 + lo: 161 + hi: 173 id: 11 - finalize: - identifier: "{\"id\":\"12\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":160,\\\"hi\\\":164}\"}" - input: - - Internal: - identifier: "{\"id\":\"13\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":165,\\\"hi\\\":166}\"}" - mode: None - type_: - Composite: - id: "{\"id\":\"14\",\"name\":\"foo\",\"span\":\"{\\\"lo\\\":168,\\\"hi\\\":171}\"}" - program: test - span: - lo: 165 - hi: 166 - id: 15 - - Internal: - identifier: "{\"id\":\"16\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":173,\\\"hi\\\":174}\"}" - mode: None - type_: - Composite: - id: "{\"id\":\"17\",\"name\":\"bar\",\"span\":\"{\\\"lo\\\":176,\\\"hi\\\":179}\"}" - program: test - span: - lo: 173 - hi: 174 - id: 18 - output: - - Internal: - mode: None - type_: - Composite: - id: "{\"id\":\"19\",\"name\":\"baz\",\"span\":\"{\\\"lo\\\":184,\\\"hi\\\":187}\"}" - program: test - span: - lo: 184 - hi: 187 - id: 20 - output_type: - Composite: - id: "{\"id\":\"19\",\"name\":\"baz\",\"span\":\"{\\\"lo\\\":184,\\\"hi\\\":187}\"}" - program: test - block: - statements: [] - span: - lo: 188 - hi: 200 - id: 21 + span: + lo: 137 + hi: 173 + id: 12 + - - main + - annotations: [] + variant: AsyncFunction + identifier: "{\"id\":\"13\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":193,\\\"hi\\\":197}\"}" + input: + - Internal: + identifier: "{\"id\":\"14\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":198,\\\"hi\\\":199}\"}" + mode: None + type_: + Composite: + id: "{\"id\":\"15\",\"name\":\"foo\",\"span\":\"{\\\"lo\\\":201,\\\"hi\\\":204}\"}" + program: test + span: + lo: 198 + hi: 199 + id: 16 + - Internal: + identifier: "{\"id\":\"17\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":206,\\\"hi\\\":207}\"}" + mode: None + type_: + Composite: + id: "{\"id\":\"18\",\"name\":\"bar\",\"span\":\"{\\\"lo\\\":209,\\\"hi\\\":212}\"}" + program: test + span: + lo: 206 + hi: 207 + id: 19 + output: + - Internal: + mode: None + type_: + Composite: + id: "{\"id\":\"20\",\"name\":\"baz\",\"span\":\"{\\\"lo\\\":217,\\\"hi\\\":220}\"}" + program: test + span: + lo: 217 + hi: 220 + id: 21 + output_type: + Composite: + id: "{\"id\":\"20\",\"name\":\"baz\",\"span\":\"{\\\"lo\\\":217,\\\"hi\\\":220}\"}" + program: test + block: + statements: [] span: - lo: 151 - hi: 200 + lo: 221 + hi: 233 id: 22 span: - lo: 114 - hi: 150 + lo: 178 + hi: 233 id: 23 span: lo: 2 - hi: 212 + hi: 245 diff --git a/tests/expectations/parser/finalize/finalize_fail.out b/tests/expectations/parser/finalize/finalize_fail.out index 8f20024058..459d84d50d 100644 --- a/tests/expectations/parser/finalize/finalize_fail.out +++ b/tests/expectations/parser/finalize/finalize_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '{'\n --> test:6:16\n |\n 6 | } finalize {\n | ^" + - "Error [EPAR0370005]: expected 'struct', 'record', 'mapping', '@', 'function', 'transition', 'inline' -- found 'finalize'\n --> test:6:7\n |\n 6 | } finalize {\n | ^^^^^^^^" diff --git a/tests/expectations/parser/finalize/finalize_statement_fail.out b/tests/expectations/parser/finalize/finalize_statement_fail.out index fd08b5354f..c5e40198e6 100644 --- a/tests/expectations/parser/finalize/finalize_statement_fail.out +++ b/tests/expectations/parser/finalize/finalize_statement_fail.out @@ -2,10 +2,7 @@ namespace: ParseStatement expectation: Fail outputs: - - "Error [EPAR0370031]: `finalize` statements are deprecated.\n --> test:1:1\n |\n 1 | finalize(;\n | ^^^^^^^^\n |\n = Use `return then finalize()` instead." - - "Error [EPAR0370031]: `finalize` statements are deprecated.\n --> test:1:1\n |\n 1 | finalize(foo, ,);\n | ^^^^^^^^\n |\n = Use `return then finalize()` instead." - - "Error [EPAR0370031]: `finalize` statements are deprecated.\n --> test:1:1\n |\n 1 | finalize(foo, bar)\n | ^^^^^^^^\n |\n = Use `return then finalize()` instead." - - "Error [EPAR0370005]: expected ; -- found 'async'\n --> test:1:7\n |\n 1 | async async finalize(foo);\n | ^^^^^" - - "Error [EPAR0370031]: `finalize` statements are deprecated.\n --> test:1:1\n |\n 1 | finalize;\n | ^^^^^^^^\n |\n = Use `return then finalize()` instead." - - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> test:1:6\n |\n 1 | asyn finalize(foo);\n | ^^^^^^^^" - - "Error [EPAR0370005]: expected finalize -- found 'fin'\n --> test:1:13\n |\n 1 | return then fin;\n | ^^^" + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> test:1:13\n |\n 1 | return then finalize;\n | ^^^^^^^^" + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> test:1:13\n |\n 1 | return then finalize();\n | ^^^^^^^^" + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> test:1:13\n |\n 1 | return then finalize(foo);\n | ^^^^^^^^" + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> test:1:13\n |\n 1 | return then finalize(foo, bar);\n | ^^^^^^^^" diff --git a/tests/expectations/parser/functions/annotated_context.out b/tests/expectations/parser/functions/annotated_context.out index 4197eaebcd..c4108e31f2 100644 --- a/tests/expectations/parser/functions/annotated_context.out +++ b/tests/expectations/parser/functions/annotated_context.out @@ -18,7 +18,7 @@ outputs: lo: 30 hi: 38 id: 3 - variant: Standard + variant: Function identifier: "{\"id\":\"4\",\"name\":\"f\",\"span\":\"{\\\"lo\\\":52,\\\"hi\\\":53}\"}" input: [] output: @@ -44,7 +44,6 @@ outputs: lo: 79 hi: 82 - 6 - finalize_arguments: ~ span: lo: 72 hi: 83 @@ -53,7 +52,6 @@ outputs: lo: 62 hi: 89 id: 8 - finalize: ~ span: lo: 43 hi: 89 @@ -65,7 +63,7 @@ outputs: lo: 99 hi: 107 id: 11 - variant: Standard + variant: Function identifier: "{\"id\":\"12\",\"name\":\"g\",\"span\":\"{\\\"lo\\\":141,\\\"hi\\\":142}\"}" input: [] output: @@ -91,7 +89,6 @@ outputs: lo: 168 hi: 171 - 14 - finalize_arguments: ~ span: lo: 161 hi: 172 @@ -100,7 +97,6 @@ outputs: lo: 151 hi: 178 id: 16 - finalize: ~ span: lo: 132 hi: 178 diff --git a/tests/expectations/parser/functions/annotated_functions.out b/tests/expectations/parser/functions/annotated_functions.out index 93e5f7ebfe..a52eb9d311 100644 --- a/tests/expectations/parser/functions/annotated_functions.out +++ b/tests/expectations/parser/functions/annotated_functions.out @@ -11,6 +11,32 @@ outputs: structs: [] mappings: [] functions: + - - mint + - annotations: [] + variant: Transition + identifier: "{\"id\":\"12\",\"name\":\"mint\",\"span\":\"{\\\"lo\\\":101,\\\"hi\\\":105}\"}" + input: [] + output: + - Internal: + mode: None + type_: + Integer: U8 + span: + lo: 111 + hi: 113 + id: 13 + output_type: + Integer: U8 + block: + statements: [] + span: + lo: 114 + hi: 116 + id: 14 + span: + lo: 90 + hi: 116 + id: 15 - - foo - annotations: - identifier: "{\"id\":\"2\",\"name\":\"foo\",\"span\":\"{\\\"lo\\\":31,\\\"hi\\\":34}\"}" @@ -28,7 +54,7 @@ outputs: lo: 48 hi: 52 id: 7 - variant: Standard + variant: Function identifier: "{\"id\":\"8\",\"name\":\"foo\",\"span\":\"{\\\"lo\\\":66,\\\"hi\\\":69}\"}" input: [] output: @@ -48,38 +74,10 @@ outputs: lo: 78 hi: 80 id: 10 - finalize: ~ span: lo: 57 hi: 80 id: 11 - - - mint - - annotations: [] - variant: Transition - identifier: "{\"id\":\"12\",\"name\":\"mint\",\"span\":\"{\\\"lo\\\":101,\\\"hi\\\":105}\"}" - input: [] - output: - - Internal: - mode: None - type_: - Integer: U8 - span: - lo: 111 - hi: 113 - id: 13 - output_type: - Integer: U8 - block: - statements: [] - span: - lo: 114 - hi: 116 - id: 14 - finalize: ~ - span: - lo: 90 - hi: 116 - id: 15 - - test - annotations: - identifier: "{\"id\":\"16\",\"name\":\"test\",\"span\":\"{\\\"lo\\\":127,\\\"hi\\\":131}\"}" @@ -87,7 +85,7 @@ outputs: lo: 126 hi: 131 id: 17 - variant: Standard + variant: Function identifier: "{\"id\":\"18\",\"name\":\"test\",\"span\":\"{\\\"lo\\\":145,\\\"hi\\\":149}\"}" input: [] output: @@ -107,7 +105,6 @@ outputs: lo: 158 hi: 160 id: 20 - finalize: ~ span: lo: 136 hi: 160 @@ -119,7 +116,7 @@ outputs: lo: 170 hi: 178 id: 23 - variant: Standard + variant: Function identifier: "{\"id\":\"24\",\"name\":\"foo\",\"span\":\"{\\\"lo\\\":192,\\\"hi\\\":195}\"}" input: [] output: @@ -139,7 +136,6 @@ outputs: lo: 204 hi: 206 id: 26 - finalize: ~ span: lo: 183 hi: 206 diff --git a/tests/expectations/parser/functions/bounded_recursion.out b/tests/expectations/parser/functions/bounded_recursion.out index f72b23332a..dd36d3f82c 100644 --- a/tests/expectations/parser/functions/bounded_recursion.out +++ b/tests/expectations/parser/functions/bounded_recursion.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: - Internal: @@ -104,14 +104,13 @@ outputs: lo: 64 hi: 126 id: 17 - finalize: ~ span: lo: 30 hi: 126 id: 18 - - main - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"19\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":145,\\\"hi\\\":149}\"}" input: - Internal: @@ -159,7 +158,6 @@ outputs: - Return: expression: Identifier: "{\"id\":\"27\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":201,\\\"hi\\\":202}\"}" - finalize_arguments: ~ span: lo: 194 hi: 203 @@ -168,7 +166,6 @@ outputs: lo: 167 hi: 209 id: 29 - finalize: ~ span: lo: 136 hi: 209 diff --git a/tests/expectations/parser/functions/const_param.out b/tests/expectations/parser/functions/const_param.out index f973b519a2..1146213855 100644 --- a/tests/expectations/parser/functions/const_param.out +++ b/tests/expectations/parser/functions/const_param.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: - Internal: @@ -57,7 +57,6 @@ outputs: lo: 89 hi: 92 - 8 - finalize_arguments: ~ span: lo: 82 hi: 93 @@ -66,14 +65,13 @@ outputs: lo: 72 hi: 99 id: 10 - finalize: ~ span: lo: 30 hi: 99 id: 11 - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"12\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":118,\\\"hi\\\":119}\"}" input: - Internal: @@ -117,7 +115,6 @@ outputs: lo: 168 hi: 171 - 18 - finalize_arguments: ~ span: lo: 161 hi: 172 @@ -126,7 +123,6 @@ outputs: lo: 151 hi: 178 id: 20 - finalize: ~ span: lo: 109 hi: 178 diff --git a/tests/expectations/parser/functions/constant_input.out b/tests/expectations/parser/functions/constant_input.out index a4c5b68978..eac43a1fc9 100644 --- a/tests/expectations/parser/functions/constant_input.out +++ b/tests/expectations/parser/functions/constant_input.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: - Internal: @@ -42,7 +42,6 @@ outputs: lo: 63 hi: 65 id: 6 - finalize: ~ span: lo: 30 hi: 65 diff --git a/tests/expectations/parser/functions/danling_annotations_fail.out b/tests/expectations/parser/functions/danling_annotations_fail.out index 3147ec5b63..3cbd6003ad 100644 --- a/tests/expectations/parser/functions/danling_annotations_fail.out +++ b/tests/expectations/parser/functions/danling_annotations_fail.out @@ -18,7 +18,7 @@ outputs: lo: 110 hi: 115 id: 3 - variant: Standard + variant: Function identifier: "{\"id\":\"4\",\"name\":\"test\",\"span\":\"{\\\"lo\\\":134,\\\"hi\\\":138}\"}" input: [] output: @@ -38,7 +38,6 @@ outputs: lo: 147 hi: 149 id: 6 - finalize: ~ span: lo: 125 hi: 149 diff --git a/tests/expectations/parser/functions/empty2.out b/tests/expectations/parser/functions/empty2.out index 7a0e8c002c..dfc1996f90 100644 --- a/tests/expectations/parser/functions/empty2.out +++ b/tests/expectations/parser/functions/empty2.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: [] output: @@ -33,7 +33,6 @@ outputs: lo: 49 hi: 51 id: 4 - finalize: ~ span: lo: 30 hi: 51 diff --git a/tests/expectations/parser/functions/infinite_recursion.out b/tests/expectations/parser/functions/infinite_recursion.out index 4662fc09ed..80d7f757d3 100644 --- a/tests/expectations/parser/functions/infinite_recursion.out +++ b/tests/expectations/parser/functions/infinite_recursion.out @@ -13,7 +13,7 @@ outputs: functions: - - "inf" - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"inf\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":42}\"}" input: [] output: @@ -48,14 +48,13 @@ outputs: lo: 51 hi: 73 id: 7 - finalize: ~ span: lo: 30 hi: 73 id: 8 - - main - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"9\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":92,\\\"hi\\\":96}\"}" input: - Internal: @@ -95,7 +94,6 @@ outputs: - Return: expression: Identifier: "{\"id\":\"16\",\"name\":\"y\",\"span\":\"{\\\"lo\\\":146,\\\"hi\\\":147}\"}" - finalize_arguments: ~ span: lo: 139 hi: 148 @@ -104,7 +102,6 @@ outputs: lo: 114 hi: 154 id: 18 - finalize: ~ span: lo: 83 hi: 154 diff --git a/tests/expectations/parser/functions/inline_function.out b/tests/expectations/parser/functions/inline_function.out index c16c6a9598..3812762aba 100644 --- a/tests/expectations/parser/functions/inline_function.out +++ b/tests/expectations/parser/functions/inline_function.out @@ -57,7 +57,6 @@ outputs: lo: 77 hi: 81 - 8 - finalize_arguments: ~ span: lo: 70 hi: 82 @@ -66,7 +65,6 @@ outputs: lo: 60 hi: 88 id: 10 - finalize: ~ span: lo: 26 hi: 88 diff --git a/tests/expectations/parser/functions/params.out b/tests/expectations/parser/functions/params.out index d117328568..19dab5ffca 100644 --- a/tests/expectations/parser/functions/params.out +++ b/tests/expectations/parser/functions/params.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: - Internal: @@ -57,7 +57,6 @@ outputs: lo: 80 hi: 83 - 8 - finalize_arguments: ~ span: lo: 73 hi: 84 @@ -66,7 +65,6 @@ outputs: lo: 63 hi: 90 id: 10 - finalize: ~ span: lo: 30 hi: 90 diff --git a/tests/expectations/parser/functions/params_return.out b/tests/expectations/parser/functions/params_return.out index 4e24afe1d6..4a08e0afc8 100644 --- a/tests/expectations/parser/functions/params_return.out +++ b/tests/expectations/parser/functions/params_return.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: - Internal: @@ -57,7 +57,6 @@ outputs: lo: 81 hi: 84 - 8 - finalize_arguments: ~ span: lo: 74 hi: 85 @@ -66,7 +65,6 @@ outputs: lo: 64 hi: 91 id: 10 - finalize: ~ span: lo: 30 hi: 91 diff --git a/tests/expectations/parser/functions/public_param.out b/tests/expectations/parser/functions/public_param.out index 58a4928a9a..6ae7edda91 100644 --- a/tests/expectations/parser/functions/public_param.out +++ b/tests/expectations/parser/functions/public_param.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: - Internal: @@ -57,7 +57,6 @@ outputs: lo: 87 hi: 90 - 8 - finalize_arguments: ~ span: lo: 80 hi: 91 @@ -66,14 +65,13 @@ outputs: lo: 70 hi: 97 id: 10 - finalize: ~ span: lo: 30 hi: 97 id: 11 - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"12\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":116,\\\"hi\\\":117}\"}" input: - Internal: @@ -117,7 +115,6 @@ outputs: lo: 164 hi: 167 - 18 - finalize_arguments: ~ span: lo: 157 hi: 168 @@ -126,7 +123,6 @@ outputs: lo: 147 hi: 174 id: 20 - finalize: ~ span: lo: 107 hi: 174 diff --git a/tests/expectations/parser/functions/return.out b/tests/expectations/parser/functions/return.out index 2d76171dbb..fa9ab4f5e6 100644 --- a/tests/expectations/parser/functions/return.out +++ b/tests/expectations/parser/functions/return.out @@ -13,7 +13,7 @@ outputs: functions: - - x - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" input: [] output: @@ -39,7 +39,6 @@ outputs: lo: 67 hi: 70 - 4 - finalize_arguments: ~ span: lo: 60 hi: 71 @@ -48,7 +47,6 @@ outputs: lo: 50 hi: 77 id: 6 - finalize: ~ span: lo: 30 hi: 77 diff --git a/tests/expectations/parser/functions/transition_function.out b/tests/expectations/parser/functions/transition_function.out index 006efa8f4f..8650397b58 100644 --- a/tests/expectations/parser/functions/transition_function.out +++ b/tests/expectations/parser/functions/transition_function.out @@ -57,7 +57,6 @@ outputs: lo: 81 hi: 85 - 8 - finalize_arguments: ~ span: lo: 74 hi: 86 @@ -66,7 +65,6 @@ outputs: lo: 64 hi: 92 id: 10 - finalize: ~ span: lo: 26 hi: 92 diff --git a/tests/expectations/parser/program/async_basic.out b/tests/expectations/parser/program/async_basic.out index 0671926aa4..2665c82d80 100644 --- a/tests/expectations/parser/program/async_basic.out +++ b/tests/expectations/parser/program/async_basic.out @@ -23,8 +23,7 @@ outputs: functions: - - main - annotations: [] - is_async: true - variant: Transition + variant: AsyncTransition identifier: "{\"id\":\"4\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":76}\"}" input: [] output: @@ -33,6 +32,8 @@ outputs: type_: Future: inputs: [] + location: ~ + is_explicit: false span: lo: 82 hi: 88 @@ -40,6 +41,8 @@ outputs: output_type: Future: inputs: [] + location: ~ + is_explicit: false block: statements: - Definition: @@ -49,6 +52,8 @@ outputs: type_: Future: inputs: [] + location: ~ + is_explicit: false value: Call: function: @@ -96,8 +101,7 @@ outputs: id: 15 - - finalize_main - annotations: [] - is_async: true - variant: Standard + variant: AsyncFunction identifier: "{\"id\":\"16\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":186,\\\"hi\\\":199}\"}" input: - Internal: @@ -124,6 +128,8 @@ outputs: type_: Future: inputs: [] + location: ~ + is_explicit: false span: lo: 217 hi: 223 @@ -131,6 +137,8 @@ outputs: output_type: Future: inputs: [] + location: ~ + is_explicit: false block: statements: - Expression: diff --git a/tests/expectations/parser/program/external_mapping.out b/tests/expectations/parser/program/external_mapping.out index b0337ddb3b..50b9938ec2 100644 --- a/tests/expectations/parser/program/external_mapping.out +++ b/tests/expectations/parser/program/external_mapping.out @@ -19,8 +19,8 @@ outputs: functions: - - main - annotations: [] - variant: Standard - identifier: "{\"id\":\"3\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":53,\\\"hi\\\":57}\"}" + variant: AsyncTransition + identifier: "{\"id\":\"3\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":61,\\\"hi\\\":65}\"}" input: [] output: [] output_type: Unit @@ -29,7 +29,7 @@ outputs: - Definition: declaration_type: Let place: - Identifier: "{\"id\":\"4\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}" + Identifier: "{\"id\":\"4\",\"name\":\"x\",\"span\":\"{\\\"lo\\\":82,\\\"hi\\\":83}\"}" type_: Integer: U8 value: @@ -38,203 +38,204 @@ outputs: - U8 - "1" - span: - lo: 81 - hi: 84 + lo: 89 + hi: 92 - 5 span: - lo: 70 - hi: 84 + lo: 78 + hi: 92 id: 6 - Return: expression: Unit: span: - lo: 101 - hi: 105 + lo: 108 + hi: 109 id: 7 - finalize_arguments: [] span: - lo: 94 - hi: 117 + lo: 102 + hi: 109 id: 8 span: - lo: 60 - hi: 123 + lo: 68 + hi: 115 id: 9 - finalize: - identifier: "{\"id\":\"10\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":137,\\\"hi\\\":141}\"}" - input: [] - output: [] - output_type: Unit - block: - statements: - - Expression: - expression: - Access: - AssociatedFunction: - variant: "{\"id\":\"11\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":154,\\\"hi\\\":161}\"}" - name: "{\"id\":\"12\",\"name\":\"set\",\"span\":\"{\\\"lo\\\":163,\\\"hi\\\":166}\"}" - arguments: - - Locator: - program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"15\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":173,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":177}\\\\\\\"}\\\"\"}" - name: counter - span: - lo: 167 - hi: 185 - id: 16 - - Identifier: "{\"id\":\"17\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":187,\\\"hi\\\":191}\"}" - - Binary: - left: - Identifier: "{\"id\":\"18\",\"name\":\"current_value\",\"span\":\"{\\\"lo\\\":193,\\\"hi\\\":206}\"}" - right: - Literal: - Integer: - - U64 - - "1" - - span: - lo: 209 - hi: 213 - - 19 - op: Add - span: - lo: 193 - hi: 213 - id: 20 - span: - lo: 154 - hi: 214 - id: 21 - span: - lo: 154 - hi: 215 - id: 22 - - Expression: - expression: - Access: - AssociatedFunction: - variant: "{\"id\":\"23\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":224,\\\"hi\\\":231}\"}" - name: "{\"id\":\"24\",\"name\":\"remove\",\"span\":\"{\\\"lo\\\":233,\\\"hi\\\":239}\"}" - arguments: - - Locator: - program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"27\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":246,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":250}\\\\\\\"}\\\"\"}" - name: foo - span: - lo: 240 - hi: 254 - id: 28 - - Identifier: "{\"id\":\"29\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":256,\\\"hi\\\":260}\"}" - span: - lo: 224 - hi: 261 - id: 30 - span: - lo: 224 - hi: 262 - id: 31 - - Definition: - declaration_type: Let - place: - Identifier: "{\"id\":\"32\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":275,\\\"hi\\\":276}\"}" - type_: - Integer: U32 - value: - Access: - AssociatedFunction: - variant: "{\"id\":\"33\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":283,\\\"hi\\\":290}\"}" - name: "{\"id\":\"34\",\"name\":\"get\",\"span\":\"{\\\"lo\\\":292,\\\"hi\\\":295}\"}" - arguments: - - Locator: - program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"37\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":302,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":306}\\\\\\\"}\\\"\"}" - name: foo - span: - lo: 296 - hi: 310 - id: 38 - - Identifier: "{\"id\":\"39\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":312,\\\"hi\\\":316}\"}" - span: - lo: 283 - hi: 317 - id: 40 - span: - lo: 271 - hi: 317 - id: 41 - - Definition: - declaration_type: Let - place: - Identifier: "{\"id\":\"42\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":331,\\\"hi\\\":332}\"}" - type_: - Integer: U32 - value: - Access: - AssociatedFunction: - variant: "{\"id\":\"43\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":339,\\\"hi\\\":346}\"}" - name: "{\"id\":\"44\",\"name\":\"get_or_use\",\"span\":\"{\\\"lo\\\":348,\\\"hi\\\":358}\"}" - arguments: - - Locator: - program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"47\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":365,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":369}\\\\\\\"}\\\"\"}" - name: foo - span: - lo: 359 - hi: 373 - id: 48 - - Identifier: "{\"id\":\"49\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":375,\\\"hi\\\":379}\"}" - - Literal: - Integer: - - U64 - - "0" - - span: - lo: 381 - hi: 385 - - 50 - span: - lo: 339 - hi: 386 - id: 51 - span: - lo: 327 - hi: 386 - id: 52 - - Definition: - declaration_type: Let - place: - Identifier: "{\"id\":\"53\",\"name\":\"c\",\"span\":\"{\\\"lo\\\":400,\\\"hi\\\":401}\"}" - type_: - Integer: U32 - value: - Access: - AssociatedFunction: - variant: "{\"id\":\"54\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":408,\\\"hi\\\":415}\"}" - name: "{\"id\":\"55\",\"name\":\"contains\",\"span\":\"{\\\"lo\\\":417,\\\"hi\\\":425}\"}" - arguments: - - Locator: - program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"58\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":432,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":436}\\\\\\\"}\\\"\"}" - name: foo - span: - lo: 426 - hi: 440 - id: 59 - - Identifier: "{\"id\":\"60\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":442,\\\"hi\\\":446}\"}" - span: - lo: 408 - hi: 447 - id: 61 - span: - lo: 396 - hi: 447 - id: 62 - span: - lo: 144 - hi: 454 - id: 63 + span: + lo: 44 + hi: 115 + id: 10 + - - finalize_main + - annotations: [] + variant: AsyncFunction + identifier: "{\"id\":\"11\",\"name\":\"finalize_main\",\"span\":\"{\\\"lo\\\":135,\\\"hi\\\":148}\"}" + input: [] + output: [] + output_type: Unit + block: + statements: + - Expression: + expression: + Access: + AssociatedFunction: + variant: "{\"id\":\"12\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":161,\\\"hi\\\":168}\"}" + name: "{\"id\":\"13\",\"name\":\"set\",\"span\":\"{\\\"lo\\\":170,\\\"hi\\\":173}\"}" + arguments: + - Locator: + program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"16\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":180,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":184}\\\\\\\"}\\\"\"}" + name: counter + span: + lo: 174 + hi: 192 + id: 17 + - Identifier: "{\"id\":\"18\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":194,\\\"hi\\\":198}\"}" + - Binary: + left: + Identifier: "{\"id\":\"19\",\"name\":\"current_value\",\"span\":\"{\\\"lo\\\":200,\\\"hi\\\":213}\"}" + right: + Literal: + Integer: + - U64 + - "1" + - span: + lo: 216 + hi: 220 + - 20 + op: Add + span: + lo: 200 + hi: 220 + id: 21 + span: + lo: 161 + hi: 221 + id: 22 + span: + lo: 161 + hi: 222 + id: 23 + - Expression: + expression: + Access: + AssociatedFunction: + variant: "{\"id\":\"24\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":231,\\\"hi\\\":238}\"}" + name: "{\"id\":\"25\",\"name\":\"remove\",\"span\":\"{\\\"lo\\\":240,\\\"hi\\\":246}\"}" + arguments: + - Locator: + program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"28\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":253,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":257}\\\\\\\"}\\\"\"}" + name: foo + span: + lo: 247 + hi: 261 + id: 29 + - Identifier: "{\"id\":\"30\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":263,\\\"hi\\\":267}\"}" + span: + lo: 231 + hi: 268 + id: 31 + span: + lo: 231 + hi: 269 + id: 32 + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"33\",\"name\":\"a\",\"span\":\"{\\\"lo\\\":282,\\\"hi\\\":283}\"}" + type_: + Integer: U32 + value: + Access: + AssociatedFunction: + variant: "{\"id\":\"34\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":290,\\\"hi\\\":297}\"}" + name: "{\"id\":\"35\",\"name\":\"get\",\"span\":\"{\\\"lo\\\":299,\\\"hi\\\":302}\"}" + arguments: + - Locator: + program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"38\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":309,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":313}\\\\\\\"}\\\"\"}" + name: foo + span: + lo: 303 + hi: 317 + id: 39 + - Identifier: "{\"id\":\"40\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":319,\\\"hi\\\":323}\"}" + span: + lo: 290 + hi: 324 + id: 41 + span: + lo: 278 + hi: 324 + id: 42 + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"43\",\"name\":\"b\",\"span\":\"{\\\"lo\\\":338,\\\"hi\\\":339}\"}" + type_: + Integer: U32 + value: + Access: + AssociatedFunction: + variant: "{\"id\":\"44\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":346,\\\"hi\\\":353}\"}" + name: "{\"id\":\"45\",\"name\":\"get_or_use\",\"span\":\"{\\\"lo\\\":355,\\\"hi\\\":365}\"}" + arguments: + - Locator: + program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"48\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":372,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":376}\\\\\\\"}\\\"\"}" + name: foo + span: + lo: 366 + hi: 380 + id: 49 + - Identifier: "{\"id\":\"50\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":382,\\\"hi\\\":386}\"}" + - Literal: + Integer: + - U64 + - "0" + - span: + lo: 388 + hi: 392 + - 51 + span: + lo: 346 + hi: 393 + id: 52 + span: + lo: 334 + hi: 393 + id: 53 + - Definition: + declaration_type: Let + place: + Identifier: "{\"id\":\"54\",\"name\":\"c\",\"span\":\"{\\\"lo\\\":407,\\\"hi\\\":408}\"}" + type_: + Integer: U32 + value: + Access: + AssociatedFunction: + variant: "{\"id\":\"55\",\"name\":\"Mapping\",\"span\":\"{\\\"lo\\\":415,\\\"hi\\\":422}\"}" + name: "{\"id\":\"56\",\"name\":\"contains\",\"span\":\"{\\\"lo\\\":424,\\\"hi\\\":432}\"}" + arguments: + - Locator: + program: "{\"name\":\"hello\",\"network\":\"\\\"{\\\\\\\"id\\\\\\\":\\\\\\\"59\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":439,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":443}\\\\\\\"}\\\"\"}" + name: foo + span: + lo: 433 + hi: 447 + id: 60 + - Identifier: "{\"id\":\"61\",\"name\":\"addr\",\"span\":\"{\\\"lo\\\":449,\\\"hi\\\":453}\"}" + span: + lo: 415 + hi: 454 + id: 62 + span: + lo: 403 + hi: 454 + id: 63 span: - lo: 128 - hi: 454 + lo: 151 + hi: 461 id: 64 span: - lo: 44 - hi: 123 + lo: 120 + hi: 461 id: 65 span: lo: 20 - hi: 456 + hi: 463 diff --git a/tests/expectations/parser/program/import.out b/tests/expectations/parser/program/import.out index 3eac4384ca..b7d7d51964 100644 --- a/tests/expectations/parser/program/import.out +++ b/tests/expectations/parser/program/import.out @@ -19,7 +19,7 @@ outputs: functions: - - main - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"3\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":53,\\\"hi\\\":57}\"}" input: [] output: [] @@ -49,7 +49,6 @@ outputs: lo: 60 hi: 91 id: 7 - finalize: ~ span: lo: 44 hi: 91 diff --git a/tests/expectations/parser/program/locator_expression_fail.out b/tests/expectations/parser/program/locator_expression_fail.out index 8776167f1f..f1895e4399 100644 --- a/tests/expectations/parser/program/locator_expression_fail.out +++ b/tests/expectations/parser/program/locator_expression_fail.out @@ -2,4 +2,4 @@ namespace: Parse expectation: Fail outputs: - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'mapping'\n --> test:7:16\n |\n 7 | let a: mapping = relay.aleo/users;\n | ^^^^^^^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'Future', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'mapping'\n --> test:7:16\n |\n 7 | let a: mapping = relay.aleo/users;\n | ^^^^^^^" diff --git a/tests/expectations/parser/serialize/one_plus_one.out b/tests/expectations/parser/serialize/one_plus_one.out index 135618be28..ec25522f0e 100644 --- a/tests/expectations/parser/serialize/one_plus_one.out +++ b/tests/expectations/parser/serialize/one_plus_one.out @@ -13,7 +13,7 @@ outputs: functions: - - main - annotations: [] - variant: Standard + variant: Function identifier: "{\"id\":\"2\",\"name\":\"main\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":39}\"}" input: [] output: @@ -43,8 +43,6 @@ outputs: - 5 op: Add id: 6 - finalize_arguments: ~ id: 7 id: 8 - finalize: ~ id: 9 diff --git a/tests/expectations/parser/statement/async_fail.out b/tests/expectations/parser/statement/async_fail.out index b5da6770bc..6590d5589e 100644 --- a/tests/expectations/parser/statement/async_fail.out +++ b/tests/expectations/parser/statement/async_fail.out @@ -2,4 +2,4 @@ namespace: ParseStatement expectation: Fail outputs: - - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> test:1:7\n |\n 1 | async finalize(foo);\n | ^^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'async'\n --> test:1:1\n |\n 1 | async finalize(foo);\n | ^^^^^" diff --git a/tests/expectations/parser/statement/block.out b/tests/expectations/parser/statement/block.out index 07684edeff..214d41ce1e 100644 --- a/tests/expectations/parser/statement/block.out +++ b/tests/expectations/parser/statement/block.out @@ -20,7 +20,6 @@ outputs: lo: 9 hi: 12 - 0 - finalize_arguments: ~ span: lo: 2 hi: 13 @@ -55,7 +54,6 @@ outputs: lo: 11 hi: 14 - 0 - finalize_arguments: ~ span: lo: 4 hi: 15 @@ -85,7 +83,6 @@ outputs: lo: 16 hi: 19 - 1 - finalize_arguments: ~ span: lo: 9 hi: 20 diff --git a/tests/expectations/parser/statement/conditional.out b/tests/expectations/parser/statement/conditional.out index 11f5c90d8c..3a6ac60eca 100644 --- a/tests/expectations/parser/statement/conditional.out +++ b/tests/expectations/parser/statement/conditional.out @@ -17,7 +17,6 @@ outputs: lo: 14 hi: 17 - 1 - finalize_arguments: ~ span: lo: 7 hi: 18 @@ -46,7 +45,6 @@ outputs: lo: 16 hi: 19 - 1 - finalize_arguments: ~ span: lo: 9 hi: 20 @@ -156,7 +154,6 @@ outputs: lo: 16 hi: 19 - 3 - finalize_arguments: ~ span: lo: 9 hi: 20 diff --git a/tests/expectations/parser/statement/definition_fail.out b/tests/expectations/parser/statement/definition_fail.out index 74a619ca23..67cb6b5ab6 100644 --- a/tests/expectations/parser/statement/definition_fail.out +++ b/tests/expectations/parser/statement/definition_fail.out @@ -26,18 +26,18 @@ outputs: - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:6\n |\n 1 | let (,x,y) = ();\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:8\n |\n 1 | let (x,,y) = ();\n | ^" - "Error [EPAR0370005]: expected integer literal -- found '('\n --> test:1:13\n |\n 1 | let x: [u8; (2,,)] = [[0,0], [0,0]];\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'constant'\n --> test:1:8\n |\n 1 | let x: constant = expr;\n | ^^^^^^^^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'Future', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'constant'\n --> test:1:8\n |\n 1 | let x: constant = expr;\n | ^^^^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'constant'\n --> test:1:1\n |\n 1 | constant x: let = expr;\n | ^^^^^^^^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | let\n | ^^^" - "Error [EPAR0370005]: expected : -- found ''\n --> test:1:5\n |\n 1 | let x\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found ''\n --> test:1:6\n |\n 1 | let x:\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'Future', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found ''\n --> test:1:6\n |\n 1 | let x:\n | ^" - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = (a, y]);\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:5\n |\n 1 | let = 1u8;\n | ^" - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:4\n |\n 1 | let;\n | ^" - "Error [EPAR0370005]: expected : -- found '1'\n --> test:1:7\n |\n 1 | let x 1u8;\n | ^" - "Error [EPAR0370005]: expected = -- found ';'\n --> test:1:10\n |\n 1 | let x: u8;\n | ^" - "Error [EPAR0370005]: expected = -- found ''\n --> test:1:8\n |\n 1 | let x: u8\n | ^^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '='\n --> test:1:8\n |\n 1 | let x: = 1;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'Future', 'group', 'scalar', 'signature', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '='\n --> test:1:8\n |\n 1 | let x: = 1;\n | ^" - "Error [EPAR0370005]: expected ; -- found ']'\n --> test:1:11\n |\n 1 | let x: [u8] = 1;\n | ^" - "Error [EPAR0370005]: expected integer literal -- found ''\n --> test:1:11\n |\n 1 | let x: [u8;\n | ^" - "Error [EPAR0370005]: expected ] -- found 'u8'\n --> test:1:14\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^^" diff --git a/tests/expectations/parser/statement/finalize_fail.out b/tests/expectations/parser/statement/finalize_fail.out index ee6a180f32..d2765290c3 100644 --- a/tests/expectations/parser/statement/finalize_fail.out +++ b/tests/expectations/parser/statement/finalize_fail.out @@ -1,5 +1,20 @@ --- namespace: ParseStatement -expectation: Fail +expectation: Pass outputs: - - "Error [EPAR0370031]: `finalize` statements are deprecated.\n --> test:1:1\n |\n 1 | finalize(foo);\n | ^^^^^^^^\n |\n = Use `return then finalize()` instead." + - Expression: + expression: + Call: + function: + Identifier: "{\"id\":\"0\",\"name\":\"finalize\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":8}\"}" + arguments: + - Identifier: "{\"id\":\"1\",\"name\":\"foo\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":12}\"}" + program: ~ + span: + lo: 0 + hi: 13 + id: 2 + span: + lo: 0 + hi: 14 + id: 3 diff --git a/tests/expectations/parser/statement/iteration.out b/tests/expectations/parser/statement/iteration.out index cc0f5850f9..57a36404f1 100644 --- a/tests/expectations/parser/statement/iteration.out +++ b/tests/expectations/parser/statement/iteration.out @@ -70,7 +70,6 @@ outputs: lo: 34 hi: 37 - 3 - finalize_arguments: ~ span: lo: 27 hi: 38 @@ -116,7 +115,6 @@ outputs: lo: 38 hi: 41 - 3 - finalize_arguments: ~ span: lo: 31 hi: 42 @@ -156,7 +154,6 @@ outputs: lo: 34 hi: 37 - 3 - finalize_arguments: ~ span: lo: 27 hi: 38 diff --git a/tests/expectations/parser/statement/return.out b/tests/expectations/parser/statement/return.out index 2668dd24d5..2e3ea973e5 100644 --- a/tests/expectations/parser/statement/return.out +++ b/tests/expectations/parser/statement/return.out @@ -5,7 +5,6 @@ outputs: - Return: expression: Identifier: "{\"id\":\"0\",\"name\":\"expr\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":11}\"}" - finalize_arguments: ~ span: lo: 0 hi: 12 @@ -20,7 +19,6 @@ outputs: lo: 7 hi: 10 - 0 - finalize_arguments: ~ span: lo: 0 hi: 11 diff --git a/tests/expectations/parser/type_/signature.out b/tests/expectations/parser/type_/signature.out index 154b57412b..26a3d2e273 100644 --- a/tests/expectations/parser/type_/signature.out +++ b/tests/expectations/parser/type_/signature.out @@ -104,7 +104,6 @@ outputs: lo: 77 hi: 197 id: 29 - finalize: ~ span: lo: 26 hi: 197 @@ -167,7 +166,6 @@ outputs: - Return: expression: Identifier: "{\"id\":\"40\",\"name\":\"signature\",\"span\":\"{\\\"lo\\\":285,\\\"hi\\\":294}\"}" - finalize_arguments: ~ span: lo: 278 hi: 295 @@ -176,7 +174,6 @@ outputs: lo: 231 hi: 301 id: 42 - finalize: ~ span: lo: 203 hi: 301 @@ -252,7 +249,6 @@ outputs: lo: 357 hi: 434 id: 63 - finalize: ~ span: lo: 306 hi: 434 diff --git a/tests/tests/parser/program/external_mapping.leo b/tests/tests/parser/program/external_mapping.leo index fa9b2082ae..f92f38a00f 100644 --- a/tests/tests/parser/program/external_mapping.leo +++ b/tests/tests/parser/program/external_mapping.leo @@ -6,7 +6,7 @@ import hello.aleo; program test.aleo { async transition main() { let x:u8 = 1u8; - return then finalize(); + return; } async function finalize_main() { Mapping::set(hello.aleo/counter, addr, current_value + 1u64); @@ -15,4 +15,4 @@ program test.aleo { let b:u32 = Mapping::get_or_use(hello.aleo/foo, addr, 0u64); let c:u32 = Mapping::contains(hello.aleo/foo, addr); } -} \ No newline at end of file +} diff --git a/tests/tests/parser/statement/finalize_fail.leo b/tests/tests/parser/statement/finalize_fail.leo index d04903178a..cd7f50a852 100644 --- a/tests/tests/parser/statement/finalize_fail.leo +++ b/tests/tests/parser/statement/finalize_fail.leo @@ -1,6 +1,6 @@ /* namespace: ParseStatement -expectation: Fail +expectation: Pass */ finalize(foo); From 32aedaba457a80aa4c8d8b2d38d196649e88c416 Mon Sep 17 00:00:00 2001 From: evan-schott <53463459+evan-schott@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:55:10 -0700 Subject: [PATCH 80/80] Remove RUST_BACKTRACE from CI --- .github/workflows/acl2.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/codecov.yml | 2 +- .github/workflows/release.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/acl2.yml b/.github/workflows/acl2.yml index 8c990fb84d..e701800ad8 100644 --- a/.github/workflows/acl2.yml +++ b/.github/workflows/acl2.yml @@ -1,7 +1,7 @@ name: Leo-ACL2 on: workflow_dispatch env: - RUST_BACKTRACE: 1 + RUST_BACKTRACE: 0 # This job can only be run on linux (Ubuntu) jobs: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e7bbe013f..81e8a883e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: - 'docs/**' - 'documentation/**' env: - RUST_BACKTRACE: 1 + RUST_BACKTRACE: 0 jobs: test-package: diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index b510b98ffd..b8cef037c9 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -7,7 +7,7 @@ on: - 'docs/**' - 'documentation/**' env: - RUST_BACKTRACE: 1 + RUST_BACKTRACE: 0 jobs: codecov: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ab036327b..cf241b1f0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: env: - RUST_BACKTRACE: 1 + RUST_BACKTRACE: 0 jobs: ubuntu: