Lines Matching refs:constValue

172     int constValue = static_cast<int>(acc_.GetConstantValue(gate));
173 return chunk_->New<Bound>(constValue, Circuit::NullGate(), constValue, Circuit::NullGate());
183 int constValue = 0;
185 constValue = static_cast<int>(acc_.GetConstantValue(x));
187 constValue = static_cast<int>(acc_.GetConstantValue(y));
189 if (constValue >= 0) {
190 return chunk_->New<Bound>(0, Circuit::NullGate(), constValue, Circuit::NullGate());
198 int constValue = static_cast<int>(acc_.GetConstantValue(y));
199 if (constValue != INT_MIN) {
200 return chunk_->New<Bound>(0, Circuit::NullGate(), abs(constValue) - 1, Circuit::NullGate());
215 int constValue = static_cast<int>(acc_.GetConstantValue(x));
217 constValue = -constValue;
231 int newLower = lower + constValue;
232 int newUpper = upper + constValue;
233 bool overflow = ((constValue < 0 && (newLower > lower)) ||
234 (constValue > 0 && (newUpper < upper)));
262 int constValue = 0;
264 constValue = 1;
266 constValue = -1;
278 int newLower = lower + constValue;
279 int newUpper = upper + constValue;
280 bool overflow = ((constValue < 0 && (newLower > lower)) ||
281 (constValue > 0 && (newUpper < upper)));
426 void ArrayBoundsCheckElimination::GetInstrAndConstValueFromOp(GateRef gate, GateRef& instrValue, int& constValue)
429 constValue = 0;
432 constValue = static_cast<int>(acc_.GetConstantValue(gate));
452 constValue = base;
457 constValue = base;
505 x op y + constValue
511 GateRef instrValue, int constValue)
516 if (constValue == INT_MAX && instrValue == Circuit::NullGate()) {
519 constValue++;
523 if (constValue == INT_MIN && instrValue == Circuit::NullGate()) {
526 constValue--;
528 Bound *bound = chunk_->New<Bound>(op, instrValue, constValue);
538 int constValue;
540 GetInstrAndConstValueFromOp(y, instrValue, constValue);
541 UpdateBound(pushed, x, op, instrValue, constValue);
847 int constValue = static_cast<int>(acc_.GetConstantValue(index));
848 if (constValue >= 0 && constValue <= maxConstant) {
850 } else if (constValue >= 0 && constValue > maxConstant) {
851 maxConstant = constValue;