Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

42 dfri recursive component #66

Closed
wants to merge 6 commits into from
Closed

Conversation

ETatuzova
Copy link
Contributor

No description provided.

@ETatuzova ETatuzova self-assigned this Oct 5, 2024
@ETatuzova ETatuzova linked an issue Oct 5, 2024 that may be closed by this pull request
row++;
}

std::vector<std::pair<std::size_t, std::size_t>> ordered_eval_map;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move it to constructor

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to dFRI component constructor

witnesses.push_back(component.W(i));
}

dfri_linear_check_component_type dfri_linear_check_instance = dfri_linear_check_component_type(witnesses, std::array<std::uint32_t, 1>(), std::array<std::uint32_t, 0>(), ordered_eval_map.size(), ordered_eval_map);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move component instance constructor to dFRI verifier constructor

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to dFRI component constructor

x_indices.push_back(x_index_output.b0);
}

std::vector<var> negative_xs;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to use lambda rows for it.
Place pairs {x, -x} horizontally

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flexible_negate component created for this part

const auto &constant_pow2_instance = component.constant_pow2_instance;
const auto &x_index_instance = component.x_index_instance;
const auto &colinear_checks_instance = component.colinear_checks_instance;
// const auto &dfri_linear_check_instance = component.dfri_linear_check_instance;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it commented?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncommented

x_indices.push_back(x_index_output.b0);
}

std::vector<var> negative_xs;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with similar comment in generate_assignments.
Place pairs horizontally

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flexible_negate component added for this operation

row++;
}

std::vector<std::pair<std::size_t, std::size_t>> ordered_eval_map;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need in code duplication. Move to constructor.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to dFRI component constructor

witnesses.push_back(component.W(i));
}

dfri_linear_check_component_type dfri_linear_check_instance = dfri_linear_check_component_type(witnesses, std::array<std::uint32_t, 1>(), std::array<std::uint32_t, 0>(), ordered_eval_map.size(), ordered_eval_map);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to dFRI component constructor

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to dFRI component constructor

@ETatuzova ETatuzova assigned Valeh2012 and unassigned ETatuzova Oct 5, 2024
Copy link

Gcc Test Results

  158 files  + 5    158 suites  +5   12m 22s ⏱️ +28s
3 235 tests +28  3 229 ✅ +28  6 💤 ±0  0 ❌ ±0 
3 305 runs  +31  3 299 ✅ +31  6 💤 ±0  0 ❌ ±0 

Results for commit f1d90a6. ± Comparison against base commit bc36fe5.

@Valeh2012 Valeh2012 closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dFRI recursive component
2 participants