This version of circuit/1 uses the native Gecode indexing, which starts from 0. This is different from normal ECLiPSe's indexing, which starts from 1, and may be incompatible with existing ECLiPSe code.
See circuit/1 for a more detailed description of this predicate.
circuit_g([A,2,3,0]) A = 1