about summary refs log blame commit diff stats
path: root/arc/.traces/string-split-first
blob: e91e4e46a3335d2dc72b6a16f9e675515120bee0 (plain) (tree)
pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
;;; Emacs major mode for editing SubX files. -*- coding: utf-8; lexical-binding: t; -*-

;; Author: Kartik Agaram (subx.el@akkartik.com)
;; Version: 0.0.1
;; Created: 28 Dec 2019
;; Keywords: languages
;; Homepage: https://github.com/akkartik/mu

;;; Commentary:

;; I don't know how to define new faces in an emacs package, so I'm
;; cannibalizing existing faces.
;;
;; I load this file like so in my .emacs:
;;    (load "/absolute/path/to/subx.el")
;;    (add-to-list 'auto-mode-alist '("\\.subx" . subx-mode))
;;
;; Education on the right way to do this most appreciated.

(setq subx-font-lock-keywords
  '(
    ; tests
    ("^test-[^ ]*:" . font-lock-type-face)
    ; functions
    ("^[a-z][^ ]*:" . font-lock-function-name-face)
    ; globals
    ("^[A-Z][^ ]*:" . font-lock-variable-name-face)
    ; minor labels
    ("^[^a-zA-Z#( ][^ ]*:" . font-lock-doc-face)
    ; string literals
    ; ("\"[^\"]*\"" . font-lock-constant-face)  ; strings colorized already, albeit buggily
    ; 4 colors for comments; ugly but functional
    ("# \\. \\. .*" . font-lock-doc-face)
    ("# \\. .*" . font-lock-constant-face)
    ("# - .*" . font-lock-comment-face)
    ("#.*" . font-lock-preprocessor-face)
    ))

(define-derived-mode subx-mode fundamental-mode "subx mode"
  "Major mode for editing SubX (Mu project)"
  (setq font-lock-defaults '((subx-font-lock-keywords)))
  )

(provide 'subx-mode)
light .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highli
c{0: 0 (((1 string-address)) <- ((new)) a/b) -- nil
c{0: 1 (((2 string-address)) ((3 string-address)) <- ((split-first)) ((1 string-address)) ((/ literal))) -- nil
c{1: 0 ✓ (((1 string-address)) <- ((new)) a/b)
c{1: 1 ✓ (((2 string-address)) ((3 string-address)) <- ((split-first)) ((1 string-address)) ((/ literal)))
cn0: convert-names in main
cn0: (((1 string-address)) <- ((new)) a/b) nil nil
cn0: checking arg a/b
cn0: checking oarg ((1 string-address))
maybe-add: ((1 string-address))
cn0: (((2 string-address)) ((3 string-address)) <- ((split-first)) ((1 string-address)) ((/ literal))) nil nil
cn0: checking arg ((1 string-address))
maybe-add: ((1 string-address))
cn0: checking arg ((/ literal))
cn0: checking oarg ((2 string-address))
maybe-add: ((2 string-address))
cn0: checking oarg ((3 string-address))
maybe-add: ((3 string-address))
cn1: (((1 string-address)) <- ((new)) a/b)
cn1: (((2 string-address)) ((3 string-address)) <- ((split-first)) ((1 string-address)) ((/ literal)))
schedule: main
run: main 0: (((1 string-address)) <- ((new)) a/b)
run: main 0: 1000 => ((1 string-address))
mem: ((1 string-address)): 1 <= 1000
run: main 1: (((2 string-address)) ((3 string-address)) <- ((split-first)) ((1 string-address)) ((/ literal)))
mem: ((1 string-address)) => 1000
run: split-first/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: split-first/main 0: 1004 => ((default-space space-address))
run: split-first/main 1: (((1 string-address)) <- ((next-input)))
arg: nil 0 (1000 #\/)
run: split-first/main 1: 1000 => ((1 string-address))
mem: ((1 string-address)): 1006 <= 1000
run: split-first/main 2: (((2 character)) <- ((next-input)))
arg: nil 1 (1000 #\/)
run: split-first/main 2: #\/ => ((2 character))
mem: ((2 character)): 1007 <= #\/
run: split-first/main 3: (((3 integer)) <- ((length)) ((1 string-address) (deref)))
array-len: ((1 string-address) (deref))
mem: ((1000 integer) (raw)) => 3
run: split-first/main 3: 3 => ((3 integer))
mem: ((3 integer)): 1008 <= 3
run: split-first/main 4: (((4 boolean)) <- ((equal)) ((3 integer)) ((0 literal)))
mem: ((3 integer)) => 3
run: split-first/main 4: nil => ((4 boolean))
mem: ((4 boolean)): 1009 <= nil
run: split-first/main 5: (((jump-unless)) ((4 boolean)) ((3 offset)))
mem: ((4 boolean)) => nil
run: split-first/main 9: (((7 integer)) <- ((find-next)) ((1 string-address)) ((2 character)) ((0 literal)))
mem: ((1 string-address)) => 1000
mem: ((2 character)) => /
run: find-next/split-first/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: find-next/split-first/main 0: 1035 => ((default-space space-address))
run: find-next/split-first/main 1: (((1 string-address)) <- ((next-input)))
arg: nil 0 (1000 #\/ 0)
run: find-next/split-first/main 1: 1000 => ((1 string-address))
mem: ((1 string-address)): 1037 <= 1000
run: find-next/split-first/main 2: (((2 character)) <- ((next-input)))
arg: nil 1 (1000 #\/ 0)
run: find-next/split-first/main 2: #\/ => ((2 character))
mem: ((2 character)): 1038 <= #\/
run: find-next/split-first/main 3: (((3 integer)) <- ((next-input)))
arg: nil 2 (1000 #\/ 0)
run: find-next/split-first/main 3: 0 => ((3 integer))
mem: ((3 integer)): 1039 <= 0
run: find-next/split-first/main 4: (((4 integer)) <- ((length)) ((1 string-address) (deref)))
array-len: ((1 string-address) (deref))
mem: ((1000 integer) (raw)) => 3
run: find-next/split-first/main 4: 3 => ((4 integer))
mem: ((4 integer)): 1040 <= 3
run: find-next/split-first/main 5: (((5 boolean)) <- ((greater-or-equal)) ((3 integer)) ((4 integer)))
mem: ((3 integer)) => 0
mem: ((4 integer)) => 3
run: find-next/split-first/main 5: nil => ((5 boolean))
mem: ((5 boolean)): 1041 <= nil
run: find-next/split-first/main 6: (((jump-if)) ((5 boolean)) ((5 offset)))
mem: ((5 boolean)) => nil
run: find-next/split-first/main 7: (((6 byte)) <- ((index)) ((1 string-address) (deref)) ((3 integer)))
mem: ((3 integer)) => 0
array-len: ((1000 string) (raw))
mem: ((1000 integer) (raw)) => 3
mem: ((1001 byte) (raw)) => a
run: find-next/split-first/main 7: #\a => ((6 byte))
mem: ((6 byte)): 1042 <= #\a
run: find-next/split-first/main 8: (((7 boolean)) <- ((equal)) ((6 byte)) ((2 character)))
mem: ((6 byte)) => a
mem: ((2 character)) => /
run: find-next/split-first/main 8: nil => ((7 boolean))
mem: ((7 boolean)): 1043 <= nil
run: find-next/split-first/main 9: (((jump-if)) ((7 boolean)) ((2 offset)))
mem: ((7 boolean)) => nil
run: find-next/split-first/main 10: (((3 integer)) <- ((add)) ((3 integer)) ((1 literal)))
mem: ((3 integer)) => 0
run: find-next/split-first/main 10: 1 => ((3 integer))
mem: ((3 integer)): 1039 <= 1
run: find-next/split-first/main 11: (((jump)) ((-7 offset)))
run: find-next/split-first/main 5: (((5 boolean)) <- ((greater-or-equal)) ((3 integer)) ((4 integer)))
mem: ((3 integer)) => 1
mem: ((4 integer)) => 3
run: find-next/split-first/main 5: nil => ((5 boolean))
mem: ((5 boolean)): 1041 <= nil
run: find-next/split-first/main 6: (((jump-if)) ((5 boolean)) ((5 offset)))
mem: ((5 boolean)) => nil
run: find-next/split-first/main 7: (((6 byte)) <- ((index)) ((1 string-address) (deref)) ((3 integer)))
mem: ((3 integer)) => 1
array-len: ((1000 string) (raw))
mem: ((1000 integer) (raw)) => 3
mem: ((1002 byte) (raw)) => /
run: find-next/split-first/main 7: #\/ => ((6 byte))
mem: ((6 byte)): 1042 <= #\/
run: find-next/split-first/main 8: (((7 boolean)) <- ((equal)) ((6 byte)) ((2 character)))
mem: ((6 byte)) => /
mem: ((2 character)) => /
run: find-next/split-first/main 8: t => ((7 boolean))
mem: ((7 boolean)): 1043 <= t
run: find-next/split-first/main 9: (((jump-if)) ((7 boolean)) ((2 offset)))
mem: ((7 boolean)) => t
run: find-next/split-first/main 12: (((reply)) ((3 integer)))
mem: ((3 integer)) => 1
run: split-first/main 9: 1 => ((7 integer))
mem: ((7 integer)): 1012 <= 1
run: split-first/main 10: (((5 string-address)) <- ((string-copy)) ((1 string-address)) ((0 literal)) ((7 integer)))
mem: ((1 string-address)) => 1000
mem: ((7 integer)) => 1
run: string-copy/split-first/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: string-copy/split-first/main 0: 1066 => ((default-space space-address))
run: string-copy/split-first/main 1: (((1 string-address)) <- ((next-input)))
arg: nil 0 (1000 0 1)
run: string-copy/split-first/main 1: 1000 => ((1 string-address))
mem: ((1 string-address)): 1068 <= 1000
run: string-copy/split-first/main 2: (((2 integer)) <- ((next-input)))
arg: nil 1 (1000 0 1)
run: string-copy/split-first/main 2: 0 => ((2 integer))
mem: ((2 integer)): 1069 <= 0
run: string-copy/split-first/main 3: (((3 integer)) <- ((next-input)))
arg: nil 2 (1000 0 1)
run: string-copy/split-first/main 3: 1 => ((3 integer))
mem: ((3 integer)): 1070 <= 1
run: string-copy/split-first/main 4: (((4 integer)) <- ((length)) ((1 string-address) (deref)))
array-len: ((1 string-address) (deref))
mem: ((1000 integer) (raw)) => 3
run: string-copy/split-first/main 4: 3 => ((4 integer))
mem: ((4 integer)): 1071 <= 3
run: string-copy/split-first/main 5: (((3 integer)) <- ((min)) ((4 integer)) ((3 integer)))
mem: ((4 integer)) => 3
mem: ((3 integer)) => 1
run: min/string-copy/split-first/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: min/string-copy/split-first/main 0: 1097 => ((default-space space-address))
run: min/string-copy/split-first/main 1: (((1 integer)) <- ((next-input)))
arg: nil 0 (3 1)
run: min/string-copy/split-first/main 1: 3 => ((1 integer))
mem: ((1 integer)): 1099 <= 3
run: min/string-copy/split-first/main 2: (((2 integer)) <- ((next-input)))
arg: nil 1 (3 1)
run: min/string-copy/split-first/main 2: 1 => ((2 integer))
mem: ((2 integer)): 1100 <= 1
run: min/string-copy/split-first/main 3: (((3 boolean)) <- ((less-than)) ((1 integer)) ((2 integer)))
mem: ((1 integer)) => 3
mem: ((2 integer)) => 1
run: min/string-copy/split-first/main 3: nil => ((3 boolean))
mem: ((3 boolean)): 1101 <= nil
run: min/string-copy/split-first/main 4: (((jump-if)) ((3 boolean)) ((1 offset)))
mem: ((3 boolean)) => nil
run: min/string-copy/split-first/main 5: (((reply)) ((2 integer)))
mem: ((2 integer)) => 1
run: string-copy/split-first/main 5: 1 => ((3 integer))
mem: ((3 integer)): 1070 <= 1
run: string-copy/split-first/main 6: (((4 integer)) <- ((subtract)) ((3 integer)) ((2 integer)))
mem: ((3 integer)) => 1
mem: ((2 integer)) => 0
run: string-copy/split-first/main 6: 1 => ((4 integer))
mem: ((4 integer)): 1071 <= 1
run: string-copy/split-first/main 7: (((5 string-address)) <- ((new)) ((string literal)) ((4 integer)))
mem: ((4 integer)) => 1
run: string-copy/split-first/main 7: 1128 => ((5 string-address))
mem: ((5 string-address)): 1072 <= 1128
run: string-copy/split-first/main 8: (((6 integer)) <- ((copy)) ((2 integer)))
mem: ((2 integer)) => 0
run: string-copy/split-first/main 8: 0 => ((6 integer))
mem: ((6 integer)): 1073 <= 0
run: string-copy/split-first/main 9: (((7 integer)) <- ((copy)) ((0 literal)))
run: string-copy/split-first/main 9: 0 => ((7 integer))
mem: ((7 integer)): 1074 <= 0
run: string-copy/split-first/main 10: (((8 boolean)) <- ((greater-or-equal)) ((6 integer)) ((3 integer)))
mem: ((6 integer)) => 0
mem: ((3 integer)) => 1
run: string-copy/split-first/main 10: nil => ((8 boolean))
mem: ((8 boolean)): 1075 <= nil
run: string-copy/split-first/main 11: (((jump-if)) ((8 boolean)) ((6 offset)))
mem: ((8 boolean)) => nil
run: string-copy/split-first/main 12: (((9 character)) <- ((index)) ((1 string-address) (deref)) ((6 integer)))
mem: ((6 integer)) => 0
array-len: ((1000 string) (raw))
mem: ((1000 integer) (raw)) => 3
mem: ((1001 byte) (raw)) => a
run: string-copy/split-first/main 12: #\a => ((9 character))
mem: ((9 character)): 1076 <= #\a
run: string-copy/split-first/main 13: (((10 character-address)) <- ((index-address)) ((5 string-address) (deref)) ((7 integer)))
mem: ((7 integer)) => 0
array-len: ((1128 string) (raw))
mem: ((1128 integer) (raw)) => 1
run: string-copy/split-first/main 13: 1129 => ((10 character-address))
mem: ((10 character-address)): 1077 <= 1129
run: string-copy/split-first/main 14: (((10 character-address) (deref)) <- ((copy)) ((9 character)))
mem: ((9 character)) => a
run: string-copy/split-first/main 14: #\a => ((10 character-address) (deref))
mem: ((10 character-address) (deref)): 1129 <= #\a
run: string-copy/split-first/main 15: (((6 integer)) <- ((add)) ((6 integer)) ((1 literal)))
mem: ((6 integer)) => 0
run: string-copy/split-first/main 15: 1 => ((6 integer))
mem: ((6 integer)): 1073 <= 1
run: string-copy/split-first/main 16: (((7 integer)) <- ((add)) ((7 integer)) ((1 literal)))
mem: ((7 integer)) => 0
run: string-copy/split-first/main 16: 1 => ((7 integer))
mem: ((7 integer)): 1074 <= 1
run: string-copy/split-first/main 17: (((jump)) ((-8 offset)))
run: string-copy/split-first/main 10: (((8 boolean)) <- ((greater-or-equal)) ((6 integer)) ((3 integer)))
mem: ((6 integer)) => 1
mem: ((3 integer)) => 1
run: string-copy/split-first/main 10: t => ((8 boolean))
mem: ((8 boolean)): 1075 <= t
run: string-copy/split-first/main 11: (((jump-if)) ((8 boolean)) ((6 offset)))
mem: ((8 boolean)) => t
run: string-copy/split-first/main 18: (((reply)) ((5 string-address)))
mem: ((5 string-address)) => 1128
run: split-first/main 10: 1128 => ((5 string-address))
mem: ((5 string-address)): 1010 <= 1128
run: split-first/main 11: (((7 integer)) <- ((add)) ((7 integer)) ((1 literal)))
mem: ((7 integer)) => 1
run: split-first/main 11: 2 => ((7 integer))
mem: ((7 integer)): 1012 <= 2
run: split-first/main 12: (((6 string-address)) <- ((string-copy)) ((1 string-address)) ((7 integer)) ((3 integer)))
mem: ((1 string-address)) => 1000
mem: ((7 integer)) => 2
mem: ((3 integer)) => 3
run: string-copy/split-first/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: string-copy/split-first/main 0: 1130 => ((default-space space-address))
run: string-copy/split-first/main 1: (((1 string-address)) <- ((next-input)))
arg: nil 0 (1000 2 3)
run: string-copy/split-first/main 1: 1000 => ((1 string-address))
mem: ((1 string-address)): 1132 <= 1000
run: string-copy/split-first/main 2: (((2 integer)) <- ((next-input)))
arg: nil 1 (1000 2 3)
run: string-copy/split-first/main 2: 2 => ((2 integer))
mem: ((2 integer)): 1133 <= 2
run: string-copy/split-first/main 3: (((3 integer)) <- ((next-input)))
arg: nil 2 (1000 2 3)
run: string-copy/split-first/main 3: 3 => ((3 integer))
mem: ((3 integer)): 1134 <= 3
run: string-copy/split-first/main 4: (((4 integer)) <- ((length)) ((1 string-address) (deref)))
array-len: ((1 string-address) (deref))
mem: ((1000 integer) (raw)) => 3
run: string-copy/split-first/main 4: 3 => ((4 integer))
mem: ((4 integer)): 1135 <= 3
run: string-copy/split-first/main 5: (((3 integer)) <- ((min)) ((4 integer)) ((3 integer)))
mem: ((4 integer)) => 3
mem: ((3 integer)) => 3
run: min/string-copy/split-first/main 0: (((default-space space-address)) <- ((new)) ((space literal)) ((30 literal)))
run: min/string-copy/split-first/main 0: 1161 => ((default-space space-address))
run: min/string-copy/split-first/main 1: (((1 integer)) <- ((next-input)))
arg: nil 0 (3 3)
run: min/string-copy/split-first/main 1: 3 => ((1 integer))
mem: ((1 integer)): 1163 <= 3
run: min/string-copy/split-first/main 2: (((2 integer)) <- ((next-input)))
arg: nil 1 (3 3)
run: min/string-copy/split-first/main 2: 3 => ((2 integer))
mem: ((2 integer)): 1164 <= 3
run: min/string-copy/split-first/main 3: (((3 boolean)) <- ((less-than)) ((1 integer)) ((2 integer)))
mem: ((1 integer)) => 3
mem: ((2 integer)) => 3
run: min/string-copy/split-first/main 3: nil => ((3 boolean))
mem: ((3 boolean)): 1165 <= nil
run: min/string-copy/split-first/main 4: (((jump-if)) ((3 boolean)) ((1 offset)))
mem: ((3 boolean)) => nil
run: min/string-copy/split-first/main 5: (((reply)) ((2 integer)))
mem: ((2 integer)) => 3
run: string-copy/split-first/main 5: 3 => ((3 integer))
mem: ((3 integer)): 1134 <= 3
run: string-copy/split-first/main 6: (((4 integer)) <- ((subtract)) ((3 integer)) ((2 integer)))
mem: ((3 integer)) => 3
mem: ((2 integer)) => 2
run: string-copy/split-first/main 6: 1 => ((4 integer))
mem: ((4 integer)): 1135 <= 1
run: string-copy/split-first/main 7: (((5 string-address)) <- ((new)) ((string literal)) ((4 integer)))
mem: ((4 integer)) => 1
run: string-copy/split-first/main 7: 1192 => ((5 string-address))
mem: ((5 string-address)): 1136 <= 1192
run: string-copy/split-first/main 8: (((6 integer)) <- ((copy)) ((2 integer)))
mem: ((2 integer)) => 2
run: string-copy/split-first/main 8: 2 => ((6 integer))
mem: ((6 integer)): 1137 <= 2
run: string-copy/split-first/main 9: (((7 integer)) <- ((copy)) ((0 literal)))
run: string-copy/split-first/main 9: 0 => ((7 integer))
mem: ((7 integer)): 1138 <= 0
run: string-copy/split-first/main 10: (((8 boolean)) <- ((greater-or-equal)) ((6 integer)) ((3 integer)))
mem: ((6 integer)) => 2
mem: ((3 integer)) => 3
run: string-copy/split-first/main 10: nil => ((8 boolean))
mem: ((8 boolean)): 1139 <= nil
run: string-copy/split-first/main 11: (((jump-if)) ((8 boolean)) ((6 offset)))
mem: ((8 boolean)) => nil
run: string-copy/split-first/main 12: (((9 character)) <- ((index)) ((1 string-address) (deref)) ((6 integer)))
mem: ((6 integer)) => 2
array-len: ((1000 string) (raw))
mem: ((1000 integer) (raw)) => 3
mem: ((1003 byte) (raw)) => b
run: string-copy/split-first/main 12: #\b => ((9 character))
mem: ((9 character)): 1140 <= #\b
run: string-copy/split-first/main 13: (((10 character-address)) <- ((index-address)) ((5 string-address) (deref)) ((7 integer)))
mem: ((7 integer)) => 0
array-len: ((1192 string) (raw))
mem: ((1192 integer) (raw)) => 1
run: string-copy/split-first/main 13: 1193 => ((10 character-address))
mem: ((10 character-address)): 1141 <= 1193
run: string-copy/split-first/main 14: (((10 character-address) (deref)) <- ((copy)) ((9 character)))
mem: ((9 character)) => b
run: string-copy/split-first/main 14: #\b => ((10 character-address) (deref))
mem: ((10 character-address) (deref)): 1193 <= #\b
run: string-copy/split-first/main 15: (((6 integer)) <- ((add)) ((6 integer)) ((1 literal)))
mem: ((6 integer)) => 2
run: string-copy/split-first/main 15: 3 => ((6 integer))
mem: ((6 integer)): 1137 <= 3
run: string-copy/split-first/main 16: (((7 integer)) <- ((add)) ((7 integer)) ((1 literal)))
mem: ((7 integer)) => 0
run: string-copy/split-first/main 16: 1 => ((7 integer))
mem: ((7 integer)): 1138 <= 1
run: string-copy/split-first/main 17: (((jump)) ((-8 offset)))
run: string-copy/split-first/main 10: (((8 boolean)) <- ((greater-or-equal)) ((6 integer)) ((3 integer)))
mem: ((6 integer)) => 3
mem: ((3 integer)) => 3
run: string-copy/split-first/main 10: t => ((8 boolean))
mem: ((8 boolean)): 1139 <= t
run: string-copy/split-first/main 11: (((jump-if)) ((8 boolean)) ((6 offset)))
mem: ((8 boolean)) => t
run: string-copy/split-first/main 18: (((reply)) ((5 string-address)))
mem: ((5 string-address)) => 1192
run: split-first/main 12: 1192 => ((6 string-address))
mem: ((6 string-address)): 1011 <= 1192
run: split-first/main 13: (((reply)) ((5 string-address)) ((6 string-address)))
mem: ((5 string-address)) => 1128
mem: ((6 string-address)) => 1192
run: main 1: 1128 => ((2 string-address))
mem: ((2 string-address)): 2 <= 1128
run: main 1: 1192 => ((3 string-address))
mem: ((3 string-address)): 3 <= 1192
schedule: done with routine nil