fix FRI benchmark and compilation with recent compilers #50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for the useful library!
This PR fixes a couple issues I ran into:
size_t
is defined in<cstddef>
. Some C++ libraries will incidentally pull this in, but that's not guaranteed. Concretely, gcc-11 complains thatsize_t
is undefined. The first commit in this PR fixes that.fri_iop
is broken---it segfaults; the second commit in this PR fixes it. A quick glance gives the impression that this issue has been in the codebase for a while. (To reproduce segfault: build current master branch and try to runtest_fri_optimizer
orinstrument_fri_snark
.instrument_fri_snark
: thelocalization_parameter
,num_localization_steps
,num_oracles
,num_interactive_repetitions
, andnum_query_repetitions
arguments aren't handle properly. The third commit in this PR fixes it.benchmark
dependency breaks with newer compiler/cmake combinations. Not 100% sure what versions break it, but it seems to be an interaction between theCMAKE_CXX_STANDARD
andCMAKE_CXX_STANDARD_REQUIRED
cmake flags andcxx03_test.c
inbenchmark
. The fourth commit in this PR just updatesbenchmark
to the latest version, which appears to work correctly and fixes the issue.