skia2/tests/sksl/inliner/golden/ExponentialGrowthStandaloneSettings.glsl
John Stiles 031a76756e Stop the inliner after it has inlined 2500 statements in a program.
This prevents OOMing when given a pathological input, but is large
enough that almost all inputs should continue to compile as-is.

Change-Id: If5c46711b886ee08495bfd09af537e9dc7ea5649
Bug: skia:10945, oss-fuzz:27442
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/334838
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-11-13 23:02:11 +00:00

551 lines
5.3 KiB
GLSL

out vec4 sk_FragColor;
void fn3() {
{
{
sk_FragColor.x = 0.0;
}
{
sk_FragColor.x = 0.0;
}
{
sk_FragColor.x = 0.0;
}
}
{
{
sk_FragColor.x = 0.0;
}
{
sk_FragColor.x = 0.0;
}
{
sk_FragColor.x = 0.0;
}
}
{
{
sk_FragColor.x = 0.0;
}
{
sk_FragColor.x = 0.0;
}
{
sk_FragColor.x = 0.0;
}
}
}
void fn6() {
{
{
fn3();
fn3();
fn3();
}
{
fn3();
fn3();
fn3();
}
{
fn3();
fn3();
fn3();
}
}
{
{
fn3();
fn3();
fn3();
}
{
fn3();
fn3();
fn3();
}
{
fn3();
fn3();
fn3();
}
}
{
{
fn3();
fn3();
fn3();
}
{
fn3();
fn3();
fn3();
}
{
fn3();
fn3();
fn3();
}
}
}
void fn9() {
{
{
fn6();
fn6();
fn6();
}
{
fn6();
fn6();
fn6();
}
{
fn6();
fn6();
fn6();
}
}
{
{
fn6();
fn6();
fn6();
}
{
fn6();
fn6();
fn6();
}
{
fn6();
fn6();
fn6();
}
}
{
{
fn6();
fn6();
fn6();
}
{
fn6();
fn6();
fn6();
}
{
fn6();
fn6();
fn6();
}
}
}
void fnC() {
{
{
fn9();
fn9();
fn9();
}
{
fn9();
fn9();
fn9();
}
{
fn9();
fn9();
fn9();
}
}
{
{
fn9();
fn9();
fn9();
}
{
fn9();
fn9();
fn9();
}
{
fn9();
fn9();
fn9();
}
}
{
{
fn9();
fn9();
fn9();
}
{
fn9();
fn9();
fn9();
}
{
fn9();
fn9();
fn9();
}
}
}
void fnF() {
{
{
fnC();
fnC();
fnC();
}
{
fnC();
fnC();
fnC();
}
{
fnC();
fnC();
fnC();
}
}
{
{
fnC();
fnC();
fnC();
}
{
fnC();
fnC();
fnC();
}
{
fnC();
fnC();
fnC();
}
}
{
{
fnC();
fnC();
fnC();
}
{
fnC();
fnC();
fnC();
}
{
fnC();
fnC();
fnC();
}
}
}
void fnI() {
{
{
fnF();
fnF();
fnF();
}
{
fnF();
fnF();
fnF();
}
{
fnF();
fnF();
fnF();
}
}
{
{
fnF();
fnF();
fnF();
}
{
fnF();
fnF();
fnF();
}
{
fnF();
fnF();
fnF();
}
}
{
{
fnF();
fnF();
fnF();
}
{
fnF();
fnF();
fnF();
}
{
fnF();
fnF();
fnF();
}
}
}
void fnL() {
{
{
fnI();
fnI();
fnI();
}
{
fnI();
fnI();
fnI();
}
{
fnI();
fnI();
fnI();
}
}
{
{
fnI();
fnI();
fnI();
}
{
fnI();
fnI();
fnI();
}
{
fnI();
fnI();
fnI();
}
}
{
{
fnI();
fnI();
fnI();
}
{
fnI();
fnI();
fnI();
}
{
fnI();
fnI();
fnI();
}
}
}
void main() {
{
{
fnL();
fnL();
fnL();
}
{
fnL();
fnL();
fnL();
}
{
fnL();
fnL();
fnL();
}
}
}