Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gt22 committed Oct 17, 2024
1 parent d6749db commit 93d87e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions verified_cogen/runners/languages/dafny.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ def _validators_from(
# ^^^ - is a variable
# method sorted_even_valid(a: seq<int>) returns (sorted_even: seq<int>)
# ^^^ - is the above function, invalid name
renamed_returns = [(f"ret{i}", r.split(":")) for i, r in enumerate(returns.split(","))]
renamed_returns = [
(f"ret{i}", r.split(":")) for i, r in enumerate(returns.split(","))
]
modified_specs = specs
for n, (r, t) in renamed_returns:
modified_specs = modified_specs.replace(r, n)
result = super()._validators_from(
method_name,
parameters,
", ".join(f"{n}:{t[1]}" for n, t in renamed_returns),
modified_specs
modified_specs,
)
result = result.replace(
"{return_values}",
Expand Down

0 comments on commit 93d87e2

Please sign in to comment.