mirror of
https://github.com/Z3Prover/z3
synced 2025-08-11 13:40:52 +00:00
More Java API. This is still under heavy construction and cannot be used.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
c702454f6c
commit
520bcaf720
42 changed files with 2353 additions and 667 deletions
|
@ -15,7 +15,7 @@ package com.Microsoft.Z3;
|
|||
**/
|
||||
public final class Log
|
||||
{
|
||||
private boolean mIsOpen = false;
|
||||
private boolean m_is_open = false;
|
||||
|
||||
/**
|
||||
* Open an interaction log file.
|
||||
|
@ -24,7 +24,7 @@ package com.Microsoft.Z3;
|
|||
**/
|
||||
public boolean Open(String filename)
|
||||
{
|
||||
mIsOpen = true;
|
||||
m_is_open = true;
|
||||
return Native.openLog(filename) == 1;
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ package com.Microsoft.Z3;
|
|||
**/
|
||||
public void Close()
|
||||
{
|
||||
mIsOpen = false;
|
||||
m_is_open = false;
|
||||
Native.closeLog();
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ package com.Microsoft.Z3;
|
|||
{
|
||||
|
||||
|
||||
if (!mIsOpen)
|
||||
if (!m_is_open)
|
||||
throw new Z3Exception("Log cannot be closed.");
|
||||
Native.appendLog(s);
|
||||
}
|
||||
|
@ -55,6 +55,6 @@ package com.Microsoft.Z3;
|
|||
**/
|
||||
public boolean isOpen()
|
||||
{
|
||||
return mIsOpen;
|
||||
return m_is_open;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue