@@ -22,7 +22,12 @@ fn test_duplicate_function_name() {
2222 return;
2323 }
2424 "# ;
25- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
25+ compile_and_run (
26+ program. to_string ( ) ,
27+ ( & [ ] , & [ ] ) ,
28+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
29+ false ,
30+ ) ;
2631}
2732
2833#[ test]
@@ -36,7 +41,12 @@ fn test_duplicate_constant_name() {
3641 return;
3742 }
3843 "# ;
39- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
44+ compile_and_run (
45+ program. to_string ( ) ,
46+ ( & [ ] , & [ ] ) ,
47+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
48+ false ,
49+ ) ;
4050}
4151
4252#[ test]
@@ -57,7 +67,12 @@ fn test_fibonacci_program() {
5767 return;
5868 }
5969 "# ;
60- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
70+ compile_and_run (
71+ program. to_string ( ) ,
72+ ( & [ ] , & [ ] ) ,
73+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
74+ false ,
75+ ) ;
6176}
6277
6378#[ test]
@@ -75,7 +90,12 @@ fn test_edge_case_0() {
7590 return;
7691 }
7792 "# ;
78- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
93+ compile_and_run (
94+ program. to_string ( ) ,
95+ ( & [ ] , & [ ] ) ,
96+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
97+ false ,
98+ ) ;
7999}
80100
81101#[ test]
@@ -88,7 +108,12 @@ fn test_edge_case_1() {
88108 return;
89109 }
90110 "# ;
91- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
111+ compile_and_run (
112+ program. to_string ( ) ,
113+ ( & [ ] , & [ ] ) ,
114+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
115+ false ,
116+ ) ;
92117}
93118
94119#[ test]
@@ -106,7 +131,12 @@ fn test_edge_case_2() {
106131 return;
107132 }
108133 "# ;
109- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
134+ compile_and_run (
135+ program. to_string ( ) ,
136+ ( & [ ] , & [ ] ) ,
137+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
138+ false ,
139+ ) ;
110140}
111141
112142#[ test]
@@ -122,7 +152,12 @@ fn test_decompose_bits() {
122152 return;
123153 }
124154 "# ;
125- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
155+ compile_and_run (
156+ program. to_string ( ) ,
157+ ( & [ ] , & [ ] ) ,
158+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
159+ false ,
160+ ) ;
126161}
127162
128163#[ test]
@@ -138,7 +173,12 @@ fn test_unroll() {
138173 return;
139174 }
140175 "# ;
141- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
176+ compile_and_run (
177+ program. to_string ( ) ,
178+ ( & [ ] , & [ ] ) ,
179+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
180+ false ,
181+ ) ;
142182}
143183
144184#[ test]
@@ -150,7 +190,12 @@ fn test_rev_unroll() {
150190 return;
151191 }
152192 "# ;
153- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
193+ compile_and_run (
194+ program. to_string ( ) ,
195+ ( & [ ] , & [ ] ) ,
196+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
197+ false ,
198+ ) ;
154199}
155200
156201#[ test]
@@ -170,7 +215,12 @@ fn test_mini_program_0() {
170215 return;
171216 }
172217 "# ;
173- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
218+ compile_and_run (
219+ program. to_string ( ) ,
220+ ( & [ ] , & [ ] ) ,
221+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
222+ false ,
223+ ) ;
174224}
175225
176226#[ test]
@@ -213,7 +263,12 @@ fn test_mini_program_1() {
213263 return;
214264 }
215265 "# ;
216- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
266+ compile_and_run (
267+ program. to_string ( ) ,
268+ ( & [ ] , & [ ] ) ,
269+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
270+ false ,
271+ ) ;
217272}
218273
219274#[ test]
@@ -241,7 +296,12 @@ fn test_mini_program_2() {
241296 return sum, product;
242297 }
243298 "# ;
244- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
299+ compile_and_run (
300+ program. to_string ( ) ,
301+ ( & [ ] , & [ ] ) ,
302+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
303+ false ,
304+ ) ;
245305}
246306
247307#[ test]
@@ -269,9 +329,8 @@ fn test_mini_program_3() {
269329 "# ;
270330 let mut public_input: [ F ; 16 ] = ( 0 ..16 ) . map ( F :: new) . collect :: < Vec < F > > ( ) . try_into ( ) . unwrap ( ) ;
271331 compile_and_run (
272- program,
273- & public_input,
274- & [ ] ,
332+ program. to_string ( ) ,
333+ ( & public_input, & [ ] ) ,
275334 DEFAULT_NO_VEC_RUNTIME_MEMORY ,
276335 false ,
277336 ) ;
@@ -298,9 +357,8 @@ fn test_mini_program_4() {
298357 "# ;
299358 let mut public_input: [ F ; 24 ] = ( 0 ..24 ) . map ( F :: new) . collect :: < Vec < F > > ( ) . try_into ( ) . unwrap ( ) ;
300359 compile_and_run (
301- program,
302- & public_input,
303- & [ ] ,
360+ program. to_string ( ) ,
361+ ( & public_input, & [ ] ) ,
304362 DEFAULT_NO_VEC_RUNTIME_MEMORY ,
305363 false ,
306364 ) ;
@@ -383,7 +441,12 @@ fn test_inlined() {
383441 return;
384442 }
385443 "# ;
386- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
444+ compile_and_run (
445+ program. to_string ( ) ,
446+ ( & [ ] , & [ ] ) ,
447+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
448+ false ,
449+ ) ;
387450}
388451
389452#[ test]
@@ -435,7 +498,12 @@ fn test_match() {
435498 return x * x * x * x * x * x;
436499 }
437500 "# ;
438- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
501+ compile_and_run (
502+ program. to_string ( ) ,
503+ ( & [ ] , & [ ] ) ,
504+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
505+ false ,
506+ ) ;
439507}
440508
441509// #[test]
@@ -453,7 +521,7 @@ fn test_match() {
453521// return 1;
454522// }
455523// "#;
456- // compile_and_run(program, &[], &[]);
524+ // compile_and_run(program.to_string(), ( &[], &[]) );
457525// }
458526
459527#[ test]
@@ -476,7 +544,12 @@ fn test_const_functions_calling_const_functions() {
476544 }
477545 "# ;
478546
479- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
547+ compile_and_run (
548+ program. to_string ( ) ,
549+ ( & [ ] , & [ ] ) ,
550+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
551+ false ,
552+ ) ;
480553}
481554
482555#[ test]
@@ -499,7 +572,12 @@ fn test_inline_functions_calling_inline_functions() {
499572 }
500573 "# ;
501574
502- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
575+ compile_and_run (
576+ program. to_string ( ) ,
577+ ( & [ ] , & [ ] ) ,
578+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
579+ false ,
580+ ) ;
503581}
504582
505583#[ test]
@@ -526,5 +604,10 @@ fn test_nested_inline_functions() {
526604 }
527605 "# ;
528606
529- compile_and_run ( program, & [ ] , & [ ] , DEFAULT_NO_VEC_RUNTIME_MEMORY , false ) ;
607+ compile_and_run (
608+ program. to_string ( ) ,
609+ ( & [ ] , & [ ] ) ,
610+ DEFAULT_NO_VEC_RUNTIME_MEMORY ,
611+ false ,
612+ ) ;
530613}
0 commit comments