MCPcopy Create free account
hub / github.com/Gecode/gecode / fail

Method fail

gecode/kernel/gpi.hpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 : b(&fst), invd(1.0), npid(0U), us(false) {}
124
125 forceinline void
126 GPI::fail(Info& c) {
127 m.acquire();
128 c.afc = invd * (c.afc + 1.0);
129 if (c.afc > Kernel::Config::rescale_limit)
130 for (Block* i = b; i != nullptr; i = i->next)
131 i->rescale();
132 m.release();
133 }
134
135 forceinline double
136 GPI::decay(void) const {

Callers 8

cMethod · 0.45
conMethod · 0.45
postMethod · 0.45
postMethod · 0.45
cMethod · 0.45
cMethod · 0.45
tMethod · 0.45
statusMethod · 0.45

Calls 3

rescaleMethod · 0.80
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected