Skip to content

Commit

Permalink
Rename class
Browse files Browse the repository at this point in the history
  • Loading branch information
RustanLeino committed Jan 13, 2025
1 parent 85346c8 commit 579ca74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Microsoft.Dafny;

class FunctionEntanglementChecks_Visitor : ResolverBottomUpVisitor {
class DetectUnsoundFunctionReferences_Visitor : ResolverBottomUpVisitor {
private readonly ICallable context;
public bool DoDecreasesChecks;
public FunctionEntanglementChecks_Visitor(ModuleResolver resolver, ICallable context)
public DetectUnsoundFunctionReferences_Visitor(ModuleResolver resolver, ICallable context)
: base(resolver) {
Contract.Requires(resolver != null);
Contract.Requires(context != null);
Expand Down
2 changes: 1 addition & 1 deletion Source/DafnyCore/Resolver/ModuleResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ public void ResolveTopLevelDecls_Core(List<TopLevelDecl> declarations,
// A function is not allowed to be used naked in its own SCC. Also, a function is not allowed to be used
// in any way inside a "decreases" clause its its own SCC.
foreach (var function in ModuleDefinition.AllFunctions(declarations)) {
var visitor = new FunctionEntanglementChecks_Visitor(this, function);
var visitor = new DetectUnsoundFunctionReferences_Visitor(this, function);
visitor.Visit(function);
visitor.DoDecreasesChecks = true;
visitor.Visit(function.Decreases.Expressions);
Expand Down

0 comments on commit 579ca74

Please sign in to comment.