MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / freeMemoryIfNeeded

Method freeMemoryIfNeeded

src/engine/CostFunctionManager.cpp:41–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void CostFunctionManager::freeMemoryIfNeeded()
42{
43 if ( _multipliers )
44 {
45 delete[] _multipliers;
46 _multipliers = NULL;
47 }
48
49 if ( _basicCosts )
50 {
51 delete[] _basicCosts;
52 _basicCosts = NULL;
53 }
54
55 if ( _costFunction )
56 {
57 delete[] _costFunction;
58 _costFunction = NULL;
59 }
60}
61
62void CostFunctionManager::initialize()
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected