mirror of
https://github.com/Z3Prover/z3
synced 2025-11-25 23:19:32 +00:00
add simplifier to java API
This commit is contained in:
parent
2e068e3f56
commit
4143c54257
5 changed files with 207 additions and 1 deletions
58
src/api/java/Simplifier.java
Normal file
58
src/api/java/Simplifier.java
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/*++
|
||||
Copyright (c) 2012 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
Simplifiers.cs
|
||||
|
||||
Abstract:
|
||||
|
||||
Z3 Managed API: Simplifiers
|
||||
|
||||
Author:
|
||||
|
||||
Christoph Wintersteiger (cwinter) 2012-03-21
|
||||
|
||||
--*/
|
||||
|
||||
package com.microsoft.z3;
|
||||
|
||||
|
||||
public class Simplifier extends Z3Object {
|
||||
/*
|
||||
* A string containing a description of parameters accepted by the simplifier.
|
||||
*/
|
||||
|
||||
public String getHelp()
|
||||
{
|
||||
return Native.simplifierGetHelp(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
/*
|
||||
* Retrieves parameter descriptions for Simplifiers.
|
||||
*/
|
||||
public ParamDescrs getParameterDescriptions() {
|
||||
return new ParamDescrs(getContext(), Native.simplifierGetParamDescrs(getContext().nCtx(), getNativeObject()));
|
||||
}
|
||||
|
||||
Simplifier(Context ctx, long obj)
|
||||
{
|
||||
super(ctx, obj);
|
||||
}
|
||||
|
||||
Simplifier(Context ctx, String name)
|
||||
{
|
||||
super(ctx, Native.mkSimplifier(ctx.nCtx(), name));
|
||||
}
|
||||
|
||||
@Override
|
||||
void incRef()
|
||||
{
|
||||
Native.simplifierIncRef(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
@Override
|
||||
void addToReferenceQueue() {
|
||||
getContext().getSimplifierDRQ().storeReference(getContext(), this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue