18
18
//! frame management optimizations which can be used to great benefit.
19
19
//!
20
20
21
- use std:: cmp;
21
+ use super :: frame:: Frame ;
22
+ use crate :: core:: Value ;
23
+ use crate :: jet:: AppError ;
22
24
use std:: error;
23
25
use std:: fmt;
24
26
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
-
32
27
/// An execution context for a Simplicity program
33
28
pub struct BitMachine {
34
29
/// Space for bytes that read and write frames point to.
@@ -43,6 +38,7 @@ pub struct BitMachine {
43
38
}
44
39
45
40
impl BitMachine {
41
+ /*
46
42
/// Construct a Bit Machine with enough space to execute
47
43
/// the given program
48
44
pub fn for_program<App: Application>(program: &Program<App>) -> BitMachine {
@@ -56,6 +52,7 @@ impl BitMachine {
56
52
write: Vec::with_capacity(prog.frame_count_bound + 1),
57
53
}
58
54
}
55
+ */
59
56
60
57
/// Push a new frame of given size onto the write frame stack
61
58
fn new_frame ( & mut self , len : usize ) {
@@ -268,6 +265,7 @@ impl BitMachine {
268
265
self . move_frame ( ) ;
269
266
}
270
267
268
+ /*
271
269
/// Execute a program in the Bit Machine
272
270
pub fn exec<'a, App: Application>(
273
271
&mut self,
@@ -438,6 +436,7 @@ impl BitMachine {
438
436
};
439
437
Ok(res)
440
438
}
439
+ */
441
440
}
442
441
443
442
/// Errors related to simplicity Execution
0 commit comments