Skip to content

Commit

Permalink
Format fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Aug 6, 2024
1 parent ce30d26 commit 22fe3df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/DafnyCore/Backends/Dafny/DafnyCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ protected override ConcreteSyntaxTree EmitMethodReturns(Method m, ConcreteSyntax
protected override ConcreteSyntaxTree EmitTailCallStructure(MemberDecl member, ConcreteSyntaxTree wr) {
if (wr is BuilderSyntaxTree<StatementContainer> stmtContainer) {
// TODO: Emit new variables to store the input parameters,

var recBuilder = stmtContainer.Builder.TailRecursive();
return new BuilderSyntaxTree<StatementContainer>(recBuilder, this);
} else {
Expand Down
2 changes: 1 addition & 1 deletion Source/DafnyCore/Backends/Rust/Dafny-compiler-rust.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -3280,7 +3280,7 @@ module {:extern "DCOMP"} DafnyToRustCompiler {
generated := generated.Then(
R.Labelled("TAIL_CALL_START",
R.Loop(None,
loopBegin.Then(bodyExpr))));
loopBegin.Then(bodyExpr))));
}
case JumpTailCallStart() => {
generated := R.Continue(Some("TAIL_CALL_START"));
Expand Down

0 comments on commit 22fe3df

Please sign in to comment.