Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a sanity check that calls to_matrices before inlining #42

Merged
merged 1 commit into from
Nov 12, 2020
Merged
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
7 changes: 0 additions & 7 deletions src/ahp/constraint_systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ pub(crate) fn num_non_zero<F: PrimeField>(matrices: &ConstraintMatrices<F>) -> u

pub(crate) fn make_matrices_square_for_indexer<F: PrimeField>(cs: ConstraintSystemRef<F>) {
let num_variables = cs.num_instance_variables() + cs.num_witness_variables();
let matrices = cs.to_matrices().unwrap();
let num_non_zero_val = num_non_zero::<F>(&matrices);
let matrix_dim = padded_matrix_dim(num_variables, cs.num_constraints());
make_matrices_square(cs.clone(), num_variables);
assert_eq!(
Expand All @@ -62,11 +60,6 @@ pub(crate) fn make_matrices_square_for_indexer<F: PrimeField>(cs: ConstraintSyst
matrix_dim,
"padding does not result in expected matrix size!"
);
assert_eq!(
num_non_zero::<F>(&matrices),
num_non_zero_val,
"padding changed matrix density"
);
}

/// This must *always* be in sync with `make_matrices_square`.
Expand Down