Files
Picus/tests
sorawee affb4cc3e8 ci: support timing out and optimization flag (#31)
Prior this commit, we cannot write tests expecting a timeout.
This commit adds the ability to do so.

Another major change is to support tests with optimization flag.
When Circom is given -O2, Circom files without public inputs
(which are all of our benchmarks) will fail to be compiled correctly.
This commit adds a heustistic to detect such situation,
and then "patch" the Circom file to add public inputs.
This is done by doing Circom compilation twice.
The first compilation allows us to read information from R1CS file,
which is then used for patching. The second compilation compiles
the patched file.
2023-09-07 18:57:22 -05:00
..