mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-22 05:00:59 +03:00
commit
7174084836
34
Cargo.lock
generated
34
Cargo.lock
generated
@ -1529,10 +1529,10 @@ dependencies = [
|
||||
"leo-test-framework",
|
||||
"regex",
|
||||
"serde",
|
||||
"serde_yaml",
|
||||
"sha2",
|
||||
"snarkvm",
|
||||
"tempfile",
|
||||
"toml 0.8.19",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -1625,8 +1625,8 @@ dependencies = [
|
||||
"leo-test-framework",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
"snarkvm",
|
||||
"toml 0.8.19",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
@ -1690,8 +1690,8 @@ dependencies = [
|
||||
"regex",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"serde_yaml",
|
||||
"snarkvm",
|
||||
"toml 0.8.19",
|
||||
"walkdir",
|
||||
]
|
||||
|
||||
@ -1723,12 +1723,6 @@ dependencies = [
|
||||
"vcpkg",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "linked-hash-map"
|
||||
version = "0.5.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
|
||||
|
||||
[[package]]
|
||||
name = "linux-raw-sys"
|
||||
version = "0.4.14"
|
||||
@ -2676,18 +2670,6 @@ dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_yaml"
|
||||
version = "0.8.26"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "578a7433b776b56a35785ed5ce9a7e777ac0598aac5a6dd1b4b18a307c7fc71b"
|
||||
dependencies = [
|
||||
"indexmap 1.9.3",
|
||||
"ryu",
|
||||
"serde",
|
||||
"yaml-rust",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serial_test"
|
||||
version = "3.1.1"
|
||||
@ -4043,6 +4025,7 @@ version = "0.8.19"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e"
|
||||
dependencies = [
|
||||
"indexmap 2.6.0",
|
||||
"serde",
|
||||
"serde_spanned",
|
||||
"toml_datetime",
|
||||
@ -4603,15 +4586,6 @@ dependencies = [
|
||||
"windows-sys 0.48.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "yaml-rust"
|
||||
version = "0.4.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "56c1936c4cc7a1c9ab21a1ebb602eb942ba868cbd44a99cb7cdc5892335e1c85"
|
||||
dependencies = [
|
||||
"linked-hash-map",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zerocopy"
|
||||
version = "0.7.34"
|
||||
|
@ -108,6 +108,10 @@ features = [ "derive", "rc" ]
|
||||
version = "1.0"
|
||||
features = [ "preserve_order" ]
|
||||
|
||||
[workspace.dependencies.toml]
|
||||
version = "0.8"
|
||||
features = [ "preserve_order" ]
|
||||
|
||||
[workspace.dependencies.tracing]
|
||||
version = "0.1"
|
||||
|
||||
@ -202,7 +206,7 @@ features = [ "circuit", "console" ]
|
||||
version = "0.9.1"
|
||||
|
||||
[dependencies.toml]
|
||||
version = "0.8"
|
||||
workspace = true
|
||||
|
||||
[dependencies.tracing]
|
||||
version = "0.1"
|
||||
|
@ -67,8 +67,8 @@ workspace = true
|
||||
[dev-dependencies.serde]
|
||||
workspace = true
|
||||
|
||||
[dev-dependencies.serde_yaml]
|
||||
version = "0.8.25"
|
||||
[dev-dependencies.toml]
|
||||
workspace = true
|
||||
|
||||
[dev-dependencies.tempfile]
|
||||
version = "3.13"
|
||||
|
@ -23,7 +23,6 @@ use utilities::{
|
||||
get_build_options,
|
||||
get_cwd_option,
|
||||
hash_asts,
|
||||
hash_content,
|
||||
hash_symbol_tables,
|
||||
parse_program,
|
||||
};
|
||||
@ -43,9 +42,9 @@ use snarkvm::console::prelude::*;
|
||||
use indexmap::IndexMap;
|
||||
use leo_span::Symbol;
|
||||
use regex::Regex;
|
||||
use serde_yaml::Value;
|
||||
use snarkvm::{prelude::Process, synthesizer::program::ProgramCore};
|
||||
use std::{fs, path::Path, rc::Rc};
|
||||
use toml::Value;
|
||||
|
||||
struct CompileNamespace;
|
||||
|
||||
@ -169,7 +168,7 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
|
||||
destructured_ast,
|
||||
inlined_ast,
|
||||
dce_ast,
|
||||
bytecode: hash_content(&bytecode),
|
||||
bytecode,
|
||||
errors: buf.0.take().to_string(),
|
||||
warnings: buf.1.take().to_string(),
|
||||
};
|
||||
@ -180,7 +179,7 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
|
||||
let compile_outputs = CompileOutputs { compile };
|
||||
all_outputs.push(compile_outputs);
|
||||
}
|
||||
Ok(serde_yaml::to_value(all_outputs).expect("serialization failed"))
|
||||
Ok(Value::try_from(all_outputs).expect("serialization failed"))
|
||||
}
|
||||
|
||||
struct TestRunner;
|
||||
|
@ -25,7 +25,6 @@ use utilities::{
|
||||
get_build_options,
|
||||
get_cwd_option,
|
||||
hash_asts,
|
||||
hash_content,
|
||||
hash_symbol_tables,
|
||||
parse_program,
|
||||
};
|
||||
@ -49,12 +48,12 @@ use leo_errors::LeoError;
|
||||
use leo_span::Symbol;
|
||||
use regex::Regex;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_yaml::Value;
|
||||
use snarkvm::{
|
||||
prelude::store::{ConsensusStore, helpers::memory::ConsensusMemory},
|
||||
synthesizer::program::ProgramCore,
|
||||
};
|
||||
use std::{fs, panic::AssertUnwindSafe, path::Path, rc::Rc};
|
||||
use toml::Value;
|
||||
|
||||
// TODO: Evaluate namespace.
|
||||
struct ExecuteNamespace;
|
||||
@ -89,8 +88,8 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
|
||||
let cwd = get_cwd_option(&test);
|
||||
|
||||
// Initialize an rng.
|
||||
let rng = &mut match test.config.extra.get("seed").map(|seed| seed.as_u64()) {
|
||||
Some(Some(seed)) => TestRng::from_seed(seed),
|
||||
let rng = &mut match test.config.extra.get("seed").map(|seed| seed.as_integer()) {
|
||||
Some(Some(seed)) => TestRng::from_seed(seed as u64),
|
||||
_ => TestRng::from_seed(1234567890),
|
||||
};
|
||||
|
||||
@ -213,7 +212,7 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
|
||||
destructured_ast,
|
||||
inlined_ast,
|
||||
dce_ast,
|
||||
bytecode: hash_content(&bytecode),
|
||||
bytecode,
|
||||
errors: buf.0.take().to_string(),
|
||||
warnings: buf.1.take().to_string(),
|
||||
};
|
||||
@ -222,31 +221,26 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
|
||||
}
|
||||
|
||||
// Extract the cases from the test config.
|
||||
let all_cases = test
|
||||
.config
|
||||
.extra
|
||||
.get("cases")
|
||||
.expect("An `Execute` config must have a `cases` field.")
|
||||
.as_sequence()
|
||||
.unwrap();
|
||||
let all_cases =
|
||||
test.config.extra.get("cases").expect("An `Execute` config must have a `cases` field.").as_array().unwrap();
|
||||
|
||||
// Initialize storage for the execution outputs.
|
||||
let mut execute = Vec::with_capacity(all_cases.len());
|
||||
|
||||
// Run each test case for each function.
|
||||
for case in all_cases {
|
||||
let case = case.as_mapping().unwrap();
|
||||
let program_name = case.get(&Value::from("program")).expect("expected program name").as_str().unwrap();
|
||||
let function_name = case.get(&Value::from("function")).expect("expected function name").as_str().unwrap();
|
||||
let case = case.as_table().unwrap();
|
||||
let program_name = case.get("program").expect("expected program name").as_str().unwrap();
|
||||
let function_name = case.get("function").expect("expected function name").as_str().unwrap();
|
||||
let inputs: Vec<_> = case
|
||||
.get(&Value::from("input"))
|
||||
.get("input")
|
||||
.unwrap()
|
||||
.as_sequence()
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.map(|input| console::program::Value::<CurrentNetwork>::from_str(input.as_str().unwrap()).unwrap())
|
||||
.collect();
|
||||
let private_key = match case.get(&Value::from("private_key")) {
|
||||
let private_key = match case.get("private_key") {
|
||||
Some(private_key) => {
|
||||
PrivateKey::from_str(private_key.as_str().expect("expected string for private key"))
|
||||
.expect("unable to parse private key")
|
||||
@ -325,7 +319,7 @@ fn run_test(test: Test, handler: &Handler, buf: &BufferEmitter) -> Result<Value,
|
||||
let combined_output = CompileAndExecuteOutputs { compile, execute };
|
||||
outputs.push(combined_output);
|
||||
}
|
||||
Ok(serde_yaml::to_value(outputs).expect("serialization failed"))
|
||||
Ok(Value::try_from(outputs).expect("serialization failed"))
|
||||
}
|
||||
|
||||
struct TestRunner;
|
||||
|
@ -86,11 +86,11 @@ pub fn get_build_options(test_config: &TestConfig) -> Vec<BuildOptions> {
|
||||
Some(configs) => {
|
||||
// Parse the sequence of compiler configurations.
|
||||
configs
|
||||
.as_sequence()
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.map(|config| {
|
||||
let config = config.as_mapping().expect("Expected the compiler configuration to be a mapping.");
|
||||
let config = config.as_table().expect("Expected the compiler configuration to be a mapping.");
|
||||
assert_eq!(
|
||||
config.len(),
|
||||
1,
|
||||
@ -98,7 +98,7 @@ pub fn get_build_options(test_config: &TestConfig) -> Vec<BuildOptions> {
|
||||
);
|
||||
BuildOptions {
|
||||
dce_enabled: config
|
||||
.get(&serde_yaml::Value::String("dce_enabled".to_string()))
|
||||
.get("dce_enabled")
|
||||
.expect("Expected key `dce_enabled`")
|
||||
.as_bool()
|
||||
.expect("Expected value to be a boolean."),
|
||||
|
@ -49,8 +49,8 @@ path = "../../tests/test-framework"
|
||||
[dev-dependencies.serde_json]
|
||||
workspace = true
|
||||
|
||||
[dev-dependencies.serde_yaml]
|
||||
version = "0.8"
|
||||
[dev-dependencies.toml]
|
||||
workspace = true
|
||||
|
||||
[features]
|
||||
default = [ ]
|
||||
|
@ -28,8 +28,8 @@ use leo_test_framework::{
|
||||
runner::{Namespace, ParseType, Runner},
|
||||
};
|
||||
use serde::Serialize;
|
||||
use serde_yaml::Value;
|
||||
use tokenizer::Token;
|
||||
use toml::Value;
|
||||
|
||||
type CurrentNetwork = snarkvm::prelude::MainnetV0;
|
||||
|
||||
@ -87,8 +87,8 @@ fn all_are_comments(tokens: &[SpannedToken]) -> bool {
|
||||
tokens.iter().all(|x| matches!(x.token, Token::CommentLine(_) | Token::CommentBlock(_)))
|
||||
}
|
||||
|
||||
fn yaml_or_fail<T: Serialize>(value: T) -> Value {
|
||||
serde_yaml::to_value(value).expect("serialization failed")
|
||||
fn toml_or_fail<T: Serialize>(value: T) -> Value {
|
||||
Value::try_from(value).expect("serialization failed")
|
||||
}
|
||||
|
||||
struct ParseExpressionNamespace;
|
||||
@ -102,9 +102,9 @@ impl Namespace for ParseExpressionNamespace {
|
||||
create_session_if_not_set_then(|s| {
|
||||
let tokenizer = tokenize(test, s)?;
|
||||
if all_are_comments(&tokenizer) {
|
||||
return Ok(yaml_or_fail(""));
|
||||
return Ok(toml_or_fail(""));
|
||||
}
|
||||
with_handler(tokenizer, |p| p.parse_expression()).map(yaml_or_fail)
|
||||
with_handler(tokenizer, |p| p.parse_expression()).map(toml_or_fail)
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -120,9 +120,9 @@ impl Namespace for ParseStatementNamespace {
|
||||
create_session_if_not_set_then(|s| {
|
||||
let tokenizer = tokenize(test, s)?;
|
||||
if all_are_comments(&tokenizer) {
|
||||
return Ok(yaml_or_fail(Statement::dummy(Span::default(), NodeID::default())));
|
||||
return Ok(toml_or_fail(Statement::dummy(Span::default(), NodeID::default())));
|
||||
}
|
||||
with_handler(tokenizer, |p| p.parse_statement()).map(yaml_or_fail)
|
||||
with_handler(tokenizer, |p| p.parse_statement()).map(toml_or_fail)
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -135,7 +135,7 @@ impl Namespace for ParseNamespace {
|
||||
}
|
||||
|
||||
fn run_test(&self, test: Test) -> Result<Value, String> {
|
||||
create_session_if_not_set_then(|s| with_handler(tokenize(test, s)?, |p| p.parse_program()).map(yaml_or_fail))
|
||||
create_session_if_not_set_then(|s| with_handler(tokenize(test, s)?, |p| p.parse_program()).map(toml_or_fail))
|
||||
}
|
||||
}
|
||||
|
||||
@ -199,7 +199,7 @@ impl Namespace for SerializeNamespace {
|
||||
remove_key_from_json(&mut json, "span");
|
||||
json = normalize_json_value(json);
|
||||
|
||||
Ok(serde_json::from_value::<serde_yaml::Value>(json).expect("failed serialization"))
|
||||
Ok(serde_json::from_value::<toml::Value>(json).expect("failed serialization"))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -15,8 +15,8 @@ incorrect) Leo code. What makes Leo file a test is a block comment at the top of
|
||||
|
||||
```
|
||||
/*
|
||||
namespace: Parse
|
||||
expectation: Pass
|
||||
namespace = "Parse"
|
||||
expectation = "Pass"
|
||||
*/
|
||||
|
||||
struct X {
|
||||
@ -25,7 +25,7 @@ struct X {
|
||||
}
|
||||
```
|
||||
|
||||
This comment contains YAML structure with set of mandatory and optional fields.
|
||||
This comment is a TOML document with some mandatory and optional fields.
|
||||
|
||||
## Test Expectations
|
||||
|
||||
@ -43,17 +43,7 @@ generated instead. A PR should contain changes to expectations as well as to tes
|
||||
|
||||
## Test Configuration
|
||||
|
||||
Here is the list of all possible configuration options for compiler and parser tests.
|
||||
|
||||
### namespace
|
||||
|
||||
```yaml
|
||||
- Mandatory: yes
|
||||
- Namespace: all
|
||||
- Values: ...
|
||||
```
|
||||
|
||||
Several values are supported, but they vary depending on the directory you are in.
|
||||
There are several different values for the `namespace` test option.
|
||||
|
||||
Parser Directory namespaces:
|
||||
|
||||
|
@ -1,18 +1,12 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 756e2b87734bb537caa46fae8a2b650aab26e96062df959e32e4828535c6affd
|
||||
type_checked_symbol_table: d53bb8960397c6ee70314bcd5a30dbb59d655bda52b4937c16a94af0417fe793
|
||||
unrolled_symbol_table: d53bb8960397c6ee70314bcd5a30dbb59d655bda52b4937c16a94af0417fe793
|
||||
initial_ast: 3e0dce3c7ac38e237c811a557ddf5422d92024cd3a2f9a050f5089fb49e1c0d2
|
||||
unrolled_ast: 3e0dce3c7ac38e237c811a557ddf5422d92024cd3a2f9a050f5089fb49e1c0d2
|
||||
ssa_ast: e4e399f95f533afdcd018463d8a27bc573fcc02dfd11b0e32990e690b98584da
|
||||
flattened_ast: 2b95ef75e175131a082bc796f2b57942c2fb395373c91ef5fbbf1ed70d80a2c3
|
||||
destructured_ast: 6b932fa3264ea209145cb10679089bb14e6f5e667c8cff3b9adef16424e70646
|
||||
inlined_ast: 6b932fa3264ea209145cb10679089bb14e6f5e667c8cff3b9adef16424e70646
|
||||
dce_ast: 23001f440ab4c99e89ac05facdfe45b10206fcc86a80bb11f8108c9b3785151b
|
||||
bytecode: e434c09cee27a5dfb5a4e9e9fd26aa2ba6e7f0653fad3a4f2a7d85983ba559c9
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "756e2b87734bb537caa46fae8a2b650aab26e96062df959e32e4828535c6affd", type_checked_symbol_table = "d53bb8960397c6ee70314bcd5a30dbb59d655bda52b4937c16a94af0417fe793", unrolled_symbol_table = "d53bb8960397c6ee70314bcd5a30dbb59d655bda52b4937c16a94af0417fe793", initial_ast = "3e0dce3c7ac38e237c811a557ddf5422d92024cd3a2f9a050f5089fb49e1c0d2", unrolled_ast = "3e0dce3c7ac38e237c811a557ddf5422d92024cd3a2f9a050f5089fb49e1c0d2", ssa_ast = "e4e399f95f533afdcd018463d8a27bc573fcc02dfd11b0e32990e690b98584da", flattened_ast = "2b95ef75e175131a082bc796f2b57942c2fb395373c91ef5fbbf1ed70d80a2c3", destructured_ast = "6b932fa3264ea209145cb10679089bb14e6f5e667c8cff3b9adef16424e70646", inlined_ast = "6b932fa3264ea209145cb10679089bb14e6f5e667c8cff3b9adef16424e70646", dce_ast = "23001f440ab4c99e89ac05facdfe45b10206fcc86a80bb11f8108c9b3785151b", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as address.private;
|
||||
is.neq r0 aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx into r1;
|
||||
output r1 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,14 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: aa5665d4b9e05e78e9181f1bb7e07f98f0009c1f82b29b781173679d0392f75c
|
||||
type_checked_symbol_table: c9a355adf84dd491014c8150453db6edb824f841877c1e912bc659ca15416723
|
||||
unrolled_symbol_table: c9a355adf84dd491014c8150453db6edb824f841877c1e912bc659ca15416723
|
||||
initial_ast: 55ccd130c0fb8317c3ccd6eeafdd9630fdab2447c4368c0f6870ce0f81a60e82
|
||||
unrolled_ast: 55ccd130c0fb8317c3ccd6eeafdd9630fdab2447c4368c0f6870ce0f81a60e82
|
||||
ssa_ast: ec3c124600b30e1bbe9c2745037f4a841ad4d12e9b4ce41f446faa1d7b34be6c
|
||||
flattened_ast: a47513dc4d7f5aadd738b38b152d16e73e4d41b4d3329b9b2ccab72dfc7c8528
|
||||
destructured_ast: 67b5a3b7d55cf41ff4af1069e3a6a2d4b2e5b4adeccfc145e24db5018111499b
|
||||
inlined_ast: 67b5a3b7d55cf41ff4af1069e3a6a2d4b2e5b4adeccfc145e24db5018111499b
|
||||
dce_ast: 3c317e1a5194206c1a6a41ffb463da578330bf0040ecae4e9cdccbc1c16c9d22
|
||||
bytecode: da1b0a83a17b801368b0a583b158d88d9d807a33000c8e89e82da123c8041aea
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "aa5665d4b9e05e78e9181f1bb7e07f98f0009c1f82b29b781173679d0392f75c", type_checked_symbol_table = "c9a355adf84dd491014c8150453db6edb824f841877c1e912bc659ca15416723", unrolled_symbol_table = "c9a355adf84dd491014c8150453db6edb824f841877c1e912bc659ca15416723", initial_ast = "55ccd130c0fb8317c3ccd6eeafdd9630fdab2447c4368c0f6870ce0f81a60e82", unrolled_ast = "55ccd130c0fb8317c3ccd6eeafdd9630fdab2447c4368c0f6870ce0f81a60e82", ssa_ast = "ec3c124600b30e1bbe9c2745037f4a841ad4d12e9b4ce41f446faa1d7b34be6c", flattened_ast = "a47513dc4d7f5aadd738b38b152d16e73e4d41b4d3329b9b2ccab72dfc7c8528", destructured_ast = "67b5a3b7d55cf41ff4af1069e3a6a2d4b2e5b4adeccfc145e24db5018111499b", inlined_ast = "67b5a3b7d55cf41ff4af1069e3a6a2d4b2e5b4adeccfc145e24db5018111499b", dce_ast = "3c317e1a5194206c1a6a41ffb463da578330bf0040ecae4e9cdccbc1c16c9d22", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as address.private;
|
||||
input r1 as boolean.private;
|
||||
ternary r1 aleo16s003g206rjms5pm4ak48340f7y4z4dsskuqfrd2gvqz6umh2qfq7lajfp aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx into r2;
|
||||
is.eq r2 aleo1drcl2g8zxhxjzjw63ajp067gzvl94am3z7m7wgrzmr2ecd5sdq8sy66l5k into r3;
|
||||
output r3 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,12 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: af1b9dd4e2e7f82e1a536bfc53948de3c814fc9ccf61e5115c2109e09cfb2b67
|
||||
type_checked_symbol_table: a87370905b296fa38a2921ce60df21da4670958bcf91d6c236acf70d02343087
|
||||
unrolled_symbol_table: a87370905b296fa38a2921ce60df21da4670958bcf91d6c236acf70d02343087
|
||||
initial_ast: a1b18ca13abd5d553005007013851ea090ce27a325f360f36a087fd7125b1c9b
|
||||
unrolled_ast: a1b18ca13abd5d553005007013851ea090ce27a325f360f36a087fd7125b1c9b
|
||||
ssa_ast: 048c531ce2a9cbecfa2e1ea0479ff3e245adcac3641843092083354074a3eeab
|
||||
flattened_ast: 01c4814b6404c3801fedfd3e54056cb765af01f26209407347826bc3651f9adc
|
||||
destructured_ast: 6ec15e189f4ff47f7b8b18aad652dfb6d440415341b6e8df1f18706f80d9c8b4
|
||||
inlined_ast: 6ec15e189f4ff47f7b8b18aad652dfb6d440415341b6e8df1f18706f80d9c8b4
|
||||
dce_ast: 6ec15e189f4ff47f7b8b18aad652dfb6d440415341b6e8df1f18706f80d9c8b4
|
||||
bytecode: bde2653fac0393940c5400272e53492228206e50abb36ce080b95043003ee976
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "af1b9dd4e2e7f82e1a536bfc53948de3c814fc9ccf61e5115c2109e09cfb2b67", type_checked_symbol_table = "a87370905b296fa38a2921ce60df21da4670958bcf91d6c236acf70d02343087", unrolled_symbol_table = "a87370905b296fa38a2921ce60df21da4670958bcf91d6c236acf70d02343087", initial_ast = "a1b18ca13abd5d553005007013851ea090ce27a325f360f36a087fd7125b1c9b", unrolled_ast = "a1b18ca13abd5d553005007013851ea090ce27a325f360f36a087fd7125b1c9b", ssa_ast = "048c531ce2a9cbecfa2e1ea0479ff3e245adcac3641843092083354074a3eeab", flattened_ast = "01c4814b6404c3801fedfd3e54056cb765af01f26209407347826bc3651f9adc", destructured_ast = "6ec15e189f4ff47f7b8b18aad652dfb6d440415341b6e8df1f18706f80d9c8b4", inlined_ast = "6ec15e189f4ff47f7b8b18aad652dfb6d440415341b6e8df1f18706f80d9c8b4", dce_ast = "6ec15e189f4ff47f7b8b18aad652dfb6d440415341b6e8df1f18706f80d9c8b4", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as address.private;
|
||||
is.eq r0 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r1;
|
||||
output r1 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,16 @@
|
||||
---
|
||||
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 [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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372021]: Comparison `>` is not supported for the address type.
|
||||
--> compiler-test:7:16
|
||||
|
|
||||
7 | return x > sender;
|
||||
| ^^^^^^^^^^
|
||||
Error [ETYC0372083]: A program must have at least one transition function.
|
||||
--> compiler-test:1:1
|
||||
|
|
||||
1 |
|
||||
2 |
|
||||
3 | program test.aleo {
|
||||
| ^^^^^^^^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,16 @@
|
||||
---
|
||||
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 [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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372021]: Comparison `>=` is not supported for the address type.
|
||||
--> compiler-test:7:16
|
||||
|
|
||||
7 | return x >= sender;
|
||||
| ^^^^^^^^^^^
|
||||
Error [ETYC0372083]: A program must have at least one transition function.
|
||||
--> compiler-test:1:1
|
||||
|
|
||||
1 |
|
||||
2 |
|
||||
3 | program test.aleo {
|
||||
| ^^^^^^^^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,16 @@
|
||||
---
|
||||
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 [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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372021]: Comparison `<` is not supported for the address type.
|
||||
--> compiler-test:7:16
|
||||
|
|
||||
7 | return x < sender;
|
||||
| ^^^^^^^^^^
|
||||
Error [ETYC0372083]: A program must have at least one transition function.
|
||||
--> compiler-test:1:1
|
||||
|
|
||||
1 |
|
||||
2 |
|
||||
3 | program test.aleo {
|
||||
| ^^^^^^^^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,16 @@
|
||||
---
|
||||
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 [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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372021]: Comparison `<=` is not supported for the address type.
|
||||
--> compiler-test:7:16
|
||||
|
|
||||
7 | return x <= sender;
|
||||
| ^^^^^^^^^^^
|
||||
Error [ETYC0372083]: A program must have at least one transition function.
|
||||
--> compiler-test:1:1
|
||||
|
|
||||
1 |
|
||||
2 |
|
||||
3 | program test.aleo {
|
||||
| ^^^^^^^^^^^^
|
||||
"""]
|
||||
|
@ -1,18 +1,18 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 9093a20a62879f03d6a7a4dc24b051778d2c543d1df6a59af8c423d047ec2e13
|
||||
type_checked_symbol_table: 639ed2aefe557daf6c3433d645bec25030a82e3296f26ac46961f451d2bb28ae
|
||||
unrolled_symbol_table: 639ed2aefe557daf6c3433d645bec25030a82e3296f26ac46961f451d2bb28ae
|
||||
initial_ast: da0a545e9de3b8cdec100132e7d9886d08b7e69217d129229e8a86489199ec21
|
||||
unrolled_ast: da0a545e9de3b8cdec100132e7d9886d08b7e69217d129229e8a86489199ec21
|
||||
ssa_ast: f76c8e4b70096ec05a1583648b295127d0a60d8b9973a1d5c7dff53782282c1d
|
||||
flattened_ast: d743a19b1faa6b66b90bd8496249cc5b94e9ba8260ad7ce95da721b68e59c3a9
|
||||
destructured_ast: d36731bec3ce6fd1c46b5660340e8e396fb874b0c3d3f6ae407e5f55aeb07aa4
|
||||
inlined_ast: d36731bec3ce6fd1c46b5660340e8e396fb874b0c3d3f6ae407e5f55aeb07aa4
|
||||
dce_ast: d36731bec3ce6fd1c46b5660340e8e396fb874b0c3d3f6ae407e5f55aeb07aa4
|
||||
bytecode: d9e6c28f9e5527abe9cdb07b9d35375901446415f5d645b0363597200ee45be7
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "9093a20a62879f03d6a7a4dc24b051778d2c543d1df6a59af8c423d047ec2e13", type_checked_symbol_table = "639ed2aefe557daf6c3433d645bec25030a82e3296f26ac46961f451d2bb28ae", unrolled_symbol_table = "639ed2aefe557daf6c3433d645bec25030a82e3296f26ac46961f451d2bb28ae", initial_ast = "da0a545e9de3b8cdec100132e7d9886d08b7e69217d129229e8a86489199ec21", unrolled_ast = "da0a545e9de3b8cdec100132e7d9886d08b7e69217d129229e8a86489199ec21", ssa_ast = "f76c8e4b70096ec05a1583648b295127d0a60d8b9973a1d5c7dff53782282c1d", flattened_ast = "d743a19b1faa6b66b90bd8496249cc5b94e9ba8260ad7ce95da721b68e59c3a9", destructured_ast = "d36731bec3ce6fd1c46b5660340e8e396fb874b0c3d3f6ae407e5f55aeb07aa4", inlined_ast = "d36731bec3ce6fd1c46b5660340e8e396fb874b0c3d3f6ae407e5f55aeb07aa4", dce_ast = "d36731bec3ce6fd1c46b5660340e8e396fb874b0c3d3f6ae407e5f55aeb07aa4", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
mapping Yo:
|
||||
\tkey as address.public;
|
||||
\tvalue as u32.public;
|
||||
|
||||
function main:
|
||||
input r0 as address.private;
|
||||
assert.eq r0 self.caller;
|
||||
assert.eq r0 test.aleo;
|
||||
assert.eq r0 hello.aleo;
|
||||
output foo.aleo as address.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,15 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: af1b9dd4e2e7f82e1a536bfc53948de3c814fc9ccf61e5115c2109e09cfb2b67
|
||||
type_checked_symbol_table: a7e0e6793233e6dec4b48137418a894ee322ac0635bccf5376979766adf2bbfa
|
||||
unrolled_symbol_table: a7e0e6793233e6dec4b48137418a894ee322ac0635bccf5376979766adf2bbfa
|
||||
initial_ast: fb145169ad1e437da9a503342918f5793085d4f5355837ac261984c33042831c
|
||||
unrolled_ast: fb145169ad1e437da9a503342918f5793085d4f5355837ac261984c33042831c
|
||||
ssa_ast: 315ce58a6c118e5955412d56ab3d52990475bf2452b8d8e21aba7c7628f59e84
|
||||
flattened_ast: f90ae68ee0bcbd72c41672353efc856b34f166a20a6de512fb70f8217ec5051e
|
||||
destructured_ast: afb641b9398c8b97833609f67e51483893d56505c6c2e64ed4173e79ad226e91
|
||||
inlined_ast: afb641b9398c8b97833609f67e51483893d56505c6c2e64ed4173e79ad226e91
|
||||
dce_ast: afb641b9398c8b97833609f67e51483893d56505c6c2e64ed4173e79ad226e91
|
||||
bytecode: c0b90b7f7e80041dc1a314c1a87290534936018fb001c6e1291266a02393c6f2
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "af1b9dd4e2e7f82e1a536bfc53948de3c814fc9ccf61e5115c2109e09cfb2b67", type_checked_symbol_table = "a7e0e6793233e6dec4b48137418a894ee322ac0635bccf5376979766adf2bbfa", unrolled_symbol_table = "a7e0e6793233e6dec4b48137418a894ee322ac0635bccf5376979766adf2bbfa", initial_ast = "fb145169ad1e437da9a503342918f5793085d4f5355837ac261984c33042831c", unrolled_ast = "fb145169ad1e437da9a503342918f5793085d4f5355837ac261984c33042831c", ssa_ast = "315ce58a6c118e5955412d56ab3d52990475bf2452b8d8e21aba7c7628f59e84", flattened_ast = "f90ae68ee0bcbd72c41672353efc856b34f166a20a6de512fb70f8217ec5051e", destructured_ast = "afb641b9398c8b97833609f67e51483893d56505c6c2e64ed4173e79ad226e91", inlined_ast = "afb641b9398c8b97833609f67e51483893d56505c6c2e64ed4173e79ad226e91", dce_ast = "afb641b9398c8b97833609f67e51483893d56505c6c2e64ed4173e79ad226e91", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as address.private;
|
||||
is.eq r0 aleo1l7ytv5jqjzpxtjqttl5z9mle8ujcpac9t6tkge5f4haah4pxas8sagzecd into r1;
|
||||
is.eq aleo1dtpkpg3d653mdlzh6g028937qdgujecn5gw5tzh7ftcvyz7jxvfqw6t8p6 r0 into r2;
|
||||
is.eq aleo1l7ytv5jqjzpxtjqttl5z9mle8ujcpac9t6tkge5f4haah4pxas8sagzecd r0 into r3;
|
||||
ternary r1 r2 r3 into r4;
|
||||
output r4 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,14 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 86cc47c4ae9edafe0811fe203d260ee357a3f7853a2ffbf0a9afc8e911369f51
|
||||
type_checked_symbol_table: d27200bee59ed91be0d42e9c04b8b89a8afb8a8518db3372f0ff65d097967144
|
||||
unrolled_symbol_table: 168951779efa956128e2892c5c3d538b3f34cabec54dd8efb70c4105a22f8edb
|
||||
initial_ast: e638024190743e42d22971bf4a5d2ae071661a5c05a9774f97763362531c3f99
|
||||
unrolled_ast: 9e599c1b6e6ab0b8f32f83b2cb2e327848eb02bca60c782ae40a0bd051bc9662
|
||||
ssa_ast: a43e3ef81113c1d9c70cfbfef5052b4fa26eb2feb8094ce60dd68aff58d6c2b7
|
||||
flattened_ast: 8b353b3efece3f3c00a6742a9706db425d1c93cb2f69be28071917304212d43f
|
||||
destructured_ast: a673e29723f018691dd0f9585836e9b8361b043b1d514961837f0c6099f54eef
|
||||
inlined_ast: a673e29723f018691dd0f9585836e9b8361b043b1d514961837f0c6099f54eef
|
||||
dce_ast: a673e29723f018691dd0f9585836e9b8361b043b1d514961837f0c6099f54eef
|
||||
bytecode: 5f0cb09518f39fc62d32faa38cb42fa04dca2587eaaaa1e0ac30fa9885ce4248
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "86cc47c4ae9edafe0811fe203d260ee357a3f7853a2ffbf0a9afc8e911369f51", type_checked_symbol_table = "d27200bee59ed91be0d42e9c04b8b89a8afb8a8518db3372f0ff65d097967144", unrolled_symbol_table = "168951779efa956128e2892c5c3d538b3f34cabec54dd8efb70c4105a22f8edb", initial_ast = "e638024190743e42d22971bf4a5d2ae071661a5c05a9774f97763362531c3f99", unrolled_ast = "9e599c1b6e6ab0b8f32f83b2cb2e327848eb02bca60c782ae40a0bd051bc9662", ssa_ast = "a43e3ef81113c1d9c70cfbfef5052b4fa26eb2feb8094ce60dd68aff58d6c2b7", flattened_ast = "8b353b3efece3f3c00a6742a9706db425d1c93cb2f69be28071917304212d43f", destructured_ast = "a673e29723f018691dd0f9585836e9b8361b043b1d514961837f0c6099f54eef", inlined_ast = "a673e29723f018691dd0f9585836e9b8361b043b1d514961837f0c6099f54eef", dce_ast = "a673e29723f018691dd0f9585836e9b8361b043b1d514961837f0c6099f54eef", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [boolean; 4u32].private;
|
||||
assert.eq r0[0u32] true;
|
||||
assert.eq r0[1u32] true;
|
||||
assert.eq r0[2u32] true;
|
||||
assert.eq r0[3u32] true;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,11 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: bbff18546983d05503a84e82edfc8ba43a819761a4966180f364b658bee7c71c
|
||||
type_checked_symbol_table: 68601235ddc6c200098d7374a78da4acbb29d3d5d1a6d67bdb7b5baa7ddfce4c
|
||||
unrolled_symbol_table: 68601235ddc6c200098d7374a78da4acbb29d3d5d1a6d67bdb7b5baa7ddfce4c
|
||||
initial_ast: 994bad0eab3a9fd89b319668c2e45551fc8ca2d0722e751ef8ece6eddd7d11bf
|
||||
unrolled_ast: 994bad0eab3a9fd89b319668c2e45551fc8ca2d0722e751ef8ece6eddd7d11bf
|
||||
ssa_ast: cf69c0c5a757a9387c0100f3cac9ed3292a1b4189a872f7d70cefec4b687f2ec
|
||||
flattened_ast: f83a1302e81bb2ad8737ee001d3e577106774175b87186f4237500db6a1e4e4d
|
||||
destructured_ast: c5f3b9d50a5b6bab1b5a992608653b865f619ec19e95f42fef43ac709f4b3134
|
||||
inlined_ast: c5f3b9d50a5b6bab1b5a992608653b865f619ec19e95f42fef43ac709f4b3134
|
||||
dce_ast: c5f3b9d50a5b6bab1b5a992608653b865f619ec19e95f42fef43ac709f4b3134
|
||||
bytecode: d5ca429014c67ec53c9ce4c200f06611379969892725237b5164737ea8100c12
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "bbff18546983d05503a84e82edfc8ba43a819761a4966180f364b658bee7c71c", type_checked_symbol_table = "68601235ddc6c200098d7374a78da4acbb29d3d5d1a6d67bdb7b5baa7ddfce4c", unrolled_symbol_table = "68601235ddc6c200098d7374a78da4acbb29d3d5d1a6d67bdb7b5baa7ddfce4c", initial_ast = "994bad0eab3a9fd89b319668c2e45551fc8ca2d0722e751ef8ece6eddd7d11bf", unrolled_ast = "994bad0eab3a9fd89b319668c2e45551fc8ca2d0722e751ef8ece6eddd7d11bf", ssa_ast = "cf69c0c5a757a9387c0100f3cac9ed3292a1b4189a872f7d70cefec4b687f2ec", flattened_ast = "f83a1302e81bb2ad8737ee001d3e577106774175b87186f4237500db6a1e4e4d", destructured_ast = "c5f3b9d50a5b6bab1b5a992608653b865f619ec19e95f42fef43ac709f4b3134", inlined_ast = "c5f3b9d50a5b6bab1b5a992608653b865f619ec19e95f42fef43ac709f4b3134", dce_ast = "c5f3b9d50a5b6bab1b5a992608653b865f619ec19e95f42fef43ac709f4b3134", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [boolean; 8u32].private;
|
||||
output r0[0u32] as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,23 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 4f8ab92e1b0589f9f72c264bded41a74ab81a95c0863bbb2128c2e455f8940ce
|
||||
type_checked_symbol_table: 80855e8466f2d8c141ade84f032cd8e08d31253bd9ed6d5961e22ed21fa60758
|
||||
unrolled_symbol_table: 80855e8466f2d8c141ade84f032cd8e08d31253bd9ed6d5961e22ed21fa60758
|
||||
initial_ast: 85c3840f1f944a2935fb3c72572498e35718479567668c2021b58c351770e687
|
||||
unrolled_ast: 85c3840f1f944a2935fb3c72572498e35718479567668c2021b58c351770e687
|
||||
ssa_ast: d0361696dcc37db64ddb4dd16c46da32544b40473ab527a7ead74006e606aa27
|
||||
flattened_ast: 62ed1887b901a2595b4a0501739273c9a1be99f7087d69dc0c3ea3e3ad7608a3
|
||||
destructured_ast: 1269eb8715c7b65336f707b4a034353214600e240b5771bc1c7ce20630cd8b08
|
||||
inlined_ast: 1269eb8715c7b65336f707b4a034353214600e240b5771bc1c7ce20630cd8b08
|
||||
dce_ast: 1269eb8715c7b65336f707b4a034353214600e240b5771bc1c7ce20630cd8b08
|
||||
bytecode: 96a3dd2c8b423fc1830c547bb318ef7379dd2b3d3ba030142fe344b51c0ecfc2
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "4f8ab92e1b0589f9f72c264bded41a74ab81a95c0863bbb2128c2e455f8940ce", type_checked_symbol_table = "80855e8466f2d8c141ade84f032cd8e08d31253bd9ed6d5961e22ed21fa60758", unrolled_symbol_table = "80855e8466f2d8c141ade84f032cd8e08d31253bd9ed6d5961e22ed21fa60758", initial_ast = "85c3840f1f944a2935fb3c72572498e35718479567668c2021b58c351770e687", unrolled_ast = "85c3840f1f944a2935fb3c72572498e35718479567668c2021b58c351770e687", ssa_ast = "d0361696dcc37db64ddb4dd16c46da32544b40473ab527a7ead74006e606aa27", flattened_ast = "62ed1887b901a2595b4a0501739273c9a1be99f7087d69dc0c3ea3e3ad7608a3", destructured_ast = "1269eb8715c7b65336f707b4a034353214600e240b5771bc1c7ce20630cd8b08", inlined_ast = "1269eb8715c7b65336f707b4a034353214600e240b5771bc1c7ce20630cd8b08", dce_ast = "1269eb8715c7b65336f707b4a034353214600e240b5771bc1c7ce20630cd8b08", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct bar:
|
||||
data as [u8; 8u32];
|
||||
|
||||
record floo:
|
||||
owner as address.private;
|
||||
data as [u8; 8u32].private;
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [[boolean; 8u32]; 8u32].private;
|
||||
cast 1u8 1u8 1u8 1u8 1u8 1u8 1u8 1u8 into r1 as [u8; 8u32];
|
||||
cast r1 into r2 as bar;
|
||||
cast 1u8 1u8 1u8 1u8 1u8 1u8 1u8 1u8 into r3 as [u8; 8u32];
|
||||
cast self.caller r3 into r4 as floo.record;
|
||||
output r0[0u32][0u32] as boolean.private;
|
||||
output r2 as bar.private;
|
||||
output r4 as floo.record;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,18 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: ba3fc19ac12ac6857103131150087f2008db2ed17e29f81333e71448b7460bdc
|
||||
type_checked_symbol_table: e9456a96681c99f57e277529196368b924eb914dcc1e747246eceaa6fe3cda30
|
||||
unrolled_symbol_table: e9456a96681c99f57e277529196368b924eb914dcc1e747246eceaa6fe3cda30
|
||||
initial_ast: d7838abbe0ad26b7a8bc6eae9ab9c0f7be4d180426d060f86e4bb158b7f177a0
|
||||
unrolled_ast: d7838abbe0ad26b7a8bc6eae9ab9c0f7be4d180426d060f86e4bb158b7f177a0
|
||||
ssa_ast: d7d54b8076d9dfe9cf0d87015531ce37dcf3af5bc2849ba783ccbedef88dbfcb
|
||||
flattened_ast: 579cc01e705c2b6d9d1e7622c34a034e3328b8e625fbe0bf541b7bd54ae49d17
|
||||
destructured_ast: db35f913e14ba042c5c5010eecc9e0bbdf46c3e73ca91b302ea8578dc4f60b3e
|
||||
inlined_ast: ebb9563fb18a8a38343a1e264ba17b7b4285f36016a52bde85777fb66b8308e1
|
||||
dce_ast: ebb9563fb18a8a38343a1e264ba17b7b4285f36016a52bde85777fb66b8308e1
|
||||
bytecode: 6d2dea5677417b5359aa082a7ffd6afbbfbba7a3557f7f6011a88d3b93fc8d03
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "ba3fc19ac12ac6857103131150087f2008db2ed17e29f81333e71448b7460bdc", type_checked_symbol_table = "e9456a96681c99f57e277529196368b924eb914dcc1e747246eceaa6fe3cda30", unrolled_symbol_table = "e9456a96681c99f57e277529196368b924eb914dcc1e747246eceaa6fe3cda30", initial_ast = "d7838abbe0ad26b7a8bc6eae9ab9c0f7be4d180426d060f86e4bb158b7f177a0", unrolled_ast = "d7838abbe0ad26b7a8bc6eae9ab9c0f7be4d180426d060f86e4bb158b7f177a0", ssa_ast = "d7d54b8076d9dfe9cf0d87015531ce37dcf3af5bc2849ba783ccbedef88dbfcb", flattened_ast = "579cc01e705c2b6d9d1e7622c34a034e3328b8e625fbe0bf541b7bd54ae49d17", destructured_ast = "db35f913e14ba042c5c5010eecc9e0bbdf46c3e73ca91b302ea8578dc4f60b3e", inlined_ast = "ebb9563fb18a8a38343a1e264ba17b7b4285f36016a52bde85777fb66b8308e1", dce_ast = "ebb9563fb18a8a38343a1e264ba17b7b4285f36016a52bde85777fb66b8308e1", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [boolean; 8u32].private;
|
||||
async foo r0 into r1;
|
||||
output r1 as test.aleo/foo.future;
|
||||
|
||||
finalize foo:
|
||||
input r0 as [boolean; 8u32].public;
|
||||
assert.eq true true;
|
||||
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,28 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: d3153d9d3c9bb2bda13d044f58b950de44094f4e2d76a2a8d8d013294ca2d846
|
||||
type_checked_symbol_table: eef34677156a9fa46022baf27398ad7cf7f378cd772990dadbb567939be5807c
|
||||
unrolled_symbol_table: eef34677156a9fa46022baf27398ad7cf7f378cd772990dadbb567939be5807c
|
||||
initial_ast: ea45d56006d7ddd3c6a7e98aa7f145343703aa3b60e24cedecee209592ea0558
|
||||
unrolled_ast: ea45d56006d7ddd3c6a7e98aa7f145343703aa3b60e24cedecee209592ea0558
|
||||
ssa_ast: ffe35f7b45090d1997fb2865d837e31ac9c385f89c819386bd245a5757d3e2fa
|
||||
flattened_ast: 28e3936f1ae645aa57cc20d946996c1b9a4e715ec8c50c3957d00280b517b4fb
|
||||
destructured_ast: 772c5ec8d0c490932cb4f1baa510284f76af446a220ff119441bb6bfb00133e5
|
||||
inlined_ast: 772c5ec8d0c490932cb4f1baa510284f76af446a220ff119441bb6bfb00133e5
|
||||
dce_ast: 772c5ec8d0c490932cb4f1baa510284f76af446a220ff119441bb6bfb00133e5
|
||||
bytecode: 0871c25bd990602b411e2492035ed37dfd4243251c0b6aed5d0937e00f91ec89
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "d3153d9d3c9bb2bda13d044f58b950de44094f4e2d76a2a8d8d013294ca2d846", type_checked_symbol_table = "eef34677156a9fa46022baf27398ad7cf7f378cd772990dadbb567939be5807c", unrolled_symbol_table = "eef34677156a9fa46022baf27398ad7cf7f378cd772990dadbb567939be5807c", initial_ast = "ea45d56006d7ddd3c6a7e98aa7f145343703aa3b60e24cedecee209592ea0558", unrolled_ast = "ea45d56006d7ddd3c6a7e98aa7f145343703aa3b60e24cedecee209592ea0558", ssa_ast = "ffe35f7b45090d1997fb2865d837e31ac9c385f89c819386bd245a5757d3e2fa", flattened_ast = "28e3936f1ae645aa57cc20d946996c1b9a4e715ec8c50c3957d00280b517b4fb", destructured_ast = "772c5ec8d0c490932cb4f1baa510284f76af446a220ff119441bb6bfb00133e5", inlined_ast = "772c5ec8d0c490932cb4f1baa510284f76af446a220ff119441bb6bfb00133e5", dce_ast = "772c5ec8d0c490932cb4f1baa510284f76af446a220ff119441bb6bfb00133e5", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [boolean; 8u32].private;
|
||||
output true as boolean.private;
|
||||
|
||||
|
||||
function bar:
|
||||
input r0 as [boolean; 8u32].private;
|
||||
output r0 as [boolean; 8u32].private;
|
||||
|
||||
|
||||
closure baz:
|
||||
input r0 as [boolean; 8u32];
|
||||
assert.eq r0[0u32] true;
|
||||
output true as boolean;
|
||||
|
||||
|
||||
closure qux:
|
||||
input r0 as [boolean; 8u32];
|
||||
assert.eq r0[0u32] true;
|
||||
output r0 as [boolean; 8u32];
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,23 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: c6fc8262389c0b237ca6df4e821f4349b7cd99be8c74e2f8e701b65ef04d9dac
|
||||
type_checked_symbol_table: e0fc713c4d1f50fabbe07798887487cb12acf512fb318aa3c23c0ae8975bcb04
|
||||
unrolled_symbol_table: e0fc713c4d1f50fabbe07798887487cb12acf512fb318aa3c23c0ae8975bcb04
|
||||
initial_ast: ce204eee225f30e052b92f0e285d931e94ea5571ac661d83d82adf30139c72cf
|
||||
unrolled_ast: ce204eee225f30e052b92f0e285d931e94ea5571ac661d83d82adf30139c72cf
|
||||
ssa_ast: 03ca65a17d563c58c8649780aee2e497b6ef45e6f1df8e80f4a5ee6a28f43882
|
||||
flattened_ast: fa5ee74c7be755e17165cdd38b0865a5ecb94dad7cd8a81ddb26c9d0ed7ffd5f
|
||||
destructured_ast: c3759b57ebd0d4fc539d1b6f8838e51cc77272bfd23b09e2b39ccd6b22feddaa
|
||||
inlined_ast: fa6fc247bec284c9ecbc8e62406c5a499f0ee73917ca83023813a6e6c7aa3017
|
||||
dce_ast: fa6fc247bec284c9ecbc8e62406c5a499f0ee73917ca83023813a6e6c7aa3017
|
||||
bytecode: 3914a12d8c1225083e703e35499e8c4fccb9dde44d02f0b281c1538ba6f93156
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "c6fc8262389c0b237ca6df4e821f4349b7cd99be8c74e2f8e701b65ef04d9dac", type_checked_symbol_table = "e0fc713c4d1f50fabbe07798887487cb12acf512fb318aa3c23c0ae8975bcb04", unrolled_symbol_table = "e0fc713c4d1f50fabbe07798887487cb12acf512fb318aa3c23c0ae8975bcb04", initial_ast = "ce204eee225f30e052b92f0e285d931e94ea5571ac661d83d82adf30139c72cf", unrolled_ast = "ce204eee225f30e052b92f0e285d931e94ea5571ac661d83d82adf30139c72cf", ssa_ast = "03ca65a17d563c58c8649780aee2e497b6ef45e6f1df8e80f4a5ee6a28f43882", flattened_ast = "fa5ee74c7be755e17165cdd38b0865a5ecb94dad7cd8a81ddb26c9d0ed7ffd5f", destructured_ast = "c3759b57ebd0d4fc539d1b6f8838e51cc77272bfd23b09e2b39ccd6b22feddaa", inlined_ast = "fa6fc247bec284c9ecbc8e62406c5a499f0ee73917ca83023813a6e6c7aa3017", dce_ast = "fa6fc247bec284c9ecbc8e62406c5a499f0ee73917ca83023813a6e6c7aa3017", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
mapping data:
|
||||
\tkey as address.public;
|
||||
\tvalue as [boolean; 8u32].public;
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [boolean; 8u32].private;
|
||||
async foo self.caller r0 into r1;
|
||||
output r1 as test.aleo/foo.future;
|
||||
|
||||
finalize foo:
|
||||
input r0 as address.public;
|
||||
input r1 as [boolean; 8u32].public;
|
||||
set r1 into data[r0];
|
||||
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,12 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 55de67e7f0caf5fcb2a3871448a83fee766b22b96eeaa1d5d172d2456b55688b
|
||||
type_checked_symbol_table: 613bad49201700a62fe19d05bba61f39b48b2635ed657fee6e20475fa29c6ed8
|
||||
unrolled_symbol_table: 613bad49201700a62fe19d05bba61f39b48b2635ed657fee6e20475fa29c6ed8
|
||||
initial_ast: 51b578b772c900066283e01863cf3b96d894d50aa2d9323f830e8cd83a0b487b
|
||||
unrolled_ast: 51b578b772c900066283e01863cf3b96d894d50aa2d9323f830e8cd83a0b487b
|
||||
ssa_ast: aa32ba8a21c90c8070ada697e720e87ca3f858feabe71a36d5ad769f3ff275c4
|
||||
flattened_ast: c768aef56ba8c31205dd30930fbdc1b923ac541e070fd18ede0aba30f1514b01
|
||||
destructured_ast: f53c800f3654d52fdbf46067aa93ba6f0501c1565b2ed911239cfc1813ee1e73
|
||||
inlined_ast: f53c800f3654d52fdbf46067aa93ba6f0501c1565b2ed911239cfc1813ee1e73
|
||||
dce_ast: f53c800f3654d52fdbf46067aa93ba6f0501c1565b2ed911239cfc1813ee1e73
|
||||
bytecode: 5adcc7b9450eedbada20f55565a821769e58c3cacb624d7e45061693d167a079
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "55de67e7f0caf5fcb2a3871448a83fee766b22b96eeaa1d5d172d2456b55688b", type_checked_symbol_table = "613bad49201700a62fe19d05bba61f39b48b2635ed657fee6e20475fa29c6ed8", unrolled_symbol_table = "613bad49201700a62fe19d05bba61f39b48b2635ed657fee6e20475fa29c6ed8", initial_ast = "51b578b772c900066283e01863cf3b96d894d50aa2d9323f830e8cd83a0b487b", unrolled_ast = "51b578b772c900066283e01863cf3b96d894d50aa2d9323f830e8cd83a0b487b", ssa_ast = "aa32ba8a21c90c8070ada697e720e87ca3f858feabe71a36d5ad769f3ff275c4", flattened_ast = "c768aef56ba8c31205dd30930fbdc1b923ac541e070fd18ede0aba30f1514b01", destructured_ast = "f53c800f3654d52fdbf46067aa93ba6f0501c1565b2ed911239cfc1813ee1e73", inlined_ast = "f53c800f3654d52fdbf46067aa93ba6f0501c1565b2ed911239cfc1813ee1e73", dce_ast = "f53c800f3654d52fdbf46067aa93ba6f0501c1565b2ed911239cfc1813ee1e73", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function bar:
|
||||
input r0 as boolean.private;
|
||||
cast r0 r0 r0 r0 r0 r0 r0 r0 into r1 as [boolean; 8u32];
|
||||
output r1 as [boolean; 8u32].private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,14 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372003]: Expected type `[bool; 8]` but type `[bool; 7]` was found\n --> compiler-test:5:16\n |\n 5 | return [a, a, a, a, a, a, a];\n | ^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `u32` was found\n --> compiler-test:9:52\n |\n 9 | return [1u8, 2u8, 3u8, 4u8, 5u8, 6u8, 7u8, 8u32];\n | ^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372003]: Expected type `[bool; 8]` but type `[bool; 7]` was found
|
||||
--> compiler-test:5:16
|
||||
|
|
||||
5 | return [a, a, a, a, a, a, a];
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
Error [ETYC0372003]: Expected type `u8` but type `u32` was found
|
||||
--> compiler-test:9:52
|
||||
|
|
||||
9 | return [1u8, 2u8, 3u8, 4u8, 5u8, 6u8, 7u8, 8u32];
|
||||
| ^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372079]: An array cannot have a record as an element type
|
||||
--> compiler-test:9:20
|
||||
|
|
||||
9 | transition foo(a: [bar; 8]) -> u8 {
|
||||
| ^
|
||||
"""]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 2810f9059b0a96a9416ee2a7212debabcb4bc6802095bdff039065d3fda7f3c7
|
||||
type_checked_symbol_table: b6307badfe522266447d5503e92045f5935d26a0c13cbcc7d78f0da6b6128a0b
|
||||
unrolled_symbol_table: b6307badfe522266447d5503e92045f5935d26a0c13cbcc7d78f0da6b6128a0b
|
||||
initial_ast: c5174335068d386bf09f1613ddc2765ab788afbce0a83dc94c8197d792570324
|
||||
unrolled_ast: c5174335068d386bf09f1613ddc2765ab788afbce0a83dc94c8197d792570324
|
||||
ssa_ast: ec179cc367b277c201b59fc08a6063297f826e09867caf663f30629a0d6bc8e4
|
||||
flattened_ast: cdd4b046fda370d0630b92e41a7544214dd31b5b58c830f40ac93c5b4e33e542
|
||||
destructured_ast: 19737108a3b3f9a45517e31a0d273c74ae5cda9c8bc86480c96317e6cd33d478
|
||||
inlined_ast: 19737108a3b3f9a45517e31a0d273c74ae5cda9c8bc86480c96317e6cd33d478
|
||||
dce_ast: 19737108a3b3f9a45517e31a0d273c74ae5cda9c8bc86480c96317e6cd33d478
|
||||
bytecode: 53499e77217ba5d8d146384234cbed9abe5c47abcbfe547f7bff6fbef4194a56
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "2810f9059b0a96a9416ee2a7212debabcb4bc6802095bdff039065d3fda7f3c7", type_checked_symbol_table = "b6307badfe522266447d5503e92045f5935d26a0c13cbcc7d78f0da6b6128a0b", unrolled_symbol_table = "b6307badfe522266447d5503e92045f5935d26a0c13cbcc7d78f0da6b6128a0b", initial_ast = "c5174335068d386bf09f1613ddc2765ab788afbce0a83dc94c8197d792570324", unrolled_ast = "c5174335068d386bf09f1613ddc2765ab788afbce0a83dc94c8197d792570324", ssa_ast = "ec179cc367b277c201b59fc08a6063297f826e09867caf663f30629a0d6bc8e4", flattened_ast = "cdd4b046fda370d0630b92e41a7544214dd31b5b58c830f40ac93c5b4e33e542", destructured_ast = "19737108a3b3f9a45517e31a0d273c74ae5cda9c8bc86480c96317e6cd33d478", inlined_ast = "19737108a3b3f9a45517e31a0d273c74ae5cda9c8bc86480c96317e6cd33d478", dce_ast = "19737108a3b3f9a45517e31a0d273c74ae5cda9c8bc86480c96317e6cd33d478", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct bar:
|
||||
data as u8;
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [bar; 8u32].private;
|
||||
output r0[0u32].data as u8.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,16 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a3b393d4d2e51b53c5987cd958d821983658c755d21235d09c43dbde9b8e9c41
|
||||
type_checked_symbol_table: 15c3df980bfbc43752b6c09a98536dfb3a0804f116c3e9bdf93423771fe50068
|
||||
unrolled_symbol_table: 15c3df980bfbc43752b6c09a98536dfb3a0804f116c3e9bdf93423771fe50068
|
||||
initial_ast: 01ba2ed0dbbaf22997296a20adcec7b7c560178815dc6e627f7f8094943e3478
|
||||
unrolled_ast: 01ba2ed0dbbaf22997296a20adcec7b7c560178815dc6e627f7f8094943e3478
|
||||
ssa_ast: bbbe8bb7d4113353990307e429133d9e85252740801d8004dcb2b796035db8f0
|
||||
flattened_ast: 48e6ffa711f1250106f70abd6e2f729c54e4e95ec8b54a4f4a0f4e280351de25
|
||||
destructured_ast: edd8a5eee97046c6e0ce96e43c20078827e04389bb74f703dbe8a6f4de367783
|
||||
inlined_ast: edd8a5eee97046c6e0ce96e43c20078827e04389bb74f703dbe8a6f4de367783
|
||||
dce_ast: edd8a5eee97046c6e0ce96e43c20078827e04389bb74f703dbe8a6f4de367783
|
||||
bytecode: 87676231f14ea25fc123a2569754b9ff0dca4a4f7cee0eb4ed6419174dd0af4c
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a3b393d4d2e51b53c5987cd958d821983658c755d21235d09c43dbde9b8e9c41", type_checked_symbol_table = "15c3df980bfbc43752b6c09a98536dfb3a0804f116c3e9bdf93423771fe50068", unrolled_symbol_table = "15c3df980bfbc43752b6c09a98536dfb3a0804f116c3e9bdf93423771fe50068", initial_ast = "01ba2ed0dbbaf22997296a20adcec7b7c560178815dc6e627f7f8094943e3478", unrolled_ast = "01ba2ed0dbbaf22997296a20adcec7b7c560178815dc6e627f7f8094943e3478", ssa_ast = "bbbe8bb7d4113353990307e429133d9e85252740801d8004dcb2b796035db8f0", flattened_ast = "48e6ffa711f1250106f70abd6e2f729c54e4e95ec8b54a4f4a0f4e280351de25", destructured_ast = "edd8a5eee97046c6e0ce96e43c20078827e04389bb74f703dbe8a6f4de367783", inlined_ast = "edd8a5eee97046c6e0ce96e43c20078827e04389bb74f703dbe8a6f4de367783", dce_ast = "edd8a5eee97046c6e0ce96e43c20078827e04389bb74f703dbe8a6f4de367783", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as [boolean; 1u32].private;
|
||||
output true as boolean.private;
|
||||
|
||||
|
||||
function bar:
|
||||
input r0 as [boolean; 32u32].private;
|
||||
output true as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372077]: An array cannot have more than 32 elements, found one with 33 elements
|
||||
--> compiler-test:4:20
|
||||
|
|
||||
4 | transition foo(a: [bool; 33]) -> bool {
|
||||
| ^
|
||||
"""]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372076]: An array cannot be empty\n --> compiler-test:4:20\n |\n 4 | transition foo(a: [bool; 0]) -> bool {\n | ^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372076]: An array cannot be empty
|
||||
--> compiler-test:4:20
|
||||
|
|
||||
4 | transition foo(a: [bool; 0]) -> bool {
|
||||
| ^
|
||||
"""]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ELUN0379001]: The array index must be constant.\n --> compiler-test:5:16\n |\n 5 | return a[index];\n | ^^^^^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ELUN0379001]: The array index must be constant.
|
||||
--> compiler-test:5:16
|
||||
|
|
||||
5 | return a[index];
|
||||
| ^^^^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372056]: Unit expressions can only be used in return statements.
|
||||
--> compiler-test:5:29
|
||||
|
|
||||
5 | let bar: [(); 2] = [(), ()];
|
||||
| ^^
|
||||
Error [ETYC0372056]: Unit expressions can only be used in return statements.
|
||||
--> compiler-test:5:33
|
||||
|
|
||||
5 | let bar: [(); 2] = [(), ()];
|
||||
| ^^
|
||||
Error [ETYC0372036]: Function must return a value.
|
||||
--> compiler-test:4:5
|
||||
|
|
||||
4 | transition foo() -> bool {
|
||||
5 | let bar: [(); 2] = [(), ()];
|
||||
6 | }
|
||||
| ^
|
||||
"""]
|
||||
|
@ -1,5 +1,14 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372000]: invalid assignment target\n --> compiler-test:5:9\n |\n 5 | a[0u32] = false;\n | ^^^^^^^\nError [ETYC0372000]: invalid assignment target\n --> compiler-test:6:9\n |\n 6 | a[1u32] = true;\n | ^^^^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372000]: invalid assignment target
|
||||
--> compiler-test:5:9
|
||||
|
|
||||
5 | a[0u32] = false;
|
||||
| ^^^^^^^
|
||||
Error [ETYC0372000]: invalid assignment target
|
||||
--> compiler-test:6:9
|
||||
|
|
||||
6 | a[1u32] = true;
|
||||
| ^^^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,14 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372007]: Expected one type from `array`, but got `u32`\n --> compiler-test:9:29\n |\n 9 | sum = sum + a[i][j];\n | ^^^^\nError [ETYC0372003]: Expected type `u32` but type `no type` was found\n --> compiler-test:9:23\n |\n 9 | sum = sum + a[i][j];\n | ^^^^^^^^^^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372007]: Expected one type from `array`, but got `u32`
|
||||
--> compiler-test:9:29
|
||||
|
|
||||
9 | sum = sum + a[i][j];
|
||||
| ^^^^
|
||||
Error [ETYC0372003]: Expected type `u32` but type `no type` was found
|
||||
--> compiler-test:9:23
|
||||
|
|
||||
9 | sum = sum + a[i][j];
|
||||
| ^^^^^^^^^^^^^
|
||||
"""]
|
||||
|
@ -1,18 +1,14 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: e965a8af9217457a872227ba3bf36a713ab10cbddfbea556d187ef82d54656d6
|
||||
type_checked_symbol_table: d94342d0ceac96b56ea536f27be02101a259cc6059843d75ed0eba6813cd36c2
|
||||
unrolled_symbol_table: d94342d0ceac96b56ea536f27be02101a259cc6059843d75ed0eba6813cd36c2
|
||||
initial_ast: e7a9420a403419844c2b328330be1264ec8a0ff518ed881f84970fe71845c6b6
|
||||
unrolled_ast: e7a9420a403419844c2b328330be1264ec8a0ff518ed881f84970fe71845c6b6
|
||||
ssa_ast: 13d8fdfd7a4e3f8a225e74f3520204957edbef4ae041cfbc0144084e347b7086
|
||||
flattened_ast: e4b2496a10ba914ae051f0bf01c7da7336ae581da2f66a4434fe47b600272235
|
||||
destructured_ast: 194243154841f88aead74d3c31339189104e4a675c0e2c8f44b33783905a5171
|
||||
inlined_ast: 194243154841f88aead74d3c31339189104e4a675c0e2c8f44b33783905a5171
|
||||
dce_ast: 194243154841f88aead74d3c31339189104e4a675c0e2c8f44b33783905a5171
|
||||
bytecode: 9eb1cb369a0b26adb4c56b497cb21915e34d7aad8c72224713d9a2d912d18907
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "e965a8af9217457a872227ba3bf36a713ab10cbddfbea556d187ef82d54656d6", type_checked_symbol_table = "d94342d0ceac96b56ea536f27be02101a259cc6059843d75ed0eba6813cd36c2", unrolled_symbol_table = "d94342d0ceac96b56ea536f27be02101a259cc6059843d75ed0eba6813cd36c2", initial_ast = "e7a9420a403419844c2b328330be1264ec8a0ff518ed881f84970fe71845c6b6", unrolled_ast = "e7a9420a403419844c2b328330be1264ec8a0ff518ed881f84970fe71845c6b6", ssa_ast = "13d8fdfd7a4e3f8a225e74f3520204957edbef4ae041cfbc0144084e347b7086", flattened_ast = "e4b2496a10ba914ae051f0bf01c7da7336ae581da2f66a4434fe47b600272235", destructured_ast = "194243154841f88aead74d3c31339189104e4a675c0e2c8f44b33783905a5171", inlined_ast = "194243154841f88aead74d3c31339189104e4a675c0e2c8f44b33783905a5171", dce_ast = "194243154841f88aead74d3c31339189104e4a675c0e2c8f44b33783905a5171", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
or false r0 into r1;
|
||||
assert.eq r1 true;
|
||||
ternary r0 r0 r0 into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1
|
||||
type_checked_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
unrolled_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
initial_ast: eaad5ac882c9ab1f4f88a2460e59f856458cb83517dfef68a07dc5cf3d11c7e3
|
||||
unrolled_ast: eaad5ac882c9ab1f4f88a2460e59f856458cb83517dfef68a07dc5cf3d11c7e3
|
||||
ssa_ast: 690eacae3ba50c90ea847823283c225380fd162468c448ca176d206724f9b486
|
||||
flattened_ast: 2acb2f118de37e8c8bccdefa4c557b9aa29e9a1ccb3ec75ba5a37a8ebe771e32
|
||||
destructured_ast: 7188aa240e3316581a7e7e84d12a8ebc7cbbcdfcb373c0e69b4cf50a163f0455
|
||||
inlined_ast: 7188aa240e3316581a7e7e84d12a8ebc7cbbcdfcb373c0e69b4cf50a163f0455
|
||||
dce_ast: 7188aa240e3316581a7e7e84d12a8ebc7cbbcdfcb373c0e69b4cf50a163f0455
|
||||
bytecode: 134904b86b96581876c2ca0c6ead651dda0dc9f2fb6dc583400133410b7deede
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1", type_checked_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", unrolled_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", initial_ast = "eaad5ac882c9ab1f4f88a2460e59f856458cb83517dfef68a07dc5cf3d11c7e3", unrolled_ast = "eaad5ac882c9ab1f4f88a2460e59f856458cb83517dfef68a07dc5cf3d11c7e3", ssa_ast = "690eacae3ba50c90ea847823283c225380fd162468c448ca176d206724f9b486", flattened_ast = "2acb2f118de37e8c8bccdefa4c557b9aa29e9a1ccb3ec75ba5a37a8ebe771e32", destructured_ast = "7188aa240e3316581a7e7e84d12a8ebc7cbbcdfcb373c0e69b4cf50a163f0455", inlined_ast = "7188aa240e3316581a7e7e84d12a8ebc7cbbcdfcb373c0e69b4cf50a163f0455", dce_ast = "7188aa240e3316581a7e7e84d12a8ebc7cbbcdfcb373c0e69b4cf50a163f0455", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as boolean.private;
|
||||
and r0 r1 into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1
|
||||
type_checked_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
unrolled_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
initial_ast: 5f26db89efd720e9fd89f93107a5096ef7f600e769e44b01a6b43d86ed849de0
|
||||
unrolled_ast: 5f26db89efd720e9fd89f93107a5096ef7f600e769e44b01a6b43d86ed849de0
|
||||
ssa_ast: e5974a0e1add0fbde6f86104bed47aae9bb59b8b131b46c7f77489336dff21b0
|
||||
flattened_ast: 61bed3f773821b1b80eda03f5a05d5bfb12399db89bf9f93c248aa09b5b250f6
|
||||
destructured_ast: 00481fd379ca20887a4b45be2ef03ff42a27954cf22e2494882a390b9f42bce8
|
||||
inlined_ast: 00481fd379ca20887a4b45be2ef03ff42a27954cf22e2494882a390b9f42bce8
|
||||
dce_ast: 00481fd379ca20887a4b45be2ef03ff42a27954cf22e2494882a390b9f42bce8
|
||||
bytecode: 56a9fa48a00d1b38b6f60a93ef2168b2c0ce9c23ba3cb7bffa40debfc1b16180
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1", type_checked_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", unrolled_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", initial_ast = "5f26db89efd720e9fd89f93107a5096ef7f600e769e44b01a6b43d86ed849de0", unrolled_ast = "5f26db89efd720e9fd89f93107a5096ef7f600e769e44b01a6b43d86ed849de0", ssa_ast = "e5974a0e1add0fbde6f86104bed47aae9bb59b8b131b46c7f77489336dff21b0", flattened_ast = "61bed3f773821b1b80eda03f5a05d5bfb12399db89bf9f93c248aa09b5b250f6", destructured_ast = "00481fd379ca20887a4b45be2ef03ff42a27954cf22e2494882a390b9f42bce8", inlined_ast = "00481fd379ca20887a4b45be2ef03ff42a27954cf22e2494882a390b9f42bce8", dce_ast = "00481fd379ca20887a4b45be2ef03ff42a27954cf22e2494882a390b9f42bce8", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as boolean.private;
|
||||
ternary r0 r1 false into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1
|
||||
type_checked_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
unrolled_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
initial_ast: 62350ccf85cc0e5ebaa8fb5103845b87d70165e0bc3153bfaf2e42ef6b85505b
|
||||
unrolled_ast: 62350ccf85cc0e5ebaa8fb5103845b87d70165e0bc3153bfaf2e42ef6b85505b
|
||||
ssa_ast: 1b2d39677eea7198dd46956061d8bac6c36ed700e45be42354af9a7bc4548bd9
|
||||
flattened_ast: 198e38a41d0504a079c98e6a4898e2a94442d9ffdd767f0b04873125972f75f5
|
||||
destructured_ast: 41812b545fb9f9539b4721f3e42bf57df57bbc097869a9993ca48fc89af07d7b
|
||||
inlined_ast: 41812b545fb9f9539b4721f3e42bf57df57bbc097869a9993ca48fc89af07d7b
|
||||
dce_ast: 41812b545fb9f9539b4721f3e42bf57df57bbc097869a9993ca48fc89af07d7b
|
||||
bytecode: 2332d5b7ed9910dc65c885e1aeedbbde00e02d95a55caa300a9cb72456707034
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1", type_checked_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", unrolled_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", initial_ast = "62350ccf85cc0e5ebaa8fb5103845b87d70165e0bc3153bfaf2e42ef6b85505b", unrolled_ast = "62350ccf85cc0e5ebaa8fb5103845b87d70165e0bc3153bfaf2e42ef6b85505b", ssa_ast = "1b2d39677eea7198dd46956061d8bac6c36ed700e45be42354af9a7bc4548bd9", flattened_ast = "198e38a41d0504a079c98e6a4898e2a94442d9ffdd767f0b04873125972f75f5", destructured_ast = "41812b545fb9f9539b4721f3e42bf57df57bbc097869a9993ca48fc89af07d7b", inlined_ast = "41812b545fb9f9539b4721f3e42bf57df57bbc097869a9993ca48fc89af07d7b", dce_ast = "41812b545fb9f9539b4721f3e42bf57df57bbc097869a9993ca48fc89af07d7b", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as boolean.private;
|
||||
is.eq r0 r1 into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1
|
||||
type_checked_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
unrolled_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
initial_ast: 5fd20de6d0cdad3eabf5467f323426da3ccb6e1ea08a2a7fc95457ee7e10fa56
|
||||
unrolled_ast: 5fd20de6d0cdad3eabf5467f323426da3ccb6e1ea08a2a7fc95457ee7e10fa56
|
||||
ssa_ast: 5f72b32831de268d754e859875b8d55d2d9c41b93e8004b35e4a77bda3641dd9
|
||||
flattened_ast: 880b09f5d0a626bfcd3312e2cfd75889a3ad8bfad901110c3a9008397b696bb3
|
||||
destructured_ast: 595f46c5f74c3ebf5da3dac2142637a7073ef1f3af8771ed9c12004de481eb3d
|
||||
inlined_ast: 595f46c5f74c3ebf5da3dac2142637a7073ef1f3af8771ed9c12004de481eb3d
|
||||
dce_ast: 595f46c5f74c3ebf5da3dac2142637a7073ef1f3af8771ed9c12004de481eb3d
|
||||
bytecode: 990eee0b87d70df046bad969201ad8afabff10162eb70c00f837fde81fed4104
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1", type_checked_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", unrolled_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", initial_ast = "5fd20de6d0cdad3eabf5467f323426da3ccb6e1ea08a2a7fc95457ee7e10fa56", unrolled_ast = "5fd20de6d0cdad3eabf5467f323426da3ccb6e1ea08a2a7fc95457ee7e10fa56", ssa_ast = "5f72b32831de268d754e859875b8d55d2d9c41b93e8004b35e4a77bda3641dd9", flattened_ast = "880b09f5d0a626bfcd3312e2cfd75889a3ad8bfad901110c3a9008397b696bb3", destructured_ast = "595f46c5f74c3ebf5da3dac2142637a7073ef1f3af8771ed9c12004de481eb3d", inlined_ast = "595f46c5f74c3ebf5da3dac2142637a7073ef1f3af8771ed9c12004de481eb3d", dce_ast = "595f46c5f74c3ebf5da3dac2142637a7073ef1f3af8771ed9c12004de481eb3d", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as boolean.private;
|
||||
is.neq r0 r1 into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1
|
||||
type_checked_symbol_table: 784af104f55654a81e3c2546a1eab0fdbdd208681567d89e9b9286ab1a75cac3
|
||||
unrolled_symbol_table: 784af104f55654a81e3c2546a1eab0fdbdd208681567d89e9b9286ab1a75cac3
|
||||
initial_ast: 4d8dac42b745182842d0699c703b8cd4bb875da014b3d93f993779020f643e59
|
||||
unrolled_ast: 4d8dac42b745182842d0699c703b8cd4bb875da014b3d93f993779020f643e59
|
||||
ssa_ast: 198d0af4f4d9aeaab70de4df15b8a15e87078a19d164afeb612c4fac256c7908
|
||||
flattened_ast: 8e67e164404e6fcbc4918492660dc59572103060be8141be63a058139cfded43
|
||||
destructured_ast: 58d1e81d725b83b56d365add74a33f083d364f1b9842c639621ea95339605d70
|
||||
inlined_ast: 58d1e81d725b83b56d365add74a33f083d364f1b9842c639621ea95339605d70
|
||||
dce_ast: fbe283e571b7a63ca2d2ac2c0001e1ced041e7ee1866c92c8046138363400239
|
||||
bytecode: bb260232bbd0ccede368961a31abeef5edc7e00cab3348b4b8518d4e5798a6b5
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1", type_checked_symbol_table = "784af104f55654a81e3c2546a1eab0fdbdd208681567d89e9b9286ab1a75cac3", unrolled_symbol_table = "784af104f55654a81e3c2546a1eab0fdbdd208681567d89e9b9286ab1a75cac3", initial_ast = "4d8dac42b745182842d0699c703b8cd4bb875da014b3d93f993779020f643e59", unrolled_ast = "4d8dac42b745182842d0699c703b8cd4bb875da014b3d93f993779020f643e59", ssa_ast = "198d0af4f4d9aeaab70de4df15b8a15e87078a19d164afeb612c4fac256c7908", flattened_ast = "8e67e164404e6fcbc4918492660dc59572103060be8141be63a058139cfded43", destructured_ast = "58d1e81d725b83b56d365add74a33f083d364f1b9842c639621ea95339605d70", inlined_ast = "58d1e81d725b83b56d365add74a33f083d364f1b9842c639621ea95339605d70", dce_ast = "fbe283e571b7a63ca2d2ac2c0001e1ced041e7ee1866c92c8046138363400239", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as boolean.private;
|
||||
not r0 into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1
|
||||
type_checked_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
unrolled_symbol_table: 29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e
|
||||
initial_ast: a7a40fd49b89c3e4b8b427a81384d52bee87a6de9be4d323faaf6c56c201f05b
|
||||
unrolled_ast: a7a40fd49b89c3e4b8b427a81384d52bee87a6de9be4d323faaf6c56c201f05b
|
||||
ssa_ast: b4e000a08d956d72c31cdc7e4d41be3a0c7be7c174a625f4c59f8d0422834291
|
||||
flattened_ast: 46355d55070db6206d101b33c93a643a7fae8efe6501b8d2062ec22866e01f10
|
||||
destructured_ast: 920af3171d61da86d9ae1803e344bfbf48c0273f449de1c4db1dcbaf5f2cef75
|
||||
inlined_ast: 920af3171d61da86d9ae1803e344bfbf48c0273f449de1c4db1dcbaf5f2cef75
|
||||
dce_ast: 920af3171d61da86d9ae1803e344bfbf48c0273f449de1c4db1dcbaf5f2cef75
|
||||
bytecode: c3a0c03f4324a6dd6baea42e664ffad91868714739e03525dcbc968582007ceb
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "1b5c611464ecf9e3bdafa92a46c5b9d7ff2f75b57aba7e90eced6f363fb580a1", type_checked_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", unrolled_symbol_table = "29a17f191dd193447c1182ec08351227f100183d7fbe41bdf4b113e0f304e33e", initial_ast = "a7a40fd49b89c3e4b8b427a81384d52bee87a6de9be4d323faaf6c56c201f05b", unrolled_ast = "a7a40fd49b89c3e4b8b427a81384d52bee87a6de9be4d323faaf6c56c201f05b", ssa_ast = "b4e000a08d956d72c31cdc7e4d41be3a0c7be7c174a625f4c59f8d0422834291", flattened_ast = "46355d55070db6206d101b33c93a643a7fae8efe6501b8d2062ec22866e01f10", destructured_ast = "920af3171d61da86d9ae1803e344bfbf48c0273f449de1c4db1dcbaf5f2cef75", inlined_ast = "920af3171d61da86d9ae1803e344bfbf48c0273f449de1c4db1dcbaf5f2cef75", dce_ast = "920af3171d61da86d9ae1803e344bfbf48c0273f449de1c4db1dcbaf5f2cef75", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as boolean.private;
|
||||
or r0 r1 into r2;
|
||||
output r2 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,58 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372005]: Unknown variable `caller`\n --> compiler-test:37:44\n |\n 37 | return (self.caller, finalize_init(caller));\n | ^^^^^^\nError [ETYC0372088]: An async transition must call an async function.\n --> compiler-test:36:5\n |\n 36 | async transition init(b: bool) -> (address, Future) {\n 37 | return (self.caller, finalize_init(caller));\n 38 | }\n | ^\n |\n = Example: `async transition foo() -> Future { let a: Future = bar(); return await_futures(a); }`\nError [ETYC0372005]: Unknown variable `account`\n --> compiler-test:54:53\n |\n 54 | let owner_amount: u64 = Mapping::get_or_use(account, caller, 0u64);\n | ^^^^^^^\nError [ETYC0372005]: Unknown variable `account`\n --> compiler-test:56:22\n |\n 56 | Mapping::set(account, caller, owner_amount + admin_token_amt);\n | ^^^^^^^\nWarning [WTYC0372002]: The async function `finalize_init` is never called by an async transition.\n --> compiler-test:40:5\n |\n 40 | async function finalize_init(caller: address) {\n 41 | let gs: GlobalState = Mapping::get_or_use(global_state, true, GlobalState {\n 42 | next_token_id: 0field,\n 43 | admin: aleo1az8p9vlllyqwtj0c2g9svkd0e5v0p3zzdflwwrpa7kpe8xrfxgfqqpru7m,\n 44 | });\n 45 | assert_eq(gs.next_token_id, 0field);\n 46 | assert_eq(caller, gs.admin);\n 47 | Mapping::set(global_state, true, GlobalState {\n 48 | next_token_id: 1field,\n 49 | admin: gs.admin,\n 50 | });\n 51 | \n 52 | let test_supply: u64 = 15000000000000u64;\n 53 | let admin_token_amt: u64 = 60000000u64;\n 54 | let owner_amount: u64 = Mapping::get_or_use(account, caller, 0u64);\n 55 | assert(owner_amount == 0u64);\n 56 | Mapping::set(account, caller, owner_amount + admin_token_amt);\n 57 | \n 58 | Mapping::set(test_token, test_supply, TestToken {\n 59 | name: 4577111110111112111108121field,\n 60 | symbol: 4577111110111112111108121field,\n 61 | decimals: 6u8,\n 62 | circulating_supply: 0u64 + admin_token_amt,\n 63 | total_supply: test_supply,\n 64 | admin: gs.admin,\n 65 | });\n 66 | }\n | ^"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372005]: Unknown variable `caller`
|
||||
--> compiler-test:37:44
|
||||
|
|
||||
37 | return (self.caller, finalize_init(caller));
|
||||
| ^^^^^^
|
||||
Error [ETYC0372088]: An async transition must call an async function.
|
||||
--> compiler-test:36:5
|
||||
|
|
||||
36 | async transition init(b: bool) -> (address, Future) {
|
||||
37 | return (self.caller, finalize_init(caller));
|
||||
38 | }
|
||||
| ^
|
||||
|
|
||||
= Example: `async transition foo() -> Future { let a: Future = bar(); return await_futures(a); }`
|
||||
Error [ETYC0372005]: Unknown variable `account`
|
||||
--> compiler-test:54:53
|
||||
|
|
||||
54 | let owner_amount: u64 = Mapping::get_or_use(account, caller, 0u64);
|
||||
| ^^^^^^^
|
||||
Error [ETYC0372005]: Unknown variable `account`
|
||||
--> compiler-test:56:22
|
||||
|
|
||||
56 | Mapping::set(account, caller, owner_amount + admin_token_amt);
|
||||
| ^^^^^^^
|
||||
Warning [WTYC0372002]: The async function `finalize_init` is never called by an async transition.
|
||||
--> compiler-test:40:5
|
||||
|
|
||||
40 | async function finalize_init(caller: address) {
|
||||
41 | let gs: GlobalState = Mapping::get_or_use(global_state, true, GlobalState {
|
||||
42 | next_token_id: 0field,
|
||||
43 | admin: aleo1az8p9vlllyqwtj0c2g9svkd0e5v0p3zzdflwwrpa7kpe8xrfxgfqqpru7m,
|
||||
44 | });
|
||||
45 | assert_eq(gs.next_token_id, 0field);
|
||||
46 | assert_eq(caller, gs.admin);
|
||||
47 | Mapping::set(global_state, true, GlobalState {
|
||||
48 | next_token_id: 1field,
|
||||
49 | admin: gs.admin,
|
||||
50 | });
|
||||
51 |
|
||||
52 | let test_supply: u64 = 15000000000000u64;
|
||||
53 | let admin_token_amt: u64 = 60000000u64;
|
||||
54 | let owner_amount: u64 = Mapping::get_or_use(account, caller, 0u64);
|
||||
55 | assert(owner_amount == 0u64);
|
||||
56 | Mapping::set(account, caller, owner_amount + admin_token_amt);
|
||||
57 |
|
||||
58 | Mapping::set(test_token, test_supply, TestToken {
|
||||
59 | name: 4577111110111112111108121field,
|
||||
60 | symbol: 4577111110111112111108121field,
|
||||
61 | decimals: 6u8,
|
||||
62 | circulating_supply: 0u64 + admin_token_amt,
|
||||
63 | total_supply: test_supply,
|
||||
64 | admin: gs.admin,
|
||||
65 | });
|
||||
66 | }
|
||||
| ^"""]
|
||||
|
@ -1,18 +1,27 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: e842df421595b3b67809502efd4090ad62f3a1c381caff3e87fdb0db1d8f05e3
|
||||
type_checked_symbol_table: 488dfeda4033ab38d660e18201b8374a0afdab04b361438010b4f781d34246b7
|
||||
unrolled_symbol_table: 488dfeda4033ab38d660e18201b8374a0afdab04b361438010b4f781d34246b7
|
||||
initial_ast: 6d7ed631427a4ab10f27d2452a1964ad467c76d926d7728a879ecc04dc1cf223
|
||||
unrolled_ast: 6d7ed631427a4ab10f27d2452a1964ad467c76d926d7728a879ecc04dc1cf223
|
||||
ssa_ast: 127fc107ad2d3bfd8d45ee0776aa87d5ceb98ea74021834e0a2be91b3aabc2ab
|
||||
flattened_ast: 384b9c3dc0e6dd88220902841f0b60485d5618eb8c294fad74fa50e695354778
|
||||
destructured_ast: 0df4d5d73bcbbc4eb62ed67c5b14d1b8838ccef0a38617f9bffae87e9e8f61d2
|
||||
inlined_ast: 0df4d5d73bcbbc4eb62ed67c5b14d1b8838ccef0a38617f9bffae87e9e8f61d2
|
||||
dce_ast: 0df4d5d73bcbbc4eb62ed67c5b14d1b8838ccef0a38617f9bffae87e9e8f61d2
|
||||
bytecode: 3c391009be59588562aa4a34d1b00508cd253c94d35a66741962352c76a92633
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "e842df421595b3b67809502efd4090ad62f3a1c381caff3e87fdb0db1d8f05e3", type_checked_symbol_table = "488dfeda4033ab38d660e18201b8374a0afdab04b361438010b4f781d34246b7", unrolled_symbol_table = "488dfeda4033ab38d660e18201b8374a0afdab04b361438010b4f781d34246b7", initial_ast = "6d7ed631427a4ab10f27d2452a1964ad467c76d926d7728a879ecc04dc1cf223", unrolled_ast = "6d7ed631427a4ab10f27d2452a1964ad467c76d926d7728a879ecc04dc1cf223", ssa_ast = "127fc107ad2d3bfd8d45ee0776aa87d5ceb98ea74021834e0a2be91b3aabc2ab", flattened_ast = "384b9c3dc0e6dd88220902841f0b60485d5618eb8c294fad74fa50e695354778", destructured_ast = "0df4d5d73bcbbc4eb62ed67c5b14d1b8838ccef0a38617f9bffae87e9e8f61d2", inlined_ast = "0df4d5d73bcbbc4eb62ed67c5b14d1b8838ccef0a38617f9bffae87e9e8f61d2", dce_ast = "0df4d5d73bcbbc4eb62ed67c5b14d1b8838ccef0a38617f9bffae87e9e8f61d2", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u8;
|
||||
|
||||
record Token:
|
||||
owner as address.private;
|
||||
amount as u64.private;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as boolean.private;
|
||||
input r1 as Foo.private;
|
||||
input r2 as Token.record;
|
||||
assert.eq r0 true;
|
||||
assert.neq r0 false;
|
||||
assert.eq r0 true;
|
||||
cast 0u8 into r3 as Foo;
|
||||
assert.eq r1 r3;
|
||||
cast aleo1lfapwg53y5enqpt0d8cnef4g8lj7l6g9uhkkma23qyv6jm4ppyfq50regr 0u64 into r4 as Token.record;
|
||||
assert.neq r2 r4;
|
||||
is.eq r0 true into r5;
|
||||
output r5 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,8 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370005]: expected , -- found ')'\n --> compiler-test:6:27\n |\n 6 | assert_eq(a == 1u8);\n | ^"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [EPAR0370005]: expected , -- found ')'
|
||||
--> compiler-test:6:27
|
||||
|
|
||||
6 | assert_eq(a == 1u8);
|
||||
| ^"""]
|
||||
|
@ -1,18 +1,20 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: fe88d0b4607c83e6ad15970976a4b53d4805409c31cf4f130c800a94ee42c95a
|
||||
type_checked_symbol_table: b4995f1268d8d8bbcaadf5f2c28c1a198b7f858d1890f11684ab0c68bdbba5aa
|
||||
unrolled_symbol_table: b4995f1268d8d8bbcaadf5f2c28c1a198b7f858d1890f11684ab0c68bdbba5aa
|
||||
initial_ast: ba67a500726316de1c9fc21a11c793b2af8c1d356b129aa0e4daca8e97685ef6
|
||||
unrolled_ast: ba67a500726316de1c9fc21a11c793b2af8c1d356b129aa0e4daca8e97685ef6
|
||||
ssa_ast: d0458d630038e53c60b016d68897fbb8f7cbaacdcf55ae82a7b57499f2a14a8c
|
||||
flattened_ast: 3367b1ecfa78339cfc5ef51db8b63de8bd8c8d56e136dbc4ef66735bc7196c23
|
||||
destructured_ast: e903da526e4b32d88dfd87b3216523e6015340e945612d4683f23d3904e3e887
|
||||
inlined_ast: e903da526e4b32d88dfd87b3216523e6015340e945612d4683f23d3904e3e887
|
||||
dce_ast: e903da526e4b32d88dfd87b3216523e6015340e945612d4683f23d3904e3e887
|
||||
bytecode: 6c1429f518559f2ed199b19fff8774614cde60ca6f8a4b28f3ca55f1d96bfbed
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "fe88d0b4607c83e6ad15970976a4b53d4805409c31cf4f130c800a94ee42c95a", type_checked_symbol_table = "b4995f1268d8d8bbcaadf5f2c28c1a198b7f858d1890f11684ab0c68bdbba5aa", unrolled_symbol_table = "b4995f1268d8d8bbcaadf5f2c28c1a198b7f858d1890f11684ab0c68bdbba5aa", initial_ast = "ba67a500726316de1c9fc21a11c793b2af8c1d356b129aa0e4daca8e97685ef6", unrolled_ast = "ba67a500726316de1c9fc21a11c793b2af8c1d356b129aa0e4daca8e97685ef6", ssa_ast = "d0458d630038e53c60b016d68897fbb8f7cbaacdcf55ae82a7b57499f2a14a8c", flattened_ast = "3367b1ecfa78339cfc5ef51db8b63de8bd8c8d56e136dbc4ef66735bc7196c23", destructured_ast = "e903da526e4b32d88dfd87b3216523e6015340e945612d4683f23d3904e3e887", inlined_ast = "e903da526e4b32d88dfd87b3216523e6015340e945612d4683f23d3904e3e887", dce_ast = "e903da526e4b32d88dfd87b3216523e6015340e945612d4683f23d3904e3e887", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as u8.private;
|
||||
is.eq r0 1u8 into r1;
|
||||
is.eq r0 2u8 into r2;
|
||||
gt 0u8 r0 into r3;
|
||||
not r2 into r4;
|
||||
or r3 r4 into r5;
|
||||
or r5 r1 into r6;
|
||||
assert.eq r6 true;
|
||||
ternary r2 false false into r7;
|
||||
ternary r1 true r7 into r8;
|
||||
output r8 as boolean.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,10 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 7b7639da9364ec7e9fbdbeca060c73f5f0d338486b6d823b0b4704d23f9427ab
|
||||
type_checked_symbol_table: 0802a02c884f0c8c409af2c2e5832393edc51a289dd6eebfebfc4ce2de29ba65
|
||||
unrolled_symbol_table: 435885a17bd622f24f237a8d2eb4ee510a4977dbabd380530ae0d2e8cac26101
|
||||
initial_ast: 38245c6dcf3dd2eefe622109ac7e464c771fb453600c0abbe56b09d35b53aebd
|
||||
unrolled_ast: a26bb8e37c66a077fba6f366ffc7e68d3c298f7f82bc3d6e72a4445ec9ecc23a
|
||||
ssa_ast: ab86608c012145f682109ec167f2beadd27b4285e712bf9d16096409c4f47fd4
|
||||
flattened_ast: fc788aaa793d64b66169199559b0630dba62116216c9c7b38530719ba9775e9f
|
||||
destructured_ast: 6882bbc3e61e5b5e088128719c3c03f20eb32bfd06312e68eedd05182b5260dc
|
||||
inlined_ast: 6882bbc3e61e5b5e088128719c3c03f20eb32bfd06312e68eedd05182b5260dc
|
||||
dce_ast: 6adf6b5a2b6be4dcc8ebf46d30acc4dc8082816c90679404869dc0f76a014981
|
||||
bytecode: acfb8fc365ba153cf8598a04dad8ff4ac65b9df6c6356cb077fcf9dafbead7e9
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "7b7639da9364ec7e9fbdbeca060c73f5f0d338486b6d823b0b4704d23f9427ab", type_checked_symbol_table = "0802a02c884f0c8c409af2c2e5832393edc51a289dd6eebfebfc4ce2de29ba65", unrolled_symbol_table = "435885a17bd622f24f237a8d2eb4ee510a4977dbabd380530ae0d2e8cac26101", initial_ast = "38245c6dcf3dd2eefe622109ac7e464c771fb453600c0abbe56b09d35b53aebd", unrolled_ast = "a26bb8e37c66a077fba6f366ffc7e68d3c298f7f82bc3d6e72a4445ec9ecc23a", ssa_ast = "ab86608c012145f682109ec167f2beadd27b4285e712bf9d16096409c4f47fd4", flattened_ast = "fc788aaa793d64b66169199559b0630dba62116216c9c7b38530719ba9775e9f", destructured_ast = "6882bbc3e61e5b5e088128719c3c03f20eb32bfd06312e68eedd05182b5260dc", inlined_ast = "6882bbc3e61e5b5e088128719c3c03f20eb32bfd06312e68eedd05182b5260dc", dce_ast = "6adf6b5a2b6be4dcc8ebf46d30acc4dc8082816c90679404869dc0f76a014981", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
output 1u32 as u32.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,31 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
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.
|
||||
--> compiler-test:7:9
|
||||
|
|
||||
7 | const A: () = ();
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
Error [ETYC0372070]: The value of a const declaration must be a literal
|
||||
--> compiler-test:7:9
|
||||
|
|
||||
7 | const A: () = ();
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
Error [ETYC0372056]: Unit expressions can only be used in return statements.
|
||||
--> compiler-test:7:23
|
||||
|
|
||||
7 | const A: () = ();
|
||||
| ^^
|
||||
Error [ETYC0372070]: The value of a const declaration must be a literal
|
||||
--> compiler-test:8:9
|
||||
|
|
||||
8 | const B: u8 = ((1u8,1u8),1u8);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Error [ETYC0372023]: Tuples must be explicitly typed in Leo
|
||||
--> compiler-test:8:23
|
||||
|
|
||||
8 | const B: u8 = ((1u8,1u8),1u8);
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= The function definition must match the function return statement
|
||||
"""]
|
||||
|
@ -1,18 +1,33 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 83e7e0873dd72e3da1df2a1a82b891a510ec0016f0e37208c42daca6ecc114d9
|
||||
type_checked_symbol_table: 9cff521828b8695385727d732d8cbc0d877b6158f29582d8fe6716f43fc52dc9
|
||||
unrolled_symbol_table: 9ba51c3ab1f4d8c42d09214355c9b7f0a7ba785e037e2bfb0c536e29afc1a469
|
||||
initial_ast: be00d02ab3c3b889fc1842c26280c35c1d2811e8ad97dfe9aae939cb6e17528d
|
||||
unrolled_ast: 492de3b239329a520383e6f09fc9988dedfecd6709006127af2d32f233a1c76e
|
||||
ssa_ast: 88f0d788cc578eb9255c096157fa8d3e801ba656314f39459a3413de844a52fe
|
||||
flattened_ast: 5e2bd3e32ab5add74daaf4f7d0287d4f987d3ea34a87c953ffc1a3207511e8f6
|
||||
destructured_ast: d49494485feecc89a2dc13fe39e0a904d17e79630f6dd2bc61c03a8fae22967a
|
||||
inlined_ast: 4e916f4e4287ff120cf4c99ab5c6c652e44bc083f1a994d8b9e7118fc3b6c26c
|
||||
dce_ast: 4e916f4e4287ff120cf4c99ab5c6c652e44bc083f1a994d8b9e7118fc3b6c26c
|
||||
bytecode: 1f274ff221668a27f086b94c9485486b9d5fe1374384f9092bb3198632da3b91
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "83e7e0873dd72e3da1df2a1a82b891a510ec0016f0e37208c42daca6ecc114d9", type_checked_symbol_table = "9cff521828b8695385727d732d8cbc0d877b6158f29582d8fe6716f43fc52dc9", unrolled_symbol_table = "9ba51c3ab1f4d8c42d09214355c9b7f0a7ba785e037e2bfb0c536e29afc1a469", initial_ast = "be00d02ab3c3b889fc1842c26280c35c1d2811e8ad97dfe9aae939cb6e17528d", unrolled_ast = "492de3b239329a520383e6f09fc9988dedfecd6709006127af2d32f233a1c76e", ssa_ast = "88f0d788cc578eb9255c096157fa8d3e801ba656314f39459a3413de844a52fe", flattened_ast = "5e2bd3e32ab5add74daaf4f7d0287d4f987d3ea34a87c953ffc1a3207511e8f6", destructured_ast = "d49494485feecc89a2dc13fe39e0a904d17e79630f6dd2bc61c03a8fae22967a", inlined_ast = "4e916f4e4287ff120cf4c99ab5c6c652e44bc083f1a994d8b9e7118fc3b6c26c", dce_ast = "4e916f4e4287ff120cf4c99ab5c6c652e44bc083f1a994d8b9e7118fc3b6c26c", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
mapping account:
|
||||
\tkey as address.public;
|
||||
\tvalue as u64.public;
|
||||
|
||||
|
||||
mapping values:
|
||||
\tkey as u8.public;
|
||||
\tvalue as u8.public;
|
||||
|
||||
|
||||
function finalize_self_caller:
|
||||
async finalize_self_caller self.caller into r0;
|
||||
output r0 as test.aleo/finalize_self_caller.future;
|
||||
|
||||
finalize finalize_self_caller:
|
||||
input r0 as address.public;
|
||||
get.or_use values[0u8] 0u8 into r1;
|
||||
add r1 3u8 into r2;
|
||||
add r2 1u8 into r3;
|
||||
add r3 1u8 into r4;
|
||||
set r4 into values[0u8];
|
||||
get.or_use account[r0] 0u64 into r5;
|
||||
add r5 1u64 into r6;
|
||||
set r6 into account[r0];
|
||||
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,62 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 4a5d78e0b3e37a6b912a8277304e8152e36e3376df8239c851bafa147a3a7aed
|
||||
type_checked_symbol_table: 56d61d0bc95b11c83a9d8bdff97d5f3b96ffcd2ed64f3d031ae12fb3419cb8d3
|
||||
unrolled_symbol_table: 7687d1610a4caa85db7b4fbaca1b57e88a4cd634bb218ebb6907041391a421a1
|
||||
initial_ast: 812159a832e2cf564c38afc08d09e2bae9f3d1cf76fb833b5cc554aebc32c90a
|
||||
unrolled_ast: 13e11cafcf91d5b7d0cfe69930d22a09b1e95c6e42abd614c12c2341a943c3d5
|
||||
ssa_ast: 8dd73c84e71e192b7d1b72c9f920043f1a2a3045a6761ef2ba493bd1853962c6
|
||||
flattened_ast: 6f80c4f0886538291cbed18cfee5b7a295cf2d9ec8d98a62a34a1664e465c023
|
||||
destructured_ast: 1a5edd4f63b4678c5e2d0dd844b1255d269ba2e0562b02884069824f0a58a554
|
||||
inlined_ast: 1a5edd4f63b4678c5e2d0dd844b1255d269ba2e0562b02884069824f0a58a554
|
||||
dce_ast: 1a5edd4f63b4678c5e2d0dd844b1255d269ba2e0562b02884069824f0a58a554
|
||||
bytecode: a6350aaded46f7047061f7e68a8ae41eb8aa0d29f02560257ecdc582a6c684f9
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "4a5d78e0b3e37a6b912a8277304e8152e36e3376df8239c851bafa147a3a7aed", type_checked_symbol_table = "56d61d0bc95b11c83a9d8bdff97d5f3b96ffcd2ed64f3d031ae12fb3419cb8d3", unrolled_symbol_table = "7687d1610a4caa85db7b4fbaca1b57e88a4cd634bb218ebb6907041391a421a1", initial_ast = "812159a832e2cf564c38afc08d09e2bae9f3d1cf76fb833b5cc554aebc32c90a", unrolled_ast = "13e11cafcf91d5b7d0cfe69930d22a09b1e95c6e42abd614c12c2341a943c3d5", ssa_ast = "8dd73c84e71e192b7d1b72c9f920043f1a2a3045a6761ef2ba493bd1853962c6", flattened_ast = "6f80c4f0886538291cbed18cfee5b7a295cf2d9ec8d98a62a34a1664e465c023", destructured_ast = "1a5edd4f63b4678c5e2d0dd844b1255d269ba2e0562b02884069824f0a58a554", inlined_ast = "1a5edd4f63b4678c5e2d0dd844b1255d269ba2e0562b02884069824f0a58a554", dce_ast = "1a5edd4f63b4678c5e2d0dd844b1255d269ba2e0562b02884069824f0a58a554", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as u8.private;
|
||||
input r1 as u8.private;
|
||||
input r2 as boolean.private;
|
||||
add 1u8 0u8 into r3;
|
||||
add r3 1u8 into r4;
|
||||
add r4 2u8 into r5;
|
||||
add r5 3u8 into r6;
|
||||
add r6 4u8 into r7;
|
||||
add r7 5u8 into r8;
|
||||
add r8 6u8 into r9;
|
||||
add r9 7u8 into r10;
|
||||
add r10 8u8 into r11;
|
||||
add r11 9u8 into r12;
|
||||
add r12 0u8 into r13;
|
||||
add r13 1u8 into r14;
|
||||
add r14 2u8 into r15;
|
||||
add r15 3u8 into r16;
|
||||
add r16 4u8 into r17;
|
||||
add r17 5u8 into r18;
|
||||
add r18 6u8 into r19;
|
||||
add r19 7u8 into r20;
|
||||
add r20 8u8 into r21;
|
||||
add r21 9u8 into r22;
|
||||
add r22 0u8 into r23;
|
||||
add r23 1u8 into r24;
|
||||
add r24 2u8 into r25;
|
||||
add r25 3u8 into r26;
|
||||
add r26 4u8 into r27;
|
||||
add r27 5u8 into r28;
|
||||
add r28 6u8 into r29;
|
||||
add r29 7u8 into r30;
|
||||
add r30 8u8 into r31;
|
||||
add r31 9u8 into r32;
|
||||
add r32 1u8 into r33;
|
||||
add r33 2u8 into r34;
|
||||
add r34 3u8 into r35;
|
||||
add r35 4u8 into r36;
|
||||
add r36 5u8 into r37;
|
||||
add r37 6u8 into r38;
|
||||
add r38 7u8 into r39;
|
||||
add r39 8u8 into r40;
|
||||
add r40 9u8 into r41;
|
||||
add r41 10u8 into r42;
|
||||
add r42 11u8 into r43;
|
||||
add r43 12u8 into r44;
|
||||
add r44 13u8 into r45;
|
||||
add r45 14u8 into r46;
|
||||
add r46 15u8 into r47;
|
||||
add r47 16u8 into r48;
|
||||
add r48 17u8 into r49;
|
||||
add r49 18u8 into r50;
|
||||
add r50 19u8 into r51;
|
||||
output r51 as u8.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
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"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372003]: Expected type `u8` but type `u32` was found
|
||||
--> compiler-test:8:22
|
||||
|
|
||||
8 | for i: u8 in START..STOP {
|
||||
| ^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ELUN0379000]: The loop range must be increasing.\n --> compiler-test:6:26\n |\n 6 | const STOP: u8 = 0u8;\n | ^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ELUN0379000]: The loop range must be increasing.
|
||||
--> compiler-test:6:26
|
||||
|
|
||||
6 | const STOP: u8 = 0u8;
|
||||
| ^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EAST0372009]: variable `HELLO` shadowed by\n --> compiler-test:5:11\n |\n 5 | const HELLO: u8 = 1u8;\n | ^^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [EAST0372009]: variable `HELLO` shadowed by
|
||||
--> compiler-test:5:11
|
||||
|
|
||||
5 | const HELLO: u8 = 1u8;
|
||||
| ^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EAST0372009]: variable `HELLO` shadowed by\n --> compiler-test:11:23\n |\n 11 | const HELLO:u8 = 1u8;\n | ^^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [EAST0372009]: variable `HELLO` shadowed by
|
||||
--> compiler-test:11:23
|
||||
|
|
||||
11 | const HELLO:u8 = 1u8;
|
||||
| ^^^^^
|
||||
"""]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,9 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372002]: Cannot assign to const variable `HELLO`\n --> compiler-test:4:11\n |\n 4 | const HELLO: u8 = 0u8;\n | ^^^^^\n"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [ETYC0372002]: Cannot assign to const variable `HELLO`
|
||||
--> compiler-test:4:11
|
||||
|
|
||||
4 | const HELLO: u8 = 0u8;
|
||||
| ^^^^^
|
||||
"""]
|
||||
|
@ -1,5 +1,8 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> compiler-test:4:11\n |\n 4 | const (HELLO,GOODBYE): (u8,u8) = (1u8, 1u8);\n | ^"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [EPAR0370009]: unexpected string: expected 'identifier', found '('
|
||||
--> compiler-test:4:11
|
||||
|
|
||||
4 | const (HELLO,GOODBYE): (u8,u8) = (1u8, 1u8);
|
||||
| ^"""]
|
||||
|
@ -1,5 +1,8 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> compiler-test:4:11\n |\n 4 | const (HELLO,GOODBYE): (u8,u8) = (0u8,0u8);\n | ^"
|
||||
namespace = "Compile"
|
||||
expectation = "Fail"
|
||||
outputs = ["""
|
||||
Error [EPAR0370009]: unexpected string: expected 'identifier', found '('
|
||||
--> compiler-test:4:11
|
||||
|
|
||||
4 | const (HELLO,GOODBYE): (u8,u8) = (0u8,0u8);
|
||||
| ^"""]
|
||||
|
@ -1,18 +1,13 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: b0ff324bab016466fe1fca2bda97adeb161701ab4672d91b41146b5da9670c2d
|
||||
type_checked_symbol_table: cae5172f09f56d0792b62803e7936f1431912008a8f94d3c81cf8e9fbad07686
|
||||
unrolled_symbol_table: be52d8f75e0af71b844cf4e0792f4f3fbf719719dcfcc498695f9f74462498f9
|
||||
initial_ast: 163b4dae689a449686c0502351d2551d84266e67e9fb1615e4d9111980318b98
|
||||
unrolled_ast: 3a1ad696a74a677470784b58c86892473569dc3ca24b5e8af369578d5b4c9e2c
|
||||
ssa_ast: e72a98e3883f0413743a99d7fc497dbb4a0d3043dc799efad7e4e2c123f31798
|
||||
flattened_ast: cdba644ab0c19a4179af132ca31cd1954d568a43d4dd2c46607a8f3a6acd7b74
|
||||
destructured_ast: 106d309f035b5a9f27d68857465438181cced1fe2aeb55bb88b3bd78020b2d45
|
||||
inlined_ast: 106d309f035b5a9f27d68857465438181cced1fe2aeb55bb88b3bd78020b2d45
|
||||
dce_ast: 2850d94546108c234b8a53ad5509225fbb5f31143125812fdbffa5ddf6874f30
|
||||
bytecode: a5ef8b434b2a8b1939f1d042fd5706c996e0f1905bf2395a0f140cff779ce48a
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "b0ff324bab016466fe1fca2bda97adeb161701ab4672d91b41146b5da9670c2d", type_checked_symbol_table = "cae5172f09f56d0792b62803e7936f1431912008a8f94d3c81cf8e9fbad07686", unrolled_symbol_table = "be52d8f75e0af71b844cf4e0792f4f3fbf719719dcfcc498695f9f74462498f9", initial_ast = "163b4dae689a449686c0502351d2551d84266e67e9fb1615e4d9111980318b98", unrolled_ast = "3a1ad696a74a677470784b58c86892473569dc3ca24b5e8af369578d5b4c9e2c", ssa_ast = "e72a98e3883f0413743a99d7fc497dbb4a0d3043dc799efad7e4e2c123f31798", flattened_ast = "cdba644ab0c19a4179af132ca31cd1954d568a43d4dd2c46607a8f3a6acd7b74", destructured_ast = "106d309f035b5a9f27d68857465438181cced1fe2aeb55bb88b3bd78020b2d45", inlined_ast = "106d309f035b5a9f27d68857465438181cced1fe2aeb55bb88b3bd78020b2d45", dce_ast = "2850d94546108c234b8a53ad5509225fbb5f31143125812fdbffa5ddf6874f30", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
|
||||
|
||||
function foo:
|
||||
input r0 as u32.private;
|
||||
input r1 as u32.private;
|
||||
input r2 as boolean.private;
|
||||
output 1u32 as u32.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
unrolled_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
initial_ast: 9873ff758c10d6da0f990191e58448d7ce86eefdefcc552dadfa22704ae4b67c
|
||||
unrolled_ast: 9873ff758c10d6da0f990191e58448d7ce86eefdefcc552dadfa22704ae4b67c
|
||||
ssa_ast: cdeeb803bc2b12522f2212a8afbe77347365e3cbab96c0cc187153348724df30
|
||||
flattened_ast: 282834fdda271bfb3da0d2d7793c3a228291423b3841c0ee6647b5feeb20f3f5
|
||||
destructured_ast: 5923d26ca892984ea767bfcab7f8691ddd551b7063bee6718673a56d987738bc
|
||||
inlined_ast: 5923d26ca892984ea767bfcab7f8691ddd551b7063bee6718673a56d987738bc
|
||||
dce_ast: dd064cca623862213f1556626d81e10f592a335a1f7388059f821fd6353a6632
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", unrolled_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", initial_ast = "9873ff758c10d6da0f990191e58448d7ce86eefdefcc552dadfa22704ae4b67c", unrolled_ast = "9873ff758c10d6da0f990191e58448d7ce86eefdefcc552dadfa22704ae4b67c", ssa_ast = "cdeeb803bc2b12522f2212a8afbe77347365e3cbab96c0cc187153348724df30", flattened_ast = "282834fdda271bfb3da0d2d7793c3a228291423b3841c0ee6647b5feeb20f3f5", destructured_ast = "5923d26ca892984ea767bfcab7f8691ddd551b7063bee6718673a56d987738bc", inlined_ast = "5923d26ca892984ea767bfcab7f8691ddd551b7063bee6718673a56d987738bc", dce_ast = "dd064cca623862213f1556626d81e10f592a335a1f7388059f821fd6353a6632", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67
|
||||
unrolled_symbol_table: 4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67
|
||||
initial_ast: 45954f2ded7ad4317c19985fc254d9dc70b01a8209b2c13dd211c1067adcb888
|
||||
unrolled_ast: 45954f2ded7ad4317c19985fc254d9dc70b01a8209b2c13dd211c1067adcb888
|
||||
ssa_ast: 91a085fe2fc9ad762873f67650da380c08934df9f9276be12fb407a194d6f684
|
||||
flattened_ast: 6d1599503d379d65c671296302ee6d64c127a1a161bf69c9a1b841436488b982
|
||||
destructured_ast: ffc1da3ede363d5fd8581998a698d85794bc19d79026943e34232563ca90e58b
|
||||
inlined_ast: ffc1da3ede363d5fd8581998a698d85794bc19d79026943e34232563ca90e58b
|
||||
dce_ast: 2273846d1d88dba8ce2b524e7b6dbaf0e093ded9354d8ef217111e87293651b9
|
||||
bytecode: 89209e8d86f847dbf47309d0092ee98ff4c7e72f93c06aa16b185b87931b4163
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67", unrolled_symbol_table = "4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67", initial_ast = "45954f2ded7ad4317c19985fc254d9dc70b01a8209b2c13dd211c1067adcb888", unrolled_ast = "45954f2ded7ad4317c19985fc254d9dc70b01a8209b2c13dd211c1067adcb888", ssa_ast = "91a085fe2fc9ad762873f67650da380c08934df9f9276be12fb407a194d6f684", flattened_ast = "6d1599503d379d65c671296302ee6d64c127a1a161bf69c9a1b841436488b982", destructured_ast = "ffc1da3ede363d5fd8581998a698d85794bc19d79026943e34232563ca90e58b", inlined_ast = "ffc1da3ede363d5fd8581998a698d85794bc19d79026943e34232563ca90e58b", dce_ast = "2273846d1d88dba8ce2b524e7b6dbaf0e093ded9354d8ef217111e87293651b9", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as field;
|
||||
commit.bhp1024 1scalar 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: 1c163f034fd1e1185cdc76efb2e337dc3d46a4b12d55497245f209399c064a24
|
||||
unrolled_ast: 1c163f034fd1e1185cdc76efb2e337dc3d46a4b12d55497245f209399c064a24
|
||||
ssa_ast: 4e0df0b799fafd9e6fc57904ef02e0b026a17042cb6fbd3c19231d20124696cd
|
||||
flattened_ast: 5bf3de768dd0d1772bb76aeaf703ab13f72e5e372a3e49a91ba37019df6eb613
|
||||
destructured_ast: 3b5e2a7639bd0ee09f32d1a8ecf7a98345b173333fe419bdfc5cb3a26287a1fe
|
||||
inlined_ast: 3b5e2a7639bd0ee09f32d1a8ecf7a98345b173333fe419bdfc5cb3a26287a1fe
|
||||
dce_ast: 6611276029e033b62fc0192539ae527a042085a066404dd3923267d6a28b2a2c
|
||||
bytecode: 44723f1147fbb09b330db772453005ab5dae98a53925a9dc45b66daa51584290
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "1c163f034fd1e1185cdc76efb2e337dc3d46a4b12d55497245f209399c064a24", unrolled_ast = "1c163f034fd1e1185cdc76efb2e337dc3d46a4b12d55497245f209399c064a24", ssa_ast = "4e0df0b799fafd9e6fc57904ef02e0b026a17042cb6fbd3c19231d20124696cd", flattened_ast = "5bf3de768dd0d1772bb76aeaf703ab13f72e5e372a3e49a91ba37019df6eb613", destructured_ast = "3b5e2a7639bd0ee09f32d1a8ecf7a98345b173333fe419bdfc5cb3a26287a1fe", inlined_ast = "3b5e2a7639bd0ee09f32d1a8ecf7a98345b173333fe419bdfc5cb3a26287a1fe", dce_ast = "6611276029e033b62fc0192539ae527a042085a066404dd3923267d6a28b2a2c", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as group;
|
||||
commit.bhp1024 1scalar 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
unrolled_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
initial_ast: a3dd97bc31b1dc64c7608e1fc5ad68b8d0d3f781e49c207928f5d425f1fd1bf9
|
||||
unrolled_ast: a3dd97bc31b1dc64c7608e1fc5ad68b8d0d3f781e49c207928f5d425f1fd1bf9
|
||||
ssa_ast: ed3fd32fe2f8d8f419bdbf1abf78c6f1af1e0ee9ee74188e48886205b7a9744a
|
||||
flattened_ast: 1296938ea71288a8b64f116c48377f091f366a4a01cf9f20a9aadd3676d89a84
|
||||
destructured_ast: aaf2797e71fc28e403368fbceb36062a0b1352e9d7ac6caeecb1d250f0e9e84c
|
||||
inlined_ast: aaf2797e71fc28e403368fbceb36062a0b1352e9d7ac6caeecb1d250f0e9e84c
|
||||
dce_ast: f22471183488a6b6d96935c302e8b542b24e5e7ea3c947b0c8f01c52687bc37e
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", unrolled_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", initial_ast = "a3dd97bc31b1dc64c7608e1fc5ad68b8d0d3f781e49c207928f5d425f1fd1bf9", unrolled_ast = "a3dd97bc31b1dc64c7608e1fc5ad68b8d0d3f781e49c207928f5d425f1fd1bf9", ssa_ast = "ed3fd32fe2f8d8f419bdbf1abf78c6f1af1e0ee9ee74188e48886205b7a9744a", flattened_ast = "1296938ea71288a8b64f116c48377f091f366a4a01cf9f20a9aadd3676d89a84", destructured_ast = "aaf2797e71fc28e403368fbceb36062a0b1352e9d7ac6caeecb1d250f0e9e84c", inlined_ast = "aaf2797e71fc28e403368fbceb36062a0b1352e9d7ac6caeecb1d250f0e9e84c", dce_ast = "f22471183488a6b6d96935c302e8b542b24e5e7ea3c947b0c8f01c52687bc37e", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
unrolled_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
initial_ast: 61fef7bc7d35be574e5f9353c089561c113afe14c755051cdfac56879b67b6f8
|
||||
unrolled_ast: 61fef7bc7d35be574e5f9353c089561c113afe14c755051cdfac56879b67b6f8
|
||||
ssa_ast: 5de3029f4a7bb61031f1852bcd6163cf8e40e10352746016f33aad682f810e5d
|
||||
flattened_ast: dd29a1fa78efcb5fa7e428276e9285105ffef017e43d8d4a3eee6a47d3604fab
|
||||
destructured_ast: 420edf1819b67e9e9e25822608379793a3aa7a9c85e858695c0349a6dbc34881
|
||||
inlined_ast: 420edf1819b67e9e9e25822608379793a3aa7a9c85e858695c0349a6dbc34881
|
||||
dce_ast: 3cd075a82acacaf50339ddc532e27e0504d7c337ae6468998c2d8e82f20bfe40
|
||||
bytecode: 1ee04c880a78442953925baa8e3c60e416d77c926da80774db6961188aaba65a
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", unrolled_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", initial_ast = "61fef7bc7d35be574e5f9353c089561c113afe14c755051cdfac56879b67b6f8", unrolled_ast = "61fef7bc7d35be574e5f9353c089561c113afe14c755051cdfac56879b67b6f8", ssa_ast = "5de3029f4a7bb61031f1852bcd6163cf8e40e10352746016f33aad682f810e5d", flattened_ast = "dd29a1fa78efcb5fa7e428276e9285105ffef017e43d8d4a3eee6a47d3604fab", destructured_ast = "420edf1819b67e9e9e25822608379793a3aa7a9c85e858695c0349a6dbc34881", inlined_ast = "420edf1819b67e9e9e25822608379793a3aa7a9c85e858695c0349a6dbc34881", dce_ast = "3cd075a82acacaf50339ddc532e27e0504d7c337ae6468998c2d8e82f20bfe40", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as field;
|
||||
hash.bhp1024 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: 69ba7af7318b356010c470baa89403e4b3bf78c69678f4bdb8ff2a8795b622ed
|
||||
unrolled_ast: 69ba7af7318b356010c470baa89403e4b3bf78c69678f4bdb8ff2a8795b622ed
|
||||
ssa_ast: e7c54cfae2b8380df7a81f6cc3da47ea623b350766897ed1070e6ca9888bc4ad
|
||||
flattened_ast: 11c06e77fb2d9c279653af9fe561ebdb18afc0d7d12209a6093716aae15e90f5
|
||||
destructured_ast: 0e3d7a62e620506342a715698e35dcc1711298adb8c49c88386bf0e16992f5d4
|
||||
inlined_ast: 0e3d7a62e620506342a715698e35dcc1711298adb8c49c88386bf0e16992f5d4
|
||||
dce_ast: a99474055784ba90aa18abb8f629f9e782426703805aa8221dad832b2fa4aa4b
|
||||
bytecode: 6e17954a1a55bf11bcac1b381fc6a82ee849f92a9af06d755ee3d6e3cd3b748d
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "69ba7af7318b356010c470baa89403e4b3bf78c69678f4bdb8ff2a8795b622ed", unrolled_ast = "69ba7af7318b356010c470baa89403e4b3bf78c69678f4bdb8ff2a8795b622ed", ssa_ast = "e7c54cfae2b8380df7a81f6cc3da47ea623b350766897ed1070e6ca9888bc4ad", flattened_ast = "11c06e77fb2d9c279653af9fe561ebdb18afc0d7d12209a6093716aae15e90f5", destructured_ast = "0e3d7a62e620506342a715698e35dcc1711298adb8c49c88386bf0e16992f5d4", inlined_ast = "0e3d7a62e620506342a715698e35dcc1711298adb8c49c88386bf0e16992f5d4", dce_ast = "a99474055784ba90aa18abb8f629f9e782426703805aa8221dad832b2fa4aa4b", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as group;
|
||||
hash.bhp1024 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5
|
||||
type_checked_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
unrolled_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
initial_ast: f405095809db6c091f111abe5150dd9006a07cd0f132f06b27a2a8b508358e18
|
||||
unrolled_ast: f405095809db6c091f111abe5150dd9006a07cd0f132f06b27a2a8b508358e18
|
||||
ssa_ast: 18e01f5084ba96a39dc25e18c44d911be333b8e9580dfd595f1de026582e9c19
|
||||
flattened_ast: fa21a9ca89789634065434f5ebc78410950a531176db8a832c7cc67d5a8f54a5
|
||||
destructured_ast: 1bc4d9e39e98ef64605bb826914d34a4396b47a08fc6fa8160d4441355e64893
|
||||
inlined_ast: 1bc4d9e39e98ef64605bb826914d34a4396b47a08fc6fa8160d4441355e64893
|
||||
dce_ast: 0d3f409259a87700f5d103681faecd747c6aeb3f4f1d614dfa45ea2910b65f02
|
||||
bytecode: 16448534dab09040c482f623815abdd0bd2e330d2cb99bc095142027c80e9bf0
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5", type_checked_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", unrolled_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", initial_ast = "f405095809db6c091f111abe5150dd9006a07cd0f132f06b27a2a8b508358e18", unrolled_ast = "f405095809db6c091f111abe5150dd9006a07cd0f132f06b27a2a8b508358e18", ssa_ast = "18e01f5084ba96a39dc25e18c44d911be333b8e9580dfd595f1de026582e9c19", flattened_ast = "fa21a9ca89789634065434f5ebc78410950a531176db8a832c7cc67d5a8f54a5", destructured_ast = "1bc4d9e39e98ef64605bb826914d34a4396b47a08fc6fa8160d4441355e64893", inlined_ast = "1bc4d9e39e98ef64605bb826914d34a4396b47a08fc6fa8160d4441355e64893", dce_ast = "0d3f409259a87700f5d103681faecd747c6aeb3f4f1d614dfa45ea2910b65f02", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as scalar;
|
||||
hash.bhp1024 1scalar into r9 as scalar;
|
||||
add r8 r9 into r10;
|
||||
output r10 as scalar.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
unrolled_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
initial_ast: d875d33ca0e9999c43abfd6ee599f810781eaa64ed0cdcc85f4cef1a26679326
|
||||
unrolled_ast: d875d33ca0e9999c43abfd6ee599f810781eaa64ed0cdcc85f4cef1a26679326
|
||||
ssa_ast: 8962273edb5e52fe057895069340389490eefe632f26e8481ef5db34acdf594c
|
||||
flattened_ast: e37166f0aab409ccd348b334cea9c25f9536aceda73a28657e1725b42205a503
|
||||
destructured_ast: 6f7c0d49e5649e8771085066cd2293410c398c17e64ff8d62c8f2cd681d5fbe7
|
||||
inlined_ast: 6f7c0d49e5649e8771085066cd2293410c398c17e64ff8d62c8f2cd681d5fbe7
|
||||
dce_ast: bac68877a43e59546969a53a31ce99653130b5ab829ae7c191757101952c0410
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", unrolled_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", initial_ast = "d875d33ca0e9999c43abfd6ee599f810781eaa64ed0cdcc85f4cef1a26679326", unrolled_ast = "d875d33ca0e9999c43abfd6ee599f810781eaa64ed0cdcc85f4cef1a26679326", ssa_ast = "8962273edb5e52fe057895069340389490eefe632f26e8481ef5db34acdf594c", flattened_ast = "e37166f0aab409ccd348b334cea9c25f9536aceda73a28657e1725b42205a503", destructured_ast = "6f7c0d49e5649e8771085066cd2293410c398c17e64ff8d62c8f2cd681d5fbe7", inlined_ast = "6f7c0d49e5649e8771085066cd2293410c398c17e64ff8d62c8f2cd681d5fbe7", dce_ast = "bac68877a43e59546969a53a31ce99653130b5ab829ae7c191757101952c0410", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67
|
||||
unrolled_symbol_table: 4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67
|
||||
initial_ast: 8a57c8bea6a6632fefc0df055235587cec77e606c7c1b942b6fd1efb48caf84f
|
||||
unrolled_ast: 8a57c8bea6a6632fefc0df055235587cec77e606c7c1b942b6fd1efb48caf84f
|
||||
ssa_ast: efb291de0328446a42e590c8bd4918694ebe459516fe86329fd747dbfc998472
|
||||
flattened_ast: a86616f6774a6e83edcd9b7574fbdbb691252a32df6918b73011059366d36dbe
|
||||
destructured_ast: a6f5575da143e202778ba9de1f33e51cac92ce5e5a395479431b9a3b2d8422c7
|
||||
inlined_ast: a6f5575da143e202778ba9de1f33e51cac92ce5e5a395479431b9a3b2d8422c7
|
||||
dce_ast: 3bb158d2ef5fe7a8d387c35dbe4b7069f49fd474ed9a793eb1ce1fce2d1e75bf
|
||||
bytecode: cbaea392a3a5a598090b5c75eebfc840f9fd1f4dd9460704bd82c17acfedcedf
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67", unrolled_symbol_table = "4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67", initial_ast = "8a57c8bea6a6632fefc0df055235587cec77e606c7c1b942b6fd1efb48caf84f", unrolled_ast = "8a57c8bea6a6632fefc0df055235587cec77e606c7c1b942b6fd1efb48caf84f", ssa_ast = "efb291de0328446a42e590c8bd4918694ebe459516fe86329fd747dbfc998472", flattened_ast = "a86616f6774a6e83edcd9b7574fbdbb691252a32df6918b73011059366d36dbe", destructured_ast = "a6f5575da143e202778ba9de1f33e51cac92ce5e5a395479431b9a3b2d8422c7", inlined_ast = "a6f5575da143e202778ba9de1f33e51cac92ce5e5a395479431b9a3b2d8422c7", dce_ast = "3bb158d2ef5fe7a8d387c35dbe4b7069f49fd474ed9a793eb1ce1fce2d1e75bf", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as field;
|
||||
commit.bhp256 1scalar 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: e3bf36328e9bafe4e3b81ae0ceb5bd6dc73cc9ca51727d14501a5673d25afa53
|
||||
unrolled_ast: e3bf36328e9bafe4e3b81ae0ceb5bd6dc73cc9ca51727d14501a5673d25afa53
|
||||
ssa_ast: da0e22cfd7aae96b559fc2e2b41a6992c7bf4c277d67545c335a1586d4de7c7b
|
||||
flattened_ast: 566dd8c1f54b3e74efa7e577902dd03f601f79d826b7dcf0c63872a94b59e560
|
||||
destructured_ast: f5b521fa1d75e961db1d41251288d968c27e40266402ebc69dbffa3a80d13861
|
||||
inlined_ast: f5b521fa1d75e961db1d41251288d968c27e40266402ebc69dbffa3a80d13861
|
||||
dce_ast: 7579e9d7d7bb4299281afb520d80f1e28309ea773c68ff5f981da57338d82ef0
|
||||
bytecode: 5d5cbe495e958d3762c2656dc336bd9fd903b5e0b8b51684f3556ca4b5281344
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "e3bf36328e9bafe4e3b81ae0ceb5bd6dc73cc9ca51727d14501a5673d25afa53", unrolled_ast = "e3bf36328e9bafe4e3b81ae0ceb5bd6dc73cc9ca51727d14501a5673d25afa53", ssa_ast = "da0e22cfd7aae96b559fc2e2b41a6992c7bf4c277d67545c335a1586d4de7c7b", flattened_ast = "566dd8c1f54b3e74efa7e577902dd03f601f79d826b7dcf0c63872a94b59e560", destructured_ast = "f5b521fa1d75e961db1d41251288d968c27e40266402ebc69dbffa3a80d13861", inlined_ast = "f5b521fa1d75e961db1d41251288d968c27e40266402ebc69dbffa3a80d13861", dce_ast = "7579e9d7d7bb4299281afb520d80f1e28309ea773c68ff5f981da57338d82ef0", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as group;
|
||||
commit.bhp256 1scalar 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
unrolled_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
initial_ast: 54d5789b9203beae85c2a109a1cb48db19e732fc5a1c4ebd961404b548cbfec6
|
||||
unrolled_ast: 54d5789b9203beae85c2a109a1cb48db19e732fc5a1c4ebd961404b548cbfec6
|
||||
ssa_ast: 19f9e1226c418bfee16fb4db866978220a04685453abc1ea78b4c1ce9b8fcc6a
|
||||
flattened_ast: 86050d5626e8e03a046b9c6e98ed1abe7ed1fcdceb928ff2bd536642b5cf46be
|
||||
destructured_ast: 2e1906abbf3c7ae55a4059dc421c68c854135a22723e6560bbd6c5824137180c
|
||||
inlined_ast: 2e1906abbf3c7ae55a4059dc421c68c854135a22723e6560bbd6c5824137180c
|
||||
dce_ast: 0462c15d429b8c65c4375284d9496131c4441e67282fee93a9f0b9a581c9fc87
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", unrolled_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", initial_ast = "54d5789b9203beae85c2a109a1cb48db19e732fc5a1c4ebd961404b548cbfec6", unrolled_ast = "54d5789b9203beae85c2a109a1cb48db19e732fc5a1c4ebd961404b548cbfec6", ssa_ast = "19f9e1226c418bfee16fb4db866978220a04685453abc1ea78b4c1ce9b8fcc6a", flattened_ast = "86050d5626e8e03a046b9c6e98ed1abe7ed1fcdceb928ff2bd536642b5cf46be", destructured_ast = "2e1906abbf3c7ae55a4059dc421c68c854135a22723e6560bbd6c5824137180c", inlined_ast = "2e1906abbf3c7ae55a4059dc421c68c854135a22723e6560bbd6c5824137180c", dce_ast = "0462c15d429b8c65c4375284d9496131c4441e67282fee93a9f0b9a581c9fc87", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
unrolled_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
initial_ast: f761e8138c6766dd7d8a1707de6ccec23c5c377812b477ebec3d295bc2f79a02
|
||||
unrolled_ast: f761e8138c6766dd7d8a1707de6ccec23c5c377812b477ebec3d295bc2f79a02
|
||||
ssa_ast: d9145a2183c23ebb95bd6518bff3b3f012f2e6da03e1d7e9cd3579f15720e7a6
|
||||
flattened_ast: ce87bef92fda0939fbd0d1ba19647df9cc91e17e51df18a8975371b56a6ed23e
|
||||
destructured_ast: 1f3e64a523f29f00fa59c82fe910d5005031e8ebd21c789d51734c5d8e13aed5
|
||||
inlined_ast: 1f3e64a523f29f00fa59c82fe910d5005031e8ebd21c789d51734c5d8e13aed5
|
||||
dce_ast: cffb2c5eeb571350d21a5dd1d3a42bf9e8c81b11107852f549745c115aaeb604
|
||||
bytecode: 928ec4195678229549fe7ec5b3291d7c72afb95787099dbfca6118539bcc2fd0
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", unrolled_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", initial_ast = "f761e8138c6766dd7d8a1707de6ccec23c5c377812b477ebec3d295bc2f79a02", unrolled_ast = "f761e8138c6766dd7d8a1707de6ccec23c5c377812b477ebec3d295bc2f79a02", ssa_ast = "d9145a2183c23ebb95bd6518bff3b3f012f2e6da03e1d7e9cd3579f15720e7a6", flattened_ast = "ce87bef92fda0939fbd0d1ba19647df9cc91e17e51df18a8975371b56a6ed23e", destructured_ast = "1f3e64a523f29f00fa59c82fe910d5005031e8ebd21c789d51734c5d8e13aed5", inlined_ast = "1f3e64a523f29f00fa59c82fe910d5005031e8ebd21c789d51734c5d8e13aed5", dce_ast = "cffb2c5eeb571350d21a5dd1d3a42bf9e8c81b11107852f549745c115aaeb604", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as field;
|
||||
hash.bhp256 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: 8e44992dd5fe4fe9e1e522e695ca70d239f3eeccc3728b150ed9364421be09c4
|
||||
unrolled_ast: 8e44992dd5fe4fe9e1e522e695ca70d239f3eeccc3728b150ed9364421be09c4
|
||||
ssa_ast: 6acbe24af7ad5a0c469dd53118362a8882c8d59a5f766af6782531108c47326c
|
||||
flattened_ast: 9373e82b218ce1b7cd4f5276cfaf3295f93b3d104ae073c6b04e225018bb57fe
|
||||
destructured_ast: e85f838f76070991ca098bdba4c1dce1f7918403840321920525250fa5ee4073
|
||||
inlined_ast: e85f838f76070991ca098bdba4c1dce1f7918403840321920525250fa5ee4073
|
||||
dce_ast: b4e7468676095289b2e6048f8644f63f87391e9670df3b27a60eba3089b4e3ef
|
||||
bytecode: c87c15be54d6c1ca80ab86ca735443a949fd9e3bdf7534136ec4c9bb5443fa77
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "8e44992dd5fe4fe9e1e522e695ca70d239f3eeccc3728b150ed9364421be09c4", unrolled_ast = "8e44992dd5fe4fe9e1e522e695ca70d239f3eeccc3728b150ed9364421be09c4", ssa_ast = "6acbe24af7ad5a0c469dd53118362a8882c8d59a5f766af6782531108c47326c", flattened_ast = "9373e82b218ce1b7cd4f5276cfaf3295f93b3d104ae073c6b04e225018bb57fe", destructured_ast = "e85f838f76070991ca098bdba4c1dce1f7918403840321920525250fa5ee4073", inlined_ast = "e85f838f76070991ca098bdba4c1dce1f7918403840321920525250fa5ee4073", dce_ast = "b4e7468676095289b2e6048f8644f63f87391e9670df3b27a60eba3089b4e3ef", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as group;
|
||||
hash.bhp256 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5
|
||||
type_checked_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
unrolled_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
initial_ast: e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c
|
||||
unrolled_ast: e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c
|
||||
ssa_ast: 42bb275bb8f30f844e720e95ff44f8c2d8b2edc12ea4d29245ab4b13068b480f
|
||||
flattened_ast: 018dc16ea828956c4831a0867627751a833bef0e4b474918db2bc17b3658b1d8
|
||||
destructured_ast: 821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a
|
||||
inlined_ast: 821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a
|
||||
dce_ast: 82b0310905bf404ce4d12c69f1955ec06b6e7d09e957b532f73fd9191aeb4fcb
|
||||
bytecode: 39f2fd495ce761fe3a8fb011b05bfe34e50db91dbd7f9a5bec40a8aa8187f0b1
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5", type_checked_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", unrolled_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", initial_ast = "e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c", unrolled_ast = "e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c", ssa_ast = "42bb275bb8f30f844e720e95ff44f8c2d8b2edc12ea4d29245ab4b13068b480f", flattened_ast = "018dc16ea828956c4831a0867627751a833bef0e4b474918db2bc17b3658b1d8", destructured_ast = "821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a", inlined_ast = "821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a", dce_ast = "82b0310905bf404ce4d12c69f1955ec06b6e7d09e957b532f73fd9191aeb4fcb", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as scalar;
|
||||
hash.bhp256 1scalar into r9 as scalar;
|
||||
add r8 r9 into r10;
|
||||
output r10 as scalar.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
unrolled_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
initial_ast: 9beb01be0526c1dd87cf1ee4b518e380b933b4cc5ef32b489971808788443824
|
||||
unrolled_ast: 9beb01be0526c1dd87cf1ee4b518e380b933b4cc5ef32b489971808788443824
|
||||
ssa_ast: 4e4e56c9d3161547b75edb1da1569cf4ade698b7634827fcb92a4786ef2ec53c
|
||||
flattened_ast: fb6e4dc3d16ceb4f97857e76e70172e39a43ac271445606b764fad9356532b7c
|
||||
destructured_ast: 38629200e0a8a18e6678b4bfd323af0ffec8fd9c9d58b40b6b0c81ae693ad574
|
||||
inlined_ast: 38629200e0a8a18e6678b4bfd323af0ffec8fd9c9d58b40b6b0c81ae693ad574
|
||||
dce_ast: bac68877a43e59546969a53a31ce99653130b5ab829ae7c191757101952c0410
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", unrolled_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", initial_ast = "9beb01be0526c1dd87cf1ee4b518e380b933b4cc5ef32b489971808788443824", unrolled_ast = "9beb01be0526c1dd87cf1ee4b518e380b933b4cc5ef32b489971808788443824", ssa_ast = "4e4e56c9d3161547b75edb1da1569cf4ade698b7634827fcb92a4786ef2ec53c", flattened_ast = "fb6e4dc3d16ceb4f97857e76e70172e39a43ac271445606b764fad9356532b7c", destructured_ast = "38629200e0a8a18e6678b4bfd323af0ffec8fd9c9d58b40b6b0c81ae693ad574", inlined_ast = "38629200e0a8a18e6678b4bfd323af0ffec8fd9c9d58b40b6b0c81ae693ad574", dce_ast = "bac68877a43e59546969a53a31ce99653130b5ab829ae7c191757101952c0410", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 319b3f28310fb0c1b8191943507da58e87f0b6366b36a1294819522c6a949595
|
||||
unrolled_symbol_table: 319b3f28310fb0c1b8191943507da58e87f0b6366b36a1294819522c6a949595
|
||||
initial_ast: 27bc5906a51928b0733372051121207550866d123c2242209e13c65d8f6e9281
|
||||
unrolled_ast: 27bc5906a51928b0733372051121207550866d123c2242209e13c65d8f6e9281
|
||||
ssa_ast: 593af3220f044892fc107b07de09853e37d3b66cb1a93657a40565fcfd6f4ca7
|
||||
flattened_ast: f2cd64af1a30688d84cdaade0e9c6eb231ecdd0d2f7be1de83e3fd49e0a3d981
|
||||
destructured_ast: 0f195735c43c1c026d5e5cbfd852eef6bcd5802ad49c0c41cf44682879ad0e67
|
||||
inlined_ast: 0f195735c43c1c026d5e5cbfd852eef6bcd5802ad49c0c41cf44682879ad0e67
|
||||
dce_ast: 59f7ee2d326e132dd3913ea2baff62b9a5c48e2744ea1ef51380e3787996762f
|
||||
bytecode: 1a32babe51dec0ff82a035139fa96069e6b0f7b9e7ec8f08f0802bd076deffc9
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "319b3f28310fb0c1b8191943507da58e87f0b6366b36a1294819522c6a949595", unrolled_symbol_table = "319b3f28310fb0c1b8191943507da58e87f0b6366b36a1294819522c6a949595", initial_ast = "27bc5906a51928b0733372051121207550866d123c2242209e13c65d8f6e9281", unrolled_ast = "27bc5906a51928b0733372051121207550866d123c2242209e13c65d8f6e9281", ssa_ast = "593af3220f044892fc107b07de09853e37d3b66cb1a93657a40565fcfd6f4ca7", flattened_ast = "f2cd64af1a30688d84cdaade0e9c6eb231ecdd0d2f7be1de83e3fd49e0a3d981", destructured_ast = "0f195735c43c1c026d5e5cbfd852eef6bcd5802ad49c0c41cf44682879ad0e67", inlined_ast = "0f195735c43c1c026d5e5cbfd852eef6bcd5802ad49c0c41cf44682879ad0e67", dce_ast = "59f7ee2d326e132dd3913ea2baff62b9a5c48e2744ea1ef51380e3787996762f", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp512 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as field;
|
||||
commit.bhp512 1scalar 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: 8e5af978a77e15bbbf47f9025c5ad93b11577ef9b82a1b20835d7b476000074a
|
||||
unrolled_ast: 8e5af978a77e15bbbf47f9025c5ad93b11577ef9b82a1b20835d7b476000074a
|
||||
ssa_ast: e937decfcaff95c515d583feb0a34bf731c67bcbda8630d0582b1401d2f6c894
|
||||
flattened_ast: b1edf1cc607cb5008e0bfb45fd1c335b31877b4701f3b9cdbe1f8dafc2dd7e06
|
||||
destructured_ast: 8fb196364453dd517d282ecec4cbf3214d001ec642a084b62b75214b17469cfc
|
||||
inlined_ast: 8fb196364453dd517d282ecec4cbf3214d001ec642a084b62b75214b17469cfc
|
||||
dce_ast: 91b7c373ab7d91ceaed92088c802966d231a1c58c82cf3ae0ec21fa48bb66b69
|
||||
bytecode: 834629ba3e42f71f47ce3499d777661c415ac89ad9d797c54ec4267202d48690
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "8e5af978a77e15bbbf47f9025c5ad93b11577ef9b82a1b20835d7b476000074a", unrolled_ast = "8e5af978a77e15bbbf47f9025c5ad93b11577ef9b82a1b20835d7b476000074a", ssa_ast = "e937decfcaff95c515d583feb0a34bf731c67bcbda8630d0582b1401d2f6c894", flattened_ast = "b1edf1cc607cb5008e0bfb45fd1c335b31877b4701f3b9cdbe1f8dafc2dd7e06", destructured_ast = "8fb196364453dd517d282ecec4cbf3214d001ec642a084b62b75214b17469cfc", inlined_ast = "8fb196364453dd517d282ecec4cbf3214d001ec642a084b62b75214b17469cfc", dce_ast = "91b7c373ab7d91ceaed92088c802966d231a1c58c82cf3ae0ec21fa48bb66b69", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp512 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as group;
|
||||
commit.bhp512 1scalar 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
unrolled_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
initial_ast: 5f33c08cdb5e22d7c1205004378e2f12c9c1995ca6e2e5a4d26e3998f508c95b
|
||||
unrolled_ast: 5f33c08cdb5e22d7c1205004378e2f12c9c1995ca6e2e5a4d26e3998f508c95b
|
||||
ssa_ast: 8bbbff498274b89e30b9f1198241543378e0d6196b8b03035e2af4aafd054a7d
|
||||
flattened_ast: e8ce32f070f276be670a8f16e75875b64f602ccdde870e32f9379f065bf3bca8
|
||||
destructured_ast: ecbd683e2fe643bf66884f87e51189ebb546e9911b6fdee878bfb2e6af1e6851
|
||||
inlined_ast: ecbd683e2fe643bf66884f87e51189ebb546e9911b6fdee878bfb2e6af1e6851
|
||||
dce_ast: 0462c15d429b8c65c4375284d9496131c4441e67282fee93a9f0b9a581c9fc87
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", unrolled_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", initial_ast = "5f33c08cdb5e22d7c1205004378e2f12c9c1995ca6e2e5a4d26e3998f508c95b", unrolled_ast = "5f33c08cdb5e22d7c1205004378e2f12c9c1995ca6e2e5a4d26e3998f508c95b", ssa_ast = "8bbbff498274b89e30b9f1198241543378e0d6196b8b03035e2af4aafd054a7d", flattened_ast = "e8ce32f070f276be670a8f16e75875b64f602ccdde870e32f9379f065bf3bca8", destructured_ast = "ecbd683e2fe643bf66884f87e51189ebb546e9911b6fdee878bfb2e6af1e6851", inlined_ast = "ecbd683e2fe643bf66884f87e51189ebb546e9911b6fdee878bfb2e6af1e6851", dce_ast = "0462c15d429b8c65c4375284d9496131c4441e67282fee93a9f0b9a581c9fc87", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
unrolled_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
initial_ast: 16cc9b0724e9b9710a1fb2b2a102bf195cdf67ef04faff80eb44a98684d53287
|
||||
unrolled_ast: 16cc9b0724e9b9710a1fb2b2a102bf195cdf67ef04faff80eb44a98684d53287
|
||||
ssa_ast: fdcb2dd71b3081a87535865597a60e3611c6d06099cb5f1437f87e8a854b860b
|
||||
flattened_ast: 9622685fa672d5e99ecf1274e696cc0a24994bc508bb1cdaf49286344ff1e526
|
||||
destructured_ast: bc838823e9e86bb974a1f6078a49b60ba274812bca1058d5b276a6829f98fb1e
|
||||
inlined_ast: bc838823e9e86bb974a1f6078a49b60ba274812bca1058d5b276a6829f98fb1e
|
||||
dce_ast: c66a2e365c334442bd39de0096260a8f6d5dad071e3681fc5c24821f73978eb7
|
||||
bytecode: c702ea63bc91bf1aff738a0101761c3201a54f29324dfb4fbcfc7cef05017050
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", unrolled_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", initial_ast = "16cc9b0724e9b9710a1fb2b2a102bf195cdf67ef04faff80eb44a98684d53287", unrolled_ast = "16cc9b0724e9b9710a1fb2b2a102bf195cdf67ef04faff80eb44a98684d53287", ssa_ast = "fdcb2dd71b3081a87535865597a60e3611c6d06099cb5f1437f87e8a854b860b", flattened_ast = "9622685fa672d5e99ecf1274e696cc0a24994bc508bb1cdaf49286344ff1e526", destructured_ast = "bc838823e9e86bb974a1f6078a49b60ba274812bca1058d5b276a6829f98fb1e", inlined_ast = "bc838823e9e86bb974a1f6078a49b60ba274812bca1058d5b276a6829f98fb1e", dce_ast = "c66a2e365c334442bd39de0096260a8f6d5dad071e3681fc5c24821f73978eb7", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp512 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as field;
|
||||
hash.bhp512 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: f41b5d1390511e0b7498f813fba346f400ef66bf636f0d1e28dbb55869a80153
|
||||
unrolled_ast: f41b5d1390511e0b7498f813fba346f400ef66bf636f0d1e28dbb55869a80153
|
||||
ssa_ast: cbb8a516a4b76218ff24a3c56e42a435b0b8acb6ea33e2cb074a787ef51b22ab
|
||||
flattened_ast: 87ba6241b5819ea21eb90f7eb502bd1674196560d3343f39c59119c8b380a402
|
||||
destructured_ast: e4612e20aa9f9dbb9128f4423910188ba27e66b21eed6afe615e6bb1574a500d
|
||||
inlined_ast: e4612e20aa9f9dbb9128f4423910188ba27e66b21eed6afe615e6bb1574a500d
|
||||
dce_ast: dea0015bae3270eed36e9d7e9a1988ad1924df3eff4728499da344346f5fb439
|
||||
bytecode: a0a563d61716d3c6b3a75384d04fe6227332979ff3fb5d04a672e1db4e6fa8cb
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "f41b5d1390511e0b7498f813fba346f400ef66bf636f0d1e28dbb55869a80153", unrolled_ast = "f41b5d1390511e0b7498f813fba346f400ef66bf636f0d1e28dbb55869a80153", ssa_ast = "cbb8a516a4b76218ff24a3c56e42a435b0b8acb6ea33e2cb074a787ef51b22ab", flattened_ast = "87ba6241b5819ea21eb90f7eb502bd1674196560d3343f39c59119c8b380a402", destructured_ast = "e4612e20aa9f9dbb9128f4423910188ba27e66b21eed6afe615e6bb1574a500d", inlined_ast = "e4612e20aa9f9dbb9128f4423910188ba27e66b21eed6afe615e6bb1574a500d", dce_ast = "dea0015bae3270eed36e9d7e9a1988ad1924df3eff4728499da344346f5fb439", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp512 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as group;
|
||||
hash.bhp512 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5
|
||||
type_checked_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
unrolled_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
initial_ast: d60a209f48b0a4b33519f098daa79b8b28be280323adeae4c0a616bcc5d62110
|
||||
unrolled_ast: d60a209f48b0a4b33519f098daa79b8b28be280323adeae4c0a616bcc5d62110
|
||||
ssa_ast: 30b3e677012b1457ef425207307f185d8c6197ee1d5f6ccf368b74ed85b5048d
|
||||
flattened_ast: 0f86fd9e319aefdb84bc8c75a61a1fa3be1f3df572b7eeced37a4e26b86ffb92
|
||||
destructured_ast: 77819eeb958302ce40bf40378fef4754d014a35cfbd966b8ea0bdd315fd0c0e2
|
||||
inlined_ast: 77819eeb958302ce40bf40378fef4754d014a35cfbd966b8ea0bdd315fd0c0e2
|
||||
dce_ast: 81b680f52e95ccb1c95e0342a4d2265504bce5056e28435d4dc99e3491ec4775
|
||||
bytecode: 6d1cfc85db8ba9546a0cce9391c99dc153031ab35a86b38ad443df534242c519
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5", type_checked_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", unrolled_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", initial_ast = "d60a209f48b0a4b33519f098daa79b8b28be280323adeae4c0a616bcc5d62110", unrolled_ast = "d60a209f48b0a4b33519f098daa79b8b28be280323adeae4c0a616bcc5d62110", ssa_ast = "30b3e677012b1457ef425207307f185d8c6197ee1d5f6ccf368b74ed85b5048d", flattened_ast = "0f86fd9e319aefdb84bc8c75a61a1fa3be1f3df572b7eeced37a4e26b86ffb92", destructured_ast = "77819eeb958302ce40bf40378fef4754d014a35cfbd966b8ea0bdd315fd0c0e2", inlined_ast = "77819eeb958302ce40bf40378fef4754d014a35cfbd966b8ea0bdd315fd0c0e2", dce_ast = "81b680f52e95ccb1c95e0342a4d2265504bce5056e28435d4dc99e3491ec4775", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp512 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as scalar;
|
||||
hash.bhp512 1scalar into r9 as scalar;
|
||||
add r8 r9 into r10;
|
||||
output r10 as scalar.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
unrolled_symbol_table: d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78
|
||||
initial_ast: f970f8bfc18a141d78c7ba2bc154e7b98d109fb79d49d68c732c30f2eaec094c
|
||||
unrolled_ast: f970f8bfc18a141d78c7ba2bc154e7b98d109fb79d49d68c732c30f2eaec094c
|
||||
ssa_ast: 115f168e8b8eae9d237a56538e7efd216e73df68014ac8a1b34dc01f3ac4d666
|
||||
flattened_ast: 59e98dfa468eaa53d6519c3cf7a21d5a47e1b284aae3d210e294345b59319b8d
|
||||
destructured_ast: 2905c4ece34f216cd525b1c880d22c135f47b9449994893e308f7a813851087d
|
||||
inlined_ast: 2905c4ece34f216cd525b1c880d22c135f47b9449994893e308f7a813851087d
|
||||
dce_ast: bac68877a43e59546969a53a31ce99653130b5ab829ae7c191757101952c0410
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", unrolled_symbol_table = "d52a860b0d3e8ebb88c7ff710fb3fd66e426ecc5047b8e52c7d7d32f66e63f78", initial_ast = "f970f8bfc18a141d78c7ba2bc154e7b98d109fb79d49d68c732c30f2eaec094c", unrolled_ast = "f970f8bfc18a141d78c7ba2bc154e7b98d109fb79d49d68c732c30f2eaec094c", ssa_ast = "115f168e8b8eae9d237a56538e7efd216e73df68014ac8a1b34dc01f3ac4d666", flattened_ast = "59e98dfa468eaa53d6519c3cf7a21d5a47e1b284aae3d210e294345b59319b8d", destructured_ast = "2905c4ece34f216cd525b1c880d22c135f47b9449994893e308f7a813851087d", inlined_ast = "2905c4ece34f216cd525b1c880d22c135f47b9449994893e308f7a813851087d", dce_ast = "bac68877a43e59546969a53a31ce99653130b5ab829ae7c191757101952c0410", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67
|
||||
unrolled_symbol_table: 4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67
|
||||
initial_ast: c6cc94a0fd64829de7efde5303a166bcdd30e6303a81a0bedb3e957a35b273d7
|
||||
unrolled_ast: c6cc94a0fd64829de7efde5303a166bcdd30e6303a81a0bedb3e957a35b273d7
|
||||
ssa_ast: 3342bb8d705f2e0f1be18350663f586a9b21cf42ee48fb1fcd14e4f07d818b79
|
||||
flattened_ast: 429470fd2cb83f493269e462f979d3c236df515488b51088657e3bf7c20b0df5
|
||||
destructured_ast: 59ebef3d5188e447ae61794169567d30d9aa8f089dae5f49964818613a52a098
|
||||
inlined_ast: 59ebef3d5188e447ae61794169567d30d9aa8f089dae5f49964818613a52a098
|
||||
dce_ast: 3c91eda2d8f8935ef0c1e94d3f26d46f456b44a3568c5f410d2ed30df98dc406
|
||||
bytecode: d6282c666e51c8c3f3ce541b16d07701dc4d0900acf44bf392cc235ed79a2484
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67", unrolled_symbol_table = "4dd7167568691e168581afd4519fb6792ec2912eaa964dfa639d601d18afbe67", initial_ast = "c6cc94a0fd64829de7efde5303a166bcdd30e6303a81a0bedb3e957a35b273d7", unrolled_ast = "c6cc94a0fd64829de7efde5303a166bcdd30e6303a81a0bedb3e957a35b273d7", ssa_ast = "3342bb8d705f2e0f1be18350663f586a9b21cf42ee48fb1fcd14e4f07d818b79", flattened_ast = "429470fd2cb83f493269e462f979d3c236df515488b51088657e3bf7c20b0df5", destructured_ast = "59ebef3d5188e447ae61794169567d30d9aa8f089dae5f49964818613a52a098", inlined_ast = "59ebef3d5188e447ae61794169567d30d9aa8f089dae5f49964818613a52a098", dce_ast = "3c91eda2d8f8935ef0c1e94d3f26d46f456b44a3568c5f410d2ed30df98dc406", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp768 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as field;
|
||||
commit.bhp768 1scalar 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: fb08394f4d3809df07ea2bd43d1a2d603a5b60bd5ec0ebea53924e2e477932b3
|
||||
unrolled_ast: fb08394f4d3809df07ea2bd43d1a2d603a5b60bd5ec0ebea53924e2e477932b3
|
||||
ssa_ast: 7459d8925c091bdd6d6114d393ec10fd1b244dfa08cd35c2770cccb3dd14d74b
|
||||
flattened_ast: 2c7a7d7a588435725614843424b7c52c5ce25e02c20a84af98b9c6312a6bf7c7
|
||||
destructured_ast: e33b97e520f7e1f94c024641d11365b706c815c4bc3af2f4c5ddd4d15abd7a1e
|
||||
inlined_ast: e33b97e520f7e1f94c024641d11365b706c815c4bc3af2f4c5ddd4d15abd7a1e
|
||||
dce_ast: 2ca3e75ed482aa6b570ff3a7ac124f10f3d243f9eba535c10759c4c36ce79070
|
||||
bytecode: 229ed43ca637238faed92dd4732941e7c471f274c74ecfe4c2a77beca892bb62
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "fb08394f4d3809df07ea2bd43d1a2d603a5b60bd5ec0ebea53924e2e477932b3", unrolled_ast = "fb08394f4d3809df07ea2bd43d1a2d603a5b60bd5ec0ebea53924e2e477932b3", ssa_ast = "7459d8925c091bdd6d6114d393ec10fd1b244dfa08cd35c2770cccb3dd14d74b", flattened_ast = "2c7a7d7a588435725614843424b7c52c5ce25e02c20a84af98b9c6312a6bf7c7", destructured_ast = "e33b97e520f7e1f94c024641d11365b706c815c4bc3af2f4c5ddd4d15abd7a1e", inlined_ast = "e33b97e520f7e1f94c024641d11365b706c815c4bc3af2f4c5ddd4d15abd7a1e", dce_ast = "2ca3e75ed482aa6b570ff3a7ac124f10f3d243f9eba535c10759c4c36ce79070", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
commit.bhp768 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta 1scalar into r8 as group;
|
||||
commit.bhp768 1scalar 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,21 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
unrolled_symbol_table: 98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11
|
||||
initial_ast: 3e30a24d3bdbc75b54c300a8e99fc4e1d513af6c597b1291c9dfb7e67da8c297
|
||||
unrolled_ast: 3e30a24d3bdbc75b54c300a8e99fc4e1d513af6c597b1291c9dfb7e67da8c297
|
||||
ssa_ast: 9be7ed8b9da16a2c38800e35ebcfc92d33e7ffe72f68ee3b19bc46ec2c162dfd
|
||||
flattened_ast: 8e8a6533cfd710c1e78601156991d3105b67d8a3998cf9e3986d35a92e7faedc
|
||||
destructured_ast: 3d07ad984a3a1b8968fa045b62b6ebb7e8f7ecd654c1b59060147ec1b6c9598f
|
||||
inlined_ast: 3d07ad984a3a1b8968fa045b62b6ebb7e8f7ecd654c1b59060147ec1b6c9598f
|
||||
dce_ast: 0462c15d429b8c65c4375284d9496131c4441e67282fee93a9f0b9a581c9fc87
|
||||
bytecode: 03845ec2f54d49f71640659603ead8f68ad067a15fda438e5e13524777d1559b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", unrolled_symbol_table = "98151b61965a5ad83116770d19d69a429dbe167b4d4554ba1da8adddb45c6d11", initial_ast = "3e30a24d3bdbc75b54c300a8e99fc4e1d513af6c597b1291c9dfb7e67da8c297", unrolled_ast = "3e30a24d3bdbc75b54c300a8e99fc4e1d513af6c597b1291c9dfb7e67da8c297", ssa_ast = "9be7ed8b9da16a2c38800e35ebcfc92d33e7ffe72f68ee3b19bc46ec2c162dfd", flattened_ast = "8e8a6533cfd710c1e78601156991d3105b67d8a3998cf9e3986d35a92e7faedc", destructured_ast = "3d07ad984a3a1b8968fa045b62b6ebb7e8f7ecd654c1b59060147ec1b6c9598f", inlined_ast = "3d07ad984a3a1b8968fa045b62b6ebb7e8f7ecd654c1b59060147ec1b6c9598f", dce_ast = "0462c15d429b8c65c4375284d9496131c4441e67282fee93a9f0b9a581c9fc87", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
output 1field as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837
|
||||
type_checked_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
unrolled_symbol_table: 8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519
|
||||
initial_ast: 6b68c65600169f8c8cee0a021d375084f0ddeb6149fae46b9573c699766c5ab3
|
||||
unrolled_ast: 6b68c65600169f8c8cee0a021d375084f0ddeb6149fae46b9573c699766c5ab3
|
||||
ssa_ast: ee19175861e7e4461f9fa8cca8cae7fadf14c65c7b01a8b8be6954204dafcc8d
|
||||
flattened_ast: 10cd22a4a10187d6e06d8c06634296f3645b14a042df3f9ea0ace3f4a6b74231
|
||||
destructured_ast: c91853dca89651fb270296c523104264a444cd1e60770ce61f814f049d24cd41
|
||||
inlined_ast: c91853dca89651fb270296c523104264a444cd1e60770ce61f814f049d24cd41
|
||||
dce_ast: 745d5f7d5e373f50f54aeeeb329f068083761fdae2946b3edc490a04f0c4fd99
|
||||
bytecode: 7da691d67f81116d91fb60593fa7fbac92c7409ecb5728174beee3fc612716a0
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "a32d8e2614c0c938f3045c99a5ae1a9435cd34da9c543bb2fd3b10e6128d9837", type_checked_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", unrolled_symbol_table = "8afab6b4e6604768c1db1398838c274386d1b3d4b526967bd16c3d2222866519", initial_ast = "6b68c65600169f8c8cee0a021d375084f0ddeb6149fae46b9573c699766c5ab3", unrolled_ast = "6b68c65600169f8c8cee0a021d375084f0ddeb6149fae46b9573c699766c5ab3", ssa_ast = "ee19175861e7e4461f9fa8cca8cae7fadf14c65c7b01a8b8be6954204dafcc8d", flattened_ast = "10cd22a4a10187d6e06d8c06634296f3645b14a042df3f9ea0ace3f4a6b74231", destructured_ast = "c91853dca89651fb270296c523104264a444cd1e60770ce61f814f049d24cd41", inlined_ast = "c91853dca89651fb270296c523104264a444cd1e60770ce61f814f049d24cd41", dce_ast = "745d5f7d5e373f50f54aeeeb329f068083761fdae2946b3edc490a04f0c4fd99", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp768 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as field;
|
||||
hash.bhp768 1scalar into r9 as field;
|
||||
add r8 r9 into r10;
|
||||
output r10 as field.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1
|
||||
type_checked_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
unrolled_symbol_table: 00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d
|
||||
initial_ast: 3a42543b6248f5911940c48649b66b5e860f25a8b3255f3912a5e2770eef5ace
|
||||
unrolled_ast: 3a42543b6248f5911940c48649b66b5e860f25a8b3255f3912a5e2770eef5ace
|
||||
ssa_ast: fce17cd4c6a2f8463bc87e74d74d0624658b8a862ebf3ee7e525a59316876223
|
||||
flattened_ast: 0b78985bfbff4a61ecfc090b94041c542d923cf1cd6253a8c5473b04a7cb5787
|
||||
destructured_ast: e8a2fa4796f18b2c05b6702358ed9fd66a552446a322891ca8981ea1125e9893
|
||||
inlined_ast: e8a2fa4796f18b2c05b6702358ed9fd66a552446a322891ca8981ea1125e9893
|
||||
dce_ast: 32495442d293a49ba12481bba5ede7887615d7b5f631053bb75be087a41acdba
|
||||
bytecode: 6d469fd18d4b6f00204c95b4a6f2b98ceecb94947ac706bcba8976d667d9921b
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "50685756468b80481a31a2082a3df618d0e2ac34d08f6954df2f2b82de7d11b1", type_checked_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", unrolled_symbol_table = "00b97f407ed6f4025b85376bc8d0b25e1d3a8430a6ab420e1e183a5c1b6e430d", initial_ast = "3a42543b6248f5911940c48649b66b5e860f25a8b3255f3912a5e2770eef5ace", unrolled_ast = "3a42543b6248f5911940c48649b66b5e860f25a8b3255f3912a5e2770eef5ace", ssa_ast = "fce17cd4c6a2f8463bc87e74d74d0624658b8a862ebf3ee7e525a59316876223", flattened_ast = "0b78985bfbff4a61ecfc090b94041c542d923cf1cd6253a8c5473b04a7cb5787", destructured_ast = "e8a2fa4796f18b2c05b6702358ed9fd66a552446a322891ca8981ea1125e9893", inlined_ast = "e8a2fa4796f18b2c05b6702358ed9fd66a552446a322891ca8981ea1125e9893", dce_ast = "32495442d293a49ba12481bba5ede7887615d7b5f631053bb75be087a41acdba", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp768 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as group;
|
||||
hash.bhp768 1scalar into r9 as group;
|
||||
add r8 r9 into r10;
|
||||
output r10 as group.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,24 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5
|
||||
type_checked_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
unrolled_symbol_table: 95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad
|
||||
initial_ast: e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c
|
||||
unrolled_ast: e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c
|
||||
ssa_ast: 42bb275bb8f30f844e720e95ff44f8c2d8b2edc12ea4d29245ab4b13068b480f
|
||||
flattened_ast: 018dc16ea828956c4831a0867627751a833bef0e4b474918db2bc17b3658b1d8
|
||||
destructured_ast: 821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a
|
||||
inlined_ast: 821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a
|
||||
dce_ast: 82b0310905bf404ce4d12c69f1955ec06b6e7d09e957b532f73fd9191aeb4fcb
|
||||
bytecode: 39f2fd495ce761fe3a8fb011b05bfe34e50db91dbd7f9a5bec40a8aa8187f0b1
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "35faa74f7e63d6091fd26297a05671a6c5f428a70d5a37eb6e66a0b3600114d5", type_checked_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", unrolled_symbol_table = "95144067dd9f17706ebab908322cdd2ba6e86ca14fa23e543205a1ffa98dd4ad", initial_ast = "e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c", unrolled_ast = "e24ee1bcabcc08b4b186df3883e05bae4f6452569f613294a6ee7aaa5b51a67c", ssa_ast = "42bb275bb8f30f844e720e95ff44f8c2d8b2edc12ea4d29245ab4b13068b480f", flattened_ast = "018dc16ea828956c4831a0867627751a833bef0e4b474918db2bc17b3658b1d8", destructured_ast = "821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a", inlined_ast = "821596ca67920e30b4904b190cd9387029414909381747860fdd7575b671533a", dce_ast = "82b0310905bf404ce4d12c69f1955ec06b6e7d09e957b532f73fd9191aeb4fcb", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as scalar;
|
||||
hash.bhp256 1scalar into r9 as scalar;
|
||||
add r8 r9 into r10;
|
||||
output r10 as scalar.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 88337028e1c8b518142989b2c36459f26268b0660501d07046a2af01e286a25d
|
||||
type_checked_symbol_table: 85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f
|
||||
unrolled_symbol_table: 85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f
|
||||
initial_ast: 442c5362ae1cccc6219eb6ed3535001f3aa1d8211912e35855d268e36c35d71e
|
||||
unrolled_ast: 442c5362ae1cccc6219eb6ed3535001f3aa1d8211912e35855d268e36c35d71e
|
||||
ssa_ast: a2fa6a2378ffe24ed6cbfe450e75935793bee13d0c62c8f66597ab20f6215b6e
|
||||
flattened_ast: 282f6dacfa73e9b5344db2b401d04d3bbe20a106eb596c7686900bec344dbd95
|
||||
destructured_ast: f1749d788d7ccf00e5c8dd89d2487b8d92489c5ae09006f394e50b6d2ee712de
|
||||
inlined_ast: f1749d788d7ccf00e5c8dd89d2487b8d92489c5ae09006f394e50b6d2ee712de
|
||||
dce_ast: 2a8b0ea8985ab9c858f663ce59e0277a6d77f20820e0ac4960459e49efeabe0e
|
||||
bytecode: 291203118efe8ad584e0fe1e5ad940b457fea07bc1833c28dcc64d0f5e380261
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "88337028e1c8b518142989b2c36459f26268b0660501d07046a2af01e286a25d", type_checked_symbol_table = "85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f", unrolled_symbol_table = "85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f", initial_ast = "442c5362ae1cccc6219eb6ed3535001f3aa1d8211912e35855d268e36c35d71e", unrolled_ast = "442c5362ae1cccc6219eb6ed3535001f3aa1d8211912e35855d268e36c35d71e", ssa_ast = "a2fa6a2378ffe24ed6cbfe450e75935793bee13d0c62c8f66597ab20f6215b6e", flattened_ast = "282f6dacfa73e9b5344db2b401d04d3bbe20a106eb596c7686900bec344dbd95", destructured_ast = "f1749d788d7ccf00e5c8dd89d2487b8d92489c5ae09006f394e50b6d2ee712de", inlined_ast = "f1749d788d7ccf00e5c8dd89d2487b8d92489c5ae09006f394e50b6d2ee712de", dce_ast = "2a8b0ea8985ab9c858f663ce59e0277a6d77f20820e0ac4960459e49efeabe0e", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i128;
|
||||
output r8 as i128.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 6fbe09668eae866b7d088936aef31c44d3dcaefb4267380e57b04d6e9da910ca
|
||||
type_checked_symbol_table: 41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad
|
||||
unrolled_symbol_table: 41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad
|
||||
initial_ast: 1d5396288476d5e898e696c848ab2eddd039d20542dd4544de4fd5d47d742520
|
||||
unrolled_ast: 1d5396288476d5e898e696c848ab2eddd039d20542dd4544de4fd5d47d742520
|
||||
ssa_ast: 32842d3ffb2864a3aeb3560af67fd76d6bd2bcb7f499637b54a01bb723ab9e62
|
||||
flattened_ast: aab3af9dfa62a5d527fd350086e6d2899a485253ecc9c109c506f13bdd7efa9f
|
||||
destructured_ast: 593e17839928f2e1ec1fd09989e710f90665cebef945ad2ea67a01485793b882
|
||||
inlined_ast: 593e17839928f2e1ec1fd09989e710f90665cebef945ad2ea67a01485793b882
|
||||
dce_ast: 62a27df6d35c3089d230b998d718f2ee2ebf71c4208093460f36be8c524d5494
|
||||
bytecode: aabc532da97dad13de4f6538e8b18c6696e0a4e16ba5c50624add1e547aadbb0
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "6fbe09668eae866b7d088936aef31c44d3dcaefb4267380e57b04d6e9da910ca", type_checked_symbol_table = "41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad", unrolled_symbol_table = "41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad", initial_ast = "1d5396288476d5e898e696c848ab2eddd039d20542dd4544de4fd5d47d742520", unrolled_ast = "1d5396288476d5e898e696c848ab2eddd039d20542dd4544de4fd5d47d742520", ssa_ast = "32842d3ffb2864a3aeb3560af67fd76d6bd2bcb7f499637b54a01bb723ab9e62", flattened_ast = "aab3af9dfa62a5d527fd350086e6d2899a485253ecc9c109c506f13bdd7efa9f", destructured_ast = "593e17839928f2e1ec1fd09989e710f90665cebef945ad2ea67a01485793b882", inlined_ast = "593e17839928f2e1ec1fd09989e710f90665cebef945ad2ea67a01485793b882", dce_ast = "62a27df6d35c3089d230b998d718f2ee2ebf71c4208093460f36be8c524d5494", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i16;
|
||||
output r8 as i16.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 4375f89c84f3c5af7638400e3af00b6fa7e2f6037bb0187e656a11a4194f88f7
|
||||
type_checked_symbol_table: cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e
|
||||
unrolled_symbol_table: cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e
|
||||
initial_ast: 468a619ae62ffb64127629908968dc3d9a7542085ce407f7513522de43b57e59
|
||||
unrolled_ast: 468a619ae62ffb64127629908968dc3d9a7542085ce407f7513522de43b57e59
|
||||
ssa_ast: 1c8e3b4ee612253ae49a68bbb5f1f022e2db729405765845eae1e78f4dc73aa5
|
||||
flattened_ast: 3b9583c20cb047fba616d5d78c0528c775e3f422dfbd0d13980062f8d0576498
|
||||
destructured_ast: 088e16c326f423b71e7a86380bf75e68cdb900fdd4c6f3d9626a5cdcadb36e63
|
||||
inlined_ast: 088e16c326f423b71e7a86380bf75e68cdb900fdd4c6f3d9626a5cdcadb36e63
|
||||
dce_ast: 02fa890d859e83b08f1e3aa06244ff3ae1b4b9b5349934e431fd878ee05dcfd5
|
||||
bytecode: fb50b455787039d40359e8561b3c38dce51cc9bfd62c06db7cdad7ed77575e4c
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "4375f89c84f3c5af7638400e3af00b6fa7e2f6037bb0187e656a11a4194f88f7", type_checked_symbol_table = "cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e", unrolled_symbol_table = "cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e", initial_ast = "468a619ae62ffb64127629908968dc3d9a7542085ce407f7513522de43b57e59", unrolled_ast = "468a619ae62ffb64127629908968dc3d9a7542085ce407f7513522de43b57e59", ssa_ast = "1c8e3b4ee612253ae49a68bbb5f1f022e2db729405765845eae1e78f4dc73aa5", flattened_ast = "3b9583c20cb047fba616d5d78c0528c775e3f422dfbd0d13980062f8d0576498", destructured_ast = "088e16c326f423b71e7a86380bf75e68cdb900fdd4c6f3d9626a5cdcadb36e63", inlined_ast = "088e16c326f423b71e7a86380bf75e68cdb900fdd4c6f3d9626a5cdcadb36e63", dce_ast = "02fa890d859e83b08f1e3aa06244ff3ae1b4b9b5349934e431fd878ee05dcfd5", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i32;
|
||||
output r8 as i32.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 09015171da9cd92d49fd25eee135cae84b128f540bd8573d1f40ce47bbcb7db5
|
||||
type_checked_symbol_table: c5096dd6d8aabe6fe5380fa2cf7fb74232ba23e16bccce3b00fca030cb822923
|
||||
unrolled_symbol_table: c5096dd6d8aabe6fe5380fa2cf7fb74232ba23e16bccce3b00fca030cb822923
|
||||
initial_ast: ef6a8b12ab9a2990728744af5eed85e7488f25e22611778f05633be09dc639d0
|
||||
unrolled_ast: ef6a8b12ab9a2990728744af5eed85e7488f25e22611778f05633be09dc639d0
|
||||
ssa_ast: 6b57a9b84a5ba37ca589290b095883c39c40fff348600456f4531b130506a4d3
|
||||
flattened_ast: 1d390bcff74a7da50935a7c3d8e9bc9348902ea22e481fb7634f46cbc6e3077a
|
||||
destructured_ast: 43ff018ba2b76a0532fd7e1c2753552ac40822b9654c55e0daf588e65f41fbfa
|
||||
inlined_ast: 43ff018ba2b76a0532fd7e1c2753552ac40822b9654c55e0daf588e65f41fbfa
|
||||
dce_ast: 498731da2308c28a6d1fb4a8f10757664918b05bc0a85a2987a93ab2573a83b4
|
||||
bytecode: 0f39fde0b1e15ee4f8db0c84a7a280cdeac852cdca4959a14a61776aa661ced5
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "09015171da9cd92d49fd25eee135cae84b128f540bd8573d1f40ce47bbcb7db5", type_checked_symbol_table = "c5096dd6d8aabe6fe5380fa2cf7fb74232ba23e16bccce3b00fca030cb822923", unrolled_symbol_table = "c5096dd6d8aabe6fe5380fa2cf7fb74232ba23e16bccce3b00fca030cb822923", initial_ast = "ef6a8b12ab9a2990728744af5eed85e7488f25e22611778f05633be09dc639d0", unrolled_ast = "ef6a8b12ab9a2990728744af5eed85e7488f25e22611778f05633be09dc639d0", ssa_ast = "6b57a9b84a5ba37ca589290b095883c39c40fff348600456f4531b130506a4d3", flattened_ast = "1d390bcff74a7da50935a7c3d8e9bc9348902ea22e481fb7634f46cbc6e3077a", destructured_ast = "43ff018ba2b76a0532fd7e1c2753552ac40822b9654c55e0daf588e65f41fbfa", inlined_ast = "43ff018ba2b76a0532fd7e1c2753552ac40822b9654c55e0daf588e65f41fbfa", dce_ast = "498731da2308c28a6d1fb4a8f10757664918b05bc0a85a2987a93ab2573a83b4", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i64;
|
||||
output r8 as i64.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 8e41ea99129edc81ece5fb996869b3f0b2082bb4f67f7493cc4591840a81369a
|
||||
type_checked_symbol_table: f022a9b97590ea2726f44040088440699fe9235e4505a4a74bb916dd8b66e8ec
|
||||
unrolled_symbol_table: f022a9b97590ea2726f44040088440699fe9235e4505a4a74bb916dd8b66e8ec
|
||||
initial_ast: e0a0f783611f7bcc08271c7259ef2978ee4571cb86633016317f8a61263f9bdb
|
||||
unrolled_ast: e0a0f783611f7bcc08271c7259ef2978ee4571cb86633016317f8a61263f9bdb
|
||||
ssa_ast: 1a8cded804c2c0bea4d3100239c920f9c05e27453743bb92d0c97de1876b922b
|
||||
flattened_ast: 37a3d3534e557cdd41f43d1843889b5864ef5844cf784feaacd6ece2ce7531f1
|
||||
destructured_ast: 0b1c52c255fbb1d040c11c4abba2918759cb98e5097e3ef22804728d548e80a0
|
||||
inlined_ast: 0b1c52c255fbb1d040c11c4abba2918759cb98e5097e3ef22804728d548e80a0
|
||||
dce_ast: eec36bb7ac4980ba963769eaa1b9acae62a248aacf714c98c3e592560e1b38e2
|
||||
bytecode: b267a8888601eb2f66b0e0f9814268308403849dd65f3535cea29bcd4245360e
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "8e41ea99129edc81ece5fb996869b3f0b2082bb4f67f7493cc4591840a81369a", type_checked_symbol_table = "f022a9b97590ea2726f44040088440699fe9235e4505a4a74bb916dd8b66e8ec", unrolled_symbol_table = "f022a9b97590ea2726f44040088440699fe9235e4505a4a74bb916dd8b66e8ec", initial_ast = "e0a0f783611f7bcc08271c7259ef2978ee4571cb86633016317f8a61263f9bdb", unrolled_ast = "e0a0f783611f7bcc08271c7259ef2978ee4571cb86633016317f8a61263f9bdb", ssa_ast = "1a8cded804c2c0bea4d3100239c920f9c05e27453743bb92d0c97de1876b922b", flattened_ast = "37a3d3534e557cdd41f43d1843889b5864ef5844cf784feaacd6ece2ce7531f1", destructured_ast = "0b1c52c255fbb1d040c11c4abba2918759cb98e5097e3ef22804728d548e80a0", inlined_ast = "0b1c52c255fbb1d040c11c4abba2918759cb98e5097e3ef22804728d548e80a0", dce_ast = "eec36bb7ac4980ba963769eaa1b9acae62a248aacf714c98c3e592560e1b38e2", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i8;
|
||||
output r8 as i8.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 674860f890826b537e64938487bd497d978746e7e75ab99f8d3fa2a7976ef9d9
|
||||
type_checked_symbol_table: 631676e7c0c6d9c0b3d1bc1aaf4d64c480acc6da3b554cfdb08e9c1abfb6c21f
|
||||
unrolled_symbol_table: 631676e7c0c6d9c0b3d1bc1aaf4d64c480acc6da3b554cfdb08e9c1abfb6c21f
|
||||
initial_ast: f186cd70d912c729173ba3daa52d09f432de6752ebcf8eb98c9ec9a173a6345f
|
||||
unrolled_ast: f186cd70d912c729173ba3daa52d09f432de6752ebcf8eb98c9ec9a173a6345f
|
||||
ssa_ast: cd21ab42ba7b71d49d574234afd69882e11252730169908971aec498a1da87c3
|
||||
flattened_ast: d3cb0c896a08af1429e3f2cb5d92a4d1fcda1c7eaf992ae2ab73b45ea724ab43
|
||||
destructured_ast: c509420b78791136df0db3e5e22b164c01b8b55fd7cb1bc0951659bf127496ec
|
||||
inlined_ast: c509420b78791136df0db3e5e22b164c01b8b55fd7cb1bc0951659bf127496ec
|
||||
dce_ast: 6c887cfc2804ab34098bd3cf43cfe6bfffde928c0daf118656a00d27542b970e
|
||||
bytecode: 82114d77c21652d52ef1000d4f83e8539bcefb03acf8ceec8e75f36e4acb3062
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "674860f890826b537e64938487bd497d978746e7e75ab99f8d3fa2a7976ef9d9", type_checked_symbol_table = "631676e7c0c6d9c0b3d1bc1aaf4d64c480acc6da3b554cfdb08e9c1abfb6c21f", unrolled_symbol_table = "631676e7c0c6d9c0b3d1bc1aaf4d64c480acc6da3b554cfdb08e9c1abfb6c21f", initial_ast = "f186cd70d912c729173ba3daa52d09f432de6752ebcf8eb98c9ec9a173a6345f", unrolled_ast = "f186cd70d912c729173ba3daa52d09f432de6752ebcf8eb98c9ec9a173a6345f", ssa_ast = "cd21ab42ba7b71d49d574234afd69882e11252730169908971aec498a1da87c3", flattened_ast = "d3cb0c896a08af1429e3f2cb5d92a4d1fcda1c7eaf992ae2ab73b45ea724ab43", destructured_ast = "c509420b78791136df0db3e5e22b164c01b8b55fd7cb1bc0951659bf127496ec", inlined_ast = "c509420b78791136df0db3e5e22b164c01b8b55fd7cb1bc0951659bf127496ec", dce_ast = "6c887cfc2804ab34098bd3cf43cfe6bfffde928c0daf118656a00d27542b970e", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as u128;
|
||||
output r8 as u128.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 41af720cc1d434c939e53f987f86625f33b305dda37e8d4ddbd4671fd14ca620
|
||||
type_checked_symbol_table: 63f9e8d294e5cdbd39df3e97d0499c9156c4dff78fa47f25193700722caea0f3
|
||||
unrolled_symbol_table: 63f9e8d294e5cdbd39df3e97d0499c9156c4dff78fa47f25193700722caea0f3
|
||||
initial_ast: 52e8149620770b85c4bcad0c3166c45ac4a4b16f2d40245f461e6fe66e1437ad
|
||||
unrolled_ast: 52e8149620770b85c4bcad0c3166c45ac4a4b16f2d40245f461e6fe66e1437ad
|
||||
ssa_ast: 421c0602f61bd698d43479fb6822dfae87f9884b7ef91850ad3f3cc62ead9320
|
||||
flattened_ast: 034a7232997144e71bfc33239ea6c56efc63151542b2c44228a9518a1c3c410a
|
||||
destructured_ast: 4eb45d45ae72325a2bc7f92321cd38b717e449cb735a5562a1b043ee594e0beb
|
||||
inlined_ast: 4eb45d45ae72325a2bc7f92321cd38b717e449cb735a5562a1b043ee594e0beb
|
||||
dce_ast: 292b3e8a07570b27a6458ded0eab716827bdf9829a70e9cac4736c9bd0eb669b
|
||||
bytecode: 5eeedee42e2476fb270490327599aed56d2d2086addd96030cb733ad90fff082
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "41af720cc1d434c939e53f987f86625f33b305dda37e8d4ddbd4671fd14ca620", type_checked_symbol_table = "63f9e8d294e5cdbd39df3e97d0499c9156c4dff78fa47f25193700722caea0f3", unrolled_symbol_table = "63f9e8d294e5cdbd39df3e97d0499c9156c4dff78fa47f25193700722caea0f3", initial_ast = "52e8149620770b85c4bcad0c3166c45ac4a4b16f2d40245f461e6fe66e1437ad", unrolled_ast = "52e8149620770b85c4bcad0c3166c45ac4a4b16f2d40245f461e6fe66e1437ad", ssa_ast = "421c0602f61bd698d43479fb6822dfae87f9884b7ef91850ad3f3cc62ead9320", flattened_ast = "034a7232997144e71bfc33239ea6c56efc63151542b2c44228a9518a1c3c410a", destructured_ast = "4eb45d45ae72325a2bc7f92321cd38b717e449cb735a5562a1b043ee594e0beb", inlined_ast = "4eb45d45ae72325a2bc7f92321cd38b717e449cb735a5562a1b043ee594e0beb", dce_ast = "292b3e8a07570b27a6458ded0eab716827bdf9829a70e9cac4736c9bd0eb669b", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as u16;
|
||||
output r8 as u16.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 368da9bd20b2f0534d8bf457e7829d72f7a4fb99162ce204c60e1341454445bc
|
||||
type_checked_symbol_table: 8f995e87e0ebb5498ffa85fdee0a9fb86af46c6af7696163f8c68bf1e30d8b19
|
||||
unrolled_symbol_table: 8f995e87e0ebb5498ffa85fdee0a9fb86af46c6af7696163f8c68bf1e30d8b19
|
||||
initial_ast: 0bf4f3e0c0909add978c1c86d40acfb2d6bcadf3fbefe2ee4716718d953d0d58
|
||||
unrolled_ast: 0bf4f3e0c0909add978c1c86d40acfb2d6bcadf3fbefe2ee4716718d953d0d58
|
||||
ssa_ast: e87e2291f9b5f42b8a9c24b56ee6cbe91704ae9f0009de34d5723f431a7843fd
|
||||
flattened_ast: daabc553ae9cb250c1eab2b5f1329fdf0682bfb965ea230789485a04a06a546a
|
||||
destructured_ast: c3693dbe23dc7d5e4af38d8a01729fa0b7fbbbfa73ec839a861bcda889994842
|
||||
inlined_ast: c3693dbe23dc7d5e4af38d8a01729fa0b7fbbbfa73ec839a861bcda889994842
|
||||
dce_ast: 40ee13466dabd45ba897e77bd2d403f749622fe926adc57df9c220c4670769b0
|
||||
bytecode: 5ec7cc3de6c113f85819e7425d3cba1d1c9d72dbd11bb4dcc38aa93ef89cdf2e
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "368da9bd20b2f0534d8bf457e7829d72f7a4fb99162ce204c60e1341454445bc", type_checked_symbol_table = "8f995e87e0ebb5498ffa85fdee0a9fb86af46c6af7696163f8c68bf1e30d8b19", unrolled_symbol_table = "8f995e87e0ebb5498ffa85fdee0a9fb86af46c6af7696163f8c68bf1e30d8b19", initial_ast = "0bf4f3e0c0909add978c1c86d40acfb2d6bcadf3fbefe2ee4716718d953d0d58", unrolled_ast = "0bf4f3e0c0909add978c1c86d40acfb2d6bcadf3fbefe2ee4716718d953d0d58", ssa_ast = "e87e2291f9b5f42b8a9c24b56ee6cbe91704ae9f0009de34d5723f431a7843fd", flattened_ast = "daabc553ae9cb250c1eab2b5f1329fdf0682bfb965ea230789485a04a06a546a", destructured_ast = "c3693dbe23dc7d5e4af38d8a01729fa0b7fbbbfa73ec839a861bcda889994842", inlined_ast = "c3693dbe23dc7d5e4af38d8a01729fa0b7fbbbfa73ec839a861bcda889994842", dce_ast = "40ee13466dabd45ba897e77bd2d403f749622fe926adc57df9c220c4670769b0", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as u32;
|
||||
output r8 as u32.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 14d8cd29379818c60cbbcb22e1e328085dbda631550b835594a3d642e1c7429d
|
||||
type_checked_symbol_table: 17206c185dad1a3efcd80ea8b4e893b514257beb3d9fcadbdd75aef58977d795
|
||||
unrolled_symbol_table: 17206c185dad1a3efcd80ea8b4e893b514257beb3d9fcadbdd75aef58977d795
|
||||
initial_ast: ebddb7d5799f23e53b3d61632ee643912bbb48b9cefa4ac065be85d37aaa50bd
|
||||
unrolled_ast: ebddb7d5799f23e53b3d61632ee643912bbb48b9cefa4ac065be85d37aaa50bd
|
||||
ssa_ast: 018b8ea7eeb49f42121314644edcdce86c83acef33a7ac68a880b6a704fc85e1
|
||||
flattened_ast: 809214e2a2f8f26a32fb09b29c01cf435e0249508518b2699d0bd9e366ceef78
|
||||
destructured_ast: 39010d7217c8fede44a27f2a90075d5c4873c2bba208861fdf64f1386557e70e
|
||||
inlined_ast: 39010d7217c8fede44a27f2a90075d5c4873c2bba208861fdf64f1386557e70e
|
||||
dce_ast: d2661ecfe254e43626511a2b506cf506ddf02ec58688c4a4372a84ee6a2cc873
|
||||
bytecode: 400dea3099e787d74f8c336d3a7cc2d26e8de8bf52e579bed30244f437aa25f6
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "14d8cd29379818c60cbbcb22e1e328085dbda631550b835594a3d642e1c7429d", type_checked_symbol_table = "17206c185dad1a3efcd80ea8b4e893b514257beb3d9fcadbdd75aef58977d795", unrolled_symbol_table = "17206c185dad1a3efcd80ea8b4e893b514257beb3d9fcadbdd75aef58977d795", initial_ast = "ebddb7d5799f23e53b3d61632ee643912bbb48b9cefa4ac065be85d37aaa50bd", unrolled_ast = "ebddb7d5799f23e53b3d61632ee643912bbb48b9cefa4ac065be85d37aaa50bd", ssa_ast = "018b8ea7eeb49f42121314644edcdce86c83acef33a7ac68a880b6a704fc85e1", flattened_ast = "809214e2a2f8f26a32fb09b29c01cf435e0249508518b2699d0bd9e366ceef78", destructured_ast = "39010d7217c8fede44a27f2a90075d5c4873c2bba208861fdf64f1386557e70e", inlined_ast = "39010d7217c8fede44a27f2a90075d5c4873c2bba208861fdf64f1386557e70e", dce_ast = "d2661ecfe254e43626511a2b506cf506ddf02ec58688c4a4372a84ee6a2cc873", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as u64;
|
||||
output r8 as u64.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 391de5af6b91cae5fbb201a707cc98446504bbc30ae475acb466a319950f7932
|
||||
type_checked_symbol_table: 95d8f88b149e8d93790e8fbfc820b28c800fbc5a32a92cbcacf9fe7b0fe131d8
|
||||
unrolled_symbol_table: 95d8f88b149e8d93790e8fbfc820b28c800fbc5a32a92cbcacf9fe7b0fe131d8
|
||||
initial_ast: 9aff620dd76ac53998b174eb9bf08401e5afd8d6a467b967e2b46cb5558241b6
|
||||
unrolled_ast: 9aff620dd76ac53998b174eb9bf08401e5afd8d6a467b967e2b46cb5558241b6
|
||||
ssa_ast: a5606345c7d4ede71acbf5525ad84760485d9cc717fadcbcbe4781e793bbee1d
|
||||
flattened_ast: 0e262d936c09fb33795e7b050f9f3f7d127bc0769e16e8963a7ea5fa6dd0dbe1
|
||||
destructured_ast: a7f1a1acd14648f9d51cd504046bb439b420c20c07cad054ad04ba0aaac7e68a
|
||||
inlined_ast: a7f1a1acd14648f9d51cd504046bb439b420c20c07cad054ad04ba0aaac7e68a
|
||||
dce_ast: 037797e09ffb65db0d8e7afff652625a87d6d6774d807d10985e271533621d77
|
||||
bytecode: 7e364f0f5797c362156d92896d5c0ac0cb8923bdfce720d844550006535bfec9
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "391de5af6b91cae5fbb201a707cc98446504bbc30ae475acb466a319950f7932", type_checked_symbol_table = "95d8f88b149e8d93790e8fbfc820b28c800fbc5a32a92cbcacf9fe7b0fe131d8", unrolled_symbol_table = "95d8f88b149e8d93790e8fbfc820b28c800fbc5a32a92cbcacf9fe7b0fe131d8", initial_ast = "9aff620dd76ac53998b174eb9bf08401e5afd8d6a467b967e2b46cb5558241b6", unrolled_ast = "9aff620dd76ac53998b174eb9bf08401e5afd8d6a467b967e2b46cb5558241b6", ssa_ast = "a5606345c7d4ede71acbf5525ad84760485d9cc717fadcbcbe4781e793bbee1d", flattened_ast = "0e262d936c09fb33795e7b050f9f3f7d127bc0769e16e8963a7ea5fa6dd0dbe1", destructured_ast = "a7f1a1acd14648f9d51cd504046bb439b420c20c07cad054ad04ba0aaac7e68a", inlined_ast = "a7f1a1acd14648f9d51cd504046bb439b420c20c07cad054ad04ba0aaac7e68a", dce_ast = "037797e09ffb65db0d8e7afff652625a87d6d6774d807d10985e271533621d77", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp1024 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as u8;
|
||||
output r8 as u8.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 88337028e1c8b518142989b2c36459f26268b0660501d07046a2af01e286a25d
|
||||
type_checked_symbol_table: 85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f
|
||||
unrolled_symbol_table: 85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f
|
||||
initial_ast: aa9928beca3c8bebbf79c20fdbde7a985791d8489b5d32aef9689ecbc0325a14
|
||||
unrolled_ast: aa9928beca3c8bebbf79c20fdbde7a985791d8489b5d32aef9689ecbc0325a14
|
||||
ssa_ast: 8265f4821b9744859e75afbc1e3f10be89252f1d65690e1025126c5d520ffc4b
|
||||
flattened_ast: 87946afc0b53932ab784c974297704446c17f52a98b8dbe0308e39f0b05c3cf2
|
||||
destructured_ast: 61ca4389d23ae33791dbe6cd6168e9b277a873fa0824385390ece4b665834c15
|
||||
inlined_ast: 61ca4389d23ae33791dbe6cd6168e9b277a873fa0824385390ece4b665834c15
|
||||
dce_ast: a2dc0baa03e57cf937b52d4e2cbba3f6949d77dd84addff39f8f6ae2f92d9564
|
||||
bytecode: 6d1f9a3fa30f6b177ef5b8242e1608ab54576a5d82df58c97c2e367270c6d7f9
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "88337028e1c8b518142989b2c36459f26268b0660501d07046a2af01e286a25d", type_checked_symbol_table = "85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f", unrolled_symbol_table = "85845a68b23d3e281346ae8fd1f3147dba218f5fd2f65dd7b3ec39d2c912fc3f", initial_ast = "aa9928beca3c8bebbf79c20fdbde7a985791d8489b5d32aef9689ecbc0325a14", unrolled_ast = "aa9928beca3c8bebbf79c20fdbde7a985791d8489b5d32aef9689ecbc0325a14", ssa_ast = "8265f4821b9744859e75afbc1e3f10be89252f1d65690e1025126c5d520ffc4b", flattened_ast = "87946afc0b53932ab784c974297704446c17f52a98b8dbe0308e39f0b05c3cf2", destructured_ast = "61ca4389d23ae33791dbe6cd6168e9b277a873fa0824385390ece4b665834c15", inlined_ast = "61ca4389d23ae33791dbe6cd6168e9b277a873fa0824385390ece4b665834c15", dce_ast = "a2dc0baa03e57cf937b52d4e2cbba3f6949d77dd84addff39f8f6ae2f92d9564", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i128;
|
||||
output r8 as i128.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 6fbe09668eae866b7d088936aef31c44d3dcaefb4267380e57b04d6e9da910ca
|
||||
type_checked_symbol_table: 41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad
|
||||
unrolled_symbol_table: 41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad
|
||||
initial_ast: f46880150d359516cf54e876dd4b1b42cbd311d8044d50bcf2d6f6aeaf8e7047
|
||||
unrolled_ast: f46880150d359516cf54e876dd4b1b42cbd311d8044d50bcf2d6f6aeaf8e7047
|
||||
ssa_ast: 40a71ffba556963cb091c24494d41295641ab71cac1f727e3347a385da4f89a4
|
||||
flattened_ast: 492763110f4f20ddf27d4307adf8ce851d7bf680dbc1e1aeaee446dbc6daf4aa
|
||||
destructured_ast: e8dcd4318b6090dca39ea9169dd5a42d1034bd41a1feb2ce878578454da96482
|
||||
inlined_ast: e8dcd4318b6090dca39ea9169dd5a42d1034bd41a1feb2ce878578454da96482
|
||||
dce_ast: c227849d36b096f5c3cdc2070c4a5b073f2e8d2e7088db60d50865b131ff4ed4
|
||||
bytecode: 324982aeedb7f0eb194a3744384b562834062c95c62d9007a74ec8e2a5612c4e
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "6fbe09668eae866b7d088936aef31c44d3dcaefb4267380e57b04d6e9da910ca", type_checked_symbol_table = "41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad", unrolled_symbol_table = "41d7881113f04ef3706fed6729f54dc0cf45cd8eba6509d94fefcd3c70d48cad", initial_ast = "f46880150d359516cf54e876dd4b1b42cbd311d8044d50bcf2d6f6aeaf8e7047", unrolled_ast = "f46880150d359516cf54e876dd4b1b42cbd311d8044d50bcf2d6f6aeaf8e7047", ssa_ast = "40a71ffba556963cb091c24494d41295641ab71cac1f727e3347a385da4f89a4", flattened_ast = "492763110f4f20ddf27d4307adf8ce851d7bf680dbc1e1aeaee446dbc6daf4aa", destructured_ast = "e8dcd4318b6090dca39ea9169dd5a42d1034bd41a1feb2ce878578454da96482", inlined_ast = "e8dcd4318b6090dca39ea9169dd5a42d1034bd41a1feb2ce878578454da96482", dce_ast = "c227849d36b096f5c3cdc2070c4a5b073f2e8d2e7088db60d50865b131ff4ed4", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i16;
|
||||
output r8 as i16.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
@ -1,18 +1,22 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
outputs:
|
||||
- - compile:
|
||||
- initial_symbol_table: 4375f89c84f3c5af7638400e3af00b6fa7e2f6037bb0187e656a11a4194f88f7
|
||||
type_checked_symbol_table: cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e
|
||||
unrolled_symbol_table: cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e
|
||||
initial_ast: b46c4964c34bb041010d44e5e224a2a89044f42e7093b3c062fc6980cd70d35f
|
||||
unrolled_ast: b46c4964c34bb041010d44e5e224a2a89044f42e7093b3c062fc6980cd70d35f
|
||||
ssa_ast: 53190bed8a22df09ec5db6440bfa899efba7b447539aeffd5b4214f8aba55706
|
||||
flattened_ast: bf6b8e019ade473fd54467317ea77b3a7feacd5ba9132988d702ff5c3e6ec275
|
||||
destructured_ast: 9a76ad3b97e006b61e7729c287e917bc19f0aa6ea7a8e75341b28303d21ae354
|
||||
inlined_ast: 9a76ad3b97e006b61e7729c287e917bc19f0aa6ea7a8e75341b28303d21ae354
|
||||
dce_ast: 3db1184f6015256fb4a1ef9a3c49564a98bcbfccc86cf06d0bf806858d7d1e25
|
||||
bytecode: ead396ffd0d8084ce5fd2f208f904c27d3df3e0b42a22baef80d5778a0d63b23
|
||||
errors: ""
|
||||
warnings: ""
|
||||
namespace = "Compile"
|
||||
expectation = "Pass"
|
||||
outputs = [[{ compile = [{ initial_symbol_table = "4375f89c84f3c5af7638400e3af00b6fa7e2f6037bb0187e656a11a4194f88f7", type_checked_symbol_table = "cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e", unrolled_symbol_table = "cc4199061e6b4fee63d122d69a41fd05dfe62c130708ced62e36373ec5a98f0e", initial_ast = "b46c4964c34bb041010d44e5e224a2a89044f42e7093b3c062fc6980cd70d35f", unrolled_ast = "b46c4964c34bb041010d44e5e224a2a89044f42e7093b3c062fc6980cd70d35f", ssa_ast = "53190bed8a22df09ec5db6440bfa899efba7b447539aeffd5b4214f8aba55706", flattened_ast = "bf6b8e019ade473fd54467317ea77b3a7feacd5ba9132988d702ff5c3e6ec275", destructured_ast = "9a76ad3b97e006b61e7729c287e917bc19f0aa6ea7a8e75341b28303d21ae354", inlined_ast = "9a76ad3b97e006b61e7729c287e917bc19f0aa6ea7a8e75341b28303d21ae354", dce_ast = "3db1184f6015256fb4a1ef9a3c49564a98bcbfccc86cf06d0bf806858d7d1e25", bytecode = """
|
||||
program test.aleo;
|
||||
|
||||
struct Foo:
|
||||
a as u128;
|
||||
b as u128;
|
||||
|
||||
|
||||
function main:
|
||||
input r0 as i8.private;
|
||||
input r1 as i16.private;
|
||||
input r2 as i32.private;
|
||||
input r3 as i64.private;
|
||||
input r4 as u8.private;
|
||||
input r5 as u16.private;
|
||||
input r6 as u32.private;
|
||||
input r7 as u64.private;
|
||||
hash.bhp256 aleo10qerras5799u6k7rjtc9y3hcwxuykr45qra7x7dp6jgnc0923czqm0lgta into r8 as i32;
|
||||
output r8 as i32.private;
|
||||
""", errors = "", warnings = "" }] }]]
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user