Methods and systems are disclosed for debugging a computer program code by using a debugging software. The common terminal is branched into first and second branches respectively connected with a first resistor and a second resistor. The securing means may comprise a strap, loop, or cinch. The discrete optimization problem may be composed of a set of miniature optimization problems, where each miniature optimization problem encodes a respective logic gate from the logic circuit representation.