File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed
usvm-dataflow-ts/src/main/kotlin/org/usvm/dataflow/ts/infer Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,7 @@ class TypeInferenceManager(
497
497
is EtsTypeFact .BooleanEtsTypeFact -> this
498
498
is EtsTypeFact .NullEtsTypeFact -> this
499
499
is EtsTypeFact .UndefinedEtsTypeFact -> this
500
+
500
501
is EtsTypeFact .UnknownEtsTypeFact -> {
501
502
// logger.warn { "Unknown type after forward analysis" }
502
503
EtsTypeFact .AnyEtsTypeFact
@@ -515,21 +516,27 @@ class TypeInferenceManager(
515
516
}
516
517
517
518
is EtsTypeFact .ObjectEtsTypeFact -> refineProperties(pathFromRootObject, typeRefinements)
518
- is EtsTypeFact .UnionEtsTypeFact -> EtsTypeFact .mkUnionType(types.mapTo(hashSetOf()) {
519
- it.refineProperties(
520
- pathFromRootObject,
521
- typeRefinements
522
- )
523
- })
524
519
525
- is EtsTypeFact .IntersectionEtsTypeFact -> EtsTypeFact .mkIntersectionType(types.mapTo(hashSetOf()) {
526
- it.refineProperties(
527
- pathFromRootObject,
528
- typeRefinements
529
- )
530
- })
520
+ is EtsTypeFact .UnionEtsTypeFact -> EtsTypeFact .mkUnionType(
521
+ types.mapTo(hashSetOf()) {
522
+ it.refineProperties(
523
+ pathFromRootObject,
524
+ typeRefinements,
525
+ )
526
+ }
527
+ )
528
+
529
+ is EtsTypeFact .IntersectionEtsTypeFact -> EtsTypeFact .mkIntersectionType(
530
+ types.mapTo(hashSetOf()) {
531
+ it.refineProperties(
532
+ pathFromRootObject,
533
+ typeRefinements,
534
+ )
535
+ }
536
+ )
531
537
532
- is EtsTypeFact .GuardedTypeFact -> type.refineProperties(pathFromRootObject, typeRefinements)
538
+ is EtsTypeFact .GuardedTypeFact -> type
539
+ .refineProperties(pathFromRootObject, typeRefinements)
533
540
.withGuard(guard, guardNegated)
534
541
}
535
542
You can’t perform that action at this time.
0 commit comments