diff options
author | polwex <polwex@sortug.com> | 2025-10-07 00:35:49 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-10-07 00:35:49 +0700 |
commit | a9f0e90099468ac9e4e2edf22fe8987856c8b6f6 (patch) | |
tree | 3a35e818063a14b9778002d8ba98a6769c410b07 /ocaml/lib/nock.ml | |
parent | be60f97a3965b70ff8e8e6d8d4326b13fa9acb56 (diff) |
moar tests...
Diffstat (limited to 'ocaml/lib/nock.ml')
-rw-r--r-- | ocaml/lib/nock.ml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ocaml/lib/nock.ml b/ocaml/lib/nock.ml index ee06eeb..5658ed7 100644 --- a/ocaml/lib/nock.ml +++ b/ocaml/lib/nock.ml @@ -44,7 +44,14 @@ let rec nock_on init_bus init_fol = let rec loop () = let my_call = !call_count in - let should_log = my_call < max_calls in + + (* Check if this is opcode 0 (slot lookup) - C doesn't log these *) + let is_slot = match !fol with + | Cell { h = Atom { z = op; _ }; _ } when Z.fits_int op && Z.to_int op = 0 -> true + | _ -> false + in + + let should_log = my_call < max_calls && not is_slot in (* Log entry *) if should_log then begin |