From 1adc4d232a30e3ec9afb42ad1cdc0aa16e59cd71 Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu Date: Wed, 12 Apr 2023 11:40:25 -0700 Subject: [PATCH] Update benches --- .../function/inline_expr_statement.out | 11 +++++++++ tests/test-framework/benches/leo_compiler.rs | 24 +++++++++++-------- 2 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 tests/expectations/compiler/function/inline_expr_statement.out diff --git a/tests/expectations/compiler/function/inline_expr_statement.out b/tests/expectations/compiler/function/inline_expr_statement.out new file mode 100644 index 0000000000..1a5cf07181 --- /dev/null +++ b/tests/expectations/compiler/function/inline_expr_statement.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - initial_ast: 1a1fd123616593fc3841d10ad59b14232ae5c7e929492e58d845a3f02f13b644 + unrolled_ast: 1a1fd123616593fc3841d10ad59b14232ae5c7e929492e58d845a3f02f13b644 + ssa_ast: 6782be9fa0571f0f28ec56c7f8ca239f1aabfaccc8b6b1fa7f562892f03546d3 + flattened_ast: d7acc63cc04bb1e54071d8ee0121561992b5e6a32ca882717d5cf6fe78fa2171 + inlined_ast: e20df44648bdb7ac31170d5ac662350a62c7784f600876e767e1aa3eca893cef + dce_ast: 072c27aa51995317c624cad273144963cb86bdb10b4119cd833aba20d1159e42 + bytecode: 4f6fc95016f18abf8a89221cd77b9d718ff44557d55a8387f258779921a97a7d diff --git a/tests/test-framework/benches/leo_compiler.rs b/tests/test-framework/benches/leo_compiler.rs index d06226ceb3..58b337a122 100644 --- a/tests/test-framework/benches/leo_compiler.rs +++ b/tests/test-framework/benches/leo_compiler.rs @@ -16,7 +16,7 @@ //! This file contains tools for benchmarking the Leo compiler and its stages. -use leo_compiler::{Compiler, CompilerOptions}; +use leo_compiler::{BuildOptions, Compiler, CompilerOptions, OutputOptions}; use leo_errors::emitter::{Emitter, Handler}; use leo_span::{source_map::FileName, symbol::SESSION_GLOBALS}; use leo_test_framework::get_benches; @@ -86,15 +86,19 @@ fn new_compiler(handler: &Handler) -> Compiler<'_> { PathBuf::from(String::new()), PathBuf::from(String::new()), Some(CompilerOptions { - spans_enabled: false, - dce_enabled: true, - initial_ast: false, - initial_input_ast: false, - unrolled_ast: false, - ssa_ast: false, - flattened_ast: false, - inlined_ast: false, - dce_ast: false, + build: BuildOptions { + dce_enabled: true, + }, + output: OutputOptions { + spans_enabled: false, + initial_ast: false, + initial_input_ast: false, + unrolled_ast: false, + ssa_ast: false, + flattened_ast: false, + inlined_ast: false, + dce_ast: false, + } }), ) }