Skip to content

Commit 6aa8ee5

Browse files
committed
lang: vm Label type
1 parent 9743c76 commit 6aa8ee5

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

crates/leanVm/src/intermediate_bytecode.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ use std::{collections::BTreeMap, fmt};
33
use p3_field::{PrimeCharacteristicRing, PrimeField64};
44

55
use crate::{
6-
Label, bytecode::operation::Operation, constant::F, lang::const_expr::ConstExpression,
6+
bytecode::operation::Operation,
7+
constant::F,
8+
lang::{Label, const_expr::ConstExpression},
79
};
810

911
#[derive(Debug, Clone)]

crates/leanVm/src/lang/const_expr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ use std::fmt;
33
use p3_field::PrimeCharacteristicRing;
44

55
use crate::{
6-
Label,
76
constant::F,
87
intermediate_bytecode::HighLevelOperation,
9-
lang::{constant_value::ConstantValue, expression::Expression, simple_expr::SimpleExpr},
8+
lang::{Label, constant_value::ConstantValue, expression::Expression, simple_expr::SimpleExpr},
109
};
1110

1211
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]

crates/leanVm/src/lang/constant_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt;
22

3-
use crate::Label;
3+
use crate::lang::Label;
44

55
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
66
pub enum ConstantValue {

crates/leanVm/src/lang/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
pub mod boolean;
2+
pub use boolean::*;
23
pub mod const_expr;
4+
pub use const_expr::*;
35
pub mod constant_value;
6+
pub use constant_value::*;
47
pub mod expression;
8+
pub use expression::*;
59
pub mod function;
10+
pub use function::*;
611
pub mod line;
12+
pub use line::*;
713
pub mod program;
14+
pub use program::*;
815
pub mod simple_expr;
16+
pub use simple_expr::*;
917

1018
pub type Var = String;
1119
pub type ConstMallocLabel = usize;
20+
pub type Label = String;

crates/leanVm/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ pub mod memory;
1010
pub mod poseidon2;
1111
pub mod trace;
1212
pub mod witness;
13-
14-
pub type Label = String;

0 commit comments

Comments
 (0)