Closed npwardberkeley closed 3 years ago
This fmt issue may have something to do with the Rust version, aka
Because some other versions, and some nightly, have different cargo fmt preferences.
let me cc @Pratyush and @ValarDragon here for some feedback on the API.
It seems that all the comments have been resolved, with this one needing more discussion:
whether or not to keep this function
fn reduce_constraint_weight(&mut self) {
Since this function is now fn
rather than pub fn
, I think for now it is okay to remove this function. The function is only, previously used by Marlin (who needs to change accordingly).
Nick, what do you think?
Yes, that makes sense!
Let me cc @Pratyush and @ValarDragon for a final pass
I left a comment about None
Based on the discussion above, I think we will keep None
for now and redirect it to self.inline_all_lcs()
. This is the last change needed/ In the future, different treatments may occur, such as reducing the amount of symbolic LC.
Checks pass :) Pratyush and Dev, if it looks good, feel free to merge or do some final edits.
One more: we need to export OptimizationGoal here:
https://github.com/npwardberkeley/snark/blob/finalize/relations/src/r1cs/mod.rs#L21
Otherwise, Marlin could not find it.
add one to enforce that set_optimization_goal
must check that no constraint/variable has been written.
num_instance_variables: 1,
num_witness_variables: 0,
num_constraints: 0,
num_linear_combinations: 0,
(sorry to bother Nick---I could add them if you add me as a PR repo's writer)
Initial attempt to resolve #333