This is an archive of the discontinued LLVM Phabricator instance.

Created a tiny SMT interface and make Z3ConstraintManager implement it
ClosedPublic

Authored by mikhail.ramalho on Jun 3 2018, 10:29 AM.

Details

Summary

This patch implements a simple SMTConstraintManager API, and requires the implementation of two methods for now: addRangeConstraints and isModelFeasible.

Update Z3ConstraintManager to inherit it and implement required methods.

I also moved the method to dump the SMT formula from D45517 to this patch.

This patch was created based on the reviews from D47640.

Diff Detail

Repository
rC Clang

Event Timeline

george.karpenkov accepted this revision.Jun 3 2018, 2:00 PM

LGTM with a nit.

include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
8

Add a sentence/few sentences description here.

This revision is now accepted and ready to land.Jun 3 2018, 2:00 PM

Added small description in the SMTConstraintManager header.

yep, this can be committed.

This revision was automatically updated to reflect the committed changes.