open Pinc_types.Vm let debug_print_stack t = Format.printf "--------- (STACK) -------\n%!"; Stack.iteri (fun i value -> Format.printf "[%i] %a%!" i Debug_value.pp value) t.stack; Format.printf "--------- (/STACK) -------\n%!" ;;