Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Merge branch 'chiquito-2024' into language-server
Browse files Browse the repository at this point in the history
  • Loading branch information
alxkzmn committed Jun 17, 2024
2 parents ddf9fa3 + 67b945d commit e7c5373
Show file tree
Hide file tree
Showing 29 changed files with 1,311 additions and 291 deletions.
5 changes: 3 additions & 2 deletions examples/blake2f.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ use chiquito::{
frontend::dsl::{
cb::{eq, select, table},
lb::LookupTable,
super_circuit, CircuitContext, StepTypeSetupContext, StepTypeWGHandler,
super_circuit,
trace::DSLTraceGenerator,
CircuitContext, StepTypeSetupContext, StepTypeWGHandler,
},
plonkish::{
backend::halo2::{chiquitoSuperCircuit2Halo2, ChiquitoHalo2SuperCircuit},
Expand All @@ -15,7 +17,6 @@ use chiquito::{
},
poly::ToExpr,
sbpir::query::Queriable,
wit_gen::DSLTraceGenerator,
};
use halo2_proofs::{
dev::MockProver,
Expand Down
16 changes: 8 additions & 8 deletions examples/factorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use std::hash::Hash;

use chiquito::{
field::Field,
frontend::dsl::circuit, // main function for constructing an AST circuit
frontend::dsl::{circuit, trace::DSLTraceGenerator}, /* main function for constructing an AST
* circuit */
plonkish::{
backend::halo2::{chiquito2Halo2, ChiquitoHalo2Circuit},
compiler::{
Expand All @@ -13,14 +14,13 @@ use chiquito::{
},
ir::{assignments::AssignmentGenerator, Circuit},
}, /* compiles to
* Chiquito Halo2
* backend,
* which can be
* integrated into
* Halo2
* circuit */
* Chiquito Halo2
* backend,
* which can be
* integrated into
* Halo2
* circuit */
poly::ToField,
wit_gen::DSLTraceGenerator,
};
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr};

Expand Down
16 changes: 8 additions & 8 deletions examples/fibo_with_padding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use std::hash::Hash;

use chiquito::{
field::Field,
frontend::dsl::circuit, // main function for constructing an AST circuit
frontend::dsl::{circuit, trace::DSLTraceGenerator}, /* main function for constructing an AST
* circuit */
plonkish::{
backend::halo2::{chiquito2Halo2, ChiquitoHalo2Circuit},
compiler::{
Expand All @@ -13,14 +14,13 @@ use chiquito::{
},
ir::{assignments::AssignmentGenerator, Circuit},
}, /* compiles to
* Chiquito Halo2
* backend,
* which can be
* integrated into
* Halo2
* circuit */
* Chiquito Halo2
* backend,
* which can be
* integrated into
* Halo2
* circuit */
poly::ToField,
wit_gen::DSLTraceGenerator,
};
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr};

Expand Down
16 changes: 8 additions & 8 deletions examples/fibonacci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use std::hash::Hash;

use chiquito::{
field::Field,
frontend::dsl::circuit, // main function for constructing an AST circuit
frontend::dsl::{circuit, trace::DSLTraceGenerator}, /* main function for constructing an AST
* circuit */
plonkish::{
backend::{
halo2::{chiquito2Halo2, ChiquitoHalo2Circuit},
Expand All @@ -16,15 +17,14 @@ use chiquito::{
},
ir::{assignments::AssignmentGenerator, Circuit},
}, /* compiles to
* Chiquito Halo2
* backend,
* which can be
* integrated into
* Halo2
* circuit */
* Chiquito Halo2
* backend,
* which can be
* integrated into
* Halo2
* circuit */
poly::ToField,
sbpir::SBPIR,
wit_gen::DSLTraceGenerator,
};
use halo2_proofs::dev::MockProver;

Expand Down
5 changes: 3 additions & 2 deletions examples/keccak.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use chiquito::{
frontend::dsl::{lb::LookupTable, super_circuit, CircuitContext, StepTypeWGHandler},
frontend::dsl::{
lb::LookupTable, super_circuit, trace::DSLTraceGenerator, CircuitContext, StepTypeWGHandler,
},
plonkish::{
backend::halo2::{chiquitoSuperCircuit2Halo2, ChiquitoHalo2SuperCircuit},
compiler::{
Expand All @@ -11,7 +13,6 @@ use chiquito::{
},
poly::ToExpr,
sbpir::query::Queriable,
wit_gen::DSLTraceGenerator,
};
use std::{hash::Hash, ops::Neg};

Expand Down
3 changes: 1 addition & 2 deletions examples/mimc7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use halo2_proofs::{
};

use chiquito::{
frontend::dsl::{lb::LookupTable, super_circuit, CircuitContext},
frontend::dsl::{lb::LookupTable, super_circuit, trace::DSLTraceGenerator, CircuitContext},
plonkish::{
backend::halo2::{chiquitoSuperCircuit2Halo2, ChiquitoHalo2SuperCircuit},
compiler::{
Expand All @@ -15,7 +15,6 @@ use chiquito::{
ir::sc::SuperCircuit,
},
sbpir::query::Queriable,
wit_gen::DSLTraceGenerator,
};

use mimc7_constants::ROUND_CONSTANTS;
Expand Down
3 changes: 1 addition & 2 deletions examples/poseidon.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use chiquito::{
frontend::dsl::{lb::LookupTable, super_circuit, CircuitContext},
frontend::dsl::{lb::LookupTable, super_circuit, trace::DSLTraceGenerator, CircuitContext},
plonkish::{
backend::halo2::{chiquitoSuperCircuit2Halo2, ChiquitoHalo2SuperCircuit},
compiler::{
Expand All @@ -10,7 +10,6 @@ use chiquito::{
ir::sc::SuperCircuit,
},
sbpir::query::Queriable,
wit_gen::DSLTraceGenerator,
};

use std::hash::Hash;
Expand Down
2 changes: 0 additions & 2 deletions src/compiler/abepi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,6 @@ impl<F: From<u64> + TryInto<u32> + Clone + Debug, V: Clone + Debug> CompilationU
let next_step = Expression::Query(dsym, id);
result.extend(self.compile_expression(next_step));

println!("{:#?}", result);

result
}
}
Expand Down
Loading

0 comments on commit e7c5373

Please sign in to comment.