Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Slow constraints generation/memory issue #25

@jkwoods

Description

@jkwoods

The compiler hangs (in emit-r1cs mode) and eventually crashes the terminal when there are a large number of constraints (over 10k ish? on my machine). This is presumably due to a memory problem, since a file can be divided into chunks and compile fine, but will not compile all together.

I have attached a test file- its a butchered version of the simplex algorithm we are working on, without any fixed-point, gadgets, etc. It compiles fine when it's "chunked up" (The easiest way to see this is by commenting out different function calls in the simplex_prover() method near the bottom.) simplex_prover.c.txt

I have been using this command to run:
C_no_overflow=True C_streams=smt::opt stack run -- c main simplex_prover.c --emit-r1cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions