File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -768,7 +768,7 @@ fn remove_constant_witness_columns<T: FieldElement>(pil_file: &mut Analyzed<T>)
768768 substitute_polynomial_references ( pil_file, constant_polys) ;
769769}
770770
771- /// Inlines `col i = e` into the references to `i` where `e` is a non-shifted expression with no operations.
771+ /// Inlines `col i = e` into the references to `i` where `e` is an expression with no operations.
772772/// The reasoning is that intermediate columns are useful to remember intermediate computation results, but in this case
773773/// the intermediate results are already known.
774774fn inline_trivial_intermediate_polynomials < T : FieldElement > ( pil_file : & mut Analyzed < T > ) {
@@ -781,13 +781,15 @@ fn inline_trivial_intermediate_polynomials<T: FieldElement>(pil_file: &mut Analy
781781 false => {
782782 let ( ( name, poly_id) , value) = symbols_and_definitions. next ( ) . unwrap ( ) ;
783783 match value {
784- AlgebraicExpression :: Number ( _) | AlgebraicExpression :: Reference ( _) => {
784+ AlgebraicExpression :: BinaryOperation ( _) | AlgebraicExpression :: UnaryOperation ( _) => {
785+ None
786+ }
787+ _ =>{
785788 log:: debug!(
786789 "Determined intermediate column {name} to be trivial value `{value}`. Removing." ,
787790 ) ;
788- Some ( ( ( name. clone ( ) , poly_id) , value. clone ( ) ) )
791+ Some ( ( ( name, poly_id) , value. clone ( ) ) )
789792 }
790- _ => None ,
791793 }
792794 }
793795 }
You can’t perform that action at this time.
0 commit comments