mirror of
https://github.com/Z3Prover/z3
synced 2025-04-16 13:58:45 +00:00
Fix Ocaml bindings FuncEntry to_string (#6639)
Hello, I was looking at the different api string conversions for FuncEntry and I believe that the ml version is incorrect? Clearly we want the argument(`c`) to be comma separated from the accumulated string `p`. The current implementation just so happens to have most of the arguments separated, but the order is flipped and one of the commas is misplaced.
This commit is contained in:
parent
ce09c2ea6d
commit
0a59617bac
|
@ -1542,7 +1542,7 @@ struct
|
|||
|
||||
let to_string (x:func_entry) =
|
||||
let a = get_args x in
|
||||
let f c p = (p ^ (Expr.to_string c) ^ ", ") in
|
||||
let f c p = ((Expr.to_string c) ^ ", " ^ p) in
|
||||
"[" ^ List.fold_right f a ((Expr.to_string (get_value x)) ^ "]")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue