blob: a6704a0b8b00239619c91fab4de4b5e62297bd7a [file] [log] [blame]
library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
static method guard() dynamic
return true;
static method main() dynamic {
hoisted has-declared-initializer core::int a;
{
final synthesized dynamic #0#0 = <core::int>[5];
if(!(#0#0{core::List<core::int>}.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} #C1 && (let final dynamic #t1 = a = #0#0{core::List<core::int>}.{core::List::[]}(0){(core::int) → core::int} in true)))
throw new core::StateError::•("Pattern matching error");
}
core::int b;
block {
core::int #t2;
final synthesized dynamic #2#0 = block {
final core::List<core::int> #t3 = <core::int>[];
{
final synthesized core::int #1#0 = a;
if(#1#0 =={core::num::==}{(core::Object) → core::bool} #C2 && self::guard() as{TypeError,ForNonNullableByDefault} core::bool)
#t3.{core::List::add}{Invariant}(5){(core::int) → void};
}
} =>#t3;
if(!(#2#0{core::List<core::int>}.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} #C1 && (let final dynamic #t4 = #t2 = #2#0{core::List<core::int>}.{core::List::[]}(0){(core::int) → core::int} in true)))
throw new core::StateError::•("Pattern matching error");
b = #t2;
} =>#2#0;
{
final synthesized core::int #3#0 = a;
if(#3#0 =={core::num::==}{(core::Object) → core::bool} #C2 && self::guard() as{TypeError,ForNonNullableByDefault} core::bool) {
a = 6;
}
}
core::int c = block {
core::int #t5;
final synthesized core::int #4#0 = a;
#L1:
{
{
hoisted core::int d;
if(#4#0 is{ForNonNullableByDefault} core::int && (let final dynamic #t6 = d = #4#0 in true) && self::guard() as{TypeError,ForNonNullableByDefault} core::bool) {
#t5 = d;
break #L1;
}
}
{
if(true) {
#t5 = 0;
break #L1;
}
}
}
} =>#t5;
#L2:
{
final synthesized core::int #5#0 = b;
{
hoisted core::int e;
if(#5#0 is{ForNonNullableByDefault} core::int && (let final dynamic #t7 = e = #5#0 in true) && self::guard() as{TypeError,ForNonNullableByDefault} core::bool) {
{
core::print(a);
}
}
}
}
core::Map<core::int, core::int> d = block {
final core::Map<core::int, core::int> #t8 = <core::int, core::int>{};
{
final synthesized core::int #6#0 = a;
if(#6#0 =={core::num::==}{(core::Object) → core::bool} #C2 && self::guard() as{TypeError,ForNonNullableByDefault} core::bool)
#t8.{core::Map::[]=}{Invariant}(5, 6){(core::int, core::int) → void};
}
} =>#t8;
}
constants {
#C1 = 1
#C2 = 5
}