mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Made GetInterpolant and ComputeInterpolant public in Java and .NET.
Fixes Codeplex discussion #616450
This commit is contained in:
parent
7fe337daef
commit
b47851d7da
|
@ -25,7 +25,7 @@ namespace Microsoft.Z3
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Vectors of ASTs.
|
/// Vectors of ASTs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class ASTVector : Z3Object
|
public class ASTVector : Z3Object
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The size of the vector
|
/// The size of the vector
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace Microsoft.Z3
|
||||||
/// <remarks>For more information on interpolation please refer
|
/// <remarks>For more information on interpolation please refer
|
||||||
/// too the function Z3_get_interpolant in the C/C++ API, which is
|
/// too the function Z3_get_interpolant in the C/C++ API, which is
|
||||||
/// well documented.</remarks>
|
/// well documented.</remarks>
|
||||||
Expr[] GetInterpolant(Expr pf, Expr pat, Params p)
|
public Expr[] GetInterpolant(Expr pf, Expr pat, Params p)
|
||||||
{
|
{
|
||||||
Contract.Requires(pf != null);
|
Contract.Requires(pf != null);
|
||||||
Contract.Requires(pat != null);
|
Contract.Requires(pat != null);
|
||||||
|
@ -72,7 +72,7 @@ namespace Microsoft.Z3
|
||||||
/// <remarks>For more information on interpolation please refer
|
/// <remarks>For more information on interpolation please refer
|
||||||
/// too the function Z3_compute_interpolant in the C/C++ API, which is
|
/// too the function Z3_compute_interpolant in the C/C++ API, which is
|
||||||
/// well documented.</remarks>
|
/// well documented.</remarks>
|
||||||
Z3_lbool ComputeInterpolant(Expr pat, Params p, out ASTVector interp, out Model model)
|
public Z3_lbool ComputeInterpolant(Expr pat, Params p, out ASTVector interp, out Model model)
|
||||||
{
|
{
|
||||||
Contract.Requires(pat != null);
|
Contract.Requires(pat != null);
|
||||||
Contract.Requires(p != null);
|
Contract.Requires(p != null);
|
||||||
|
|
|
@ -20,7 +20,7 @@ package com.microsoft.z3;
|
||||||
/**
|
/**
|
||||||
* Vectors of ASTs.
|
* Vectors of ASTs.
|
||||||
**/
|
**/
|
||||||
class ASTVector extends Z3Object
|
public class ASTVector extends Z3Object
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The size of the vector
|
* The size of the vector
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class InterpolationContext extends Context
|
||||||
* well documented.
|
* well documented.
|
||||||
* @throws Z3Exception
|
* @throws Z3Exception
|
||||||
**/
|
**/
|
||||||
Expr[] GetInterpolant(Expr pf, Expr pat, Params p) throws Z3Exception
|
public Expr[] GetInterpolant(Expr pf, Expr pat, Params p) throws Z3Exception
|
||||||
{
|
{
|
||||||
checkContextMatch(pf);
|
checkContextMatch(pf);
|
||||||
checkContextMatch(pat);
|
checkContextMatch(pat);
|
||||||
|
@ -94,7 +94,7 @@ public class InterpolationContext extends Context
|
||||||
* well documented.
|
* well documented.
|
||||||
* @throws Z3Exception
|
* @throws Z3Exception
|
||||||
**/
|
**/
|
||||||
Z3_lbool ComputeInterpolant(Expr pat, Params p, ASTVector interp, Model model) throws Z3Exception
|
public Z3_lbool ComputeInterpolant(Expr pat, Params p, ASTVector interp, Model model) throws Z3Exception
|
||||||
{
|
{
|
||||||
checkContextMatch(pat);
|
checkContextMatch(pat);
|
||||||
checkContextMatch(p);
|
checkContextMatch(p);
|
||||||
|
|
Loading…
Reference in a new issue