Skip to content

Commit 8cdaadd

Browse files
committed
Format
1 parent 833a8e2 commit 8cdaadd

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

usvm-dataflow-ts/src/main/kotlin/org/usvm/dataflow/ts/infer/TypeInferenceManager.kt

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ class TypeInferenceManager(
497497
is EtsTypeFact.BooleanEtsTypeFact -> this
498498
is EtsTypeFact.NullEtsTypeFact -> this
499499
is EtsTypeFact.UndefinedEtsTypeFact -> this
500+
500501
is EtsTypeFact.UnknownEtsTypeFact -> {
501502
// logger.warn { "Unknown type after forward analysis" }
502503
EtsTypeFact.AnyEtsTypeFact
@@ -515,21 +516,27 @@ class TypeInferenceManager(
515516
}
516517

517518
is EtsTypeFact.ObjectEtsTypeFact -> refineProperties(pathFromRootObject, typeRefinements)
518-
is EtsTypeFact.UnionEtsTypeFact -> EtsTypeFact.mkUnionType(types.mapTo(hashSetOf()) {
519-
it.refineProperties(
520-
pathFromRootObject,
521-
typeRefinements
522-
)
523-
})
524519

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+
)
531537

532-
is EtsTypeFact.GuardedTypeFact -> type.refineProperties(pathFromRootObject, typeRefinements)
538+
is EtsTypeFact.GuardedTypeFact -> type
539+
.refineProperties(pathFromRootObject, typeRefinements)
533540
.withGuard(guard, guardNegated)
534541
}
535542

0 commit comments

Comments
 (0)