Skip to content

Commit

Permalink
print return value of call_intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
vzaliva committed Aug 29, 2023
1 parent 0b367a1 commit f8b81ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions memory/cheri-coq/impl_mem.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,15 @@ module CHERIMorello : Memory = struct
(toCoq_location loc)
name
args)
>>=
(fun res ->
Cerb_debug.print_debug 4 []
(fun () ->
match res with
| Some mval -> "MEMOP_RET call_intrinsic = Just " ^ Pp_utils.to_plain_string (pp_mem_value mval)
| None -> "MEMOP_RET call_intrinsic = None"
);
return res)

let get_intrinsic_type_spec name =
Option.map fromCoq_intrinsics_signature (MM.get_intrinsic_type_spec name)
Expand Down

0 comments on commit f8b81ba

Please sign in to comment.