blob: 063daf0f3951f52cea2c394498b767d67d4025fc [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
import "dart:_internal" as _in;
static method guard() dynamic
return true;
static method main() dynamic {
hoisted has-declared-initializer core::int a;
{
final synthesized dynamic #0#0 = core::_GrowableList::_literal1<core::int>(5);
if(!(#0#0{core::List<core::int>}.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} #C1 && (let final core::int #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::_GrowableList::•<core::int>(0);
{
final synthesized core::int #1#0 = a;
if(#1#0 =={core::num::==}{(core::Object) → core::bool} #C2 && self::guard() as{TypeError} 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 core::int #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} 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 core::int && (let final core::int #t6 = d = #4#0 in true) && self::guard() as{TypeError} core::bool) {
#t5 = d;
break #L1;
}
}
{
if(true) {
#t5 = 0;
break #L1;
}
}
throw new _in::ReachabilityError::•("`null` encountered as case in a switch expression with a non-nullable type.");
}
} =>#t5;
#L2:
{
final synthesized core::int #5#0 = b;
{
hoisted core::int e;
if(#5#0 is core::int && (let final core::int #t7 = e = #5#0 in true) && self::guard() as{TypeError} 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} core::bool)
#t8.{core::Map::[]=}{Invariant}(5, 6){(core::int, core::int) → void};
}
} =>#t8;
}
constants {
#C1 = 1
#C2 = 5
}