In function 'test':
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: warning: memory leak: ob_refcnt of '*item' is 1 too high [enabled by default]
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: '*item' was allocated at: 	PyObject *item = make_item(i);
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: note: was expecting final owned ob_refcnt of '*item' to be 1 due to object being referenced by: PyListObject.ob_item[0] but final ob_refcnt is refs: 2 owned
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:33:nn: note: when PyList_New() succeeds at:     result = PyList_New(0);
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:34:nn: note: taking False path at:     if (!result) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: reaching:     for (i = 0; i < (2 * get_limit()) + 42; i++) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: when considering range: 1 <= value <= 0x7fffffff at:     for (i = 0; i < (2 * get_limit()) + 42; i++) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: taking True path at:     for (i = 0; i < (2 * get_limit()) + 42; i++) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: reaching: 	PyObject *item = make_item(i);
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: when make_item() succeeds at: 	PyObject *item = make_item(i);
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:40:nn: note: ob_refcnt is now refs: 1 owned
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:41:nn: note: taking False path at: 	if (!item) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: reaching: 	if (-1 == PyList_Append(result, item)) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: when PyList_Append() succeeds at: 	if (-1 == PyList_Append(result, item)) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: ob_refcnt is now refs: 2 owned
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: '*item' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0]
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:44:nn: note: taking False path at: 	if (-1 == PyList_Append(result, item)) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: reaching:     for (i = 0; i < (2 * get_limit()) + 42; i++) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: when considering range: -0x80000000 <= value <= 1 at:     for (i = 0; i < (2 * get_limit()) + 42; i++) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:39:nn: note: taking False path at:     for (i = 0; i < (2 * get_limit()) + 42; i++) {
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: note: reaching:     return result;
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:51:nn: note: returning
tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c:29:nn: note: graphical error report for function 'test' written out to 'tests/cpychecker/refcounts/loops/complex-loop-conditional-2/input.c.test-refcount-errors.html'
