Skip to content

Commit

Permalink
fix: pil syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
eigmax committed Jul 26, 2024
1 parent f53937c commit cf79f45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recursion/src/compressor12/compressor12_pil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ pub fn render(n_bits: usize, n_publics: usize) -> String {
let mut res = String::from("");
res.push_str(&format!(
r#"
let N = 2**{n_bits};
let N: int = 2**{n_bits};
namespace Global(%N);
namespace Global(N);
pol constant L1;
"#
));
Expand All @@ -68,7 +68,7 @@ namespace Global(%N);

res.push_str(
r#"
namespace Compressor(%N);
namespace Compressor(N);
pol constant S[12];
pol constant C[12];
pol constant PARTIAL;
Expand Down Expand Up @@ -356,8 +356,8 @@ namespace Compressor(%N);
EVPOL4 * (a[8]' - acc4_2 ) = 0;
// Connection equations
{a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11]} connect
{S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], S[8], S[9], S[10], S[11]};
[a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11]] connect
[S[0], S[1], S[2], S[3], S[4], S[5], S[6], S[7], S[8], S[9], S[10], S[11]];
"#,
);
Expand Down

0 comments on commit cf79f45

Please sign in to comment.