Skip to content

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