Skip to content

Commit

Permalink
Fix encoding order of nary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeom committed Mar 3, 2025
1 parent 7f1417e commit 54beae2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/smtml/mappings.ml
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ module Make (M_with_make : M_with_make) : S_with_fresh = struct
(ctx, e :: es) )
(ctx, []) es
in
(* This is needed so arguments don't end up out of order in the operator *)
let es = List.rev es in
(ctx, naryop ty op es)
| Extract (e, h, l) ->
let ctx, e = encode_expr ctx e in
Expand Down

0 comments on commit 54beae2

Please sign in to comment.