Skip to content

Commit 18410e2

Browse files
committed
Add CommitNode
1 parent 2f6412a commit 18410e2

File tree

10 files changed

+446
-572
lines changed

10 files changed

+446
-572
lines changed

src/bit_machine/exec.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,12 @@
1818
//! frame management optimizations which can be used to great benefit.
1919
//!
2020
21-
use std::cmp;
21+
use super::frame::Frame;
22+
use crate::core::Value;
23+
use crate::jet::AppError;
2224
use std::error;
2325
use std::fmt;
2426

25-
use crate::core::types::TypeInner;
26-
use crate::core::{LinearProgram, Program, Term, Value};
27-
use crate::decode;
28-
use crate::jet::{AppError, Application};
29-
30-
use super::frame::Frame;
31-
3227
/// An execution context for a Simplicity program
3328
pub struct BitMachine {
3429
/// Space for bytes that read and write frames point to.
@@ -43,6 +38,7 @@ pub struct BitMachine {
4338
}
4439

4540
impl BitMachine {
41+
/*
4642
/// Construct a Bit Machine with enough space to execute
4743
/// the given program
4844
pub fn for_program<App: Application>(program: &Program<App>) -> BitMachine {
@@ -56,6 +52,7 @@ impl BitMachine {
5652
write: Vec::with_capacity(prog.frame_count_bound + 1),
5753
}
5854
}
55+
*/
5956

6057
/// Push a new frame of given size onto the write frame stack
6158
fn new_frame(&mut self, len: usize) {
@@ -268,6 +265,7 @@ impl BitMachine {
268265
self.move_frame();
269266
}
270267

268+
/*
271269
/// Execute a program in the Bit Machine
272270
pub fn exec<'a, App: Application>(
273271
&mut self,
@@ -438,6 +436,7 @@ impl BitMachine {
438436
};
439437
Ok(res)
440438
}
439+
*/
441440
}
442441

443442
/// Errors related to simplicity Execution

0 commit comments

Comments
 (0)