Skip to content

Commit

Permalink
rm into
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Aug 2, 2024
1 parent 151871b commit ee49eb4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 16 deletions.
7 changes: 2 additions & 5 deletions miden/src/cli/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ pub struct ProveCmd {

impl ProveCmd {
pub fn get_proof_options(&self) -> Result<ProvingOptions, ExecutionOptionsError> {
let exec_options = ExecutionOptions::new(
Some(self.max_cycles.into()),
self.expected_cycles.into(),
self.tracing,
)?;
let exec_options =
ExecutionOptions::new(Some(self.max_cycles), self.expected_cycles, self.tracing)?;
Ok(match self.security.as_str() {
"96bits" => {
if self.rpx {
Expand Down
9 changes: 3 additions & 6 deletions miden/src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,9 @@ fn run_program(params: &RunCmd) -> Result<(ExecutionTrace, [u8; 32]), Report> {
let input_data = InputFile::read(&params.input_file, &params.assembly_file)?;

// get execution options
let execution_options = ExecutionOptions::new(
Some(params.max_cycles.into()),
params.expected_cycles.into(),
params.tracing,
)
.into_diagnostic()?;
let execution_options =
ExecutionOptions::new(Some(params.max_cycles), params.expected_cycles, params.tracing)
.into_diagnostic()?;

// fetch the stack and program inputs from the arguments
let stack_inputs = input_data.parse_stack_inputs().map_err(Report::msg)?;
Expand Down
7 changes: 2 additions & 5 deletions miden/src/examples/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,8 @@ pub enum ExampleType {

impl ExampleOptions {
pub fn get_proof_options(&self) -> Result<ProvingOptions, ExecutionOptionsError> {
let exec_options = ExecutionOptions::new(
Some(self.max_cycles.into()),
self.expected_cycles.into(),
self.tracing,
)?;
let exec_options =
ExecutionOptions::new(Some(self.max_cycles), self.expected_cycles, self.tracing)?;
Ok(match self.security.as_str() {
"96bits" => {
if self.rpx {
Expand Down

0 comments on commit ee49eb4

Please sign in to comment.