Skip to content

Commit 5df3309

Browse files
committed
Added simple logging for external refinements pass
1 parent f1d6b69 commit 5df3309

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

latte/src/main/java/typechecking/ExternalRefinementFirstPass.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ public ExternalRefinementFirstPass(SymbolicEnvironment symbEnv,
2626
PermissionEnvironment permEnv,
2727
ClassLevelMaps maps) {
2828
super(symbEnv, permEnv, maps);
29+
logInfo("[ External Refinements Pass started ]");
30+
enterScopes();
2931
}
3032

3133
@Override
3234
public <T> void visitCtInterface(CtInterface<T> ctInterface) {
35+
logInfo("Visiting interface: " + ctInterface.getSimpleName(), ctInterface);
3336
// @ExternalRefinementsFor annotation check
3437
boolean hasAnnotation = ctInterface.getAnnotations().stream().anyMatch(ann ->
3538
ann.getAnnotationType().getQualifiedName().equals("specification.ExternalRefinementsFor")
@@ -68,6 +71,7 @@ public <T> void visitCtInterface(CtInterface<T> ctInterface) {
6871

6972
@Override
7073
public <T> void visitCtMethod(CtMethod<T> method) {
74+
logInfo("Visiting method: " + method.getSimpleName(), method);
7175
CtTypeReference<?> declaringClass = method.getDeclaringType().getReference();
7276

7377
// Skip if it has a body — it's not external

0 commit comments

Comments
 (0)