Skip to content
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

UNSAT Certificate core modules (only) #530

Merged
merged 76 commits into from
Mar 23, 2022

Conversation

OmriIsacHUJI
Copy link
Contributor

@OmriIsacHUJI OmriIsacHUJI commented Feb 17, 2022

Added files for constructing UNSAT certificate, without changing Marabou's functionality (modules are not used):

  • BoundsExplainer - manages all bounds' explanations.
  • UNSATcertificate - contains classes of the certificate tree and other data structures.
  • SmtLibWriter - enables writing a query (or a node in its search tree) as an smtlib format query.
  • Tests for BoundsExplainer and CertificateNode

@OmriIsacHUJI OmriIsacHUJI marked this pull request as ready for review February 17, 2022 16:51
Copy link
Collaborator

@guykatzz guykatzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed only the first 3 files for now. Most comments are about the coding convention - please apply them throughout the PR, not just for the lines I commented on, and I'll re-review afterwards.

src/common/SmtLibWriter.h Outdated Show resolved Hide resolved
src/common/SmtLibWriter.h Outdated Show resolved Hide resolved
src/common/SmtLibWriter.h Outdated Show resolved Hide resolved
src/common/SmtLibWriter.h Outdated Show resolved Hide resolved
src/common/SmtLibWriter.h Outdated Show resolved Hide resolved
src/engine/BoundsExplainer.cpp Outdated Show resolved Hide resolved
src/engine/BoundsExplainer.cpp Outdated Show resolved Hide resolved
src/engine/BoundsExplainer.cpp Outdated Show resolved Hide resolved
src/engine/BoundsExplainer.cpp Outdated Show resolved Hide resolved
src/engine/BoundsExplainer.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@guykatzz guykatzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another batch of comments, mostly about style.

src/common/List.h Outdated Show resolved Hide resolved
src/common/Vector.h Show resolved Hide resolved
src/common/SmtLibWriter.cpp Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.h Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.h Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.cpp Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.cpp Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.cpp Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.cpp Outdated Show resolved Hide resolved
src/engine/UNSATCertificate.cpp Outdated Show resolved Hide resolved
OmriIsacHUJI and others added 27 commits March 10, 2022 10:43
Added appendHead function that enables adding another list.
Row coefficients vector is added with coefficient 1.
Minor modifications.
Test match changes in BoundExplainer
Match changes in UnsatCertificateNode
Added a couple of consts
Class is responsible for memory allocation.
Added getters.
Class is responsible for memory allocation.
Added getters.
Class is responsible for memory allocation.
Added getters.
Class is responsible for memory allocation.
Added getters.
Moved certification methods to Checker class
Moved certification methods to Checker class
When checking an explanation, it is received as an array (rather than a vector).
Changed the row produced from an explanation, to match the changes in BoundExplainer.
When checking an explanation, it is received as an array (rather than a vector).
Changed the row produced from an explanation, to match the changes in BoundExplainer.
g/setPhaseStatus() methods are public
@omriisack omriisack merged commit 69dc5eb into NeuralNetworkVerification:master Mar 23, 2022
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