Lines Matching refs:newval
124 PyObject *newval = ops[node->v.UnaryOp.op](get_const_value(arg)); in fold_unaryop() local
125 return make_const(node, newval, arena); in fold_unaryop()
266 PyObject *newval; in fold_binop() local
270 newval = PyNumber_Add(lv, rv); in fold_binop()
273 newval = PyNumber_Subtract(lv, rv); in fold_binop()
276 newval = safe_multiply(lv, rv); in fold_binop()
279 newval = PyNumber_TrueDivide(lv, rv); in fold_binop()
282 newval = PyNumber_FloorDivide(lv, rv); in fold_binop()
285 newval = safe_mod(lv, rv); in fold_binop()
288 newval = safe_power(lv, rv); in fold_binop()
291 newval = safe_lshift(lv, rv); in fold_binop()
294 newval = PyNumber_Rshift(lv, rv); in fold_binop()
297 newval = PyNumber_Or(lv, rv); in fold_binop()
300 newval = PyNumber_Xor(lv, rv); in fold_binop()
303 newval = PyNumber_And(lv, rv); in fold_binop()
309 return make_const(node, newval, arena); in fold_binop()
322 PyObject *newval = PyTuple_New(asdl_seq_LEN(elts)); in make_const_tuple() local
323 if (newval == NULL) { in make_const_tuple()
331 PyTuple_SET_ITEM(newval, i, v); in make_const_tuple()
333 return newval; in make_const_tuple()
339 PyObject *newval; in fold_tuple() local
344 newval = make_const_tuple(node->v.Tuple.elts); in fold_tuple()
345 return make_const(node, newval, arena); in fold_tuple()
351 PyObject *newval; in fold_subscr() local
367 newval = PyObject_GetItem(get_const_value(arg), get_const_value(idx)); in fold_subscr()
368 return make_const(node, newval, arena); in fold_subscr()
379 PyObject *newval; in fold_iter() local
381 newval = make_const_tuple(arg->v.List.elts); in fold_iter()
384 newval = make_const_tuple(arg->v.Set.elts); in fold_iter()
385 if (newval) { in fold_iter()
386 Py_SETREF(newval, PyFrozenSet_New(newval)); in fold_iter()
392 return make_const(arg, newval, arena); in fold_iter()