Skip to content

Ensure everything compiles individually & sort includes #79

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

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

aleksejspopovs
Copy link
Contributor

Just like in libff pull request 9, I have made every file in libsnark compile individually by adding all missing includes, and also sorted all includes.

I also fixed a couple of places where references to functions/variables from libff were not properly namespaced.

I also deleted libsnark/gadgetlib1/gadgets/cpu_checkers/tinyram/components/instruction_packing_gadget.{hpp,tcc}. These files did not compile, contained references to names that did not actually exist, and were not even included from anywhere. According to Madars, these files used to be a part of a previous implementation of the reduction, and don't have any purpose any more.

I have added a couple missing includes, so that every *.cpp or *.hpp
file in the repository can now be compiled individually. I also grouped
all includes (by stdlib/external libs/libff) and sorted them.

instruction_packing_gadget was deleted because it did not compile, was
clearly incompatible with the current codebase, and was not used
anywhere. According to Madars, it was used in a previous version of
the reduction.
@tromer
Copy link
Member

tromer commented Jun 27, 2017

LGTM, and indeed needed. Let's merge.

In the future please try to break changes into separate commits (e.g., removal of instruction_packing_gadget) to ease reviewing, cherry-picking and bisection.

@madars madars merged commit 09a09ad into scipr-lab:candidate-master Jun 27, 2017
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.

3 participants