You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
746 B

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
class CantHandle {
// Let's collect examples that we know we can't handle
// Intervals are limited to affine expressions, not
// polynomials. Hence, we can't handle the below examples.
// Expected: square root(x), got T
void square_root_FP(int x) {
int i = 0;
while (i * i < x) {
i++;
}
}
// Expected: square root(x), got T
void square_root_variant_FP(int x) {
int i = 0;
while (i < x / i) {
i++;
}
}
// Expected: x^2, got x^2
void quadratic(int x) {
for (int i = 0; i < x * x; i++) {}
}
}