Commit 908238f 1 parent 7777b30 commit 908238f Copy full SHA for 908238f
File tree 1 file changed +6
-4
lines changed
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>)
768
768
substitute_polynomial_references ( pil_file, constant_polys) ;
769
769
}
770
770
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.
772
772
/// The reasoning is that intermediate columns are useful to remember intermediate computation results, but in this case
773
773
/// the intermediate results are already known.
774
774
fn 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
781
781
false => {
782
782
let ( ( name, poly_id) , value) = symbols_and_definitions. next ( ) . unwrap ( ) ;
783
783
match value {
784
- AlgebraicExpression :: Number ( _) | AlgebraicExpression :: Reference ( _) => {
784
+ AlgebraicExpression :: BinaryOperation ( _) | AlgebraicExpression :: UnaryOperation ( _) => {
785
+ None
786
+ }
787
+ _ =>{
785
788
log:: debug!(
786
789
"Determined intermediate column {name} to be trivial value `{value}`. Removing." ,
787
790
) ;
788
- Some ( ( ( name. clone ( ) , poly_id) , value. clone ( ) ) )
791
+ Some ( ( ( name, poly_id) , value. clone ( ) ) )
789
792
}
790
- _ => None ,
791
793
}
792
794
}
793
795
}
You can’t perform that action at this time.
0 commit comments