public void FuncDeclTest3()
{
try
{
Z3Provider Z = new Z3Provider();
Z.MainSolver.Push();
FuncDecl f = Z.MkFuncDecl("temp", Z.IntSort, Z.IntSort);
Z.MainSolver.Push();
Z.MainSolver.Push();
Z.MainSolver.Pop();
Z.MainSolver.Pop();
FuncDecl g = Z.MkFuncDecl("temp", Z.IntSort, Z.IntSort);
Z.MainSolver.Push();
Z.MainSolver.Pop();
}
catch (AutomataException e)
{
Assert.AreEqual(e.kind, AutomataExceptionKind.FunctionIsAlreadyDeclared);
}
}