@@ -20,7 +20,7 @@ const INT64: i32 = 7;
2020/// α = 2^18 = 262144
2121const ALPHA : i64 = 262144 ;
2222
23- fn tol ( abs : i64 ) -> Tolerance {
23+ fn tol ( abs : u64 ) -> Tolerance {
2424 Tolerance {
2525 abs,
2626 rel : 0.0 ,
@@ -85,6 +85,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
8585 inputs : vec ! [ a_vals] ,
8686 tolerance : tol ( 3 ) ,
8787 ignore_extra_reference_outputs : false ,
88+ allow_jstprove_error : false ,
8889 } ) ;
8990 }
9091
@@ -136,6 +137,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
136137 inputs : vec ! [ a_vals] ,
137138 tolerance : tol ( 3 ) ,
138139 ignore_extra_reference_outputs : false ,
140+ allow_jstprove_error : false ,
139141 } ) ;
140142 }
141143
@@ -173,6 +175,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
173175 inputs : vec ! [ a_vals, b_alpha] ,
174176 tolerance : tol ( 3 ) ,
175177 ignore_extra_reference_outputs : false ,
178+ allow_jstprove_error : false ,
176179 } ) ;
177180 }
178181
@@ -236,6 +239,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
236239 inputs : vec ! [ x_vals] ,
237240 tolerance : tol ( 3 ) ,
238241 ignore_extra_reference_outputs : false ,
242+ allow_jstprove_error : false ,
239243 } ) ;
240244 }
241245
@@ -293,6 +297,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
293297 inputs : vec ! [ x_vals] ,
294298 tolerance : tol ( 3 ) ,
295299 ignore_extra_reference_outputs : false ,
300+ allow_jstprove_error : false ,
296301 } ) ;
297302 }
298303
@@ -342,6 +347,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
342347 inputs : vec ! [ x_vals] ,
343348 tolerance : tol ( 5 ) ,
344349 ignore_extra_reference_outputs : false ,
350+ allow_jstprove_error : false ,
345351 } ) ;
346352 }
347353
@@ -399,6 +405,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
399405 inputs : vec ! [ x_vals] ,
400406 tolerance : tol ( 3 ) ,
401407 ignore_extra_reference_outputs : false ,
408+ allow_jstprove_error : false ,
402409 } ) ;
403410 }
404411
@@ -428,6 +435,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
428435 inputs : vec ! [ a_vals] ,
429436 tolerance : Tolerance :: EXACT ,
430437 ignore_extra_reference_outputs : false ,
438+ allow_jstprove_error : false ,
431439 } ) ;
432440 }
433441
@@ -460,6 +468,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
460468 inputs : vec ! [ x_vals] ,
461469 tolerance : tol ( 3 ) ,
462470 ignore_extra_reference_outputs : false ,
471+ allow_jstprove_error : false ,
463472 } ) ;
464473 }
465474
@@ -494,6 +503,7 @@ pub fn rescaling_cases() -> Vec<TestCase> {
494503 inputs : vec ! [ x_vals] ,
495504 tolerance : tol ( 3 ) ,
496505 ignore_extra_reference_outputs : false ,
506+ allow_jstprove_error : false ,
497507 } ) ;
498508 }
499509
@@ -530,6 +540,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
530540 inputs : vec ! [ x_vals] ,
531541 tolerance : tol ( 5 ) ,
532542 ignore_extra_reference_outputs : false ,
543+ allow_jstprove_error : false ,
533544 } ) ;
534545 }
535546
@@ -551,6 +562,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
551562 inputs : vec ! [ x_vals] ,
552563 tolerance : tol ( 5 ) ,
553564 ignore_extra_reference_outputs : false ,
565+ allow_jstprove_error : false ,
554566 } ) ;
555567 }
556568
@@ -575,6 +587,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
575587 inputs : vec ! [ x_vals] ,
576588 tolerance : tol ( 8 ) ,
577589 ignore_extra_reference_outputs : false ,
590+ allow_jstprove_error : false ,
578591 } ) ;
579592 }
580593
@@ -617,6 +630,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
617630 inputs : vec ! [ x_vals] ,
618631 tolerance : tol ( 8 ) ,
619632 ignore_extra_reference_outputs : false ,
633+ allow_jstprove_error : false ,
620634 } ) ;
621635 }
622636
@@ -639,6 +653,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
639653 inputs : vec ! [ x_vals] ,
640654 tolerance : tol ( 5 ) ,
641655 ignore_extra_reference_outputs : false ,
656+ allow_jstprove_error : false ,
642657 } ) ;
643658 }
644659
@@ -669,6 +684,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
669684 inputs : vec ! [ x_vals] ,
670685 tolerance : tol ( 5 ) ,
671686 ignore_extra_reference_outputs : false ,
687+ allow_jstprove_error : false ,
672688 } ) ;
673689 }
674690
@@ -690,6 +706,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
690706 inputs : vec ! [ x_vals] ,
691707 tolerance : tol ( 5 ) ,
692708 ignore_extra_reference_outputs : false ,
709+ allow_jstprove_error : false ,
693710 } ) ;
694711 }
695712
@@ -715,6 +732,7 @@ pub fn transcendental_cases() -> Vec<TestCase> {
715732 inputs : vec ! [ x_vals] ,
716733 tolerance : tol ( 5 ) ,
717734 ignore_extra_reference_outputs : false ,
735+ allow_jstprove_error : false ,
718736 } ) ;
719737 }
720738
@@ -763,6 +781,7 @@ pub fn pooling_cases() -> Vec<TestCase> {
763781 inputs : vec ! [ x_vals] ,
764782 tolerance : tol ( 3 ) ,
765783 ignore_extra_reference_outputs : false ,
784+ allow_jstprove_error : false ,
766785 } ) ;
767786 }
768787
@@ -785,6 +804,7 @@ pub fn pooling_cases() -> Vec<TestCase> {
785804 inputs : vec ! [ x_vals] ,
786805 tolerance : tol ( 3 ) ,
787806 ignore_extra_reference_outputs : false ,
807+ allow_jstprove_error : false ,
788808 } ) ;
789809 }
790810
@@ -817,6 +837,7 @@ pub fn pooling_cases() -> Vec<TestCase> {
817837 inputs : vec ! [ x_vals] ,
818838 tolerance : tol ( 1 ) , // slight tolerance due to float comparison
819839 ignore_extra_reference_outputs : false ,
840+ allow_jstprove_error : false ,
820841 } ) ;
821842 }
822843
@@ -886,6 +907,7 @@ pub fn spatial_cases() -> Vec<TestCase> {
886907 inputs : vec ! [ x_vals] ,
887908 tolerance : Tolerance :: EXACT ,
888909 ignore_extra_reference_outputs : false ,
910+ allow_jstprove_error : false ,
889911 } ) ;
890912 }
891913
@@ -923,6 +945,7 @@ pub fn spatial_cases() -> Vec<TestCase> {
923945 inputs : vec ! [ x_vals] ,
924946 tolerance : tol ( 5 ) ,
925947 ignore_extra_reference_outputs : false ,
948+ allow_jstprove_error : false ,
926949 } ) ;
927950 }
928951
@@ -981,6 +1004,7 @@ pub fn topk_cases() -> Vec<TestCase> {
9811004 inputs : vec ! [ x_vals] ,
9821005 tolerance : Tolerance :: EXACT ,
9831006 ignore_extra_reference_outputs : true ,
1007+ allow_jstprove_error : false ,
9841008 } ) ;
9851009 }
9861010
@@ -1018,6 +1042,7 @@ pub fn topk_cases() -> Vec<TestCase> {
10181042 inputs : vec ! [ x_vals] ,
10191043 tolerance : Tolerance :: EXACT ,
10201044 ignore_extra_reference_outputs : true ,
1045+ allow_jstprove_error : false ,
10211046 } ) ;
10221047 }
10231048
0 commit comments