2022-08-10 20:01:17 +00:00
|
|
|
fn original_clusterfuzz_code() {
|
2023-02-22 16:18:22 +00:00
|
|
|
_ = atan2(1,.1);
|
2022-08-10 20:01:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn more_tests_that_would_fail() {
|
|
|
|
// Builtin calls with mixed abstract args would fail because AInt would not materialize to AFloat.
|
|
|
|
{
|
|
|
|
let a = atan2(1, 0.1);
|
|
|
|
let b = atan2(0.1, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Same for binary operators
|
|
|
|
{
|
|
|
|
let a = 1 + 1.5;
|
|
|
|
let b = 1.5 + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Once above was fixed, builtin calls without assignment would also fail in backends because
|
|
|
|
// abstract constant value is not handled by backends. These should be removed by RemovePhonies
|
|
|
|
// transform.
|
|
|
|
{
|
2023-02-22 16:18:22 +00:00
|
|
|
_ = atan2(1, 0.1);
|
|
|
|
_ = atan2(0.1, 1);
|
2022-08-10 20:01:17 +00:00
|
|
|
}
|
|
|
|
}
|