mirror of
https://github.com/Z3Prover/z3
synced 2026-04-20 19:03:29 +00:00
fstar: address code review comments - document gen_rhs_expr_list and strip-components
Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/0a30f342-3941-4952-a54f-1bee84b022ef Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
4a2accf10c
commit
c49b403922
2 changed files with 6 additions and 0 deletions
|
|
@ -332,6 +332,9 @@ let rec gen_rhs_expr (e: cexpr) : Tot string (decreases e) =
|
|||
^ gen_rhs_expr_list args ^ ")"
|
||||
|
||||
and gen_rhs_expr_list (es: list cexpr) : Tot string (decreases es) =
|
||||
(* Comma-separated list for C++ function arguments. Empty list yields ""
|
||||
so EApp fn [] produces fn_name(), which is valid C++ for zero-arg calls
|
||||
(e.g. builder helper functions that take no explicit arguments). *)
|
||||
match es with
|
||||
| [] -> ""
|
||||
| [e] -> gen_rhs_expr e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue