Skip to content

Commit c64e5f4

Browse files
authored
Fix which-is-unsatisfied (#394)
1 parent 477cca8 commit c64e5f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

relations/examples/non_satisfiable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn main() {
3737
// Build the circuit
3838
let _result_var =
3939
generate_constraints(cs.clone(), p1, p2, p3, p4, w1, w2, w3, w4, expected_result).unwrap();
40-
let trace = cs.which_predicate_is_unsatisfied().unwrap().unwrap();
40+
let trace = cs.which_is_unsatisfied().unwrap().unwrap();
4141
println!(
4242
"This is the trace of non-satisfied scenario, Check out the trace:\n{}",
4343
trace

relations/src/gr1cs/constraint_system_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl<F: Field> ConstraintSystemRef<F> {
349349
/// the unsatisfied prediacate and `i` is the index of
350350
/// the first unsatisfied constraint in that predicate.
351351
/// If `self.is_in_setup_mode()` or `self == None`, outputs `Err(())`.
352-
pub fn which_predicate_is_unsatisfied(&self) -> crate::utils::Result<Option<String>> {
352+
pub fn which_is_unsatisfied(&self) -> crate::utils::Result<Option<String>> {
353353
self.inner()
354354
.ok_or(SynthesisError::MissingCS)
355355
.and_then(|cs| cs.borrow().which_is_unsatisfied())

0 commit comments

Comments
 (0)