/** Initialize the driver. Sets signal handlers for SIGINT and SIGSEGV. */
void cvc4_init() throw(Exception);
+/** Shutdown the driver. Frees memory for the signal handlers. */
+void cvc4_shutdown() throw();
+
+
}/* CVC4::main namespace */
}/* CVC4 namespace */
}
}
cvc4StackSize = limit.rlim_cur;
- cvc4StackBase = &ss;
+ cvc4StackBase = ss.ss_sp;
struct sigaction act1;
act1.sa_sigaction = sigint_handler;
default_terminator = set_terminate(cvc4terminate);
}
+void cvc4_shutdown() throw () {
+ free(cvc4StackBase);
+ cvc4StackBase = NULL;
+ cvc4StackSize = 0;
+}
+
}/* CVC4::main namespace */
}/* CVC4 namespace */