Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions crates/compiler/src/c_compile_final.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,6 @@ use crate::{
lang::{ConstExpression, ConstantValue},
};

impl IntermediateInstruction {
const fn is_hint(&self) -> bool {
match self {
Self::RequestMemory { .. }
| Self::Print { .. }
| Self::DecomposeBits { .. }
| Self::Inverse { .. } => true,
Self::Computation { .. }
| Self::Panic
| Self::Deref { .. }
| Self::JumpIfNotZero { .. }
| Self::Jump { .. }
| Self::Poseidon2_16 { .. }
| Self::Poseidon2_24 { .. }
| Self::DotProduct { .. }
| Self::MultilinearEval { .. } => false,
}
}
}

struct Compiler {
memory_size_per_function: BTreeMap<String, usize>,
label_to_pc: BTreeMap<Label, usize>,
Expand Down Expand Up @@ -329,6 +309,7 @@ impl IntermediateValue {
_ => Err(format!("Cannot convert {self:?} to MemOrFp")),
}
}

fn try_into_mem_or_constant(&self, compiler: &Compiler) -> Result<MemOrConstant, String> {
if let Some(cst) = try_as_constant(self, compiler) {
return Ok(MemOrConstant::Constant(cst));
Expand Down
360 changes: 0 additions & 360 deletions crates/compiler/src/intermediate_bytecode.rs

This file was deleted.

Loading