mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 01:55:32 +00:00
They are important, as they prevent miss-spelling the parent method and /or arguments name.
55 lines
848 B
Java
55 lines
848 B
Java
/**
|
|
Copyright (c) 2012-2014 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ProbeDecRefQueue.java
|
|
|
|
Abstract:
|
|
|
|
Author:
|
|
|
|
@author Christoph Wintersteiger (cwinter) 2012-03-15
|
|
|
|
Notes:
|
|
|
|
**/
|
|
|
|
package com.microsoft.z3;
|
|
|
|
class ProbeDecRefQueue extends IDecRefQueue
|
|
{
|
|
public ProbeDecRefQueue()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public ProbeDecRefQueue(int move_limit)
|
|
{
|
|
super(move_limit);
|
|
}
|
|
|
|
@Override
|
|
protected void incRef(Context ctx, long obj)
|
|
{
|
|
try
|
|
{
|
|
Native.probeIncRef(ctx.nCtx(), obj);
|
|
} catch (Z3Exception e)
|
|
{
|
|
// OK.
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected void decRef(Context ctx, long obj)
|
|
{
|
|
try
|
|
{
|
|
Native.probeDecRef(ctx.nCtx(), obj);
|
|
} catch (Z3Exception e)
|
|
{
|
|
// OK.
|
|
}
|
|
}
|
|
};
|