3
0
Fork 0
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:
Patrick LaFontaine 2023-03-27 16:04:32 -04:00 committed by GitHub
parent ce09c2ea6d
commit 0a59617bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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