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

Function getBaseSetVar

gecode/flatzinc/parser.tab.cpp:287–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 return base;
286}
287int getBaseSetVar(ParserState* pp, int i) {
288 int base = i;
289 SetVarSpec* ivs = static_cast<SetVarSpec*>(pp->setvars[base].second);
290 while (ivs->alias) {
291 base = ivs->i;
292 ivs = static_cast<SetVarSpec*>(pp->setvars[base].second);
293 }
294 return base;
295}
296
297/*
298 * Initialize the root gecode space

Callers 1

yyparseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected