Skip to content

Commit 1890a4d

Browse files
committed
minor
1 parent 68d4031 commit 1890a4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

go-lisa/src/main/java/it/unive/golisa/cfg/expression/GoCollectionAccess.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package it.unive.golisa.cfg.expression;
22

3+
import it.unive.golisa.cfg.type.composite.GoStructType;
34
import it.unive.lisa.analysis.AbstractState;
45
import it.unive.lisa.analysis.AnalysisState;
56
import it.unive.lisa.analysis.SemanticException;
@@ -66,7 +67,10 @@ public <A extends AbstractState<A>> AnalysisState<A> fwdBinarySemantics(Interpro
6667
AnalysisState<A> result = state.bottom();
6768
Set<Type> ltypes = state.getState().getRuntimeTypesOf(left, this, state.getState());
6869
for (Type type : ltypes) {
69-
if (type.isPointerType()) {
70+
if (type.isPointerType()
71+
|| type instanceof GoStructType) {
72+
73+
7074
result = result.lub(state.smallStepSemantics(
7175
new AccessChild(Untyped.INSTANCE,
7276
new HeapDereference(getStaticType(), left, getLocation()), right, getLocation()),

0 commit comments

Comments
 (0)