@@ -83,7 +83,7 @@ class Objects(using Context @constructorOnly):
83
83
val immutableLazyList : Symbol = requiredModule(" scala.collection.immutable.LazyList" )
84
84
val LazyList_empty : Symbol = immutableLazyList.requiredValue(" _empty" )
85
85
86
- val whiteList : Set [Symbol ] = Set ()
86
+ val whiteList : Set [Symbol ] = Set (SetNode_EmptySetNode , HashSet_EmptySet , Vector_EmptyIterator , MapNode_EmptyMapNode , HashMap_EmptyMap , LazyList_empty )
87
87
88
88
// ----------------------------- abstract domain -----------------------------
89
89
@@ -173,7 +173,7 @@ class Objects(using Context @constructorOnly):
173
173
extends Ref (valsMap = mutable.Map .empty, varsMap = mutable.Map .empty, outersMap = mutable.Map .empty):
174
174
val owner = klass
175
175
176
- def show (using Context ) = " ObjectRef(" + klass.show + " )" + " valMap = " + vals + " varMap = " + vars
176
+ def show (using Context ) = " ObjectRef(" + klass.show + " )"
177
177
178
178
/**
179
179
* Represents values that are instances of the specified class.
@@ -832,7 +832,6 @@ class Objects(using Context @constructorOnly):
832
832
errorReadOtherStaticObject(State .currentObject, addr)
833
833
Bottom
834
834
else if ref.isObjectRef && ref.klass.hasSource then
835
- println(s " Uninitialized field Position 2, ref = $ref, target = $target" )
836
835
report.warning(" Access uninitialized field " + field.show + " . " + Trace .show, Trace .position)
837
836
Bottom
838
837
else
@@ -841,7 +840,6 @@ class Objects(using Context @constructorOnly):
841
840
else if ref.hasVal(target) then
842
841
ref.valValue(target)
843
842
else if ref.isObjectRef && ref.klass.hasSource then
844
- println(s " Uninitialized field Position 2, ref = $ref, target = $target" )
845
843
report.warning(" Access uninitialized field " + field.show + " . " + Trace .show, Trace .position)
846
844
Bottom
847
845
else
0 commit comments