blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
171
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
8
| license_type
stringclasses 2
values | repo_name
stringlengths 6
82
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 13
values | visit_date
timestamp[ns] | revision_date
timestamp[ns] | committer_date
timestamp[ns] | github_id
int64 1.59k
594M
⌀ | star_events_count
int64 0
77.1k
| fork_events_count
int64 0
33.7k
| gha_license_id
stringclasses 12
values | gha_event_created_at
timestamp[ns] | gha_created_at
timestamp[ns] | gha_language
stringclasses 46
values | src_encoding
stringclasses 14
values | language
stringclasses 2
values | is_vendor
bool 2
classes | is_generated
bool 1
class | length_bytes
int64 4
7.87M
| extension
stringclasses 101
values | filename
stringlengths 2
149
| content
stringlengths 4
7.87M
| has_macro_def
bool 2
classes |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c3d9ad2f65468546d24b639d3ce3331a63630b0 | c74dcb1facbd920d762017345171f47f8e41d0c5 | /chapter_3/stream-utils.scm | 09d59de156dfcf2ed08661be99846824724dc40e | []
| no_license | akash-akya/sicp-exercises | 5125c1118c7f0e4400cb823508797fb67c745592 | c28f73719740c2c495b7bc38ee8b790219482b67 | refs/heads/master | 2021-06-15T19:12:47.679967 | 2019-08-03T14:03:20 | 2019-08-03T14:03:20 | 136,158,517 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,989 | scm | stream-utils.scm | #lang sicp
(#%require "utils.scm")
(define (stream-car stream)
(car stream))
(define (stream-cdr stream)
(force (cdr stream)))
(define (stream-map proc . argstreams)
(if (stream-null? (car argstreams))
the-empty-stream
(cons-stream
(apply proc (map stream-car argstreams))
(apply stream-map
(cons proc
(map stream-cdr
argstreams))))))
(define (display-stream stream)
(if (stream-null? stream)
(newline)
(begin
(display (stream-car stream))
(display " ")
(display-stream (stream-cdr stream)))))
(define (stream-to-list stream)
(if (stream-null? stream)
nil
(cons (stream-car stream) (stream-to-list (stream-cdr stream)))))
(define (stream-ref s n)
(if (= n 0)
(stream-car s)
(stream-ref (stream-cdr s) (- n 1))))
(define (add-streams s1 s2)
(stream-map + s1 s2))
(define (take-n stream n)
(if (<= n 0)
nil
(cons (stream-car stream)
(take-n (stream-cdr stream)
(- n 1)))))
(define (display-stream-n stream n)
(if (= n 0)
(newline)
(begin
(display (stream-car stream)) (display " ")
(display-stream-n (stream-cdr stream) (- n 1)))))
(define (stream-filter pred stream)
(cond ((stream-null? stream)
the-empty-stream)
((pred (stream-car stream))
(cons-stream
(stream-car stream)
(stream-filter
pred
(stream-cdr stream))))
(else (stream-filter
pred
(stream-cdr stream)))))
(define ones (cons-stream 1 ones))
(define integers
(cons-stream 1 (add-streams ones integers)))
(#%provide stream-car)
(#%provide stream-cdr)
(#%provide stream-map)
(#%provide display-stream)
(#%provide stream-to-list)
(#%provide stream-ref)
(#%provide add-streams)
(#%provide display-stream-n)
(#%provide stream-filter)
(#%provide take-n)
(#%provide integers)
| false |
29772e1dd381ca26517a032d50ee8d9d7b6d9659 | 68c4bab1f5d5228078d603066b6c6cea87fdbc7a | /lab/sandbox/lambda-calculus.scm | 2c90ed7a7a85ac8196b5e5e65ffc243fdfe68444 | []
| no_license | felipelalli/micaroni | afab919dab304e21ba916aa6310dca102b1a04a5 | 741b628754b7c7085d3e68009a621242c2a1534e | refs/heads/master | 2023-08-03T06:25:15.405861 | 2023-07-25T14:44:56 | 2023-07-25T14:44:56 | 537,536 | 2 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 572 | scm | lambda-calculus.scm | #lang r5rs
(define identity
(lambda (x) x))
(define self-app
(lambda (s)
(s s)))
(define fn-app-fn ; apply in the book
(lambda (func)
(lambda (arg)
(func arg))))
(define identity2
(lambda (x)
(fn-app-fn identity) x))
(define self-app2
(lambda (s)
((fn-app-fn s) s)))
(define select-first
(lambda (first)
(lambda (second)
first)))
(define select-second
(lambda (first)
(lambda (second)
second)))
(define make-pair
(lambda (first)
(lambda (second)
(lambda (func)
((func first) second)))))
| false |
04c5ab9c567b5fe39411d76c47e2760a479fcb5f | 37245ece3c767e9434a93a01c2137106e2d58b2a | /src/unsyntax/syntax.sld | fe9f660b6d4d5aec62598a6d7e17b48c6556d453 | [
"MIT"
]
| permissive | mnieper/unsyntax | 7ef93a1fff30f20a2c3341156c719f6313341216 | 144772eeef4a812dd79515b67010d33ad2e7e890 | refs/heads/master | 2023-07-22T19:13:48.602312 | 2021-09-01T11:15:54 | 2021-09-01T11:15:54 | 296,947,908 | 12 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 2,019 | sld | syntax.sld | ;; Copyright © Marc Nieper-Wißkirchen (2020).
;; This file is part of unsyntax.
;; Permission is hereby granted, free of charge, to any person
;; obtaining a copy of this software and associated documentation files
;; (the "Software"), to deal in the Software without restriction,
;; including without limitation the rights to use, copy, modify, merge,
;; publish, distribute, sublicense, and/or sell copies of the Software,
;; and to permit persons to whom the Software is furnished to do so,
;; subject to the following conditions:
;; The above copyright notice and this permission notice (including the
;; next paragraph) shall be included in all copies or substantial
;; portions of the Software.
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
;; BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
;; ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
;; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
;; SOFTWARE.
(define-library (unsyntax syntax)
(export make-syntax-object
syntax-object?
syntax-object-expr
syntax-object-set-expr!
syntax-object-marks
syntax-object-substs
syntax-object-srcloc
unwrap-syntax
syntax-null?
syntax-pair?
syntax-car
syntax-cdr
syntax-vector?
syntax-vector->list
syntax-length+
syntax-split-at
syntax-circular-list?
syntax-map
syntax->list
syntax->datum
datum->syntax
make-mark
anti-mark
anti-mark?
marks=?
add-mark
add-substs
add-substs*
shift?
shift
syntax->sexpr)
(import (scheme base)
(scheme case-lambda)
(srfi 1)
(srfi 8)
(srfi 125)
(srfi 128)
(unsyntax error)
(unsyntax gensym)
(unsyntax syntax-object))
(include "syntax.scm"))
| false |
dd3a9e13ec649d0645023a4085c5e2386a5fb846 | 4e2bb57118132e64e450671470c132205457d937 | /programs/checksig | 5989e930266ec060fc6f8819875ef166e99c0f07 | [
"MIT"
]
| permissive | theschemer/industria | 8c4d01d018c885c0437e2575787ec987d800514f | 9c9e8c2b44280d3b6bda72154a5b48461aa2aba5 | refs/heads/master | 2021-08-31T23:32:29.440167 | 2017-12-01T23:24:01 | 2017-12-01T23:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 7,209 | checksig | #!/usr/bin/env scheme-script
;; -*- mode: scheme; coding: utf-8 -*- !#
;; Demo program to verify OpenPGP signatures
;; Copyright © 2010, 2012 Göran Weinholt <[email protected]>
;; Permission is hereby granted, free of charge, to any person obtaining a
;; copy of this software and associated documentation files (the "Software"),
;; to deal in the Software without restriction, including without limitation
;; the rights to use, copy, modify, merge, publish, distribute, sublicense,
;; and/or sell copies of the Software, and to permit persons to whom the
;; Software is furnished to do so, subject to the following conditions:
;; The above copyright notice and this permission notice shall be included in
;; all copies or substantial portions of the Software.
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
;; THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
;; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
;; DEALINGS IN THE SOFTWARE.
#!r6rs
(import (rnrs)
(only (srfi :13 strings) string-index-right
string-pad)
(srfi :19 time)
(srfi :26 cut)
(srfi :98 os-environment-variables)
(weinholt crypto dsa)
(weinholt crypto rsa)
(weinholt crypto openpgp)
(weinholt text random-art)
(xitomatl AS-match))
(define (print . x) (for-each display x) (newline))
(define (default-keyring)
(let ((fn (string-append (get-environment-variable "HOME") "/.gnupg/pubring.gpg")))
(if (file-exists? fn) fn "to use an empty one")))
(define (open-signature-file fn)
(let ((p (open-file-input-port fn)))
(cond ((port-ascii-armored? p)
(display "Detected ASCII armored signature file.\n")
(transcoded-port p (native-transcoder)))
(else p))))
(define (get-signature p)
(if (textual-port? p)
(get-openpgp-detached-signature/ascii p)
(let ((v (get-openpgp-packet p)))
(unless (or (eof-object? v)
(openpgp-signature? v))
(error 'get-signature "Expected an OpenPGP signature" v p))
v)))
(define (checksig sigfile datafile keyfile)
(display (string-append
"Signature file: " sigfile "\n"
"Data file: " datafile "\n"
"Keyring file: " keyfile "\n\n"))
;; Verify all signatures in the sigfile
(let ((p (open-signature-file sigfile))
(dp (open-file-input-port datafile)))
(let lp ()
(let ((sig (get-signature p)))
(unless (eof-object? sig)
(display "Reading keyring...")
(let ((keyring
(if (file-exists? keyfile)
(call-with-port (open-file-input-port keyfile)
(lambda (p) (get-openpgp-keyring/keyid p (openpgp-signature-issuer sig))))
(make-eqv-hashtable))))
(display "\nVerifying signature...\n")
(set-port-position! dp 0)
(let-values (((result key)
(verify-openpgp-signature sig keyring dp)))
(print "Signature made with "
(symbol->string (openpgp-signature-hash-algorithm sig))
" at time "
(date->string (openpgp-signature-creation-time sig)
"~4")
"\nusing the "
(symbol->string (openpgp-signature-public-key-algorithm sig))
" key with ID "
(number->string (openpgp-signature-issuer sig) 16) ".\n")
(case result
((missing-key)
(display
(string-append
"The key that made the signature is not in the keyring. You could try this: \n"
"gpg --keyserver subkeys.pgp.net --recv-key "
(string-pad (number->string key 16) 16 #\0)
"\n")))
(else
(display
(if (eq? result 'good-signature)
"\x1b;[1;32mThis is a good signature.\x1b;[0m\n"
"\x1b;[1;31m*************** BAD SIGNATURE ***************\x1b;[0m\n"))
(let* ((keyid (openpgp-public-key-id key))
(keydata (hashtable-ref keyring keyid #f)))
(let ((k (openpgp-public-key-value (car keydata))))
;; Print OpenSSH-style random art for fun and novelty
(random-art-box-style random-art-style-unicode)
(display (random-art (openpgp-public-key-fingerprint (car keydata))
(cond ((rsa-public-key? k)
(string-append
"PGP RSA "
(number->string
(rsa-public-key-length k))))
((dsa-public-key? k)
(string-append
"PGP DSA "
(number->string
(dsa-public-key-length k))))
(else "PGP")))))
(print "Fingerprint of the primary key: "
(openpgp-format-fingerprint
(openpgp-public-key-fingerprint (car keydata))))
(for-each (lambda (userid)
(print "User ID: "
(openpgp-user-id-value userid)))
(filter openpgp-user-id? keydata)))
(newline)))))
(lp))))))
(match (command-line)
((name sigfile)
(checksig sigfile
(cond ((string-index-right sigfile #\.)
=> (lambda (i) (substring sigfile 0 i)))
(else
(display (string-append
"Can't guess the data filename.\n"
"Usage: " name
" signature-file [data-file] [keyring-file]\n")
(current-error-port))
(exit 1)))
(default-keyring)))
((_ sigfile datafile)
(checksig sigfile datafile (default-keyring)))
((_ sigfile datafile keyring)
(checksig sigfile datafile keyring))
((name)
(display (string-append
"Usage: " name " signature-file [data-file] [keyring-file]\n\
\n\
Checks the detached OpenPGP signatures in SIGNATURE-FILE against
the data in DATA-FILE. If DATA-FILE is not specified the default
is to drop the last part of the SIGNATURE-FILE filename.
If KEYRING-FILE file is not specified the default is
" (default-keyring) ".\n")
(current-error-port))
(exit 1)))
| false |
|
2b935c0bfed11c962926d43d303c3e0b441a1c31 | 2c291b7af5cd7679da3aa54fdc64dc006ee6ff9b | /ch3/exercise.3.69.scm | ebb9a9256738f3c54ae9080f0ad85b426cc40ea2 | []
| no_license | etscrivner/sicp | caff1b3738e308c7f8165fc65a3f1bc252ce625a | 3b45aaf2b2846068dcec90ea0547fd72b28f8cdc | refs/heads/master | 2021-01-10T12:08:38.212403 | 2015-08-22T20:01:44 | 2015-08-22T20:01:44 | 36,813,957 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 623 | scm | exercise.3.69.scm | (load "streams.scm")
(load "exercise.3.50.scm")
(load "exercise.3.54.scm")
(define (triples s t u)
(cons-stream
(list (stream-car s) (stream-car t) (stream-car u))
(interleave
(stream-map (lambda (x) (append (list (stream-car s)) x))
(stream-cdr (pairs t u)))
(triples (stream-cdr s) (stream-cdr t) (stream-cdr u)))))
(print-partial-stream (triples integers integers integers) 20)
(define (square x)
(* x x))
(define pythagorean-triples
(stream-filter (lambda (x) (= (square (caddr x)) (+ (square (car x)) (square (cadr x)))))
(triples integers integers integers)))
| false |
105fb86c8c9d09e538d0a9777bce36961d497c6f | 8709b182034876e1a5c6f0dd1dc44b7d3f4e7634 | /load.scm | 65f4f8ccb17b9052ef9d41235163f17c40460336 | []
| no_license | mobius-eng/mit-scheme-utils | 2f9b5451b28c3d78f131bb7e4f3c22627448ccd2 | 046acd5ab8593ed23c3a9964a20820383e1a02e9 | refs/heads/master | 2021-01-10T06:43:39.453268 | 2015-11-12T09:36:03 | 2015-11-12T09:36:03 | 45,790,144 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 416 | scm | load.scm | (declare (usual-integrations))
(ns (scheme utils)
(provide-syntax when unless if-let dlist dassoc)
(provide list->alist constantly partial obj-get add1 sub1 assoc-default)
(file "scheme-utils"))
#|
(import-names! 'scheme
'scheme-utils
'(list->alist constantly partial obj-get add1 sub1 assoc-default))
(import-macros! 'scheme
'scheme-utils
'(when unless if-let dlist dassoc))
|#
| false |
77527ad4d4d8a1d3098140213c7dff4d5616a897 | 9c811b91d38d6c2250df1f6612cd115745da031b | /test-all.scm | c7e5529718b30a68d8b877c9830916035eb15faa | [
"MIT"
]
| permissive | webyrd/copyo | 1a7ba6226fb08acf9b7fc4544b75fcd404796e14 | d5bf684cdf30eff8ec637ee79f0de55cd7311289 | refs/heads/master | 2021-01-01T19:46:49.185864 | 2014-01-02T03:07:24 | 2014-01-02T03:07:24 | 15,574,496 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 79 | scm | test-all.scm | (load "copyo-tests.scm")
(load "reify-copyo-tests.scm")
(load "run-tests.scm")
| false |
f21231536a3b4c4b0ab618cb4d67135e5ed0bb92 | defeada37d39bca09ef76f66f38683754c0a6aa0 | /System/system/component-model/list-sort-description-collection.sls | abeee60f03307aeb92f03c55da6607490b6c7fc0 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,475 | sls | list-sort-description-collection.sls | (library (system component-model list-sort-description-collection)
(export new
is?
list-sort-description-collection?
index-of
contains?
copy-to
count
item-get
item-set!
item-update!)
(import (ironscheme-clr-port))
(define-syntax new
(lambda (e)
(syntax-case e ()
((_ a ...)
#'(clr-new
System.ComponentModel.ListSortDescriptionCollection
a
...)))))
(define (is? a)
(clr-is System.ComponentModel.ListSortDescriptionCollection a))
(define (list-sort-description-collection? a)
(clr-is System.ComponentModel.ListSortDescriptionCollection a))
(define-method-port
index-of
System.ComponentModel.ListSortDescriptionCollection
IndexOf
(System.Int32 System.Object))
(define-method-port
contains?
System.ComponentModel.ListSortDescriptionCollection
Contains
(System.Boolean System.Object))
(define-method-port
copy-to
System.ComponentModel.ListSortDescriptionCollection
CopyTo
(System.Void System.Array System.Int32))
(define-field-port
count
#f
#f
(property:)
System.ComponentModel.ListSortDescriptionCollection
Count
System.Int32)
(define-field-port
item-get
item-set!
item-update!
(property:)
System.ComponentModel.ListSortDescriptionCollection
Item
System.ComponentModel.ListSortDescription))
| true |
f41434c4867ff4d1c073ca3ee24cc45a5ef62150 | defeada37d39bca09ef76f66f38683754c0a6aa0 | /System/system/code-dom/compiler/executor.sls | 80d8944aa28369a4165fa96df5e45e6141519e16 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,224 | sls | executor.sls | (library (system code-dom compiler executor)
(export is? executor? exec-wait-with-capture exec-wait)
(import (ironscheme-clr-port))
(define (is? a) (clr-is System.CodeDom.Compiler.Executor a))
(define (executor? a) (clr-is System.CodeDom.Compiler.Executor a))
(define-method-port
exec-wait-with-capture
System.CodeDom.Compiler.Executor
ExecWaitWithCapture
(static:
System.Int32
System.String
System.CodeDom.Compiler.TempFileCollection
System.String&
System.String&)
(static:
System.Int32
System.String
System.String
System.CodeDom.Compiler.TempFileCollection
System.String&
System.String&)
(static:
System.Int32
System.IntPtr
System.String
System.CodeDom.Compiler.TempFileCollection
System.String&
System.String&)
(static:
System.Int32
System.IntPtr
System.String
System.String
System.CodeDom.Compiler.TempFileCollection
System.String&
System.String&))
(define-method-port
exec-wait
System.CodeDom.Compiler.Executor
ExecWait
(static:
System.Void
System.String
System.CodeDom.Compiler.TempFileCollection)))
| false |
9e4719d6e59616840d1ccc07b36d9fd3583cfb6f | bf1c9803ae38f9aad027fbe4569ccc6f85ba63ab | /chapter_1/1.2.Procedures.and.the.Processes.They.Generate/ex_1.17.scm | 29fbb513d570f8b94bf4f80d199d3bf86f7d2064 | []
| no_license | mehese/sicp | 7fec8750d3b971dd2383c240798dbed339d0345a | 611b09280ab2f09cceb2479be98ccc5403428c6c | refs/heads/master | 2021-06-12T04:43:27.049197 | 2021-04-04T22:22:47 | 2021-04-04T22:23:12 | 161,924,666 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 489 | scm | ex_1.17.scm | #lang sicp
(define (* a b)
(if (= b 0)
0
(+ a (* a (- b 1)))))
(define (double n)
(+ n n))
(define (even? n)
(= (remainder n 2) 0))
(define (halve n)
(/ n 2)) ; only use for even n
(define (mul a b)
(cond
((= b 0) 0)
((even? b) (mul (double a) (halve b)))
(else (+ a (mul a (- b 1))))))
(list
(list (* 2 4) (mul 2 4))
(list (* 3 4) (mul 3 4))
(list (* 3 3) (mul 3 3))
(list (* 1 0) (mul 1 0))
(list (* 1 1) (mul 1 1))
(list (* 5 5) (mul 5 5))) | false |
2faf2f716a7b4d685677a0acc4646daf0edcde7b | ac2a3544b88444eabf12b68a9bce08941cd62581 | /lib/_prim-port-gambit#.scm | 7b9a3d4cc2c9cdf25c5999cc536734c715d01329 | [
"Apache-2.0",
"LGPL-2.1-only"
]
| permissive | tomelam/gambit | 2fd664cf6ea68859d4549fdda62d31a25b2d6c6f | d60fdeb136b2ed89b75da5bfa8011aa334b29020 | refs/heads/master | 2020-11-27T06:39:26.718179 | 2019-12-15T16:56:31 | 2019-12-15T16:56:31 | 229,341,552 | 1 | 0 | Apache-2.0 | 2019-12-20T21:52:26 | 2019-12-20T21:52:26 | null | UTF-8 | Scheme | false | false | 5,224 | scm | _prim-port-gambit#.scm | ;;;============================================================================
;;; File: "_prim-port-gambit#.scm"
;;; Copyright (c) 1994-2019 by Marc Feeley, All Rights Reserved.
;;;============================================================================
;;; Port operations added by Gambit.
(##namespace ("##"
call-with-input-process
call-with-input-string
call-with-input-u8vector
call-with-input-vector
call-with-output-process
call-with-output-string
call-with-output-u8vector
call-with-output-vector
(console-port console-port#unimplemented)
current-readtable
force-output
get-output-u8vector
get-output-vector
input-port-byte-position
input-port-bytes-buffered
input-port-char-position
input-port-characters-buffered
input-port-column
input-port-line
input-port-readtable
input-port-readtable-set!
input-port-timeout-set!
(make-tls-context make-tls-context#unimplemented)
object->string
object->u8vector
open-directory
open-dummy
(open-event-queue open-event-queue#unimplemented)
open-file
open-input-process
open-input-u8vector
open-input-vector
open-output-process
open-output-u8vector
open-output-vector
(open-process open-process#unimplemented)
(open-string open-string#unimplemented)
(open-string-pipe open-string-pipe#unimplemented)
(open-tcp-client open-tcp-client#unimplemented)
(open-tcp-server open-tcp-server#unimplemented)
(open-u8vector open-u8vector#unimplemented)
(open-u8vector-pipe open-u8vector-pipe#unimplemented)
(open-udp open-udp#unimplemented)
(open-vector open-vector#unimplemented)
(open-vector-pipe open-vector-pipe#unimplemented)
output-port-byte-position
output-port-char-position
output-port-column
output-port-line
output-port-readtable
output-port-readtable-set!
output-port-timeout-set!
output-port-width
port-io-exception-handler-set!
port-settings-set!
(pp pp#unimplemented)
pretty-print
print
println
process-pid
process-status
read-all
read-substring
read-subu8vector
(readtable-case-conversion? readtable-case-conversion?#unimplemented)
(readtable-case-conversion?-set readtable-case-conversion?-set#unimplemented)
(readtable-comment-handler readtable-comment-handler#unimplemented)
(readtable-comment-handler-set readtable-comment-handler-set#unimplemented)
(readtable-eval-allowed? readtable-eval-allowed?#unimplemented)
(readtable-eval-allowed?-set readtable-eval-allowed?-set#unimplemented)
(readtable-keywords-allowed? readtable-keywords-allowed?#unimplemented)
(readtable-keywords-allowed?-set readtable-keywords-allowed?-set#unimplemented)
(readtable-max-unescaped-char readtable-max-unescaped-char#unimplemented)
(readtable-max-unescaped-char-set readtable-max-unescaped-char-set#unimplemented)
(readtable-max-write-length readtable-max-write-length#unimplemented)
(readtable-max-write-length-set readtable-max-write-length-set#unimplemented)
(readtable-max-write-level readtable-max-write-level#unimplemented)
(readtable-max-write-level-set readtable-max-write-level-set#unimplemented)
(readtable-sharing-allowed? readtable-sharing-allowed?#unimplemented)
(readtable-sharing-allowed?-set readtable-sharing-allowed?-set#unimplemented)
(readtable-start-syntax readtable-start-syntax#unimplemented)
(readtable-start-syntax-set readtable-start-syntax-set#unimplemented)
(readtable-write-cdr-read-macros? readtable-write-cdr-read-macros?#unimplemented)
(readtable-write-cdr-read-macros?-set readtable-write-cdr-read-macros?-set#unimplemented)
(readtable-write-extended-read-macros? readtable-write-extended-read-macros?#unimplemented)
(readtable-write-extended-read-macros?-set readtable-write-extended-read-macros?-set#unimplemented)
(readtable? readtable?#unimplemented)
(tcp-client-local-socket-info tcp-client-local-socket-info#unimplemented)
(tcp-client-peer-socket-info tcp-client-peer-socket-info#unimplemented)
(tcp-client-self-socket-info tcp-client-self-socket-info#unimplemented)
(tcp-server-socket-info tcp-server-socket-info#unimplemented)
(tcp-service-register! tcp-service-register!#unimplemented)
(tcp-service-unregister! tcp-service-unregister!#unimplemented)
(tty-history tty-history#unimplemented)
(tty-history-max-length-set! tty-history-max-length-set!#unimplemented)
(tty-history-set! tty-history-set!#unimplemented)
(tty-mode-set! tty-mode-set!#unimplemented)
(tty-paren-balance-duration-set! tty-paren-balance-duration-set!#unimplemented)
(tty-text-attributes-set! tty-text-attributes-set!#unimplemented)
(tty-type-set! tty-type-set!#unimplemented)
(tty? tty?#unimplemented)
(udp-destination-set! udp-destination-set!#unimplemented)
(udp-local-socket-info udp-local-socket-info#unimplemented)
(udp-read-subu8vector udp-read-subu8vector#unimplemented)
(udp-read-u8vector udp-read-u8vector#unimplemented)
(udp-source-socket-info udp-source-socket-info#unimplemented)
(udp-write-subu8vector udp-write-subu8vector#unimplemented)
(udp-write-u8vector udp-write-u8vector#unimplemented)
u8vector->object
with-input-from-port
with-input-from-process
with-input-from-string
with-input-from-u8vector
with-input-from-vector
with-output-to-port
with-output-to-process
with-output-to-string
with-output-to-u8vector
with-output-to-vector
write-substring
write-subu8vector
))
;;;============================================================================
| false |
66a9254f6a79188621feda04d36a3b545e8040e7 | 80db6ef9bf5fbdccf3852fb6498153de140c33a6 | /src/forth.scm | 3b9ebba8b932a86f40229108c4d867341c9d9780 | [
"MIT"
]
| permissive | siraben/zkeme80 | 5c95a7792916244269c4b3cc6c5cb77e55b4920b | 5a0bf0578070b257b4dfeeb81de2a034315cb35b | refs/heads/master | 2021-11-11T20:28:12.966299 | 2021-11-04T15:34:03 | 2021-11-04T15:34:03 | 162,269,074 | 221 | 12 | MIT | 2021-06-08T01:55:54 | 2018-12-18T10:13:01 | Scheme | UTF-8 | Scheme | false | false | 43,784 | scm | forth.scm | ;; Forth portion of the operating system.
(define (include-file-as-bytes filename)
(let* ((port (open-file filename "r"))
(res (get-string-all port))
(expr `((db ,(string res)))))
(close-port port)
expr))
;; Immediate flag
(define immediate 128)
(define hidden 64)
(define next
`((jp next-sub)))
(define push-bc-rs
`((dec ix)
(ld (+ ix 0) b)
(dec ix)
(ld (+ ix 0) c)))
(define pop-bc-rs
`((ld c (+ ix 0))
(inc ix)
(ld b (+ ix 0))
(inc ix)))
(define push-hl-rs
`((dec ix)
(ld (+ ix 0) h)
(dec ix)
(ld (+ ix 0) l)))
(define pop-hl-rs
`((ld l (+ ix 0))
(inc ix)
(ld h (+ ix 0))
(inc ix)))
(define push-de-rs
`((dec ix)
(ld (+ ix 0) d)
(dec ix)
(ld (+ ix 0) e)))
(define pop-de-rs
`((ld e (+ ix 0))
(inc ix)
(ld d (+ ix 0))
(inc ix)))
(define hl-to-bc
`((ld b h)
(ld c l)))
(define bc-to-hl
`((ld h b)
(ld l c)))
(define hl-to-de
`((ld d h)
(ld e l)))
(define reset-link
(lambda ()
(set! *link-pointer* 0)
'()))
(define make-link
(lambda ()
;; We need to compute and return the instruction record for the
;; previous byte, but perform the side effect of changing the link
;; pointer as well.
(let ((out (assemble-expr `(dw (,*link-pointer*)))))
(set! *link-pointer* *pc*)
out)))
(define (string->bytes x)
`(,@(bytevector->u8-list (string->utf8 x)) 0))
(define (defcode name flags label)
(let ((len (string-length name)))
`(,make-link
(db (,(+ len flags)))
(db ,(string->bytes name))
(label ,label))))
(define (defword name flags label)
`(,@(defcode name flags label)
(call docol)))
(define *var-list* '())
(define *var-count* 0)
(define (next-var-addr!)
(set! *var-count* (1+ *var-count*))
(+ #x8400 (* 2 *var-count*)))
(define reset-var
(lambda ()
(set! *var-list* '())
(set! *var-count* 0)
'()))
;; We must relocate these variables elsewhere, where RAM is writable.
(define (defvar name label default)
;; Store the list of variable default values.
(let ((var-label (string->symbol (format #f "var-~a" label)))
(var-addr (next-var-addr!)))
(set! *var-list* `((,var-label . ,default) . ,*var-list*))
`(,@(defcode name 0 label)
(push bc)
(ld bc ,var-addr)
,@next)))
;; (lit* '(1 2 3 4 5)) => (lit 1 lit 2 ...)
(define (lit* l)
(if (null? l)
'()
`(lit ,(car l) . ,(lit* (cdr l)))))
(define *link-pointer* 0)
(define next-sub
`((label next-sub)
(ld a (de))
(ld l a)
(inc de)
(ld a (de))
(ld h a)
(inc de)
(jp (hl))))
(define docol-sub
`((label docol)
,@push-de-rs
(pop de)
,@next))
(define forth-stack-words
`(,@(defcode "DUP" 0 'dup)
(push bc)
,@next
,@(defcode "?DUP" 0 '?dup)
(ld hl 0)
(call cp-hl-bc)
(jp nz dup)
,@next
,@(defcode "DROP" 0 'drop)
(pop bc)
,@next
,@(defcode "SWAP" 0 'swap)
(pop hl)
(push bc)
,@hl-to-bc
,@next
,@(defcode "NIP" 0 'nip)
(pop hl)
,@next
,@(defcode "TUCK" 0 'tuck)
(pop hl)
(push bc)
(push hl)
,@next
,@(defcode ">R" 0 '>r)
,@push-bc-rs
(pop bc)
,@next
,@(defcode "R>" 0 'r>)
(push bc)
,@pop-bc-rs
,@next
,@(defcode "R@" 0 'r@)
(push bc)
(ld c (+ ix 0))
(ld b (+ ix 1))
,@next
,@(defcode "2>R" 0 '2>r)
(pop hl)
,@push-hl-rs
,@push-bc-rs
(pop bc)
,@next
,@(defcode "2R>" 0 '2r>)
(push bc)
,@pop-bc-rs
,@pop-hl-rs
(push hl)
,@next
,@(defcode "RP!" 0 'rp!)
(push bc)
(pop ix)
(pop bc)
,@next
,@(defcode "RP@" 0 'rp@)
(push bc)
(push ix)
(pop bc)
,@next
,@(defcode "RDROP" 0 'rdrop)
(inc ix)
(inc ix)
,@next
,@(defcode "2RDROP" 0 '2rdrop)
(inc ix)
(inc ix)
(inc ix)
(inc ix)
,@next
,@(defcode "SP@" 0 'sp@)
(push bc)
(ld hl 0)
(add hl sp)
,@hl-to-bc
,@next
,@(defcode "SP!" 0 'sp!)
,@bc-to-hl
(ld sp hl)
(pop bc)
,@next
,@(defcode "OVER" 0 'over)
(pop hl)
(push hl)
(push bc)
,@hl-to-bc
,@next
,@(defcode "ROT" 0 'rot)
(pop hl)
((ex (sp) hl))
(push bc)
,@hl-to-bc
,@next
,@(defcode "-ROT" 0 '-rot)
(ld h b)
(ld l c)
(pop bc)
((ex (sp) hl))
(push hl)
,@next
,@(defcode "2DROP" 0 '2drop)
(pop bc)
(pop bc)
,@next
,@(defcode "2DUP" 0 '2dup)
(pop hl)
(push hl)
(push bc)
(push hl)
,@next
,@(defcode "2SWAP" 0 '2swap)
(ld (var-temp-cell) de)
(pop hl)
(ld d b)
(ld e c)
(pop bc)
((ex (sp) hl))
(push de)
(push hl)
(ld de (var-temp-cell))
,@next
;; T{ 1 2 3 4 2OVER -> 1 2 3 4 1 2 }T
,@(defcode "2OVER" 0 '2over)
(push bc)
(pop bc)
(pop hl)
(pop bc)
(pop hl)
(push hl)
(push bc)
(dec sp)
(dec sp)
(dec sp)
(dec sp)
(push hl)
,@next
))
(define forth-math-words
`(,@(defcode "+" 0 '+)
(pop hl)
(add hl bc)
,@hl-to-bc
,@next
,@(defcode "-" 0 '-)
(xor a)
(pop hl)
(sbc hl bc)
,@hl-to-bc
,@next
,@(defcode "AND" 0 'and)
(pop hl)
(ld a c)
(and l)
(ld c a)
(ld a b)
(and h)
(ld b a)
,@next
,@(defcode "OR" 0 'or)
(pop hl)
(ld a c)
(or l)
(ld c a)
(ld a b)
(or h)
(ld b a)
,@next
,@(defcode "XOR" 0 'xor)
(pop hl)
(ld a c)
(xor l)
(ld c a)
(ld a b)
(xor h)
(ld b a)
,@next
,@(defcode "2*" 0 '2*)
(xor a)
(rl c)
(rl b)
,@next
;; Aliased for speed.
,@(defcode "CELLS" 0 'cells)
(xor a)
(rl c)
(rl b)
,@next
;; It's a no-op.
,@(defcode "CHARS" 0 'chars)
,@next
,@(defcode "2/" 0 '2/)
(srl b)
(rr c)
,@next
,@(defcode "INVERT" 0 'invert)
(ld a c)
(cpl)
(ld c a)
(ld a b)
(cpl)
(ld b a)
,@next
,@(defcode "*" 0 '*)
(ld (var-temp-cell) de)
(pop de)
(call mul-16-by-16)
,@hl-to-bc
(ld de (var-temp-cell))
,@next
,@(defcode "/MOD" 0 '/mod)
(ld (var-temp-cell) de)
(ld d b)
(ld e c)
(pop bc)
(ld a b)
;; ac by de and places the quotient in ac and the remainder in hl
(label div-ac-by-de)
(ld hl 0)
(ld b 16)
(label div-ac-de-loop)
(db (#xcb #x31)) ;; sll c
(rla)
(adc hl hl)
(sbc hl de)
(jr nc div-ac-de-local)
(add hl de)
(dec c)
(label div-ac-de-local)
(djnz div-ac-de-loop)
(ld b a)
(push hl)
(ld de (var-temp-cell))
,@next
,@(defword "MOD" 0 'mod)
(dw (/mod drop exit))
,@(defword "/" 0 '/)
(dw (/mod nip exit))
,@(defcode "1+" 0 '1+)
(inc bc)
,@next
,@(defcode "CHAR+" 0 'char+)
(inc bc)
,@next
,@(defcode "1-" 0 '1-)
(dec bc)
,@next
,@(defcode "2-" 0 '2-)
(dec bc)
(dec bc)
,@next
,@(defcode "2+" 0 '2+)
(inc bc)
(inc bc)
,@next
,@(defcode "CELL+" 0 'cell+)
(inc bc)
(inc bc)
,@next
,@(defword "TRUE" 0 'true)
(dw (lit 1 exit))
,@(defword "FALSE" 0 'false)
(dw (lit 0 exit))
,@(defcode "'0'" 0 'zeroc)
(push bc)
(ld bc 48)
,@next
,@(defcode "'9'" 0 'ninec)
(push bc)
(ld bc 57)
,@next
,@(defword "WITHIN" 0 'within)
(dw (over - >r - r> <= exit))
,@(defword "NUM?" 0 'num?)
(dw (zeroc))
(dw (ninec))
(dw (within exit))
;; Parse a number starting at an address.
;; ( addr -- num | nothing)
;; The caller of PARSE-NUMBER should check the variable NUM-STATUS
;; to see if the parsing suceeded.
;; Currently only parses base 10.
,@(defword "PARSE-NUMBER" 0 'parse-number)
;; Check if the first character is numeric.
(dw (dup c@ dup num? 0jump parse-num-fail))
;; Convert the first digit.
(dw (zeroc -))
;; It is. Continue until end of string.
;; Stack right now: ( addr n -- )
(label parse-num-continue)
(dw (swap 1+ swap)) ;; ( addr+1 n -- )
(label parse-num-loop)
;; Check if we reached the end of string already.
(dw (over c@ 0jump parse-num-done))
;; Nope. ( addr+1 n -- )
;; Still check if it's numeric. Since the string shouldn't
;; contain spaces, we can just check for the null byte.
(dw (over c@ num? 0jump parse-num-fail))
;; Continue.
(dw (over c@ zeroc - swap lit 10 * +))
;; ( addr+1 nm -- )
(dw (jump parse-num-continue))
(label parse-num-done)
(dw (swap drop))
(dw (lit 1 num-status ! exit))
(label parse-num-fail)
(dw (2drop lit 0 num-status ! exit))
,@(defword "MAX" 0 'max)
(dw (2dup > 0branch 8 drop branch 4 nip exit))
,@(defword "MIN" 0 'min)
(dw (2dup < 0branch 8 drop branch 4 nip exit))
,@(defword "2@" 0 '2@)
(dw (dup cell+ @ swap @ exit))
,@(defword "2!" 0 '2!)
(dw (swap over ! cell+ ! exit))
))
(define forth-memory-words
`(,@(defcode "!" 0 '!)
(pop hl)
(ld a l)
(ld (bc) a)
(inc bc)
(ld a h)
(ld (bc) a)
(pop bc)
,@next
,@(defcode "@" 0 '@)
(ld a (bc))
(ld l a)
(inc bc)
(ld a (bc))
(ld h a)
,@hl-to-bc
,@next
,@(defword "?" 0 '?)
(dw (@ u. exit))
,@(defcode "+!" 0 '+!)
(pop hl)
(ld a (bc))
(add a l)
(ld (bc) a)
(inc bc)
(ld a (bc))
(adc a h)
(ld (bc) a)
(pop bc)
,@next
,@(defcode "-!" 0 '-!)
(pop hl)
(push de)
(ld a (bc))
(ld e a)
(inc bc)
(ld a (bc))
(ld d a)
(dec bc)
(xor a)
((ex de hl))
(sbc hl de)
(ld a l)
(ld (bc) a)
(inc bc)
(ld a h)
(ld (bc) a)
(pop de)
(pop bc)
,@next
,@(defcode "C!" 0 'c!)
(pop hl)
(ld a l)
(ld (bc) a)
(pop bc)
,@next
,@(defcode "C@" 0 'c@)
(ld a (bc))
(ld c a)
(ld b 0)
,@next
,@(defcode "C@C!" 0 'c@c!)
(pop hl)
(ld a (bc))
(ld (hl) a)
(inc hl)
(inc bc)
(push hl)
,@next
,@(defcode "CMOVE" 0 'cmove)
(ld (var-temp-cell) de)
(pop de)
(pop hl)
(ldir)
(ld de (var-temp-cell))
(pop bc)
,@next
,@(defcode "CMOVE>" 0 'cmove>)
(ld (var-temp-cell) de)
(pop de)
(pop hl)
(lddr)
(ld de (var-temp-cell))
(pop bc)
,@next
,@(defword "USED" 0 'used)
(dw (here h0 - exit))
,@(defword "UNUSED" 0 'unused)
(dw (lit #xc000 here - exit))
))
(define forth-graphics-words
`( ;; Draw a rectangle using OR
;; ( x y width height -- )
,@(defcode "RECT-OR" 0 'rect-or-forth)
(ld b c)
(pop hl)
(ld c l)
(pop hl)
(ld (var-temp-cell) de)
(pop de)
(ld iy screen-buffer)
(call rect-or)
(call fast-copy)
(ld de (var-temp-cell))
(pop bc)
,@next
;; Draw a rectangle using XOR
;; ( x y width height -- )
,@(defcode "RECT-XOR" 0 'rect-xor-forth)
(ld b c)
(pop hl)
(ld c l)
(pop hl)
(ld (var-temp-cell) de)
(pop de)
(ld iy screen-buffer)
(call rect-xor)
(call fast-copy)
(ld de (var-temp-cell))
(pop bc)
,@next
;; Draw a rectangle using AND
;; ( x y width height -- )
,@(defcode "RECT-AND" 0 'rect-and-forth)
(ld b c)
(pop hl)
(ld c l)
(pop hl)
(ld (var-temp-cell) de)
(pop de)
(ld iy screen-buffer)
(call rect-and)
(call fast-copy)
(ld de (var-temp-cell))
(pop bc)
,@next
;; ( x y -- )
,@(defcode "SET-PIXEL" 0 'set-pixel-forth)
(ld iy screen-buffer)
(ld l c)
(pop bc)
(ld a c)
(call set-pixel)
(pop bc)
,@next
,@(defcode "CLEAR-SCREEN" 0 'clear-screen)
(ld iy screen-buffer)
(call clear-buffer)
(call fast-copy)
,@next
,@(defword "PAGE" 0 'page)
(dw (clear-screen origin exit))
;; Draw a sprite to the screen.
;; ( sprite_addr height x y -- )
,@(defcode "PUT-SPRITE-OR" 0 'put-sprite-or-forth)
(ld iy screen-buffer)
(ld (var-temp-cell) de)
(ld e c)
(pop bc)
(ld d c)
(pop bc)
(ld b c)
(pop hl)
(call put-sprite-or)
(call fast-copy)
(pop bc)
(ld de (var-temp-cell))
,@next
,@(defcode "PUT-SPRITE-AND" 0 'put-sprite-and-forth)
(ld iy screen-buffer)
(ld (var-temp-cell) de)
(ld e c)
(pop bc)
(ld d c)
(pop bc)
(ld b c)
(pop hl)
(call put-sprite-and)
(call fast-copy)
(pop bc)
(ld de (var-temp-cell))
,@next
,@(defcode "PUT-SPRITE-XOR" 0 'put-sprite-xor-forth)
(ld iy screen-buffer)
(ld (var-temp-cell) de)
(ld e c)
(pop bc)
(ld d c)
(pop bc)
(ld b c)
(pop hl)
(call put-sprite-xor)
(call fast-copy)
(pop bc)
(ld de (var-temp-cell))
,@next
;; Draw a region of memory to the screen.
;; ( addr -- )
,@(defcode "DRAW" 0 'draw)
(push bc)
(pop iy)
(call fast-copy)
(pop bc)
,@next
;; Plot the default memory screen (starting at address #x8100)
,@(defcode "PLOT" 0 'plot)
(ld iy screen-buffer)
(call fast-copy)
,@next
(label all-black)
(db (#b11110000))
(db (#b11110000))
(db (#b11110000))
(db (#b11110000))
(db (#b11110000))
;; Plot a character to the screen.
;; ( char -- )
,@(defcode "EMIT" 0 'emit)
(push de)
(push ix)
;; Margin of 0.
;; (ld ixh 0)
(db (#xdd))
(ld h 0)
;; Draw with OR
(db (#xdd))
(ld l 0)
;; Drawing coordinates.
(ld a (var-cur-col))
(ld d a)
(ld a (var-cur-row))
(ld e a)
(ld iy screen-buffer)
(ld hl all-black)
(ld b 5)
(call put-sprite-and)
;; Character to print.
(ld a c)
;; Bounding box limits.
(ld bc 25152)
(call wrap-char-shared)
(call fast-copy)
(ld a d)
(ld (var-cur-col) a)
(ld a e)
(ld (var-cur-row) a)
(pop ix)
(pop de)
(pop bc)
,@next
;; Carriage return
,@(defcode "CR" 0 'cr)
(push de)
(push bc)
(ld a (var-cur-col))
(ld d a)
(ld a (var-cur-row))
(ld e a)
(ld b 0)
(call newline)
(ld a d)
(ld (var-cur-col) a)
(ld a e)
(ld (var-cur-row) a)
(pop bc)
(pop de)
,@next
;; ( x y --)
,@(defcode "AT-XY" 0 'at-xy)
(ld a c)
(ld (var-cur-row) a)
(pop bc)
(ld a c)
(ld (var-cur-col) a)
(pop bc)
,@next
,@(defword "CHAR-AT-XY" 0 'char-at-xy)
(dw (lit 6 * swap lit 4 * swap at-xy))
(dw (exit))
;; Draw a string to the screen
;; ( str_addr -- )
,@(defcode "PLOT-STRING" 0 'plot-string)
(ld (var-temp-cell) de)
(ld a (var-cur-col))
(ld d a)
(ld a (var-cur-row))
(ld e a)
,@bc-to-hl
(ld iy screen-buffer)
(ld bc 25152)
(xor a)
(call wrap-str)
(call fast-copy)
(ld a d)
(ld (var-cur-col) a)
(ld a e)
(ld (var-cur-row) a)
(ld de (var-temp-cell))
(pop bc)
,@next
;; Type n characters starting at addr.
;; ( addr n -- )
,@(defword "TYPE" 0 'type)
(label type-loop)
(dw (?dup 0jump type-done))
(dw (1- swap dup c@ emit 1+ swap jump type-loop))
(label type-done)
(dw (drop exit))
,@(defword "TELL" 0 'tell)
(dw (drop plot-string exit))
))
(define forth-logic-words
`(;; Absolute jumps! Use with caution.
;; Absolute jumps are NOT portable because they depend on the
;; context in which the code was written. JUMP primitives should
;; only be used in the bootstrapping stage (i.e. writing Forth
;; words by hand). After that it is recommended to write in Forth
;; and decompile back into 0BRANCH and BRANCH primitives.
,@(defcode "JUMP" 0 'jump)
(ld a (de))
(ld l a)
(inc de)
(ld a (de))
(ld h a)
,@hl-to-de
,@next
,@(defcode "0JUMP" 0 '0jump)
(xor a)
(cp c)
(jp z zjump-maybe)
(jp nz zjump-fail)
(label zjump-maybe)
(xor a)
(cp b)
(jp nz zjump-fail)
(pop bc)
(jp jump)
(label zjump-fail)
(inc de)
(inc de)
(pop bc)
,@next
,@(defcode "BRANCH" 0 'branch)
((ex de hl))
(ld e (hl))
(inc hl)
(ld d (hl))
(dec hl)
(add hl de)
((ex de hl))
,@next
,@(defcode "0BRANCH" 0 '0branch)
(xor a)
(cp c)
(jp z zbranch-maybe)
(jp nz zbranch-fail)
(label zbranch-maybe)
(xor a)
(cp b)
(jp nz zbranch-fail)
(pop bc)
(jp branch)
(label zbranch-fail)
(inc de)
(inc de)
(pop bc)
,@next
,@(defcode "=" 0 '=)
(pop hl)
(call cp-hl-bc)
(jp z tru)
(jp fal)
,@(defcode "<>" 0 '<>)
(pop hl)
(call cp-hl-bc)
(jp z fal)
(jp tru)
,@(defcode "<" 0 '<)
(pop hl)
(call cp-hl-bc)
(jp c tru)
(jp fal)
,@(defcode ">" 0 '>)
(pop hl)
(push hl)
(push bc)
(call cp-hl-bc)
(pop bc)
(pop hl)
(jp nc gt-check-neq)
(jp fal)
(label gt-check-neq)
(call cp-hl-bc)
(jp z fal)
(jp tru)
,@(defcode "<=" 0 '<=)
,@bc-to-hl
(pop bc)
(call cp-hl-bc)
(jp nc tru)
(jp fal)
,@(defcode ">=" 0 '>=)
(pop hl)
(call cp-hl-bc)
(jp nc tru)
(jp fal)
,@(defcode "0=" 0 '0=)
(ld hl 0)
(call cp-hl-bc)
(jp c fal)
(jp tru)
,@(defword "NOT" 0 'not)
(dw (0= exit))))
(define forth-text-words
`(,@(defcode "KEYC" 0 'keyc)
(call get-key)
(push bc)
(ld b 0)
(ld c a)
,@next
,@(defcode "KEY" 0 'key)
(call flush-keys)
(call wait-key)
(push bc)
(ld b 0)
(ld c a)
,@next
;; Read a key as an ASCII character.
,@(defcode "AKEY" 0 'akey)
(ld (var-temp-cell) de)
(call flush-keys)
(call wait-key)
(ld h 0)
(ld l a)
(ld de char-lookup-table)
(push bc)
(ld b h)
(add hl de)
(ld c (hl))
(ld de (var-temp-cell))
,@next
,@(defcode "TO-ASCII" 0 'to-ascii)
(push de)
(ld h 0)
(ld l c)
(ld b h)
(ld de char-lookup-table)
(add hl de)
(ld c (hl))
(pop de)
,@next
,@(defword "ORIGIN" 0 'origin)
(dw (lit 0 dup cur-col ! cur-row ! exit))
(label cursor)
(db (#b11100000))
(db (#b11100000))
(db (#b11100000))
(db (#b11100000))
(db (#b11100000))
(label blank)
(db (0 0 0 0 0))
;; ( addr u -- )
;; Expect u characters (or a newline, whichever comes first) and
;; store them at address addr.
;; Written in Forth because it's easier.
;; Still somewhat buggy.
,@(defword "EXPECT" 0 'expect)
;; Store the address and count so we can do various checks.
(dw (lit expect-count ! dup lit expect-ptr !))
;; And the initial pointer.
(dw (lit expect-ptr-initial !))
(label expect-loop)
;; Check if we have no characters left.
(dw (lit expect-count @ not 0jump expect-more))
(dw (exit))
(label expect-more)
(dw (page lit expect-ptr-initial @ plot-string))
(dw (lit 8 cur-row +! lit ,(char->integer #\^) emit))
(dw (lit 8 cur-row -!))
;; Draw a cursor
;; (dw (lit cursor lit 5 cur-col @ cur-row @ put-sprite-xor-forth plot))
(label expect-got-blank)
(dw (akey))
(dw (?dup 0jump expect-got-blank))
(dw (dup lit ,(char->integer #\newline) <> 0jump expect-got-newline))
(dw (dup lit ,(char->integer #\backspace) <> 0jump expect-got-backspace))
;; General case
(dw (lit expect-ptr @ c!))
(dw (lit 1 lit expect-ptr +!))
(dw (lit 1 lit expect-count -!))
(dw (drop))
(dw (jump expect-loop))
(label expect-got-newline)
(dw (lit expect-ptr-initial @ lit expect-ptr @))
(dw (<> 0jump expect-got-blank))
(label expect-end)
(dw (origin lit expect-ptr-initial @ plot-string))
(dw (drop lit 0 lit expect-ptr @ c! exit))
(label expect-got-backspace)
(dw (drop))
(dw (lit expect-ptr-initial @ lit expect-ptr @))
(dw (<> 0jump expect-backspace-to-loop))
(dw (lit 1 lit expect-ptr -!))
(dw (lit 0 lit expect-ptr @ c!))
(dw (lit 1 lit expect-count +!))
(label expect-backspace-to-loop)
(dw (drop jump expect-loop))
,@(defword "REFILL" 0 'refill)
(dw (lit var-current-input-device @ execute))
(dw (0jump refill-fail))
;; (dw (lit input-buffer lit var-input-ptr ! ))
(dw (true exit))
(label refill-fail)
(dw (false exit))
;; Get the next character from the input source.
,@(defword "GETC" 0 'getc)
(dw (lit var-input-ptr @ c@))
(dw (lit 1 lit var-input-ptr +!))
(dw (exit))
,@(defword "UNGETC" 0 'ungetc)
(dw (lit 1 lit var-input-ptr -!))
(dw (exit))
;; Parse the next word.
;; We're going off the standard here and will skip whitespace
;; (instead of what the stack passed to it), and comments.
;; Whitespace includes #\space #\newline
;; Comments are #\\ until #\newline
;; ( -- addr len )
,@(defword "WORD" 0 'word)
(dw (lit word-buffer lit word-ptr !))
(dw (lit 0))
(label skip-space)
(dw (drop))
(dw (getc))
(dw (?dup 0jump empty-word))
(dw (dup lit ,(char->integer #\space) <>))
(dw (0jump skip-space))
(dw (dup lit ,(char->integer #\newline) <>))
(dw (0jump skip-space))
(dw (dup lit ,(char->integer #\tab) <>))
(dw (0jump skip-space))
(dw (dup lit ,(char->integer #\\) <>))
(dw (0jump skip-comment))
(dw (jump actual-word))
(label skip-comment)
(dw (drop))
(dw (getc ?dup 0jump empty-word))
(dw (dup lit ,(char->integer #\newline) <> 0jump skip-space))
(dw (jump skip-comment))
(label actual-word)
(dw (lit word-ptr @ c!))
(dw (lit 1 lit word-ptr +!))
(label actual-word-loop)
(dw (getc))
(dw (dup 0jump word-done))
(dw (dup lit ,(char->integer #\space) <> 0jump word-done))
(dw (dup lit ,(char->integer #\newline) <> 0jump word-done))
(dw (dup lit ,(char->integer #\tab) <> 0jump word-done))
(dw (jump actual-word))
(label word-done)
(dw (drop))
;; Write a 0 and reset the word buffer pointer.
(dw (lit 0 lit word-ptr @ c!))
;; Push the word length on the stack.
(dw (lit word-ptr @ lit word-buffer -))
(dw (lit word-buffer dup lit word-ptr !))
(dw (swap exit))
;; Couldn't get a word, return 0.
(label empty-word)
(dw (lit 0 exit))
,@(defword "CHAR" 0 'char)
(dw (word drop c@ exit))
,@(defword "[CHAR]" immediate 'char-brac)
(dw (tick lit comma char comma exit))
))
(define forth-semantics-words
`(,@(defcode "LIT" 0 'lit)
(push bc)
(ld a (de))
(ld c a)
(inc de)
(ld a (de))
(ld b a)
(inc de)
,@next
,@(defword "LITERAL" immediate 'literal)
(dw (tick lit comma comma exit))
,@(defword "POSTPONE" immediate 'postpone)
(dw (word find >cfa comma exit))
,@(defword "[']" immediate 'tick-brac)
(dw (run-tick tick tick comma comma exit))
,@(defcode "LITSTRING" 0 'litstring)
(ld a (de))
(ld l a)
(inc de)
(ld a (de))
(ld h a)
(inc de)
(push bc)
(push de)
,@hl-to-bc
(add hl de)
(inc hl)
((ex de hl))
,@next
,@(defword "S\"" immediate 's-quote)
(dw (state @ 0branch 66 tick litstring comma here lit 0 comma))
(dw (getc dup lit 34 <> 0branch 8 c-comma branch 65518 drop))
(dw (lit 0 c-comma dup here swap - lit 3 - swap ! branch 38))
(dw (here getc dup lit 34 <> 0branch 12 over c! 1+ branch 65514))
(dw (drop here - here swap exit))
,@(defword ".\"" immediate 'dot-quote)
(dw (state @ 0branch 14 s-quote tick tell comma branch 26))
(dw (getc dup lit 34 = 0branch 6 drop exit emit branch 65514))
(dw (exit))
;; ( -- )
;; Exit from the current word.
,@(defcode "EXIT" 0 'exit)
,@pop-de-rs
,@next
;; ( addr -- )
;; Execute code at address ADDR.
,@(defcode "EXECUTE" 0 'execute)
,@bc-to-hl
(pop bc)
(jp (hl))
,@next
,@(defword "RECURSE" immediate 'recurse)
(dw (latest @ >cfa comma exit))
,@(defword "CATCH" 0 'catch)
(dw (sp@ >r handler @ >r rp@ handler ! execute r> handler ! r> drop))
(dw (lit 0 exit))
,@(defword "THROW" 0 'throw)
(dw (?dup 0branch 26 handler @ rp! r> handler ! r> swap >r sp! drop))
(dw (r> exit))
;; Find a word.
;; ( addr -- xt | 0 )
;; Going off standard. We're returning 0 for a word that is not
;; found, and let other words check if it's immediate or not.
,@(defcode "FIND" 0 'find)
(pop bc)
(push de)
,@bc-to-hl
(ld de (var-latest))
(inc de)
(inc de)
(inc de)
(label find-loop)
(call strcmp)
(jp z find-succeed)
(jp nz find-retry)
(label find-succeed)
(dec de)
(ld a (de))
(bit 6 a)
(jp nz find-succ-hidden)
(dec de)
(dec de)
(pop hl)
((ex de hl))
,@hl-to-bc
,@next
(label find-retry)
(dec de)
(label find-succ-hidden)
(dec de)
(dec de)
(push hl)
(ld a (de))
(ld l a)
(inc de)
(ld a (de))
(ld h a)
(dec de)
(ld a l)
(or a)
(jp z find-maybe-fail)
(label find-retry-cont)
(inc hl)
(inc hl)
(inc hl)
((ex de hl))
(pop hl)
(jp find-loop)
(label find-maybe-fail)
(ld a h)
(cp 0)
(jp z find-fail)
(jp nz find-retry-cont)
(label find-fail)
(pop hl)
(pop de)
(jp fal)
(label strcmp)
(push hl)
(push de)
(label strcmp-loop)
(ld a (de))
(or a)
(jr z strcmp-end)
(cp (hl))
(jr nz strcmp-exit)
(inc hl)
(inc de)
(jr strcmp-loop)
(label strcmp-end)
(ld a (hl))
(or a)
(label strcmp-exit)
(ccf)
(pop de)
(pop hl)
(ret)
;; Not standard compilant. Doesn't conform to run-time behavior.
;; Exactly the same as LIT
,@(defcode "(')" 0 'tick)
(push bc)
(ld a (de))
(ld c a)
(inc de)
(ld a (de))
(ld b a)
(inc de)
,@next
;; Correct implementation of tick.
,@(defword "'" 0 'run-tick)
(dw (word find >cfa exit))
,@(defcode "," 0 'comma)
(call _comma)
(pop bc)
,@next
(label _comma)
(push de)
(ld hl (var-dp))
(ld (hl) c)
(inc hl)
(ld (hl) b)
(inc hl)
(ld de var-dp)
((ex de hl))
(ld (hl) e)
(inc hl)
(ld (hl) d)
(pop de)
(ret)
,@(defcode "C," 0 'c-comma)
(call _c-comma)
(pop bc)
,@next
(label _c-comma)
(push de)
(ld hl (var-dp))
(ld (hl) c)
(inc hl)
(ld de var-dp)
((ex de hl))
(ld (hl) e)
(inc hl)
(ld (hl) d)
(pop de)
(ret)
,@(defcode "?IMMEDIATE" 0 '?immediate)
(inc bc)
(inc bc)
(ld a (bc))
(bit 7 a)
(jp z fal)
(jp tru)
,@(defcode "IMMEDIATE" 0 'immed)
(ld hl (var-latest))
(inc hl)
(inc hl)
(ld a 128)
(xor (hl))
(ld (hl) a)
,@next
,@(defcode ">CFA" 0 '>cfa)
(inc bc)
(inc bc)
(ld a (bc))
;; len-mask
(and 31)
(ld h 0)
(ld l a)
(inc bc)
(add hl bc)
(inc hl)
,@hl-to-bc
,@next
,@(defword ">DFA" 0 '>dfa)
(dw (>cfa lit 3 + exit))
,@(defword "CFA>" 0 'cfa>)
(dw (latest @ ?dup 0branch 22 2dup swap))
(dw (< 0branch 6 nip exit @ branch ,(- 65536 24) drop))
(dw (lit 0 exit))
,@(defword "PICK" 0 'pick)
(dw (1+ 2* sp@ + @ exit))
;; ( name length -- )
;; Parse a name and create a definition header for it.
,@(defcode "CREATE_" hidden 'create_)
(ld hl (var-dp))
(ld (var-temp-cell) de)
(ld de (var-latest))
(ld (hl) e)
(inc hl)
(ld (hl) d)
(dec hl)
(ld de var-latest)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
(inc hl)
(inc hl)
(ld a c)
(ld (hl) a)
(inc hl)
((ex de hl))
(pop hl)
(ld b 0)
(ldir)
(xor a)
(ld (de) a)
(inc de)
(ld hl var-dp)
(ld (hl) e)
(inc hl)
(ld (hl) d)
(ld de (var-temp-cell))
(pop bc)
(push de)
;; Write the CALL DOCOL instruction.
(ld de (var-dp))
(ld a #xcd)
(ld (de) a)
(inc de)
(ld hl docol)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
(inc de)
(ld hl var-dp)
(ld (hl) e)
(inc hl)
(ld (hl) d)
(pop de)
,@next
,@(defword "CREATE" 0 'create)
(dw (word create_ exit))
,@(defcode "HIDDEN" 0 'hidden)
,@bc-to-hl
(inc hl)
(inc hl)
(ld a 64)
(xor (hl))
(ld (hl) a)
(pop bc)
,@next
,@(defcode "?HIDDEN" 0 '?hidden)
,@bc-to-hl
(inc hl)
(inc hl)
(ld a 64)
(and (hl))
(ld b 0)
(ld c a)
,@next
;; STATE is 0 while interpreting.
,@(defcode "[" immediate 'lbrac)
(ld hl var-state)
(ld (hl) 0)
(inc hl)
(ld (hl) 0)
,@next
;; STATE is 1 while compiling.
,@(defcode "]" 0 'rbrac)
(ld hl var-state)
(ld (hl) 1)
(inc hl)
(ld (hl) 0)
,@next
,@(defword ":" 0 'colon)
(dw (create latest @))
(dw (hidden rbrac exit))
,@(defword ";" immediate 'semicolon)
(dw (lit exit comma))
(dw (latest @ hidden))
(dw (lbrac exit))
,@(defword "CONSTANT" 0 'constant)
(dw (create tick lit comma comma tick exit comma exit))
,@(defword "VALUE" 0 'value)
(dw (create tick lit comma comma tick exit comma exit))
,@(defword "TO" immediate 'to)
(dw (word find >dfa cell+ state @ 0branch 20 tick lit comma comma))
(dw (tick ! comma branch 4 ! exit))
,@(defword "+TO" immediate '+to)
(dw (word find >dfa cell+ state @ 0branch 20 tick lit comma comma))
(dw (tick +! comma branch 4 +! exit))
,@(defcode "(DOES>)" 0 'does-brac)
(push bc)
(ld bc (var-latest))
(inc bc)
(inc bc)
(ld a (bc))
(and 31)
(ld h 0)
(ld l a)
(inc bc)
(add hl bc)
(inc hl)
(inc hl)
(ld (hl) e)
(inc hl)
(ld (hl) d)
(pop bc)
,@pop-de-rs
,@next
,@(defcode "DOES>" immediate 'does>)
(push de)
(ld de (var-dp))
(ld hl does-brac)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
(inc de)
(ld a #xcd)
(ld (de) a)
(inc de)
(ld hl dodoes)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
(inc de)
(ld hl var-dp)
(ld (hl) e)
(inc hl)
(ld (hl) d)
(pop de)
,@next
(label dodoes)
,@push-de-rs
(pop de)
,@bc-to-hl
(pop bc)
(push hl)
,@next
,@(defword "QUIT" 0 'quit)
(label try-more)
(dw (lit ok-msg plot-string cr))
(dw (lbrac refill 0jump quit-eof))
(dw (interpret))
(dw (?dup 0= 0jump not-ok))
(dw (lit ok-msg plot-string cr jump try-more))
(label quit-eof)
(dw (page lit quit-eof-msg plot-string pause poweroff))
(label not-ok)
(dw (lit not-ok-msg plot-string abort))
(dw (exit))
(label ok-msg)
(db ,(string " ok"))
(label not-ok-msg)
(db ,(string "?"))
(label quit-eof-msg)
(db ,(string "Received EOF from input device."))
(label abort-msg1)
(db ,(string "Error "))
(label abort-msg2)
(db ,(string "occured at "))
(label abort-msg3)
(db ,(string ">>>"))
(label abort-msg4)
(db ,(string "<<<"))
(label abort-msg5)
(db ,(string "Unconsumed input: "))
,@(defword "ABORT" 0 'abort)
(dw (page lit abort-msg1 plot-string))
;; Print error number and rest of error message.
(dw (u. lit abort-msg2 plot-string cr lit abort-msg3 plot-string))
(dw (lit word-buffer plot-string lit abort-msg4 plot-string cr))
(dw (lit abort-msg5 plot-string cr))
(dw (lit var-input-ptr @ lit 24 type))
(dw (pause poweroff))
,@(defword "INTERPRET" 0 'interpret)
(label interpret-loop)
(dw (word ?dup 0jump try-more))
(dw (find ?dup 0jump maybe-number))
(dw (state @ 0jump interpret-word))
(label compiling-word)
(dw (dup ?immediate 0jump compile-word))
(label interpret-word)
(dw (>cfa execute jump interpret-loop))
(label compile-word)
(dw (>cfa comma jump interpret-loop))
(label maybe-number)
(dw (lit word-buffer parse-number))
(dw (num-status @ 0jump num-fail))
;; Read a number.
;; If we're interpreting, just keep the number on the satck.
(dw (state @ 0jump interpret-loop))
;; Otherwise we compile LIT and the number.
(label compile-num)
(dw (lit lit comma comma jump interpret-loop))
;; Failed to read a number.
(label num-fail)
(dw (jump undefined-word))
(label undefined-word)
(dw (lit 1 exit))
,@(defword "ID." 0 'id.)
(dw (lit 3 + plot-string exit))
))
(define forth-control-words
`(,@(defword "IF" immediate 'if)
(dw (tick 0branch comma here lit 0 comma exit))
,@(defword "THEN" immediate 'then)
(dw (dup here swap - swap ! exit))
,@(defword "ELSE" immediate 'else)
(dw (tick branch comma here lit 0 comma swap dup))
(dw (here swap - swap ! exit))
,@(defword "BEGIN" immediate 'begin)
(dw (here exit))
,@(defword "UNTIL" immediate 'until)
(dw (tick 0branch comma here - comma exit))
,@(defword "AGAIN" immediate 'again)
(dw (tick branch comma here - comma exit))
,@(defword "WHILE" immediate 'while)
(dw (tick 0branch comma here lit 0 comma exit))
,@(defword "ALLOT" 0 'allot)
(dw (dp +! exit))
,@(defword "VARIABLE" 0 'variable)
(dw (here lit 2 allot create tick lit comma comma))
(dw (tick exit comma exit))
,@(defword "REPEAT" immediate 'repeat)
(dw (tick branch comma swap here - comma))
(dw (dup here swap - swap ! exit))
,@(defword "DO" immediate 'do)
(dw (here tick >r comma tick >r comma exit))
,@(defword "LOOP" immediate 'loop)
(dw (tick r> comma tick r> comma tick 1+ comma tick 2dup comma))
(dw (tick = comma tick 0branch comma here - comma tick 2drop comma exit))
,@(defword "+LOOP" immediate '+loop)
(dw (tick r> comma tick r> comma tick rot comma tick + comma))
(dw (tick 2dup comma tick = comma tick 0branch comma here))
(dw (- comma tick 2drop comma exit))
,@(defword "CASE" immediate 'case)
(dw (lit 0 exit))
,@(defword "OF" immediate 'of)
(dw (tick over comma tick = comma if tick drop comma exit))
,@(defword "ENDOF" immediate 'endof)
(dw (else exit))
,@(defword "ENDCASE" immediate 'endcase)
(dw (tick drop comma ?dup 0branch 8 then branch ,(- 65536 10) exit))
,@(defword "FORGET" 0 'forget)
(dw (word find dup @ latest ! dp ! exit))
,@(defcode "I" 0 'curr-loop-index)
(push bc)
(ld c (+ ix 2))
(ld b (+ ix 3))
,@next
,@(defcode "J" 0 'curr-loop-index2)
(push bc)
(ld c (+ ix 6))
(ld b (+ ix 7))
,@next))
(define forth-shared-header
`(
,reset-link
,reset-var
(ld de main)
(ld ix #xc000)
(ld sp 65532)
,@next
,@next-sub
,@docol-sub
(label tru)
(ld bc 1)
,@next
(label fal)
(ld bc 0)
,@next
))
(define forth-meta-words
`(,@(defword "PAUSE" 0 'pause)
(dw (key drop exit))
;; ( num -- )
,@(defword "U." 0 'u._)
(dw (base @ /mod ?dup 0branch 4 u._ dup lit 10))
(dw (< 0branch 10 lit 48 branch 12 lit 10))
(dw (- lit 65 + emit exit))
,@(defword "U." 0 'u.)
(dw (u._ space exit))
,@(defword "." 0 '.)
(dw (u._ space exit))
,@(defword "UWIDTH" 0 'uwidth)
(dw (base @ / ?dup 0branch 10 uwidth 1+ branch 6))
(dw (lit 1 exit))
,@(defword "SPACE" 0 'space)
(dw (lit ,(char->integer #\space) emit exit))
,@(defword "SPACES" 0 'spaces)
(dw (lit 0 >r >r space r> r> 1+ 2dup = 0branch 65518))
(dw (2drop exit))
,@(defword "U.R" 0 'u.r)
(dw (swap dup uwidth rot swap - spaces u._ exit))
,@(defword "DEPTH" 0 'depth)
(dw (sp0 @ sp@ - 2- 2/ exit))
,@(defword ".S" 0 '.s)
(dw (lit ,(char->integer #\<) emit depth u._))
(dw (lit ,(char->integer #\>) emit space))
(dw (sp@ dup sp0 @ < 0branch 18 dup @))
(dw (u. lit 2 + branch 65510 drop exit))
,@(defword "HEX" 0 'hex)
(dw (lit 16 base ! exit))
,@(defword "DECIMAL" 0 'dec)
(dw (lit 10 base ! exit))
))
(define forth-misc-words
`(;; Shut down the calculator.
,@(defcode "POWEROFF" 0 'poweroff)
(jp shutdown)
,@(defcode "ERASE-SECTOR" 0 'erase-sector-forth)
(ld a c)
(di)
(call unlock-flash)
(call erase-flash-sector)
(call lock-flash)
(ei)
,@next
;; Enable interrupts
,@(defcode "ENABLE-INTERRUPTS" 0 'enable-interrupts)
(ei)
,@next
;; Disable interrupts
,@(defcode "DISABLE-INTERRUPTS" 0 'disable-interrupts)
(di)
,@next
;; Interrupt mode 1
,@(defcode "IM1" 0 'im1)
(im 1)
,@next
;; Interrupt mode 2
,@(defcode "IM2" 0 'im2)
(im 2)
,@next
;; Dummy
,@(defword "FOO" 0 'foo)
(dw (lit ddd exit))
(label ddd)
((ex af afs))
(exx)
(ld iy #x8100)
(ld de ddd-data)
(ld a (de))
(cp 10)
(jp nc ddd-too-long)
(jp ddd-cont)
(label ddd-too-long)
(ld a 0)
(label ddd-cont)
(ld b 2)
(ld c a)
(inc a)
(ld (de) a)
(ld e 0)
(ld l 10)
(call rect-xor)
(call fast-copy)
((ex af afs))
(exx)
(ret)
;; ( addr byte -- )
;; Set the current interrupt register to BYTE with routine at ADDR.
,@(defcode "SET-INTERRUPT" 0 'set-interrupt)
(di)
;; Write TOS into the interrupt register.
(ld a c)
(ld i a)
(pop hl)
;; HL now contains the address of the interrupt service routine
;; (ISR). Save DE and use it as a pointer to write the ISR.
(push de)
;; 0x??3F
(ld d a)
(ld e #x3f)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
;; 0x??7F
(ld e #x7f)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
;; 0x??BF
(ld e #xbf)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
;; 0x??FF
(ld e #xff)
(ld a l)
(ld (de) a)
(inc de)
(ld a h)
(ld (de) a)
(pop de)
(pop bc)
(im 2)
(ei)
,@next
;; ( src dest amount -- )
,@(defcode "CMOVE-FLASH" 0 'cmove-flash)
(ld (var-temp-cell) de)
(pop de)
(pop hl)
(di)
(call unlock-flash)
(call write-flash-buffer)
(call lock-flash)
(ei)
(ld de (var-temp-cell))
(pop bc)
,@next
;; Set page number loaded at memory bank A.
;; Addresses 16#4000 to 16#7fff
;; ( n -- flag )
,@(defcode "SET-RAM-MEMA" 0 'set-ram-mema)
(ld a c)
(cp 8)
(jp nc invalid-bank-selected)
;; We can try loading a RAM page now.
(di)
(ld a 64)
(add a c)
(out (6) a)
(ei)
(ld bc 1)
,@next
(label invalid-bank-selected)
(ld bc 0)
,@next
;; Find the length of a string.
,@(defcode "COUNT" 0 'count)
(push bc)
,@bc-to-hl
(push af)
(push hl)
(xor a)
(ld b a)
(ld c a)
(cpir)
(ld a c)
(cpl)
(ld c a)
(ld a b)
(cpl)
(ld b a)
(pop hl)
(pop af)
,@next
,@(defword "SHUTDOWN" 0 'shutdown-forth)
(dw (pause poweroff exit))
,@(defword "(" immediate 'comment)
(dw (getc lit 41 = 0branch 4 exit branch 65520))
))
(define (defconst name label val)
`(,@(defcode name 0 label)
(push bc)
(ld bc ,val)
,@next)
)
(define forth-vars
`(;; The current state (compiling (1) or interpreting (0)).
,@(defvar "STATE" 'state 0)
;; A pointer to the latest word defined.
,@(defvar "LATEST" 'latest 0)
;; The data pointer.
,@(defvar "DP" 'dp 'dp-start)
;; The current column (in pixels) for the cursor.
,@(defvar "CUR-COL" 'cur-col 0)
;; The current column (in pixels) for the cursor.
,@(defvar "CUR-ROW" 'cur-row 0)
;; The current numerical base
,@(defvar "BASE" 'base 10)
;; A temporary cell for making things faster.
,@(defvar "TEMP-CELL" 'temp-cell 0)
;; Check if reading a number has failed, since we can't return -1.
,@(defvar "NUM-STATUS" 'num-status 0)
;; Start of the data stack.
,@(defvar "SP0" 'sp0 0)
;; Start of the return stack.
,@(defvar "R0" 'r0 0)
;; Input pointer (used by GETC and UNGETC).
,@(defvar "INPUT-PTR" 'input-ptr 0)
;; Exception handler.
,@(defvar "HANDLER" 'handler 0)
,@(defvar "CURRENT-INPUT-DEVICE" 'current-input-device 0)
,@(defconst "H0" 'h0 'dp-start)
,@(defconst "OS-END" 'os-end-forth 'os-end)
,@(defconst "SCREEN-BUF" 'screen-buf 'screen-buffer)
,@(defconst "WORD-BUF" 'word-buf 'word-buffer)
,@(defconst "MEMA" 'mema #x4000)
,@(defconst "HERE" 'here '(var-dp))
,@(defconst "BL" 'bl 32)
;; Maximum x and y coordinates that can be drawn on the screen.
,@(defconst "MAX-COL" 'max-col 95)
,@(defconst "MAX-ROW" 'max-row 63)
;; Maximum x and y coordinates that can be drawn on the screen for
;; characters.
,@(defconst "CHAR-MAX-COL" 'char-max-col 23)
,@(defconst "CHAR-MAX-ROW" 'char-max-row 11)
))
(define (make-char-lookup-table)
(define res (make-list 128 0))
(define (put-char! id char)
(list-set! res id (char->integer char))
res)
(put-char! 47 #\A)
(put-char! 39 #\B)
(put-char! 31 #\C)
(put-char! 46 #\D)
(put-char! 38 #\E)
(put-char! 30 #\F)
(put-char! 22 #\G)
(put-char! 14 #\H)
(put-char! 45 #\I)
(put-char! 37 #\J)
(put-char! 29 #\K)
(put-char! 21 #\L)
(put-char! 13 #\M)
(put-char! 44 #\N)
(put-char! 36 #\O)
(put-char! 28 #\P)
(put-char! 20 #\Q)
(put-char! 12 #\R)
(put-char! 43 #\S)
(put-char! 35 #\T)
(put-char! 27 #\U)
(put-char! 19 #\V)
(put-char! 11 #\W)
(put-char! 42 #\X)
(put-char! 34 #\Y)
(put-char! 26 #\Z)
(put-char! 9 #\newline)
(put-char! 2 #\backspace)
(put-char! 56 #\backspace)
(put-char! 3 #\space)
(put-char! 33 #\space)
(put-char! 18 #\@)
(put-char! 25 #\.)
(put-char! 53 #\:)
(put-char! 52 #\;)
;; Add more characters as you need them.
)
(define forth-char-lookup-table
`((label char-lookup-table)
(db ,(make-char-lookup-table))))
(define forth-input-devices
`(;; Example of an input device.
(label string-input-device)
(call docol)
(dw (lit bootstrap-fs lit var-input-ptr !))
(dw (lit 1 lit bootstrap-load-bool +! lit bootstrap-load-bool @))
(dw (exit))
;; An input device that should be a prompt.
,@(defword "PROMPT" 0 'prompt)
(dw (lit prompt-space lit 128 expect))
(dw (lit prompt-space lit input-buffer lit 128 cmove))
(dw (true))
(dw (exit))))
(define forth-main
`((label main)
(dw (origin))
(dw (lit last-forth-word latest !))
(dw (lit dp-start dp !))
(dw (lit 10 base !))
(dw (lit 0 state !))
;; We set the stack pointer two lower because it's changed
;; slightly since when we did (ld sp 65532)
;; TODO: Fix pre-assigned variable values.
(dw (lit 65530 sp0 !))
(dw (lit return-stack-start r0 !))
(dw (lit string-input-device lit var-current-input-device !))
(dw (quit))
(dw (poweroff))
))
(define forth-asm
`(,@forth-shared-header
,@forth-semantics-words
,@forth-control-words
,@forth-text-words
,@forth-logic-words
,@forth-stack-words
,@forth-math-words
,@forth-memory-words
,@forth-graphics-words
,@forth-char-lookup-table
,@forth-misc-words
,@forth-vars
,@forth-meta-words
,@forth-input-devices
,@forth-main
(label last-forth-word)
;; This needs to be the last word to be defined!
,@(defword "STAR" 0 'star)
(dw (lit 42 emit exit))
))
| false |
3432170887db782c538395323a81d0b95c09b73e | defeada37d39bca09ef76f66f38683754c0a6aa0 | /mscorlib/system/runtime/remoting/messaging/remoting-surrogate-selector.sls | ac9fcd8a42ef6bd3219cb6f6911ac8c1377159cd | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 2,193 | sls | remoting-surrogate-selector.sls | (library (system runtime remoting messaging remoting-surrogate-selector)
(export new
is?
remoting-surrogate-selector?
use-soap-format
get-root-object
get-next-selector
set-root-object
get-surrogate
chain-selector
filter-get
filter-set!
filter-update!)
(import (ironscheme-clr-port))
(define-syntax new
(lambda (e)
(syntax-case e ()
((_ a ...)
#'(clr-new
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
a
...)))))
(define (is? a)
(clr-is
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
a))
(define (remoting-surrogate-selector? a)
(clr-is
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
a))
(define-method-port
use-soap-format
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
UseSoapFormat
(System.Void))
(define-method-port
get-root-object
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
GetRootObject
(System.Object))
(define-method-port
get-next-selector
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
GetNextSelector
(System.Runtime.Serialization.ISurrogateSelector))
(define-method-port
set-root-object
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
SetRootObject
(System.Void System.Object))
(define-method-port
get-surrogate
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
GetSurrogate
(System.Runtime.Serialization.ISerializationSurrogate
System.Type
System.Runtime.Serialization.StreamingContext
System.Runtime.Serialization.ISurrogateSelector&))
(define-method-port
chain-selector
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
ChainSelector
(System.Void System.Runtime.Serialization.ISurrogateSelector))
(define-field-port
filter-get
filter-set!
filter-update!
(property:)
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
Filter
System.Runtime.Remoting.Messaging.MessageSurrogateFilter))
| true |
61ae4608b7dc07d6373fc3c9d25e86f38e086438 | df0ba5a0dea3929f29358805fe8dcf4f97d89969 | /exercises/software-engineering/06/dimensions.scm | 2f0bba2b99d10204de17d92eb8be8c01aaeeba40 | [
"MIT"
]
| permissive | triffon/fp-2019-20 | 1c397e4f0bf521bf5397f465bd1cc532011e8cf1 | a74dcde683538be031186cf18367993e70dc1a1c | refs/heads/master | 2021-12-15T00:32:28.583751 | 2021-12-03T13:57:04 | 2021-12-03T13:57:04 | 210,043,805 | 14 | 31 | MIT | 2019-12-23T23:39:09 | 2019-09-21T19:41:41 | Racket | UTF-8 | Scheme | false | false | 343 | scm | dimensions.scm | (define (dimensions matrix)
(cons (length matrix)
(length (car matrix))))
(load "../testing/check.scm")
(check (dimensions '((1))) => '(1 . 1))
(check (dimensions '((1) (2))) => '(2 . 1))
(check (dimensions '((1 2 3) (4 5 6))) => '(2 . 3))
(check (dimensions '((1 2 3) (4 5 6) (7 8 9))) => '(3 . 3))
(check-report)
(check-reset!)
| false |
321b259c682566495e33a1f01d2f6bfcefaaa424 | de82217869618b0a975e86918184ecfddf701172 | /reference/records/example.scm | dd6745a0de756e6859317edc937a8275e4dd2734 | []
| no_license | schemedoc/r6rs | 6b4ef7fd87d8883d6c4bcc422b38b37f588e20f7 | 0009085469e47df44068873f834a0d0282648750 | refs/heads/master | 2021-06-18T17:44:50.149253 | 2020-01-04T10:50:50 | 2020-01-04T10:50:50 | 178,081,881 | 5 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 10,323 | scm | example.scm |
(import (rnrs)
(rnrs records procedural)
(rnrs records inspection)
(rnrs records syntactic))
(define *correct-count* 0)
(define *failed-count* 0)
(define-syntax check
(syntax-rules (=>)
((check ec => desired-result)
(check ec => (equal?) desired-result))
((check ec => (equal?) desired-result)
(begin
(newline)
(write (quote ec))
(newline)
(let ((actual-result ec))
(display " => ")
(write actual-result)
(if (equal? actual-result desired-result)
(begin
(display " ; correct")
(set! *correct-count* (+ *correct-count* 1)) )
(begin
(display " ; *** failed ***, desired result:")
(newline)
(display " => ")
(write desired-result)
(set! *failed-count* (+ *failed-count* 1)) ))
(newline) )))))
(define-syntax assertion-check
(syntax-rules ()
[(assertion-check expr)
;; We'd like to check errors portably, but the current reference
;; implemenations don't quite have enough in place.
(quote
(call/cc (lambda (esc)
(newline)
(display 'expr)
(newline)
(with-exception-handler
(lambda (cdn)
(display " ; correct: ")
(display cdn)
(newline)
(set! *correct-count* (+ *correct-count* 1))
(esc #t))
(lambda ()
expr
(display " ; *** failed ***, should have been an exception")
(newline)
(set! *failed-count* (+ *failed-count* 1)))))))]))
; procedural layer
(define :empty
(make-record-type-descriptor
'empty #f
#f #f #f
'()))
(assertion-check (make-record-constructor-descriptor 7 #f #f))
(assertion-check (make-record-constructor-descriptor :empty 7 #f))
(assertion-check (make-record-constructor-descriptor :empty #f 7))
(define make-empty-desc (make-record-constructor-descriptor :empty #f #f))
(define make-empty (record-constructor make-empty-desc))
(define empty? (record-predicate :empty))
(check (record-type-descriptor? :empty) => #t)
(check (record-type-descriptor? (make-empty)) => #f)
(assertion-check (record-accessor :empty 0))
(assertion-check (record-mutator :empty 0))
(assertion-check (record-accessor 0 0))
(assertion-check (record-mutator 0 0))
(check (empty? (make-empty)) => #t)
(define :still-empty
(make-record-type-descriptor
'still-empty :empty
#f #f #f
'()))
(define make-still-empty
(record-constructor (make-record-constructor-descriptor :still-empty make-empty-desc #f)))
(define still-empty? (record-predicate :still-empty))
(check (still-empty? (make-still-empty)) => #t)
(check (empty? (make-still-empty)) => #t)
(check (still-empty? (make-empty)) => #f)
(assertion-check (make-record-constructor-descriptor :still-empty #f (lambda (p) '...)))
(assertion-check (make-record-constructor-descriptor :still-empty
(make-record-constructor-descriptor :empty #f (lambda (p) '...))
#f))
(assertion-check (record-constructor 5))
(define make-fancy-empty
(record-constructor
(make-record-constructor-descriptor :still-empty
(make-record-constructor-descriptor :empty #f (lambda (p) (lambda () (p))))
(lambda (p) (lambda () ((p)))))))
(check (empty? (make-fancy-empty)) => #t)
(define :point
(make-record-type-descriptor
'point #f
#f #f #f
'((mutable x) (mutable y))))
(define make-point
(record-constructor (make-record-constructor-descriptor :point #f #f)))
(assertion-check (make-record-constructor-descriptor :point make-empty-desc #f))
(define point? (record-predicate :point))
(define point-x (record-accessor :point 0))
(define point-y (record-accessor :point 1))
(define point-x-set! (record-mutator :point 0))
(define point-y-set! (record-mutator :point 1))
(define p1 (make-point 1 2))
(check (point? p1) => #t)
(check (point? (make-empty)) => #f)
(check (point-x p1) => 1)
(check (point-y p1) => 2)
(point-x-set! p1 5)
(check (point-x p1) => 5)
(check (record-type-name :point) => 'point)
(check (record-type-parent :point) => #f)
(check (record-type-sealed? :point) => #f)
(check (record-type-opaque? :point) => #f)
(check (record-type-uid :point) => #f)
(check (record-type-generative? :point) => #t)
(check (record-field-mutable? :point 0) => #t)
(check (record-field-mutable? :point 1) => #t)
(check (record? :point) => #f)
(check (record? p1) => #t)
(check (record-rtd p1) => :point)
(check (record-type-field-names :point) => '(x y))
(define :point2
(make-record-type-descriptor
'point2 :point
#f #f #f '((immutable x) (mutable y))))
(define make-point2
(record-constructor (make-record-constructor-descriptor :point2 #f #f)))
(define point2? (record-predicate :point2))
(define point2-xx (record-accessor :point2 0))
(define point2-yy (record-accessor :point2 1))
(define point2-yy-set! (record-mutator :point2 1))
(assertion-check (record-mutator :point2 0))
(define p2 (make-point2 1 2 3 4))
(check (point? p2) => #t)
(check (point-x p2) => 1)
(check (point-y p2) => 2)
(check (point2-xx p2) => 3)
(check (point2-yy p2) => 4)
(point2-yy-set! p2 8)
(check (point2-yy p2) => 8)
(check (record-type-name :point2) => 'point2)
(check (record-type-parent :point2) => :point)
(check (record-type-sealed? :point2) => #f)
(check (record-type-opaque? :point2) => #f)
(check (record-type-uid :point2) => #f)
(check (record-type-generative? :point2) => #t)
(check (record-field-mutable? :point2 0) => #f)
(check (record-field-mutable? :point2 1) => #t)
(check (record? p2) => #t)
(check (record-rtd p2) => :point2)
(define make-fancy-point2
(record-constructor
(make-record-constructor-descriptor :point2
(make-record-constructor-descriptor :point #f (lambda (p)
(lambda (x y)
(p (+ 1 x) (+ 1 y)))))
(lambda (p)
(lambda (x y x2 y2)
((p (+ 2 x) (+ 2 y)) (+ 2 x2) (+ 2 y2)))))))
(define fp2 (make-fancy-point2 1 2 3 4))
(check (point-x fp2) => 4)
(check (point-y fp2) => 5)
(check (point2-xx fp2) => 5)
(check (point2-yy fp2) => 6)
(define :point75
(make-record-type-descriptor
'point #f
'75-4893d957-e00b-11d9-817f-00111175eb9e #f #f
'((mutable x) (mutable y))))
(check (record-type-generative? :point75) => #f)
(check (record-type-uid :point75)
=> '75-4893d957-e00b-11d9-817f-00111175eb9e)
(define :point75-again
(make-record-type-descriptor
'point #f
'75-4893d957-e00b-11d9-817f-00111175eb9e #f #f
'((mutable x) (mutable y))))
(check (record-type-uid :point75-again)
=> '75-4893d957-e00b-11d9-817f-00111175eb9e)
(check (eqv? :point75 :point75-again) => #t)
(define :opaque-point
(make-record-type-descriptor
'opaque-point #f
#f #f #t '((mutable x) (mutable y))))
(check (record-type-opaque? :opaque-point) => #t)
(define make-opaque-point
(record-constructor (make-record-constructor-descriptor :opaque-point #f #f)))
(define opaque-point? (record-predicate :opaque-point))
(define opaque-point-x (record-accessor :opaque-point 0))
(check (opaque-point? (make-opaque-point 1 2)) => #t)
(check (opaque-point-x (make-opaque-point 1 2)) => 1)
; explicit naming
(define-record-type (point3 make-point3 point3?)
(fields (immutable x point3-x)
(mutable y point3-y set-point3-y!))
(nongenerative point3-4893d957-e00b-11d9-817f-00111175eb9e))
(define-record-type (cpoint make-cpoint cpoint?)
(parent point3)
(protocol
(lambda (p)
(lambda (x y c)
((p x y) (color->rgb c)))))
(fields (mutable rgb cpoint-rgb cpoint-rgb-set!)))
(define (color->rgb c)
(cons 'rgb c))
(define p3-1 (make-point3 1 2))
(define p3-2 (make-cpoint 3 4 'red))
(check (point3? p3-1) => #t)
(check (point3? p3-2) => #t)
(check (point3? (vector)) => #f)
(check (point3? (cons 'a 'b)) => #f)
(check (cpoint? p3-1) => #f)
(check (cpoint? p3-2) => #t)
(check (point3-x p3-1) => 1)
(check (point3-y p3-1) => 2)
(check (point3-x p3-2) => 3)
(check (point3-y p3-2) => 4)
(check (cpoint-rgb p3-2) => '(rgb . red))
(set-point3-y! p3-1 17)
(check (point3-y p3-1) => 17)
(check (record-rtd p3-1) => (record-type-descriptor point3))
(define-record-type (ex1 make-ex1 ex1?)
(protocol (lambda (p) (lambda a (p a))))
(fields
(immutable f ex1-f)))
(define ex1-i1 (make-ex1 1 2 3))
(check (ex1-f ex1-i1) => '(1 2 3))
(define-record-type (ex2 make-ex2 ex2?)
(protocol (lambda (p) (lambda (a . b) (p a b))))
(fields
(immutable a ex2-a)
(immutable b ex2-b)))
(define ex2-i1 (make-ex2 1 2 3))
(check (ex2-a ex2-i1) => 1)
(check (ex2-b ex2-i1) => '(2 3))
(check (point3? ((record-constructor (record-constructor-descriptor point3)) 1 2)) => #t)
; implicit naming
(define *ex3-instance* #f)
(define-record-type ex3
(parent cpoint)
(protocol
(lambda (p)
(lambda (x y t)
(let ((r ((p x y 'red) t)))
(set! *ex3-instance* r)
r))))
(fields
(mutable thickness))
(sealed #t) (opaque #t))
(define ex3-i1 (make-ex3 1 2 17))
(check (ex3? ex3-i1) => #t)
(check (cpoint-rgb ex3-i1) => '(rgb . red))
(check (ex3-thickness ex3-i1) => 17)
(ex3-thickness-set! ex3-i1 18)
(check (ex3-thickness ex3-i1) => 18)
(check *ex3-instance* => (eq?) ex3-i1)
(check (record? ex3-i1) => #f)
; very fancy constructor
(define-record-type (unit-vector make-unit-vector unit-vector?)
(protocol
(lambda (p)
(lambda (x y z)
(let ((length (+ (* x x) (* y y) (* z z))))
(p (/ x length)
(/ y length)
(/ z length))))))
(fields (immutable x unit-vector-x)
(immutable y unit-vector-y)
(immutable z unit-vector-z)))
(newline)
(display "correct tests: ")
(display *correct-count*)
(newline)
(display "failed tests: ")
(display *failed-count*)
(newline)
| true |
b1d03086fcde1df24cd0e1421b7796e0fdac1c40 | dff2c294370bb448c874da42b332357c98f14a61 | /models.scm | 8a14bcdebfa82d72e19f150d1be51796088b10df | [
"BSD-2-Clause"
]
| permissive | kdltr/hypergiant | caf14bbeac38b9d5b5713a19982b226082f3daad | ffaf76d378cc1d9911ad4de41f1d7219e878371e | refs/heads/master | 2021-01-01T01:43:09.756174 | 2019-04-04T12:38:25 | 2019-04-04T12:38:25 | 239,126,881 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 3,859 | scm | models.scm | ;;;; models.scm
;;;; IQM model loading and support for skeletal animations
(module hypergiant-models
(animated-model?
add-new-animated-model
animate-model-frames
update-animated-model!)
(import scheme (chicken base) (chicken bitwise) (chicken foreign) (chicken format) (chicken gc) (chicken keyword) (chicken memory) (chicken module)
hypergiant-sprites hypergiant-render-pipeline
(prefix hyperscene scene:)
(prefix gl-utils gl:) (except bitstring bitstring->vector) gl-math
srfi-1 srfi-4 srfi-99 miscmacros)
(define-record-type (animated-model animated-sprite)
%make-animated-model #t
(current-frame))
(define (add-new-animated-model parent pipeline . args)
(define (get-arg arg)
(get-keyword arg args
(lambda () (error 'add-new-animated-model
(sprintf "Missing ~s keyword" arg)
args))))
(let* ((mesh (get-arg mesh:))
(base-animation (get-arg base-animation:))
(n-joints (vector-length (cdr (animation-frames base-animation))))
(current-frame (make-matrix-array n-joints))
(node (apply add-node parent pipeline
bone-matrices: current-frame
args))
(animated-model (%make-animated-model node #f #f base-animation
0 0.0
current-frame)))
(animate-model-frames base-animation current-frame 0 0 0)
(set-finalizer! animated-model
(lambda (m)
(free (animated-model-current-frame m))))))
(define m (allocate (* 16 4)))
(define t1 (allocate (* 16 4)))
(define t2 (allocate (* 16 4)))
(define (animate-model-frames animation frame-matrices
frame next-frame frame-offset)
(let* ((frames (animation-frames animation))
(parents (cdr frames))
(frames (car frames))
(n-joints (vector-length parents)))
(dotimes (i n-joints)
(let* ((frame (nth-matrix frames (+ (* n-joints frame)
i)))
(next (nth-matrix frames (+ (* n-joints next-frame)
i)))
(parent (vector-ref parents i))
(current-frame (nth-matrix frame-matrices i)))
(m*s frame (- 1 frame-offset) t1)
(m*s next frame-offset t2)
(m+ t1 t2 m)
(if (>= parent 0)
(m* (nth-matrix frame-matrices parent) m current-frame)
(copy-mat4 m current-frame))))))
(define (update-animated-model! model delta)
(let* ((animation (current-animation model))
(momentary? (animated-sprite-animation model))
(frame-rate (animation-frame-rate animation))
(n-frames (animation-n-frames animation))
(frame (animated-sprite-frame model))
(timer (+ (animated-sprite-timer model) delta)))
(when (> timer frame-rate)
(while (> timer frame-rate)
(set! timer (- timer frame-rate))
(if (and momentary? (= (add1 frame) n-frames))
(begin
(animated-sprite-animation-set! model #f)
(animated-sprite-frame-set! model 0))
(animated-sprite-frame-set! model (modulo (add1 frame)
n-frames))))
(let* ((animation (current-animation model))
(current-frames (animated-model-current-frame model))
(frame (animated-sprite-frame model))
(next-frame (modulo (add1 frame) n-frames))
(frame-offset (/ timer frame-rate)))
(animate-model-frames animation current-frames
frame next-frame frame-offset)))
(animated-sprite-timer-set! model timer)))
(include "iqm")
) ; end module hypergiant-models
| false |
a3028b726de5863d5c81268473e9c3249877d6ef | defeada37d39bca09ef76f66f38683754c0a6aa0 | /System.Core/system/security/cryptography/sha256-crypto-service-provider.sls | 2827b33f4b08933dd779afbea6bd9008a3c62ee2 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 716 | sls | sha256-crypto-service-provider.sls | (library (system security cryptography sha256-crypto-service-provider)
(export new is? sha256-crypto-service-provider? initialize)
(import (ironscheme-clr-port))
(define-syntax new
(lambda (e)
(syntax-case e ()
((_ a ...)
#'(clr-new
System.Security.Cryptography.SHA256CryptoServiceProvider
a
...)))))
(define (is? a)
(clr-is System.Security.Cryptography.SHA256CryptoServiceProvider a))
(define (sha256-crypto-service-provider? a)
(clr-is System.Security.Cryptography.SHA256CryptoServiceProvider a))
(define-method-port
initialize
System.Security.Cryptography.SHA256CryptoServiceProvider
Initialize
(System.Void)))
| true |
68faddca92c2c9dee4bba439688a826d74951039 | abc7bd420c9cc4dba4512b382baad54ba4d07aa8 | /src/ws/compiler_components/annotations.sls | a8b434fb5cf0b389d4df3e2a2a4688ca28d7094e | [
"BSD-3-Clause"
]
| permissive | rrnewton/WaveScript | 2f008f76bf63707761b9f7c95a68bd3e6b9c32ca | 1c9eff60970aefd2177d53723383b533ce370a6e | refs/heads/master | 2021-01-19T05:53:23.252626 | 2014-10-08T15:00:41 | 2014-10-08T15:00:41 | 1,297,872 | 10 | 2 | null | null | null | null | UTF-8 | Scheme | false | false | 3,538 | sls | annotations.sls | #!r6rs
;;;; Tools for manipulating annotations
;;;; .author Michael Craig
(library (ws compiler_components annotations)
(export annotq
annot-keys
annotation-list?
merge-annotations)
(import (except (rnrs (6)) error) (ws common))
;;
;; An individual annotation is defined as an association -- an element in a Scheme association
;; list -- whose key (car) is a symbol. An annotation list is an association list tagged at
;; the front with the symbol: annotations. The value (cdr) of an association is expected to
;; never be #f.
;;
;;
;;
;;
(define annotq
(case-lambda
[(annot-name annot-list) (annotq annot-name annot-list #f)]
[(annot-name annot-list default)
;(ASSERT (and (pair? annot-list) (eq? 'annotations (car annot-list))))
(let ((annot-pair (assoc annot-name annot-list)))
(if annot-pair
(cdr annot-pair)
default))]))
;;
;;
;;
(define (annot-keys annot-list)
;(ASSERT (pair? annot-list))
;(ASSERT (eq? (car annot-list) 'annotations))
(DEBUGASSERT annotation-list? `(annotations . ,annot-list))
;(map car (cdr annot-list))
(map car annot-list)
)
(define (annotation-list? ls)
(match ls
[(annotations (,left* . ,right*) ...)
(andmap symbol? left*)]
[,_ #f]))
;;
;; two annotation lists al-left and al-right are merged as follows:
;; keys not in both lists are included in the merge list;
;; keys in both lists are merged based on the given hints;
;; hints are structured as follows:
;; FIXME: explain this for real
;; - left
;; - left-only: never take the right
;; - right
;; - right-only: never take the left
;; - (manual #<proc>)
;;
(define merge-annotations
(case-lambda
[(al-left al-right) (merge-annotations al-left al-right '())]
[(al-left al-right merge-hints)
(ASSERT annotation-list? `(annotations . ,al-left))
(ASSERT annotation-list? `(annotations . ,al-right))
(let* ([keys-left (annot-keys al-left)]
[keys-right (annot-keys al-right)]
;; Could make this venn diagram in one call:
[keys-both (intersection keys-left keys-right)]
[keys-left-only (difference keys-left keys-right)]
[keys-right-only (difference keys-right keys-left)])
;; take all from keys-left-only *unless* they are hinted as right-only
(append
(filter id
(map (lambda (k)
(match (cdr (or (assoc k merge-hints) '(_ . #f)))
[right-only #f]
[,oth `(,k . ,(annotq k al-left))]))
keys-left-only))
;; for keys in both, apply the hint
(map (lambda (k)
(match (cdr (or (assoc k merge-hints) '(_ . #f)))
[,l (guard (or (eq? l 'left) (eq? l 'left-only)))
`(,k . ,(annotq k al-left))]
[,r (guard (or (eq? r 'right) (eq? r 'right-only)))
`(,k . ,(annotq k al-right))]
[(manual ,f)
`(,k . ,(f (annotq k al-left) (annotq k al-right)))]
[,oth
;; default merging behavior: take the left
`(,k . ,(annotq k al-left))]))
keys-both)
;; take all from keys-right-only *unless* they are hinted as left-only
(filter id
(map (lambda (k)
(match (cdr (or (assoc k merge-hints) '(_ . #f)))
[left-only #f]
[,oth `(,k . ,(annotq k al-right))]))
keys-right-only))
))]))
;;
;;
;;
) ;; End module
| false |
49ddc6d564a3afabc6a171ea65c0ae0f7a22c662 | 9f466767730a64747f02ee934138fcc88c93e1fe | /utilities/files.scm | e1cd1fde7ae5fd3cc84362b35f5f2e1b69654228 | []
| no_license | lemvik/scheme-playground | 81258bd3b5c847e019dfc6088ff1d806fe5dbc74 | d32ab822857ecebd82ee28cd97bbbc07b1b56e3f | refs/heads/master | 2021-01-25T04:58:15.536631 | 2017-06-16T13:32:13 | 2017-06-16T13:32:13 | 93,491,658 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,182 | scm | files.scm | ; -*- geiser-scheme-implementation: chez -*-
;;;;
;;;; File-related utilities.
;;;;
(library (utilities files)
(export directory-graph)
(import (chezscheme)
(utilities base))
;; Constructs a directory graph for given directory.
(define (directory-graph path)
(let ([roots (make-hashtable string-hash string=?)]
[separator (make-string 1 (directory-separator))])
(define (full-path p f)
(string-append p separator f))
(define (traverse p)
(when (file-directory? p)
(let ([childs (map (curry full-path p) (directory-list p))])
(for-each (lambda (c)
(hashtable-update! roots p (lambda (l)
(cons c l)) (list))
(traverse c))
childs))))
(assert (file-directory? path))
(traverse path)
(let-values ([(keys values) (hashtable-entries roots)])
(vector->list (vector-map (lambda (k v)
(cons k (list v)))
keys
values))))))
| false |
6ef80c82e07177e1b7fdad22c4b559cc9a5dde30 | b2dc5cb7275421d81152cc0df41f09f7b1a0f742 | /examples/proxy.scm | 955867f88468917104777cc11a25bf45f83b0ad8 | []
| no_license | ktakashi/sagittarius-paella | d330d6d0b7b19e395687d469e5fe6b81c6014563 | 9f4e6ee17d44cdd729d7f2ceccf99aac9d98da4c | refs/heads/master | 2021-01-19T21:09:36.784683 | 2019-04-05T13:55:36 | 2019-04-05T13:55:36 | 37,460,489 | 7 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 2,617 | scm | proxy.scm | #!read-macro=sagittarius/regex
#!read-macro=sagittarius/bv-string
#|
Proxy server. This is not *yet* part of Paella.
The following script requires 0.6.7 because of the bug of socket-select.
|#
(add-load-path "../lib")
(import (rnrs)
(net server)
(rfc http)
(sagittarius control)
(sagittarius regex)
(sagittarius socket)
(paella))
(define (connect-handler req ignore)
(define uri (http-request-uri req))
(define-values (server port)
(cond ((#/:(\d+)$/ uri) => (lambda (m) (values (m 'before) (m 1))))
(else (values uri "80"))))
(define client-socket (http-request-socket req))
(define bufsiz 4096)
(define buf0 (make-bytevector bufsiz))
(define buf1 (make-bytevector bufsiz))
(define count 2)
(define (pipe buf in out)
;; set the socket non-blocking
(socket-nonblocking! in)
(let rec ()
;; read until it returns -1
;; NB: socket-recv! is not documented
(let1 r (socket-recv! in buf 0 bufsiz)
(cond ((zero? r) ;; nothing to read
(set! count (- count 1))
(socket-blocking! in)
(socket-shutdown out SHUT_WR)
#t)
;; not ready yet, so go back
((negative? r) (socket-blocking! in) #f)
((= r bufsiz)
(socket-send out buf)
(rec))
(else
(socket-send out (bytevector-copy buf 0 r))
(rec))))))
(define (tunnel-loop csock rsock)
(define fdset (make-fdset))
(fdset-set! fdset csock #t)
(fdset-set! fdset rsock #t)
(do () ((= count 0))
(let-values (((n r w e) (socket-select fdset #f #f 1)))
(dolist (sock (collect-sockets r))
(if (eq? sock csock)
(when (pipe buf0 sock rsock) (fdset-set! fdset sock #f))
(when (pipe buf1 sock csock) (fdset-set! fdset sock #f)))))))
(let1 remote-socket (make-client-socket server port)
(unwind-protect
(begin
(socket-send client-socket #*"HTTP/1.1 200 OK\r\n\r\n")
(tunnel-loop client-socket remote-socket))
(socket-close remote-socket))
;; return #f status and 'none mime type to let paella know
;; that it doesn't have to do anything after this.
(values #f 'none #f)))
;; Add CONNECT method
;; use '*' so that the handler can handle everything.
(define http-dispatcher
(make-http-server-dispatcher
(CONNECT * connect-handler)))
(define config (make-http-server-config :max-thread 5))
(define server
(make-simple-server "1080" (http-server-handler http-dispatcher)
:config config
:exception-handler print))
(server-start! server)
#|
to see how it goes:
$ curl -L -v -p -x localhost https://google.com
|#
| false |
c0ce25822d63cc2338ef0b7d72b062eb9baf6c15 | b389e2ae98c6a980ac889326e104fd366286c193 | /test/testfiles/bool6.scm | 715d27ebab519f6b966d8408a61261d7c049d552 | []
| no_license | adamrk/scheme2luac | 1a0fbba81b4c2c0e06808bf93137cf5e0f1e9db7 | 5e64008b57a574c0afce72513363a176c7dcf299 | refs/heads/master | 2020-05-24T10:51:48.673627 | 2017-04-21T13:55:49 | 2017-04-21T13:55:49 | 84,849,528 | 22 | 3 | null | null | null | null | UTF-8 | Scheme | false | false | 12 | scm | bool6.scm | (if 100 0 1) | false |
d2b4970e10d5d4ffef47ec9beecb8c808742b9c9 | 763ce7166523c52b12d92ad48150e6e29dae22f3 | /sound.scm | 4dff487a2b6ed37f5579f793d9738a5dc026eb73 | []
| no_license | seandepagnier/cruisingplot | 3cdbe87789267de0a1f8ca8354215167b334f51b | d3d83e7372e2c5ce1a8e8071286e30c2028088cf | refs/heads/master | 2020-03-29T18:19:13.647065 | 2013-11-13T03:14:11 | 2013-11-13T03:14:11 | 5,801,818 | 6 | 2 | null | null | null | null | UTF-8 | Scheme | false | false | 1,399 | scm | sound.scm | ;; Copyright (C) 2010 Sean D'Epagnier <[email protected]>
;;
;; This Program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public
;; License as published by the Free Software Foundation; either
;; version 3 of the License, or (at your option) any later version.
(declare (unit sound))
; Support various sound drivers
(define (sound-play-wav-file filename)
(warning "No sound driver loaded, using alsaplayer... ")
(system (string-append "mplayer " filename)))
(define (sound-init driver)
(case driver
((openal)
; (use openal)
(let ((device (alc:OpenDevice #f))
(context (alc:CreateContext device #f)))
(alc:MakeContextCurrent context)
(set! sound-play-wav-file
(lambda (filename)
(let* ((buf (openal:load-buffer "example.wav"))
(source (openal:make-source buf)))
(al:Sourcei source al:LOOPING 1)
(al:SourcePlay source))))
(push-exit-handler (lambda ()
(alc:MakeContextCurrent #f)
(alc:DestroyContext context)
(alc:CloseDevice device)))))
((qt)
; (use qt)
(set! sound-play-wav-file
(lambda (filename)
(let ((qsound (qt:sound filename)))
(qt:play filename)))))
))
| false |
119fb708446541d0139c132c91268e5c6a83e660 | ac2a3544b88444eabf12b68a9bce08941cd62581 | /lib/_thread#.scm | 3125d2204332f2da5fa9747dab4448e437e6a28b | [
"Apache-2.0",
"LGPL-2.1-only"
]
| permissive | tomelam/gambit | 2fd664cf6ea68859d4549fdda62d31a25b2d6c6f | d60fdeb136b2ed89b75da5bfa8011aa334b29020 | refs/heads/master | 2020-11-27T06:39:26.718179 | 2019-12-15T16:56:31 | 2019-12-15T16:56:31 | 229,341,552 | 1 | 0 | Apache-2.0 | 2019-12-20T21:52:26 | 2019-12-20T21:52:26 | null | UTF-8 | Scheme | false | false | 135,462 | scm | _thread#.scm | ;;;============================================================================
;;; File: "_thread#.scm"
;;; Copyright (c) 1994-2019 by Marc Feeley, All Rights Reserved.
;;;============================================================================
(cond-expand (enable-smp
;;;============================================================================
;;; For SMP thread scheduler.
;;; Representation of exceptions.
(define-library-type-of-exception deadlock-exception
id: 54294cd7-1c33-40e1-940e-7400e1126a5a
constructor: #f
opaque:
)
(define-library-type-of-exception abandoned-mutex-exception
id: e0e435ae-0097-47c9-8d4a-9d761979522c
constructor: #f
opaque:
)
(define-library-type-of-exception scheduler-exception
id: 0d164889-74b4-48ca-b291-f5ec9e0499fe
constructor: #f
opaque:
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception noncontinuable-exception
id: 1bcc14ff-4be5-4573-a250-729b773bdd50
constructor: #f
opaque:
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception initialized-thread-exception
id: e38351db-bef7-4c30-b610-b9b271e99ec3
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception uninitialized-thread-exception
id: 71831161-39c1-4a10-bb79-04342e1981c3
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception inactive-thread-exception
id: 339af4ff-3d44-4bec-a90b-d981fd13834d
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception started-thread-exception
id: ed07bce3-b882-4737-ac5e-3035b7783b8a
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception terminated-thread-exception
id: 85f41657-8a51-4690-abef-d76dc37f4465
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception uncaught-exception
id: 7022e42c-4ecb-4476-be40-3ca2d45903a7
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception join-timeout-exception
id: 7af7ca4a-ecca-445f-a270-de9d45639feb
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception mailbox-receive-timeout-exception
id: 5f13e8c4-2c68-4eb5-b24d-249a9356c918
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception rpc-remote-error-exception
id: 6469e5eb-3117-4c29-89df-c348479dac93
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
(message unprintable: read-only: no-functional-setter:)
)
;;;----------------------------------------------------------------------------
;;; Define type checking macros.
(define-check-type continuation 'continuation
##continuation?)
(define-check-type time (macro-type-time)
macro-time?)
(define-check-type absrel-time 'absrel-time
macro-absrel-time?)
(define-check-type absrel-time-or-false 'absrel-time-or-false
macro-absrel-time-or-false?)
(define-check-type vm 'vm
macro-vm?)
(define-check-type processor 'processor
macro-processor?)
(define-check-type thread 'thread
macro-thread?)
(define-check-type mutex (macro-type-mutex)
macro-mutex?)
(define-check-type condvar (macro-type-condvar)
macro-condvar?)
(define-check-type tgroup (macro-type-tgroup)
macro-tgroup?)
(##define-macro (macro-initialized-thread? thread)
`(macro-thread-cont ,thread))
(##define-macro (macro-started-thread? thread)
`(##not (##eq? 'not-started (macro-thread-exception? ,thread))))
(##define-macro (macro-terminated-thread-given-initialized? thread)
`(##not (macro-thread-end-condvar ,thread)))
(##define-macro (macro-check-initialized-thread thread form expr)
`(if (##not (macro-initialized-thread? ,thread))
(begin
(macro-unlock-thread! ,thread)
(##raise-uninitialized-thread-exception ,@form))
,expr))
(##define-macro (macro-check-not-initialized-thread thread form expr)
`(if (macro-initialized-thread? ,thread)
(begin
(macro-unlock-thread! ,thread)
(##raise-initialized-thread-exception ,@form))
,expr))
(##define-macro (macro-check-not-started-thread thread form expr)
`(if (macro-started-thread? ,thread)
(begin
(macro-unlock-thread! ,thread)
(##raise-started-thread-exception ,@form))
,expr))
;;;----------------------------------------------------------------------------
;;; Priority queue generator macro.
;; The red-black tree implementation used here is inspired from the
;; code in the MIT-Scheme runtime (file "rbtree.scm"). That code is
;; based on the algorithms presented in the book "Introduction to
;; Algorithms" by Cormen, Leiserson, and Rivest.
;;
;; The main differences with the MIT-Scheme code are:
;;
;; 1) Nil pointers are replaced by a special sentinel that is also
;; the cell that contains a pointer (in the "left child" field)
;; to the root of the red-black tree. The "right child" field of
;; the sentinel is never accessed. The sentinel is black.
;;
;; 2) The color field contains #f when the node is red and a
;; reference to the sentinel when the node is black. It is thus
;; possible to find the sentinel from any node in constant time
;; (if the node is black extract the color field, otherwise
;; extract the color field of the parent, which must be black).
;;
;; 3) One field of the sentinel always points to the leftmost node of
;; the red-black tree. This allows constant time access to the
;; "minimum" node, which is a frequent operation of priority queues.
;;
;; 4) Several cases are handled specially (see the code for details).
;;
;; 5) Macros are used to generate code specialized for each case of
;; symmetrical operations (e.g. left and right rotation).
;;
;; 6) Nodes are assumed to be preallocated. Inserting and deleting a
;; node from a red-black tree does not perform any heap
;; allocation. Moreover, all algorithms consume a constant amount
;; of stack space.
(##define-macro (define-rbtree
implementer
rbtree-init!
node->rbtree
insert!
remove!
reposition!
singleton?
color
color-set!
parent
parent-set!
left
left-set!
right
right-set!
before?
length
length-set!
leftmost
leftmost-set!
rightmost
rightmost-set!
container
container-set!)
(define (black rbtree)
rbtree)
(define (black? rbtree)
`(lambda (node)
(,color node)))
(define (blacken! rbtree)
`(lambda (node)
(,color-set! node ,(black rbtree))))
(define (red)
#f)
(define (red?)
`(lambda (node)
(##not (,color node))))
(define (reden!)
`(lambda (node)
(,color-set! node ,(red))))
(define (copy-color!)
`(lambda (node1 node2)
(,color-set! node1 (,color node2))))
(define (exchange-color!)
`(lambda (node1 node2)
(let ((color-node1 (,color node1)))
(,color-set! node1 (,color node2))
(,color-set! node2 color-node1))))
(define (update-parent!)
`(lambda (parent-node old-node new-node)
(if (##eq? old-node (,left parent-node))
(,left-set! parent-node new-node)
(,right-set! parent-node new-node))))
(define (rotate! side1 side1-set! side2 side2-set!)
`(lambda (node)
(let ((side2-node (,side2 node)))
(let ((side1-side2-node (,side1 side2-node)))
(,side2-set! node side1-side2-node)
(,parent-set! side1-side2-node node))
(let ((parent-node (,parent node)))
(,side1-set! side2-node node)
(,parent-set! node side2-node)
(,parent-set! side2-node parent-node)
(,(update-parent!) parent-node node side2-node)))))
(define (rotate-left!)
(rotate! left left-set! right right-set!))
(define (rotate-right!)
(rotate! right right-set! left left-set!))
(define (neighbor side other-side)
`(lambda (node rbtree)
(let ((side-node (,side node)))
(if (##eq? side-node rbtree)
(let ((parent-node (,parent node)))
(if (or (##eq? parent-node rbtree)
(##eq? node (,side parent-node)))
rbtree
parent-node))
(let loop ((x side-node))
(let ((other-side-x (,other-side x)))
(if (##eq? other-side-x rbtree)
x
(loop other-side-x))))))))
(define (def-insert!)
`(define-prim (,insert! rbtree node)
(##declare (not interrupts-enabled))
(define (fixup!)
(let loop ((x node))
(let ((parent-x (,parent x)))
(if (,(red?) parent-x)
(let ((parent-parent-x (,parent parent-x)))
(##define-macro (body
side1
rotate-side1!
side2
rotate-side2!)
`(let ((side2-parent-parent-x (,side2 parent-parent-x)))
(if (,',(red?) side2-parent-parent-x)
(begin
(,',(blacken! 'rbtree) parent-x)
(,',(blacken! 'rbtree) side2-parent-parent-x)
(,',(reden!) parent-parent-x)
(loop parent-parent-x))
(let ((y
(if (##eq? x (,side2 parent-x))
(begin
(,rotate-side1! parent-x)
(,',parent parent-x))
(,',parent x))))
(,',(blacken! 'rbtree) y)
(let ((parent-y (,',parent y)))
(,',(reden!) parent-y)
(,rotate-side2! parent-y))))))
(if (##eq? parent-x (,left parent-parent-x))
(body ,left
,(rotate-left!)
,right
,(rotate-right!))
(body ,right
,(rotate-right!)
,left
,(rotate-left!)))))))
(,(blacken! 'rbtree) (,left rbtree))
(##void))
(##define-macro (insert-below! x)
`(let ((x ,x))
(if (,',before? node x)
(insert-left! (,',left x) x)
(insert-right! (,',right x) x))))
(define (insert-left! left-x x)
(if (##eq? left-x rbtree)
(begin
(,left-set! x node)
(,parent-set! node x)
;; check if leftmost must be updated
,@(if leftmost
`((if (##eq? x (,leftmost rbtree))
(,leftmost-set! rbtree node)))
`())
(fixup!))
(insert-below! left-x)))
(define (insert-right! right-x x)
(if (##eq? right-x rbtree)
(begin
(,right-set! x node)
(,parent-set! node x)
;; check if rightmost must be updated
,@(if rightmost
`((if (##eq? x (,rightmost rbtree))
(,rightmost-set! rbtree node)))
`())
(fixup!))
(insert-below! right-x)))
,@(if length
`((,length-set! rbtree (##fx+ (,length rbtree) 1)))
`())
,@(if container-set!
`((,container-set! node rbtree))
`())
(,(reden!) node)
(,left-set! node rbtree)
(,right-set! node rbtree)
(insert-left! (,left rbtree) rbtree)
(,parent-set! rbtree rbtree)))
(define (def-remove!)
`(define-prim (,remove! node)
(##declare (not interrupts-enabled))
(let ((rbtree (,node->rbtree node)))
(define (fixup! parent-node node)
(##define-macro (body side1 rotate-side1! side2 rotate-side2!)
`(let ((x
(let ((side2-parent-node (,side2 parent-node)))
(if (,',(red?) side2-parent-node)
(begin
(,',(blacken! 'rbtree) side2-parent-node)
(,',(reden!) parent-node)
(,rotate-side1! parent-node)
(,side2 parent-node))
side2-parent-node))))
(define (common-case y)
(,',(copy-color!) y parent-node)
(,',(blacken! 'rbtree) parent-node)
(,',(blacken! 'rbtree) (,side2 y))
(,rotate-side1! parent-node)
(,',(blacken! 'rbtree) (,',left rbtree)))
(if (,',(red?) (,side2 x))
(common-case x)
(let ((side1-x (,side1 x)))
(if (,',(black? 'rbtree) side1-x)
(begin
(,',(reden!) x)
(fixup! (,',parent parent-node) parent-node))
(begin
(,',(blacken! 'rbtree) side1-x)
(,',(reden!) x)
(,rotate-side2! x)
(common-case (,side2 parent-node))))))))
(cond ((or (##eq? parent-node rbtree) (,(red?) node))
(,(blacken! 'rbtree) node))
((##eq? node (,left parent-node))
(body ,left
,(rotate-left!)
,right
,(rotate-right!)))
(else
(body ,right
,(rotate-right!)
,left
,(rotate-left!)))))
,@(if length
`((,length-set! rbtree (##fx- (,length rbtree) 1)))
`())
,@(if container-set!
`((,container-set! node #f))
`())
(let ((parent-node (,parent node))
(left-node (,left node))
(right-node (,right node)))
(,parent-set! node #f) ;; to avoid leaks
(,left-set! node #f)
(,right-set! node #f)
(cond ((##eq? left-node rbtree)
;; check if leftmost must be updated
,@(if leftmost
`((if (##eq? node (,leftmost rbtree))
(,leftmost-set!
rbtree
(if (##eq? right-node rbtree)
parent-node
right-node))))
`())
(,parent-set! right-node parent-node)
(,(update-parent!) parent-node node right-node)
(if (,(black? 'rbtree) node)
(begin
(,(reden!) node) ;; to avoid leaks
(fixup! parent-node right-node))))
((##eq? right-node rbtree)
;; check if rightmost must be updated
,@(if rightmost
`((if (##eq? node (,rightmost rbtree))
(,rightmost-set!
rbtree
left-node)))
`())
(,parent-set! left-node parent-node)
(,(update-parent!) parent-node node left-node)
;; At this point we know that the node is black.
;; This is because the right child is nil and the
;; left child is red (if the left child was black
;; the tree would not be balanced)
(,(reden!) node) ;; to avoid leaks
(fixup! parent-node left-node))
(else
(let loop ((x right-node) (parent-x node))
(let ((left-x (,left x)))
(if (##eq? left-x rbtree)
(begin
(,(exchange-color!) x node)
(,parent-set! left-node x)
(,left-set! x left-node)
(,parent-set! x parent-node)
(,(update-parent!) parent-node node x)
(if (##eq? x right-node)
(if (,(black? 'rbtree) node)
(begin
(,(reden!) node) ;; to avoid leaks
(fixup! x (,right x))))
(let ((right-x (,right x)))
(,parent-set! right-x parent-x)
(,left-set! parent-x right-x)
(,parent-set! right-node x)
(,right-set! x right-node)
(if (,(black? 'rbtree) node)
(begin
(,(reden!) node) ;; to avoid leaks
(fixup! parent-x right-x))))))
(loop left-x x)))))))
(,parent-set! rbtree rbtree))))
(define (def-reposition!)
`(define-prim (,reposition! node)
(##declare (not interrupts-enabled))
(let* ((rbtree
(,node->rbtree node))
(predecessor-node
(,(neighbor left right) node rbtree))
(successor-node
(,(neighbor right left) node rbtree)))
(if (or (and (##not (##eq? predecessor-node rbtree))
(,before? node predecessor-node))
(and (##not (##eq? successor-node rbtree))
(,before? successor-node node)))
(begin
(,remove! node)
(,insert! rbtree node))))))
`(begin
(##define-macro (,rbtree-init! rbtree)
`(let ((rbtree ,rbtree))
(##declare (not interrupts-enabled))
,@',(if leftmost
`((,leftmost-set! rbtree rbtree))
`())
,@',(if rightmost
`((,rightmost-set! rbtree rbtree))
`())
,@',(if length
`((,length-set! rbtree 0))
`())
(,',(blacken! 'rbtree) rbtree)
(,',parent-set! rbtree rbtree)
(,',left-set! rbtree rbtree)))
(##define-macro (,node->rbtree node)
(if ',container
`(let ((node ,node))
(##declare (not interrupts-enabled))
(,',container node))
`(let ((node ,node))
(##declare (not interrupts-enabled))
(or (,',color node)
(let ((parent-node (,',parent node)))
(and parent-node ;; make sure node is in a rbtree
(,',color parent-node)))))))
(##define-macro (,singleton? rbtree)
`(let ((rbtree ,rbtree))
(##declare (not interrupts-enabled))
(let ((root (,',left rbtree)))
(and (##not (##eq? root rbtree))
(##eq? (,',left root) rbtree)
(##eq? (,',right root) rbtree)
root))))
(##define-macro (,implementer)
`(begin
,',(def-insert!)
,',(def-remove!)
,',(def-reposition!)))))
;;;----------------------------------------------------------------------------
;;; Double-ended-queue generator macro.
(##define-macro (define-deq
init!
insert-at-head!
insert-at-tail!
remove!
empty?
head
tail
next
next-set!
prev
prev-set!)
`(begin
(##define-macro (,init! deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Initialize a deq.
(,',next-set! deq deq)
(,',prev-set! deq deq)))
(##define-macro (,insert-at-head! deq item)
`(let ((deq ,deq) (item ,item))
(##declare (not interrupts-enabled))
;; Add item to head of deq.
(let ((deq-first (,',next deq)))
(,',next-set! item deq-first)
(,',prev-set! item deq)
(,',next-set! deq item)
(,',prev-set! deq-first item))))
(##define-macro (,insert-at-tail! deq item)
`(let ((deq ,deq) (item ,item))
(##declare (not interrupts-enabled))
;; Add item to tail of deq.
(let ((deq-last (,',prev deq)))
(,',next-set! deq-last item)
(,',prev-set! deq item)
(,',next-set! item deq)
(,',prev-set! item deq-last))))
(##define-macro (,remove! item)
`(let ((item ,item))
(##declare (not interrupts-enabled))
;; Remove an item from the deq containing it.
(let ((item-next (,',next item))
(item-prev (,',prev item)))
(,',next-set! item-prev item-next)
(,',prev-set! item-next item-prev))))
(##define-macro (,empty? deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Test if deq is empty.
(##eq? (,',next deq) deq)))
(##define-macro (,head deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Get head of non-empty deq.
(,',next deq)))
(##define-macro (,tail deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Get tail of non-empty deq.
(,',prev deq)))))
;;;----------------------------------------------------------------------------
;;; Representation of dynamic environments.
;; The dynamic environment contains the set of dynamically bound
;; "parameters" (such as the current input port and current exception
;; handler) that is attached to a continuation, and thereby to a
;; thread.
;; The dynamic environment stores the bindings of normal parameters in
;; a binary tree ordered using an integer identifier attached to the
;; parameter. Some frequently used parameters (such as the current
;; input port and exception handler) are stored separately.
(##define-macro (macro-make-denv local dynwind im ds eh ip op rc)
`(##vector ,local ,dynwind ,im ,ds ,eh ,ip ,op ,rc))
(##define-macro (macro-denv-local d) `(macro-slot 0 ,d))
(##define-macro (macro-denv-local-set! d x) `(macro-slot 0 ,d ,x))
(##define-macro (macro-denv-dynwind d) `(macro-slot 1 ,d))
(##define-macro (macro-denv-dynwind-set! d x) `(macro-slot 1 ,d ,x))
(##define-macro (macro-denv-interrupt-mask d) `(macro-slot 2 ,d))
(##define-macro (macro-denv-interrupt-mask-set! d x) `(macro-slot 2 ,d ,x))
(##define-macro (macro-denv-debugging-settings d) `(macro-slot 3 ,d))
(##define-macro (macro-denv-debugging-settings-set! d x)`(macro-slot 3 ,d ,x))
(##define-macro (macro-denv-exception-handler d) `(macro-slot 4 ,d))
(##define-macro (macro-denv-exception-handler-set! d x) `(macro-slot 4 ,d ,x))
(##define-macro (macro-denv-input-port d) `(macro-slot 5 ,d))
(##define-macro (macro-denv-input-port-set! d x) `(macro-slot 5 ,d ,x))
(##define-macro (macro-denv-output-port d) `(macro-slot 6 ,d))
(##define-macro (macro-denv-output-port-set! d x) `(macro-slot 6 ,d ,x))
(##define-macro (macro-denv-repl-context d) `(macro-slot 7 ,d))
(##define-macro (macro-denv-repl-context-set! d x) `(macro-slot 7 ,d ,x))
;;; Environment tree nodes.
(##define-macro (macro-make-env pv l r) `(##vector ,pv ,l ,r))
(##define-macro (macro-env-param-val e) `(macro-slot 0 ,e))
(##define-macro (macro-env-param-val-set! e x) `(macro-slot 0 ,e ,x))
(##define-macro (macro-env-left e) `(macro-slot 1 ,e))
(##define-macro (macro-env-left-set! e x) `(macro-slot 1 ,e ,x))
(##define-macro (macro-env-right e) `(macro-slot 2 ,e))
(##define-macro (macro-env-right-set! e x) `(macro-slot 2 ,e ,x))
;;; Dynamic-wind frames.
(##define-macro (macro-make-dynwind level before after cont)
`(##vector ,level ,before ,after ,cont))
(##define-macro (macro-dynwind-level d) `(macro-slot 0 ,d))
(##define-macro (macro-dynwind-level-set! d x) `(macro-slot 0 ,d ,x))
(##define-macro (macro-dynwind-before d) `(macro-slot 1 ,d))
(##define-macro (macro-dynwind-before-set! d x) `(macro-slot 1 ,d ,x))
(##define-macro (macro-dynwind-after d) `(macro-slot 2 ,d))
(##define-macro (macro-dynwind-after-set! d x) `(macro-slot 2 ,d ,x))
(##define-macro (macro-dynwind-cont d) `(macro-slot 3 ,d))
(##define-macro (macro-dynwind-cont-set! d x) `(macro-slot 3 ,d ,x))
;;; Parameter descriptors.
(##define-macro (macro-make-parameter-descr value hash filter)
`(##vector ,value ,hash ,filter))
(##define-macro (macro-parameter-descr-value p) `(macro-slot 0 ,p))
(##define-macro (macro-parameter-descr-value-set! p x) `(macro-slot 0 ,p ,x))
(##define-macro (macro-parameter-descr-hash p) `(macro-slot 1 ,p))
(##define-macro (macro-parameter-descr-hash-set! p x) `(macro-slot 1 ,p ,x))
(##define-macro (macro-parameter-descr-filter p) `(macro-slot 2 ,p))
(##define-macro (macro-parameter-descr-filter-set! p x) `(macro-slot 2 ,p ,x))
;;; Binding of special dynamic variables.
(##define-macro (macro-denv-set denv var val)
`(let ((denv ,denv) (val ,val))
(##declare (not interrupts-enabled))
(macro-make-denv
(macro-denv-local denv)
,(if (eq? var 'dynwind)
`val
`(macro-denv-dynwind denv))
,(if (eq? var 'interrupt-mask)
`val
`(macro-denv-interrupt-mask denv))
,(if (eq? var 'debugging-settings)
`val
`(macro-denv-debugging-settings denv))
,(if (eq? var 'exception-handler)
`(##cons ##current-exception-handler val)
`(macro-denv-exception-handler denv))
,(if (eq? var 'input-port)
`(##cons ##current-input-port val)
`(macro-denv-input-port denv))
,(if (eq? var 'output-port)
`(##cons ##current-output-port val)
`(macro-denv-output-port denv))
,(if (eq? var 'repl-context)
`(##cons #f val)
`(macro-denv-repl-context denv)))))
(##define-macro (macro-dynamic-bind var val thunk)
`(##dynamic-env-bind
(macro-denv-set (macro-thread-denv (macro-current-thread)) ,var ,val)
,thunk))
(##define-macro (macro-current-interrupt-mask)
`(macro-denv-interrupt-mask (macro-thread-denv (macro-current-thread))))
(##define-macro (macro-debugging-settings-port)
`(macro-denv-debugging-settings (macro-thread-denv (macro-current-thread))))
(##define-macro (macro-current-exception-handler)
`(##cdr
(macro-denv-exception-handler (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-exception-handler-set! val)
`(##set-cdr!
(macro-denv-exception-handler (macro-thread-denv (macro-current-thread)))
,val))
(##define-macro (macro-current-input-port)
`(##cdr
(macro-denv-input-port (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-input-port-set! val)
`(##set-cdr!
(macro-denv-input-port (macro-thread-denv (macro-current-thread)))
,val))
(##define-macro (macro-current-output-port)
`(##cdr
(macro-denv-output-port (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-output-port-set! val)
`(##set-cdr!
(macro-denv-output-port (macro-thread-denv (macro-current-thread)))
,val))
(##define-macro (macro-current-repl-context)
`(##cdr
(macro-denv-repl-context (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-repl-context-set! val)
`(##set-cdr!
(macro-denv-repl-context (macro-thread-denv (macro-current-thread)))
,val))
;;; Exception raising.
(##define-macro (macro-raise obj)
`(let ((obj ,obj))
(##declare
(not safe) ;; avoid procedure check on the call to the handler
(interrupts-enabled)) ;; make sure exceptions can be interrupted
(if (macro-current-thread)
((macro-current-exception-handler) obj)
(##exit-with-exception obj)))) ;; exit when exception is raised
;; before thread system is initialized
(##define-macro (macro-abort obj)
`(let ((obj ,obj))
(macro-raise obj)
(##abort (macro-make-noncontinuable-exception obj))))
;;;----------------------------------------------------------------------------
;;; Representation of time objects.
(define-type time
id: 9700b02a-724f-4888-8da8-9b0501836d8e
type-exhibitor: macro-type-time
constructor: macro-make-time
implementer: implement-type-time
opaque:
macros:
prefix: macro-
unprintable:
no-functional-setter:
point
;; the following fields are for eventual compatibility with srfi-19
type
second
nanosecond
)
(##define-macro (macro-absrel-time? obj)
`(let ((obj ,obj))
(or (##real? obj)
(macro-time? obj))))
(##define-macro (macro-absrel-time-or-false? obj)
`(let ((obj ,obj))
(or (##not obj)
(macro-absrel-time? obj))))
;;;----------------------------------------------------------------------------
;;; Root thread settings.
(##define-macro (macro-thread-root-base-priority)
(exact->inexact 0))
(##define-macro (macro-thread-root-quantum)
(exact->inexact 2/100))
(##define-macro (macro-thread-root-priority-boost)
(exact->inexact (expt 10 -6)))
(##define-macro (macro-default-heartbeat-interval)
(exact->inexact 1/100))
;;;----------------------------------------------------------------------------
;;; Representation of thread groups, threads, mutexes and condition variables.
;; A thread group contains a double-ended-queue of the threads that are
;; in the group and a double-ended-queue of the thread groups that are
;; in the group. A thread contains a double-ended-queue of the mutexes
;; that are owned by the thread. Conversely, a mutex contains a queue
;; of the threads blocked on the mutex. A condition variable also
;; contains a queue of the threads blocked on the condition variable.
;;; Representation of blocked thread queues.
(##define-macro (macro-btq-lock1 node) `(macro-struct-slot 1 ,node))
(##define-macro (macro-btq-lock1-set! node x) `(macro-struct-slot 1 ,node ,x))
(##define-macro (macro-btq-deq-next node) `(macro-struct-slot 2 ,node))
(##define-macro (macro-btq-deq-next-set! node x)`(macro-struct-slot 2 ,node ,x))
(##define-macro (macro-btq-deq-prev node) `(macro-struct-slot 3 ,node))
(##define-macro (macro-btq-deq-prev-set! node x)`(macro-struct-slot 3 ,node ,x))
(##define-macro (macro-btq-color node) `(macro-struct-slot 4 ,node))
(##define-macro (macro-btq-color-set! node x) `(macro-struct-slot 4 ,node ,x))
(##define-macro (macro-btq-parent node) `(macro-struct-slot 5 ,node))
(##define-macro (macro-btq-parent-set! node x) `(macro-struct-slot 5 ,node ,x))
(##define-macro (macro-btq-left node) `(macro-struct-slot 6 ,node))
(##define-macro (macro-btq-left-set! node x) `(macro-struct-slot 6 ,node ,x))
(##define-macro (macro-btq-right node) `(macro-struct-slot 7 ,node))
(##define-macro (macro-btq-right-set! node x) `(macro-struct-slot 7 ,node ,x))
(##define-macro (macro-btq-leftmost node) `(macro-struct-slot 7 ,node))
(##define-macro (macro-btq-leftmost-set! node x)`(macro-struct-slot 7 ,node ,x))
(##define-macro (macro-btq-owner node) `(macro-struct-slot 8 ,node))
(##define-macro (macro-btq-owner-set! node x) `(macro-struct-slot 8 ,node ,x))
(##define-macro (macro-btq-lock2 node) `(macro-struct-slot 9 ,node))
(##define-macro (macro-btq-lock2-set! node x) `(macro-struct-slot 9 ,node ,x))
(define-rbtree
implement-btq
macro-btq-init!
macro-thread->btq
##btq-insert!
##btq-remove!
##btq-reposition!
macro-btq-singleton?
macro-btq-color
macro-btq-color-set!
macro-btq-parent
macro-btq-parent-set!
macro-btq-left
macro-btq-left-set!
macro-btq-right
macro-btq-right-set!
macro-thread-higher-prio?
#f
#f
macro-btq-leftmost
macro-btq-leftmost-set!
#f
#f
macro-thread-btq-container
macro-thread-btq-container-set!
)
(macro-define-syntax macro-if-btq-next
(lambda (stx)
(syntax-case stx ()
((_ btq next yes)
#'(let* ((next (macro-btq-leftmost btq)))
(if (##not (##eq? next btq))
yes)))
((_ btq next yes no)
#'(let* ((next (macro-btq-leftmost btq)))
(if (##not (##eq? next btq))
yes
no))))))
(##define-macro (macro-lock-btq! btq) `(##primitive-lock! ,btq 1 9))
(##define-macro (macro-trylock-btq! btq) `(##primitive-trylock! ,btq 1 9))
(##define-macro (macro-unlock-btq! btq) `(##primitive-unlock! ,btq 1 9))
(##define-macro (macro-lock-toq! toq) `(##primitive-lock! ,toq 1 9))
(##define-macro (macro-trylock-toq! toq) `(##primitive-trylock! ,toq 1 9))
(##define-macro (macro-unlock-toq! toq) `(##primitive-unlock! ,toq 1 9))
(##define-macro (macro-lock-mutex! mutex) `(macro-lock-btq! ,mutex))
(##define-macro (macro-trylock-mutex! mutex) `(macro-trylock-btq! ,mutex))
(##define-macro (macro-unlock-mutex! mutex) `(macro-unlock-btq! ,mutex))
(##define-macro (macro-lock-condvar! condvar) `(macro-lock-btq! ,condvar))
(##define-macro (macro-trylock-condvar! condvar) `(macro-trylock-btq! ,condvar))
(##define-macro (macro-unlock-condvar! condvar) `(macro-unlock-btq! ,condvar))
(##define-macro (macro-lock-thread! thread) `(macro-lock-btq! ,thread))
(##define-macro (macro-trylock-thread! thread) `(macro-trylock-btq! ,thread))
(##define-macro (macro-unlock-thread! thread) `(macro-unlock-btq! ,thread))
(##define-macro (macro-lock-tgroup! tgroup) `(macro-lock-btq! ,tgroup))
(##define-macro (macro-trylock-tgroup! tgroup) `(macro-trylock-btq! ,tgroup))
(##define-macro (macro-unlock-tgroup! tgroup) `(macro-unlock-btq! ,tgroup))
(##define-macro (macro-lock-processor! proc) `(macro-lock-btq! ,proc))
(##define-macro (macro-trylock-processor! proc) `(macro-trylock-btq! ,proc))
(##define-macro (macro-unlock-processor! proc) `(macro-unlock-btq! ,proc))
(##define-macro (macro-lock-vm! vm) `(macro-lock-btq! ,vm))
(##define-macro (macro-trylock-vm! vm) `(macro-trylock-btq! ,vm))
(##define-macro (macro-unlock-vm! vm) `(macro-unlock-btq! ,vm))
;;; Define operations on blocked thread queue double-ended-queues.
(define-deq
macro-btq-deq-init!
macro-btq-deq-insert-at-head!
macro-btq-deq-insert-at-tail!
macro-btq-deq-remove!
macro-btq-deq-empty?
macro-btq-deq-head
macro-btq-deq-tail
macro-btq-deq-next
macro-btq-deq-next-set!
macro-btq-deq-prev
macro-btq-deq-prev-set!)
(##define-macro (macro-btq-link! mutex thread)
`(let ((mutex ,mutex) (thread ,thread))
(##declare (not interrupts-enabled))
;; Add the mutex to the set of mutexes owned by the thread
;; and remember which thread owns the mutex.
;;
;; Assumes that the mutex's low-level lock is acquired and
;; the thread's low-level lock is acquired.
(macro-btq-deq-insert-at-tail! thread mutex)
(macro-btq-owner-set! mutex thread)))
(##define-macro (macro-btq-unlink! mutex state)
`(let ((mutex ,mutex) (state ,state))
(##declare (not interrupts-enabled))
;; Cleanup deq links of the mutex and set the new mutex state.
;;
;; Assumes that the mutex's low-level lock is acquired.
(macro-btq-deq-init! mutex)
(macro-btq-owner-set! mutex state)))
;;; Representation of timeout queues.
(##define-macro (macro-toq-color node) `(macro-struct-slot 10 ,node))
(##define-macro (macro-toq-color-set! node x) `(macro-struct-slot 10 ,node ,x))
(##define-macro (macro-toq-parent node) `(macro-struct-slot 11 ,node))
(##define-macro (macro-toq-parent-set! node x) `(macro-struct-slot 11 ,node ,x))
(##define-macro (macro-toq-left node) `(macro-struct-slot 12 ,node))
(##define-macro (macro-toq-left-set! node x) `(macro-struct-slot 12 ,node ,x))
(##define-macro (macro-toq-right node) `(macro-struct-slot 13 ,node))
(##define-macro (macro-toq-right-set! node x) `(macro-struct-slot 13 ,node ,x))
(##define-macro (macro-toq-leftmost node) `(macro-struct-slot 13 ,node))
(##define-macro (macro-toq-leftmost-set! node x)`(macro-struct-slot 13 ,node ,x))
(define-rbtree
implement-toq
macro-toq-init!
macro-thread->toq
##toq-insert!
##toq-remove!
##toq-reposition!
macro-toq-singleton?
macro-toq-color
macro-toq-color-set!
macro-toq-parent
macro-toq-parent-set!
macro-toq-left
macro-toq-left-set!
macro-toq-right
macro-toq-right-set!
macro-thread-sooner-or-simultaneous-and-higher-prio?
#f
#f
macro-toq-leftmost
macro-toq-leftmost-set!
#f
#f
macro-thread-toq-container
macro-thread-toq-container-set!
)
(macro-define-syntax macro-if-toq-next
(lambda (stx)
(syntax-case stx ()
((_ toq next yes)
#'(let* ((next (macro-toq-leftmost toq)))
(if (##not (##eq? next toq))
yes)))
((_ toq next yes no)
#'(let* ((next (macro-toq-leftmost toq)))
(if (##not (##eq? next toq))
yes
no))))))
;;; Representation of threads.
;; The state of a thread is determined by the content of the
;; "end-condvar", "exception?" and "result" fields:
;;
;; thread state "end-condvar" "exception?" "result"
;; not yet started condvar 'not-started #f
;; started condvar #f #f
;; terminated with result #f #f result object
;; terminated with exception #f #t exception object
(define-type thread
id: d05e0aa7-e235-441d-aa41-c1ac02065460
extender: macro-define-type-of-thread
type-exhibitor: macro-type-thread
constructor: macro-construct-thread
implementer: implement-type-thread
opaque:
macros:
prefix: macro-
unprintable:
(lock1 init: 0)
(btq-deq-next init: #f) ;; blocked thread queues owned by thread
(btq-deq-prev init: #f)
(btq-color init: #f) ;; to keep thread in a blocked thread queue
(btq-parent init: #f)
(btq-left init: #f)
(btq-leftmost init: #f)
(tgroup init: #f) ;; thread-group this thread belongs to
(lock2 init: 0)
(toq-color init: #f) ;; to keep thread in a timeout queue
(toq-parent init: #f)
(toq-left init: #f)
(toq-leftmost init: #f)
(threads-deq-next init: #f) ;; threads in this thread group
(threads-deq-prev init: #f)
(floats init: #f)
(btq-container init: #f) ;; processor, mutex or condvar whose blocked thread queue contains this thread or #f
(toq-container init: #f) ;; processor whose timeout queue contains this thread or #f
(name init: #f)
(end-condvar init: #f)
(exception? init: 'not-started)
(result init: #f)
(cont init: #f)
(denv init: #f)
(denv-cache1 init: #f)
(denv-cache2 init: #f)
(denv-cache3 init: #f)
(repl-channel init: #f)
(mailbox init: #f)
(specific init: '#!void)
(resume-thunk init: #f)
(interrupts init: '())
(last-processor init: #f)
(pinned init: #f)
)
;;; Access to floating point fields.
(##define-macro (macro-timeout f) `(##f64vector-ref ,f 0))
(##define-macro (macro-timeout-set! f x) `(##f64vector-set! ,f 0 ,x))
(##define-macro (macro-base-priority f) `(##f64vector-ref ,f 1))
(##define-macro (macro-base-priority-set! f x) `(##f64vector-set! ,f 1 ,x))
(##define-macro (macro-quantum f) `(##f64vector-ref ,f 2))
(##define-macro (macro-quantum-set! f x) `(##f64vector-set! ,f 2 ,x))
(##define-macro (macro-quantum-used f) `(##f64vector-ref ,f 3))
(##define-macro (macro-quantum-used-set! f x) `(##f64vector-set! ,f 3 ,x))
(##define-macro (macro-priority-boost f) `(##f64vector-ref ,f 4))
(##define-macro (macro-priority-boost-set! f x) `(##f64vector-set! ,f 4 ,x))
(##define-macro (macro-boosted-priority f) `(##f64vector-ref ,f 5))
(##define-macro (macro-boosted-priority-set! f x) `(##f64vector-set! ,f 5 ,x))
(##define-macro (macro-effective-priority f) `(##f64vector-ref ,f 6))
(##define-macro (macro-effective-priority-set! f x)`(##f64vector-set! ,f 6 ,x))
(##define-macro (macro-thread-timeout t)
`(macro-timeout (macro-thread-floats ,t)))
(##define-macro (macro-thread-timeout-set! t x)
`(macro-timeout-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-base-priority t)
`(macro-base-priority (macro-thread-floats ,t)))
(##define-macro (macro-thread-base-priority-set! t x)
`(macro-base-priority-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-quantum t)
`(macro-quantum (macro-thread-floats ,t)))
(##define-macro (macro-thread-quantum-set! t x)
`(macro-quantum-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-quantum-used t)
`(macro-quantum-used (macro-thread-floats ,t)))
(##define-macro (macro-thread-quantum-used-set! t x)
`(macro-quantum-used-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-priority-boost t)
`(macro-priority-boost (macro-thread-floats ,t)))
(##define-macro (macro-thread-priority-boost-set! t x)
`(macro-priority-boost-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-boosted-priority t)
`(macro-boosted-priority (macro-thread-floats ,t)))
(##define-macro (macro-thread-boosted-priority-set! t x)
`(macro-boosted-priority-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-effective-priority t)
`(macro-effective-priority (macro-thread-floats ,t)))
(##define-macro (macro-thread-effective-priority-set! t x)
`(macro-effective-priority-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-make-thread-floats parent-thread)
`(let* ((floats
(macro-thread-floats ,parent-thread))
(base-priority
(macro-base-priority floats))
(priority-boost
(macro-priority-boost floats)))
(##f64vector
(macro-inexact-+0)
base-priority
(macro-quantum floats)
(macro-inexact-+0)
priority-boost
base-priority
base-priority)))
(##define-macro (macro-make-thread-end-condvar parent-thread)
`(macro-make-condvar #f))
(##define-macro (macro-make-thread-cont parent-thread)
`(macro-make-continuation (macro-end-of-cont-marker) #f))
(##define-macro (macro-make-thread-denv parent-thread)
`(let ((denv (macro-thread-denv ,parent-thread)))
(macro-make-denv
(macro-denv-local denv)
##initial-dynwind
(macro-denv-interrupt-mask denv)
(macro-denv-debugging-settings denv)
(##cons ##current-exception-handler
(macro-primordial-exception-handler))
(macro-denv-input-port denv)
(macro-denv-output-port denv)
(##cons #f
#f))))
(##define-macro (macro-make-thread-denv-cache1 parent-thread)
`(macro-thread-denv-cache1 ,parent-thread))
(##define-macro (macro-make-thread-denv-cache2 parent-thread)
`(macro-thread-denv-cache2 ,parent-thread))
(##define-macro (macro-make-thread-denv-cache3 parent-thread)
`(macro-thread-denv-cache3 ,parent-thread))
(##define-macro (macro-thread-init! thread thunk name tgroup)
`(let ((thread ,thread) (thunk ,thunk) (name ,name) (tgroup ,tgroup))
(##declare (not interrupts-enabled))
(let ((p (macro-current-thread)))
(macro-thread-tgroup-set! thread tgroup)
(macro-thread-floats-set! thread (macro-make-thread-floats p))
(macro-thread-name-set! thread name)
(macro-thread-end-condvar-set! thread (macro-make-thread-end-condvar p))
(macro-thread-resume-thunk-set! thread
(lambda ()
(##thread-execute-and-end! thunk)))
(macro-thread-cont-set! thread (macro-make-thread-cont p))
(macro-thread-denv-set! thread (macro-make-thread-denv p))
(macro-thread-denv-cache1-set! thread (macro-make-thread-denv-cache1 p))
(macro-thread-denv-cache2-set! thread (macro-make-thread-denv-cache2 p))
(macro-thread-denv-cache3-set! thread (macro-make-thread-denv-cache3 p))
(macro-btq-deq-init! thread)
(macro-lock-tgroup! tgroup)
(macro-tgroup-threads-deq-insert-at-tail! tgroup thread)
(macro-unlock-tgroup! tgroup)
(macro-thread-last-processor-set! thread (macro-current-processor))
thread)))
(##define-macro (macro-make-thread thunk name tgroup)
`(let ((thunk ,thunk) (name ,name) (tgroup ,tgroup))
(##declare (not interrupts-enabled))
(macro-thread-init! (macro-construct-thread) thunk name tgroup)))
(##define-macro (macro-thread-btq-remove-if-in-btq! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
;; Assumes that the thread's low-level lock is acquired.
(let ((parent (macro-btq-parent thread)))
(if parent
(begin
;; btq is either a mutex or a condition variable
;;TODO: find way to combine the btq lock!/unlock! with caller
(let ((btq (macro-thread->btq thread)))
;;TODO: don't busy wait!
(let loop ()
(if (##not (macro-trylock-btq! btq))
(begin
;;(##c-code "printf(\"macro-thread-btq-remove-if-in-btq! couldn't lock btq...\\n\");");;TODO: remove
(loop))))
(##thread-btq-remove! thread)
(macro-unlock-btq! btq)))))))
(##define-macro (macro-thread-toq-remove-if-in-toq! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
;; Assumes that the thread's low-level lock is acquired.
(let ((parent (macro-toq-parent thread)))
(if parent
(begin
;; toq is a processor
;;TODO: find way to combine the toq lock!/unlock! with caller
(let ((toq (macro-thread->toq thread)))
(macro-lock-toq! toq)
(##thread-toq-remove! thread)
(macro-unlock-toq! toq)))))))
(##define-macro (macro-thread-reschedule-if-needed!)
`(let ()
(##declare (not interrupts-enabled))
;;TODO: update this (running threads are no longer in the current-processor)
(##void)#;
(let ((leftmost (macro-btq-leftmost (macro-current-processor))))
(if (##not (##eq? leftmost (macro-current-thread)))
(##thread-reschedule!)
(##void)))))
(macro-define-syntax macro-thread-save!
(lambda (stx)
(syntax-case stx ()
((_ proc args ...)
#'(##thread-save! proc args ...)))))
(macro-define-syntax macro-thread-restore!
(lambda (stx)
(syntax-case stx ()
((_ thread proc args ...)
#'(##thread-restore! thread proc args ...)))))
(##define-macro (macro-primordial-thread)
`##primordial-thread)
(##define-macro (macro-current-thread)
`(##current-thread))
(##define-macro (macro-lock-current-thread!)
`(macro-lock-thread! (macro-current-thread)))
(##define-macro (macro-unlock-current-thread!)
`(macro-unlock-thread! (macro-current-thread)))
(##define-macro (macro-current-processor)
`(##current-processor))
(##define-macro (macro-lock-current-processor!)
`(macro-lock-processor! (macro-current-processor)))
(##define-macro (macro-unlock-current-processor!)
`(macro-unlock-processor! (macro-current-processor)))
(##define-macro (macro-current-vm)
`(##current-vm))
(##define-macro (macro-lock-current-vm!)
`(macro-lock-vm! (macro-current-vm)))
(##define-macro (macro-trylock-current-vm!)
`(macro-trylock-vm! (macro-current-vm)))
(##define-macro (macro-unlock-current-vm!)
`(macro-unlock-vm! (macro-current-vm)))
(##define-macro (macro-primordial-exception-handler)
`##primordial-exception-handler)
(##define-macro (macro-thread-higher-prio? t1 t2)
`(let ((t1 ,t1) (t2 ,t2))
(let ((floats1 (macro-thread-floats t1))
(floats2 (macro-thread-floats t2)))
(##fl< (macro-effective-priority floats2) ;; high priority first
(macro-effective-priority floats1)))))
(##define-macro (macro-thread-sooner? t1 t2)
`(let ((t1 ,t1) (t2 ,t2))
(let ((floats1 (macro-thread-floats t1))
(floats2 (macro-thread-floats t2)))
(##fl< (macro-timeout floats1)
(macro-timeout floats2)))))
(##define-macro (macro-thread-sooner-or-simultaneous-and-higher-prio? t1 t2)
`(let ((t1 ,t1) (t2 ,t2))
(let ((floats1 (macro-thread-floats t1))
(floats2 (macro-thread-floats t2)))
(if (##not (##fl= (macro-timeout floats1)
(macro-timeout floats2)))
(##fl< (macro-timeout floats1)
(macro-timeout floats2))
(##fl< (macro-effective-priority floats2) ;; high priority first
(macro-effective-priority floats1))))))
(##define-macro (macro-thread-boost-and-clear-quantum-used! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
(let ((floats (macro-thread-floats thread)))
(macro-quantum-used-set! floats (macro-inexact-+0))
(if (##not (##fl= (##fl+ (macro-base-priority floats)
(macro-priority-boost floats))
(macro-boosted-priority floats)))
(begin
;; save old boosted priority for ##thread-boosted-priority-changed!
(macro-temp-set!
(macro-thread-floats (macro-current-processor))
(macro-boosted-priority floats))
(macro-boosted-priority-set!
floats
(##fl+ (macro-base-priority floats)
(macro-priority-boost floats)))
(##thread-boosted-priority-changed! thread))))))
(##define-macro (macro-thread-unboost-and-clear-quantum-used! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
(let ((floats (macro-thread-floats thread)))
(macro-quantum-used-set! floats (macro-inexact-+0))
(if (##not (##fl= (macro-base-priority floats)
(macro-boosted-priority floats)))
(begin
;; save old boosted priority for ##thread-boosted-priority-changed!
(macro-temp-set!
(macro-thread-floats (macro-current-processor))
(macro-boosted-priority floats))
(macro-boosted-priority-set!
floats
(macro-base-priority floats))
(##thread-boosted-priority-changed! thread))))))
(##define-macro (macro-thread-inherit-priority! thread parent);;;;;;;;;;;;;;;
`(let ((thread ,thread) (parent ,parent))
(##declare (not interrupts-enabled))
(let ((thread-floats (macro-thread-floats thread))
(parent-floats (macro-thread-floats parent)))
(if (##fl< (macro-effective-priority thread-floats)
(macro-effective-priority parent-floats))
(begin
(macro-effective-priority-set!
thread-floats
(macro-effective-priority parent-floats))
(##thread-effective-priority-changed! thread #t))))))
;;; Representation of thread mailboxes.
(define-type mailbox
id: f1bd59e2-25fc-49af-b624-e00f0c5975f8
type-exhibitor: macro-type-mailbox
constructor: macro-construct-mailbox
implementer: implement-type-mailbox
predicate: macro-mailbox?
opaque:
macros:
prefix: macro-
unprintable:
mutex
condvar
fifo
cursor
)
(##define-macro (macro-make-mailbox)
`(let ((mutex (macro-make-mutex #f))
(condvar (macro-make-condvar #f))
(fifo (macro-make-fifo)))
(macro-construct-mailbox mutex condvar fifo #f)))
;;; Representation of mutexes.
(define-type mutex
id: 42fe9aac-e9c6-4227-893e-a0ad76f58932
type-exhibitor: macro-type-mutex
constructor: macro-construct-mutex
implementer: implement-type-mutex
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 2 and 3 are for maintaining this mutex in a deq of btqs
;; fields 4 to 6 are for maintaining a queue of blocked threads
;; field 7 is the leftmost thread in the queue of blocked threads
;; field 8 is the owner of the mutex (or 'not-owned or 'abandoned
;; or 'not-abandoned)
(lock1 init: 0)
(btq-deq-next init: #f)
(btq-deq-prev init: #f)
(btq-color init: #f)
(btq-parent init: #f)
(btq-left init: #f)
(btq-leftmost init: #f)
(btq-owner init: 'not-abandoned) ;; see (macro-mutex-state-not-abandoned)
(lock2 init: 0)
(name
macro-mutex-name
macro-mutex-name-set!)
(specific
macro-mutex-specific
macro-mutex-specific-set!)
)
;; Mutex states (aside from "owned")
(##define-macro (macro-mutex-state-not-owned) ''not-owned)
(##define-macro (macro-mutex-state-abandoned) ''abandoned)
(##define-macro (macro-mutex-state-not-abandoned) ''not-abandoned)
(##define-macro (macro-mutex-thread-owner? owner)
`(##not (##symbol? ,owner)))
(##define-macro (macro-make-mutex name)
`(let ((name ,name))
(let ((mutex (macro-construct-mutex name (##void))))
(macro-btq-deq-init! mutex)
(macro-btq-init! mutex)
mutex)))
(##define-macro (macro-mutex-unlocked-not-abandoned-and-not-multiprocessor? mutex)
`(##eq? (macro-btq-owner ,mutex)
(macro-mutex-state-not-abandoned)))
(##define-macro (macro-mutex-lock! mutex absrel-timeout new-owner)
`(let ((mutex ,mutex) (absrel-timeout ,absrel-timeout) (new-owner ,new-owner))
(##declare (not interrupts-enabled))
;; The call
;;
;; (macro-mutex-lock! mutex absrel-timeout new-owner)
;;
;; where new-owner is a thread, has the same effect as
;;
;; (begin
;; (macro-lock-mutex! mutex)
;; (macro-lock-thread! new-owner)
;; (##mutex-lock-out-of-line! mutex absrel-timeout new-owner))
;;
;; However, the macro special cases the situation where the mutex's
;; state is unlocked/not-abandoned, allowing this common situation
;; to be handled without a function call.
(##check-heap-limit) ;; prevent GC while mutex is locked
;; acquire low-level lock of mutex
(macro-lock-mutex! mutex)
;; acquire low-level lock of thread
(macro-lock-thread! new-owner)
(let ((owner (macro-btq-owner mutex)))
(if (and (##eq? owner (macro-mutex-state-not-abandoned))
(##not (macro-terminated-thread-given-initialized? new-owner)))
(begin
;; Fast path... the mutex's state is unlocked/not-abandoned.
;; thread becomes the mutex's owner
(macro-btq-link! mutex new-owner)
;; release low-level lock of thread
(macro-unlock-thread! new-owner)
;; release low-level lock of mutex
(macro-unlock-mutex! mutex)
#t) ;; signal success
(begin
;; Slow path... the mutex's state is not unlocked/not-abandoned.
;; handle this case out of line
(##mutex-lock-out-of-line! mutex absrel-timeout new-owner))))))
(##define-macro (macro-mutex-lock-anonymously! mutex absrel-timeout)
`(let ((mutex ,mutex) (absrel-timeout ,absrel-timeout))
(##declare (not interrupts-enabled))
;; The call
;;
;; (macro-mutex-lock-anonymously! mutex absrel-timeout)
;;
;; has the same effect as the call
;;
;; (begin
;; (macro-lock-mutex! mutex)
;; (##mutex-lock-anonymously-out-of-line! mutex absrel-timeout))
;;
;; However, the macro special cases the situation where the mutex's
;; state is unlocked/not-abandoned, allowing this common situation
;; to be handled without a function call.
(##check-heap-limit) ;; prevent GC while mutex is locked
;; acquire low-level lock of mutex
(macro-lock-mutex! mutex)
(let ((owner (macro-btq-owner mutex)))
(if (##eq? owner (macro-mutex-state-not-abandoned))
(begin
;; Fast path... the mutex's state is unlocked/not-abandoned.
;; change the mutex's state to not-owned
(macro-btq-owner-set! mutex (macro-mutex-state-not-owned))
;; release low-level lock of mutex
(macro-unlock-mutex! mutex)
#t) ;; signal success
(begin
;; Slow path... the mutex's state is not unlocked/not-abandoned.
;; handle this case out of line
(##mutex-lock-anonymously-out-of-line! mutex absrel-timeout))))))
(##define-macro (macro-mutex-unlock! mutex)
`(let ((mutex ,mutex))
(##declare (not interrupts-enabled))
(##check-heap-limit) ;; prevent GC while mutex is locked
;; acquire low-level lock of mutex
(macro-lock-mutex! mutex)
;; get first waiting thread
(macro-if-btq-next
mutex
first-thread
(begin
;; Slow path... at least one thread is waiting on the mutex.
;; handle this case out of line
(##mutex-unlock-out-of-line! mutex first-thread))
(begin
;; Fast path... there are no threads waiting on the mutex.
(let ((owner (macro-btq-owner mutex)))
(if (macro-mutex-thread-owner? owner)
(begin
;; Mutex is owned by a thread.
;; acquire low-level lock of owner
(macro-lock-thread! owner)
;; remove mutex from the set of mutexes owned by the
;; thread
(macro-btq-deq-remove! mutex)
;; change mutex state to unlocked/not-abandoned
(macro-btq-unlink!
mutex
(macro-mutex-state-not-abandoned))
;; release low-level lock of thread
(macro-unlock-thread! owner)
;; release low-level lock of mutex
(macro-unlock-mutex! mutex)
(##void))
(begin
;; Mutex is not owned by a thread.
;; change mutex state to unlocked/not-abandoned
(macro-btq-unlink!
mutex
(macro-mutex-state-not-abandoned))
;; release low-level lock of mutex
(macro-unlock-mutex! mutex)
(##void))))))))
(##define-macro (macro-mutex-unlock-no-reschedule! mutex)
`(macro-mutex-unlock! ,mutex));;TODO: update
;;; Representation of condition variables.
(define-type condition-variable
id: 6bd864f0-27ec-4639-8044-cf7c0135d716
type-exhibitor: macro-type-condvar
constructor: macro-construct-condvar
implementer: implement-type-condvar
predicate: macro-condvar?
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 2 and 3 are for maintaining this condition variable in a deq of btqs
;; fields 4 to 6 are for maintaining a queue of blocked threads
;; field 7 is the leftmost thread in the queue of blocked threads
;; field 8 is the owner of the condition variable
(lock1 init: 0)
(btq-deq-next init: #f)
(btq-deq-prev init: #f)
(btq-color init: #f)
(btq-parent init: #f)
(btq-left init: #f)
(btq-leftmost init: #f)
(btq-owner init: #f)
(lock2 init: 0)
(name
macro-condvar-name
macro-condvar-name-set!)
(specific
macro-condvar-specific
macro-condvar-specific-set!)
)
(##define-macro (macro-make-condvar name)
`(let ((name ,name))
(let ((condvar (macro-construct-condvar name (##void))))
(macro-btq-deq-init! condvar)
(macro-btq-init! condvar)
condvar)))
;;; Representation of thread groups.
(define-type thread-group
id: 713f0ba8-1d76-4a68-8dfa-eaebd4aef1e3
type-exhibitor: macro-type-tgroup
constructor: macro-construct-tgroup
implementer: implement-type-tgroup
predicate: macro-tgroup?
opaque:
macros:
prefix: macro-
unprintable:
(lock1
macro-tgroup-lock1)
(tgroups-deq-next
macro-tgroup-tgroups-deq-next
macro-tgroup-tgroups-deq-next-set!)
(tgroups-deq-prev
macro-tgroup-tgroups-deq-prev
macro-tgroup-tgroups-deq-prev-set!)
(tgroups
macro-tgroup-tgroups)
(name
macro-tgroup-name)
(specific
macro-tgroup-specific
macro-tgroup-specific-set!)
unused-field7
(parent ;; thread-group this thread-group belongs to
macro-tgroup-parent)
(lock2
macro-tgroup-lock2)
unused-field10
unused-field11
unused-field12
unused-field13
(threads-deq-next ;; must be at same pos as those fields in a thread
macro-tgroup-threads-deq-next
macro-tgroup-threads-deq-next-set!)
(threads-deq-prev
macro-tgroup-threads-deq-prev
macro-tgroup-threads-deq-prev-set!)
)
(##define-macro (macro-make-tgroup name parent)
`(let ((name ,name) (parent ,parent))
(let* ((tgroups
(##vector #f #f #f #f))
(tgroup
(macro-construct-tgroup
0
#f
#f
tgroups
name
#f
#f
parent
0
#f
#f
#f
#f
#f
#f)))
(macro-tgroup-tgroups-deq-init! tgroups)
(macro-tgroup-threads-deq-init! tgroup)
(if parent
(macro-tgroup-tgroups-deq-insert-at-tail!
(macro-tgroup-tgroups parent)
tgroup))
tgroup)))
(define-deq
macro-tgroup-tgroups-deq-init!
macro-tgroup-tgroups-deq-insert-at-head!
macro-tgroup-tgroups-deq-insert-at-tail!
macro-tgroup-tgroups-deq-remove!
macro-tgroup-tgroups-deq-empty?
macro-tgroup-tgroups-deq-head
macro-tgroup-tgroups-deq-tail
macro-tgroup-tgroups-deq-next
macro-tgroup-tgroups-deq-next-set!
macro-tgroup-tgroups-deq-prev
macro-tgroup-tgroups-deq-prev-set!)
(define-deq
macro-tgroup-threads-deq-init!
macro-tgroup-threads-deq-insert-at-head!
macro-tgroup-threads-deq-insert-at-tail!
macro-tgroup-threads-deq-remove!
macro-tgroup-threads-deq-empty?
macro-tgroup-threads-deq-head
macro-tgroup-threads-deq-tail
macro-tgroup-threads-deq-next
macro-tgroup-threads-deq-next-set!
macro-tgroup-threads-deq-prev
macro-tgroup-threads-deq-prev-set!)
;;;----------------------------------------------------------------------------
;;; Representation of the processor state. This is the part of the
;;; processor state that is implemented at the Scheme level (the other
;;; part of the processor state is implemented at the host language level).
;;; Note that this structure used to be called a "run queue" because it
;;; is mostly used by the scheduler to maintain the set of runnable threads.
;;; However it also includes other information which is conceptually part
;;; of the processor state.
;;; This structure is pre-allocated by the runtime system to reduce
;;; pressure on the garbage collector. For this reason, the length of
;;; the structure must match the definition of ___PROCESSOR_SIZE in
;;; include/gambit.h.in .
(define-type processor
id: A6899D11-290C-42A6-B47A-57C6B908698F
type-exhibitor: macro-type-processor
constructor: macro-construct-processor
implementer: implement-type-processor
predicate: macro-processor?
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 2 and 3 are the deq links of blocking device condvars
;; fields 4 to 6 are for maintaining a queue of runnable threads
;; field 7 is the leftmost thread in the queue of runnable threads
;; field 8 must be #f (the queue of runnable threads has no owner)
;; fields 10 to 12 are for maintaining a timeout queue of threads
;; field 13 is the leftmost thread in the timeout queue of threads
;; field 14 is the thread currently running on this processor
;; field 16 is for storing the current time, heartbeat interval and a
;; temporary float
;; fields 17 and 18 are the deq links of blocked processors
;; field 19 is the id of the processor
;; field 20 is the queue of pending high-level interrupts
lock1
condvar-deq-next
condvar-deq-prev
btq-color
btq-parent
btq-left
btq-leftmost
false
lock2
toq-color
toq-parent
toq-left
toq-leftmost
current-thread
unused-field15
floats
processor-deq-next
processor-deq-prev
id
interrupts
)
(##define-macro (macro-make-floats)
`(##f64vector (macro-inexact-+0)
(macro-inexact-+0)
(macro-inexact-+0)))
(##define-macro (macro-current-time f) `(##f64vector-ref ,f 0))
(##define-macro (macro-current-time-set! f x) `(##f64vector-set! ,f 0 ,x))
(##define-macro (macro-heartbeat-interval f) `(##f64vector-ref ,f 1))
(##define-macro (macro-heartbeat-interval-set! f x)`(##f64vector-set! ,f 1 ,x))
(##define-macro (macro-temp f) `(##f64vector-ref ,f 2))
(##define-macro (macro-temp-set! f x) `(##f64vector-set! ,f 2 ,x))
(##define-macro (macro-get-heartbeat-interval f)
`(begin
(##get-heartbeat-interval! ,f 1)
(macro-heartbeat-interval ,f)))
(##define-macro (macro-update-current-time!)
`(##get-current-time! (macro-thread-floats (macro-current-processor)) 0))
(##define-macro (macro-make-processor id)
`(let ((processor
(macro-construct-processor
0
#f
#f
#f
#f
#f
#f
#f
0
#f
#f
#f
#f
#f
#f
(macro-make-floats)
#f
#f
,id
'())))
(macro-btq-deq-init! processor)
(macro-btq-init! processor)
(macro-toq-init! processor)
(macro-processor-deq-init! processor)
processor))
(##define-macro (macro-processor-init! processor id)
`(let ((processor ,processor) (id ,id))
(##structure-type-set! processor (macro-type-processor))
(macro-processor-floats-set!
processor
(macro-make-floats))
(macro-btq-deq-init! processor)
(macro-btq-init! processor)
(macro-toq-init! processor)
(macro-processor-deq-init! processor)
(macro-processor-id-set! processor id)
(macro-processor-interrupts-set! processor '())
processor))
;;;----------------------------------------------------------------------------
;;; Representation of processor queues.
(##define-macro (macro-processor-deq-next node)
`(macro-struct-slot 17 ,node))
(##define-macro (macro-processor-deq-next-set! node x)
`(macro-struct-slot 17 ,node ,x))
(##define-macro (macro-processor-deq-prev node)
`(macro-struct-slot 18 ,node))
(##define-macro (macro-processor-deq-prev-set! node x)
`(macro-struct-slot 18 ,node ,x))
;;; Define operations on processor queues.
(define-deq
macro-processor-deq-init!
macro-processor-deq-insert-at-head!
macro-processor-deq-insert-at-tail!
macro-processor-deq-remove!
macro-processor-deq-empty?
macro-processor-deq-head
macro-processor-deq-tail
macro-processor-deq-next
macro-processor-deq-next-set!
macro-processor-deq-prev
macro-processor-deq-prev-set!)
;;;----------------------------------------------------------------------------
;;; Representation of the VM state. This is the part of the VM state
;;; that is implemented at the Scheme level (the other part of the VM
;;; state is implemented at the host language level).
;;; This structure is pre-allocated by the runtime system to reduce
;;; pressure on the garbage collector. For this reason, the length of
;;; the structure must match the definition of ___VM_SIZE in
;;; include/gambit.h.in .
(define-type vm
id: F86D8C06-0129-4798-B170-49E593E6A7FD
type-exhibitor: macro-type-vm
constructor: macro-construct-vm
implementer: implement-type-vm
predicate: macro-vm?
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 17 and 18 are the deq links of blocked processors
;; field 19 is count of processors blocked and not waiting for a timeout
lock1
unused-field2
unused-field3
unused-field4
unused-field5
unused-field6
unused-field7
unused-field8
lock2
unused-field10
unused-field11
unused-field12
unused-field13
unused-field14
unused-field15
unused-field16
processor-deq-next
processor-deq-prev
idle-processor-count
)
(##define-macro (macro-make-vm)
`(let ((vm
(macro-construct-vm
0
#f
#f
#f
#f
#f
#f
#f
0
#f
#f
#f
#f
#f
#f
#f
#f
#f
0)))
(macro-processor-deq-init! vm)
vm))
(##define-macro (macro-vm-init! vm)
`(let ((vm ,vm))
(##structure-type-set! vm (macro-type-vm))
(macro-processor-deq-init! vm)
(macro-vm-idle-processor-count-set! vm 0)
vm))
;;;----------------------------------------------------------------------------
;;; Representation of thread states.
(define-library-type thread-state-uninitialized
id: c63af440-d5ef-4f02-8fe6-40836a312fae
constructor: #f
opaque:
)
(define-library-type thread-state-initialized
id: 47368926-951d-4451-92b0-dd9b4132eca9
constructor: #f
opaque:
)
(define-library-type thread-state-normally-terminated
id: c475ff99-c959-4784-a847-b0c52aff8f2a
constructor: #f
opaque:
(result unprintable: read-only: no-functional-setter:)
)
(define-library-type thread-state-abnormally-terminated
id: 291e311e-93e0-4765-8132-56a719dc84b3
constructor: #f
opaque:
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type thread-state-waiting
id: eb5a81e1-5061-4074-a27e-cc706735d39a
constructor: #f
opaque:
(for unprintable: read-only: no-functional-setter:)
(timeout unprintable: read-only: no-functional-setter:)
)
(define-library-type thread-state-running
id: f839d55a-1d42-4b64-97a6-2d16921dc0b7
constructor: #f
opaque:
(processor unprintable: read-only: no-functional-setter:)
)
;;;============================================================================
) (else
;;;============================================================================
;;; For non-SMP thread scheduler.
;;; Representation of exceptions.
(define-library-type-of-exception deadlock-exception
id: 54294cd7-1c33-40e1-940e-7400e1126a5a
constructor: #f
opaque:
)
(define-library-type-of-exception abandoned-mutex-exception
id: e0e435ae-0097-47c9-8d4a-9d761979522c
constructor: #f
opaque:
)
(define-library-type-of-exception scheduler-exception
id: 0d164889-74b4-48ca-b291-f5ec9e0499fe
constructor: #f
opaque:
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception noncontinuable-exception
id: 1bcc14ff-4be5-4573-a250-729b773bdd50
constructor: #f
opaque:
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception initialized-thread-exception
id: e38351db-bef7-4c30-b610-b9b271e99ec3
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception uninitialized-thread-exception
id: 71831161-39c1-4a10-bb79-04342e1981c3
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception inactive-thread-exception
id: 339af4ff-3d44-4bec-a90b-d981fd13834d
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception started-thread-exception
id: ed07bce3-b882-4737-ac5e-3035b7783b8a
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception terminated-thread-exception
id: 85f41657-8a51-4690-abef-d76dc37f4465
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception uncaught-exception
id: 7022e42c-4ecb-4476-be40-3ca2d45903a7
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception join-timeout-exception
id: 7af7ca4a-ecca-445f-a270-de9d45639feb
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception mailbox-receive-timeout-exception
id: 5f13e8c4-2c68-4eb5-b24d-249a9356c918
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
)
(define-library-type-of-exception rpc-remote-error-exception
id: 6469e5eb-3117-4c29-89df-c348479dac93
constructor: #f
opaque:
(procedure unprintable: read-only: no-functional-setter:)
(arguments unprintable: read-only: no-functional-setter:)
(message unprintable: read-only: no-functional-setter:)
)
;;;----------------------------------------------------------------------------
;;; Define type checking macros.
(define-check-type continuation 'continuation
##continuation?)
(define-check-type time (macro-type-time)
macro-time?)
(define-check-type absrel-time 'absrel-time
macro-absrel-time?)
(define-check-type absrel-time-or-false 'absrel-time-or-false
macro-absrel-time-or-false?)
(define-check-type vm 'vm
macro-vm?)
(define-check-type processor 'processor
macro-processor?)
(define-check-type thread 'thread
macro-thread?)
(define-check-type mutex (macro-type-mutex)
macro-mutex?)
(define-check-type condvar (macro-type-condvar)
macro-condvar?)
(define-check-type tgroup (macro-type-tgroup)
macro-tgroup?)
(##define-macro (macro-initialized-thread? thread)
`(macro-thread-cont ,thread))
(##define-macro (macro-started-thread-given-initialized? thread)
`(or (##not (##eq? 'not-started (macro-thread-exception? ,thread)))
(macro-thread-result ,thread)))
(##define-macro (macro-terminated-thread-given-initialized? thread)
`(##not (macro-thread-end-condvar ,thread)))
(##define-macro (macro-check-initialized-thread thread form expr)
`(if (##not (macro-initialized-thread? ,thread))
(##raise-uninitialized-thread-exception ,@form)
,expr))
(##define-macro (macro-check-not-initialized-thread thread form expr)
`(if (macro-initialized-thread? ,thread)
(##raise-initialized-thread-exception ,@form)
,expr))
(##define-macro (macro-check-not-started-thread-given-initialized thread form expr)
`(if (let ((thread ,thread))
(or (macro-terminated-thread-given-initialized? thread)
(macro-started-thread-given-initialized? thread)))
(##raise-started-thread-exception ,@form)
,expr))
;;;----------------------------------------------------------------------------
;;; Priority queue generator macro.
;; The red-black tree implementation used here is inspired from the
;; code in the MIT-Scheme runtime (file "rbtree.scm"). That code is
;; based on the algorithms presented in the book "Introduction to
;; Algorithms" by Cormen, Leiserson, and Rivest.
;;
;; The main differences with the MIT-Scheme code are:
;;
;; 1) Nil pointers are replaced by a special sentinel that is also
;; the cell that contains a pointer (in the "left child" field)
;; to the root of the red-black tree. The "right child" field of
;; the sentinel is never accessed. The sentinel is black.
;;
;; 2) The color field contains #f when the node is red and a
;; reference to the sentinel when the node is black. It is thus
;; possible to find the sentinel from any node in constant time
;; (if the node is black extract the color field, otherwise
;; extract the color field of the parent, which must be black).
;;
;; 3) One field of the sentinel always points to the leftmost node of
;; the red-black tree. This allows constant time access to the
;; "minimum" node, which is a frequent operation of priority queues.
;;
;; 4) Several cases are handled specially (see the code for details).
;;
;; 5) Macros are used to generate code specialized for each case of
;; symmetrical operations (e.g. left and right rotation).
;;
;; 6) Nodes are assumed to be preallocated. Inserting and deleting a
;; node from a red-black tree does not perform any heap
;; allocation. Moreover, all algorithms consume a constant amount
;; of stack space.
(##define-macro (define-rbtree
implementer
rbtree-init!
node->rbtree
insert!
remove!
reposition!
singleton?
color
color-set!
parent
parent-set!
left
left-set!
right
right-set!
before?
length
length-set!
leftmost
leftmost-set!
rightmost
rightmost-set!
container
container-set!)
(define (black rbtree)
rbtree)
(define (black? rbtree)
`(lambda (node)
(,color node)))
(define (blacken! rbtree)
`(lambda (node)
(,color-set! node ,(black rbtree))))
(define (red)
#f)
(define (red?)
`(lambda (node)
(##not (,color node))))
(define (reden!)
`(lambda (node)
(,color-set! node ,(red))))
(define (copy-color!)
`(lambda (node1 node2)
(,color-set! node1 (,color node2))))
(define (exchange-color!)
`(lambda (node1 node2)
(let ((color-node1 (,color node1)))
(,color-set! node1 (,color node2))
(,color-set! node2 color-node1))))
(define (update-parent!)
`(lambda (parent-node old-node new-node)
(if (##eq? old-node (,left parent-node))
(,left-set! parent-node new-node)
(,right-set! parent-node new-node))))
(define (rotate! side1 side1-set! side2 side2-set!)
`(lambda (node)
(let ((side2-node (,side2 node)))
(let ((side1-side2-node (,side1 side2-node)))
(,side2-set! node side1-side2-node)
(,parent-set! side1-side2-node node))
(let ((parent-node (,parent node)))
(,side1-set! side2-node node)
(,parent-set! node side2-node)
(,parent-set! side2-node parent-node)
(,(update-parent!) parent-node node side2-node)))))
(define (rotate-left!)
(rotate! left left-set! right right-set!))
(define (rotate-right!)
(rotate! right right-set! left left-set!))
(define (neighbor side other-side)
`(lambda (node rbtree)
(let ((side-node (,side node)))
(if (##eq? side-node rbtree)
(let ((parent-node (,parent node)))
(if (or (##eq? parent-node rbtree)
(##eq? node (,side parent-node)))
rbtree
parent-node))
(let loop ((x side-node))
(let ((other-side-x (,other-side x)))
(if (##eq? other-side-x rbtree)
x
(loop other-side-x))))))))
(define (def-insert!)
`(define-prim (,insert! rbtree node)
(##declare (not interrupts-enabled))
(define (fixup!)
(let loop ((x node))
(let ((parent-x (,parent x)))
(if (,(red?) parent-x)
(let ((parent-parent-x (,parent parent-x)))
(##define-macro (body
side1
rotate-side1!
side2
rotate-side2!)
`(let ((side2-parent-parent-x (,side2 parent-parent-x)))
(if (,',(red?) side2-parent-parent-x)
(begin
(,',(blacken! 'rbtree) parent-x)
(,',(blacken! 'rbtree) side2-parent-parent-x)
(,',(reden!) parent-parent-x)
(loop parent-parent-x))
(let ((y
(if (##eq? x (,side2 parent-x))
(begin
(,rotate-side1! parent-x)
(,',parent parent-x))
(,',parent x))))
(,',(blacken! 'rbtree) y)
(let ((parent-y (,',parent y)))
(,',(reden!) parent-y)
(,rotate-side2! parent-y))))))
(if (##eq? parent-x (,left parent-parent-x))
(body ,left
,(rotate-left!)
,right
,(rotate-right!))
(body ,right
,(rotate-right!)
,left
,(rotate-left!)))))))
(,(blacken! 'rbtree) (,left rbtree))
(##void))
(##define-macro (insert-below! x)
`(let ((x ,x))
(if (,',before? node x)
(insert-left! (,',left x) x)
(insert-right! (,',right x) x))))
(define (insert-left! left-x x)
(if (##eq? left-x rbtree)
(begin
(,left-set! x node)
(,parent-set! node x)
;; check if leftmost must be updated
,@(if leftmost
`((if (##eq? x (,leftmost rbtree))
(,leftmost-set! rbtree node)))
`())
(fixup!))
(insert-below! left-x)))
(define (insert-right! right-x x)
(if (##eq? right-x rbtree)
(begin
(,right-set! x node)
(,parent-set! node x)
;; check if rightmost must be updated
,@(if rightmost
`((if (##eq? x (,rightmost rbtree))
(,rightmost-set! rbtree node)))
`())
(fixup!))
(insert-below! right-x)))
,@(if length
`((,length-set! rbtree (##fx+ (,length rbtree) 1)))
`())
,@(if container-set!
`((,container-set! node rbtree))
`())
(,(reden!) node)
(,left-set! node rbtree)
(,right-set! node rbtree)
(insert-left! (,left rbtree) rbtree)
(,parent-set! rbtree rbtree)))
(define (def-remove!)
`(define-prim (,remove! node)
(##declare (not interrupts-enabled))
(let ((rbtree (,node->rbtree node)))
(define (fixup! parent-node node)
(##define-macro (body side1 rotate-side1! side2 rotate-side2!)
`(let ((x
(let ((side2-parent-node (,side2 parent-node)))
(if (,',(red?) side2-parent-node)
(begin
(,',(blacken! 'rbtree) side2-parent-node)
(,',(reden!) parent-node)
(,rotate-side1! parent-node)
(,side2 parent-node))
side2-parent-node))))
(define (common-case y)
(,',(copy-color!) y parent-node)
(,',(blacken! 'rbtree) parent-node)
(,',(blacken! 'rbtree) (,side2 y))
(,rotate-side1! parent-node)
(,',(blacken! 'rbtree) (,',left rbtree)))
(if (,',(red?) (,side2 x))
(common-case x)
(let ((side1-x (,side1 x)))
(if (,',(black? 'rbtree) side1-x)
(begin
(,',(reden!) x)
(fixup! (,',parent parent-node) parent-node))
(begin
(,',(blacken! 'rbtree) side1-x)
(,',(reden!) x)
(,rotate-side2! x)
(common-case (,side2 parent-node))))))))
(cond ((or (##eq? parent-node rbtree) (,(red?) node))
(,(blacken! 'rbtree) node))
((##eq? node (,left parent-node))
(body ,left
,(rotate-left!)
,right
,(rotate-right!)))
(else
(body ,right
,(rotate-right!)
,left
,(rotate-left!)))))
,@(if length
`((,length-set! rbtree (##fx- (,length rbtree) 1)))
`())
,@(if container-set!
`((,container-set! node #f))
`())
(let ((parent-node (,parent node))
(left-node (,left node))
(right-node (,right node)))
(,parent-set! node #f) ;; to avoid leaks
(,left-set! node #f)
(,right-set! node #f)
(cond ((##eq? left-node rbtree)
;; check if leftmost must be updated
,@(if leftmost
`((if (##eq? node (,leftmost rbtree))
(,leftmost-set!
rbtree
(if (##eq? right-node rbtree)
parent-node
right-node))))
`())
(,parent-set! right-node parent-node)
(,(update-parent!) parent-node node right-node)
(if (,(black? 'rbtree) node)
(begin
(,(reden!) node) ;; to avoid leaks
(fixup! parent-node right-node))))
((##eq? right-node rbtree)
;; check if rightmost must be updated
,@(if rightmost
`((if (##eq? node (,rightmost rbtree))
(,rightmost-set!
rbtree
left-node)))
`())
(,parent-set! left-node parent-node)
(,(update-parent!) parent-node node left-node)
;; At this point we know that the node is black.
;; This is because the right child is nil and the
;; left child is red (if the left child was black
;; the tree would not be balanced)
(,(reden!) node) ;; to avoid leaks
(fixup! parent-node left-node))
(else
(let loop ((x right-node) (parent-x node))
(let ((left-x (,left x)))
(if (##eq? left-x rbtree)
(begin
(,(exchange-color!) x node)
(,parent-set! left-node x)
(,left-set! x left-node)
(,parent-set! x parent-node)
(,(update-parent!) parent-node node x)
(if (##eq? x right-node)
(if (,(black? 'rbtree) node)
(begin
(,(reden!) node) ;; to avoid leaks
(fixup! x (,right x))))
(let ((right-x (,right x)))
(,parent-set! right-x parent-x)
(,left-set! parent-x right-x)
(,parent-set! right-node x)
(,right-set! x right-node)
(if (,(black? 'rbtree) node)
(begin
(,(reden!) node) ;; to avoid leaks
(fixup! parent-x right-x))))))
(loop left-x x)))))))
(,parent-set! rbtree rbtree))))
(define (def-reposition!)
`(define-prim (,reposition! node)
(##declare (not interrupts-enabled))
(let* ((rbtree
(,node->rbtree node))
(predecessor-node
(,(neighbor left right) node rbtree))
(successor-node
(,(neighbor right left) node rbtree)))
(if (or (and (##not (##eq? predecessor-node rbtree))
(,before? node predecessor-node))
(and (##not (##eq? successor-node rbtree))
(,before? successor-node node)))
(begin
(,remove! node)
(,insert! rbtree node))))))
`(begin
(##define-macro (,rbtree-init! rbtree)
`(let ((rbtree ,rbtree))
(##declare (not interrupts-enabled))
,@',(if leftmost
`((,leftmost-set! rbtree rbtree))
`())
,@',(if rightmost
`((,rightmost-set! rbtree rbtree))
`())
,@',(if length
`((,length-set! rbtree 0))
`())
(,',(blacken! 'rbtree) rbtree)
(,',parent-set! rbtree rbtree)
(,',left-set! rbtree rbtree)))
(##define-macro (,node->rbtree node)
(if ',container
`(let ((node ,node))
(##declare (not interrupts-enabled))
(,',container node))
`(let ((node ,node))
(##declare (not interrupts-enabled))
(or (,',color node)
(let ((parent-node (,',parent node)))
(and parent-node ;; make sure node is in a rbtree
(,',color parent-node)))))))
(##define-macro (,singleton? rbtree)
`(let ((rbtree ,rbtree))
(##declare (not interrupts-enabled))
(let ((root (,',left rbtree)))
(and (##not (##eq? root rbtree))
(##eq? (,',left root) rbtree)
(##eq? (,',right root) rbtree)
root))))
(##define-macro (,implementer)
`(begin
,',(def-insert!)
,',(def-remove!)
,',(def-reposition!)))))
;;;----------------------------------------------------------------------------
;;; Double-ended-queue generator macro.
(##define-macro (define-deq
init!
insert-at-head!
insert-at-tail!
remove!
empty?
head
tail
next
next-set!
prev
prev-set!)
`(begin
(##define-macro (,init! deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Initialize a deq.
(,',next-set! deq deq)
(,',prev-set! deq deq)))
(##define-macro (,insert-at-head! deq item)
`(let ((deq ,deq) (item ,item))
(##declare (not interrupts-enabled))
;; Add item to head of deq.
(let ((deq-first (,',next deq)))
(,',next-set! item deq-first)
(,',prev-set! item deq)
(,',next-set! deq item)
(,',prev-set! deq-first item))))
(##define-macro (,insert-at-tail! deq item)
`(let ((deq ,deq) (item ,item))
(##declare (not interrupts-enabled))
;; Add item to tail of deq.
(let ((deq-last (,',prev deq)))
(,',next-set! deq-last item)
(,',prev-set! deq item)
(,',next-set! item deq)
(,',prev-set! item deq-last))))
(##define-macro (,remove! item)
`(let ((item ,item))
(##declare (not interrupts-enabled))
;; Remove an item from the deq containing it.
(let ((item-next (,',next item))
(item-prev (,',prev item)))
(,',next-set! item-prev item-next)
(,',prev-set! item-next item-prev))))
(##define-macro (,empty? deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Test if deq is empty.
(##eq? (,',next deq) deq)))
(##define-macro (,head deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Get head of non-empty deq.
(,',next deq)))
(##define-macro (,tail deq)
`(let ((deq ,deq))
(##declare (not interrupts-enabled))
;; Get tail of non-empty deq.
(,',prev deq)))))
;;;----------------------------------------------------------------------------
;;; Representation of dynamic environments.
;; The dynamic environment contains the set of dynamically bound
;; "parameters" (such as the current input port and current exception
;; handler) that is attached to a continuation, and thereby to a
;; thread.
;; The dynamic environment stores the bindings of normal parameters in
;; a binary tree ordered using an integer identifier attached to the
;; parameter. Some frequently used parameters (such as the current
;; input port and exception handler) are stored separately.
(##define-macro (macro-make-denv local dynwind im ds eh ip op rc)
`(##vector ,local ,dynwind ,im ,ds ,eh ,ip ,op ,rc))
(##define-macro (macro-denv-local d) `(macro-slot 0 ,d))
(##define-macro (macro-denv-local-set! d x) `(macro-slot 0 ,d ,x))
(##define-macro (macro-denv-dynwind d) `(macro-slot 1 ,d))
(##define-macro (macro-denv-dynwind-set! d x) `(macro-slot 1 ,d ,x))
(##define-macro (macro-denv-interrupt-mask d) `(macro-slot 2 ,d))
(##define-macro (macro-denv-interrupt-mask-set! d x) `(macro-slot 2 ,d ,x))
(##define-macro (macro-denv-debugging-settings d) `(macro-slot 3 ,d))
(##define-macro (macro-denv-debugging-settings-set! d x)`(macro-slot 3 ,d ,x))
(##define-macro (macro-denv-exception-handler d) `(macro-slot 4 ,d))
(##define-macro (macro-denv-exception-handler-set! d x) `(macro-slot 4 ,d ,x))
(##define-macro (macro-denv-input-port d) `(macro-slot 5 ,d))
(##define-macro (macro-denv-input-port-set! d x) `(macro-slot 5 ,d ,x))
(##define-macro (macro-denv-output-port d) `(macro-slot 6 ,d))
(##define-macro (macro-denv-output-port-set! d x) `(macro-slot 6 ,d ,x))
(##define-macro (macro-denv-repl-context d) `(macro-slot 7 ,d))
(##define-macro (macro-denv-repl-context-set! d x) `(macro-slot 7 ,d ,x))
;;; Environment tree nodes.
(##define-macro (macro-make-env pv l r) `(##vector ,pv ,l ,r))
(##define-macro (macro-env-param-val e) `(macro-slot 0 ,e))
(##define-macro (macro-env-param-val-set! e x) `(macro-slot 0 ,e ,x))
(##define-macro (macro-env-left e) `(macro-slot 1 ,e))
(##define-macro (macro-env-left-set! e x) `(macro-slot 1 ,e ,x))
(##define-macro (macro-env-right e) `(macro-slot 2 ,e))
(##define-macro (macro-env-right-set! e x) `(macro-slot 2 ,e ,x))
;;; Dynamic-wind frames.
(##define-macro (macro-make-dynwind level before after cont)
`(##vector ,level ,before ,after ,cont))
(##define-macro (macro-dynwind-level d) `(macro-slot 0 ,d))
(##define-macro (macro-dynwind-level-set! d x) `(macro-slot 0 ,d ,x))
(##define-macro (macro-dynwind-before d) `(macro-slot 1 ,d))
(##define-macro (macro-dynwind-before-set! d x) `(macro-slot 1 ,d ,x))
(##define-macro (macro-dynwind-after d) `(macro-slot 2 ,d))
(##define-macro (macro-dynwind-after-set! d x) `(macro-slot 2 ,d ,x))
(##define-macro (macro-dynwind-cont d) `(macro-slot 3 ,d))
(##define-macro (macro-dynwind-cont-set! d x) `(macro-slot 3 ,d ,x))
;;; Parameter descriptors.
(##define-macro (macro-make-parameter-descr value hash filter)
`(##vector ,value ,hash ,filter))
(##define-macro (macro-parameter-descr-value p) `(macro-slot 0 ,p))
(##define-macro (macro-parameter-descr-value-set! p x) `(macro-slot 0 ,p ,x))
(##define-macro (macro-parameter-descr-hash p) `(macro-slot 1 ,p))
(##define-macro (macro-parameter-descr-hash-set! p x) `(macro-slot 1 ,p ,x))
(##define-macro (macro-parameter-descr-filter p) `(macro-slot 2 ,p))
(##define-macro (macro-parameter-descr-filter-set! p x) `(macro-slot 2 ,p ,x))
;;; Binding of special dynamic variables.
(##define-macro (macro-denv-set denv var val)
`(let ((denv ,denv) (val ,val))
(##declare (not interrupts-enabled))
(macro-make-denv
(macro-denv-local denv)
,(if (eq? var 'dynwind)
`val
`(macro-denv-dynwind denv))
,(if (eq? var 'interrupt-mask)
`val
`(macro-denv-interrupt-mask denv))
,(if (eq? var 'debugging-settings)
`val
`(macro-denv-debugging-settings denv))
,(if (eq? var 'exception-handler)
`(##cons ##current-exception-handler val)
`(macro-denv-exception-handler denv))
,(if (eq? var 'input-port)
`(##cons ##current-input-port val)
`(macro-denv-input-port denv))
,(if (eq? var 'output-port)
`(##cons ##current-output-port val)
`(macro-denv-output-port denv))
,(if (eq? var 'repl-context)
`(##cons #f val)
`(macro-denv-repl-context denv)))))
(##define-macro (macro-dynamic-bind var val thunk)
`(##dynamic-env-bind
(macro-denv-set (macro-thread-denv (macro-current-thread)) ,var ,val)
,thunk))
(##define-macro (macro-current-interrupt-mask)
`(macro-denv-interrupt-mask (macro-thread-denv (macro-current-thread))))
(##define-macro (macro-debugging-settings-port)
`(macro-denv-debugging-settings (macro-thread-denv (macro-current-thread))))
(##define-macro (macro-current-exception-handler)
`(##cdr
(macro-denv-exception-handler (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-exception-handler-set! val)
`(##set-cdr!
(macro-denv-exception-handler (macro-thread-denv (macro-current-thread)))
,val))
(##define-macro (macro-current-input-port)
`(##cdr
(macro-denv-input-port (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-input-port-set! val)
`(##set-cdr!
(macro-denv-input-port (macro-thread-denv (macro-current-thread)))
,val))
(##define-macro (macro-current-output-port)
`(##cdr
(macro-denv-output-port (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-output-port-set! val)
`(##set-cdr!
(macro-denv-output-port (macro-thread-denv (macro-current-thread)))
,val))
(##define-macro (macro-current-repl-context)
`(##cdr
(macro-denv-repl-context (macro-thread-denv (macro-current-thread)))))
(##define-macro (macro-current-repl-context-set! val)
`(##set-cdr!
(macro-denv-repl-context (macro-thread-denv (macro-current-thread)))
,val))
;;; Exception raising.
(##define-macro (macro-raise obj)
`(let ((obj ,obj))
(##declare
(not safe) ;; avoid procedure check on the call to the handler
(interrupts-enabled)) ;; make sure exceptions can be interrupted
(if (macro-current-thread)
((macro-current-exception-handler) obj)
(##exit-with-exception obj)))) ;; exit when exception is raised
;; before thread system is initialized
(##define-macro (macro-abort obj)
`(let ((obj ,obj))
(macro-raise obj)
(##abort (macro-make-noncontinuable-exception obj))))
;;;----------------------------------------------------------------------------
;;; Representation of time objects.
(define-type time
id: 9700b02a-724f-4888-8da8-9b0501836d8e
type-exhibitor: macro-type-time
constructor: macro-make-time
implementer: implement-type-time
opaque:
macros:
prefix: macro-
unprintable:
point
;; the following fields are for eventual compatibility with srfi-19
type
second
nanosecond
)
(##define-macro (macro-absrel-time? obj)
`(let ((obj ,obj))
(or (##real? obj)
(macro-time? obj))))
(##define-macro (macro-absrel-time-or-false? obj)
`(let ((obj ,obj))
(or (##not obj)
(macro-absrel-time? obj))))
;;;----------------------------------------------------------------------------
;;; Root thread settings.
(##define-macro (macro-thread-root-base-priority)
(exact->inexact 0))
(##define-macro (macro-thread-root-quantum)
(exact->inexact 2/100))
(##define-macro (macro-thread-root-priority-boost)
(exact->inexact (expt 10 -6)))
(##define-macro (macro-default-heartbeat-interval)
(exact->inexact 1/100))
;;;----------------------------------------------------------------------------
;;; Representation of thread groups, threads, mutexes and condition variables.
;; A thread group contains a double-ended-queue of the threads that are
;; in the group and a double-ended-queue of the thread groups that are
;; in the group. A thread contains a double-ended-queue of the mutexes
;; that are owned by the thread. Conversely, a mutex contains a queue
;; of the threads blocked on the mutex. A condition variable also
;; contains a queue of the threads blocked on the condition variable.
;;; Representation of blocked thread queues.
(##define-macro (macro-btq-lock1 node) `(macro-struct-slot 1 ,node))
(##define-macro (macro-btq-lock1-set! node x) `(macro-struct-slot 1 ,node ,x))
(##define-macro (macro-btq-deq-next node) `(macro-struct-slot 2 ,node))
(##define-macro (macro-btq-deq-next-set! node x)`(macro-struct-slot 2 ,node ,x))
(##define-macro (macro-btq-deq-prev node) `(macro-struct-slot 3 ,node))
(##define-macro (macro-btq-deq-prev-set! node x)`(macro-struct-slot 3 ,node ,x))
(##define-macro (macro-btq-color node) `(macro-struct-slot 4 ,node))
(##define-macro (macro-btq-color-set! node x) `(macro-struct-slot 4 ,node ,x))
(##define-macro (macro-btq-parent node) `(macro-struct-slot 5 ,node))
(##define-macro (macro-btq-parent-set! node x) `(macro-struct-slot 5 ,node ,x))
(##define-macro (macro-btq-left node) `(macro-struct-slot 6 ,node))
(##define-macro (macro-btq-left-set! node x) `(macro-struct-slot 6 ,node ,x))
(##define-macro (macro-btq-right node) `(macro-struct-slot 7 ,node))
(##define-macro (macro-btq-right-set! node x) `(macro-struct-slot 7 ,node ,x))
(##define-macro (macro-btq-leftmost node) `(macro-struct-slot 7 ,node))
(##define-macro (macro-btq-leftmost-set! node x)`(macro-struct-slot 7 ,node ,x))
(##define-macro (macro-btq-owner node) `(macro-struct-slot 8 ,node))
(##define-macro (macro-btq-owner-set! node x) `(macro-struct-slot 8 ,node ,x))
(##define-macro (macro-btq-lock2 node) `(macro-struct-slot 9 ,node))
(##define-macro (macro-btq-lock2-set! node x) `(macro-struct-slot 9 ,node ,x))
(define-rbtree
implement-btq
macro-btq-init!
macro-thread->btq
##btq-insert!
##btq-remove!
##btq-reposition!
macro-btq-singleton?
macro-btq-color
macro-btq-color-set!
macro-btq-parent
macro-btq-parent-set!
macro-btq-left
macro-btq-left-set!
macro-btq-right
macro-btq-right-set!
macro-thread-higher-prio?
#f
#f
macro-btq-leftmost
macro-btq-leftmost-set!
#f
#f
#f
#f
)
;;; Define operations on blocked thread queue double-ended-queues.
(define-deq
macro-btq-deq-init!
macro-btq-deq-insert-at-head!
macro-btq-deq-insert-at-tail!
macro-btq-deq-remove!
macro-btq-deq-empty?
macro-btq-deq-head
macro-btq-deq-tail
macro-btq-deq-next
macro-btq-deq-next-set!
macro-btq-deq-prev
macro-btq-deq-prev-set!)
(##define-macro (macro-btq-link! mutex thread)
`(let ((mutex ,mutex) (thread ,thread))
(##declare (not interrupts-enabled))
(macro-btq-deq-insert-at-tail! thread mutex)
(macro-btq-owner-set! mutex thread)))
(##define-macro (macro-btq-unlink! mutex state)
`(let ((mutex ,mutex) (state ,state))
(##declare (not interrupts-enabled))
(macro-btq-deq-init! mutex)
(macro-btq-owner-set! mutex state)))
;;; Representation of timeout queues.
(##define-macro (macro-toq-color node) `(macro-struct-slot 10 ,node))
(##define-macro (macro-toq-color-set! node x) `(macro-struct-slot 10 ,node ,x))
(##define-macro (macro-toq-parent node) `(macro-struct-slot 11 ,node))
(##define-macro (macro-toq-parent-set! node x) `(macro-struct-slot 11 ,node ,x))
(##define-macro (macro-toq-left node) `(macro-struct-slot 12 ,node))
(##define-macro (macro-toq-left-set! node x) `(macro-struct-slot 12 ,node ,x))
(##define-macro (macro-toq-right node) `(macro-struct-slot 13 ,node))
(##define-macro (macro-toq-right-set! node x) `(macro-struct-slot 13 ,node ,x))
(##define-macro (macro-toq-leftmost node) `(macro-struct-slot 13 ,node))
(##define-macro (macro-toq-leftmost-set! node x)`(macro-struct-slot 13 ,node ,x))
(define-rbtree
implement-toq
macro-toq-init!
macro-thread->toq
##toq-insert!
##toq-remove!
##toq-reposition!
macro-toq-singleton?
macro-toq-color
macro-toq-color-set!
macro-toq-parent
macro-toq-parent-set!
macro-toq-left
macro-toq-left-set!
macro-toq-right
macro-toq-right-set!
macro-thread-sooner-or-simultaneous-and-higher-prio?
#f
#f
macro-toq-leftmost
macro-toq-leftmost-set!
#f
#f
#f
#f
)
;;; Representation of threads.
;; The state of a thread is determined by the content of the
;; "end-condvar", "exception?" and "result" fields:
;;
;; thread state "end-condvar" "exception?" "result"
;; not yet started condvar 'not-started #f
;; started condvar #f #f
;; terminated with result #f #f result object
;; terminated with exception #f #t exception object
(define-type thread
id: d05e0aa7-e235-441d-aa41-c1ac02065460
extender: macro-define-type-of-thread
type-exhibitor: macro-type-thread
constructor: macro-construct-thread
implementer: implement-type-thread
opaque:
macros:
prefix: macro-
unprintable:
(lock1 init: 0)
(btq-deq-next init: #f) ;; blocked thread queues owned by thread
(btq-deq-prev init: #f)
(btq-color init: #f) ;; to keep thread in a blocked thread queue
(btq-parent init: #f)
(btq-left init: #f)
(btq-leftmost init: #f)
(tgroup init: #f) ;; thread-group this thread belongs to
(lock2 init: 0)
(toq-color init: #f) ;; to keep thread in a timeout queue
(toq-parent init: #f)
(toq-left init: #f)
(toq-leftmost init: #f)
(threads-deq-next init: #f) ;; threads in this thread group
(threads-deq-prev init: #f)
(floats init: #f)
(btq-container init: #f) ;; unused
(toq-container init: #f) ;; unused
(name init: #f)
(end-condvar init: #f)
(exception? init: 'not-started)
(result init: #f)
(cont init: #f)
(denv init: #f)
(denv-cache1 init: #f)
(denv-cache2 init: #f)
(denv-cache3 init: #f)
(repl-channel init: #f)
(mailbox init: #f)
(specific init: '#!void)
(resume-thunk init: #f)
(interrupts init: '())
(last-processor init: #f) ;; last processor that executed thread or #f
)
;;; Access to floating point fields.
(##define-macro (macro-timeout f) `(##f64vector-ref ,f 0))
(##define-macro (macro-timeout-set! f x) `(##f64vector-set! ,f 0 ,x))
(##define-macro (macro-base-priority f) `(##f64vector-ref ,f 1))
(##define-macro (macro-base-priority-set! f x) `(##f64vector-set! ,f 1 ,x))
(##define-macro (macro-quantum f) `(##f64vector-ref ,f 2))
(##define-macro (macro-quantum-set! f x) `(##f64vector-set! ,f 2 ,x))
(##define-macro (macro-quantum-used f) `(##f64vector-ref ,f 3))
(##define-macro (macro-quantum-used-set! f x) `(##f64vector-set! ,f 3 ,x))
(##define-macro (macro-priority-boost f) `(##f64vector-ref ,f 4))
(##define-macro (macro-priority-boost-set! f x) `(##f64vector-set! ,f 4 ,x))
(##define-macro (macro-boosted-priority f) `(##f64vector-ref ,f 5))
(##define-macro (macro-boosted-priority-set! f x) `(##f64vector-set! ,f 5 ,x))
(##define-macro (macro-effective-priority f) `(##f64vector-ref ,f 6))
(##define-macro (macro-effective-priority-set! f x)`(##f64vector-set! ,f 6 ,x))
(##define-macro (macro-thread-timeout t)
`(macro-timeout (macro-thread-floats ,t)))
(##define-macro (macro-thread-timeout-set! t x)
`(macro-timeout-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-base-priority t)
`(macro-base-priority (macro-thread-floats ,t)))
(##define-macro (macro-thread-base-priority-set! t x)
`(macro-base-priority-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-quantum t)
`(macro-quantum (macro-thread-floats ,t)))
(##define-macro (macro-thread-quantum-set! t x)
`(macro-quantum-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-quantum-used t)
`(macro-quantum-used (macro-thread-floats ,t)))
(##define-macro (macro-thread-quantum-used-set! t x)
`(macro-quantum-used-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-priority-boost t)
`(macro-priority-boost (macro-thread-floats ,t)))
(##define-macro (macro-thread-priority-boost-set! t x)
`(macro-priority-boost-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-boosted-priority t)
`(macro-boosted-priority (macro-thread-floats ,t)))
(##define-macro (macro-thread-boosted-priority-set! t x)
`(macro-boosted-priority-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-thread-effective-priority t)
`(macro-effective-priority (macro-thread-floats ,t)))
(##define-macro (macro-thread-effective-priority-set! t x)
`(macro-effective-priority-set! (macro-thread-floats ,t) ,x))
(##define-macro (macro-make-thread-floats parent-thread)
`(let* ((floats
(macro-thread-floats ,parent-thread))
(base-priority
(macro-base-priority floats))
(priority-boost
(macro-priority-boost floats)))
(##f64vector
(macro-inexact-+0)
base-priority
(macro-quantum floats)
(macro-inexact-+0)
priority-boost
base-priority
base-priority)))
(##define-macro (macro-make-thread-end-condvar parent-thread)
`(macro-make-condvar #f))
(##define-macro (macro-make-thread-cont parent-thread)
`(macro-make-continuation (macro-end-of-cont-marker) #f))
(##define-macro (macro-make-thread-denv parent-thread)
`(let ((denv (macro-thread-denv ,parent-thread)))
(macro-make-denv
(macro-denv-local denv)
##initial-dynwind
(macro-denv-interrupt-mask denv)
(macro-denv-debugging-settings denv)
(##cons ##current-exception-handler
(macro-primordial-exception-handler))
(macro-denv-input-port denv)
(macro-denv-output-port denv)
(##cons #f
#f))))
(##define-macro (macro-make-thread-denv-cache1 parent-thread)
`(macro-thread-denv-cache1 ,parent-thread))
(##define-macro (macro-make-thread-denv-cache2 parent-thread)
`(macro-thread-denv-cache2 ,parent-thread))
(##define-macro (macro-make-thread-denv-cache3 parent-thread)
`(macro-thread-denv-cache3 ,parent-thread))
(##define-macro (macro-thread-init! thread thunk name tgroup)
`(let ((thread ,thread) (thunk ,thunk) (name ,name) (tgroup ,tgroup))
(##declare (not interrupts-enabled))
(let ((p (macro-current-thread)))
(macro-thread-tgroup-set! thread tgroup)
(macro-thread-floats-set! thread (macro-make-thread-floats p))
(macro-thread-name-set! thread name)
(macro-thread-end-condvar-set! thread (macro-make-thread-end-condvar p))
(macro-thread-resume-thunk-set! thread
(lambda ()
(##thread-execute-and-end! thunk)))
(macro-thread-cont-set! thread (macro-make-thread-cont p))
(macro-thread-denv-set! thread (macro-make-thread-denv p))
(macro-thread-denv-cache1-set! thread (macro-make-thread-denv-cache1 p))
(macro-thread-denv-cache2-set! thread (macro-make-thread-denv-cache2 p))
(macro-thread-denv-cache3-set! thread (macro-make-thread-denv-cache3 p))
(macro-btq-deq-init! thread)
(macro-tgroup-threads-deq-insert-at-tail! tgroup thread)
thread)))
(##define-macro (macro-make-thread thunk name tgroup)
`(let ((thunk ,thunk) (name ,name) (tgroup ,tgroup))
(##declare (not interrupts-enabled))
(macro-thread-init! (macro-construct-thread) thunk name tgroup)))
(##define-macro (macro-thread-btq-remove-if-in-btq! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
(if (macro-btq-parent thread)
(##thread-btq-remove! thread))))
(##define-macro (macro-thread-toq-remove-if-in-toq! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
(if (macro-toq-parent thread)
(##thread-toq-remove! thread))))
(##define-macro (macro-thread-reschedule-if-needed!)
`(let ()
(##declare (not interrupts-enabled))
(let ((leftmost (macro-btq-leftmost (macro-current-processor))))
(if (##not (##eq? leftmost (macro-current-thread)))
(##thread-reschedule!)
(##void)))))
(##define-macro (macro-thread-save! proc . args)
`(##thread-save! ,proc ,@args))
(##define-macro (macro-thread-restore! thread proc . args)
`(##thread-restore! ,thread ,proc ,@args))
(##define-macro (macro-current-processor)
`(##current-processor))
(##define-macro (macro-primordial-thread)
`##primordial-thread)
(##define-macro (macro-current-thread)
`(##current-thread))
(##define-macro (macro-primordial-exception-handler)
`##primordial-exception-handler)
(##define-macro (macro-thread-higher-prio? t1 t2)
`(let ((t1 ,t1) (t2 ,t2))
(let ((floats1 (macro-thread-floats t1))
(floats2 (macro-thread-floats t2)))
(##fl< (macro-effective-priority floats2) ;; high priority first
(macro-effective-priority floats1)))))
(##define-macro (macro-thread-sooner? t1 t2)
`(let ((t1 ,t1) (t2 ,t2))
(let ((floats1 (macro-thread-floats t1))
(floats2 (macro-thread-floats t2)))
(##fl< (macro-timeout floats1)
(macro-timeout floats2)))))
(##define-macro (macro-thread-sooner-or-simultaneous-and-higher-prio? t1 t2)
`(let ((t1 ,t1) (t2 ,t2))
(let ((floats1 (macro-thread-floats t1))
(floats2 (macro-thread-floats t2)))
(if (##not (##fl= (macro-timeout floats1)
(macro-timeout floats2)))
(##fl< (macro-timeout floats1)
(macro-timeout floats2))
(##fl< (macro-effective-priority floats2) ;; high priority first
(macro-effective-priority floats1))))))
(##define-macro (macro-thread-boost-and-clear-quantum-used! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
(let ((floats (macro-thread-floats thread)))
(macro-quantum-used-set! floats (macro-inexact-+0))
(if (##not (##fl= (##fl+ (macro-base-priority floats)
(macro-priority-boost floats))
(macro-boosted-priority floats)))
(begin
;; save old boosted priority for ##thread-boosted-priority-changed!
(macro-temp-set!
(macro-thread-floats (macro-current-processor))
(macro-boosted-priority floats))
(macro-boosted-priority-set!
floats
(##fl+ (macro-base-priority floats)
(macro-priority-boost floats)))
(##thread-boosted-priority-changed! thread))))))
(##define-macro (macro-thread-unboost-and-clear-quantum-used! thread)
`(let ((thread ,thread))
(##declare (not interrupts-enabled))
(let ((floats (macro-thread-floats thread)))
(macro-quantum-used-set! floats (macro-inexact-+0))
(if (##not (##fl= (macro-base-priority floats)
(macro-boosted-priority floats)))
(begin
;; save old boosted priority for ##thread-boosted-priority-changed!
(macro-temp-set!
(macro-thread-floats (macro-current-processor))
(macro-boosted-priority floats))
(macro-boosted-priority-set!
floats
(macro-base-priority floats))
(##thread-boosted-priority-changed! thread))))))
(##define-macro (macro-thread-inherit-priority! thread parent);;;;;;;;;;;;;;;
`(let ((thread ,thread) (parent ,parent))
(##declare (not interrupts-enabled))
(let ((thread-floats (macro-thread-floats thread))
(parent-floats (macro-thread-floats parent)))
(if (##fl< (macro-effective-priority thread-floats)
(macro-effective-priority parent-floats))
(begin
(macro-effective-priority-set!
thread-floats
(macro-effective-priority parent-floats))
(##thread-effective-priority-changed! thread #t))))))
;;; Representation of thread mailboxes.
(define-type mailbox
id: f1bd59e2-25fc-49af-b624-e00f0c5975f8
type-exhibitor: macro-type-mailbox
constructor: macro-construct-mailbox
implementer: implement-type-mailbox
predicate: macro-mailbox?
opaque:
macros:
prefix: macro-
unprintable:
mutex
condvar
fifo
cursor
)
(##define-macro (macro-make-mailbox)
`(let ((mutex (macro-make-mutex #f))
(condvar (macro-make-condvar #f))
(fifo (macro-make-fifo)))
(macro-construct-mailbox mutex condvar fifo #f)))
;;; Representation of mutexes.
(define-type mutex
id: 42fe9aac-e9c6-4227-893e-a0ad76f58932
type-exhibitor: macro-type-mutex
constructor: macro-construct-mutex
implementer: implement-type-mutex
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 2 and 3 are for maintaining this mutex in a deq of btqs
;; fields 4 to 6 are for maintaining a queue of blocked threads
;; field 7 is the leftmost thread in the queue of blocked threads
;; field 8 is the owner of the mutex (or 'not-owned or 'abandoned
;; or 'not-abandoned)
(lock1 init: 0)
(btq-deq-next init: #f)
(btq-deq-prev init: #f)
(btq-color init: #f)
(btq-parent init: #f)
(btq-left init: #f)
(btq-leftmost init: #f)
(btq-owner init: 'not-abandoned) ;; see (macro-mutex-state-not-abandoned)
(lock2 init: 0)
(name
macro-mutex-name
macro-mutex-name-set!)
(specific
macro-mutex-specific
macro-mutex-specific-set!)
)
;; Mutex states (aside from "owned")
(##define-macro (macro-mutex-state-not-owned) ''not-owned)
(##define-macro (macro-mutex-state-abandoned) ''abandoned)
(##define-macro (macro-mutex-state-not-abandoned) ''not-abandoned)
(##define-macro (macro-make-mutex name)
`(let ((name ,name))
(let ((mutex (macro-construct-mutex name (##void))))
(macro-btq-deq-init! mutex)
(macro-btq-init! mutex)
mutex)))
(##define-macro (macro-mutex-unlocked-not-abandoned-and-not-multiprocessor? mutex)
`(##eq? (macro-btq-owner ,mutex)
(macro-mutex-state-not-abandoned)))
(##define-macro (macro-mutex-lock! mutex absrel-timeout new-owner)
`(let ((mutex ,mutex) (absrel-timeout ,absrel-timeout) (new-owner ,new-owner))
(##declare (not interrupts-enabled))
(##primitive-lock! mutex 1 9)
(let ((owner (macro-btq-owner mutex)))
(if (##eq? owner (macro-mutex-state-not-abandoned))
(begin
(macro-btq-link! mutex new-owner)
(##primitive-unlock! mutex 1 9)
#t)
(begin
(##primitive-unlock! mutex 1 9)
(##mutex-lock-out-of-line! mutex absrel-timeout owner new-owner))))))
(##define-macro (macro-mutex-lock-anonymously! mutex absrel-timeout)
`(let ((mutex ,mutex) (absrel-timeout ,absrel-timeout))
(##declare (not interrupts-enabled))
(##primitive-lock! mutex 1 9)
(let ((owner (macro-btq-owner mutex)))
(if (##eq? owner (macro-mutex-state-not-abandoned))
(begin
(macro-btq-owner-set! mutex (macro-mutex-state-not-owned))
(##primitive-unlock! mutex 1 9)
#t)
(begin
(##primitive-unlock! mutex 1 9)
(##mutex-lock-out-of-line! mutex absrel-timeout owner #f))))))
(##define-macro (macro-mutex-unlock! mutex)
`(let ((mutex ,mutex))
(##declare (not interrupts-enabled))
(##primitive-lock! mutex 1 9)
(macro-btq-deq-remove! mutex)
(let ((leftmost (macro-btq-leftmost mutex)))
(if (##eq? leftmost mutex)
(begin
(macro-btq-unlink! mutex (macro-mutex-state-not-abandoned))
(##primitive-unlock! mutex 1 9)
(##void))
(##mutex-signal! mutex leftmost #f)))))
(##define-macro (macro-mutex-unlock-no-reschedule! mutex)
`(let ((mutex ,mutex))
(##declare (not interrupts-enabled))
(##primitive-lock! mutex 1 9)
(macro-btq-deq-remove! mutex)
(let ((leftmost (macro-btq-leftmost mutex)))
(if (##eq? leftmost mutex)
(begin
(macro-btq-unlink! mutex (macro-mutex-state-not-abandoned))
(##primitive-unlock! mutex 1 9)
(##void))
(##mutex-signal-no-reschedule! mutex leftmost #f)))))
;;; Representation of condition variables.
(define-type condition-variable
id: 6bd864f0-27ec-4639-8044-cf7c0135d716
type-exhibitor: macro-type-condvar
constructor: macro-construct-condvar
implementer: implement-type-condvar
predicate: macro-condvar?
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 2 and 3 are for maintaining this condition variable in a deq of btqs
;; fields 4 to 6 are for maintaining a queue of blocked threads
;; field 7 is the leftmost thread in the queue of blocked threads
;; field 8 is the owner of the condition variable
(lock1 init: 0)
(btq-deq-next init: #f)
(btq-deq-prev init: #f)
(btq-color init: #f)
(btq-parent init: #f)
(btq-left init: #f)
(btq-leftmost init: #f)
(btq-owner init: #f)
(lock2 init: 0)
(name
macro-condvar-name
macro-condvar-name-set!)
(specific
macro-condvar-specific
macro-condvar-specific-set!)
)
(##define-macro (macro-make-condvar name)
`(let ((name ,name))
(let ((condvar (macro-construct-condvar name (##void))))
(macro-btq-deq-init! condvar)
(macro-btq-init! condvar)
condvar)))
;;; Representation of thread groups.
(define-type thread-group
id: 713f0ba8-1d76-4a68-8dfa-eaebd4aef1e3
type-exhibitor: macro-type-tgroup
constructor: macro-construct-tgroup
implementer: implement-type-tgroup
predicate: macro-tgroup?
opaque:
macros:
prefix: macro-
unprintable:
(tgroups-deq-next
macro-tgroup-tgroups-deq-next
macro-tgroup-tgroups-deq-next-set!)
(tgroups-deq-prev
macro-tgroup-tgroups-deq-prev
macro-tgroup-tgroups-deq-prev-set!)
(tgroups
macro-tgroup-tgroups
macro-tgroup-tgroups-set!)
(parent
macro-tgroup-parent
macro-tgroup-parent-set!)
(name
macro-tgroup-name
macro-tgroup-name-set!)
(suspend-condvar
macro-tgroup-suspend-condvar
macro-tgroup-suspend-condvar-set!)
(specific
macro-tgroup-specific
macro-tgroup-specific-set!)
(unused1
macro-tgroup-unused1
macro-tgroup-unused1-set!)
(unused2
macro-tgroup-unused2
macro-tgroup-unused2-set!)
(unused3
macro-tgroup-unused3
macro-tgroup-unused3-set!)
(unused4
macro-tgroup-unused4
macro-tgroup-unused4-set!)
(unused5
macro-tgroup-unused5
macro-tgroup-unused5-set!)
(unused6
macro-tgroup-unused6
macro-tgroup-unused6-set!)
(threads-deq-next ;; must be at same pos as the same name field in a thread
macro-tgroup-threads-deq-next
macro-tgroup-threads-deq-next-set!)
(threads-deq-prev ;; must be at same pos as the same name field in a thread
macro-tgroup-threads-deq-prev
macro-tgroup-threads-deq-prev-set!)
)
(##define-macro (macro-make-tgroup name parent)
`(let ((name ,name) (parent ,parent))
(let* ((tgroups
(##vector #f #f #f))
(tgroup
(macro-construct-tgroup
#f
#f
tgroups
parent
name
#f
#f
#f
#f
#f
#f
#f
#f
#f
#f)))
(macro-tgroup-tgroups-deq-init! tgroups)
(macro-tgroup-threads-deq-init! tgroup)
(if parent
(macro-tgroup-tgroups-deq-insert-at-tail!
(macro-tgroup-tgroups parent)
tgroup))
tgroup)))
(define-deq
macro-tgroup-tgroups-deq-init!
macro-tgroup-tgroups-deq-insert-at-head!
macro-tgroup-tgroups-deq-insert-at-tail!
macro-tgroup-tgroups-deq-remove!
macro-tgroup-tgroups-deq-empty?
macro-tgroup-tgroups-deq-head
macro-tgroup-tgroups-deq-tail
macro-tgroup-tgroups-deq-next
macro-tgroup-tgroups-deq-next-set!
macro-tgroup-tgroups-deq-prev
macro-tgroup-tgroups-deq-prev-set!)
(define-deq
macro-tgroup-threads-deq-init!
macro-tgroup-threads-deq-insert-at-head!
macro-tgroup-threads-deq-insert-at-tail!
macro-tgroup-threads-deq-remove!
macro-tgroup-threads-deq-empty?
macro-tgroup-threads-deq-head
macro-tgroup-threads-deq-tail
macro-tgroup-threads-deq-next
macro-tgroup-threads-deq-next-set!
macro-tgroup-threads-deq-prev
macro-tgroup-threads-deq-prev-set!)
;;;----------------------------------------------------------------------------
;;; Representation of the processor state. This is the part of the
;;; processor state that is implemented at the Scheme level (the other
;;; part of the processor state is implemented at the host language level).
;;; Note that this structure used to be called a "run queue" because it
;;; is mostly used by the scheduler to maintain the set of runnable threads.
;;; However it also includes other information which is conceptually part
;;; of the processor state.
;;; TODO: consider pre-allocating this structure so there is less
;;; pressure on the garbage collector.
(define-type processor
id: A6899D11-290C-42A6-B47A-57C6B908698F
type-exhibitor: macro-type-processor
constructor: macro-construct-processor
implementer: implement-type-processor
predicate: macro-processor?
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 2 and 3 are the deq links of blocking device condvars
;; fields 4 to 6 are for maintaining a queue of runnable threads
;; field 7 is the leftmost thread in the queue of runnable threads
;; field 8 must be #f (the queue of runnable threads has no owner)
;; fields 10 to 11 are for maintaining a timeout queue of threads
;; field 13 is the leftmost thread in the timeout queue of threads
;; field 14 is the thread currently running on this processor
;; field 16 is for storing the current time, heartbeat interval and a
;; temporary float
;; fields 17 and 18 are the deq links of blocked processors
;; field 19 is the id of the processor
;; field 20 is the queue of pending high-level interrupts
lock1
condvar-deq-next
condvar-deq-prev
btq-color
btq-parent
btq-left
btq-leftmost
false
lock2
toq-color
toq-parent
toq-left
toq-leftmost
current-thread
unused-field15
floats
processor-deq-next
processor-deq-prev
id
interrupts
)
(##define-macro (macro-make-floats)
`(##f64vector (macro-inexact-+0)
(macro-inexact-+0)
(macro-inexact-+0)))
(##define-macro (macro-current-time f) `(##f64vector-ref ,f 0))
(##define-macro (macro-current-time-set! f x) `(##f64vector-set! ,f 0 ,x))
(##define-macro (macro-heartbeat-interval f) `(##f64vector-ref ,f 1))
(##define-macro (macro-heartbeat-interval-set! f x)`(##f64vector-set! ,f 1 ,x))
(##define-macro (macro-temp f) `(##f64vector-ref ,f 2))
(##define-macro (macro-temp-set! f x) `(##f64vector-set! ,f 2 ,x))
(##define-macro (macro-get-heartbeat-interval f)
`(begin
(##get-heartbeat-interval! ,f 1)
(macro-heartbeat-interval ,f)))
(##define-macro (macro-update-current-time!)
`(##get-current-time! (macro-thread-floats (macro-current-processor)) 0))
(##define-macro (macro-make-processor id)
`(let ((processor
(macro-construct-processor
0
#f
#f
#f
#f
#f
#f
#f
0
#f
#f
#f
#f
#f
#f
(macro-make-floats)
#f
#f
,id
'())))
(macro-btq-deq-init! processor)
(macro-btq-init! processor)
(macro-toq-init! processor)
(macro-processor-deq-init! processor)
processor))
(##define-macro (macro-processor-init! processor id)
`(let ((processor ,processor) (id ,id))
(##structure-type-set! processor (macro-type-processor))
(macro-processor-floats-set!
processor
(##f64vector (macro-inexact-+0)
(macro-inexact-+0)
(macro-inexact-+0)))
(macro-btq-deq-init! processor)
(macro-btq-init! processor)
(macro-toq-init! processor)
(macro-processor-deq-init! processor)
(macro-processor-id-set! processor id)
(macro-processor-interrupts-set! processor '())
processor))
;;;----------------------------------------------------------------------------
;;; Representation of processor queues.
(##define-macro (macro-processor-deq-next node)
`(macro-struct-slot 17 ,node))
(##define-macro (macro-processor-deq-next-set! node x)
`(macro-struct-slot 17 ,node ,x))
(##define-macro (macro-processor-deq-prev node)
`(macro-struct-slot 18 ,node))
(##define-macro (macro-processor-deq-prev-set! node x)
`(macro-struct-slot 18 ,node ,x))
;;; Define operations on processor queues.
(define-deq
macro-processor-deq-init!
macro-processor-deq-insert-at-head!
macro-processor-deq-insert-at-tail!
macro-processor-deq-remove!
macro-processor-deq-empty?
macro-processor-deq-head
macro-processor-deq-tail
macro-processor-deq-next
macro-processor-deq-next-set!
macro-processor-deq-prev
macro-processor-deq-prev-set!)
;;;----------------------------------------------------------------------------
;;; Representation of the VM state. This is the part of the VM state
;;; that is implemented at the Scheme level (the other part of the VM
;;; state is implemented at the host language level).
;;; TODO: consider pre-allocating this structure so there is less
;;; pressure on the garbage collector.
(define-type vm
id: F86D8C06-0129-4798-B170-49E593E6A7FD
type-exhibitor: macro-type-vm
constructor: macro-construct-vm
implementer: implement-type-vm
predicate: macro-vm?
opaque:
macros:
prefix: macro-
unprintable:
;; fields 1 and 9 are for locking in a multiprocessor system
;; fields 17 and 18 are the deq links of blocked processors
;; field 19 is count of processors blocked and not waiting for a timeout
lock1
unused-field2
unused-field3
unused-field4
unused-field5
unused-field6
unused-field7
unused-field8
lock2
unused-field10
unused-field11
unused-field12
unused-field13
unused-field14
unused-field15
unused-field16
processor-deq-next
processor-deq-prev
idle-processor-count
)
(##define-macro (macro-make-vm)
`(let ((vm
(macro-construct-vm
0
#f
#f
#f
#f
#f
#f
#f
0
#f
#f
#f
#f
#f
#f
#f
#f
#f
0)))
(macro-processor-deq-init! vm)
vm))
(##define-macro (macro-vm-init! vm)
`(let ((vm ,vm))
(##structure-type-set! vm (macro-type-vm))
(macro-processor-deq-init! vm)
(macro-vm-idle-processor-count-set! vm 0)
vm))
;;;----------------------------------------------------------------------------
;;; Representation of thread states.
(define-library-type thread-state-uninitialized
id: c63af440-d5ef-4f02-8fe6-40836a312fae
constructor: #f
opaque:
)
(define-library-type thread-state-initialized
id: 47368926-951d-4451-92b0-dd9b4132eca9
constructor: #f
opaque:
)
(define-library-type thread-state-normally-terminated
id: c475ff99-c959-4784-a847-b0c52aff8f2a
constructor: #f
opaque:
(result unprintable: read-only: no-functional-setter:)
)
(define-library-type thread-state-abnormally-terminated
id: 291e311e-93e0-4765-8132-56a719dc84b3
constructor: #f
opaque:
(reason unprintable: read-only: no-functional-setter:)
)
(define-library-type thread-state-waiting
id: eb5a81e1-5061-4074-a27e-cc706735d39a
constructor: #f
opaque:
(for unprintable: read-only: no-functional-setter:)
(timeout unprintable: read-only: no-functional-setter:)
)
(define-library-type thread-state-running
id: f839d55a-1d42-4b64-97a6-2d16921dc0b7
constructor: #f
opaque:
(processor unprintable: read-only: no-functional-setter:)
)
;;;============================================================================
))
| true |
51912f5caa7229de3e1d91b576dd825f5ad28723 | c51f6a2ddfedc49313106d935141286eb0a13256 | /PAPR2/papr2_07.scm | 4c5ba08768d3ec06bd8f21ef235dec32ab5bfbda | []
| no_license | Emp3r/School | 395970f68238cf4e1723241d578b17113f0412b8 | 0814b06931939f3d745713c16c64e5d8adc783f6 | refs/heads/master | 2021-01-14T08:04:25.875803 | 2017-03-26T13:47:13 | 2017-03-26T13:47:13 | 17,414,260 | 0 | 1 | null | 2017-03-26T13:47:13 | 2014-03-04T19:35:00 | Scheme | UTF-8 | Scheme | false | false | 1,852 | scm | papr2_07.scm | (define-syntax foreach
(syntax-rules (in do)
((foreach var in list do body ...)
(let loop ((l list))
(if (not (null? l))
(let ((var (car l)))
body ...
(loop (cdr l))))))))
;(foreach cislo in '(1 4 5 7) do (display cislo) (display " ")) (newline)
;(foreach cislo in '(0 1 2 3 4 5 6 7 8 9) do (display (* cislo cislo)) (display " ")) (newline)
(define-syntax myfor
(syntax-rules (:= to modified by do)
((myfor var := start to end modified by procedure do body ...)
(let loop ((i start))
(if (<= i end)
(let ((var (procedure i)))
body ...
(loop (+ i 1))))))))
;(myfor xyz := 5 to 10 modified by (lambda (x) (* x x 2)) do (display xyz) (display " ")) (newline)
;PROC-OR ???
(define-syntax for
(syntax-rules (in do)
((for param in values do body ...)
(let loop ((l values))
(if (not (apply proc-or (map null? l)))
(begin
(apply (lambda vars body ...)
(map car l))
(loop (map cdr l))))))))
;(for (a b) in '((1 2) (3 4)) do (display a) (display " ") (display b) (newline))
(define-syntax multifor
(syntax-rules (in do)
((multifor ((var in value ...) ...) do body ...)
(let-syntax ((m-for (syntax-rules (in do)
((m-for vars in lists do stmt)
(let loop ((l lists))
(if (not (null? (car l)))
(begin
(apply (lambda vars stmt)
(map car l))
(loop (map cdr l)))))))))
(m-for (var ...) in '((value ...) ...) do (begin body ...))))))
;(multifor ((a in 1 2) (b in 3 4)) do (display a) (display " ") (display b) (newline))
| true |
b0f4417a22f01a71e9c0c30a8b9813ea28a9f784 | f64f5a8f22d6eae00d4d50d899fdecb65a8539dc | /srfi/29.sld | 25f3527c909790e2af73f1f92142a032cf7fdc1a | [
"BSD-3-Clause"
]
| permissive | sethalves/snow2-client | 79907fe07c218d21c4d60f1787a22e8bfea062f9 | b70c3ca5522a666a71a4c8992f771d5faaceccd6 | refs/heads/master | 2021-05-16T02:08:21.326561 | 2019-03-18T02:44:11 | 2019-03-18T02:44:11 | 11,485,062 | 16 | 3 | BSD-3-Clause | 2018-08-14T16:37:09 | 2013-07-17T19:13:22 | Scheme | UTF-8 | Scheme | false | false | 8,767 | sld | 29.sld | (define-library (srfi 29)
(export format)
(import (scheme base)
(scheme char)
(scheme write))
(cond-expand
(chibi
(import (chibi io)))
(sagittarius
(import (srfi :29)))
(else))
(begin
;; Basic Format Strings
;; http://srfi.schemers.org/srfi-28/srfi-28.html
;; Localization (with format)
;; http://srfi.schemers.org/srfi-29/srfi-29.html
;; Intermediate Format Strings
;; http://srfi.schemers.org/srfi-48/srfi-48.html
;; slib has format
;; http://people.csail.mit.edu/jaffer/slib/Format-Specification.html
;; CHICKEN fmt egg
;; http://wiki.call-cc.org/eggref/4/fmt
(cond-expand
((or gauche sagittarius chicken))
((or chibi foment kawa)
;; The association list in which bundles will be stored
(define *localization-bundles* '())
;; The current-language and current-country functions provided
;; here must be rewritten for each Scheme system to default to the
;; actual locale of the session
(define current-language
(let ((current-language-value 'en))
(lambda args
(if (null? args)
current-language-value
(set! current-language-value (car args))))))
(define current-country
(let ((current-country-value 'us))
(lambda args
(if (null? args)
current-country-value
(set! current-country-value (car args))))))
;; The load-bundle! and store-bundle! both return #f in this
;; reference implementation. A compliant implementation need
;; not rewrite these procedures.
;; (define load-bundle!
;; (lambda (bundle-specifier)
;; #f))
;; (define store-bundle!
;; (lambda (bundle-specifier)
;; #f))
;; Declare a bundle of templates with a given bundle specifier
;; (define declare-bundle!
;; (letrec ((remove-old-bundle
;; (lambda (specifier bundle)
;; (cond ((null? bundle) '())
;; ((equal? (caar bundle) specifier)
;; (cdr bundle))
;; (else (cons (car bundle)
;; (remove-old-bundle specifier
;; (cdr bundle))))))))
;; (lambda (bundle-specifier bundle-assoc-list)
;; (set! *localization-bundles*
;; (cons (cons bundle-specifier bundle-assoc-list)
;; (remove-old-bundle bundle-specifier
;; *localization-bundles*))))))
;;Retrieve a localized template given its package name and a template name
(define localized-template
(letrec ((rdc
(lambda (ls)
(if (null? (cdr ls))
'()
(cons (car ls) (rdc (cdr ls))))))
(find-bundle
(lambda (specifier template-name)
(cond ((assoc specifier *localization-bundles*) =>
(lambda (bundle) bundle))
((null? specifier) #f)
(else (find-bundle (rdc specifier)
template-name))))))
(lambda (package-name template-name)
(let loop ((specifier (cons package-name
(list (current-language)
(current-country)))))
(and (not (null? specifier))
(let ((bundle (find-bundle specifier template-name)))
(and bundle
(cond ((assq template-name bundle) => cdr)
((null? (cdr specifier)) #f)
(else (loop (rdc specifier))))))))))))
(else))
(cond-expand
((or gauche sagittarius))
((or chibi chicken foment kawa)
;;An SRFI-28 and SRFI-29 compliant version of format. It requires
;;SRFI-23 for error reporting.
(define format
(lambda (format-string . objects)
(let ((buffer (open-output-string)))
(let loop ((format-list (string->list format-string))
(objects objects)
(object-override #f))
(cond ((null? format-list) (get-output-string buffer))
((char=? (car format-list) #\~)
(cond ((null? (cdr format-list))
(error 'format "Incomplete escape sequence"))
((char-numeric? (cadr format-list))
(let posloop ((fl (cddr format-list))
(pos (string->number
(string (cadr format-list)))))
(cond ((null? fl)
(error 'format "Incomplete escape sequence"))
((and (eq? (car fl) '#\@)
(null? (cdr fl)))
(error 'format "Incomplete escape sequence"))
((and (eq? (car fl) '#\@)
(eq? (cadr fl) '#\*))
(loop (cddr fl) objects (list-ref objects pos)))
(else
(posloop (cdr fl)
(+ (* 10 pos)
(string->number
(string (car fl)))))))))
(else
(case (cadr format-list)
((#\a)
(cond (object-override
(begin
(display object-override buffer)
(loop (cddr format-list) objects #f)))
((null? objects)
(error 'format "No value for escape sequence"))
(else
(begin
(display (car objects) buffer)
(loop (cddr format-list)
(cdr objects) #f)))))
((#\s)
(cond (object-override
(begin
(display object-override buffer)
(loop (cddr format-list) objects #f)))
((null? objects)
(error 'format "No value for escape sequence"))
(else
(begin
(write (car objects) buffer)
(loop (cddr format-list)
(cdr objects) #f)))))
((#\%)
(if object-override
(error 'format "Escape sequence following positional override does not require a value"))
(display #\newline buffer)
(loop (cddr format-list) objects #f))
((#\~)
(if object-override
(error 'format "Escape sequence following positional override does not require a value"))
(display #\~ buffer)
(loop (cddr format-list) objects #f))
(else
(error 'format "Unrecognized escape sequence"))))))
(else (display (car format-list) buffer)
(loop (cdr format-list) objects #f)))))))
;; ;; adapted from srfi-48 -- allow first parameter to be port or boolean
;; (define (format . args)
;; (cond
;; ((null? args)
;; (error "FORMAT: required format-string argument is missing"))
;; ((string? (car args))
;; (apply format~ args))
;; ((< (length args) 2)
;; (error (format #f "FORMAT: too few arguments ~s" (cons 'format args))))
;; ((eq? (car args) #f)
;; (apply format~ (cdr args)))
;; (else
;; (let* ((output-port (car args))
;; (args (cdr args))
;; (port (cond ((output-port? output-port) output-port)
;; ((eq? output-port #t) (current-output-port))
;; (else (error
;; (format #f "FORMAT: bad output-port argument: ~s"
;; output-port))))))
;; (display (apply format~ args) port)
;; #t))))
))))
| false |
a29facd8971ef885c5e49a59de271c59bde8d61b | 557c51d080c302a65e6ef37beae7d9b2262d7f53 | /workspace/scheme-tester/tests/paranthec.scm | e6dae20b67d9ab6ea70dac0174db8d7b613c8f70 | []
| no_license | esaliya/SchemeStack | 286a18a39d589773d33e628f81a23bcdd0fc667b | dcfa1bbfa63b928a7ea3fc244f305369763678ad | refs/heads/master | 2020-12-24T16:24:08.591437 | 2016-03-08T15:30:37 | 2016-03-08T15:30:37 | 28,023,003 | 3 | 4 | null | null | null | null | UTF-8 | Scheme | false | false | 10,055 | scm | paranthec.scm | (load "pmatch.scm")
;;*************************************************************************************
;;*************************************************************************************
;; Syntax: define-label,
;; mount-trampoline,
;; dismount-trampoline,
;; define-union,
;; union-case,
;; union-case/free
;;; A very handy macro for making consistent error messages.
(define-syntax pc-err
(syntax-rules ()
[(_ who code (str arg ...))
(begin
(printf "\nParentheC Error - In Expression:\n\n")
(pretty-print code)
(error who str arg ...))]))
;;; Table needed for define-label
(define **pc-func-name-table** '())
(define pc-add-func-name!
(lambda (func-name)
(set! **pc-func-name-table**
(cons func-name **pc-func-name-table**))))
(define pc-func-name-exists?
(lambda (fn)
(memv fn **pc-func-name-table**)))
;;; define-label
(define-syntax define-label
(lambda (x)
(pc-error-check:define-label (syntax-object->datum x))
(syntax-case x ()
[(_ fn body ...)
(pc-add-func-name! (syntax-object->datum #'fn))
#'(define fn (lambda () body ...))])))
(define pc-error-check:define-label
(lambda (code)
(pmatch code
[(define-label ,fn)
(pc-err 'define-label code ("must have at least one body"))]
[(define-label (,fn . ,p*) ,body)
(pc-err 'define-label code ("cannot have any parameters"))]
[(define-label ,fn ,body . ,body*)
(if (pc-func-name-exists? fn)
(pc-err 'define-label code
("function name ~s already exists" fn)))]
[else (pc-err 'define-label code ("invalid syntax"))])))
;;; Trivial helper functions
(define pc-check-set-of-vars
(letrec
([set-of-vars?
(lambda (ls)
(or (null? ls)
(and (not (memv (car ls) (cdr ls))) (set-of-vars? (cdr ls)))))])
(lambda (who code vars)
(if (not (set-of-vars? vars))
(pc-err who code ("duplicate variable used: ~s" vars))))))
;;; Table needed for define-union
(define **pc-union-type-table** `())
(define pc-add-union-type!
(lambda (union-type sub-tn* arg-count*)
(set! **pc-union-type-table**
(cons `(,union-type ,(map cons sub-tn* arg-count*)) **pc-union-type-table**))))
(define pc-union-type-exists?
(lambda (union-type)
(assv union-type **pc-union-type-table**)))
;;; define-union
(define-syntax define-union
(lambda (x)
(pc-error-check:define-union (syntax-object->datum x))
(syntax-case x ()
[(_ union-type [sub-tn arg* ...] ...)
(let ([ut-val (syntax-object->datum #'union-type)]
[st*-val (syntax-object->datum #'(sub-tn ...))]
[arg-count*-val (map length (syntax-object->datum #'((arg* ...) ...)))])
(with-syntax
([(constructor-fn* ...)
(datum->syntax-object #'_
(map (lambda (st-val)
(string->symbol (format "~s_~s" ut-val st-val)))
st*-val))]
[(arg-count* ...)
(datum->syntax-object #'_ arg-count*-val)])
(pc-add-union-type! ut-val st*-val arg-count*-val)
#'(begin
(define constructor-fn*
(lambda n-arg
(if (eq? (length n-arg) arg-count*)
`(union-type sub-tn ,@n-arg)
(pc-err 'constructor-fn* `(constructor-fn* ,@n-arg)
("wrong number of arguments to constructor: expected ~s"
arg-count*)))))
...)))])))
(define pc-error-check:define-union
(lambda (code)
(pmatch code
[(define-union ,union-type)
(pc-err 'define-union code
("must have at least one sub-type in union-type: ~s" union-type))]
[(define-union ,union-type . ,c*)
(let ((sub-tn* (map car c*))
(arg** (map cdr c*)))
(pc-check-set-of-vars 'define-union code sub-tn*)
(for-each
(lambda (arg*)
(pc-check-set-of-vars 'define-union code arg*))
arg**)
(if (pc-union-type-exists? union-type)
(pc-err 'define-union code
("union-type ~s already exists" union-type))))]
[else (pc-err 'define-union code ("invalid syntax"))])))
;;; union-case and union-case/free
(define-syntax union-case
(lambda (x)
(syntax-case x ()
[(_ exp union-type [(sub-tn arg* ...) body* ...] ...)
#'(general-union-case union-case exp union-type
[(sub-tn arg* ...) body* ...] ...)])))
(define-syntax union-case/free
(lambda (x)
(syntax-case x ()
[(_ exp union-type [(sub-tn arg* ...) body* ...] ...)
#'(general-union-case union-case/free exp union-type
[(sub-tn arg* ...) body* ...] ...)])))
(define-syntax general-union-case
(lambda (x)
(let ([code (syntax-object->datum x)])
(pc-error-check:general-union-case code (cadr code)))
(syntax-case x ()
[(_ label var union-type [(sub-tn arg* ...) body] ...)
#'(let ([code '(label exp union-type [(sub-tn arg* ...) body] ...)])
(if (not (pc-valid-variant? 'union-type var))
(pc-err 'label code
("invalid datum for union-type \"~s\": ~s" 'union-type var)))
(case (cadr var)
[sub-tn (apply (lambda (arg* ...) body) (cddr var))]
...
[else (pc-err
'label code
("It should never come here: ~s, ~s" var 'union-type))]))])))
(define pc-valid-variant?
(lambda (union-type variant)
(and
(list? variant)
(>= (length variant) 2)
(let ([ut (car variant)]
[st (cadr variant)]
[arg-count (length (cddr variant))])
(and
(eqv? union-type ut)
(let ([type (assoc union-type **pc-union-type-table**)])
(and type
(member `(,st . ,arg-count) (cadr type)))))))))
(define pc-error-check:general-union-case
(lambda (code who)
(pmatch code
[(general-union-case ,label ,var ,union-type)
(pc-err who code ("all union-type must have at least one sub-type"))]
[(general-union-case ,label ,var ,union-type . ,c*)
(let* ((test* (map car c*))
(sub-tn* (map car test*))
(arg** (map cdr test*))
(body** (map cdr c*)))
(pc-check-set-of-vars who code `(,var ,union-type))
(pc-check-set-of-vars who code sub-tn*)
(for-each
(lambda (arg*)
(pc-check-set-of-vars who code arg*))
arg**)
(if (ormap null? body**)
(pc-err who code
("all union-case clause must contain at least one body")))
(pc-union-type-does-not-exist? who var union-type
sub-tn* arg** body**))]
[else (pc-err who code ("invalid syntax"))])))
(define lookup-union
(lambda (name)
(let loop ([reg **pc-union-type-table**])
(cond
[(null? reg) (error 'lookup-union
"union type `~a' not defined ~n" name)]
[(eq? name (caar reg)) (car reg)]
[else (loop (cdr reg))]))))
(define check-union-case
(lambda (expr name type case)
(cond
[(and (null? type) (not (null? case)))
(let ([s (open-output-string)])
(pretty-print expr s)
(error 'union-case "~a\nsuperfluous cases for union type `~a': ~a"
(get-output-string s) name case))]
[(and (null? case) (not (null? type)))
(let ([s (open-output-string)])
(pretty-print expr s)
(error 'union-case "~a\nunmatched cases for union type `~a': ~a"
(get-output-string s) name type))]
[(and (null? type) (null? case)) #t]
[(not (memq (car case) type))
(let ([s (open-output-string)])
(pretty-print expr s)
(error 'union-case "~a\nvariant `~a' is not in union type `~a'"
(get-output-string s) (car case) name))]
[(memq (car case) (cdr case))
(let ([s (open-output-string)])
(pretty-print expr s)
(error 'union-case "~a\nduplicated cases `~a' in union-case of type `~a'"
(get-output-string s) (car case) name))]
[else (check-union-case expr name (remq (car case) type) (cdr case))])))
(define pc-union-type-does-not-exist?
(lambda (who var ut st* arg** body**)
(let* ([arg-count* (map length arg**)]
[sub-type* (map cons st* arg-count*)]
[type `(,ut ,sub-type*)])
(check-union-case
`(,who ,var ,ut
,(map (lambda (st arg* body*)
(cons (cons st arg*) body*))
st* arg** body**))
ut (map car (cadr (lookup-union ut))) (map car sub-type*)))))
;; this version has "macro expansion time" error checking and "runtime" error checking.
;; Helper functions should not interfere with correct parentheC code because all
;; helper functions have a "-"(minus) in them. Which you cannot use.
;; Test codes.
(define-syntax define-registers
(syntax-rules ()
((_ reg1 reg2 ...)
(begin
(define reg1 0)
(define reg2 0)
...))))
(define-syntax define-program-counter
(syntax-rules ()
((_ pc)
(define-registers pc))))
(define-syntax mount-trampoline
(lambda (x)
(syntax-case x ()
[(_ construct reg pc)
#'(if (not (procedure? construct))
(error 'mount-trampoline
"~s must evaluate to 1 arity #<procedure>" 'trampfn-var)
(call/cc
(lambda (dismount-var)
(set! reg (construct dismount-var))
(let trampoline ()
(pc)
(trampoline)))))])))
(define-syntax dismount-trampoline
(lambda (x)
(syntax-case x ()
[(_ var)
#'(if (not (procedure? var))
(error 'dismount-trampoline
"~s must evaluate to 1 arity #<procedure>" 'var)
(var 0))])))
| true |
a9c0601a3f21792e7b706a0f249493d8afafe5ff | 07ba52fc71a2801906b37178027f2b88ad6b24a8 | /lib/redis/commands.sls | f4d2ee989cbaf3e8d277187c367fe75e5bea0080 | [
"BSD-3-Clause",
"BSD-2-Clause"
]
| permissive | ktakashi/r6rs-redis | 712929a54e07b987281d7c5d03c0a2fb80044b6c | bc51f54b4d9695c57b8c589a7b33e2977c422c48 | refs/heads/master | 2020-04-11T12:25:31.320551 | 2019-01-03T13:57:12 | 2019-01-03T13:57:12 | 161,779,745 | 5 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 90,208 | sls | commands.sls | ;; -*- mode: scheme; coding: utf-8 -*-
;; This file is automatically generated by commands.scm. DON'T EDIT!
#!r6rs
(library (redis commands)
(export redis-append
redis-auth
redis-bgrewriteaof
redis-bgsave
redis-bitcount
redis-bitfield
redis-bitop
redis-bitpos
redis-blpop
redis-brpop
redis-brpoplpush
redis-bzpopmin
redis-bzpopmax
redis-client-id
redis-client-kill
redis-client-list
redis-client-getname
redis-client-pause
redis-client-reply
redis-client-setname
redis-client-unblock
redis-cluster-addslots
redis-cluster-count-failure-reports
redis-cluster-countkeysinslot
redis-cluster-delslots
redis-cluster-failover
redis-cluster-forget
redis-cluster-getkeysinslot
redis-cluster-info
redis-cluster-keyslot
redis-cluster-meet
redis-cluster-nodes
redis-cluster-replicate
redis-cluster-reset
redis-cluster-saveconfig
redis-cluster-set-config-epoch
redis-cluster-setslot
redis-cluster-slaves
redis-cluster-replicas
redis-cluster-slots
redis-command
redis-command-count
redis-command-getkeys
redis-command-info
redis-config-get
redis-config-rewrite
redis-config-set
redis-config-resetstat
redis-dbsize
redis-debug-object
redis-debug-segfault
redis-decr
redis-decrby
redis-del
redis-discard
redis-dump
redis-echo
redis-eval
redis-evalsha
redis-exec
redis-exists
redis-expire
redis-expireat
redis-flushall
redis-flushdb
redis-geoadd
redis-geohash
redis-geopos
redis-geodist
redis-georadius
redis-georadiusbymember
redis-get
redis-getbit
redis-getrange
redis-getset
redis-hdel
redis-hexists
redis-hget
redis-hgetall
redis-hincrby
redis-hincrbyfloat
redis-hkeys
redis-hlen
redis-hmget
redis-hmset
redis-hset
redis-hsetnx
redis-hstrlen
redis-hvals
redis-incr
redis-incrby
redis-incrbyfloat
redis-info
redis-keys
redis-lastsave
redis-lindex
redis-linsert
redis-llen
redis-lpop
redis-lpush
redis-lpushx
redis-lrange
redis-lrem
redis-lset
redis-ltrim
redis-memory-doctor
redis-memory-help
redis-memory-malloc-stats
redis-memory-purge
redis-memory-stats
redis-memory-usage
redis-mget
redis-migrate
redis-monitor
redis-move
redis-mset
redis-msetnx
redis-multi
redis-object
redis-persist
redis-pexpire
redis-pexpireat
redis-pfadd
redis-pfcount
redis-pfmerge
redis-ping
redis-psetex
redis-psubscribe
redis-pubsub
redis-pttl
redis-publish
redis-punsubscribe
redis-quit
redis-randomkey
redis-readonly
redis-readwrite
redis-rename
redis-renamenx
redis-restore
redis-role
redis-rpop
redis-rpoplpush
redis-rpush
redis-rpushx
redis-sadd
redis-save
redis-scard
redis-script-debug
redis-script-exists
redis-script-flush
redis-script-kill
redis-script-load
redis-sdiff
redis-sdiffstore
redis-select
redis-set
redis-setbit
redis-setex
redis-setnx
redis-setrange
redis-shutdown
redis-sinter
redis-sinterstore
redis-sismember
redis-slaveof
redis-replicaof
redis-slowlog
redis-smembers
redis-smove
redis-sort
redis-spop
redis-srandmember
redis-srem
redis-strlen
redis-subscribe
redis-sunion
redis-sunionstore
redis-swapdb
redis-sync
redis-time
redis-touch
redis-ttl
redis-type
redis-unsubscribe
redis-unlink
redis-unwatch
redis-wait
redis-watch
redis-zadd
redis-zcard
redis-zcount
redis-zincrby
redis-zinterstore
redis-zlexcount
redis-zpopmax
redis-zpopmin
redis-zrange
redis-zrangebylex
redis-zrevrangebylex
redis-zrangebyscore
redis-zrank
redis-zrem
redis-zremrangebylex
redis-zremrangebyrank
redis-zremrangebyscore
redis-zrevrange
redis-zrevrangebyscore
redis-zrevrank
redis-zscore
redis-zunionstore
redis-scan
redis-sscan
redis-hscan
redis-zscan
redis-xinfo
redis-xadd
redis-xtrim
redis-xdel
redis-xrange
redis-xrevrange
redis-xlen
redis-xread
redis-xgroup
redis-xreadgroup
redis-xack
redis-xclaim
redis-xpending
)
(import (rnrs)
(redis api))
;; Command: APPEND key value
;; Summary: Append a value to a key
;; Since : 2.0.0
(define (redis-append redis-connection key value)
(unless (redis-value? key)
(assertion-violation 'redis-append "'key' required" key))
(unless (redis-value? value)
(assertion-violation 'redis-append "'string' required" value))
(%redis-send-command redis-connection "APPEND" key value))
;; Command: AUTH password
;; Summary: Authenticate to the server
;; Since : 1.0.0
(define (redis-auth redis-connection password)
(unless (redis-value? password)
(assertion-violation 'redis-auth "'string' required" password))
(%redis-send-command redis-connection "AUTH" password))
;; Command: BGREWRITEAOF
;; Summary: Asynchronously rewrite the append-only file
;; Since : 1.0.0
(define (redis-bgrewriteaof redis-connection)
(%redis-send-command redis-connection "BGREWRITEAOF"))
;; Command: BGSAVE
;; Summary: Asynchronously save the dataset to disk
;; Since : 1.0.0
(define (redis-bgsave redis-connection)
(%redis-send-command redis-connection "BGSAVE"))
;; Command: BITCOUNT key [start end]
;; Summary: Count set bits in a string
;; Since : 2.6.0
(define (redis-bitcount redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-bitcount "'key' required" key))
(apply %redis-send-command redis-connection "BITCOUNT" key opts))
;; Command: BITFIELD key [GET type offset] [SET type offset value] [INCRBY type offset increment] [OVERFLOW WRAP|SAT|FAIL]
;; Summary: Perform arbitrary bitfield integer operations on strings
;; Since : 3.2.0
(define (redis-bitfield redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-bitfield "'key' required" key))
(apply %redis-send-command redis-connection "BITFIELD" key opts))
;; Command: BITOP operation destkey key [key ...]
;; Summary: Perform bitwise operations between strings
;; Since : 2.6.0
(define (redis-bitop redis-connection operation destkey . opts)
(unless (redis-value? operation)
(assertion-violation 'redis-bitop "'string' required" operation))
(unless (redis-value? destkey)
(assertion-violation 'redis-bitop "'key' required" destkey))
(apply %redis-send-command redis-connection "BITOP" operation destkey opts))
;; Command: BITPOS key bit [start] [end]
;; Summary: Find first bit set or clear in a string
;; Since : 2.8.7
(define (redis-bitpos redis-connection key bit . opts)
(unless (redis-value? key)
(assertion-violation 'redis-bitpos "'key' required" key))
(unless (integer? bit)
(assertion-violation 'redis-bitpos "'integer' required" bit))
(apply %redis-send-command redis-connection "BITPOS" key bit opts))
;; Command: BLPOP key [key ...] timeout
;; Summary: Remove and get the first element in a list, or block until one is available
;; Since : 2.0.0
(define (redis-blpop redis-connection . opts)
(apply %redis-send-command redis-connection "BLPOP" opts))
;; Command: BRPOP key [key ...] timeout
;; Summary: Remove and get the last element in a list, or block until one is available
;; Since : 2.0.0
(define (redis-brpop redis-connection . opts)
(apply %redis-send-command redis-connection "BRPOP" opts))
;; Command: BRPOPLPUSH source destination timeout
;; Summary: Pop a value from a list, push it to another list and return it; or block until one is available
;; Since : 2.2.0
(define (redis-brpoplpush redis-connection source destination timeout)
(unless (redis-value? source)
(assertion-violation 'redis-brpoplpush "'key' required" source))
(unless (redis-value? destination)
(assertion-violation 'redis-brpoplpush "'key' required" destination))
(unless (integer? timeout)
(assertion-violation 'redis-brpoplpush "'integer' required" timeout))
(%redis-send-command redis-connection "BRPOPLPUSH" source destination timeout))
;; Command: BZPOPMIN key [key ...] timeout
;; Summary: Remove and return the member with the lowest score from one or more sorted sets, or block until one is available
;; Since : 5.0.0
(define (redis-bzpopmin redis-connection . opts)
(apply %redis-send-command redis-connection "BZPOPMIN" opts))
;; Command: BZPOPMAX key [key ...] timeout
;; Summary: Remove and return the member with the highest score from one or more sorted sets, or block until one is available
;; Since : 5.0.0
(define (redis-bzpopmax redis-connection . opts)
(apply %redis-send-command redis-connection "BZPOPMAX" opts))
;; Command: CLIENT ID
;; Summary: Returns the client ID for the current connection
;; Since : 5.0.0
(define (redis-client-id redis-connection)
(%redis-send-command redis-connection "CLIENT ID"))
;; Command: CLIENT KILL [ip:port] [ID client-id] [TYPE normal|master|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]
;; Summary: Kill the connection of a client
;; Since : 2.4.0
(define (redis-client-kill redis-connection . opts)
(apply %redis-send-command redis-connection "CLIENT KILL" opts))
;; Command: CLIENT LIST [TYPE normal|master|replica|pubsub]
;; Summary: Get the list of client connections
;; Since : 2.4.0
(define (redis-client-list redis-connection . opts)
(apply %redis-send-command redis-connection "CLIENT LIST" opts))
;; Command: CLIENT GETNAME
;; Summary: Get the current connection name
;; Since : 2.6.9
(define (redis-client-getname redis-connection)
(%redis-send-command redis-connection "CLIENT GETNAME"))
;; Command: CLIENT PAUSE timeout
;; Summary: Stop processing commands from clients for some time
;; Since : 2.9.50
(define (redis-client-pause redis-connection timeout)
(unless (integer? timeout)
(assertion-violation 'redis-client-pause "'integer' required" timeout))
(%redis-send-command redis-connection "CLIENT PAUSE" timeout))
;; Command: CLIENT REPLY ON|OFF|SKIP
;; Summary: Instruct the server whether to reply to commands
;; Since : 3.2
(define (redis-client-reply redis-connection reply-mode)
(unless (string/symbol? reply-mode)
(assertion-violation 'redis-client-reply "'enum' required" reply-mode))
(%redis-send-command redis-connection "CLIENT REPLY" reply-mode))
;; Command: CLIENT SETNAME connection-name
;; Summary: Set the current connection name
;; Since : 2.6.9
(define (redis-client-setname redis-connection connection-name)
(unless (redis-value? connection-name)
(assertion-violation 'redis-client-setname "'string' required" connection-name))
(%redis-send-command redis-connection "CLIENT SETNAME" connection-name))
;; Command: CLIENT UNBLOCK client-id [TIMEOUT|ERROR]
;; Summary: Unblock a client blocked in a blocking command from a different connection
;; Since : 5.0.0
(define (redis-client-unblock redis-connection client-id . opts)
(unless (redis-value? client-id)
(assertion-violation 'redis-client-unblock "'string' required" client-id))
(apply %redis-send-command redis-connection "CLIENT UNBLOCK" client-id opts))
;; Command: CLUSTER ADDSLOTS slot [slot ...]
;; Summary: Assign new hash slots to receiving node
;; Since : 3.0.0
(define (redis-cluster-addslots redis-connection . opts)
(apply %redis-send-command redis-connection "CLUSTER ADDSLOTS" opts))
;; Command: CLUSTER COUNT-FAILURE-REPORTS node-id
;; Summary: Return the number of failure reports active for a given node
;; Since : 3.0.0
(define (redis-cluster-count-failure-reports redis-connection node-id)
(unless (redis-value? node-id)
(assertion-violation 'redis-cluster-count-failure-reports "'string' required" node-id))
(%redis-send-command redis-connection "CLUSTER COUNT-FAILURE-REPORTS" node-id))
;; Command: CLUSTER COUNTKEYSINSLOT slot
;; Summary: Return the number of local keys in the specified hash slot
;; Since : 3.0.0
(define (redis-cluster-countkeysinslot redis-connection slot)
(unless (integer? slot)
(assertion-violation 'redis-cluster-countkeysinslot "'integer' required" slot))
(%redis-send-command redis-connection "CLUSTER COUNTKEYSINSLOT" slot))
;; Command: CLUSTER DELSLOTS slot [slot ...]
;; Summary: Set hash slots as unbound in receiving node
;; Since : 3.0.0
(define (redis-cluster-delslots redis-connection . opts)
(apply %redis-send-command redis-connection "CLUSTER DELSLOTS" opts))
;; Command: CLUSTER FAILOVER [FORCE|TAKEOVER]
;; Summary: Forces a replica to perform a manual failover of its master.
;; Since : 3.0.0
(define (redis-cluster-failover redis-connection . opts)
(apply %redis-send-command redis-connection "CLUSTER FAILOVER" opts))
;; Command: CLUSTER FORGET node-id
;; Summary: Remove a node from the nodes table
;; Since : 3.0.0
(define (redis-cluster-forget redis-connection node-id)
(unless (redis-value? node-id)
(assertion-violation 'redis-cluster-forget "'string' required" node-id))
(%redis-send-command redis-connection "CLUSTER FORGET" node-id))
;; Command: CLUSTER GETKEYSINSLOT slot count
;; Summary: Return local key names in the specified hash slot
;; Since : 3.0.0
(define (redis-cluster-getkeysinslot redis-connection slot count)
(unless (integer? slot)
(assertion-violation 'redis-cluster-getkeysinslot "'integer' required" slot))
(unless (integer? count)
(assertion-violation 'redis-cluster-getkeysinslot "'integer' required" count))
(%redis-send-command redis-connection "CLUSTER GETKEYSINSLOT" slot count))
;; Command: CLUSTER INFO
;; Summary: Provides info about Redis Cluster node state
;; Since : 3.0.0
(define (redis-cluster-info redis-connection)
(%redis-send-command redis-connection "CLUSTER INFO"))
;; Command: CLUSTER KEYSLOT key
;; Summary: Returns the hash slot of the specified key
;; Since : 3.0.0
(define (redis-cluster-keyslot redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-cluster-keyslot "'string' required" key))
(%redis-send-command redis-connection "CLUSTER KEYSLOT" key))
;; Command: CLUSTER MEET ip port
;; Summary: Force a node cluster to handshake with another node
;; Since : 3.0.0
(define (redis-cluster-meet redis-connection ip port)
(unless (redis-value? ip)
(assertion-violation 'redis-cluster-meet "'string' required" ip))
(unless (integer? port)
(assertion-violation 'redis-cluster-meet "'integer' required" port))
(%redis-send-command redis-connection "CLUSTER MEET" ip port))
;; Command: CLUSTER NODES
;; Summary: Get Cluster config for the node
;; Since : 3.0.0
(define (redis-cluster-nodes redis-connection)
(%redis-send-command redis-connection "CLUSTER NODES"))
;; Command: CLUSTER REPLICATE node-id
;; Summary: Reconfigure a node as a replica of the specified master node
;; Since : 3.0.0
(define (redis-cluster-replicate redis-connection node-id)
(unless (redis-value? node-id)
(assertion-violation 'redis-cluster-replicate "'string' required" node-id))
(%redis-send-command redis-connection "CLUSTER REPLICATE" node-id))
;; Command: CLUSTER RESET [HARD|SOFT]
;; Summary: Reset a Redis Cluster node
;; Since : 3.0.0
(define (redis-cluster-reset redis-connection . opts)
(apply %redis-send-command redis-connection "CLUSTER RESET" opts))
;; Command: CLUSTER SAVECONFIG
;; Summary: Forces the node to save cluster state on disk
;; Since : 3.0.0
(define (redis-cluster-saveconfig redis-connection)
(%redis-send-command redis-connection "CLUSTER SAVECONFIG"))
;; Command: CLUSTER SET-CONFIG-EPOCH config-epoch
;; Summary: Set the configuration epoch in a new node
;; Since : 3.0.0
(define (redis-cluster-set-config-epoch redis-connection config-epoch)
(unless (integer? config-epoch)
(assertion-violation 'redis-cluster-set-config-epoch "'integer' required" config-epoch))
(%redis-send-command redis-connection "CLUSTER SET-CONFIG-EPOCH" config-epoch))
;; Command: CLUSTER SETSLOT slot IMPORTING|MIGRATING|STABLE|NODE [node-id]
;; Summary: Bind a hash slot to a specific node
;; Since : 3.0.0
(define (redis-cluster-setslot redis-connection slot subcommand . opts)
(unless (integer? slot)
(assertion-violation 'redis-cluster-setslot "'integer' required" slot))
(unless (string/symbol? subcommand)
(assertion-violation 'redis-cluster-setslot "'enum' required" subcommand))
(apply %redis-send-command redis-connection "CLUSTER SETSLOT" slot subcommand opts))
;; Command: CLUSTER SLAVES node-id
;; Summary: List replica nodes of the specified master node
;; Since : 3.0.0
(define (redis-cluster-slaves redis-connection node-id)
(unless (redis-value? node-id)
(assertion-violation 'redis-cluster-slaves "'string' required" node-id))
(%redis-send-command redis-connection "CLUSTER SLAVES" node-id))
;; Command: CLUSTER REPLICAS node-id
;; Summary: List replica nodes of the specified master node
;; Since : 5.0.0
(define (redis-cluster-replicas redis-connection node-id)
(unless (redis-value? node-id)
(assertion-violation 'redis-cluster-replicas "'string' required" node-id))
(%redis-send-command redis-connection "CLUSTER REPLICAS" node-id))
;; Command: CLUSTER SLOTS
;; Summary: Get array of Cluster slot to node mappings
;; Since : 3.0.0
(define (redis-cluster-slots redis-connection)
(%redis-send-command redis-connection "CLUSTER SLOTS"))
;; Command: COMMAND
;; Summary: Get array of Redis command details
;; Since : 2.8.13
(define (redis-command redis-connection)
(%redis-send-command redis-connection "COMMAND"))
;; Command: COMMAND COUNT
;; Summary: Get total number of Redis commands
;; Since : 2.8.13
(define (redis-command-count redis-connection)
(%redis-send-command redis-connection "COMMAND COUNT"))
;; Command: COMMAND GETKEYS
;; Summary: Extract keys given a full Redis command
;; Since : 2.8.13
(define (redis-command-getkeys redis-connection)
(%redis-send-command redis-connection "COMMAND GETKEYS"))
;; Command: COMMAND INFO command-name [command-name ...]
;; Summary: Get array of specific Redis command details
;; Since : 2.8.13
(define (redis-command-info redis-connection . opts)
(apply %redis-send-command redis-connection "COMMAND INFO" opts))
;; Command: CONFIG GET parameter
;; Summary: Get the value of a configuration parameter
;; Since : 2.0.0
(define (redis-config-get redis-connection parameter)
(unless (redis-value? parameter)
(assertion-violation 'redis-config-get "'string' required" parameter))
(%redis-send-command redis-connection "CONFIG GET" parameter))
;; Command: CONFIG REWRITE
;; Summary: Rewrite the configuration file with the in memory configuration
;; Since : 2.8.0
(define (redis-config-rewrite redis-connection)
(%redis-send-command redis-connection "CONFIG REWRITE"))
;; Command: CONFIG SET parameter value
;; Summary: Set a configuration parameter to the given value
;; Since : 2.0.0
(define (redis-config-set redis-connection parameter value)
(unless (redis-value? parameter)
(assertion-violation 'redis-config-set "'string' required" parameter))
(unless (redis-value? value)
(assertion-violation 'redis-config-set "'string' required" value))
(%redis-send-command redis-connection "CONFIG SET" parameter value))
;; Command: CONFIG RESETSTAT
;; Summary: Reset the stats returned by INFO
;; Since : 2.0.0
(define (redis-config-resetstat redis-connection)
(%redis-send-command redis-connection "CONFIG RESETSTAT"))
;; Command: DBSIZE
;; Summary: Return the number of keys in the selected database
;; Since : 1.0.0
(define (redis-dbsize redis-connection)
(%redis-send-command redis-connection "DBSIZE"))
;; Command: DEBUG OBJECT key
;; Summary: Get debugging information about a key
;; Since : 1.0.0
(define (redis-debug-object redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-debug-object "'key' required" key))
(%redis-send-command redis-connection "DEBUG OBJECT" key))
;; Command: DEBUG SEGFAULT
;; Summary: Make the server crash
;; Since : 1.0.0
(define (redis-debug-segfault redis-connection)
(%redis-send-command redis-connection "DEBUG SEGFAULT"))
;; Command: DECR key
;; Summary: Decrement the integer value of a key by one
;; Since : 1.0.0
(define (redis-decr redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-decr "'key' required" key))
(%redis-send-command redis-connection "DECR" key))
;; Command: DECRBY key decrement
;; Summary: Decrement the integer value of a key by the given number
;; Since : 1.0.0
(define (redis-decrby redis-connection key decrement)
(unless (redis-value? key)
(assertion-violation 'redis-decrby "'key' required" key))
(unless (integer? decrement)
(assertion-violation 'redis-decrby "'integer' required" decrement))
(%redis-send-command redis-connection "DECRBY" key decrement))
;; Command: DEL key [key ...]
;; Summary: Delete a key
;; Since : 1.0.0
(define (redis-del redis-connection . opts)
(apply %redis-send-command redis-connection "DEL" opts))
;; Command: DISCARD
;; Summary: Discard all commands issued after MULTI
;; Since : 2.0.0
(define (redis-discard redis-connection)
(%redis-send-command redis-connection "DISCARD"))
;; Command: DUMP key
;; Summary: Return a serialized version of the value stored at the specified key.
;; Since : 2.6.0
(define (redis-dump redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-dump "'key' required" key))
(%redis-send-command redis-connection "DUMP" key))
;; Command: ECHO message
;; Summary: Echo the given string
;; Since : 1.0.0
(define (redis-echo redis-connection message)
(unless (redis-value? message)
(assertion-violation 'redis-echo "'string' required" message))
(%redis-send-command redis-connection "ECHO" message))
;; Command: EVAL script numkeys key [key ...] arg [arg ...]
;; Summary: Execute a Lua script server side
;; Since : 2.6.0
(define (redis-eval redis-connection script numkeys . opts)
(unless (redis-value? script)
(assertion-violation 'redis-eval "'string' required" script))
(unless (integer? numkeys)
(assertion-violation 'redis-eval "'integer' required" numkeys))
(apply %redis-send-command redis-connection "EVAL" script numkeys opts))
;; Command: EVALSHA sha1 numkeys key [key ...] arg [arg ...]
;; Summary: Execute a Lua script server side
;; Since : 2.6.0
(define (redis-evalsha redis-connection sha1 numkeys . opts)
(unless (redis-value? sha1)
(assertion-violation 'redis-evalsha "'string' required" sha1))
(unless (integer? numkeys)
(assertion-violation 'redis-evalsha "'integer' required" numkeys))
(apply %redis-send-command redis-connection "EVALSHA" sha1 numkeys opts))
;; Command: EXEC
;; Summary: Execute all commands issued after MULTI
;; Since : 1.2.0
(define (redis-exec redis-connection)
(%redis-send-command redis-connection "EXEC"))
;; Command: EXISTS key [key ...]
;; Summary: Determine if a key exists
;; Since : 1.0.0
(define (redis-exists redis-connection . opts)
(apply %redis-send-command redis-connection "EXISTS" opts))
;; Command: EXPIRE key seconds
;; Summary: Set a key's time to live in seconds
;; Since : 1.0.0
(define (redis-expire redis-connection key seconds)
(unless (redis-value? key)
(assertion-violation 'redis-expire "'key' required" key))
(unless (integer? seconds)
(assertion-violation 'redis-expire "'integer' required" seconds))
(%redis-send-command redis-connection "EXPIRE" key seconds))
;; Command: EXPIREAT key timestamp
;; Summary: Set the expiration for a key as a UNIX timestamp
;; Since : 1.2.0
(define (redis-expireat redis-connection key timestamp)
(unless (redis-value? key)
(assertion-violation 'redis-expireat "'key' required" key))
(unless (redis-value? timestamp)
(assertion-violation 'redis-expireat "'posix time' required" timestamp))
(%redis-send-command redis-connection "EXPIREAT" key timestamp))
;; Command: FLUSHALL [ASYNC]
;; Summary: Remove all keys from all databases
;; Since : 1.0.0
(define (redis-flushall redis-connection . opts)
(apply %redis-send-command redis-connection "FLUSHALL" opts))
;; Command: FLUSHDB [ASYNC]
;; Summary: Remove all keys from the current database
;; Since : 1.0.0
(define (redis-flushdb redis-connection . opts)
(apply %redis-send-command redis-connection "FLUSHDB" opts))
;; Command: GEOADD key longitude latitude member [longitude latitude member ...]
;; Summary: Add one or more geospatial items in the geospatial index represented using a sorted set
;; Since : 3.2.0
(define (redis-geoadd redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-geoadd "'key' required" key))
(apply %redis-send-command redis-connection "GEOADD" key opts))
;; Command: GEOHASH key member [member ...]
;; Summary: Returns members of a geospatial index as standard geohash strings
;; Since : 3.2.0
(define (redis-geohash redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-geohash "'key' required" key))
(apply %redis-send-command redis-connection "GEOHASH" key opts))
;; Command: GEOPOS key member [member ...]
;; Summary: Returns longitude and latitude of members of a geospatial index
;; Since : 3.2.0
(define (redis-geopos redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-geopos "'key' required" key))
(apply %redis-send-command redis-connection "GEOPOS" key opts))
;; Command: GEODIST key member1 member2 [unit]
;; Summary: Returns the distance between two members of a geospatial index
;; Since : 3.2.0
(define (redis-geodist redis-connection key member1 member2 . opts)
(unless (redis-value? key)
(assertion-violation 'redis-geodist "'key' required" key))
(unless (redis-value? member1)
(assertion-violation 'redis-geodist "'string' required" member1))
(unless (redis-value? member2)
(assertion-violation 'redis-geodist "'string' required" member2))
(apply %redis-send-command redis-connection "GEODIST" key member1 member2 opts))
;; Command: GEORADIUS key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]
;; Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point
;; Since : 3.2.0
(define (redis-georadius redis-connection key longitude latitude radius unit . opts)
(unless (redis-value? key)
(assertion-violation 'redis-georadius "'key' required" key))
(unless (redis-value? longitude)
(assertion-violation 'redis-georadius "'double' required" longitude))
(unless (redis-value? latitude)
(assertion-violation 'redis-georadius "'double' required" latitude))
(unless (redis-value? radius)
(assertion-violation 'redis-georadius "'double' required" radius))
(unless (string/symbol? unit)
(assertion-violation 'redis-georadius "'enum' required" unit))
(apply %redis-send-command redis-connection "GEORADIUS" key longitude latitude radius unit opts))
;; Command: GEORADIUSBYMEMBER key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key]
;; Summary: Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member
;; Since : 3.2.0
(define (redis-georadiusbymember redis-connection key member radius unit . opts)
(unless (redis-value? key)
(assertion-violation 'redis-georadiusbymember "'key' required" key))
(unless (redis-value? member)
(assertion-violation 'redis-georadiusbymember "'string' required" member))
(unless (redis-value? radius)
(assertion-violation 'redis-georadiusbymember "'double' required" radius))
(unless (string/symbol? unit)
(assertion-violation 'redis-georadiusbymember "'enum' required" unit))
(apply %redis-send-command redis-connection "GEORADIUSBYMEMBER" key member radius unit opts))
;; Command: GET key
;; Summary: Get the value of a key
;; Since : 1.0.0
(define (redis-get redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-get "'key' required" key))
(%redis-send-command redis-connection "GET" key))
;; Command: GETBIT key offset
;; Summary: Returns the bit value at offset in the string value stored at key
;; Since : 2.2.0
(define (redis-getbit redis-connection key offset)
(unless (redis-value? key)
(assertion-violation 'redis-getbit "'key' required" key))
(unless (integer? offset)
(assertion-violation 'redis-getbit "'integer' required" offset))
(%redis-send-command redis-connection "GETBIT" key offset))
;; Command: GETRANGE key start end
;; Summary: Get a substring of the string stored at a key
;; Since : 2.4.0
(define (redis-getrange redis-connection key start end)
(unless (redis-value? key)
(assertion-violation 'redis-getrange "'key' required" key))
(unless (integer? start)
(assertion-violation 'redis-getrange "'integer' required" start))
(unless (integer? end)
(assertion-violation 'redis-getrange "'integer' required" end))
(%redis-send-command redis-connection "GETRANGE" key start end))
;; Command: GETSET key value
;; Summary: Set the string value of a key and return its old value
;; Since : 1.0.0
(define (redis-getset redis-connection key value)
(unless (redis-value? key)
(assertion-violation 'redis-getset "'key' required" key))
(unless (redis-value? value)
(assertion-violation 'redis-getset "'string' required" value))
(%redis-send-command redis-connection "GETSET" key value))
;; Command: HDEL key field [field ...]
;; Summary: Delete one or more hash fields
;; Since : 2.0.0
(define (redis-hdel redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-hdel "'key' required" key))
(apply %redis-send-command redis-connection "HDEL" key opts))
;; Command: HEXISTS key field
;; Summary: Determine if a hash field exists
;; Since : 2.0.0
(define (redis-hexists redis-connection key field)
(unless (redis-value? key)
(assertion-violation 'redis-hexists "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hexists "'string' required" field))
(%redis-send-command redis-connection "HEXISTS" key field))
;; Command: HGET key field
;; Summary: Get the value of a hash field
;; Since : 2.0.0
(define (redis-hget redis-connection key field)
(unless (redis-value? key)
(assertion-violation 'redis-hget "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hget "'string' required" field))
(%redis-send-command redis-connection "HGET" key field))
;; Command: HGETALL key
;; Summary: Get all the fields and values in a hash
;; Since : 2.0.0
(define (redis-hgetall redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-hgetall "'key' required" key))
(%redis-send-command redis-connection "HGETALL" key))
;; Command: HINCRBY key field increment
;; Summary: Increment the integer value of a hash field by the given number
;; Since : 2.0.0
(define (redis-hincrby redis-connection key field increment)
(unless (redis-value? key)
(assertion-violation 'redis-hincrby "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hincrby "'string' required" field))
(unless (integer? increment)
(assertion-violation 'redis-hincrby "'integer' required" increment))
(%redis-send-command redis-connection "HINCRBY" key field increment))
;; Command: HINCRBYFLOAT key field increment
;; Summary: Increment the float value of a hash field by the given amount
;; Since : 2.6.0
(define (redis-hincrbyfloat redis-connection key field increment)
(unless (redis-value? key)
(assertion-violation 'redis-hincrbyfloat "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hincrbyfloat "'string' required" field))
(unless (redis-value? increment)
(assertion-violation 'redis-hincrbyfloat "'double' required" increment))
(%redis-send-command redis-connection "HINCRBYFLOAT" key field increment))
;; Command: HKEYS key
;; Summary: Get all the fields in a hash
;; Since : 2.0.0
(define (redis-hkeys redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-hkeys "'key' required" key))
(%redis-send-command redis-connection "HKEYS" key))
;; Command: HLEN key
;; Summary: Get the number of fields in a hash
;; Since : 2.0.0
(define (redis-hlen redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-hlen "'key' required" key))
(%redis-send-command redis-connection "HLEN" key))
;; Command: HMGET key field [field ...]
;; Summary: Get the values of all the given hash fields
;; Since : 2.0.0
(define (redis-hmget redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-hmget "'key' required" key))
(apply %redis-send-command redis-connection "HMGET" key opts))
;; Command: HMSET key field value [field value ...]
;; Summary: Set multiple hash fields to multiple values
;; Since : 2.0.0
(define (redis-hmset redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-hmset "'key' required" key))
(apply %redis-send-command redis-connection "HMSET" key opts))
;; Command: HSET key field value
;; Summary: Set the string value of a hash field
;; Since : 2.0.0
(define (redis-hset redis-connection key field value)
(unless (redis-value? key)
(assertion-violation 'redis-hset "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hset "'string' required" field))
(unless (redis-value? value)
(assertion-violation 'redis-hset "'string' required" value))
(%redis-send-command redis-connection "HSET" key field value))
;; Command: HSETNX key field value
;; Summary: Set the value of a hash field, only if the field does not exist
;; Since : 2.0.0
(define (redis-hsetnx redis-connection key field value)
(unless (redis-value? key)
(assertion-violation 'redis-hsetnx "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hsetnx "'string' required" field))
(unless (redis-value? value)
(assertion-violation 'redis-hsetnx "'string' required" value))
(%redis-send-command redis-connection "HSETNX" key field value))
;; Command: HSTRLEN key field
;; Summary: Get the length of the value of a hash field
;; Since : 3.2.0
(define (redis-hstrlen redis-connection key field)
(unless (redis-value? key)
(assertion-violation 'redis-hstrlen "'key' required" key))
(unless (redis-value? field)
(assertion-violation 'redis-hstrlen "'string' required" field))
(%redis-send-command redis-connection "HSTRLEN" key field))
;; Command: HVALS key
;; Summary: Get all the values in a hash
;; Since : 2.0.0
(define (redis-hvals redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-hvals "'key' required" key))
(%redis-send-command redis-connection "HVALS" key))
;; Command: INCR key
;; Summary: Increment the integer value of a key by one
;; Since : 1.0.0
(define (redis-incr redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-incr "'key' required" key))
(%redis-send-command redis-connection "INCR" key))
;; Command: INCRBY key increment
;; Summary: Increment the integer value of a key by the given amount
;; Since : 1.0.0
(define (redis-incrby redis-connection key increment)
(unless (redis-value? key)
(assertion-violation 'redis-incrby "'key' required" key))
(unless (integer? increment)
(assertion-violation 'redis-incrby "'integer' required" increment))
(%redis-send-command redis-connection "INCRBY" key increment))
;; Command: INCRBYFLOAT key increment
;; Summary: Increment the float value of a key by the given amount
;; Since : 2.6.0
(define (redis-incrbyfloat redis-connection key increment)
(unless (redis-value? key)
(assertion-violation 'redis-incrbyfloat "'key' required" key))
(unless (redis-value? increment)
(assertion-violation 'redis-incrbyfloat "'double' required" increment))
(%redis-send-command redis-connection "INCRBYFLOAT" key increment))
;; Command: INFO [section]
;; Summary: Get information and statistics about the server
;; Since : 1.0.0
(define (redis-info redis-connection . opts)
(apply %redis-send-command redis-connection "INFO" opts))
;; Command: KEYS pattern
;; Summary: Find all keys matching the given pattern
;; Since : 1.0.0
(define (redis-keys redis-connection pattern)
(unless (redis-value? pattern)
(assertion-violation 'redis-keys "'pattern' required" pattern))
(%redis-send-command redis-connection "KEYS" pattern))
;; Command: LASTSAVE
;; Summary: Get the UNIX time stamp of the last successful save to disk
;; Since : 1.0.0
(define (redis-lastsave redis-connection)
(%redis-send-command redis-connection "LASTSAVE"))
;; Command: LINDEX key index
;; Summary: Get an element from a list by its index
;; Since : 1.0.0
(define (redis-lindex redis-connection key index)
(unless (redis-value? key)
(assertion-violation 'redis-lindex "'key' required" key))
(unless (integer? index)
(assertion-violation 'redis-lindex "'integer' required" index))
(%redis-send-command redis-connection "LINDEX" key index))
;; Command: LINSERT key BEFORE|AFTER pivot value
;; Summary: Insert an element before or after another element in a list
;; Since : 2.2.0
(define (redis-linsert redis-connection key where pivot value)
(unless (redis-value? key)
(assertion-violation 'redis-linsert "'key' required" key))
(unless (string/symbol? where)
(assertion-violation 'redis-linsert "'enum' required" where))
(unless (redis-value? pivot)
(assertion-violation 'redis-linsert "'string' required" pivot))
(unless (redis-value? value)
(assertion-violation 'redis-linsert "'string' required" value))
(%redis-send-command redis-connection "LINSERT" key where pivot value))
;; Command: LLEN key
;; Summary: Get the length of a list
;; Since : 1.0.0
(define (redis-llen redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-llen "'key' required" key))
(%redis-send-command redis-connection "LLEN" key))
;; Command: LPOP key
;; Summary: Remove and get the first element in a list
;; Since : 1.0.0
(define (redis-lpop redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-lpop "'key' required" key))
(%redis-send-command redis-connection "LPOP" key))
;; Command: LPUSH key value [value ...]
;; Summary: Prepend one or multiple values to a list
;; Since : 1.0.0
(define (redis-lpush redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-lpush "'key' required" key))
(apply %redis-send-command redis-connection "LPUSH" key opts))
;; Command: LPUSHX key value
;; Summary: Prepend a value to a list, only if the list exists
;; Since : 2.2.0
(define (redis-lpushx redis-connection key value)
(unless (redis-value? key)
(assertion-violation 'redis-lpushx "'key' required" key))
(unless (redis-value? value)
(assertion-violation 'redis-lpushx "'string' required" value))
(%redis-send-command redis-connection "LPUSHX" key value))
;; Command: LRANGE key start stop
;; Summary: Get a range of elements from a list
;; Since : 1.0.0
(define (redis-lrange redis-connection key start stop)
(unless (redis-value? key)
(assertion-violation 'redis-lrange "'key' required" key))
(unless (integer? start)
(assertion-violation 'redis-lrange "'integer' required" start))
(unless (integer? stop)
(assertion-violation 'redis-lrange "'integer' required" stop))
(%redis-send-command redis-connection "LRANGE" key start stop))
;; Command: LREM key count value
;; Summary: Remove elements from a list
;; Since : 1.0.0
(define (redis-lrem redis-connection key count value)
(unless (redis-value? key)
(assertion-violation 'redis-lrem "'key' required" key))
(unless (integer? count)
(assertion-violation 'redis-lrem "'integer' required" count))
(unless (redis-value? value)
(assertion-violation 'redis-lrem "'string' required" value))
(%redis-send-command redis-connection "LREM" key count value))
;; Command: LSET key index value
;; Summary: Set the value of an element in a list by its index
;; Since : 1.0.0
(define (redis-lset redis-connection key index value)
(unless (redis-value? key)
(assertion-violation 'redis-lset "'key' required" key))
(unless (integer? index)
(assertion-violation 'redis-lset "'integer' required" index))
(unless (redis-value? value)
(assertion-violation 'redis-lset "'string' required" value))
(%redis-send-command redis-connection "LSET" key index value))
;; Command: LTRIM key start stop
;; Summary: Trim a list to the specified range
;; Since : 1.0.0
(define (redis-ltrim redis-connection key start stop)
(unless (redis-value? key)
(assertion-violation 'redis-ltrim "'key' required" key))
(unless (integer? start)
(assertion-violation 'redis-ltrim "'integer' required" start))
(unless (integer? stop)
(assertion-violation 'redis-ltrim "'integer' required" stop))
(%redis-send-command redis-connection "LTRIM" key start stop))
;; Command: MEMORY DOCTOR
;; Summary: Outputs memory problems report
;; Since : 4.0.0
(define (redis-memory-doctor redis-connection)
(%redis-send-command redis-connection "MEMORY DOCTOR"))
;; Command: MEMORY HELP
;; Summary: Show helpful text about the different subcommands
;; Since : 4.0.0
(define (redis-memory-help redis-connection)
(%redis-send-command redis-connection "MEMORY HELP"))
;; Command: MEMORY MALLOC-STATS
;; Summary: Show allocator internal stats
;; Since : 4.0.0
(define (redis-memory-malloc-stats redis-connection)
(%redis-send-command redis-connection "MEMORY MALLOC-STATS"))
;; Command: MEMORY PURGE
;; Summary: Ask the allocator to release memory
;; Since : 4.0.0
(define (redis-memory-purge redis-connection)
(%redis-send-command redis-connection "MEMORY PURGE"))
;; Command: MEMORY STATS
;; Summary: Show memory usage details
;; Since : 4.0.0
(define (redis-memory-stats redis-connection)
(%redis-send-command redis-connection "MEMORY STATS"))
;; Command: MEMORY USAGE key [SAMPLES count]
;; Summary: Estimate the memory usage of a key
;; Since : 4.0.0
(define (redis-memory-usage redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-memory-usage "'key' required" key))
(apply %redis-send-command redis-connection "MEMORY USAGE" key opts))
;; Command: MGET key [key ...]
;; Summary: Get the values of all the given keys
;; Since : 1.0.0
(define (redis-mget redis-connection . opts)
(apply %redis-send-command redis-connection "MGET" opts))
;; Command: MIGRATE host port key|"" destination-db timeout [COPY] [REPLACE] [KEYS key]
;; Summary: Atomically transfer a key from a Redis instance to another one.
;; Since : 2.6.0
(define (redis-migrate redis-connection host port key destination-db timeout . opts)
(unless (redis-value? host)
(assertion-violation 'redis-migrate "'string' required" host))
(unless (redis-value? port)
(assertion-violation 'redis-migrate "'string' required" port))
(unless (string/symbol? key)
(assertion-violation 'redis-migrate "'enum' required" key))
(unless (integer? destination-db)
(assertion-violation 'redis-migrate "'integer' required" destination-db))
(unless (integer? timeout)
(assertion-violation 'redis-migrate "'integer' required" timeout))
(apply %redis-send-command redis-connection "MIGRATE" host port key destination-db timeout opts))
;; Command: MONITOR
;; Summary: Listen for all requests received by the server in real time
;; Since : 1.0.0
(define (redis-monitor redis-connection)
(%redis-send-command redis-connection "MONITOR"))
;; Command: MOVE key db
;; Summary: Move a key to another database
;; Since : 1.0.0
(define (redis-move redis-connection key db)
(unless (redis-value? key)
(assertion-violation 'redis-move "'key' required" key))
(unless (integer? db)
(assertion-violation 'redis-move "'integer' required" db))
(%redis-send-command redis-connection "MOVE" key db))
;; Command: MSET key value [key value ...]
;; Summary: Set multiple keys to multiple values
;; Since : 1.0.1
(define (redis-mset redis-connection . opts)
(apply %redis-send-command redis-connection "MSET" opts))
;; Command: MSETNX key value [key value ...]
;; Summary: Set multiple keys to multiple values, only if none of the keys exist
;; Since : 1.0.1
(define (redis-msetnx redis-connection . opts)
(apply %redis-send-command redis-connection "MSETNX" opts))
;; Command: MULTI
;; Summary: Mark the start of a transaction block
;; Since : 1.2.0
(define (redis-multi redis-connection)
(%redis-send-command redis-connection "MULTI"))
;; Command: OBJECT subcommand [arguments [arguments ...]]
;; Summary: Inspect the internals of Redis objects
;; Since : 2.2.3
(define (redis-object redis-connection subcommand . opts)
(unless (redis-value? subcommand)
(assertion-violation 'redis-object "'string' required" subcommand))
(apply %redis-send-command redis-connection "OBJECT" subcommand opts))
;; Command: PERSIST key
;; Summary: Remove the expiration from a key
;; Since : 2.2.0
(define (redis-persist redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-persist "'key' required" key))
(%redis-send-command redis-connection "PERSIST" key))
;; Command: PEXPIRE key milliseconds
;; Summary: Set a key's time to live in milliseconds
;; Since : 2.6.0
(define (redis-pexpire redis-connection key milliseconds)
(unless (redis-value? key)
(assertion-violation 'redis-pexpire "'key' required" key))
(unless (integer? milliseconds)
(assertion-violation 'redis-pexpire "'integer' required" milliseconds))
(%redis-send-command redis-connection "PEXPIRE" key milliseconds))
;; Command: PEXPIREAT key milliseconds-timestamp
;; Summary: Set the expiration for a key as a UNIX timestamp specified in milliseconds
;; Since : 2.6.0
(define (redis-pexpireat redis-connection key milliseconds-timestamp)
(unless (redis-value? key)
(assertion-violation 'redis-pexpireat "'key' required" key))
(unless (redis-value? milliseconds-timestamp)
(assertion-violation 'redis-pexpireat "'posix time' required" milliseconds-timestamp))
(%redis-send-command redis-connection "PEXPIREAT" key milliseconds-timestamp))
;; Command: PFADD key element [element ...]
;; Summary: Adds the specified elements to the specified HyperLogLog.
;; Since : 2.8.9
(define (redis-pfadd redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-pfadd "'key' required" key))
(apply %redis-send-command redis-connection "PFADD" key opts))
;; Command: PFCOUNT key [key ...]
;; Summary: Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s).
;; Since : 2.8.9
(define (redis-pfcount redis-connection . opts)
(apply %redis-send-command redis-connection "PFCOUNT" opts))
;; Command: PFMERGE destkey sourcekey [sourcekey ...]
;; Summary: Merge N different HyperLogLogs into a single one.
;; Since : 2.8.9
(define (redis-pfmerge redis-connection destkey . opts)
(unless (redis-value? destkey)
(assertion-violation 'redis-pfmerge "'key' required" destkey))
(apply %redis-send-command redis-connection "PFMERGE" destkey opts))
;; Command: PING [message]
;; Summary: Ping the server
;; Since : 1.0.0
(define (redis-ping redis-connection . opts)
(apply %redis-send-command redis-connection "PING" opts))
;; Command: PSETEX key milliseconds value
;; Summary: Set the value and expiration in milliseconds of a key
;; Since : 2.6.0
(define (redis-psetex redis-connection key milliseconds value)
(unless (redis-value? key)
(assertion-violation 'redis-psetex "'key' required" key))
(unless (integer? milliseconds)
(assertion-violation 'redis-psetex "'integer' required" milliseconds))
(unless (redis-value? value)
(assertion-violation 'redis-psetex "'string' required" value))
(%redis-send-command redis-connection "PSETEX" key milliseconds value))
;; Command: PSUBSCRIBE pattern [pattern ...]
;; Summary: Listen for messages published to channels matching the given patterns
;; Since : 2.0.0
(define (redis-psubscribe redis-connection . opts)
(apply %redis-send-command redis-connection "PSUBSCRIBE" opts))
;; Command: PUBSUB subcommand [argument [argument ...]]
;; Summary: Inspect the state of the Pub/Sub subsystem
;; Since : 2.8.0
(define (redis-pubsub redis-connection subcommand . opts)
(unless (redis-value? subcommand)
(assertion-violation 'redis-pubsub "'string' required" subcommand))
(apply %redis-send-command redis-connection "PUBSUB" subcommand opts))
;; Command: PTTL key
;; Summary: Get the time to live for a key in milliseconds
;; Since : 2.6.0
(define (redis-pttl redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-pttl "'key' required" key))
(%redis-send-command redis-connection "PTTL" key))
;; Command: PUBLISH channel message
;; Summary: Post a message to a channel
;; Since : 2.0.0
(define (redis-publish redis-connection channel message)
(unless (redis-value? channel)
(assertion-violation 'redis-publish "'string' required" channel))
(unless (redis-value? message)
(assertion-violation 'redis-publish "'string' required" message))
(%redis-send-command redis-connection "PUBLISH" channel message))
;; Command: PUNSUBSCRIBE [pattern [pattern ...]]
;; Summary: Stop listening for messages posted to channels matching the given patterns
;; Since : 2.0.0
(define (redis-punsubscribe redis-connection . opts)
(apply %redis-send-command redis-connection "PUNSUBSCRIBE" opts))
;; Command: QUIT
;; Summary: Close the connection
;; Since : 1.0.0
(define (redis-quit redis-connection)
(%redis-send-command redis-connection "QUIT"))
;; Command: RANDOMKEY
;; Summary: Return a random key from the keyspace
;; Since : 1.0.0
(define (redis-randomkey redis-connection)
(%redis-send-command redis-connection "RANDOMKEY"))
;; Command: READONLY
;; Summary: Enables read queries for a connection to a cluster replica node
;; Since : 3.0.0
(define (redis-readonly redis-connection)
(%redis-send-command redis-connection "READONLY"))
;; Command: READWRITE
;; Summary: Disables read queries for a connection to a cluster replica node
;; Since : 3.0.0
(define (redis-readwrite redis-connection)
(%redis-send-command redis-connection "READWRITE"))
;; Command: RENAME key newkey
;; Summary: Rename a key
;; Since : 1.0.0
(define (redis-rename redis-connection key newkey)
(unless (redis-value? key)
(assertion-violation 'redis-rename "'key' required" key))
(unless (redis-value? newkey)
(assertion-violation 'redis-rename "'key' required" newkey))
(%redis-send-command redis-connection "RENAME" key newkey))
;; Command: RENAMENX key newkey
;; Summary: Rename a key, only if the new key does not exist
;; Since : 1.0.0
(define (redis-renamenx redis-connection key newkey)
(unless (redis-value? key)
(assertion-violation 'redis-renamenx "'key' required" key))
(unless (redis-value? newkey)
(assertion-violation 'redis-renamenx "'key' required" newkey))
(%redis-send-command redis-connection "RENAMENX" key newkey))
;; Command: RESTORE key ttl serialized-value [REPLACE]
;; Summary: Create a key using the provided serialized value, previously obtained using DUMP.
;; Since : 2.6.0
(define (redis-restore redis-connection key ttl serialized-value . opts)
(unless (redis-value? key)
(assertion-violation 'redis-restore "'key' required" key))
(unless (integer? ttl)
(assertion-violation 'redis-restore "'integer' required" ttl))
(unless (redis-value? serialized-value)
(assertion-violation 'redis-restore "'string' required" serialized-value))
(apply %redis-send-command redis-connection "RESTORE" key ttl serialized-value opts))
;; Command: ROLE
;; Summary: Return the role of the instance in the context of replication
;; Since : 2.8.12
(define (redis-role redis-connection)
(%redis-send-command redis-connection "ROLE"))
;; Command: RPOP key
;; Summary: Remove and get the last element in a list
;; Since : 1.0.0
(define (redis-rpop redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-rpop "'key' required" key))
(%redis-send-command redis-connection "RPOP" key))
;; Command: RPOPLPUSH source destination
;; Summary: Remove the last element in a list, prepend it to another list and return it
;; Since : 1.2.0
(define (redis-rpoplpush redis-connection source destination)
(unless (redis-value? source)
(assertion-violation 'redis-rpoplpush "'key' required" source))
(unless (redis-value? destination)
(assertion-violation 'redis-rpoplpush "'key' required" destination))
(%redis-send-command redis-connection "RPOPLPUSH" source destination))
;; Command: RPUSH key value [value ...]
;; Summary: Append one or multiple values to a list
;; Since : 1.0.0
(define (redis-rpush redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-rpush "'key' required" key))
(apply %redis-send-command redis-connection "RPUSH" key opts))
;; Command: RPUSHX key value
;; Summary: Append a value to a list, only if the list exists
;; Since : 2.2.0
(define (redis-rpushx redis-connection key value)
(unless (redis-value? key)
(assertion-violation 'redis-rpushx "'key' required" key))
(unless (redis-value? value)
(assertion-violation 'redis-rpushx "'string' required" value))
(%redis-send-command redis-connection "RPUSHX" key value))
;; Command: SADD key member [member ...]
;; Summary: Add one or more members to a set
;; Since : 1.0.0
(define (redis-sadd redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-sadd "'key' required" key))
(apply %redis-send-command redis-connection "SADD" key opts))
;; Command: SAVE
;; Summary: Synchronously save the dataset to disk
;; Since : 1.0.0
(define (redis-save redis-connection)
(%redis-send-command redis-connection "SAVE"))
;; Command: SCARD key
;; Summary: Get the number of members in a set
;; Since : 1.0.0
(define (redis-scard redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-scard "'key' required" key))
(%redis-send-command redis-connection "SCARD" key))
;; Command: SCRIPT DEBUG YES|SYNC|NO
;; Summary: Set the debug mode for executed scripts.
;; Since : 3.2.0
(define (redis-script-debug redis-connection mode)
(unless (string/symbol? mode)
(assertion-violation 'redis-script-debug "'enum' required" mode))
(%redis-send-command redis-connection "SCRIPT DEBUG" mode))
;; Command: SCRIPT EXISTS sha1 [sha1 ...]
;; Summary: Check existence of scripts in the script cache.
;; Since : 2.6.0
(define (redis-script-exists redis-connection . opts)
(apply %redis-send-command redis-connection "SCRIPT EXISTS" opts))
;; Command: SCRIPT FLUSH
;; Summary: Remove all the scripts from the script cache.
;; Since : 2.6.0
(define (redis-script-flush redis-connection)
(%redis-send-command redis-connection "SCRIPT FLUSH"))
;; Command: SCRIPT KILL
;; Summary: Kill the script currently in execution.
;; Since : 2.6.0
(define (redis-script-kill redis-connection)
(%redis-send-command redis-connection "SCRIPT KILL"))
;; Command: SCRIPT LOAD script
;; Summary: Load the specified Lua script into the script cache.
;; Since : 2.6.0
(define (redis-script-load redis-connection script)
(unless (redis-value? script)
(assertion-violation 'redis-script-load "'string' required" script))
(%redis-send-command redis-connection "SCRIPT LOAD" script))
;; Command: SDIFF key [key ...]
;; Summary: Subtract multiple sets
;; Since : 1.0.0
(define (redis-sdiff redis-connection . opts)
(apply %redis-send-command redis-connection "SDIFF" opts))
;; Command: SDIFFSTORE destination key [key ...]
;; Summary: Subtract multiple sets and store the resulting set in a key
;; Since : 1.0.0
(define (redis-sdiffstore redis-connection destination . opts)
(unless (redis-value? destination)
(assertion-violation 'redis-sdiffstore "'key' required" destination))
(apply %redis-send-command redis-connection "SDIFFSTORE" destination opts))
;; Command: SELECT index
;; Summary: Change the selected database for the current connection
;; Since : 1.0.0
(define (redis-select redis-connection index)
(unless (integer? index)
(assertion-violation 'redis-select "'integer' required" index))
(%redis-send-command redis-connection "SELECT" index))
;; Command: SET key value [expiration EX seconds|PX milliseconds] [NX|XX]
;; Summary: Set the string value of a key
;; Since : 1.0.0
(define (redis-set redis-connection key value . opts)
(unless (redis-value? key)
(assertion-violation 'redis-set "'key' required" key))
(unless (redis-value? value)
(assertion-violation 'redis-set "'string' required" value))
(apply %redis-send-command redis-connection "SET" key value opts))
;; Command: SETBIT key offset value
;; Summary: Sets or clears the bit at offset in the string value stored at key
;; Since : 2.2.0
(define (redis-setbit redis-connection key offset value)
(unless (redis-value? key)
(assertion-violation 'redis-setbit "'key' required" key))
(unless (integer? offset)
(assertion-violation 'redis-setbit "'integer' required" offset))
(unless (redis-value? value)
(assertion-violation 'redis-setbit "'string' required" value))
(%redis-send-command redis-connection "SETBIT" key offset value))
;; Command: SETEX key seconds value
;; Summary: Set the value and expiration of a key
;; Since : 2.0.0
(define (redis-setex redis-connection key seconds value)
(unless (redis-value? key)
(assertion-violation 'redis-setex "'key' required" key))
(unless (integer? seconds)
(assertion-violation 'redis-setex "'integer' required" seconds))
(unless (redis-value? value)
(assertion-violation 'redis-setex "'string' required" value))
(%redis-send-command redis-connection "SETEX" key seconds value))
;; Command: SETNX key value
;; Summary: Set the value of a key, only if the key does not exist
;; Since : 1.0.0
(define (redis-setnx redis-connection key value)
(unless (redis-value? key)
(assertion-violation 'redis-setnx "'key' required" key))
(unless (redis-value? value)
(assertion-violation 'redis-setnx "'string' required" value))
(%redis-send-command redis-connection "SETNX" key value))
;; Command: SETRANGE key offset value
;; Summary: Overwrite part of a string at key starting at the specified offset
;; Since : 2.2.0
(define (redis-setrange redis-connection key offset value)
(unless (redis-value? key)
(assertion-violation 'redis-setrange "'key' required" key))
(unless (integer? offset)
(assertion-violation 'redis-setrange "'integer' required" offset))
(unless (redis-value? value)
(assertion-violation 'redis-setrange "'string' required" value))
(%redis-send-command redis-connection "SETRANGE" key offset value))
;; Command: SHUTDOWN [NOSAVE|SAVE]
;; Summary: Synchronously save the dataset to disk and then shut down the server
;; Since : 1.0.0
(define (redis-shutdown redis-connection . opts)
(apply %redis-send-command redis-connection "SHUTDOWN" opts))
;; Command: SINTER key [key ...]
;; Summary: Intersect multiple sets
;; Since : 1.0.0
(define (redis-sinter redis-connection . opts)
(apply %redis-send-command redis-connection "SINTER" opts))
;; Command: SINTERSTORE destination key [key ...]
;; Summary: Intersect multiple sets and store the resulting set in a key
;; Since : 1.0.0
(define (redis-sinterstore redis-connection destination . opts)
(unless (redis-value? destination)
(assertion-violation 'redis-sinterstore "'key' required" destination))
(apply %redis-send-command redis-connection "SINTERSTORE" destination opts))
;; Command: SISMEMBER key member
;; Summary: Determine if a given value is a member of a set
;; Since : 1.0.0
(define (redis-sismember redis-connection key member)
(unless (redis-value? key)
(assertion-violation 'redis-sismember "'key' required" key))
(unless (redis-value? member)
(assertion-violation 'redis-sismember "'string' required" member))
(%redis-send-command redis-connection "SISMEMBER" key member))
;; Command: SLAVEOF host port
;; Summary: Make the server a replica of another instance, or promote it as master. Deprecated starting with Redis 5. Use REPLICAOF instead.
;; Since : 1.0.0
(define (redis-slaveof redis-connection host port)
(unless (redis-value? host)
(assertion-violation 'redis-slaveof "'string' required" host))
(unless (redis-value? port)
(assertion-violation 'redis-slaveof "'string' required" port))
(%redis-send-command redis-connection "SLAVEOF" host port))
;; Command: REPLICAOF host port
;; Summary: Make the server a replica of another instance, or promote it as master.
;; Since : 5.0.0
(define (redis-replicaof redis-connection host port)
(unless (redis-value? host)
(assertion-violation 'redis-replicaof "'string' required" host))
(unless (redis-value? port)
(assertion-violation 'redis-replicaof "'string' required" port))
(%redis-send-command redis-connection "REPLICAOF" host port))
;; Command: SLOWLOG subcommand [argument]
;; Summary: Manages the Redis slow queries log
;; Since : 2.2.12
(define (redis-slowlog redis-connection subcommand . opts)
(unless (redis-value? subcommand)
(assertion-violation 'redis-slowlog "'string' required" subcommand))
(apply %redis-send-command redis-connection "SLOWLOG" subcommand opts))
;; Command: SMEMBERS key
;; Summary: Get all the members in a set
;; Since : 1.0.0
(define (redis-smembers redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-smembers "'key' required" key))
(%redis-send-command redis-connection "SMEMBERS" key))
;; Command: SMOVE source destination member
;; Summary: Move a member from one set to another
;; Since : 1.0.0
(define (redis-smove redis-connection source destination member)
(unless (redis-value? source)
(assertion-violation 'redis-smove "'key' required" source))
(unless (redis-value? destination)
(assertion-violation 'redis-smove "'key' required" destination))
(unless (redis-value? member)
(assertion-violation 'redis-smove "'string' required" member))
(%redis-send-command redis-connection "SMOVE" source destination member))
;; Command: SORT key [BY pattern] [LIMIT offset count] [GET pattern [pattern ...]] [ASC|DESC] [ALPHA] [STORE destination]
;; Summary: Sort the elements in a list, set or sorted set
;; Since : 1.0.0
(define (redis-sort redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-sort "'key' required" key))
(apply %redis-send-command redis-connection "SORT" key opts))
;; Command: SPOP key [count]
;; Summary: Remove and return one or multiple random members from a set
;; Since : 1.0.0
(define (redis-spop redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-spop "'key' required" key))
(apply %redis-send-command redis-connection "SPOP" key opts))
;; Command: SRANDMEMBER key [count]
;; Summary: Get one or multiple random members from a set
;; Since : 1.0.0
(define (redis-srandmember redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-srandmember "'key' required" key))
(apply %redis-send-command redis-connection "SRANDMEMBER" key opts))
;; Command: SREM key member [member ...]
;; Summary: Remove one or more members from a set
;; Since : 1.0.0
(define (redis-srem redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-srem "'key' required" key))
(apply %redis-send-command redis-connection "SREM" key opts))
;; Command: STRLEN key
;; Summary: Get the length of the value stored in a key
;; Since : 2.2.0
(define (redis-strlen redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-strlen "'key' required" key))
(%redis-send-command redis-connection "STRLEN" key))
;; Command: SUBSCRIBE channel [channel ...]
;; Summary: Listen for messages published to the given channels
;; Since : 2.0.0
(define (redis-subscribe redis-connection . opts)
(apply %redis-send-command redis-connection "SUBSCRIBE" opts))
;; Command: SUNION key [key ...]
;; Summary: Add multiple sets
;; Since : 1.0.0
(define (redis-sunion redis-connection . opts)
(apply %redis-send-command redis-connection "SUNION" opts))
;; Command: SUNIONSTORE destination key [key ...]
;; Summary: Add multiple sets and store the resulting set in a key
;; Since : 1.0.0
(define (redis-sunionstore redis-connection destination . opts)
(unless (redis-value? destination)
(assertion-violation 'redis-sunionstore "'key' required" destination))
(apply %redis-send-command redis-connection "SUNIONSTORE" destination opts))
;; Command: SWAPDB index index
;; Summary: Swaps two Redis databases
;; Since : 4.0.0
(define (redis-swapdb redis-connection index index1)
(unless (integer? index)
(assertion-violation 'redis-swapdb "'integer' required" index))
(unless (integer? index1)
(assertion-violation 'redis-swapdb "'integer' required" index1))
(%redis-send-command redis-connection "SWAPDB" index index1))
;; Command: SYNC
;; Summary: Internal command used for replication
;; Since : 1.0.0
(define (redis-sync redis-connection)
(%redis-send-command redis-connection "SYNC"))
;; Command: TIME
;; Summary: Return the current server time
;; Since : 2.6.0
(define (redis-time redis-connection)
(%redis-send-command redis-connection "TIME"))
;; Command: TOUCH key [key ...]
;; Summary: Alters the last access time of a key(s). Returns the number of existing keys specified.
;; Since : 3.2.1
(define (redis-touch redis-connection . opts)
(apply %redis-send-command redis-connection "TOUCH" opts))
;; Command: TTL key
;; Summary: Get the time to live for a key
;; Since : 1.0.0
(define (redis-ttl redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-ttl "'key' required" key))
(%redis-send-command redis-connection "TTL" key))
;; Command: TYPE key
;; Summary: Determine the type stored at key
;; Since : 1.0.0
(define (redis-type redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-type "'key' required" key))
(%redis-send-command redis-connection "TYPE" key))
;; Command: UNSUBSCRIBE [channel [channel ...]]
;; Summary: Stop listening for messages posted to the given channels
;; Since : 2.0.0
(define (redis-unsubscribe redis-connection . opts)
(apply %redis-send-command redis-connection "UNSUBSCRIBE" opts))
;; Command: UNLINK key [key ...]
;; Summary: Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking.
;; Since : 4.0.0
(define (redis-unlink redis-connection . opts)
(apply %redis-send-command redis-connection "UNLINK" opts))
;; Command: UNWATCH
;; Summary: Forget about all watched keys
;; Since : 2.2.0
(define (redis-unwatch redis-connection)
(%redis-send-command redis-connection "UNWATCH"))
;; Command: WAIT numreplicas timeout
;; Summary: Wait for the synchronous replication of all the write commands sent in the context of the current connection
;; Since : 3.0.0
(define (redis-wait redis-connection numreplicas timeout)
(unless (integer? numreplicas)
(assertion-violation 'redis-wait "'integer' required" numreplicas))
(unless (integer? timeout)
(assertion-violation 'redis-wait "'integer' required" timeout))
(%redis-send-command redis-connection "WAIT" numreplicas timeout))
;; Command: WATCH key [key ...]
;; Summary: Watch the given keys to determine execution of the MULTI/EXEC block
;; Since : 2.2.0
(define (redis-watch redis-connection . opts)
(apply %redis-send-command redis-connection "WATCH" opts))
;; Command: ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
;; Summary: Add one or more members to a sorted set, or update its score if it already exists
;; Since : 1.2.0
(define (redis-zadd redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zadd "'key' required" key))
(apply %redis-send-command redis-connection "ZADD" key opts))
;; Command: ZCARD key
;; Summary: Get the number of members in a sorted set
;; Since : 1.2.0
(define (redis-zcard redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-zcard "'key' required" key))
(%redis-send-command redis-connection "ZCARD" key))
;; Command: ZCOUNT key min max
;; Summary: Count the members in a sorted set with scores within the given values
;; Since : 2.0.0
(define (redis-zcount redis-connection key min max)
(unless (redis-value? key)
(assertion-violation 'redis-zcount "'key' required" key))
(unless (redis-value? min)
(assertion-violation 'redis-zcount "'double' required" min))
(unless (redis-value? max)
(assertion-violation 'redis-zcount "'double' required" max))
(%redis-send-command redis-connection "ZCOUNT" key min max))
;; Command: ZINCRBY key increment member
;; Summary: Increment the score of a member in a sorted set
;; Since : 1.2.0
(define (redis-zincrby redis-connection key increment member)
(unless (redis-value? key)
(assertion-violation 'redis-zincrby "'key' required" key))
(unless (integer? increment)
(assertion-violation 'redis-zincrby "'integer' required" increment))
(unless (redis-value? member)
(assertion-violation 'redis-zincrby "'string' required" member))
(%redis-send-command redis-connection "ZINCRBY" key increment member))
;; Command: ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]
;; Summary: Intersect multiple sorted sets and store the resulting sorted set in a new key
;; Since : 2.0.0
(define (redis-zinterstore redis-connection destination numkeys . opts)
(unless (redis-value? destination)
(assertion-violation 'redis-zinterstore "'key' required" destination))
(unless (integer? numkeys)
(assertion-violation 'redis-zinterstore "'integer' required" numkeys))
(apply %redis-send-command redis-connection "ZINTERSTORE" destination numkeys opts))
;; Command: ZLEXCOUNT key min max
;; Summary: Count the number of members in a sorted set between a given lexicographical range
;; Since : 2.8.9
(define (redis-zlexcount redis-connection key min max)
(unless (redis-value? key)
(assertion-violation 'redis-zlexcount "'key' required" key))
(unless (redis-value? min)
(assertion-violation 'redis-zlexcount "'string' required" min))
(unless (redis-value? max)
(assertion-violation 'redis-zlexcount "'string' required" max))
(%redis-send-command redis-connection "ZLEXCOUNT" key min max))
;; Command: ZPOPMAX key [count]
;; Summary: Remove and return members with the highest scores in a sorted set
;; Since : 5.0.0
(define (redis-zpopmax redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zpopmax "'key' required" key))
(apply %redis-send-command redis-connection "ZPOPMAX" key opts))
;; Command: ZPOPMIN key [count]
;; Summary: Remove and return members with the lowest scores in a sorted set
;; Since : 5.0.0
(define (redis-zpopmin redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zpopmin "'key' required" key))
(apply %redis-send-command redis-connection "ZPOPMIN" key opts))
;; Command: ZRANGE key start stop [WITHSCORES]
;; Summary: Return a range of members in a sorted set, by index
;; Since : 1.2.0
(define (redis-zrange redis-connection key start stop . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrange "'key' required" key))
(unless (integer? start)
(assertion-violation 'redis-zrange "'integer' required" start))
(unless (integer? stop)
(assertion-violation 'redis-zrange "'integer' required" stop))
(apply %redis-send-command redis-connection "ZRANGE" key start stop opts))
;; Command: ZRANGEBYLEX key min max [LIMIT offset count]
;; Summary: Return a range of members in a sorted set, by lexicographical range
;; Since : 2.8.9
(define (redis-zrangebylex redis-connection key min max . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrangebylex "'key' required" key))
(unless (redis-value? min)
(assertion-violation 'redis-zrangebylex "'string' required" min))
(unless (redis-value? max)
(assertion-violation 'redis-zrangebylex "'string' required" max))
(apply %redis-send-command redis-connection "ZRANGEBYLEX" key min max opts))
;; Command: ZREVRANGEBYLEX key max min [LIMIT offset count]
;; Summary: Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings.
;; Since : 2.8.9
(define (redis-zrevrangebylex redis-connection key max min . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrevrangebylex "'key' required" key))
(unless (redis-value? max)
(assertion-violation 'redis-zrevrangebylex "'string' required" max))
(unless (redis-value? min)
(assertion-violation 'redis-zrevrangebylex "'string' required" min))
(apply %redis-send-command redis-connection "ZREVRANGEBYLEX" key max min opts))
;; Command: ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
;; Summary: Return a range of members in a sorted set, by score
;; Since : 1.0.5
(define (redis-zrangebyscore redis-connection key min max . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrangebyscore "'key' required" key))
(unless (redis-value? min)
(assertion-violation 'redis-zrangebyscore "'double' required" min))
(unless (redis-value? max)
(assertion-violation 'redis-zrangebyscore "'double' required" max))
(apply %redis-send-command redis-connection "ZRANGEBYSCORE" key min max opts))
;; Command: ZRANK key member
;; Summary: Determine the index of a member in a sorted set
;; Since : 2.0.0
(define (redis-zrank redis-connection key member)
(unless (redis-value? key)
(assertion-violation 'redis-zrank "'key' required" key))
(unless (redis-value? member)
(assertion-violation 'redis-zrank "'string' required" member))
(%redis-send-command redis-connection "ZRANK" key member))
;; Command: ZREM key member [member ...]
;; Summary: Remove one or more members from a sorted set
;; Since : 1.2.0
(define (redis-zrem redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrem "'key' required" key))
(apply %redis-send-command redis-connection "ZREM" key opts))
;; Command: ZREMRANGEBYLEX key min max
;; Summary: Remove all members in a sorted set between the given lexicographical range
;; Since : 2.8.9
(define (redis-zremrangebylex redis-connection key min max)
(unless (redis-value? key)
(assertion-violation 'redis-zremrangebylex "'key' required" key))
(unless (redis-value? min)
(assertion-violation 'redis-zremrangebylex "'string' required" min))
(unless (redis-value? max)
(assertion-violation 'redis-zremrangebylex "'string' required" max))
(%redis-send-command redis-connection "ZREMRANGEBYLEX" key min max))
;; Command: ZREMRANGEBYRANK key start stop
;; Summary: Remove all members in a sorted set within the given indexes
;; Since : 2.0.0
(define (redis-zremrangebyrank redis-connection key start stop)
(unless (redis-value? key)
(assertion-violation 'redis-zremrangebyrank "'key' required" key))
(unless (integer? start)
(assertion-violation 'redis-zremrangebyrank "'integer' required" start))
(unless (integer? stop)
(assertion-violation 'redis-zremrangebyrank "'integer' required" stop))
(%redis-send-command redis-connection "ZREMRANGEBYRANK" key start stop))
;; Command: ZREMRANGEBYSCORE key min max
;; Summary: Remove all members in a sorted set within the given scores
;; Since : 1.2.0
(define (redis-zremrangebyscore redis-connection key min max)
(unless (redis-value? key)
(assertion-violation 'redis-zremrangebyscore "'key' required" key))
(unless (redis-value? min)
(assertion-violation 'redis-zremrangebyscore "'double' required" min))
(unless (redis-value? max)
(assertion-violation 'redis-zremrangebyscore "'double' required" max))
(%redis-send-command redis-connection "ZREMRANGEBYSCORE" key min max))
;; Command: ZREVRANGE key start stop [WITHSCORES]
;; Summary: Return a range of members in a sorted set, by index, with scores ordered from high to low
;; Since : 1.2.0
(define (redis-zrevrange redis-connection key start stop . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrevrange "'key' required" key))
(unless (integer? start)
(assertion-violation 'redis-zrevrange "'integer' required" start))
(unless (integer? stop)
(assertion-violation 'redis-zrevrange "'integer' required" stop))
(apply %redis-send-command redis-connection "ZREVRANGE" key start stop opts))
;; Command: ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
;; Summary: Return a range of members in a sorted set, by score, with scores ordered from high to low
;; Since : 2.2.0
(define (redis-zrevrangebyscore redis-connection key max min . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zrevrangebyscore "'key' required" key))
(unless (redis-value? max)
(assertion-violation 'redis-zrevrangebyscore "'double' required" max))
(unless (redis-value? min)
(assertion-violation 'redis-zrevrangebyscore "'double' required" min))
(apply %redis-send-command redis-connection "ZREVRANGEBYSCORE" key max min opts))
;; Command: ZREVRANK key member
;; Summary: Determine the index of a member in a sorted set, with scores ordered from high to low
;; Since : 2.0.0
(define (redis-zrevrank redis-connection key member)
(unless (redis-value? key)
(assertion-violation 'redis-zrevrank "'key' required" key))
(unless (redis-value? member)
(assertion-violation 'redis-zrevrank "'string' required" member))
(%redis-send-command redis-connection "ZREVRANK" key member))
;; Command: ZSCORE key member
;; Summary: Get the score associated with the given member in a sorted set
;; Since : 1.2.0
(define (redis-zscore redis-connection key member)
(unless (redis-value? key)
(assertion-violation 'redis-zscore "'key' required" key))
(unless (redis-value? member)
(assertion-violation 'redis-zscore "'string' required" member))
(%redis-send-command redis-connection "ZSCORE" key member))
;; Command: ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]
;; Summary: Add multiple sorted sets and store the resulting sorted set in a new key
;; Since : 2.0.0
(define (redis-zunionstore redis-connection destination numkeys . opts)
(unless (redis-value? destination)
(assertion-violation 'redis-zunionstore "'key' required" destination))
(unless (integer? numkeys)
(assertion-violation 'redis-zunionstore "'integer' required" numkeys))
(apply %redis-send-command redis-connection "ZUNIONSTORE" destination numkeys opts))
;; Command: SCAN cursor [MATCH pattern] [COUNT count]
;; Summary: Incrementally iterate the keys space
;; Since : 2.8.0
(define (redis-scan redis-connection cursor . opts)
(unless (integer? cursor)
(assertion-violation 'redis-scan "'integer' required" cursor))
(apply %redis-send-command redis-connection "SCAN" cursor opts))
;; Command: SSCAN key cursor [MATCH pattern] [COUNT count]
;; Summary: Incrementally iterate Set elements
;; Since : 2.8.0
(define (redis-sscan redis-connection key cursor . opts)
(unless (redis-value? key)
(assertion-violation 'redis-sscan "'key' required" key))
(unless (integer? cursor)
(assertion-violation 'redis-sscan "'integer' required" cursor))
(apply %redis-send-command redis-connection "SSCAN" key cursor opts))
;; Command: HSCAN key cursor [MATCH pattern] [COUNT count]
;; Summary: Incrementally iterate hash fields and associated values
;; Since : 2.8.0
(define (redis-hscan redis-connection key cursor . opts)
(unless (redis-value? key)
(assertion-violation 'redis-hscan "'key' required" key))
(unless (integer? cursor)
(assertion-violation 'redis-hscan "'integer' required" cursor))
(apply %redis-send-command redis-connection "HSCAN" key cursor opts))
;; Command: ZSCAN key cursor [MATCH pattern] [COUNT count]
;; Summary: Incrementally iterate sorted sets elements and associated scores
;; Since : 2.8.0
(define (redis-zscan redis-connection key cursor . opts)
(unless (redis-value? key)
(assertion-violation 'redis-zscan "'key' required" key))
(unless (integer? cursor)
(assertion-violation 'redis-zscan "'integer' required" cursor))
(apply %redis-send-command redis-connection "ZSCAN" key cursor opts))
;; Command: XINFO [CONSUMERS key groupname] [GROUPS key] [STREAM key] [HELP]
;; Summary: Get information on streams and consumer groups
;; Since : 5.0.0
(define (redis-xinfo redis-connection . opts)
(apply %redis-send-command redis-connection "XINFO" opts))
;; Command: XADD key ID field string [field string ...]
;; Summary: Appends a new entry to a stream
;; Since : 5.0.0
(define (redis-xadd redis-connection key ID . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xadd "'key' required" key))
(unless (redis-value? ID)
(assertion-violation 'redis-xadd "'string' required" ID))
(apply %redis-send-command redis-connection "XADD" key ID opts))
;; Command: XTRIM key MAXLEN [~] count
;; Summary: Trims the stream to (approximately if '~' is passed) a certain size
;; Since : 5.0.0
(define (redis-xtrim redis-connection key strategy . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xtrim "'key' required" key))
(unless (string/symbol? strategy)
(assertion-violation 'redis-xtrim "'enum' required" strategy))
(apply %redis-send-command redis-connection "XTRIM" key strategy opts))
;; Command: XDEL key ID [ID ...]
;; Summary: Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist.
;; Since : 5.0.0
(define (redis-xdel redis-connection key . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xdel "'key' required" key))
(apply %redis-send-command redis-connection "XDEL" key opts))
;; Command: XRANGE key start end [COUNT count]
;; Summary: Return a range of elements in a stream, with IDs matching the specified IDs interval
;; Since : 5.0.0
(define (redis-xrange redis-connection key start end . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xrange "'key' required" key))
(unless (redis-value? start)
(assertion-violation 'redis-xrange "'string' required" start))
(unless (redis-value? end)
(assertion-violation 'redis-xrange "'string' required" end))
(apply %redis-send-command redis-connection "XRANGE" key start end opts))
;; Command: XREVRANGE key end start [COUNT count]
;; Summary: Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE
;; Since : 5.0.0
(define (redis-xrevrange redis-connection key end start . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xrevrange "'key' required" key))
(unless (redis-value? end)
(assertion-violation 'redis-xrevrange "'string' required" end))
(unless (redis-value? start)
(assertion-violation 'redis-xrevrange "'string' required" start))
(apply %redis-send-command redis-connection "XREVRANGE" key end start opts))
;; Command: XLEN key
;; Summary: Return the number of entires in a stream
;; Since : 5.0.0
(define (redis-xlen redis-connection key)
(unless (redis-value? key)
(assertion-violation 'redis-xlen "'key' required" key))
(%redis-send-command redis-connection "XLEN" key))
;; Command: XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] ID [ID ...]
;; Summary: Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block.
;; Since : 5.0.0
(define (redis-xread redis-connection . opts)
(apply %redis-send-command redis-connection "XREAD" opts))
;; Command: XGROUP [CREATE key groupname id-or-$] [SETID key groupname id-or-$] [DESTROY key groupname] [DELCONSUMER key groupname consumername]
;; Summary: Create, destroy, and manage consumer groups.
;; Since : 5.0.0
(define (redis-xgroup redis-connection . opts)
(apply %redis-send-command redis-connection "XGROUP" opts))
;; Command: XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] ID [ID ...]
;; Summary: Return new entries from a stream using a consumer group, or access the history of the pending entries for a given consumer. Can block.
;; Since : 5.0.0
(define (redis-xreadgroup redis-connection group-command . opts)
(unless (pair? group-command)
(assertion-violation 'redis-xreadgroup "A command must be a list" group-command))
(unless (or (eq? 'group (car group-command)) (equal? "GROUP" (car group-command)))
(assertion-violation 'redis-xreadgroup "'GROUP' sub command required" group-command))
(unless (= (length group-command) 3)
(assertion-violation 'redis-xreadgroup "Invalid 'GROUP' command" group-command))
(apply %redis-send-command redis-connection "XREADGROUP" group-command opts))
;; Command: XACK key group ID [ID ...]
;; Summary: Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL.
;; Since : 5.0.0
(define (redis-xack redis-connection key group . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xack "'key' required" key))
(unless (redis-value? group)
(assertion-violation 'redis-xack "'string' required" group))
(apply %redis-send-command redis-connection "XACK" key group opts))
;; Command: XCLAIM key group consumer min-idle-time ID [ID ...] [IDLE ms] [TIME ms-unix-time] [RETRYCOUNT count] [FORCE] [JUSTID]
;; Summary: Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer.
;; Since : 5.0.0
(define (redis-xclaim redis-connection key group consumer min-idle-time . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xclaim "'key' required" key))
(unless (redis-value? group)
(assertion-violation 'redis-xclaim "'string' required" group))
(unless (redis-value? consumer)
(assertion-violation 'redis-xclaim "'string' required" consumer))
(unless (redis-value? min-idle-time)
(assertion-violation 'redis-xclaim "'string' required" min-idle-time))
(apply %redis-send-command redis-connection "XCLAIM" key group consumer min-idle-time opts))
;; Command: XPENDING key group [start end count] [consumer]
;; Summary: Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged.
;; Since : 5.0.0
(define (redis-xpending redis-connection key group . opts)
(unless (redis-value? key)
(assertion-violation 'redis-xpending "'key' required" key))
(unless (redis-value? group)
(assertion-violation 'redis-xpending "'string' required" group))
(apply %redis-send-command redis-connection "XPENDING" key group opts))
;; internal utility
(define (string/symbol? v) (or (string? v) (symbol? v)))
(define (redis-value? v)
(or (string? v)
(bytevector? v)
(number? v)
(vector? v)))
(define (convert-arguments args)
(define (->upper s)
(if (symbol? s)
(string-upcase (symbol->string s))
s))
(define (command c) (cons (->upper (car c)) (cdr c)))
(cond ((null? args) '())
((pair? (car args)) (append (command (car args)) (convert-arguments (cdr args))))
(else (cons (->upper (car args)) (convert-arguments (cdr args))))))
(define (%redis-send-command conn . args)
(apply redis-send-command conn (convert-arguments args)))
)
| false |
cf2be0b402bf20146fff370ce208c053ac65d0c1 | ac2a3544b88444eabf12b68a9bce08941cd62581 | /tests/unit-tests/06-thread/current_thread.scm | fec7498b3a29381a977df81ee53a103c41eb2d9e | [
"Apache-2.0",
"LGPL-2.1-only"
]
| permissive | tomelam/gambit | 2fd664cf6ea68859d4549fdda62d31a25b2d6c6f | d60fdeb136b2ed89b75da5bfa8011aa334b29020 | refs/heads/master | 2020-11-27T06:39:26.718179 | 2019-12-15T16:56:31 | 2019-12-15T16:56:31 | 229,341,552 | 1 | 0 | Apache-2.0 | 2019-12-20T21:52:26 | 2019-12-20T21:52:26 | null | UTF-8 | Scheme | false | false | 193 | scm | current_thread.scm | (include "#.scm")
(check-true (thread? (current-thread)))
(check-eq? (current-thread) (current-thread))
(check-tail-exn wrong-number-of-arguments-exception? (lambda () (current-thread #f)))
| false |
e1b73a426de3ab0042ab69e50a343647882933e4 | 4b9471f2a1337d16ea45b93cf8f020b652fcfd76 | /tests/handle.ss | 29bcbb0cd53741c53edcb8491dba1833e1a70412 | []
| no_license | jeapostrophe/vht | d22909e823df40d3f9a28030e4b8fbeee5b2f131 | 303fa70ace028168069a2cf1336c72caf0b256a0 | refs/heads/master | 2016-09-06T08:40:09.837423 | 2013-10-31T01:29:02 | 2013-10-31T01:29:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,202 | ss | handle.ss | #lang scheme
(require tests/eli-tester
"../handle.ss")
(test
(template-string? "~a")
(template-string? "~a.txt")
(template-string? "foo~a.txt")
(template-string? "~a~a") => #f
(template-string? "~") => #f
(template-string? "a~") => #f
(template-string? 1) => #f
(template-string? #"~a~a") => #f
(template-string? #"~a") => #f
(local [(define r (make-root (build-path (current-directory) "root")))]
(test
(resource? (make-resource r (random)))
(resource? (make-resource r #:template "example~a" (random)))
(local [(define c (make-container r #:template "user~a"))]
(test
(container? c)
(resource? (make-resource c (random)))))
(delete-directory/files (handle-path r))))
(local [(define r (make-root (build-path (current-directory) "root")))
(define rrs
(for/list ([i (in-range 100)]) (random)))]
(define rs
(for/list ([i (in-range 100)]
[rr (in-list rrs)])
(make-resource r rr)))
(test
(for ([r (in-list (container-resources r))]
[rr (in-list rrs)])
(test (member r rs)
(member (resource-read r) rrs)))
(delete-directory/files (handle-path r))))) | false |
61e8c567e2a487bd230a0b39398c2e5205136ca0 | b58f908118cbb7f5ce309e2e28d666118370322d | /src/88.scm | cb659371c5afb86be32bb77c4a4ae10a9e312f73 | [
"MIT"
]
| permissive | arucil/L99 | a9e1b7ad2634850db357f7cc292fa2871997d93d | 8b9a3a8e7fb63efb2d13fab62cab2c1254a066d9 | refs/heads/master | 2021-09-01T08:18:39.029308 | 2017-12-26T00:37:55 | 2017-12-26T00:37:55 | 114,847,976 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 771 | scm | 88.scm | ;;; P88
(load "prelude.scm")
(load "87.scm")
(define (split g)
(define (find-edges nodes g)
(filter
(lambda (edge)
(or (memv (car edge) nodes)
(memv (cadr edge) nodes)))
(cadr g)))
(let f ([g g])
(if (null? (car g))
'()
(let* ([nodes (dfs g (caar g))]
[edges (find-edges nodes g)])
(cons (list nodes edges)
(f (list (remove* nodes (car g))
(remove* edges (cadr g)))))))))
(test (split '((a b c d) ((a b) (a c))))
'(((a b c) ((a b) (a c)))
((d) ())))
(test (split '((a b c d) ((a b) (c d))))
'(((a b) ((a b)))
((c d) ((c d)))))
(test (split '((a b c d) ((a b) (a c) (b d))))
'(((a b d c) ((a b) (a c) (b d)))))
| false |
e68a9c0de8b20575bd8bccc96196a1aea759fb9a | 6f721c7ab6fe315b2160e9665b19eab1b451568e | /osc.scm | 34503f37c85ce6a2bfd4797881bec54d6f4095aa | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
]
| permissive | imrehorvath/SICP | 7d76de693a3fc6a00adcf4d2191aad6d0196aec4 | 713ec57a9176c3ebd00b1ed804ad1e3cbade20df | refs/heads/master | 2021-06-22T15:19:57.682197 | 2021-02-18T16:26:08 | 2021-02-18T16:26:08 | 29,239,860 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 674 | scm | osc.scm | ;;; Define the constraint network
(define (oscillator-calculator hz h f)
(let ((x (make-connector))
(y (make-connector))
(z (make-connector))
(u (make-connector))
(v (make-connector)))
(multiplier hz y x)
(multiplier z u y)
(squarer u v)
(multiplier h f v)
(constant 1 x)
(constant 6.28318530718 z)
'ok))
;;; Create external connectors
(define Hz (make-connector))
(define H (make-connector))
(define F (make-connector))
;;; Create a constraint nerwork instance
;;; with the external connectors attached
(oscillator-calculator Hz H F)
;;; Attach probes
(probe "Frequency in Hz" Hz)
(probe "Inductivity in H" H)
(probe "Capacity in F" F)
| false |
393975a3cd4f26e759dff249fe9f5bb95c753c61 | ce567bbf766df9d98dc6a5e710a77870753c7d29 | /ch9/04.scm | 05ca768d5021293e957a0fd9b98bf19110456377 | []
| no_license | dott94/eopl | 1cbe2d98c948689687f88e514579e66412236fc9 | 47fadf6f2aa6ca72c831d6e2e2eccbe673129113 | refs/heads/master | 2021-01-18T06:42:35.921839 | 2015-01-21T07:06:43 | 2015-01-21T07:06:43 | 30,055,972 | 1 | 0 | null | 2015-01-30T04:21:42 | 2015-01-30T04:21:42 | null | UTF-8 | Scheme | false | false | 4,412 | scm | 04.scm | (load-relative "../libs/init.scm")
(load-relative "./base/classes/test.scm")
(load-relative "./base/classes/store.scm")
(load-relative "./base/classes/data-structures.scm")
(load-relative "./base/classes/environments.scm")
(load-relative "./base/classes/lang.scm")
(load-relative "./base/classes/interp.scm")
(load-relative "./base/classes/classes.scm")
(load-relative "./base/classes/class-cases.scm")
;; see new stuff, store class-inst in object,
;;; will save the time for lookup-class, but cost much more memory.
(define-datatype object object?
(an-object
(class-inst class?)
(fields (list-of reference?))))
;; new-object : ClassName -> Obj
(define new-object
(lambda (class-name)
(an-object
(lookup-class class-name)
(map
(lambda (field-name)
(newref (list 'uninitialized-field field-name)))
(class->field-names (lookup-class class-name))))))
;; new stuff
(define find-method-from-obj
(lambda (obj name)
(cases object obj
(an-object (class-inst fields)
(let ((m-env (class->method-env class-inst)))
(let ((maybe-pair (assq name m-env)))
(if (pair? maybe-pair) (cadr maybe-pair)
(report-method-not-found))))))))
;; value-of : Exp * Env -> ExpVal
(define value-of
(lambda (exp env)
(cases expression exp
(const-exp (num) (num-val num))
(var-exp (var) (deref (apply-env env var)))
(diff-exp (exp1 exp2)
(let ((val1
(expval->num
(value-of exp1 env)))
(val2
(expval->num
(value-of exp2 env))))
(num-val
(- val1 val2))))
(sum-exp (exp1 exp2)
(let ((val1
(expval->num
(value-of exp1 env)))
(val2
(expval->num
(value-of exp2 env))))
(num-val
(+ val1 val2))))
(zero?-exp (exp1)
(let ((val1 (expval->num (value-of exp1 env))))
(if (zero? val1)
(bool-val #t)
(bool-val #f))))
(if-exp (exp0 exp1 exp2)
(if (expval->bool (value-of exp0 env))
(value-of exp1 env)
(value-of exp2 env)))
(let-exp (vars exps body)
(if (instrument-let)
(printf "entering let ~s~%" vars))
(let ((new-env
(extend-env
vars
(map newref (values-of-exps exps env))
env)))
(if (instrument-let)
(begin
(printf "entering body of let ~s with env =~%" vars)
(pretty-print (env->list new-env))
(printf "store =~%")
(pretty-print (store->readable (get-store-as-list)))
(printf "~%")
))
(value-of body new-env)))
(proc-exp (bvars body)
(proc-val
(procedure bvars body env)))
(call-exp (rator rands)
(let ((proc (expval->proc (value-of rator env)))
(args (values-of-exps rands env)))
(apply-procedure proc args)))
(letrec-exp (p-names b-varss p-bodies letrec-body)
(value-of letrec-body
(extend-env-rec** p-names b-varss p-bodies env)))
(begin-exp (exp1 exps)
(letrec
((value-of-begins
(lambda (e1 es)
(let ((v1 (value-of e1 env)))
(if (null? es)
v1
(value-of-begins (car es) (cdr es)))))))
(value-of-begins exp1 exps)))
(assign-exp (x e)
(begin
(setref!
(apply-env env x)
(value-of e env))
(num-val 27)))
(list-exp (exps)
(list-val
(values-of-exps exps env)))
;; new cases for CLASSES language
(new-object-exp (class-name rands)
(let ((args (values-of-exps rands env))
(obj (new-object class-name)))
(apply-method
;; new stuff
(find-method-from-obj obj 'initialize)
obj
args)
obj))
(self-exp ()
(apply-env env '%self))
(method-call-exp (obj-exp method-name rands)
(let ((args (values-of-exps rands env))
(obj (value-of obj-exp env)))
(apply-method
;; new stuff
(find-method-from-obj obj method-name)
obj
args)))
(super-call-exp (method-name rands)
(let ((args (values-of-exps rands env))
(obj (apply-env env '%self)))
(apply-method
(find-method (apply-env env '%super) method-name)
obj
args)))
)))
(run "class aclass extends object
field i
method initialize(x) set i = x
method m(y) -(i,-(0,y))
let o1 = new aclass(3)
in send o1 m(2)")
(run-all)
| false |
057a8dd57d870ea74131ef0e3782d0617baa59f0 | d51c8c57288cacf9be97d41079acc7c9381ed95a | /apptpl/scheme/opt.scm | b3f93621104d7dd9ba3a3a8e77b005f9c5306cb2 | []
| no_license | yarec/svm | f926315fa5906bd7670ef77f60b7ef8083b87860 | d99fa4d3d8ecee1353b1a6e9245d40b60f98db2d | refs/heads/master | 2020-12-13T08:48:13.540156 | 2020-05-04T06:42:04 | 2020-05-04T06:42:04 | 19,306,837 | 2 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 33 | scm | opt.scm | /root/.svm/src/svm/scheme/opt.scm | false |
e6a4dcd888929ab989fcf3bdc322498d95694dcd | b9eb119317d72a6742dce6db5be8c1f78c7275ad | /random-scheme-stuff/random-walk.scm | c94d1bdb48de8ace7012cabe05ad0756cc236f1e | []
| no_license | offby1/doodles | be811b1004b262f69365d645a9ae837d87d7f707 | 316c4a0dedb8e4fde2da351a8de98a5725367901 | refs/heads/master | 2023-02-21T05:07:52.295903 | 2022-05-15T18:08:58 | 2022-05-15T18:08:58 | 512,608 | 2 | 1 | null | 2023-02-14T22:19:40 | 2010-02-11T04:24:52 | Scheme | UTF-8 | Scheme | false | false | 2,488 | scm | random-walk.scm | (require 'random)
(require 'alist)
(require 'sort)
(require 'pretty-print)
;; Demonstrates Benford's law: random numbers tend to begin with the
;; digit 1!
;; I don't really understand the law, and it clearly doesn't hold for
;; uniformly-distributed numbers. But it might hold for
;; normally-distributed numbers -- and probably holds for a sequence
;; of numbers that is a running total of a sequence of
;; normally-distributed numbers, as below.
;; The law predicts that each digit d will occur with a frequency of
;; log10 (1 + 1/d)
(pretty-print
(let ()
(define trials 10000)
(define (log10 x) (/ (log x) (log 10)))
(define (buncha-random-numbers random-function how-many)
(let loop ((how-many how-many)
(result '()))
(if (zero? how-many)
result
(loop (- how-many 1)
(cons
(random-function)
result)))))
(define (integrate list-of-numbers)
(let loop ((l list-of-numbers)
(total 0)
(result '()))
(if (null? l)
(reverse result)
(let ((so-far (+ total (car l))))
(loop (cdr l)
so-far
(cons so-far result))))))
(define (first-digit x)
(cond
((zero? x)
0)
((negative? x)
(first-digit (- x)))
(#t
(inexact->exact (floor (* x (expt 10 (- (floor (log10 x))))))))))
(define (histogram seq)
(define put (alist-associator =))
(define get (alist-inquirer =))
(define alist '())
(define (zero-if-false thing) (if (not thing) 0 thing))
(let loop ((seq seq))
(if (null? seq)
alist
(begin
(set! alist (put alist (car seq) (+ 1 (zero-if-false (get alist (car seq))))))
(loop (cdr seq))))))
(list
(cons 'actual
(sort
(histogram (map first-digit (integrate (buncha-random-numbers
random:normal
;; (lambda () (random 1000))
trials))))
(lambda (p1 p2)
(< (car p1)
(car p2)))))
(cons 'expected
(let ()
(map (lambda (d)
(cons d (inexact->exact (round (* trials (log10 (+ 1 (/ 1 d)))))))
)
(list 1 2 3 4 5 6 7 8 9))
)))))
| false |
561550c64a4dd8a5c29d10accb98c456ef963401 | e1fc47ba76cfc1881a5d096dc3d59ffe10d07be6 | /ch2/2.22.scm | 85afec09d240881ab5929f8e38664d82a154fe8d | []
| no_license | lythesia/sicp-sol | e30918e1ebd799e479bae7e2a9bd4b4ed32ac075 | 169394cf3c3996d1865242a2a2773682f6f00a14 | refs/heads/master | 2021-01-18T14:31:34.469130 | 2019-10-08T03:34:36 | 2019-10-08T03:34:36 | 27,224,763 | 2 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 336 | scm | 2.22.scm | ; (cons list e) -> (list . e)
; (cons e list) -> (e list)
(load "util.scm")
(load "2.18.scm")
(define (square-list l)
(define (iter rest result)
(if (null? rest)
result
(iter (cdr rest) (cons (square (car rest)) result))
)
)
(iter (reverse l) '())
)
; test
; (display (square-list (list 1 2 3 4)))(newline)
| false |
6302b6c87056895393ed27b4456f092df318f9db | be3e2276496ef3fba68fbd6e6250b64e6ba997c1 | /misc/scm/schemetalk/schemetalk.scm | cea16c9f0d1c8e9be819d37c6dd261a1ad24d341 | []
| no_license | TaylanUB/misc | 70e2e54c9bf4c2a810572230605a49e1bc03cb21 | a9b191a7d0d56b08d4c0f5404243c1ef0ffc4111 | refs/heads/master | 2021-01-19T07:02:07.307611 | 2018-07-15T20:59:01 | 2018-07-15T20:59:01 | 2,027,313 | 2 | 2 | null | null | null | null | UTF-8 | Scheme | false | false | 2,932 | scm | schemetalk.scm | (define-syntax self (identifier-syntax _self))
(define-syntax super (identifier-syntax _super))
(define-syntax new-object (syntax-rules (variables methods)
((_ prototype
(variables (vname vval) ...)
(methods (mname (margs ...) mbody mbody* ...) ...))
(let ((_super prototype) (vname vval) ... (mname (lambda (margs ...) mbody mbody* ...)) ...)
(define (_self msg . args)
(case msg
((Super) _super)
((Set)
(let ((msg (car args)) (args (cadr args)))
(case msg
((vname) (set! vname (car args)))
...
(else (error "No such member.")))))
((_get)
(let ((_self (car args)) (_super (cadr args)) (msg (caddr args)) (args (cadddr args)))
(case msg
((vname) vname)
...
((mname) (apply mname args))
...
(else
(_super '_get _self _super msg args)))))
(else
(_self '_get _self _super msg args))))
_self))
((_ (variables (vname vval) ...)
(methods (mname (margs ...) mbody mbody* ...) ...))
(let ((super (lambda (msg . args) (error "No such member:" (car args)))))
(new-object super (variables (vname vval) ...) (methods (mname (margs ...) mbody mbody* ...) ...))))
((_ prototype
(variables (vname vval) ...))
(new-object prototype (variables (vname vval) ...) (methods)))
((_ prototype
(methods (mname (margs ...) mbody mbody* ...) ...))
(new-object prototype (variables) (methods (mname (margs ...) mbody mbody* ...) ...)))
((_ (variables (vname vval) ...))
(new-object (variables (vname vval) ...) (methods)))
((_ (methods (mname (margs ...) mbody mbody* ...) ...))
(new-object (variables) (methods (mname (margs ...) mbody mbody* ...) ...)))))
#!
(define Class (new-object
(variables
(super #f)
(private-variables '())
(inherited-variables '())
(instance-methods '()))
(methods
(new ()
(let ((class self)
(define-syntax new-class
(syntax-rules (class-methods variables private inherited methods)
((_ (class-methods (cm (cmarg ...) cmbody ...) ...)
(variables (private (pvname pvval) ...) (inherited (ivname ivval) ...))
(methods (m (marg ...) mbody ...) ...))
(begin
(define (self msg . args) (case msg
((new)
#t)
((extend)
#t)
((subclass)
#t)
((cm) (apply (lambda (cmarg ...) cmbody ...) args)) ...))
self))))
!#
| true |
77ccb8aa7c8d7291b7c33ad6f7162925617219ca | 4fd95c081ccef6afc8845c94fedbe19699b115b6 | /chapter_2/2.87.scm | 4ffd3a555aac16d1e4020534fe9f9e3231fe77e9 | [
"MIT"
]
| permissive | ceoro9/sicp | 61ff130e655e705bafb39b4d336057bd3996195d | 7c0000f4ec4adc713f399dc12a0596c770bd2783 | refs/heads/master | 2020-05-03T09:41:04.531521 | 2019-08-08T12:14:35 | 2019-08-08T12:14:35 | 178,560,765 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 435 | scm | 2.87.scm | (define accumulate (op base func ls)
(if (null? ls)
base
(op (func (car ls))
(accumulate op base func (cdr ls)))))
(define (install-polymonial-package)
; ...
(define (poly-zero? p)
(accumulate
#t
(lambda (a b) (and a b))
(lambda (a) (zero? a)) ; call to generic function
(term-list p)))
(put 'zero? '(polynomial) poly-zero?))
| false |
5c03b8c5e2326d90266ae6b3e4af5f13e8ea2874 | acf7f1daf124ac853355208712e55a4daddba9ff | /src/Chicken-prelude.scm | 8d2bb5ea1accc448003103d39151bb44e25178ed | []
| no_license | vyzo/r7rs-benchmarks | b5e0814f64c8dc30ab6a683aa5c58fa77c10168b | 55de6b918cdfadb8acaac21f24d3c65fd4a863f0 | refs/heads/master | 2021-01-23T21:47:49.593389 | 2017-09-08T17:09:23 | 2017-09-08T17:09:23 | 102,905,978 | 1 | 0 | null | 2017-09-08T21:28:58 | 2017-09-08T21:28:58 | null | UTF-8 | Scheme | false | false | 537 | scm | Chicken-prelude.scm | (use extras) ;; for read-line
(use vector-lib) ;; for vector-map
(define flush-output-port flush-output)
(define-syntax import
(syntax-rules ()
((import stuff ...)
(begin) ;; do nothing
)))
(define current-jiffy current-milliseconds)
(define (jiffies-per-second) 1000)
(define current-second current-seconds)
(define inexact exact->inexact)
(define exact inexact->exact)
(define (square x) (* x x))
(define exact-integer? integer?)
(define (this-scheme-implementation-name) (string-append "chicken-" (chicken-version)))
| true |
3aeb3453f9cc656763aa7dab3aeb9a3e742b4af0 | a56a7265fb9658235c4afdddc93a953ae8032d39 | /hw5/hw5.ss | e92870139be264d9963abc5c0dbbfc89788394a1 | []
| no_license | shirley-zhou/CS131 | f338a66bf406d4f057dd2652eca175c657920dda | bd270299d2884e72ba1d72c4e80820d0f6a74251 | refs/heads/master | 2021-01-11T18:44:26.253418 | 2017-01-21T01:16:46 | 2017-01-21T01:16:46 | 79,614,674 | 0 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 2,726 | ss | hw5.ss | (define (null-ld? obj)
(if (eq? (car obj) (cdr obj)) #t #f)) ;if the two lists are equal, their listdiff is empty
;(if (null (listdiff obj)) #t #f)
(define (listdiff? obj)
(cond
[(empty? obj) #f]
[(not (pair? obj)) #f]
[(empty? (car obj)) #f]
[(eq? (car obj) (cdr obj)) #t] ; if list and sublist are equal, empty listdiff
[(not (pair? (car obj))) #f] ; if list is an atom, nonempty and not equal to sublist, then false
[#t (listdiff? (cons (cdar obj) (cdr obj)))]))
(define (cons-ld obj listdiff)
; error check for if last item is NOT a listdiff?
; check if listdiff is a listdiff??
(if (empty? obj) listdiff (cons (cons obj (car listdiff)) (cdr listdiff))))
(define (car-ld listdiff)
(if (equal? (car listdiff) (cdr listdiff)) 'error (caar listdiff)))
(define (cdr-ld listdiff)
(if (equal? (car listdiff) (cdr listdiff)) 'error (cons (cdar listdiff) (cdr listdiff))))
(define (listdiff . obj) ; take arbitrary obj
(let ((tail '(z)))
(cons (append obj tail) tail)))
; return any listdiff, such that car contains objs z, cdr is z
(define (length-ld listdiff)
(cond
[(empty? listdiff) 'error]
[(not (pair? listdiff)) 'error]
[(empty? (car listdiff)) 0]
[(eq? (car listdiff) (cdr listdiff)) 0] ; if list and sublist are equal, empty listdiff
[(not (pair? (car listdiff))) 'error] ; if list is an atom, nonempty and not equal to sublist, then false
[#t (let ((result (length-ld (cons (cdar listdiff) (cdr listdiff)))))
(if (eqv? 'error result) 'error (+ 1 result)))]))
; helper function to append all tails of listdiffs
(define (appenddiff listdiffs)
(cond
[(empty? listdiffs) empty]
[#t (append (listdiff->list (car listdiffs)) (appenddiff (cdr listdiffs)))]))
(define (appendtail listdiffs)
(cond
[(empty? listdiffs) null]
[#t (append (cdar listdiffs) (appendtail (cdr listdiffs)))]))
(define (append-ld . listdiff)
(cond
[(empty? listdiff) empty]
[#t (let ((tail '(z))) (cons (append (appenddiff listdiff) tail) tail))]))
(define (checkpairs obj pairs)
(cond
[(empty? pairs) #f]
[(if (eq? obj (caar pairs)) (car pairs) (checkpairs obj (cdr pairs)))]))
(define (assq-ld obj alistdiff) ;alistdiff has members which are all pairs
(cond
[(empty? alistdiff) #f]
[#t (checkpairs obj (car alistdiff))]))
(define (list->listdiff list)
(let ((tail '(z))) ; ensures same obj??
(cons (append list tail) tail))) ; return any list?? representing listdiff list
(define (listdiff->list listdiff)
(cond
[(eq? (car listdiff) (cdr listdiff)) empty]
[#t (cons (caar listdiff) (listdiff->list (cons (cdar listdiff) (cdr listdiff))))]))
(define-syntax expr-returning
(syntax-rules ()
((expr-returning listdiff) '(cons (car listdiff) (cdr listdiff)))))
| true |
857d4a24bab9755cd43ab80ef7e37f06c01e375c | b60cb8e39ec090137bef8c31ec9958a8b1c3e8a6 | /test/R5RS/scp1/ring-squares.scm | 2981922f4007fc4cba314a13f1400b46a8eaf1c2 | []
| no_license | acieroid/scala-am | eff387480d3baaa2f3238a378a6b330212a81042 | 13ef3befbfc664b77f31f56847c30d60f4ee7dfe | refs/heads/master | 2021-01-17T02:21:41.692568 | 2021-01-15T07:51:20 | 2021-01-15T07:51:20 | 28,140,080 | 32 | 16 | null | 2020-04-14T08:53:20 | 2014-12-17T14:14:02 | Scheme | UTF-8 | Scheme | false | false | 831 | scm | ring-squares.scm | (define result '())
(define output (lambda (i) (set! result (cons i result))))
(define (kw-lijst lst)
(define (loop l)
(let ((rest (cdr l))
(n (list (* (car l) (car l)))))
(set-cdr! l n)
(set-cdr! n rest)
(if (not (eq? rest lst))
(loop rest))))
(loop lst)
lst)
(define (print-ring r)
(define (aux l)
(if (not (null? l))
(if (eq? (cdr l) r)
(begin (output " ")
(output (car l))
(output "..."))
(begin (output " ")
(output (car l))
(aux (cdr l))))))
(aux r)
#t)
(define last-cons (cons 3 '()))
(define test-lst (cons 1 (cons 4 last-cons)))
(set-cdr! last-cons test-lst)
(print-ring (kw-lijst test-lst))
(equal? result '("..." 9 " " 3 " " 16 " " 4 " " 1 " " 1 " ")) | false |
cb31633fe3d3d4bd083822613c45e64b0779bbe1 | c763eaf97ffd7226a70d2f9a77465cbeae8937a8 | /scheme/gdk/foreign.scm | 7fa50a1ac4c832c2bd5678637edafdf22ba1a0ec | []
| no_license | jhidding/crossword | 66907f12e87593a0b72f234ebfabbd2fb56dae9c | b3084b6b1046eb0a996143db1a144fd32379916f | refs/heads/master | 2020-12-02T19:33:08.677722 | 2017-08-21T21:07:43 | 2017-08-21T21:07:43 | 96,357,240 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 192,311 | scm | foreign.scm | ;;; namespace: Gdk #f
;;; dependencies: ("cairo-1.0" "Pango-1.0" "GObject-2.0" "Gio-2.0" "GLib-2.0" "GdkPixbuf-2.0" "GModule-2.0")
(library (gdk foreign)
(export
AnchorHints->symbols
symbols->AnchorHints
GdkAppLaunchContext-gtype
gdk-app-launch-context-new
gdk-app-launch-context-set-desktop
gdk-app-launch-context-set-display
gdk-app-launch-context-set-icon
gdk-app-launch-context-set-icon-name
gdk-app-launch-context-set-screen
gdk-app-launch-context-set-timestamp
gdk-atom-name
gdk-atom-intern
gdk-atom-intern-static-string
AxisFlags->symbols
symbols->AxisFlags
AxisUse->symbol
symbol->AxisUse
BUTTON_MIDDLE
BUTTON_PRIMARY
BUTTON_SECONDARY
ByteOrder->symbol
symbol->ByteOrder
CURRENT_TIME
GdkColor-gtype
gdk-color-copy
gdk-color-equal
gdk-color-free
gdk-color-hash
gdk-color-to-string
gdk-color-parse
CrossingMode->symbol
symbol->CrossingMode
GdkCursor-gtype
gdk-cursor-new
gdk-cursor-new-for-display
gdk-cursor-new-from-name
gdk-cursor-new-from-pixbuf
gdk-cursor-new-from-surface
gdk-cursor-get-cursor-type
gdk-cursor-get-display
gdk-cursor-get-image
gdk-cursor-get-surface
gdk-cursor-ref
gdk-cursor-unref
CursorType->symbol
symbol->CursorType
GdkDevice-gtype
gdk-device-grab-info-libgtk-only
gdk-device-get-associated-device
gdk-device-get-axes
gdk-device-get-axis-use
gdk-device-get-device-type
gdk-device-get-display
gdk-device-get-has-cursor
gdk-device-get-key
gdk-device-get-last-event-window
gdk-device-get-mode
gdk-device-get-n-axes
gdk-device-get-n-keys
gdk-device-get-name
gdk-device-get-position
gdk-device-get-position-double
gdk-device-get-product-id
gdk-device-get-seat
gdk-device-get-source
gdk-device-get-vendor-id
gdk-device-get-window-at-position
gdk-device-get-window-at-position-double
gdk-device-grab
gdk-device-list-axes
gdk-device-list-slave-devices
gdk-device-set-axis-use
gdk-device-set-key
gdk-device-set-mode
gdk-device-ungrab
gdk-device-warp
GdkDeviceManager-gtype
gdk-device-manager-get-client-pointer
gdk-device-manager-get-display
gdk-device-manager-list-devices
DevicePadFeature->symbol
symbol->DevicePadFeature
GdkDeviceTool-gtype
gdk-device-tool-get-hardware-id
gdk-device-tool-get-serial
gdk-device-tool-get-tool-type
DeviceToolType->symbol
symbol->DeviceToolType
DeviceType->symbol
symbol->DeviceType
GdkDisplay-gtype
gdk-display-get-default
gdk-display-open
gdk-display-open-default-libgtk-only
gdk-display-beep
gdk-display-close
gdk-display-device-is-grabbed
gdk-display-flush
gdk-display-get-app-launch-context
gdk-display-get-default-cursor-size
gdk-display-get-default-group
gdk-display-get-default-screen
gdk-display-get-default-seat
gdk-display-get-device-manager
gdk-display-get-event
gdk-display-get-maximal-cursor-size
gdk-display-get-monitor
gdk-display-get-monitor-at-point
gdk-display-get-monitor-at-window
gdk-display-get-n-monitors
gdk-display-get-n-screens
gdk-display-get-name
gdk-display-get-pointer
gdk-display-get-primary-monitor
gdk-display-get-screen
gdk-display-get-window-at-pointer
gdk-display-has-pending
gdk-display-is-closed
gdk-display-keyboard-ungrab
gdk-display-list-devices
gdk-display-list-seats
gdk-display-notify-startup-complete
gdk-display-peek-event
gdk-display-pointer-is-grabbed
gdk-display-pointer-ungrab
gdk-display-put-event
gdk-display-request-selection-notification
gdk-display-set-double-click-distance
gdk-display-set-double-click-time
gdk-display-store-clipboard
gdk-display-supports-clipboard-persistence
gdk-display-supports-composite
gdk-display-supports-cursor-alpha
gdk-display-supports-cursor-color
gdk-display-supports-input-shapes
gdk-display-supports-selection-notification
gdk-display-supports-shapes
gdk-display-sync
gdk-display-warp-pointer
GdkDisplayManager-gtype
gdk-display-manager-get
gdk-display-manager-get-default-display
gdk-display-manager-list-displays
gdk-display-manager-open-display
gdk-display-manager-set-default-display
DragAction->symbols
symbols->DragAction
DragCancelReason->symbol
symbol->DragCancelReason
GdkDragContext-gtype
gdk-drag-context-get-actions
gdk-drag-context-get-dest-window
gdk-drag-context-get-device
gdk-drag-context-get-drag-window
gdk-drag-context-get-protocol
gdk-drag-context-get-selected-action
gdk-drag-context-get-source-window
gdk-drag-context-get-suggested-action
gdk-drag-context-list-targets
gdk-drag-context-manage-dnd
gdk-drag-context-set-device
gdk-drag-context-set-hotspot
DragProtocol->symbol
symbol->DragProtocol
GdkDrawingContext-gtype
gdk-drawing-context-get-cairo-context
gdk-drawing-context-get-clip
gdk-drawing-context-get-window
gdk-drawing-context-is-valid
EVENT_PROPAGATE
EVENT_STOP
GdkEvent-gtype
gdk-event-new
gdk-events-get-angle
gdk-events-get-center
gdk-events-get-distance
gdk-event-copy
gdk-event-free
gdk-event-get-axis
gdk-event-get-button
gdk-event-get-click-count
gdk-event-get-coords
gdk-event-get-device
gdk-event-get-device-tool
gdk-event-get-event-sequence
gdk-event-get-event-type
gdk-event-get-keycode
gdk-event-get-keyval
gdk-event-get-pointer-emulated
gdk-event-get-root-coords
gdk-event-get-scancode
gdk-event-get-screen
gdk-event-get-scroll-deltas
gdk-event-get-scroll-direction
gdk-event-get-seat
gdk-event-get-source-device
gdk-event-get-state
gdk-event-get-time
gdk-event-get-window
gdk-event-is-scroll-stop-event
gdk-event-put
gdk-event-set-device
gdk-event-set-device-tool
gdk-event-set-screen
gdk-event-set-source-device
gdk-event-triggers-context-menu
gdk-event-get
gdk-event-handler-set
gdk-event-peek
gdk-event-request-motions
EventMask->symbols
symbols->EventMask
GdkEventSequence-gtype
EventType->symbol
symbol->EventType
FilterReturn->symbol
symbol->FilterReturn
GdkFrameClock-gtype
gdk-frame-clock-begin-updating
gdk-frame-clock-end-updating
gdk-frame-clock-get-current-timings
gdk-frame-clock-get-frame-counter
gdk-frame-clock-get-frame-time
gdk-frame-clock-get-history-start
gdk-frame-clock-get-refresh-info
gdk-frame-clock-get-timings
gdk-frame-clock-request-phase
FrameClockPhase->symbols
symbols->FrameClockPhase
GdkFrameTimings-gtype
gdk-frame-timings-get-complete
gdk-frame-timings-get-frame-counter
gdk-frame-timings-get-frame-time
gdk-frame-timings-get-predicted-presentation-time
gdk-frame-timings-get-presentation-time
gdk-frame-timings-get-refresh-interval
gdk-frame-timings-ref
gdk-frame-timings-unref
FullscreenMode->symbol
symbol->FullscreenMode
GdkGLContext-gtype
gdk-gl-context-clear-current
gdk-gl-context-get-current
gdk-gl-context-get-debug-enabled
gdk-gl-context-get-display
gdk-gl-context-get-forward-compatible
gdk-gl-context-get-required-version
gdk-gl-context-get-shared-context
gdk-gl-context-get-use-es
gdk-gl-context-get-version
gdk-gl-context-get-window
gdk-gl-context-is-legacy
gdk-gl-context-make-current
gdk-gl-context-realize
gdk-gl-context-set-debug-enabled
gdk-gl-context-set-forward-compatible
gdk-gl-context-set-required-version
gdk-gl-context-set-use-es
GLError->symbol
symbol->GLError
gdk_gl_error_quark
GrabOwnership->symbol
symbol->GrabOwnership
GrabStatus->symbol
symbol->GrabStatus
Gravity->symbol
symbol->Gravity
InputMode->symbol
symbol->InputMode
InputSource->symbol
symbol->InputSource
KEY_0
KEY_1
KEY_2
KEY_3
KEY_3270_AltCursor
KEY_3270_Attn
KEY_3270_BackTab
KEY_3270_ChangeScreen
KEY_3270_Copy
KEY_3270_CursorBlink
KEY_3270_CursorSelect
KEY_3270_DeleteWord
KEY_3270_Duplicate
KEY_3270_Enter
KEY_3270_EraseEOF
KEY_3270_EraseInput
KEY_3270_ExSelect
KEY_3270_FieldMark
KEY_3270_Ident
KEY_3270_Jump
KEY_3270_KeyClick
KEY_3270_Left2
KEY_3270_PA1
KEY_3270_PA2
KEY_3270_PA3
KEY_3270_Play
KEY_3270_PrintScreen
KEY_3270_Quit
KEY_3270_Record
KEY_3270_Reset
KEY_3270_Right2
KEY_3270_Rule
KEY_3270_Setup
KEY_3270_Test
KEY_4
KEY_5
KEY_6
KEY_7
KEY_8
KEY_9
KEY_A
KEY_AE
KEY_Aacute
KEY_Abelowdot
KEY_Abreve
KEY_Abreveacute
KEY_Abrevebelowdot
KEY_Abrevegrave
KEY_Abrevehook
KEY_Abrevetilde
KEY_AccessX_Enable
KEY_AccessX_Feedback_Enable
KEY_Acircumflex
KEY_Acircumflexacute
KEY_Acircumflexbelowdot
KEY_Acircumflexgrave
KEY_Acircumflexhook
KEY_Acircumflextilde
KEY_AddFavorite
KEY_Adiaeresis
KEY_Agrave
KEY_Ahook
KEY_Alt_L
KEY_Alt_R
KEY_Amacron
KEY_Aogonek
KEY_ApplicationLeft
KEY_ApplicationRight
KEY_Arabic_0
KEY_Arabic_1
KEY_Arabic_2
KEY_Arabic_3
KEY_Arabic_4
KEY_Arabic_5
KEY_Arabic_6
KEY_Arabic_7
KEY_Arabic_8
KEY_Arabic_9
KEY_Arabic_ain
KEY_Arabic_alef
KEY_Arabic_alefmaksura
KEY_Arabic_beh
KEY_Arabic_comma
KEY_Arabic_dad
KEY_Arabic_dal
KEY_Arabic_damma
KEY_Arabic_dammatan
KEY_Arabic_ddal
KEY_Arabic_farsi_yeh
KEY_Arabic_fatha
KEY_Arabic_fathatan
KEY_Arabic_feh
KEY_Arabic_fullstop
KEY_Arabic_gaf
KEY_Arabic_ghain
KEY_Arabic_ha
KEY_Arabic_hah
KEY_Arabic_hamza
KEY_Arabic_hamza_above
KEY_Arabic_hamza_below
KEY_Arabic_hamzaonalef
KEY_Arabic_hamzaonwaw
KEY_Arabic_hamzaonyeh
KEY_Arabic_hamzaunderalef
KEY_Arabic_heh
KEY_Arabic_heh_doachashmee
KEY_Arabic_heh_goal
KEY_Arabic_jeem
KEY_Arabic_jeh
KEY_Arabic_kaf
KEY_Arabic_kasra
KEY_Arabic_kasratan
KEY_Arabic_keheh
KEY_Arabic_khah
KEY_Arabic_lam
KEY_Arabic_madda_above
KEY_Arabic_maddaonalef
KEY_Arabic_meem
KEY_Arabic_noon
KEY_Arabic_noon_ghunna
KEY_Arabic_peh
KEY_Arabic_percent
KEY_Arabic_qaf
KEY_Arabic_question_mark
KEY_Arabic_ra
KEY_Arabic_rreh
KEY_Arabic_sad
KEY_Arabic_seen
KEY_Arabic_semicolon
KEY_Arabic_shadda
KEY_Arabic_sheen
KEY_Arabic_sukun
KEY_Arabic_superscript_alef
KEY_Arabic_switch
KEY_Arabic_tah
KEY_Arabic_tatweel
KEY_Arabic_tcheh
KEY_Arabic_teh
KEY_Arabic_tehmarbuta
KEY_Arabic_thal
KEY_Arabic_theh
KEY_Arabic_tteh
KEY_Arabic_veh
KEY_Arabic_waw
KEY_Arabic_yeh
KEY_Arabic_yeh_baree
KEY_Arabic_zah
KEY_Arabic_zain
KEY_Aring
KEY_Armenian_AT
KEY_Armenian_AYB
KEY_Armenian_BEN
KEY_Armenian_CHA
KEY_Armenian_DA
KEY_Armenian_DZA
KEY_Armenian_E
KEY_Armenian_FE
KEY_Armenian_GHAT
KEY_Armenian_GIM
KEY_Armenian_HI
KEY_Armenian_HO
KEY_Armenian_INI
KEY_Armenian_JE
KEY_Armenian_KE
KEY_Armenian_KEN
KEY_Armenian_KHE
KEY_Armenian_LYUN
KEY_Armenian_MEN
KEY_Armenian_NU
KEY_Armenian_O
KEY_Armenian_PE
KEY_Armenian_PYUR
KEY_Armenian_RA
KEY_Armenian_RE
KEY_Armenian_SE
KEY_Armenian_SHA
KEY_Armenian_TCHE
KEY_Armenian_TO
KEY_Armenian_TSA
KEY_Armenian_TSO
KEY_Armenian_TYUN
KEY_Armenian_VEV
KEY_Armenian_VO
KEY_Armenian_VYUN
KEY_Armenian_YECH
KEY_Armenian_ZA
KEY_Armenian_ZHE
KEY_Armenian_accent
KEY_Armenian_amanak
KEY_Armenian_apostrophe
KEY_Armenian_at
KEY_Armenian_ayb
KEY_Armenian_ben
KEY_Armenian_but
KEY_Armenian_cha
KEY_Armenian_da
KEY_Armenian_dza
KEY_Armenian_e
KEY_Armenian_exclam
KEY_Armenian_fe
KEY_Armenian_full_stop
KEY_Armenian_ghat
KEY_Armenian_gim
KEY_Armenian_hi
KEY_Armenian_ho
KEY_Armenian_hyphen
KEY_Armenian_ini
KEY_Armenian_je
KEY_Armenian_ke
KEY_Armenian_ken
KEY_Armenian_khe
KEY_Armenian_ligature_ew
KEY_Armenian_lyun
KEY_Armenian_men
KEY_Armenian_nu
KEY_Armenian_o
KEY_Armenian_paruyk
KEY_Armenian_pe
KEY_Armenian_pyur
KEY_Armenian_question
KEY_Armenian_ra
KEY_Armenian_re
KEY_Armenian_se
KEY_Armenian_separation_mark
KEY_Armenian_sha
KEY_Armenian_shesht
KEY_Armenian_tche
KEY_Armenian_to
KEY_Armenian_tsa
KEY_Armenian_tso
KEY_Armenian_tyun
KEY_Armenian_verjaket
KEY_Armenian_vev
KEY_Armenian_vo
KEY_Armenian_vyun
KEY_Armenian_yech
KEY_Armenian_yentamna
KEY_Armenian_za
KEY_Armenian_zhe
KEY_Atilde
KEY_AudibleBell_Enable
KEY_AudioCycleTrack
KEY_AudioForward
KEY_AudioLowerVolume
KEY_AudioMedia
KEY_AudioMicMute
KEY_AudioMute
KEY_AudioNext
KEY_AudioPause
KEY_AudioPlay
KEY_AudioPrev
KEY_AudioRaiseVolume
KEY_AudioRandomPlay
KEY_AudioRecord
KEY_AudioRepeat
KEY_AudioRewind
KEY_AudioStop
KEY_Away
KEY_B
KEY_Babovedot
KEY_Back
KEY_BackForward
KEY_BackSpace
KEY_Battery
KEY_Begin
KEY_Blue
KEY_Bluetooth
KEY_Book
KEY_BounceKeys_Enable
KEY_Break
KEY_BrightnessAdjust
KEY_Byelorussian_SHORTU
KEY_Byelorussian_shortu
KEY_C
KEY_CD
KEY_CH
KEY_C_H
KEY_C_h
KEY_Cabovedot
KEY_Cacute
KEY_Calculator
KEY_Calendar
KEY_Cancel
KEY_Caps_Lock
KEY_Ccaron
KEY_Ccedilla
KEY_Ccircumflex
KEY_Ch
KEY_Clear
KEY_ClearGrab
KEY_Close
KEY_Codeinput
KEY_ColonSign
KEY_Community
KEY_ContrastAdjust
KEY_Control_L
KEY_Control_R
KEY_Copy
KEY_CruzeiroSign
KEY_Cut
KEY_CycleAngle
KEY_Cyrillic_A
KEY_Cyrillic_BE
KEY_Cyrillic_CHE
KEY_Cyrillic_CHE_descender
KEY_Cyrillic_CHE_vertstroke
KEY_Cyrillic_DE
KEY_Cyrillic_DZHE
KEY_Cyrillic_E
KEY_Cyrillic_EF
KEY_Cyrillic_EL
KEY_Cyrillic_EM
KEY_Cyrillic_EN
KEY_Cyrillic_EN_descender
KEY_Cyrillic_ER
KEY_Cyrillic_ES
KEY_Cyrillic_GHE
KEY_Cyrillic_GHE_bar
KEY_Cyrillic_HA
KEY_Cyrillic_HARDSIGN
KEY_Cyrillic_HA_descender
KEY_Cyrillic_I
KEY_Cyrillic_IE
KEY_Cyrillic_IO
KEY_Cyrillic_I_macron
KEY_Cyrillic_JE
KEY_Cyrillic_KA
KEY_Cyrillic_KA_descender
KEY_Cyrillic_KA_vertstroke
KEY_Cyrillic_LJE
KEY_Cyrillic_NJE
KEY_Cyrillic_O
KEY_Cyrillic_O_bar
KEY_Cyrillic_PE
KEY_Cyrillic_SCHWA
KEY_Cyrillic_SHA
KEY_Cyrillic_SHCHA
KEY_Cyrillic_SHHA
KEY_Cyrillic_SHORTI
KEY_Cyrillic_SOFTSIGN
KEY_Cyrillic_TE
KEY_Cyrillic_TSE
KEY_Cyrillic_U
KEY_Cyrillic_U_macron
KEY_Cyrillic_U_straight
KEY_Cyrillic_U_straight_bar
KEY_Cyrillic_VE
KEY_Cyrillic_YA
KEY_Cyrillic_YERU
KEY_Cyrillic_YU
KEY_Cyrillic_ZE
KEY_Cyrillic_ZHE
KEY_Cyrillic_ZHE_descender
KEY_Cyrillic_a
KEY_Cyrillic_be
KEY_Cyrillic_che
KEY_Cyrillic_che_descender
KEY_Cyrillic_che_vertstroke
KEY_Cyrillic_de
KEY_Cyrillic_dzhe
KEY_Cyrillic_e
KEY_Cyrillic_ef
KEY_Cyrillic_el
KEY_Cyrillic_em
KEY_Cyrillic_en
KEY_Cyrillic_en_descender
KEY_Cyrillic_er
KEY_Cyrillic_es
KEY_Cyrillic_ghe
KEY_Cyrillic_ghe_bar
KEY_Cyrillic_ha
KEY_Cyrillic_ha_descender
KEY_Cyrillic_hardsign
KEY_Cyrillic_i
KEY_Cyrillic_i_macron
KEY_Cyrillic_ie
KEY_Cyrillic_io
KEY_Cyrillic_je
KEY_Cyrillic_ka
KEY_Cyrillic_ka_descender
KEY_Cyrillic_ka_vertstroke
KEY_Cyrillic_lje
KEY_Cyrillic_nje
KEY_Cyrillic_o
KEY_Cyrillic_o_bar
KEY_Cyrillic_pe
KEY_Cyrillic_schwa
KEY_Cyrillic_sha
KEY_Cyrillic_shcha
KEY_Cyrillic_shha
KEY_Cyrillic_shorti
KEY_Cyrillic_softsign
KEY_Cyrillic_te
KEY_Cyrillic_tse
KEY_Cyrillic_u
KEY_Cyrillic_u_macron
KEY_Cyrillic_u_straight
KEY_Cyrillic_u_straight_bar
KEY_Cyrillic_ve
KEY_Cyrillic_ya
KEY_Cyrillic_yeru
KEY_Cyrillic_yu
KEY_Cyrillic_ze
KEY_Cyrillic_zhe
KEY_Cyrillic_zhe_descender
KEY_D
KEY_DOS
KEY_Dabovedot
KEY_Dcaron
KEY_Delete
KEY_Display
KEY_Documents
KEY_DongSign
KEY_Down
KEY_Dstroke
KEY_E
KEY_ENG
KEY_ETH
KEY_EZH
KEY_Eabovedot
KEY_Eacute
KEY_Ebelowdot
KEY_Ecaron
KEY_Ecircumflex
KEY_Ecircumflexacute
KEY_Ecircumflexbelowdot
KEY_Ecircumflexgrave
KEY_Ecircumflexhook
KEY_Ecircumflextilde
KEY_EcuSign
KEY_Ediaeresis
KEY_Egrave
KEY_Ehook
KEY_Eisu_Shift
KEY_Eisu_toggle
KEY_Eject
KEY_Emacron
KEY_End
KEY_Eogonek
KEY_Escape
KEY_Eth
KEY_Etilde
KEY_EuroSign
KEY_Excel
KEY_Execute
KEY_Explorer
KEY_F
KEY_F1
KEY_F10
KEY_F11
KEY_F12
KEY_F13
KEY_F14
KEY_F15
KEY_F16
KEY_F17
KEY_F18
KEY_F19
KEY_F2
KEY_F20
KEY_F21
KEY_F22
KEY_F23
KEY_F24
KEY_F25
KEY_F26
KEY_F27
KEY_F28
KEY_F29
KEY_F3
KEY_F30
KEY_F31
KEY_F32
KEY_F33
KEY_F34
KEY_F35
KEY_F4
KEY_F5
KEY_F6
KEY_F7
KEY_F8
KEY_F9
KEY_FFrancSign
KEY_Fabovedot
KEY_Farsi_0
KEY_Farsi_1
KEY_Farsi_2
KEY_Farsi_3
KEY_Farsi_4
KEY_Farsi_5
KEY_Farsi_6
KEY_Farsi_7
KEY_Farsi_8
KEY_Farsi_9
KEY_Farsi_yeh
KEY_Favorites
KEY_Finance
KEY_Find
KEY_First_Virtual_Screen
KEY_Forward
KEY_FrameBack
KEY_FrameForward
KEY_G
KEY_Gabovedot
KEY_Game
KEY_Gbreve
KEY_Gcaron
KEY_Gcedilla
KEY_Gcircumflex
KEY_Georgian_an
KEY_Georgian_ban
KEY_Georgian_can
KEY_Georgian_char
KEY_Georgian_chin
KEY_Georgian_cil
KEY_Georgian_don
KEY_Georgian_en
KEY_Georgian_fi
KEY_Georgian_gan
KEY_Georgian_ghan
KEY_Georgian_hae
KEY_Georgian_har
KEY_Georgian_he
KEY_Georgian_hie
KEY_Georgian_hoe
KEY_Georgian_in
KEY_Georgian_jhan
KEY_Georgian_jil
KEY_Georgian_kan
KEY_Georgian_khar
KEY_Georgian_las
KEY_Georgian_man
KEY_Georgian_nar
KEY_Georgian_on
KEY_Georgian_par
KEY_Georgian_phar
KEY_Georgian_qar
KEY_Georgian_rae
KEY_Georgian_san
KEY_Georgian_shin
KEY_Georgian_tan
KEY_Georgian_tar
KEY_Georgian_un
KEY_Georgian_vin
KEY_Georgian_we
KEY_Georgian_xan
KEY_Georgian_zen
KEY_Georgian_zhar
KEY_Go
KEY_Greek_ALPHA
KEY_Greek_ALPHAaccent
KEY_Greek_BETA
KEY_Greek_CHI
KEY_Greek_DELTA
KEY_Greek_EPSILON
KEY_Greek_EPSILONaccent
KEY_Greek_ETA
KEY_Greek_ETAaccent
KEY_Greek_GAMMA
KEY_Greek_IOTA
KEY_Greek_IOTAaccent
KEY_Greek_IOTAdiaeresis
KEY_Greek_IOTAdieresis
KEY_Greek_KAPPA
KEY_Greek_LAMBDA
KEY_Greek_LAMDA
KEY_Greek_MU
KEY_Greek_NU
KEY_Greek_OMEGA
KEY_Greek_OMEGAaccent
KEY_Greek_OMICRON
KEY_Greek_OMICRONaccent
KEY_Greek_PHI
KEY_Greek_PI
KEY_Greek_PSI
KEY_Greek_RHO
KEY_Greek_SIGMA
KEY_Greek_TAU
KEY_Greek_THETA
KEY_Greek_UPSILON
KEY_Greek_UPSILONaccent
KEY_Greek_UPSILONdieresis
KEY_Greek_XI
KEY_Greek_ZETA
KEY_Greek_accentdieresis
KEY_Greek_alpha
KEY_Greek_alphaaccent
KEY_Greek_beta
KEY_Greek_chi
KEY_Greek_delta
KEY_Greek_epsilon
KEY_Greek_epsilonaccent
KEY_Greek_eta
KEY_Greek_etaaccent
KEY_Greek_finalsmallsigma
KEY_Greek_gamma
KEY_Greek_horizbar
KEY_Greek_iota
KEY_Greek_iotaaccent
KEY_Greek_iotaaccentdieresis
KEY_Greek_iotadieresis
KEY_Greek_kappa
KEY_Greek_lambda
KEY_Greek_lamda
KEY_Greek_mu
KEY_Greek_nu
KEY_Greek_omega
KEY_Greek_omegaaccent
KEY_Greek_omicron
KEY_Greek_omicronaccent
KEY_Greek_phi
KEY_Greek_pi
KEY_Greek_psi
KEY_Greek_rho
KEY_Greek_sigma
KEY_Greek_switch
KEY_Greek_tau
KEY_Greek_theta
KEY_Greek_upsilon
KEY_Greek_upsilonaccent
KEY_Greek_upsilonaccentdieresis
KEY_Greek_upsilondieresis
KEY_Greek_xi
KEY_Greek_zeta
KEY_Green
KEY_H
KEY_Hangul
KEY_Hangul_A
KEY_Hangul_AE
KEY_Hangul_AraeA
KEY_Hangul_AraeAE
KEY_Hangul_Banja
KEY_Hangul_Cieuc
KEY_Hangul_Codeinput
KEY_Hangul_Dikeud
KEY_Hangul_E
KEY_Hangul_EO
KEY_Hangul_EU
KEY_Hangul_End
KEY_Hangul_Hanja
KEY_Hangul_Hieuh
KEY_Hangul_I
KEY_Hangul_Ieung
KEY_Hangul_J_Cieuc
KEY_Hangul_J_Dikeud
KEY_Hangul_J_Hieuh
KEY_Hangul_J_Ieung
KEY_Hangul_J_Jieuj
KEY_Hangul_J_Khieuq
KEY_Hangul_J_Kiyeog
KEY_Hangul_J_KiyeogSios
KEY_Hangul_J_KkogjiDalrinIeung
KEY_Hangul_J_Mieum
KEY_Hangul_J_Nieun
KEY_Hangul_J_NieunHieuh
KEY_Hangul_J_NieunJieuj
KEY_Hangul_J_PanSios
KEY_Hangul_J_Phieuf
KEY_Hangul_J_Pieub
KEY_Hangul_J_PieubSios
KEY_Hangul_J_Rieul
KEY_Hangul_J_RieulHieuh
KEY_Hangul_J_RieulKiyeog
KEY_Hangul_J_RieulMieum
KEY_Hangul_J_RieulPhieuf
KEY_Hangul_J_RieulPieub
KEY_Hangul_J_RieulSios
KEY_Hangul_J_RieulTieut
KEY_Hangul_J_Sios
KEY_Hangul_J_SsangKiyeog
KEY_Hangul_J_SsangSios
KEY_Hangul_J_Tieut
KEY_Hangul_J_YeorinHieuh
KEY_Hangul_Jamo
KEY_Hangul_Jeonja
KEY_Hangul_Jieuj
KEY_Hangul_Khieuq
KEY_Hangul_Kiyeog
KEY_Hangul_KiyeogSios
KEY_Hangul_KkogjiDalrinIeung
KEY_Hangul_Mieum
KEY_Hangul_MultipleCandidate
KEY_Hangul_Nieun
KEY_Hangul_NieunHieuh
KEY_Hangul_NieunJieuj
KEY_Hangul_O
KEY_Hangul_OE
KEY_Hangul_PanSios
KEY_Hangul_Phieuf
KEY_Hangul_Pieub
KEY_Hangul_PieubSios
KEY_Hangul_PostHanja
KEY_Hangul_PreHanja
KEY_Hangul_PreviousCandidate
KEY_Hangul_Rieul
KEY_Hangul_RieulHieuh
KEY_Hangul_RieulKiyeog
KEY_Hangul_RieulMieum
KEY_Hangul_RieulPhieuf
KEY_Hangul_RieulPieub
KEY_Hangul_RieulSios
KEY_Hangul_RieulTieut
KEY_Hangul_RieulYeorinHieuh
KEY_Hangul_Romaja
KEY_Hangul_SingleCandidate
KEY_Hangul_Sios
KEY_Hangul_Special
KEY_Hangul_SsangDikeud
KEY_Hangul_SsangJieuj
KEY_Hangul_SsangKiyeog
KEY_Hangul_SsangPieub
KEY_Hangul_SsangSios
KEY_Hangul_Start
KEY_Hangul_SunkyeongeumMieum
KEY_Hangul_SunkyeongeumPhieuf
KEY_Hangul_SunkyeongeumPieub
KEY_Hangul_Tieut
KEY_Hangul_U
KEY_Hangul_WA
KEY_Hangul_WAE
KEY_Hangul_WE
KEY_Hangul_WEO
KEY_Hangul_WI
KEY_Hangul_YA
KEY_Hangul_YAE
KEY_Hangul_YE
KEY_Hangul_YEO
KEY_Hangul_YI
KEY_Hangul_YO
KEY_Hangul_YU
KEY_Hangul_YeorinHieuh
KEY_Hangul_switch
KEY_Hankaku
KEY_Hcircumflex
KEY_Hebrew_switch
KEY_Help
KEY_Henkan
KEY_Henkan_Mode
KEY_Hibernate
KEY_Hiragana
KEY_Hiragana_Katakana
KEY_History
KEY_Home
KEY_HomePage
KEY_HotLinks
KEY_Hstroke
KEY_Hyper_L
KEY_Hyper_R
KEY_I
KEY_ISO_Center_Object
KEY_ISO_Continuous_Underline
KEY_ISO_Discontinuous_Underline
KEY_ISO_Emphasize
KEY_ISO_Enter
KEY_ISO_Fast_Cursor_Down
KEY_ISO_Fast_Cursor_Left
KEY_ISO_Fast_Cursor_Right
KEY_ISO_Fast_Cursor_Up
KEY_ISO_First_Group
KEY_ISO_First_Group_Lock
KEY_ISO_Group_Latch
KEY_ISO_Group_Lock
KEY_ISO_Group_Shift
KEY_ISO_Last_Group
KEY_ISO_Last_Group_Lock
KEY_ISO_Left_Tab
KEY_ISO_Level2_Latch
KEY_ISO_Level3_Latch
KEY_ISO_Level3_Lock
KEY_ISO_Level3_Shift
KEY_ISO_Level5_Latch
KEY_ISO_Level5_Lock
KEY_ISO_Level5_Shift
KEY_ISO_Lock
KEY_ISO_Move_Line_Down
KEY_ISO_Move_Line_Up
KEY_ISO_Next_Group
KEY_ISO_Next_Group_Lock
KEY_ISO_Partial_Line_Down
KEY_ISO_Partial_Line_Up
KEY_ISO_Partial_Space_Left
KEY_ISO_Partial_Space_Right
KEY_ISO_Prev_Group
KEY_ISO_Prev_Group_Lock
KEY_ISO_Release_Both_Margins
KEY_ISO_Release_Margin_Left
KEY_ISO_Release_Margin_Right
KEY_ISO_Set_Margin_Left
KEY_ISO_Set_Margin_Right
KEY_Iabovedot
KEY_Iacute
KEY_Ibelowdot
KEY_Ibreve
KEY_Icircumflex
KEY_Idiaeresis
KEY_Igrave
KEY_Ihook
KEY_Imacron
KEY_Insert
KEY_Iogonek
KEY_Itilde
KEY_J
KEY_Jcircumflex
KEY_K
KEY_KP_0
KEY_KP_1
KEY_KP_2
KEY_KP_3
KEY_KP_4
KEY_KP_5
KEY_KP_6
KEY_KP_7
KEY_KP_8
KEY_KP_9
KEY_KP_Add
KEY_KP_Begin
KEY_KP_Decimal
KEY_KP_Delete
KEY_KP_Divide
KEY_KP_Down
KEY_KP_End
KEY_KP_Enter
KEY_KP_Equal
KEY_KP_F1
KEY_KP_F2
KEY_KP_F3
KEY_KP_F4
KEY_KP_Home
KEY_KP_Insert
KEY_KP_Left
KEY_KP_Multiply
KEY_KP_Next
KEY_KP_Page_Down
KEY_KP_Page_Up
KEY_KP_Prior
KEY_KP_Right
KEY_KP_Separator
KEY_KP_Space
KEY_KP_Subtract
KEY_KP_Tab
KEY_KP_Up
KEY_Kana_Lock
KEY_Kana_Shift
KEY_Kanji
KEY_Kanji_Bangou
KEY_Katakana
KEY_KbdBrightnessDown
KEY_KbdBrightnessUp
KEY_KbdLightOnOff
KEY_Kcedilla
KEY_Korean_Won
KEY_L
KEY_L1
KEY_L10
KEY_L2
KEY_L3
KEY_L4
KEY_L5
KEY_L6
KEY_L7
KEY_L8
KEY_L9
KEY_Lacute
KEY_Last_Virtual_Screen
KEY_Launch0
KEY_Launch1
KEY_Launch2
KEY_Launch3
KEY_Launch4
KEY_Launch5
KEY_Launch6
KEY_Launch7
KEY_Launch8
KEY_Launch9
KEY_LaunchA
KEY_LaunchB
KEY_LaunchC
KEY_LaunchD
KEY_LaunchE
KEY_LaunchF
KEY_Lbelowdot
KEY_Lcaron
KEY_Lcedilla
KEY_Left
KEY_LightBulb
KEY_Linefeed
KEY_LiraSign
KEY_LogGrabInfo
KEY_LogOff
KEY_LogWindowTree
KEY_Lstroke
KEY_M
KEY_Mabovedot
KEY_Macedonia_DSE
KEY_Macedonia_GJE
KEY_Macedonia_KJE
KEY_Macedonia_dse
KEY_Macedonia_gje
KEY_Macedonia_kje
KEY_Mae_Koho
KEY_Mail
KEY_MailForward
KEY_Market
KEY_Massyo
KEY_Meeting
KEY_Memo
KEY_Menu
KEY_MenuKB
KEY_MenuPB
KEY_Messenger
KEY_Meta_L
KEY_Meta_R
KEY_MillSign
KEY_ModeLock
KEY_Mode_switch
KEY_MonBrightnessDown
KEY_MonBrightnessUp
KEY_MouseKeys_Accel_Enable
KEY_MouseKeys_Enable
KEY_Muhenkan
KEY_Multi_key
KEY_MultipleCandidate
KEY_Music
KEY_MyComputer
KEY_MySites
KEY_N
KEY_Nacute
KEY_NairaSign
KEY_Ncaron
KEY_Ncedilla
KEY_New
KEY_NewSheqelSign
KEY_News
KEY_Next
KEY_Next_VMode
KEY_Next_Virtual_Screen
KEY_Ntilde
KEY_Num_Lock
KEY_O
KEY_OE
KEY_Oacute
KEY_Obarred
KEY_Obelowdot
KEY_Ocaron
KEY_Ocircumflex
KEY_Ocircumflexacute
KEY_Ocircumflexbelowdot
KEY_Ocircumflexgrave
KEY_Ocircumflexhook
KEY_Ocircumflextilde
KEY_Odiaeresis
KEY_Odoubleacute
KEY_OfficeHome
KEY_Ograve
KEY_Ohook
KEY_Ohorn
KEY_Ohornacute
KEY_Ohornbelowdot
KEY_Ohorngrave
KEY_Ohornhook
KEY_Ohorntilde
KEY_Omacron
KEY_Ooblique
KEY_Open
KEY_OpenURL
KEY_Option
KEY_Oslash
KEY_Otilde
KEY_Overlay1_Enable
KEY_Overlay2_Enable
KEY_P
KEY_Pabovedot
KEY_Page_Down
KEY_Page_Up
KEY_Paste
KEY_Pause
KEY_PesetaSign
KEY_Phone
KEY_Pictures
KEY_Pointer_Accelerate
KEY_Pointer_Button1
KEY_Pointer_Button2
KEY_Pointer_Button3
KEY_Pointer_Button4
KEY_Pointer_Button5
KEY_Pointer_Button_Dflt
KEY_Pointer_DblClick1
KEY_Pointer_DblClick2
KEY_Pointer_DblClick3
KEY_Pointer_DblClick4
KEY_Pointer_DblClick5
KEY_Pointer_DblClick_Dflt
KEY_Pointer_DfltBtnNext
KEY_Pointer_DfltBtnPrev
KEY_Pointer_Down
KEY_Pointer_DownLeft
KEY_Pointer_DownRight
KEY_Pointer_Drag1
KEY_Pointer_Drag2
KEY_Pointer_Drag3
KEY_Pointer_Drag4
KEY_Pointer_Drag5
KEY_Pointer_Drag_Dflt
KEY_Pointer_EnableKeys
KEY_Pointer_Left
KEY_Pointer_Right
KEY_Pointer_Up
KEY_Pointer_UpLeft
KEY_Pointer_UpRight
KEY_PowerDown
KEY_PowerOff
KEY_Prev_VMode
KEY_Prev_Virtual_Screen
KEY_PreviousCandidate
KEY_Print
KEY_Prior
KEY_Q
KEY_R
KEY_R1
KEY_R10
KEY_R11
KEY_R12
KEY_R13
KEY_R14
KEY_R15
KEY_R2
KEY_R3
KEY_R4
KEY_R5
KEY_R6
KEY_R7
KEY_R8
KEY_R9
KEY_Racute
KEY_Rcaron
KEY_Rcedilla
KEY_Red
KEY_Redo
KEY_Refresh
KEY_Reload
KEY_RepeatKeys_Enable
KEY_Reply
KEY_Return
KEY_Right
KEY_RockerDown
KEY_RockerEnter
KEY_RockerUp
KEY_Romaji
KEY_RotateWindows
KEY_RotationKB
KEY_RotationPB
KEY_RupeeSign
KEY_S
KEY_SCHWA
KEY_Sabovedot
KEY_Sacute
KEY_Save
KEY_Scaron
KEY_Scedilla
KEY_Scircumflex
KEY_ScreenSaver
KEY_ScrollClick
KEY_ScrollDown
KEY_ScrollUp
KEY_Scroll_Lock
KEY_Search
KEY_Select
KEY_SelectButton
KEY_Send
KEY_Serbian_DJE
KEY_Serbian_DZE
KEY_Serbian_JE
KEY_Serbian_LJE
KEY_Serbian_NJE
KEY_Serbian_TSHE
KEY_Serbian_dje
KEY_Serbian_dze
KEY_Serbian_je
KEY_Serbian_lje
KEY_Serbian_nje
KEY_Serbian_tshe
KEY_Shift_L
KEY_Shift_Lock
KEY_Shift_R
KEY_Shop
KEY_SingleCandidate
KEY_Sinh_a
KEY_Sinh_aa
KEY_Sinh_aa2
KEY_Sinh_ae
KEY_Sinh_ae2
KEY_Sinh_aee
KEY_Sinh_aee2
KEY_Sinh_ai
KEY_Sinh_ai2
KEY_Sinh_al
KEY_Sinh_au
KEY_Sinh_au2
KEY_Sinh_ba
KEY_Sinh_bha
KEY_Sinh_ca
KEY_Sinh_cha
KEY_Sinh_dda
KEY_Sinh_ddha
KEY_Sinh_dha
KEY_Sinh_dhha
KEY_Sinh_e
KEY_Sinh_e2
KEY_Sinh_ee
KEY_Sinh_ee2
KEY_Sinh_fa
KEY_Sinh_ga
KEY_Sinh_gha
KEY_Sinh_h2
KEY_Sinh_ha
KEY_Sinh_i
KEY_Sinh_i2
KEY_Sinh_ii
KEY_Sinh_ii2
KEY_Sinh_ja
KEY_Sinh_jha
KEY_Sinh_jnya
KEY_Sinh_ka
KEY_Sinh_kha
KEY_Sinh_kunddaliya
KEY_Sinh_la
KEY_Sinh_lla
KEY_Sinh_lu
KEY_Sinh_lu2
KEY_Sinh_luu
KEY_Sinh_luu2
KEY_Sinh_ma
KEY_Sinh_mba
KEY_Sinh_na
KEY_Sinh_ndda
KEY_Sinh_ndha
KEY_Sinh_ng
KEY_Sinh_ng2
KEY_Sinh_nga
KEY_Sinh_nja
KEY_Sinh_nna
KEY_Sinh_nya
KEY_Sinh_o
KEY_Sinh_o2
KEY_Sinh_oo
KEY_Sinh_oo2
KEY_Sinh_pa
KEY_Sinh_pha
KEY_Sinh_ra
KEY_Sinh_ri
KEY_Sinh_rii
KEY_Sinh_ru2
KEY_Sinh_ruu2
KEY_Sinh_sa
KEY_Sinh_sha
KEY_Sinh_ssha
KEY_Sinh_tha
KEY_Sinh_thha
KEY_Sinh_tta
KEY_Sinh_ttha
KEY_Sinh_u
KEY_Sinh_u2
KEY_Sinh_uu
KEY_Sinh_uu2
KEY_Sinh_va
KEY_Sinh_ya
KEY_Sleep
KEY_SlowKeys_Enable
KEY_Spell
KEY_SplitScreen
KEY_Standby
KEY_Start
KEY_StickyKeys_Enable
KEY_Stop
KEY_Subtitle
KEY_Super_L
KEY_Super_R
KEY_Support
KEY_Suspend
KEY_Switch_VT_1
KEY_Switch_VT_10
KEY_Switch_VT_11
KEY_Switch_VT_12
KEY_Switch_VT_2
KEY_Switch_VT_3
KEY_Switch_VT_4
KEY_Switch_VT_5
KEY_Switch_VT_6
KEY_Switch_VT_7
KEY_Switch_VT_8
KEY_Switch_VT_9
KEY_Sys_Req
KEY_T
KEY_THORN
KEY_Tab
KEY_Tabovedot
KEY_TaskPane
KEY_Tcaron
KEY_Tcedilla
KEY_Terminal
KEY_Terminate_Server
KEY_Thai_baht
KEY_Thai_bobaimai
KEY_Thai_chochan
KEY_Thai_chochang
KEY_Thai_choching
KEY_Thai_chochoe
KEY_Thai_dochada
KEY_Thai_dodek
KEY_Thai_fofa
KEY_Thai_fofan
KEY_Thai_hohip
KEY_Thai_honokhuk
KEY_Thai_khokhai
KEY_Thai_khokhon
KEY_Thai_khokhuat
KEY_Thai_khokhwai
KEY_Thai_khorakhang
KEY_Thai_kokai
KEY_Thai_lakkhangyao
KEY_Thai_lekchet
KEY_Thai_lekha
KEY_Thai_lekhok
KEY_Thai_lekkao
KEY_Thai_leknung
KEY_Thai_lekpaet
KEY_Thai_leksam
KEY_Thai_leksi
KEY_Thai_leksong
KEY_Thai_leksun
KEY_Thai_lochula
KEY_Thai_loling
KEY_Thai_lu
KEY_Thai_maichattawa
KEY_Thai_maiek
KEY_Thai_maihanakat
KEY_Thai_maihanakat_maitho
KEY_Thai_maitaikhu
KEY_Thai_maitho
KEY_Thai_maitri
KEY_Thai_maiyamok
KEY_Thai_moma
KEY_Thai_ngongu
KEY_Thai_nikhahit
KEY_Thai_nonen
KEY_Thai_nonu
KEY_Thai_oang
KEY_Thai_paiyannoi
KEY_Thai_phinthu
KEY_Thai_phophan
KEY_Thai_phophung
KEY_Thai_phosamphao
KEY_Thai_popla
KEY_Thai_rorua
KEY_Thai_ru
KEY_Thai_saraa
KEY_Thai_saraaa
KEY_Thai_saraae
KEY_Thai_saraaimaimalai
KEY_Thai_saraaimaimuan
KEY_Thai_saraam
KEY_Thai_sarae
KEY_Thai_sarai
KEY_Thai_saraii
KEY_Thai_sarao
KEY_Thai_sarau
KEY_Thai_saraue
KEY_Thai_sarauee
KEY_Thai_sarauu
KEY_Thai_sorusi
KEY_Thai_sosala
KEY_Thai_soso
KEY_Thai_sosua
KEY_Thai_thanthakhat
KEY_Thai_thonangmontho
KEY_Thai_thophuthao
KEY_Thai_thothahan
KEY_Thai_thothan
KEY_Thai_thothong
KEY_Thai_thothung
KEY_Thai_topatak
KEY_Thai_totao
KEY_Thai_wowaen
KEY_Thai_yoyak
KEY_Thai_yoying
KEY_Thorn
KEY_Time
KEY_ToDoList
KEY_Tools
KEY_TopMenu
KEY_TouchpadOff
KEY_TouchpadOn
KEY_TouchpadToggle
KEY_Touroku
KEY_Travel
KEY_Tslash
KEY_U
KEY_UWB
KEY_Uacute
KEY_Ubelowdot
KEY_Ubreve
KEY_Ucircumflex
KEY_Udiaeresis
KEY_Udoubleacute
KEY_Ugrave
KEY_Uhook
KEY_Uhorn
KEY_Uhornacute
KEY_Uhornbelowdot
KEY_Uhorngrave
KEY_Uhornhook
KEY_Uhorntilde
KEY_Ukrainian_GHE_WITH_UPTURN
KEY_Ukrainian_I
KEY_Ukrainian_IE
KEY_Ukrainian_YI
KEY_Ukrainian_ghe_with_upturn
KEY_Ukrainian_i
KEY_Ukrainian_ie
KEY_Ukrainian_yi
KEY_Ukranian_I
KEY_Ukranian_JE
KEY_Ukranian_YI
KEY_Ukranian_i
KEY_Ukranian_je
KEY_Ukranian_yi
KEY_Umacron
KEY_Undo
KEY_Ungrab
KEY_Uogonek
KEY_Up
KEY_Uring
KEY_User1KB
KEY_User2KB
KEY_UserPB
KEY_Utilde
KEY_V
KEY_VendorHome
KEY_Video
KEY_View
KEY_VoidSymbol
KEY_W
KEY_WLAN
KEY_WWW
KEY_Wacute
KEY_WakeUp
KEY_Wcircumflex
KEY_Wdiaeresis
KEY_WebCam
KEY_Wgrave
KEY_WheelButton
KEY_WindowClear
KEY_WonSign
KEY_Word
KEY_X
KEY_Xabovedot
KEY_Xfer
KEY_Y
KEY_Yacute
KEY_Ybelowdot
KEY_Ycircumflex
KEY_Ydiaeresis
KEY_Yellow
KEY_Ygrave
KEY_Yhook
KEY_Ytilde
KEY_Z
KEY_Zabovedot
KEY_Zacute
KEY_Zcaron
KEY_Zen_Koho
KEY_Zenkaku
KEY_Zenkaku_Hankaku
KEY_ZoomIn
KEY_ZoomOut
KEY_Zstroke
KEY_a
KEY_aacute
KEY_abelowdot
KEY_abovedot
KEY_abreve
KEY_abreveacute
KEY_abrevebelowdot
KEY_abrevegrave
KEY_abrevehook
KEY_abrevetilde
KEY_acircumflex
KEY_acircumflexacute
KEY_acircumflexbelowdot
KEY_acircumflexgrave
KEY_acircumflexhook
KEY_acircumflextilde
KEY_acute
KEY_adiaeresis
KEY_ae
KEY_agrave
KEY_ahook
KEY_amacron
KEY_ampersand
KEY_aogonek
KEY_apostrophe
KEY_approxeq
KEY_approximate
KEY_aring
KEY_asciicircum
KEY_asciitilde
KEY_asterisk
KEY_at
KEY_atilde
KEY_b
KEY_babovedot
KEY_backslash
KEY_ballotcross
KEY_bar
KEY_because
KEY_blank
KEY_botintegral
KEY_botleftparens
KEY_botleftsqbracket
KEY_botleftsummation
KEY_botrightparens
KEY_botrightsqbracket
KEY_botrightsummation
KEY_bott
KEY_botvertsummationconnector
KEY_braceleft
KEY_braceright
KEY_bracketleft
KEY_bracketright
KEY_braille_blank
KEY_braille_dot_1
KEY_braille_dot_10
KEY_braille_dot_2
KEY_braille_dot_3
KEY_braille_dot_4
KEY_braille_dot_5
KEY_braille_dot_6
KEY_braille_dot_7
KEY_braille_dot_8
KEY_braille_dot_9
KEY_braille_dots_1
KEY_braille_dots_12
KEY_braille_dots_123
KEY_braille_dots_1234
KEY_braille_dots_12345
KEY_braille_dots_123456
KEY_braille_dots_1234567
KEY_braille_dots_12345678
KEY_braille_dots_1234568
KEY_braille_dots_123457
KEY_braille_dots_1234578
KEY_braille_dots_123458
KEY_braille_dots_12346
KEY_braille_dots_123467
KEY_braille_dots_1234678
KEY_braille_dots_123468
KEY_braille_dots_12347
KEY_braille_dots_123478
KEY_braille_dots_12348
KEY_braille_dots_1235
KEY_braille_dots_12356
KEY_braille_dots_123567
KEY_braille_dots_1235678
KEY_braille_dots_123568
KEY_braille_dots_12357
KEY_braille_dots_123578
KEY_braille_dots_12358
KEY_braille_dots_1236
KEY_braille_dots_12367
KEY_braille_dots_123678
KEY_braille_dots_12368
KEY_braille_dots_1237
KEY_braille_dots_12378
KEY_braille_dots_1238
KEY_braille_dots_124
KEY_braille_dots_1245
KEY_braille_dots_12456
KEY_braille_dots_124567
KEY_braille_dots_1245678
KEY_braille_dots_124568
KEY_braille_dots_12457
KEY_braille_dots_124578
KEY_braille_dots_12458
KEY_braille_dots_1246
KEY_braille_dots_12467
KEY_braille_dots_124678
KEY_braille_dots_12468
KEY_braille_dots_1247
KEY_braille_dots_12478
KEY_braille_dots_1248
KEY_braille_dots_125
KEY_braille_dots_1256
KEY_braille_dots_12567
KEY_braille_dots_125678
KEY_braille_dots_12568
KEY_braille_dots_1257
KEY_braille_dots_12578
KEY_braille_dots_1258
KEY_braille_dots_126
KEY_braille_dots_1267
KEY_braille_dots_12678
KEY_braille_dots_1268
KEY_braille_dots_127
KEY_braille_dots_1278
KEY_braille_dots_128
KEY_braille_dots_13
KEY_braille_dots_134
KEY_braille_dots_1345
KEY_braille_dots_13456
KEY_braille_dots_134567
KEY_braille_dots_1345678
KEY_braille_dots_134568
KEY_braille_dots_13457
KEY_braille_dots_134578
KEY_braille_dots_13458
KEY_braille_dots_1346
KEY_braille_dots_13467
KEY_braille_dots_134678
KEY_braille_dots_13468
KEY_braille_dots_1347
KEY_braille_dots_13478
KEY_braille_dots_1348
KEY_braille_dots_135
KEY_braille_dots_1356
KEY_braille_dots_13567
KEY_braille_dots_135678
KEY_braille_dots_13568
KEY_braille_dots_1357
KEY_braille_dots_13578
KEY_braille_dots_1358
KEY_braille_dots_136
KEY_braille_dots_1367
KEY_braille_dots_13678
KEY_braille_dots_1368
KEY_braille_dots_137
KEY_braille_dots_1378
KEY_braille_dots_138
KEY_braille_dots_14
KEY_braille_dots_145
KEY_braille_dots_1456
KEY_braille_dots_14567
KEY_braille_dots_145678
KEY_braille_dots_14568
KEY_braille_dots_1457
KEY_braille_dots_14578
KEY_braille_dots_1458
KEY_braille_dots_146
KEY_braille_dots_1467
KEY_braille_dots_14678
KEY_braille_dots_1468
KEY_braille_dots_147
KEY_braille_dots_1478
KEY_braille_dots_148
KEY_braille_dots_15
KEY_braille_dots_156
KEY_braille_dots_1567
KEY_braille_dots_15678
KEY_braille_dots_1568
KEY_braille_dots_157
KEY_braille_dots_1578
KEY_braille_dots_158
KEY_braille_dots_16
KEY_braille_dots_167
KEY_braille_dots_1678
KEY_braille_dots_168
KEY_braille_dots_17
KEY_braille_dots_178
KEY_braille_dots_18
KEY_braille_dots_2
KEY_braille_dots_23
KEY_braille_dots_234
KEY_braille_dots_2345
KEY_braille_dots_23456
KEY_braille_dots_234567
KEY_braille_dots_2345678
KEY_braille_dots_234568
KEY_braille_dots_23457
KEY_braille_dots_234578
KEY_braille_dots_23458
KEY_braille_dots_2346
KEY_braille_dots_23467
KEY_braille_dots_234678
KEY_braille_dots_23468
KEY_braille_dots_2347
KEY_braille_dots_23478
KEY_braille_dots_2348
KEY_braille_dots_235
KEY_braille_dots_2356
KEY_braille_dots_23567
KEY_braille_dots_235678
KEY_braille_dots_23568
KEY_braille_dots_2357
KEY_braille_dots_23578
KEY_braille_dots_2358
KEY_braille_dots_236
KEY_braille_dots_2367
KEY_braille_dots_23678
KEY_braille_dots_2368
KEY_braille_dots_237
KEY_braille_dots_2378
KEY_braille_dots_238
KEY_braille_dots_24
KEY_braille_dots_245
KEY_braille_dots_2456
KEY_braille_dots_24567
KEY_braille_dots_245678
KEY_braille_dots_24568
KEY_braille_dots_2457
KEY_braille_dots_24578
KEY_braille_dots_2458
KEY_braille_dots_246
KEY_braille_dots_2467
KEY_braille_dots_24678
KEY_braille_dots_2468
KEY_braille_dots_247
KEY_braille_dots_2478
KEY_braille_dots_248
KEY_braille_dots_25
KEY_braille_dots_256
KEY_braille_dots_2567
KEY_braille_dots_25678
KEY_braille_dots_2568
KEY_braille_dots_257
KEY_braille_dots_2578
KEY_braille_dots_258
KEY_braille_dots_26
KEY_braille_dots_267
KEY_braille_dots_2678
KEY_braille_dots_268
KEY_braille_dots_27
KEY_braille_dots_278
KEY_braille_dots_28
KEY_braille_dots_3
KEY_braille_dots_34
KEY_braille_dots_345
KEY_braille_dots_3456
KEY_braille_dots_34567
KEY_braille_dots_345678
KEY_braille_dots_34568
KEY_braille_dots_3457
KEY_braille_dots_34578
KEY_braille_dots_3458
KEY_braille_dots_346
KEY_braille_dots_3467
KEY_braille_dots_34678
KEY_braille_dots_3468
KEY_braille_dots_347
KEY_braille_dots_3478
KEY_braille_dots_348
KEY_braille_dots_35
KEY_braille_dots_356
KEY_braille_dots_3567
KEY_braille_dots_35678
KEY_braille_dots_3568
KEY_braille_dots_357
KEY_braille_dots_3578
KEY_braille_dots_358
KEY_braille_dots_36
KEY_braille_dots_367
KEY_braille_dots_3678
KEY_braille_dots_368
KEY_braille_dots_37
KEY_braille_dots_378
KEY_braille_dots_38
KEY_braille_dots_4
KEY_braille_dots_45
KEY_braille_dots_456
KEY_braille_dots_4567
KEY_braille_dots_45678
KEY_braille_dots_4568
KEY_braille_dots_457
KEY_braille_dots_4578
KEY_braille_dots_458
KEY_braille_dots_46
KEY_braille_dots_467
KEY_braille_dots_4678
KEY_braille_dots_468
KEY_braille_dots_47
KEY_braille_dots_478
KEY_braille_dots_48
KEY_braille_dots_5
KEY_braille_dots_56
KEY_braille_dots_567
KEY_braille_dots_5678
KEY_braille_dots_568
KEY_braille_dots_57
KEY_braille_dots_578
KEY_braille_dots_58
KEY_braille_dots_6
KEY_braille_dots_67
KEY_braille_dots_678
KEY_braille_dots_68
KEY_braille_dots_7
KEY_braille_dots_78
KEY_braille_dots_8
KEY_breve
KEY_brokenbar
KEY_c
KEY_c_h
KEY_cabovedot
KEY_cacute
KEY_careof
KEY_caret
KEY_caron
KEY_ccaron
KEY_ccedilla
KEY_ccircumflex
KEY_cedilla
KEY_cent
KEY_ch
KEY_checkerboard
KEY_checkmark
KEY_circle
KEY_club
KEY_colon
KEY_comma
KEY_containsas
KEY_copyright
KEY_cr
KEY_crossinglines
KEY_cuberoot
KEY_currency
KEY_cursor
KEY_d
KEY_dabovedot
KEY_dagger
KEY_dcaron
KEY_dead_A
KEY_dead_E
KEY_dead_I
KEY_dead_O
KEY_dead_U
KEY_dead_a
KEY_dead_abovecomma
KEY_dead_abovedot
KEY_dead_abovereversedcomma
KEY_dead_abovering
KEY_dead_acute
KEY_dead_belowbreve
KEY_dead_belowcircumflex
KEY_dead_belowcomma
KEY_dead_belowdiaeresis
KEY_dead_belowdot
KEY_dead_belowmacron
KEY_dead_belowring
KEY_dead_belowtilde
KEY_dead_breve
KEY_dead_capital_schwa
KEY_dead_caron
KEY_dead_cedilla
KEY_dead_circumflex
KEY_dead_currency
KEY_dead_dasia
KEY_dead_diaeresis
KEY_dead_doubleacute
KEY_dead_doublegrave
KEY_dead_e
KEY_dead_grave
KEY_dead_greek
KEY_dead_hook
KEY_dead_horn
KEY_dead_i
KEY_dead_invertedbreve
KEY_dead_iota
KEY_dead_macron
KEY_dead_o
KEY_dead_ogonek
KEY_dead_perispomeni
KEY_dead_psili
KEY_dead_semivoiced_sound
KEY_dead_small_schwa
KEY_dead_stroke
KEY_dead_tilde
KEY_dead_u
KEY_dead_voiced_sound
KEY_decimalpoint
KEY_degree
KEY_diaeresis
KEY_diamond
KEY_digitspace
KEY_dintegral
KEY_division
KEY_dollar
KEY_doubbaselinedot
KEY_doubleacute
KEY_doubledagger
KEY_doublelowquotemark
KEY_downarrow
KEY_downcaret
KEY_downshoe
KEY_downstile
KEY_downtack
KEY_dstroke
KEY_e
KEY_eabovedot
KEY_eacute
KEY_ebelowdot
KEY_ecaron
KEY_ecircumflex
KEY_ecircumflexacute
KEY_ecircumflexbelowdot
KEY_ecircumflexgrave
KEY_ecircumflexhook
KEY_ecircumflextilde
KEY_ediaeresis
KEY_egrave
KEY_ehook
KEY_eightsubscript
KEY_eightsuperior
KEY_elementof
KEY_ellipsis
KEY_em3space
KEY_em4space
KEY_emacron
KEY_emdash
KEY_emfilledcircle
KEY_emfilledrect
KEY_emopencircle
KEY_emopenrectangle
KEY_emptyset
KEY_emspace
KEY_endash
KEY_enfilledcircbullet
KEY_enfilledsqbullet
KEY_eng
KEY_enopencircbullet
KEY_enopensquarebullet
KEY_enspace
KEY_eogonek
KEY_equal
KEY_eth
KEY_etilde
KEY_exclam
KEY_exclamdown
KEY_ezh
KEY_f
KEY_fabovedot
KEY_femalesymbol
KEY_ff
KEY_figdash
KEY_filledlefttribullet
KEY_filledrectbullet
KEY_filledrighttribullet
KEY_filledtribulletdown
KEY_filledtribulletup
KEY_fiveeighths
KEY_fivesixths
KEY_fivesubscript
KEY_fivesuperior
KEY_fourfifths
KEY_foursubscript
KEY_foursuperior
KEY_fourthroot
KEY_function
KEY_g
KEY_gabovedot
KEY_gbreve
KEY_gcaron
KEY_gcedilla
KEY_gcircumflex
KEY_grave
KEY_greater
KEY_greaterthanequal
KEY_guillemotleft
KEY_guillemotright
KEY_h
KEY_hairspace
KEY_hcircumflex
KEY_heart
KEY_hebrew_aleph
KEY_hebrew_ayin
KEY_hebrew_bet
KEY_hebrew_beth
KEY_hebrew_chet
KEY_hebrew_dalet
KEY_hebrew_daleth
KEY_hebrew_doublelowline
KEY_hebrew_finalkaph
KEY_hebrew_finalmem
KEY_hebrew_finalnun
KEY_hebrew_finalpe
KEY_hebrew_finalzade
KEY_hebrew_finalzadi
KEY_hebrew_gimel
KEY_hebrew_gimmel
KEY_hebrew_he
KEY_hebrew_het
KEY_hebrew_kaph
KEY_hebrew_kuf
KEY_hebrew_lamed
KEY_hebrew_mem
KEY_hebrew_nun
KEY_hebrew_pe
KEY_hebrew_qoph
KEY_hebrew_resh
KEY_hebrew_samech
KEY_hebrew_samekh
KEY_hebrew_shin
KEY_hebrew_taf
KEY_hebrew_taw
KEY_hebrew_tet
KEY_hebrew_teth
KEY_hebrew_waw
KEY_hebrew_yod
KEY_hebrew_zade
KEY_hebrew_zadi
KEY_hebrew_zain
KEY_hebrew_zayin
KEY_hexagram
KEY_horizconnector
KEY_horizlinescan1
KEY_horizlinescan3
KEY_horizlinescan5
KEY_horizlinescan7
KEY_horizlinescan9
KEY_hstroke
KEY_ht
KEY_hyphen
KEY_i
KEY_iTouch
KEY_iacute
KEY_ibelowdot
KEY_ibreve
KEY_icircumflex
KEY_identical
KEY_idiaeresis
KEY_idotless
KEY_ifonlyif
KEY_igrave
KEY_ihook
KEY_imacron
KEY_implies
KEY_includedin
KEY_includes
KEY_infinity
KEY_integral
KEY_intersection
KEY_iogonek
KEY_itilde
KEY_j
KEY_jcircumflex
KEY_jot
KEY_k
KEY_kana_A
KEY_kana_CHI
KEY_kana_E
KEY_kana_FU
KEY_kana_HA
KEY_kana_HE
KEY_kana_HI
KEY_kana_HO
KEY_kana_HU
KEY_kana_I
KEY_kana_KA
KEY_kana_KE
KEY_kana_KI
KEY_kana_KO
KEY_kana_KU
KEY_kana_MA
KEY_kana_ME
KEY_kana_MI
KEY_kana_MO
KEY_kana_MU
KEY_kana_N
KEY_kana_NA
KEY_kana_NE
KEY_kana_NI
KEY_kana_NO
KEY_kana_NU
KEY_kana_O
KEY_kana_RA
KEY_kana_RE
KEY_kana_RI
KEY_kana_RO
KEY_kana_RU
KEY_kana_SA
KEY_kana_SE
KEY_kana_SHI
KEY_kana_SO
KEY_kana_SU
KEY_kana_TA
KEY_kana_TE
KEY_kana_TI
KEY_kana_TO
KEY_kana_TSU
KEY_kana_TU
KEY_kana_U
KEY_kana_WA
KEY_kana_WO
KEY_kana_YA
KEY_kana_YO
KEY_kana_YU
KEY_kana_a
KEY_kana_closingbracket
KEY_kana_comma
KEY_kana_conjunctive
KEY_kana_e
KEY_kana_fullstop
KEY_kana_i
KEY_kana_middledot
KEY_kana_o
KEY_kana_openingbracket
KEY_kana_switch
KEY_kana_tsu
KEY_kana_tu
KEY_kana_u
KEY_kana_ya
KEY_kana_yo
KEY_kana_yu
KEY_kappa
KEY_kcedilla
KEY_kra
KEY_l
KEY_lacute
KEY_latincross
KEY_lbelowdot
KEY_lcaron
KEY_lcedilla
KEY_leftanglebracket
KEY_leftarrow
KEY_leftcaret
KEY_leftdoublequotemark
KEY_leftmiddlecurlybrace
KEY_leftopentriangle
KEY_leftpointer
KEY_leftradical
KEY_leftshoe
KEY_leftsinglequotemark
KEY_leftt
KEY_lefttack
KEY_less
KEY_lessthanequal
KEY_lf
KEY_logicaland
KEY_logicalor
KEY_lowleftcorner
KEY_lowrightcorner
KEY_lstroke
KEY_m
KEY_mabovedot
KEY_macron
KEY_malesymbol
KEY_maltesecross
KEY_marker
KEY_masculine
KEY_minus
KEY_minutes
KEY_mu
KEY_multiply
KEY_musicalflat
KEY_musicalsharp
KEY_n
KEY_nabla
KEY_nacute
KEY_ncaron
KEY_ncedilla
KEY_ninesubscript
KEY_ninesuperior
KEY_nl
KEY_nobreakspace
KEY_notapproxeq
KEY_notelementof
KEY_notequal
KEY_notidentical
KEY_notsign
KEY_ntilde
KEY_numbersign
KEY_numerosign
KEY_o
KEY_oacute
KEY_obarred
KEY_obelowdot
KEY_ocaron
KEY_ocircumflex
KEY_ocircumflexacute
KEY_ocircumflexbelowdot
KEY_ocircumflexgrave
KEY_ocircumflexhook
KEY_ocircumflextilde
KEY_odiaeresis
KEY_odoubleacute
KEY_oe
KEY_ogonek
KEY_ograve
KEY_ohook
KEY_ohorn
KEY_ohornacute
KEY_ohornbelowdot
KEY_ohorngrave
KEY_ohornhook
KEY_ohorntilde
KEY_omacron
KEY_oneeighth
KEY_onefifth
KEY_onehalf
KEY_onequarter
KEY_onesixth
KEY_onesubscript
KEY_onesuperior
KEY_onethird
KEY_ooblique
KEY_openrectbullet
KEY_openstar
KEY_opentribulletdown
KEY_opentribulletup
KEY_ordfeminine
KEY_oslash
KEY_otilde
KEY_overbar
KEY_overline
KEY_p
KEY_pabovedot
KEY_paragraph
KEY_parenleft
KEY_parenright
KEY_partdifferential
KEY_partialderivative
KEY_percent
KEY_period
KEY_periodcentered
KEY_permille
KEY_phonographcopyright
KEY_plus
KEY_plusminus
KEY_prescription
KEY_prolongedsound
KEY_punctspace
KEY_q
KEY_quad
KEY_question
KEY_questiondown
KEY_quotedbl
KEY_quoteleft
KEY_quoteright
KEY_r
KEY_racute
KEY_radical
KEY_rcaron
KEY_rcedilla
KEY_registered
KEY_rightanglebracket
KEY_rightarrow
KEY_rightcaret
KEY_rightdoublequotemark
KEY_rightmiddlecurlybrace
KEY_rightmiddlesummation
KEY_rightopentriangle
KEY_rightpointer
KEY_rightshoe
KEY_rightsinglequotemark
KEY_rightt
KEY_righttack
KEY_s
KEY_sabovedot
KEY_sacute
KEY_scaron
KEY_scedilla
KEY_schwa
KEY_scircumflex
KEY_script_switch
KEY_seconds
KEY_section
KEY_semicolon
KEY_semivoicedsound
KEY_seveneighths
KEY_sevensubscript
KEY_sevensuperior
KEY_signaturemark
KEY_signifblank
KEY_similarequal
KEY_singlelowquotemark
KEY_sixsubscript
KEY_sixsuperior
KEY_slash
KEY_soliddiamond
KEY_space
KEY_squareroot
KEY_ssharp
KEY_sterling
KEY_stricteq
KEY_t
KEY_tabovedot
KEY_tcaron
KEY_tcedilla
KEY_telephone
KEY_telephonerecorder
KEY_therefore
KEY_thinspace
KEY_thorn
KEY_threeeighths
KEY_threefifths
KEY_threequarters
KEY_threesubscript
KEY_threesuperior
KEY_tintegral
KEY_topintegral
KEY_topleftparens
KEY_topleftradical
KEY_topleftsqbracket
KEY_topleftsummation
KEY_toprightparens
KEY_toprightsqbracket
KEY_toprightsummation
KEY_topt
KEY_topvertsummationconnector
KEY_trademark
KEY_trademarkincircle
KEY_tslash
KEY_twofifths
KEY_twosubscript
KEY_twosuperior
KEY_twothirds
KEY_u
KEY_uacute
KEY_ubelowdot
KEY_ubreve
KEY_ucircumflex
KEY_udiaeresis
KEY_udoubleacute
KEY_ugrave
KEY_uhook
KEY_uhorn
KEY_uhornacute
KEY_uhornbelowdot
KEY_uhorngrave
KEY_uhornhook
KEY_uhorntilde
KEY_umacron
KEY_underbar
KEY_underscore
KEY_union
KEY_uogonek
KEY_uparrow
KEY_upcaret
KEY_upleftcorner
KEY_uprightcorner
KEY_upshoe
KEY_upstile
KEY_uptack
KEY_uring
KEY_utilde
KEY_v
KEY_variation
KEY_vertbar
KEY_vertconnector
KEY_voicedsound
KEY_vt
KEY_w
KEY_wacute
KEY_wcircumflex
KEY_wdiaeresis
KEY_wgrave
KEY_x
KEY_xabovedot
KEY_y
KEY_yacute
KEY_ybelowdot
KEY_ycircumflex
KEY_ydiaeresis
KEY_yen
KEY_ygrave
KEY_yhook
KEY_ytilde
KEY_z
KEY_zabovedot
KEY_zacute
KEY_zcaron
KEY_zerosubscript
KEY_zerosuperior
KEY_zstroke
GdkKeymap-gtype
gdk-keymap-get-default
gdk-keymap-get-for-display
gdk-keymap-add-virtual-modifiers
gdk-keymap-get-caps-lock-state
gdk-keymap-get-direction
gdk-keymap-get-entries-for-keycode
gdk-keymap-get-entries-for-keyval
gdk-keymap-get-modifier-mask
gdk-keymap-get-modifier-state
gdk-keymap-get-num-lock-state
gdk-keymap-get-scroll-lock-state
gdk-keymap-have-bidi-layouts
gdk-keymap-lookup-key
gdk-keymap-map-virtual-modifiers
gdk-keymap-translate-keyboard-state
MAX_TIMECOORD_AXES
ModifierIntent->symbol
symbol->ModifierIntent
ModifierType->symbols
symbols->ModifierType
GdkMonitor-gtype
gdk-monitor-get-display
gdk-monitor-get-geometry
gdk-monitor-get-height-mm
gdk-monitor-get-manufacturer
gdk-monitor-get-model
gdk-monitor-get-refresh-rate
gdk-monitor-get-scale-factor
gdk-monitor-get-subpixel-layout
gdk-monitor-get-width-mm
gdk-monitor-get-workarea
gdk-monitor-is-primary
NotifyType->symbol
symbol->NotifyType
OwnerChange->symbol
symbol->OwnerChange
PARENT_RELATIVE
PRIORITY_REDRAW
PropMode->symbol
symbol->PropMode
PropertyState->symbol
symbol->PropertyState
GdkRGBA-gtype
gdk-rgba-copy
gdk-rgba-equal
gdk-rgba-free
gdk-rgba-hash
gdk-rgba-parse
gdk-rgba-to-string
GdkRectangle-gtype
gdk-rectangle-equal
gdk-rectangle-intersect
gdk-rectangle-union
GdkScreen-gtype
gdk-screen-get-default
gdk-screen-height
gdk-screen-height-mm
gdk-screen-width
gdk-screen-width-mm
gdk-screen-get-active-window
gdk-screen-get-display
gdk-screen-get-font-options
gdk-screen-get-height
gdk-screen-get-height-mm
gdk-screen-get-monitor-at-point
gdk-screen-get-monitor-at-window
gdk-screen-get-monitor-geometry
gdk-screen-get-monitor-height-mm
gdk-screen-get-monitor-plug-name
gdk-screen-get-monitor-scale-factor
gdk-screen-get-monitor-width-mm
gdk-screen-get-monitor-workarea
gdk-screen-get-n-monitors
gdk-screen-get-number
gdk-screen-get-primary-monitor
gdk-screen-get-resolution
gdk-screen-get-rgba-visual
gdk-screen-get-root-window
gdk-screen-get-setting
gdk-screen-get-system-visual
gdk-screen-get-toplevel-windows
gdk-screen-get-width
gdk-screen-get-width-mm
gdk-screen-get-window-stack
gdk-screen-is-composited
gdk-screen-list-visuals
gdk-screen-make-display-name
gdk-screen-set-font-options
gdk-screen-set-resolution
ScrollDirection->symbol
symbol->ScrollDirection
GdkSeat-gtype
gdk-seat-get-capabilities
gdk-seat-get-display
gdk-seat-get-keyboard
gdk-seat-get-pointer
gdk-seat-get-slaves
gdk-seat-grab
gdk-seat-ungrab
SeatCapabilities->symbols
symbols->SeatCapabilities
SettingAction->symbol
symbol->SettingAction
Status->symbol
symbol->Status
SubpixelLayout->symbol
symbol->SubpixelLayout
TouchpadGesturePhase->symbol
symbol->TouchpadGesturePhase
VisibilityState->symbol
symbol->VisibilityState
GdkVisual-gtype
gdk-visual-get-best
gdk-visual-get-best-depth
gdk-visual-get-best-type
gdk-visual-get-best-with-both
gdk-visual-get-best-with-depth
gdk-visual-get-best-with-type
gdk-visual-get-system
gdk-visual-get-bits-per-rgb
gdk-visual-get-blue-pixel-details
gdk-visual-get-byte-order
gdk-visual-get-colormap-size
gdk-visual-get-depth
gdk-visual-get-green-pixel-details
gdk-visual-get-red-pixel-details
gdk-visual-get-screen
gdk-visual-get-visual-type
VisualType->symbol
symbol->VisualType
WMDecoration->symbols
symbols->WMDecoration
WMFunction->symbols
symbols->WMFunction
GdkWindow-gtype
gdk-window-new
gdk-window-at-pointer
gdk-window-constrain-size
gdk-window-process-all-updates
gdk-window-set-debug-updates
gdk-window-beep
gdk-window-begin-draw-frame
gdk-window-begin-move-drag
gdk-window-begin-move-drag-for-device
gdk-window-begin-paint-rect
gdk-window-begin-paint-region
gdk-window-begin-resize-drag
gdk-window-begin-resize-drag-for-device
gdk-window-configure-finished
gdk-window-coords-from-parent
gdk-window-coords-to-parent
gdk-window-create-gl-context
gdk-window-create-similar-image-surface
gdk-window-create-similar-surface
gdk-window-deiconify
gdk-window-destroy
gdk-window-destroy-notify
gdk-window-enable-synchronized-configure
gdk-window-end-draw-frame
gdk-window-end-paint
gdk-window-ensure-native
gdk-window-flush
gdk-window-focus
gdk-window-freeze-toplevel-updates-libgtk-only
gdk-window-freeze-updates
gdk-window-fullscreen
gdk-window-fullscreen-on-monitor
gdk-window-geometry-changed
gdk-window-get-accept-focus
gdk-window-get-background-pattern
gdk-window-get-children
gdk-window-get-children-with-user-data
gdk-window-get-clip-region
gdk-window-get-composited
gdk-window-get-cursor
gdk-window-get-decorations
gdk-window-get-device-cursor
gdk-window-get-device-events
gdk-window-get-device-position
gdk-window-get-device-position-double
gdk-window-get-display
gdk-window-get-drag-protocol
gdk-window-get-effective-parent
gdk-window-get-effective-toplevel
gdk-window-get-event-compression
gdk-window-get-events
gdk-window-get-focus-on-map
gdk-window-get-frame-clock
gdk-window-get-frame-extents
gdk-window-get-fullscreen-mode
gdk-window-get-geometry
gdk-window-get-group
gdk-window-get-height
gdk-window-get-modal-hint
gdk-window-get-origin
gdk-window-get-parent
gdk-window-get-pass-through
gdk-window-get-pointer
gdk-window-get-position
gdk-window-get-root-coords
gdk-window-get-root-origin
gdk-window-get-scale-factor
gdk-window-get-screen
gdk-window-get-source-events
gdk-window-get-state
gdk-window-get-support-multidevice
gdk-window-get-toplevel
gdk-window-get-type-hint
gdk-window-get-update-area
gdk-window-get-user-data
gdk-window-get-visible-region
gdk-window-get-visual
gdk-window-get-width
gdk-window-get-window-type
gdk-window-has-native
gdk-window-hide
gdk-window-iconify
gdk-window-input-shape-combine-region
gdk-window-invalidate-maybe-recurse
gdk-window-invalidate-rect
gdk-window-invalidate-region
gdk-window-is-destroyed
gdk-window-is-input-only
gdk-window-is-shaped
gdk-window-is-viewable
gdk-window-is-visible
gdk-window-lower
gdk-window-mark-paint-from-clip
gdk-window-maximize
gdk-window-merge-child-input-shapes
gdk-window-merge-child-shapes
gdk-window-move
gdk-window-move-region
gdk-window-move-resize
gdk-window-peek-children
gdk-window-process-updates
gdk-window-raise
gdk-window-register-dnd
gdk-window-reparent
gdk-window-resize
gdk-window-restack
gdk-window-scroll
gdk-window-set-accept-focus
gdk-window-set-background
gdk-window-set-background-pattern
gdk-window-set-background-rgba
gdk-window-set-child-input-shapes
gdk-window-set-child-shapes
gdk-window-set-composited
gdk-window-set-cursor
gdk-window-set-decorations
gdk-window-set-device-cursor
gdk-window-set-device-events
gdk-window-set-event-compression
gdk-window-set-events
gdk-window-set-focus-on-map
gdk-window-set-fullscreen-mode
gdk-window-set-functions
gdk-window-set-geometry-hints
gdk-window-set-group
gdk-window-set-icon-list
gdk-window-set-icon-name
gdk-window-set-keep-above
gdk-window-set-keep-below
gdk-window-set-modal-hint
gdk-window-set-opacity
gdk-window-set-opaque-region
gdk-window-set-override-redirect
gdk-window-set-pass-through
gdk-window-set-role
gdk-window-set-shadow-width
gdk-window-set-skip-pager-hint
gdk-window-set-skip-taskbar-hint
gdk-window-set-source-events
gdk-window-set-startup-id
gdk-window-set-static-gravities
gdk-window-set-support-multidevice
gdk-window-set-title
gdk-window-set-transient-for
gdk-window-set-type-hint
gdk-window-set-urgency-hint
gdk-window-set-user-data
gdk-window-shape-combine-region
gdk-window-show
gdk-window-show-unraised
gdk-window-show-window-menu
gdk-window-stick
gdk-window-thaw-toplevel-updates-libgtk-only
gdk-window-thaw-updates
gdk-window-unfullscreen
gdk-window-unmaximize
gdk-window-unstick
gdk-window-withdraw
WindowAttributesType->symbols
symbols->WindowAttributesType
WindowEdge->symbol
symbol->WindowEdge
WindowHints->symbols
symbols->WindowHints
WindowState->symbols
symbols->WindowState
WindowType->symbol
symbol->WindowType
WindowTypeHint->symbol
symbol->WindowTypeHint
WindowWindowClass->symbol
symbol->WindowWindowClass
gdk-add-option-entries-libgtk-only
gdk-atom-intern
gdk-atom-intern-static-string
gdk-beep
gdk-cairo-create
gdk-cairo-draw-from-gl
gdk-cairo-get-clip-rectangle
gdk-cairo-get-drawing-context
gdk-cairo-rectangle
gdk-cairo-region
gdk-cairo-region-create-from-surface
gdk-cairo-set-source-color
gdk-cairo-set-source-pixbuf
gdk-cairo-set-source-rgba
gdk-cairo-set-source-window
gdk-cairo-surface-create-from-pixbuf
gdk-color-parse
gdk-disable-multidevice
gdk-drag-abort
gdk-drag-begin
gdk-drag-begin-for-device
gdk-drag-begin-from-point
gdk-drag-drop
gdk-drag-drop-done
gdk-drag-drop-succeeded
gdk-drag-find-window-for-screen
gdk-drag-get-selection
gdk-drag-motion
gdk-drag-status
gdk-drop-finish
gdk-drop-reply
gdk-error-trap-pop
gdk-error-trap-pop-ignored
gdk-error-trap-push
gdk-event-get
gdk-event-handler-set
gdk-event-peek
gdk-event-request-motions
gdk-events-get-angle
gdk-events-get-center
gdk-events-get-distance
gdk-events-pending
gdk-flush
gdk-get-default-root-window
gdk-get-display
gdk-get-display-arg-name
gdk-get-program-class
gdk-get-show-events
gdk-gl-error-quark
gdk-init
gdk-init-check
gdk-keyboard-grab
gdk-keyboard-ungrab
gdk-keyval-convert-case
gdk-keyval-from-name
gdk-keyval-is-lower
gdk-keyval-is-upper
gdk-keyval-name
gdk-keyval-to-lower
gdk-keyval-to-unicode
gdk-keyval-to-upper
gdk-list-visuals
gdk-notify-startup-complete
gdk-notify-startup-complete-with-id
gdk-offscreen-window-get-embedder
gdk-offscreen-window-get-surface
gdk-offscreen-window-set-embedder
gdk-pango-context-get
gdk-pango-context-get-for-display
gdk-pango-context-get-for-screen
gdk-parse-args
gdk-pixbuf-get-from-surface
gdk-pixbuf-get-from-window
gdk-pointer-grab
gdk-pointer-is-grabbed
gdk-pointer-ungrab
gdk-pre-parse-libgtk-only
gdk-property-delete
gdk-property-get
gdk-query-depths
gdk-query-visual-types
gdk-selection-convert
gdk-selection-owner-get
gdk-selection-owner-get-for-display
gdk-selection-owner-set
gdk-selection-owner-set-for-display
gdk-selection-send-notify
gdk-selection-send-notify-for-display
gdk-set-allowed-backends
gdk-set-double-click-time
gdk-set-program-class
gdk-set-show-events
gdk-setting-get
gdk-synthesize-window-state
gdk-test-render-sync
gdk-test-simulate-button
gdk-test-simulate-key
gdk-text-property-to-utf8-list-for-display
gdk-threads-add-idle-full
gdk-threads-add-timeout-full
gdk-threads-add-timeout-seconds-full
gdk-threads-enter
gdk-threads-init
gdk-threads-leave
gdk-unicode-to-keyval
gdk-utf8-to-string-target)
(import
(rnrs (6))
(system foreign)
(gir support)
(only (guile) dynamic-link))
(define libgdk (dynamic-link "libgdk-3"))
(define-foreign-function-factory gdk libgdk)
;;; begin flags AnchorHints
;;; series: unordered
;;; end AnchorHints
;;; begin object AppLaunchContext
;;; typename: GdkAppLaunchContext
(define-gtype-getter GdkAppLaunchContext-gtype "GdkAppLaunchContext")
;;; fields: ()
;;; object type name: GdkAppLaunchContext
;;; parent: "AppLaunchContext"
;;; vfuncs: ()
;;; type-init: "gdk_app_launch_context_get_type"
;;; ---------------
(define-from-gdk gdk-app-launch-context-new '*)
(define-from-gdk gdk-app-launch-context-set-desktop void int32)
(define-from-gdk gdk-app-launch-context-set-display void '*)
(define-from-gdk gdk-app-launch-context-set-icon void '*)
(define-from-gdk gdk-app-launch-context-set-icon-name void '*)
(define-from-gdk gdk-app-launch-context-set-screen void '*)
(define-from-gdk gdk-app-launch-context-set-timestamp void uint32)
;;; end AppLaunchContext
;;; begin struct Atom
;;; fields: ()
(define-from-gdk gdk-atom-name '*)
(define-from-gdk gdk-atom-intern '* '* int)
(define-from-gdk gdk-atom-intern-static-string '* '*)
;;; end Atom
;;; begin flags AxisFlags
;;; series: unordered
;;; end AxisFlags
;;; begin enum AxisUse
;;; series: sequence
(define-enum-transformer
AxisUse
ignore
x
y
pressure
xtilt
ytilt
wheel
distance
rotation
slider
last)
;;; end AxisUse
(define BUTTON_MIDDLE 2)
(define BUTTON_PRIMARY 1)
(define BUTTON_SECONDARY 3)
;;; begin enum ByteOrder
;;; series: sequence
(define-enum-transformer ByteOrder lsb_first msb_first)
;;; end ByteOrder
(define CURRENT_TIME 0)
;;; begin struct Color
;;; typename: GdkColor
(define-gtype-getter GdkColor-gtype "GdkColor")
;;; fields: ("pixel" "red" "green" "blue")
(define-from-gdk gdk-color-copy '*)
(define-from-gdk gdk-color-equal int '*)
(define-from-gdk gdk-color-free void)
(define-from-gdk gdk-color-hash uint32)
(define-from-gdk gdk-color-to-string '*)
(define-from-gdk gdk-color-parse int '* '*)
;;; end Color
;;; begin enum CrossingMode
;;; series: sequence
(define-enum-transformer
CrossingMode
normal
grab
ungrab
gtk_grab
gtk_ungrab
state_changed
touch_begin
touch_end
device_switch)
;;; end CrossingMode
;;; begin object Cursor
;;; typename: GdkCursor
(define-gtype-getter GdkCursor-gtype "GdkCursor")
;;; fields: ()
;;; object type name: GdkCursor
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_cursor_get_type"
;;; ---------------
(define-from-gdk gdk-cursor-new '* int32)
(define-from-gdk gdk-cursor-new-for-display '* '* int32)
(define-from-gdk gdk-cursor-new-from-name '* '* '*)
(define-from-gdk gdk-cursor-new-from-pixbuf '* '* '* int32 int32)
(define-from-gdk gdk-cursor-new-from-surface '* '* '* double double)
(define-from-gdk gdk-cursor-get-cursor-type int32)
(define-from-gdk gdk-cursor-get-display '*)
(define-from-gdk gdk-cursor-get-image '*)
(define-from-gdk gdk-cursor-get-surface '* double double)
(define-from-gdk gdk-cursor-ref '*)
(define-from-gdk gdk-cursor-unref void)
;;; end Cursor
;;; begin enum CursorType
;;; series: unordered
;;; end CursorType
;;; begin object Device
;;; typename: GdkDevice
(define-gtype-getter GdkDevice-gtype "GdkDevice")
;;; fields: ()
;;; object type name: GdkDevice
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_device_get_type"
;;; ---------------
(define-from-gdk gdk-device-grab-info-libgtk-only int '* '* '* int)
(define-from-gdk gdk-device-get-associated-device '*)
(define-from-gdk gdk-device-get-axes uint32)
(define-from-gdk gdk-device-get-axis-use uint32 uint32)
(define-from-gdk gdk-device-get-device-type uint32)
(define-from-gdk gdk-device-get-display '*)
(define-from-gdk gdk-device-get-has-cursor int)
(define-from-gdk gdk-device-get-key int uint32 uint32 uint32)
(define-from-gdk gdk-device-get-last-event-window '*)
(define-from-gdk gdk-device-get-mode uint32)
(define-from-gdk gdk-device-get-n-axes int32)
(define-from-gdk gdk-device-get-n-keys int32)
(define-from-gdk gdk-device-get-name '*)
(define-from-gdk gdk-device-get-position void '* int32 int32)
(define-from-gdk gdk-device-get-position-double void '* double double)
(define-from-gdk gdk-device-get-product-id '*)
(define-from-gdk gdk-device-get-seat '*)
(define-from-gdk gdk-device-get-source uint32)
(define-from-gdk gdk-device-get-vendor-id '*)
(define-from-gdk gdk-device-get-window-at-position '* int32 int32)
(define-from-gdk gdk-device-get-window-at-position-double '* double double)
(define-from-gdk gdk-device-grab uint32 '* uint32 int uint32 '* uint32)
(define-from-gdk gdk-device-list-axes '*)
(define-from-gdk gdk-device-list-slave-devices '*)
(define-from-gdk gdk-device-set-axis-use void uint32 uint32)
(define-from-gdk gdk-device-set-key void uint32 uint32 uint32)
(define-from-gdk gdk-device-set-mode int uint32)
(define-from-gdk gdk-device-ungrab void uint32)
(define-from-gdk gdk-device-warp void '* int32 int32)
;;; end Device
;;; begin object DeviceManager
;;; typename: GdkDeviceManager
(define-gtype-getter GdkDeviceManager-gtype "GdkDeviceManager")
;;; fields: ()
;;; object type name: GdkDeviceManager
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_device_manager_get_type"
;;; ---------------
(define-from-gdk gdk-device-manager-get-client-pointer '*)
(define-from-gdk gdk-device-manager-get-display '*)
(define-from-gdk gdk-device-manager-list-devices '* uint32)
;;; end DeviceManager
;;; (interface "DevicePad")
;;; begin enum DevicePadFeature
;;; series: sequence
(define-enum-transformer DevicePadFeature button ring strip)
;;; end DevicePadFeature
;;; begin struct DevicePadInterface
;;; fields: ()
;;; end DevicePadInterface
;;; begin object DeviceTool
;;; typename: GdkDeviceTool
(define-gtype-getter GdkDeviceTool-gtype "GdkDeviceTool")
;;; fields: ()
;;; object type name: GdkDeviceTool
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_device_tool_get_type"
;;; ---------------
(define-from-gdk gdk-device-tool-get-hardware-id uint64)
(define-from-gdk gdk-device-tool-get-serial uint64)
(define-from-gdk gdk-device-tool-get-tool-type uint32)
;;; end DeviceTool
;;; begin enum DeviceToolType
;;; series: sequence
(define-enum-transformer DeviceToolType unknown pen eraser brush pencil airbrush mouse lens)
;;; end DeviceToolType
;;; begin enum DeviceType
;;; series: sequence
(define-enum-transformer DeviceType master slave floating)
;;; end DeviceType
;;; begin object Display
;;; typename: GdkDisplay
(define-gtype-getter GdkDisplay-gtype "GdkDisplay")
;;; fields: ()
;;; object type name: GdkDisplay
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_display_get_type"
;;; ---------------
(define-from-gdk gdk-display-get-default '*)
(define-from-gdk gdk-display-open '* '*)
(define-from-gdk gdk-display-open-default-libgtk-only '*)
(define-from-gdk gdk-display-beep void)
(define-from-gdk gdk-display-close void)
(define-from-gdk gdk-display-device-is-grabbed int '*)
(define-from-gdk gdk-display-flush void)
(define-from-gdk gdk-display-get-app-launch-context '*)
(define-from-gdk gdk-display-get-default-cursor-size uint32)
(define-from-gdk gdk-display-get-default-group '*)
(define-from-gdk gdk-display-get-default-screen '*)
(define-from-gdk gdk-display-get-default-seat '*)
(define-from-gdk gdk-display-get-device-manager '*)
(define-from-gdk gdk-display-get-event '*)
(define-from-gdk gdk-display-get-maximal-cursor-size void uint32 uint32)
(define-from-gdk gdk-display-get-monitor '* int32)
(define-from-gdk gdk-display-get-monitor-at-point '* int32 int32)
(define-from-gdk gdk-display-get-monitor-at-window '* '*)
(define-from-gdk gdk-display-get-n-monitors int32)
(define-from-gdk gdk-display-get-n-screens int32)
(define-from-gdk gdk-display-get-name '*)
(define-from-gdk gdk-display-get-pointer void '* int32 int32 uint32)
(define-from-gdk gdk-display-get-primary-monitor '*)
(define-from-gdk gdk-display-get-screen '* int32)
(define-from-gdk gdk-display-get-window-at-pointer '* int32 int32)
(define-from-gdk gdk-display-has-pending int)
(define-from-gdk gdk-display-is-closed int)
(define-from-gdk gdk-display-keyboard-ungrab void uint32)
(define-from-gdk gdk-display-list-devices '*)
(define-from-gdk gdk-display-list-seats '*)
(define-from-gdk gdk-display-notify-startup-complete void '*)
(define-from-gdk gdk-display-peek-event '*)
(define-from-gdk gdk-display-pointer-is-grabbed int)
(define-from-gdk gdk-display-pointer-ungrab void uint32)
(define-from-gdk gdk-display-put-event void '*)
(define-from-gdk gdk-display-request-selection-notification int '*)
(define-from-gdk gdk-display-set-double-click-distance void uint32)
(define-from-gdk gdk-display-set-double-click-time void uint32)
(define-from-gdk gdk-display-store-clipboard void '* uint32 '* int32)
(define-from-gdk gdk-display-supports-clipboard-persistence int)
(define-from-gdk gdk-display-supports-composite int)
(define-from-gdk gdk-display-supports-cursor-alpha int)
(define-from-gdk gdk-display-supports-cursor-color int)
(define-from-gdk gdk-display-supports-input-shapes int)
(define-from-gdk gdk-display-supports-selection-notification int)
(define-from-gdk gdk-display-supports-shapes int)
(define-from-gdk gdk-display-sync void)
(define-from-gdk gdk-display-warp-pointer void '* int32 int32)
;;; end Display
;;; begin object DisplayManager
;;; typename: GdkDisplayManager
(define-gtype-getter GdkDisplayManager-gtype "GdkDisplayManager")
;;; fields: ()
;;; object type name: GdkDisplayManager
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_display_manager_get_type"
;;; ---------------
(define-from-gdk gdk-display-manager-get '*)
(define-from-gdk gdk-display-manager-get-default-display '*)
(define-from-gdk gdk-display-manager-list-displays '*)
(define-from-gdk gdk-display-manager-open-display '* '*)
(define-from-gdk gdk-display-manager-set-default-display void '*)
;;; end DisplayManager
;;; begin flags DragAction
;;; series: bitmasks
(define-flags-transformer DragAction default copy move link private ask)
;;; end DragAction
;;; begin enum DragCancelReason
;;; series: sequence
(define-enum-transformer DragCancelReason no_target user_cancelled error)
;;; end DragCancelReason
;;; begin object DragContext
;;; typename: GdkDragContext
(define-gtype-getter GdkDragContext-gtype "GdkDragContext")
;;; fields: ()
;;; object type name: GdkDragContext
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_drag_context_get_type"
;;; ---------------
(define-from-gdk gdk-drag-context-get-actions uint32)
(define-from-gdk gdk-drag-context-get-dest-window '*)
(define-from-gdk gdk-drag-context-get-device '*)
(define-from-gdk gdk-drag-context-get-drag-window '*)
(define-from-gdk gdk-drag-context-get-protocol uint32)
(define-from-gdk gdk-drag-context-get-selected-action uint32)
(define-from-gdk gdk-drag-context-get-source-window '*)
(define-from-gdk gdk-drag-context-get-suggested-action uint32)
(define-from-gdk gdk-drag-context-list-targets '*)
(define-from-gdk gdk-drag-context-manage-dnd int '* uint32)
(define-from-gdk gdk-drag-context-set-device void '*)
(define-from-gdk gdk-drag-context-set-hotspot void int32 int32)
;;; end DragContext
;;; begin enum DragProtocol
;;; series: sequence
(define-enum-transformer DragProtocol none motif xdnd rootwin win32_dropfiles ole2 local wayland)
;;; end DragProtocol
;;; begin object DrawingContext
;;; typename: GdkDrawingContext
(define-gtype-getter GdkDrawingContext-gtype "GdkDrawingContext")
;;; fields: ()
;;; object type name: GdkDrawingContext
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_drawing_context_get_type"
;;; begin struct DrawingContextClass
;;; fields: ()
;;; end DrawingContextClass
;;; ---------------
(define-from-gdk gdk-drawing-context-get-cairo-context '*)
(define-from-gdk gdk-drawing-context-get-clip '*)
(define-from-gdk gdk-drawing-context-get-window '*)
(define-from-gdk gdk-drawing-context-is-valid int)
;;; end DrawingContext
;;; begin struct DrawingContextClass
;;; fields: ()
;;; end DrawingContextClass
(define EVENT_PROPAGATE (unknown binary boolean))
(define EVENT_STOP (unknown binary boolean))
;;; begin union Event
;;; typename: GdkEvent
(define-gtype-getter GdkEvent-gtype "GdkEvent")
;;; fields: ("type" "any" "expose" "visibility" "motion" "button" "touch" "scroll" "key" "crossing" "focus_change" "configure" "property" "selection" "owner_change" "proximity" "dnd" "window_state" "setting" "grab_broken" "touchpad_swipe" "touchpad_pinch" "pad_button" "pad_axis" "pad_group_mode")
(define-from-gdk gdk-event-new '* int32)
(define-from-gdk gdk-events-get-angle int '* double)
(define-from-gdk gdk-events-get-center int '* double double)
(define-from-gdk gdk-events-get-distance int '* double)
(define-from-gdk gdk-event-copy '*)
(define-from-gdk gdk-event-free void)
(define-from-gdk gdk-event-get-axis int uint32 double)
(define-from-gdk gdk-event-get-button int uint32)
(define-from-gdk gdk-event-get-click-count int uint32)
(define-from-gdk gdk-event-get-coords int double double)
(define-from-gdk gdk-event-get-device '*)
(define-from-gdk gdk-event-get-device-tool '*)
(define-from-gdk gdk-event-get-event-sequence '*)
(define-from-gdk gdk-event-get-event-type int32)
(define-from-gdk gdk-event-get-keycode int uint16)
(define-from-gdk gdk-event-get-keyval int uint32)
(define-from-gdk gdk-event-get-pointer-emulated int)
(define-from-gdk gdk-event-get-root-coords int double double)
(define-from-gdk gdk-event-get-scancode int32)
(define-from-gdk gdk-event-get-screen '*)
(define-from-gdk gdk-event-get-scroll-deltas int double double)
(define-from-gdk gdk-event-get-scroll-direction int uint32)
(define-from-gdk gdk-event-get-seat '*)
(define-from-gdk gdk-event-get-source-device '*)
(define-from-gdk gdk-event-get-state int uint32)
(define-from-gdk gdk-event-get-time uint32)
(define-from-gdk gdk-event-get-window '*)
(define-from-gdk gdk-event-is-scroll-stop-event int)
(define-from-gdk gdk-event-put void)
(define-from-gdk gdk-event-set-device void '*)
(define-from-gdk gdk-event-set-device-tool void '*)
(define-from-gdk gdk-event-set-screen void '*)
(define-from-gdk gdk-event-set-source-device void '*)
(define-from-gdk gdk-event-triggers-context-menu int)
(define-from-gdk gdk-event-get '*)
(define-from-gdk gdk-event-handler-set void '* '* '*)
(define-from-gdk gdk-event-peek '*)
(define-from-gdk gdk-event-request-motions void '*)
;;; end Event
;;; begin struct EventAny
;;; fields: ("type" "window" "send_event")
;;; end EventAny
;;; begin struct EventButton
;;; fields: ("type" "window" "send_event" "time" "x" "y" "axes" "state" "button" "device" "x_root" "y_root")
;;; end EventButton
;;; begin struct EventConfigure
;;; fields: ("type" "window" "send_event" "x" "y" "width" "height")
;;; end EventConfigure
;;; begin struct EventCrossing
;;; fields: ("type" "window" "send_event" "subwindow" "time" "x" "y" "x_root" "y_root" "mode" "detail" "focus" "state")
;;; end EventCrossing
;;; begin struct EventDND
;;; fields: ("type" "window" "send_event" "context" "time" "x_root" "y_root")
;;; end EventDND
;;; begin struct EventExpose
;;; fields: ("type" "window" "send_event" "area" "region" "count")
;;; end EventExpose
;;; begin struct EventFocus
;;; fields: ("type" "window" "send_event" "in")
;;; end EventFocus
;;; (callback "EventFunc")
;;; begin struct EventGrabBroken
;;; fields: ("type" "window" "send_event" "keyboard" "implicit" "grab_window")
;;; end EventGrabBroken
;;; begin struct EventKey
;;; fields: ("type" "window" "send_event" "time" "state" "keyval" "length" "string" "hardware_keycode" "group" "is_modifier")
;;; end EventKey
;;; begin flags EventMask
;;; series: unordered
;;; end EventMask
;;; begin struct EventMotion
;;; fields: ("type" "window" "send_event" "time" "x" "y" "axes" "state" "is_hint" "device" "x_root" "y_root")
;;; end EventMotion
;;; begin struct EventOwnerChange
;;; fields: ("type" "window" "send_event" "owner" "reason" "selection" "time" "selection_time")
;;; end EventOwnerChange
;;; begin struct EventPadAxis
;;; fields: ("type" "window" "send_event" "time" "group" "index" "mode" "value")
;;; end EventPadAxis
;;; begin struct EventPadButton
;;; fields: ("type" "window" "send_event" "time" "group" "button" "mode")
;;; end EventPadButton
;;; begin struct EventPadGroupMode
;;; fields: ("type" "window" "send_event" "time" "group" "mode")
;;; end EventPadGroupMode
;;; begin struct EventProperty
;;; fields: ("type" "window" "send_event" "atom" "time" "state")
;;; end EventProperty
;;; begin struct EventProximity
;;; fields: ("type" "window" "send_event" "time" "device")
;;; end EventProximity
;;; begin struct EventScroll
;;; fields: ("type" "window" "send_event" "time" "x" "y" "state" "direction" "device" "x_root" "y_root" "delta_x" "delta_y" "is_stop")
;;; end EventScroll
;;; begin struct EventSelection
;;; fields: ("type" "window" "send_event" "selection" "target" "property" "time" "requestor")
;;; end EventSelection
;;; begin struct EventSequence
;;; typename: GdkEventSequence
(define-gtype-getter GdkEventSequence-gtype "GdkEventSequence")
;;; fields: ()
;;; end EventSequence
;;; begin struct EventSetting
;;; fields: ("type" "window" "send_event" "action" "name")
;;; end EventSetting
;;; begin struct EventTouch
;;; fields: ("type" "window" "send_event" "time" "x" "y" "axes" "state" "sequence" "emulating_pointer" "device" "x_root" "y_root")
;;; end EventTouch
;;; begin struct EventTouchpadPinch
;;; fields: ("type" "window" "send_event" "phase" "n_fingers" "time" "x" "y" "dx" "dy" "angle_delta" "scale" "x_root" "y_root" "state")
;;; end EventTouchpadPinch
;;; begin struct EventTouchpadSwipe
;;; fields: ("type" "window" "send_event" "phase" "n_fingers" "time" "x" "y" "dx" "dy" "x_root" "y_root" "state")
;;; end EventTouchpadSwipe
;;; begin enum EventType
;;; series: unordered
;;; end EventType
;;; begin struct EventVisibility
;;; fields: ("type" "window" "send_event" "state")
;;; end EventVisibility
;;; begin struct EventWindowState
;;; fields: ("type" "window" "send_event" "changed_mask" "new_window_state")
;;; end EventWindowState
;;; (callback "FilterFunc")
;;; begin enum FilterReturn
;;; series: sequence
(define-enum-transformer FilterReturn continue translate remove)
;;; end FilterReturn
;;; begin object FrameClock
;;; typename: GdkFrameClock
(define-gtype-getter GdkFrameClock-gtype "GdkFrameClock")
;;; fields: ()
;;; object type name: GdkFrameClock
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_frame_clock_get_type"
;;; begin struct FrameClockClass
;;; fields: ()
;;; end FrameClockClass
;;; ---------------
(define-from-gdk gdk-frame-clock-begin-updating void)
(define-from-gdk gdk-frame-clock-end-updating void)
(define-from-gdk gdk-frame-clock-get-current-timings '*)
(define-from-gdk gdk-frame-clock-get-frame-counter int64)
(define-from-gdk gdk-frame-clock-get-frame-time int64)
(define-from-gdk gdk-frame-clock-get-history-start int64)
(define-from-gdk gdk-frame-clock-get-refresh-info void int64 '* '*)
(define-from-gdk gdk-frame-clock-get-timings '* int64)
(define-from-gdk gdk-frame-clock-request-phase void uint32)
;;; end FrameClock
;;; begin struct FrameClockClass
;;; fields: ()
;;; end FrameClockClass
;;; begin flags FrameClockPhase
;;; series: unordered
;;; end FrameClockPhase
;;; begin struct FrameClockPrivate
;;; fields: ()
;;; end FrameClockPrivate
;;; begin struct FrameTimings
;;; typename: GdkFrameTimings
(define-gtype-getter GdkFrameTimings-gtype "GdkFrameTimings")
;;; fields: ()
(define-from-gdk gdk-frame-timings-get-complete int)
(define-from-gdk gdk-frame-timings-get-frame-counter int64)
(define-from-gdk gdk-frame-timings-get-frame-time int64)
(define-from-gdk gdk-frame-timings-get-predicted-presentation-time int64)
(define-from-gdk gdk-frame-timings-get-presentation-time int64)
(define-from-gdk gdk-frame-timings-get-refresh-interval int64)
(define-from-gdk gdk-frame-timings-ref '*)
(define-from-gdk gdk-frame-timings-unref void)
;;; end FrameTimings
;;; begin enum FullscreenMode
;;; series: sequence
(define-enum-transformer FullscreenMode current_monitor all_monitors)
;;; end FullscreenMode
;;; begin object GLContext
;;; typename: GdkGLContext
(define-gtype-getter GdkGLContext-gtype "GdkGLContext")
;;; fields: ()
;;; object type name: GdkGLContext
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_gl_context_get_type"
;;; ---------------
(define-from-gdk gdk-gl-context-clear-current void)
(define-from-gdk gdk-gl-context-get-current '*)
(define-from-gdk gdk-gl-context-get-debug-enabled int)
(define-from-gdk gdk-gl-context-get-display '*)
(define-from-gdk gdk-gl-context-get-forward-compatible int)
(define-from-gdk gdk-gl-context-get-required-version void int32 int32)
(define-from-gdk gdk-gl-context-get-shared-context '*)
(define-from-gdk gdk-gl-context-get-use-es int)
(define-from-gdk gdk-gl-context-get-version void int32 int32)
(define-from-gdk gdk-gl-context-get-window '*)
(define-from-gdk gdk-gl-context-is-legacy int)
(define-from-gdk gdk-gl-context-make-current void)
(define-from-gdk gdk-gl-context-realize int)
(define-from-gdk gdk-gl-context-set-debug-enabled void int)
(define-from-gdk gdk-gl-context-set-forward-compatible void int)
(define-from-gdk gdk-gl-context-set-required-version void int32 int32)
(define-from-gdk gdk-gl-context-set-use-es void int32)
;;; end GLContext
;;; begin enum GLError
;;; series: sequence
(define-enum-transformer GLError not_available unsupported_format unsupported_profile)
(define-from-gdk gdk-gl-error-quark uint32)
;;; end GLError
;;; begin struct Geometry
;;; fields: ("min_width" "min_height" "max_width" "max_height" "base_width" "base_height" "width_inc" "height_inc" "min_aspect" "max_aspect" "win_gravity")
;;; end Geometry
;;; begin enum GrabOwnership
;;; series: sequence
(define-enum-transformer GrabOwnership none window application)
;;; end GrabOwnership
;;; begin enum GrabStatus
;;; series: sequence
(define-enum-transformer
GrabStatus
success
already_grabbed
invalid_time
not_viewable
frozen
failed)
;;; end GrabStatus
;;; begin enum Gravity
;;; series: unordered
;;; end Gravity
;;; begin enum InputMode
;;; series: sequence
(define-enum-transformer InputMode disabled screen window)
;;; end InputMode
;;; begin enum InputSource
;;; series: sequence
(define-enum-transformer
InputSource
mouse
pen
eraser
cursor
keyboard
touchscreen
touchpad
trackpoint
tablet_pad)
;;; end InputSource
(define KEY_0 48)
(define KEY_1 49)
(define KEY_2 50)
(define KEY_3 51)
(define KEY_3270_AltCursor 64784)
(define KEY_3270_Attn 64782)
(define KEY_3270_BackTab 64773)
(define KEY_3270_ChangeScreen 64793)
(define KEY_3270_Copy 64789)
(define KEY_3270_CursorBlink 64783)
(define KEY_3270_CursorSelect 64796)
(define KEY_3270_DeleteWord 64794)
(define KEY_3270_Duplicate 64769)
(define KEY_3270_Enter 64798)
(define KEY_3270_EraseEOF 64774)
(define KEY_3270_EraseInput 64775)
(define KEY_3270_ExSelect 64795)
(define KEY_3270_FieldMark 64770)
(define KEY_3270_Ident 64787)
(define KEY_3270_Jump 64786)
(define KEY_3270_KeyClick 64785)
(define KEY_3270_Left2 64772)
(define KEY_3270_PA1 64778)
(define KEY_3270_PA2 64779)
(define KEY_3270_PA3 64780)
(define KEY_3270_Play 64790)
(define KEY_3270_PrintScreen 64797)
(define KEY_3270_Quit 64777)
(define KEY_3270_Record 64792)
(define KEY_3270_Reset 64776)
(define KEY_3270_Right2 64771)
(define KEY_3270_Rule 64788)
(define KEY_3270_Setup 64791)
(define KEY_3270_Test 64781)
(define KEY_4 52)
(define KEY_5 53)
(define KEY_6 54)
(define KEY_7 55)
(define KEY_8 56)
(define KEY_9 57)
(define KEY_A 65)
(define KEY_AE 198)
(define KEY_Aacute 193)
(define KEY_Abelowdot 16785056)
(define KEY_Abreve 451)
(define KEY_Abreveacute 16785070)
(define KEY_Abrevebelowdot 16785078)
(define KEY_Abrevegrave 16785072)
(define KEY_Abrevehook 16785074)
(define KEY_Abrevetilde 16785076)
(define KEY_AccessX_Enable 65136)
(define KEY_AccessX_Feedback_Enable 65137)
(define KEY_Acircumflex 194)
(define KEY_Acircumflexacute 16785060)
(define KEY_Acircumflexbelowdot 16785068)
(define KEY_Acircumflexgrave 16785062)
(define KEY_Acircumflexhook 16785064)
(define KEY_Acircumflextilde 16785066)
(define KEY_AddFavorite 269025081)
(define KEY_Adiaeresis 196)
(define KEY_Agrave 192)
(define KEY_Ahook 16785058)
(define KEY_Alt_L 65513)
(define KEY_Alt_R 65514)
(define KEY_Amacron 960)
(define KEY_Aogonek 417)
(define KEY_ApplicationLeft 269025104)
(define KEY_ApplicationRight 269025105)
(define KEY_Arabic_0 16778848)
(define KEY_Arabic_1 16778849)
(define KEY_Arabic_2 16778850)
(define KEY_Arabic_3 16778851)
(define KEY_Arabic_4 16778852)
(define KEY_Arabic_5 16778853)
(define KEY_Arabic_6 16778854)
(define KEY_Arabic_7 16778855)
(define KEY_Arabic_8 16778856)
(define KEY_Arabic_9 16778857)
(define KEY_Arabic_ain 1497)
(define KEY_Arabic_alef 1479)
(define KEY_Arabic_alefmaksura 1513)
(define KEY_Arabic_beh 1480)
(define KEY_Arabic_comma 1452)
(define KEY_Arabic_dad 1494)
(define KEY_Arabic_dal 1487)
(define KEY_Arabic_damma 1519)
(define KEY_Arabic_dammatan 1516)
(define KEY_Arabic_ddal 16778888)
(define KEY_Arabic_farsi_yeh 16778956)
(define KEY_Arabic_fatha 1518)
(define KEY_Arabic_fathatan 1515)
(define KEY_Arabic_feh 1505)
(define KEY_Arabic_fullstop 16778964)
(define KEY_Arabic_gaf 16778927)
(define KEY_Arabic_ghain 1498)
(define KEY_Arabic_ha 1511)
(define KEY_Arabic_hah 1485)
(define KEY_Arabic_hamza 1473)
(define KEY_Arabic_hamza_above 16778836)
(define KEY_Arabic_hamza_below 16778837)
(define KEY_Arabic_hamzaonalef 1475)
(define KEY_Arabic_hamzaonwaw 1476)
(define KEY_Arabic_hamzaonyeh 1478)
(define KEY_Arabic_hamzaunderalef 1477)
(define KEY_Arabic_heh 1511)
(define KEY_Arabic_heh_doachashmee 16778942)
(define KEY_Arabic_heh_goal 16778945)
(define KEY_Arabic_jeem 1484)
(define KEY_Arabic_jeh 16778904)
(define KEY_Arabic_kaf 1507)
(define KEY_Arabic_kasra 1520)
(define KEY_Arabic_kasratan 1517)
(define KEY_Arabic_keheh 16778921)
(define KEY_Arabic_khah 1486)
(define KEY_Arabic_lam 1508)
(define KEY_Arabic_madda_above 16778835)
(define KEY_Arabic_maddaonalef 1474)
(define KEY_Arabic_meem 1509)
(define KEY_Arabic_noon 1510)
(define KEY_Arabic_noon_ghunna 16778938)
(define KEY_Arabic_peh 16778878)
(define KEY_Arabic_percent 16778858)
(define KEY_Arabic_qaf 1506)
(define KEY_Arabic_question_mark 1471)
(define KEY_Arabic_ra 1489)
(define KEY_Arabic_rreh 16778897)
(define KEY_Arabic_sad 1493)
(define KEY_Arabic_seen 1491)
(define KEY_Arabic_semicolon 1467)
(define KEY_Arabic_shadda 1521)
(define KEY_Arabic_sheen 1492)
(define KEY_Arabic_sukun 1522)
(define KEY_Arabic_superscript_alef 16778864)
(define KEY_Arabic_switch 65406)
(define KEY_Arabic_tah 1495)
(define KEY_Arabic_tatweel 1504)
(define KEY_Arabic_tcheh 16778886)
(define KEY_Arabic_teh 1482)
(define KEY_Arabic_tehmarbuta 1481)
(define KEY_Arabic_thal 1488)
(define KEY_Arabic_theh 1483)
(define KEY_Arabic_tteh 16778873)
(define KEY_Arabic_veh 16778916)
(define KEY_Arabic_waw 1512)
(define KEY_Arabic_yeh 1514)
(define KEY_Arabic_yeh_baree 16778962)
(define KEY_Arabic_zah 1496)
(define KEY_Arabic_zain 1490)
(define KEY_Aring 197)
(define KEY_Armenian_AT 16778552)
(define KEY_Armenian_AYB 16778545)
(define KEY_Armenian_BEN 16778546)
(define KEY_Armenian_CHA 16778569)
(define KEY_Armenian_DA 16778548)
(define KEY_Armenian_DZA 16778561)
(define KEY_Armenian_E 16778551)
(define KEY_Armenian_FE 16778582)
(define KEY_Armenian_GHAT 16778562)
(define KEY_Armenian_GIM 16778547)
(define KEY_Armenian_HI 16778565)
(define KEY_Armenian_HO 16778560)
(define KEY_Armenian_INI 16778555)
(define KEY_Armenian_JE 16778571)
(define KEY_Armenian_KE 16778580)
(define KEY_Armenian_KEN 16778559)
(define KEY_Armenian_KHE 16778557)
(define KEY_Armenian_LYUN 16778556)
(define KEY_Armenian_MEN 16778564)
(define KEY_Armenian_NU 16778566)
(define KEY_Armenian_O 16778581)
(define KEY_Armenian_PE 16778570)
(define KEY_Armenian_PYUR 16778579)
(define KEY_Armenian_RA 16778572)
(define KEY_Armenian_RE 16778576)
(define KEY_Armenian_SE 16778573)
(define KEY_Armenian_SHA 16778567)
(define KEY_Armenian_TCHE 16778563)
(define KEY_Armenian_TO 16778553)
(define KEY_Armenian_TSA 16778558)
(define KEY_Armenian_TSO 16778577)
(define KEY_Armenian_TYUN 16778575)
(define KEY_Armenian_VEV 16778574)
(define KEY_Armenian_VO 16778568)
(define KEY_Armenian_VYUN 16778578)
(define KEY_Armenian_YECH 16778549)
(define KEY_Armenian_ZA 16778550)
(define KEY_Armenian_ZHE 16778554)
(define KEY_Armenian_accent 16778587)
(define KEY_Armenian_amanak 16778588)
(define KEY_Armenian_apostrophe 16778586)
(define KEY_Armenian_at 16778600)
(define KEY_Armenian_ayb 16778593)
(define KEY_Armenian_ben 16778594)
(define KEY_Armenian_but 16778589)
(define KEY_Armenian_cha 16778617)
(define KEY_Armenian_da 16778596)
(define KEY_Armenian_dza 16778609)
(define KEY_Armenian_e 16778599)
(define KEY_Armenian_exclam 16778588)
(define KEY_Armenian_fe 16778630)
(define KEY_Armenian_full_stop 16778633)
(define KEY_Armenian_ghat 16778610)
(define KEY_Armenian_gim 16778595)
(define KEY_Armenian_hi 16778613)
(define KEY_Armenian_ho 16778608)
(define KEY_Armenian_hyphen 16778634)
(define KEY_Armenian_ini 16778603)
(define KEY_Armenian_je 16778619)
(define KEY_Armenian_ke 16778628)
(define KEY_Armenian_ken 16778607)
(define KEY_Armenian_khe 16778605)
(define KEY_Armenian_ligature_ew 16778631)
(define KEY_Armenian_lyun 16778604)
(define KEY_Armenian_men 16778612)
(define KEY_Armenian_nu 16778614)
(define KEY_Armenian_o 16778629)
(define KEY_Armenian_paruyk 16778590)
(define KEY_Armenian_pe 16778618)
(define KEY_Armenian_pyur 16778627)
(define KEY_Armenian_question 16778590)
(define KEY_Armenian_ra 16778620)
(define KEY_Armenian_re 16778624)
(define KEY_Armenian_se 16778621)
(define KEY_Armenian_separation_mark 16778589)
(define KEY_Armenian_sha 16778615)
(define KEY_Armenian_shesht 16778587)
(define KEY_Armenian_tche 16778611)
(define KEY_Armenian_to 16778601)
(define KEY_Armenian_tsa 16778606)
(define KEY_Armenian_tso 16778625)
(define KEY_Armenian_tyun 16778623)
(define KEY_Armenian_verjaket 16778633)
(define KEY_Armenian_vev 16778622)
(define KEY_Armenian_vo 16778616)
(define KEY_Armenian_vyun 16778626)
(define KEY_Armenian_yech 16778597)
(define KEY_Armenian_yentamna 16778634)
(define KEY_Armenian_za 16778598)
(define KEY_Armenian_zhe 16778602)
(define KEY_Atilde 195)
(define KEY_AudibleBell_Enable 65146)
(define KEY_AudioCycleTrack 269025179)
(define KEY_AudioForward 269025175)
(define KEY_AudioLowerVolume 269025041)
(define KEY_AudioMedia 269025074)
(define KEY_AudioMicMute 269025202)
(define KEY_AudioMute 269025042)
(define KEY_AudioNext 269025047)
(define KEY_AudioPause 269025073)
(define KEY_AudioPlay 269025044)
(define KEY_AudioPrev 269025046)
(define KEY_AudioRaiseVolume 269025043)
(define KEY_AudioRandomPlay 269025177)
(define KEY_AudioRecord 269025052)
(define KEY_AudioRepeat 269025176)
(define KEY_AudioRewind 269025086)
(define KEY_AudioStop 269025045)
(define KEY_Away 269025165)
(define KEY_B 66)
(define KEY_Babovedot 16784898)
(define KEY_Back 269025062)
(define KEY_BackForward 269025087)
(define KEY_BackSpace 65288)
(define KEY_Battery 269025171)
(define KEY_Begin 65368)
(define KEY_Blue 269025190)
(define KEY_Bluetooth 269025172)
(define KEY_Book 269025106)
(define KEY_BounceKeys_Enable 65140)
(define KEY_Break 65387)
(define KEY_BrightnessAdjust 269025083)
(define KEY_Byelorussian_SHORTU 1726)
(define KEY_Byelorussian_shortu 1710)
(define KEY_C 67)
(define KEY_CD 269025107)
(define KEY_CH 65186)
(define KEY_C_H 65189)
(define KEY_C_h 65188)
(define KEY_Cabovedot 709)
(define KEY_Cacute 454)
(define KEY_Calculator 269025053)
(define KEY_Calendar 269025056)
(define KEY_Cancel 65385)
(define KEY_Caps_Lock 65509)
(define KEY_Ccaron 456)
(define KEY_Ccedilla 199)
(define KEY_Ccircumflex 710)
(define KEY_Ch 65185)
(define KEY_Clear 65291)
(define KEY_ClearGrab 269024801)
(define KEY_Close 269025110)
(define KEY_Codeinput 65335)
(define KEY_ColonSign 16785569)
(define KEY_Community 269025085)
(define KEY_ContrastAdjust 269025058)
(define KEY_Control_L 65507)
(define KEY_Control_R 65508)
(define KEY_Copy 269025111)
(define KEY_CruzeiroSign 16785570)
(define KEY_Cut 269025112)
(define KEY_CycleAngle 269025180)
(define KEY_Cyrillic_A 1761)
(define KEY_Cyrillic_BE 1762)
(define KEY_Cyrillic_CHE 1790)
(define KEY_Cyrillic_CHE_descender 16778422)
(define KEY_Cyrillic_CHE_vertstroke 16778424)
(define KEY_Cyrillic_DE 1764)
(define KEY_Cyrillic_DZHE 1727)
(define KEY_Cyrillic_E 1788)
(define KEY_Cyrillic_EF 1766)
(define KEY_Cyrillic_EL 1772)
(define KEY_Cyrillic_EM 1773)
(define KEY_Cyrillic_EN 1774)
(define KEY_Cyrillic_EN_descender 16778402)
(define KEY_Cyrillic_ER 1778)
(define KEY_Cyrillic_ES 1779)
(define KEY_Cyrillic_GHE 1767)
(define KEY_Cyrillic_GHE_bar 16778386)
(define KEY_Cyrillic_HA 1768)
(define KEY_Cyrillic_HARDSIGN 1791)
(define KEY_Cyrillic_HA_descender 16778418)
(define KEY_Cyrillic_I 1769)
(define KEY_Cyrillic_IE 1765)
(define KEY_Cyrillic_IO 1715)
(define KEY_Cyrillic_I_macron 16778466)
(define KEY_Cyrillic_JE 1720)
(define KEY_Cyrillic_KA 1771)
(define KEY_Cyrillic_KA_descender 16778394)
(define KEY_Cyrillic_KA_vertstroke 16778396)
(define KEY_Cyrillic_LJE 1721)
(define KEY_Cyrillic_NJE 1722)
(define KEY_Cyrillic_O 1775)
(define KEY_Cyrillic_O_bar 16778472)
(define KEY_Cyrillic_PE 1776)
(define KEY_Cyrillic_SCHWA 16778456)
(define KEY_Cyrillic_SHA 1787)
(define KEY_Cyrillic_SHCHA 1789)
(define KEY_Cyrillic_SHHA 16778426)
(define KEY_Cyrillic_SHORTI 1770)
(define KEY_Cyrillic_SOFTSIGN 1784)
(define KEY_Cyrillic_TE 1780)
(define KEY_Cyrillic_TSE 1763)
(define KEY_Cyrillic_U 1781)
(define KEY_Cyrillic_U_macron 16778478)
(define KEY_Cyrillic_U_straight 16778414)
(define KEY_Cyrillic_U_straight_bar 16778416)
(define KEY_Cyrillic_VE 1783)
(define KEY_Cyrillic_YA 1777)
(define KEY_Cyrillic_YERU 1785)
(define KEY_Cyrillic_YU 1760)
(define KEY_Cyrillic_ZE 1786)
(define KEY_Cyrillic_ZHE 1782)
(define KEY_Cyrillic_ZHE_descender 16778390)
(define KEY_Cyrillic_a 1729)
(define KEY_Cyrillic_be 1730)
(define KEY_Cyrillic_che 1758)
(define KEY_Cyrillic_che_descender 16778423)
(define KEY_Cyrillic_che_vertstroke 16778425)
(define KEY_Cyrillic_de 1732)
(define KEY_Cyrillic_dzhe 1711)
(define KEY_Cyrillic_e 1756)
(define KEY_Cyrillic_ef 1734)
(define KEY_Cyrillic_el 1740)
(define KEY_Cyrillic_em 1741)
(define KEY_Cyrillic_en 1742)
(define KEY_Cyrillic_en_descender 16778403)
(define KEY_Cyrillic_er 1746)
(define KEY_Cyrillic_es 1747)
(define KEY_Cyrillic_ghe 1735)
(define KEY_Cyrillic_ghe_bar 16778387)
(define KEY_Cyrillic_ha 1736)
(define KEY_Cyrillic_ha_descender 16778419)
(define KEY_Cyrillic_hardsign 1759)
(define KEY_Cyrillic_i 1737)
(define KEY_Cyrillic_i_macron 16778467)
(define KEY_Cyrillic_ie 1733)
(define KEY_Cyrillic_io 1699)
(define KEY_Cyrillic_je 1704)
(define KEY_Cyrillic_ka 1739)
(define KEY_Cyrillic_ka_descender 16778395)
(define KEY_Cyrillic_ka_vertstroke 16778397)
(define KEY_Cyrillic_lje 1705)
(define KEY_Cyrillic_nje 1706)
(define KEY_Cyrillic_o 1743)
(define KEY_Cyrillic_o_bar 16778473)
(define KEY_Cyrillic_pe 1744)
(define KEY_Cyrillic_schwa 16778457)
(define KEY_Cyrillic_sha 1755)
(define KEY_Cyrillic_shcha 1757)
(define KEY_Cyrillic_shha 16778427)
(define KEY_Cyrillic_shorti 1738)
(define KEY_Cyrillic_softsign 1752)
(define KEY_Cyrillic_te 1748)
(define KEY_Cyrillic_tse 1731)
(define KEY_Cyrillic_u 1749)
(define KEY_Cyrillic_u_macron 16778479)
(define KEY_Cyrillic_u_straight 16778415)
(define KEY_Cyrillic_u_straight_bar 16778417)
(define KEY_Cyrillic_ve 1751)
(define KEY_Cyrillic_ya 1745)
(define KEY_Cyrillic_yeru 1753)
(define KEY_Cyrillic_yu 1728)
(define KEY_Cyrillic_ze 1754)
(define KEY_Cyrillic_zhe 1750)
(define KEY_Cyrillic_zhe_descender 16778391)
(define KEY_D 68)
(define KEY_DOS 269025114)
(define KEY_Dabovedot 16784906)
(define KEY_Dcaron 463)
(define KEY_Delete 65535)
(define KEY_Display 269025113)
(define KEY_Documents 269025115)
(define KEY_DongSign 16785579)
(define KEY_Down 65364)
(define KEY_Dstroke 464)
(define KEY_E 69)
(define KEY_ENG 957)
(define KEY_ETH 208)
(define KEY_EZH 16777655)
(define KEY_Eabovedot 972)
(define KEY_Eacute 201)
(define KEY_Ebelowdot 16785080)
(define KEY_Ecaron 460)
(define KEY_Ecircumflex 202)
(define KEY_Ecircumflexacute 16785086)
(define KEY_Ecircumflexbelowdot 16785094)
(define KEY_Ecircumflexgrave 16785088)
(define KEY_Ecircumflexhook 16785090)
(define KEY_Ecircumflextilde 16785092)
(define KEY_EcuSign 16785568)
(define KEY_Ediaeresis 203)
(define KEY_Egrave 200)
(define KEY_Ehook 16785082)
(define KEY_Eisu_Shift 65327)
(define KEY_Eisu_toggle 65328)
(define KEY_Eject 269025068)
(define KEY_Emacron 938)
(define KEY_End 65367)
(define KEY_Eogonek 458)
(define KEY_Escape 65307)
(define KEY_Eth 208)
(define KEY_Etilde 16785084)
(define KEY_EuroSign 8364)
(define KEY_Excel 269025116)
(define KEY_Execute 65378)
(define KEY_Explorer 269025117)
(define KEY_F 70)
(define KEY_F1 65470)
(define KEY_F10 65479)
(define KEY_F11 65480)
(define KEY_F12 65481)
(define KEY_F13 65482)
(define KEY_F14 65483)
(define KEY_F15 65484)
(define KEY_F16 65485)
(define KEY_F17 65486)
(define KEY_F18 65487)
(define KEY_F19 65488)
(define KEY_F2 65471)
(define KEY_F20 65489)
(define KEY_F21 65490)
(define KEY_F22 65491)
(define KEY_F23 65492)
(define KEY_F24 65493)
(define KEY_F25 65494)
(define KEY_F26 65495)
(define KEY_F27 65496)
(define KEY_F28 65497)
(define KEY_F29 65498)
(define KEY_F3 65472)
(define KEY_F30 65499)
(define KEY_F31 65500)
(define KEY_F32 65501)
(define KEY_F33 65502)
(define KEY_F34 65503)
(define KEY_F35 65504)
(define KEY_F4 65473)
(define KEY_F5 65474)
(define KEY_F6 65475)
(define KEY_F7 65476)
(define KEY_F8 65477)
(define KEY_F9 65478)
(define KEY_FFrancSign 16785571)
(define KEY_Fabovedot 16784926)
(define KEY_Farsi_0 16778992)
(define KEY_Farsi_1 16778993)
(define KEY_Farsi_2 16778994)
(define KEY_Farsi_3 16778995)
(define KEY_Farsi_4 16778996)
(define KEY_Farsi_5 16778997)
(define KEY_Farsi_6 16778998)
(define KEY_Farsi_7 16778999)
(define KEY_Farsi_8 16779000)
(define KEY_Farsi_9 16779001)
(define KEY_Farsi_yeh 16778956)
(define KEY_Favorites 269025072)
(define KEY_Finance 269025084)
(define KEY_Find 65384)
(define KEY_First_Virtual_Screen 65232)
(define KEY_Forward 269025063)
(define KEY_FrameBack 269025181)
(define KEY_FrameForward 269025182)
(define KEY_G 71)
(define KEY_Gabovedot 725)
(define KEY_Game 269025118)
(define KEY_Gbreve 683)
(define KEY_Gcaron 16777702)
(define KEY_Gcedilla 939)
(define KEY_Gcircumflex 728)
(define KEY_Georgian_an 16781520)
(define KEY_Georgian_ban 16781521)
(define KEY_Georgian_can 16781546)
(define KEY_Georgian_char 16781549)
(define KEY_Georgian_chin 16781545)
(define KEY_Georgian_cil 16781548)
(define KEY_Georgian_don 16781523)
(define KEY_Georgian_en 16781524)
(define KEY_Georgian_fi 16781558)
(define KEY_Georgian_gan 16781522)
(define KEY_Georgian_ghan 16781542)
(define KEY_Georgian_hae 16781552)
(define KEY_Georgian_har 16781556)
(define KEY_Georgian_he 16781553)
(define KEY_Georgian_hie 16781554)
(define KEY_Georgian_hoe 16781557)
(define KEY_Georgian_in 16781528)
(define KEY_Georgian_jhan 16781551)
(define KEY_Georgian_jil 16781547)
(define KEY_Georgian_kan 16781529)
(define KEY_Georgian_khar 16781541)
(define KEY_Georgian_las 16781530)
(define KEY_Georgian_man 16781531)
(define KEY_Georgian_nar 16781532)
(define KEY_Georgian_on 16781533)
(define KEY_Georgian_par 16781534)
(define KEY_Georgian_phar 16781540)
(define KEY_Georgian_qar 16781543)
(define KEY_Georgian_rae 16781536)
(define KEY_Georgian_san 16781537)
(define KEY_Georgian_shin 16781544)
(define KEY_Georgian_tan 16781527)
(define KEY_Georgian_tar 16781538)
(define KEY_Georgian_un 16781539)
(define KEY_Georgian_vin 16781525)
(define KEY_Georgian_we 16781555)
(define KEY_Georgian_xan 16781550)
(define KEY_Georgian_zen 16781526)
(define KEY_Georgian_zhar 16781535)
(define KEY_Go 269025119)
(define KEY_Greek_ALPHA 1985)
(define KEY_Greek_ALPHAaccent 1953)
(define KEY_Greek_BETA 1986)
(define KEY_Greek_CHI 2007)
(define KEY_Greek_DELTA 1988)
(define KEY_Greek_EPSILON 1989)
(define KEY_Greek_EPSILONaccent 1954)
(define KEY_Greek_ETA 1991)
(define KEY_Greek_ETAaccent 1955)
(define KEY_Greek_GAMMA 1987)
(define KEY_Greek_IOTA 1993)
(define KEY_Greek_IOTAaccent 1956)
(define KEY_Greek_IOTAdiaeresis 1957)
(define KEY_Greek_IOTAdieresis 1957)
(define KEY_Greek_KAPPA 1994)
(define KEY_Greek_LAMBDA 1995)
(define KEY_Greek_LAMDA 1995)
(define KEY_Greek_MU 1996)
(define KEY_Greek_NU 1997)
(define KEY_Greek_OMEGA 2009)
(define KEY_Greek_OMEGAaccent 1963)
(define KEY_Greek_OMICRON 1999)
(define KEY_Greek_OMICRONaccent 1959)
(define KEY_Greek_PHI 2006)
(define KEY_Greek_PI 2000)
(define KEY_Greek_PSI 2008)
(define KEY_Greek_RHO 2001)
(define KEY_Greek_SIGMA 2002)
(define KEY_Greek_TAU 2004)
(define KEY_Greek_THETA 1992)
(define KEY_Greek_UPSILON 2005)
(define KEY_Greek_UPSILONaccent 1960)
(define KEY_Greek_UPSILONdieresis 1961)
(define KEY_Greek_XI 1998)
(define KEY_Greek_ZETA 1990)
(define KEY_Greek_accentdieresis 1966)
(define KEY_Greek_alpha 2017)
(define KEY_Greek_alphaaccent 1969)
(define KEY_Greek_beta 2018)
(define KEY_Greek_chi 2039)
(define KEY_Greek_delta 2020)
(define KEY_Greek_epsilon 2021)
(define KEY_Greek_epsilonaccent 1970)
(define KEY_Greek_eta 2023)
(define KEY_Greek_etaaccent 1971)
(define KEY_Greek_finalsmallsigma 2035)
(define KEY_Greek_gamma 2019)
(define KEY_Greek_horizbar 1967)
(define KEY_Greek_iota 2025)
(define KEY_Greek_iotaaccent 1972)
(define KEY_Greek_iotaaccentdieresis 1974)
(define KEY_Greek_iotadieresis 1973)
(define KEY_Greek_kappa 2026)
(define KEY_Greek_lambda 2027)
(define KEY_Greek_lamda 2027)
(define KEY_Greek_mu 2028)
(define KEY_Greek_nu 2029)
(define KEY_Greek_omega 2041)
(define KEY_Greek_omegaaccent 1979)
(define KEY_Greek_omicron 2031)
(define KEY_Greek_omicronaccent 1975)
(define KEY_Greek_phi 2038)
(define KEY_Greek_pi 2032)
(define KEY_Greek_psi 2040)
(define KEY_Greek_rho 2033)
(define KEY_Greek_sigma 2034)
(define KEY_Greek_switch 65406)
(define KEY_Greek_tau 2036)
(define KEY_Greek_theta 2024)
(define KEY_Greek_upsilon 2037)
(define KEY_Greek_upsilonaccent 1976)
(define KEY_Greek_upsilonaccentdieresis 1978)
(define KEY_Greek_upsilondieresis 1977)
(define KEY_Greek_xi 2030)
(define KEY_Greek_zeta 2022)
(define KEY_Green 269025188)
(define KEY_H 72)
(define KEY_Hangul 65329)
(define KEY_Hangul_A 3775)
(define KEY_Hangul_AE 3776)
(define KEY_Hangul_AraeA 3830)
(define KEY_Hangul_AraeAE 3831)
(define KEY_Hangul_Banja 65337)
(define KEY_Hangul_Cieuc 3770)
(define KEY_Hangul_Codeinput 65335)
(define KEY_Hangul_Dikeud 3751)
(define KEY_Hangul_E 3780)
(define KEY_Hangul_EO 3779)
(define KEY_Hangul_EU 3793)
(define KEY_Hangul_End 65331)
(define KEY_Hangul_Hanja 65332)
(define KEY_Hangul_Hieuh 3774)
(define KEY_Hangul_I 3795)
(define KEY_Hangul_Ieung 3767)
(define KEY_Hangul_J_Cieuc 3818)
(define KEY_Hangul_J_Dikeud 3802)
(define KEY_Hangul_J_Hieuh 3822)
(define KEY_Hangul_J_Ieung 3816)
(define KEY_Hangul_J_Jieuj 3817)
(define KEY_Hangul_J_Khieuq 3819)
(define KEY_Hangul_J_Kiyeog 3796)
(define KEY_Hangul_J_KiyeogSios 3798)
(define KEY_Hangul_J_KkogjiDalrinIeung 3833)
(define KEY_Hangul_J_Mieum 3811)
(define KEY_Hangul_J_Nieun 3799)
(define KEY_Hangul_J_NieunHieuh 3801)
(define KEY_Hangul_J_NieunJieuj 3800)
(define KEY_Hangul_J_PanSios 3832)
(define KEY_Hangul_J_Phieuf 3821)
(define KEY_Hangul_J_Pieub 3812)
(define KEY_Hangul_J_PieubSios 3813)
(define KEY_Hangul_J_Rieul 3803)
(define KEY_Hangul_J_RieulHieuh 3810)
(define KEY_Hangul_J_RieulKiyeog 3804)
(define KEY_Hangul_J_RieulMieum 3805)
(define KEY_Hangul_J_RieulPhieuf 3809)
(define KEY_Hangul_J_RieulPieub 3806)
(define KEY_Hangul_J_RieulSios 3807)
(define KEY_Hangul_J_RieulTieut 3808)
(define KEY_Hangul_J_Sios 3814)
(define KEY_Hangul_J_SsangKiyeog 3797)
(define KEY_Hangul_J_SsangSios 3815)
(define KEY_Hangul_J_Tieut 3820)
(define KEY_Hangul_J_YeorinHieuh 3834)
(define KEY_Hangul_Jamo 65333)
(define KEY_Hangul_Jeonja 65336)
(define KEY_Hangul_Jieuj 3768)
(define KEY_Hangul_Khieuq 3771)
(define KEY_Hangul_Kiyeog 3745)
(define KEY_Hangul_KiyeogSios 3747)
(define KEY_Hangul_KkogjiDalrinIeung 3827)
(define KEY_Hangul_Mieum 3761)
(define KEY_Hangul_MultipleCandidate 65341)
(define KEY_Hangul_Nieun 3748)
(define KEY_Hangul_NieunHieuh 3750)
(define KEY_Hangul_NieunJieuj 3749)
(define KEY_Hangul_O 3783)
(define KEY_Hangul_OE 3786)
(define KEY_Hangul_PanSios 3826)
(define KEY_Hangul_Phieuf 3773)
(define KEY_Hangul_Pieub 3762)
(define KEY_Hangul_PieubSios 3764)
(define KEY_Hangul_PostHanja 65339)
(define KEY_Hangul_PreHanja 65338)
(define KEY_Hangul_PreviousCandidate 65342)
(define KEY_Hangul_Rieul 3753)
(define KEY_Hangul_RieulHieuh 3760)
(define KEY_Hangul_RieulKiyeog 3754)
(define KEY_Hangul_RieulMieum 3755)
(define KEY_Hangul_RieulPhieuf 3759)
(define KEY_Hangul_RieulPieub 3756)
(define KEY_Hangul_RieulSios 3757)
(define KEY_Hangul_RieulTieut 3758)
(define KEY_Hangul_RieulYeorinHieuh 3823)
(define KEY_Hangul_Romaja 65334)
(define KEY_Hangul_SingleCandidate 65340)
(define KEY_Hangul_Sios 3765)
(define KEY_Hangul_Special 65343)
(define KEY_Hangul_SsangDikeud 3752)
(define KEY_Hangul_SsangJieuj 3769)
(define KEY_Hangul_SsangKiyeog 3746)
(define KEY_Hangul_SsangPieub 3763)
(define KEY_Hangul_SsangSios 3766)
(define KEY_Hangul_Start 65330)
(define KEY_Hangul_SunkyeongeumMieum 3824)
(define KEY_Hangul_SunkyeongeumPhieuf 3828)
(define KEY_Hangul_SunkyeongeumPieub 3825)
(define KEY_Hangul_Tieut 3772)
(define KEY_Hangul_U 3788)
(define KEY_Hangul_WA 3784)
(define KEY_Hangul_WAE 3785)
(define KEY_Hangul_WE 3790)
(define KEY_Hangul_WEO 3789)
(define KEY_Hangul_WI 3791)
(define KEY_Hangul_YA 3777)
(define KEY_Hangul_YAE 3778)
(define KEY_Hangul_YE 3782)
(define KEY_Hangul_YEO 3781)
(define KEY_Hangul_YI 3794)
(define KEY_Hangul_YO 3787)
(define KEY_Hangul_YU 3792)
(define KEY_Hangul_YeorinHieuh 3829)
(define KEY_Hangul_switch 65406)
(define KEY_Hankaku 65321)
(define KEY_Hcircumflex 678)
(define KEY_Hebrew_switch 65406)
(define KEY_Help 65386)
(define KEY_Henkan 65315)
(define KEY_Henkan_Mode 65315)
(define KEY_Hibernate 269025192)
(define KEY_Hiragana 65317)
(define KEY_Hiragana_Katakana 65319)
(define KEY_History 269025079)
(define KEY_Home 65360)
(define KEY_HomePage 269025048)
(define KEY_HotLinks 269025082)
(define KEY_Hstroke 673)
(define KEY_Hyper_L 65517)
(define KEY_Hyper_R 65518)
(define KEY_I 73)
(define KEY_ISO_Center_Object 65075)
(define KEY_ISO_Continuous_Underline 65072)
(define KEY_ISO_Discontinuous_Underline 65073)
(define KEY_ISO_Emphasize 65074)
(define KEY_ISO_Enter 65076)
(define KEY_ISO_Fast_Cursor_Down 65071)
(define KEY_ISO_Fast_Cursor_Left 65068)
(define KEY_ISO_Fast_Cursor_Right 65069)
(define KEY_ISO_Fast_Cursor_Up 65070)
(define KEY_ISO_First_Group 65036)
(define KEY_ISO_First_Group_Lock 65037)
(define KEY_ISO_Group_Latch 65030)
(define KEY_ISO_Group_Lock 65031)
(define KEY_ISO_Group_Shift 65406)
(define KEY_ISO_Last_Group 65038)
(define KEY_ISO_Last_Group_Lock 65039)
(define KEY_ISO_Left_Tab 65056)
(define KEY_ISO_Level2_Latch 65026)
(define KEY_ISO_Level3_Latch 65028)
(define KEY_ISO_Level3_Lock 65029)
(define KEY_ISO_Level3_Shift 65027)
(define KEY_ISO_Level5_Latch 65042)
(define KEY_ISO_Level5_Lock 65043)
(define KEY_ISO_Level5_Shift 65041)
(define KEY_ISO_Lock 65025)
(define KEY_ISO_Move_Line_Down 65058)
(define KEY_ISO_Move_Line_Up 65057)
(define KEY_ISO_Next_Group 65032)
(define KEY_ISO_Next_Group_Lock 65033)
(define KEY_ISO_Partial_Line_Down 65060)
(define KEY_ISO_Partial_Line_Up 65059)
(define KEY_ISO_Partial_Space_Left 65061)
(define KEY_ISO_Partial_Space_Right 65062)
(define KEY_ISO_Prev_Group 65034)
(define KEY_ISO_Prev_Group_Lock 65035)
(define KEY_ISO_Release_Both_Margins 65067)
(define KEY_ISO_Release_Margin_Left 65065)
(define KEY_ISO_Release_Margin_Right 65066)
(define KEY_ISO_Set_Margin_Left 65063)
(define KEY_ISO_Set_Margin_Right 65064)
(define KEY_Iabovedot 681)
(define KEY_Iacute 205)
(define KEY_Ibelowdot 16785098)
(define KEY_Ibreve 16777516)
(define KEY_Icircumflex 206)
(define KEY_Idiaeresis 207)
(define KEY_Igrave 204)
(define KEY_Ihook 16785096)
(define KEY_Imacron 975)
(define KEY_Insert 65379)
(define KEY_Iogonek 967)
(define KEY_Itilde 933)
(define KEY_J 74)
(define KEY_Jcircumflex 684)
(define KEY_K 75)
(define KEY_KP_0 65456)
(define KEY_KP_1 65457)
(define KEY_KP_2 65458)
(define KEY_KP_3 65459)
(define KEY_KP_4 65460)
(define KEY_KP_5 65461)
(define KEY_KP_6 65462)
(define KEY_KP_7 65463)
(define KEY_KP_8 65464)
(define KEY_KP_9 65465)
(define KEY_KP_Add 65451)
(define KEY_KP_Begin 65437)
(define KEY_KP_Decimal 65454)
(define KEY_KP_Delete 65439)
(define KEY_KP_Divide 65455)
(define KEY_KP_Down 65433)
(define KEY_KP_End 65436)
(define KEY_KP_Enter 65421)
(define KEY_KP_Equal 65469)
(define KEY_KP_F1 65425)
(define KEY_KP_F2 65426)
(define KEY_KP_F3 65427)
(define KEY_KP_F4 65428)
(define KEY_KP_Home 65429)
(define KEY_KP_Insert 65438)
(define KEY_KP_Left 65430)
(define KEY_KP_Multiply 65450)
(define KEY_KP_Next 65435)
(define KEY_KP_Page_Down 65435)
(define KEY_KP_Page_Up 65434)
(define KEY_KP_Prior 65434)
(define KEY_KP_Right 65432)
(define KEY_KP_Separator 65452)
(define KEY_KP_Space 65408)
(define KEY_KP_Subtract 65453)
(define KEY_KP_Tab 65417)
(define KEY_KP_Up 65431)
(define KEY_Kana_Lock 65325)
(define KEY_Kana_Shift 65326)
(define KEY_Kanji 65313)
(define KEY_Kanji_Bangou 65335)
(define KEY_Katakana 65318)
(define KEY_KbdBrightnessDown 269025030)
(define KEY_KbdBrightnessUp 269025029)
(define KEY_KbdLightOnOff 269025028)
(define KEY_Kcedilla 979)
(define KEY_Korean_Won 3839)
(define KEY_L 76)
(define KEY_L1 65480)
(define KEY_L10 65489)
(define KEY_L2 65481)
(define KEY_L3 65482)
(define KEY_L4 65483)
(define KEY_L5 65484)
(define KEY_L6 65485)
(define KEY_L7 65486)
(define KEY_L8 65487)
(define KEY_L9 65488)
(define KEY_Lacute 453)
(define KEY_Last_Virtual_Screen 65236)
(define KEY_Launch0 269025088)
(define KEY_Launch1 269025089)
(define KEY_Launch2 269025090)
(define KEY_Launch3 269025091)
(define KEY_Launch4 269025092)
(define KEY_Launch5 269025093)
(define KEY_Launch6 269025094)
(define KEY_Launch7 269025095)
(define KEY_Launch8 269025096)
(define KEY_Launch9 269025097)
(define KEY_LaunchA 269025098)
(define KEY_LaunchB 269025099)
(define KEY_LaunchC 269025100)
(define KEY_LaunchD 269025101)
(define KEY_LaunchE 269025102)
(define KEY_LaunchF 269025103)
(define KEY_Lbelowdot 16784950)
(define KEY_Lcaron 421)
(define KEY_Lcedilla 934)
(define KEY_Left 65361)
(define KEY_LightBulb 269025077)
(define KEY_Linefeed 65290)
(define KEY_LiraSign 16785572)
(define KEY_LogGrabInfo 269024805)
(define KEY_LogOff 269025121)
(define KEY_LogWindowTree 269024804)
(define KEY_Lstroke 419)
(define KEY_M 77)
(define KEY_Mabovedot 16784960)
(define KEY_Macedonia_DSE 1717)
(define KEY_Macedonia_GJE 1714)
(define KEY_Macedonia_KJE 1724)
(define KEY_Macedonia_dse 1701)
(define KEY_Macedonia_gje 1698)
(define KEY_Macedonia_kje 1708)
(define KEY_Mae_Koho 65342)
(define KEY_Mail 269025049)
(define KEY_MailForward 269025168)
(define KEY_Market 269025122)
(define KEY_Massyo 65324)
(define KEY_Meeting 269025123)
(define KEY_Memo 269025054)
(define KEY_Menu 65383)
(define KEY_MenuKB 269025125)
(define KEY_MenuPB 269025126)
(define KEY_Messenger 269025166)
(define KEY_Meta_L 65511)
(define KEY_Meta_R 65512)
(define KEY_MillSign 16785573)
(define KEY_ModeLock 269025025)
(define KEY_Mode_switch 65406)
(define KEY_MonBrightnessDown 269025027)
(define KEY_MonBrightnessUp 269025026)
(define KEY_MouseKeys_Accel_Enable 65143)
(define KEY_MouseKeys_Enable 65142)
(define KEY_Muhenkan 65314)
(define KEY_Multi_key 65312)
(define KEY_MultipleCandidate 65341)
(define KEY_Music 269025170)
(define KEY_MyComputer 269025075)
(define KEY_MySites 269025127)
(define KEY_N 78)
(define KEY_Nacute 465)
(define KEY_NairaSign 16785574)
(define KEY_Ncaron 466)
(define KEY_Ncedilla 977)
(define KEY_New 269025128)
(define KEY_NewSheqelSign 16785578)
(define KEY_News 269025129)
(define KEY_Next 65366)
(define KEY_Next_VMode 269024802)
(define KEY_Next_Virtual_Screen 65234)
(define KEY_Ntilde 209)
(define KEY_Num_Lock 65407)
(define KEY_O 79)
(define KEY_OE 5052)
(define KEY_Oacute 211)
(define KEY_Obarred 16777631)
(define KEY_Obelowdot 16785100)
(define KEY_Ocaron 16777681)
(define KEY_Ocircumflex 212)
(define KEY_Ocircumflexacute 16785104)
(define KEY_Ocircumflexbelowdot 16785112)
(define KEY_Ocircumflexgrave 16785106)
(define KEY_Ocircumflexhook 16785108)
(define KEY_Ocircumflextilde 16785110)
(define KEY_Odiaeresis 214)
(define KEY_Odoubleacute 469)
(define KEY_OfficeHome 269025130)
(define KEY_Ograve 210)
(define KEY_Ohook 16785102)
(define KEY_Ohorn 16777632)
(define KEY_Ohornacute 16785114)
(define KEY_Ohornbelowdot 16785122)
(define KEY_Ohorngrave 16785116)
(define KEY_Ohornhook 16785118)
(define KEY_Ohorntilde 16785120)
(define KEY_Omacron 978)
(define KEY_Ooblique 216)
(define KEY_Open 269025131)
(define KEY_OpenURL 269025080)
(define KEY_Option 269025132)
(define KEY_Oslash 216)
(define KEY_Otilde 213)
(define KEY_Overlay1_Enable 65144)
(define KEY_Overlay2_Enable 65145)
(define KEY_P 80)
(define KEY_Pabovedot 16784982)
(define KEY_Page_Down 65366)
(define KEY_Page_Up 65365)
(define KEY_Paste 269025133)
(define KEY_Pause 65299)
(define KEY_PesetaSign 16785575)
(define KEY_Phone 269025134)
(define KEY_Pictures 269025169)
(define KEY_Pointer_Accelerate 65274)
(define KEY_Pointer_Button1 65257)
(define KEY_Pointer_Button2 65258)
(define KEY_Pointer_Button3 65259)
(define KEY_Pointer_Button4 65260)
(define KEY_Pointer_Button5 65261)
(define KEY_Pointer_Button_Dflt 65256)
(define KEY_Pointer_DblClick1 65263)
(define KEY_Pointer_DblClick2 65264)
(define KEY_Pointer_DblClick3 65265)
(define KEY_Pointer_DblClick4 65266)
(define KEY_Pointer_DblClick5 65267)
(define KEY_Pointer_DblClick_Dflt 65262)
(define KEY_Pointer_DfltBtnNext 65275)
(define KEY_Pointer_DfltBtnPrev 65276)
(define KEY_Pointer_Down 65251)
(define KEY_Pointer_DownLeft 65254)
(define KEY_Pointer_DownRight 65255)
(define KEY_Pointer_Drag1 65269)
(define KEY_Pointer_Drag2 65270)
(define KEY_Pointer_Drag3 65271)
(define KEY_Pointer_Drag4 65272)
(define KEY_Pointer_Drag5 65277)
(define KEY_Pointer_Drag_Dflt 65268)
(define KEY_Pointer_EnableKeys 65273)
(define KEY_Pointer_Left 65248)
(define KEY_Pointer_Right 65249)
(define KEY_Pointer_Up 65250)
(define KEY_Pointer_UpLeft 65252)
(define KEY_Pointer_UpRight 65253)
(define KEY_PowerDown 269025057)
(define KEY_PowerOff 269025066)
(define KEY_Prev_VMode 269024803)
(define KEY_Prev_Virtual_Screen 65233)
(define KEY_PreviousCandidate 65342)
(define KEY_Print 65377)
(define KEY_Prior 65365)
(define KEY_Q 81)
(define KEY_R 82)
(define KEY_R1 65490)
(define KEY_R10 65499)
(define KEY_R11 65500)
(define KEY_R12 65501)
(define KEY_R13 65502)
(define KEY_R14 65503)
(define KEY_R15 65504)
(define KEY_R2 65491)
(define KEY_R3 65492)
(define KEY_R4 65493)
(define KEY_R5 65494)
(define KEY_R6 65495)
(define KEY_R7 65496)
(define KEY_R8 65497)
(define KEY_R9 65498)
(define KEY_Racute 448)
(define KEY_Rcaron 472)
(define KEY_Rcedilla 931)
(define KEY_Red 269025187)
(define KEY_Redo 65382)
(define KEY_Refresh 269025065)
(define KEY_Reload 269025139)
(define KEY_RepeatKeys_Enable 65138)
(define KEY_Reply 269025138)
(define KEY_Return 65293)
(define KEY_Right 65363)
(define KEY_RockerDown 269025060)
(define KEY_RockerEnter 269025061)
(define KEY_RockerUp 269025059)
(define KEY_Romaji 65316)
(define KEY_RotateWindows 269025140)
(define KEY_RotationKB 269025142)
(define KEY_RotationPB 269025141)
(define KEY_RupeeSign 16785576)
(define KEY_S 83)
(define KEY_SCHWA 16777615)
(define KEY_Sabovedot 16784992)
(define KEY_Sacute 422)
(define KEY_Save 269025143)
(define KEY_Scaron 425)
(define KEY_Scedilla 426)
(define KEY_Scircumflex 734)
(define KEY_ScreenSaver 269025069)
(define KEY_ScrollClick 269025146)
(define KEY_ScrollDown 269025145)
(define KEY_ScrollUp 269025144)
(define KEY_Scroll_Lock 65300)
(define KEY_Search 269025051)
(define KEY_Select 65376)
(define KEY_SelectButton 269025184)
(define KEY_Send 269025147)
(define KEY_Serbian_DJE 1713)
(define KEY_Serbian_DZE 1727)
(define KEY_Serbian_JE 1720)
(define KEY_Serbian_LJE 1721)
(define KEY_Serbian_NJE 1722)
(define KEY_Serbian_TSHE 1723)
(define KEY_Serbian_dje 1697)
(define KEY_Serbian_dze 1711)
(define KEY_Serbian_je 1704)
(define KEY_Serbian_lje 1705)
(define KEY_Serbian_nje 1706)
(define KEY_Serbian_tshe 1707)
(define KEY_Shift_L 65505)
(define KEY_Shift_Lock 65510)
(define KEY_Shift_R 65506)
(define KEY_Shop 269025078)
(define KEY_SingleCandidate 65340)
(define KEY_Sinh_a 16780677)
(define KEY_Sinh_aa 16780678)
(define KEY_Sinh_aa2 16780751)
(define KEY_Sinh_ae 16780679)
(define KEY_Sinh_ae2 16780752)
(define KEY_Sinh_aee 16780680)
(define KEY_Sinh_aee2 16780753)
(define KEY_Sinh_ai 16780691)
(define KEY_Sinh_ai2 16780763)
(define KEY_Sinh_al 16780746)
(define KEY_Sinh_au 16780694)
(define KEY_Sinh_au2 16780766)
(define KEY_Sinh_ba 16780726)
(define KEY_Sinh_bha 16780727)
(define KEY_Sinh_ca 16780704)
(define KEY_Sinh_cha 16780705)
(define KEY_Sinh_dda 16780713)
(define KEY_Sinh_ddha 16780714)
(define KEY_Sinh_dha 16780719)
(define KEY_Sinh_dhha 16780720)
(define KEY_Sinh_e 16780689)
(define KEY_Sinh_e2 16780761)
(define KEY_Sinh_ee 16780690)
(define KEY_Sinh_ee2 16780762)
(define KEY_Sinh_fa 16780742)
(define KEY_Sinh_ga 16780700)
(define KEY_Sinh_gha 16780701)
(define KEY_Sinh_h2 16780675)
(define KEY_Sinh_ha 16780740)
(define KEY_Sinh_i 16780681)
(define KEY_Sinh_i2 16780754)
(define KEY_Sinh_ii 16780682)
(define KEY_Sinh_ii2 16780755)
(define KEY_Sinh_ja 16780706)
(define KEY_Sinh_jha 16780707)
(define KEY_Sinh_jnya 16780709)
(define KEY_Sinh_ka 16780698)
(define KEY_Sinh_kha 16780699)
(define KEY_Sinh_kunddaliya 16780788)
(define KEY_Sinh_la 16780733)
(define KEY_Sinh_lla 16780741)
(define KEY_Sinh_lu 16780687)
(define KEY_Sinh_lu2 16780767)
(define KEY_Sinh_luu 16780688)
(define KEY_Sinh_luu2 16780787)
(define KEY_Sinh_ma 16780728)
(define KEY_Sinh_mba 16780729)
(define KEY_Sinh_na 16780721)
(define KEY_Sinh_ndda 16780716)
(define KEY_Sinh_ndha 16780723)
(define KEY_Sinh_ng 16780674)
(define KEY_Sinh_ng2 16780702)
(define KEY_Sinh_nga 16780703)
(define KEY_Sinh_nja 16780710)
(define KEY_Sinh_nna 16780715)
(define KEY_Sinh_nya 16780708)
(define KEY_Sinh_o 16780692)
(define KEY_Sinh_o2 16780764)
(define KEY_Sinh_oo 16780693)
(define KEY_Sinh_oo2 16780765)
(define KEY_Sinh_pa 16780724)
(define KEY_Sinh_pha 16780725)
(define KEY_Sinh_ra 16780731)
(define KEY_Sinh_ri 16780685)
(define KEY_Sinh_rii 16780686)
(define KEY_Sinh_ru2 16780760)
(define KEY_Sinh_ruu2 16780786)
(define KEY_Sinh_sa 16780739)
(define KEY_Sinh_sha 16780737)
(define KEY_Sinh_ssha 16780738)
(define KEY_Sinh_tha 16780717)
(define KEY_Sinh_thha 16780718)
(define KEY_Sinh_tta 16780711)
(define KEY_Sinh_ttha 16780712)
(define KEY_Sinh_u 16780683)
(define KEY_Sinh_u2 16780756)
(define KEY_Sinh_uu 16780684)
(define KEY_Sinh_uu2 16780758)
(define KEY_Sinh_va 16780736)
(define KEY_Sinh_ya 16780730)
(define KEY_Sleep 269025071)
(define KEY_SlowKeys_Enable 65139)
(define KEY_Spell 269025148)
(define KEY_SplitScreen 269025149)
(define KEY_Standby 269025040)
(define KEY_Start 269025050)
(define KEY_StickyKeys_Enable 65141)
(define KEY_Stop 269025064)
(define KEY_Subtitle 269025178)
(define KEY_Super_L 65515)
(define KEY_Super_R 65516)
(define KEY_Support 269025150)
(define KEY_Suspend 269025191)
(define KEY_Switch_VT_1 269024769)
(define KEY_Switch_VT_10 269024778)
(define KEY_Switch_VT_11 269024779)
(define KEY_Switch_VT_12 269024780)
(define KEY_Switch_VT_2 269024770)
(define KEY_Switch_VT_3 269024771)
(define KEY_Switch_VT_4 269024772)
(define KEY_Switch_VT_5 269024773)
(define KEY_Switch_VT_6 269024774)
(define KEY_Switch_VT_7 269024775)
(define KEY_Switch_VT_8 269024776)
(define KEY_Switch_VT_9 269024777)
(define KEY_Sys_Req 65301)
(define KEY_T 84)
(define KEY_THORN 222)
(define KEY_Tab 65289)
(define KEY_Tabovedot 16785002)
(define KEY_TaskPane 269025151)
(define KEY_Tcaron 427)
(define KEY_Tcedilla 478)
(define KEY_Terminal 269025152)
(define KEY_Terminate_Server 65237)
(define KEY_Thai_baht 3551)
(define KEY_Thai_bobaimai 3514)
(define KEY_Thai_chochan 3496)
(define KEY_Thai_chochang 3498)
(define KEY_Thai_choching 3497)
(define KEY_Thai_chochoe 3500)
(define KEY_Thai_dochada 3502)
(define KEY_Thai_dodek 3508)
(define KEY_Thai_fofa 3517)
(define KEY_Thai_fofan 3519)
(define KEY_Thai_hohip 3531)
(define KEY_Thai_honokhuk 3534)
(define KEY_Thai_khokhai 3490)
(define KEY_Thai_khokhon 3493)
(define KEY_Thai_khokhuat 3491)
(define KEY_Thai_khokhwai 3492)
(define KEY_Thai_khorakhang 3494)
(define KEY_Thai_kokai 3489)
(define KEY_Thai_lakkhangyao 3557)
(define KEY_Thai_lekchet 3575)
(define KEY_Thai_lekha 3573)
(define KEY_Thai_lekhok 3574)
(define KEY_Thai_lekkao 3577)
(define KEY_Thai_leknung 3569)
(define KEY_Thai_lekpaet 3576)
(define KEY_Thai_leksam 3571)
(define KEY_Thai_leksi 3572)
(define KEY_Thai_leksong 3570)
(define KEY_Thai_leksun 3568)
(define KEY_Thai_lochula 3532)
(define KEY_Thai_loling 3525)
(define KEY_Thai_lu 3526)
(define KEY_Thai_maichattawa 3563)
(define KEY_Thai_maiek 3560)
(define KEY_Thai_maihanakat 3537)
(define KEY_Thai_maihanakat_maitho 3550)
(define KEY_Thai_maitaikhu 3559)
(define KEY_Thai_maitho 3561)
(define KEY_Thai_maitri 3562)
(define KEY_Thai_maiyamok 3558)
(define KEY_Thai_moma 3521)
(define KEY_Thai_ngongu 3495)
(define KEY_Thai_nikhahit 3565)
(define KEY_Thai_nonen 3507)
(define KEY_Thai_nonu 3513)
(define KEY_Thai_oang 3533)
(define KEY_Thai_paiyannoi 3535)
(define KEY_Thai_phinthu 3546)
(define KEY_Thai_phophan 3518)
(define KEY_Thai_phophung 3516)
(define KEY_Thai_phosamphao 3520)
(define KEY_Thai_popla 3515)
(define KEY_Thai_rorua 3523)
(define KEY_Thai_ru 3524)
(define KEY_Thai_saraa 3536)
(define KEY_Thai_saraaa 3538)
(define KEY_Thai_saraae 3553)
(define KEY_Thai_saraaimaimalai 3556)
(define KEY_Thai_saraaimaimuan 3555)
(define KEY_Thai_saraam 3539)
(define KEY_Thai_sarae 3552)
(define KEY_Thai_sarai 3540)
(define KEY_Thai_saraii 3541)
(define KEY_Thai_sarao 3554)
(define KEY_Thai_sarau 3544)
(define KEY_Thai_saraue 3542)
(define KEY_Thai_sarauee 3543)
(define KEY_Thai_sarauu 3545)
(define KEY_Thai_sorusi 3529)
(define KEY_Thai_sosala 3528)
(define KEY_Thai_soso 3499)
(define KEY_Thai_sosua 3530)
(define KEY_Thai_thanthakhat 3564)
(define KEY_Thai_thonangmontho 3505)
(define KEY_Thai_thophuthao 3506)
(define KEY_Thai_thothahan 3511)
(define KEY_Thai_thothan 3504)
(define KEY_Thai_thothong 3512)
(define KEY_Thai_thothung 3510)
(define KEY_Thai_topatak 3503)
(define KEY_Thai_totao 3509)
(define KEY_Thai_wowaen 3527)
(define KEY_Thai_yoyak 3522)
(define KEY_Thai_yoying 3501)
(define KEY_Thorn 222)
(define KEY_Time 269025183)
(define KEY_ToDoList 269025055)
(define KEY_Tools 269025153)
(define KEY_TopMenu 269025186)
(define KEY_TouchpadOff 269025201)
(define KEY_TouchpadOn 269025200)
(define KEY_TouchpadToggle 269025193)
(define KEY_Touroku 65323)
(define KEY_Travel 269025154)
(define KEY_Tslash 940)
(define KEY_U 85)
(define KEY_UWB 269025174)
(define KEY_Uacute 218)
(define KEY_Ubelowdot 16785124)
(define KEY_Ubreve 733)
(define KEY_Ucircumflex 219)
(define KEY_Udiaeresis 220)
(define KEY_Udoubleacute 475)
(define KEY_Ugrave 217)
(define KEY_Uhook 16785126)
(define KEY_Uhorn 16777647)
(define KEY_Uhornacute 16785128)
(define KEY_Uhornbelowdot 16785136)
(define KEY_Uhorngrave 16785130)
(define KEY_Uhornhook 16785132)
(define KEY_Uhorntilde 16785134)
(define KEY_Ukrainian_GHE_WITH_UPTURN 1725)
(define KEY_Ukrainian_I 1718)
(define KEY_Ukrainian_IE 1716)
(define KEY_Ukrainian_YI 1719)
(define KEY_Ukrainian_ghe_with_upturn 1709)
(define KEY_Ukrainian_i 1702)
(define KEY_Ukrainian_ie 1700)
(define KEY_Ukrainian_yi 1703)
(define KEY_Ukranian_I 1718)
(define KEY_Ukranian_JE 1716)
(define KEY_Ukranian_YI 1719)
(define KEY_Ukranian_i 1702)
(define KEY_Ukranian_je 1700)
(define KEY_Ukranian_yi 1703)
(define KEY_Umacron 990)
(define KEY_Undo 65381)
(define KEY_Ungrab 269024800)
(define KEY_Uogonek 985)
(define KEY_Up 65362)
(define KEY_Uring 473)
(define KEY_User1KB 269025157)
(define KEY_User2KB 269025158)
(define KEY_UserPB 269025156)
(define KEY_Utilde 989)
(define KEY_V 86)
(define KEY_VendorHome 269025076)
(define KEY_Video 269025159)
(define KEY_View 269025185)
(define KEY_VoidSymbol 16777215)
(define KEY_W 87)
(define KEY_WLAN 269025173)
(define KEY_WWW 269025070)
(define KEY_Wacute 16785026)
(define KEY_WakeUp 269025067)
(define KEY_Wcircumflex 16777588)
(define KEY_Wdiaeresis 16785028)
(define KEY_WebCam 269025167)
(define KEY_Wgrave 16785024)
(define KEY_WheelButton 269025160)
(define KEY_WindowClear 269025109)
(define KEY_WonSign 16785577)
(define KEY_Word 269025161)
(define KEY_X 88)
(define KEY_Xabovedot 16785034)
(define KEY_Xfer 269025162)
(define KEY_Y 89)
(define KEY_Yacute 221)
(define KEY_Ybelowdot 16785140)
(define KEY_Ycircumflex 16777590)
(define KEY_Ydiaeresis 5054)
(define KEY_Yellow 269025189)
(define KEY_Ygrave 16785138)
(define KEY_Yhook 16785142)
(define KEY_Ytilde 16785144)
(define KEY_Z 90)
(define KEY_Zabovedot 431)
(define KEY_Zacute 428)
(define KEY_Zcaron 430)
(define KEY_Zen_Koho 65341)
(define KEY_Zenkaku 65320)
(define KEY_Zenkaku_Hankaku 65322)
(define KEY_ZoomIn 269025163)
(define KEY_ZoomOut 269025164)
(define KEY_Zstroke 16777653)
(define KEY_a 97)
(define KEY_aacute 225)
(define KEY_abelowdot 16785057)
(define KEY_abovedot 511)
(define KEY_abreve 483)
(define KEY_abreveacute 16785071)
(define KEY_abrevebelowdot 16785079)
(define KEY_abrevegrave 16785073)
(define KEY_abrevehook 16785075)
(define KEY_abrevetilde 16785077)
(define KEY_acircumflex 226)
(define KEY_acircumflexacute 16785061)
(define KEY_acircumflexbelowdot 16785069)
(define KEY_acircumflexgrave 16785063)
(define KEY_acircumflexhook 16785065)
(define KEY_acircumflextilde 16785067)
(define KEY_acute 180)
(define KEY_adiaeresis 228)
(define KEY_ae 230)
(define KEY_agrave 224)
(define KEY_ahook 16785059)
(define KEY_amacron 992)
(define KEY_ampersand 38)
(define KEY_aogonek 433)
(define KEY_apostrophe 39)
(define KEY_approxeq 16785992)
(define KEY_approximate 2248)
(define KEY_aring 229)
(define KEY_asciicircum 94)
(define KEY_asciitilde 126)
(define KEY_asterisk 42)
(define KEY_at 64)
(define KEY_atilde 227)
(define KEY_b 98)
(define KEY_babovedot 16784899)
(define KEY_backslash 92)
(define KEY_ballotcross 2804)
(define KEY_bar 124)
(define KEY_because 16785973)
(define KEY_blank 2527)
(define KEY_botintegral 2213)
(define KEY_botleftparens 2220)
(define KEY_botleftsqbracket 2216)
(define KEY_botleftsummation 2226)
(define KEY_botrightparens 2222)
(define KEY_botrightsqbracket 2218)
(define KEY_botrightsummation 2230)
(define KEY_bott 2550)
(define KEY_botvertsummationconnector 2228)
(define KEY_braceleft 123)
(define KEY_braceright 125)
(define KEY_bracketleft 91)
(define KEY_bracketright 93)
(define KEY_braille_blank 16787456)
(define KEY_braille_dot_1 65521)
(define KEY_braille_dot_10 65530)
(define KEY_braille_dot_2 65522)
(define KEY_braille_dot_3 65523)
(define KEY_braille_dot_4 65524)
(define KEY_braille_dot_5 65525)
(define KEY_braille_dot_6 65526)
(define KEY_braille_dot_7 65527)
(define KEY_braille_dot_8 65528)
(define KEY_braille_dot_9 65529)
(define KEY_braille_dots_1 16787457)
(define KEY_braille_dots_12 16787459)
(define KEY_braille_dots_123 16787463)
(define KEY_braille_dots_1234 16787471)
(define KEY_braille_dots_12345 16787487)
(define KEY_braille_dots_123456 16787519)
(define KEY_braille_dots_1234567 16787583)
(define KEY_braille_dots_12345678 16787711)
(define KEY_braille_dots_1234568 16787647)
(define KEY_braille_dots_123457 16787551)
(define KEY_braille_dots_1234578 16787679)
(define KEY_braille_dots_123458 16787615)
(define KEY_braille_dots_12346 16787503)
(define KEY_braille_dots_123467 16787567)
(define KEY_braille_dots_1234678 16787695)
(define KEY_braille_dots_123468 16787631)
(define KEY_braille_dots_12347 16787535)
(define KEY_braille_dots_123478 16787663)
(define KEY_braille_dots_12348 16787599)
(define KEY_braille_dots_1235 16787479)
(define KEY_braille_dots_12356 16787511)
(define KEY_braille_dots_123567 16787575)
(define KEY_braille_dots_1235678 16787703)
(define KEY_braille_dots_123568 16787639)
(define KEY_braille_dots_12357 16787543)
(define KEY_braille_dots_123578 16787671)
(define KEY_braille_dots_12358 16787607)
(define KEY_braille_dots_1236 16787495)
(define KEY_braille_dots_12367 16787559)
(define KEY_braille_dots_123678 16787687)
(define KEY_braille_dots_12368 16787623)
(define KEY_braille_dots_1237 16787527)
(define KEY_braille_dots_12378 16787655)
(define KEY_braille_dots_1238 16787591)
(define KEY_braille_dots_124 16787467)
(define KEY_braille_dots_1245 16787483)
(define KEY_braille_dots_12456 16787515)
(define KEY_braille_dots_124567 16787579)
(define KEY_braille_dots_1245678 16787707)
(define KEY_braille_dots_124568 16787643)
(define KEY_braille_dots_12457 16787547)
(define KEY_braille_dots_124578 16787675)
(define KEY_braille_dots_12458 16787611)
(define KEY_braille_dots_1246 16787499)
(define KEY_braille_dots_12467 16787563)
(define KEY_braille_dots_124678 16787691)
(define KEY_braille_dots_12468 16787627)
(define KEY_braille_dots_1247 16787531)
(define KEY_braille_dots_12478 16787659)
(define KEY_braille_dots_1248 16787595)
(define KEY_braille_dots_125 16787475)
(define KEY_braille_dots_1256 16787507)
(define KEY_braille_dots_12567 16787571)
(define KEY_braille_dots_125678 16787699)
(define KEY_braille_dots_12568 16787635)
(define KEY_braille_dots_1257 16787539)
(define KEY_braille_dots_12578 16787667)
(define KEY_braille_dots_1258 16787603)
(define KEY_braille_dots_126 16787491)
(define KEY_braille_dots_1267 16787555)
(define KEY_braille_dots_12678 16787683)
(define KEY_braille_dots_1268 16787619)
(define KEY_braille_dots_127 16787523)
(define KEY_braille_dots_1278 16787651)
(define KEY_braille_dots_128 16787587)
(define KEY_braille_dots_13 16787461)
(define KEY_braille_dots_134 16787469)
(define KEY_braille_dots_1345 16787485)
(define KEY_braille_dots_13456 16787517)
(define KEY_braille_dots_134567 16787581)
(define KEY_braille_dots_1345678 16787709)
(define KEY_braille_dots_134568 16787645)
(define KEY_braille_dots_13457 16787549)
(define KEY_braille_dots_134578 16787677)
(define KEY_braille_dots_13458 16787613)
(define KEY_braille_dots_1346 16787501)
(define KEY_braille_dots_13467 16787565)
(define KEY_braille_dots_134678 16787693)
(define KEY_braille_dots_13468 16787629)
(define KEY_braille_dots_1347 16787533)
(define KEY_braille_dots_13478 16787661)
(define KEY_braille_dots_1348 16787597)
(define KEY_braille_dots_135 16787477)
(define KEY_braille_dots_1356 16787509)
(define KEY_braille_dots_13567 16787573)
(define KEY_braille_dots_135678 16787701)
(define KEY_braille_dots_13568 16787637)
(define KEY_braille_dots_1357 16787541)
(define KEY_braille_dots_13578 16787669)
(define KEY_braille_dots_1358 16787605)
(define KEY_braille_dots_136 16787493)
(define KEY_braille_dots_1367 16787557)
(define KEY_braille_dots_13678 16787685)
(define KEY_braille_dots_1368 16787621)
(define KEY_braille_dots_137 16787525)
(define KEY_braille_dots_1378 16787653)
(define KEY_braille_dots_138 16787589)
(define KEY_braille_dots_14 16787465)
(define KEY_braille_dots_145 16787481)
(define KEY_braille_dots_1456 16787513)
(define KEY_braille_dots_14567 16787577)
(define KEY_braille_dots_145678 16787705)
(define KEY_braille_dots_14568 16787641)
(define KEY_braille_dots_1457 16787545)
(define KEY_braille_dots_14578 16787673)
(define KEY_braille_dots_1458 16787609)
(define KEY_braille_dots_146 16787497)
(define KEY_braille_dots_1467 16787561)
(define KEY_braille_dots_14678 16787689)
(define KEY_braille_dots_1468 16787625)
(define KEY_braille_dots_147 16787529)
(define KEY_braille_dots_1478 16787657)
(define KEY_braille_dots_148 16787593)
(define KEY_braille_dots_15 16787473)
(define KEY_braille_dots_156 16787505)
(define KEY_braille_dots_1567 16787569)
(define KEY_braille_dots_15678 16787697)
(define KEY_braille_dots_1568 16787633)
(define KEY_braille_dots_157 16787537)
(define KEY_braille_dots_1578 16787665)
(define KEY_braille_dots_158 16787601)
(define KEY_braille_dots_16 16787489)
(define KEY_braille_dots_167 16787553)
(define KEY_braille_dots_1678 16787681)
(define KEY_braille_dots_168 16787617)
(define KEY_braille_dots_17 16787521)
(define KEY_braille_dots_178 16787649)
(define KEY_braille_dots_18 16787585)
(define KEY_braille_dots_2 16787458)
(define KEY_braille_dots_23 16787462)
(define KEY_braille_dots_234 16787470)
(define KEY_braille_dots_2345 16787486)
(define KEY_braille_dots_23456 16787518)
(define KEY_braille_dots_234567 16787582)
(define KEY_braille_dots_2345678 16787710)
(define KEY_braille_dots_234568 16787646)
(define KEY_braille_dots_23457 16787550)
(define KEY_braille_dots_234578 16787678)
(define KEY_braille_dots_23458 16787614)
(define KEY_braille_dots_2346 16787502)
(define KEY_braille_dots_23467 16787566)
(define KEY_braille_dots_234678 16787694)
(define KEY_braille_dots_23468 16787630)
(define KEY_braille_dots_2347 16787534)
(define KEY_braille_dots_23478 16787662)
(define KEY_braille_dots_2348 16787598)
(define KEY_braille_dots_235 16787478)
(define KEY_braille_dots_2356 16787510)
(define KEY_braille_dots_23567 16787574)
(define KEY_braille_dots_235678 16787702)
(define KEY_braille_dots_23568 16787638)
(define KEY_braille_dots_2357 16787542)
(define KEY_braille_dots_23578 16787670)
(define KEY_braille_dots_2358 16787606)
(define KEY_braille_dots_236 16787494)
(define KEY_braille_dots_2367 16787558)
(define KEY_braille_dots_23678 16787686)
(define KEY_braille_dots_2368 16787622)
(define KEY_braille_dots_237 16787526)
(define KEY_braille_dots_2378 16787654)
(define KEY_braille_dots_238 16787590)
(define KEY_braille_dots_24 16787466)
(define KEY_braille_dots_245 16787482)
(define KEY_braille_dots_2456 16787514)
(define KEY_braille_dots_24567 16787578)
(define KEY_braille_dots_245678 16787706)
(define KEY_braille_dots_24568 16787642)
(define KEY_braille_dots_2457 16787546)
(define KEY_braille_dots_24578 16787674)
(define KEY_braille_dots_2458 16787610)
(define KEY_braille_dots_246 16787498)
(define KEY_braille_dots_2467 16787562)
(define KEY_braille_dots_24678 16787690)
(define KEY_braille_dots_2468 16787626)
(define KEY_braille_dots_247 16787530)
(define KEY_braille_dots_2478 16787658)
(define KEY_braille_dots_248 16787594)
(define KEY_braille_dots_25 16787474)
(define KEY_braille_dots_256 16787506)
(define KEY_braille_dots_2567 16787570)
(define KEY_braille_dots_25678 16787698)
(define KEY_braille_dots_2568 16787634)
(define KEY_braille_dots_257 16787538)
(define KEY_braille_dots_2578 16787666)
(define KEY_braille_dots_258 16787602)
(define KEY_braille_dots_26 16787490)
(define KEY_braille_dots_267 16787554)
(define KEY_braille_dots_2678 16787682)
(define KEY_braille_dots_268 16787618)
(define KEY_braille_dots_27 16787522)
(define KEY_braille_dots_278 16787650)
(define KEY_braille_dots_28 16787586)
(define KEY_braille_dots_3 16787460)
(define KEY_braille_dots_34 16787468)
(define KEY_braille_dots_345 16787484)
(define KEY_braille_dots_3456 16787516)
(define KEY_braille_dots_34567 16787580)
(define KEY_braille_dots_345678 16787708)
(define KEY_braille_dots_34568 16787644)
(define KEY_braille_dots_3457 16787548)
(define KEY_braille_dots_34578 16787676)
(define KEY_braille_dots_3458 16787612)
(define KEY_braille_dots_346 16787500)
(define KEY_braille_dots_3467 16787564)
(define KEY_braille_dots_34678 16787692)
(define KEY_braille_dots_3468 16787628)
(define KEY_braille_dots_347 16787532)
(define KEY_braille_dots_3478 16787660)
(define KEY_braille_dots_348 16787596)
(define KEY_braille_dots_35 16787476)
(define KEY_braille_dots_356 16787508)
(define KEY_braille_dots_3567 16787572)
(define KEY_braille_dots_35678 16787700)
(define KEY_braille_dots_3568 16787636)
(define KEY_braille_dots_357 16787540)
(define KEY_braille_dots_3578 16787668)
(define KEY_braille_dots_358 16787604)
(define KEY_braille_dots_36 16787492)
(define KEY_braille_dots_367 16787556)
(define KEY_braille_dots_3678 16787684)
(define KEY_braille_dots_368 16787620)
(define KEY_braille_dots_37 16787524)
(define KEY_braille_dots_378 16787652)
(define KEY_braille_dots_38 16787588)
(define KEY_braille_dots_4 16787464)
(define KEY_braille_dots_45 16787480)
(define KEY_braille_dots_456 16787512)
(define KEY_braille_dots_4567 16787576)
(define KEY_braille_dots_45678 16787704)
(define KEY_braille_dots_4568 16787640)
(define KEY_braille_dots_457 16787544)
(define KEY_braille_dots_4578 16787672)
(define KEY_braille_dots_458 16787608)
(define KEY_braille_dots_46 16787496)
(define KEY_braille_dots_467 16787560)
(define KEY_braille_dots_4678 16787688)
(define KEY_braille_dots_468 16787624)
(define KEY_braille_dots_47 16787528)
(define KEY_braille_dots_478 16787656)
(define KEY_braille_dots_48 16787592)
(define KEY_braille_dots_5 16787472)
(define KEY_braille_dots_56 16787504)
(define KEY_braille_dots_567 16787568)
(define KEY_braille_dots_5678 16787696)
(define KEY_braille_dots_568 16787632)
(define KEY_braille_dots_57 16787536)
(define KEY_braille_dots_578 16787664)
(define KEY_braille_dots_58 16787600)
(define KEY_braille_dots_6 16787488)
(define KEY_braille_dots_67 16787552)
(define KEY_braille_dots_678 16787680)
(define KEY_braille_dots_68 16787616)
(define KEY_braille_dots_7 16787520)
(define KEY_braille_dots_78 16787648)
(define KEY_braille_dots_8 16787584)
(define KEY_breve 418)
(define KEY_brokenbar 166)
(define KEY_c 99)
(define KEY_c_h 65187)
(define KEY_cabovedot 741)
(define KEY_cacute 486)
(define KEY_careof 2744)
(define KEY_caret 2812)
(define KEY_caron 439)
(define KEY_ccaron 488)
(define KEY_ccedilla 231)
(define KEY_ccircumflex 742)
(define KEY_cedilla 184)
(define KEY_cent 162)
(define KEY_ch 65184)
(define KEY_checkerboard 2529)
(define KEY_checkmark 2803)
(define KEY_circle 3023)
(define KEY_club 2796)
(define KEY_colon 58)
(define KEY_comma 44)
(define KEY_containsas 16785931)
(define KEY_copyright 169)
(define KEY_cr 2532)
(define KEY_crossinglines 2542)
(define KEY_cuberoot 16785947)
(define KEY_currency 164)
(define KEY_cursor 2815)
(define KEY_d 100)
(define KEY_dabovedot 16784907)
(define KEY_dagger 2801)
(define KEY_dcaron 495)
(define KEY_dead_A 65153)
(define KEY_dead_E 65155)
(define KEY_dead_I 65157)
(define KEY_dead_O 65159)
(define KEY_dead_U 65161)
(define KEY_dead_a 65152)
(define KEY_dead_abovecomma 65124)
(define KEY_dead_abovedot 65110)
(define KEY_dead_abovereversedcomma 65125)
(define KEY_dead_abovering 65112)
(define KEY_dead_acute 65105)
(define KEY_dead_belowbreve 65131)
(define KEY_dead_belowcircumflex 65129)
(define KEY_dead_belowcomma 65134)
(define KEY_dead_belowdiaeresis 65132)
(define KEY_dead_belowdot 65120)
(define KEY_dead_belowmacron 65128)
(define KEY_dead_belowring 65127)
(define KEY_dead_belowtilde 65130)
(define KEY_dead_breve 65109)
(define KEY_dead_capital_schwa 65163)
(define KEY_dead_caron 65114)
(define KEY_dead_cedilla 65115)
(define KEY_dead_circumflex 65106)
(define KEY_dead_currency 65135)
(define KEY_dead_dasia 65125)
(define KEY_dead_diaeresis 65111)
(define KEY_dead_doubleacute 65113)
(define KEY_dead_doublegrave 65126)
(define KEY_dead_e 65154)
(define KEY_dead_grave 65104)
(define KEY_dead_greek 65164)
(define KEY_dead_hook 65121)
(define KEY_dead_horn 65122)
(define KEY_dead_i 65156)
(define KEY_dead_invertedbreve 65133)
(define KEY_dead_iota 65117)
(define KEY_dead_macron 65108)
(define KEY_dead_o 65158)
(define KEY_dead_ogonek 65116)
(define KEY_dead_perispomeni 65107)
(define KEY_dead_psili 65124)
(define KEY_dead_semivoiced_sound 65119)
(define KEY_dead_small_schwa 65162)
(define KEY_dead_stroke 65123)
(define KEY_dead_tilde 65107)
(define KEY_dead_u 65160)
(define KEY_dead_voiced_sound 65118)
(define KEY_decimalpoint 2749)
(define KEY_degree 176)
(define KEY_diaeresis 168)
(define KEY_diamond 2797)
(define KEY_digitspace 2725)
(define KEY_dintegral 16785964)
(define KEY_division 247)
(define KEY_dollar 36)
(define KEY_doubbaselinedot 2735)
(define KEY_doubleacute 445)
(define KEY_doubledagger 2802)
(define KEY_doublelowquotemark 2814)
(define KEY_downarrow 2302)
(define KEY_downcaret 2984)
(define KEY_downshoe 3030)
(define KEY_downstile 3012)
(define KEY_downtack 3010)
(define KEY_dstroke 496)
(define KEY_e 101)
(define KEY_eabovedot 1004)
(define KEY_eacute 233)
(define KEY_ebelowdot 16785081)
(define KEY_ecaron 492)
(define KEY_ecircumflex 234)
(define KEY_ecircumflexacute 16785087)
(define KEY_ecircumflexbelowdot 16785095)
(define KEY_ecircumflexgrave 16785089)
(define KEY_ecircumflexhook 16785091)
(define KEY_ecircumflextilde 16785093)
(define KEY_ediaeresis 235)
(define KEY_egrave 232)
(define KEY_ehook 16785083)
(define KEY_eightsubscript 16785544)
(define KEY_eightsuperior 16785528)
(define KEY_elementof 16785928)
(define KEY_ellipsis 2734)
(define KEY_em3space 2723)
(define KEY_em4space 2724)
(define KEY_emacron 954)
(define KEY_emdash 2729)
(define KEY_emfilledcircle 2782)
(define KEY_emfilledrect 2783)
(define KEY_emopencircle 2766)
(define KEY_emopenrectangle 2767)
(define KEY_emptyset 16785925)
(define KEY_emspace 2721)
(define KEY_endash 2730)
(define KEY_enfilledcircbullet 2790)
(define KEY_enfilledsqbullet 2791)
(define KEY_eng 959)
(define KEY_enopencircbullet 2784)
(define KEY_enopensquarebullet 2785)
(define KEY_enspace 2722)
(define KEY_eogonek 490)
(define KEY_equal 61)
(define KEY_eth 240)
(define KEY_etilde 16785085)
(define KEY_exclam 33)
(define KEY_exclamdown 161)
(define KEY_ezh 16777874)
(define KEY_f 102)
(define KEY_fabovedot 16784927)
(define KEY_femalesymbol 2808)
(define KEY_ff 2531)
(define KEY_figdash 2747)
(define KEY_filledlefttribullet 2780)
(define KEY_filledrectbullet 2779)
(define KEY_filledrighttribullet 2781)
(define KEY_filledtribulletdown 2793)
(define KEY_filledtribulletup 2792)
(define KEY_fiveeighths 2757)
(define KEY_fivesixths 2743)
(define KEY_fivesubscript 16785541)
(define KEY_fivesuperior 16785525)
(define KEY_fourfifths 2741)
(define KEY_foursubscript 16785540)
(define KEY_foursuperior 16785524)
(define KEY_fourthroot 16785948)
(define KEY_function 2294)
(define KEY_g 103)
(define KEY_gabovedot 757)
(define KEY_gbreve 699)
(define KEY_gcaron 16777703)
(define KEY_gcedilla 955)
(define KEY_gcircumflex 760)
(define KEY_grave 96)
(define KEY_greater 62)
(define KEY_greaterthanequal 2238)
(define KEY_guillemotleft 171)
(define KEY_guillemotright 187)
(define KEY_h 104)
(define KEY_hairspace 2728)
(define KEY_hcircumflex 694)
(define KEY_heart 2798)
(define KEY_hebrew_aleph 3296)
(define KEY_hebrew_ayin 3314)
(define KEY_hebrew_bet 3297)
(define KEY_hebrew_beth 3297)
(define KEY_hebrew_chet 3303)
(define KEY_hebrew_dalet 3299)
(define KEY_hebrew_daleth 3299)
(define KEY_hebrew_doublelowline 3295)
(define KEY_hebrew_finalkaph 3306)
(define KEY_hebrew_finalmem 3309)
(define KEY_hebrew_finalnun 3311)
(define KEY_hebrew_finalpe 3315)
(define KEY_hebrew_finalzade 3317)
(define KEY_hebrew_finalzadi 3317)
(define KEY_hebrew_gimel 3298)
(define KEY_hebrew_gimmel 3298)
(define KEY_hebrew_he 3300)
(define KEY_hebrew_het 3303)
(define KEY_hebrew_kaph 3307)
(define KEY_hebrew_kuf 3319)
(define KEY_hebrew_lamed 3308)
(define KEY_hebrew_mem 3310)
(define KEY_hebrew_nun 3312)
(define KEY_hebrew_pe 3316)
(define KEY_hebrew_qoph 3319)
(define KEY_hebrew_resh 3320)
(define KEY_hebrew_samech 3313)
(define KEY_hebrew_samekh 3313)
(define KEY_hebrew_shin 3321)
(define KEY_hebrew_taf 3322)
(define KEY_hebrew_taw 3322)
(define KEY_hebrew_tet 3304)
(define KEY_hebrew_teth 3304)
(define KEY_hebrew_waw 3301)
(define KEY_hebrew_yod 3305)
(define KEY_hebrew_zade 3318)
(define KEY_hebrew_zadi 3318)
(define KEY_hebrew_zain 3302)
(define KEY_hebrew_zayin 3302)
(define KEY_hexagram 2778)
(define KEY_horizconnector 2211)
(define KEY_horizlinescan1 2543)
(define KEY_horizlinescan3 2544)
(define KEY_horizlinescan5 2545)
(define KEY_horizlinescan7 2546)
(define KEY_horizlinescan9 2547)
(define KEY_hstroke 689)
(define KEY_ht 2530)
(define KEY_hyphen 173)
(define KEY_i 105)
(define KEY_iTouch 269025120)
(define KEY_iacute 237)
(define KEY_ibelowdot 16785099)
(define KEY_ibreve 16777517)
(define KEY_icircumflex 238)
(define KEY_identical 2255)
(define KEY_idiaeresis 239)
(define KEY_idotless 697)
(define KEY_ifonlyif 2253)
(define KEY_igrave 236)
(define KEY_ihook 16785097)
(define KEY_imacron 1007)
(define KEY_implies 2254)
(define KEY_includedin 2266)
(define KEY_includes 2267)
(define KEY_infinity 2242)
(define KEY_integral 2239)
(define KEY_intersection 2268)
(define KEY_iogonek 999)
(define KEY_itilde 949)
(define KEY_j 106)
(define KEY_jcircumflex 700)
(define KEY_jot 3018)
(define KEY_k 107)
(define KEY_kana_A 1201)
(define KEY_kana_CHI 1217)
(define KEY_kana_E 1204)
(define KEY_kana_FU 1228)
(define KEY_kana_HA 1226)
(define KEY_kana_HE 1229)
(define KEY_kana_HI 1227)
(define KEY_kana_HO 1230)
(define KEY_kana_HU 1228)
(define KEY_kana_I 1202)
(define KEY_kana_KA 1206)
(define KEY_kana_KE 1209)
(define KEY_kana_KI 1207)
(define KEY_kana_KO 1210)
(define KEY_kana_KU 1208)
(define KEY_kana_MA 1231)
(define KEY_kana_ME 1234)
(define KEY_kana_MI 1232)
(define KEY_kana_MO 1235)
(define KEY_kana_MU 1233)
(define KEY_kana_N 1245)
(define KEY_kana_NA 1221)
(define KEY_kana_NE 1224)
(define KEY_kana_NI 1222)
(define KEY_kana_NO 1225)
(define KEY_kana_NU 1223)
(define KEY_kana_O 1205)
(define KEY_kana_RA 1239)
(define KEY_kana_RE 1242)
(define KEY_kana_RI 1240)
(define KEY_kana_RO 1243)
(define KEY_kana_RU 1241)
(define KEY_kana_SA 1211)
(define KEY_kana_SE 1214)
(define KEY_kana_SHI 1212)
(define KEY_kana_SO 1215)
(define KEY_kana_SU 1213)
(define KEY_kana_TA 1216)
(define KEY_kana_TE 1219)
(define KEY_kana_TI 1217)
(define KEY_kana_TO 1220)
(define KEY_kana_TSU 1218)
(define KEY_kana_TU 1218)
(define KEY_kana_U 1203)
(define KEY_kana_WA 1244)
(define KEY_kana_WO 1190)
(define KEY_kana_YA 1236)
(define KEY_kana_YO 1238)
(define KEY_kana_YU 1237)
(define KEY_kana_a 1191)
(define KEY_kana_closingbracket 1187)
(define KEY_kana_comma 1188)
(define KEY_kana_conjunctive 1189)
(define KEY_kana_e 1194)
(define KEY_kana_fullstop 1185)
(define KEY_kana_i 1192)
(define KEY_kana_middledot 1189)
(define KEY_kana_o 1195)
(define KEY_kana_openingbracket 1186)
(define KEY_kana_switch 65406)
(define KEY_kana_tsu 1199)
(define KEY_kana_tu 1199)
(define KEY_kana_u 1193)
(define KEY_kana_ya 1196)
(define KEY_kana_yo 1198)
(define KEY_kana_yu 1197)
(define KEY_kappa 930)
(define KEY_kcedilla 1011)
(define KEY_kra 930)
(define KEY_l 108)
(define KEY_lacute 485)
(define KEY_latincross 2777)
(define KEY_lbelowdot 16784951)
(define KEY_lcaron 437)
(define KEY_lcedilla 950)
(define KEY_leftanglebracket 2748)
(define KEY_leftarrow 2299)
(define KEY_leftcaret 2979)
(define KEY_leftdoublequotemark 2770)
(define KEY_leftmiddlecurlybrace 2223)
(define KEY_leftopentriangle 2764)
(define KEY_leftpointer 2794)
(define KEY_leftradical 2209)
(define KEY_leftshoe 3034)
(define KEY_leftsinglequotemark 2768)
(define KEY_leftt 2548)
(define KEY_lefttack 3036)
(define KEY_less 60)
(define KEY_lessthanequal 2236)
(define KEY_lf 2533)
(define KEY_logicaland 2270)
(define KEY_logicalor 2271)
(define KEY_lowleftcorner 2541)
(define KEY_lowrightcorner 2538)
(define KEY_lstroke 435)
(define KEY_m 109)
(define KEY_mabovedot 16784961)
(define KEY_macron 175)
(define KEY_malesymbol 2807)
(define KEY_maltesecross 2800)
(define KEY_marker 2751)
(define KEY_masculine 186)
(define KEY_minus 45)
(define KEY_minutes 2774)
(define KEY_mu 181)
(define KEY_multiply 215)
(define KEY_musicalflat 2806)
(define KEY_musicalsharp 2805)
(define KEY_n 110)
(define KEY_nabla 2245)
(define KEY_nacute 497)
(define KEY_ncaron 498)
(define KEY_ncedilla 1009)
(define KEY_ninesubscript 16785545)
(define KEY_ninesuperior 16785529)
(define KEY_nl 2536)
(define KEY_nobreakspace 160)
(define KEY_notapproxeq 16785991)
(define KEY_notelementof 16785929)
(define KEY_notequal 2237)
(define KEY_notidentical 16786018)
(define KEY_notsign 172)
(define KEY_ntilde 241)
(define KEY_numbersign 35)
(define KEY_numerosign 1712)
(define KEY_o 111)
(define KEY_oacute 243)
(define KEY_obarred 16777845)
(define KEY_obelowdot 16785101)
(define KEY_ocaron 16777682)
(define KEY_ocircumflex 244)
(define KEY_ocircumflexacute 16785105)
(define KEY_ocircumflexbelowdot 16785113)
(define KEY_ocircumflexgrave 16785107)
(define KEY_ocircumflexhook 16785109)
(define KEY_ocircumflextilde 16785111)
(define KEY_odiaeresis 246)
(define KEY_odoubleacute 501)
(define KEY_oe 5053)
(define KEY_ogonek 434)
(define KEY_ograve 242)
(define KEY_ohook 16785103)
(define KEY_ohorn 16777633)
(define KEY_ohornacute 16785115)
(define KEY_ohornbelowdot 16785123)
(define KEY_ohorngrave 16785117)
(define KEY_ohornhook 16785119)
(define KEY_ohorntilde 16785121)
(define KEY_omacron 1010)
(define KEY_oneeighth 2755)
(define KEY_onefifth 2738)
(define KEY_onehalf 189)
(define KEY_onequarter 188)
(define KEY_onesixth 2742)
(define KEY_onesubscript 16785537)
(define KEY_onesuperior 185)
(define KEY_onethird 2736)
(define KEY_ooblique 248)
(define KEY_openrectbullet 2786)
(define KEY_openstar 2789)
(define KEY_opentribulletdown 2788)
(define KEY_opentribulletup 2787)
(define KEY_ordfeminine 170)
(define KEY_oslash 248)
(define KEY_otilde 245)
(define KEY_overbar 3008)
(define KEY_overline 1150)
(define KEY_p 112)
(define KEY_pabovedot 16784983)
(define KEY_paragraph 182)
(define KEY_parenleft 40)
(define KEY_parenright 41)
(define KEY_partdifferential 16785922)
(define KEY_partialderivative 2287)
(define KEY_percent 37)
(define KEY_period 46)
(define KEY_periodcentered 183)
(define KEY_permille 2773)
(define KEY_phonographcopyright 2811)
(define KEY_plus 43)
(define KEY_plusminus 177)
(define KEY_prescription 2772)
(define KEY_prolongedsound 1200)
(define KEY_punctspace 2726)
(define KEY_q 113)
(define KEY_quad 3020)
(define KEY_question 63)
(define KEY_questiondown 191)
(define KEY_quotedbl 34)
(define KEY_quoteleft 96)
(define KEY_quoteright 39)
(define KEY_r 114)
(define KEY_racute 480)
(define KEY_radical 2262)
(define KEY_rcaron 504)
(define KEY_rcedilla 947)
(define KEY_registered 174)
(define KEY_rightanglebracket 2750)
(define KEY_rightarrow 2301)
(define KEY_rightcaret 2982)
(define KEY_rightdoublequotemark 2771)
(define KEY_rightmiddlecurlybrace 2224)
(define KEY_rightmiddlesummation 2231)
(define KEY_rightopentriangle 2765)
(define KEY_rightpointer 2795)
(define KEY_rightshoe 3032)
(define KEY_rightsinglequotemark 2769)
(define KEY_rightt 2549)
(define KEY_righttack 3068)
(define KEY_s 115)
(define KEY_sabovedot 16784993)
(define KEY_sacute 438)
(define KEY_scaron 441)
(define KEY_scedilla 442)
(define KEY_schwa 16777817)
(define KEY_scircumflex 766)
(define KEY_script_switch 65406)
(define KEY_seconds 2775)
(define KEY_section 167)
(define KEY_semicolon 59)
(define KEY_semivoicedsound 1247)
(define KEY_seveneighths 2758)
(define KEY_sevensubscript 16785543)
(define KEY_sevensuperior 16785527)
(define KEY_signaturemark 2762)
(define KEY_signifblank 2732)
(define KEY_similarequal 2249)
(define KEY_singlelowquotemark 2813)
(define KEY_sixsubscript 16785542)
(define KEY_sixsuperior 16785526)
(define KEY_slash 47)
(define KEY_soliddiamond 2528)
(define KEY_space 32)
(define KEY_squareroot 16785946)
(define KEY_ssharp 223)
(define KEY_sterling 163)
(define KEY_stricteq 16786019)
(define KEY_t 116)
(define KEY_tabovedot 16785003)
(define KEY_tcaron 443)
(define KEY_tcedilla 510)
(define KEY_telephone 2809)
(define KEY_telephonerecorder 2810)
(define KEY_therefore 2240)
(define KEY_thinspace 2727)
(define KEY_thorn 254)
(define KEY_threeeighths 2756)
(define KEY_threefifths 2740)
(define KEY_threequarters 190)
(define KEY_threesubscript 16785539)
(define KEY_threesuperior 179)
(define KEY_tintegral 16785965)
(define KEY_topintegral 2212)
(define KEY_topleftparens 2219)
(define KEY_topleftradical 2210)
(define KEY_topleftsqbracket 2215)
(define KEY_topleftsummation 2225)
(define KEY_toprightparens 2221)
(define KEY_toprightsqbracket 2217)
(define KEY_toprightsummation 2229)
(define KEY_topt 2551)
(define KEY_topvertsummationconnector 2227)
(define KEY_trademark 2761)
(define KEY_trademarkincircle 2763)
(define KEY_tslash 956)
(define KEY_twofifths 2739)
(define KEY_twosubscript 16785538)
(define KEY_twosuperior 178)
(define KEY_twothirds 2737)
(define KEY_u 117)
(define KEY_uacute 250)
(define KEY_ubelowdot 16785125)
(define KEY_ubreve 765)
(define KEY_ucircumflex 251)
(define KEY_udiaeresis 252)
(define KEY_udoubleacute 507)
(define KEY_ugrave 249)
(define KEY_uhook 16785127)
(define KEY_uhorn 16777648)
(define KEY_uhornacute 16785129)
(define KEY_uhornbelowdot 16785137)
(define KEY_uhorngrave 16785131)
(define KEY_uhornhook 16785133)
(define KEY_uhorntilde 16785135)
(define KEY_umacron 1022)
(define KEY_underbar 3014)
(define KEY_underscore 95)
(define KEY_union 2269)
(define KEY_uogonek 1017)
(define KEY_uparrow 2300)
(define KEY_upcaret 2985)
(define KEY_upleftcorner 2540)
(define KEY_uprightcorner 2539)
(define KEY_upshoe 3011)
(define KEY_upstile 3027)
(define KEY_uptack 3022)
(define KEY_uring 505)
(define KEY_utilde 1021)
(define KEY_v 118)
(define KEY_variation 2241)
(define KEY_vertbar 2552)
(define KEY_vertconnector 2214)
(define KEY_voicedsound 1246)
(define KEY_vt 2537)
(define KEY_w 119)
(define KEY_wacute 16785027)
(define KEY_wcircumflex 16777589)
(define KEY_wdiaeresis 16785029)
(define KEY_wgrave 16785025)
(define KEY_x 120)
(define KEY_xabovedot 16785035)
(define KEY_y 121)
(define KEY_yacute 253)
(define KEY_ybelowdot 16785141)
(define KEY_ycircumflex 16777591)
(define KEY_ydiaeresis 255)
(define KEY_yen 165)
(define KEY_ygrave 16785139)
(define KEY_yhook 16785143)
(define KEY_ytilde 16785145)
(define KEY_z 122)
(define KEY_zabovedot 447)
(define KEY_zacute 444)
(define KEY_zcaron 446)
(define KEY_zerosubscript 16785536)
(define KEY_zerosuperior 16785520)
(define KEY_zstroke 16777654)
;;; begin object Keymap
;;; typename: GdkKeymap
(define-gtype-getter GdkKeymap-gtype "GdkKeymap")
;;; fields: ()
;;; object type name: GdkKeymap
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_keymap_get_type"
;;; ---------------
(define-from-gdk gdk-keymap-get-default '*)
(define-from-gdk gdk-keymap-get-for-display '* '*)
(define-from-gdk gdk-keymap-add-virtual-modifiers void uint32)
(define-from-gdk gdk-keymap-get-caps-lock-state int)
(define-from-gdk gdk-keymap-get-direction uint32)
(define-from-gdk gdk-keymap-get-entries-for-keycode int uint32 '* '* int32)
(define-from-gdk gdk-keymap-get-entries-for-keyval int uint32 '* int32)
(define-from-gdk gdk-keymap-get-modifier-mask uint32 uint32)
(define-from-gdk gdk-keymap-get-modifier-state uint32)
(define-from-gdk gdk-keymap-get-num-lock-state int)
(define-from-gdk gdk-keymap-get-scroll-lock-state int)
(define-from-gdk gdk-keymap-have-bidi-layouts int)
(define-from-gdk gdk-keymap-lookup-key uint32 '*)
(define-from-gdk gdk-keymap-map-virtual-modifiers int uint32)
(define-from-gdk gdk-keymap-translate-keyboard-state int uint32 uint32 int32 uint32 int32 int32 uint32)
;;; end Keymap
;;; begin struct KeymapKey
;;; fields: ("keycode" "group" "level")
;;; end KeymapKey
(define MAX_TIMECOORD_AXES 128)
;;; begin enum ModifierIntent
;;; series: sequence
(define-enum-transformer
ModifierIntent
primary_accelerator
context_menu
extend_selection
modify_selection
no_text_input
shift_group
default_mod_mask)
;;; end ModifierIntent
;;; begin flags ModifierType
;;; series: unordered
;;; end ModifierType
;;; begin object Monitor
;;; typename: GdkMonitor
(define-gtype-getter GdkMonitor-gtype "GdkMonitor")
;;; fields: ()
;;; object type name: GdkMonitor
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_monitor_get_type"
;;; begin struct MonitorClass
;;; fields: ()
;;; end MonitorClass
;;; ---------------
(define-from-gdk gdk-monitor-get-display '*)
(define-from-gdk gdk-monitor-get-geometry void '*)
(define-from-gdk gdk-monitor-get-height-mm int32)
(define-from-gdk gdk-monitor-get-manufacturer '*)
(define-from-gdk gdk-monitor-get-model '*)
(define-from-gdk gdk-monitor-get-refresh-rate int32)
(define-from-gdk gdk-monitor-get-scale-factor int32)
(define-from-gdk gdk-monitor-get-subpixel-layout uint32)
(define-from-gdk gdk-monitor-get-width-mm int32)
(define-from-gdk gdk-monitor-get-workarea void '*)
(define-from-gdk gdk-monitor-is-primary int)
;;; end Monitor
;;; begin struct MonitorClass
;;; fields: ()
;;; end MonitorClass
;;; begin enum NotifyType
;;; series: sequence
(define-enum-transformer NotifyType ancestor virtual inferior nonlinear nonlinear_virtual unknown)
;;; end NotifyType
;;; begin enum OwnerChange
;;; series: sequence
(define-enum-transformer OwnerChange new_owner destroy close)
;;; end OwnerChange
(define PARENT_RELATIVE 1)
(define PRIORITY_REDRAW 20)
;;; begin struct Point
;;; fields: ("x" "y")
;;; end Point
;;; begin enum PropMode
;;; series: sequence
(define-enum-transformer PropMode replace prepend append)
;;; end PropMode
;;; begin enum PropertyState
;;; series: sequence
(define-enum-transformer PropertyState new_value delete)
;;; end PropertyState
;;; begin struct RGBA
;;; typename: GdkRGBA
(define-gtype-getter GdkRGBA-gtype "GdkRGBA")
;;; fields: ("red" "green" "blue" "alpha")
(define-from-gdk gdk-rgba-copy '*)
(define-from-gdk gdk-rgba-equal int '*)
(define-from-gdk gdk-rgba-free void)
(define-from-gdk gdk-rgba-hash uint32)
(define-from-gdk gdk-rgba-parse int '*)
(define-from-gdk gdk-rgba-to-string '*)
;;; end RGBA
;;; begin struct Rectangle
;;; typename: GdkRectangle
(define-gtype-getter GdkRectangle-gtype "GdkRectangle")
;;; fields: ("x" "y" "width" "height")
(define-from-gdk gdk-rectangle-equal int '*)
(define-from-gdk gdk-rectangle-intersect int '* '*)
(define-from-gdk gdk-rectangle-union void '* '*)
;;; end Rectangle
;;; begin object Screen
;;; typename: GdkScreen
(define-gtype-getter GdkScreen-gtype "GdkScreen")
;;; fields: ()
;;; object type name: GdkScreen
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_screen_get_type"
;;; ---------------
(define-from-gdk gdk-screen-get-default '*)
(define-from-gdk gdk-screen-height int32)
(define-from-gdk gdk-screen-height-mm int32)
(define-from-gdk gdk-screen-width int32)
(define-from-gdk gdk-screen-width-mm int32)
(define-from-gdk gdk-screen-get-active-window '*)
(define-from-gdk gdk-screen-get-display '*)
(define-from-gdk gdk-screen-get-font-options '*)
(define-from-gdk gdk-screen-get-height int32)
(define-from-gdk gdk-screen-get-height-mm int32)
(define-from-gdk gdk-screen-get-monitor-at-point int32 int32 int32)
(define-from-gdk gdk-screen-get-monitor-at-window int32 '*)
(define-from-gdk gdk-screen-get-monitor-geometry void int32 '*)
(define-from-gdk gdk-screen-get-monitor-height-mm int32 int32)
(define-from-gdk gdk-screen-get-monitor-plug-name '* int32)
(define-from-gdk gdk-screen-get-monitor-scale-factor int32 int32)
(define-from-gdk gdk-screen-get-monitor-width-mm int32 int32)
(define-from-gdk gdk-screen-get-monitor-workarea void int32 '*)
(define-from-gdk gdk-screen-get-n-monitors int32)
(define-from-gdk gdk-screen-get-number int32)
(define-from-gdk gdk-screen-get-primary-monitor int32)
(define-from-gdk gdk-screen-get-resolution double)
(define-from-gdk gdk-screen-get-rgba-visual '*)
(define-from-gdk gdk-screen-get-root-window '*)
(define-from-gdk gdk-screen-get-setting int '* '*)
(define-from-gdk gdk-screen-get-system-visual '*)
(define-from-gdk gdk-screen-get-toplevel-windows '*)
(define-from-gdk gdk-screen-get-width int32)
(define-from-gdk gdk-screen-get-width-mm int32)
(define-from-gdk gdk-screen-get-window-stack '*)
(define-from-gdk gdk-screen-is-composited int)
(define-from-gdk gdk-screen-list-visuals '*)
(define-from-gdk gdk-screen-make-display-name '*)
(define-from-gdk gdk-screen-set-font-options void '*)
(define-from-gdk gdk-screen-set-resolution void double)
;;; end Screen
;;; begin enum ScrollDirection
;;; series: sequence
(define-enum-transformer ScrollDirection up down left right smooth)
;;; end ScrollDirection
;;; begin object Seat
;;; typename: GdkSeat
(define-gtype-getter GdkSeat-gtype "GdkSeat")
;;; fields: ("parent_instance")
;;; object type name: GdkSeat
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_seat_get_type"
;;; ---------------
(define-from-gdk gdk-seat-get-capabilities uint32)
(define-from-gdk gdk-seat-get-display '*)
(define-from-gdk gdk-seat-get-keyboard '*)
(define-from-gdk gdk-seat-get-pointer '*)
(define-from-gdk gdk-seat-get-slaves '* uint32)
(define-from-gdk gdk-seat-grab uint32 '* uint32 int '* '* '* '*)
(define-from-gdk gdk-seat-ungrab void)
;;; end Seat
;;; begin flags SeatCapabilities
;;; series: unordered
;;; end SeatCapabilities
;;; (callback "SeatGrabPrepareFunc")
;;; begin enum SettingAction
;;; series: sequence
(define-enum-transformer SettingAction new changed deleted)
;;; end SettingAction
;;; begin enum Status
;;; series: unordered
;;; end Status
;;; begin enum SubpixelLayout
;;; series: sequence
(define-enum-transformer
SubpixelLayout
unknown
none
horizontal_rgb
horizontal_bgr
vertical_rgb
vertical_bgr)
;;; end SubpixelLayout
;;; begin struct TimeCoord
;;; fields: ("time" "axes")
;;; end TimeCoord
;;; begin enum TouchpadGesturePhase
;;; series: sequence
(define-enum-transformer TouchpadGesturePhase begin update end cancel)
;;; end TouchpadGesturePhase
;;; begin enum VisibilityState
;;; series: sequence
(define-enum-transformer VisibilityState unobscured partial fully_obscured)
;;; end VisibilityState
;;; begin object Visual
;;; typename: GdkVisual
(define-gtype-getter GdkVisual-gtype "GdkVisual")
;;; fields: ()
;;; object type name: GdkVisual
;;; parent: "Object"
;;; vfuncs: ()
;;; type-init: "gdk_visual_get_type"
;;; ---------------
(define-from-gdk gdk-visual-get-best '*)
(define-from-gdk gdk-visual-get-best-depth int32)
(define-from-gdk gdk-visual-get-best-type uint32)
(define-from-gdk gdk-visual-get-best-with-both '* int32 uint32)
(define-from-gdk gdk-visual-get-best-with-depth '* int32)
(define-from-gdk gdk-visual-get-best-with-type '* uint32)
(define-from-gdk gdk-visual-get-system '*)
(define-from-gdk gdk-visual-get-bits-per-rgb int32)
(define-from-gdk gdk-visual-get-blue-pixel-details void uint32 int32 int32)
(define-from-gdk gdk-visual-get-byte-order uint32)
(define-from-gdk gdk-visual-get-colormap-size int32)
(define-from-gdk gdk-visual-get-depth int32)
(define-from-gdk gdk-visual-get-green-pixel-details void uint32 int32 int32)
(define-from-gdk gdk-visual-get-red-pixel-details void uint32 int32 int32)
(define-from-gdk gdk-visual-get-screen '*)
(define-from-gdk gdk-visual-get-visual-type uint32)
;;; end Visual
;;; begin enum VisualType
;;; series: sequence
(define-enum-transformer
VisualType
static_gray
grayscale
static_color
pseudo_color
true_color
direct_color)
;;; end VisualType
;;; begin flags WMDecoration
;;; series: bitmasks
(define-flags-transformer WMDecoration all border resizeh title menu minimize maximize)
;;; end WMDecoration
;;; begin flags WMFunction
;;; series: bitmasks
(define-flags-transformer WMFunction all resize move minimize maximize close)
;;; end WMFunction
;;; begin object Window
;;; typename: GdkWindow
(define-gtype-getter GdkWindow-gtype "GdkWindow")
;;; fields: ()
;;; object type name: GdkWindow
;;; parent: "Object"
;;; vfuncs: ("create_surface" "from_embedder" "to_embedder")
;;; type-init: "gdk_window_get_type"
;;; begin struct WindowClass
;;; fields: ("parent_class" "pick_embedded_child" "to_embedder" "from_embedder" "create_surface" "_gdk_reserved1" "_gdk_reserved2" "_gdk_reserved3" "_gdk_reserved4" "_gdk_reserved5" "_gdk_reserved6" "_gdk_reserved7" "_gdk_reserved8")
;;; end WindowClass
;;; ---------------
(define-from-gdk gdk-window-new '* '* '* uint32)
(define-from-gdk gdk-window-at-pointer '* int32 int32)
(define-from-gdk gdk-window-constrain-size void '* uint32 int32 int32 int32 int32)
(define-from-gdk gdk-window-process-all-updates void)
(define-from-gdk gdk-window-set-debug-updates void int)
(define-from-gdk gdk-window-beep void)
(define-from-gdk gdk-window-begin-draw-frame '* '*)
(define-from-gdk gdk-window-begin-move-drag void int32 int32 int32 uint32)
(define-from-gdk gdk-window-begin-move-drag-for-device void '* int32 int32 int32 uint32)
(define-from-gdk gdk-window-begin-paint-rect void '*)
(define-from-gdk gdk-window-begin-paint-region void '*)
(define-from-gdk gdk-window-begin-resize-drag void uint32 int32 int32 int32 uint32)
(define-from-gdk gdk-window-begin-resize-drag-for-device void uint32 '* int32 int32 int32 uint32)
(define-from-gdk gdk-window-configure-finished void)
(define-from-gdk gdk-window-coords-from-parent void double double double double)
(define-from-gdk gdk-window-coords-to-parent void double double double double)
(define-from-gdk gdk-window-create-gl-context '*)
(define-from-gdk gdk-window-create-similar-image-surface '* int32 int32 int32 int32)
(define-from-gdk gdk-window-create-similar-surface '* uint32 int32 int32)
(define-from-gdk gdk-window-deiconify void)
(define-from-gdk gdk-window-destroy void)
(define-from-gdk gdk-window-destroy-notify void)
(define-from-gdk gdk-window-enable-synchronized-configure void)
(define-from-gdk gdk-window-end-draw-frame void '*)
(define-from-gdk gdk-window-end-paint void)
(define-from-gdk gdk-window-ensure-native int)
(define-from-gdk gdk-window-flush void)
(define-from-gdk gdk-window-focus void uint32)
(define-from-gdk gdk-window-freeze-toplevel-updates-libgtk-only void)
(define-from-gdk gdk-window-freeze-updates void)
(define-from-gdk gdk-window-fullscreen void)
(define-from-gdk gdk-window-fullscreen-on-monitor void int32)
(define-from-gdk gdk-window-geometry-changed void)
(define-from-gdk gdk-window-get-accept-focus int)
(define-from-gdk gdk-window-get-background-pattern '*)
(define-from-gdk gdk-window-get-children '*)
(define-from-gdk gdk-window-get-children-with-user-data '* '*)
(define-from-gdk gdk-window-get-clip-region '*)
(define-from-gdk gdk-window-get-composited int)
(define-from-gdk gdk-window-get-cursor '*)
(define-from-gdk gdk-window-get-decorations int uint32)
(define-from-gdk gdk-window-get-device-cursor '* '*)
(define-from-gdk gdk-window-get-device-events uint32 '*)
(define-from-gdk gdk-window-get-device-position '* '* int32 int32 uint32)
(define-from-gdk gdk-window-get-device-position-double '* '* double double uint32)
(define-from-gdk gdk-window-get-display '*)
(define-from-gdk gdk-window-get-drag-protocol uint32 '*)
(define-from-gdk gdk-window-get-effective-parent '*)
(define-from-gdk gdk-window-get-effective-toplevel '*)
(define-from-gdk gdk-window-get-event-compression int)
(define-from-gdk gdk-window-get-events uint32)
(define-from-gdk gdk-window-get-focus-on-map int)
(define-from-gdk gdk-window-get-frame-clock '*)
(define-from-gdk gdk-window-get-frame-extents void '*)
(define-from-gdk gdk-window-get-fullscreen-mode uint32)
(define-from-gdk gdk-window-get-geometry void int32 int32 int32 int32)
(define-from-gdk gdk-window-get-group '*)
(define-from-gdk gdk-window-get-height int32)
(define-from-gdk gdk-window-get-modal-hint int)
(define-from-gdk gdk-window-get-origin int32 int32 int32)
(define-from-gdk gdk-window-get-parent '*)
(define-from-gdk gdk-window-get-pass-through int)
(define-from-gdk gdk-window-get-pointer '* int32 int32 uint32)
(define-from-gdk gdk-window-get-position void int32 int32)
(define-from-gdk gdk-window-get-root-coords void int32 int32 int32 int32)
(define-from-gdk gdk-window-get-root-origin void int32 int32)
(define-from-gdk gdk-window-get-scale-factor int32)
(define-from-gdk gdk-window-get-screen '*)
(define-from-gdk gdk-window-get-source-events uint32 uint32)
(define-from-gdk gdk-window-get-state uint32)
(define-from-gdk gdk-window-get-support-multidevice int)
(define-from-gdk gdk-window-get-toplevel '*)
(define-from-gdk gdk-window-get-type-hint uint32)
(define-from-gdk gdk-window-get-update-area '*)
(define-from-gdk gdk-window-get-user-data void '*)
(define-from-gdk gdk-window-get-visible-region '*)
(define-from-gdk gdk-window-get-visual '*)
(define-from-gdk gdk-window-get-width int32)
(define-from-gdk gdk-window-get-window-type uint32)
(define-from-gdk gdk-window-has-native int)
(define-from-gdk gdk-window-hide void)
(define-from-gdk gdk-window-iconify void)
(define-from-gdk gdk-window-input-shape-combine-region void '* int32 int32)
(define-from-gdk gdk-window-invalidate-maybe-recurse void '* '* '*)
(define-from-gdk gdk-window-invalidate-rect void '* int)
(define-from-gdk gdk-window-invalidate-region void '* int)
(define-from-gdk gdk-window-is-destroyed int)
(define-from-gdk gdk-window-is-input-only int)
(define-from-gdk gdk-window-is-shaped int)
(define-from-gdk gdk-window-is-viewable int)
(define-from-gdk gdk-window-is-visible int)
(define-from-gdk gdk-window-lower void)
(define-from-gdk gdk-window-mark-paint-from-clip void '*)
(define-from-gdk gdk-window-maximize void)
(define-from-gdk gdk-window-merge-child-input-shapes void)
(define-from-gdk gdk-window-merge-child-shapes void)
(define-from-gdk gdk-window-move void int32 int32)
(define-from-gdk gdk-window-move-region void '* int32 int32)
(define-from-gdk gdk-window-move-resize void int32 int32 int32 int32)
(define-from-gdk gdk-window-peek-children '*)
(define-from-gdk gdk-window-process-updates void int)
(define-from-gdk gdk-window-raise void)
(define-from-gdk gdk-window-register-dnd void)
(define-from-gdk gdk-window-reparent void '* int32 int32)
(define-from-gdk gdk-window-resize void int32 int32)
(define-from-gdk gdk-window-restack void '* int)
(define-from-gdk gdk-window-scroll void int32 int32)
(define-from-gdk gdk-window-set-accept-focus void int)
(define-from-gdk gdk-window-set-background void '*)
(define-from-gdk gdk-window-set-background-pattern void '*)
(define-from-gdk gdk-window-set-background-rgba void '*)
(define-from-gdk gdk-window-set-child-input-shapes void)
(define-from-gdk gdk-window-set-child-shapes void)
(define-from-gdk gdk-window-set-composited void int)
(define-from-gdk gdk-window-set-cursor void '*)
(define-from-gdk gdk-window-set-decorations void uint32)
(define-from-gdk gdk-window-set-device-cursor void '* '*)
(define-from-gdk gdk-window-set-device-events void '* uint32)
(define-from-gdk gdk-window-set-event-compression void int)
(define-from-gdk gdk-window-set-events void uint32)
(define-from-gdk gdk-window-set-focus-on-map void int)
(define-from-gdk gdk-window-set-fullscreen-mode void uint32)
(define-from-gdk gdk-window-set-functions void uint32)
(define-from-gdk gdk-window-set-geometry-hints void '* uint32)
(define-from-gdk gdk-window-set-group void '*)
(define-from-gdk gdk-window-set-icon-list void '*)
(define-from-gdk gdk-window-set-icon-name void '*)
(define-from-gdk gdk-window-set-keep-above void int)
(define-from-gdk gdk-window-set-keep-below void int)
(define-from-gdk gdk-window-set-modal-hint void int)
(define-from-gdk gdk-window-set-opacity void double)
(define-from-gdk gdk-window-set-opaque-region void '*)
(define-from-gdk gdk-window-set-override-redirect void int)
(define-from-gdk gdk-window-set-pass-through void int)
(define-from-gdk gdk-window-set-role void '*)
(define-from-gdk gdk-window-set-shadow-width void int32 int32 int32 int32)
(define-from-gdk gdk-window-set-skip-pager-hint void int)
(define-from-gdk gdk-window-set-skip-taskbar-hint void int)
(define-from-gdk gdk-window-set-source-events void uint32 uint32)
(define-from-gdk gdk-window-set-startup-id void '*)
(define-from-gdk gdk-window-set-static-gravities int int)
(define-from-gdk gdk-window-set-support-multidevice void int)
(define-from-gdk gdk-window-set-title void '*)
(define-from-gdk gdk-window-set-transient-for void '*)
(define-from-gdk gdk-window-set-type-hint void uint32)
(define-from-gdk gdk-window-set-urgency-hint void int)
(define-from-gdk gdk-window-set-user-data void '*)
(define-from-gdk gdk-window-shape-combine-region void '* int32 int32)
(define-from-gdk gdk-window-show void)
(define-from-gdk gdk-window-show-unraised void)
(define-from-gdk gdk-window-show-window-menu int '*)
(define-from-gdk gdk-window-stick void)
(define-from-gdk gdk-window-thaw-toplevel-updates-libgtk-only void)
(define-from-gdk gdk-window-thaw-updates void)
(define-from-gdk gdk-window-unfullscreen void)
(define-from-gdk gdk-window-unmaximize void)
(define-from-gdk gdk-window-unstick void)
(define-from-gdk gdk-window-withdraw void)
;;; end Window
;;; begin struct WindowAttr
;;; fields: ("title" "event_mask" "x" "y" "width" "height" "wclass" "visual" "window_type" "cursor" "wmclass_name" "wmclass_class" "override_redirect" "type_hint")
;;; end WindowAttr
;;; begin flags WindowAttributesType
;;; series: unordered
;;; end WindowAttributesType
;;; (callback "WindowChildFunc")
;;; begin struct WindowClass
;;; fields: ("parent_class" "pick_embedded_child" "to_embedder" "from_embedder" "create_surface" "_gdk_reserved1" "_gdk_reserved2" "_gdk_reserved3" "_gdk_reserved4" "_gdk_reserved5" "_gdk_reserved6" "_gdk_reserved7" "_gdk_reserved8")
;;; end WindowClass
;;; begin enum WindowEdge
;;; series: sequence
(define-enum-transformer
WindowEdge
north_west
north
north_east
west
east
south_west
south
south_east)
;;; end WindowEdge
;;; begin flags WindowHints
;;; series: bitmasks
(define-flags-transformer
WindowHints
pos
min_size
max_size
base_size
aspect
resize_inc
win_gravity
user_pos
user_size)
;;; end WindowHints
;;; (callback "WindowInvalidateHandlerFunc")
;;; begin struct WindowRedirect
;;; fields: ()
;;; end WindowRedirect
;;; begin flags WindowState
;;; series: bitmasks
(define-flags-transformer
WindowState
withdrawn
iconified
maximized
sticky
fullscreen
above
below
focused
tiled)
;;; end WindowState
;;; begin enum WindowType
;;; series: sequence
(define-enum-transformer WindowType root toplevel child temp foreign offscreen subsurface)
;;; end WindowType
;;; begin enum WindowTypeHint
;;; series: sequence
(define-enum-transformer
WindowTypeHint
normal
dialog
menu
toolbar
splashscreen
utility
dock
desktop
dropdown_menu
popup_menu
tooltip
notification
combo
dnd)
;;; end WindowTypeHint
;;; begin enum WindowWindowClass
;;; series: sequence
(define-enum-transformer WindowWindowClass input_output input_only)
;;; end WindowWindowClass
(define-from-gdk gdk-add-option-entries-libgtk-only void '*)
(define-from-gdk gdk-atom-intern '* '* int)
(define-from-gdk gdk-atom-intern-static-string '* '*)
(define-from-gdk gdk-beep void)
(define-from-gdk gdk-cairo-create '* '*)
(define-from-gdk gdk-cairo-draw-from-gl void '* '* int32 int32 int32 int32 int32 int32 int32)
(define-from-gdk gdk-cairo-get-clip-rectangle int '* '*)
(define-from-gdk gdk-cairo-get-drawing-context '* '*)
(define-from-gdk gdk-cairo-rectangle void '* '*)
(define-from-gdk gdk-cairo-region void '* '*)
(define-from-gdk gdk-cairo-region-create-from-surface '* '*)
(define-from-gdk gdk-cairo-set-source-color void '* '*)
(define-from-gdk gdk-cairo-set-source-pixbuf void '* '* double double)
(define-from-gdk gdk-cairo-set-source-rgba void '* '*)
(define-from-gdk gdk-cairo-set-source-window void '* '* double double)
(define-from-gdk gdk-cairo-surface-create-from-pixbuf '* '* int32 '*)
(define-from-gdk gdk-color-parse int '* '*)
(define-from-gdk gdk-disable-multidevice void)
(define-from-gdk gdk-drag-abort void '* uint32)
(define-from-gdk gdk-drag-begin '* '* '*)
(define-from-gdk gdk-drag-begin-for-device '* '* '* '*)
(define-from-gdk gdk-drag-begin-from-point '* '* '* '* int32 int32)
(define-from-gdk gdk-drag-drop void '* uint32)
(define-from-gdk gdk-drag-drop-done void '* int)
(define-from-gdk gdk-drag-drop-succeeded int '*)
(define-from-gdk gdk-drag-find-window-for-screen void '* '* '* int32 int32 '* uint32)
(define-from-gdk gdk-drag-get-selection '* '*)
(define-from-gdk gdk-drag-motion int '* '* uint32 int32 int32 uint32 uint32 uint32)
(define-from-gdk gdk-drag-status void '* uint32 uint32)
(define-from-gdk gdk-drop-finish void '* int uint32)
(define-from-gdk gdk-drop-reply void '* int uint32)
(define-from-gdk gdk-error-trap-pop int32)
(define-from-gdk gdk-error-trap-pop-ignored void)
(define-from-gdk gdk-error-trap-push void)
(define-from-gdk gdk-event-get '*)
(define-from-gdk gdk-event-handler-set void '* '* '*)
(define-from-gdk gdk-event-peek '*)
(define-from-gdk gdk-event-request-motions void '*)
(define-from-gdk gdk-events-get-angle int '* '* double)
(define-from-gdk gdk-events-get-center int '* '* double double)
(define-from-gdk gdk-events-get-distance int '* '* double)
(define-from-gdk gdk-events-pending int)
(define-from-gdk gdk-flush void)
(define-from-gdk gdk-get-default-root-window '*)
(define-from-gdk gdk-get-display '*)
(define-from-gdk gdk-get-display-arg-name '*)
(define-from-gdk gdk-get-program-class '*)
(define-from-gdk gdk-get-show-events int)
(define-from-gdk gdk-gl-error-quark uint32)
(define-from-gdk gdk-init void int32 '*)
(define-from-gdk gdk-init-check int int32 '*)
(define-from-gdk gdk-keyboard-grab uint32 '* int uint32)
(define-from-gdk gdk-keyboard-ungrab void uint32)
(define-from-gdk gdk-keyval-convert-case void uint32 uint32 uint32)
(define-from-gdk gdk-keyval-from-name uint32 '*)
(define-from-gdk gdk-keyval-is-lower int uint32)
(define-from-gdk gdk-keyval-is-upper int uint32)
(define-from-gdk gdk-keyval-name '* uint32)
(define-from-gdk gdk-keyval-to-lower uint32 uint32)
(define-from-gdk gdk-keyval-to-unicode uint32 uint32)
(define-from-gdk gdk-keyval-to-upper uint32 uint32)
(define-from-gdk gdk-list-visuals '*)
(define-from-gdk gdk-notify-startup-complete void)
(define-from-gdk gdk-notify-startup-complete-with-id void '*)
(define-from-gdk gdk-offscreen-window-get-embedder '* '*)
(define-from-gdk gdk-offscreen-window-get-surface '* '*)
(define-from-gdk gdk-offscreen-window-set-embedder void '* '*)
(define-from-gdk gdk-pango-context-get '*)
(define-from-gdk gdk-pango-context-get-for-display '* '*)
(define-from-gdk gdk-pango-context-get-for-screen '* '*)
(define-from-gdk gdk-parse-args void int32 '*)
(define-from-gdk gdk-pixbuf-get-from-surface '* '* int32 int32 int32 int32)
(define-from-gdk gdk-pixbuf-get-from-window '* '* int32 int32 int32 int32)
(define-from-gdk gdk-pointer-grab uint32 '* int uint32 '* '* uint32)
(define-from-gdk gdk-pointer-is-grabbed int)
(define-from-gdk gdk-pointer-ungrab void uint32)
(define-from-gdk gdk-pre-parse-libgtk-only void)
(define-from-gdk gdk-property-delete void '* '*)
(define-from-gdk gdk-property-get int '* '* '* uint64 uint64 int32 '* int32 int32 '*)
(define-from-gdk gdk-query-depths void '* int32)
(define-from-gdk gdk-query-visual-types void '* int32)
(define-from-gdk gdk-selection-convert void '* '* '* uint32)
(define-from-gdk gdk-selection-owner-get '* '*)
(define-from-gdk gdk-selection-owner-get-for-display '* '* '*)
(define-from-gdk gdk-selection-owner-set int '* '* uint32 int)
(define-from-gdk gdk-selection-owner-set-for-display int '* '* '* uint32 int)
(define-from-gdk gdk-selection-send-notify void '* '* '* '* uint32)
(define-from-gdk gdk-selection-send-notify-for-display void '* '* '* '* '* uint32)
(define-from-gdk gdk-set-allowed-backends void '*)
(define-from-gdk gdk-set-double-click-time void uint32)
(define-from-gdk gdk-set-program-class void '*)
(define-from-gdk gdk-set-show-events void int)
(define-from-gdk gdk-setting-get int '* '*)
(define-from-gdk gdk-synthesize-window-state void '* uint32 uint32)
(define-from-gdk gdk-test-render-sync void '*)
(define-from-gdk gdk-test-simulate-button int '* int32 int32 uint32 uint32 int32)
(define-from-gdk gdk-test-simulate-key int '* int32 int32 uint32 uint32 int32)
(define-from-gdk gdk-text-property-to-utf8-list-for-display int32 '* '* int32 '* int32 '*)
(define-from-gdk gdk-threads-add-idle-full uint32 int32 '* '* '*)
(define-from-gdk gdk-threads-add-timeout-full uint32 int32 uint32 '* '* '*)
(define-from-gdk gdk-threads-add-timeout-seconds-full uint32 int32 uint32 '* '* '*)
(define-from-gdk gdk-threads-enter void)
(define-from-gdk gdk-threads-init void)
(define-from-gdk gdk-threads-leave void)
(define-from-gdk gdk-unicode-to-keyval uint32 uint32)
(define-from-gdk gdk-utf8-to-string-target '* '*)
)
| false |
5dd24123934fcbd3b21fc45ff9e667ec8febabfe | 53cb8287b8b44063adcfbd02f9736b109e54f001 | /type/type.scm | a74959addb31363225b7ab8b8b92c951fb145736 | []
| no_license | fiddlerwoaroof/yale-haskell-reboot | 72aa8fcd2ab7346a4990795621b258651c6d6c39 | 339b7d85e940db0b8cb81759e44abbb254c54aad | refs/heads/master | 2021-06-22T10:32:25.076594 | 2020-10-30T00:00:31 | 2020-10-30T00:00:31 | 92,361,235 | 3 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 897 | scm | type.scm | (define-compilation-unit type
(source-filename "type/")
(require ast haskell-utils)
(unit type-macros
(source-filename "type-macros.scm"))
(unit unify
(require type-macros)
(source-filename "unify.scm"))
(unit type-main
(require type-macros)
(source-filename "type-main.scm"))
(unit type-decl
(require type-macros)
(source-filename "type-decl.scm"))
(unit dictionary
(require type-macros)
(source-filename "dictionary.scm"))
(unit default
(require type-macros)
(source-filename "default.scm"))
(unit pattern-binding
(require type-macros)
(source-filename "pattern-binding.scm"))
(unit type-vars
(require type-macros)
(source-filename "type-vars.scm"))
(unit expression-typechecking
(require type-macros)
(source-filename "expression-typechecking.scm"))
(unit type-error-handlers
(require type-macros)
(source-filename "type-error-handlers.scm")))
| false |
efa1efd264f6606352424fd1af4a6837b08dd695 | a19495f48bfa93002aaad09c6967d7f77fc31ea8 | /src/kanren/kanren/mini/cps.scm | 7957a09f104808748b197aa9cf535a0636e9c108 | [
"Zlib"
]
| permissive | alvatar/sphere-logic | 4d4496270f00a45ce7a8cb163b5f282f5473197c | ccfbfd00057dc03ff33a0fd4f9d758fae68ec21e | refs/heads/master | 2020-04-06T04:38:41.994107 | 2014-02-02T16:43:15 | 2014-02-02T16:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 7,791 | scm | cps.scm | ; CPS as a relation
;
; $Id: cps.scm,v 1.4 2006/01/27 04:58:39 oleg Exp $
(load "book-si.scm") ; Our complete evaluator
(define unify unify-check) ; We don't want cyclic terms
; The Unit testing framework
(define-syntax test-check
(syntax-rules ()
((_ title tested-expression expected-result)
(test-check title tested-expression expected-result #t))
((_ title tested-expression expected-result show-flag)
(begin
(cout title "...")
(let* ((expected expected-result)
(produced tested-expression))
(if (equal? expected produced)
(cout " works!" nl)
(error 'test-check
"Failed ~s: ~a~%Expected: ~a~%Computed: ~a~%"
title 'tested-expression expected produced)))))))
; the syntax of the terms is as follows
; Var ::= symbol
; Value ::= (var Var) | (lambda (Var) Exp) | call/cc
; Exp ::= Value | (app Exp Exp) | (reset Exp) | (shift Exp)
; the syntax of CPS terms is a bit different, to emphasize
; administrative lambda (which we call kappa) and full beta.
; CVar ::= symbol
; CValue ::= (kv CVar) | Exp | (kappa CVar CExp)
; CExp ::= CValue
; By the property of CPS, all kappa-abstractions are linear.
; Because we will evaluate only terms in the image of the CPS transform
; (which contain no shift, reset, call/cc), we elide the latter.
; Evaluator of kappa-terms. It is the full-beta evaluator.
; We presume that the input terms are kappa-linear and all CVars are
; unique. That's why we don't have to worry about the hygien
; and we are guaranteed that within the environment, each variable
; occurs only once.
; The evaluator is pure, and so it can do beta-expansion as well.
(define (kappa-free term result)
(fresh (v e e2)
(conde
((== term `(var ,v)) (== result #t))
((== term `(kv ,v)) (== result #f))
((== term `(lambda (,v) ,e)) (kappa-free e result))
((== term `(app ,e ,e2))
(fresh (re re2)
(kappa-free e re)
(kappa-free e2 re2)
(land re re2 result)))
((== term `(kappa ,v ,e)) (== result #f))
)))
(define (land e1 e2 e3)
(conde
((== e1 #t) (== e2 e3))
((== e1 #f) (== e3 #f))))
; pure lookup relation: find out the association
; for a given variable in an associative list
; (lookup var lst out) holds if the pair (var . out) occurs in lst.
(define (lookup var lst out)
(fresh (h t)
(== lst (cons h t))
(conde
((== h (cons var out)))
((lookup var t out)))))
(define (eval-kappa-linear term out)
(eval-kappa-env term out '() '()))
; See the algorithm in ...
; It is extended here to handle `constants' and non-reducible lambdas
; It is the general evaluator. The only requirement is that
; the term must be closed with respect to kv/kappa.
(define (eval-kappa-env term out env stack)
(fresh (var body e e2 kff)
(kappa-free term kff)
(conde
((== kff #t) ; non-reducible further, no redex
(eval-unroll term out stack))
((== term `(lambda (,var) ,body)) ; Do eval under lambda. No redex
(== kff #f)
(eval-kappa-env body e env '())
(eval-unroll `(lambda (,var) ,e) out stack))
((== stack '())
(== term `(kappa ,var ,body)) ; Do eval under naked kappa
(let ((newvar var)) ; (genvar var))) -- don't worry about hygiene...
(fresh ()
(eval-kappa-env body e (cons (list var '() `(kv ,newvar)) env) '())
(== out `(kappa ,newvar ,e)))))
((== term `(kappa ,var ,body)) ; Redex; kappa with non-empty stack
(fresh (se newstack)
(== stack (cons se newstack))
(eval-kappa-env body out
(cons (cons var se) env) newstack)))
((== env '()) (== term `(kv ,var)) ; variable intr when diving under kappa
(eval-unroll term out stack))
((== term `(kv ,var)) ; variable lookup
(fresh (newenv newterm)
(lookup var env (list newenv newterm))
(eval-kappa-env newterm out newenv stack)))
((== term `(app ,e ,e2))
(== kff #f) ; the #t case is covered already
(eval-kappa-env e out env (cons (list env e2) stack)))
)))
; unroll the stack of applications. We know that there will be
; no redex at the term
(define (eval-unroll term out stack)
(conde
((== stack '()) (== term out))
(else
(fresh (env newterm newstack e)
(== stack (cons (list env newterm) newstack))
(eval-kappa-env newterm e env '())
(eval-unroll `(app ,term ,e) out newstack)))))
(test-check 'eval-1
(run 10 (q) (fresh (x) (eval-kappa-linear '(var x) q)))
'((var x)))
(test-check 'eval-2
(run 10 (q) (eval-kappa-linear '(kappa x (kv x)) q))
'((kappa x (kv x))))
(test-check 'eval-expansion
(run 3 (q) (fresh (x) (eval-kappa-linear q '(var x))))
'((var x)
(app (kappa _.0 (var x)) (var _.1))
(app (kappa _.0 (kv _.0)) (var x))))
(test-check 'eval-3
(run 10 (q) (eval-kappa-linear
`(app (kappa x (kv x)) (kappa y (kv y))) q))
'((kappa y (kv y))))
(test-check 'eval-4
(run 10 (q) (eval-kappa-linear `(app (kappa x (app (kv x) (var x)))
(var kk))
q))
'((app (var kk) (var x))))
(test-check 'eval-5
(run 10 (q)
(eval-kappa-linear
`(app
(kappa
x
(app (kv x)
(app (kappa y (app (kv y) (var x))) (kappa z (kv z)))))
(var kk))
q))
'((app (var kk) (var x))))
; Basic CPS Transform: Fischer
(define (fischer-cps term cps)
(fresh (v e e* e2)
(conde
((== term `(var ,v))
(== cps `(kappa k (app (kv k) ,term))))
((== term `(lambda (,v) ,e))
(fischer-cps e e*)
(== cps
`(kappa k (app (kv k) (lambda (,v) ,e*)))))
((== term `(app ,e ,e2))
(fresh (e2*)
(fischer-cps e e*)
(fischer-cps e2 e2*)
(== cps
`(kappa k
(app ,e* (kappa f
(app ,e2*
(kappa n (app (app (kv f) (kv n)) (kv k))))))))))
((== term 'call/cc)
(== cps
'(kappa k
(app (kv k)
(kappa f
(kappa k1
(app
(app (kv f) (kappa v (kappa k2 (app (kv k1) (kv v)))))
(kv k1))))))))
((== term `(reset ,e))
(fischer-cps e e*)
(== cps
`(kappa k
(app (kv k)
(app ,e* (kappa v (kv v)))))))
((== term `(shift ,e))
(fresh (v x k2)
(fischer-cps e e*)
(== cps
`(kappa ,k
(app (app ,e*
(kappa ,x (kappa ,k2 (app ,k2 (app ,k ,x)))))
(kappa ,v ,v))))))
)))
(test-check 'cps-simple-1
(run 10 (q) (fischer-cps '(lambda (x) (var x)) q))
'((kappa
k
(app (kv k) (lambda (x) (kappa k (app (kv k) (var x))))))))
#!eof
; CPS with some reductions: Sabry and Felleisen's F2 transform
; We use '(var KK) as the initial continuation
(define (f2-cps term cps)
(fresh (cps1)
(fischer-cps term cps1)
(eval-kappa-linear `(app ,cps1 (var KK)) cps)))
; (expand `(CPS (lambda (x) (x x))))
; (lambda (#:k)
; (#:k (lambda (#:x) (lambda (#:k) (#:x #:x #:k)))))
; CPS transform of ((lambda (x) (x x)) p) is (lambda (k) (pv pv k))
(test-check 'cps-1
(run 10 (q) (f2-cps '(app (var x) (var x)) q))
'((app (app (var x) (var x)) (var kk))))
'(test-check 'cps-2
(run 1 (q) (f2-cps '(lambda (x) (app (var x) (var x))) q))
'((app (app (var x) (var kk)) (var x))))
(test-check 'cps-call/cc
(run 1 (q) (f2-cps '(app call/cc call/cc) q))
'((app (var kk) (kappa _.0 (kappa _.1 (app (var kk) _.0))))))
; CPS transform of (call/cc (call/cc call/cc)) is the same as
; that of (call/cc call/cc).
; CPS transform of (call/cc (call/cc id)) is the same as
; that of (call/cc call/cc).
(test-check 'cps-reset
(run 10 (q) (f2-cps '(reset (var x)) q))
'((app (var kk) (var x))))
'(test-check 'cps-3
(run 10 (q) (f2-cps '(shift (lambda (f) (app (var f) (var x)))) q))
'((app (var kk) (var x))))
'(run 1 (q) (fischer-cps '(app call/cc call/cc) q))
'(run 4 (q) (f2-cps q '(app (var kk) (var x))))
| true |
a32c52562b436086d1048d7d9da8fc06c2383390 | ce567bbf766df9d98dc6a5e710a77870753c7d29 | /ch8/13.scm | d3dee11fa4205cb876048e650910fda10119e1aa | []
| no_license | dott94/eopl | 1cbe2d98c948689687f88e514579e66412236fc9 | 47fadf6f2aa6ca72c831d6e2e2eccbe673129113 | refs/heads/master | 2021-01-18T06:42:35.921839 | 2015-01-21T07:06:43 | 2015-01-21T07:06:43 | 30,055,972 | 1 | 0 | null | 2015-01-30T04:21:42 | 2015-01-30T04:21:42 | null | UTF-8 | Scheme | false | false | 127 | scm | 13.scm |
;; Write a module that implements arithmetic using a representation
;; in which the integer k is represented as 5 ∗ k + 3.
| false |
e6bdc64af73052c42622080f90ac8624c6bad691 | 37c751fc27e790303b84730013217d1c8cbb60cc | /s48/exceptions/restart.scm | e3d83b43ac26b7650b588b1422bc0e637b4a0554 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
]
| permissive | gitGNU/gnu_sunterlib | e82df45894f0075e2ad2df88ce6edf0f1704c6a0 | 96d443b55c990506e81f2c893e02245b7e2b5f4c | refs/heads/master | 2023-08-06T09:32:59.463520 | 2017-03-07T14:31:05 | 2017-03-07T14:31:05 | 90,394,267 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,452 | scm | restart.scm | ;;; extremly simple restartable conditions with SRFI-34/35
;;; This file is part of the Scheme Untergrund Library.
;;; Copyright (c) 2004 by Eric Knauel.
;;; For copyright information, see the file COPYING which comes with
;;; the distribution.
;;; Example:
;;; (define-condition-type &harmless &condition
;;; harmless-condition?)
;;;
;;; (with-exception-handler
;;; (lambda (c)
;;; (cond
;;; ((harmless-condition? c)
;;; (display "Oops!")
;;; (newline)
;;; (restart c))
;;; (else
;;; (error (condition-message c)))))
;;; (lambda ()
;;; (display "Everything ok.")
;;; (newline)
;;; (raise-restartable (condition (&harmless)))
;;; (display "Never mind.")
;;; (newline)
;;; (raise-restartable (condition (&message (message "Ouch!"))))))
(define-condition-type &restartable-condition &condition
restartable-condition?
(cont restartable-condition-cont))
(define-syntax raise-restartable
(syntax-rules ()
((raise-restartable %obj)
(call-with-current-continuation
(lambda (restart-cont)
(raise
(make-compound-condition
(condition (&restartable-condition (cont restart-cont))) %obj)))))))
(define-syntax restart
(syntax-rules ()
((restart %condition)
(if (restartable-condition? %condition)
((condition-ref (extract-condition %condition &restartable-condition) 'cont) 'ignored)
(raise (condition (&message (message "not a restartable condition"))))))))
| true |
05ef68528e64d9fa0961cfbdf7f5b5681160f1f2 | eef5f68873f7d5658c7c500846ce7752a6f45f69 | /spheres/structure/multi-dimensional-array/op-tter.scm | 6f75de71fe88317a797c3a383835dacb4a41f61d | [
"MIT"
]
| permissive | alvatar/spheres | c0601a157ddce270c06b7b58473b20b7417a08d9 | 568836f234a469ef70c69f4a2d9b56d41c3fc5bd | refs/heads/master | 2021-06-01T15:59:32.277602 | 2021-03-18T21:21:43 | 2021-03-18T21:21:43 | 25,094,121 | 13 | 3 | null | null | null | null | UTF-8 | Scheme | false | false | 32,227 | scm | op-tter.scm | (define array:opt-args '(tter (3 -1 0 1) (4 0)))
(define (array:optimize f r)
(case r
((0) (let ((n0 (f))) (array:0 n0)))
((1) (let ((n0 (f 0))) (array:1 n0 (- (f 1) n0))))
((2)
(let ((n0 (f 0 0)))
(array:2 n0 (- (f 1 0) n0) (- (f 0 1) n0))))
((3)
(let ((n0 (f 0 0 0)))
(array:3
n0
(- (f 1 0 0) n0)
(- (f 0 1 0) n0)
(- (f 0 0 1) n0))))
(else
(let ((v
(do ((k 0 (+ k 1)) (v '() (cons 0 v)))
((= k r) v))))
(let ((n0 (apply f v)))
(let ((cs (array:coefficients f n0 v v)))
"bug -- the cons should be in array:n"
(cons
(apply array:n n0 cs)
(apply array:n! n0 cs))))))))
(define (array:optimize-empty r)
(cons
(lambda ks -1)
(lambda (v . kso)
(vector-set! v -1 (car (reverse kso))))))
(define (array:coefficients f n0 vs vp)
(case vp
((()) '())
(else
(set-car! vp 1)
(let ((n (- (apply f vs) n0)))
(set-car! vp 0)
(cons n (array:coefficients f n0 vs (cdr vp)))))))
(define (array:vector-index x ks) (apply (car x) ks))
(define (array:shape-index)
(cons
(lambda (r k) (+ r r k))
(lambda (v r k o) (vector-set! v (+ r r k) o))))
(define (array:empty-shape-index)
(cons
(lambda (r k) -1)
(lambda (v r k o) (vector-set! v -1 o))))
(define (array:shape-vector-index x r k) ((car x) r k))
(define (array:actor-index x k) ((car x) k))
(define (array:0 n0)
(if (= n0 0)
(cons (array:0+0) (array:0+0!))
(cons (array:0+n n0) (array:0+n! n0))))
(define (array:0+0) (lambda () 0))
(define (array:0+0!) (lambda (v o) (vector-set! v 0 o)))
(define (array:0+n n0) (lambda () n0))
(define (array:0+n! n0)
(lambda (v o) (vector-set! v n0 o)))
(define (array:1 n0 n1)
(if (= n0 0)
(case n1
((-1) (cons (array:1+0-1) (array:1+0-1!)))
((0) (cons (array:1+0+0) (array:1+0+0!)))
((1) (cons (array:1+0+1) (array:1+0+1!)))
(else (cons (array:1+0+n n1) (array:1+0+n! n1))))
(case n1
((-1) (cons (array:1+n-1 n0) (array:1+n-1! n0)))
((0) (cons (array:1+n+0 n0) (array:1+n+0! n0)))
((1) (cons (array:1+n+1 n0) (array:1+n+1! n0)))
(else
(cons (array:1+n+n n0 n1) (array:1+n+n! n0 n1))))))
(define (array:1+0-1) (lambda (k1) (- k1)))
(define (array:1+0-1!)
(lambda (v k1 o) (vector-set! v (- k1) o)))
(define (array:1+0+0) (lambda (k1) 0))
(define (array:1+0+0!)
(lambda (v k1 o) (vector-set! v 0 o)))
(define (array:1+0+1) (lambda (k1) k1))
(define (array:1+0+1!)
(lambda (v k1 o) (vector-set! v k1 o)))
(define (array:1+0+n n1) (lambda (k1) (* n1 k1)))
(define (array:1+0+n! n1)
(lambda (v k1 o) (vector-set! v (* n1 k1) o)))
(define (array:1+n-1 n0) (lambda (k1) (+ n0 (- k1))))
(define (array:1+n-1! n0)
(lambda (v k1 o) (vector-set! v (+ n0 (- k1)) o)))
(define (array:1+n+0 n0) (lambda (k1) n0))
(define (array:1+n+0! n0)
(lambda (v k1 o) (vector-set! v n0 o)))
(define (array:1+n+1 n0) (lambda (k1) (+ n0 k1)))
(define (array:1+n+1! n0)
(lambda (v k1 o) (vector-set! v (+ n0 k1) o)))
(define (array:1+n+n n0 n1)
(lambda (k1) (+ n0 (* n1 k1))))
(define (array:1+n+n! n0 n1)
(lambda (v k1 o) (vector-set! v (+ n0 (* n1 k1)) o)))
(define (array:2 n0 n1 n2)
(if (= n0 0)
(case n1
((-1)
(case n2
((-1) (cons (array:2+0-1-1) (array:2+0-1-1!)))
((0) (cons (array:2+0-1+0) (array:2+0-1+0!)))
((1) (cons (array:2+0-1+1) (array:2+0-1+1!)))
(else
(cons (array:2+0-1+n n2) (array:2+0-1+n! n2)))))
((0)
(case n2
((-1) (cons (array:2+0+0-1) (array:2+0+0-1!)))
((0) (cons (array:2+0+0+0) (array:2+0+0+0!)))
((1) (cons (array:2+0+0+1) (array:2+0+0+1!)))
(else
(cons (array:2+0+0+n n2) (array:2+0+0+n! n2)))))
((1)
(case n2
((-1) (cons (array:2+0+1-1) (array:2+0+1-1!)))
((0) (cons (array:2+0+1+0) (array:2+0+1+0!)))
((1) (cons (array:2+0+1+1) (array:2+0+1+1!)))
(else
(cons (array:2+0+1+n n2) (array:2+0+1+n! n2)))))
(else
(case n2
((-1)
(cons (array:2+0+n-1 n1) (array:2+0+n-1! n1)))
((0)
(cons (array:2+0+n+0 n1) (array:2+0+n+0! n1)))
((1)
(cons (array:2+0+n+1 n1) (array:2+0+n+1! n1)))
(else
(cons
(array:2+0+n+n n1 n2)
(array:2+0+n+n! n1 n2))))))
(case n1
((-1)
(case n2
((-1)
(cons (array:2+n-1-1 n0) (array:2+n-1-1! n0)))
((0)
(cons (array:2+n-1+0 n0) (array:2+n-1+0! n0)))
((1)
(cons (array:2+n-1+1 n0) (array:2+n-1+1! n0)))
(else
(cons
(array:2+n-1+n n0 n2)
(array:2+n-1+n! n0 n2)))))
((0)
(case n2
((-1)
(cons (array:2+n+0-1 n0) (array:2+n+0-1! n0)))
((0)
(cons (array:2+n+0+0 n0) (array:2+n+0+0! n0)))
((1)
(cons (array:2+n+0+1 n0) (array:2+n+0+1! n0)))
(else
(cons
(array:2+n+0+n n0 n2)
(array:2+n+0+n! n0 n2)))))
((1)
(case n2
((-1)
(cons (array:2+n+1-1 n0) (array:2+n+1-1! n0)))
((0)
(cons (array:2+n+1+0 n0) (array:2+n+1+0! n0)))
((1)
(cons (array:2+n+1+1 n0) (array:2+n+1+1! n0)))
(else
(cons
(array:2+n+1+n n0 n2)
(array:2+n+1+n! n0 n2)))))
(else
(case n2
((-1)
(cons
(array:2+n+n-1 n0 n1)
(array:2+n+n-1! n0 n1)))
((0)
(cons
(array:2+n+n+0 n0 n1)
(array:2+n+n+0! n0 n1)))
((1)
(cons
(array:2+n+n+1 n0 n1)
(array:2+n+n+1! n0 n1)))
(else
(cons
(array:2+n+n+n n0 n1 n2)
(array:2+n+n+n! n0 n1 n2))))))))
(define (array:2+0-1-1)
(lambda (k1 k2) (+ (- k1) (- k2))))
(define (array:2+0-1-1!)
(lambda (v k1 k2 o)
(vector-set! v (+ (- k1) (- k2)) o)))
(define (array:2+0-1+0) (lambda (k1 k2) (- k1)))
(define (array:2+0-1+0!)
(lambda (v k1 k2 o) (vector-set! v (- k1) o)))
(define (array:2+0-1+1) (lambda (k1 k2) (+ (- k1) k2)))
(define (array:2+0-1+1!)
(lambda (v k1 k2 o) (vector-set! v (+ (- k1) k2) o)))
(define (array:2+0-1+n n2)
(lambda (k1 k2) (+ (- k1) (* n2 k2))))
(define (array:2+0-1+n! n2)
(lambda (v k1 k2 o)
(vector-set! v (+ (- k1) (* n2 k2)) o)))
(define (array:2+0+0-1) (lambda (k1 k2) (- k2)))
(define (array:2+0+0-1!)
(lambda (v k1 k2 o) (vector-set! v (- k2) o)))
(define (array:2+0+0+0) (lambda (k1 k2) 0))
(define (array:2+0+0+0!)
(lambda (v k1 k2 o) (vector-set! v 0 o)))
(define (array:2+0+0+1) (lambda (k1 k2) k2))
(define (array:2+0+0+1!)
(lambda (v k1 k2 o) (vector-set! v k2 o)))
(define (array:2+0+0+n n2) (lambda (k1 k2) (* n2 k2)))
(define (array:2+0+0+n! n2)
(lambda (v k1 k2 o) (vector-set! v (* n2 k2) o)))
(define (array:2+0+1-1) (lambda (k1 k2) (+ k1 (- k2))))
(define (array:2+0+1-1!)
(lambda (v k1 k2 o) (vector-set! v (+ k1 (- k2)) o)))
(define (array:2+0+1+0) (lambda (k1 k2) k1))
(define (array:2+0+1+0!)
(lambda (v k1 k2 o) (vector-set! v k1 o)))
(define (array:2+0+1+1) (lambda (k1 k2) (+ k1 k2)))
(define (array:2+0+1+1!)
(lambda (v k1 k2 o) (vector-set! v (+ k1 k2) o)))
(define (array:2+0+1+n n2)
(lambda (k1 k2) (+ k1 (* n2 k2))))
(define (array:2+0+1+n! n2)
(lambda (v k1 k2 o) (vector-set! v (+ k1 (* n2 k2)) o)))
(define (array:2+0+n-1 n1)
(lambda (k1 k2) (+ (* n1 k1) (- k2))))
(define (array:2+0+n-1! n1)
(lambda (v k1 k2 o)
(vector-set! v (+ (* n1 k1) (- k2)) o)))
(define (array:2+0+n+0 n1) (lambda (k1 k2) (* n1 k1)))
(define (array:2+0+n+0! n1)
(lambda (v k1 k2 o) (vector-set! v (* n1 k1) o)))
(define (array:2+0+n+1 n1)
(lambda (k1 k2) (+ (* n1 k1) k2)))
(define (array:2+0+n+1! n1)
(lambda (v k1 k2 o) (vector-set! v (+ (* n1 k1) k2) o)))
(define (array:2+0+n+n n1 n2)
(lambda (k1 k2) (+ (* n1 k1) (* n2 k2))))
(define (array:2+0+n+n! n1 n2)
(lambda (v k1 k2 o)
(vector-set! v (+ (* n1 k1) (* n2 k2)) o)))
(define (array:2+n-1-1 n0)
(lambda (k1 k2) (+ n0 (- k1) (- k2))))
(define (array:2+n-1-1! n0)
(lambda (v k1 k2 o)
(vector-set! v (+ n0 (- k1) (- k2)) o)))
(define (array:2+n-1+0 n0) (lambda (k1 k2) (+ n0 (- k1))))
(define (array:2+n-1+0! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 (- k1)) o)))
(define (array:2+n-1+1 n0)
(lambda (k1 k2) (+ n0 (- k1) k2)))
(define (array:2+n-1+1! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 (- k1) k2) o)))
(define (array:2+n-1+n n0 n2)
(lambda (k1 k2) (+ n0 (- k1) (* n2 k2))))
(define (array:2+n-1+n! n0 n2)
(lambda (v k1 k2 o)
(vector-set! v (+ n0 (- k1) (* n2 k2)) o)))
(define (array:2+n+0-1 n0) (lambda (k1 k2) (+ n0 (- k2))))
(define (array:2+n+0-1! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 (- k2)) o)))
(define (array:2+n+0+0 n0) (lambda (k1 k2) n0))
(define (array:2+n+0+0! n0)
(lambda (v k1 k2 o) (vector-set! v n0 o)))
(define (array:2+n+0+1 n0) (lambda (k1 k2) (+ n0 k2)))
(define (array:2+n+0+1! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 k2) o)))
(define (array:2+n+0+n n0 n2)
(lambda (k1 k2) (+ n0 (* n2 k2))))
(define (array:2+n+0+n! n0 n2)
(lambda (v k1 k2 o) (vector-set! v (+ n0 (* n2 k2)) o)))
(define (array:2+n+1-1 n0)
(lambda (k1 k2) (+ n0 k1 (- k2))))
(define (array:2+n+1-1! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 k1 (- k2)) o)))
(define (array:2+n+1+0 n0) (lambda (k1 k2) (+ n0 k1)))
(define (array:2+n+1+0! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 k1) o)))
(define (array:2+n+1+1 n0) (lambda (k1 k2) (+ n0 k1 k2)))
(define (array:2+n+1+1! n0)
(lambda (v k1 k2 o) (vector-set! v (+ n0 k1 k2) o)))
(define (array:2+n+1+n n0 n2)
(lambda (k1 k2) (+ n0 k1 (* n2 k2))))
(define (array:2+n+1+n! n0 n2)
(lambda (v k1 k2 o)
(vector-set! v (+ n0 k1 (* n2 k2)) o)))
(define (array:2+n+n-1 n0 n1)
(lambda (k1 k2) (+ n0 (* n1 k1) (- k2))))
(define (array:2+n+n-1! n0 n1)
(lambda (v k1 k2 o)
(vector-set! v (+ n0 (* n1 k1) (- k2)) o)))
(define (array:2+n+n+0 n0 n1)
(lambda (k1 k2) (+ n0 (* n1 k1))))
(define (array:2+n+n+0! n0 n1)
(lambda (v k1 k2 o) (vector-set! v (+ n0 (* n1 k1)) o)))
(define (array:2+n+n+1 n0 n1)
(lambda (k1 k2) (+ n0 (* n1 k1) k2)))
(define (array:2+n+n+1! n0 n1)
(lambda (v k1 k2 o)
(vector-set! v (+ n0 (* n1 k1) k2) o)))
(define (array:2+n+n+n n0 n1 n2)
(lambda (k1 k2) (+ n0 (* n1 k1) (* n2 k2))))
(define (array:2+n+n+n! n0 n1 n2)
(lambda (v k1 k2 o)
(vector-set! v (+ n0 (* n1 k1) (* n2 k2)) o)))
(define (array:3 n0 n1 n2 n3)
(if (= n0 0)
(case n1
((0)
(case n2
((0)
(case n3
((0)
(cons (array:3+0+0+0+0) (array:3+0+0+0+0!)))
(else
(cons
(array:3+0+0+0+n n3)
(array:3+0+0+0+n! n3)))))
(else
(case n3
((0)
(cons
(array:3+0+0+n+0 n2)
(array:3+0+0+n+0! n2)))
(else
(cons
(array:3+0+0+n+n n2 n3)
(array:3+0+0+n+n! n2 n3)))))))
(else
(case n2
((0)
(case n3
((0)
(cons
(array:3+0+n+0+0 n1)
(array:3+0+n+0+0! n1)))
(else
(cons
(array:3+0+n+0+n n1 n3)
(array:3+0+n+0+n! n1 n3)))))
(else
(case n3
((0)
(cons
(array:3+0+n+n+0 n1 n2)
(array:3+0+n+n+0! n1 n2)))
(else
(cons
(array:3+0+n+n+n n1 n2 n3)
(array:3+0+n+n+n! n1 n2 n3))))))))
(case n1
((0)
(case n2
((0)
(case n3
((0)
(cons
(array:3+n+0+0+0 n0)
(array:3+n+0+0+0! n0)))
(else
(cons
(array:3+n+0+0+n n0 n3)
(array:3+n+0+0+n! n0 n3)))))
(else
(case n3
((0)
(cons
(array:3+n+0+n+0 n0 n2)
(array:3+n+0+n+0! n0 n2)))
(else
(cons
(array:3+n+0+n+n n0 n2 n3)
(array:3+n+0+n+n! n0 n2 n3)))))))
(else
(case n2
((0)
(case n3
((0)
(cons
(array:3+n+n+0+0 n0 n1)
(array:3+n+n+0+0! n0 n1)))
(else
(cons
(array:3+n+n+0+n n0 n1 n3)
(array:3+n+n+0+n! n0 n1 n3)))))
(else
(case n3
((0)
(cons
(array:3+n+n+n+0 n0 n1 n2)
(array:3+n+n+n+0! n0 n1 n2)))
(else
(cons
(array:3+n+n+n+n n0 n1 n2 n3)
(array:3+n+n+n+n! n0 n1 n2 n3))))))))))
(define (array:3+0+0+0+0) (lambda (k1 k2 k3) 0))
(define (array:3+0+0+0+0!)
(lambda (v k1 k2 k3 o) (vector-set! v 0 o)))
(define (array:3+0+0+0+n n3)
(lambda (k1 k2 k3) (* n3 k3)))
(define (array:3+0+0+0+n! n3)
(lambda (v k1 k2 k3 o) (vector-set! v (* n3 k3) o)))
(define (array:3+0+0+n+0 n2)
(lambda (k1 k2 k3) (* n2 k2)))
(define (array:3+0+0+n+0! n2)
(lambda (v k1 k2 k3 o) (vector-set! v (* n2 k2) o)))
(define (array:3+0+0+n+n n2 n3)
(lambda (k1 k2 k3) (+ (* n2 k2) (* n3 k3))))
(define (array:3+0+0+n+n! n2 n3)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ (* n2 k2) (* n3 k3)) o)))
(define (array:3+0+n+0+0 n1)
(lambda (k1 k2 k3) (* n1 k1)))
(define (array:3+0+n+0+0! n1)
(lambda (v k1 k2 k3 o) (vector-set! v (* n1 k1) o)))
(define (array:3+0+n+0+n n1 n3)
(lambda (k1 k2 k3) (+ (* n1 k1) (* n3 k3))))
(define (array:3+0+n+0+n! n1 n3)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ (* n1 k1) (* n3 k3)) o)))
(define (array:3+0+n+n+0 n1 n2)
(lambda (k1 k2 k3) (+ (* n1 k1) (* n2 k2))))
(define (array:3+0+n+n+0! n1 n2)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ (* n1 k1) (* n2 k2)) o)))
(define (array:3+0+n+n+n n1 n2 n3)
(lambda (k1 k2 k3) (+ (* n1 k1) (* n2 k2) (* n3 k3))))
(define (array:3+0+n+n+n! n1 n2 n3)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ (* n1 k1) (* n2 k2) (* n3 k3)) o)))
(define (array:3+n+0+0+0 n0) (lambda (k1 k2 k3) n0))
(define (array:3+n+0+0+0! n0)
(lambda (v k1 k2 k3 o) (vector-set! v n0 o)))
(define (array:3+n+0+0+n n0 n3)
(lambda (k1 k2 k3) (+ n0 (* n3 k3))))
(define (array:3+n+0+0+n! n0 n3)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ n0 (* n3 k3)) o)))
(define (array:3+n+0+n+0 n0 n2)
(lambda (k1 k2 k3) (+ n0 (* n2 k2))))
(define (array:3+n+0+n+0! n0 n2)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ n0 (* n2 k2)) o)))
(define (array:3+n+0+n+n n0 n2 n3)
(lambda (k1 k2 k3) (+ n0 (* n2 k2) (* n3 k3))))
(define (array:3+n+0+n+n! n0 n2 n3)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ n0 (* n2 k2) (* n3 k3)) o)))
(define (array:3+n+n+0+0 n0 n1)
(lambda (k1 k2 k3) (+ n0 (* n1 k1))))
(define (array:3+n+n+0+0! n0 n1)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ n0 (* n1 k1)) o)))
(define (array:3+n+n+0+n n0 n1 n3)
(lambda (k1 k2 k3) (+ n0 (* n1 k1) (* n3 k3))))
(define (array:3+n+n+0+n! n0 n1 n3)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ n0 (* n1 k1) (* n3 k3)) o)))
(define (array:3+n+n+n+0 n0 n1 n2)
(lambda (k1 k2 k3) (+ n0 (* n1 k1) (* n2 k2))))
(define (array:3+n+n+n+0! n0 n1 n2)
(lambda (v k1 k2 k3 o)
(vector-set! v (+ n0 (* n1 k1) (* n2 k2)) o)))
(define (array:3+n+n+n+n n0 n1 n2 n3)
(lambda (k1 k2 k3)
(+ n0 (* n1 k1) (* n2 k2) (* n3 k3))))
(define (array:3+n+n+n+n! n0 n1 n2 n3)
(lambda (v k1 k2 k3 o)
(vector-set!
v
(+ n0 (* n1 k1) (* n2 k2) (* n3 k3))
o)))
(define (array:n n0 n1 n2 n3 n4 . ns)
(lambda (k1 k2 k3 k4 . ks)
(do ((ns ns (cdr ns))
(ks ks (cdr ks))
(dx
(+ n0 (* n1 k1) (* n2 k2) (* n3 k3) (* n4 k4))
(+ dx (* (car ns) (car ks)))))
((null? ns) dx))))
(define (array:n! n0 n1 n2 n3 n4 . ns)
(lambda (v k1 k2 k3 k4 . ks)
(do ((ns ns (cdr ns))
(ks ks (cdr ks))
(dx
(+ n0 (* n1 k1) (* n2 k2) (* n3 k3) (* n4 k4))
(+ dx (* (car ns) (car ks)))))
((null? ns) (vector-set! v dx (car ks))))))
(define (array:maker r)
(case r
((0) array:0)
((1) array:1)
((2) array:2)
((3) array:3)
(else
(lambda (n0 n1 n2 n3 n4 . ns)
"bug -- the cons should be in array:n"
(cons
(apply array:n n0 n1 n2 n3 n4 ns)
(apply array:n! n0 n1 n2 n3 n4 ns))))))
(define array:indexer/vector
(let ((em
(vector
(lambda (x i) ((car x)))
(lambda (x i) ((car x) (vector-ref i 0)))
(lambda (x i)
((car x) (vector-ref i 0) (vector-ref i 1)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)
(vector-ref i 4)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)
(vector-ref i 4)
(vector-ref i 5)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)
(vector-ref i 4)
(vector-ref i 5)
(vector-ref i 6)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)
(vector-ref i 4)
(vector-ref i 5)
(vector-ref i 6)
(vector-ref i 7)))
(lambda (x i)
((car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)
(vector-ref i 4)
(vector-ref i 5)
(vector-ref i 6)
(vector-ref i 7)
(vector-ref i 8)))))
(it
(lambda (w)
(lambda (x i)
(apply
(car x)
(vector-ref i 0)
(vector-ref i 1)
(vector-ref i 2)
(vector-ref i 3)
(vector-ref i 4)
(vector-ref i 5)
(vector-ref i 6)
(vector-ref i 7)
(vector-ref i 8)
(vector-ref i 9)
(do ((ks '() (cons (vector-ref i u) ks))
(u (- w 1) (- u 1)))
((< u 10) ks)))))))
(lambda (r) (if (< r 10) (vector-ref em r) (it r)))))
(define array:indexer/array
(let ((em
(vector
(lambda (x v i) ((car x)))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))
(vector-ref v (array:actor-index i 4))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))
(vector-ref v (array:actor-index i 4))
(vector-ref v (array:actor-index i 5))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))
(vector-ref v (array:actor-index i 4))
(vector-ref v (array:actor-index i 5))
(vector-ref v (array:actor-index i 6))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))
(vector-ref v (array:actor-index i 4))
(vector-ref v (array:actor-index i 5))
(vector-ref v (array:actor-index i 6))
(vector-ref v (array:actor-index i 7))))
(lambda (x v i)
((car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))
(vector-ref v (array:actor-index i 4))
(vector-ref v (array:actor-index i 5))
(vector-ref v (array:actor-index i 6))
(vector-ref v (array:actor-index i 7))
(vector-ref v (array:actor-index i 8))))))
(it
(lambda (w)
(lambda (x v i)
(apply
(car x)
(vector-ref v (array:actor-index i 0))
(vector-ref v (array:actor-index i 1))
(vector-ref v (array:actor-index i 2))
(vector-ref v (array:actor-index i 3))
(vector-ref v (array:actor-index i 4))
(vector-ref v (array:actor-index i 5))
(vector-ref v (array:actor-index i 6))
(vector-ref v (array:actor-index i 7))
(vector-ref v (array:actor-index i 8))
(vector-ref v (array:actor-index i 9))
(do ((ks
'()
(cons
(vector-ref
v
(array:actor-index i u))
ks))
(u (- w 1) (- u 1)))
((< u 10) ks)))))))
(lambda (r) (if (< r 10) (vector-ref em r) (it r)))))
(define array:applier-to-vector
(let ((em
(vector
(lambda (p v) (p))
(lambda (p v) (p (vector-ref v 0)))
(lambda (p v)
(p (vector-ref v 0) (vector-ref v 1)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)
(vector-ref v 4)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)
(vector-ref v 4)
(vector-ref v 5)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)
(vector-ref v 4)
(vector-ref v 5)
(vector-ref v 6)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)
(vector-ref v 4)
(vector-ref v 5)
(vector-ref v 6)
(vector-ref v 7)))
(lambda (p v)
(p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)
(vector-ref v 4)
(vector-ref v 5)
(vector-ref v 6)
(vector-ref v 7)
(vector-ref v 8)))))
(it
(lambda (r)
(lambda (p v)
(apply
p
(vector-ref v 0)
(vector-ref v 1)
(vector-ref v 2)
(vector-ref v 3)
(vector-ref v 4)
(vector-ref v 5)
(vector-ref v 6)
(vector-ref v 7)
(vector-ref v 8)
(vector-ref v 9)
(do ((k r (- k 1))
(r
'()
(cons (vector-ref v (- k 1)) r)))
((= k 10) r)))))))
(lambda (r) (if (< r 10) (vector-ref em r) (it r)))))
(define array:applier-to-actor
(let ((em
(vector
(lambda (p a) (p))
(lambda (p a) (p (array-ref a 0)))
(lambda (p a)
(p (array-ref a 0) (array-ref a 1)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)
(array-ref a 4)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)
(array-ref a 4)
(array-ref a 5)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)
(array-ref a 4)
(array-ref a 5)
(array-ref a 6)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)
(array-ref a 4)
(array-ref a 5)
(array-ref a 6)
(array-ref a 7)))
(lambda (p a)
(p
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)
(array-ref a 4)
(array-ref a 5)
(array-ref a 6)
(array-ref a 7)
(array-ref a 8)))))
(it
(lambda (r)
(lambda (p a)
(apply
a
(array-ref a 0)
(array-ref a 1)
(array-ref a 2)
(array-ref a 3)
(array-ref a 4)
(array-ref a 5)
(array-ref a 6)
(array-ref a 7)
(array-ref a 8)
(array-ref a 9)
(do ((k r (- k 1))
(r '() (cons (array-ref a (- k 1)) r)))
((= k 10) r)))))))
(lambda (r)
"These are high level, hiding implementation at call site."
(if (< r 10) (vector-ref em r) (it r)))))
(define array:applier-to-backing-vector
(let ((em
(vector
(lambda (p ai av) (p))
(lambda (p ai av)
(p (vector-ref av (array:actor-index ai 0))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))
(vector-ref av (array:actor-index ai 4))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))
(vector-ref av (array:actor-index ai 4))
(vector-ref av (array:actor-index ai 5))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))
(vector-ref av (array:actor-index ai 4))
(vector-ref av (array:actor-index ai 5))
(vector-ref av (array:actor-index ai 6))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))
(vector-ref av (array:actor-index ai 4))
(vector-ref av (array:actor-index ai 5))
(vector-ref av (array:actor-index ai 6))
(vector-ref av (array:actor-index ai 7))))
(lambda (p ai av)
(p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))
(vector-ref av (array:actor-index ai 4))
(vector-ref av (array:actor-index ai 5))
(vector-ref av (array:actor-index ai 6))
(vector-ref av (array:actor-index ai 7))
(vector-ref av (array:actor-index ai 8))))))
(it
(lambda (r)
(lambda (p ai av)
(apply
p
(vector-ref av (array:actor-index ai 0))
(vector-ref av (array:actor-index ai 1))
(vector-ref av (array:actor-index ai 2))
(vector-ref av (array:actor-index ai 3))
(vector-ref av (array:actor-index ai 4))
(vector-ref av (array:actor-index ai 5))
(vector-ref av (array:actor-index ai 6))
(vector-ref av (array:actor-index ai 7))
(vector-ref av (array:actor-index ai 8))
(vector-ref av (array:actor-index ai 9))
(do ((k r (- k 1))
(r
'()
(cons
(vector-ref
av
(array:actor-index ai (- k 1)))
r)))
((= k 10) r)))))))
(lambda (r)
"These are low level, exposing implementation at call site."
(if (< r 10) (vector-ref em r) (it r)))))
(define (array:index/vector r x v)
((array:indexer/vector r) x v))
(define (array:index/array r x av ai)
((array:indexer/array r) x av ai))
(define (array:apply-to-vector r p v)
((array:applier-to-vector r) p v))
(define (array:apply-to-actor r p a)
((array:applier-to-actor r) p a))
| false |
3db57fd767052cbaa6028985ed9063be56ee5c05 | defeada37d39bca09ef76f66f38683754c0a6aa0 | /mscorlib/system/string-comparer.sls | 67be0ec447691c3e921cc9ef39d16b777c1a2f61 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 2,093 | sls | string-comparer.sls | (library (system string-comparer)
(export is?
string-comparer?
get-hash-code
create
compare
equals?
current-culture
current-culture-ignore-case
invariant-culture
invariant-culture-ignore-case
ordinal
ordinal-ignore-case)
(import (ironscheme-clr-port))
(define (is? a) (clr-is System.StringComparer a))
(define (string-comparer? a) (clr-is System.StringComparer a))
(define-method-port
get-hash-code
System.StringComparer
GetHashCode
(System.Int32 System.String)
(System.Int32 System.Object))
(define-method-port
create
System.StringComparer
Create
(static:
System.StringComparer
System.Globalization.CultureInfo
System.Boolean))
(define-method-port
compare
System.StringComparer
Compare
(System.Int32 System.String System.String)
(System.Int32 System.Object System.Object))
(define-method-port
equals?
System.StringComparer
Equals
(System.Boolean System.String System.String)
(System.Boolean System.Object System.Object))
(define-field-port
current-culture
#f
#f
(static: property:)
System.StringComparer
CurrentCulture
System.StringComparer)
(define-field-port
current-culture-ignore-case
#f
#f
(static: property:)
System.StringComparer
CurrentCultureIgnoreCase
System.StringComparer)
(define-field-port
invariant-culture
#f
#f
(static: property:)
System.StringComparer
InvariantCulture
System.StringComparer)
(define-field-port
invariant-culture-ignore-case
#f
#f
(static: property:)
System.StringComparer
InvariantCultureIgnoreCase
System.StringComparer)
(define-field-port
ordinal
#f
#f
(static: property:)
System.StringComparer
Ordinal
System.StringComparer)
(define-field-port
ordinal-ignore-case
#f
#f
(static: property:)
System.StringComparer
OrdinalIgnoreCase
System.StringComparer))
| false |
8810aab7f75fe12bba064d78289e925eafd8c5bb | ec5b4a92882f80b3f62eac8cbd059fb1f000cfd9 | /functional/scheme/time-new.ss | d41971c0c55613cf5cbb2c750b2a28dc3ed2eab9 | []
| no_license | ggem/alpa | ee35ffc91d9f4b1d540ce8b2207595813e488e5f | 4f53b888b5a5b4ffebd220c6e0458442325fbff2 | refs/heads/master | 2019-01-02T03:12:17.899768 | 2005-01-04T03:43:12 | 2005-01-04T03:43:12 | 42,612,681 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,043 | ss | time-new.ss | ;;;
;;; time.ss
;;;
;;; procedures to handle runtime and garbage collection time
;;;
(define make-time
(lambda (time time+gc)
(#%fxlogor time (#%fxsll time+gc 15))))
(define time->runtime
(lambda (time)
(#%fxlogand time #b111111111111111)))
(define time->runtime+gc
(lambda (time)
(#%fxsrl time 15)))
(define run-time
(lambda ()
(let ([stt (statistics)])
(let ([cpu-time (vector-ref stt 1)]
[gc-time (vector-ref stt 5)])
(make-time (- cpu-time gc-time) cpu-time)))))
(define time-add
(lambda (t1 t2)
(make-time
(+ (time->runtime t1) (time->runtime t2))
(+ (time->runtime+gc t1) (time->runtime+gc t2)))))
(define time-minus
(lambda (t1 t2)
(make-time
(- (time->runtime t1) (time->runtime t2))
(- (time->runtime+gc t1) (time->runtime+gc t2)))))
(define time-divide
(lambda (t n)
(make-time (/ (time->runtime t) n) (/ (time->runtime+gc t) n))))
(define time-multiply
(lambda (t n)
(make-time (* (time->runtime t) n) (* (time->runtime+gc t) n))))
| false |
d85fc7f6d1d66dd0650d84abec377bc522864577 | 6b961ef37ff7018c8449d3fa05c04ffbda56582b | /bbn_cl/mach/runtime/Xgraph.scm | 0e9c19646d10e7aa63ba11b5f7880b92277e204c | []
| no_license | tinysun212/bbn_cl | 7589c5ac901fbec1b8a13f2bd60510b4b8a20263 | 89d88095fc2a71254e04e57cf499ae86abf98898 | refs/heads/master | 2021-01-10T02:35:18.357279 | 2015-05-26T02:44:00 | 2015-05-26T02:44:00 | 36,267,589 | 4 | 3 | null | null | null | null | UTF-8 | Scheme | false | false | 29,389 | scm | Xgraph.scm | ;;; -*-Scheme-*-
;;;
<<<<<<< Xgraph.scm
;;; $Header: Xgraph.scm,v 13.90 88/06/06 08:59:46 ajc Exp $
=======
;;; $Header: Xgraph.scm,v 13.90 88/06/06 08:59:46 ajc Exp $
>>>>>>> 13.80.2.1
;;;
;;; Copyright (c) 1987 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
;;; Electrical Engineering and Computer Science. Permission to
;;; copy this software, to redistribute it, and to use it for any
;;; purpose is granted, subject to the following restrictions and
;;; understandings.
;;;
;;; 1. Any copy made of this software must include this copyright
;;; notice in full.
;;;
;;; 2. Users of this software agree to make their best efforts (a)
;;; to return to the MIT Scheme project any improvements or
;;; extensions that they make, so that these may be included in
;;; future releases; and (b) to inform MIT of noteworthy uses of
;;; this software.
;;;
;;; 3. All materials developed as a consequence of the use of this
;;; software shall duly acknowledge such use, in accordance with
;;; the usual standards of acknowledging credit in academic
;;; research.
;;;
;;; 4. MIT has made no warrantee or representation that the
;;; operation of this software will be error-free, and MIT is
;;; under no obligation to provide any services, by way of
;;; maintenance, update, or otherwise.
;;;
;;; 5. In conjunction with products arising from the use of this
;;; material, there shall be no use of the name of the
;;; Massachusetts Institute of Technology nor of any adaptation
;;; thereof in any advertising, promotional, or sales literature
;;; without prior written consent from MIT in each case.
;;;; X Graphics Interface
;;; Written by James Anderson.
(declare (usual-integrations))
;;; interface declarations and argument documentation
;;; please excuse the length of the description; it keeps all the information
;;; in one place. the notation is:
;;; ( <function-name> <arguments ...> ) -> <values>
;;; a number of functions return different values depending on the display.
;;; this is the case where functions may not be implemented for a given
;;; display, or if the display interface established ideosyncratic
;;; conventions.
;;;
;;; the values include:
;;; NIL for a unsuccessful invocation, as would be the case
;;; when graphics is not initialized.
;;; T for functions which otherwise return no value
;;; display-id a handle on an open display
;;; window-id a handle on a window. these handles
;;; are display specific.
;;; color-pixel-id a handle on a color which may be used with draw
;;; operations. these are display specific.
;;; color-tile-id a handle on a color-tile which may be used with fill
;;; operations. these are display specific.
;;; graphics-function a display specific identifier for a
;;; function to be used to compute the displayed
;;; pixel values.
;;; *-location float or fixed quantities which specify coordinates
;;; xy values are returned as cons pairs.
;;; buttons mouse button state. bit mask for left, middle, right
;;; cursor-id a handle on an X cursor
;;;
;;; in most cases, the arguments should be generated by function evaluation.
;;; this will assure that application code is not hardware specific.
;;; the following arguments are used to functions which generate the
;;; display specific handles:
;;; display-name "tty", "penplot", "pga", "pc", "X", NIL
;;; specify the display to be chosen, should options
;;; be available. NIL specifies the default display.
;;; pattern-index 0 - 9 : selects from among the default patterns.
;;; bit-pattern is used to generate an X line pattern.
;;; (red green blue) are color levels, normalized to 65535
;;; color-name is the string representation of the name for a
;;; given color.
;;; color-*-id as generated by a get-* call, 0 to specify background,
;;; -1 to indicate foreground.
;;; graphics-function as generated by get-graphics-function, or
;;; NIL to indicate the display-function current for the
;;; current window.
;;; cursor-bits list of 16 16-bit values used to construct the cursor
;;; cursor-name cursor name. "cross", "null", and "arrow"
;;; are defined internally. other are located in
;;; /usr/include/X/cursors.
; standard graphics functions bindings
(define init-graphics)
(define reset-graphics)
(define clear-graphics)
(define draw-point)
(define clear-point)
(define is-point-on?)
(define position-pen)
(define draw-line-to)
(define graphics-draw)
(define graphics-draw-relative)
(define graphics-rectangle)
(define graphics-rectangle-relative)
(define graphics-poly)
(define graphics-poly-relative)
(define graphics-arc)
(define graphics-circle)
(define graphics-pixel)
(define graphics-label)
(define PCS-Machine-Type #!FALSE)
(define graphics-package
(let
((graphics-initialize (make-primitive-procedure 'GRAPHICS-INITIALIZE))
;;(graphics-initialize display-name) -> [display-id | NIL]
;;
(graphics-done (make-primitive-procedure 'GRAPHICS-DONE))
;;(graphics-done) -> [T | NIL]
;;
(graphics-set-display! (make-primitive-procedure 'GRAPHICS-SET-DISPLAY!))
;;(graphics-set-display! display-id) -> [T | NIL]
;;
(prim-graphics-open-window (make-primitive-procedure
'GRAPHICS-OPEN-WINDOW))
;;(prim-graphics-open-window x y w h) -> [window-id | NIL]
;;
(graphics-set-window! (make-primitive-procedure 'GRAPHICS-SET-WINDOW!))
;;(graphics-set-window! window-id) -> [T | NIL]
;;
(graphics-close-window (make-primitive-procedure 'GRAPHICS-CLOSE-WINDOW))
;;(graphics-close-window window-id) -> [T | NIL]
;;
(prim-graphics-configure-window (make-primitive-procedure
'GRAPHICS-CONFIGURE-WINDOW))
;;(prim-graphics-configure-window window-id x y w h) -> [T | NIL ]
;;
(graphics-map-window (make-primitive-procedure 'GRAPHICS-MAP-WINDOW))
;;(graphics-map-window window-id) -> [ T | NIL ]
;;
(graphics-unmap-window (make-primitive-procedure 'GRAPHICS-UNMAP-WINDOW))
;;(graphics-unmap-window window-id) -> [ T | NIL ]
;;
(graphics-text (make-primitive-procedure 'GRAPHICS-TEXT))
;;(graphics-text) -> [T | NIL]
;;
(graphics-graphics (make-primitive-procedure 'GRAPHICS-GRAPHICS))
;;(graphics-graphics) -> [T | NIL]
;;
(graphics-set-flush! (make-primitive-procedure 'GRAPHICS-SET-FLUSH!))
;;(graphics-set-flush! [T | NIL]) -> [T | NIL]
;;
(graphics-flush (make-primitive-procedure 'GRAPHICS-FLUSH))
;;(graphics-flush) -> [T | NIL]
;;
;;
(graphics-clear (make-primitive-procedure 'GRAPHICS-CLEAR))
;;(graphics-clear) -> [T | NIL]
;;
(graphics-pixfill (make-primitive-procedure 'GRAPHICS-PIXFILL))
(graphics-flood (make-primitive-procedure 'GRAPHICS-PIXFILL))
;;(graphics-pixfil color-pixel-id) -> [T | NIL]
;;
(graphics-tilefill (make-primitive-procedure 'GRAPHICS-TILEFILL))
;;(graphics-tilefill color-tile-id) -> [T | NIL]
;;
(graphics-set-function! (make-primitive-procedure
'GRAPHICS-SET-FUNCTION!))
;;(graphics-set-function graphics-function) -> [T | NIL]
;;
(graphics-set-fill-function! (make-primitive-procedure
'GRAPHICS-SET-FILL-FUNCTION!))
;;(graphics-set-fill-function! graphics-function) -> [T | NIL]
;;
(graphics-set-draw-function! (make-primitive-procedure
'GRAPHICS-SET-DRAW-FUNCTION!))
;;(graphics-set-draw-function! graphics-function) -> [T | NIL]
;;
(graphics-set-poly-operation! (make-primitive-procedure
'GRAPHICS-SET-POLY-OPERATION!))
;;(graphics-set-poly-operation! polygon-operation) -> [T | NIL]
;;
(graphics-set-draw-pattern! (make-primitive-procedure
'GRAPHICS-SET-DRAW-PATTERN!))
;;(graphics-set-draw-pattern! [pattern-index | bit-pattern]) -> [T | NIL]
;;
(graphics-set-color! (make-primitive-procedure 'GRAPHICS-SET-COLOR!))
;;(graphics-set-color! [color-pixel-id | 0 ]) -> [T | NIL]
;;
(graphics-set-draw-color! (make-primitive-procedure
'GRAPHICS-SET-DRAW-COLOR!))
;;(graphics-set-draw-color! [color-pixel-id | 0 ]) -> [T | NIL]
;;
(graphics-set-fill-color! (make-primitive-procedure
'GRAPHICS-SET-FILL-COLOR!))
;;(graphics-set-fill-color! [color-tile-id | 0 ]) -> [T | NIL]
;;
(graphics-set-pen! (make-primitive-procedure 'GRAPHICS-SET-PEN!))
;;(graphics-set-pen! [ color-pixel-id | 0]) -> [T | NIL]
;;
(graphics-define-pen (make-primitive-procedure 'GRAPHICS-DEFINE-PEN))
;;(graphics-define-pen [(pattern-index color-pixel-id) | X
;; (pattern-index hue intensity saturation)] ) Penplot
;; -> [T | NIL]
;;
(graphics-set-cursor! (make-primitive-procedure 'GRAPHICS-SET-CURSOR!))
;;(graphics-set-cursor! cursor-id) -> [ T | NIL ]
;;
(graphics-get-window (make-primitive-procedure 'GRAPHICS-GET-WINDOW))
;;(graphics-get-draw-pattern) -> [ window-id | nil ]
;;
(graphics-get-draw-pattern (make-primitive-procedure
'GRAPHICS-GET-DRAW-PATTERN))
;;(graphics-get-draw-pattern [ pattern-name | 0]) -> [pattern-index | NIL]
;;
(graphics-get-draw-color (make-primitive-procedure
'GRAPHICS-GET-DRAW-COLOR))
;;(graphics-get-draw-color [(red green blue) | color-name |
;; "foreground" | "background" ] ) -> [color-pixel-id | NIL]
;;
(graphics-get-fill-color (make-primitive-procedure
'GRAPHICS-GET-FILL-COLOR))
;;(graphics-get-fill-color [(red green blue) | color-name |
;; "foreground" | "background" ] ) -> [color-tile-id | NIL]
;;
(prim-graphics-get-cursor (make-primitive-procedure
'GRAPHICS-GET-CURSOR))
;;(prim-graphics-get-cursor [ (bits-0 ... bits-n) | cursor-name ]
;; graphics-function width height xoff yoff )
;; -> cursor-id
;;
(graphics-get-position (make-primitive-procedure 'GRAPHICS-GET-POSITION))
;;(graphics-get-position) -> [ (pen-x-location . pen-y-location) | NIL]
;;
(graphics-get-window-size (make-primitive-procedure
'GRAPHICS-GET-WINDOW-SIZE))
;;(graphics-get-window-size) -> [(window-width . window-height) | NIL]
;;
(graphics-get-window-position (make-primitive-procedure
'GRAPHICS-GET-WINDOW-POSITION))
;;(graphics-get-window-position) -> [(window-x . window-y) | NIL]
;;
(graphics-get-mouse-position (make-primitive-procedure
'GRAPHICS-GET-MOUSE-POSITION))
;;(graphics-get-mouse-position [window-id | NIL]) ->
;; [ (pen-x-location . pen-y-location) | NIL]
;;
(graphics-get-mouse-buttons (make-primitive-procedure
'GRAPHICS-GET-MOUSE-BUTTONS))
;;(graphics-get-mouse-buttons [window-id | nil]) -> [ button-state | NIL ]
;;
(graphics-get-mouse-window (make-primitive-procedure
'GRAPHICS-GET-MOUSE-WINDOW))
;;(graphics-get-mouse-window [window-id | NIL] ) -> [window-id | NIL]
;;
(graphics-get-event (make-primitive-procedure
'GRAPHICS-GET-EVENT))
;;(graphics-get-event window-id type) -> [window-id | NIL]
;; note that values passed in are modified
;;
(graphics-get-event-position (make-primitive-procedure
'GRAPHICS-GET-EVENT-POSITION))
;;(graphics-get-event-position) -> [ (xloc . yloc) | NIL ]
;;
(graphics-get-event-window (make-primitive-procedure
'GRAPHICS-GET-EVENT-WINDOW))
;;(graphics-get-event-window) -> [window-id | NIL]
;;
(graphics-get-event-detail (make-primitive-procedure
'GRAPHICS-GET-EVENT-DETAIL))
;;(graphics-get-event-detail field) -> [field-value | NIL ]
;;
(graphics-put-event (make-primitive-procedure
'GRAPHICS-PUT-EVENT))
;;(graphics-put-event window-id type args) -> [window-id | NIL]
;;
(graphics-select-event (make-primitive-procedure
'GRAPHICS-SELECT-EVENT))
;;(graphics-select-event window-id type) -> [T | NIL]
;;
(graphics-get-function (make-primitive-procedure
'GRAPHICS-GET-FUNCTION))
;;(graphics-get-function) -> [graphics-function | NIL]
;;
;;
(graphics-move (make-primitive-procedure 'GRAPHICS-MOVE))
;;(graphics-move x-location y-location) -> [T | NIL]
;;
(graphics-move-relative (make-primitive-procedure
'GRAPHICS-MOVE-RELATIVE))
;;(graphics-move-relative x-displacement y-displacement) -> [T | NIL]
;;
(prim-graphics-draw (make-primitive-procedure 'GRAPHICS-DRAW))
;;(graphics-draw to-x-location to-y-location
;; [graphics-function | NIL]) -> [T | NIL]
;;
(prim-graphics-draw-relative (make-primitive-procedure
'GRAPHICS-DRAW-RELATIVE))
;;(graphics-draw to-x-displacement to-y-displacement
;; [graphics-function | NIL]) -> [T | NIL]
;;
(prim-graphics-rectangle (make-primitive-procedure 'GRAPHICS-RECTANGLE))
;;(graphics-rectangle to-x-location to-y-location
;; [graphics-function | NIL]) -> [T | NIL]
;;
(prim-graphics-rectangle-relative (make-primitive-procedure
'GRAPHICS-RECTANGLE-RELATIVE))
;;(graphics-rectangle-relative to-x-displacement to-y-displacement
;; [graphics-function | NIL]) -> [T | NIL]
;;
(prim-graphics-poly (make-primitive-procedure 'GRAPHICS-POLY))
;;(graphics-poly vertex-list [graphics-function | NIL])
;;
(prim-graphics-poly-relative (make-primitive-procedure 'GRAPHICS-POLY-RELATIVE))
;;(graphics-poly-relative vertex-list [graphics-function | NIL])
;;
(prim-graphics-arc (make-primitive-procedure 'GRAPHICS-ARC))
;;(graphics-arc radius start-angle end-angle
;; [graphics-function | NIL]) -> [T | NIL]
;;
(prim-graphics-circle (make-primitive-procedure 'GRAPHICS-CIRCLE))
;;(graphics-circle radius [graphics-function | NIL]) -> [T | NIL]
;;
(prim-graphics-pixel (make-primitive-procedure 'GRAPHICS-PIXEL))
;;(graphics-pixel pixel-x-location pixel-y-location
;; [graphics-function | NIL] ) -> [T | NIL]
;;
;;
(prim-graphics-label (make-primitive-procedure 'GRAPHICS-LABEL))
;;(graphics-label text-string) -> [T | NIL]
;;
(graphics-set-letter (make-primitive-procedure 'GRAPHICS-SET-LETTER))
;;(graphics-set-letter (height aspect rotate slant))-> Nil X
;; -> [T | NIL] Penplot
;;
(graphics-scl3 (make-primitive-procedure 'GRAPHICS-SCL3))
;;(graphics-scl3 ?) -> NIL X
;; -> [T | NIL] Penplot
;;
(graphics-splot3 (make-primitive-procedure 'GRAPHICS-SPLOT3))
;;(graphics-splot3 ?) -> NIL X
;; -> [T | NIL] Penplot
(toggle-alpha-raster (make-primitive-procedure 'GRAPHICS-TEXT))
(toggle-graphics-raster (make-primitive-procedure 'GRAPHICS-GRAPHICS))
(load-picture (make-primitive-procedure 'LOAD-PICTURE))
;;not yet implemented
(store-picture (make-primitive-procedure 'STORE-PICTURE))
;;not yet implemented
;; manifest constants
;; fill and frame modes for polygon draw operations
(NIL #!FALSE)
(t #!TRUE)
(*black* )
(*white* )
(*red-fill*)
(*blue-fill*)
(*green-fill*)
(*cyan-fill*)
(*magenta-fill*)
(*yellow-fill*)
(*white-fill*)
(*black-fill*)
(*gray-fill*)
(*red-draw*)
(*blue-draw*)
(*green-draw*)
(*cyan-draw*)
(*magenta-draw*)
(*yellow-draw*)
(*white-draw*)
(*black-draw*)
(*gray-draw*)
(*graphics-bkgd-color* )
(*graphics-frgd-color* )
(*graphics-color* )
(*graphics-draw-pattern* 0)
(*current-window* 0)
(*current-display* 0)
(*draw-pattern-masks* #(#b1111111111111111;; 0
#b0001000100010001;; 1
#b1111000011110000;; 2
#b1100101011001010;; 3
#b1110110011101100;; 4
#b1111010101111010;; 5
#b1110111011101110;; 6
#b1100110011001100;; 7
#b1101001101001100;; 8
#b1010101010101010;; 9
))
;; polygon operations
(*PolyFill* 1)
(*PolyFrame* 2)
(*PolyFrameFill* 3)
(*TerminalType* 0)
(*VT125* 1)
(*VS100* 2)
(*XTerm* 3)
;; X operation modes for graphics
;;/* Copyright Massachusetts Institute of Technology 1985 */
<<<<<<< Xgraph.scm
;;/* $Header: Xgraph.scm,v 13.90 88/06/06 08:59:46 ajc Exp $ */
=======
;;/* $Header: Xgraph.scm,v 13.90 88/06/06 08:59:46 ajc Exp $ */
>>>>>>> 13.80.2.1
;;/* Definitions for the X window system to be used by applications */
(*X_PROTOCOL* 10) ; /* current protocol version */
(*X_NoEvent* #x0000 ) ;
(*X_KeyPressed* #x0001 ) ; /* keyboard key pressed */
(*X_KeyReleased* #x0002 ) ; /* keyboard key released */
(*X_ButtonPressed* #x0004 ) ; /* mouse button pressed */
(*X_ButtonReleased* #x0008 ) ; /* mouse button released */
(*X_EnterWindow* #x0010 ) ; /* mouse entering window */
(*X_LeaveWindow* #x0020 ) ; /* mouse leaving window */
(*X_MouseMoved* #x0040 ) ; /* mouse moves within window */
(*X_ExposeWindow* #x0080 ) ; /* full window changed / exposed */
(*X_ExposeRegion* #x0100 ) ; /* region of window exposed */
(*X_ExposeCopy* #x0200 ) ; /* region exposed by X_CopyArea */
(*X_RightDownMotion* #x0400 ) ; /* mouse moves with right down */
(*X_MiddleDownMotion* #x0800 ) ; /* mouse moves with middle down */
(*X_LeftDownMotion* #x1000 ) ; /* mouse moves with left down */
(*X_UnmapWindow* #x2000 ) ; /* window is unmapped */
(*X_FocusChange* #x4000 ) ; /* keyboard focus changed */
;;
;;/* Event detail bits */
;;
(*X_ControlMask* #x4000 ) ; /* Control key */
(*X_MetaMask* #x2000 ) ; /* Meta (Symbol) key */
(*X_ShiftMask* #x1000 ) ; /* Shift key */
(*X_ShiftLockMask* #x0800 ) ; /* ShiftLock key */
(*X_LeftMask* #x0400 ) ; /* Left button */
(*X_MiddleMask* #x0200 ) ; /* Middle button */
(*X_RightMask* #x0100 ) ; /* Right button */
(*X_ValueMask* #x00ff ) ; /* Key/button code */
;;
;;/* Button event detail codes */
;;
(*X_RightButton* 0 )
(*X_MiddleButton* 1 )
(*X_LeftButton* 2 )
;;
;;/* Enter/Leave event detail codes */
;;
(*X_IntoOrFromSubwindow* 1 )
(*X_VirtualCrossing* 2 )
;;
;;/* for monochrome applications */
;;
(*X_BlackPixel* 0 ) ; /* may not actually be black */
(*X_WhitePixel* 1 ) ; /* may not actually be white */
;;
;;/* graphics functions */
;;
(*X_GXclear* #x0 ) ; /* 0 */
(*GXclear* #x0 )
(*X_GXand* #x1 ) ; /* src AND dst */
(*GXand* #x1 )
(*X_GXandReverse* #x2 ) ; /* src AND NOT dst */
(*GXandReverse* #x2 )
(*X_GXcopy* #x3 ) ; /* src */
(*GXcopy* #x3 )
(*X_GXandInverted* #x4 ) ; /* NOT src AND dst */
(*GXandInverted* #x4 )
(*X_GXnoop* #x5 ) ; /* dst */
(*GXnoop* #x5 )
(*X_GXxor* #x6 ) ; /* src XOR dst */
(*GXxor* #x6 )
(*X_GXor* #x7 ) ; /* src OR dst */
(*GXor* #x7 )
(*X_GXnor* #x8 ) ; /* NOT src AND NOT dst */
(*GXnor* #x8 )
(*X_GXequiv* #x9 ) ; /* NOT src XOR dst */
(*GXequiv* #x9 )
(*X_GXinvert* #xa ) ; /* NOT dst */
(*GXinvert* #xa )
(*X_GXorReverse* #xb ) ; /* src OR NOT dst */
(*GXorReverse* #xb )
(*X_GXcopyInverted* #xc ) ;/* NOT src */
(*GXcopyInverted* #xc )
(*X_GXorInverted* #xd ) ; /* NOT src OR dst */
(*GXorInverted* #xd )
(*X_GXnand* #xe ) ; /* NOT src OR NOT dst */
(*GXnand* #xe )
(*X_GXset* #xf ) ; /* 1 */
(*GXset* #xf )
;;
;;/* Used in X_TileMode */
;;
(*X_TileModeAbsolute* 0 )
(*X_TileModeRelative* 1 )
;;
;;/* Used in X_ClipMode */
;;
(*X_ClipModeClipped* 0 )
(*X_ClipModeDrawThru* 1 )
)
;;;; higher level functions
(define (graphics-get-color color)
(graphics-get-draw-color color)
)
(define (set-color! color)
(without-interrupts
(lambda ()
(graphics-set-color color)
(set! *graphics-color* color)))
)
(define (set-draw-pattern! style)
(without-interrupts
(lambda ()
(graphics-set-draw-pattern! style)
(set! *graphics-draw-pattern* style)))
)
(define (with-line-style style thunk)
(dynamic-wind (lambda ()
(graphics-set-draw-pattern! style))
thunk
(lambda ()
(graphics-set-draw-pattern! *graphics-draw-pattern*)))
)
(define (draw-line x y #!optional style)
(if (unassigned? style)
(graphics-draw (round x) (round y) #!FALSE)
(graphics-draw (round x) (round y) style))
)
(define (draw-line-to x y #!optional style)
(if (unassigned? style)
(graphics-draw (round x) (round y) #!FALSE)
(graphics-draw (round x) (round y) style))
)
(define (erase-line x y)
(graphics-draw (round x) (round y) *GXinvert*)
)
(define (move-pen x y)
(graphics-move (round x) (round y)))
(define (position-pen x y)
(graphics-move (round x) (round y)))
(define (draw-pixel x y #!optional op)
(if (unassigned? op)
(graphics-pixel (round x) (round y) #!FALSE)
(graphics-pixel (round x) (round y) op))
)
(define draw-point draw-pixel)
(define (clear-point) (draw-pixel *GXclear*))
;;;; general graphics interface
(set! graphics-draw
(lambda (x y #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-draw x y mode))
)
(set! graphics-draw-relative
(lambda (x y #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-draw-relative x y mode))
)
(set! graphics-rectangle
(lambda (x y #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-rectangle x y mode))
)
(set! graphics-rectangle-relative
(lambda (x y #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-rectangle-relative x y mode))
)
(set! graphics-poly
(lambda (poly #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-poly poly mode))
)
(set! graphics-poly-relative
(lambda (poly #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-poly-relative poly mode))
)
(set! graphics-arc
(lambda (radius angle angle #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-arc radius angle angle mode))
)
(set! graphics-circle
(lambda (radius #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-circle radius mode))
)
(set! graphics-pixel
(lambda (x y #!optional mode)
(if (unassigned? mode)
(set! mode '()))
(prim-graphics-pixel x y mode))
)
(set! graphics-label
(lambda (string)
(prim-graphics-label string))
)
(define graphics-get-cursor
(lambda (bits #!optional func w h x y)
(if (unassigned? func)
(set! func *GXxor*))
(if (unassigned? w)
(sequence (set! w 16)
(set! h 16)))
(if (unassigned? x)
(sequence (set! x 0)
(set! y 0)))
(prim-graphics-get-cursor bits func w h x y))
)
;;;; Student Graphics Interface
(set! draw-line-to
(lambda (x y)
(graphics-draw (round x) (round y))))
(set! position-pen
(lambda (x y)
(graphics-move (round x) (round y))))
(define ((graphics-point-procedure display-function) x y)
(dynamic-wind
(lambda () (graphics-pixel (round x) (round y) display-function))))
(define (graphics-get-mouse #!optional window-id)
(if (unassigned? window-id)
(list (graphics-get-mouse-position #!FALSE)
(graphics-get-mouse-buttons #!FALSE)
(graphics-get-mouse-window #!FALSE))
(list (graphics-get-mouse-position window-id)
(graphics-get-mouse-buttons window-id)
(graphics-get-mouse-window window-id))))
(set! draw-point (graphics-point-procedure *X_GXcopy*))
(set! clear-point (graphics-point-procedure *X_GXclear*))
(set! is-point-on? (graphics-point-procedure *X_GXnoop*))
(set! clear-graphics
(lambda ()
(graphics-clear)
(graphics-move 0 0))
)
(set! reset-graphics
(lambda ()
(clear-graphics)
(graphics-set-flush! #!FALSE)
(graphics-set-draw-pattern! 0)
(graphics-set-function! *X_GXcopy*)
(graphics-set-poly-operation! *PolyFill*))
)
(define (initialize-colors)
(set! *red-fill* (graphics-get-fill-color "red"))
(set! *blue-fill* (graphics-get-fill-color "blue"))
(set! *green-fill* (graphics-get-fill-color "green"))
(set! *cyan-fill* (graphics-get-fill-color "cyan"))
(set! *magenta-fill* (graphics-get-fill-color "magenta"))
(set! *yellow-fill* (graphics-get-fill-color "yellow"))
(set! *white-fill* (graphics-get-fill-color "white"))
(set! *black-fill* (graphics-get-fill-color "black"))
(set! *gray-fill* (graphics-get-fill-color "light gray"))
(set! *red-draw* (graphics-get-draw-color "red"))
(set! *blue-draw* (graphics-get-draw-color "blue"))
(set! *green-draw* (graphics-get-draw-color "green"))
(set! *cyan-draw* (graphics-get-draw-color "cyan"))
(set! *magenta-draw* (graphics-get-draw-color "magenta"))
(set! *yellow-draw* (graphics-get-draw-color "yellow"))
(set! *white-draw* (graphics-get-draw-color "white"))
(set! *black-draw* (graphics-get-draw-color "black"))
(set! *gray-draw* (graphics-get-draw-color "light gray"))
(set! *white* *white-draw*)
(set! *black* *black-draw*)
(set! *graphics-bkgd-color* *black-fill*)
(set! *graphics-frgd-color* *white-fill*)
(set! *graphics-color* *white-draw*)
)
(define (graphics-open-window #!optional x y w h)
(if (unassigned? x)
(sequence (set! x '())
(set! y '())))
(if (unassigned? w)
(sequence (set! w '())
(set! h '())))
(prim-graphics-open-window x y w h))
(define (graphics-configure-window #!optional x y w h)
(if (unassigned? x)
(sequence (set! x '())
(set! y '())))
(if (unassigned? w)
(sequence (set! w '())
(set! h '())))
(prim-graphics-configure-window x y w h))
(set! init-graphics
(lambda (#!optional display)
(if (unassigned? display)
(set! display ""))
(set! *current-display* (graphics-initialize display))
(cond (*current-display*
(sequence
(initialize-colors)
(set! *current-window* (graphics-open-window)))
*current-display*)))
)
(the-environment)))
(define (my-init-graphics)
(eval '(begin (set! *current-display* (graphics-initialize ""))
(initialize-colors)
(set! *current-window* (prim-graphics-open-window 2 2 556 412)))
graphics-package)
*the-non-printing-object*)
(define draw-line-to (eval 'draw-line-to graphics-package))
(define position-pen (eval 'position-pen graphics-package))
(define (set-pen! state)
(eval `(graphics-set-draw-function! (cond ((eq? ',state 'draw) *GXcopy*)
((eq? ',state 'erase) *GXclear*)
((eq? ',state 'xor) *GXxor*)))
graphics-package)
| false |
a96696861474dae3899481d21fc903ccbc772d02 | 98dbcedc8c813a012dd91aa2b0760c0003000203 | /config/rewriter/plugin-cars.scm | 7227dd9486d3a1fc3d24c548a997e7cf1af7e4aa | []
| no_license | nathanielrb/mu-graph-rewriter | 4d229996ad5e0a9e238dbe76cbdd3d98a2457a5c | f03413978f7a204637b23ffad0883f2a0be437a5 | refs/heads/master | 2020-06-22T21:12:20.053161 | 2017-12-21T11:24:01 | 2017-12-21T11:24:01 | 94,225,065 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 912 | scm | plugin-cars.scm |
(*constraint*
(conc
"CONSTRUCT { "
" ?s ?p ?o. "
"} "
"WHERE "
"{"
" { "
" GRAPH <http://mu.semte.ch/application/cars> { "
" ?s ?p ?o. "
" ?s a ext:Car. "
" } "
" } "
" UNION "
" { "
" GRAPH <http://mu.semte.ch/application/parts> { "
" ?s ?p ?o. "
" ?s a ext:CarPart. "
" } "
" } "
"} "))
(*constraint*
(conc
"CONSTRUCT { "
" ?s ?p ?o. "
"} "
"WHERE "
"{"
" { "
" SELECT ?graph ?s ?p ?o "
" WHERE {"
" GRAPH ?graph { "
" ?s ?p ?o. "
" ?s a ext:Car. "
" } "
" } "
" VALUES ?graph { <http://mu.semte.ch/application/cars> } "
" }"
" UNION "
" { "
" SELECT ?graph ?s ?p ?o "
" WHERE {"
" GRAPH ?graph { "
" ?s ?p ?o. "
" ?s a ext:CarPart. "
" } "
" } "
" VALUES ?graph { <http://mu.semte.ch/application/parts> } "
" } "
"}"))
| false |
87d76c0cd261df64b0259930aa82e3afeb5e2180 | ca3425fbd3bef3cd7adeb7b1f61f00afd097927f | /planet/galore.plt/2/2/tmp/qux.scm | 7de5cbed10d002e0b752a41b0d06580c32795eb3 | []
| no_license | soegaard/little-helper | b330ec4382b958cd83b65e93c27581f5dc941c97 | 26249c688e5adf1e2535c405c6289030eff561b4 | refs/heads/master | 2021-01-16T18:06:35.491073 | 2011-08-11T23:00:56 | 2011-08-11T23:00:56 | 2,187,791 | 10 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 966 | scm | qux.scm | (module qux1 mzscheme
(require (lib "contract.ss"))
(define (concat l1 l2)
(append l1 l2))
(provide/contract
(concat (-> pair? pair? pair?))))
(module sig mzscheme
(require-for-syntax "macro-utilities.scm")
(provide provide-concat)
(define-syntax (provide-concat stx)
(syntax-case stx ()
[(_)
(with-captures stx
(concat)
(syntax/loc stx
(begin
(require (lib "contract.ss"))
(provide/contract
(concat (-> pair? pair? pair?))))))])))
(module qux2 mzscheme
(require sig)
(define-syntax (define-alias stx)
(syntax-case stx ()
[(_ new-name old-name)
(syntax/loc stx
(define (new-name l1 l2)
(old-name l1 l2)))]))
(define-alias concat append)
(provide-concat))
(module bar mzscheme
(require qux2)
(display (concat (list 1 2) (vector 3 4))))
(require bar)
| true |
60c22b7e542ce4b2db17e239dd21ea15c76d5af7 | ac2a3544b88444eabf12b68a9bce08941cd62581 | /gsc/tests/12-closure/procedure.scm | 1ee0472eeda04c1f0b8cdaf04595c4d89526718d | [
"Apache-2.0",
"LGPL-2.1-only"
]
| permissive | tomelam/gambit | 2fd664cf6ea68859d4549fdda62d31a25b2d6c6f | d60fdeb136b2ed89b75da5bfa8011aa334b29020 | refs/heads/master | 2020-11-27T06:39:26.718179 | 2019-12-15T16:56:31 | 2019-12-15T16:56:31 | 229,341,552 | 1 | 0 | Apache-2.0 | 2019-12-20T21:52:26 | 2019-12-20T21:52:26 | null | UTF-8 | Scheme | false | false | 388 | scm | procedure.scm | (declare (extended-bindings) (not constant-fold) (not safe))
(define f (##not 123))
(define t (##not f))
(define s "")
(define x 1.5)
(define (make-adder x)
(lambda (y) (##fx+ x y)))
(define inc (make-adder 1))
(define (test x)
(println (##procedure? x))
(println (if (##procedure? x) 11 22)))
(test 0)
(test 1)
(test f)
(test t)
(test s)
(test x)
(test make-adder)
(test inc)
| false |
fba6117ff9e969c16ba5d57f14b92441dd46043f | a2d8b4843847507b02085bb8adabd818f57dd09f | /scheme/sicp/ch_3/tst-table.scm | 51b6b93bd222ffcd8d3386767e4710f6bd2ced6d | []
| no_license | tcharding/self_learning | df911b018fc86bd5f918394b79d2456bf51f35a8 | f6bb5c6f74092177aa1b71da2ce87ca1bfc5ef3c | refs/heads/master | 2022-05-13T05:09:32.284093 | 2022-05-02T08:25:18 | 2022-05-02T08:25:18 | 41,029,057 | 13 | 2 | null | null | null | null | UTF-8 | Scheme | false | false | 1,264 | scm | tst-table.scm | ;;;; tests for table.scm
(load-from-path "test-framework.scm")
(load-from-path "table.scm")
(load-from-path "lib.scm")
(set-test-section! "one dimensional table")
(define t (make-table))
(test-eq "empty lookup" (lookup-1d 'a t) #f)
(insert! 'a 1 t)
(test-eq "empty lookup" (lookup-1d 'a t) 1)
(test-eq "empty lookup" (lookup-1d 'b t) #f)
(set-test-section! "two dimensional table")
(define t (make-table))
(insert-2d! 'math '* 4 t)
(insert-2d! 'math '+ 6 t)
(insert-2d! 'letters 'x 3 t)
(insert-2d! 'letters 'y 5 t)
(test-eq "" (lookup-2d 'math '* t) 4)
(test-eq "" (lookup-2d 'math '- t) #f)
(test-eq "" (lookup-2d 'letters 'x t) 3)
(set-test-section! "2D procedural")
(define operation-table (make-table-proc-2d))
(define get (operation-table 'lookup-proc))
(define put (operation-table 'insert-proc!))
(put 'math '* 4)
(put 'math '+ 6)
(put 'letters 'x 3)
(put 'letters 'y 5)
(test-eq "" (get 'math '*) 4)
(test-eq "" (get 'math '-) #f)
(test-eq "" (get 'letters 'x) 3)
(set-test-section! "1D procedural")
(define operation-table (make-table-proc-1d))
(define get (operation-table 'lookup-proc))
(define put (operation-table 'insert-proc!))
(put 'a 1)
(put 'b 2)
(put 'c 3)
(test-eq "" (get 'a) 1)
(test-eq "" (get 'c) 3)
(test-eq "" (get 'd) #f)
| false |
6923a1f1532b3fe746d2903e34c789eddcc0467d | ac2a3544b88444eabf12b68a9bce08941cd62581 | /lib/_define-library/_define-library#.scm | 65228bdad85185c61b799ac0b7e3b09d2ed07cf9 | [
"Apache-2.0",
"LGPL-2.1-only"
]
| permissive | tomelam/gambit | 2fd664cf6ea68859d4549fdda62d31a25b2d6c6f | d60fdeb136b2ed89b75da5bfa8011aa334b29020 | refs/heads/master | 2020-11-27T06:39:26.718179 | 2019-12-15T16:56:31 | 2019-12-15T16:56:31 | 229,341,552 | 1 | 0 | Apache-2.0 | 2019-12-20T21:52:26 | 2019-12-20T21:52:26 | null | UTF-8 | Scheme | false | false | 1,037 | scm | _define-library#.scm | ;;;============================================================================
;;; File: "_define-library#.scm"
;;; Copyright (c) 2014-2019 by Marc Feeley and Frédéric Hamel, All Rights Reserved.
;;;============================================================================
(##namespace ("" define-library import))
(##define-syntax define-library
(lambda (src)
(##import _define-library/define-library-expand)
(define-library-expand src)))
(##define-syntax import
(lambda (src)
(##import _define-library/define-library-expand)
(import-expand src)))
#;
(##define-syntax define-syntax
(lambda (src)
(let ((locat (##source-locat src)))
(##make-source
(##cons (##make-source '##define-syntax locat)
(##cdr (##source-code src)))
locat))))
#;
(##define-syntax syntax-rules
(lambda (src)
(##import _define-library/define-library-expand)
(syn#syntax-rules-form-transformer src)))
;;;============================================================================
| true |
a94f6d80b39a72b1318de9adf18ed3ce6274befd | 958488bc7f3c2044206e0358e56d7690b6ae696c | /scheme/evaluator/thunk.scm | 6ae833996ef097b264469af84aa9858b35c57bc0 | []
| no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 2023-08-17T09:15:17.723600 | 2023-08-11T12:32:59 | 2023-08-11T12:32:59 | 40,361,602 | 3 | 0 | null | 2023-03-27T05:53:58 | 2015-08-07T13:24:19 | Coq | UTF-8 | Scheme | false | false | 7,002 | scm | thunk.scm | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; include guard ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(if (not (defined? included-thunk))
(begin
(define included-thunk #f) (display "loading thunk")(newline)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; When attempting to determine whether an object is a thunk using the 'thunk?'
; function, the interpreter simply checks for a tag 'thunk. This creates a bug,
; as it is possible for a data stucture to appear as a thunk without being one:
; For example, imagine our interpreter (implemented in native scheme) is running
; its own code: we obtain a second level interpreter which is running in inter-
; preted code rather than native scheme. This second level interpreter will handle
; data structures with a 'thunk tag and which it considers to be a thunk object.
; However, from the point of view of the first level interpreter running in native
; scheme, such data structure is not a thunk, and wrongly viewing it as a thunk
; generates an error. Suppose we run the following code in native scheme:
;
; (load "main.scm") ; define 'strict-eval and dependencies
; (strict-eval '(load "main.scm"))
;
; When running (load "main.scm") in native scheme, we are defining the function
; 'strict-eval', which allows us to run our interpreter.
;
; (display (strict-eval '(+ 1 1))) ; 2
;
; By running (strict-eval '(load "main.scm")) in native scheme, we are asking
; our interpreter to run (load "main.scm"), hence creating all necessary bindings
; in the interpreter's global environment to use 'strict-eval in interpreted code:
;
; (display (strict-eval '(strict-eval '(+ 1 1)))) ; 2
;
; We can also create a thunk object in interpreted code:
;
; (strict-eval '(define t (make-thunk '(+ 1 1) global-env)))
;
; The intepreter's global environment now has a binding for the variable t
;
; (define value ((global-env 'lookup) 't))
;
; And we can inspect the value associated with this variable:
;
; (display value)
;
; (thunk (eval-procedure (m) (begin (cond ((eq? m (quote value)) (value data))
; ((eq? m (quote expression)) (expression data)) ((eq? m (quote environment))
; (environment data)) ((eq? m (quote evaluated?)) (evaluated? data)) (else
; (error thunk: unknown operation error m))))
; #<CLOSURE <anon> "environment1.scm": (m)>))
;
; This native scheme value is of the form (thunk object) and deceptively appears
; to be a thunk. However, in order for this value to qualify as a thunk, 'object'
; would need to be a native scheme object which it is not. 'object' is in fact
; a data sructure used by our interpreter to represent a procedure. In short,
; 'object' is an interpreted scheme object, not a native scheme object.
; If our native scheme interpreter wrongly interprets this 'value' as a thunk,
; it will wrongly regard 'object' as a native scheme procedure and attempt to
; run it when forcing the thunk, thereby creating an error.
;
; Hence, when implementing the function thunk? which determines whether an
; object is of type thunk, we need to be able to distinguish the true thunks
; of our native scheme interpreter, from the data structures which are thunks
; of a higher level interpreter. We do this by using a different tag 'thunk0'
; 'thunk1', 'thunk2', etc... depending on the level of the intepreter which is
; running. One way to make the code self-aware of its running level is to
; evaluate the operator +. In native scheme, this operator evaluates to:
;
; (display +) ; #<primitive-procedure +>
;
; while our interpreter evaluates + as:
;
; (display (strict-eval '+)) ;(primitive-procedure #<primitive-procedure +>)
;
; and (display (strict-eval '(strict-eval '+))) returns the list:
;
; (primitive-procedure (primitive-procedure #<primitive-procedure +>))
;
; Hence we can implement a function scheme-interpreter-level as follows:
(define (scheme-interpreter-level)
(let loop ((test +))
(if (not (list? test))
0 ; test is #<primitive-procedure>
(+ 1 (loop (cadr test)))))) ; test is (primitive-procedure ... )
; We can now implement a thunk-tag function which generates a different tag
; for each scheme interpreter level, simply by appending a number to "thunk".
; For performance reason, this function is memoized:
(define (thunk-tag)
(let ((tag #f)) ; memoization
(if (eq? #f tag)
(set! tag (string->symbol
(string-append
"thunk"
(number->string (scheme-interpreter-level))))))
tag))
; testing
(define (thunk? obj)
(tagged-list? obj (thunk-tag)))
; making
(define make-thunk ; constructor
(let ()
; object created from data is message passing interface
(define (this data)
(lambda (m)
(cond ((eq? m 'value) (value data))
((eq? m 'expression) (expression data))
((eq? m 'environment) (environment data))
((eq? m 'evaluated?) (evaluated? data))
(else (error "thunk: unknown operation error" m)))))
;
(define (expression data) (cadr data))
;
(define (environment data) (caddr data))
;
(define (evaluated? data) (null? (environment data)))
;
; This function is called when a thunk is forced. An evaluation of the
; thunk needs to take place and the question naturally arises of which
; evaluation function to call. We cannot use 'new-eval` as this would
; fail to do anything when eval-mode is 'lazy'. Hence we need to use
; either 'strict-eval' or 'analyze'.
(define (value data)
(let ((expr (expression data))
(env (environment data)))
(if (evaluated? data)
expr
(let ((value (force-thunk (lazy-eval expr env))))
(set-car! (cdr data) value) ; replacing expression by its value
(set-car! (cddr data) '()) ; discarding environment for gb release
value))))
;
; returning two argument constructor
;
(lambda (expr env)
(if (thunk? expr) ; do not create a double thunk
expr
(list (thunk-tag) (this (list 'data expr env)))))))
; destructuring
(define (thunk-expression obj) ((cadr obj) 'expression))
(define (thunk-environment obj) ((cadr obj) 'environment))
(define (thunk-evaluated? obj) ((cadr obj) 'evaluated?))
(define (thunk-value obj) ((cadr obj) 'value))
; Note that we do not throw an error when argument to force-thunk is not a
; thunk. This has the disadvantage of removing possible detection of logic
; errors. However, considering we are mixing various types of evaluations
; (strict, lazy, analyze), the logic is not very clear anyway, and we often
; end up with unexpected thunks in the evaluation process. This laxed semantics
; of force-thunk allows us to remove possible thunks in a list of arguments.
; (See the module primitive-procedure)
; forcing
(define (force-thunk obj)
(if (thunk? obj) (thunk-value obj) obj))
)) ; include guard
| false |
d174e3e007f7dce616655be454c79f7f09045b3a | c63772c43d0cda82479d8feec60123ee673cc070 | /ch3/27.scm | 3f5157542e21698fb0ef0e62e0b4c2882b6ec7ad | [
"Apache-2.0"
]
| permissive | liuyang1/sicp-ans | 26150c9a9a9c2aaf23be00ced91add50b84c72ba | c3072fc65baa725d252201b603259efbccce990d | refs/heads/master | 2021-01-21T05:02:54.508419 | 2017-09-04T02:48:46 | 2017-09-04T02:48:52 | 14,819,541 | 2 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,280 | scm | 27.scm | (define (make-table)
(define (same-key? k0 k1)
(eq? k0 k1))
(let ((records '()))
(define (insert! k v)
(let ((ret (lookup-in k)))
(if (eq? ret #f)
(set! records (cons (cons k v) records))
(begin (set-car! ret k) (set-cdr! ret v)))))
(define (lookup-in k)
(define (hlp k rd)
(cond ((null? rd) #f)
((same-key? k (caar rd)) (car rd))
(else (hlp k (cdr rd)))))
(hlp k records))
(define (lookup k)
(let ((ret (lookup-in k)))
(if (eq? #f ret) ret (cdr ret))))
(define (mydisplay)
(display records) (newline))
(define (dispatch m)
(cond ((eq? m 'lookup) lookup)
((eq? m 'insert!) insert!)
((eq? m 'display) mydisplay)
(else (error "unkown method" m))))
dispatch))
(define (memoize func)
(let ((table (make-table)))
(lambda (x)
(let ((prev ((table 'lookup) x)))
(or prev
(let ((ret (func x)))
((table 'insert!) x ret)
ret))))))
(define memo-fib
(memoize (lambda (n)
(cond ((= n 0) 0)
((= n 1) 1)
(else (+ (memo-fib (- n 1)) (memo-fib (- n 2))))))))
(display (memo-fib 10))
(newline)
; TODO: using MACRO to impl Decorator pattern.
| false |
de967e5c1019b33f76f79fcad7634d3e6dc6f6c8 | 11bb42fe73b8cfb9e4817ff38e0d922faad12c56 | /samples/tarai.scm | 7a9d73b6410cdc9a237286b8ab64c2f65ca4c43c | []
| no_license | karahiyo/gauche-misc | acdf038c8b4982fb6c105d1778dd0919b7290797 | 415e478b403bbe8b5ee1675f990cd9d492634f79 | refs/heads/master | 2020-05-17T09:54:57.147017 | 2015-08-16T07:08:01 | 2015-08-16T07:08:01 | 40,778,167 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 207 | scm | tarai.scm | #!/usr/bin/env gosh
(use gauche.time)
(use benchmark)
(define (tarai x y z)
(if (<= x y)
y
(tarai (tarai (- x 1) y z) (tarai (- y 1) z x) (tarai (- z 1) x y))))
(print (bench (tarai 12 6 0)))
| false |
55c5c7f8452196c328a6b2e6cb9934595bcbbd35 | c63772c43d0cda82479d8feec60123ee673cc070 | /ch3/02.scm | 627682d3142e74f4ab1308dff7bf4c52c0c87560 | [
"Apache-2.0"
]
| permissive | liuyang1/sicp-ans | 26150c9a9a9c2aaf23be00ced91add50b84c72ba | c3072fc65baa725d252201b603259efbccce990d | refs/heads/master | 2021-01-21T05:02:54.508419 | 2017-09-04T02:48:46 | 2017-09-04T02:48:52 | 14,819,541 | 2 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 469 | scm | 02.scm | ; also using reg as internal state
; !! this example is kind of DECORATOR
; and we support a HOW-MANY-CALLS? method
(define (make-monitored proc)
(let ((reg 0))
(lambda (x)
(if (eq? x 'how-many-call?)
reg
(begin (set! reg (+ reg 1))
(proc x))))))
; test code
(define s (make-monitored sqrt))
(display (s 100))
(newline)
(display (s 'how-many-call?))
(newline)
(display (s 100))
(newline)
(display (s 'how-many-call?))
(newline)
| false |
41105005ed565858ce16351477048fe18205fc94 | 4f91474d728deb305748dcb7550b6b7f1990e81e | /Chapter2/ex2.25.scm | 1a50b87b3622b4e716a58d3f221eb888be6da884 | []
| no_license | CanftIn/sicp | e686c2c87647c372d7a6a0418a5cdb89e19a75aa | 92cbd363c143dc0fbf52a90135218f9c2bf3602d | refs/heads/master | 2021-06-08T22:29:40.683514 | 2020-04-20T13:23:59 | 2020-04-20T13:23:59 | 85,084,486 | 2 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 214 | scm | ex2.25.scm | (define (first items)
(car (cdr (car (cdr (cdr items)))))
)
(define (second items)
(car (car items))
)
(define (third items)
(car (cdr (car (cdr (car (cdr (car (cdr (car (cdr (car (cdr items))))))))))))
)
| false |
76a63569d2fedc293a3d4b879c3c0b806a485676 | 7301b8e6fbd4ac510d5e8cb1a3dfe5be61762107 | /sec-3.3-sample-lists.scm | 4628e6c7576a223787612fcd9096bf74a6ee3dcc | []
| no_license | jiakai0419/sicp-1 | 75ec0c6c8fe39038d6f2f3c4c6dd647a39be6216 | 974391622443c07259ea13ec0c19b80ac04b2760 | refs/heads/master | 2021-01-12T02:48:12.327718 | 2017-01-11T12:54:38 | 2017-01-11T12:54:38 | 78,108,302 | 0 | 0 | null | 2017-01-05T11:44:44 | 2017-01-05T11:44:44 | null | UTF-8 | Scheme | false | false | 323 | scm | sec-3.3-sample-lists.scm | (define (make-cycle x)
(set-cdr! (last-pair x) x)
x)
(define z3 (list 'a 'b 'c))
(define z4
(let ([x (list 'a)])
(list x x)))
(define z7
(let* ([x (list 'a)]
[y (cons x x)])
(cons y y)))
(define z* (make-cycle (list 'a 'b 'c)))
(define (zap x)
(with-output-to-string (lambda () (write/ss x))))
| false |
a087f05ad2da1042df05caaf13730d54553a4772 | 801a158ca6e2ba7651907c347fefc2930f327141 | /duck/type.ss | f4df1200003a567061f50c01d56451f42587e469 | [
"MIT"
]
| permissive | evilbinary/duck-compiler | 8782cc049b9175902bdb482ba4aff5107aace193 | 8c64a521f012aa6b2b7b9385f11976b216cc07e0 | refs/heads/master | 2021-07-06T07:44:33.933316 | 2020-10-25T04:02:36 | 2020-10-25T04:02:36 | 195,368,722 | 29 | 4 | null | null | null | null | UTF-8 | Scheme | false | false | 3,906 | ss | type.ss | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Copyright 2016-2080 evilbinary.
;作者:evilbinary on 12/24/16.
;邮箱:[email protected]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(library (duck type)
(export
type-shift
type-mask
fixnum-tag
pair-tag
box-tag
vector-tag
closure-tag
string-tag
symbol-tag
const-tag
const-mask
boolean-tag
boolean-mask
true-tag
false-tag
null-tag
true-rep
false-rep
null-rep
void-rep
void-tag
type-rep
type?
type-value
)
(import (scheme)
(common match)
(common trace)
(common common)
)
;;;types
(define type-shift 3)
(define type-mask #b111)
;;types tag
(define fixnum-tag #b000)
(define pair-tag #b001)
(define box-tag #b010)
(define vector-tag #b011)
(define closure-tag #b100)
(define string-tag #b110)
(define symbol-tag #b111)
;;const
(define const-tag #b101)
(define const-mask #b111111)
(define boolean-tag #b1101)
(define boolean-mask #b1111)
(define true-tag #b111)
(define false-tag #b101)
(define null-tag #b100)
(define void-tag #b110)
(define true-rep #b111101)
(define false-rep #b101101)
(define null-rep #b100101)
(define void-rep #b110101)
(define (type-rep x)
(cond
[(equal? (void) x) void-rep]
[(integer? x)
(bitwise-arithmetic-shift-left x type-shift)]
[(boolean? x) (if x true-rep false-rep)]
[(or (null? x)
(and (pair? x) (equal? (car x) 'quote ))
(and (pair? x) (null? (cadr x))) )
null-rep]
[(symbol? x)
x
]
[(string? x)
x
]
[else
(error 'type-rep "unsupport primitive " x)
]
))
(define (type-pair? x)
(cond
[(integer? x) (= (logand x type-mask) pair-tag) ]
[else #f]
)
)
(define (type-fixnum? x)
(cond
[(integer? x) (= (logand x type-mask) fixnum-tag)]
[else #f]
)
)
(define (type-string? x)
(cond
[(integer? x) (= (logand x type-mask) string-tag)]
[else #f]
)
)
(define (type-vector? x)
(cond
[(integer? x) (= (logand x type-mask) vector-tag) ]
[else #f]
)
)
(define (type-box? x)
(cond
[(integer? x) (= (logand x type-mask) box-tag) ]
[else #f]
)
)
(define (type-const? x)
(cond
[(integer? x) (or (type-boolean? x) (type-null? x) (type-void? x)) ]
[else #f]
)
)
(define (type-boolean? x)
(cond
[(symbol? x)
(or (equal? x 'true-rep) (equal? x 'false-rep))]
[(integer? x) (= (logand x boolean-mask) boolean-tag) ]
[else #f]
)
)
(define (type-null? x)
(cond
[(symbol? x) (equal? x 'null-rep)]
[(integer? x) (= x null-rep) ]
[else #f]
)
)
(define (type-void? x)
(cond
[(symbol? x) (equal? x 'void-rep)]
[(integer? x) (= x void-rep) ]
[else #f]
)
)
(define (type-symbol? x)
(cond
[(symbol? x) (not (or (type-void? x)
(type-boolean? x)
(type-fixnum? x)
(type-null? x) ))
]
[else #f]
)
)
(define (type-value x)
(cond
[(type-boolean? x) x]
[(type-void? x) void-rep]
[(type-null? x) null-rep]
[(type-const? x) x]
[(type-fixnum? x) (bitwise-arithmetic-shift-right x type-shift) ]
[(type-pair? x) (bitwise-arithmetic-shift-right x type-shift) ]
[(type-vector? x) (bitwise-arithmetic-shift-right x type-shift)]
[(type-string? x) (bitwise-arithmetic-shift-right x type-shift)]
[(type-box? x) (bitwise-arithmetic-shift-right x type-shift)]
[(type-symbol? x) x]
[else (error 'type-value "unsupport primitive" x)]
)
)
(define (type? x)
(cond
[(pair? x) #f]
[(type-void? x) #t]
[(type-null? x) #t]
[(type-boolean? x) #t]
[(type-const? x) #t]
[(type-fixnum? x) #t]
[(type-symbol? x) #t]
[else #f]
)
)
) | false |
159e48bbc98f04f0b4ae9903629b5058971e5d7c | 3686e1a62c9668df4282e769220e2bb72e3f9902 | /ch2.5.scm | 2a93e6c66356205f1b22defd0d578cf38475036b | []
| no_license | rasuldev/sicp | a4e4a79354495639ddfaa04ece3ddf42749276b5 | 71fe0554ea91994822db00521224b7e265235ff3 | refs/heads/master | 2020-05-21T17:43:00.967221 | 2017-05-02T20:32:06 | 2017-05-02T20:32:06 | 65,855,266 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 6,322 | scm | ch2.5.scm | ;==== DISPATCH routines ======
(define dispatch-table '())
(define (put op type proc)
(set! dispatch-table (cons (list op type proc) dispatch-table))
)
(define (get op types)
(define (match? table-entry)
(and (eq? (car table-entry) op)
(equal? (cadr table-entry) types))
)
(define (find-in table)
(cond ((null? table) false)
((match? (car table)) (caddr (car table)))
(else (find-in (cdr table)))
)
)
(find-in dispatch-table)
)
;====== TAG routines =====
(define (attach-tag type-tag contents)
(if (eq? type-tag 'scheme-number)
contents
(cons type-tag contents)
)
)
(define (type-tag datum)
(cond ((pair? datum) (car datum))
((number? datum) 'scheme-number)
(else (error "Bad tagged datum - TYPE-TAG" datum))
)
)
(define (contents datum)
(cond ((pair? datum) (cdr datum))
((number? datum) datum)
(else (error "Bad tagged datum - CONTENTS" datum))
)
)
(define (apply-generic op . args)
(let ((type-tags (map type-tag args)))
(let ((proc (get op type-tags)))
(if proc
(apply proc (map contents args))
(error "No method for these types - APPLY-GENERIC" (list op type-tags))
)
)
)
)
;======== GENERIC OPERATIONS ======
(define (add x y) (apply-generic 'add x y))
(define (sub x y) (apply-generic 'sub x y))
(define (mul x y) (apply-generic 'mul x y))
(define (div x y) (apply-generic 'div x y))
(define (=zero? x) (apply-generic '=zero? x))
(define (neg x) (apply-generic 'neg x))
(define (print x) (apply-generic 'print x))
;========= NUMBER PACKAGE ========
(define (install-scheme-number-package)
(define (tag x)
(attach-tag 'scheme-number x))
(put 'add '(scheme-number scheme-number)
(lambda (x y) (tag (+ x y))))
(put 'sub '(scheme-number scheme-number)
(lambda (x y) (tag (- x y))))
(put 'mul '(scheme-number scheme-number)
(lambda (x y) (tag (* x y))))
(put 'div '(scheme-number scheme-number)
(lambda (x y) (tag (/ x y))))
(put 'neg '(scheme-number)
(lambda (x) (* -1 x)))
(put '=zero? '(scheme-number)
(lambda (x) (= x 0)))
(put 'make 'scheme-number
(lambda (x) (tag x)))
(put 'print '(scheme-number) display)
'done
)
;====== POLYNOMIAL PACKAGE ========
(define (install-polynomial-package)
(define (make-poly variable term-list)
(cons variable term-list))
(define (variable p) (car p))
(define (term-list p) (cdr p))
(define (same-variable? x y)
(eq? x y)
)
(define (variable? x) (symbol? x))
(define (adjoin-term term term-list)
(if (=zero? (coeff term))
term-list
(cons term term-list)))
(define (the-empty-termlist) '())
(define (first-term term-list) (car term-list))
(define (rest-terms term-list) (cdr term-list))
(define (empty-termlist? term-list) (null? term-list))
(define (make-term order coeff) (list order coeff))
(define (order term) (car term))
(define (coeff term) (cadr term))
(define (make-term-list coeffs)
(cond ((null? coeffs)( the-empty-termlist))
(else (adjoin-term (make-term (- (length coeffs) 1) (car coeffs))
(make-term-list (cdr coeffs)))
)
)
)
(define (add-terms L1 L2)
(cond ((empty-termlist? L1) L2)
((empty-termlist? L2) L1)
(else
(let ((t1 (first-term L1)) (t2 (first-term L2)))
(cond ((> (order t1) (order t2))
(adjoin-term
t1 (add-terms (rest-terms L1) L2)))
((< (order t1) (order t2))
(adjoin-term
t2 (add-terms L1 (rest-terms L2))))
(else
(adjoin-term
(make-term (order t1)
(add (coeff t1) (coeff t2)))
(add-terms (rest-terms L1)
(rest-terms L2)))))))))
(define (mul-terms L1 L2)
(if (empty-termlist? L1)
(the-empty-termlist)
(add-terms (mul-term-by-all-terms (first-term L1) L2)
(mul-terms (rest-terms L1) L2))))
(define (mul-term-by-all-terms t1 L)
(if (empty-termlist? L)
(the-empty-termlist)
(let ((t2 (first-term L)))
(adjoin-term
(make-term (+ (order t1) (order t2))
(mul (coeff t1) (coeff t2)))
(mul-term-by-all-terms t1 (rest-terms L))))))
(define (add-poly p1 p2)
(make-poly (variable p1)
(add-terms (term-list p1)
(term-list p2)))
)
(define (mul-poly p1 p2)
(make-poly (variable p1)
(mul-terms (term-list p1)
(term-list p2)))
)
(define (=zero-poly? p)
(empty-termlist? (term-list p))
)
(define (negate-poly p)
(define (negate-term term)
(make-term (order term) (negate (coeff term)))
)
(define (negate-terms terms)
(adjoin-term (negate-term (first-term terms))
(negate-terms (rest-terms terms)))
)
(make-poly (variable p) (negate-terms (term-list p)))
)
(define (sub p1 p2)
(add p1 (negate p2))
)
(define (print-poly p)
(define (print-term term)
(print (coeff term))
(if (> (order term) 0)
(begin
(display (variable p))
(display "^")
(display (order term)))
)
)
(define (print-terms terms)
(print-term (first-term terms))
(let ((rest (rest-terms terms)))
(if (not (empty-termlist? rest))
(begin
(display "+")
(print-terms (rest-terms terms)))
)
)
)
(if (=zero-poly? p)
(display 0)
(print-terms (term-list p))
)
)
;; interface to rest of the system
(define (tag p) (attach-tag 'polynomial p))
(put 'add '(polynomial polynomial)
(lambda (p1 p2) (tag (add-poly p1 p2))))
(put 'mul '(polynomial polynomial)
(lambda (p1 p2) (tag (mul-poly p1 p2))))
(put 'make 'polynomial
(lambda (var terms) (tag (make-poly var terms))))
(put 'make 'term-list make-term-list)
(put 'print '(polynomial) print-poly)
(put '=zero? '(polynomial) =zero-poly?)
'done
)
(install-scheme-number-package)
(install-polynomial-package)
(define (make-terms coeffs)
((get 'make 'term-list) coeffs)
)
(define (make-polynom var terms)
((get 'make 'polynomial) var terms)
)
(define (make-polynom2 var coeffs)
(make-polynom var
(make-terms coeffs))
)
(define terms (make-terms (list 1 2 3)))
terms
(define p1 (make-polynom 'x
'((2 2)(0 3))
)
)
(define p2 (make-polynom 'x
'((3 1)(2 2)(0 2))
)
)
(print p1)
;(display "+")
(print p2)
;(display "=")
(print (add p1 p2))
(print (make-polynom2 'y (list 1 2 3)))
| false |
5c8da0a7143c00c3e9ce7a8454ae2967eafbac21 | 296dfef11631624a5b2f59601bc7656e499425a4 | /seth/seth/alexpander.sld | 96f825fe2ada5c7e819a497dd403dcbdc70a1725 | []
| no_license | sethalves/snow2-packages | f4dc7d746cbf06eb22c69c8521ec38791ae32235 | 4cc1a33d994bfeeb26c49f8a02c76bc99dc5dcda | refs/heads/master | 2021-01-22T16:37:51.427423 | 2019-06-10T01:51:42 | 2019-06-10T01:51:42 | 17,272,935 | 1 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 356 | sld | alexpander.sld | (define-library (seth alexpander)
(export alexpander-repl
expand-program
expand-top-level-forms!
expand-top-level-forms)
(import (scheme base)
(scheme read)
(scheme write)
(scheme cxr)
(rename (snow extio) (snow-pretty-print pretty-print)))
(include "alexpander/alexpander.scm"))
| false |
1146e646479ebfa6e06e94d527edbf6798a0307a | eef5f68873f7d5658c7c500846ce7752a6f45f69 | /spheres/string/format.sld | c4616cca30c8b1291548099958150b1e399ea63c | [
"MIT"
]
| permissive | alvatar/spheres | c0601a157ddce270c06b7b58473b20b7417a08d9 | 568836f234a469ef70c69f4a2d9b56d41c3fc5bd | refs/heads/master | 2021-06-01T15:59:32.277602 | 2021-03-18T21:21:43 | 2021-03-18T21:21:43 | 25,094,121 | 13 | 3 | null | null | null | null | UTF-8 | Scheme | false | false | 243 | sld | format.sld | ;;!!! String formatting SRFIs
(define-library (spheres/string format)
(export format
format+
cat)
(include "format/format-srfi-28.scm")
(include "format/format-srfi-48.scm")
(include "format/format-srfi-54.scm"))
| false |
cf8b0ad482e26deb8cd5e5bf25468011f4a53dc8 | a09ad3e3cf64bc87282dea3902770afac90568a7 | /3/25.scm | d0b4f7f3f1929bc0b04698ad42b72f533330c580 | []
| no_license | lockie/sicp-exercises | aae07378034505bf2e825c96c56cf8eb2d8a06ae | 011b37387fddb02e59e05a70fa3946335a0b5b1d | refs/heads/master | 2021-01-01T10:35:59.759525 | 2018-11-30T09:35:35 | 2018-11-30T09:35:35 | 35,365,351 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 2,754 | scm | 25.scm | #lang sicp
(define (make-table)
(let ((local-table (list '*table*)))
(define (assoc key records)
(cond ((null? records) false)
((equal? key (caar records)) (car records))
(else (assoc key (cdr records)))))
(define (lookup keys)
(define (lookup-iter keys subtable)
(cond ((null? keys) (error "Нет ключей -- LOOKUP"))
((null? subtable) false)
((null? (cdr keys))
; car keys. lol.
(let ((record (assoc (car keys) (cdr subtable))))
(if record
(cdr record)
false)))
(else
(let ((next-subtable (assoc (car keys) (cdr subtable))))
(if next-subtable
(lookup-iter (cdr keys) next-subtable)
false)))))
(lookup-iter keys local-table))
(define (insert! keys value)
(define (insert-iter keys subtable)
(cond ((null? keys) (error "Нет ключей -- INSERT"))
((null? (cdr keys))
(let ((record (assoc (car keys) (cdr subtable))))
(if record
(set-cdr! record value)
(set-cdr! subtable
(cons (cons (car keys) value)
(cdr subtable))))))
(else
(let ((next-subtable (assoc (car keys) (cdr subtable))))
(if (not next-subtable)
(begin
(set-cdr! subtable
(cons (list (car keys)
'(*table*))
(cdr subtable)))
(set! next-subtable (cadr subtable))))
(insert-iter (cdr keys) next-subtable)))))
(insert-iter keys local-table))
(define (dispatch m)
(cond ((eq? m 'lookup-proc) lookup)
((eq? m 'insert-proc!) insert!)
(else (error "Неизвестная операция -- TABLE" m))))
dispatch))
(define t (make-table))
((t 'insert-proc!) '(1 2 3 4) "Вася")
((t 'insert-proc!) '(1 2 3 5) "Петя")
((t 'insert-proc!) '(6 7) "Маша")
((t 'lookup-proc) '(1 2 3 4))
((t 'lookup-proc) '(1 2 3 5))
((t 'lookup-proc) '(3 4))
((t 'lookup-proc) '(6 7))
| false |
a7651461201775a470fcefde6ef47171a49268a2 | 9b2eb10c34176f47f7f490a4ce8412b7dd42cce7 | /lib/yuni/miniobj/base.sls | a06cc83f47bc65aeadb51a0075dde13b09b55a1d | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
]
| permissive | okuoku/yuni | 8be584a574c0597375f023c70b17a5a689fd6918 | 1859077a3c855f3a3912a71a5283e08488e76661 | refs/heads/master | 2023-07-21T11:30:14.824239 | 2023-06-11T13:16:01 | 2023-07-18T16:25:22 | 17,772,480 | 36 | 6 | CC0-1.0 | 2020-03-29T08:16:00 | 2014-03-15T09:53:13 | Scheme | UTF-8 | Scheme | false | false | 943 | sls | base.sls | (library (yuni miniobj base)
(export define-miniobj-typeof define-miniobj-ref define-miniobj-set!)
(import (yuni scheme))
(define-syntax define-miniobj-typeof
(syntax-rules ()
((_ name ref0 ref1 ... refnext term)
(define-miniobj-typeof name ref0 ref1 ... (lambda (obj) (refnext obj term))))
((_ name ref0 term)
(define (name obj) (ref0 obj term)))))
(define-syntax define-miniobj-ref
(syntax-rules ()
((_ name ref0 ref1 ... refnext term)
(define-miniobj-ref name ref0 ref1 ... (lambda (obj slot) (refnext obj slot term))))
((_ name ref0 term)
(define (name obj slot) (ref0 obj slot term)))))
(define-syntax define-miniobj-set!
(syntax-rules ()
((_ name set0 set1 ... setnext term)
(define-miniobj-set! name set0 set1 ... (lambda (obj slot value) (setnext obj slot value term))))
((_ name set0 term)
(define (name obj slot value) (set0 obj slot value term)))))
)
| true |
ab1fba09bce56f7027ad5cbed2b9d872a6662ebf | 1bbeeb35c45005ab263d88431e8ee0a2fc1fcae7 | /lib/sdl-power.sls | baed32a25dbc8db0f418ff25b547c0b54445456b | [
"MIT"
]
| permissive | steven741/chez-sdl | dbe744b76e7232f961cce1d40a4da1ee144358ba | a09bb0c13d633af075e5fc6ff60606361ace6ee5 | refs/heads/master | 2021-03-30T18:05:59.328516 | 2020-01-03T22:10:16 | 2020-01-03T22:10:16 | 123,814,071 | 29 | 15 | BSD-2-Clause | 2018-08-16T20:11:20 | 2018-03-04T17:57:25 | Scheme | UTF-8 | Scheme | false | false | 710 | sls | sdl-power.sls | ;;;; -*- mode: Scheme; -*-
;;;;;;;;;;;;;;;;;;;
;;; Marshalling ;;;
;;;;;;;;;;;;;;;;;;;
(define (sdl-get-power-info)
(let*
((t (make-ftype-pointer int (foreign-alloc (ftype-sizeof int))))
(% (make-ftype-pointer int (foreign-alloc (ftype-sizeof int))))
(state (SDL_GetPowerInfo t %))
(pinfo (list (ftype-ref int () t)
(ftype-ref int () %)
(cond ((= state 0) 'SDL-POWERSTATE-UNKNOWN)
((= state 1) 'SDL-POWERSTATE-ON-BATTERY)
((= state 2) 'SDL-POWERSTATE-NO-BATTERY)
((= state 3) 'SDL-POWERSTATE-CHARGING)
((= state 4) 'SDL-POWERSTATE-CHARGED)))))
(foreign-free (ftype-pointer-address t))
(foreign-free (ftype-pointer-address %))
pinfo))
| false |
e915e41918bd6d6af9130ef98145dc42092eabfb | 174072a16ff2cb2cd60a91153376eec6fe98e9d2 | /chap2-5/polynomial-term.scm | 9fb685bba64e08b8788be36179aa1e02ced2c93a | []
| no_license | Wang-Yann/sicp | 0026d506ec192ac240c94a871e28ace7570b5196 | 245e48fc3ac7bfc00e586f4e928dd0d0c6c982ed | refs/heads/master | 2021-01-01T03:50:36.708313 | 2016-10-11T10:46:37 | 2016-10-11T10:46:37 | 57,060,897 | 1 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 3,644 | scm | polynomial-term.scm | (load "common-agrithm-2.scm")
(define (adjoin-term term term-list)
(if (=zero? (coeff term)) term-list (cons term term-list)));=zero?
(define (the-empty-list) '())
(define (first-term term-list) (car term-list))
(define (rest-terms term-list) (cdr term-list))
(define (empty-termlist? lst) (null? lst))
(define (make-term order coeff) (list order coeff))
(define (order term) (car term))
(define (coeff term) (cadr term))
(define (add-terms p1 p2)
(cond ((empty-termlist? p1) p2)
((empty-termlist? p2) p1)
(else (let((t1 (first-term p1)) (t2 (first-term p2)))
(cond ((> (order t1) (order t2))
(adjoin-term t1 (add-terms (rest-terms p1) p2)))
((< (order t1) (order t2))
(adjoin-term t2 (add-terms p1 (rest-terms p2))))
( else ;wrong!!!as (equ? (order p1) (order p2))
(adjoin-term (make-term (order t1) (+ (coeff t1) (coeff t2)));add
(add-terms (rest-terms p1) (rest-terms p2)))))))))
(define (mul-terms L1 L2)
(if (empty-termlist? L1) (the-empty-list)
(add-terms (mul-term-by-all-terms (first-term L1) L2)
(mul-terms (rest-terms L1) L2))))
(define (mul-term-by-all-terms x L)
(if (empty-termlist? L) (the-empty-list)
(let (( y (first-term L)))
(adjoin-term (make-term (+ (order x) (order y)) (mul (coeff x) (coeff y)))
(mul-term-by-all-terms x (rest-terms L))))))
(define (negate-terms term-list)
(map (lambda (t) (make-term (order t) (- (coeff t)))) term-list)) ;2-88++++
(define (sub-terms L1 L2)
(if (empty-termlist? L2) L1
(add-terms L1 (negate-terms L2)))) ;2-91++++++++++++++++++++++++++++++++++
(define (the-empty-termlist) '())
(define (div-terms L1 L2) ;2-91++++++++++++++++++++++++++++++++++
(if (empty-termlist? L1)
(list (the-empty-termlist) (the-empty-termlist))
(let ((t1 (first-term L1))
(t2 (first-term L2)))
(if (> (order t2) (order t1))
(list (the-empty-termlist) L1)
(let ((new-c (div (coeff t1) (coeff t2)))
(new-o (- (order t1) (order t2))))
(let ((rest-of-result
(div-terms (sub-terms L1
(mul-terms L2
(list (make-term new-o new-c))))
L2)))
(list (adjoin-term (make-term new-o new-c)
(car rest-of-result))
(cadr rest-of-result))))))))
(define (remainder-terms p1 p2) ;;;;;;;;2-94++++++++++
(cadr (div-terms p1 p2)))
(define (gcd-terms a b)
(if (empty-termlist? b)
a
(gcd-terms b (remainder-terms a b))))
;(define (pseudoremainder-terms a b) ;;;2-96+++++++ !!!!FAILED!!!!!!!!
; (let* ((o1 (order (first-term a)))
; (o2 (order (first-term b)))
; (c (coeff (first-term b)))
; (divident (mul-terms (make-term 0
; (expt c (+ 1 (- o1 o2))))
; a)))
; (cadr (div-terms divident b))))
; (define (gcd-terms a b) ;;;;2-96+++++
; (if (empty-termlist? b)
; (let* ((coeff-list (map cadr a))
; (gcd-coeff (apply gcd coeff-list)))
; (div-terms a (make-term 0 gcd-coeff)))
; (gcd-terms b (pseudoremainder-terms a b))))
| false |
026a63bd85346741b829acbd0f06cdeed698abf1 | d462b2cc22f0c6b282dc645089f2faed1b1dfab9 | /guix-idris.scm | 667b57451c58b01e62301a8b946266026f298aa3 | []
| no_license | CoderPuppy/dcont | 9c2b64f7de6ac21e4cb657eb1e65a28051f94002 | 70c2481d412c9912063612f95dafc8e6934a6ba8 | refs/heads/master | 2023-07-19T21:32:30.066480 | 2022-04-18T20:07:15 | 2022-04-18T20:07:15 | 294,153,495 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 3,573 | scm | guix-idris.scm | (use-modules
(guix profiles)
(gnu packages idris)
(guix packages)
(guix git-download)
(guix download)
(guix build-system gnu)
((guix licenses) #:prefix license:)
(gnu packages multiprecision)
(gnu packages llvm)
(gnu packages chez))
(define idris2-boot
(let ((commit "0fb1192cd30ec4747cbc727f26ddbfad515d1363"))
(package
(name "idris2-boot")
(version (git-version "0.1.0" "1" commit))
(source (origin
(method git-fetch)
(uri (git-reference
(url "git://github.com/edwinb/idris2-boot.git")
(commit commit)))
(sha256 (base32 "1f0b2mb7xahc4mrhbw8vp5b6iv3ci1z7yz7h12i8mnmy3nddpsfn"))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
(arguments `(#:phases (modify-phases %standard-phases
(replace 'configure (lambda _
(let ((out (assoc-ref %outputs "out")))
(setenv "PREFIX" out)
(setenv "IDRIS_CC" "clang"))))
(replace 'build (lambda _
(invoke "make" (string-append "PREFIX=" (getenv "PREFIX")) "idris2boot" "libs")))
(replace 'install (lambda _
(invoke "make" (string-append "PREFIX=" (getenv "PREFIX")) "install-all")))
(delete 'check)
)))
(inputs `(
("clang" ,clang)
("idris" ,idris)
("gmp" ,gmp)
("chez-scheme" ,chez-scheme)))
(home-page "https://idris-lang.org/")
(synopsis "A dependently typed programming language, a successor to Idris")
(description "This is the bootstrapping version of Idris 2, the successor to Idris. Its sole purpose is to build Idris 2 proper.")
(license license:bsd-3))))
(define (make-idris2 version hash boot boot-bin-name)
(package
(name "idris2")
(version version)
(source (origin
(method url-fetch)
(uri (string-append
"https://github.com/idris-lang/Idris2/archive/v"
version
".tar.gz"))
(sha256 (base32 hash))))
(build-system gnu-build-system)
(arguments `(
#:phases (modify-phases %standard-phases
(replace 'configure (lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "PREFIX" (assoc-ref outputs "out"))
(setenv "CC" "clang")
#t))
(delete 'bootstrap)
(replace 'build (lambda* (#:rest args)
(invoke "make"
(string-append "PREFIX=" (getenv "PREFIX"))
(string-append "IDRIS2_BOOT=" ,boot-bin-name)
"support" "build/exec/idris2" "testbin")
(patch-shebang (string-append (getcwd) "/build/exec/idris2"))
(invoke "make"
(string-append "PREFIX=" (getenv "PREFIX"))
(string-append "IDRIS2_BOOT=" ,boot-bin-name)
"libs")))
(replace 'install (lambda _
(invoke "make"
(string-append "PREFIX=" (getenv "PREFIX"))
(string-append "IDRIS2_BOOT=" ,boot-bin-name)
"install")))
(delete 'check)
)
))
(native-inputs `(
("idris2-boot" ,boot)
("clang" ,clang)))
(inputs `(
("chez-scheme" ,chez-scheme)))
(home-page "https://idris-lang.org/")
(synopsis "A dependently typed programming language, a successor to Idris")
(description "")
(license license:bsd-3)))
(define idris2-boot-0.2.1 (make-idris2 "0.2.1" "1izw68vnic9rh5yzvq85f9bm9qnkbdiipfqymgq04a2rr59n5qbv" idris2-boot "idris2boot"))
(define idris2 (make-idris2 "0.2.1" "1izw68vnic9rh5yzvq85f9bm9qnkbdiipfqymgq04a2rr59n5qbv" idris2-boot-0.2.1 "idris2"))
; (define idris2-boot-0.2.2 (make-idris2 "0.2.2" "05yrf0bi5h1zsx1w7c8xwg5kfyj4k4v90idmbzgfr3zrlvnlwg0i" idris2-boot "idris2boot"))
; (define idris2 (make-idris2 "0.3.0" "0x0vgfh1fc5my3ajqc31db3b3bdj34rsjyb5jclwdvj67cf946ib" idris2-boot-0.2.2 "idris2"))
(packages->manifest (list
idris idris-lens
idris2))
| false |
f64cbc70cdbd6477a980a1122782d406708c1ed5 | d755de283154ca271ef6b3b130909c6463f3f553 | /htdp-test/tests/stepper/intermediate-y.rktl | a2bfcfe2ab0da30ba1b26a3efcd81e00fdeecb6a | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
]
| permissive | racket/htdp | 2953ec7247b5797a4d4653130c26473525dd0d85 | 73ec2b90055f3ab66d30e54dc3463506b25e50b4 | refs/heads/master | 2023-08-19T08:11:32.889577 | 2023-08-12T15:28:33 | 2023-08-12T15:28:33 | 27,381,208 | 100 | 90 | NOASSERTION | 2023-07-08T02:13:49 | 2014-12-01T13:41:48 | Racket | UTF-8 | Scheme | false | false | 511 | rktl | intermediate-y.rktl | (let ((Y (lambda (f)
(let ((g (lambda (x)
(apply f (list (lambda (z1 z2)
(apply (apply x (list x)) (list z1 z2))))))))
(g g))))
(newappend (lambda (ap)
(lambda (x y)
(if (null? x)
y
(cons (first x)
(apply ap (list (rest x) y)))))))
(l (cons 1 (cons 2 (cons 3 null)))))
(apply (Y newappend) (list l l)))
| false |
bdac9d791275764e0095f068293fbe30cc461d88 | 648776d3a0d9a8ca036acaf6f2f7a60dcdb45877 | /queries/go/locals.scm | b027c217ab7efbafe6effc569bb311f5c2a3e3c8 | [
"Apache-2.0"
]
| permissive | nvim-treesitter/nvim-treesitter | 4c3c55cbe6ff73debcfaecb9b7a0d42d984be3e6 | f8c2825220bff70919b527ee68fe44e7b1dae4b2 | refs/heads/master | 2023-08-31T20:04:23.790698 | 2023-08-31T09:28:16 | 2023-08-31T18:19:23 | 256,786,531 | 7,890 | 980 | Apache-2.0 | 2023-09-14T18:07:03 | 2020-04-18T15:24:10 | Scheme | UTF-8 | Scheme | false | false | 1,793 | scm | locals.scm | (
(function_declaration
name: (identifier) @definition.function) ;@function
)
(
(method_declaration
name: (field_identifier) @definition.method); @method
)
(short_var_declaration
left: (expression_list
(identifier) @definition.var))
(var_spec
name: (identifier) @definition.var)
(parameter_declaration (identifier) @definition.var)
(variadic_parameter_declaration (identifier) @definition.var)
(for_statement
(range_clause
left: (expression_list
(identifier) @definition.var)))
(const_declaration
(const_spec
name: (identifier) @definition.var))
(type_declaration
(type_spec
name: (type_identifier) @definition.type))
;; reference
(identifier) @reference
(type_identifier) @reference
(field_identifier) @reference
((package_identifier) @reference
(#set! reference.kind "namespace"))
(package_clause
(package_identifier) @definition.namespace)
(import_spec_list
(import_spec
name: (package_identifier) @definition.namespace))
;; Call references
((call_expression
function: (identifier) @reference)
(#set! reference.kind "call" ))
((call_expression
function: (selector_expression
field: (field_identifier) @reference))
(#set! reference.kind "call" ))
((call_expression
function: (parenthesized_expression
(identifier) @reference))
(#set! reference.kind "call" ))
((call_expression
function: (parenthesized_expression
(selector_expression
field: (field_identifier) @reference)))
(#set! reference.kind "call" ))
;; Scopes
(func_literal) @scope
(source_file) @scope
(function_declaration) @scope
(if_statement) @scope
(block) @scope
(expression_switch_statement) @scope
(for_statement) @scope
(method_declaration) @scope
| false |
4f8c7696a7bcc7e9f1cd54153fd9a8e1a08e9fa0 | 1b1828426867c9ece3f232aaad1efbd2d59ebec7 | /Chapter 1/sicp1-36.scm | 67d496d33c5e3728f025b3cb832cdc0e4b3d519c | []
| no_license | vendryan/sicp | 60c1338354f506e02c714a96f643275d35a7dc51 | d42f0cc6f985aaf369f2760f962928381ca74332 | refs/heads/main | 2023-06-07T02:04:56.332591 | 2021-06-19T10:28:57 | 2021-06-19T10:28:57 | 369,958,898 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,173 | scm | sicp1-36.scm | (define (abs x)
(if (< x 0)
(- x)
x))
(define (fixed-point f guess)
(define (close-enough? a b)
((lambda (tolerance) (< (abs (- a b)) tolerance))
0.0001))
(define (fixed-point-search guess)
(let ((next (f guess)))
(newline)
(display guess)
(newline)
(display next)
(newline)
(if (close-enough? guess next)
((lambda (x)
(newline)
(display "***")
(newline)
(display x)) next)
(fixed-point-search next))))
(fixed-point-search guess))
; average damping ans : 4.5555465521473675
(fixed-point (lambda (x) (/ (+ x (/ (log 1000) (log x))) 2))
2.0)
(newline) (newline)
; without average damping : 4.555563237292884
(fixed-point (lambda (x) (/ (log 1000) (log x)))
2.0)
; My conclusion : Not much difference, both roughly converge to
; the same result. The number of step for average damping is smaller
; then step without average damping
| false |
4242665215a209e47a3d8af7e4a3a7f981670a3a | 000dbfe5d1df2f18e29a76ea7e2a9556cff5e866 | /ext/crypto/tests/testvectors/signature/rsa_signature_4096_sha512_test.scm | eb8b1fa229901a1ae7061e67cbc07656620390e8 | [
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"MIT",
"BSD-2-Clause"
]
| permissive | ktakashi/sagittarius-scheme | 0a6d23a9004e8775792ebe27a395366457daba81 | 285e84f7c48b65d6594ff4fbbe47a1b499c9fec0 | refs/heads/master | 2023-09-01T23:45:52.702741 | 2023-08-31T10:36:08 | 2023-08-31T10:36:08 | 41,153,733 | 48 | 7 | NOASSERTION | 2022-07-13T18:04:42 | 2015-08-21T12:07:54 | Scheme | UTF-8 | Scheme | false | false | 460,114 | scm | rsa_signature_4096_sha512_test.scm | (test-signature/testvector
"rsa_signature_4096_sha512_test"
:algorithm
"RSASSA-PKCS1-v1_5"
:digest
"SHA-512"
:public-key
#vu8(48 130 2 34 48 13 6 9 42 134 72 134 247 13 1 1 1 5 0 3 130 2 15 0 48 130 2 10 2 130 2 1 0 201 167 101 194 102 27 70 116 207 243 72 14 154 94 70 42 208 173 47 201 188 111 190 246 40 71 179 17 61 32 153 31 101 57 103 151 28 40 37 39 83 245 251 172 206 1 44 42 138 181 146 145 77 38 158 250 250 114 79 164 185 32 227 64 147 12 16 111 123 54 247 156 235 240 230 46 136 224 228 118 136 142 159 14 34 24 106 205 182 196 82 58 35 43 101 180 255 44 194 45 196 79 138 85 149 39 215 157 124 215 220 243 119 50 18 247 187 154 161 51 195 17 101 204 102 54 144 191 18 61 115 146 60 131 137 41 204 175 238 89 214 199 9 91 141 74 116 186 242 209 146 201 164 232 124 78 18 188 88 1 48 120 178 138 119 137 232 46 159 49 222 31 77 106 42 166 232 6 50 190 142 75 223 38 62 141 73 176 148 22 251 25 196 136 192 122 216 175 114 42 183 145 130 178 48 40 167 30 6 93 2 65 42 158 235 196 109 125 143 78 3 215 146 56 216 192 203 74 151 169 161 32 14 187 110 198 64 66 235 236 202 217 86 117 38 238 239 18 193 125 148 193 4 156 136 153 112 185 110 148 204 53 49 114 162 104 164 156 94 139 238 19 193 91 57 222 196 79 44 122 26 163 122 122 11 111 114 41 10 202 218 50 177 216 175 31 195 220 138 137 72 123 168 19 71 203 235 19 80 146 93 48 249 35 149 129 6 180 153 89 200 113 231 193 219 165 93 160 119 46 54 44 248 98 29 120 97 8 104 184 148 225 110 93 254 201 104 116 169 58 76 243 121 180 126 126 49 140 227 21 6 109 112 238 57 56 20 10 96 20 143 32 80 133 206 248 167 112 12 163 197 61 82 165 117 106 99 179 177 111 21 48 98 182 18 98 166 132 150 33 12 139 228 239 63 144 41 202 14 160 227 179 160 213 214 210 38 237 187 244 77 175 143 4 93 194 134 222 211 196 236 77 182 180 83 71 7 159 51 234 249 142 60 149 180 182 14 121 239 74 48 147 254 236 84 55 3 66 43 167 74 17 133 17 194 25 59 84 254 139 99 56 102 237 44 112 92 203 198 231 217 211 101 104 9 236 61 51 86 231 64 10 150 72 236 55 80 80 65 227 227 26 241 192 46 239 233 36 166 112 71 211 2 3 1 0 1)
:der-encode
#t
:tests
'(#(1
""
#vu8()
#vu8(156 210 139 244 27 153 250 77 242 133 45 134 83 98 87 254 17 31 99 240 24 21 20 108 5 125 195 189 169 182 99 62 73 73 93 56 130 35 146 182 185 1 230 172 105 196 240 150 35 165 36 228 146 70 195 113 12 133 161 149 121 67 216 156 131 153 176 194 166 73 147 139 176 115 64 241 76 105 129 160 218 15 211 81 99 188 126 237 172 128 173 28 191 6 164 195 42 74 8 82 53 84 37 110 178 33 57 92 118 225 247 154 94 60 91 150 54 103 61 179 186 39 238 191 131 21 70 136 136 103 31 132 65 50 78 9 33 36 223 49 211 150 173 131 103 235 124 157 10 250 68 218 232 93 86 32 139 162 30 199 193 240 237 106 54 120 245 217 123 167 8 148 34 198 98 216 108 213 20 254 133 63 56 72 22 50 25 124 27 160 126 77 146 115 94 239 59 117 175 194 95 250 144 7 105 199 75 163 79 45 21 126 116 187 171 100 207 65 59 200 88 207 108 57 62 138 254 36 249 231 17 104 233 125 185 103 23 208 8 29 136 162 114 87 216 198 146 221 14 0 31 63 220 32 144 81 37 80 173 56 114 92 16 162 1 252 80 248 220 137 236 243 99 180 210 26 125 129 94 183 133 87 212 46 101 124 180 75 252 120 82 3 232 222 0 249 225 138 241 200 225 41 83 163 59 7 23 175 33 93 155 4 183 31 195 32 189 244 213 88 250 245 93 3 211 8 68 35 117 81 227 94 214 96 107 199 6 202 67 164 126 108 73 62 20 113 144 73 6 94 184 224 7 96 40 62 231 44 26 227 206 1 156 227 38 58 144 184 52 13 26 71 180 155 120 213 202 233 96 37 57 179 121 24 110 92 30 132 123 105 199 81 82 3 108 141 158 243 199 126 205 21 27 218 231 255 54 164 89 208 187 193 223 163 60 227 220 217 78 226 207 110 224 138 119 72 87 70 48 110 217 135 238 186 174 43 170 84 75 84 59 90 254 20 62 65 34 173 229 173 250 79 212 99 162 70 242 148 130 220 231 165 21 115 170 24 252 232 127 126 221 232 66 231 242 31 249 228 12 65 1 185 34 97 110 228 193 78 161 175 60 77 65 127 232 135 106 243 129 2 125 131 127 196 13 198 132 232 27 158 236 212)
#t
())
#(2
""
#vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
#vu8(101 159 252 191 107 34 245 210 1 250 65 20 7 122 167 223 50 181 19 161 250 89 72 238 1 246 226 28 24 98 162 185 24 99 247 170 83 209 170 220 171 147 71 149 82 16 169 24 41 165 247 200 107 62 40 80 189 31 118 179 196 244 51 54 21 206 178 40 48 167 169 215 161 52 54 104 58 72 153 91 253 98 245 40 239 73 89 211 11 109 220 200 237 42 67 28 6 195 55 37 15 130 116 65 127 99 105 183 160 139 146 120 133 223 82 189 115 112 211 103 80 148 191 27 211 42 127 91 12 169 163 153 165 159 134 140 251 120 248 123 134 71 171 55 208 215 165 141 111 74 88 243 227 223 122 232 141 223 166 71 0 80 34 151 84 244 204 250 38 92 236 6 53 240 54 12 72 93 143 129 151 76 107 138 17 173 206 55 117 221 1 147 107 130 219 55 100 30 207 95 67 203 133 56 5 90 5 61 64 133 195 138 138 28 78 12 138 249 97 68 138 119 146 136 197 239 170 177 235 68 1 200 243 136 192 183 41 228 34 67 217 53 223 26 211 112 92 28 90 127 251 110 168 206 119 166 148 129 163 185 48 249 95 241 24 205 15 219 23 57 58 55 19 155 59 90 156 39 92 107 187 200 25 225 143 73 195 105 21 59 241 247 128 123 69 14 84 252 40 6 90 106 182 213 176 238 145 208 169 48 46 188 11 204 211 92 47 178 254 252 52 26 149 75 103 233 31 109 143 63 123 98 197 251 229 4 80 133 148 243 87 177 237 149 31 202 199 4 58 8 43 155 191 65 204 246 9 136 24 97 226 222 21 238 153 211 115 192 233 144 39 255 36 12 11 111 165 43 226 225 153 150 120 96 186 255 190 37 179 37 79 205 55 93 167 21 43 185 76 232 221 1 70 82 144 251 205 234 8 56 166 149 118 233 126 99 203 99 109 183 156 39 153 162 111 148 169 251 4 78 59 246 108 82 8 149 180 104 59 215 153 230 176 74 182 47 98 29 192 15 32 164 173 177 49 96 111 18 123 132 2 82 105 70 108 118 1 129 215 221 159 253 10 165 56 17 128 181 65 229 233 51 225 132 29 99 134 236 85 166 59 217 216 103 74 119 85 38 211 13 190 52 228 219 135 6 122 147 38 198 219 160)
#t
())
#(3
""
#vu8(84 101 115 116)
#vu8(70 234 164 98 74 77 44 31 16 67 235 61 23 180 141 151 120 25 168 121 111 72 242 1 116 197 13 166 36 198 87 230 77 49 84 220 250 42 91 29 140 109 46 208 124 241 241 193 154 170 97 29 100 102 247 231 236 115 223 94 231 134 87 58 220 90 158 60 29 10 37 85 157 173 40 45 178 110 136 152 7 118 65 21 160 90 35 149 154 207 72 210 59 59 51 169 61 139 108 125 227 238 68 111 17 62 239 150 5 93 40 95 223 210 120 136 229 105 197 15 2 45 94 138 186 252 135 77 213 166 29 246 37 142 133 38 139 255 102 204 86 67 16 127 125 144 151 73 108 174 220 24 91 55 49 26 182 151 159 39 62 86 112 241 67 20 107 104 228 75 73 56 149 84 119 44 28 167 187 122 18 252 246 125 103 161 253 12 36 91 180 203 185 36 39 106 231 86 9 133 153 57 44 222 7 106 28 14 220 128 150 217 18 94 90 93 48 194 169 61 0 254 46 3 98 233 133 146 200 253 49 171 91 76 59 52 230 93 56 202 12 37 135 78 179 148 224 73 105 152 43 112 147 38 22 183 94 226 145 44 106 7 242 14 199 14 82 190 99 14 190 2 76 6 34 174 209 37 224 11 200 73 128 65 107 128 203 167 117 46 185 10 242 184 33 92 75 85 152 128 210 225 197 119 183 55 69 49 3 128 131 114 93 35 208 45 79 165 216 181 164 198 142 158 165 225 31 226 217 224 60 27 138 77 176 176 83 9 123 90 23 91 17 49 232 190 239 93 85 155 204 63 23 237 46 111 99 4 192 228 101 10 43 182 117 170 141 228 74 248 162 227 1 115 69 132 238 161 69 196 179 137 246 24 14 99 149 65 42 231 14 87 244 136 237 21 212 88 149 190 88 11 216 124 217 22 184 242 14 70 173 47 255 3 103 221 165 66 102 119 139 180 68 198 228 253 212 95 166 44 174 58 235 84 182 167 166 180 216 6 142 58 77 7 48 240 38 3 64 166 195 44 60 93 51 245 20 97 44 148 27 182 61 115 13 245 88 73 51 225 37 70 80 4 149 181 237 59 163 99 26 61 184 113 209 115 83 212 193 102 118 160 51 43 164 196 196 198 140 219 111 242 31 247 55 238 36 155 225 83 193 217)
#t
())
#(4
""
#vu8(49 50 51 52 48 48)
#vu8(18 129 49 83 179 127 166 192 253 117 90 28 124 64 155 184 22 156 90 57 208 69 223 242 218 2 178 248 232 137 123 12 220 108 45 64 230 148 91 151 0 111 24 225 178 105 131 247 123 112 191 41 97 181 229 242 117 146 65 218 238 140 86 252 167 197 60 129 246 157 58 3 65 114 13 151 97 164 247 190 140 6 132 100 232 129 200 90 44 57 224 172 111 116 246 245 203 66 223 140 55 19 246 106 40 45 127 186 133 183 160 154 106 248 58 6 139 120 191 232 58 178 88 65 228 188 103 201 228 12 242 160 151 79 136 117 251 129 204 106 17 91 145 249 34 65 156 68 234 130 179 49 135 82 26 126 31 70 192 171 148 89 180 233 122 63 74 29 158 146 64 58 55 22 136 38 250 14 233 20 35 42 251 108 77 125 208 130 208 197 136 133 227 86 208 239 184 170 154 227 61 4 95 36 180 179 24 45 92 84 85 111 88 56 196 73 211 26 73 163 172 75 165 104 194 72 237 114 193 17 181 255 171 217 145 235 245 196 142 251 202 51 203 56 153 109 88 73 146 196 171 220 199 185 55 0 202 3 97 148 18 163 85 180 27 0 10 50 246 204 73 53 249 66 32 155 86 162 60 251 123 120 141 206 182 146 52 57 149 247 125 175 250 37 228 77 103 47 139 196 81 247 118 86 11 65 93 13 27 254 153 37 175 28 37 103 168 233 189 21 184 85 77 147 55 124 98 176 173 218 189 39 232 217 224 133 159 73 139 168 224 48 148 225 216 109 65 230 159 118 6 217 241 250 192 71 68 195 183 184 252 73 66 168 70 226 163 100 155 217 65 109 80 11 152 149 69 95 182 116 30 216 237 79 66 111 32 171 64 216 171 46 108 246 198 63 92 41 15 192 17 118 139 49 123 222 73 117 62 251 223 209 37 131 241 202 121 40 114 37 249 195 211 237 12 69 48 129 94 79 94 126 215 141 20 174 192 208 65 66 208 172 15 163 187 93 115 180 191 218 47 231 16 58 42 180 6 114 171 240 142 244 217 229 55 185 248 86 211 36 80 226 228 29 146 119 190 98 173 6 117 209 165 48 112 159 39 71 245 31 23 171 161 3 129 253 199 12 98 107 171 69 213 17 102 182 246 173 151 141 45 238)
#t
())
#(5
""
#vu8(77 101 115 115 97 103 101)
#vu8(39 160 66 98 95 80 103 63 233 237 171 154 162 251 76 96 220 174 11 226 232 183 86 98 189 221 236 123 29 105 128 101 81 10 25 62 23 152 27 176 177 195 46 70 210 55 225 89 21 175 226 226 212 137 12 9 144 126 24 102 9 92 25 118 53 36 182 200 210 219 183 129 74 197 4 127 10 8 47 127 237 65 9 116 31 71 25 225 46 187 145 242 122 60 218 113 232 14 200 167 246 200 130 234 91 61 227 201 241 86 207 240 51 160 211 207 120 127 154 138 131 58 41 208 201 111 11 104 204 245 95 252 98 9 142 33 240 223 24 50 183 8 120 220 148 239 26 50 96 236 47 165 109 211 196 254 206 93 133 86 68 210 96 18 245 109 42 248 90 7 113 214 19 103 183 226 102 87 126 68 196 68 52 121 112 144 138 182 207 174 66 6 158 44 238 223 99 103 156 43 208 54 151 149 126 40 125 21 107 39 23 164 22 240 228 173 150 134 142 28 123 128 235 132 233 151 120 246 112 202 57 193 94 31 144 29 239 30 253 130 78 165 247 187 225 39 220 232 200 245 61 132 159 225 23 42 18 84 202 236 19 177 11 6 18 231 45 63 142 114 6 238 226 98 14 142 60 14 161 118 222 180 177 253 245 216 211 123 87 175 85 60 247 98 142 173 116 68 63 152 101 91 81 102 205 192 129 144 215 227 177 52 215 28 33 191 172 222 62 70 115 82 158 109 138 156 122 139 65 148 81 231 236 198 193 106 68 184 225 179 242 201 209 200 34 223 143 43 81 216 253 2 112 116 171 45 28 82 209 106 171 10 38 108 125 158 192 61 247 230 49 5 46 103 162 137 99 191 133 96 232 147 38 22 139 183 200 245 161 82 247 172 84 164 110 136 25 12 98 169 56 98 137 80 223 136 26 75 228 19 106 85 186 212 246 8 211 159 243 121 7 166 249 155 222 224 101 229 204 210 146 31 143 26 46 186 252 179 54 252 108 169 106 32 122 90 10 120 115 66 10 46 163 131 165 241 198 4 201 59 108 10 198 146 68 240 93 84 202 177 132 198 89 46 155 196 6 157 246 13 60 188 191 22 114 157 194 243 243 84 4 116 137 10 190 242 158 27 33 222 232 175 3 134 171 97 120 77 122 248 215 156)
#t
())
#(6
""
#vu8(97)
#vu8(46 100 43 138 82 8 137 11 82 24 119 41 196 58 26 48 140 246 184 70 186 28 47 255 21 47 244 161 176 81 117 63 20 171 3 92 47 63 115 45 90 157 247 194 203 115 45 9 248 20 117 9 191 2 223 138 210 105 36 238 176 77 222 216 70 123 102 197 227 234 227 132 86 143 98 78 85 200 28 253 142 50 4 66 38 119 171 98 217 25 161 118 71 27 31 168 186 228 75 204 141 77 17 106 106 254 94 162 119 58 197 42 36 24 109 106 67 116 23 28 224 81 107 186 135 51 197 159 56 214 34 183 182 183 202 126 210 18 63 127 70 182 192 107 2 244 199 80 108 70 50 125 124 217 8 221 213 3 253 66 190 60 200 150 0 142 185 32 43 189 122 240 139 153 8 18 26 139 39 250 68 116 114 23 239 114 168 197 73 68 66 50 233 32 156 161 52 94 224 23 1 4 9 82 127 175 7 34 227 241 54 65 237 229 115 6 57 191 86 12 138 101 94 47 150 203 186 123 40 17 218 138 31 195 229 18 92 146 117 78 167 184 35 243 148 153 139 136 144 96 43 23 19 194 164 211 82 6 110 1 245 94 168 111 227 218 113 249 17 147 0 216 72 116 182 103 166 83 138 144 171 36 174 194 189 253 155 169 165 240 195 7 45 84 150 83 177 111 74 67 25 202 57 129 71 230 117 63 154 4 139 91 37 12 100 213 153 17 91 183 23 206 133 200 55 13 246 44 147 218 126 16 254 112 90 18 72 46 111 37 230 239 31 72 81 163 5 170 77 194 27 8 121 24 133 134 127 193 12 85 3 167 105 166 214 121 74 181 169 204 93 166 140 252 53 70 176 232 72 237 134 41 236 222 214 32 238 63 166 220 18 54 181 152 116 145 108 69 249 196 9 201 136 155 184 93 123 40 158 229 244 95 109 51 38 45 234 131 179 44 7 20 23 211 117 156 246 80 185 212 52 104 255 12 46 146 38 50 232 215 63 235 76 85 254 66 51 220 31 12 198 246 229 34 251 201 233 54 47 29 105 68 29 86 238 95 50 82 220 5 89 51 147 53 144 31 83 155 162 116 204 54 64 236 119 106 18 197 199 229 193 207 237 222 220 204 227 104 132 234 1 7 28 43 207 174 126 191 181 184 116 230)
#t
())
#(7
""
#vu8(224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255)
#vu8(129 29 236 4 17 36 211 237 157 94 170 156 118 12 165 117 110 66 82 86 135 212 175 112 18 49 103 30 143 127 68 72 234 155 158 170 203 217 201 150 89 238 60 23 82 119 211 12 222 222 115 225 179 50 255 228 27 139 115 113 80 206 31 28 103 170 107 34 255 128 16 119 196 36 26 111 244 175 143 77 185 70 44 112 193 62 29 168 110 222 196 4 42 112 190 157 8 56 77 147 38 129 218 228 143 219 131 20 145 112 71 37 100 165 188 104 203 233 82 199 110 71 107 153 200 165 161 236 170 232 9 105 10 1 75 40 34 77 219 156 157 206 13 79 106 119 250 40 136 167 31 58 169 181 222 218 10 244 10 208 70 77 154 219 210 111 222 36 37 35 192 150 16 97 36 4 139 175 232 36 247 51 176 175 72 0 86 222 35 20 245 226 125 181 170 63 209 87 5 119 126 20 239 210 172 67 190 177 47 143 73 109 9 16 58 179 119 151 28 221 69 233 175 238 139 170 135 76 35 211 148 46 227 165 5 187 195 144 29 212 207 85 234 138 48 250 192 203 117 71 147 251 45 143 78 220 41 175 213 27 153 20 10 141 3 170 6 20 22 148 40 32 95 205 102 193 4 125 51 102 251 50 241 194 177 188 254 216 174 35 88 14 210 84 195 220 177 39 218 241 106 236 24 146 113 78 224 90 28 235 78 86 26 30 156 143 212 17 142 248 204 158 6 59 216 108 85 210 139 138 204 157 91 76 88 149 131 231 198 183 143 213 24 216 202 133 184 133 23 241 12 39 172 162 240 188 250 84 186 91 185 78 213 176 5 227 216 113 182 139 134 233 106 223 18 88 128 55 173 201 124 190 245 156 5 240 210 22 45 178 228 204 228 18 39 223 17 234 181 68 157 97 43 229 110 246 252 82 36 82 87 51 64 212 214 138 240 23 141 79 25 219 106 13 237 82 31 26 152 43 197 86 125 189 226 3 111 116 214 214 123 128 108 204 124 127 112 211 9 44 34 201 193 172 243 7 183 81 217 148 250 82 89 165 4 102 104 160 71 175 228 195 48 46 144 139 247 11 198 181 92 57 114 107 242 76 236 168 9 53 124 98 59 137 251 240 234 248 181 209 136 35 51 126 126 2 69 216 101 87 76 185)
#t
())
#(8
"Legacy:missing NULL"
#vu8(49 50 51 52 48 48)
#vu8(71 221 137 83 249 254 240 51 212 40 149 138 50 164 179 9 131 215 235 153 80 195 217 172 209 103 213 13 148 69 202 254 43 208 47 68 219 95 124 95 111 153 157 62 28 174 91 116 88 205 50 32 3 65 50 163 25 84 129 251 229 186 107 135 141 133 198 248 236 83 118 159 40 36 93 172 246 107 86 43 236 18 57 153 25 38 91 60 233 156 95 34 23 195 245 179 50 40 167 48 10 14 135 23 70 117 179 121 255 205 138 4 132 103 240 77 242 181 183 167 184 227 184 255 235 45 205 64 138 147 99 137 21 24 152 138 42 9 69 62 152 247 205 115 174 232 190 3 172 176 188 141 103 247 249 68 182 42 113 122 122 93 201 134 154 195 211 14 127 223 104 206 244 57 234 187 130 32 198 146 48 22 240 11 53 60 229 32 154 206 93 56 122 127 80 219 224 154 125 46 82 31 28 229 114 81 196 136 131 34 157 252 234 34 14 49 129 10 255 104 218 147 116 71 21 240 114 13 73 216 165 243 223 44 229 109 143 164 44 2 48 7 41 232 9 157 246 232 211 155 207 237 80 42 94 249 16 176 36 224 144 49 225 65 38 110 84 147 230 66 2 167 124 102 29 168 195 99 247 19 183 130 71 216 150 43 39 30 108 233 104 129 7 117 182 231 107 87 127 1 194 77 174 183 247 101 233 170 1 24 22 129 3 165 24 112 218 203 180 20 67 137 203 14 34 30 101 41 249 105 32 5 162 130 142 104 147 108 51 156 150 247 188 180 174 97 73 77 3 163 255 70 173 222 52 174 198 113 181 170 255 47 182 29 198 1 31 83 249 221 154 25 187 111 1 128 237 144 164 237 68 236 14 207 151 252 80 193 86 7 209 198 228 45 53 227 101 38 243 163 146 120 167 175 162 96 27 167 97 2 146 189 111 4 191 248 95 140 79 50 243 43 66 55 144 133 180 97 234 238 101 222 133 239 47 189 206 29 13 195 145 32 245 103 14 226 186 91 18 144 40 120 210 234 227 146 144 144 157 197 93 100 209 214 176 60 251 75 20 77 171 158 123 216 203 254 133 0 87 110 26 159 48 8 24 171 206 0 47 254 219 78 143 47 15 88 234 179 111 92 129 146 155 80 87 141 76 163 98 107 135 254)
#t
("MissingNull"))
#(9
"long form encoding of length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(23 172 20 172 33 211 138 170 133 117 66 169 216 113 247 216 26 130 156 57 170 38 203 231 219 114 47 104 228 57 122 124 117 139 17 160 21 78 221 66 225 204 107 100 4 114 56 206 65 119 85 138 12 170 194 166 198 97 54 200 52 123 160 88 214 170 223 163 99 11 76 68 250 114 5 224 184 169 88 46 181 217 4 205 199 210 94 91 159 200 59 180 252 87 35 179 23 24 52 192 125 89 135 111 154 199 113 238 102 238 23 218 225 82 220 253 134 9 95 205 144 134 151 0 142 193 119 101 54 114 77 158 67 34 182 247 207 165 153 73 160 185 190 121 144 173 165 103 34 230 83 107 142 20 66 224 240 216 121 158 187 54 231 136 28 205 82 221 205 138 128 51 207 175 109 62 42 95 45 90 170 4 41 26 177 30 72 231 69 196 222 63 202 211 18 2 97 208 30 202 3 245 2 182 158 161 213 214 245 85 110 154 25 141 102 59 5 183 214 49 220 151 92 183 54 139 143 52 250 196 124 98 30 96 22 57 20 20 75 46 152 226 249 147 96 111 25 97 210 241 118 161 177 235 23 225 25 212 143 210 36 152 137 168 155 230 138 199 138 65 90 135 82 240 66 95 27 170 28 197 222 154 78 11 81 190 208 129 235 219 83 138 112 190 150 207 117 25 238 218 85 188 207 167 236 95 200 42 207 136 3 106 249 19 205 139 48 241 130 100 109 159 127 2 218 162 115 6 240 234 47 223 67 106 64 186 206 87 142 194 22 106 64 128 199 206 244 168 98 128 72 32 2 13 155 220 207 178 40 156 153 174 97 238 63 179 179 169 211 246 223 103 44 70 144 232 201 67 242 254 35 181 113 138 25 148 57 197 178 220 101 182 61 55 224 4 64 251 186 81 102 2 66 85 4 132 201 76 139 111 80 75 11 180 226 87 159 31 86 0 66 183 33 219 125 46 194 234 23 84 1 193 72 153 6 47 144 34 252 13 142 71 117 200 209 12 99 206 246 30 156 100 159 119 19 81 185 70 32 163 48 95 45 75 104 28 17 8 155 95 221 251 189 210 145 204 249 225 169 151 193 178 230 171 60 177 225 189 180 40 89 12 237 83 76 212 218 90 149 72 243 216 166 237 194 1 57 17 93 69 152 83)
#f
())
#(10
"long form encoding of length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(21 133 0 18 209 165 175 136 181 209 16 90 160 170 207 64 76 36 23 222 61 236 4 72 76 172 104 127 107 236 83 28 213 105 7 78 92 68 186 21 178 126 189 19 29 1 140 42 75 70 58 224 41 190 248 41 94 137 197 148 194 58 201 135 142 109 122 3 39 108 183 192 181 35 30 136 127 167 224 252 53 41 193 30 37 128 227 41 230 92 102 156 52 105 152 214 135 251 247 231 107 53 57 96 87 83 195 205 112 141 193 154 7 35 49 215 114 144 216 16 49 27 35 167 97 55 221 181 7 55 67 111 163 31 7 136 82 188 13 84 99 100 162 132 86 196 4 139 174 51 124 204 15 216 113 60 2 113 58 152 127 137 249 134 140 182 70 88 171 27 130 152 132 107 211 107 142 251 188 160 136 182 72 157 105 166 116 174 241 17 145 195 64 158 165 182 66 140 45 132 120 51 219 21 99 199 119 39 112 109 38 87 174 143 36 154 117 226 58 23 130 2 79 35 56 51 48 209 31 27 145 202 123 14 191 190 63 74 95 198 178 211 114 16 177 96 73 162 170 97 3 14 209 193 91 93 46 189 26 14 206 54 222 47 83 179 99 35 160 235 37 212 247 126 163 88 37 145 225 63 0 232 54 168 122 31 210 253 67 47 7 79 220 161 162 126 151 223 182 47 22 102 39 123 239 20 4 149 134 1 212 230 184 178 65 37 180 168 108 157 251 38 12 62 184 71 80 186 0 147 10 31 119 114 81 15 220 11 38 94 254 175 181 222 140 37 37 245 112 111 223 82 166 232 19 189 209 140 246 131 219 233 74 109 242 70 67 102 112 123 236 52 207 235 176 151 178 240 37 1 26 12 75 95 38 61 48 252 12 103 198 229 166 95 34 129 180 99 152 140 235 155 7 39 24 128 42 10 128 165 47 144 175 26 234 220 143 178 144 188 223 234 51 58 144 181 92 26 115 131 150 101 223 48 245 180 47 62 121 95 241 245 124 221 126 223 222 225 220 188 129 21 91 195 190 30 38 64 132 238 61 122 244 254 141 154 91 233 203 38 146 103 79 31 96 129 57 185 112 125 196 196 181 182 150 141 64 129 35 105 70 244 198 237 44 136 54 118 154 3 249 232 126 253 28 85 95 74 193 1 56 130)
#f
())
#(11
"length of sequence contains leading 0"
#vu8(49 50 51 52 48 48)
#vu8(176 83 242 11 145 131 116 114 66 87 70 197 203 60 38 244 170 36 187 88 72 37 86 180 24 170 211 170 109 247 27 159 103 251 102 133 91 131 238 87 231 166 42 186 147 22 125 154 10 173 181 20 199 217 244 198 224 0 15 234 133 37 174 227 158 188 213 144 23 254 94 88 186 117 28 137 218 169 118 193 88 217 222 96 25 34 48 192 206 133 248 50 136 47 179 219 103 26 224 145 200 134 85 157 206 102 173 29 106 192 165 209 178 235 242 225 195 13 136 196 109 67 249 255 206 25 42 209 206 245 122 127 12 67 127 109 37 219 7 27 116 180 159 174 227 185 115 46 158 12 127 239 88 229 185 151 18 119 65 31 255 99 106 162 57 61 220 130 32 35 25 242 170 91 45 20 2 70 9 49 15 156 79 182 184 100 21 4 21 31 7 236 29 184 247 41 236 187 173 213 161 210 25 105 205 202 109 76 158 121 149 222 103 62 247 158 149 56 79 131 144 3 3 193 87 172 121 188 182 129 210 96 30 155 47 151 169 67 140 239 58 140 203 114 167 64 117 10 44 222 205 27 27 13 244 163 19 233 18 112 30 130 215 109 74 249 200 225 138 209 117 52 94 245 153 104 234 140 93 198 42 138 251 57 245 37 21 214 232 82 121 2 160 61 171 9 65 146 8 99 106 59 14 237 168 20 141 45 220 225 105 173 51 137 119 110 16 172 58 136 177 229 127 15 93 168 225 43 177 51 159 28 191 211 103 178 33 252 39 84 193 133 253 82 137 125 234 207 173 250 64 30 186 157 85 82 21 146 49 28 163 68 28 66 40 137 106 9 192 128 68 63 120 20 78 62 93 128 104 169 70 250 13 48 178 24 124 234 40 8 89 19 172 134 5 30 119 248 72 115 255 43 21 4 85 252 36 134 237 173 82 28 205 11 88 169 5 91 4 150 100 209 21 111 78 180 237 57 59 247 58 93 61 9 207 125 22 59 78 245 223 97 141 198 165 125 41 131 2 75 119 158 182 163 51 28 188 167 32 148 5 42 134 33 210 77 118 219 116 26 159 87 220 66 244 23 18 180 116 205 138 217 15 179 72 162 100 111 69 108 111 253 138 48 101 126 52 78 87 188 248 144 189 10 45 25 155 236 158 45 91 229)
#f
())
#(12
"length of sequence contains leading 0"
#vu8(49 50 51 52 48 48)
#vu8(77 143 234 226 105 105 107 165 170 117 10 73 182 78 115 70 222 158 17 206 51 26 60 123 249 23 197 70 123 176 119 9 145 80 183 96 84 31 206 53 82 16 115 252 104 165 198 56 165 136 79 255 87 126 151 240 215 143 170 184 22 28 164 199 102 238 76 216 158 38 216 183 71 103 29 132 187 161 134 95 209 51 229 26 126 129 232 152 111 12 149 64 14 203 88 200 176 175 138 171 201 171 53 42 103 80 65 231 188 205 151 44 43 224 16 128 173 23 92 118 228 49 255 103 7 128 228 182 61 52 170 105 227 34 118 150 216 115 106 109 111 194 226 0 21 24 10 104 1 23 166 240 79 143 86 131 109 144 127 217 239 225 10 127 181 160 245 127 100 97 251 82 116 148 233 103 133 104 225 104 168 58 214 27 140 92 201 135 47 39 168 14 21 159 133 71 132 145 134 235 196 58 84 196 27 212 156 13 188 72 250 44 227 120 28 236 29 102 35 1 112 53 207 116 37 215 253 138 133 98 211 171 54 201 230 5 115 143 130 181 167 127 198 90 253 33 121 99 231 16 161 227 164 227 8 98 200 168 241 140 151 176 149 246 138 224 135 140 227 207 29 6 45 212 64 118 78 25 134 140 91 152 240 133 117 214 94 11 148 76 232 59 53 2 141 164 102 5 29 8 43 166 108 38 80 234 202 158 169 216 56 4 244 20 55 163 234 67 147 45 220 33 127 238 44 89 118 91 94 134 46 133 190 209 158 155 160 222 65 214 78 81 141 209 199 194 242 240 180 191 68 180 11 38 238 174 9 17 208 198 59 27 44 187 243 203 142 36 161 236 109 221 112 185 212 66 49 62 71 253 54 209 241 98 77 7 29 229 61 118 56 74 238 237 222 105 124 32 109 210 124 177 213 78 81 54 33 53 20 68 164 209 57 206 226 253 4 255 118 13 8 214 170 148 159 233 242 194 235 206 205 164 248 71 137 0 80 62 175 23 42 99 212 214 222 234 198 123 59 136 12 242 15 132 114 57 68 81 202 173 131 175 30 141 226 226 156 11 249 4 242 136 215 75 115 251 51 15 179 165 11 99 236 175 238 138 217 112 19 97 219 9 161 2 97 70 187 208 255 196 240 55 84 136 229 161 120 175 48 75 99 1)
#f
())
#(13
"wrong length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(81 19 40 135 114 3 15 236 119 181 188 234 154 89 154 149 2 216 220 107 43 19 131 42 226 60 52 228 190 137 238 239 196 205 206 51 17 252 101 32 239 129 100 172 64 158 156 42 143 107 63 122 229 71 136 189 101 47 115 203 137 2 190 63 15 149 198 75 113 53 162 49 216 176 172 157 187 130 68 20 8 234 228 50 16 106 236 216 22 126 13 63 245 111 237 253 208 250 205 175 20 120 24 63 195 90 82 46 52 147 62 192 120 68 242 29 207 118 237 14 239 113 85 151 105 238 107 90 107 251 20 246 84 82 142 110 36 205 63 51 22 52 232 136 98 242 179 126 37 205 97 84 154 124 226 7 170 191 101 80 41 44 33 177 135 163 7 7 235 10 70 59 226 188 140 167 83 47 27 0 247 191 62 123 86 31 104 92 145 246 73 44 91 114 143 242 250 38 134 94 111 27 200 90 216 77 68 114 143 181 73 252 157 30 246 204 15 206 96 60 63 217 75 168 191 121 95 223 27 52 122 159 90 197 143 29 146 43 199 204 55 84 207 66 114 135 168 69 141 7 90 20 143 106 51 106 15 222 97 127 119 23 137 205 175 114 35 162 218 183 20 72 207 226 194 255 171 212 62 184 57 197 236 168 69 56 120 94 60 111 28 176 161 158 83 43 94 254 187 218 181 185 130 96 242 97 144 163 89 195 120 152 53 72 73 124 215 70 212 238 0 33 241 72 166 199 181 174 151 233 109 114 86 85 33 185 217 234 6 106 59 191 186 20 39 212 0 153 202 54 126 55 139 34 118 22 211 214 121 171 88 50 178 220 147 210 235 73 147 173 229 1 5 156 250 139 145 97 88 170 130 56 189 94 28 216 62 74 46 230 118 223 203 133 5 25 6 249 74 136 97 245 226 103 153 18 223 91 72 186 48 155 144 251 56 62 33 58 112 235 186 9 100 176 15 125 244 81 198 214 14 195 131 80 226 96 134 31 91 94 134 175 143 173 253 9 214 109 141 28 73 85 252 141 171 186 130 185 55 221 234 64 3 249 195 157 78 123 21 44 77 19 253 46 84 252 149 205 60 62 27 242 10 6 95 182 167 141 22 30 128 188 75 192 12 91 217 58 207 172 2 124 148 210 26 204 188 66 60 41 50 219)
#f
())
#(14
"wrong length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(120 225 129 127 70 113 248 199 55 221 69 202 125 6 154 87 45 115 1 9 39 229 149 125 214 240 94 206 222 52 72 126 139 65 104 230 102 48 90 128 234 211 246 245 112 29 53 3 151 238 115 15 251 106 50 1 97 201 116 61 176 156 223 162 114 104 51 131 39 18 135 144 142 181 166 27 14 114 203 120 59 75 15 52 31 4 41 115 36 126 82 83 48 32 30 237 11 10 216 129 88 45 233 202 112 170 102 229 23 31 192 138 226 42 137 166 213 191 97 240 86 236 2 251 82 7 168 44 160 39 13 164 45 68 175 183 159 41 151 130 218 127 200 21 99 32 232 55 38 156 145 112 222 197 167 103 69 30 223 5 67 54 28 94 94 244 246 161 101 205 232 176 246 198 182 198 44 237 221 115 187 171 129 93 8 52 0 70 87 148 130 227 154 33 109 45 200 6 159 234 114 41 55 186 83 51 205 71 144 84 151 229 18 185 4 219 135 49 168 128 6 170 107 101 8 65 246 54 203 117 193 182 208 190 50 185 85 56 158 177 246 171 93 241 155 222 185 236 25 240 144 215 164 107 29 69 6 49 38 3 123 159 143 2 88 22 188 121 211 59 152 60 181 118 57 42 225 53 188 239 120 102 101 82 43 101 166 175 202 227 227 69 192 109 85 29 90 18 43 48 91 65 49 68 205 164 165 128 18 213 57 188 127 147 38 241 168 15 247 11 92 222 53 54 34 87 125 210 61 16 247 93 32 104 57 39 76 119 31 44 110 77 161 235 123 147 195 192 100 14 191 125 61 128 16 226 42 45 88 40 27 143 129 28 248 249 151 37 84 47 201 5 146 40 253 126 1 17 59 156 60 137 86 186 222 183 152 216 150 6 244 129 233 156 34 46 161 145 138 38 172 164 154 156 233 139 212 253 101 141 237 60 90 44 148 102 67 255 49 45 65 139 123 13 160 232 217 108 233 29 168 204 3 124 22 40 6 50 8 62 224 3 46 246 85 50 236 220 69 88 157 221 172 31 171 82 248 237 85 227 92 38 20 37 112 29 151 120 174 83 202 245 149 215 179 37 16 247 223 168 167 200 106 244 227 88 254 8 184 239 193 152 53 224 233 196 13 218 47 26 192 86 19 162 101 32 240 202 90 18 110 149)
#f
())
#(15
"wrong length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(36 104 115 223 94 151 132 131 171 107 222 43 249 2 25 191 206 61 43 109 214 219 58 50 213 243 218 56 8 229 173 148 95 29 205 241 24 111 6 110 248 134 12 136 84 204 128 234 121 71 88 168 77 207 57 156 158 207 197 79 24 77 225 57 125 72 178 161 84 50 66 44 96 213 10 228 44 168 32 59 230 135 244 165 31 178 127 70 174 92 143 254 53 75 112 141 158 112 7 175 34 180 42 38 98 166 28 225 0 23 97 243 147 92 214 100 158 252 245 4 158 78 204 13 173 248 66 77 195 190 131 162 153 144 46 195 135 228 42 121 32 113 112 190 165 219 36 199 41 216 17 182 174 148 128 6 88 9 170 9 86 118 13 64 254 7 89 2 74 242 118 32 193 42 156 226 248 66 180 41 208 5 132 136 87 169 4 237 98 204 166 117 44 181 190 25 53 198 86 44 51 25 212 46 253 221 73 7 5 234 255 70 200 34 248 26 40 198 220 68 220 158 8 137 63 253 165 224 68 33 122 110 1 252 176 246 229 94 241 166 57 60 237 112 73 101 125 76 55 179 220 165 95 94 216 202 56 58 74 114 195 166 234 111 9 109 28 219 99 199 103 208 197 244 144 0 6 206 209 94 13 57 161 166 194 211 111 105 175 37 178 163 36 254 101 104 228 102 91 76 169 115 15 80 174 169 172 152 187 42 138 202 37 19 46 97 74 112 194 5 51 204 11 120 193 9 41 136 72 45 212 44 209 62 74 58 218 191 69 248 17 214 56 145 82 20 177 132 105 46 160 155 131 151 90 94 12 51 132 201 179 125 182 103 207 50 31 61 41 124 15 79 234 28 128 237 47 220 33 140 11 125 185 207 141 163 112 206 194 85 73 242 160 229 190 0 29 243 23 240 209 246 243 107 77 187 228 164 153 229 229 192 4 165 27 200 132 53 135 46 76 78 52 17 86 25 101 155 148 186 202 218 97 231 211 40 59 245 162 62 108 84 139 208 137 166 85 53 36 228 48 40 94 46 226 120 118 130 66 149 43 4 23 50 252 112 145 38 5 55 176 128 29 80 224 24 145 205 173 171 5 198 113 163 157 212 109 180 217 152 142 3 89 63 123 64 2 179 237 75 12 225 176 230 213 37 60 66 63 89 191 110)
#f
())
#(16
"wrong length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(13 147 235 36 123 188 241 0 59 51 96 253 138 176 99 55 139 175 156 164 61 241 237 70 170 192 52 41 173 29 129 112 113 82 44 197 109 254 97 233 109 182 238 116 122 94 191 203 226 174 108 167 87 27 23 185 232 226 163 245 253 136 121 241 103 211 249 194 15 237 114 5 140 0 128 26 64 88 68 97 34 239 4 216 104 90 22 128 79 249 28 0 115 239 166 151 186 77 102 57 253 120 154 63 239 106 83 250 94 176 98 200 44 151 75 248 32 109 205 86 23 237 24 81 245 55 100 58 225 107 88 227 104 69 102 54 181 111 79 205 169 200 16 65 222 241 207 200 84 32 58 240 165 173 88 30 161 38 190 232 74 68 82 197 134 2 162 238 208 238 8 46 241 159 74 199 95 138 123 165 45 146 127 53 163 189 207 198 65 131 35 138 223 17 116 221 220 41 196 154 228 225 227 56 143 176 141 40 217 203 179 121 221 108 131 144 63 9 111 57 90 211 190 244 250 36 94 106 167 175 85 51 171 107 237 255 39 117 100 158 92 190 137 81 58 24 176 11 167 38 149 78 240 237 148 134 90 125 154 173 30 132 84 21 203 193 158 3 155 63 122 126 79 184 160 180 126 223 253 156 110 178 131 67 49 240 182 54 251 94 202 66 146 91 93 171 75 160 128 120 167 26 110 68 137 106 189 6 39 111 111 46 65 241 34 132 139 148 226 162 43 175 45 38 42 6 73 142 0 132 247 0 237 29 35 250 167 178 186 159 122 113 103 63 79 140 42 154 0 230 17 245 60 32 149 196 61 158 120 193 169 221 115 205 207 11 116 170 219 71 18 122 153 12 231 220 51 94 226 111 76 19 254 228 90 30 180 75 153 178 50 95 220 48 227 63 214 117 251 153 29 72 126 253 71 138 199 156 141 122 87 221 33 12 92 185 198 252 199 190 26 126 74 134 242 221 222 30 200 228 172 104 123 97 35 22 70 217 69 123 75 172 93 213 235 162 238 207 173 204 88 82 221 47 31 123 154 20 160 211 70 198 239 252 226 84 156 159 229 82 191 31 33 185 158 90 1 61 65 181 105 48 89 251 144 91 195 14 180 11 7 94 168 218 9 47 171 32 36 230 192 60 70 48 245 62 49 184 231 139 226 83)
#f
())
#(17
"uint32 overflow in length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(63 227 219 29 251 180 26 103 94 71 104 86 44 96 220 44 46 211 196 48 34 181 79 76 159 168 233 157 230 169 60 230 80 152 76 108 39 183 188 85 36 192 176 50 201 17 95 174 44 210 58 199 176 62 73 108 111 71 133 231 4 91 36 210 38 178 172 83 91 126 182 5 207 139 86 144 106 185 90 176 226 230 203 62 43 61 247 27 113 76 102 104 90 36 51 36 78 209 83 168 245 38 186 214 10 83 12 151 234 154 35 143 202 111 197 170 194 149 162 87 179 47 166 253 198 143 146 22 216 17 137 7 242 130 223 31 178 8 86 68 205 140 81 209 190 159 109 250 159 62 170 165 122 204 117 209 189 41 195 165 159 22 114 21 201 6 3 231 144 197 101 139 45 120 135 37 79 248 6 48 18 42 181 87 128 131 85 99 81 237 241 207 251 126 66 119 90 94 247 155 47 246 202 215 161 184 243 42 119 4 189 170 215 214 56 68 183 203 122 41 81 85 253 134 67 4 76 58 131 248 103 212 39 81 30 53 32 121 245 120 240 15 165 85 117 68 94 74 245 198 228 37 0 208 228 255 235 113 142 19 7 109 149 49 25 91 204 54 51 57 96 6 8 48 73 98 86 112 44 32 223 71 89 199 76 186 56 154 215 48 1 241 102 163 182 194 217 230 157 43 59 248 106 95 146 156 121 209 116 131 22 77 118 203 67 248 114 60 218 118 72 205 55 229 217 211 170 165 207 157 7 122 111 58 17 53 227 230 47 234 201 208 160 216 193 93 108 173 231 237 109 43 86 143 137 247 77 104 146 214 69 200 155 191 20 41 204 227 62 82 92 77 21 26 10 78 145 146 251 103 55 241 81 213 180 96 196 145 91 165 126 63 236 59 83 122 237 151 202 66 95 88 168 27 235 49 68 181 137 142 39 144 90 229 101 57 201 123 153 148 207 253 185 228 189 145 166 0 221 2 194 171 60 157 140 102 142 224 119 162 241 245 140 138 183 208 219 3 51 25 12 89 211 122 214 21 220 48 41 250 237 147 243 26 67 52 161 234 41 191 123 83 243 217 65 91 139 118 8 145 164 166 73 169 39 129 235 5 104 213 68 43 101 229 116 25 63 4 10 245 110 93 51 210 230 164 125 160 155 123 184 194)
#f
())
#(18
"uint32 overflow in length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(52 225 120 138 173 252 35 127 120 150 245 48 66 103 37 191 6 165 83 250 217 96 3 207 127 109 201 13 198 236 247 69 234 28 110 213 250 207 15 237 106 11 136 249 234 234 104 149 182 189 212 166 231 159 17 74 117 160 27 230 32 235 94 183 130 67 27 181 143 238 249 89 86 207 234 43 95 191 203 202 69 47 101 234 4 150 99 99 158 153 110 53 239 55 194 121 135 1 94 211 175 96 5 152 84 63 31 174 241 131 25 156 234 236 240 30 248 107 2 110 151 71 33 169 74 84 154 255 101 69 244 33 151 223 119 39 41 121 127 75 108 109 199 245 0 16 106 121 57 147 33 109 90 53 97 4 167 44 136 15 142 85 52 59 196 89 63 19 249 136 131 76 3 196 81 1 164 193 178 126 248 173 224 181 108 77 244 89 38 84 195 34 137 167 6 215 175 215 9 94 127 138 120 70 210 96 125 18 164 9 198 127 255 138 57 151 228 214 150 58 187 151 157 81 219 166 197 190 94 88 177 5 115 135 68 172 191 251 110 191 116 40 174 69 153 49 137 72 118 123 64 200 49 234 129 15 93 17 205 61 224 154 6 96 147 32 94 133 46 188 102 59 11 151 4 151 198 64 129 209 172 106 65 130 137 247 172 46 183 85 202 208 115 144 197 83 189 216 47 245 218 205 41 55 190 222 199 216 79 130 14 5 74 62 193 107 164 71 168 194 83 37 192 241 207 27 141 249 52 67 197 105 71 245 201 200 186 46 237 115 211 121 88 63 214 197 126 207 79 112 225 184 153 205 191 246 198 216 8 52 232 232 132 64 204 139 178 89 108 178 109 242 102 84 67 38 197 161 91 78 111 205 111 50 150 153 79 243 136 120 152 217 90 13 50 249 45 23 156 61 29 237 172 142 46 171 142 9 119 112 160 179 94 136 108 47 230 95 191 151 102 227 151 183 70 162 129 157 30 29 79 142 236 79 115 84 229 4 49 2 65 191 107 236 240 184 77 33 162 180 26 198 250 90 218 81 205 232 107 129 81 196 9 214 66 189 224 48 127 199 50 222 22 71 105 149 98 143 121 191 2 41 89 41 226 32 226 161 109 193 124 107 39 27 230 41 203 221 67 130 62 10 197 162 92 69 150 64 11 11 47 42)
#f
())
#(19
"uint64 overflow in length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(167 145 81 135 110 78 135 9 32 205 131 123 223 117 99 152 207 153 41 188 71 221 93 8 41 22 203 98 44 5 181 47 45 2 64 105 96 194 236 203 211 135 183 34 48 61 93 225 237 180 240 162 236 42 200 47 226 132 45 198 179 33 187 26 199 114 39 9 151 89 68 96 187 20 217 172 39 195 250 124 23 255 201 135 3 90 48 120 78 8 23 180 169 15 219 203 236 221 252 189 218 129 75 34 150 178 250 151 97 153 194 207 232 226 86 122 86 177 0 174 173 197 113 184 23 47 5 234 191 232 225 11 48 47 179 220 166 7 156 56 121 20 67 14 100 243 44 82 103 221 65 120 47 218 78 19 78 105 30 180 69 86 86 247 64 4 134 64 227 187 18 38 212 127 4 201 115 35 106 44 10 134 76 177 191 13 211 84 244 125 244 84 134 198 14 232 253 147 19 40 216 41 138 167 125 197 97 195 148 220 51 123 65 141 76 65 4 15 195 241 95 231 45 59 110 249 211 197 130 201 57 182 163 54 146 184 3 46 243 46 2 86 131 176 21 194 118 22 30 82 108 25 195 228 34 62 113 70 9 24 192 60 49 73 110 142 174 104 250 151 133 11 5 18 8 226 169 137 168 229 59 239 248 130 72 73 146 254 155 92 71 164 247 40 73 170 141 120 150 173 244 89 39 54 227 25 64 199 20 248 25 129 1 209 35 183 44 39 21 161 142 141 88 210 195 215 208 211 163 108 48 63 98 255 161 171 181 248 202 5 122 165 196 3 10 246 107 147 31 198 191 128 56 157 132 223 193 175 68 221 105 231 59 254 34 247 106 230 192 218 127 147 111 6 246 82 169 67 38 151 169 75 220 47 134 159 140 226 51 140 201 56 203 194 199 128 154 64 0 102 96 2 188 53 31 251 206 100 168 96 215 224 11 251 16 131 196 122 44 222 123 166 123 165 130 151 105 176 189 99 208 242 39 127 0 15 174 201 62 34 82 52 227 205 241 163 196 28 138 50 127 103 212 30 172 234 58 123 163 218 197 80 114 66 159 71 34 109 149 194 53 133 119 57 2 123 133 169 70 46 122 153 6 216 144 142 92 127 37 240 239 229 150 238 76 5 162 43 97 26 51 88 0 84 104 111 109 193 126 147 10 65)
#f
())
#(20
"uint64 overflow in length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(24 49 138 158 208 119 53 113 38 206 163 194 47 109 221 217 116 55 78 38 21 163 185 100 128 78 49 105 18 29 36 215 179 173 154 238 106 105 126 109 231 232 92 118 228 10 12 76 236 140 0 182 121 83 7 6 64 140 164 142 193 46 236 64 41 20 128 228 38 56 189 148 143 213 92 5 64 234 205 202 27 185 93 189 89 100 85 212 135 130 162 145 236 53 194 219 173 116 43 70 248 74 197 164 191 108 194 238 35 168 202 66 20 119 41 42 100 89 128 137 169 103 57 249 5 88 31 119 209 255 172 18 136 235 220 157 170 65 205 202 251 81 122 184 180 77 34 121 151 6 144 61 158 244 217 228 55 86 167 224 177 70 254 233 79 214 168 153 235 182 244 96 57 197 44 149 238 95 190 58 170 202 118 246 4 240 19 116 155 170 45 37 18 125 244 243 88 240 248 184 160 185 7 6 146 95 246 45 235 108 48 253 135 27 218 14 64 18 31 89 174 10 104 48 98 220 243 175 216 90 248 62 224 106 5 159 60 116 198 44 19 226 80 249 172 127 190 228 239 208 131 216 151 219 152 178 246 154 50 65 209 3 49 192 14 235 241 198 189 220 222 38 180 84 7 249 37 251 180 153 187 82 190 38 89 207 43 109 245 146 31 150 245 214 217 122 31 248 11 67 96 19 92 213 224 102 15 8 195 244 57 29 132 203 173 180 131 65 90 62 96 115 14 190 82 147 106 102 237 181 73 67 13 225 84 153 65 217 68 47 12 180 101 8 19 40 168 11 172 59 75 104 237 80 78 65 175 14 230 178 206 176 135 219 142 110 73 125 221 165 176 105 43 29 82 123 58 185 245 144 96 152 230 43 188 191 57 207 137 123 6 223 120 192 89 183 102 242 251 23 255 4 52 175 154 163 217 163 179 185 206 140 10 43 204 227 63 200 255 208 191 6 228 32 144 80 235 209 117 226 146 210 233 228 163 108 112 45 110 119 18 217 81 203 188 81 108 36 33 182 91 28 217 53 150 41 183 247 114 228 16 241 202 183 162 198 117 215 199 229 8 43 9 249 237 146 241 212 23 82 50 129 166 29 55 209 155 15 30 119 213 138 105 86 20 138 194 11 93 190 40 216 175 236 110 204 78 120 154 192 140 82)
#f
())
#(21
"length of sequence = 2**31 - 1"
#vu8(49 50 51 52 48 48)
#vu8(21 148 138 76 17 69 68 188 182 237 227 166 139 247 28 192 98 235 113 141 217 186 40 24 19 96 132 231 152 82 2 106 66 65 145 142 212 255 129 115 147 86 233 96 73 63 131 218 124 180 234 83 108 42 119 202 87 75 148 180 76 201 252 254 58 53 212 66 162 212 62 145 251 116 196 38 233 77 155 83 129 174 40 83 161 241 240 111 156 159 178 60 227 151 77 113 132 179 163 152 30 14 48 168 143 134 20 195 5 251 109 152 182 175 17 117 243 148 87 192 42 140 97 54 66 56 56 44 181 164 205 134 27 154 64 101 38 192 48 143 222 217 45 222 84 62 27 38 202 63 162 236 198 221 182 165 100 23 96 236 119 75 111 67 196 8 128 213 124 80 76 234 196 141 85 2 136 97 112 18 245 77 128 59 33 170 186 236 205 4 31 110 174 59 238 222 30 231 20 110 145 202 84 71 33 173 61 233 142 113 24 225 120 127 139 63 188 229 24 178 194 56 249 171 140 16 193 193 243 145 56 135 89 1 92 37 54 94 165 127 230 207 1 24 140 210 98 171 55 149 185 240 10 234 107 51 58 100 229 5 175 201 250 183 95 183 223 41 6 104 165 214 11 92 45 60 24 34 139 159 251 197 165 110 224 78 219 36 203 253 74 10 27 164 41 40 52 44 37 185 65 94 55 245 100 103 46 124 131 186 24 36 6 108 33 255 87 138 8 19 129 182 47 127 200 210 119 111 214 189 170 124 198 139 182 233 204 204 206 130 150 51 78 228 45 195 60 251 111 46 86 224 28 157 240 111 213 220 67 232 104 238 211 54 53 162 145 204 80 156 112 118 56 205 47 9 204 89 85 97 211 0 127 240 187 73 205 249 252 124 45 97 212 100 135 140 176 171 206 106 254 160 95 40 6 230 92 121 20 239 51 248 187 218 138 46 119 102 117 11 121 214 12 0 128 61 250 99 99 57 9 63 114 238 79 208 98 80 140 253 218 172 122 30 62 12 26 6 1 0 14 105 235 9 202 52 69 137 49 9 173 177 51 18 185 228 246 4 216 90 238 136 55 137 147 66 15 109 136 218 55 99 218 196 132 77 1 173 118 201 3 10 96 23 132 68 101 45 62 15 12 31 190 67 236 45 85 142 8 113 246 64)
#f
())
#(22
"length of sequence = 2**31 - 1"
#vu8(49 50 51 52 48 48)
#vu8(189 148 219 227 90 35 172 112 76 135 77 255 36 170 183 81 77 130 177 124 184 234 168 163 101 69 57 210 166 88 48 123 74 68 87 37 157 152 93 180 96 27 238 221 142 72 3 110 251 5 167 247 19 31 24 56 10 33 17 127 230 68 198 54 61 227 39 183 63 66 79 69 169 128 34 49 90 2 205 97 152 142 53 159 23 40 152 75 208 101 69 240 75 220 234 232 191 139 218 57 205 103 51 27 168 138 136 233 242 78 105 36 229 29 235 41 219 70 31 233 195 188 106 208 211 211 9 60 47 184 115 239 151 73 185 63 202 210 81 242 13 133 30 17 31 97 200 53 201 155 37 145 48 244 208 134 105 214 54 80 109 16 73 8 30 78 187 163 140 246 22 98 137 41 198 193 107 240 165 113 78 185 18 112 170 62 40 185 136 77 233 134 7 94 48 141 132 221 205 212 244 77 71 238 156 220 201 91 247 124 169 210 168 98 197 134 109 87 177 75 10 78 74 219 167 165 32 240 37 115 64 206 37 90 188 34 55 129 14 80 5 226 25 75 187 177 22 246 196 208 120 244 251 34 64 244 218 167 50 213 188 34 52 125 137 126 81 123 236 205 218 7 59 53 202 138 166 248 34 165 166 180 172 210 12 235 194 235 52 185 126 108 41 142 66 100 99 64 23 253 160 93 184 239 182 91 247 205 241 30 205 119 65 36 131 79 158 223 98 145 168 133 228 86 240 117 182 129 232 146 206 134 57 126 149 179 167 195 158 221 57 184 66 75 66 241 212 2 16 132 13 87 104 179 157 187 185 110 240 229 222 191 44 75 184 173 12 154 110 75 35 121 157 90 238 65 21 238 106 57 58 54 45 121 12 107 24 234 195 195 46 55 160 170 51 179 124 249 134 170 28 35 240 173 73 244 76 48 60 254 48 77 121 156 215 68 133 23 212 221 198 180 96 92 233 46 197 225 93 118 252 210 165 11 160 5 229 41 37 33 141 207 178 43 202 156 217 136 195 199 3 253 31 93 229 120 210 211 176 3 168 197 180 37 6 172 114 255 25 197 83 170 200 231 49 131 219 221 236 184 139 117 199 139 43 86 205 134 181 222 89 43 136 39 155 212 96 139 56 18 75 203 188 163 95 205 206 68 248 116 62 38)
#f
())
#(23
"length of sequence = 2**32 - 1"
#vu8(49 50 51 52 48 48)
#vu8(95 237 150 92 117 237 124 183 5 23 121 192 4 234 12 172 4 151 52 173 133 121 57 77 102 5 101 51 123 192 242 72 5 123 36 248 154 126 82 211 186 226 163 222 250 74 76 131 89 192 116 207 233 107 178 156 99 215 241 131 194 213 149 156 215 165 245 114 134 17 254 217 213 17 173 7 139 127 214 198 102 26 162 105 252 237 146 22 189 9 70 100 96 47 83 124 119 135 29 140 186 101 241 73 198 0 0 125 94 87 128 77 37 64 212 165 176 251 16 156 24 17 252 134 119 90 25 247 22 23 76 83 49 230 147 173 83 187 137 58 149 10 250 27 88 33 201 125 215 15 122 44 237 60 194 233 177 181 244 10 125 236 45 68 177 124 141 249 249 242 217 86 213 190 208 12 39 24 231 211 183 36 175 117 142 230 225 87 122 47 75 174 156 77 71 5 52 24 180 156 79 223 63 148 229 131 87 116 164 50 89 142 69 110 30 154 71 77 156 57 67 77 116 20 80 176 33 67 211 101 188 40 105 156 180 112 206 248 134 229 169 42 96 198 107 26 17 147 65 39 170 182 179 110 147 199 99 95 164 45 142 192 20 238 38 230 121 234 126 52 112 231 131 111 57 72 191 238 53 5 224 67 69 4 136 69 8 186 102 170 167 155 50 190 148 226 84 88 129 244 125 162 19 43 250 56 10 175 83 128 183 212 94 118 137 59 98 141 234 238 3 54 202 223 146 126 100 195 172 221 174 220 24 43 146 40 11 187 80 94 246 231 14 181 55 23 254 176 12 156 41 176 53 242 228 225 67 20 9 255 128 150 120 24 139 64 13 112 34 124 84 15 188 233 177 126 181 83 38 69 231 98 162 110 0 213 50 252 50 111 88 154 131 31 95 174 116 173 220 145 105 66 204 30 80 37 245 91 133 0 254 85 244 65 153 166 37 81 78 1 117 81 238 139 74 176 206 222 165 253 28 127 111 102 187 3 240 49 221 203 87 42 65 120 243 254 237 209 23 77 145 250 42 67 184 41 114 161 76 245 162 7 192 33 89 81 118 186 216 182 250 75 118 84 77 66 69 116 16 161 64 220 135 28 235 6 23 179 107 155 168 207 74 209 1 17 245 32 98 121 218 252 102 133 189 127 86 198 177 155 26 119)
#f
())
#(24
"length of sequence = 2**32 - 1"
#vu8(49 50 51 52 48 48)
#vu8(177 77 16 246 89 221 142 227 6 94 87 188 164 228 192 234 40 83 29 230 151 56 83 85 148 78 114 167 232 119 236 239 39 96 118 78 20 81 216 130 118 182 34 63 90 151 61 59 112 100 67 174 22 69 176 236 219 1 144 99 209 118 88 154 234 203 120 134 137 59 176 172 18 137 165 233 148 150 137 46 80 16 252 94 54 37 222 102 195 240 195 57 78 148 133 164 5 230 178 180 72 163 192 126 207 109 39 231 132 197 178 113 187 162 10 249 126 134 254 144 157 132 228 185 235 200 232 13 223 143 79 85 223 40 170 201 211 50 220 223 84 120 73 22 119 103 202 73 104 131 187 108 84 100 71 117 62 127 53 170 15 157 170 154 74 41 58 209 114 184 181 195 131 24 148 120 48 21 116 216 210 240 3 58 152 32 19 191 57 216 240 65 197 16 223 15 171 125 188 168 109 9 36 9 175 92 117 212 59 57 168 62 82 150 44 87 110 137 27 0 254 27 249 162 109 252 117 41 158 97 174 223 78 226 123 53 208 36 230 213 240 15 158 229 138 90 174 151 182 91 152 169 0 180 137 128 12 89 169 74 217 27 46 153 165 221 168 104 196 107 233 145 84 184 116 232 86 33 246 131 84 63 112 197 67 60 6 231 107 9 33 171 203 84 49 225 231 9 78 79 164 201 191 207 220 106 41 235 164 74 40 251 228 76 8 45 81 13 238 157 178 27 0 37 33 117 75 71 240 114 253 158 7 64 37 162 203 146 138 186 222 252 4 90 146 89 38 207 83 203 151 2 192 89 237 140 196 142 55 245 164 166 57 203 122 161 21 46 96 153 225 131 166 59 170 181 37 33 41 137 127 146 227 136 216 25 161 6 124 60 135 14 54 48 186 89 159 36 69 185 44 4 131 11 36 195 6 124 184 236 57 235 165 160 109 224 203 157 160 79 25 20 216 23 181 253 86 210 255 30 46 55 170 88 130 114 166 101 175 179 71 74 7 9 41 52 18 191 182 169 76 24 93 139 214 106 125 224 114 14 154 102 234 143 102 82 203 225 114 192 243 175 11 72 198 211 73 199 63 101 68 119 70 10 204 92 209 13 117 124 187 168 168 217 191 123 248 98 124 231 247 106 153 185 34 63 213 222 63 89 243 227)
#f
())
#(25
"length of sequence = 2**40 - 1"
#vu8(49 50 51 52 48 48)
#vu8(24 63 60 152 83 201 135 254 131 18 54 5 87 76 99 23 167 182 119 144 71 203 164 230 97 160 184 180 138 141 139 148 161 161 250 159 63 210 182 194 215 209 51 215 120 211 75 194 217 35 76 18 46 129 1 151 86 248 206 136 251 7 164 174 10 243 181 50 250 207 237 37 117 50 230 241 72 184 81 17 165 184 160 5 0 14 99 244 78 49 17 55 72 202 4 93 179 91 133 175 48 125 92 91 105 40 200 131 149 128 29 41 131 193 152 149 41 133 129 30 166 66 88 239 64 135 198 4 183 21 112 165 79 152 129 194 199 19 147 35 214 130 230 228 193 55 207 57 29 155 145 177 221 83 112 174 13 12 219 178 74 140 12 55 109 101 40 56 29 26 99 89 158 70 225 69 221 248 26 209 128 134 234 33 70 150 159 22 178 16 117 205 137 251 24 246 149 236 100 97 228 213 114 190 72 88 56 172 166 208 231 106 176 234 60 51 72 77 239 164 133 34 254 80 105 210 4 2 96 245 92 183 173 151 80 164 186 148 55 91 102 10 194 90 125 113 68 63 248 211 239 84 213 142 42 5 112 158 59 103 157 189 75 145 4 118 61 56 110 218 248 7 153 106 184 79 232 0 107 51 49 60 22 149 136 133 242 252 34 174 253 187 40 195 77 104 53 34 95 3 167 177 131 36 169 154 33 117 184 63 25 133 71 226 16 213 107 104 161 216 83 21 119 157 247 149 123 241 156 98 174 192 68 35 106 75 190 99 167 216 233 130 180 87 43 56 109 60 133 177 131 87 244 77 128 122 194 24 168 184 247 86 151 219 32 128 6 80 165 67 245 122 21 28 35 40 141 15 92 157 240 11 120 8 87 244 53 150 218 76 186 221 83 31 71 1 116 118 203 237 204 85 31 177 190 183 15 159 146 45 114 163 202 233 164 103 205 2 37 140 244 207 182 115 192 205 202 225 24 174 86 194 211 179 137 47 28 220 245 8 127 164 33 88 140 9 201 3 16 86 210 151 186 158 11 244 67 7 47 202 18 78 83 2 62 29 141 181 182 13 122 235 160 187 25 88 0 42 114 245 76 188 239 183 64 52 12 143 79 239 184 43 78 93 213 125 106 199 188 248 95 159 157 87 202 76 26 96 191 172 75 37)
#f
())
#(26
"length of sequence = 2**40 - 1"
#vu8(49 50 51 52 48 48)
#vu8(189 235 5 213 230 108 155 245 249 119 26 151 56 114 224 90 219 97 61 43 203 182 116 129 147 168 210 17 5 207 235 78 138 181 36 46 159 42 27 178 188 46 72 236 216 102 158 231 214 111 26 26 147 202 130 75 29 175 33 181 43 65 107 187 164 140 102 127 172 200 106 16 208 213 76 156 8 242 187 0 43 34 73 155 85 55 53 31 84 144 179 151 187 240 83 58 52 179 183 208 88 165 13 175 167 118 91 28 205 90 251 137 228 179 84 213 56 184 159 66 165 181 251 94 239 123 78 93 140 169 174 64 212 111 179 200 62 54 253 174 157 208 141 40 47 30 207 86 100 211 25 240 127 67 10 206 62 50 29 33 90 249 172 140 190 192 34 117 247 178 109 137 80 94 58 13 38 104 200 192 111 48 213 124 188 9 115 61 69 190 197 95 46 135 124 254 243 29 183 120 43 93 226 241 216 210 167 240 59 31 62 108 95 213 23 218 181 192 20 90 142 54 87 138 134 238 167 236 249 243 223 214 8 16 66 2 63 48 37 214 18 78 233 178 172 123 64 166 222 195 181 194 210 157 70 216 52 210 196 123 152 55 211 119 192 162 233 101 172 36 138 132 221 220 159 207 209 26 212 72 120 139 43 154 42 172 46 184 203 37 147 46 175 29 124 54 82 156 111 104 146 152 11 76 239 103 89 220 223 207 220 42 171 40 177 13 244 111 57 161 114 72 36 145 134 105 240 223 42 158 122 248 124 62 240 96 42 86 208 155 173 51 15 28 191 113 177 70 251 221 58 94 69 241 107 112 23 68 226 140 136 33 173 194 57 113 113 85 78 12 103 19 53 81 85 6 85 145 224 182 254 217 76 23 236 212 122 155 235 163 218 12 122 109 23 189 81 69 240 251 67 140 196 251 75 83 176 139 22 210 57 191 131 155 51 163 33 251 3 13 247 124 117 52 192 204 6 100 204 15 72 95 181 71 69 17 24 145 233 46 162 188 28 53 150 188 188 58 212 0 52 214 229 17 183 233 163 167 235 164 38 191 222 86 146 109 5 175 47 152 186 21 204 61 220 38 104 109 94 213 163 97 29 221 14 231 116 9 65 17 191 171 136 219 245 173 153 193 179 246 237 186 133 40 94 116 120 70 93 53 23 85)
#f
())
#(27
"length of sequence = 2**64 - 1"
#vu8(49 50 51 52 48 48)
#vu8(77 245 231 170 221 66 145 99 167 86 184 185 217 3 91 207 61 97 21 31 183 101 104 141 187 76 35 138 43 1 153 238 125 82 11 243 213 147 236 66 102 15 40 236 182 130 95 114 229 161 36 214 133 138 51 81 79 212 62 20 133 204 6 183 129 60 118 89 198 130 115 224 90 97 93 31 127 81 135 62 30 44 117 130 136 47 170 37 100 192 236 235 211 100 252 125 106 99 192 242 171 180 220 209 90 38 136 234 84 80 217 181 173 68 90 190 96 53 117 138 237 25 96 78 70 237 44 247 179 98 114 120 200 108 33 138 93 61 191 148 70 217 74 83 245 158 70 213 64 219 74 15 113 77 239 209 11 49 0 66 166 63 7 19 45 54 251 19 234 115 29 17 36 206 60 97 56 211 66 59 68 247 183 104 10 200 199 143 77 137 174 152 166 194 38 213 196 227 161 245 214 149 19 25 156 98 157 208 8 205 74 45 39 43 66 144 96 241 54 147 28 65 181 131 132 245 41 126 136 246 167 45 123 16 217 130 201 60 71 87 228 248 108 184 136 232 71 36 23 9 30 159 197 243 191 220 182 115 6 60 21 209 8 160 27 4 129 156 83 150 44 237 107 201 136 148 222 113 255 203 33 26 77 80 50 115 27 152 204 229 133 78 250 226 132 226 71 210 36 183 29 226 12 182 128 171 100 243 46 24 162 22 89 134 239 69 113 123 113 15 59 35 179 38 92 84 121 128 4 68 85 249 191 240 41 222 123 154 117 6 69 151 95 4 172 121 146 214 99 147 100 90 239 97 137 110 55 45 77 241 196 6 133 229 171 184 219 74 120 141 101 224 234 217 109 108 19 113 62 178 197 25 127 12 86 26 72 137 160 5 35 128 22 105 54 239 9 102 55 113 122 200 101 11 27 130 17 100 226 235 250 110 251 106 4 67 7 156 44 139 4 242 223 210 65 12 222 96 73 197 17 164 108 203 212 0 31 202 50 129 96 242 244 153 56 15 3 177 126 194 217 138 195 201 251 179 138 225 131 9 50 138 58 50 48 208 216 93 85 233 21 155 113 13 53 113 0 180 103 63 124 27 115 202 102 224 131 89 219 178 96 189 12 114 214 233 94 41 63 28 107 123 117 71 41 201 15 90 81 2 237 153)
#f
())
#(28
"length of sequence = 2**64 - 1"
#vu8(49 50 51 52 48 48)
#vu8(115 127 166 114 226 28 36 59 173 112 54 62 182 152 150 90 103 8 59 74 188 195 87 108 102 53 62 232 32 78 54 210 96 176 14 94 252 139 204 43 245 217 102 116 104 249 156 99 83 176 108 78 175 191 73 65 79 75 200 2 19 144 123 165 164 85 230 95 173 82 42 0 224 141 223 68 19 126 65 127 141 79 207 97 172 127 27 130 107 179 131 34 164 3 232 246 210 235 78 118 221 180 186 222 200 196 213 9 68 97 89 48 216 97 148 215 149 76 104 108 175 130 45 190 37 62 114 161 132 173 229 63 212 148 135 61 56 52 78 210 244 28 9 179 148 24 19 213 227 204 72 39 98 109 2 212 32 186 80 196 102 25 145 79 208 227 184 186 86 57 177 188 207 193 43 194 1 127 185 170 103 158 91 165 243 247 250 137 138 151 125 38 96 160 99 57 223 83 65 172 99 189 69 149 211 39 253 159 101 30 71 143 112 29 88 49 44 94 243 108 172 190 159 211 184 248 199 38 165 128 99 146 103 198 210 243 174 193 97 166 218 184 145 105 197 14 104 225 22 84 157 164 49 181 12 27 24 209 87 244 140 58 40 217 245 200 187 230 229 237 83 83 86 132 60 177 47 160 102 128 209 23 217 198 99 200 78 81 44 149 0 234 135 106 84 127 91 96 40 99 136 189 19 186 254 68 106 173 116 32 214 124 210 167 146 90 11 70 114 15 245 170 245 233 194 231 248 203 184 20 24 146 210 210 124 126 9 118 145 61 179 41 33 63 39 122 8 217 169 201 147 23 161 78 146 191 72 240 20 67 41 137 1 229 124 40 116 136 220 77 65 38 170 245 96 201 66 50 57 226 16 82 241 160 72 93 128 248 107 116 242 116 140 15 25 47 65 108 226 54 167 158 124 14 109 119 208 138 40 105 244 156 58 94 115 33 7 69 105 156 182 119 55 46 58 251 20 214 71 103 193 247 243 25 50 114 12 58 208 176 131 72 35 61 117 124 208 42 57 2 90 148 96 200 62 141 175 139 229 155 109 146 64 38 59 249 202 252 224 243 101 111 212 244 176 249 248 235 250 234 134 204 239 37 185 58 140 137 55 137 230 238 162 213 136 129 86 57 192 154 190 226 50 129 43 139 55 155 50 72 243 155)
#f
())
#(29
"incorrect length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(82 250 44 48 37 226 103 63 185 89 83 116 127 201 137 97 95 99 77 50 54 45 54 93 202 190 109 209 195 115 112 224 197 130 254 12 213 66 69 251 43 122 137 47 155 69 253 214 206 107 250 94 99 14 174 65 99 248 60 78 162 202 154 67 163 242 30 138 139 128 61 80 208 52 91 164 129 85 209 175 63 65 157 139 15 46 141 168 151 247 163 111 136 240 66 11 245 61 137 243 194 97 136 82 168 88 190 42 181 212 157 90 121 177 215 134 109 255 20 33 222 234 113 67 247 92 39 217 202 238 83 114 177 254 54 200 172 143 59 91 6 244 247 21 37 200 139 227 105 183 116 58 127 94 132 171 173 20 132 146 194 63 109 197 127 66 24 40 154 11 227 186 29 181 204 68 104 23 59 95 255 231 69 95 148 245 194 202 108 138 202 232 112 29 195 147 185 229 194 197 171 134 51 166 126 64 148 255 190 44 237 151 0 175 133 200 179 192 163 24 120 105 107 83 81 10 153 27 53 240 14 31 124 141 23 16 102 21 179 46 134 73 170 238 133 94 37 48 92 104 100 189 206 167 255 88 54 135 172 231 115 169 213 108 103 223 91 70 41 149 68 75 244 20 177 122 215 213 128 28 96 52 11 236 91 191 253 73 187 105 239 151 235 16 21 106 73 15 222 227 195 105 95 200 5 92 204 242 203 242 23 88 127 85 112 239 168 186 170 56 79 226 5 53 48 121 20 52 97 14 77 166 125 7 95 107 140 86 19 232 98 231 67 189 66 219 193 118 109 234 94 103 242 220 97 23 121 27 164 44 115 126 86 177 8 214 232 132 91 8 163 63 144 84 22 114 107 2 53 76 108 44 23 178 150 251 88 217 15 178 216 121 2 232 122 128 235 232 63 114 56 12 157 140 124 92 116 219 186 81 13 101 141 200 73 118 178 18 43 50 22 235 59 28 247 187 248 104 184 68 253 85 89 164 234 12 138 138 103 33 150 52 252 158 76 235 99 126 106 250 186 52 127 124 188 170 86 45 33 250 126 147 100 37 26 169 96 10 80 178 38 148 228 181 50 99 141 86 255 60 206 58 35 45 118 183 86 187 43 123 33 232 16 40 65 115 31 146 62 212 16 176 75 78 251 65 68 84 170 235 129 32)
#f
())
#(30
"incorrect length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(26 121 225 79 20 76 11 52 153 135 242 210 191 7 184 96 132 138 108 181 171 176 123 50 41 121 105 96 168 26 220 224 140 126 235 193 185 53 197 141 184 172 27 154 9 152 35 108 183 38 247 4 0 91 18 142 157 168 124 218 139 71 228 56 129 166 125 159 239 175 8 28 209 89 122 128 149 201 53 229 235 54 37 148 11 26 214 13 7 26 80 133 186 253 59 102 42 46 125 210 50 5 253 77 90 240 96 197 44 226 58 158 133 102 151 127 105 108 209 217 65 80 141 181 175 112 214 176 101 195 236 30 160 142 205 213 193 210 89 27 190 198 212 138 239 66 93 145 182 87 97 225 203 195 142 244 192 121 44 163 165 44 98 182 168 18 219 157 108 76 238 186 187 219 46 28 18 94 65 153 18 177 43 166 74 193 200 149 99 235 94 16 229 87 152 81 63 139 96 104 35 95 255 230 110 161 56 21 2 31 46 76 255 52 208 80 26 164 168 2 58 108 30 42 173 147 63 105 190 50 41 177 97 218 89 2 151 155 240 231 31 189 224 254 221 115 178 103 78 236 127 71 134 40 212 94 46 213 155 91 19 33 185 198 141 140 14 199 159 183 66 47 62 249 205 169 62 151 33 36 18 193 33 12 45 28 2 162 229 238 27 101 59 146 63 213 179 80 202 23 25 108 130 16 149 229 231 31 191 50 87 126 39 32 89 59 95 138 119 134 144 123 45 70 4 137 191 37 174 150 31 223 251 58 255 108 186 212 139 6 120 17 241 146 226 9 113 32 64 133 178 194 151 248 196 161 246 78 8 71 210 103 186 17 72 111 35 4 176 60 247 40 128 199 141 146 220 51 174 69 143 67 107 38 103 73 240 180 114 237 3 113 197 167 221 208 112 29 210 167 5 120 6 73 134 255 174 64 251 107 205 157 156 38 136 33 192 238 186 8 52 5 49 140 67 185 255 221 16 83 231 23 201 56 174 124 162 223 139 251 74 105 250 208 41 198 222 137 147 255 242 244 190 63 160 81 252 244 64 67 98 52 30 131 30 55 190 95 72 8 26 154 67 159 7 56 44 23 6 149 111 48 136 218 32 128 107 92 181 109 174 217 36 122 156 65 78 8 116 143 68 104 31 132 190 165 216 53 175 110 47 62)
#f
())
#(31
"indefinite length without termination"
#vu8(49 50 51 52 48 48)
#vu8(10 142 35 134 202 161 18 36 112 178 177 194 139 201 255 94 117 39 38 181 46 196 162 32 90 69 232 189 242 128 129 204 18 82 125 6 234 94 167 82 222 55 112 120 226 208 65 155 142 141 160 202 83 121 183 215 152 193 152 227 189 223 188 132 127 207 151 186 165 43 46 143 3 160 60 163 148 214 229 81 180 65 212 138 154 108 208 5 236 60 48 108 134 183 47 234 168 89 219 195 7 105 96 203 94 67 236 136 9 47 45 12 105 210 198 213 91 11 142 149 92 81 74 66 11 216 195 211 203 166 22 143 44 60 226 18 200 160 75 83 76 143 44 241 180 207 93 80 50 255 93 35 247 75 51 32 100 167 14 79 185 202 129 66 105 224 221 147 215 191 113 100 54 23 38 212 143 203 32 130 14 63 221 203 180 128 1 11 117 137 173 207 25 114 45 96 9 124 42 164 13 222 236 95 2 153 126 73 108 7 176 148 246 111 33 40 139 27 108 99 78 252 100 115 1 183 99 51 198 191 225 147 74 3 138 94 131 240 19 93 73 21 111 165 11 234 125 179 98 254 103 189 240 129 243 45 232 65 130 22 113 127 99 187 140 236 163 102 73 83 170 211 192 252 6 41 121 134 53 203 193 147 131 5 81 152 143 183 174 224 183 141 206 34 173 223 163 244 168 48 148 122 41 251 225 148 100 208 208 167 79 183 98 55 237 18 142 66 177 146 251 212 40 232 215 44 75 158 211 123 7 248 0 204 54 142 156 106 222 217 241 177 212 92 177 9 120 67 41 144 25 126 245 152 34 144 203 100 228 34 168 68 230 154 95 169 217 107 133 75 224 9 211 217 194 35 223 164 250 223 177 58 110 76 6 3 8 97 156 45 54 130 206 72 201 183 206 41 210 240 229 110 92 149 18 159 18 249 123 136 87 224 252 29 133 72 13 226 15 234 29 181 246 106 154 62 238 108 8 94 18 136 200 161 47 208 205 166 124 225 99 125 48 122 56 82 32 113 132 188 165 107 71 143 191 192 127 168 59 66 127 97 50 12 103 35 189 135 126 26 52 163 135 115 247 29 246 91 7 97 155 148 2 128 1 190 13 218 175 67 187 31 115 140 108 247 40 97 123 187 70 97 97 69 10 78 167 154 200 61 53 59)
#f
())
#(32
"indefinite length without termination"
#vu8(49 50 51 52 48 48)
#vu8(120 250 118 101 2 236 203 6 245 211 40 221 25 35 120 3 160 155 234 180 71 4 55 244 110 236 183 69 149 12 107 187 110 140 40 33 60 26 16 143 71 32 152 249 185 85 68 157 41 211 52 68 16 62 198 88 97 17 109 250 203 176 213 46 47 187 95 211 236 250 70 88 211 70 34 232 141 17 253 29 29 43 230 124 166 62 38 224 34 222 156 209 74 10 27 32 89 139 28 192 208 115 48 21 234 56 111 233 38 69 225 93 35 54 15 154 101 76 31 236 141 163 152 43 193 109 40 72 166 36 148 254 36 254 140 58 175 251 187 14 1 126 66 222 138 136 102 23 214 113 106 202 112 26 112 99 68 187 0 237 72 109 214 196 151 108 229 233 94 223 226 97 97 84 151 82 89 255 83 144 129 248 183 29 174 99 51 177 189 209 129 207 201 59 177 95 230 86 165 164 235 150 77 245 93 21 25 166 111 200 2 61 250 191 2 165 154 244 85 78 119 252 46 57 30 150 69 144 154 112 104 79 11 234 230 95 195 155 38 14 168 111 99 218 25 72 42 130 134 232 199 238 59 252 147 251 126 10 9 253 166 248 162 172 89 247 100 46 94 136 55 63 147 226 66 191 178 193 102 81 134 204 18 35 16 29 244 132 55 82 205 156 234 247 49 87 238 230 122 147 209 74 217 57 220 188 136 217 196 225 58 115 40 217 223 91 101 41 201 219 96 71 112 118 67 85 8 31 112 48 48 39 154 159 153 125 201 203 154 246 30 12 77 83 232 144 5 214 100 190 71 208 126 182 187 76 75 94 121 69 63 122 250 33 146 189 197 73 29 52 217 181 179 76 217 192 140 24 163 207 156 217 207 63 157 19 226 41 200 97 26 47 197 131 210 43 15 55 55 244 241 167 76 235 105 68 192 25 140 136 196 182 147 164 60 223 227 83 119 138 95 95 215 146 196 209 101 129 27 56 143 204 62 101 220 163 86 81 49 197 34 207 25 232 72 251 42 56 241 190 68 174 79 155 60 40 64 237 83 157 138 221 111 17 165 73 211 2 85 84 78 62 37 168 183 219 132 154 195 222 86 47 141 116 119 240 252 88 226 108 137 182 220 164 134 181 187 239 48 94 161 223 233 27 247 144 18 65 2 225 77 197)
#f
())
#(33
"indefinite length without termination"
#vu8(49 50 51 52 48 48)
#vu8(72 27 123 222 203 52 212 207 200 23 242 23 200 131 222 163 36 143 44 254 14 0 77 131 11 10 94 96 2 175 77 148 165 42 126 242 8 223 36 119 71 188 38 249 88 170 130 221 225 113 82 97 32 5 191 89 36 199 149 87 179 3 145 5 35 138 102 177 117 78 13 221 239 242 179 153 24 40 39 165 242 79 186 181 220 239 29 129 52 25 61 178 183 53 130 105 253 2 188 17 173 131 202 116 17 78 125 15 54 231 0 234 239 188 233 53 9 235 252 100 131 177 119 181 130 146 100 109 22 225 198 106 49 222 237 12 4 24 132 69 111 53 119 117 121 23 176 69 185 219 108 165 169 60 84 37 130 85 113 110 2 41 22 254 101 104 131 227 80 217 11 197 158 17 208 243 104 122 208 115 227 164 249 67 13 189 247 32 159 237 240 81 183 178 182 239 77 236 193 200 189 86 227 182 243 142 3 67 86 121 9 40 41 8 68 156 234 194 253 22 43 240 25 23 94 170 235 156 116 239 242 65 128 224 71 71 83 122 142 100 100 172 237 249 110 85 126 217 86 16 68 83 192 58 25 24 48 238 159 162 61 93 142 237 19 141 30 73 138 159 223 176 96 52 86 223 9 155 22 80 215 143 248 54 209 60 241 191 6 140 141 108 156 168 40 178 52 185 7 100 57 246 171 43 75 119 138 26 181 41 216 166 214 1 27 236 183 205 221 241 26 197 207 47 36 175 80 66 93 38 219 66 88 21 215 145 62 111 118 184 4 137 11 19 229 192 31 172 163 20 168 215 156 191 255 1 139 79 140 105 0 91 77 177 244 221 90 39 6 241 125 95 117 88 229 35 104 174 221 97 17 123 143 59 62 143 8 97 83 150 198 66 125 235 74 83 211 176 35 121 70 164 210 91 196 126 63 94 160 170 165 197 105 227 127 117 90 158 12 241 114 33 41 32 203 235 49 235 0 161 251 242 253 85 212 0 253 87 133 197 209 90 82 134 92 229 18 173 230 145 188 188 39 69 148 101 188 78 101 169 207 176 122 227 151 200 14 13 245 121 99 94 231 77 12 211 143 219 88 187 155 213 6 38 144 35 211 220 140 140 95 88 163 209 21 17 113 186 146 179 92 199 205 221 229 78 56 61 254 208 99 172)
#f
())
#(34
"indefinite length without termination"
#vu8(49 50 51 52 48 48)
#vu8(39 171 20 196 85 1 202 32 229 125 23 20 121 178 36 38 127 21 145 4 253 200 167 109 179 50 68 226 91 228 109 37 85 40 12 32 230 173 218 87 49 51 219 250 90 59 229 145 72 63 45 254 254 82 251 165 229 36 16 108 117 101 100 43 165 192 53 114 63 0 32 43 39 142 60 12 76 10 196 194 247 18 113 202 61 85 164 31 250 17 27 155 22 179 139 253 246 74 127 189 62 75 116 124 68 128 39 117 22 131 88 17 10 217 223 27 80 96 138 21 118 7 140 19 247 29 219 158 241 101 77 67 62 173 77 173 56 222 158 240 123 188 14 204 159 21 122 115 65 78 174 225 206 57 81 65 201 89 90 165 23 129 219 216 31 191 2 74 199 160 250 195 239 224 8 109 34 225 55 33 121 83 38 96 234 81 165 147 242 78 247 202 182 63 36 147 249 148 232 131 108 71 163 64 212 91 4 172 192 239 239 173 78 184 57 229 55 176 249 179 5 137 173 183 146 58 6 70 71 20 220 219 163 81 85 57 38 231 136 70 227 102 43 15 131 38 192 46 251 185 59 17 183 57 225 153 63 67 2 105 88 80 177 208 155 85 143 243 83 146 251 96 6 198 206 195 56 44 25 45 167 186 92 191 94 35 53 32 177 59 86 194 220 35 26 96 122 170 221 179 68 156 6 115 66 139 181 228 63 210 123 95 250 108 107 46 7 61 113 146 150 45 129 40 159 59 103 39 9 94 94 123 53 39 200 194 125 193 181 149 138 135 243 208 115 136 12 37 224 34 172 78 73 134 242 251 95 23 111 150 71 34 246 33 21 225 84 6 70 66 112 214 243 170 21 223 253 18 3 173 115 44 66 217 27 57 121 251 24 43 180 165 240 168 209 20 40 71 202 219 173 238 223 42 131 101 152 17 55 184 114 55 243 105 156 15 11 17 79 203 65 248 56 85 178 175 135 155 188 166 128 1 20 122 243 242 38 254 130 162 50 159 247 219 38 57 114 115 5 33 228 5 201 191 64 143 54 161 1 121 80 237 47 96 154 65 22 73 133 99 67 48 97 88 17 181 0 82 97 250 55 116 22 110 181 167 155 221 169 179 230 197 82 143 84 88 154 194 148 219 198 204 44 176 200 167 104 34 161 222 221 235)
#f
())
#(35
"indefinite length without termination"
#vu8(49 50 51 52 48 48)
#vu8(176 26 235 237 132 135 36 89 107 150 45 13 98 138 68 32 242 93 18 129 78 77 90 226 83 179 166 126 161 201 99 139 84 12 103 138 138 232 54 34 192 215 85 32 111 228 35 194 155 179 244 108 197 42 185 99 173 158 128 120 36 12 185 108 54 190 207 210 230 155 96 100 75 30 79 33 131 236 36 229 57 56 254 39 32 196 199 130 82 178 145 158 23 139 154 83 219 65 104 165 166 85 52 204 20 158 86 179 233 49 83 188 183 187 150 190 52 41 88 61 169 181 171 42 231 189 37 70 205 94 242 222 242 9 135 44 230 25 162 193 209 249 139 212 215 32 217 12 191 147 150 68 29 185 46 65 160 69 184 116 6 26 109 45 25 109 61 190 25 232 113 198 12 173 49 70 12 171 184 139 12 53 135 57 57 206 41 231 14 140 17 203 53 221 248 11 92 130 164 122 57 152 144 204 32 235 50 24 31 115 39 85 212 243 231 97 192 112 232 139 107 29 61 195 130 36 52 157 38 167 199 121 69 7 59 247 0 55 203 24 77 219 137 63 41 240 107 104 100 50 63 9 99 222 247 101 38 146 149 125 42 230 223 162 89 121 245 22 118 60 231 206 166 111 33 226 167 116 168 205 30 7 122 248 140 57 39 241 129 238 89 146 57 199 108 160 99 99 26 83 244 25 73 126 254 171 196 141 75 49 18 79 201 134 88 103 96 34 70 33 244 104 38 227 231 172 241 232 60 51 160 158 74 110 201 211 110 210 134 195 124 39 98 151 37 187 49 133 37 186 47 3 50 116 50 39 174 241 75 66 200 102 150 164 68 0 196 150 173 164 39 12 222 225 100 166 126 172 223 90 18 82 227 6 108 7 117 215 209 189 206 91 212 45 203 66 155 243 85 66 138 207 199 227 217 208 232 136 120 5 77 164 181 176 223 222 127 49 69 68 136 172 33 79 11 72 75 46 185 84 25 57 93 121 54 208 255 60 111 44 210 224 236 20 133 167 199 65 167 102 101 107 50 117 83 58 190 236 141 89 134 72 211 82 127 238 251 55 135 73 230 34 249 123 158 92 6 142 34 47 203 202 22 75 209 165 202 225 62 10 94 157 11 50 232 182 75 173 122 215 205 23 150 123 6 209 139 139 94 110 135 6)
#f
())
#(36
"removing sequence"
#vu8(49 50 51 52 48 48)
#vu8(187 103 60 190 156 52 170 78 80 101 59 80 241 81 214 126 210 193 41 126 205 32 174 115 165 61 244 251 180 152 125 81 195 194 41 176 204 96 99 178 32 160 179 175 207 90 250 235 24 129 241 48 125 161 10 65 175 149 136 39 107 70 73 176 208 35 98 26 208 238 77 241 252 162 180 231 209 246 5 197 135 197 43 139 220 86 96 151 167 47 153 194 156 184 210 157 97 103 115 20 65 66 156 230 248 147 26 51 27 68 211 59 105 29 4 74 126 251 233 122 49 207 162 33 41 173 61 247 99 58 120 243 133 158 229 212 169 112 244 4 190 135 181 244 134 232 0 101 98 211 49 47 59 19 169 52 220 196 136 148 222 165 152 85 5 169 23 220 105 118 21 31 23 169 129 143 108 164 255 205 43 2 15 233 206 223 83 148 91 161 181 184 64 167 41 31 68 159 27 66 197 109 166 210 41 233 212 139 14 81 118 76 220 209 225 112 158 247 169 226 222 247 48 110 50 182 232 53 81 64 34 11 74 92 83 243 138 186 141 80 95 206 96 84 26 71 238 167 199 227 216 242 223 174 116 225 205 23 37 180 237 71 122 135 113 245 95 81 165 11 229 123 185 127 64 50 159 222 58 42 204 62 200 209 63 81 66 131 32 168 209 132 36 11 176 175 158 160 182 126 183 212 65 171 99 120 47 126 117 225 26 171 114 167 172 135 227 250 97 67 201 105 180 172 128 135 123 187 33 224 176 198 107 230 157 177 235 70 254 71 92 246 161 213 212 103 134 205 209 26 184 138 153 149 127 69 28 252 116 58 9 40 223 197 186 65 118 74 185 21 74 135 131 237 204 173 37 248 51 101 153 202 86 89 117 139 181 95 119 208 178 236 46 246 246 39 4 123 122 21 168 32 101 223 249 251 67 111 207 206 78 116 124 42 12 82 211 15 221 53 7 131 91 73 239 65 88 215 122 216 108 220 81 41 51 153 170 116 36 54 157 47 193 27 201 60 160 198 109 61 122 117 248 44 210 176 0 43 40 194 140 243 201 28 168 155 81 21 191 172 166 208 74 13 170 130 252 61 77 190 236 110 135 219 57 75 103 2 107 106 89 91 89 101 219 18 205 216 171 44 161 81 159 193 157 50 96 86 254 195 154 213)
#f
())
#(37
"removing sequence"
#vu8(49 50 51 52 48 48)
#vu8(148 182 96 83 152 16 215 89 92 105 185 92 194 165 158 32 173 104 41 45 31 56 31 99 155 179 143 47 36 243 255 235 129 206 189 171 226 122 86 227 62 124 189 249 84 188 0 147 13 228 175 190 188 125 199 152 169 17 239 211 246 43 47 107 138 63 187 113 185 74 171 145 61 80 165 244 130 80 236 80 154 138 47 163 204 34 204 224 6 174 196 86 151 239 80 103 45 68 181 116 38 36 34 7 20 36 250 30 122 51 184 29 249 167 77 237 9 1 128 114 201 148 29 38 30 39 81 225 115 198 243 47 250 161 132 251 81 173 59 2 11 129 42 137 15 214 80 152 125 95 211 116 83 21 53 221 28 137 220 82 33 92 22 96 247 24 51 6 9 69 165 225 160 181 48 168 123 52 165 66 84 156 23 48 152 155 157 37 176 205 161 34 229 144 240 48 75 205 61 8 189 101 180 241 157 248 77 55 85 233 147 172 90 128 241 105 121 126 22 118 13 27 180 247 20 167 98 16 56 149 40 59 64 59 85 39 27 79 223 10 142 72 102 81 164 169 85 205 200 226 63 114 135 170 111 117 248 192 30 54 93 56 252 78 120 61 224 15 5 8 19 153 41 75 27 225 67 175 67 144 74 253 109 33 29 73 173 233 183 131 7 40 31 250 196 238 247 165 98 75 159 134 126 17 60 48 166 134 71 47 26 244 102 48 133 235 143 101 57 79 98 61 192 41 160 181 173 240 20 1 71 144 14 203 3 32 186 197 254 133 107 172 205 66 238 200 181 201 165 230 157 45 106 66 176 15 14 96 166 185 97 155 17 29 223 202 111 148 232 69 161 184 191 188 180 246 177 62 82 37 152 82 234 132 117 251 22 139 216 222 186 0 166 66 75 110 84 225 34 85 66 73 58 83 94 122 108 240 20 121 218 50 79 152 195 68 3 238 148 74 142 55 243 101 150 119 155 137 93 130 155 159 53 240 99 114 62 200 255 42 66 60 30 120 50 141 230 10 3 188 97 9 93 3 126 138 62 36 110 52 226 227 223 27 7 242 67 218 162 8 36 14 220 115 255 61 155 137 161 219 128 134 177 204 127 208 173 188 162 101 16 114 55 145 175 179 144 135 114 34 67 73 130 184 177 157 86 108 178 243 0 217)
#f
())
#(38
"lonely sequence tag"
#vu8(49 50 51 52 48 48)
#vu8(63 82 159 158 236 252 30 80 242 64 124 112 248 42 180 192 166 45 122 201 64 30 108 35 144 99 213 117 176 225 152 68 157 253 20 184 253 115 42 157 197 98 183 186 131 217 191 109 242 41 89 39 220 130 147 200 80 47 29 180 4 154 212 111 207 153 150 185 179 116 106 2 100 81 123 144 158 116 21 169 247 217 125 7 84 184 61 227 109 22 232 94 32 22 102 50 29 248 65 119 168 98 99 79 54 103 250 143 120 12 64 65 120 231 68 207 115 169 35 244 112 224 36 17 212 82 153 24 34 214 181 9 167 134 180 138 137 72 14 181 89 197 202 122 53 28 154 56 60 118 242 137 95 248 11 250 217 43 87 200 10 166 33 191 103 150 61 193 146 74 48 20 152 46 213 243 13 253 170 68 41 230 87 103 188 163 82 27 69 12 79 156 138 28 54 185 26 150 82 89 140 227 27 60 213 49 206 254 103 82 153 209 113 17 45 46 89 19 87 193 47 238 107 224 197 43 25 43 170 149 233 81 253 86 60 68 113 222 133 187 108 223 220 194 254 126 114 25 184 208 150 58 77 109 77 114 163 233 79 114 71 86 193 152 202 52 12 30 9 188 65 139 114 206 153 84 198 37 193 84 117 137 228 85 99 238 121 205 225 33 30 1 105 233 69 20 249 242 124 62 179 241 158 247 142 199 141 80 99 129 80 180 27 89 211 105 255 68 193 245 229 77 192 9 97 160 86 0 197 73 31 85 142 105 141 49 110 176 178 16 116 66 44 204 193 31 128 202 124 111 110 168 148 46 25 143 251 233 55 95 31 165 81 3 113 123 118 90 176 253 232 156 88 206 221 9 51 120 85 101 187 251 12 237 66 19 63 244 114 107 93 66 175 255 83 104 109 163 52 133 114 235 58 36 246 231 177 25 144 109 48 242 75 93 0 121 0 215 9 94 75 232 0 151 245 9 232 157 99 10 147 21 130 225 18 234 191 174 210 245 98 228 204 227 193 33 22 124 69 79 144 67 255 171 217 92 216 223 193 206 178 193 10 94 88 250 202 138 35 243 44 134 174 208 119 254 248 16 195 44 215 38 96 128 168 176 35 134 7 161 7 205 3 100 20 162 24 94 244 176 50 140 107 16 35 193 120 212 250 181 222 56)
#f
())
#(39
"lonely sequence tag"
#vu8(49 50 51 52 48 48)
#vu8(44 174 131 49 10 43 65 63 68 230 140 164 136 182 209 62 202 202 130 137 231 151 120 96 118 188 99 176 11 88 62 55 60 72 18 141 133 0 146 75 207 149 177 214 127 205 105 97 242 66 154 170 208 224 122 58 130 115 209 100 184 201 3 29 123 144 187 218 19 74 218 98 101 98 212 92 105 60 146 132 127 161 128 175 79 103 221 135 179 20 133 180 163 225 26 161 136 166 156 236 36 247 96 53 72 253 181 35 192 100 203 170 238 23 60 244 92 130 130 76 11 245 57 139 99 57 245 94 7 182 109 3 119 221 196 40 46 59 240 190 165 233 135 197 86 237 19 139 182 110 57 118 40 142 2 85 112 18 35 207 147 209 31 65 80 102 212 5 170 194 195 48 238 234 189 132 231 199 208 34 214 128 93 200 84 171 41 241 234 101 40 118 46 64 171 203 71 16 80 59 68 128 27 35 71 59 200 241 90 88 245 243 203 105 160 88 154 205 18 154 235 210 72 12 189 28 144 1 142 207 54 196 226 236 248 46 248 7 109 140 135 71 219 140 255 14 7 153 132 3 5 209 30 162 235 179 110 72 116 214 137 98 44 34 62 55 68 53 106 255 158 152 23 185 168 192 175 130 149 107 177 21 70 56 39 71 215 207 138 158 184 97 177 236 108 251 165 102 120 181 161 88 18 19 137 140 99 69 77 178 23 20 226 218 15 195 234 248 151 248 242 30 248 78 142 226 7 182 201 10 152 33 212 104 159 96 62 39 130 124 8 89 164 151 171 217 208 175 110 124 7 6 113 196 7 188 63 134 78 96 12 67 16 122 2 112 188 6 88 90 106 20 252 199 84 121 120 41 111 123 81 221 142 205 67 48 62 194 4 182 200 61 253 78 115 30 52 134 1 73 135 174 130 29 105 68 107 53 120 252 152 98 241 51 132 246 106 253 128 124 230 144 55 197 214 163 136 235 250 62 94 165 185 96 47 94 72 171 242 20 114 131 134 130 226 56 38 23 155 156 96 237 108 87 36 219 119 44 8 126 79 74 81 9 203 142 185 10 112 238 149 119 158 137 144 159 244 123 124 165 83 184 243 93 219 46 109 87 4 158 222 40 121 64 143 238 12 210 138 52 68 121 5 68 245 217 104 142 84 25 154 151)
#f
())
#(40
"appending 0's to sequence"
#vu8(49 50 51 52 48 48)
#vu8(64 219 247 44 167 215 248 6 119 40 233 195 30 17 141 136 153 215 27 182 165 229 114 83 70 42 16 117 33 186 187 248 25 67 66 143 250 175 3 186 185 38 228 26 18 218 121 150 31 236 146 51 21 13 10 242 210 163 132 215 95 12 131 186 96 123 250 72 95 102 20 210 208 136 121 144 111 219 138 201 206 175 152 187 32 21 175 20 227 111 187 243 179 129 223 246 192 51 220 177 87 244 109 164 47 216 154 163 217 82 8 185 23 235 195 135 49 48 19 179 197 80 169 6 192 255 194 124 167 182 251 141 186 38 183 105 107 54 136 104 0 20 141 124 188 46 246 206 220 217 56 169 122 71 146 238 21 12 252 221 183 212 5 213 199 103 8 82 177 228 11 141 59 243 180 183 78 32 130 16 55 140 92 170 32 113 20 157 90 14 214 242 248 182 158 189 137 34 229 246 35 35 105 250 39 116 218 251 107 105 37 64 131 81 116 101 170 186 216 101 126 85 13 124 54 194 226 174 119 136 241 242 254 71 92 23 233 16 231 150 160 232 79 54 238 214 223 184 163 101 13 128 185 29 119 240 68 32 117 200 0 155 199 111 132 162 137 180 87 104 48 127 0 245 131 188 61 152 187 146 226 202 250 71 3 213 45 97 100 186 68 148 12 57 62 6 233 181 215 188 145 161 27 201 57 108 145 7 99 174 236 53 157 26 152 37 150 5 237 182 67 176 190 230 204 216 248 48 218 241 35 191 128 47 160 66 76 255 151 33 140 165 78 91 230 250 73 241 193 228 160 33 212 232 152 31 237 224 36 200 123 127 28 162 243 237 189 59 149 16 189 140 204 144 23 132 73 104 158 178 97 82 31 136 211 166 164 233 207 213 179 167 77 19 146 151 234 160 251 91 15 227 155 0 52 136 26 17 178 218 22 121 226 102 204 99 108 128 102 251 120 145 134 61 136 91 240 171 6 64 48 102 226 224 6 146 20 140 153 128 161 67 81 122 16 68 224 71 9 211 142 254 167 252 120 37 254 161 147 121 53 96 85 238 8 49 210 220 12 237 49 7 5 20 253 178 192 191 228 161 172 28 80 1 22 107 217 179 147 156 178 19 212 59 40 224 130 90 80 58 191 209 56 219 62 169 209 112 224 47 2 54)
#f
())
#(41
"appending 0's to sequence"
#vu8(49 50 51 52 48 48)
#vu8(77 143 31 21 17 210 194 244 186 37 114 224 87 238 15 115 55 122 192 159 202 14 186 153 227 42 52 110 244 6 197 4 172 64 204 195 184 248 159 197 102 185 173 67 230 45 29 56 154 235 178 236 74 195 94 223 101 183 26 77 5 216 183 18 23 111 253 61 0 37 99 103 133 160 31 119 16 16 93 19 21 91 255 231 242 193 40 238 149 128 36 134 85 174 188 185 139 191 20 16 173 101 46 115 8 159 181 112 179 48 56 233 27 27 137 132 81 207 140 212 230 94 239 95 242 94 148 225 154 207 21 147 236 153 36 11 243 216 57 193 192 21 56 112 93 198 47 147 112 157 193 229 157 0 196 249 238 24 121 211 69 78 104 162 5 168 49 101 167 114 109 19 168 228 122 132 252 136 174 10 154 116 56 155 241 215 59 137 252 47 207 207 194 120 12 30 39 115 179 141 54 136 184 46 3 194 41 140 63 88 73 104 175 208 24 27 93 214 34 30 242 176 210 129 60 109 251 149 183 99 187 170 104 119 16 41 177 177 156 119 199 90 205 54 220 239 11 87 84 221 133 16 157 76 134 245 147 223 70 210 173 197 114 56 171 253 42 195 169 173 20 188 68 58 12 78 198 243 210 170 65 51 177 89 142 119 165 153 13 69 99 9 36 82 104 236 107 72 248 118 177 251 173 132 211 194 12 146 143 194 105 81 151 187 88 147 2 53 130 224 64 62 6 149 76 3 163 116 139 29 150 223 122 188 254 119 213 155 151 69 20 153 170 143 176 42 24 26 182 143 229 165 214 56 15 183 167 191 193 110 24 111 17 155 110 205 24 196 164 0 123 114 190 24 239 162 235 176 5 67 10 64 94 160 204 31 39 64 193 176 122 192 119 95 59 27 178 86 55 162 20 36 22 88 142 4 55 71 164 48 59 127 114 101 168 174 52 174 251 126 192 204 145 42 129 172 123 151 91 22 101 20 38 252 3 146 184 133 13 120 175 114 133 3 169 204 182 135 36 147 136 208 80 69 115 60 194 171 178 121 41 40 124 187 137 99 229 204 74 24 253 100 209 103 146 45 236 249 0 243 157 26 157 116 93 153 85 104 187 197 106 128 172 33 148 10 153 30 98 17 190 181 251 180 167 133 122 79 177 81 238 146)
#f
())
#(42
"prepending 0's to sequence"
#vu8(49 50 51 52 48 48)
#vu8(105 24 237 104 239 62 99 251 106 2 10 106 240 80 79 167 202 246 141 33 189 135 48 106 225 22 27 182 182 101 140 46 109 66 39 124 158 238 198 103 109 98 115 251 233 194 21 217 218 177 46 58 236 4 45 102 62 196 12 42 107 163 161 132 125 79 129 230 99 31 64 225 241 222 71 75 121 49 138 110 231 46 57 148 62 191 232 33 124 79 107 233 254 223 128 30 165 13 117 50 49 159 130 240 196 61 11 184 0 49 245 137 54 75 12 249 53 83 219 188 186 218 16 202 9 131 240 58 53 128 26 241 14 55 52 89 103 59 27 255 141 17 84 6 152 40 118 39 120 172 20 110 251 79 38 83 172 29 66 36 58 118 3 109 15 175 128 64 148 91 65 205 209 207 164 153 77 78 145 32 184 222 162 76 200 98 255 76 111 199 179 218 79 106 24 103 54 129 101 165 228 231 215 134 248 90 216 80 25 59 175 97 76 236 217 221 16 53 16 94 222 120 209 109 174 176 21 241 199 234 68 188 210 167 83 24 101 43 201 24 149 180 13 149 56 86 140 240 51 165 144 16 109 55 12 119 140 5 102 192 136 22 9 207 15 98 53 41 107 186 129 250 120 197 158 175 118 236 194 117 144 73 71 170 116 236 22 146 230 211 94 113 92 208 156 74 87 191 142 242 254 164 120 163 12 156 168 183 115 242 170 123 164 154 243 50 96 249 211 125 114 236 162 127 103 171 193 77 81 205 143 100 74 22 61 41 150 185 233 43 164 36 239 28 199 246 87 220 117 145 212 148 127 181 161 154 197 207 131 114 192 182 234 100 97 104 115 162 184 188 44 190 182 235 13 88 225 6 152 74 54 145 165 136 220 160 224 214 251 252 7 28 211 197 228 192 12 59 11 60 36 92 104 92 209 147 44 88 119 12 239 139 201 22 172 17 120 25 148 169 251 97 244 144 252 112 126 222 14 144 239 31 112 8 0 197 157 17 60 167 163 71 166 23 145 16 12 96 243 235 90 172 177 104 188 231 167 83 93 87 242 156 230 27 233 237 117 242 240 44 174 72 227 99 126 171 37 225 226 108 67 42 231 217 78 64 165 172 139 108 145 23 241 47 193 202 61 242 26 238 17 96 223 119 94 32 28 157 50 195 51 147)
#f
())
#(43
"prepending 0's to sequence"
#vu8(49 50 51 52 48 48)
#vu8(92 57 48 166 114 199 187 51 112 112 76 33 24 136 61 113 238 192 141 3 115 195 134 234 250 174 138 210 159 110 52 205 144 82 242 197 50 189 194 221 224 211 61 203 196 224 11 84 152 79 128 132 68 98 189 34 42 136 106 187 48 63 212 231 135 53 195 78 237 125 158 114 3 156 1 216 166 171 123 138 208 213 193 97 214 214 165 14 103 167 43 27 187 88 250 3 101 111 104 96 186 204 1 209 231 157 153 129 142 38 121 49 0 87 58 58 134 68 17 0 223 254 43 27 236 0 40 195 32 226 113 128 29 158 41 66 124 126 72 39 117 104 119 95 205 184 65 153 69 30 160 202 191 23 180 68 116 223 182 50 85 47 3 17 131 56 16 1 24 73 93 198 45 249 251 178 214 35 191 143 9 222 20 160 58 24 192 213 137 88 68 189 8 199 201 130 250 150 106 242 36 190 166 17 191 127 167 163 142 125 11 183 136 130 126 214 100 19 236 150 42 140 73 163 12 43 1 105 123 2 70 248 18 212 132 175 238 56 252 63 73 227 71 112 190 46 122 230 223 176 169 44 112 237 132 187 81 107 31 94 38 160 78 245 26 0 242 44 137 69 7 251 222 12 53 86 62 44 31 251 51 226 132 125 22 250 28 113 60 253 127 37 36 93 241 128 98 200 200 166 211 12 66 68 176 29 210 67 72 26 101 171 6 133 186 60 198 190 74 171 206 189 124 138 243 229 188 199 234 12 117 226 247 149 91 200 52 212 244 40 12 49 221 60 207 48 220 10 229 255 178 134 44 142 66 251 216 105 25 228 244 73 240 81 53 135 163 70 167 20 105 156 77 28 153 162 141 23 244 177 207 221 195 166 192 50 17 54 8 227 108 240 220 186 25 215 67 24 159 64 164 55 75 102 73 155 115 125 127 83 191 200 108 243 52 171 158 249 220 158 23 128 152 117 30 50 71 30 158 219 192 2 81 152 140 193 143 189 158 120 98 144 229 35 202 84 144 125 62 60 110 215 140 130 23 112 143 6 165 188 218 78 4 141 105 132 83 209 224 222 176 215 155 50 0 193 167 56 2 137 171 4 123 188 153 224 93 216 151 244 133 38 215 251 255 124 208 207 194 68 201 145 193 249 98 182 87 12 131 228 9 183)
#f
())
#(44
"appending unused 0's to sequence"
#vu8(49 50 51 52 48 48)
#vu8(81 121 242 12 113 37 213 117 66 12 133 176 149 77 150 160 250 115 16 11 38 81 19 243 1 217 20 87 204 144 30 4 135 111 134 96 63 123 94 223 210 87 143 166 76 28 165 142 164 139 219 125 224 247 131 31 79 51 31 37 84 139 53 145 81 103 203 191 175 165 110 206 127 174 96 248 20 195 250 171 213 16 29 130 240 76 128 245 62 61 26 225 163 235 198 231 100 226 102 118 234 138 195 76 100 204 63 29 129 166 52 60 225 98 45 222 123 128 247 208 31 89 6 177 176 94 107 176 19 241 201 236 159 96 253 154 11 98 32 173 30 214 218 247 180 168 19 113 243 216 14 227 165 248 11 171 134 138 112 70 43 100 20 215 0 246 13 242 1 133 186 206 119 87 106 16 101 148 210 213 206 75 30 237 21 75 133 215 121 50 157 146 185 24 126 24 27 50 22 25 231 251 233 170 113 29 152 89 75 67 79 62 1 62 182 78 229 108 254 183 167 14 12 165 134 225 119 84 4 96 81 46 97 105 128 53 237 30 21 55 166 53 133 124 9 224 28 118 40 9 168 252 52 130 120 6 11 123 117 28 48 9 255 185 24 23 3 103 21 70 121 122 96 75 67 86 37 242 17 150 180 157 60 171 122 68 80 200 189 51 158 42 238 58 26 216 239 97 230 100 62 193 3 123 89 63 102 249 99 42 111 221 146 207 199 237 244 114 230 46 56 106 59 84 52 164 95 116 36 97 55 44 235 9 125 35 183 180 245 209 83 212 203 78 123 105 42 115 105 37 229 17 10 209 168 238 66 249 146 185 109 79 195 154 180 126 20 133 73 19 183 233 170 65 83 109 186 97 222 127 8 78 37 96 154 8 205 166 63 27 134 119 57 103 120 160 1 100 69 51 58 227 112 163 242 109 230 28 96 125 163 177 188 82 220 62 248 194 185 107 154 157 114 97 196 8 20 73 218 8 140 111 2 205 111 151 34 33 145 168 40 220 235 141 60 37 122 214 10 237 144 61 104 145 35 152 43 109 58 240 176 63 241 118 19 164 183 125 11 190 111 103 28 108 192 73 120 113 72 153 113 65 6 137 44 185 31 169 29 145 43 31 213 112 102 82 100 80 141 252 17 23 181 214 14 6 110 205 196 148 215 179)
#f
())
#(45
"appending unused 0's to sequence"
#vu8(49 50 51 52 48 48)
#vu8(43 130 44 151 238 89 152 116 76 80 72 138 12 43 71 66 44 44 160 225 60 138 7 174 236 126 66 224 239 129 48 119 33 42 213 4 107 82 40 152 253 93 95 74 70 98 242 94 186 166 64 50 96 171 89 102 89 145 89 196 94 102 226 30 98 185 79 141 189 65 203 118 4 36 203 141 237 234 103 64 94 20 189 243 39 6 91 46 227 132 77 168 47 122 232 162 255 70 65 185 168 62 214 171 229 28 253 235 12 132 2 46 244 37 112 202 81 241 244 165 153 86 228 62 58 89 241 50 175 170 78 135 43 21 52 250 221 133 104 207 174 25 95 111 175 15 212 164 5 213 178 232 132 13 240 219 24 237 141 188 32 48 186 87 210 212 157 54 69 68 221 218 192 56 98 130 150 185 147 127 244 235 151 18 59 187 163 95 231 163 44 103 107 192 41 41 1 177 111 236 50 149 54 239 241 146 42 86 91 145 178 184 255 192 152 85 99 166 234 36 90 32 172 15 208 150 178 39 176 243 252 97 15 98 122 158 48 99 54 228 32 18 236 85 121 122 103 165 196 17 198 71 231 212 243 66 43 57 20 173 139 226 131 243 61 101 77 235 175 195 190 219 216 75 202 196 252 22 247 4 103 195 68 97 53 83 150 213 154 253 209 52 32 165 205 91 41 10 219 156 93 5 229 239 60 147 96 195 204 235 255 101 34 33 223 230 7 97 4 233 172 217 39 21 52 76 187 236 43 23 76 2 74 192 111 125 173 211 76 161 210 71 80 203 36 139 175 174 34 30 125 136 117 13 61 175 132 39 23 213 103 167 173 211 57 239 84 177 178 24 214 52 202 172 163 167 41 177 85 97 172 117 241 243 138 0 237 52 188 50 46 133 79 155 213 251 105 179 232 32 98 105 110 64 96 34 3 249 229 52 41 92 226 186 130 69 175 221 12 96 40 209 176 39 25 150 47 240 84 210 229 117 207 51 170 80 118 199 82 68 208 127 172 21 92 53 21 164 234 158 175 214 175 51 173 45 117 54 50 47 14 158 249 26 40 191 130 233 143 238 246 117 181 11 34 61 162 115 49 66 80 41 166 195 13 156 237 66 73 146 183 93 16 193 101 124 14 197 193 51 241 104 48 78 52 222 219 76 218 128 18 140)
#f
())
#(46
"appending null value to sequence"
#vu8(49 50 51 52 48 48)
#vu8(82 148 175 183 208 96 48 107 168 21 161 123 167 67 170 103 17 20 187 151 72 114 137 160 146 24 59 212 19 115 229 227 160 223 114 68 104 135 129 175 7 209 24 233 241 136 24 70 138 131 126 131 242 197 130 82 218 82 63 139 37 230 28 150 250 106 201 116 52 238 85 60 229 143 222 214 137 238 130 206 171 71 179 143 132 94 114 85 4 178 221 214 23 83 187 158 51 74 96 127 196 86 22 239 102 179 71 174 197 205 68 184 167 137 104 171 198 188 192 162 161 156 54 50 73 55 253 30 177 21 84 81 104 6 222 222 64 117 200 107 134 131 90 53 198 15 75 180 130 32 77 11 8 85 187 175 103 34 141 105 54 221 24 134 51 94 133 165 158 164 69 8 71 53 54 143 118 190 91 127 163 174 174 189 190 135 89 20 81 217 73 156 218 210 111 130 236 104 10 70 88 125 91 16 8 183 139 217 149 117 101 10 248 151 87 151 189 234 145 41 50 172 147 152 186 53 172 149 166 21 239 107 81 177 65 241 142 234 136 161 170 197 61 193 53 66 238 202 183 20 40 95 91 242 234 117 217 56 84 37 120 79 207 251 51 18 139 190 54 70 229 190 21 43 32 0 2 11 221 13 0 224 8 230 116 213 1 33 112 178 222 216 72 174 87 189 175 37 135 126 51 63 161 193 18 172 238 159 161 73 140 239 107 53 62 91 60 109 166 139 244 159 48 35 114 186 181 148 96 101 254 32 182 143 253 164 0 245 127 130 249 224 187 2 78 6 218 115 112 216 255 71 200 204 0 152 203 54 90 233 123 186 6 8 209 69 101 248 58 115 0 138 69 79 2 142 184 24 220 143 95 242 137 127 252 150 69 48 153 13 206 235 203 227 172 244 97 81 177 241 17 29 121 249 157 152 142 137 72 17 68 195 154 228 144 46 255 235 186 135 153 202 159 246 213 25 148 217 76 112 234 207 51 253 94 138 92 56 199 45 47 30 40 38 136 210 105 154 118 169 159 18 61 188 167 65 216 58 162 34 203 177 28 133 202 16 25 218 128 149 12 14 0 163 25 34 170 189 55 246 104 81 80 223 126 242 101 135 254 179 205 130 93 91 72 1 164 107 5 107 45 157 196 145 121 2 73 255 245 73 186 224)
#f
())
#(47
"appending null value to sequence"
#vu8(49 50 51 52 48 48)
#vu8(21 52 122 118 23 210 52 232 201 77 15 236 185 150 9 114 194 201 156 203 51 211 132 150 127 184 33 217 19 141 235 173 118 250 93 186 164 175 54 114 199 115 205 149 201 240 52 146 81 169 14 129 58 204 237 139 55 217 146 85 203 97 144 181 190 179 8 60 23 106 110 48 165 55 31 179 46 142 27 131 69 220 96 187 75 100 42 238 49 23 158 129 16 123 254 113 56 155 180 200 33 53 127 1 194 250 53 35 104 244 208 63 136 228 182 255 187 130 34 134 129 177 216 187 196 11 173 57 238 83 47 53 231 71 199 150 42 42 43 139 134 41 57 192 23 253 22 241 249 225 203 104 255 167 139 73 26 241 82 85 147 118 57 127 89 234 13 19 250 71 161 1 197 127 236 38 21 46 244 104 9 36 74 122 21 24 217 169 33 162 240 123 118 229 176 38 154 80 75 215 173 216 125 224 35 163 35 235 79 179 42 45 54 176 93 62 220 132 11 228 185 51 0 207 206 48 219 41 211 183 226 204 218 196 34 66 62 96 39 168 222 156 223 93 153 139 208 79 235 149 60 212 85 209 184 126 124 172 225 213 239 64 207 65 133 126 38 17 203 4 107 220 246 103 13 84 142 118 1 95 47 252 72 244 130 238 104 170 156 150 61 129 25 106 200 233 155 222 126 9 89 16 126 86 70 222 7 161 196 78 153 253 94 230 226 99 59 84 28 64 87 151 121 186 162 221 4 72 239 78 17 105 219 199 243 40 229 159 97 142 128 132 33 47 7 134 157 50 53 16 232 141 25 224 238 230 87 132 254 107 78 234 165 132 219 66 219 37 135 116 10 106 137 231 70 186 197 102 251 232 237 230 170 62 73 77 181 20 60 88 52 69 76 112 161 218 138 102 204 115 130 41 47 4 16 39 19 19 44 247 79 153 46 70 144 239 234 114 220 232 204 3 69 192 206 54 134 113 222 181 100 81 90 67 146 93 133 143 78 4 217 156 104 17 149 202 119 224 115 29 199 58 177 76 25 148 163 39 3 247 243 8 89 165 66 233 73 204 91 7 57 130 70 162 228 40 251 4 207 249 93 79 228 138 82 83 132 201 240 61 236 77 74 50 32 225 125 85 230 162 178 194 65 232 60 118 54 58 50 125 132 131)
#f
())
#(48
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(129 212 93 210 237 123 222 177 34 237 237 60 157 142 42 156 10 237 24 87 72 55 100 248 110 141 148 83 202 57 142 21 152 134 113 5 88 207 216 37 148 184 39 38 201 88 6 227 100 200 87 170 194 48 159 36 156 63 146 114 226 132 47 25 243 129 186 159 6 43 161 33 99 206 200 8 169 210 247 95 1 211 118 9 55 227 199 149 211 2 130 35 178 158 188 107 35 137 130 5 206 40 111 194 199 52 94 103 100 77 181 181 250 252 83 154 74 7 248 218 68 120 21 32 72 39 229 52 33 67 30 151 142 134 246 28 7 228 19 204 218 214 189 131 83 203 11 105 41 202 176 179 9 248 136 145 173 147 6 4 104 53 235 4 230 41 85 54 188 57 249 93 64 35 211 38 185 56 150 33 127 79 89 102 215 194 151 220 88 148 6 82 196 106 245 101 135 31 160 175 3 217 68 83 87 204 30 98 238 144 25 163 207 7 9 179 149 219 119 109 105 6 58 2 140 4 202 26 20 48 204 133 220 206 216 208 91 66 105 131 4 246 116 35 131 148 254 191 83 46 58 162 129 234 102 36 139 85 57 163 60 115 32 230 192 128 189 228 126 225 16 123 16 119 97 23 14 225 140 9 74 69 56 93 222 157 239 53 131 96 17 76 127 249 181 97 144 22 70 242 135 40 37 214 53 71 234 61 206 250 154 7 190 43 150 172 38 158 64 101 205 221 234 119 184 70 36 120 201 129 208 239 25 192 188 133 110 0 104 14 114 142 145 137 103 79 238 67 226 171 152 184 180 63 130 43 13 49 148 202 142 125 244 12 169 184 199 149 132 140 159 74 126 122 122 216 1 30 7 161 173 136 50 44 132 175 12 193 185 121 239 178 197 59 218 136 119 192 191 118 32 18 141 171 185 147 196 223 31 106 107 37 74 171 52 37 185 204 239 71 235 4 194 1 18 208 77 96 137 171 43 246 123 31 169 228 190 171 202 51 248 130 169 7 93 171 129 13 188 222 141 202 136 92 137 121 131 21 154 166 7 78 2 42 46 46 78 59 103 148 82 255 192 75 206 247 242 103 17 29 242 231 234 87 199 187 89 52 84 146 76 54 64 195 116 135 176 211 169 103 229 103 72 64 12 133 108 101 48 223 140 164)
#f
())
#(49
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(99 191 174 66 27 234 27 200 65 196 197 87 97 211 185 2 102 60 87 87 119 227 164 239 34 49 64 102 0 198 5 95 19 138 151 216 229 42 103 177 237 247 212 115 132 227 44 86 202 14 154 221 177 243 62 66 86 19 164 68 154 177 213 17 236 88 249 176 60 248 221 222 129 19 185 67 20 138 230 69 101 144 168 23 70 56 45 70 34 242 96 173 234 242 23 67 67 21 225 237 68 245 46 232 158 112 91 41 42 100 26 114 226 93 99 147 89 154 242 215 117 36 247 32 153 108 35 53 64 117 29 157 48 15 253 70 122 207 88 238 177 179 175 14 169 128 93 94 188 142 111 112 237 107 171 108 83 80 8 138 177 210 121 180 236 188 203 65 163 74 61 127 54 109 248 159 28 71 121 129 135 106 231 15 1 155 151 22 232 196 85 25 254 210 127 21 153 212 105 201 58 195 42 176 174 174 221 55 160 103 182 212 96 235 125 231 16 231 162 92 124 46 2 242 210 167 154 34 153 198 212 116 90 246 14 68 205 48 216 4 251 149 142 156 136 81 193 145 87 91 156 186 53 130 0 244 19 233 125 196 53 168 222 123 153 106 147 91 135 25 42 31 185 200 146 190 66 103 134 194 162 110 56 206 27 97 237 6 0 170 115 177 66 73 137 82 236 139 175 227 226 97 197 165 29 112 207 205 143 23 146 22 56 111 113 149 107 1 127 174 136 54 151 253 98 103 152 220 63 254 161 95 214 137 229 159 213 201 20 60 174 47 21 14 84 36 56 57 251 72 220 237 60 112 196 6 26 136 251 119 217 113 66 11 133 143 252 34 31 58 214 87 120 72 17 121 112 208 98 175 63 37 94 25 126 211 88 165 235 126 251 6 59 84 251 108 33 7 58 225 24 118 89 9 150 130 251 21 131 160 36 41 71 187 128 70 101 145 36 113 228 18 19 129 228 167 172 155 51 217 161 216 43 72 161 44 139 152 228 52 233 126 237 145 42 65 54 59 182 107 120 217 47 197 45 251 124 21 52 73 160 106 9 95 41 121 129 1 87 127 175 164 217 18 87 117 98 24 83 100 78 47 172 155 45 226 129 192 220 216 102 92 239 61 29 107 190 246 28 44 9 29 250 147 28 198 239 64 238 157 91 128)
#f
())
#(50
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(146 24 151 18 47 233 93 167 179 105 5 90 36 67 142 49 151 122 229 236 235 236 14 106 150 158 252 88 159 221 246 146 55 254 138 224 118 26 78 168 134 252 245 44 243 196 10 132 50 204 70 40 21 254 52 72 4 136 176 148 213 225 86 223 153 37 100 175 203 40 8 147 157 238 1 168 217 57 139 125 172 153 106 118 162 7 247 83 139 56 46 77 168 234 244 3 212 112 232 236 152 185 206 147 158 199 201 217 122 138 158 173 194 183 237 77 1 176 136 181 116 131 185 132 5 112 239 53 212 4 245 188 71 190 30 231 219 58 25 217 53 159 84 51 183 186 93 87 112 161 194 195 25 192 228 87 78 112 104 220 4 129 198 68 106 71 41 31 138 101 140 205 201 116 132 45 133 101 129 6 215 90 61 41 121 186 173 44 144 181 151 176 54 129 69 53 179 212 55 253 253 205 9 119 247 42 102 197 28 39 221 184 70 173 113 129 147 14 206 66 5 107 228 193 183 244 214 47 8 31 96 190 250 223 212 73 59 20 0 199 73 201 211 67 177 83 86 160 196 184 99 185 223 233 43 170 224 166 120 78 76 210 94 225 211 82 197 93 37 124 22 199 236 218 118 149 79 191 218 247 156 58 232 186 129 169 64 38 75 199 82 3 161 206 64 144 241 224 154 197 78 173 163 184 74 6 161 63 165 37 63 56 246 29 213 191 143 204 200 180 100 87 86 240 142 102 244 68 153 196 207 58 35 90 207 10 161 86 162 79 96 112 233 73 106 196 238 2 17 6 143 236 188 94 108 126 225 148 85 53 28 16 55 86 29 235 46 134 173 133 93 252 140 2 215 59 16 154 78 119 90 154 16 76 15 56 157 250 206 208 57 18 123 147 200 166 237 217 67 248 170 211 92 126 7 74 145 139 89 154 157 48 91 49 243 44 82 225 165 167 53 247 22 53 171 176 215 131 62 68 157 22 36 126 77 27 193 219 255 206 238 215 201 44 75 24 5 70 10 236 78 36 66 81 58 211 145 103 26 200 123 155 8 155 132 130 238 188 128 239 185 235 56 156 78 135 168 95 95 83 247 136 43 214 107 66 189 9 176 39 94 96 231 107 66 8 56 78 111 216 100 255 153 164 215 43 57 244 1 150 46 114)
#f
())
#(51
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(55 170 56 180 83 43 195 203 186 150 43 221 16 105 121 180 189 13 6 150 52 144 240 167 196 187 11 27 190 229 119 47 217 118 144 44 7 119 153 230 210 77 33 97 62 26 175 54 70 135 82 30 200 199 92 118 62 39 185 71 52 194 90 85 149 161 53 158 159 42 114 100 30 71 62 112 175 243 107 161 76 215 148 149 253 192 5 92 47 34 205 232 160 220 54 189 12 78 184 209 47 103 234 159 188 5 194 130 181 120 52 185 79 135 4 232 194 41 32 123 130 188 55 157 149 156 164 40 77 167 234 43 246 207 8 193 137 67 157 118 93 176 86 20 79 78 15 101 219 145 18 143 80 102 100 251 28 19 108 118 73 201 43 56 188 233 10 79 138 182 224 130 144 203 204 77 146 76 1 177 23 138 210 153 60 151 29 5 89 105 181 37 60 191 152 205 234 182 168 124 250 153 131 199 32 27 167 255 53 34 162 146 234 195 160 140 127 70 63 255 22 255 239 50 113 23 94 164 235 162 6 166 52 132 79 189 75 19 10 104 58 147 120 91 120 147 233 239 139 211 174 115 197 19 206 227 187 30 216 218 155 225 169 195 155 32 255 12 106 173 111 31 23 139 167 93 62 187 113 20 15 109 117 247 170 113 210 88 6 154 20 225 212 41 52 189 184 221 195 221 255 247 91 120 193 205 142 31 237 240 187 15 230 110 46 129 125 185 47 152 247 247 52 23 206 130 20 21 160 193 176 106 122 197 209 228 88 101 69 18 157 2 166 251 23 18 9 68 108 122 220 239 248 1 152 223 208 16 248 66 65 243 225 139 11 153 69 128 146 49 159 150 123 112 100 243 145 93 23 24 117 162 182 58 48 180 90 230 13 209 237 138 249 54 187 72 216 37 78 130 63 22 122 64 232 155 191 162 255 64 174 45 72 218 224 89 137 85 44 248 171 91 247 245 113 229 255 167 249 161 128 135 35 252 39 85 94 231 89 91 9 219 189 179 243 81 129 218 75 121 73 149 181 160 123 150 207 173 243 141 96 32 74 142 1 114 253 146 224 211 200 144 47 219 12 22 31 62 163 5 59 174 46 33 169 196 120 174 167 190 164 47 138 176 130 230 227 119 126 229 138 215 151 176 191 183 231 199 158 14 55 28)
#f
())
#(52
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(21 121 109 254 24 198 238 219 36 136 231 95 69 1 243 80 193 195 91 106 246 55 240 148 96 217 79 60 97 212 225 25 3 156 71 121 184 137 148 0 108 63 98 203 127 52 243 158 142 216 117 127 40 223 175 181 92 162 186 32 113 71 150 10 113 194 157 16 137 85 7 120 183 177 135 164 149 54 16 232 86 173 173 206 201 62 22 107 183 24 203 178 229 231 253 9 162 192 217 120 101 46 184 155 105 143 47 98 157 113 218 85 194 178 202 162 77 64 105 184 47 64 116 223 173 2 215 141 237 30 16 88 246 113 23 222 247 206 174 234 179 123 212 141 161 186 136 123 238 117 27 239 104 239 64 40 199 207 69 119 248 131 244 99 235 86 165 254 145 69 190 11 44 197 69 90 155 48 150 212 26 249 240 245 0 218 148 137 208 11 96 130 104 151 6 250 1 244 14 205 13 197 84 200 232 191 96 33 19 153 120 189 204 37 183 62 17 195 253 246 167 77 62 30 198 38 14 170 223 64 192 205 134 219 129 222 146 135 178 94 92 251 203 117 74 113 62 237 186 158 130 83 246 90 127 2 234 176 8 81 226 193 137 179 207 71 241 214 10 28 63 5 143 147 170 100 77 239 86 175 160 113 103 126 255 13 159 96 234 232 243 191 236 204 251 99 114 76 97 133 88 229 29 52 85 183 237 16 62 209 186 178 37 218 201 166 117 213 108 150 7 87 207 227 96 159 23 138 19 186 41 158 188 163 70 141 126 208 174 83 165 133 65 52 188 179 216 117 100 34 36 211 48 228 175 70 128 252 149 24 1 57 44 242 196 59 184 178 153 186 52 140 185 28 137 8 134 247 219 138 216 17 59 94 132 33 92 161 190 73 25 147 150 190 39 85 63 141 60 28 78 40 29 79 145 30 57 4 130 41 228 118 17 151 210 20 114 118 251 157 136 86 81 53 209 162 118 127 140 136 23 204 183 107 131 93 205 43 89 140 85 103 239 218 221 232 105 212 237 74 52 70 240 31 39 31 50 76 124 201 67 161 148 164 230 225 169 213 102 88 65 158 174 199 59 5 87 248 35 169 70 194 246 244 223 184 80 92 178 98 1 146 223 143 17 15 187 205 196 253 107 34 152 241 36 205 83 4 27 9 19 230)
#f
())
#(53
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(198 153 167 107 143 39 67 215 251 228 196 125 96 82 136 122 140 182 206 201 15 126 185 95 57 37 111 166 119 9 60 113 246 4 100 92 157 1 182 207 23 126 107 48 248 37 246 58 15 248 5 51 126 30 180 246 77 93 137 77 228 210 187 61 10 163 195 156 243 9 88 10 63 189 84 21 113 11 77 154 160 21 237 190 78 49 137 172 226 140 173 68 119 242 167 58 248 207 234 172 118 55 203 24 187 90 202 120 253 210 145 66 129 214 192 205 160 62 161 54 206 236 89 32 251 37 141 169 158 104 22 7 77 255 111 230 37 135 61 59 253 231 129 140 117 99 41 248 79 57 138 82 231 167 172 136 97 105 247 122 205 121 13 191 254 102 240 28 56 32 217 61 212 135 235 60 14 34 44 79 12 36 107 153 177 59 80 56 168 17 32 216 3 92 93 2 62 18 150 252 37 208 154 100 161 120 46 165 87 223 68 33 151 72 192 87 45 244 140 248 235 40 95 124 34 49 225 170 135 6 245 142 93 253 103 35 199 121 247 29 135 184 175 133 40 149 86 79 134 144 49 198 105 104 56 249 160 1 100 231 128 105 234 135 201 16 109 67 156 67 215 192 80 255 29 204 204 23 168 59 5 207 210 181 156 124 38 122 213 195 42 198 228 103 73 102 80 214 253 186 18 237 225 205 168 225 94 3 9 30 98 129 73 230 196 49 131 253 149 212 188 171 232 209 121 9 104 121 85 30 18 89 197 157 111 191 159 25 131 140 98 131 147 107 100 2 3 153 40 200 164 40 204 190 151 171 82 63 121 231 10 220 23 227 36 49 90 116 11 0 190 138 232 44 42 223 220 10 235 96 168 64 190 234 176 60 110 105 15 84 212 16 56 88 188 169 93 197 7 51 56 146 193 85 54 214 43 31 107 50 227 245 15 111 170 197 207 41 131 49 134 250 218 125 235 167 96 75 18 41 168 200 50 209 104 83 35 240 164 94 103 211 42 68 125 184 235 225 193 213 8 63 216 69 16 165 201 46 131 149 115 218 187 185 124 36 12 177 213 57 9 225 211 4 128 124 121 168 89 34 138 61 197 117 110 186 22 185 84 89 64 192 119 19 62 135 108 108 40 15 8 197 221 233 239 240 73 139 213 24 122 122)
#f
())
#(54
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(196 200 35 61 203 252 125 23 111 244 211 16 129 237 145 254 2 166 76 208 15 102 232 48 169 125 253 195 206 26 121 82 252 172 38 150 218 106 149 165 75 118 193 65 21 255 147 55 221 247 199 75 211 105 50 224 208 171 245 83 91 29 3 10 214 132 143 143 1 132 214 39 132 208 211 120 209 80 250 139 228 71 240 5 112 73 43 111 84 15 136 235 166 41 23 121 108 249 167 110 115 56 242 119 121 20 76 227 236 113 150 187 161 246 207 178 180 117 65 116 30 196 84 169 127 196 101 207 191 26 235 104 22 24 131 124 72 31 183 96 116 236 188 236 241 143 156 237 80 59 82 3 253 59 180 193 138 106 45 104 88 2 12 57 214 65 6 61 40 221 93 73 3 254 116 55 233 20 17 78 47 216 137 139 81 112 211 213 13 254 133 107 215 46 193 198 118 1 90 83 53 131 40 146 208 21 227 154 196 152 233 12 141 23 153 103 212 37 253 89 102 59 130 112 253 188 255 59 67 63 194 70 143 136 243 18 106 79 58 86 54 202 146 175 145 157 106 181 102 89 132 152 19 13 119 126 191 140 167 55 5 204 78 77 214 80 127 40 186 171 235 212 98 202 71 202 36 226 173 74 26 10 185 48 238 162 112 83 174 235 238 166 61 50 214 9 111 192 70 154 220 225 100 145 50 8 26 207 85 184 14 234 178 135 67 191 125 169 222 234 88 211 202 10 150 228 120 67 151 244 89 246 203 176 64 223 185 166 248 19 190 13 85 177 219 193 195 160 237 50 226 225 30 224 27 76 104 84 203 75 51 50 2 124 188 162 77 10 249 194 249 234 246 30 168 9 131 29 68 196 225 148 160 177 66 180 152 151 73 111 86 249 51 174 224 226 253 191 78 84 46 10 5 219 252 7 125 76 241 228 196 31 132 100 246 202 24 169 249 88 216 89 166 166 50 98 48 128 14 136 235 97 99 216 5 110 1 3 182 137 135 170 240 166 1 187 229 185 197 15 109 218 21 99 21 232 73 19 206 244 128 7 147 61 75 82 241 0 199 99 183 225 183 141 174 178 207 231 214 201 45 50 48 112 57 219 138 178 72 137 218 219 118 87 206 13 54 55 127 158 100 109 165 57 116 123 38 109 132 155 185 47)
#f
())
#(55
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(66 212 155 88 57 138 6 0 227 55 169 65 70 235 128 91 148 25 215 66 65 137 206 212 163 203 219 73 253 184 47 71 172 234 252 173 166 177 32 246 171 103 132 150 186 53 190 102 69 152 204 53 226 48 73 31 71 68 117 213 172 85 99 141 2 197 161 255 147 40 122 104 74 222 68 59 94 246 164 113 94 225 150 128 217 70 109 184 168 93 21 34 81 165 74 253 45 16 46 235 84 109 97 173 128 85 35 83 255 191 147 206 92 56 133 12 96 166 39 223 103 213 127 236 16 12 215 10 81 85 141 172 17 25 114 223 26 31 105 35 100 76 197 61 11 50 200 35 111 13 48 250 190 2 119 103 200 30 66 158 119 207 47 12 33 201 121 147 145 51 235 48 99 180 71 241 44 109 244 141 130 170 243 41 77 107 47 209 237 68 169 238 18 60 122 107 166 139 39 140 65 43 103 55 135 246 246 22 21 83 96 77 123 204 170 65 120 188 160 94 180 182 80 221 148 215 63 85 199 178 162 133 147 16 212 6 246 234 54 241 64 2 48 17 59 60 76 106 156 242 181 183 155 121 6 161 132 217 189 242 68 83 48 229 216 105 105 53 55 137 127 244 93 200 233 223 244 138 120 98 110 125 161 129 174 67 144 104 248 15 43 244 96 233 39 74 66 217 190 39 17 90 69 111 40 89 59 188 238 79 43 30 140 51 218 133 203 176 212 162 95 85 19 64 178 166 220 108 188 38 128 36 87 167 32 176 83 255 57 215 11 22 74 1 150 67 186 158 97 23 43 87 146 207 79 144 162 119 99 127 253 217 238 194 144 209 202 151 23 207 174 98 133 174 80 65 32 219 42 8 19 104 224 107 238 113 219 245 238 112 182 48 55 4 75 27 63 32 229 219 225 116 152 50 86 107 242 197 120 136 38 223 41 131 195 128 73 184 6 224 110 86 141 24 99 122 66 9 207 202 113 70 38 164 51 223 212 244 149 74 110 52 143 195 115 249 92 89 210 170 41 185 211 221 67 86 48 245 0 213 10 180 36 203 140 123 121 93 233 45 20 199 254 215 95 14 33 129 183 234 144 18 134 220 159 198 28 216 135 198 40 154 53 125 99 60 124 13 220 236 56 70 23 132 203 89 190 15 199 67 14 3)
#f
())
#(56
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(40 171 224 110 171 176 43 229 43 32 229 13 231 97 249 127 165 244 84 244 206 137 36 132 202 125 248 18 196 219 203 171 45 113 99 162 12 5 68 238 69 78 67 209 201 111 189 250 252 254 231 217 197 17 74 92 107 50 65 87 231 123 194 131 195 176 32 46 112 103 226 82 40 159 111 239 253 59 194 135 214 103 15 133 23 91 172 144 212 216 66 205 144 46 203 196 137 200 129 171 209 19 39 60 243 128 42 179 196 227 71 87 35 148 168 81 119 99 215 162 152 82 20 173 215 110 117 122 222 73 148 189 242 63 123 159 227 217 54 234 201 110 191 17 241 59 63 9 222 183 30 19 112 95 178 162 197 35 17 22 46 239 3 85 35 144 40 116 152 156 214 62 104 138 213 63 179 91 213 240 234 217 218 182 17 45 177 156 46 225 134 0 156 131 69 90 87 246 236 235 78 110 92 47 70 67 93 33 211 217 247 214 229 53 131 195 93 133 159 66 218 86 157 1 19 50 45 125 15 145 70 141 156 124 5 180 166 72 180 91 21 236 99 142 33 4 54 204 197 154 205 43 34 63 217 130 85 220 231 207 117 222 160 60 206 158 143 128 235 187 9 177 63 210 192 173 199 192 57 239 12 91 54 144 49 96 12 41 99 106 126 216 219 171 78 172 96 169 148 5 71 227 89 27 72 217 124 50 156 71 216 110 255 27 10 63 40 243 182 203 33 63 195 91 243 80 152 227 148 199 249 248 66 119 133 159 218 81 172 37 163 231 93 173 127 222 193 44 41 234 68 22 18 33 60 86 210 75 76 187 133 41 184 234 128 209 201 86 144 213 64 129 158 195 99 50 208 90 217 34 215 23 130 250 72 162 38 143 225 73 182 167 126 164 180 249 65 181 55 193 112 96 122 209 164 83 85 12 182 46 129 236 108 254 140 14 172 143 255 111 239 94 91 20 140 122 197 189 181 49 122 68 193 123 217 236 226 164 19 5 132 94 211 105 57 17 179 36 59 148 248 165 248 203 208 108 209 251 238 120 47 255 84 47 61 187 131 103 38 62 177 247 148 116 209 65 156 99 81 146 61 134 26 52 124 83 242 152 242 169 89 246 234 41 1 90 153 191 118 3 75 169 255 145 205 121 164 52 2 23 32 128)
#f
())
#(57
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(96 99 104 161 2 182 135 179 247 123 35 173 212 92 232 79 91 168 31 105 197 95 50 122 185 140 138 42 245 42 137 211 50 226 2 187 53 49 163 19 148 214 131 198 145 207 227 221 16 135 220 112 1 187 213 138 166 238 217 178 41 51 196 232 74 227 3 180 73 243 128 23 220 226 254 3 74 44 237 198 237 75 45 41 200 186 149 219 171 189 115 55 221 121 116 41 221 178 222 250 52 16 71 155 223 19 177 32 241 171 22 99 240 31 225 60 235 222 117 84 95 249 80 243 116 190 224 113 163 93 0 120 224 209 30 86 244 167 55 56 162 5 67 27 16 188 84 233 53 240 151 193 5 89 199 248 205 15 174 63 96 220 237 42 233 207 185 15 100 30 247 156 98 122 14 239 234 240 79 28 93 3 193 163 226 222 169 145 199 225 139 229 219 107 216 33 176 114 151 182 48 227 59 88 205 142 29 150 73 53 204 51 9 33 248 157 151 179 177 73 96 213 157 138 34 143 209 199 222 210 114 142 113 89 165 18 28 172 152 124 138 254 99 181 134 22 184 184 219 130 148 37 88 249 151 190 136 83 179 177 82 190 188 57 242 81 34 63 222 97 224 91 109 160 14 39 62 84 178 156 253 235 197 75 47 175 132 40 11 9 136 29 239 25 242 94 243 211 106 19 238 74 48 221 48 245 23 249 231 56 18 63 9 14 105 168 127 152 181 27 154 49 0 128 46 75 225 38 179 111 2 220 153 155 26 29 131 72 26 137 3 230 232 123 236 156 133 24 42 101 115 116 125 208 13 97 201 218 163 89 84 207 167 97 150 161 203 237 181 11 148 145 228 28 40 178 253 60 246 156 38 47 197 35 7 249 120 112 250 208 177 106 208 19 172 122 214 249 206 145 85 217 198 125 15 94 25 122 237 86 79 238 106 18 176 200 199 254 58 220 94 53 67 151 216 13 124 233 175 194 81 107 16 31 103 176 97 207 12 164 132 43 226 220 83 95 229 27 208 115 16 63 213 123 56 114 204 235 237 119 140 194 144 26 187 69 79 188 119 89 78 133 197 208 46 77 13 56 142 30 60 224 227 171 91 153 163 33 222 36 47 102 49 183 11 68 187 50 160 4 209 103 236 36 142 110 10 156 85 188 1 182)
#f
())
#(58
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(87 142 50 177 162 30 253 19 4 13 166 15 132 180 178 49 119 105 63 145 240 101 80 66 164 133 170 114 187 216 171 92 148 4 221 191 214 121 88 110 17 237 17 21 120 76 29 10 5 35 69 16 107 139 234 182 7 50 88 208 23 88 251 254 77 198 198 153 12 14 170 191 36 252 203 119 202 123 248 94 123 24 173 37 129 122 222 182 221 173 109 133 183 215 203 50 20 40 22 118 235 194 173 240 164 230 187 201 166 78 19 1 195 29 12 12 85 220 204 5 10 121 133 104 82 91 192 30 153 250 194 47 180 77 214 54 234 8 243 136 243 172 12 81 95 146 36 44 222 8 16 119 232 138 196 123 19 146 2 6 131 75 163 226 127 246 251 78 203 124 54 77 140 112 246 108 214 223 159 14 58 71 66 247 42 142 206 90 69 120 215 246 213 78 183 239 36 246 166 147 255 104 77 3 88 128 45 13 132 47 122 232 178 157 147 74 182 87 38 92 200 175 17 93 168 184 4 158 189 135 103 25 45 177 168 118 249 65 45 2 31 252 123 142 145 226 73 80 144 213 86 163 92 161 108 216 80 197 33 182 90 40 70 140 209 48 240 242 63 171 173 4 19 133 179 35 37 131 215 10 144 76 179 215 182 215 241 120 27 66 103 187 226 126 64 217 27 44 178 193 138 141 162 58 163 221 111 130 179 253 110 147 37 223 222 153 88 162 132 132 89 88 245 206 187 11 186 44 161 243 78 150 192 16 37 18 134 254 68 14 110 57 81 23 182 226 199 217 176 7 241 61 191 196 213 213 18 254 102 70 66 100 230 245 197 2 189 106 248 37 189 80 47 139 207 33 209 242 19 174 105 207 166 143 22 68 150 52 80 90 110 150 91 214 142 149 157 93 210 71 224 148 78 194 110 79 27 200 87 241 180 111 85 255 196 207 184 93 246 19 12 222 251 20 122 101 2 95 166 177 47 49 62 11 137 56 21 135 106 181 117 192 249 100 123 246 159 69 245 56 191 14 203 133 147 221 106 57 170 18 173 52 32 24 125 41 28 171 85 60 243 164 200 1 226 130 165 219 52 155 84 186 21 251 251 16 84 233 170 254 197 180 94 232 54 52 218 219 125 122 80 175 2 146 145 66 143 101 86 40 11 9)
#f
())
#(59
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(151 89 255 196 97 224 227 66 252 12 202 184 191 95 113 165 40 225 46 54 141 69 195 113 219 253 112 158 122 22 209 70 195 184 71 178 169 160 13 84 178 235 145 255 160 128 176 114 166 48 192 100 95 44 140 109 226 244 248 21 112 42 117 73 113 101 25 20 186 36 169 195 93 137 94 116 119 69 218 186 175 33 172 155 144 129 22 229 106 128 67 112 43 21 21 85 169 249 11 51 53 108 180 107 105 137 164 169 0 184 183 145 28 39 4 68 1 115 50 18 147 202 99 130 178 40 159 133 155 237 200 186 109 22 3 85 176 41 164 179 243 13 66 5 179 52 22 180 30 151 194 203 88 72 172 250 197 213 32 6 239 141 147 99 141 72 162 224 250 181 221 109 96 9 225 148 84 99 231 171 83 128 158 246 170 126 187 41 123 91 114 237 159 85 196 61 241 141 133 89 107 173 161 176 20 165 87 106 25 90 153 201 230 199 41 204 186 34 79 212 109 166 240 173 28 233 4 34 49 139 10 46 222 177 53 177 47 214 29 14 210 181 107 226 205 164 180 217 129 157 83 123 177 0 121 203 168 212 78 180 1 73 140 25 77 30 158 237 49 96 76 247 159 254 209 15 134 117 238 49 213 125 210 68 58 253 67 208 125 85 183 151 26 229 12 56 178 176 13 218 40 247 185 157 20 211 248 133 183 7 98 237 84 238 170 137 154 166 44 115 128 53 169 114 208 182 173 21 116 191 186 240 232 210 251 174 253 165 223 215 198 78 68 229 168 31 31 234 163 201 48 80 19 204 187 16 175 34 104 198 0 29 12 43 61 14 219 245 88 194 234 162 45 58 132 14 28 246 120 222 144 195 65 211 16 222 61 122 62 239 241 242 117 252 146 17 156 126 19 233 199 248 35 13 161 28 154 207 193 206 68 209 219 243 118 108 184 62 26 51 93 155 42 81 221 45 124 94 147 22 219 36 168 209 249 254 206 155 62 25 171 238 106 84 105 74 11 98 33 32 132 6 41 113 14 236 77 169 177 161 18 95 10 141 104 163 164 233 94 141 93 226 152 163 8 133 117 99 173 211 52 153 229 10 160 157 254 209 236 52 193 3 219 203 228 0 218 234 205 141 13 26 82 107 146 42 254 253 46 66 28 84)
#f
())
#(60
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(85 201 248 83 63 145 225 117 178 250 239 119 45 252 132 82 175 221 138 246 85 142 98 216 84 104 132 87 119 39 133 163 127 178 92 155 221 84 201 67 116 206 57 242 93 8 174 97 211 46 66 56 154 1 199 235 254 25 173 129 248 91 38 128 177 87 186 136 95 119 188 101 29 164 116 79 6 250 6 33 159 121 28 25 230 198 90 68 61 111 142 233 137 224 17 42 155 44 122 80 247 24 4 116 134 28 207 246 190 246 244 214 37 224 109 7 43 152 122 182 213 244 228 147 151 161 214 171 93 232 31 161 119 144 175 108 32 214 204 23 59 122 253 138 152 110 136 93 180 89 109 120 65 150 161 170 106 161 101 102 228 253 149 234 26 204 166 171 247 94 118 210 59 181 188 185 255 119 112 57 36 198 207 8 65 191 226 10 146 16 198 176 57 131 119 101 253 136 98 26 196 9 102 167 255 246 54 216 192 141 110 1 170 224 230 203 190 109 147 146 115 180 31 222 212 44 239 82 7 35 104 149 51 185 201 239 136 12 236 113 101 181 29 43 38 97 171 186 238 201 54 85 7 94 139 160 150 99 135 119 14 228 191 109 192 181 198 79 112 10 22 39 221 182 68 67 49 211 216 74 95 4 158 67 19 237 52 8 179 35 95 144 108 241 247 28 184 166 89 203 185 210 210 27 219 87 10 137 10 132 180 237 163 87 245 121 142 73 19 6 161 70 249 228 133 72 86 124 33 237 20 96 130 204 130 124 41 140 192 60 126 153 72 206 10 173 227 198 99 172 27 165 153 160 170 71 148 248 5 7 197 148 143 104 199 46 196 88 21 183 20 203 213 239 197 204 68 185 184 20 58 0 218 182 107 191 150 216 202 163 77 137 80 139 5 222 23 40 47 207 76 188 22 35 33 35 99 78 253 169 221 121 127 56 213 76 186 113 244 208 196 214 16 54 143 118 135 220 13 4 45 200 80 136 248 248 218 62 240 21 131 97 59 42 48 147 185 240 246 124 41 18 10 109 224 60 146 222 63 164 0 120 213 20 93 147 49 198 156 160 62 73 120 190 231 132 24 236 252 133 65 10 25 9 45 46 173 206 161 142 219 121 132 155 131 141 217 145 2 111 227 191 170 197 127 251 15 164 153 46 65 175)
#f
())
#(61
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(98 43 192 60 151 94 203 207 39 13 79 208 168 30 36 93 45 43 185 103 33 25 149 85 13 37 153 177 255 114 176 16 111 177 85 178 104 63 244 179 166 26 238 250 164 185 147 58 81 119 212 83 116 237 162 153 76 59 83 148 16 106 2 27 163 112 36 117 89 250 18 23 251 64 27 106 87 192 199 247 175 29 191 187 115 234 140 26 143 96 178 58 101 193 187 170 239 1 243 92 12 149 14 112 244 48 235 188 232 124 161 60 36 41 184 231 169 155 252 47 217 213 99 230 12 104 176 133 45 162 219 10 207 117 42 31 231 63 87 127 189 98 166 192 111 71 158 139 203 224 246 238 206 103 22 68 208 246 80 37 75 1 49 56 27 59 94 85 82 157 218 133 251 185 108 168 231 102 141 85 172 213 220 8 223 188 186 153 98 235 207 158 130 70 154 17 227 131 119 212 122 166 172 71 233 168 152 93 53 240 162 50 150 218 51 69 126 60 149 219 254 181 115 120 222 222 68 216 190 61 248 200 142 185 83 238 130 174 186 189 90 213 230 50 245 248 154 239 106 167 81 154 7 252 82 237 115 20 112 60 216 119 134 114 150 138 182 179 30 91 55 24 89 252 172 82 103 252 86 140 19 57 35 78 239 112 178 37 144 220 251 179 103 143 142 145 72 63 178 253 166 198 43 45 195 140 125 180 83 141 60 70 115 183 171 50 128 111 130 81 180 27 232 130 38 222 245 109 5 224 49 177 174 71 183 55 93 211 72 8 27 252 52 182 85 173 81 129 248 63 76 120 102 81 14 148 117 128 201 247 157 124 236 154 34 132 173 22 157 197 193 42 19 93 248 248 172 235 43 187 133 50 70 249 190 215 186 23 93 236 156 95 74 173 172 22 201 179 206 116 56 50 96 201 199 30 136 173 84 22 30 219 218 5 205 166 146 45 144 107 232 86 125 29 213 167 129 145 169 108 22 73 118 192 246 7 141 54 70 138 204 145 31 76 87 130 132 18 115 247 24 27 229 120 26 211 48 212 179 113 226 177 136 143 83 194 104 36 172 67 33 239 171 227 166 58 112 119 91 162 166 177 35 216 35 101 170 8 170 1 67 79 185 115 254 238 147 157 219 166 157 29 158 160 164 207 92 135 80 236 251 152)
#f
())
#(62
"including garbage"
#vu8(49 50 51 52 48 48)
#vu8(72 235 233 222 142 83 114 159 142 218 145 182 80 150 101 92 237 0 228 43 158 96 19 87 48 226 111 69 79 162 204 251 117 202 105 254 93 25 155 4 146 0 213 235 9 32 82 223 30 73 199 120 143 13 174 91 30 31 208 185 12 231 27 230 92 48 120 173 201 242 202 22 144 222 167 200 199 66 7 4 73 245 242 227 129 113 31 100 150 10 60 138 240 116 146 167 33 28 108 76 19 11 81 204 2 235 71 5 207 204 93 225 137 229 154 79 241 241 24 188 208 90 153 186 91 218 3 215 137 245 115 170 133 157 240 246 254 46 9 172 178 180 143 63 34 5 217 161 177 165 118 209 10 53 6 52 76 130 220 246 54 1 58 228 100 221 105 76 41 159 107 243 3 90 35 13 220 8 185 186 178 34 172 74 184 238 223 215 92 208 15 247 87 79 211 81 211 144 143 156 98 81 136 145 106 68 165 124 61 160 35 48 67 252 76 32 210 203 45 42 2 241 52 118 73 130 169 160 0 67 36 172 46 140 198 140 231 210 44 197 15 167 146 146 60 85 130 50 30 201 128 35 27 240 11 225 47 229 140 148 37 132 104 157 33 116 38 5 88 194 186 150 54 97 133 222 152 145 73 180 190 161 180 88 17 202 131 95 152 41 63 109 168 51 37 249 247 252 36 166 118 82 226 98 158 139 66 159 252 253 251 31 95 136 53 212 229 254 219 111 55 176 100 108 53 147 252 32 133 214 22 98 2 83 93 22 218 110 182 123 246 60 93 232 151 34 36 53 100 36 226 48 229 71 16 194 93 0 119 146 117 100 195 95 120 152 118 106 111 156 74 172 227 112 55 196 56 166 215 149 229 117 190 215 223 136 62 142 198 115 221 123 64 232 1 202 31 169 67 202 135 148 243 237 181 40 172 174 111 8 57 133 245 253 5 178 216 234 236 179 219 35 48 77 108 164 5 80 123 10 163 234 12 229 220 61 178 78 29 78 213 86 118 89 165 26 162 240 195 45 86 83 167 138 154 54 100 16 155 71 194 202 134 103 161 144 221 88 121 55 126 42 151 73 244 91 17 93 214 168 155 217 139 239 226 82 23 143 74 32 36 121 230 191 30 197 239 163 202 67 129 230 108 178 230 157 86 214 138 95 144 57)
#f
())
#(63
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(88 78 153 105 187 75 28 175 170 35 120 255 209 89 33 106 188 23 26 72 72 126 127 248 85 51 239 187 0 195 27 19 62 175 107 97 209 188 57 44 14 172 0 113 28 44 10 88 21 49 155 142 18 240 165 12 63 53 125 159 164 25 223 31 28 129 225 116 108 165 244 251 13 48 79 38 159 7 212 4 30 187 9 6 222 48 26 106 185 159 138 121 47 253 203 38 237 47 224 0 248 167 25 164 152 116 37 98 142 73 85 156 204 218 167 79 86 179 2 155 35 238 107 224 29 161 39 187 108 124 71 6 123 40 26 216 221 71 171 2 173 147 200 121 65 160 30 51 105 199 210 16 134 39 157 69 242 205 233 15 175 73 57 51 83 158 213 38 234 235 210 84 176 58 92 91 105 175 99 79 129 219 243 14 200 185 205 46 229 213 99 142 123 155 185 5 30 157 186 237 24 149 175 217 146 219 156 236 22 179 10 68 12 100 6 96 191 254 85 98 26 222 10 193 238 31 97 130 51 137 87 125 229 183 106 11 82 49 154 66 184 12 49 244 87 170 155 244 131 169 214 24 32 212 24 217 10 185 165 120 86 12 244 184 210 126 246 140 51 139 44 90 108 123 146 239 164 147 235 247 146 178 66 24 145 27 90 202 191 45 65 1 166 43 144 188 13 134 12 102 221 135 26 154 116 138 74 220 248 48 127 103 107 180 157 167 3 203 194 76 161 144 162 100 29 220 247 229 144 248 185 59 18 235 206 219 173 162 2 15 252 210 84 146 241 104 57 9 232 246 58 33 57 172 186 225 43 155 7 127 46 50 122 153 5 3 183 236 7 157 40 139 35 220 30 199 13 244 79 130 24 105 225 6 209 113 125 56 78 141 142 85 226 145 67 4 47 145 217 143 209 79 64 55 64 208 136 95 53 53 25 242 190 25 43 23 45 74 10 227 57 147 36 174 118 32 81 64 41 191 96 209 248 13 77 34 143 51 120 182 208 147 114 154 171 154 241 222 252 39 49 146 144 55 182 243 100 149 247 100 173 123 2 53 23 237 187 160 249 222 179 30 130 69 108 152 247 209 183 170 10 48 138 241 53 12 23 41 82 8 81 91 96 85 166 210 191 65 233 169 143 25 58 85 104 233 113 149 35 182 220 126)
#f
())
#(64
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(46 235 186 4 198 146 219 135 226 25 130 218 180 119 110 14 161 91 232 158 30 162 183 9 98 37 187 61 76 127 248 235 90 53 192 237 226 143 87 176 82 238 238 71 24 161 33 93 71 103 184 211 25 49 213 46 154 251 82 228 139 73 58 69 31 50 225 169 5 100 219 64 188 129 171 138 24 133 176 73 96 154 190 125 15 46 78 216 175 206 15 123 125 111 255 20 29 215 106 48 4 194 189 157 200 205 144 58 43 175 183 126 139 149 36 243 138 74 238 57 58 7 183 135 201 82 124 199 243 157 34 84 241 15 28 131 68 22 174 156 198 137 220 113 218 212 137 5 27 236 22 70 149 82 113 70 1 253 92 5 159 208 118 194 240 17 163 123 26 176 172 247 253 71 41 226 50 230 141 253 121 236 11 110 232 116 19 186 148 171 75 83 177 97 157 118 12 132 115 250 208 213 214 182 146 28 192 131 136 16 201 17 232 145 211 73 44 46 235 0 138 17 36 194 90 42 104 196 140 114 6 79 65 113 193 20 161 110 255 178 62 53 22 20 207 107 248 126 99 223 96 187 89 167 122 207 118 153 36 236 193 167 166 203 170 156 178 157 105 167 238 87 33 241 227 223 232 130 1 32 38 81 149 184 101 10 76 63 92 63 255 44 102 101 138 121 195 249 225 233 184 57 133 224 155 66 176 144 119 145 246 95 240 196 107 177 13 206 176 193 109 10 164 156 141 27 155 95 9 78 174 68 14 98 185 56 200 66 189 191 176 213 35 64 232 183 125 165 199 40 87 79 10 9 13 211 229 234 169 122 44 63 167 193 64 39 104 166 147 199 99 92 167 34 216 31 16 30 191 26 216 83 237 106 58 47 218 39 12 73 233 175 237 235 161 153 204 109 172 10 50 158 175 71 163 92 160 163 4 40 108 94 146 105 214 216 44 249 188 58 164 159 235 107 119 94 130 161 228 116 214 191 91 64 221 207 143 151 111 80 23 1 138 209 71 26 213 15 161 35 125 26 249 113 193 83 51 156 189 249 182 172 91 212 243 72 131 140 148 197 214 129 131 187 248 28 135 243 163 98 167 149 167 20 57 108 14 44 69 139 221 134 195 173 163 184 4 155 23 93 84 13 54 181 255 72 234 111 81 207 208 176)
#f
())
#(65
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(114 224 219 232 136 89 40 182 241 79 187 6 8 153 87 161 62 87 168 127 177 225 222 14 220 248 89 179 91 202 224 54 164 152 108 147 156 217 58 103 82 94 150 10 56 99 239 50 164 238 236 213 84 79 21 30 104 56 48 92 183 207 172 127 249 165 4 12 7 143 160 155 91 107 62 18 151 253 204 243 78 226 44 105 7 158 145 42 103 172 223 244 14 213 67 222 242 59 246 24 95 225 44 145 178 159 115 246 139 175 145 20 77 66 152 198 32 9 65 247 250 56 28 183 15 2 217 81 242 97 191 30 66 84 62 184 42 147 233 76 80 201 85 233 13 79 167 3 23 177 208 214 214 171 119 26 106 70 99 160 138 107 34 36 143 133 94 176 100 54 79 183 249 109 117 94 166 45 235 197 246 182 240 142 96 36 194 33 235 89 148 101 255 174 157 219 176 219 31 154 129 246 225 64 178 74 54 191 22 212 192 41 8 175 37 71 141 29 94 143 53 194 251 8 131 67 203 81 169 40 13 250 93 7 149 149 124 246 44 161 212 197 18 137 230 76 123 20 206 23 140 166 206 11 170 182 118 198 41 243 99 212 166 255 143 184 57 90 31 191 232 93 61 225 144 37 45 5 142 43 229 241 220 63 138 153 41 213 206 226 50 12 240 148 90 130 190 94 100 155 131 232 237 227 163 176 26 24 37 154 91 90 252 55 124 54 162 176 56 229 254 89 4 101 22 25 228 112 160 131 218 6 158 251 210 220 166 114 92 146 243 79 87 77 127 93 70 116 83 241 128 43 151 2 17 240 65 202 247 129 57 164 31 103 29 117 0 177 230 101 152 148 180 205 125 26 240 78 109 122 63 198 53 148 48 212 104 2 96 205 191 207 196 157 70 216 255 24 1 235 111 40 179 44 28 196 39 135 80 82 147 40 209 10 222 221 121 46 99 151 32 155 208 206 109 176 201 101 223 2 158 184 53 188 211 181 102 27 8 58 75 70 185 97 101 37 218 127 87 131 121 58 197 226 44 10 88 243 67 170 123 17 192 92 78 208 57 225 154 7 37 73 227 27 203 198 187 95 104 137 211 194 142 206 127 9 27 106 190 127 165 162 217 82 217 172 36 8 18 123 196 107 119 59 77 237 235 120 231 107 220 253)
#f
())
#(66
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(27 216 142 174 223 184 109 47 17 217 219 57 208 17 180 192 1 162 10 114 101 69 204 165 85 223 155 59 164 111 3 45 255 90 37 159 171 124 202 178 3 165 15 170 222 77 176 147 2 165 221 59 177 240 216 84 217 107 170 71 231 78 89 212 46 84 185 68 9 162 203 99 170 193 154 162 198 1 212 152 33 199 160 207 229 246 18 252 0 181 172 57 99 177 146 152 189 74 0 235 62 184 22 157 6 178 196 171 124 239 30 62 53 4 171 71 80 218 153 80 25 207 231 96 237 151 111 124 153 109 244 163 83 251 17 119 18 26 123 61 97 101 208 143 111 223 231 87 22 192 49 244 149 114 194 178 152 26 119 1 128 114 58 98 189 51 125 106 137 22 68 124 194 87 24 193 158 97 18 43 50 173 164 10 57 72 209 220 18 184 162 148 12 177 98 69 51 14 114 30 37 25 85 243 212 140 127 251 141 13 186 41 197 82 39 15 93 89 113 251 195 4 114 155 123 12 228 5 236 239 30 56 212 42 56 35 234 39 203 23 126 133 232 218 25 109 138 7 202 154 16 95 78 111 252 74 133 125 154 58 3 202 207 160 151 211 222 104 178 148 141 194 155 25 207 251 132 125 15 30 190 212 117 45 79 49 105 127 163 173 172 239 22 236 169 1 250 5 142 253 199 167 3 56 189 21 65 232 81 0 153 22 207 73 183 155 89 48 16 152 110 64 66 247 133 91 12 90 74 63 163 49 32 158 70 170 44 126 111 31 24 14 196 225 234 106 129 252 236 37 187 44 127 33 42 196 167 171 35 204 218 202 248 26 200 84 215 130 106 181 28 201 145 161 203 96 47 19 224 3 154 186 205 206 46 86 92 135 9 244 238 35 234 59 59 35 24 106 247 86 0 80 103 110 144 85 144 250 159 107 64 240 184 116 251 234 255 106 70 113 99 165 12 193 51 158 22 247 155 220 191 11 22 112 254 177 223 252 60 248 103 49 40 97 5 58 41 8 237 146 190 48 237 189 26 193 179 55 108 95 231 240 94 39 245 109 114 176 142 120 19 197 151 213 140 227 104 28 251 249 67 206 8 109 185 48 248 44 240 203 107 19 17 105 205 184 197 123 238 19 13 48 236 162 222 236 20 220 12 243 177 116)
#f
())
#(67
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(87 176 62 73 33 205 199 57 130 222 116 141 148 235 89 64 144 233 152 206 74 229 32 203 128 27 136 26 91 111 249 131 10 40 180 65 158 123 48 89 233 25 188 11 39 165 208 32 80 111 45 176 44 80 75 112 41 170 33 168 190 138 34 92 169 172 201 71 41 18 208 3 72 49 63 232 86 237 3 45 250 40 20 216 141 121 37 193 249 233 85 232 255 79 209 117 185 110 143 172 122 92 109 116 155 182 128 115 223 29 182 221 75 84 185 207 135 149 131 121 227 39 234 149 194 182 138 63 168 189 58 234 8 195 77 130 216 42 196 228 37 250 194 117 98 13 41 112 77 61 99 106 95 97 83 180 177 6 149 175 131 30 105 77 209 27 177 127 114 220 246 231 45 128 125 123 135 107 203 165 126 73 4 2 151 164 23 24 63 146 130 124 68 159 193 171 22 47 199 101 32 167 79 3 201 121 81 111 44 228 110 46 37 208 119 68 237 147 132 138 43 222 190 85 237 205 151 138 199 36 157 10 97 206 191 241 175 70 17 161 99 184 16 194 145 64 201 63 5 120 27 97 63 176 70 216 115 2 171 107 185 236 104 97 44 110 97 72 25 132 240 158 179 181 122 128 134 110 112 133 222 182 97 48 210 74 167 75 201 217 180 77 123 217 62 151 156 80 38 91 170 154 37 40 233 140 212 38 104 8 79 12 109 148 211 116 10 175 85 182 97 131 210 184 153 128 141 65 142 177 142 20 144 199 250 18 36 200 112 217 35 110 104 238 7 17 145 223 252 8 74 101 144 235 250 247 213 75 205 44 127 20 102 15 115 253 213 126 131 57 175 100 202 207 21 144 129 187 75 162 161 88 176 194 228 121 94 161 64 56 62 74 14 218 246 18 103 33 103 9 25 187 163 251 65 180 239 240 112 96 141 54 76 15 205 241 124 152 57 56 98 77 46 183 36 74 67 138 96 90 135 164 83 116 221 198 165 136 106 85 80 229 226 67 10 41 185 86 170 36 242 162 23 147 122 201 108 175 85 72 141 155 255 153 86 244 29 252 0 240 23 185 181 63 242 172 119 230 148 71 255 83 208 33 23 69 240 233 249 25 81 230 240 177 72 240 72 143 136 247 9 6 196 96 107 71 166 230 73 11 232 104)
#f
())
#(68
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(182 127 74 146 21 31 137 89 248 123 140 2 239 125 252 171 42 52 240 209 133 67 43 39 117 135 224 111 209 77 0 245 128 246 100 83 255 75 249 232 44 250 79 211 153 254 248 153 248 104 213 115 180 223 199 91 27 83 122 61 137 158 128 100 129 20 23 181 223 87 224 47 137 9 182 250 69 170 244 7 147 167 179 234 59 199 148 30 120 92 212 126 56 201 65 211 181 151 111 202 225 150 230 68 134 70 235 125 49 16 189 222 39 25 61 206 154 25 145 55 179 51 116 57 11 182 97 144 150 210 25 113 57 129 203 193 153 235 66 125 231 58 113 95 30 99 229 156 81 44 116 211 134 182 12 167 22 187 150 100 101 38 68 83 100 32 93 189 16 46 5 239 83 213 82 255 41 54 3 85 77 226 25 158 71 14 156 93 177 138 168 133 239 193 103 113 190 27 74 243 142 246 161 208 130 130 85 74 253 95 202 79 114 130 219 176 113 116 132 55 120 174 245 44 112 80 58 151 184 242 154 204 114 202 155 236 218 27 243 94 246 136 140 80 144 92 196 157 151 71 204 36 78 179 240 35 216 34 233 119 238 244 62 76 190 169 25 147 160 249 201 105 138 180 91 33 242 204 100 8 165 90 163 112 102 44 192 230 35 138 44 24 247 124 179 219 105 152 40 188 233 183 167 130 181 68 143 221 12 31 156 209 133 68 56 111 134 58 208 117 49 56 91 154 43 86 25 103 47 112 111 34 238 61 201 162 6 88 23 131 71 19 94 157 34 241 65 192 183 89 195 146 106 216 220 217 40 58 25 199 119 145 50 74 148 249 32 13 83 224 231 222 64 255 245 68 148 128 53 89 176 215 47 91 184 248 167 144 60 133 134 200 225 121 161 120 124 134 83 188 84 163 209 254 241 223 188 200 230 247 239 212 96 229 178 85 231 89 85 27 33 221 114 212 198 138 115 190 143 126 94 126 185 76 243 121 13 10 165 162 64 110 83 230 123 76 211 43 202 93 87 180 99 130 20 65 183 212 254 255 164 137 74 43 26 29 178 101 103 37 96 81 210 241 149 181 248 231 172 103 103 6 120 128 147 178 34 229 97 116 85 164 171 69 242 145 237 35 130 241 41 24 164 4 74 80 37 152 210 59 22 109)
#f
())
#(69
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(198 149 3 190 151 69 254 173 48 180 252 125 206 8 216 198 160 23 135 84 161 95 128 93 174 69 95 254 143 51 38 33 5 1 117 2 35 95 138 178 92 19 214 59 66 112 61 159 220 39 43 234 244 249 85 63 98 131 34 3 220 29 69 145 93 100 3 36 150 116 158 237 36 75 121 133 128 227 194 89 76 12 243 209 0 233 198 0 145 45 173 93 119 119 8 176 168 131 73 11 40 229 146 44 96 97 69 143 87 115 14 234 156 107 97 198 198 50 90 124 70 67 91 54 38 204 157 125 51 20 46 247 85 81 161 46 100 75 80 17 92 79 236 168 61 105 64 100 130 176 215 212 229 173 232 204 131 69 87 93 97 205 124 180 233 189 210 239 160 125 44 153 142 42 28 32 91 84 68 92 205 166 213 74 136 94 234 233 254 163 254 111 222 171 140 154 213 132 18 203 221 42 58 228 184 41 11 199 146 191 100 167 243 111 133 116 242 42 200 131 154 124 79 166 140 35 215 190 200 99 140 8 204 123 80 31 240 101 43 39 36 66 184 150 146 165 171 114 64 80 173 216 203 249 178 41 245 14 117 255 184 139 7 194 159 49 147 209 201 11 244 151 59 163 54 247 11 6 131 2 2 234 13 198 159 169 101 244 187 5 191 207 156 30 137 109 200 50 200 212 253 201 130 66 239 38 236 114 223 49 29 1 26 122 235 248 80 239 226 118 250 252 126 190 59 125 224 32 134 62 156 161 163 188 228 35 48 47 71 72 123 23 226 76 233 48 93 152 189 34 34 210 116 4 234 138 45 37 198 136 200 93 6 64 217 108 5 161 194 180 156 226 122 187 183 255 8 149 179 250 117 163 214 73 162 225 72 114 162 145 144 4 246 161 168 51 184 161 92 169 29 176 141 90 98 97 246 63 195 192 205 142 149 170 247 140 50 141 96 64 155 219 202 215 65 201 133 137 36 168 68 174 85 168 14 30 206 158 149 5 171 143 48 29 155 138 182 165 212 159 144 252 70 192 158 234 13 59 14 247 88 101 54 113 45 198 149 178 177 5 56 128 191 98 130 52 64 152 214 101 138 148 249 210 200 29 147 28 209 211 84 65 229 127 28 36 216 81 80 172 55 178 40 0 51 241 107 205 161 196 248 108)
#f
())
#(70
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(114 121 152 212 161 114 206 208 236 44 182 210 212 159 118 104 55 193 223 206 255 159 189 53 223 233 227 87 164 185 177 67 196 213 58 130 20 163 144 0 70 123 200 200 139 179 88 38 51 212 113 253 236 197 140 3 59 243 246 106 41 184 147 207 79 103 119 245 136 65 228 103 184 76 21 194 197 0 126 12 50 43 10 81 119 148 144 186 209 52 233 5 232 59 185 12 19 162 240 66 83 49 185 113 151 214 72 95 44 76 83 78 50 98 247 141 189 165 165 173 174 99 144 21 4 250 232 109 37 171 87 154 168 177 163 242 69 29 27 138 2 194 216 31 66 86 137 195 76 201 171 184 208 53 192 172 173 80 242 209 102 197 141 31 203 117 194 81 97 94 72 116 26 56 131 29 168 18 77 130 27 42 54 158 187 247 192 108 197 250 44 120 149 6 64 39 70 117 209 172 56 83 8 20 196 176 100 47 188 137 95 150 107 215 188 22 72 245 38 166 17 169 121 223 64 54 114 178 157 55 120 98 129 49 29 157 83 122 159 175 116 2 11 138 240 61 244 190 165 144 70 63 49 170 155 90 173 108 96 38 66 208 18 182 94 183 1 34 164 14 147 172 5 157 37 198 247 173 228 60 161 37 123 191 209 123 41 177 202 193 171 70 172 168 82 19 201 57 158 159 60 43 206 37 185 112 156 165 45 155 226 152 144 164 9 9 14 141 67 86 174 184 87 81 195 168 216 90 111 73 228 152 170 99 228 143 111 160 135 84 113 26 226 232 73 221 160 167 132 178 158 211 159 188 146 204 84 194 2 123 41 18 87 45 160 36 45 72 12 45 240 163 71 202 104 244 67 84 5 193 79 222 126 7 171 97 134 9 36 252 158 47 11 18 58 125 29 201 80 92 249 33 158 226 229 252 14 58 64 36 12 185 57 143 213 88 59 72 151 24 66 229 114 39 173 245 9 39 199 178 206 6 252 82 0 121 32 88 42 127 236 242 165 132 142 138 175 68 190 31 223 1 179 158 131 63 226 230 135 65 9 21 77 50 26 0 33 140 55 227 104 194 205 175 43 247 67 251 199 36 178 212 221 247 114 183 220 181 192 245 10 234 236 202 158 3 81 185 59 225 38 255 79 134 83 223 96 162 23 101 199 28)
#f
())
#(71
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(10 12 245 245 12 189 253 5 113 199 85 121 218 80 187 232 60 15 146 241 84 83 74 213 104 42 94 75 94 167 218 31 11 105 103 204 192 226 40 208 58 2 50 144 20 147 149 68 81 113 60 118 218 245 183 165 80 196 42 214 233 220 174 221 66 198 33 44 32 6 91 9 178 190 155 187 109 132 121 186 192 3 147 174 0 200 35 19 239 198 253 61 227 227 228 131 85 226 50 190 98 200 154 199 64 119 202 193 251 131 220 115 21 114 61 135 156 146 130 5 110 245 59 46 189 37 112 181 23 196 152 245 135 235 35 183 193 216 76 250 122 175 254 72 57 216 202 57 172 175 33 86 66 94 164 145 52 180 29 72 36 52 123 188 223 119 152 247 213 96 9 232 222 245 69 15 149 25 227 82 14 149 99 87 241 26 191 54 64 119 194 135 236 36 158 84 129 7 87 48 11 217 181 196 181 37 169 152 177 146 71 212 19 1 191 227 240 30 248 147 86 167 50 45 11 62 255 160 140 123 108 153 97 148 174 107 21 74 179 58 151 185 179 85 35 49 78 95 92 139 193 48 254 37 4 254 8 49 100 73 244 109 236 132 83 149 237 211 137 238 86 114 181 232 227 54 11 197 74 108 69 208 43 4 21 14 134 246 149 175 182 83 126 109 16 0 248 231 198 92 192 162 250 31 220 216 248 35 229 216 217 114 169 159 173 134 75 154 116 35 208 110 141 79 84 33 228 57 213 78 61 37 14 128 127 221 222 205 182 87 5 217 142 2 0 2 110 29 70 174 148 97 83 67 97 202 65 246 198 142 18 105 146 177 119 217 105 46 204 124 119 166 141 240 159 199 65 89 211 130 233 148 59 168 90 98 130 95 112 14 163 200 1 12 56 94 31 178 244 194 209 117 92 84 202 251 168 38 5 92 10 77 42 43 219 32 147 224 184 246 253 0 157 68 139 9 128 107 164 163 113 73 55 195 154 35 55 14 153 249 107 210 147 175 72 102 116 215 70 250 170 231 107 221 245 110 67 241 160 33 140 166 72 145 208 203 26 216 19 14 168 1 86 163 44 8 115 189 161 47 55 42 229 140 220 39 102 190 213 61 194 125 129 231 241 100 135 235 234 70 137 56 24 180 52 199 201 173 78 26 96 221)
#f
())
#(72
"including undefined tags"
#vu8(49 50 51 52 48 48)
#vu8(90 166 90 24 51 44 43 81 91 183 12 151 5 155 222 108 108 254 242 107 156 125 135 69 117 220 47 218 187 209 23 97 153 178 8 195 204 236 6 191 82 50 74 12 241 50 34 173 211 182 80 17 191 84 51 142 19 155 145 96 47 175 222 41 208 29 241 9 84 12 5 119 134 162 10 33 18 131 189 135 176 81 205 12 34 108 198 213 83 144 72 169 98 33 5 55 157 176 21 50 108 187 193 53 61 161 238 69 117 181 99 87 132 198 125 217 254 46 70 74 148 159 132 249 146 111 113 2 249 43 42 49 9 167 119 133 160 84 22 172 22 33 121 171 62 164 66 87 85 198 28 95 224 76 251 247 53 49 132 21 203 23 244 92 144 248 107 58 199 17 38 152 160 239 233 233 3 252 129 111 240 136 23 230 45 100 84 55 53 151 129 9 142 250 155 52 192 36 107 59 244 62 16 35 61 85 179 52 206 209 217 165 144 253 221 17 144 185 234 165 104 85 244 100 216 21 42 113 238 169 220 78 154 130 240 33 71 43 132 243 75 72 251 65 138 148 25 149 222 215 5 41 20 154 204 132 213 8 128 168 55 14 0 247 201 129 123 134 202 141 88 153 31 213 23 227 209 18 60 212 110 69 156 19 250 27 7 212 44 100 227 46 24 85 34 87 57 180 162 157 40 224 197 80 219 32 128 209 228 20 81 251 30 170 85 203 105 199 215 238 6 119 32 27 255 132 28 224 213 146 119 176 157 170 145 170 174 4 44 167 48 210 232 53 55 29 110 21 81 199 47 221 224 70 97 136 39 138 101 17 120 199 105 118 156 76 94 131 247 180 146 188 1 201 77 234 41 6 220 239 228 132 115 218 110 0 180 120 35 238 20 64 175 119 240 88 176 179 197 55 135 242 106 193 135 156 160 234 15 213 251 77 222 114 204 71 242 47 160 137 123 142 187 13 89 65 99 32 27 109 30 86 92 106 144 112 171 180 37 103 246 95 93 37 43 27 165 55 196 150 178 104 142 29 200 100 207 251 136 99 114 126 83 17 218 170 14 197 67 151 215 37 182 253 136 197 241 12 118 221 72 120 168 152 29 134 67 88 209 103 100 216 41 21 6 76 29 241 209 78 223 192 33 127 241 58 54 125 140 150 52 239)
#f
())
#(73
"truncated length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(137 1 223 211 248 127 10 136 189 100 166 220 160 63 155 145 67 193 37 88 131 141 124 78 142 142 118 131 240 165 254 77 137 166 233 40 152 174 101 61 125 84 255 84 243 136 241 254 107 61 113 153 97 153 147 255 251 191 35 154 70 187 215 101 115 117 42 32 254 100 90 189 103 133 105 128 197 65 172 112 202 176 246 27 240 141 53 35 13 28 61 172 5 210 161 9 202 54 149 186 196 82 95 218 83 91 175 54 38 56 86 253 80 96 249 92 159 219 216 76 35 243 127 200 240 13 156 84 93 73 30 51 192 86 177 132 75 104 202 251 61 56 5 99 169 210 75 251 133 207 184 113 200 21 34 207 112 175 226 216 114 213 207 152 253 133 122 187 104 225 65 68 101 26 252 181 45 58 237 108 175 188 248 71 61 99 170 55 115 44 61 106 192 68 57 224 189 235 135 8 117 141 187 174 244 7 38 115 60 101 160 113 69 131 174 151 233 214 28 125 89 252 3 205 90 142 224 32 27 241 226 12 117 196 211 165 95 124 149 155 110 107 55 22 138 94 213 39 213 13 122 180 49 42 179 180 178 10 87 232 212 225 57 58 187 119 189 137 139 254 67 56 84 119 133 5 128 164 97 166 99 245 255 88 124 103 179 63 44 117 16 131 61 227 140 44 246 24 142 82 230 65 72 132 209 1 49 254 102 192 87 108 208 247 134 160 126 196 117 144 215 119 169 204 202 155 84 42 237 180 153 93 167 88 120 199 229 102 5 57 101 56 151 42 191 24 33 72 172 194 111 123 47 123 152 18 192 158 252 199 21 15 49 230 97 170 214 19 106 97 72 117 122 42 6 102 24 33 132 139 46 224 187 220 193 88 254 13 112 99 167 205 126 101 165 25 160 233 121 80 201 207 226 162 85 10 161 165 104 176 206 166 46 22 169 249 109 117 212 158 75 13 176 169 230 4 29 231 83 220 235 177 21 47 81 184 20 11 195 229 103 193 250 192 165 179 127 217 186 145 204 222 155 184 201 214 218 43 130 242 45 16 19 126 120 222 36 253 46 187 122 114 13 85 205 245 232 55 94 60 249 3 174 233 7 186 83 13 149 60 82 242 54 181 84 17 192 130 252 149 107 22 163 26 50 29 113 74 103 232 42 25)
#f
())
#(74
"truncated length of sequence"
#vu8(49 50 51 52 48 48)
#vu8(151 126 14 109 13 33 83 195 74 48 23 138 243 251 153 239 185 237 183 103 153 255 11 22 105 189 14 234 91 94 135 21 14 132 229 49 58 146 30 7 65 8 204 42 230 203 204 198 239 14 2 25 175 79 34 106 62 158 87 240 161 98 237 32 159 239 253 90 137 230 87 22 72 107 207 93 106 121 191 146 110 223 172 218 11 244 9 23 70 52 95 223 167 214 136 175 249 13 155 53 112 24 95 102 77 148 229 33 107 190 13 230 20 52 128 215 5 26 54 48 110 217 149 153 99 30 251 106 145 110 97 207 73 160 61 16 170 226 49 127 117 143 28 77 28 70 9 126 22 26 76 207 125 16 41 180 119 134 69 213 207 94 141 2 38 129 219 98 255 21 195 133 67 73 114 125 127 101 223 156 210 79 92 172 230 252 15 177 49 87 17 68 210 72 102 190 85 9 51 47 199 124 56 35 119 147 64 201 86 55 160 3 165 73 179 168 225 233 13 138 53 2 228 44 195 85 57 19 113 176 153 70 162 39 72 97 165 88 217 13 207 161 46 16 33 204 27 152 233 103 150 38 79 123 186 229 246 163 8 13 220 73 138 142 129 14 17 44 230 182 186 207 175 200 50 110 146 149 102 24 136 110 45 61 64 129 165 67 57 200 149 128 93 146 66 183 20 111 99 90 246 193 241 122 225 149 95 127 228 159 69 177 72 182 95 167 198 22 207 72 181 98 125 233 240 140 96 149 117 236 69 129 240 6 47 20 118 7 107 53 145 69 133 115 37 209 156 12 34 195 12 236 207 5 93 189 222 155 86 42 26 220 186 206 239 132 41 164 79 98 251 143 36 165 18 214 238 112 73 155 195 146 31 112 131 27 87 161 93 122 60 2 59 24 182 254 189 229 129 215 237 93 63 45 88 122 74 240 163 237 31 135 190 2 122 28 183 204 23 23 86 177 112 166 90 231 161 250 77 168 50 223 252 247 239 189 55 203 212 217 135 80 212 55 55 124 174 32 156 81 192 73 251 193 102 227 129 212 248 121 204 80 165 220 59 49 191 125 105 60 13 97 49 113 238 175 158 37 114 38 114 54 176 139 101 94 74 6 136 38 48 13 125 146 211 112 188 52 129 36 230 63 139 135 31 186 176 178 216 83 3 179)
#f
())
#(75
"using composition with indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(169 28 86 223 76 163 0 182 56 197 5 119 27 247 185 172 62 248 102 239 155 22 151 158 160 229 246 145 245 201 27 136 107 180 227 84 11 226 235 60 93 250 122 110 193 28 81 58 98 3 103 102 220 207 80 163 108 5 138 157 6 219 238 100 12 8 48 190 243 229 7 71 173 125 233 221 169 129 3 9 133 107 203 99 64 67 176 144 123 125 215 15 80 244 155 143 163 94 33 129 196 167 211 134 116 38 57 240 73 167 88 176 94 138 102 181 244 23 86 144 157 141 122 252 49 246 62 180 176 58 52 110 58 121 211 236 34 255 206 165 192 22 50 100 30 70 156 68 25 81 118 94 175 65 192 159 92 125 236 16 247 170 14 234 133 203 153 20 40 196 150 182 120 128 179 235 175 19 57 120 120 175 2 100 164 39 107 8 216 94 174 19 21 83 198 234 205 160 92 92 206 52 237 231 229 36 132 39 227 144 175 132 52 229 103 168 148 26 174 196 237 87 4 157 247 153 150 222 44 243 53 91 123 22 83 30 11 239 122 179 163 215 21 234 239 111 177 157 94 3 199 85 203 249 220 209 161 216 234 117 108 108 117 223 128 128 150 58 155 251 220 219 85 26 83 167 244 174 20 217 70 157 147 249 42 138 80 154 104 126 150 236 86 113 118 191 44 7 102 240 58 153 71 84 83 2 183 80 216 144 27 235 135 172 200 59 110 179 88 252 27 130 19 135 65 181 211 58 170 123 97 134 169 111 120 242 141 30 131 170 183 25 182 243 131 250 46 86 6 45 204 80 170 253 186 199 135 124 232 194 205 121 78 114 208 126 107 16 85 94 6 236 222 176 58 211 222 143 69 166 91 74 101 78 163 221 160 200 190 218 177 127 245 87 104 234 69 177 124 246 110 217 192 12 129 86 186 134 197 206 2 40 212 229 153 107 2 104 243 225 156 117 241 76 52 163 50 120 8 1 94 70 203 52 126 137 46 136 66 159 255 234 101 178 149 238 253 0 126 231 123 83 63 162 190 36 90 240 190 232 241 117 182 23 12 59 157 133 202 176 44 64 209 92 106 235 118 81 195 37 202 235 168 251 23 191 23 123 56 208 160 106 187 218 112 48 255 244 150 156 17 186 230 141 0 39 167 155 218 225 243 64)
#f
())
#(76
"using composition with indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(86 60 204 15 116 188 60 107 209 42 243 191 160 162 144 36 75 192 23 163 182 196 82 235 149 49 144 111 90 176 146 34 45 197 238 223 176 107 18 156 207 30 239 241 109 95 58 36 27 230 43 103 16 152 57 54 97 221 248 141 30 247 81 229 204 70 217 1 24 51 73 97 235 152 155 140 111 28 56 248 6 254 99 108 31 140 25 97 96 75 156 179 244 39 93 82 11 127 3 123 76 108 120 204 49 98 214 207 60 170 88 154 243 31 119 168 237 174 20 137 186 134 162 179 102 82 168 74 134 30 52 244 128 120 63 241 11 179 201 209 189 7 148 171 203 119 183 133 169 210 20 234 233 6 165 30 45 101 253 48 239 114 43 188 104 127 232 235 67 223 52 127 158 222 32 76 236 165 63 126 233 82 91 84 152 208 66 51 223 6 99 23 6 172 246 83 56 168 140 220 185 32 22 7 174 111 113 248 48 101 61 110 61 50 10 54 34 72 97 126 186 177 0 198 69 13 216 140 187 1 198 227 189 193 131 184 133 30 44 210 120 14 189 172 233 110 184 141 44 86 114 178 141 158 119 221 249 20 107 108 161 124 174 234 203 71 40 64 208 233 101 160 56 224 142 67 123 15 138 20 2 53 107 214 48 90 170 169 207 184 254 161 40 47 235 16 60 243 226 1 66 89 81 63 31 67 49 106 86 16 215 103 57 142 202 24 207 59 207 251 177 174 23 157 243 90 212 52 45 137 186 215 65 219 108 242 240 251 203 8 173 133 122 115 141 48 108 101 30 111 126 218 63 157 14 238 214 230 209 29 242 192 57 139 45 62 12 186 89 111 161 137 24 114 2 28 127 190 108 153 224 237 84 95 20 123 9 51 151 178 114 119 86 241 160 38 10 80 252 202 181 172 23 203 162 146 108 235 52 149 161 29 184 241 83 123 163 83 13 13 66 134 68 174 135 33 198 123 175 135 189 39 136 251 222 135 199 201 7 134 12 39 112 48 211 20 26 101 197 125 240 37 85 30 207 56 92 18 218 116 110 199 181 148 48 91 237 4 33 4 146 39 81 238 222 25 61 252 158 28 159 180 120 91 252 98 35 40 189 252 86 7 221 33 166 129 122 190 76 148 31 47 251 99 101 127 135 151 227 200 73 115)
#f
())
#(77
"using composition with indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(42 116 57 243 13 141 70 0 186 85 63 145 0 178 106 44 88 97 213 213 16 100 16 179 105 185 72 1 194 98 209 36 162 98 251 23 180 72 188 20 17 79 29 213 194 76 54 224 213 82 140 77 97 112 147 223 147 78 5 35 244 173 170 78 38 44 47 161 207 229 157 178 245 19 54 198 39 188 46 42 17 179 2 43 223 252 100 157 232 105 10 162 47 182 185 111 144 247 87 61 15 226 63 246 93 149 200 18 116 84 58 1 234 101 71 40 197 123 100 199 23 240 118 123 128 7 52 170 132 175 128 95 218 242 208 73 70 48 60 128 40 106 72 123 72 99 139 137 114 228 157 65 45 53 27 145 1 188 67 93 172 112 242 140 120 220 29 121 152 110 154 141 214 75 203 17 200 251 62 144 210 192 54 197 183 77 34 21 123 225 94 225 186 41 27 151 96 96 87 165 146 107 132 238 225 63 255 179 200 186 36 95 21 61 71 180 141 131 104 40 215 26 91 204 2 255 177 47 167 202 102 181 118 210 215 111 56 100 53 2 196 229 41 96 95 131 59 29 10 243 188 122 88 242 11 95 171 230 61 227 153 105 59 114 139 59 53 219 38 221 213 47 98 191 98 104 197 2 205 255 232 131 232 72 95 74 124 96 228 56 225 187 132 7 12 122 219 224 33 166 56 9 137 167 107 114 250 186 87 109 32 196 51 56 121 112 14 81 66 82 37 137 221 44 73 229 57 183 212 159 18 147 99 75 24 245 148 211 248 16 102 135 4 156 212 9 63 68 45 52 101 78 130 242 11 184 196 178 82 40 124 218 77 158 105 34 62 34 233 90 113 122 165 0 139 253 35 46 197 226 184 92 146 236 9 60 110 193 106 123 4 58 165 168 108 19 106 56 220 157 28 127 171 174 227 175 159 27 119 250 79 69 23 197 150 177 41 216 254 164 2 200 86 240 65 175 95 152 210 53 236 242 230 137 71 152 168 87 250 62 41 90 74 99 196 213 215 213 165 211 253 100 82 119 92 245 18 171 75 190 115 85 247 27 229 192 116 73 224 168 52 91 214 195 150 10 153 156 60 60 230 104 16 113 245 7 143 51 22 25 169 245 40 62 1 209 132 120 43 126 19 147 200 41 29 12 64 144 148 212 91 132)
#f
())
#(78
"using composition with indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(82 118 166 250 184 139 212 1 180 81 239 245 209 166 105 196 5 34 94 144 69 5 132 197 214 210 228 192 95 113 82 73 144 13 16 103 159 213 141 115 109 234 236 28 194 107 16 0 214 208 230 10 254 55 73 129 121 13 200 80 175 12 226 45 30 81 148 102 5 120 62 55 232 162 232 153 166 7 250 37 81 250 118 234 155 32 120 11 146 233 178 99 190 118 232 177 218 154 114 94 88 178 10 52 229 1 62 222 65 200 96 27 70 106 125 105 62 162 185 3 41 95 7 104 250 222 245 192 236 63 12 131 246 89 250 45 180 63 186 25 134 191 60 108 123 184 187 184 81 144 94 98 196 191 155 11 143 144 41 237 249 247 55 172 48 96 242 82 207 232 196 107 75 196 221 88 242 173 139 181 90 137 160 152 157 159 45 104 78 228 147 76 27 182 133 157 23 248 7 114 117 236 34 158 139 234 108 233 226 217 56 60 43 137 16 147 128 172 99 53 164 96 23 188 252 87 213 0 229 131 60 196 4 251 129 178 95 11 59 162 141 113 153 106 52 90 200 201 134 145 103 82 29 175 138 246 200 158 19 11 188 39 213 88 105 113 126 91 126 62 182 127 28 105 18 198 233 207 38 37 68 172 141 123 118 255 162 75 189 7 140 18 192 159 11 38 228 248 122 162 39 130 10 234 241 113 2 24 13 39 34 145 215 198 93 196 9 20 244 44 2 108 253 213 188 51 11 141 13 92 148 142 12 147 244 190 255 41 152 114 246 93 168 121 10 154 211 62 122 50 50 34 11 104 76 184 234 135 214 133 90 164 192 83 201 143 210 8 48 220 137 246 109 189 16 70 248 22 64 84 144 136 79 151 185 220 11 165 181 194 233 200 192 205 93 193 58 21 110 219 37 172 56 74 177 107 213 146 16 8 232 35 5 11 22 107 63 114 126 251 215 246 93 62 79 231 65 222 194 77 126 149 246 186 112 125 83 21 199 23 73 253 186 204 209 107 110 152 160 207 220 69 98 87 135 138 33 56 172 117 78 205 150 183 107 155 99 100 76 60 64 163 31 85 83 160 223 181 206 124 2 172 139 152 117 160 162 75 15 155 101 85 2 175 77 92 90 141 113 79 231 8 240 225 220 24 131 105 160 127 146 122)
#f
())
#(79
"using composition with indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(142 150 210 140 102 217 10 103 165 240 152 148 197 178 219 87 178 76 193 132 128 250 199 19 44 207 249 176 176 218 95 60 222 101 42 145 154 125 32 39 0 131 191 93 169 99 92 177 193 228 146 123 138 34 56 224 12 126 130 140 159 194 81 200 165 211 38 253 142 70 240 143 246 195 108 228 176 168 179 104 128 102 18 227 23 43 255 117 52 178 162 139 54 94 79 116 252 237 64 14 252 147 193 212 173 199 72 60 194 112 185 209 243 10 252 125 37 67 11 54 226 171 232 46 50 32 240 64 226 33 72 52 71 246 213 177 83 238 175 19 125 75 47 81 2 160 126 76 250 51 110 83 231 26 98 66 54 227 222 241 54 180 121 25 0 114 165 94 217 125 21 190 100 189 146 0 102 35 0 155 52 203 213 25 122 61 87 49 140 151 84 185 11 16 91 63 239 56 219 26 204 11 140 51 37 88 26 21 33 55 21 0 190 161 193 245 33 45 149 243 222 247 65 217 110 61 83 135 196 170 182 75 10 15 88 75 51 252 0 3 158 88 197 38 40 12 241 170 187 56 12 102 211 177 145 186 17 206 32 183 57 68 215 106 80 232 84 127 218 210 211 72 105 24 161 4 196 98 42 120 73 62 177 206 194 174 116 135 1 234 83 41 214 120 20 245 129 200 87 97 73 3 78 101 92 157 35 13 199 45 147 223 13 55 160 164 178 49 120 34 14 194 162 45 250 149 249 159 250 101 13 85 215 60 9 255 217 95 190 210 52 7 207 181 4 46 147 162 186 249 7 79 248 92 176 239 211 6 229 236 8 19 223 8 103 125 203 117 224 192 103 85 151 96 211 16 161 124 122 192 36 156 81 147 237 24 35 130 27 33 14 16 11 19 9 9 194 41 107 44 177 254 255 78 88 245 128 101 232 50 21 21 249 146 149 217 52 0 193 51 229 40 228 78 101 149 48 225 123 139 146 21 111 21 30 73 87 71 116 255 62 5 3 138 49 214 186 36 126 254 196 254 176 161 239 236 38 109 90 144 208 100 63 172 110 57 11 55 178 111 246 232 60 95 90 238 103 187 156 34 155 131 98 181 15 74 16 191 55 212 125 242 71 132 26 40 221 32 214 209 9 52 246 32 76 134 129 223 12 251 24 22)
#f
())
#(80
"using composition with wrong tag"
#vu8(49 50 51 52 48 48)
#vu8(104 95 71 88 112 17 209 244 60 248 101 201 239 115 178 143 99 63 58 147 170 188 103 236 105 182 243 85 107 120 200 110 107 100 64 150 82 185 54 211 39 187 29 210 191 150 236 233 18 210 123 8 137 157 17 170 125 201 162 121 136 216 223 166 31 108 203 135 8 78 34 66 90 53 221 87 164 59 232 13 80 140 4 188 143 209 139 208 52 140 121 11 27 51 182 184 77 157 219 236 89 142 245 11 115 158 78 207 17 39 69 116 16 171 36 16 227 22 79 49 63 193 133 241 208 125 254 206 188 84 62 181 169 172 48 207 251 221 86 209 131 198 62 251 126 40 134 119 73 42 235 242 18 36 26 73 46 225 167 54 220 45 158 49 192 32 6 48 208 10 66 184 8 216 18 198 96 174 43 71 0 149 139 199 242 248 34 61 197 171 13 50 199 136 190 49 17 112 96 141 255 147 120 51 109 209 82 244 112 94 198 135 231 93 75 238 194 76 148 149 216 1 195 220 231 47 214 4 195 235 213 15 11 123 96 149 245 76 189 108 155 122 22 122 118 100 159 223 152 214 39 237 148 209 48 116 99 67 14 77 221 153 212 247 146 33 253 10 247 111 66 217 79 95 71 45 175 15 175 99 217 189 134 73 203 153 143 123 227 147 136 184 91 94 10 249 163 207 113 252 142 114 54 15 126 252 211 233 106 241 70 1 252 188 45 1 155 244 203 98 252 157 137 43 7 14 25 29 125 104 85 58 1 254 4 163 164 111 206 42 196 82 32 228 15 64 51 192 123 167 148 188 223 49 217 14 191 234 242 218 147 242 187 127 81 229 142 136 74 196 83 226 39 77 169 99 198 13 185 144 254 211 148 241 129 249 87 143 113 101 184 82 174 42 155 245 20 21 200 151 135 180 64 243 88 231 119 78 108 143 42 224 165 37 136 241 51 52 202 250 159 113 196 38 32 22 230 153 90 118 201 141 90 254 62 98 188 141 35 187 246 45 63 42 62 208 25 22 80 4 160 90 22 192 116 160 33 177 6 73 9 197 145 232 76 74 84 124 144 222 83 226 189 255 246 142 241 112 102 5 38 112 143 231 136 228 177 185 141 19 98 149 17 49 18 236 19 248 126 227 236 63 37 144 188 234 76 52 219 250 101 97)
#f
())
#(81
"using composition with wrong tag"
#vu8(49 50 51 52 48 48)
#vu8(27 104 199 147 187 188 17 170 174 190 27 9 3 108 219 180 183 84 181 209 136 88 18 118 153 161 9 23 20 230 208 118 135 181 217 234 156 235 77 147 124 140 9 219 31 145 159 51 163 25 187 191 98 239 181 6 174 176 133 56 118 50 185 161 160 22 6 31 10 185 170 43 113 124 70 2 197 153 107 66 227 18 240 72 84 238 33 133 42 217 252 155 203 161 55 245 156 152 24 100 182 8 216 47 205 38 150 77 240 88 50 152 57 145 203 230 191 116 208 157 133 31 149 209 54 80 153 79 86 232 250 50 4 188 134 133 241 106 14 112 6 145 130 48 163 15 2 85 71 131 65 69 119 71 88 206 201 45 37 193 183 95 209 67 228 22 108 37 90 236 249 175 129 137 185 11 172 180 208 134 85 216 97 176 206 45 88 137 79 0 182 234 227 57 90 29 105 44 247 9 31 67 136 92 232 34 12 90 78 168 211 18 98 91 101 3 119 35 141 172 67 218 91 143 250 199 66 9 145 208 11 112 69 63 207 99 59 132 79 230 48 231 152 184 222 209 242 123 193 112 186 14 117 101 168 82 153 21 139 253 146 73 188 93 0 111 58 233 121 105 241 131 52 41 11 0 194 132 200 166 30 189 177 188 140 120 249 19 247 36 243 8 198 243 77 27 54 255 239 6 240 154 47 245 239 228 224 241 204 107 22 219 134 144 239 13 208 124 239 136 205 43 86 194 92 188 118 214 239 42 12 28 123 187 81 69 238 236 78 173 115 15 174 165 120 249 140 111 179 10 71 81 250 21 220 165 160 157 53 60 122 252 231 213 114 184 199 37 168 207 130 56 106 63 228 156 74 227 18 39 193 101 169 63 184 33 169 59 71 99 97 112 162 225 55 159 245 123 212 236 73 82 147 239 241 224 22 42 182 146 108 120 112 5 114 63 197 143 191 63 75 35 244 102 238 188 25 22 195 210 167 233 154 20 22 160 106 55 83 40 79 2 244 6 108 175 219 159 108 215 57 254 143 52 228 151 55 178 152 155 55 196 160 30 225 51 251 65 254 254 162 212 55 244 129 79 90 63 244 51 57 104 0 34 20 40 228 32 105 44 141 112 39 23 85 35 75 252 163 116 196 59 51 28 32 227 216 199 125 17 134 59)
#f
())
#(82
"using composition with wrong tag"
#vu8(49 50 51 52 48 48)
#vu8(83 14 90 1 189 89 233 34 174 74 192 42 87 151 71 89 218 139 217 120 214 51 27 245 138 82 36 96 164 206 167 205 62 120 199 105 135 237 155 243 159 94 110 10 1 39 217 80 195 222 149 227 96 63 217 223 169 210 248 218 236 200 248 78 222 45 191 153 242 159 174 26 115 218 100 198 234 96 42 144 165 41 217 218 29 139 28 44 21 117 102 122 127 253 255 184 52 125 186 61 19 23 79 99 195 135 150 107 54 97 66 159 207 232 218 31 62 50 135 118 155 88 38 190 14 188 15 107 240 75 71 207 95 14 109 159 73 79 96 115 255 117 51 19 29 23 215 206 133 159 235 218 50 248 198 57 185 226 167 170 191 14 130 163 218 98 170 194 8 100 115 141 33 90 134 44 152 67 67 166 57 212 202 249 31 222 142 66 137 188 35 198 83 33 220 56 125 141 172 56 118 94 74 59 251 27 127 235 99 96 250 187 98 185 126 254 113 201 254 120 147 71 24 117 98 174 74 107 195 92 111 132 47 126 143 27 218 158 163 27 57 245 131 64 179 82 237 49 116 83 6 196 203 93 210 79 227 8 186 251 241 230 84 187 136 152 51 58 182 178 252 150 204 238 128 165 12 68 191 138 244 247 127 44 20 106 213 245 82 184 147 194 160 54 227 231 230 75 30 111 142 209 82 237 26 198 99 144 177 184 40 234 156 67 100 93 127 54 114 60 17 28 197 106 79 124 151 60 15 249 156 70 14 63 130 22 159 226 203 61 48 229 24 163 143 28 30 43 244 189 17 59 133 163 13 38 217 171 3 168 3 237 76 220 89 252 127 22 240 149 168 77 102 62 174 74 59 28 58 170 250 209 156 36 88 82 140 191 55 255 196 109 91 21 149 66 34 16 201 55 139 173 126 207 221 34 34 96 241 42 48 75 175 49 19 224 162 13 64 161 32 45 230 162 245 184 210 58 139 178 250 18 174 207 171 77 140 108 64 42 196 23 246 221 189 39 225 127 79 195 245 52 155 151 245 54 60 159 116 181 32 13 142 150 225 211 142 8 219 186 26 104 184 208 159 17 93 11 210 119 195 155 192 46 203 19 236 110 229 144 208 186 28 163 239 251 151 2 26 72 2 226 209 234 71 213 140 196 148 166 143 140)
#f
())
#(83
"using composition with wrong tag"
#vu8(49 50 51 52 48 48)
#vu8(38 188 77 246 163 172 67 14 20 52 145 86 250 135 21 156 254 59 228 137 196 244 163 187 58 177 233 251 106 36 34 75 192 140 143 198 141 49 194 223 167 187 30 238 52 72 108 24 156 222 68 53 105 252 176 70 131 114 120 184 92 42 61 213 215 154 50 171 35 77 150 45 156 51 151 144 29 194 203 154 159 42 78 250 96 123 45 102 73 116 252 14 216 178 29 131 182 252 38 251 236 52 42 160 0 231 152 179 152 218 37 174 199 243 3 107 75 245 185 150 38 140 163 6 73 125 73 249 76 41 97 47 218 64 19 229 27 189 95 142 189 126 214 211 203 150 81 129 15 25 83 160 160 217 31 33 210 61 33 147 217 18 78 183 185 147 185 44 63 57 180 178 237 117 185 166 153 136 153 160 230 39 104 82 68 214 146 201 187 251 245 122 50 210 7 80 102 226 102 147 182 108 45 106 188 170 6 52 150 16 163 11 158 54 91 203 64 86 50 50 245 166 24 151 93 112 185 239 61 46 55 14 188 243 113 232 64 64 11 197 156 219 142 216 129 110 33 41 83 120 102 131 73 249 182 135 46 211 140 206 237 86 91 55 214 127 124 197 62 243 4 139 77 174 47 246 230 239 5 197 79 8 218 43 37 175 111 248 151 27 30 155 86 234 245 147 18 168 46 7 79 208 63 243 16 210 208 99 253 96 72 7 194 225 201 216 209 15 31 99 173 231 223 39 240 137 77 174 249 207 113 59 193 144 11 142 150 151 187 209 156 140 203 182 247 230 8 205 117 31 107 239 206 77 22 114 25 11 234 196 14 129 254 174 165 152 126 139 225 78 245 63 149 175 83 167 102 200 100 225 226 9 34 215 69 173 61 183 251 192 59 8 137 82 90 0 174 46 116 138 150 117 98 132 57 181 150 126 231 220 63 59 171 194 79 68 151 116 73 64 68 136 6 175 145 67 181 82 163 4 162 95 145 18 174 250 247 221 50 186 156 172 51 188 140 62 119 247 19 58 211 37 204 131 161 10 40 144 197 235 231 60 171 135 231 86 225 109 127 23 114 26 249 12 146 125 220 83 212 72 173 236 144 147 45 251 253 40 192 49 228 151 149 63 27 117 209 111 197 159 68 242 50 237 163 198 217 160 93 96 27 5)
#f
())
#(84
"using composition with wrong tag"
#vu8(49 50 51 52 48 48)
#vu8(98 244 134 41 199 162 65 121 112 28 156 125 211 173 101 115 177 71 164 106 217 83 100 254 155 6 31 26 122 83 242 44 169 201 75 98 143 177 20 174 148 33 158 180 67 206 67 132 122 148 140 4 185 201 232 101 208 106 80 142 170 83 234 110 149 189 6 192 214 120 169 156 104 235 93 99 126 19 72 102 152 83 237 39 170 249 234 194 18 225 14 99 219 136 238 74 229 114 215 27 203 170 149 89 238 105 138 241 70 78 140 126 6 166 8 159 172 33 224 244 70 115 181 154 216 134 135 5 86 182 170 214 131 69 126 196 200 0 10 114 19 84 77 225 13 73 63 112 166 123 247 104 71 44 6 164 216 208 19 210 70 203 99 1 192 93 37 29 6 227 150 41 117 16 187 216 2 173 251 22 196 77 86 103 212 151 132 243 144 205 213 26 152 146 39 219 138 5 71 183 1 57 206 232 95 185 132 5 21 117 102 244 141 249 189 153 252 147 240 81 100 163 128 106 122 115 34 91 3 105 182 107 26 91 41 113 132 235 234 75 246 230 208 3 69 141 167 6 85 170 120 249 54 35 109 207 9 109 27 242 175 174 117 82 180 44 191 161 39 52 62 240 129 168 166 60 198 95 32 117 179 63 1 235 222 12 76 128 48 107 54 167 6 87 190 204 164 80 243 215 32 245 192 133 90 130 126 77 67 252 42 18 81 47 95 25 48 27 164 4 236 70 129 78 27 191 223 129 228 29 192 49 84 40 61 247 161 14 108 56 168 157 46 29 28 67 167 28 241 158 221 110 79 173 132 110 222 133 212 47 170 170 132 193 181 56 11 229 89 51 32 14 196 99 241 73 145 93 101 50 28 189 33 255 213 124 58 252 251 132 131 44 155 129 230 84 249 164 2 217 197 179 5 253 59 208 66 233 154 51 223 187 78 61 111 68 26 217 100 107 191 184 71 60 156 1 112 122 196 207 249 30 123 169 213 153 110 215 149 161 213 98 161 116 207 17 123 34 236 206 126 103 158 71 78 31 126 46 48 88 24 5 138 168 90 128 248 126 250 92 40 119 219 135 14 77 120 74 52 70 128 35 57 185 248 225 240 158 110 218 42 234 140 68 119 148 202 22 168 20 189 203 24 119 194 154 90 14 153 36 63 112)
#f
())
#(85
"Replacing sequence with NULL"
#vu8(49 50 51 52 48 48)
#vu8(31 64 164 103 146 67 84 243 2 91 55 163 197 86 149 24 191 204 99 67 80 206 63 130 186 139 169 97 210 220 155 164 32 108 248 185 154 195 131 142 36 193 173 128 168 169 103 167 34 74 196 125 59 59 20 27 174 107 106 195 78 45 94 28 101 48 80 56 172 136 248 62 99 225 213 156 253 61 178 62 189 216 227 211 42 194 168 197 123 22 195 103 84 14 46 173 249 174 65 169 254 40 78 59 10 149 20 85 125 70 141 23 136 60 213 95 116 31 160 63 74 209 102 204 155 64 185 110 174 76 227 84 98 100 88 34 129 86 35 87 214 105 66 208 154 173 135 215 57 220 254 101 16 41 93 8 24 149 98 39 106 12 177 27 56 163 42 205 11 67 114 251 203 138 177 154 218 66 52 22 169 145 115 32 90 236 218 73 68 125 13 0 12 251 204 170 142 216 112 65 106 27 168 64 26 214 28 217 77 78 153 169 140 71 137 247 175 90 251 36 104 95 202 155 161 43 215 5 47 105 81 123 48 36 195 177 251 234 198 42 192 74 71 70 115 28 254 0 148 138 203 149 174 227 234 116 103 118 169 12 122 74 84 65 20 50 173 190 205 107 194 57 231 246 41 240 47 170 36 229 95 66 188 21 202 86 109 114 20 73 69 119 97 29 23 55 70 255 179 213 154 220 104 251 61 206 128 25 147 247 121 162 182 205 192 193 12 219 254 90 240 201 154 46 218 162 61 202 49 82 88 82 33 204 23 221 222 216 71 77 199 121 84 166 201 108 95 144 61 23 155 192 6 3 198 224 201 184 9 255 49 191 49 188 77 145 193 151 61 41 160 147 28 141 189 187 112 237 9 115 15 108 130 116 204 67 173 182 64 4 187 163 105 177 246 169 199 190 106 73 206 54 165 1 33 195 66 177 172 96 238 81 232 155 115 175 161 175 190 82 188 134 102 122 137 83 110 186 144 213 207 3 104 73 188 44 38 231 196 92 187 127 145 157 60 125 19 154 60 124 36 156 11 137 67 221 177 218 59 216 117 229 174 185 23 169 115 12 210 12 88 153 78 150 95 125 195 95 38 211 86 66 224 130 16 168 32 36 52 50 137 167 36 112 156 158 202 58 70 139 88 37 246 161 62 178 226 45 165 132 99 78)
#f
())
#(86
"Replacing sequence with NULL"
#vu8(49 50 51 52 48 48)
#vu8(195 247 112 174 16 193 7 128 208 186 146 200 154 31 207 171 194 72 192 196 248 204 204 60 111 227 226 136 123 84 54 97 233 70 192 221 185 130 213 183 205 137 174 67 0 88 203 169 253 64 163 33 100 22 70 229 144 223 58 44 248 107 150 69 227 71 251 54 140 110 245 105 92 168 210 233 169 163 39 253 199 90 224 213 64 16 245 148 160 80 201 190 108 92 15 96 164 238 65 242 145 145 247 87 15 109 251 45 23 214 176 147 58 34 191 120 34 245 32 179 203 162 100 25 222 26 145 227 159 187 18 168 75 171 8 206 155 29 235 16 181 110 87 110 123 229 221 155 116 97 24 202 140 141 153 18 85 187 204 52 249 199 186 49 127 94 17 144 99 124 88 95 90 79 16 221 3 122 73 129 118 183 216 77 51 160 55 13 167 248 52 212 67 219 207 225 229 245 2 240 154 12 169 70 235 78 99 115 220 227 131 201 174 135 20 165 174 69 255 85 91 164 7 64 80 87 214 13 187 237 176 185 120 38 8 169 47 7 16 84 115 48 232 66 255 149 83 53 55 224 18 114 137 143 122 77 173 113 212 9 155 55 42 80 74 14 2 119 14 252 133 25 14 9 135 250 123 196 154 58 228 130 144 95 71 210 50 96 166 152 132 44 29 148 18 60 121 50 13 4 44 143 57 245 171 145 194 65 188 124 168 52 170 227 69 84 134 96 97 125 13 136 109 137 204 145 120 14 7 10 195 109 103 221 40 189 72 16 157 253 105 247 34 144 119 219 244 144 70 127 241 75 107 87 220 192 92 62 70 253 138 38 136 242 72 1 27 83 157 47 213 220 43 33 122 11 65 213 127 230 103 185 54 21 139 232 201 28 0 68 198 136 231 82 86 106 56 61 176 82 91 154 114 217 5 155 157 39 147 205 165 141 201 152 11 168 244 195 85 115 4 217 145 209 144 201 53 231 106 158 204 245 9 83 208 77 86 27 95 239 126 98 177 54 143 188 255 23 151 198 205 103 104 136 92 155 185 142 104 118 213 86 178 154 84 231 229 53 223 99 190 83 164 245 9 245 69 77 73 43 201 43 232 29 27 182 133 22 227 93 172 137 170 213 79 177 14 40 107 1 42 13 65 160 79 117 134 12 126 3 17 59)
#f
())
#(87
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(51 158 242 33 169 82 12 224 85 252 37 149 91 204 161 198 86 91 63 136 159 161 194 178 240 120 146 57 5 233 182 233 80 175 9 119 229 216 27 186 13 142 57 165 239 198 162 26 182 230 201 66 234 135 45 35 17 250 178 151 213 80 216 68 72 72 171 18 249 32 175 251 86 255 47 112 215 80 195 252 196 213 224 232 101 59 159 140 209 188 26 68 152 92 214 198 43 67 210 181 158 31 8 230 168 7 227 118 41 95 222 8 250 50 252 106 178 94 134 104 168 187 231 44 142 3 50 248 59 166 78 99 95 28 190 203 14 6 213 72 242 72 33 166 115 168 180 96 13 69 80 106 46 132 252 187 87 186 203 12 71 32 74 64 6 176 165 172 61 94 38 119 176 30 196 177 70 30 78 134 34 50 1 5 89 220 189 23 124 161 195 39 204 33 121 184 198 47 75 132 194 189 119 184 17 91 34 28 168 58 22 100 218 161 0 192 96 202 249 69 219 206 52 91 31 22 196 201 95 63 216 253 218 33 193 253 39 75 84 136 98 231 81 100 29 1 82 254 43 231 241 78 22 140 145 28 4 0 197 137 166 186 135 153 149 208 23 163 21 53 160 222 162 45 41 214 223 138 215 211 247 233 140 95 60 154 108 26 41 244 223 165 0 2 229 157 57 201 164 110 3 53 13 210 234 218 102 240 135 229 23 218 222 15 114 254 51 235 214 175 8 89 251 22 217 69 171 169 87 29 142 38 49 39 246 51 209 76 104 166 29 160 156 236 130 221 117 34 99 136 186 134 195 185 73 158 110 90 177 253 52 121 122 31 159 74 5 77 150 54 102 94 126 84 68 43 36 237 249 60 59 158 89 17 158 21 224 188 158 109 57 10 164 47 63 186 50 179 194 222 230 230 100 153 239 6 92 10 0 1 180 137 229 108 207 8 34 100 249 235 219 156 225 252 12 45 227 124 159 232 28 162 200 7 30 164 231 157 12 247 11 186 166 78 75 7 175 58 87 165 78 216 91 203 194 28 172 58 179 47 246 35 243 140 188 166 93 241 175 193 122 181 246 199 231 229 77 103 248 251 118 138 140 79 50 209 166 155 123 15 253 46 191 129 26 114 33 154 155 13 38 119 143 252 229 218 124 250 83 101 93 87)
#f
())
#(88
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(26 199 203 124 195 218 206 123 76 177 240 144 10 211 227 208 178 70 209 144 149 187 57 194 175 160 150 89 149 213 235 212 42 77 251 107 248 147 31 143 100 26 220 46 179 77 215 20 177 218 33 195 198 75 236 229 215 123 62 46 90 119 87 253 248 133 174 10 146 175 199 218 73 101 204 76 189 131 203 90 225 93 125 16 77 146 238 199 1 254 103 106 97 52 127 17 208 175 193 189 79 243 204 206 192 186 91 207 71 97 94 198 244 255 109 197 208 54 234 100 174 246 218 190 109 71 194 37 32 149 244 95 159 145 101 238 89 20 152 50 129 49 163 121 206 163 84 143 14 64 61 79 133 157 192 131 18 75 103 23 18 86 203 84 214 211 40 194 6 5 107 208 14 49 104 177 24 74 140 33 112 78 233 164 185 144 34 28 55 165 36 87 157 12 231 71 3 190 56 40 88 217 33 168 216 175 161 145 93 108 218 216 156 117 61 130 139 184 175 235 210 46 170 2 152 71 2 33 38 15 183 173 157 50 103 253 246 132 14 78 254 38 106 38 229 145 181 91 220 116 42 134 5 222 190 152 110 246 137 245 188 154 12 19 19 23 240 109 170 99 23 18 197 195 58 96 79 90 244 246 224 35 186 226 51 167 77 222 209 119 214 207 228 43 203 173 58 130 70 143 219 127 96 218 143 78 17 182 31 225 198 53 224 169 234 14 234 168 38 83 68 167 94 52 214 109 66 236 133 200 23 216 102 134 208 208 193 157 132 25 236 187 17 157 2 59 96 63 244 143 34 227 155 191 223 186 182 99 20 248 240 227 242 46 117 11 135 51 54 195 122 22 18 192 117 254 121 89 178 141 211 147 98 116 144 98 175 164 245 126 8 236 141 216 120 31 135 143 213 202 135 7 176 116 23 173 183 44 251 248 250 183 43 33 250 221 184 161 190 147 86 34 127 71 56 245 111 3 33 47 65 152 194 229 173 8 136 214 207 246 7 150 190 62 119 216 84 37 246 102 199 173 138 44 104 66 87 185 34 170 166 241 87 77 70 154 106 127 152 64 244 133 20 84 245 119 33 97 200 80 152 119 198 243 182 172 116 138 86 166 59 14 77 142 7 148 46 254 174 63 216 141 35 156 197 52 18 97 222 251 216 61)
#f
())
#(89
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(39 47 144 161 247 79 137 236 213 99 38 132 154 64 216 27 203 44 235 60 187 199 249 97 221 60 42 134 250 24 113 55 185 19 176 52 1 37 70 229 24 232 207 156 91 7 206 18 100 53 103 95 31 159 84 62 73 244 112 169 215 95 18 157 8 156 108 138 255 51 209 158 81 16 21 2 234 144 63 123 39 24 23 165 138 190 8 109 216 162 244 26 211 174 162 119 241 126 38 211 147 44 15 192 191 197 6 205 209 156 216 108 180 22 112 210 2 191 246 213 95 65 48 54 201 69 32 161 151 193 43 88 195 203 234 30 149 153 226 238 128 227 97 218 215 202 113 67 154 94 0 7 32 216 176 201 121 170 127 55 229 99 120 0 242 63 207 199 54 248 169 246 135 226 205 236 164 9 54 202 173 170 197 99 161 166 108 97 182 230 94 163 162 81 68 111 240 195 128 80 81 99 150 174 206 241 118 46 177 216 33 181 195 209 168 223 254 251 41 167 122 143 104 13 36 13 250 152 218 234 125 81 66 22 251 157 213 169 170 78 71 121 94 104 133 200 118 180 70 223 144 90 105 0 68 168 94 48 189 25 170 197 163 42 171 136 158 18 102 62 93 104 194 175 101 108 18 129 92 39 202 98 210 140 173 213 160 142 247 199 69 168 220 2 113 121 147 98 218 98 218 220 40 146 67 207 216 205 180 34 163 72 210 60 188 95 61 230 77 33 131 211 215 227 6 119 166 101 198 86 246 10 64 192 191 234 185 36 66 41 26 209 209 93 158 228 110 67 125 249 57 22 0 175 39 123 178 189 64 0 84 125 196 254 222 163 176 220 236 51 125 198 219 91 242 161 143 248 86 27 241 149 46 218 101 79 189 184 101 183 192 110 195 22 169 36 71 8 195 70 108 165 182 115 86 205 199 2 225 113 61 138 21 145 164 64 126 15 142 182 24 84 55 194 235 59 89 156 75 83 10 239 110 197 167 0 244 154 195 114 15 7 97 230 155 151 183 25 33 33 42 117 191 156 41 236 217 124 203 255 167 246 54 134 14 18 245 72 153 206 70 8 203 119 79 47 185 155 35 196 62 127 18 220 38 46 89 62 233 65 161 185 135 147 108 22 173 230 137 228 61 86 174 156 160 47 186 160 212 215 233 211)
#f
())
#(90
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(144 252 237 162 85 200 97 39 152 254 50 90 205 202 156 141 255 34 123 185 86 71 104 21 91 174 1 135 191 131 76 196 192 59 241 76 204 154 88 81 99 137 218 113 94 112 55 98 114 221 65 18 21 13 103 137 131 135 139 90 58 248 120 77 19 2 160 79 127 61 215 219 196 126 45 237 162 88 5 31 188 208 24 190 57 96 95 52 170 10 244 189 252 48 21 222 73 175 167 46 150 109 22 103 99 9 146 195 26 234 7 71 221 201 37 206 214 148 7 198 67 82 191 198 92 106 164 139 2 54 203 15 158 120 105 244 164 8 173 144 242 238 127 254 95 252 234 170 157 177 199 120 181 104 163 198 161 132 77 26 242 5 28 129 198 24 211 50 124 96 133 177 139 238 168 206 210 22 137 33 246 59 222 182 125 254 228 221 196 129 242 71 35 124 211 166 231 237 14 75 107 15 42 51 40 153 236 103 38 207 144 235 49 123 84 55 81 34 217 117 134 141 120 93 42 153 228 42 57 20 121 138 3 120 238 41 63 107 18 234 109 224 55 11 163 13 200 189 51 212 240 200 20 89 162 26 114 149 86 251 2 69 106 42 190 215 82 179 224 198 102 112 75 27 49 149 210 105 238 67 169 222 109 194 36 182 155 45 239 25 254 16 210 71 208 85 65 130 235 153 139 73 131 63 168 116 198 206 58 33 72 201 173 219 161 125 180 115 192 156 238 27 145 3 22 190 146 28 187 25 177 139 28 42 171 28 224 142 193 117 48 128 174 177 122 242 180 170 136 162 183 100 116 72 27 254 52 124 116 77 206 216 231 198 39 180 201 156 73 13 111 138 36 208 73 183 250 185 58 19 74 72 81 39 203 88 184 23 255 162 18 52 151 189 73 97 114 42 30 35 197 249 162 117 217 222 111 203 13 14 148 153 46 121 3 212 133 106 146 200 86 150 253 172 32 125 71 22 137 106 250 190 12 185 229 0 101 6 50 8 143 29 26 19 65 74 170 230 30 160 161 59 117 107 113 232 135 17 197 168 16 178 114 155 115 32 205 88 105 140 240 139 249 214 209 48 65 84 160 111 157 140 111 46 131 98 252 76 207 185 226 97 235 195 166 0 69 15 48 208 156 171 212 86 235 163 33 242 30 46 154 96)
#f
())
#(91
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(175 124 56 109 241 203 162 79 117 60 88 157 151 86 38 107 100 115 202 53 19 181 28 197 12 136 129 3 99 110 156 193 224 242 174 79 116 34 0 4 171 2 201 247 52 255 169 107 109 179 69 86 253 210 122 10 108 237 107 208 246 149 244 85 13 148 16 100 245 9 24 94 75 61 194 231 29 230 81 39 37 251 225 103 8 54 80 231 222 186 48 53 165 215 186 182 128 80 210 160 187 31 58 198 225 61 255 180 61 176 246 53 92 255 24 9 224 69 15 98 154 153 151 94 147 104 33 56 83 161 188 73 83 142 206 138 166 74 235 29 253 131 126 167 231 239 84 132 91 204 187 140 154 64 159 38 32 4 245 92 94 10 128 123 163 203 214 243 196 60 244 152 133 39 101 247 64 194 195 232 202 139 63 196 196 59 215 210 143 110 194 210 155 203 15 250 142 72 75 77 159 111 38 199 90 221 70 10 59 152 192 233 17 163 172 228 72 166 109 138 49 58 252 44 26 191 248 228 247 203 179 11 215 102 6 89 218 23 180 199 231 196 39 100 54 56 153 136 29 67 195 251 48 108 192 207 177 124 123 77 44 29 232 171 163 164 58 91 193 100 49 216 99 11 220 19 56 66 28 18 214 91 41 9 168 123 127 130 185 232 163 175 68 162 140 199 98 245 182 43 88 115 126 7 237 52 239 85 13 85 59 4 71 249 148 64 82 135 162 84 43 239 237 11 46 239 220 85 42 111 185 78 66 227 84 146 142 236 108 142 147 224 178 74 230 113 157 162 13 252 45 106 74 121 8 99 121 253 190 93 251 211 195 94 74 178 25 72 31 138 100 211 58 184 74 148 244 184 181 122 23 71 136 223 175 158 85 135 152 169 140 79 219 82 235 174 252 15 31 86 23 101 45 224 174 193 114 78 1 83 129 239 113 69 161 82 69 145 125 228 44 221 232 49 136 221 18 175 186 71 206 245 177 252 176 100 163 166 148 95 164 215 198 239 55 234 88 45 64 54 214 207 182 98 19 53 116 127 182 71 51 6 178 127 236 128 175 255 196 222 183 117 120 100 70 55 201 195 242 206 225 26 14 182 65 180 145 200 78 146 1 251 40 41 216 14 127 176 65 142 224 180 75 118 183 194 148 14 223 41 164 167)
#f
())
#(92
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(185 134 221 72 27 231 106 152 181 162 62 228 148 168 38 79 156 242 179 126 44 228 12 175 90 124 234 161 178 165 204 237 88 39 166 82 201 152 225 194 109 3 180 139 119 196 64 115 61 27 224 72 166 81 234 147 238 96 105 92 52 180 100 42 136 216 72 137 125 137 188 79 40 80 129 52 95 84 81 111 185 112 92 154 144 88 145 21 221 208 88 117 68 236 106 25 132 164 167 44 27 109 54 242 165 114 24 182 71 181 115 21 23 120 52 22 155 41 208 181 115 38 179 244 205 29 247 145 75 8 143 72 87 59 107 50 239 218 166 120 17 142 133 170 106 163 25 255 216 92 223 196 202 5 74 15 4 130 45 147 74 247 58 122 164 213 245 29 147 180 67 228 216 71 56 49 179 27 205 154 238 34 252 244 166 35 79 15 214 226 113 37 144 91 192 190 208 215 39 79 7 52 187 31 81 65 74 81 81 254 96 228 81 14 21 142 152 0 79 146 3 199 167 17 187 32 87 208 230 170 112 102 70 159 144 11 250 217 60 127 155 30 184 116 89 144 11 145 93 164 209 165 154 237 131 147 8 141 95 35 234 70 20 85 22 7 216 205 12 13 208 174 167 87 52 174 35 167 94 147 229 12 9 191 235 115 3 251 112 79 60 151 106 229 115 243 99 85 62 137 57 29 111 101 3 92 97 56 49 171 187 95 38 108 244 10 213 236 30 242 164 135 29 121 133 117 33 102 6 173 118 161 99 77 120 171 233 241 109 107 44 196 174 62 153 209 212 62 194 94 147 181 44 84 123 228 163 10 152 229 214 193 128 228 74 124 45 180 235 2 71 178 180 41 147 85 46 105 28 217 235 34 84 127 243 188 78 230 203 32 51 84 155 136 58 88 211 245 14 18 26 112 213 16 112 176 211 118 71 207 182 34 119 100 173 39 3 224 254 94 166 17 8 244 231 227 211 49 143 200 122 159 245 155 0 94 122 109 35 34 67 174 22 212 66 14 158 2 77 57 4 166 229 75 48 129 90 91 193 241 97 155 68 22 194 186 164 100 166 28 239 215 166 254 20 66 212 85 34 56 65 77 91 46 207 229 49 190 201 4 94 129 31 234 55 248 205 46 122 131 69 187 48 156 241 118 84 206 232 136 76 27)
#f
())
#(93
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(91 58 172 78 196 160 219 131 111 38 134 34 26 184 32 113 151 159 193 240 159 172 189 174 192 86 173 96 233 82 201 26 199 126 254 245 32 252 214 98 127 85 16 176 75 134 81 254 115 195 100 229 254 216 53 180 18 195 126 93 189 129 219 27 184 104 56 191 28 216 101 19 47 191 253 165 94 203 24 178 199 128 27 232 84 160 106 173 14 28 47 11 76 175 200 97 44 228 12 186 72 101 195 221 238 64 170 67 120 40 51 245 206 119 95 47 193 190 154 64 151 177 221 15 213 199 234 26 251 234 231 87 127 215 12 210 192 25 100 43 116 226 201 74 37 155 38 195 75 205 235 205 104 152 47 215 69 18 125 9 116 166 57 123 146 233 163 189 86 239 116 251 207 137 168 69 70 218 241 185 123 133 190 70 16 110 106 108 145 72 134 148 226 95 158 216 142 209 54 98 158 240 64 154 6 134 116 92 148 50 39 135 219 176 223 127 120 217 227 66 79 95 71 178 76 107 212 85 215 188 29 137 206 149 224 34 144 65 188 152 90 109 196 150 149 113 152 120 194 143 130 28 209 170 243 207 240 226 56 85 137 4 82 187 146 222 55 240 78 155 183 86 254 98 233 228 82 158 95 1 183 182 164 55 76 213 4 207 120 130 199 55 122 130 219 255 123 75 135 24 71 9 22 110 82 35 135 146 54 131 146 194 93 155 40 33 139 248 115 14 101 73 204 144 135 226 143 220 123 188 176 182 252 76 117 43 4 130 171 59 28 124 98 214 75 83 252 233 207 213 88 252 187 169 108 57 198 163 213 7 8 192 197 148 125 252 98 167 100 243 15 235 133 118 136 224 4 210 228 226 194 21 35 35 29 250 76 250 171 185 130 180 73 239 81 111 147 200 27 83 255 26 141 236 81 164 65 197 12 200 162 14 229 226 161 159 161 32 185 146 229 142 60 213 202 87 163 15 23 199 174 71 198 229 121 165 114 161 214 103 18 142 66 133 57 15 41 6 182 153 35 251 164 20 198 201 47 173 197 139 135 218 233 55 141 43 227 10 211 36 10 39 34 101 48 203 138 252 112 41 46 237 90 244 3 122 230 192 194 134 132 254 150 77 4 157 218 208 99 5 234 48 221 174 100 208 168 96 148 51 154 111)
#f
())
#(94
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(76 83 199 185 75 110 170 205 168 137 198 71 32 45 144 223 236 170 5 231 90 27 120 4 26 8 82 104 105 207 41 154 72 179 6 87 124 26 29 30 254 188 125 214 148 228 81 85 220 67 78 17 98 122 126 114 70 170 7 3 161 89 43 0 137 140 228 203 64 230 114 211 95 254 74 238 20 10 107 193 223 109 64 197 96 218 33 74 170 99 125 148 182 101 118 58 124 179 78 29 177 13 15 103 114 222 188 21 208 91 208 225 175 53 155 83 165 33 253 53 156 126 103 226 141 135 201 3 37 75 186 31 12 72 249 90 142 77 253 240 154 199 175 162 253 55 168 54 232 91 16 194 204 110 14 9 134 165 38 223 246 121 211 189 157 163 142 36 225 168 169 26 219 229 127 64 236 127 199 19 121 34 148 218 118 130 0 139 233 205 166 101 34 84 240 175 113 40 197 197 173 168 247 213 83 12 164 101 155 25 179 162 180 185 0 119 106 158 6 253 127 191 150 168 3 32 249 207 82 209 105 54 3 142 21 30 27 73 40 160 35 44 125 13 105 215 193 104 57 204 151 92 203 167 107 244 53 245 5 33 225 144 85 72 230 131 2 227 91 166 100 44 171 216 79 172 219 14 158 89 100 234 104 62 31 9 161 41 57 171 243 6 86 75 217 123 249 95 47 210 102 202 23 50 108 107 244 226 163 245 42 50 254 228 172 185 99 135 40 147 245 2 231 161 46 212 233 112 128 129 109 52 161 18 243 181 209 132 247 224 199 244 250 6 231 22 254 250 144 157 219 141 4 160 124 19 242 59 154 201 25 225 2 49 232 188 205 67 169 29 113 239 2 220 232 123 166 114 142 50 230 221 146 177 207 217 110 159 57 151 229 106 235 87 235 237 107 95 155 51 239 27 110 79 236 4 16 5 51 57 165 231 234 249 86 242 98 187 14 230 232 40 32 70 39 117 90 76 123 253 41 224 72 92 249 211 143 69 155 54 244 120 58 104 136 99 158 1 23 181 251 114 80 81 132 167 39 226 243 199 215 17 125 12 212 204 246 33 198 112 179 59 112 157 22 91 104 55 77 189 30 174 154 197 141 162 130 99 54 250 1 254 160 15 42 9 221 215 163 46 200 59 164 206 12 223 65 8 36 26 122 197)
#f
())
#(95
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(124 117 127 26 28 164 221 201 225 180 202 195 178 22 108 107 129 133 222 11 18 20 196 140 241 203 175 236 181 129 71 213 100 158 116 26 246 39 54 203 57 69 175 201 14 114 11 61 13 77 174 130 15 232 65 105 178 133 126 11 237 1 25 89 53 32 246 246 208 16 52 144 82 107 153 82 230 42 177 149 68 80 156 23 77 232 210 104 55 34 248 58 51 43 75 46 199 54 235 133 220 8 250 168 199 108 228 139 12 229 21 33 169 103 165 89 250 199 243 151 103 236 69 68 245 164 144 31 196 179 199 254 194 152 168 67 237 162 135 161 82 212 142 247 93 30 210 70 77 229 101 218 75 130 252 219 135 38 51 80 155 103 198 177 91 225 174 112 149 57 38 21 149 253 163 11 111 70 66 58 167 75 78 18 245 5 194 241 96 8 43 76 222 68 143 89 167 1 55 174 250 79 164 255 63 20 106 37 169 26 101 124 99 158 72 85 252 151 201 141 47 33 181 35 118 168 129 85 77 57 162 58 203 147 139 161 95 127 99 248 73 178 4 101 225 88 60 39 189 179 41 82 99 94 73 125 143 115 33 162 212 86 120 203 141 93 51 23 248 200 165 147 200 74 160 183 103 236 84 114 160 207 166 247 244 182 195 44 180 141 209 30 174 175 162 91 30 25 85 69 166 2 243 179 205 24 172 49 138 72 116 62 154 220 142 225 238 65 52 120 125 157 232 139 121 99 64 196 104 98 215 199 202 151 241 66 162 142 145 89 133 48 142 63 112 61 247 13 136 215 43 194 36 4 171 160 141 107 222 33 226 84 10 61 88 212 149 23 191 72 204 11 49 56 209 172 8 170 66 120 118 99 1 153 225 20 96 205 107 176 75 185 187 41 33 13 152 128 189 208 91 149 172 157 118 159 0 218 114 204 47 126 226 13 60 193 15 187 32 73 9 87 2 40 55 101 106 105 254 250 131 197 240 135 58 172 6 132 129 146 31 232 36 130 192 89 67 166 96 122 233 44 56 128 111 83 150 56 118 23 194 107 159 51 12 82 56 75 192 232 24 198 100 101 255 54 80 193 211 65 77 149 187 82 138 118 140 130 167 192 118 250 64 80 179 83 250 97 74 131 11 251 12 96 58 93 68 160 29 77 14 114)
#f
())
#(96
"changing tag value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(186 17 87 249 182 192 211 26 76 146 142 12 61 174 125 242 225 56 83 235 167 129 253 64 96 93 162 210 231 30 219 230 90 218 192 249 130 189 148 15 82 205 129 111 121 18 50 174 5 109 37 83 245 200 32 39 97 106 101 80 26 42 209 35 157 92 123 43 117 17 170 231 195 133 215 47 99 148 77 31 31 205 150 19 206 92 205 25 46 103 77 34 40 10 121 129 122 179 48 140 61 255 102 192 250 219 233 192 67 79 83 24 252 185 225 218 57 111 17 180 186 158 150 29 233 241 142 91 43 163 113 109 145 126 56 222 41 2 125 228 60 218 35 47 80 214 173 148 131 104 160 250 175 150 242 143 196 190 166 144 211 71 248 14 60 226 26 160 170 73 244 69 211 164 161 235 229 100 15 159 22 224 179 216 178 68 5 177 175 174 125 126 174 99 57 206 171 250 83 138 126 189 182 106 77 165 113 109 211 170 254 3 5 201 40 193 33 117 198 72 56 76 204 133 228 37 178 2 228 203 52 65 15 96 42 107 234 59 231 144 56 204 249 10 245 53 122 232 174 132 47 212 99 89 34 93 86 55 27 5 20 103 152 240 78 146 134 156 51 196 22 106 206 245 189 245 180 51 193 145 163 30 180 212 239 136 39 205 155 254 64 52 87 137 208 127 104 95 93 111 234 72 58 206 23 252 139 221 209 32 178 69 231 54 42 69 22 207 228 193 146 243 146 43 185 99 140 237 213 230 149 138 109 44 181 218 133 251 174 152 237 109 177 98 8 51 107 170 105 80 38 90 220 186 0 176 32 59 102 155 98 73 75 181 109 207 58 65 127 224 247 213 104 193 224 173 28 17 19 125 91 87 54 211 68 208 229 179 69 23 33 101 60 75 201 39 130 132 217 136 29 223 14 15 238 143 203 179 245 77 184 39 71 160 216 234 130 130 41 224 156 231 213 69 157 250 89 14 74 214 234 42 195 29 199 46 104 118 138 112 37 70 240 169 134 135 163 221 69 242 120 62 31 202 134 23 211 145 89 138 111 154 171 167 200 41 220 143 110 130 76 197 249 167 223 57 226 9 209 34 100 32 86 9 212 156 153 88 218 42 58 89 228 112 111 249 177 25 191 222 96 12 179 161 18 122 117 199 124 119 229 134)
#f
())
#(97
"dropping value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(70 20 236 112 88 110 244 192 231 114 16 97 2 182 86 82 253 158 144 174 166 55 176 200 8 230 210 142 216 174 171 24 171 117 13 91 123 93 52 249 24 206 134 62 238 148 250 228 203 103 216 211 9 81 219 75 250 223 98 7 4 54 99 10 73 94 16 143 34 195 131 192 129 7 251 247 227 99 213 231 247 182 16 193 52 97 124 82 112 39 73 10 162 88 46 208 216 118 152 83 249 68 122 251 116 68 172 162 3 74 126 2 88 88 92 73 170 181 78 97 36 236 185 249 93 170 80 126 134 215 221 227 102 201 251 46 176 67 11 122 153 15 31 5 93 244 179 182 194 203 126 53 59 57 71 35 161 103 35 1 164 53 121 2 138 52 169 34 53 204 38 210 161 93 92 123 153 53 197 185 138 153 199 82 186 221 8 54 231 144 44 222 6 171 250 217 238 145 112 82 129 79 185 216 167 117 81 107 148 132 80 192 109 62 51 182 18 232 72 192 247 221 115 34 232 178 100 209 123 182 126 242 17 119 169 59 19 233 253 84 183 12 245 115 122 106 168 112 202 169 160 130 89 94 112 230 223 104 250 176 40 233 203 183 247 46 157 72 194 242 16 106 152 168 41 141 253 223 87 90 251 63 226 102 114 156 51 70 245 103 219 211 207 47 186 251 130 174 88 81 202 3 28 110 130 89 216 34 234 134 35 163 182 61 209 222 124 38 108 137 39 139 59 190 45 51 132 235 217 76 117 87 198 61 8 210 144 80 140 183 126 216 10 217 118 99 84 11 114 9 172 63 126 150 8 190 45 179 27 131 113 84 241 172 207 237 146 224 18 79 205 28 98 109 13 36 219 158 156 90 49 109 62 159 237 242 198 47 165 84 131 206 234 76 156 28 154 84 13 62 184 17 100 34 172 66 41 243 190 141 223 141 188 166 65 81 89 11 62 239 4 17 170 235 43 37 202 3 204 219 83 9 178 129 83 81 94 157 52 61 93 239 71 29 92 103 172 44 229 155 98 219 98 145 184 117 59 14 193 80 56 184 186 94 208 253 23 5 12 186 254 189 225 141 120 205 169 47 33 225 98 237 114 117 143 104 253 80 173 75 132 180 162 49 141 208 98 121 147 125 183 5 213 53 213 22 253 176 117 114 65 162)
#f
())
#(98
"dropping value of sequence"
#vu8(49 50 51 52 48 48)
#vu8(144 74 206 248 247 100 237 168 33 195 156 76 117 68 63 67 204 0 224 171 12 220 198 172 154 62 203 242 28 56 153 157 4 193 90 155 17 215 202 157 233 194 33 178 173 58 35 63 152 132 35 134 143 90 255 10 206 24 154 72 196 69 44 65 211 207 208 189 250 41 214 101 44 202 54 133 6 47 214 213 145 34 163 124 222 215 144 18 45 31 77 222 205 172 250 80 96 86 88 242 60 32 19 195 24 20 194 50 48 202 42 222 247 202 16 35 159 169 213 106 20 28 253 108 79 72 235 135 176 141 127 191 18 233 230 45 39 168 111 130 242 41 205 173 120 236 49 209 20 109 51 154 166 254 6 38 24 35 248 153 244 24 209 154 59 223 129 127 8 96 119 215 223 200 250 27 159 150 88 111 8 84 39 151 149 233 183 37 150 242 88 114 248 138 14 0 233 30 209 133 69 130 63 142 66 123 43 77 222 93 204 17 3 129 183 125 78 92 57 122 217 205 162 5 32 98 18 59 50 41 58 29 115 247 179 45 217 135 97 185 234 197 204 162 211 151 72 148 105 33 110 237 142 79 53 148 113 199 2 95 102 231 175 253 121 200 179 76 97 18 51 161 151 169 102 66 237 93 122 228 212 168 21 86 121 241 116 56 108 90 144 200 38 95 124 115 250 241 217 197 16 23 61 213 42 0 135 123 215 175 201 149 246 57 145 69 129 106 118 78 104 131 138 252 197 77 206 190 103 24 18 144 80 93 58 39 75 226 140 155 42 77 179 146 74 152 195 193 49 33 35 159 228 107 118 104 91 237 241 184 159 162 192 85 240 29 74 68 103 146 49 221 155 154 44 36 252 208 183 201 82 84 195 109 229 37 30 73 109 182 115 114 193 247 100 34 166 135 38 113 134 179 235 187 107 79 219 122 147 171 92 169 235 14 14 69 202 178 178 185 202 141 92 142 25 170 212 135 118 228 91 146 225 186 161 180 39 93 122 131 85 145 22 147 229 247 145 121 59 214 204 1 251 168 33 212 180 230 21 12 187 73 88 205 26 191 126 60 158 17 225 146 84 231 77 68 25 3 121 28 141 177 17 252 64 185 203 231 128 237 49 117 89 108 152 84 96 115 233 24 218 255 186 159 135 169 46 57 123 97 184 163)
#f
())
#(99
"using composition for sequence"
#vu8(49 50 51 52 48 48)
#vu8(182 176 49 56 25 158 180 227 153 212 114 190 109 53 4 102 104 32 197 34 96 21 11 211 237 36 250 198 125 52 109 227 223 197 185 79 134 131 112 77 229 220 229 229 228 252 47 195 220 215 122 63 96 236 57 61 75 123 24 62 61 96 157 42 218 14 107 33 7 204 132 8 154 207 146 9 24 54 7 178 45 251 151 57 244 5 87 25 34 146 245 23 35 184 162 97 187 241 241 24 76 187 234 101 246 218 129 24 99 74 188 169 184 194 63 204 236 215 79 20 196 159 192 200 59 242 230 200 166 206 32 216 197 11 218 196 197 44 192 5 52 128 98 107 1 179 180 104 22 15 196 113 71 235 248 237 247 88 96 165 165 0 69 83 71 99 9 131 173 165 32 231 49 126 145 130 79 222 198 160 209 122 144 1 185 210 50 44 57 200 234 254 103 236 72 78 254 206 236 174 131 200 117 88 157 102 37 178 15 73 78 57 15 199 152 22 203 128 248 243 5 1 129 67 166 139 70 87 34 82 206 10 229 36 15 213 94 64 173 118 211 105 147 205 238 198 189 103 51 221 254 113 234 107 233 89 152 206 83 166 1 223 232 126 53 202 8 246 174 241 26 36 124 234 82 14 231 243 168 199 3 5 62 204 133 249 176 65 175 62 104 37 75 76 60 194 141 16 113 76 217 225 182 203 8 176 249 169 224 166 249 2 160 187 170 204 152 219 144 202 173 231 20 161 237 231 241 50 89 55 148 226 90 70 146 67 215 203 172 118 248 82 216 34 252 130 53 21 65 158 111 10 200 168 90 186 228 42 186 223 39 74 188 90 156 65 39 163 117 207 174 254 108 173 43 230 157 20 221 41 130 155 98 201 247 72 162 246 76 99 43 254 237 186 25 45 123 13 104 107 206 219 41 190 63 240 88 152 102 218 229 172 22 5 142 2 39 252 152 234 227 45 165 102 133 28 2 58 230 127 93 227 210 238 165 106 21 239 253 182 21 212 170 33 118 129 33 111 212 45 80 178 85 221 203 157 222 200 168 27 46 126 136 27 172 211 204 15 26 82 18 221 63 102 220 82 153 69 85 166 122 197 223 6 7 205 253 39 154 219 60 176 152 60 5 160 17 125 170 134 178 218 132 181 206 20 108 29 213 129 21 164)
#f
())
#(100
"using composition for sequence"
#vu8(49 50 51 52 48 48)
#vu8(166 203 196 149 155 29 244 157 117 18 51 229 52 81 63 186 14 251 29 70 112 231 47 118 206 178 176 170 144 193 202 173 132 48 186 112 103 228 233 244 208 162 116 118 42 120 198 164 194 76 64 57 234 102 142 110 81 237 77 249 139 225 50 128 64 120 255 255 70 157 0 172 173 98 15 174 59 227 169 180 109 137 130 74 79 138 74 52 208 200 55 221 110 97 44 5 71 124 57 98 52 41 252 52 80 69 36 214 205 254 224 49 4 198 205 5 171 46 1 242 228 204 202 184 176 142 144 92 174 5 215 248 88 166 122 20 158 142 239 190 228 231 192 28 133 18 21 161 195 3 102 110 195 146 114 181 186 152 112 192 211 130 69 70 179 211 20 191 4 7 227 59 189 142 124 4 172 119 201 53 249 11 70 121 232 177 79 114 70 1 162 91 189 60 97 227 4 2 142 185 237 15 151 77 170 205 95 201 246 254 175 54 35 123 189 65 62 22 170 241 136 198 93 239 42 183 51 83 201 241 122 95 160 212 144 89 143 39 243 199 236 65 188 35 153 67 110 123 166 161 11 143 44 214 99 156 147 44 95 31 133 18 227 226 91 212 13 110 39 118 99 56 40 194 85 111 6 97 187 128 174 122 95 210 46 181 13 139 97 121 22 182 77 248 228 146 125 7 214 22 133 160 195 27 22 139 189 63 137 220 166 54 134 71 53 179 214 133 26 182 212 206 254 152 61 126 118 90 37 29 38 171 152 197 48 209 157 224 33 60 118 37 167 144 70 4 172 214 134 51 208 40 77 131 230 165 89 205 238 226 127 29 195 8 219 242 53 33 162 42 66 115 157 93 184 17 157 188 93 52 34 13 31 48 230 43 205 217 120 8 240 9 32 249 144 237 234 156 60 215 58 182 89 204 68 62 108 56 167 32 150 105 23 111 133 48 105 157 194 46 192 43 240 31 235 75 47 88 103 76 72 56 102 63 219 55 200 174 212 21 191 210 183 155 119 121 56 74 212 85 92 98 103 13 39 28 85 60 192 14 70 83 126 77 37 254 201 85 202 80 67 81 183 199 120 105 147 173 146 51 94 25 191 188 187 143 68 65 113 69 35 242 135 85 184 207 186 3 28 113 157 21 33 172 5 227 153 9 42 212 213 28)
#f
())
#(101
"truncated sequence"
#vu8(49 50 51 52 48 48)
#vu8(149 49 54 81 165 84 255 173 140 37 27 221 178 77 172 12 79 171 53 68 232 45 98 247 68 92 198 190 153 190 58 94 178 183 246 183 219 63 38 185 23 149 33 10 86 144 122 249 174 83 6 183 61 107 137 147 237 167 76 68 24 67 133 196 192 54 139 157 67 20 224 91 160 245 25 223 179 149 147 118 85 73 137 244 232 80 213 226 92 192 192 145 255 175 51 136 207 219 233 70 136 213 78 94 212 149 78 0 247 77 31 113 157 143 150 21 212 64 104 130 191 55 240 193 207 140 28 15 42 108 122 130 170 179 168 32 249 251 36 25 113 207 81 209 91 210 111 141 249 12 211 89 125 158 227 30 37 140 83 55 44 25 73 178 114 133 89 225 116 174 52 114 111 241 118 211 128 85 236 27 218 6 207 169 109 7 196 147 79 79 206 190 185 212 164 192 48 128 206 233 214 17 205 246 175 100 240 81 197 203 205 185 125 145 250 45 229 185 43 187 155 1 189 135 78 30 158 210 150 73 130 189 244 220 145 64 234 132 178 112 6 147 248 4 228 171 156 107 204 254 37 25 100 252 165 121 135 158 44 1 94 101 55 196 136 151 67 218 96 159 167 139 21 95 192 37 72 243 83 219 111 71 3 88 185 198 231 43 28 64 204 65 165 195 218 136 88 22 99 231 33 240 45 68 63 34 201 216 219 5 105 37 216 5 245 5 199 124 39 15 55 196 72 177 92 14 205 178 57 108 215 144 196 52 193 185 207 140 184 137 194 114 192 82 76 68 53 26 187 100 179 182 81 148 235 123 118 36 29 151 29 37 5 194 26 248 85 136 170 152 180 192 32 227 218 16 98 117 214 173 146 172 119 179 131 180 99 247 18 199 10 215 8 92 73 244 81 84 2 38 76 254 31 221 112 162 32 179 160 85 45 113 190 44 143 28 170 63 111 126 83 185 20 123 66 212 151 29 123 3 20 218 151 162 13 172 68 121 88 73 161 85 164 143 64 221 16 210 2 81 137 213 162 166 161 118 228 74 237 38 110 121 165 39 19 216 130 10 82 137 62 253 50 179 210 242 37 9 200 19 36 90 109 245 251 144 118 169 52 3 82 22 127 42 186 14 93 154 243 133 105 254 182 237 244 133 203 16 109 222 40 75)
#f
())
#(102
"truncated sequence"
#vu8(49 50 51 52 48 48)
#vu8(160 87 238 255 127 176 216 55 153 52 78 133 176 142 152 65 14 42 133 246 189 8 188 185 193 90 22 98 176 212 204 201 215 203 186 221 116 148 184 173 57 11 88 229 196 140 159 234 214 16 145 223 123 59 89 199 33 184 36 56 38 91 123 166 227 207 175 57 18 189 62 238 58 143 14 166 76 184 105 106 57 61 186 245 89 89 215 229 22 225 103 133 209 132 132 125 170 201 88 68 90 121 1 58 72 132 228 52 238 117 109 231 83 56 83 205 33 155 15 90 79 170 17 51 255 9 212 60 0 196 159 227 125 255 224 227 250 200 80 194 217 200 224 38 78 100 149 94 179 247 143 161 119 149 221 89 92 56 50 71 66 237 119 184 85 96 227 222 227 134 123 164 167 147 220 175 143 8 250 166 18 83 3 85 189 55 124 128 9 160 134 135 153 154 118 181 228 199 75 54 56 90 7 78 115 22 57 36 87 72 106 134 121 178 38 161 236 250 83 243 102 105 119 175 55 232 96 226 192 116 232 23 177 27 157 212 150 93 102 0 116 174 60 80 22 2 154 63 194 16 130 63 63 132 154 28 143 190 172 229 104 138 122 231 253 51 88 189 214 238 71 217 108 10 230 9 3 96 186 86 1 250 33 205 96 231 21 148 67 143 180 217 155 50 118 212 158 80 101 117 216 111 202 151 73 210 219 150 57 223 105 225 92 137 195 213 85 241 187 12 116 228 241 186 50 151 184 175 254 31 167 13 143 229 161 150 73 161 240 215 240 104 4 176 224 33 89 140 136 27 105 109 138 11 147 150 206 203 97 171 224 225 78 194 0 205 232 15 191 35 207 82 30 17 9 52 238 127 51 171 214 53 93 202 120 245 67 215 26 43 5 50 126 13 189 136 201 190 203 24 23 254 176 127 24 223 105 78 147 18 195 180 226 75 188 206 218 254 244 208 189 153 162 104 223 171 163 137 246 70 36 113 235 145 51 163 187 73 55 155 186 128 56 145 5 197 32 11 137 155 83 180 245 4 212 220 170 193 116 249 157 215 66 239 87 75 224 53 13 140 79 45 179 168 150 225 98 227 5 138 245 185 25 244 2 73 52 156 12 62 120 15 104 91 17 61 1 161 244 64 92 223 142 212 189 134 90 219 45 28 49 64)
#f
())
#(103
"truncated sequence"
#vu8(49 50 51 52 48 48)
#vu8(4 5 13 14 244 42 77 20 94 99 50 46 43 32 218 72 174 195 189 88 220 149 164 101 142 105 190 116 11 101 91 201 75 163 175 156 95 154 247 111 2 62 182 5 29 158 41 86 236 150 63 223 100 207 239 24 98 191 21 180 232 150 211 126 136 74 10 35 182 7 84 20 10 172 135 209 85 131 176 203 132 216 249 8 53 85 202 100 83 12 100 152 78 61 50 43 66 51 176 163 24 206 51 197 120 87 130 153 134 220 253 29 35 223 237 121 211 197 159 252 107 164 64 82 254 159 116 35 35 72 185 228 226 215 4 7 4 73 180 133 45 105 133 96 155 61 79 91 30 229 93 153 97 45 35 219 6 245 210 253 202 188 11 31 92 178 244 113 135 174 194 250 216 243 133 164 56 165 173 93 98 18 87 76 91 97 245 0 160 209 146 210 83 150 130 130 195 147 196 40 85 251 228 111 209 232 86 39 193 84 228 223 153 158 217 93 144 94 137 39 140 35 238 183 156 88 28 155 210 249 37 44 38 94 51 104 149 31 163 39 11 101 130 201 157 128 247 226 181 138 110 162 120 217 139 41 82 115 171 218 137 240 221 160 202 235 63 199 129 150 115 213 17 106 209 105 145 86 63 8 219 12 86 57 225 250 220 240 202 18 42 45 18 134 162 249 148 246 70 254 152 239 211 90 131 153 153 21 223 1 112 9 74 221 18 113 242 227 187 25 61 86 5 216 228 16 208 253 11 179 231 63 100 41 93 236 84 9 54 38 249 42 34 116 152 182 175 122 170 189 136 174 31 5 125 48 182 29 93 160 119 141 103 207 69 198 90 59 238 58 23 32 57 239 233 126 37 243 179 20 92 71 203 130 75 2 179 147 209 95 123 103 226 22 125 163 242 199 64 235 89 31 106 74 106 253 238 14 175 96 47 201 99 175 23 146 202 220 111 207 128 84 50 207 224 5 226 212 72 77 242 92 153 158 180 132 255 230 24 176 62 233 191 211 115 65 142 241 42 248 155 115 186 73 2 27 39 33 209 143 95 154 2 68 151 223 173 242 1 183 246 251 116 21 242 85 253 133 52 182 43 46 44 241 227 55 162 39 13 108 40 111 251 173 208 99 252 9 240 248 233 136 8 32 166 220 125 3 210 188 223 91)
#f
())
#(104
"truncated sequence"
#vu8(49 50 51 52 48 48)
#vu8(37 243 100 184 174 216 120 197 140 175 155 64 250 191 9 211 169 81 127 41 125 190 78 16 30 177 253 132 10 130 229 126 190 158 193 133 32 103 86 252 118 165 61 159 4 94 202 10 77 129 158 135 232 31 176 86 152 4 195 185 246 42 84 172 228 22 60 150 149 132 152 120 173 224 157 250 228 245 15 202 92 104 221 32 30 106 27 194 203 12 249 112 205 234 179 99 9 21 85 107 121 169 174 215 144 58 82 98 136 182 107 0 163 15 86 94 83 135 95 68 140 224 179 181 176 94 59 108 247 29 249 251 223 36 143 193 132 62 235 17 149 85 112 19 107 203 79 130 20 195 158 140 18 206 89 171 161 249 96 98 215 186 94 99 238 23 138 146 16 248 204 83 150 91 98 252 75 13 251 206 194 203 53 147 60 124 193 191 93 94 38 170 99 170 254 60 83 226 184 208 107 222 120 93 185 157 216 204 201 129 67 92 201 165 195 214 154 117 222 44 106 210 42 135 251 146 98 9 149 99 166 161 73 237 150 1 47 37 224 200 126 169 8 133 115 67 50 210 26 102 56 27 92 124 106 48 110 229 113 144 90 33 217 90 46 99 116 163 187 132 174 217 175 60 236 181 114 74 90 254 81 38 84 28 238 186 228 206 207 42 145 128 47 24 171 76 111 66 28 154 195 31 236 127 182 184 131 165 118 225 210 107 22 113 102 61 244 66 129 14 164 5 187 61 49 27 121 93 216 41 43 9 62 86 80 25 97 137 248 58 233 99 98 49 150 206 133 1 48 240 24 238 207 154 147 60 68 47 79 15 59 128 103 226 74 80 211 99 228 209 14 47 37 69 113 179 172 213 195 24 32 156 147 240 2 67 111 220 4 132 55 59 164 123 24 182 234 80 233 169 114 109 173 152 127 240 155 43 205 0 188 205 86 231 87 42 117 227 33 209 218 133 240 218 27 231 25 184 147 160 106 64 195 129 62 206 102 35 220 112 208 17 89 70 41 126 224 188 98 215 51 170 195 241 6 94 111 123 121 215 178 166 242 190 51 227 38 72 40 233 17 176 158 56 88 43 86 240 193 187 70 192 20 80 106 169 200 41 57 38 64 30 12 107 76 26 171 194 215 14 115 148 152 247 35 96 91 125 206 78 171 247)
#f
())
#(105
"indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(109 200 171 101 93 26 118 74 33 156 151 239 64 83 173 223 242 149 126 61 53 11 80 248 93 140 81 194 110 52 217 35 160 128 235 183 167 235 242 254 255 163 40 182 211 145 9 184 33 194 65 116 30 222 2 154 85 200 62 208 140 134 31 103 116 112 184 69 92 160 72 160 227 41 230 126 201 33 148 60 26 107 81 33 173 113 76 63 114 7 168 178 234 30 123 16 12 63 149 168 3 58 250 92 10 191 55 247 246 18 4 84 70 108 1 149 129 187 242 250 38 235 69 111 127 119 60 213 166 10 107 29 185 13 154 38 198 82 223 142 246 62 45 229 181 91 47 193 70 137 225 168 141 249 203 149 225 30 92 228 148 78 27 154 208 54 208 44 210 95 164 106 224 143 221 174 150 245 170 120 83 155 6 43 167 5 175 119 154 86 98 9 128 81 144 181 122 191 86 152 193 41 241 73 32 14 205 18 96 221 20 221 89 203 39 22 14 173 19 194 246 208 73 67 86 165 86 41 95 108 191 93 35 115 24 225 107 62 249 176 72 92 19 161 147 229 159 10 222 251 161 118 209 242 124 165 219 206 237 156 166 203 232 225 18 222 86 8 79 243 189 128 210 122 45 94 147 6 214 245 103 100 254 180 190 88 113 147 10 210 120 192 155 180 68 226 19 167 236 95 31 166 102 90 31 57 198 251 79 79 197 170 139 236 153 20 28 76 85 159 223 151 96 171 64 116 120 14 25 26 157 61 21 129 237 65 29 80 40 70 116 143 162 149 111 117 247 121 162 208 23 44 128 17 97 29 160 162 231 126 47 223 148 175 249 141 251 84 156 160 66 39 40 61 99 34 79 233 125 1 188 59 128 224 142 250 180 43 56 16 19 175 221 29 226 111 227 67 172 254 13 153 129 240 164 50 136 140 126 147 175 218 11 70 24 213 19 102 54 88 85 105 2 194 57 97 86 204 252 74 142 167 189 101 6 39 168 34 142 81 196 37 43 125 240 255 208 245 178 93 245 71 194 105 29 108 76 174 69 8 27 214 110 62 24 255 232 235 55 211 120 171 239 54 32 36 180 183 51 64 206 244 204 235 54 179 141 120 216 22 162 72 155 228 121 36 75 245 253 37 65 106 39 117 53 179 80 169 14 183 153 199)
#f
())
#(106
"indefinite length"
#vu8(49 50 51 52 48 48)
#vu8(111 28 131 229 76 212 129 7 85 177 171 72 54 7 244 79 84 55 184 45 143 239 209 66 142 72 49 168 37 236 125 33 130 254 78 9 16 165 150 65 61 66 90 234 83 102 90 88 98 47 102 191 59 47 212 43 4 212 252 2 18 165 191 6 198 9 60 143 200 124 63 220 213 157 223 180 103 46 62 120 162 137 231 79 119 21 134 80 53 203 29 102 220 130 215 11 69 101 89 78 54 142 2 175 206 9 63 18 16 100 7 244 124 42 33 252 168 66 89 252 205 164 111 205 29 232 59 105 125 72 18 57 70 177 207 205 213 132 21 211 232 187 86 3 152 27 10 227 54 127 122 101 251 128 184 84 81 4 251 248 167 161 223 121 210 185 197 194 119 92 158 37 213 103 92 141 234 91 238 192 29 220 110 64 78 27 19 219 163 205 0 238 25 245 158 95 198 155 184 42 163 26 38 247 229 235 188 136 132 120 62 163 251 251 138 86 85 138 72 125 18 242 181 79 106 121 117 143 47 156 128 52 117 151 156 10 229 62 249 248 8 160 173 8 171 200 54 205 135 19 76 217 86 231 106 68 4 84 228 185 99 45 56 246 122 252 31 237 99 209 66 229 143 229 182 31 238 69 58 212 252 24 4 152 249 29 71 239 52 129 98 46 57 12 129 187 74 209 110 100 29 44 98 35 174 169 185 154 196 168 195 154 170 128 72 226 254 52 254 147 140 11 47 213 240 151 223 111 21 40 12 106 138 247 81 126 79 148 176 208 129 88 40 146 147 126 253 86 174 174 109 253 142 65 12 8 82 115 149 254 88 183 82 12 117 87 227 22 106 134 60 76 41 199 145 114 241 100 196 201 159 8 75 123 207 102 26 38 18 133 26 224 70 86 191 230 64 65 59 69 224 89 124 5 194 33 222 245 16 155 225 28 40 3 131 35 213 252 24 63 11 140 72 117 81 105 109 128 11 193 87 48 62 6 220 187 142 200 106 116 35 186 178 66 207 36 253 228 208 143 198 64 115 90 1 88 134 93 251 51 140 35 206 144 169 244 151 104 54 134 15 183 55 213 4 229 202 109 61 115 58 72 101 217 170 158 151 233 204 141 146 61 49 184 8 141 160 229 117 203 228 191 156 120 65 4 82 112 76 245 162 224)
#f
())
#(107
"indefinite length with truncated delimiter"
#vu8(49 50 51 52 48 48)
#vu8(146 178 192 3 99 111 56 97 109 102 213 156 98 136 6 63 54 232 200 27 87 166 79 187 66 37 250 11 206 61 5 141 195 130 16 152 214 13 68 239 232 201 37 195 77 60 96 123 199 158 182 168 182 103 188 153 128 8 67 188 222 212 72 70 169 116 221 14 204 174 141 182 165 166 191 102 191 141 248 51 6 204 215 133 227 209 107 33 187 235 201 190 3 238 134 241 7 221 154 153 251 34 125 124 149 172 234 250 175 41 69 182 83 223 134 34 105 209 106 169 238 173 148 73 215 124 85 221 153 131 22 249 249 246 248 222 27 47 219 217 234 193 121 21 65 227 183 37 144 34 132 230 234 94 41 171 102 187 0 189 228 176 247 2 137 18 5 54 51 40 240 161 133 82 120 38 161 207 61 177 109 1 107 52 250 81 18 52 214 114 131 6 6 116 127 75 6 194 81 203 21 55 7 32 124 34 231 111 27 133 132 29 181 162 130 85 78 109 53 189 181 64 112 159 161 255 74 34 212 41 186 88 32 73 118 106 165 185 169 118 122 55 173 239 57 156 169 118 240 134 231 184 224 205 214 29 142 194 66 88 5 105 33 180 135 210 235 81 235 238 182 18 210 109 86 120 245 28 241 135 190 81 90 77 198 66 103 76 156 121 126 240 105 106 212 182 191 251 61 149 138 169 91 118 178 50 12 194 56 49 85 230 186 69 236 101 70 213 121 37 200 238 150 242 18 196 106 247 163 173 111 139 200 51 243 227 180 22 245 190 133 161 255 124 247 125 17 46 120 54 236 8 90 230 92 24 59 31 204 89 142 159 58 248 189 3 43 10 175 131 205 239 129 9 189 244 195 196 164 24 201 102 250 69 158 27 190 184 239 72 190 149 5 67 167 132 1 110 132 203 103 210 111 87 85 228 153 191 147 232 4 125 22 233 84 121 109 85 34 178 141 240 162 11 169 242 123 33 65 201 242 14 225 162 66 29 19 130 47 195 93 80 225 214 204 154 212 187 25 123 25 182 185 97 60 247 244 213 101 1 254 145 136 189 135 161 127 108 160 112 201 94 198 76 118 248 99 127 217 82 24 135 55 137 90 50 125 60 144 81 63 71 204 154 118 215 219 247 75 85 67 103 136 43 147 69 69 174 45 3 15 58)
#f
())
#(108
"indefinite length with truncated delimiter"
#vu8(49 50 51 52 48 48)
#vu8(78 4 208 40 221 195 30 247 126 25 179 99 140 206 3 113 154 129 74 162 116 155 4 199 59 225 213 210 35 87 153 24 86 37 188 23 241 17 107 56 107 199 11 255 92 171 165 119 207 221 9 39 10 125 27 160 93 224 119 13 215 39 249 76 90 122 115 165 190 182 17 198 138 118 91 252 233 9 131 230 241 148 129 104 179 146 30 232 254 51 138 225 157 74 243 134 184 193 125 236 62 223 74 183 170 156 217 138 60 140 103 64 183 96 222 11 7 188 126 88 85 197 194 255 25 105 48 208 175 6 116 113 47 75 75 108 128 67 222 130 132 211 23 93 174 243 151 86 216 175 227 191 90 232 104 4 85 83 237 123 216 35 62 8 125 221 79 242 118 36 111 22 170 150 118 216 232 189 45 36 153 69 156 146 124 22 76 159 170 158 154 15 18 135 156 19 254 32 76 66 42 66 86 253 161 246 126 238 223 238 151 253 103 199 38 174 82 45 42 103 229 105 50 88 132 57 170 111 161 144 179 204 237 64 218 202 145 247 242 126 34 195 109 209 126 66 96 228 232 92 209 208 5 53 104 99 238 229 251 9 101 48 84 25 32 3 252 228 157 194 17 16 37 19 16 127 1 207 10 134 255 133 173 14 152 8 161 149 247 33 221 195 132 5 189 19 178 102 3 41 59 14 219 229 8 243 223 93 166 64 39 11 51 167 244 189 64 85 132 103 239 25 69 8 126 87 227 135 252 56 100 188 223 245 222 34 70 200 107 17 225 165 236 86 22 29 17 220 16 203 17 111 9 158 151 0 6 10 13 170 69 201 105 48 170 245 139 68 10 92 120 197 128 87 205 147 80 133 88 220 54 60 51 43 201 168 37 240 192 101 14 73 5 62 105 198 211 121 142 18 114 54 187 3 151 164 187 224 215 250 218 123 92 170 40 253 124 233 200 111 229 124 0 238 225 167 192 207 46 33 133 25 220 82 148 85 207 101 14 161 156 106 68 110 221 221 4 115 51 118 205 148 35 243 246 79 211 221 156 210 239 158 121 241 201 5 190 142 30 47 28 149 230 224 40 156 213 124 40 31 113 90 40 50 88 227 136 125 133 61 185 118 119 232 243 243 167 250 224 108 217 235 41 1 47 254 192 238 51 71 179 186)
#f
())
#(109
"indefinite length with additional element"
#vu8(49 50 51 52 48 48)
#vu8(150 141 103 94 100 218 24 223 95 90 66 174 255 71 158 207 200 204 164 194 233 93 63 117 223 81 50 132 150 218 219 59 51 185 160 192 96 111 204 140 112 158 155 186 3 39 248 202 170 31 91 190 17 253 254 137 185 227 78 94 52 17 205 58 100 224 139 38 134 137 56 107 42 131 176 224 90 153 112 131 190 252 134 167 79 211 219 146 192 68 95 159 37 52 102 128 124 188 172 200 5 146 197 190 250 36 65 170 216 179 202 60 86 21 34 235 5 113 85 109 106 113 225 203 190 243 37 24 63 231 14 146 175 27 178 208 1 27 15 86 172 38 136 215 210 67 100 227 36 189 118 168 248 106 50 116 100 113 151 196 174 98 92 68 242 72 145 54 94 98 189 253 14 80 209 59 58 136 60 226 28 26 86 54 32 164 2 63 34 128 120 229 106 117 236 136 78 55 107 9 166 240 55 41 178 142 81 91 62 191 113 121 226 16 23 208 193 41 131 42 25 249 118 44 186 106 243 138 46 226 48 242 194 211 224 114 88 234 63 80 169 47 57 241 48 80 87 142 224 181 82 63 5 165 190 113 171 15 132 209 59 11 99 238 243 99 46 189 113 57 222 55 179 112 86 152 45 32 33 65 88 43 8 111 240 153 170 79 145 156 226 163 70 228 63 37 34 137 187 33 208 0 92 151 23 87 100 203 156 231 23 174 192 232 238 27 129 222 81 96 20 238 88 133 212 66 178 191 189 214 228 12 105 172 116 225 73 97 43 33 160 23 230 208 222 195 133 19 228 196 4 159 71 253 1 194 59 86 39 78 176 116 41 42 28 64 191 92 7 37 255 131 202 15 161 227 44 126 212 84 171 108 190 87 80 122 25 41 83 4 98 83 21 96 248 176 117 211 99 148 141 195 239 76 63 72 244 72 83 211 149 153 154 174 141 142 251 74 238 158 131 228 144 214 163 231 106 145 170 37 105 85 30 139 130 183 96 2 156 95 56 113 58 249 7 189 174 176 195 96 121 171 62 22 221 103 135 98 230 124 123 243 35 157 238 224 93 233 177 29 90 195 93 187 160 175 250 85 176 104 47 32 189 212 47 95 55 166 2 45 150 39 32 219 218 249 199 224 247 81 7 4 137 200 80 52 159 189 159 159 244 134)
#f
())
#(110
"indefinite length with additional element"
#vu8(49 50 51 52 48 48)
#vu8(153 201 146 146 67 106 63 27 8 129 84 130 109 19 74 161 4 38 242 161 211 163 89 163 22 238 202 186 85 55 244 246 85 233 158 38 141 102 225 70 37 13 160 37 184 42 50 101 216 186 41 148 247 238 201 201 221 135 193 35 34 37 205 152 90 64 222 243 84 164 44 78 211 92 66 135 67 222 246 135 29 44 51 129 191 133 134 99 69 88 194 143 94 236 14 80 32 153 51 89 3 127 172 77 30 207 252 36 104 231 92 136 237 153 108 123 236 47 185 199 137 58 97 20 56 22 98 190 158 71 102 83 151 63 158 147 209 43 164 199 56 165 30 103 248 19 173 52 214 37 199 95 153 172 245 172 179 203 249 153 124 134 197 45 168 180 26 162 1 47 45 73 46 48 232 152 174 95 121 175 16 219 81 187 73 46 163 178 95 75 255 47 75 192 11 53 175 58 234 86 102 40 156 178 104 89 23 211 198 123 50 195 234 190 171 252 121 177 250 39 34 21 123 142 29 54 229 3 49 64 23 208 34 246 209 136 166 44 111 154 160 90 181 62 231 133 30 145 29 206 78 231 76 85 92 53 52 102 2 113 227 251 173 93 57 142 93 4 114 101 16 121 172 45 121 213 206 117 158 247 30 11 56 242 210 240 35 196 217 231 18 106 2 119 60 65 201 150 148 11 132 25 63 237 237 176 118 81 204 213 180 17 229 244 77 14 20 97 73 120 132 47 167 163 140 18 125 120 26 89 185 193 169 247 107 80 173 163 196 131 92 59 162 105 21 86 236 59 144 202 95 252 147 137 14 209 166 253 255 107 46 64 220 183 71 209 194 247 17 46 74 231 94 121 228 6 24 35 243 48 198 147 22 99 196 84 13 72 152 237 32 4 32 159 221 160 246 94 176 100 54 188 86 37 70 208 212 159 129 129 247 170 219 21 153 93 46 52 104 228 27 219 233 111 180 32 121 223 241 65 51 240 81 117 255 197 198 84 126 118 238 35 45 224 136 119 19 217 174 212 218 241 247 43 110 19 16 2 130 27 90 211 10 10 250 228 120 222 155 62 74 85 155 220 141 185 250 82 59 26 164 2 203 0 165 83 32 188 61 30 123 178 188 124 209 163 254 159 54 114 3 146 106 93 162 138 116 93 55 65 179 104)
#f
())
#(111
"indefinite length with truncated element"
#vu8(49 50 51 52 48 48)
#vu8(167 157 172 102 111 125 213 212 152 178 232 75 155 94 181 168 129 56 189 182 142 61 35 119 216 93 209 96 140 207 46 183 60 251 172 171 79 14 204 57 12 119 62 134 118 184 133 18 250 56 49 9 61 200 130 100 118 138 70 167 145 66 32 181 17 246 65 85 1 45 247 146 126 172 82 165 54 122 128 96 233 18 89 209 105 238 220 198 190 120 141 195 155 238 66 181 94 28 152 241 200 89 126 91 197 255 224 20 207 37 2 222 222 56 153 233 30 247 40 70 137 247 38 238 154 180 203 64 93 114 148 82 53 158 33 13 113 33 156 35 110 28 102 198 148 214 157 54 248 83 116 215 246 77 154 212 22 138 69 232 229 3 9 148 75 139 206 195 31 129 49 37 44 228 45 204 132 4 49 162 122 139 45 136 27 173 60 175 172 37 246 83 230 90 24 44 142 213 175 231 92 130 251 5 110 247 214 188 34 232 44 71 243 189 13 56 152 115 196 222 203 192 185 67 19 144 35 49 89 92 147 59 244 69 254 235 106 153 8 253 42 190 38 245 116 75 150 63 207 108 178 37 210 134 18 230 9 193 244 67 152 79 42 200 79 28 73 168 200 20 178 17 19 217 93 255 208 48 112 25 182 117 245 185 30 101 194 208 117 103 130 234 25 105 233 175 219 168 93 24 186 15 123 75 91 194 75 192 100 88 203 58 219 67 26 242 190 41 115 135 162 139 172 137 242 38 107 215 221 227 92 148 131 24 63 130 57 191 123 178 83 223 19 5 202 33 141 29 79 247 1 95 116 223 28 167 225 178 159 122 102 132 79 89 231 237 150 237 40 180 191 83 163 230 188 33 179 72 251 207 20 77 38 212 0 61 62 21 234 94 81 223 187 64 187 247 237 167 245 240 237 81 85 50 189 255 57 67 249 143 206 188 241 124 29 108 199 56 37 240 147 164 250 38 21 80 65 115 20 255 157 83 101 140 159 154 171 0 131 147 148 233 28 29 7 188 228 42 129 111 26 128 240 25 43 118 196 130 175 250 92 14 133 211 89 233 38 212 59 197 149 208 231 75 68 195 198 25 91 197 252 211 172 41 115 77 182 136 46 52 75 219 86 192 221 54 123 148 120 136 9 53 191 248 35 129 245 70 213 24 41 101)
#f
())
#(112
"indefinite length with truncated element"
#vu8(49 50 51 52 48 48)
#vu8(90 109 121 142 213 234 13 50 68 41 195 130 118 184 247 139 211 221 48 15 128 181 112 13 245 22 164 239 53 53 135 2 155 204 172 149 56 97 69 92 236 15 216 202 252 6 220 24 209 191 72 131 199 107 167 197 42 85 33 59 123 87 202 232 120 230 255 162 152 144 196 238 155 31 159 64 47 129 22 140 161 248 252 205 170 161 211 183 18 198 66 110 103 105 11 134 131 145 211 46 17 226 56 200 237 186 122 198 126 82 206 54 76 157 211 48 41 114 161 68 5 228 59 147 226 18 237 0 99 71 75 18 39 206 64 157 78 75 155 108 109 16 13 150 103 14 70 66 114 179 219 110 38 136 191 61 50 20 183 102 33 141 20 203 45 51 197 60 252 183 12 185 85 188 140 202 194 254 41 67 233 32 159 223 4 109 3 189 61 39 136 152 170 250 244 206 135 188 255 111 201 202 17 69 230 111 195 85 52 207 229 233 50 58 193 202 98 102 94 113 145 45 80 179 208 81 12 47 131 28 88 41 163 61 91 134 237 93 103 39 15 33 213 20 116 94 74 27 20 19 21 124 76 5 155 180 51 64 253 48 85 42 11 36 67 179 160 5 248 36 163 251 59 169 48 248 54 195 52 101 83 197 15 220 76 52 78 139 160 235 237 140 90 9 92 159 207 63 103 37 196 151 56 116 12 188 69 15 198 166 224 122 204 249 30 189 200 215 63 231 11 227 234 213 100 130 62 77 200 106 108 242 118 107 29 82 138 208 77 214 87 143 76 213 130 178 63 170 42 45 167 135 136 32 18 168 35 157 40 238 74 7 34 101 238 197 6 55 183 83 201 240 58 200 144 118 125 246 56 195 120 52 162 102 37 31 87 167 40 62 250 138 217 249 234 178 246 54 96 138 119 8 212 29 6 201 67 130 193 221 25 192 87 241 99 228 209 54 62 147 254 193 92 71 57 196 30 20 40 238 62 1 51 84 115 154 99 33 215 20 156 81 116 12 35 224 58 62 49 237 24 86 192 79 211 90 163 245 233 116 229 144 12 41 37 124 80 51 219 121 48 232 225 195 176 192 141 233 86 205 137 255 209 173 222 54 243 48 88 75 83 56 145 80 93 245 35 72 28 65 148 88 66 179 19 106 19 252 24 59 157 13)
#f
())
#(113
"indefinite length with garbage"
#vu8(49 50 51 52 48 48)
#vu8(193 104 49 200 66 3 24 109 85 213 57 28 164 140 49 196 167 234 23 244 200 58 119 48 65 175 143 219 244 249 133 17 206 113 34 222 207 6 183 237 58 11 62 58 63 211 170 153 39 152 76 58 94 89 102 26 227 83 102 178 51 12 174 166 194 163 63 1 19 77 48 252 33 5 41 197 153 233 244 221 11 18 20 42 206 254 246 178 24 237 103 35 221 6 254 136 165 93 62 159 60 238 5 43 131 4 74 70 232 77 57 168 14 177 235 219 176 219 138 10 124 170 82 49 234 130 169 115 139 19 147 231 121 101 9 35 119 114 63 154 107 143 45 106 53 222 234 64 35 216 124 110 106 70 254 156 222 95 206 193 124 229 89 96 167 132 223 2 219 250 163 0 248 233 57 217 175 220 80 158 120 5 226 83 189 214 77 169 220 62 23 205 163 154 79 161 225 131 196 232 31 111 218 90 121 223 42 75 156 211 136 80 158 53 12 71 213 204 3 149 20 162 90 55 236 117 143 254 25 106 253 170 129 116 87 139 160 233 29 67 85 128 241 114 112 132 119 49 18 63 10 159 233 138 117 134 230 200 45 161 185 181 155 67 178 131 192 58 206 141 168 235 86 163 196 182 35 24 147 98 33 0 179 226 119 205 192 238 177 56 151 206 156 103 108 12 20 19 182 117 27 34 12 198 57 68 148 150 43 79 192 154 255 98 14 184 45 89 248 35 175 225 190 35 65 144 139 57 114 235 13 23 40 10 103 222 1 86 234 52 48 180 152 32 30 91 195 131 1 146 137 131 166 20 115 186 40 251 137 132 218 246 209 165 81 72 156 38 214 155 159 135 97 242 213 83 126 81 78 69 61 93 6 186 150 13 41 143 37 161 106 238 178 221 163 190 96 114 83 92 51 108 140 142 150 217 145 5 167 179 221 147 163 16 7 62 82 14 124 202 27 60 163 75 188 253 36 124 152 22 133 231 160 177 65 222 24 149 197 85 210 254 184 131 189 173 169 240 112 237 248 203 254 50 188 188 157 0 166 78 99 108 119 111 231 220 79 251 39 26 185 43 103 59 57 108 144 207 55 116 190 235 127 197 104 223 246 91 70 231 55 100 195 194 145 201 46 226 145 6 4 215 93 61 137 10 144 239 87 70 26 43)
#f
())
#(114
"indefinite length with garbage"
#vu8(49 50 51 52 48 48)
#vu8(140 251 186 184 117 103 193 201 68 69 99 201 63 187 201 144 14 25 123 66 228 125 184 224 130 174 233 157 245 235 116 87 229 2 130 178 132 121 197 154 73 169 57 174 104 25 234 236 159 110 32 179 99 30 77 26 134 162 58 231 235 95 125 125 170 40 238 59 94 226 43 110 199 186 166 84 23 149 213 120 95 212 50 217 88 110 166 153 81 192 226 171 55 14 205 165 131 108 225 97 171 212 77 43 248 17 201 20 92 64 170 13 121 235 59 38 210 150 155 158 128 212 8 200 161 95 70 137 137 176 205 101 175 98 68 83 33 201 1 48 154 24 121 30 184 123 209 20 219 215 249 166 125 156 231 23 211 238 114 198 96 72 19 89 62 136 93 82 167 214 33 76 40 108 139 17 96 165 12 129 97 64 206 186 35 27 155 22 224 95 115 0 107 144 246 57 22 148 25 22 185 135 215 50 19 140 110 139 171 57 159 47 240 239 62 72 171 166 203 218 82 235 163 21 85 168 157 202 116 92 142 32 193 220 71 17 24 156 73 213 143 33 42 179 20 21 146 148 174 249 109 111 60 63 221 188 171 114 53 93 141 59 76 242 99 52 84 63 217 244 225 183 231 131 20 219 21 45 226 130 79 80 1 193 236 37 253 177 204 154 215 167 173 117 63 77 164 88 231 5 23 225 82 177 121 97 242 127 211 59 22 34 46 151 74 221 39 227 79 246 127 49 218 91 203 5 196 137 215 176 187 22 62 0 67 214 61 46 6 74 79 98 111 141 153 23 169 172 10 106 231 157 148 99 7 115 222 228 64 175 153 86 42 122 145 141 119 202 194 211 200 46 67 203 240 42 76 192 14 78 125 189 20 145 81 183 139 26 255 77 227 149 155 133 127 184 207 115 248 192 218 45 104 49 1 212 211 191 206 2 210 52 195 67 17 104 54 207 71 174 192 245 147 206 118 240 173 156 226 6 25 75 77 131 11 225 0 137 55 245 221 100 24 173 188 213 143 54 199 114 227 172 69 107 183 214 117 247 2 123 105 45 62 117 156 190 181 246 252 87 253 30 199 13 69 157 198 21 59 230 240 86 250 92 11 102 12 211 124 13 60 115 168 254 106 54 142 129 196 245 10 67 214 20 127 252 5 126 102 66 0 14)
#f
())
#(115
"indefinite length with nonempty EOC"
#vu8(49 50 51 52 48 48)
#vu8(6 215 193 10 185 219 80 204 173 202 183 84 116 184 217 172 23 221 67 242 76 95 179 125 218 199 56 227 225 2 21 9 117 230 179 124 99 187 205 217 135 185 103 93 111 150 193 255 227 94 116 218 60 19 252 246 137 165 224 195 58 209 29 180 78 135 250 61 177 16 225 155 178 90 108 138 190 87 58 82 240 179 94 113 138 44 51 101 221 165 47 86 108 98 120 94 97 164 127 135 245 109 135 15 20 142 173 53 113 161 86 159 46 88 252 70 168 245 248 183 191 3 166 73 77 155 187 169 96 218 31 244 101 129 93 198 151 72 12 140 77 74 192 142 150 13 159 23 81 26 162 187 99 71 192 217 95 51 231 233 196 68 195 2 1 145 0 203 167 174 185 62 180 218 184 77 128 118 69 89 234 60 211 225 125 220 134 6 162 121 215 189 84 247 242 210 233 238 238 31 242 132 39 203 143 193 212 212 197 82 184 198 165 41 64 132 26 52 9 240 205 194 142 239 181 236 203 185 225 47 96 75 188 140 162 77 2 215 6 246 51 129 8 16 217 189 173 158 231 124 212 151 28 108 92 106 175 55 24 68 12 122 129 145 253 30 91 51 68 53 21 37 82 195 65 129 170 186 214 38 56 78 104 50 155 50 180 171 197 59 21 122 37 91 142 7 125 189 149 14 158 108 186 36 203 220 89 229 78 240 86 19 155 88 153 238 144 252 176 17 57 9 176 223 44 164 71 236 200 96 196 22 192 37 249 214 95 127 23 175 172 183 7 92 51 120 102 10 148 50 244 228 88 45 93 178 0 156 81 128 86 117 34 197 165 142 183 46 251 26 185 180 121 145 17 243 81 251 91 10 131 38 85 148 103 202 67 99 9 76 233 222 95 246 34 254 21 186 133 125 91 36 160 145 163 156 241 191 192 161 245 202 22 127 58 97 239 87 187 236 184 39 99 138 190 24 63 143 241 189 214 35 30 38 42 152 70 154 141 210 175 160 180 54 217 196 126 18 28 169 201 191 49 143 250 0 32 73 14 137 104 70 98 235 84 11 78 202 34 40 38 149 244 34 174 225 82 15 41 14 16 198 166 108 183 226 21 59 189 59 185 9 101 120 75 70 113 28 249 55 80 144 123 99 44 216 22 250 147 152 97 74)
#f
())
#(116
"indefinite length with nonempty EOC"
#vu8(49 50 51 52 48 48)
#vu8(139 221 50 201 235 201 134 23 233 63 92 129 197 249 178 230 81 131 72 108 210 73 220 78 253 190 26 145 170 158 58 174 102 143 128 8 219 127 42 9 196 36 53 118 110 207 67 109 199 59 204 73 110 105 8 161 118 151 18 154 209 89 78 168 209 105 184 145 152 214 50 144 126 5 3 64 88 58 126 149 128 50 140 173 196 198 204 224 104 110 202 28 247 204 84 69 184 72 70 164 4 38 72 18 13 230 33 16 79 5 254 162 245 241 44 162 168 86 187 144 101 77 187 225 171 58 21 51 125 235 126 244 121 143 174 110 179 185 102 77 122 253 202 199 62 25 114 229 171 242 241 108 141 22 114 229 76 151 227 33 244 29 90 206 5 234 235 149 19 226 209 140 188 45 122 26 216 86 170 241 139 200 76 198 205 109 114 115 39 145 145 49 89 112 229 88 56 146 43 61 16 252 77 153 238 219 34 188 162 78 32 229 134 37 137 40 52 54 32 168 54 18 57 185 25 208 58 42 178 165 55 242 34 67 118 87 110 170 74 103 224 224 108 247 158 51 90 163 155 146 142 28 77 122 42 124 135 202 68 1 209 136 113 90 96 99 128 36 8 88 47 180 134 200 137 13 171 19 34 118 102 95 95 23 58 88 127 178 196 211 177 233 213 15 182 46 122 198 197 72 202 109 161 157 26 12 34 167 157 76 25 5 80 225 9 253 58 133 160 173 222 159 0 178 42 147 49 235 114 190 219 27 86 74 120 138 93 247 181 81 99 136 243 127 143 183 181 52 173 189 138 183 235 123 229 230 105 99 198 253 0 190 165 143 223 87 14 217 181 176 170 124 235 251 23 180 119 226 142 205 120 70 26 184 176 204 2 109 43 222 151 254 29 22 67 169 113 103 0 129 172 73 83 150 230 29 35 75 89 30 208 124 88 8 31 233 56 208 236 83 78 174 86 28 239 25 153 188 92 219 31 32 202 254 77 196 34 62 208 21 164 28 234 203 238 242 232 134 187 13 62 94 112 146 95 2 200 233 245 154 251 134 197 147 117 152 253 105 214 30 105 5 77 86 112 196 132 221 213 178 181 74 46 57 99 62 97 29 190 244 228 199 42 139 224 183 253 22 58 181 104 110 9 3 10 188 243 115 254 134 19 143)
#f
())
#(117
"prepend empty sequence"
#vu8(49 50 51 52 48 48)
#vu8(145 136 145 78 226 187 171 32 113 32 225 47 40 13 97 118 205 142 18 39 110 170 148 249 199 183 220 102 216 134 135 155 86 65 241 42 184 178 50 152 45 184 106 209 65 69 25 31 19 239 137 9 246 49 8 128 108 73 237 153 152 130 72 69 115 10 184 109 181 251 58 75 74 177 0 247 157 168 175 92 16 208 55 47 189 44 154 36 72 173 95 59 16 54 95 163 22 118 44 48 49 33 139 74 135 75 102 209 75 229 236 173 160 124 158 119 34 131 169 166 120 69 11 96 213 111 231 26 108 46 187 73 54 197 200 155 102 221 43 104 186 74 92 177 220 40 102 204 55 146 231 16 191 101 72 226 69 101 237 43 21 235 2 254 168 125 35 158 200 128 47 128 42 49 187 98 89 27 114 245 155 251 74 99 64 61 137 102 61 154 178 170 248 125 55 64 10 238 156 68 222 95 36 101 113 187 47 191 5 87 174 4 163 92 181 21 212 34 50 176 163 17 254 205 49 49 152 48 238 109 46 80 94 107 49 90 237 174 182 142 126 255 243 1 93 165 211 144 82 23 130 211 46 220 21 56 110 16 34 71 248 29 6 7 189 167 92 177 94 6 188 123 242 91 243 6 50 7 195 108 133 164 209 203 61 165 185 107 99 141 243 200 15 164 5 121 32 152 52 161 189 152 14 40 218 143 25 22 246 45 155 245 103 224 175 174 115 74 252 43 178 202 130 136 72 113 100 163 167 148 27 100 175 26 134 239 205 99 10 255 33 88 122 233 210 146 127 175 21 52 210 55 101 247 232 132 50 168 226 254 165 63 56 85 64 251 153 42 140 228 46 137 23 108 7 230 102 86 224 63 200 117 248 27 137 126 0 39 131 189 234 14 185 45 31 30 106 149 182 118 246 22 198 160 60 209 201 82 71 127 55 68 197 71 61 78 33 50 231 148 92 41 2 57 66 140 111 20 15 121 144 126 224 130 191 183 230 185 106 63 49 73 86 172 202 52 94 139 131 42 143 151 5 122 51 199 4 22 210 56 44 94 105 81 115 54 82 97 253 31 50 3 146 21 219 75 255 161 160 138 9 145 255 43 208 155 49 238 70 66 240 144 251 2 154 149 188 30 219 110 49 12 189 80 202 207 245 8 236 29 32 64)
#f
())
#(118
"prepend empty sequence"
#vu8(49 50 51 52 48 48)
#vu8(187 124 109 213 158 18 70 42 201 137 81 55 217 158 60 141 150 119 46 108 206 105 92 12 117 171 173 168 66 203 96 44 26 42 116 208 72 225 171 88 27 35 124 202 157 201 9 230 1 43 236 48 244 7 66 55 90 247 160 246 160 14 133 23 108 34 173 10 187 73 202 191 227 177 92 144 55 104 152 53 126 107 31 175 97 66 140 255 105 144 70 162 179 181 52 180 192 171 202 92 28 84 148 198 84 148 117 164 104 163 62 19 158 218 160 156 225 245 157 88 229 27 128 203 124 126 38 139 144 51 135 53 188 48 25 194 137 204 97 10 157 171 182 221 135 81 208 15 122 144 20 141 180 45 129 42 165 58 238 82 35 183 106 25 205 208 244 22 151 174 203 194 134 15 82 174 170 214 234 153 39 191 177 231 235 91 102 196 76 113 124 67 120 21 12 141 241 86 168 220 159 66 185 133 154 121 5 215 154 246 30 122 181 233 170 125 172 242 23 124 18 198 203 180 60 112 129 92 190 241 180 212 215 66 21 100 177 230 88 117 83 182 69 119 150 30 210 59 45 160 17 60 160 182 168 111 120 217 138 211 201 21 105 153 43 30 30 254 197 167 172 205 218 250 141 128 101 67 240 112 91 8 8 252 82 146 53 117 176 104 207 178 39 202 11 184 221 214 92 66 20 86 193 215 2 142 202 236 245 110 47 66 218 182 176 44 107 109 242 87 38 61 148 30 117 64 198 124 208 157 181 7 209 182 60 89 4 122 199 133 159 13 125 49 20 25 206 48 22 175 92 43 116 246 140 60 239 192 115 213 116 10 255 87 54 150 197 246 195 224 197 240 153 249 210 93 158 206 152 25 97 160 89 16 119 226 255 14 7 225 132 155 183 88 116 53 11 104 227 104 196 138 29 150 72 169 25 4 197 61 218 71 176 7 21 119 162 33 125 180 237 158 223 163 58 164 74 37 6 100 208 167 199 200 222 253 5 205 12 86 208 41 243 195 33 61 17 21 203 68 161 9 54 118 23 255 108 218 132 9 232 227 234 247 4 46 73 169 57 30 151 43 112 2 72 119 235 174 104 105 9 187 51 157 63 124 34 82 86 225 115 93 59 17 2 139 255 62 199 172 146 143 132 105 198 11 200 76 88 254 127 65)
#f
())
#(119
"append empty sequence"
#vu8(49 50 51 52 48 48)
#vu8(162 146 250 223 12 88 57 244 180 194 130 168 135 31 54 99 81 210 245 136 157 175 89 94 45 48 159 117 15 231 208 89 97 0 74 97 79 57 138 212 113 56 166 58 158 180 147 244 35 46 128 115 179 15 72 36 92 18 215 0 167 202 25 169 90 245 241 40 165 32 63 128 112 158 124 166 18 168 211 146 77 207 226 141 98 99 81 85 50 135 222 43 186 117 166 174 171 133 152 133 102 85 91 34 228 177 63 139 250 90 129 230 232 182 111 81 117 139 45 229 99 155 183 191 239 153 223 38 77 14 13 95 78 71 91 115 173 85 51 201 134 47 206 42 200 194 132 99 249 162 217 173 107 167 219 125 148 163 135 195 9 201 45 161 86 196 106 116 19 187 111 190 160 220 193 68 146 241 184 252 228 0 157 170 222 253 99 4 232 100 85 154 27 39 228 115 223 122 138 113 102 5 77 158 239 16 81 28 144 234 108 105 204 25 56 149 41 16 31 145 124 37 98 222 58 22 129 250 27 65 199 137 202 230 204 221 130 249 58 157 189 196 119 82 116 120 61 55 168 185 117 148 94 192 90 13 115 98 148 26 4 30 79 231 186 135 98 74 88 101 134 1 4 68 172 121 255 234 141 88 5 125 128 141 59 140 31 44 112 91 143 119 237 94 57 7 161 110 216 104 94 186 147 61 52 241 218 233 151 67 161 26 108 198 164 124 108 22 132 65 204 218 200 28 10 144 6 255 231 148 115 56 93 44 159 116 221 213 93 89 58 240 59 32 157 240 62 202 132 74 38 6 140 45 160 150 123 125 15 47 79 47 44 172 162 222 205 178 237 59 51 186 177 37 10 11 230 10 43 7 34 205 72 25 33 81 142 176 37 244 170 217 106 196 158 64 139 116 236 110 55 46 247 196 146 22 34 178 80 167 61 229 107 42 23 33 181 219 145 145 130 235 58 92 173 78 15 56 61 158 200 45 213 136 229 68 116 16 53 190 149 142 155 241 79 127 2 158 236 136 40 217 143 142 46 252 148 62 253 172 48 46 120 228 36 119 157 218 49 210 158 205 191 203 88 62 149 115 240 163 235 52 141 159 99 214 131 217 225 144 248 247 165 28 31 199 219 146 79 112 203 205 248 199 10 193 236 210 23 109 56 246)
#f
())
#(120
"append empty sequence"
#vu8(49 50 51 52 48 48)
#vu8(34 224 86 156 205 49 135 203 226 9 25 151 69 46 72 197 169 19 8 164 249 201 68 245 138 252 59 161 249 180 193 85 18 27 78 187 203 203 144 165 72 189 249 140 142 113 59 166 202 32 199 1 54 58 244 255 242 176 120 74 241 4 20 7 127 90 7 71 235 96 208 241 163 138 3 217 10 169 82 243 218 61 144 142 184 208 222 152 212 218 222 224 61 79 210 221 196 173 164 56 157 33 218 157 138 44 212 186 117 42 206 139 230 6 192 192 136 225 14 123 65 28 144 234 163 66 197 232 66 95 87 51 208 102 140 88 108 203 236 225 72 45 14 229 133 91 58 93 147 197 16 93 99 29 247 161 209 60 5 151 213 83 11 50 193 58 213 188 126 245 197 120 228 66 50 34 103 164 139 66 123 194 1 211 12 32 16 252 108 62 39 196 11 217 36 232 151 233 228 217 50 70 124 19 137 195 70 92 113 55 78 138 40 151 32 51 45 164 160 236 41 215 170 253 193 21 81 94 218 184 6 76 251 53 198 83 185 156 246 81 194 251 0 77 200 152 160 196 182 106 241 235 55 11 21 86 179 210 136 20 205 206 91 127 255 136 152 30 107 119 7 217 94 236 228 185 183 93 98 75 60 110 255 252 16 34 46 116 32 144 220 3 5 66 183 194 145 139 178 199 62 32 19 154 169 195 131 190 105 14 139 231 79 62 169 235 136 129 198 192 171 39 193 109 223 16 134 122 74 125 206 52 150 177 160 162 41 83 87 212 155 73 143 241 234 10 39 188 126 161 130 167 168 154 124 197 56 89 254 42 200 216 118 227 13 30 129 11 190 252 90 72 190 232 190 123 62 18 232 60 29 255 33 136 20 189 110 164 34 40 250 166 182 145 149 18 31 13 7 156 216 135 209 218 156 27 228 227 179 255 169 228 210 58 24 132 209 152 69 230 199 110 116 217 49 152 132 189 49 98 46 9 82 90 232 80 124 77 75 102 233 58 181 93 87 225 222 231 8 84 46 30 201 186 123 170 47 186 184 196 28 139 228 16 27 183 199 95 247 243 23 129 105 249 56 153 192 192 180 85 2 118 207 22 105 98 25 64 145 193 119 23 148 129 198 32 165 2 144 251 133 254 184 54 101 163 153 240 175 230 217 97)
#f
())
#(121
"append garbage with high tag number"
#vu8(49 50 51 52 48 48)
#vu8(24 57 53 7 136 235 89 4 202 157 235 28 48 235 250 208 200 147 133 34 209 39 19 94 93 207 79 92 172 242 242 78 50 240 86 206 116 218 147 182 133 23 172 243 171 244 91 85 191 209 159 37 173 206 74 237 114 226 254 132 150 55 111 130 153 240 110 85 196 230 251 203 81 107 161 196 117 117 28 46 138 132 141 102 4 216 102 199 163 145 80 86 35 38 93 122 201 182 57 116 68 244 210 41 240 184 44 191 230 115 193 235 126 15 63 101 40 226 182 98 165 181 15 148 219 134 213 58 191 52 27 249 39 231 11 254 106 37 246 218 80 225 56 60 158 104 146 179 204 20 138 202 121 110 193 217 87 199 147 62 184 44 169 46 221 183 218 74 72 142 7 104 225 189 152 14 97 49 44 214 20 20 154 52 32 198 229 252 30 95 152 125 7 202 34 60 243 147 25 176 56 119 222 20 230 118 106 25 27 212 93 89 5 177 249 37 48 230 12 9 62 16 107 37 117 178 84 204 9 101 36 76 95 205 183 136 168 45 60 84 175 219 65 224 9 196 1 145 49 9 224 104 213 89 156 63 165 153 205 105 3 65 100 234 3 228 64 154 41 194 89 65 15 70 12 233 116 62 217 139 163 169 191 233 197 19 99 86 16 40 11 149 5 195 49 190 70 116 97 53 4 190 240 196 94 161 96 48 225 217 23 25 156 105 234 112 27 174 6 207 205 97 67 152 27 22 8 200 102 46 126 160 217 122 160 205 106 44 154 129 204 93 94 244 114 200 60 3 210 179 100 158 195 176 164 154 163 44 237 112 247 22 175 79 37 181 215 136 183 17 218 212 219 195 115 134 81 162 155 8 14 125 209 63 24 41 44 92 49 161 138 118 159 111 29 124 89 112 162 105 60 30 56 233 102 86 115 203 72 173 49 106 58 249 196 33 125 152 251 105 215 204 79 176 238 254 149 5 100 214 102 106 172 104 4 180 221 71 101 104 216 107 26 15 239 145 203 188 164 156 75 221 127 132 93 140 122 220 91 191 62 255 19 220 1 76 178 157 140 127 28 109 3 57 34 208 14 180 161 69 102 175 40 80 215 108 236 21 164 233 171 93 88 17 87 124 212 218 230 236 126 103 146 194 60 75 236 185 73 225 34 18)
#f
())
#(122
"append garbage with high tag number"
#vu8(49 50 51 52 48 48)
#vu8(175 133 209 50 56 28 7 233 8 64 102 158 23 127 147 237 124 81 27 67 65 69 2 26 11 226 37 40 122 93 151 169 193 57 156 224 37 167 59 60 62 21 175 3 78 138 86 143 84 99 212 245 200 159 227 155 40 240 203 169 145 145 184 222 113 190 230 6 33 219 25 128 75 36 1 198 246 55 91 10 218 197 205 153 181 41 39 151 63 105 86 96 254 107 83 238 236 191 40 140 250 105 205 200 145 199 11 231 192 74 56 69 61 158 129 146 143 71 153 201 89 155 30 127 111 15 86 49 157 48 233 141 22 215 120 112 117 252 99 59 195 172 149 90 198 253 91 140 18 247 224 114 114 203 163 211 175 21 6 167 124 83 87 231 193 123 104 131 209 73 141 116 101 166 117 240 21 66 13 160 143 64 41 144 13 173 232 185 76 173 94 94 227 68 92 155 21 155 58 203 129 222 67 10 57 153 110 61 26 188 115 137 232 202 52 239 26 16 84 55 197 67 187 136 153 91 2 235 192 27 151 168 110 225 82 13 21 64 13 188 76 50 160 183 105 238 42 156 113 37 30 16 6 52 222 165 199 119 28 124 124 198 238 139 156 94 47 173 28 116 111 155 230 51 148 193 163 97 113 130 137 102 236 197 40 245 1 231 167 245 79 10 116 215 97 192 160 254 214 189 119 80 71 96 131 80 32 140 136 162 34 182 180 224 151 40 95 243 154 87 98 11 87 155 212 45 0 240 173 240 153 136 193 233 186 131 134 128 107 121 52 125 49 70 11 141 27 150 224 242 106 150 22 235 220 128 8 161 202 70 246 11 41 75 163 158 140 64 128 37 141 137 122 69 163 195 16 205 225 215 16 70 244 79 152 28 141 224 123 114 193 109 186 204 83 17 85 85 209 157 227 143 161 105 65 66 148 202 240 233 15 119 102 209 226 204 58 205 223 251 132 216 177 119 14 197 1 252 50 194 44 122 44 87 7 247 36 89 10 115 233 106 48 178 67 200 97 28 67 66 226 181 241 201 75 103 205 95 237 15 16 129 26 184 43 40 193 108 56 239 42 255 121 92 244 11 171 185 44 25 230 40 34 189 177 178 208 35 51 209 78 254 179 190 130 6 22 93 62 117 23 29 86 102 190 12 146 233 98 53 239 44)
#f
())
#(123
"sequence of sequence"
#vu8(49 50 51 52 48 48)
#vu8(87 243 109 104 29 189 22 172 124 196 71 169 189 119 179 247 30 195 26 225 152 83 222 45 152 153 216 172 247 169 80 2 248 232 56 239 228 121 245 105 149 213 110 152 34 229 146 141 38 16 23 225 255 0 66 208 12 154 168 178 173 192 14 167 39 120 39 158 150 101 163 148 203 161 135 175 91 158 163 201 119 44 240 114 21 40 202 20 209 203 107 207 11 19 167 30 69 82 2 100 24 56 246 188 53 53 99 32 65 71 150 10 92 173 213 227 112 146 156 190 210 17 80 200 93 247 109 252 144 125 74 163 114 230 110 137 26 222 197 154 171 36 96 169 127 71 63 11 193 246 72 13 43 255 201 77 6 98 213 163 92 103 113 170 172 208 126 9 111 152 2 17 107 155 36 64 189 44 75 133 197 117 86 244 254 45 7 101 254 249 199 123 36 40 195 154 17 23 252 38 239 127 21 254 192 141 160 190 3 192 253 70 23 179 32 56 214 146 170 57 153 248 27 255 133 209 120 58 72 166 240 151 59 187 125 241 145 218 112 123 121 116 25 200 86 229 137 165 172 223 240 169 52 176 100 107 195 228 47 207 111 5 104 242 51 9 98 9 70 111 10 171 185 13 158 30 229 148 88 32 244 111 196 215 214 63 18 4 138 84 45 61 77 244 170 242 31 67 253 126 215 65 131 151 27 69 141 161 22 40 100 254 140 133 24 120 104 163 145 107 169 94 128 203 19 12 216 145 22 206 63 250 193 185 211 9 11 141 144 190 24 244 141 97 172 86 99 95 218 24 73 139 75 201 166 172 29 65 229 204 127 115 182 127 40 221 3 87 47 30 252 58 115 67 134 82 195 228 154 107 231 156 147 37 67 144 5 190 13 45 135 217 254 246 81 41 189 108 145 134 160 31 188 56 18 115 139 0 110 137 82 197 0 244 178 113 105 79 60 188 123 157 198 72 190 118 89 47 222 79 215 87 246 143 121 214 89 234 62 219 107 52 52 167 58 18 83 3 225 187 230 210 75 205 142 14 75 54 231 11 62 56 107 24 28 232 41 20 146 236 168 63 231 99 57 1 66 59 165 210 115 225 206 43 187 141 169 182 175 168 202 104 112 206 153 206 199 229 212 112 238 225 29 24 53 1 47 178 40 202 28 80)
#f
())
#(124
"sequence of sequence"
#vu8(49 50 51 52 48 48)
#vu8(52 46 199 148 201 183 202 93 23 172 4 159 56 182 82 138 132 124 168 185 165 108 188 240 93 16 107 79 62 209 69 155 61 153 223 133 242 245 197 95 28 120 175 247 32 7 236 138 4 167 212 132 134 81 32 144 124 196 175 200 204 166 91 186 180 7 246 13 117 72 225 137 174 3 187 227 8 74 94 221 178 116 18 214 62 36 117 178 189 214 247 228 50 227 113 82 34 221 33 171 51 17 183 13 17 153 252 243 161 87 127 148 221 250 156 225 144 41 183 215 233 186 179 84 251 71 17 136 240 57 86 119 59 131 157 76 46 37 39 217 18 252 19 218 239 239 49 30 2 54 87 225 127 42 204 247 247 96 86 227 235 178 75 164 40 129 234 145 109 136 238 73 78 172 104 124 231 92 106 247 188 82 6 162 92 207 57 136 166 195 154 173 190 250 207 73 106 229 134 74 17 118 161 245 86 247 15 169 136 91 78 15 194 99 215 15 17 70 61 20 9 246 220 168 163 250 189 88 152 168 185 58 221 124 173 141 70 241 34 23 58 11 118 67 40 230 73 37 30 161 24 76 77 19 215 35 111 212 32 200 220 223 216 33 223 25 225 255 187 8 45 172 48 34 13 63 183 225 107 249 113 25 23 112 120 66 174 171 24 12 62 224 95 242 82 154 60 91 226 103 119 104 190 76 231 174 215 12 100 200 220 184 199 178 47 238 64 79 189 150 81 167 160 45 81 76 98 231 220 216 3 141 238 235 138 222 222 96 114 9 250 38 59 218 228 165 172 55 184 231 243 198 232 195 169 198 62 189 37 12 88 70 195 49 99 140 20 126 57 243 248 236 182 53 110 146 56 183 121 231 93 167 185 79 73 36 214 50 17 121 110 136 202 17 52 52 85 165 209 177 246 195 145 140 49 30 206 1 229 253 101 247 102 4 100 82 198 68 49 156 244 228 149 230 122 225 193 8 229 183 197 15 229 227 251 227 250 117 194 94 215 28 1 63 129 171 83 167 125 251 128 20 243 87 175 230 138 66 218 46 65 229 246 137 236 221 167 68 94 60 89 150 204 241 110 178 219 194 181 244 196 96 26 164 9 73 41 152 106 119 109 239 29 167 10 83 11 210 29 113 211 239 98 213 89 235 39 39 33 111 15 48)
#f
())
#(125
"truncated sequence: removed last 1 elements"
#vu8(49 50 51 52 48 48)
#vu8(119 15 131 16 126 164 150 224 182 16 76 77 80 112 8 173 0 179 118 8 211 4 38 185 96 216 52 198 70 20 181 237 85 103 113 203 148 95 105 175 0 207 43 5 90 8 193 226 41 45 191 239 1 53 233 19 22 71 50 52 134 7 135 56 145 38 148 23 178 145 250 115 123 223 104 154 17 244 134 56 229 90 82 66 181 86 152 177 193 144 128 253 1 251 75 61 36 9 236 156 195 184 160 108 12 108 50 68 204 253 56 238 154 240 39 232 74 42 176 204 26 144 188 154 247 128 87 157 186 200 142 246 26 90 173 26 140 246 230 37 235 139 24 223 116 19 212 54 61 104 23 20 48 8 136 151 240 44 87 81 163 33 213 196 74 45 226 140 71 57 233 116 168 129 164 107 179 199 211 48 33 220 64 198 186 238 43 133 186 161 43 201 165 64 71 131 76 225 159 42 201 120 89 177 227 129 140 185 23 159 160 79 51 157 12 52 143 54 129 244 14 183 117 176 213 174 109 240 166 83 178 129 109 152 246 163 85 72 70 240 7 195 87 241 243 87 212 207 236 196 23 112 151 176 235 136 220 77 19 45 112 135 47 63 81 241 134 23 120 30 106 79 122 62 215 79 182 83 199 148 110 230 96 3 146 161 19 212 70 213 169 87 254 200 183 151 49 62 207 241 21 234 190 97 204 127 1 175 147 250 26 246 222 219 150 47 38 241 13 112 61 75 152 78 91 195 62 116 222 60 4 40 155 185 169 109 183 24 8 35 191 116 36 91 76 168 2 98 67 140 234 28 242 181 82 40 153 118 176 38 48 31 193 87 13 148 251 135 103 222 245 71 240 134 217 22 9 245 177 51 117 86 49 97 27 129 179 189 241 214 62 22 60 52 87 178 255 20 75 210 169 136 5 235 252 41 183 92 204 96 94 42 152 183 95 102 204 212 24 43 225 145 248 85 140 75 90 175 52 70 184 108 204 31 231 71 88 184 91 85 90 38 142 186 145 172 236 68 115 191 150 114 154 66 63 34 211 34 43 4 42 202 45 120 56 52 139 204 167 86 61 240 101 154 198 98 95 22 120 69 78 126 235 53 174 10 99 135 63 14 12 38 50 164 206 153 8 38 230 107 148 61 112 187 160 191 86 45 184 162 137 254)
#f
())
#(126
"repeating element in sequence"
#vu8(49 50 51 52 48 48)
#vu8(189 167 181 255 237 185 208 7 44 61 216 251 156 163 82 19 223 182 142 97 235 158 58 200 142 38 71 227 167 219 252 40 222 25 52 133 249 117 97 183 199 46 137 148 22 188 177 145 121 140 220 255 47 80 99 10 234 75 41 105 67 169 112 223 185 131 172 212 126 201 144 213 91 30 200 193 99 41 173 148 50 15 177 194 195 184 150 161 150 25 220 32 69 35 172 168 144 50 79 2 43 65 162 11 255 124 164 53 99 20 188 78 149 35 19 237 249 28 190 191 229 90 101 210 126 169 34 144 185 117 173 234 249 82 197 251 196 65 94 125 141 59 214 230 49 155 87 141 229 166 111 208 162 25 119 54 184 141 6 187 208 165 140 166 94 27 166 73 117 156 112 255 201 20 171 75 136 187 129 161 199 230 162 212 50 121 68 201 103 1 158 230 62 52 173 173 213 193 199 124 44 115 61 2 249 53 3 229 50 175 10 81 120 190 121 119 122 117 163 11 194 180 165 163 116 202 97 243 95 157 22 109 155 211 235 10 236 140 195 27 76 126 137 187 117 29 30 56 161 109 245 134 14 57 60 124 124 233 149 163 21 251 124 154 61 92 126 179 143 253 205 58 152 136 197 184 11 25 207 53 136 95 44 162 108 231 138 0 208 86 84 238 151 197 220 164 98 79 92 118 59 218 201 250 69 232 160 245 60 58 24 133 159 84 68 33 247 70 208 0 33 174 205 233 36 102 229 190 87 115 25 0 229 119 17 228 152 104 248 38 40 108 207 68 19 52 17 181 102 181 48 13 146 5 170 163 35 29 2 202 168 67 64 67 227 11 137 27 78 71 150 157 185 207 133 174 149 97 125 179 30 154 157 136 52 248 22 85 44 35 150 73 221 9 98 65 76 198 131 163 144 137 20 79 60 30 232 198 34 196 28 123 155 116 10 132 12 205 127 36 39 86 24 163 241 230 140 80 243 124 143 160 115 191 206 53 98 156 85 18 222 41 229 14 116 207 214 102 0 86 68 105 222 37 0 87 42 62 24 103 245 73 89 11 221 153 242 4 135 39 98 70 116 45 209 20 236 160 41 5 235 170 222 10 56 149 238 15 61 95 199 2 73 242 134 18 85 15 31 122 154 3 86 212 254 211 48 32 18 91 33 199)
#f
())
#(127
"long form encoding of length of oid"
#vu8(49 50 51 52 48 48)
#vu8(79 126 190 116 163 125 83 22 78 138 173 23 7 155 121 141 206 88 157 75 39 135 142 87 120 144 147 8 30 31 214 51 56 113 252 167 148 58 209 68 64 16 248 161 129 194 204 111 179 91 7 41 131 15 187 227 49 53 81 213 29 212 67 1 31 218 9 55 12 247 175 246 92 68 142 82 112 120 30 20 131 41 30 252 111 111 237 254 200 26 218 47 20 31 212 54 246 133 210 138 207 215 226 160 26 210 232 112 48 224 118 216 169 60 73 123 217 134 101 68 9 196 39 196 245 143 247 191 185 147 124 192 104 35 8 4 250 120 151 127 199 100 159 49 32 36 55 219 148 117 219 157 239 78 155 132 9 67 140 7 36 185 192 95 58 217 245 237 153 8 174 50 17 54 125 70 84 66 222 35 142 220 140 44 168 208 225 9 202 190 216 101 254 55 246 164 153 70 81 187 203 77 10 246 30 70 104 8 190 114 156 198 151 141 28 8 161 51 42 33 240 74 239 14 231 126 98 190 207 17 89 11 9 103 4 186 103 33 145 71 176 136 26 0 15 208 107 174 203 135 219 117 73 167 78 8 193 127 44 27 84 217 60 189 67 173 173 205 148 253 17 111 122 164 93 110 89 93 156 234 194 141 94 162 56 71 174 100 36 190 190 45 133 111 28 86 5 248 200 139 160 237 229 139 144 56 46 62 172 246 76 28 21 49 116 115 32 97 244 200 13 7 27 249 133 148 111 203 170 54 32 73 250 134 229 154 114 169 55 129 162 108 15 82 249 58 128 228 45 74 1 250 77 41 41 17 50 95 226 205 112 250 72 215 224 42 232 10 229 11 211 122 43 35 1 12 184 128 91 38 166 65 92 76 109 38 91 62 40 25 108 84 214 92 182 119 54 55 139 0 85 26 68 218 125 47 159 52 95 105 113 117 228 213 98 143 97 153 132 41 49 32 69 242 186 161 101 121 168 81 29 155 70 86 151 155 184 155 171 223 16 28 169 184 29 73 219 224 227 41 201 16 79 247 110 41 15 97 130 233 110 114 152 132 203 141 195 197 212 56 24 80 138 25 244 98 240 183 228 199 144 186 118 1 174 64 212 28 198 103 138 138 110 235 105 77 126 44 55 67 151 220 169 235 198 164 159 247 156 165 70 61)
#f
())
#(128
"length of oid contains leading 0"
#vu8(49 50 51 52 48 48)
#vu8(128 35 70 11 95 216 134 193 111 21 192 163 29 46 197 160 207 67 254 207 181 165 191 76 156 165 161 62 76 7 108 213 84 131 57 138 32 146 1 56 216 33 241 221 234 55 6 206 62 168 77 248 42 21 66 233 144 95 137 50 36 98 232 24 251 210 40 115 23 110 241 17 45 91 194 216 190 3 99 184 77 175 196 223 221 79 9 166 148 70 157 12 96 19 62 47 69 99 168 113 143 6 102 243 209 55 69 108 42 27 100 78 150 49 0 228 59 3 139 8 150 188 161 119 85 103 217 234 111 13 193 18 145 140 42 80 73 192 8 35 101 34 34 16 158 182 222 126 167 132 225 246 32 102 109 97 186 17 39 180 178 239 203 209 132 162 48 3 101 208 75 71 36 250 137 169 21 213 156 98 144 62 147 232 170 43 92 208 79 110 23 19 222 118 51 90 227 74 185 142 42 183 200 178 218 128 9 218 84 18 70 133 178 236 38 136 196 205 50 78 11 85 12 82 18 116 200 72 121 154 36 252 144 28 200 244 205 172 42 131 215 2 232 174 13 189 28 175 182 156 181 239 73 128 227 157 102 131 239 98 69 75 71 208 35 75 206 253 42 157 147 164 130 73 42 27 248 13 162 44 143 67 192 49 91 129 248 69 185 89 127 133 82 136 55 13 206 159 61 66 86 87 62 134 125 159 171 70 229 252 191 65 159 127 135 200 234 211 190 175 157 219 52 89 112 100 138 12 235 42 148 180 135 174 191 236 240 32 202 107 41 80 97 157 166 10 245 131 171 236 208 195 243 95 212 73 242 13 227 198 174 60 237 61 52 128 25 198 2 149 211 36 214 140 166 190 16 113 211 54 101 142 152 214 136 36 104 234 128 134 175 110 198 103 119 7 100 37 189 112 138 4 108 37 154 57 29 144 193 200 159 205 74 128 18 222 3 135 38 48 54 132 25 213 215 29 193 215 125 6 36 252 108 41 32 44 96 207 212 144 74 20 85 149 88 116 200 254 162 235 217 64 33 93 137 120 197 210 60 212 12 172 126 153 87 91 155 83 110 206 179 53 29 238 17 30 122 114 71 152 3 154 156 11 248 181 230 113 6 14 30 73 120 119 120 137 103 251 72 44 166 86 148 114 182 164 253 25 93 209 249 167)
#f
())
#(129
"wrong length of oid"
#vu8(49 50 51 52 48 48)
#vu8(110 147 106 132 78 112 170 202 178 165 43 8 199 34 3 92 31 236 228 78 125 163 117 4 124 138 1 49 7 45 76 211 69 152 37 12 226 217 83 241 188 211 185 240 16 246 231 61 161 107 89 86 178 96 23 131 30 73 55 227 51 28 116 246 125 224 38 35 160 85 62 35 110 47 44 108 55 181 234 111 158 136 242 204 179 59 106 169 40 35 226 52 7 153 143 202 134 27 210 71 76 38 96 112 211 36 51 178 210 216 128 222 226 150 155 72 59 123 71 1 252 46 173 174 251 9 84 209 122 42 185 234 148 176 80 232 74 113 227 47 49 156 181 23 241 200 74 45 244 140 248 121 47 212 254 65 206 83 247 31 203 239 119 162 174 180 181 241 33 69 100 233 188 35 143 146 253 219 122 35 29 21 75 101 177 208 36 65 228 90 68 198 143 183 117 236 186 210 155 107 106 254 11 207 55 247 178 139 156 45 11 242 174 165 64 235 26 0 53 85 33 71 178 83 84 246 149 7 13 236 171 121 30 106 111 69 36 237 125 89 145 187 71 176 85 254 65 16 165 93 191 241 12 141 144 108 59 5 191 1 34 151 203 169 96 1 193 117 19 3 22 166 8 14 158 246 31 10 252 101 62 155 15 130 183 165 240 119 52 134 87 84 117 57 147 200 11 26 237 23 43 47 192 151 217 204 27 176 238 217 236 172 171 79 25 84 244 84 149 77 183 186 201 89 130 138 27 46 62 96 249 167 34 128 35 125 84 101 61 175 53 97 246 90 172 251 147 7 116 218 189 52 181 41 85 215 244 76 184 16 113 187 167 132 62 227 39 132 126 111 145 144 166 137 143 9 7 67 85 149 222 179 174 158 166 189 106 17 209 131 79 102 63 185 175 54 118 247 106 94 18 118 46 137 55 0 235 158 101 244 103 157 210 53 123 9 50 133 169 106 247 101 76 222 147 120 145 155 84 89 201 47 157 67 155 136 203 61 149 153 32 69 67 165 237 137 242 68 87 197 244 63 10 253 54 231 116 162 54 66 196 53 157 29 218 88 28 210 122 236 15 173 79 178 85 64 88 211 124 213 245 23 227 240 233 247 29 158 128 69 79 140 32 17 68 217 102 166 38 175 235 49 170 54 18 108 17 90 51 73 100 97)
#f
())
#(130
"wrong length of oid"
#vu8(49 50 51 52 48 48)
#vu8(137 212 114 84 99 127 25 213 120 203 191 137 171 159 141 213 214 88 65 29 118 53 1 225 13 193 58 115 177 137 132 33 190 11 40 53 46 44 80 92 57 87 203 101 215 69 170 109 236 98 39 149 78 125 127 155 107 232 204 185 143 246 127 87 51 239 168 177 13 32 65 184 98 210 18 58 5 82 145 188 48 56 249 171 253 52 14 172 46 44 233 228 166 237 229 111 234 245 4 144 62 126 138 43 21 52 187 247 116 207 86 219 35 14 192 59 224 218 34 153 205 49 106 242 108 62 32 88 211 85 30 163 49 155 56 162 237 20 44 141 128 106 15 227 8 167 82 39 126 128 97 174 214 79 226 82 70 77 148 214 14 29 219 164 33 186 72 38 32 115 177 20 86 107 60 152 55 207 100 59 141 22 131 66 98 66 130 220 32 39 45 213 217 47 163 222 85 251 30 220 0 121 244 194 246 63 43 173 57 147 35 195 211 105 126 72 235 84 151 40 155 237 252 222 147 3 225 232 222 66 244 94 106 233 187 233 76 225 205 188 30 146 117 94 222 157 206 195 63 73 231 17 208 18 13 242 0 192 221 103 71 128 30 244 46 8 230 211 41 2 135 107 253 154 148 108 226 22 122 101 117 212 249 255 110 173 28 50 12 34 52 72 42 234 215 250 144 114 11 129 21 147 44 242 67 244 157 53 69 225 110 112 175 190 196 194 123 18 219 171 54 149 72 153 236 146 120 51 168 16 135 171 183 93 155 216 84 164 254 77 170 28 60 109 70 111 250 241 95 194 55 23 137 214 74 190 247 155 160 80 54 182 113 49 25 68 23 155 206 47 214 231 7 228 152 126 249 32 26 42 32 83 26 176 221 22 53 1 137 38 150 22 108 71 252 0 225 6 15 94 221 198 77 121 220 175 133 85 26 254 49 186 61 135 170 217 195 2 231 194 43 255 13 122 90 174 16 159 154 27 217 94 2 172 92 65 187 49 119 160 187 175 74 30 254 240 221 158 250 110 9 212 204 57 0 197 160 22 79 109 57 31 218 183 114 12 87 123 127 161 246 227 105 148 87 199 43 215 255 192 188 50 25 142 126 204 135 162 105 70 9 12 1 153 37 42 52 10 202 249 220 94 208 99 176 178 234 215 53 12 229 206)
#f
())
#(131
"uint32 overflow in length of oid"
#vu8(49 50 51 52 48 48)
#vu8(64 161 76 77 247 38 237 15 98 178 148 246 37 115 153 78 130 29 133 90 40 217 144 254 96 11 126 250 213 2 25 178 178 250 88 74 195 122 172 175 80 66 138 54 25 74 226 103 76 162 214 119 82 144 237 164 124 212 11 199 177 90 67 241 241 66 147 237 228 249 12 41 195 165 189 212 8 19 40 208 61 25 81 22 99 209 232 61 174 130 167 145 253 166 169 125 112 206 128 169 119 228 207 107 104 236 131 44 36 228 207 171 11 11 204 151 48 217 83 149 99 11 244 174 32 92 84 205 69 161 184 24 200 59 111 158 69 118 68 103 19 112 117 48 54 146 13 98 194 214 246 77 237 95 130 73 199 155 173 184 189 108 42 22 100 6 153 121 236 56 167 57 169 47 216 17 20 171 241 161 67 165 26 244 168 137 89 18 232 59 92 8 165 32 105 49 254 174 209 38 55 78 135 11 247 62 54 32 60 158 215 0 40 188 251 137 101 242 253 209 21 83 141 60 214 3 226 177 114 85 92 17 52 122 177 92 175 101 204 83 91 192 148 41 253 14 95 242 238 157 222 161 33 177 140 175 77 100 54 194 76 86 196 217 125 229 103 212 222 233 109 174 173 211 16 200 8 53 140 177 251 191 123 172 210 184 126 173 208 99 233 189 16 214 150 155 156 252 187 183 40 113 98 235 42 95 201 4 213 52 8 182 76 253 52 106 80 127 57 186 109 139 171 61 192 26 18 235 215 83 167 17 63 227 188 224 45 219 180 126 45 77 237 94 52 39 88 203 158 145 19 240 242 135 218 51 117 148 250 61 164 236 3 177 103 182 6 241 245 203 66 170 32 95 39 94 81 135 209 102 216 118 157 13 33 15 136 253 149 101 128 255 174 48 198 252 99 123 191 22 32 65 70 48 149 105 253 162 79 211 142 247 167 202 91 208 247 76 168 25 125 43 185 178 239 130 245 141 94 84 26 84 25 13 17 152 161 163 216 138 78 3 49 241 144 15 142 223 45 49 214 216 199 79 6 98 173 146 236 89 138 127 162 127 244 29 228 149 31 220 76 53 60 185 12 174 232 113 231 37 189 162 21 6 142 65 237 29 243 127 98 135 21 125 234 171 63 110 48 198 140 219 113 227 37 113 101 205 212 193 72 155)
#f
())
#(132
"uint64 overflow in length of oid"
#vu8(49 50 51 52 48 48)
#vu8(128 192 29 111 5 172 31 140 234 21 230 173 184 89 22 25 44 54 90 246 134 13 151 96 8 46 230 193 91 254 86 19 155 123 190 129 134 94 155 204 215 117 192 232 5 223 77 130 68 157 172 66 178 157 203 125 64 77 92 176 83 40 66 87 38 119 253 252 131 76 213 252 219 14 180 190 121 138 80 213 131 184 212 186 115 7 18 227 242 215 193 140 67 10 167 98 43 130 57 133 20 65 2 31 176 138 159 152 213 18 19 206 129 208 251 142 7 239 153 0 144 97 11 230 189 147 3 103 215 108 208 104 53 251 50 205 255 96 125 39 245 90 132 184 173 123 140 219 171 65 124 188 48 114 173 170 197 105 76 85 162 230 58 89 166 117 133 185 37 165 106 77 159 71 240 233 1 41 53 151 154 199 90 249 111 122 64 48 99 99 254 59 253 180 40 233 153 138 219 63 38 149 230 140 222 19 16 33 36 57 171 252 181 247 139 86 197 189 61 183 180 140 175 137 117 55 210 156 148 51 34 19 89 208 128 175 159 129 57 217 70 216 122 213 86 23 65 80 143 78 244 0 218 146 206 186 198 64 87 44 98 235 209 208 71 160 245 117 254 168 86 238 250 5 127 172 31 163 252 100 29 200 193 219 99 170 144 116 175 236 71 47 234 240 8 36 151 203 55 254 134 253 132 48 59 80 31 62 3 70 20 134 53 202 161 174 45 199 111 159 215 252 96 101 41 213 255 220 122 116 208 173 102 115 134 171 160 23 213 16 177 30 230 36 173 188 57 126 1 178 74 200 81 27 177 243 209 247 73 83 162 129 20 181 242 111 11 209 117 241 57 73 189 172 175 158 105 175 199 18 247 17 213 28 84 192 77 180 218 60 89 140 5 94 215 134 56 28 68 146 101 67 55 25 194 110 190 68 40 128 240 121 122 37 75 22 93 1 66 82 122 239 8 90 2 91 83 196 34 229 237 76 79 138 214 100 85 54 14 19 68 7 12 158 211 39 105 121 188 210 16 219 67 89 128 51 230 11 250 48 42 2 247 124 48 187 24 72 116 130 210 201 178 100 71 82 125 108 236 135 97 57 55 156 198 178 165 223 159 62 217 29 223 209 154 158 230 149 42 212 255 222 206 38 98 3 187 119 161 54 166 222)
#f
())
#(133
"length of oid = 2**31 - 1"
#vu8(49 50 51 52 48 48)
#vu8(178 96 55 23 134 202 180 129 89 60 233 92 208 58 10 230 110 211 169 185 225 95 10 90 146 138 148 164 79 38 224 201 101 192 3 89 1 202 18 208 155 90 207 205 149 174 119 12 117 152 244 158 159 103 235 124 245 214 39 34 36 44 176 218 89 94 43 90 195 80 20 13 172 78 179 109 241 253 207 34 152 54 85 39 248 118 225 247 152 57 107 20 31 8 59 93 224 111 74 55 116 29 166 216 166 178 39 168 255 161 67 125 154 251 115 188 94 172 25 109 132 110 61 123 32 158 97 239 129 34 128 159 210 21 113 226 40 118 200 34 158 58 107 164 149 1 120 65 153 173 136 54 131 141 44 40 185 15 134 197 112 226 94 220 138 168 235 220 43 194 192 142 139 36 160 250 97 181 127 207 175 148 39 230 137 155 143 209 15 44 38 62 61 46 182 152 21 55 191 70 28 59 192 241 55 72 185 55 254 108 167 218 215 16 193 112 111 190 160 223 24 62 251 30 250 165 234 42 115 166 27 229 122 206 166 220 100 128 219 20 106 7 152 194 213 10 49 11 245 56 218 8 99 5 239 220 222 119 53 218 43 213 228 239 229 241 84 102 2 171 187 55 139 30 140 202 133 80 126 106 248 101 145 75 7 242 113 48 92 172 171 102 235 188 218 164 249 162 28 102 186 225 68 185 126 128 174 245 183 81 80 97 61 70 162 218 57 159 58 81 212 171 232 213 149 159 150 129 152 32 89 74 196 184 227 118 114 85 47 88 227 51 155 37 156 190 251 0 10 184 44 60 0 131 156 38 92 3 43 172 210 95 213 192 199 129 110 101 83 158 180 89 141 102 152 52 226 119 31 15 196 22 196 82 126 12 144 78 150 186 80 221 103 134 246 41 107 77 13 233 61 223 238 134 79 143 140 209 163 140 130 255 79 70 73 74 237 73 191 146 135 33 148 91 94 124 136 21 73 221 49 182 3 57 31 30 171 109 103 237 80 101 209 157 120 21 151 102 168 7 254 5 8 61 19 152 105 73 181 250 0 75 174 72 37 40 120 201 138 237 219 136 75 7 157 197 91 55 113 166 126 41 75 195 174 214 102 210 93 252 134 92 115 2 187 1 47 252 164 241 70 171 234 188 30 177 38 141 136 166 250 162)
#f
())
#(134
"length of oid = 2**32 - 1"
#vu8(49 50 51 52 48 48)
#vu8(132 182 157 70 113 137 21 198 233 251 88 45 114 9 246 77 125 5 146 121 133 180 127 96 144 53 132 247 61 22 82 213 113 236 97 36 48 81 218 250 93 68 13 155 167 238 89 129 60 94 216 71 56 105 82 118 155 12 14 187 150 51 179 2 89 122 62 239 113 52 153 18 148 64 162 14 159 76 51 217 130 38 29 104 184 124 95 236 99 132 117 196 25 130 232 66 41 182 206 126 77 47 201 87 230 96 132 223 229 119 2 217 74 126 143 49 89 156 73 225 186 246 188 255 0 207 26 66 46 131 60 41 35 58 113 219 99 31 18 91 30 253 5 196 114 215 143 18 68 162 189 177 112 125 108 159 155 79 199 2 43 71 169 166 222 21 48 150 110 73 166 126 11 99 70 175 176 91 191 119 227 252 65 90 105 101 9 183 238 76 168 231 176 169 184 207 115 37 247 245 212 204 55 235 205 250 0 157 51 210 133 228 6 74 85 79 11 248 1 5 40 219 80 125 157 209 33 114 35 110 2 97 106 78 134 147 240 100 204 8 231 51 235 27 151 89 86 209 219 83 180 210 103 253 5 103 229 169 19 240 131 223 29 195 5 62 35 119 240 242 224 99 182 156 74 116 27 81 162 204 67 10 37 57 193 62 131 26 127 53 206 151 21 135 176 139 217 10 192 195 216 1 226 46 206 42 103 59 161 226 36 212 190 209 66 248 166 251 219 107 194 165 115 187 208 103 74 5 149 136 104 217 148 204 156 145 22 91 221 182 125 111 32 8 166 183 136 150 167 123 189 161 209 76 161 249 196 157 211 74 228 63 30 133 88 83 150 181 98 35 194 83 91 73 223 39 110 126 37 189 109 117 241 55 201 243 188 100 17 105 12 13 207 155 157 8 130 153 109 248 186 90 54 165 23 142 9 117 232 238 160 0 124 164 181 75 183 246 145 65 114 55 2 38 3 63 151 128 97 66 54 194 26 162 134 67 6 218 52 72 118 252 232 242 74 5 92 175 102 128 150 72 182 8 16 122 176 206 24 129 57 142 229 177 76 44 220 111 73 82 19 23 185 203 104 252 135 123 59 82 180 144 155 225 213 153 168 53 144 56 50 189 36 63 208 218 183 91 67 160 46 171 247 199 198 30 253 245 154 44 226 236)
#f
())
#(135
"length of oid = 2**40 - 1"
#vu8(49 50 51 52 48 48)
#vu8(119 85 49 75 110 51 9 28 66 23 197 3 22 94 116 101 207 39 47 168 86 173 226 205 54 255 154 93 183 184 232 70 241 90 57 65 138 181 230 129 208 56 251 232 154 182 199 247 220 143 247 188 87 4 8 68 176 202 105 5 169 1 158 89 42 198 165 35 176 237 218 125 63 17 226 36 218 37 53 51 142 55 27 5 247 54 183 89 60 55 255 21 111 115 0 59 31 243 53 39 22 73 190 204 216 124 2 213 48 139 51 159 253 91 144 155 0 82 116 162 160 156 138 10 196 37 231 213 21 153 21 132 7 254 5 222 29 65 225 16 8 20 61 252 164 151 247 12 14 40 63 175 149 84 2 95 192 236 219 31 248 59 28 250 252 182 202 143 12 198 233 126 58 58 123 98 176 13 97 204 76 20 1 223 234 226 64 134 34 225 157 92 6 230 159 231 252 31 235 69 112 213 138 112 73 222 135 71 81 48 154 249 238 15 199 202 59 80 250 100 147 208 51 104 64 93 177 212 131 182 20 134 191 6 230 64 152 92 58 223 254 53 64 136 55 22 195 247 130 129 52 125 224 157 195 222 4 74 92 96 195 60 175 6 8 251 182 133 210 31 174 50 19 250 40 11 166 138 171 95 130 43 159 31 90 252 213 24 50 181 148 102 161 33 44 146 6 61 101 116 65 181 95 195 156 219 241 104 1 19 124 181 49 253 35 222 63 234 15 240 29 92 198 138 104 4 251 113 21 167 222 179 89 82 217 160 223 244 211 227 29 82 175 75 104 16 79 133 101 70 25 144 141 8 177 104 129 198 138 82 185 181 43 72 7 195 180 68 37 176 152 124 8 171 147 76 19 66 187 84 105 100 110 192 72 7 152 69 61 92 77 71 31 28 43 89 253 78 78 54 62 27 1 225 240 94 25 21 126 37 8 229 123 97 90 16 22 38 158 255 210 152 144 20 136 103 245 204 65 89 220 64 154 51 32 249 178 18 73 151 218 111 206 72 27 226 65 173 125 79 120 7 134 237 221 94 160 238 122 11 82 254 65 145 72 5 154 173 240 185 12 248 24 37 113 154 190 115 214 249 17 11 1 185 111 205 86 64 249 69 135 4 4 175 218 149 80 146 109 179 97 29 137 178 43 115 208 89 118 173 182 121)
#f
())
#(136
"length of oid = 2**64 - 1"
#vu8(49 50 51 52 48 48)
#vu8(81 114 155 21 124 246 31 157 200 130 69 163 208 202 237 41 28 51 215 56 196 22 221 201 244 170 115 252 23 162 169 179 149 0 163 97 205 13 183 34 67 224 47 175 18 154 204 131 120 246 137 132 45 178 207 240 122 212 62 231 203 243 148 137 2 216 71 238 45 67 119 62 138 134 252 195 1 108 200 121 210 56 186 77 127 25 224 151 227 49 34 81 70 223 201 21 174 28 25 24 79 129 190 71 163 202 206 55 50 123 19 73 153 196 151 66 86 113 168 246 46 102 120 83 1 20 102 95 24 97 223 73 232 239 154 146 78 64 66 77 175 132 123 106 225 41 125 76 85 77 223 50 127 59 34 181 132 136 216 55 18 252 93 115 107 177 30 128 123 251 131 41 116 132 144 46 16 15 169 171 212 243 109 174 97 149 35 157 75 169 218 17 221 104 85 116 86 93 240 178 205 155 76 214 13 186 66 246 70 215 99 21 210 239 245 107 36 247 173 87 68 225 9 20 141 96 138 10 19 11 39 137 116 4 121 146 215 197 8 33 106 19 76 240 220 115 147 28 133 250 19 10 218 8 144 93 0 70 194 197 208 81 37 219 31 186 192 175 129 195 196 101 187 236 98 254 13 147 247 151 22 57 51 80 19 231 218 235 231 73 193 54 151 100 233 202 21 139 210 118 36 253 30 212 64 4 107 220 73 166 196 49 158 188 65 168 19 245 133 153 131 250 2 63 120 27 15 153 255 166 42 162 45 119 54 57 112 244 233 8 94 45 94 146 140 224 220 162 18 45 241 125 188 179 219 114 199 63 104 247 181 7 53 106 209 199 179 196 117 0 64 138 170 74 168 185 7 10 255 167 199 253 231 203 242 156 60 147 210 154 194 40 53 67 224 145 39 149 215 30 33 228 199 34 214 219 148 139 168 195 8 68 135 155 21 31 167 225 84 60 13 221 202 98 195 68 97 172 50 32 165 126 126 250 155 1 212 143 140 65 193 54 18 199 78 71 254 204 174 149 253 142 27 244 27 110 76 89 70 195 42 94 218 202 59 106 137 121 60 227 79 53 121 250 226 167 101 252 33 195 82 29 92 61 91 61 128 215 252 41 249 43 249 65 39 202 14 80 145 18 170 87 157 102 235 154 1 92 0 27 225 212)
#f
())
#(137
"incorrect length of oid"
#vu8(49 50 51 52 48 48)
#vu8(179 154 13 92 252 223 53 52 255 210 177 247 240 37 179 61 217 73 22 74 80 172 186 40 179 4 153 199 198 165 206 215 157 194 120 223 48 170 46 30 128 134 55 123 155 149 138 121 117 31 50 196 128 74 67 95 35 124 116 252 220 172 132 198 252 99 87 35 68 97 150 180 109 68 53 103 113 235 94 39 111 44 138 46 53 155 44 223 5 44 10 215 251 98 159 239 35 252 34 200 44 55 94 229 38 1 248 88 202 231 150 67 100 111 119 228 200 79 204 49 245 4 85 164 128 149 193 235 114 165 75 76 13 211 110 163 25 154 118 42 136 93 32 105 78 8 117 234 45 34 55 5 48 134 221 125 52 152 42 225 9 113 182 187 71 138 133 25 61 17 20 174 165 206 174 120 33 207 202 63 82 29 98 197 126 124 151 181 93 213 252 19 105 96 47 21 135 73 37 116 85 3 204 223 19 19 69 129 91 253 22 179 134 222 57 31 50 207 253 48 165 41 233 242 16 203 59 158 254 134 95 7 181 12 38 129 15 199 34 0 137 177 147 229 16 3 200 25 25 126 13 74 64 68 197 238 172 30 135 40 138 9 29 176 38 136 110 9 236 195 134 207 195 120 183 117 244 45 64 61 108 204 171 46 71 63 25 54 236 203 76 212 29 91 36 104 112 235 227 39 133 216 249 171 197 3 219 90 194 105 85 74 195 182 40 107 59 99 67 77 227 58 238 157 249 123 129 112 80 176 184 87 144 109 108 212 205 77 7 177 29 242 5 139 207 146 68 5 206 2 12 66 208 31 254 4 187 57 25 222 171 4 177 144 209 235 73 6 55 130 136 166 254 177 161 206 1 232 37 108 245 181 248 136 141 108 225 139 9 49 81 174 24 186 203 232 28 66 5 143 211 93 111 205 31 99 133 217 215 160 26 22 76 191 235 104 130 199 208 148 210 240 88 165 104 109 100 112 140 146 137 103 220 140 113 21 234 148 15 153 68 22 86 49 21 216 71 225 195 225 95 99 97 141 66 175 18 180 126 215 107 46 192 169 102 52 180 9 200 2 65 171 207 58 104 176 226 85 185 218 121 133 169 102 255 232 9 143 26 246 199 254 157 166 75 224 83 199 219 154 221 235 20 47 151 163 238 106 144 254 35 41)
#f
())
#(138
"removing oid"
#vu8(49 50 51 52 48 48)
#vu8(23 71 212 150 28 40 211 124 34 95 148 79 251 217 103 174 47 203 143 93 189 62 194 23 207 237 22 177 237 96 47 61 0 177 96 7 249 67 105 167 84 242 64 204 251 240 137 241 58 8 109 126 92 181 195 155 66 5 210 76 27 24 56 171 19 97 140 142 102 7 217 250 82 208 130 67 208 156 42 218 83 142 224 50 251 244 189 232 253 11 128 173 151 165 87 246 211 222 179 101 72 30 104 149 82 93 182 102 76 16 249 9 168 121 21 9 22 8 118 71 7 167 175 196 42 100 165 200 168 239 253 72 85 72 93 228 69 125 116 118 90 168 42 116 70 20 211 92 131 162 30 168 246 181 89 30 236 116 163 20 118 243 159 206 41 51 40 249 211 134 80 112 148 35 8 214 69 153 215 4 174 186 167 7 228 6 243 171 85 148 91 127 145 101 57 44 19 208 105 82 112 17 216 19 210 6 56 216 14 202 127 175 189 181 72 22 30 127 108 142 210 92 14 142 209 208 250 163 23 157 209 142 117 240 19 42 225 27 193 144 79 123 25 90 52 94 162 183 128 37 240 222 109 129 224 92 1 187 23 52 199 102 235 35 228 3 47 235 253 90 54 23 237 54 65 186 126 24 161 108 180 107 169 207 137 221 64 111 142 213 87 72 224 233 232 104 87 138 101 117 71 11 16 102 227 54 180 191 143 164 47 198 135 208 89 12 128 85 134 108 59 179 61 39 47 67 82 88 252 194 32 138 22 29 48 2 103 231 1 75 42 107 201 90 66 99 141 172 207 243 205 173 21 112 188 62 146 116 97 8 213 109 94 203 74 95 191 125 67 6 43 89 6 87 31 65 224 154 63 125 44 88 88 184 12 194 95 159 229 71 116 135 69 57 255 238 251 72 94 37 242 51 8 147 161 106 7 84 182 129 239 52 103 46 184 184 129 173 182 112 15 94 25 37 18 89 163 210 15 66 253 139 155 243 217 188 227 183 181 54 57 86 65 113 174 107 247 137 67 0 149 131 187 30 202 115 128 155 23 3 241 221 190 252 103 142 63 67 92 53 102 118 128 58 96 114 187 208 113 29 54 127 40 247 3 56 65 72 149 189 234 211 201 118 136 193 224 112 247 118 151 238 246 145 168 204 96 150 96 228 246 189)
#f
())
#(139
"lonely oid tag"
#vu8(49 50 51 52 48 48)
#vu8(188 86 92 56 107 16 86 212 139 240 189 254 171 169 84 220 161 152 116 165 17 89 243 237 131 95 46 211 217 2 62 55 82 23 30 112 205 170 31 138 209 187 71 204 146 29 170 179 3 243 113 117 154 94 179 90 32 114 33 25 146 31 43 59 134 109 42 128 108 76 233 236 158 164 88 178 108 62 77 30 28 20 107 78 92 200 85 255 254 39 228 64 154 79 191 28 132 126 230 137 74 116 162 90 40 225 219 220 76 60 197 140 100 94 59 129 190 89 10 239 78 160 56 173 209 55 121 194 157 199 194 87 16 117 12 245 22 85 29 83 232 165 15 66 245 17 123 156 110 19 155 46 143 26 182 67 49 136 106 149 145 54 245 90 3 97 77 35 11 47 43 7 108 93 118 223 93 254 26 62 205 211 135 24 204 108 249 196 217 47 99 223 115 182 103 37 145 118 14 70 237 126 153 173 101 168 0 241 93 242 184 139 174 211 77 112 36 42 232 241 169 102 241 40 159 215 190 218 21 16 91 202 255 250 49 79 137 144 22 173 114 58 62 143 224 103 167 251 119 99 224 25 132 92 175 18 89 184 248 44 191 77 251 134 130 199 172 152 217 41 59 225 240 230 151 221 28 44 91 237 172 90 143 76 132 231 162 127 95 165 18 32 7 153 28 52 164 21 202 124 142 167 203 21 177 107 45 133 120 62 112 62 107 149 238 126 41 32 251 92 163 91 31 14 6 183 243 16 114 85 232 179 214 4 28 92 16 93 34 95 211 238 189 39 153 252 102 119 69 74 138 114 217 8 111 116 30 13 131 180 191 74 76 128 81 229 240 33 148 50 128 137 24 45 231 26 215 12 8 50 135 21 12 66 235 72 198 19 206 210 170 81 199 19 255 250 207 69 28 123 176 59 237 5 40 13 59 48 194 251 112 46 158 253 49 183 231 154 60 39 228 25 36 61 161 72 2 65 134 175 180 2 19 165 201 185 50 89 135 195 171 204 64 24 121 113 184 89 15 111 76 63 148 90 99 4 72 81 57 14 187 110 169 159 197 110 104 44 44 12 27 150 159 31 210 101 167 214 209 26 56 236 150 249 202 81 126 233 132 150 52 189 208 205 254 226 236 240 175 33 48 61 220 151 185 62 156 18 224 161 54 251)
#f
())
#(140
"appending 0's to oid"
#vu8(49 50 51 52 48 48)
#vu8(61 143 85 126 185 242 117 168 97 50 126 219 73 230 74 171 143 39 241 91 5 3 239 100 84 60 181 0 3 200 232 25 141 26 33 178 32 174 127 168 242 185 168 45 21 10 108 7 119 125 104 221 181 30 44 228 149 79 150 147 107 246 47 79 139 4 23 19 138 40 205 206 36 247 96 54 140 248 162 211 22 219 227 5 151 254 96 96 218 30 224 166 168 167 151 116 67 29 99 196 37 167 14 204 192 186 46 110 221 94 103 8 24 63 85 102 137 35 87 54 97 0 73 162 202 72 227 234 63 78 21 150 110 185 84 1 88 29 21 159 137 18 134 20 175 139 160 156 179 128 184 20 160 224 121 140 168 148 19 167 172 77 216 130 176 81 201 85 153 230 153 126 160 41 102 113 3 67 60 143 137 155 151 128 126 165 224 139 252 150 226 207 123 31 118 191 235 209 238 59 222 201 11 110 205 254 193 53 249 124 205 174 25 217 194 168 242 127 214 59 212 235 216 240 129 223 141 176 228 103 166 248 204 255 192 149 37 237 243 69 85 132 70 169 25 239 37 172 182 157 65 146 100 175 132 207 69 172 151 86 175 37 45 129 8 203 16 252 99 254 141 15 21 216 206 140 59 164 170 169 19 27 238 21 123 153 130 30 47 188 71 144 146 169 191 170 231 184 22 4 104 38 225 4 185 248 158 178 71 43 29 96 76 160 157 77 83 13 251 181 206 142 210 203 76 170 160 176 187 12 118 148 179 126 100 173 31 123 194 106 151 107 246 148 103 198 113 86 18 112 179 139 34 79 8 23 224 56 11 228 136 242 168 109 30 183 83 193 71 13 229 110 183 42 24 56 9 121 231 210 244 182 163 151 120 180 84 111 139 71 130 177 155 92 250 65 84 65 113 255 100 10 144 164 24 168 243 251 238 14 12 122 94 58 48 199 252 43 235 99 166 187 81 160 113 214 253 179 202 111 251 254 157 73 137 5 41 164 196 116 82 207 52 248 40 228 108 45 20 67 124 71 250 122 14 209 106 16 36 117 43 90 145 18 105 46 190 199 253 79 129 212 67 213 44 148 132 157 58 29 231 136 12 163 8 134 241 183 73 122 24 236 179 218 49 78 102 182 172 53 153 107 96 150 130 48 126 24 70 209 239 223)
#f
())
#(141
"prepending 0's to oid"
#vu8(49 50 51 52 48 48)
#vu8(125 38 176 27 111 39 42 81 104 49 103 160 163 69 177 50 226 162 89 177 210 210 85 216 57 132 75 193 88 120 55 163 102 185 49 60 51 167 106 142 44 59 13 222 2 61 75 75 69 9 15 168 238 128 238 59 193 204 186 167 166 154 186 76 160 218 250 244 18 170 97 139 74 222 146 38 10 52 182 7 146 171 129 122 25 157 106 78 251 142 219 209 166 177 249 162 185 177 0 236 164 95 37 102 242 156 159 58 248 145 68 40 4 231 249 120 79 254 156 255 45 140 120 72 86 64 102 143 247 192 34 138 203 20 125 102 248 228 46 114 172 137 97 221 111 17 2 237 104 217 129 36 87 194 78 135 112 142 66 37 172 9 139 77 96 79 24 99 250 144 164 90 106 219 182 115 144 215 21 163 147 225 34 158 23 54 187 200 167 165 207 123 123 248 165 209 50 18 43 201 79 96 86 164 125 211 244 171 15 179 149 173 201 110 166 241 237 63 150 208 144 126 20 184 13 83 154 188 153 213 165 236 209 247 207 227 16 173 245 25 161 92 44 250 4 71 25 12 112 152 44 7 179 92 168 156 87 23 184 204 123 174 1 205 199 114 90 244 63 205 76 206 164 23 85 100 177 166 115 196 100 216 63 140 67 219 164 45 14 39 133 36 93 255 204 16 79 46 113 119 130 136 109 205 221 41 202 42 123 165 238 99 14 205 42 209 133 174 41 100 123 114 138 237 56 146 64 1 239 5 80 119 236 1 251 3 51 213 166 135 66 90 131 133 231 236 39 70 53 231 128 224 228 237 80 218 233 96 43 19 49 17 160 143 251 210 102 148 92 182 231 152 180 88 32 191 222 206 139 158 167 172 16 37 63 168 34 228 80 113 184 207 190 19 135 176 183 183 12 160 160 113 203 32 197 240 72 124 46 208 34 18 54 6 221 106 146 40 203 200 146 255 12 57 228 129 110 142 25 116 148 44 192 148 207 163 36 233 7 77 85 252 102 172 241 96 251 133 119 176 79 162 19 164 1 1 51 33 29 89 113 79 193 188 40 74 157 150 217 167 53 26 198 68 212 142 14 246 81 129 66 240 110 253 215 2 101 38 56 172 151 37 203 118 155 140 143 170 209 172 12 14 220 52 77 23 72 63 79 29 192 115)
#f
())
#(142
"appending unused 0's to oid"
#vu8(49 50 51 52 48 48)
#vu8(25 249 16 62 126 169 186 121 192 232 128 191 135 36 19 98 2 181 173 51 40 16 131 132 129 62 191 250 152 225 200 76 127 51 92 153 71 60 183 34 7 55 18 34 232 106 108 111 96 27 191 1 122 27 197 10 66 116 151 48 160 59 246 114 44 36 169 40 21 107 134 188 204 151 144 107 225 238 106 189 227 87 162 236 72 80 113 157 133 7 165 103 206 167 209 88 28 27 253 53 183 138 238 126 68 237 205 236 247 104 214 54 162 87 173 57 249 222 247 158 4 89 188 51 172 166 61 151 40 126 59 179 126 65 72 43 205 192 188 65 7 26 243 160 26 51 86 13 177 161 80 238 116 66 6 220 94 162 13 162 191 117 229 210 183 101 109 133 232 61 155 246 50 80 217 121 152 227 203 238 230 235 62 17 47 89 0 23 197 208 136 58 249 123 125 62 211 110 199 248 252 230 188 132 199 204 203 205 127 105 178 5 249 255 190 42 169 64 249 41 190 1 226 88 97 239 192 188 7 1 243 102 165 25 126 80 218 24 248 215 156 210 119 196 128 134 209 55 62 214 123 152 61 171 129 127 228 79 193 184 84 17 195 32 90 70 244 226 9 71 74 139 35 192 218 105 143 140 65 48 236 142 3 39 20 160 91 179 141 171 96 199 159 234 202 172 57 7 196 163 83 242 28 64 240 13 61 241 35 250 67 39 214 134 87 102 6 175 30 56 4 114 113 47 101 255 6 79 49 234 209 124 121 200 125 170 160 190 121 47 128 116 9 156 231 11 174 16 22 166 47 148 26 161 36 129 27 19 22 166 165 132 64 30 216 179 197 197 133 131 203 67 175 178 145 64 201 4 34 201 85 123 128 51 65 54 4 203 244 37 161 243 214 30 125 138 235 159 152 154 43 77 37 73 96 47 45 181 20 180 75 130 231 133 3 136 204 57 111 91 225 106 193 165 212 233 25 114 66 57 197 199 132 225 109 100 57 88 158 131 32 49 193 161 51 116 30 211 115 161 234 90 124 160 137 22 183 163 5 236 151 221 143 46 192 128 160 81 198 15 78 122 238 54 255 94 198 46 248 19 101 128 108 228 138 62 175 119 204 223 66 99 179 130 7 254 146 42 228 190 180 150 33 170 57 99 118 53 123 3 220 136)
#f
())
#(143
"appending null value to oid"
#vu8(49 50 51 52 48 48)
#vu8(165 197 197 206 178 213 117 1 65 0 170 69 156 238 113 54 250 20 137 66 96 196 45 137 218 139 93 99 225 0 255 91 80 76 37 16 51 25 54 110 22 154 153 81 109 231 208 225 77 55 197 144 181 134 181 238 201 137 169 204 224 97 65 246 225 48 227 119 40 94 76 100 189 245 127 40 33 246 172 168 29 177 187 149 83 144 22 149 96 57 215 79 124 63 71 253 104 158 237 112 127 94 109 239 221 246 143 13 81 133 222 189 3 214 123 216 65 114 72 29 240 26 131 191 164 87 135 88 91 230 85 247 160 100 248 205 134 208 63 162 83 127 6 30 220 191 138 20 28 174 200 12 106 116 90 119 197 250 138 0 130 21 130 231 151 94 15 97 165 239 12 197 236 44 228 143 183 147 221 40 223 208 118 182 116 36 253 36 152 238 1 167 230 114 28 232 104 71 75 202 224 242 158 222 58 58 252 125 109 174 139 195 87 144 221 241 230 31 23 13 102 9 187 150 52 237 107 207 36 130 135 12 112 13 175 162 175 151 105 221 235 123 201 143 239 25 252 4 206 22 99 0 109 68 243 136 201 60 214 244 228 204 86 130 95 52 28 9 7 58 98 82 241 66 64 75 21 33 200 59 66 39 40 153 177 155 120 83 210 56 229 7 132 169 213 66 66 144 209 118 58 68 26 119 9 208 46 73 190 199 199 131 127 255 236 241 58 193 168 252 33 118 75 93 136 227 51 23 42 102 12 129 110 200 71 42 146 29 238 87 130 209 3 127 50 249 185 56 218 32 84 17 192 95 139 160 232 105 254 217 239 183 184 152 85 141 10 84 128 174 0 146 248 54 39 155 244 190 163 242 13 32 43 216 162 205 233 205 17 140 132 202 217 9 190 118 165 170 252 205 96 33 88 5 43 247 210 173 118 85 38 226 102 72 234 179 82 106 93 94 141 25 130 49 232 143 72 118 65 200 35 42 158 21 230 172 177 231 43 85 12 109 96 255 71 243 36 122 85 142 148 178 131 128 50 178 164 62 188 234 102 228 126 85 74 184 120 51 8 199 87 19 213 142 87 186 193 127 253 71 43 187 138 206 33 205 138 163 221 96 231 18 199 109 129 183 190 192 155 35 211 219 72 84 157 186 167 220 180 46 94 158)
#f
())
#(144
"truncated length of oid"
#vu8(49 50 51 52 48 48)
#vu8(149 158 7 142 88 180 218 238 179 207 130 38 39 246 96 59 249 78 204 91 181 208 106 254 71 85 251 24 139 109 127 150 34 60 191 57 33 26 138 55 146 157 250 140 66 149 68 114 61 227 61 143 199 8 38 37 234 72 58 189 82 85 81 160 190 137 162 211 200 13 129 14 122 102 184 97 41 103 92 135 203 229 75 59 91 99 108 5 122 56 88 164 21 24 144 250 69 101 43 103 51 153 204 176 251 214 104 86 196 52 82 64 122 219 248 86 222 170 133 27 62 63 227 157 243 140 227 136 191 141 54 130 82 211 174 31 98 144 50 138 61 184 185 36 135 14 255 67 230 20 105 170 242 243 168 42 90 251 212 255 203 255 23 59 171 129 222 69 52 187 218 133 249 37 113 2 25 117 224 108 237 164 35 43 130 30 140 31 188 143 216 151 8 110 189 90 54 74 33 42 208 250 227 20 118 127 245 53 99 42 186 226 225 29 32 18 212 11 79 125 70 87 250 109 242 143 208 16 94 96 117 65 76 188 5 250 19 154 219 208 247 119 210 128 202 108 184 76 70 184 25 41 63 22 95 178 136 169 106 25 254 88 187 76 232 53 224 242 252 136 39 218 196 131 187 214 12 93 115 152 169 114 54 70 100 76 32 237 208 104 239 168 238 133 128 106 13 176 111 118 27 211 37 254 253 7 86 106 52 217 245 230 24 151 195 154 249 215 185 83 195 222 181 129 123 240 16 132 191 163 248 177 120 62 47 84 90 190 138 199 111 29 30 50 221 197 172 102 105 93 151 111 17 30 5 221 146 31 68 19 6 59 1 65 103 228 82 40 235 7 10 57 13 203 68 68 62 166 236 68 121 76 134 128 74 100 54 138 158 213 29 171 93 149 179 77 232 113 156 96 39 39 219 225 149 45 122 97 7 164 58 84 135 120 113 236 154 130 220 162 55 234 247 174 0 122 60 53 243 63 63 57 64 31 164 225 52 98 62 246 159 238 230 194 221 202 142 37 203 138 7 248 166 150 160 179 68 208 70 207 63 131 211 88 11 26 231 90 240 160 51 160 0 237 73 2 4 238 25 192 51 142 94 172 153 6 220 61 102 245 237 212 2 186 245 87 108 125 245 110 234 23 7 13 255 224 71 153 120 81 224 167)
#f
())
#(145
"Replacing oid with NULL"
#vu8(49 50 51 52 48 48)
#vu8(98 244 190 132 8 198 184 136 78 115 57 43 55 223 103 233 43 192 239 195 172 63 141 117 162 38 208 212 149 81 119 183 29 99 210 91 37 53 63 52 212 236 201 185 56 153 88 18 157 52 103 181 116 72 231 88 32 252 102 48 205 89 92 88 38 58 88 32 39 220 165 26 126 132 118 124 46 97 159 218 119 70 242 48 233 240 103 155 164 64 126 29 39 25 119 78 138 68 118 175 237 85 205 99 109 241 35 145 165 94 79 148 163 123 129 116 122 187 186 197 217 88 145 228 151 28 112 84 2 232 169 230 208 217 196 160 40 243 111 242 219 83 161 38 36 8 110 214 212 222 202 37 128 29 132 157 130 215 158 149 208 158 235 234 141 120 59 36 97 209 175 110 244 186 136 10 173 193 178 92 122 184 223 228 116 248 239 242 0 238 85 31 178 97 198 32 73 155 124 195 109 227 47 32 189 222 120 145 235 14 118 131 137 63 59 217 174 223 10 249 203 6 251 9 6 40 208 184 60 230 204 63 122 34 191 51 122 48 233 179 199 126 17 45 237 40 10 57 30 92 102 119 77 160 27 40 42 231 68 66 71 249 10 78 245 142 202 105 131 250 39 20 66 184 112 111 136 27 63 28 167 195 56 189 83 22 241 107 200 231 245 136 126 84 243 159 24 88 210 73 111 114 74 212 156 191 157 28 83 188 250 76 238 188 147 39 217 119 216 68 206 37 204 62 225 9 165 79 51 199 251 94 215 33 73 244 84 179 157 164 42 166 74 150 34 121 101 147 110 112 199 155 61 30 10 170 103 1 121 229 41 62 96 30 48 207 24 99 43 0 72 5 146 64 59 145 84 8 160 84 203 228 44 129 169 129 46 151 34 251 25 217 109 152 56 206 155 95 131 233 83 48 82 120 227 78 214 118 245 32 196 152 20 254 69 255 7 216 80 133 252 194 98 249 59 98 47 162 106 242 173 203 89 150 178 65 209 55 174 210 175 101 109 177 208 11 85 241 105 53 176 75 246 245 105 97 240 147 99 47 56 118 204 18 133 207 72 38 43 61 84 49 147 45 26 183 197 9 104 27 152 113 79 227 76 89 234 143 242 53 17 129 85 209 202 129 236 31 116 103 203 238 192 186 171 1 75 132 210 109 98 244)
#f
())
#(146
"changing tag value of oid"
#vu8(49 50 51 52 48 48)
#vu8(147 212 98 168 118 226 108 64 30 78 254 210 138 86 255 47 67 40 212 182 109 38 186 79 229 103 156 51 77 116 102 211 185 144 125 75 79 120 233 51 249 26 165 252 24 227 107 117 26 110 64 251 18 33 186 55 93 213 88 5 252 6 35 131 67 85 211 153 133 37 61 252 255 163 128 46 135 25 219 58 33 63 211 80 5 6 18 127 217 163 184 86 240 111 27 165 76 114 4 88 177 164 10 124 52 157 245 37 21 97 94 97 199 187 147 235 247 135 29 127 120 29 244 100 103 228 207 55 0 79 187 184 121 21 251 234 115 54 139 81 8 222 50 234 37 149 77 62 204 23 119 209 214 248 24 237 62 188 43 134 183 196 49 223 72 151 76 94 252 202 183 28 68 248 238 120 130 249 239 128 87 232 126 28 72 174 186 16 149 43 72 247 90 226 150 148 57 136 70 11 212 137 104 138 145 121 210 126 202 17 227 135 143 116 34 23 122 182 244 81 235 196 141 48 234 121 96 155 54 196 251 22 211 95 67 176 172 27 210 231 101 132 31 87 20 19 205 36 116 254 242 141 105 90 125 170 227 164 45 190 207 180 204 211 195 32 11 105 191 57 247 37 161 93 116 159 202 86 238 238 27 108 67 191 89 228 144 174 21 35 121 146 86 28 141 121 148 89 43 77 145 30 141 38 170 149 177 49 236 34 140 93 169 83 103 227 164 160 206 116 247 60 243 168 61 155 163 30 172 150 115 231 51 97 236 197 4 238 82 217 67 71 13 185 102 138 175 130 99 190 230 69 115 56 193 148 57 207 193 210 74 79 143 226 13 242 39 15 195 43 20 94 249 116 209 62 102 97 36 221 171 124 93 135 154 34 85 202 220 188 199 129 103 229 166 175 230 146 210 113 20 80 237 41 245 69 156 164 166 81 104 160 144 241 126 130 50 59 14 213 171 216 85 133 9 7 30 197 185 10 203 115 83 166 191 80 1 186 253 105 12 140 53 205 227 55 110 16 74 156 70 179 196 211 48 45 187 0 207 207 37 45 120 138 0 60 92 197 13 208 228 205 182 164 3 142 75 124 243 71 235 170 73 169 39 12 43 132 109 3 43 93 252 237 132 87 26 28 243 101 198 168 58 63 62 174 113 185 117 102 166 194)
#f
())
#(147
"changing tag value of oid"
#vu8(49 50 51 52 48 48)
#vu8(27 28 63 69 135 128 20 217 27 92 117 123 218 176 157 196 139 56 175 48 104 234 128 225 194 212 18 184 81 140 107 51 130 208 103 187 178 48 141 62 92 16 155 238 62 72 60 144 113 125 124 109 113 85 72 18 172 190 174 64 86 111 32 83 147 196 135 62 99 191 174 90 207 169 94 231 53 89 209 82 89 91 120 241 26 179 49 18 251 175 2 150 179 53 230 239 196 175 242 219 166 64 171 192 204 118 198 156 220 15 71 72 170 26 177 196 174 151 146 226 128 26 133 43 99 242 151 240 214 18 111 213 125 248 122 98 138 18 205 27 51 249 252 251 172 241 64 253 57 50 130 203 156 60 125 4 169 61 60 126 0 221 214 145 9 85 48 100 50 96 151 49 52 80 73 17 217 138 239 251 73 208 78 133 148 162 97 184 19 153 91 161 154 218 99 157 224 144 188 204 16 184 126 209 242 48 74 22 210 164 181 192 200 104 179 118 120 157 3 242 145 174 140 11 185 236 51 109 137 197 134 85 54 187 114 95 185 74 115 220 184 48 240 61 73 212 86 122 68 75 29 220 209 197 117 251 194 122 220 174 167 177 217 137 73 137 10 203 181 84 180 155 249 41 36 234 216 246 22 200 53 99 202 147 135 67 23 4 138 72 215 30 192 170 218 10 123 141 5 218 240 115 232 9 91 201 198 252 40 12 110 53 255 228 20 215 91 5 158 254 188 182 124 229 28 63 110 254 9 103 191 249 15 245 177 236 124 248 24 217 72 95 29 200 186 165 232 227 1 25 224 85 68 143 13 18 176 0 90 5 129 196 162 150 232 73 12 160 50 189 78 160 94 232 215 188 59 207 41 12 235 225 30 161 22 96 158 19 245 251 123 159 44 170 233 197 253 35 60 136 184 245 237 144 181 200 161 103 24 124 149 16 230 233 2 235 146 122 167 179 21 218 195 206 20 26 170 97 163 35 143 41 193 154 42 240 215 108 158 229 148 66 87 100 77 129 164 232 163 165 235 212 171 160 0 28 79 230 238 166 141 1 160 176 254 113 95 89 30 7 215 179 159 86 10 145 243 85 149 66 168 254 155 227 148 36 253 133 47 93 234 153 82 76 221 236 209 199 18 123 225 246 82 77 93 226 172 209 12 1 218 116)
#f
())
#(148
"changing tag value of oid"
#vu8(49 50 51 52 48 48)
#vu8(157 224 200 32 41 13 167 254 222 59 52 248 147 108 39 129 47 215 192 57 194 58 73 17 114 21 238 153 226 193 126 228 60 72 114 123 108 247 90 64 73 54 211 147 193 197 146 239 1 70 130 212 145 68 38 60 236 40 112 140 25 9 205 74 236 50 112 204 220 129 222 135 47 48 182 47 198 55 156 203 95 207 112 86 193 0 178 219 110 87 244 210 220 33 122 14 201 163 214 233 18 119 108 64 27 17 215 91 25 62 75 93 1 4 169 43 1 16 216 175 3 116 8 96 209 130 76 85 105 69 17 131 192 249 168 187 187 132 182 77 42 204 5 149 255 92 104 238 32 62 10 11 20 143 174 65 21 41 138 233 239 218 137 174 211 199 165 24 95 142 38 185 184 70 191 238 97 217 141 169 191 11 182 205 94 64 41 219 177 15 150 233 243 8 21 49 99 153 128 122 179 26 172 168 179 18 122 211 94 45 232 192 31 47 99 8 40 152 255 121 19 227 184 203 190 145 145 202 148 7 76 60 153 234 208 179 99 211 93 100 223 33 20 98 244 42 48 178 128 244 147 61 23 176 249 223 158 203 244 36 192 124 115 63 239 134 140 26 66 204 56 4 33 223 138 108 42 212 144 89 208 207 122 165 133 194 163 49 78 26 9 48 163 64 211 12 180 212 219 203 5 20 167 232 251 190 147 166 7 19 82 202 145 233 191 188 233 6 24 155 138 49 154 79 68 251 212 170 229 36 119 249 11 117 248 37 120 173 191 19 16 198 198 32 17 39 159 27 200 199 21 25 66 139 139 155 229 120 165 83 33 37 164 121 0 233 22 127 51 209 131 7 206 84 177 64 119 139 85 2 181 162 33 152 209 48 12 224 61 22 235 185 92 74 146 122 105 185 218 250 252 235 180 67 92 171 120 8 81 206 88 107 116 111 27 180 97 134 188 255 194 231 140 88 33 16 135 148 133 70 235 146 96 116 42 233 56 179 240 79 16 209 148 164 201 55 249 175 253 87 59 233 148 41 69 224 114 12 93 59 71 64 246 164 152 37 145 149 36 62 81 18 122 88 28 214 114 143 13 142 246 114 97 50 7 55 144 104 22 129 3 36 8 157 158 83 91 17 19 85 212 188 27 26 29 8 47 228 72 32 119 78)
#f
())
#(149
"changing tag value of oid"
#vu8(49 50 51 52 48 48)
#vu8(26 20 20 50 128 207 213 85 189 5 161 61 157 84 106 148 245 252 14 121 148 235 163 36 117 234 7 247 58 174 242 245 233 20 198 1 141 177 40 53 179 22 143 216 227 156 213 128 145 138 82 174 9 223 3 185 58 252 35 53 240 92 175 94 217 68 249 33 10 249 34 49 8 181 11 196 154 72 98 116 135 247 19 26 18 211 93 51 141 132 12 116 150 26 85 180 28 9 155 21 45 5 35 113 237 21 167 132 157 251 55 246 90 152 15 98 143 64 51 128 61 236 171 61 182 76 128 203 57 207 239 217 74 56 226 28 156 101 13 119 52 164 2 98 32 12 27 146 101 200 35 176 6 163 196 217 94 26 195 205 212 147 1 94 70 22 183 11 247 63 240 205 255 229 197 192 93 232 229 0 124 141 88 97 63 180 40 14 112 229 28 207 38 128 9 143 216 158 236 106 161 216 96 208 58 139 44 183 34 32 138 104 215 33 113 60 166 194 197 197 20 219 110 41 96 135 168 170 74 101 224 190 63 114 26 154 191 70 170 71 103 103 122 0 22 226 126 22 253 18 208 14 160 185 189 48 184 244 78 105 141 101 154 237 255 52 254 230 245 99 234 216 143 210 213 63 44 82 96 242 61 41 154 75 234 24 41 184 90 232 152 180 125 118 254 100 230 41 76 26 118 41 112 46 88 7 249 174 19 26 138 195 76 105 76 130 132 6 94 152 106 65 52 64 22 117 238 65 36 254 203 251 119 46 240 87 165 162 96 43 36 225 132 43 122 74 22 11 240 236 107 89 158 158 199 237 111 75 182 190 12 39 192 198 80 90 255 75 58 184 137 163 232 185 194 75 211 41 211 154 54 43 132 70 169 176 24 39 51 7 130 50 60 69 84 102 133 95 93 225 151 70 63 228 217 129 13 105 73 11 18 203 146 2 59 74 2 160 20 41 216 224 63 34 223 233 246 20 170 50 111 10 122 13 21 60 198 244 247 201 181 211 145 111 187 241 21 131 156 114 80 101 127 3 225 121 49 38 157 4 63 22 97 43 225 24 243 214 75 10 138 133 253 87 172 127 188 2 186 122 82 18 197 231 24 19 163 247 17 36 92 104 163 178 141 180 114 52 98 175 22 225 163 219 148 231 156 52 75 118 20 180)
#f
())
#(150
"changing tag value of oid"
#vu8(49 50 51 52 48 48)
#vu8(118 175 172 177 27 115 242 222 1 192 20 130 179 185 192 224 190 10 129 75 208 249 219 254 115 229 172 196 157 64 137 215 112 45 205 156 196 187 58 78 251 48 54 200 255 6 47 216 22 180 28 226 177 68 198 247 252 204 156 110 222 196 70 9 209 61 5 32 17 186 105 148 199 76 48 197 225 118 112 186 7 134 138 238 239 241 138 101 167 4 8 250 66 36 40 187 169 19 27 133 134 194 164 172 42 240 170 194 194 160 162 165 111 49 38 209 183 109 210 96 138 61 149 18 185 57 101 89 73 26 152 199 97 34 110 212 53 172 101 113 114 102 75 134 95 197 160 56 116 127 62 226 37 105 77 228 52 131 142 11 135 209 79 237 113 169 4 111 179 100 52 16 64 81 161 122 101 141 118 177 41 191 253 37 161 16 152 19 127 86 28 196 242 227 167 44 198 102 25 101 136 72 218 252 95 171 206 103 7 172 243 201 25 202 47 136 253 65 23 235 59 152 5 210 160 13 198 93 167 174 150 86 231 125 103 24 114 215 61 204 67 231 42 12 148 132 96 97 205 122 179 97 240 227 211 62 3 215 39 50 227 149 69 230 40 61 168 181 7 38 198 204 174 192 255 150 197 163 80 77 168 91 17 230 30 22 122 121 101 237 24 184 40 188 231 96 111 26 171 175 102 112 28 45 124 35 166 199 218 187 232 224 135 206 83 2 209 107 43 223 195 114 190 79 112 2 231 211 32 75 93 65 14 218 176 21 153 93 188 66 88 32 90 118 217 186 25 129 218 199 10 175 244 5 156 135 37 91 161 150 20 10 10 43 142 72 78 219 175 36 45 211 225 71 128 196 153 199 140 92 128 156 177 31 160 50 158 23 212 125 137 11 64 17 131 138 238 84 91 67 18 81 117 39 235 89 255 245 229 42 18 92 232 219 185 218 229 247 47 53 119 52 76 212 242 51 15 9 117 142 54 181 13 253 56 0 99 130 118 115 147 195 8 192 172 249 244 187 12 88 11 238 62 182 25 184 217 74 48 86 142 181 166 123 50 230 2 55 15 112 35 195 99 199 182 216 172 56 204 38 102 145 78 191 190 11 25 10 3 36 5 215 60 124 42 140 253 19 73 228 254 203 144 215 229 5 117 227 211 245 190 74)
#f
())
#(151
"dropping value of oid"
#vu8(49 50 51 52 48 48)
#vu8(160 140 195 96 255 215 250 28 223 130 190 29 46 229 163 155 157 250 157 52 238 201 167 229 18 84 68 160 128 206 62 244 144 97 216 241 136 250 205 117 27 6 171 244 171 67 96 174 52 60 36 82 68 190 232 246 81 124 137 68 145 194 219 253 148 207 252 168 52 64 102 0 154 75 225 39 93 203 243 147 45 88 86 110 141 113 190 35 101 211 172 8 19 80 114 109 66 156 192 164 237 238 196 23 19 163 73 111 252 196 118 69 24 98 25 1 66 216 149 68 152 81 240 122 121 189 211 56 118 151 220 11 118 161 71 110 207 233 203 5 103 91 73 161 47 53 82 208 195 217 2 57 137 153 33 251 65 189 38 119 78 0 171 39 2 150 48 12 125 252 87 127 133 77 120 104 96 15 138 198 157 126 250 92 243 49 9 90 193 48 13 65 12 111 37 173 72 137 68 116 233 0 140 145 205 254 177 135 254 175 71 198 244 202 180 228 207 131 179 0 177 154 86 106 189 217 87 103 126 182 61 48 197 60 79 234 253 59 243 126 43 212 104 15 44 78 71 58 28 235 68 221 127 241 142 153 220 166 197 6 254 172 7 133 37 95 145 160 50 103 163 38 134 3 228 211 156 207 22 136 10 67 108 44 135 199 158 7 93 212 231 18 87 124 185 219 224 222 196 244 35 40 205 31 54 148 120 171 67 237 81 107 219 69 217 31 178 55 25 65 73 238 137 220 101 110 8 20 249 81 173 48 247 94 160 74 14 205 248 227 212 101 125 71 41 5 2 214 123 209 254 24 185 83 7 101 228 219 16 33 29 162 225 71 8 73 215 2 26 57 205 78 123 149 68 100 41 101 149 6 72 131 55 76 211 173 90 196 23 250 72 251 40 22 213 137 107 215 240 181 136 190 158 72 50 70 196 138 253 152 152 180 152 137 209 58 248 81 208 100 205 203 180 206 53 116 123 21 209 199 160 80 170 244 148 186 126 121 104 127 89 243 38 172 174 119 23 66 172 127 123 15 26 104 3 33 208 53 111 151 22 66 3 38 14 24 125 102 31 233 56 123 157 32 248 242 110 56 113 235 10 227 49 180 150 37 153 73 7 67 225 237 80 156 80 213 87 33 190 53 26 183 102 47 45 158 3 150 153 235 170 82)
#f
())
#(152
"using composition for oid"
#vu8(49 50 51 52 48 48)
#vu8(187 89 181 131 44 192 180 203 100 156 249 189 133 72 204 2 95 101 150 254 115 195 49 86 132 204 206 27 121 180 83 9 51 40 51 110 223 216 86 32 69 164 186 65 58 236 10 230 54 120 254 249 64 44 176 170 222 206 178 15 148 25 166 84 216 28 131 239 14 65 131 121 122 5 64 145 221 143 176 109 134 20 171 13 38 108 190 243 184 113 189 181 100 61 190 122 147 251 10 115 49 102 165 86 153 58 96 128 144 131 239 90 75 199 11 82 92 92 13 227 239 34 13 114 80 89 86 20 54 236 33 98 195 190 185 121 63 78 152 73 231 184 158 10 38 196 68 70 229 44 81 78 128 0 201 242 6 103 111 214 160 52 213 74 119 195 28 167 60 35 150 245 128 72 214 201 1 72 253 109 41 36 191 18 94 59 18 110 221 31 23 253 243 20 152 186 4 183 184 109 165 241 196 166 132 58 123 246 57 77 2 27 22 146 172 198 65 208 149 111 243 189 107 118 99 164 117 158 175 233 32 235 40 163 99 173 18 207 187 246 84 52 58 202 159 103 12 230 117 126 225 47 33 68 108 35 234 50 172 70 183 157 16 163 187 85 104 60 170 151 69 6 7 181 71 57 32 207 16 199 5 155 87 25 67 1 2 220 81 27 3 159 154 85 185 225 130 67 50 201 176 226 150 8 102 108 15 28 163 124 140 41 154 156 28 94 203 37 226 185 105 89 3 248 212 6 201 140 12 163 215 64 82 240 157 22 205 47 74 96 125 112 115 43 141 135 114 133 201 8 154 229 157 172 128 224 49 229 99 40 50 112 223 252 2 77 189 142 112 18 13 68 176 253 54 198 67 193 53 168 17 220 4 47 163 118 234 221 242 227 193 253 95 42 35 192 183 244 129 245 160 83 218 122 73 113 217 17 219 58 204 109 74 62 96 182 59 41 29 235 255 119 251 85 172 197 183 8 29 199 92 101 23 6 152 110 144 233 247 126 220 45 207 114 30 173 2 15 134 187 177 186 67 159 253 22 93 18 126 81 6 59 9 22 243 108 162 146 234 226 105 98 207 154 89 246 142 248 210 0 101 45 66 209 60 128 206 127 11 88 23 250 156 112 22 0 164 236 63 231 112 164 180 42 168 230 1 108 209 109 141 171)
#f
())
#(153
"modify first byte of oid"
#vu8(49 50 51 52 48 48)
#vu8(85 122 12 189 155 139 22 181 201 96 59 45 54 229 65 49 61 34 161 144 79 68 109 189 48 131 8 103 154 9 108 47 195 17 13 78 152 164 116 224 245 167 224 70 40 240 102 180 72 6 151 221 41 214 61 248 16 239 127 24 144 213 177 108 58 113 114 32 13 191 126 255 40 98 187 230 238 160 23 203 140 152 9 123 236 31 52 42 152 94 215 217 228 98 165 93 162 73 249 165 35 200 11 28 181 222 248 83 206 148 207 67 210 34 67 192 40 200 66 1 169 147 210 235 72 168 118 114 47 147 154 170 129 169 233 46 101 176 126 84 24 148 229 188 35 216 204 144 27 18 29 203 111 84 58 18 39 42 129 200 39 75 207 153 107 176 16 24 141 153 239 187 224 116 3 199 8 8 94 94 123 36 172 9 233 107 47 190 86 28 45 74 212 154 179 249 212 94 215 194 191 236 221 38 240 137 185 187 179 54 28 132 134 7 251 80 235 176 15 220 216 188 157 234 108 211 17 234 73 190 137 177 252 89 6 62 242 218 122 155 3 197 184 175 245 71 142 125 138 122 171 139 39 18 21 212 242 106 251 13 107 113 180 82 14 237 180 104 124 114 226 102 128 231 156 32 172 6 247 162 69 176 37 117 103 211 243 37 193 134 248 145 40 149 19 132 140 112 102 172 185 98 65 177 239 194 191 42 41 8 243 149 118 201 151 97 49 216 158 77 31 124 113 240 164 185 114 56 208 94 126 70 205 32 124 12 134 77 248 184 223 54 129 96 253 118 110 251 152 204 205 135 154 254 72 207 68 142 234 79 102 11 6 155 224 177 90 107 189 86 22 113 153 124 93 146 208 225 192 210 74 82 181 172 130 174 206 235 228 25 182 224 146 236 192 43 143 21 26 51 16 129 80 48 27 255 170 205 141 230 36 228 197 14 241 227 146 6 59 146 73 172 109 43 126 116 126 88 153 97 157 248 134 228 31 146 87 29 48 21 161 236 207 29 29 230 191 70 155 197 68 66 22 30 202 165 109 68 124 153 238 82 36 225 208 73 230 38 250 169 92 209 176 153 21 31 230 9 22 96 253 210 220 154 174 131 180 194 34 132 71 179 106 68 12 99 155 222 44 246 90 20 254 119 138 174 219 33 253 168 58 29)
#f
())
#(154
"modify last byte of oid"
#vu8(49 50 51 52 48 48)
#vu8(133 122 122 144 118 193 216 52 81 66 166 246 109 37 24 130 205 149 134 41 232 228 161 1 242 45 117 191 0 128 169 100 145 108 82 36 72 79 74 200 222 119 28 42 226 16 86 123 9 191 73 232 132 46 8 55 12 135 75 236 60 180 71 44 191 89 127 72 119 87 31 154 137 224 30 45 114 71 34 145 3 167 217 8 108 221 134 196 136 221 81 6 90 216 223 237 59 48 201 80 88 129 244 218 237 95 134 238 110 142 226 238 188 153 91 141 162 232 179 244 79 118 139 173 98 1 146 245 231 152 179 27 110 174 154 186 208 182 219 24 54 105 88 181 230 192 72 148 175 71 222 170 87 220 68 61 3 57 26 220 213 252 171 163 77 175 227 61 200 190 166 4 47 173 141 83 19 207 139 91 112 121 188 58 58 123 104 195 103 119 171 46 111 107 114 205 205 147 206 2 151 80 159 61 180 251 230 154 98 134 150 177 63 112 86 34 230 121 160 220 198 64 55 174 205 197 179 179 121 105 44 4 129 98 251 130 144 172 113 240 23 232 42 133 168 230 85 15 83 135 42 218 62 250 215 45 163 99 37 20 229 14 112 159 76 166 12 31 7 157 235 70 231 7 36 247 219 49 241 196 127 191 175 235 229 190 158 120 22 142 225 53 166 41 178 218 255 236 243 7 123 132 86 255 145 220 82 11 52 68 97 191 44 139 231 222 63 152 137 166 125 8 17 105 94 252 87 153 133 60 35 100 12 223 95 96 216 55 1 158 166 165 54 226 126 169 193 106 181 167 1 78 28 79 182 0 93 116 167 75 241 146 26 109 126 199 37 227 54 209 14 29 100 159 71 49 180 236 43 229 79 246 230 28 206 197 126 7 246 169 10 128 8 88 151 245 132 179 113 219 115 178 125 14 140 162 157 199 252 53 168 9 249 198 157 122 59 239 55 64 201 59 10 235 57 56 181 155 1 128 9 164 88 14 53 51 117 153 221 86 184 208 108 99 2 95 209 41 82 250 31 41 46 5 58 222 224 168 207 234 140 200 181 238 93 1 237 79 20 19 86 226 148 191 96 86 235 113 34 72 160 136 69 8 7 95 64 208 250 205 222 235 186 93 115 230 169 218 189 221 130 154 234 208 124 126 71 56 89 228 121 179)
#f
())
#(155
"truncated oid"
#vu8(49 50 51 52 48 48)
#vu8(55 34 239 145 178 70 92 83 69 29 89 151 42 219 190 107 127 101 191 7 201 22 119 133 137 36 181 181 180 236 89 66 45 109 87 236 6 95 198 82 53 121 99 214 22 89 56 98 231 77 218 59 67 210 249 63 175 184 54 109 74 124 112 142 61 14 193 9 140 111 146 165 59 112 103 191 115 5 70 98 56 89 87 237 142 250 160 150 117 67 97 84 254 59 6 150 20 160 198 31 88 231 142 229 225 141 191 141 170 44 196 58 59 244 110 74 113 188 61 176 168 12 113 156 220 183 224 9 254 111 7 87 134 26 141 110 60 89 165 89 108 66 139 177 118 126 86 72 207 104 45 3 245 208 121 64 97 190 187 87 239 27 129 121 86 230 151 188 95 243 116 101 16 242 146 66 235 122 76 207 220 171 107 154 157 170 52 63 77 134 118 63 73 143 183 28 253 132 47 159 141 31 125 221 118 105 89 9 144 102 162 173 242 17 112 40 139 45 236 116 206 255 119 114 140 177 243 167 92 88 151 192 255 120 21 100 246 40 40 110 97 242 27 37 221 91 54 248 200 104 47 89 107 120 58 41 216 77 123 69 12 145 12 43 107 32 67 79 55 124 48 77 8 152 58 240 177 46 22 167 0 240 99 179 112 136 42 214 78 249 49 15 87 22 236 80 64 47 51 179 54 238 132 166 204 150 241 21 152 45 221 61 53 169 73 78 211 211 71 215 15 97 204 105 159 220 122 122 31 232 128 140 173 127 19 229 45 171 248 106 212 23 187 118 97 76 12 238 126 99 165 63 95 94 91 126 123 240 78 148 237 66 213 219 29 30 112 69 95 254 227 23 238 22 127 4 27 38 25 182 84 157 198 98 124 149 79 101 180 176 97 113 136 148 41 162 27 242 134 204 107 128 204 24 219 8 159 188 0 236 130 126 51 96 250 28 225 244 34 74 218 95 119 140 126 67 56 99 175 225 147 80 162 72 187 120 183 197 170 110 203 168 194 248 185 147 105 128 97 28 66 96 172 60 191 77 130 26 34 163 216 134 245 152 8 92 62 252 136 24 169 83 54 238 106 116 141 12 129 27 114 86 243 171 142 238 24 53 151 149 111 121 58 68 232 91 233 248 126 146 182 177 151 186 247 207 47 122 8 197 249 195)
#f
())
#(156
"truncated oid"
#vu8(49 50 51 52 48 48)
#vu8(141 26 84 226 71 47 20 3 159 26 46 16 25 252 106 228 21 154 216 159 100 128 209 65 183 142 189 140 212 131 114 70 169 76 89 56 166 127 45 46 5 181 213 209 150 174 5 93 38 225 180 253 164 105 214 184 6 129 99 190 245 190 208 190 109 9 141 235 132 231 0 124 6 179 182 234 241 74 7 19 11 68 221 1 193 77 124 208 211 252 37 121 194 32 242 130 38 40 237 185 173 185 170 85 9 133 140 20 210 66 191 29 119 213 106 16 227 121 227 112 200 146 209 255 43 236 241 154 235 190 242 48 42 186 102 118 60 133 62 87 92 41 66 30 214 111 132 43 133 156 34 42 194 192 99 96 120 5 122 220 26 24 85 17 8 81 17 210 121 181 32 203 47 228 59 1 21 84 232 231 227 123 175 42 154 81 0 54 48 117 154 155 111 109 47 24 7 71 81 50 126 215 57 243 154 214 159 82 117 243 64 191 169 133 164 173 207 134 84 120 39 132 48 234 202 67 217 156 254 134 91 254 39 156 228 23 193 12 255 15 140 223 77 115 165 229 206 119 201 90 14 48 111 53 0 177 144 85 171 165 179 137 222 61 120 9 73 135 37 70 159 67 150 240 92 46 184 154 9 245 92 191 160 135 32 45 124 155 31 37 252 202 88 243 144 129 153 169 231 51 245 122 171 221 60 164 43 242 221 204 86 18 200 28 216 97 155 206 12 59 51 155 168 233 1 5 53 81 61 42 174 56 149 59 87 56 0 164 146 74 62 38 165 115 154 246 79 176 102 115 112 3 142 192 226 240 155 5 62 28 50 49 44 114 88 58 228 11 120 132 108 127 193 40 251 23 181 245 207 136 178 118 234 171 131 197 76 226 219 43 141 111 251 108 184 246 208 222 164 47 108 75 138 1 153 146 133 165 92 46 72 170 178 162 158 225 93 97 1 182 153 189 125 54 20 54 166 84 119 136 182 141 64 179 64 175 142 97 237 108 170 24 158 29 9 95 231 53 191 152 221 79 168 115 12 32 79 103 220 225 250 160 33 35 138 29 205 52 177 72 105 216 236 248 188 40 63 150 76 251 124 143 1 228 209 237 146 32 67 22 181 243 235 83 85 173 252 143 4 186 151 162 185 240 242 33 186 16 53 81 69 142)
#f
())
#(157
"wrong oid"
#vu8(49 50 51 52 48 48)
#vu8(55 165 251 77 91 165 194 23 123 127 231 103 229 158 217 73 153 46 11 182 176 201 229 209 205 43 119 123 209 245 127 96 231 151 153 180 44 234 158 239 75 4 21 214 209 130 81 153 244 77 112 59 128 41 140 147 244 207 90 70 179 60 137 26 147 249 181 75 148 98 240 40 110 101 4 240 135 126 50 22 13 9 143 167 184 245 147 1 12 90 49 83 153 102 5 103 173 203 167 252 174 175 85 127 235 107 11 116 61 9 134 108 249 42 187 37 134 86 12 112 137 125 45 29 92 121 88 203 164 189 143 163 56 20 9 26 207 62 54 38 11 68 21 143 174 237 51 81 15 29 233 166 200 202 56 243 24 35 40 87 108 169 142 225 133 49 178 76 134 153 228 249 117 205 250 220 229 40 248 121 20 170 30 159 237 197 115 99 69 52 178 240 128 255 68 88 246 78 30 2 215 27 36 144 160 219 53 149 121 123 93 220 242 19 35 141 75 145 208 76 68 189 169 151 116 14 77 26 115 177 80 248 46 135 76 214 208 98 149 95 41 147 251 223 53 35 242 19 45 108 253 111 251 30 51 202 31 202 157 197 63 47 118 125 96 74 234 120 163 242 117 29 242 162 30 249 43 64 141 16 84 146 52 73 1 114 194 97 104 226 147 172 195 184 98 229 83 127 158 105 117 71 98 70 233 26 114 227 139 85 84 64 94 19 12 175 9 79 254 173 6 227 151 232 133 215 153 148 221 61 126 239 215 222 204 231 233 54 33 233 56 103 211 60 104 237 135 237 17 255 164 202 112 14 227 195 108 240 106 212 103 243 57 252 188 53 218 82 186 210 200 227 204 101 233 168 158 96 70 171 1 66 9 95 5 2 246 221 171 104 243 65 245 183 28 57 213 118 41 205 102 187 123 11 79 221 80 113 5 203 18 236 56 16 54 20 48 167 140 205 31 10 237 217 111 172 64 248 243 24 35 214 195 193 21 52 171 61 198 151 136 56 239 145 226 82 99 98 174 134 159 223 197 42 97 102 187 86 17 164 63 71 131 134 118 73 219 120 253 160 73 84 203 106 82 244 61 129 4 137 52 81 148 41 222 141 225 74 117 168 127 24 2 98 92 57 17 56 215 154 150 119 91 135 206 255 105 208 248 210 183 41)
#f
())
#(158
"wrong oid"
#vu8(49 50 51 52 48 48)
#vu8(1 57 194 87 29 115 237 133 137 94 215 231 139 196 253 30 180 123 152 131 213 254 183 177 124 247 181 113 171 77 151 49 227 33 12 77 76 62 182 198 241 248 51 245 158 1 233 72 122 251 53 160 172 85 143 140 51 122 18 97 242 198 187 178 29 224 165 77 47 135 64 212 82 71 125 219 140 167 52 172 159 219 197 8 231 127 38 107 110 163 41 27 210 107 22 23 199 242 115 127 234 27 21 76 3 94 205 14 199 199 150 149 90 102 210 58 121 159 117 92 100 226 139 9 150 206 38 197 41 161 29 135 100 35 223 58 171 224 242 203 125 139 90 118 136 180 177 160 86 62 195 236 146 101 23 27 215 102 242 38 232 85 86 115 72 223 72 218 62 124 91 18 187 108 214 179 119 62 255 81 216 47 13 226 252 234 53 157 136 182 100 223 169 179 60 90 160 121 169 224 216 116 85 58 158 202 247 108 14 19 88 199 225 244 207 45 11 137 67 85 87 64 168 39 185 141 20 30 118 12 39 247 198 115 197 77 86 45 40 239 134 119 11 54 115 223 210 5 34 46 111 240 176 63 57 78 137 206 94 4 130 91 70 150 196 200 142 146 220 50 66 116 104 114 168 164 9 229 224 27 7 255 100 239 30 149 84 195 92 209 99 10 132 33 37 81 108 111 64 115 180 85 33 118 64 113 29 128 214 53 46 38 62 160 67 156 182 125 254 157 158 22 156 90 159 10 52 210 29 230 77 99 230 123 68 116 225 0 74 248 162 81 32 14 33 255 1 172 201 41 14 106 252 208 45 166 189 95 24 194 175 74 192 20 20 238 214 50 17 177 74 243 140 225 3 209 144 6 30 230 235 84 237 182 155 78 68 55 8 112 49 37 136 54 71 70 103 132 228 94 205 182 255 21 169 190 114 129 73 27 189 30 85 116 69 199 126 247 213 222 109 80 248 176 58 233 187 246 112 237 200 216 123 124 227 211 159 181 127 162 69 234 152 181 76 77 169 127 244 146 130 6 54 136 65 37 120 128 25 130 54 179 8 172 35 10 24 178 14 91 137 255 170 165 139 230 111 183 72 162 151 23 148 168 143 54 199 195 184 30 56 156 165 205 153 58 15 230 217 17 131 138 224 116 128 146 93 72 153 227 142 131)
#f
())
#(159
"longer oid"
#vu8(49 50 51 52 48 48)
#vu8(101 249 139 144 27 33 252 168 36 165 195 192 23 95 48 90 9 199 217 154 175 21 223 18 128 28 123 74 141 236 209 78 153 191 30 42 55 138 162 154 211 84 74 21 242 129 52 120 18 166 208 47 128 113 17 57 239 251 111 176 169 22 177 94 86 248 122 58 183 192 153 237 128 119 56 182 68 114 43 13 244 249 103 107 176 57 196 65 122 185 102 130 68 171 254 16 182 96 72 24 50 181 21 195 231 86 203 119 38 22 90 80 40 27 212 101 95 164 30 93 243 122 176 200 112 163 52 171 67 119 250 152 97 176 167 206 112 221 138 216 143 215 204 143 140 223 151 7 132 80 30 62 227 230 47 177 15 250 61 160 46 195 59 114 58 121 253 250 178 130 186 174 154 243 92 186 86 86 182 165 104 202 65 166 13 11 190 36 244 211 64 90 206 137 107 98 103 171 186 168 70 102 54 27 150 154 216 246 68 35 205 167 48 30 147 24 48 54 60 174 107 152 207 17 247 63 185 0 39 128 81 141 113 242 242 34 204 205 7 150 91 243 21 200 86 37 170 163 164 126 49 154 194 111 53 236 208 17 40 47 16 133 220 29 132 38 97 83 113 139 43 135 183 115 109 76 14 23 92 226 160 117 155 87 163 180 18 3 158 197 21 11 163 194 216 79 109 238 5 0 105 120 67 123 101 220 104 252 218 182 55 26 14 132 197 219 33 105 116 54 251 74 116 254 36 33 159 7 125 206 49 161 55 113 23 128 115 117 119 77 69 51 242 139 135 16 54 156 20 213 105 128 106 182 2 110 13 173 31 57 160 163 10 118 109 95 67 93 160 27 7 44 230 221 6 73 178 61 37 249 209 109 216 6 69 192 221 249 62 128 172 141 125 111 245 82 101 110 192 72 173 124 49 165 32 71 205 220 134 218 249 236 41 4 53 137 48 176 240 130 24 123 16 76 247 251 134 105 21 202 172 133 34 224 96 20 28 139 88 13 96 47 247 244 188 96 222 182 194 157 184 205 224 55 5 233 211 174 74 110 132 233 87 40 225 88 79 61 0 197 138 250 69 19 108 56 228 130 250 124 123 223 250 57 218 116 158 120 174 126 42 94 48 19 66 42 233 249 87 105 51 221 170 212 175 229 0 186 17 4 221 179)
#f
())
#(160
"oid with modified node"
#vu8(49 50 51 52 48 48)
#vu8(48 164 81 27 20 189 52 112 49 219 255 96 166 15 105 161 17 161 148 69 195 54 158 232 217 251 32 211 186 147 17 77 246 140 238 191 161 161 178 128 48 164 61 216 80 85 24 233 164 160 77 254 20 168 40 221 73 0 88 50 229 127 223 8 144 102 30 235 87 23 68 27 46 39 164 38 36 254 206 218 162 243 3 93 13 227 238 72 241 248 109 27 251 74 87 225 120 20 148 3 72 229 127 231 4 228 75 124 199 186 95 123 136 145 237 156 17 115 31 119 68 48 52 57 22 142 159 251 189 92 135 5 66 108 179 58 109 82 220 145 39 191 237 134 29 210 232 94 220 229 192 248 72 185 157 178 84 108 161 11 214 95 91 12 54 243 3 103 173 163 212 0 170 156 190 224 131 220 44 61 153 253 29 255 113 215 121 250 173 164 23 205 163 79 29 240 128 226 200 192 32 15 84 81 49 227 133 69 122 138 2 54 9 156 97 162 138 231 55 207 230 226 0 25 141 206 70 209 227 177 201 123 9 179 89 232 107 153 9 24 126 66 239 241 171 249 15 165 62 140 175 30 23 211 37 68 187 120 251 192 22 5 134 176 230 21 207 9 128 49 77 30 19 187 230 106 31 249 124 6 117 215 43 120 83 196 65 135 74 212 151 158 140 34 247 38 150 27 7 125 62 153 207 146 244 230 237 40 200 251 13 79 121 251 36 20 246 42 7 232 245 92 215 155 197 93 38 98 130 42 161 114 32 197 56 136 88 141 137 34 155 197 150 209 224 120 131 220 113 60 37 149 208 38 149 127 79 166 26 210 160 13 223 29 77 173 128 128 163 159 173 18 36 39 147 177 138 226 60 166 16 109 175 113 122 253 230 7 5 213 154 174 47 193 13 223 231 35 25 105 252 205 217 26 52 123 111 193 39 235 82 222 107 146 228 136 119 54 0 74 191 43 98 163 242 52 70 173 138 14 115 207 117 173 112 103 187 39 36 225 110 114 25 215 178 148 175 121 202 193 150 27 21 228 209 198 71 246 161 7 198 116 95 191 195 34 2 95 219 56 108 85 83 221 152 107 253 6 71 216 73 106 113 242 100 185 199 3 67 255 248 41 1 106 148 237 74 202 213 97 181 155 255 30 148 191 106 10 200 107 247 72)
#f
())
#(161
"oid with modified node"
#vu8(49 50 51 52 48 48)
#vu8(20 2 116 75 106 108 148 146 59 234 47 72 212 172 166 145 80 222 28 77 78 4 237 126 100 230 205 43 201 123 215 137 46 201 77 112 23 60 255 105 133 199 54 182 189 90 105 140 65 188 89 135 53 49 9 238 16 194 223 54 166 129 182 200 30 129 221 14 57 18 84 16 11 159 33 156 73 86 61 199 184 113 247 151 208 37 237 6 144 98 100 144 109 41 35 255 169 49 160 48 159 249 224 114 206 117 109 11 71 133 50 140 18 214 48 22 156 211 73 86 221 215 160 231 48 120 231 199 56 232 18 140 157 49 150 134 25 126 83 185 44 239 23 216 177 13 92 140 235 245 0 61 77 44 56 198 60 108 194 48 211 175 116 80 118 110 119 89 174 78 133 78 252 25 69 248 85 239 46 9 141 129 153 182 176 36 212 58 169 247 121 58 217 61 205 153 221 218 120 233 249 190 141 168 227 77 71 150 40 13 90 104 22 182 187 117 101 117 86 89 175 205 232 155 92 18 249 169 15 89 25 193 92 204 61 229 133 216 84 54 147 236 68 166 60 173 209 250 9 168 39 136 10 64 108 174 11 81 86 143 240 230 34 239 194 183 198 95 74 23 177 222 114 140 104 243 169 41 61 144 78 193 189 51 227 39 236 248 128 239 237 205 13 171 120 226 225 31 186 199 218 80 59 203 126 217 137 208 248 197 52 177 41 101 135 203 33 223 176 73 184 59 238 52 3 58 74 65 75 39 218 227 231 246 18 70 34 233 10 88 128 61 142 133 164 58 105 43 103 95 59 221 176 253 42 164 102 135 244 20 130 225 62 221 101 170 166 250 91 64 195 73 196 93 177 128 57 53 86 18 35 155 21 188 19 234 186 181 56 190 59 86 191 248 13 62 20 47 105 16 152 82 196 100 32 220 21 110 17 186 191 2 251 10 104 36 109 251 160 175 138 234 145 142 94 44 207 190 66 14 193 98 120 78 191 117 32 35 6 128 186 100 209 127 206 102 220 250 216 122 255 234 11 92 210 200 146 229 241 71 164 151 219 160 49 244 70 93 152 213 136 220 146 90 147 48 84 37 205 168 83 208 238 175 238 4 186 188 240 172 248 73 206 54 181 17 217 15 168 167 81 9 57 178 14 209 31 121 23 238 55 187)
#f
())
#(162
"large integer in oid"
#vu8(49 50 51 52 48 48)
#vu8(46 201 100 209 93 136 209 188 44 239 201 59 45 94 179 242 192 111 104 107 244 172 208 78 215 226 126 192 69 89 123 87 18 4 9 32 56 209 179 194 54 203 24 241 244 73 107 196 141 23 96 246 39 107 176 148 179 252 141 58 27 204 197 28 51 25 89 126 143 68 54 203 59 246 118 117 18 87 206 61 51 202 212 232 49 181 127 121 121 215 205 195 186 157 57 180 250 76 127 89 155 80 35 222 140 158 151 250 75 38 63 108 113 91 46 108 225 56 236 205 85 12 87 65 81 12 5 156 219 182 241 109 248 76 71 188 105 115 132 204 156 82 231 165 207 53 233 38 95 228 167 103 56 23 213 238 93 136 234 100 60 21 90 244 53 13 133 3 164 175 4 77 168 250 135 182 79 21 27 140 87 157 235 9 118 138 111 58 8 98 163 189 200 242 62 165 194 47 152 98 226 71 149 189 189 240 30 132 70 233 55 113 177 49 190 180 98 48 68 10 250 74 165 102 80 131 211 115 53 155 118 200 180 217 30 134 11 69 105 156 193 195 113 71 50 136 157 172 113 49 154 252 160 154 11 118 156 24 129 10 176 167 43 140 58 238 53 24 142 87 88 71 50 48 132 9 114 177 181 90 8 149 137 78 163 96 195 190 25 209 63 143 248 150 96 151 30 233 198 194 125 169 125 195 240 155 166 41 27 25 226 134 138 12 110 113 50 245 18 59 83 21 43 163 60 175 65 199 217 65 211 205 9 8 37 90 83 12 218 188 53 107 238 164 22 156 153 106 110 155 49 125 40 238 231 156 224 33 183 20 245 79 57 143 184 85 75 36 250 194 137 147 248 196 4 21 36 16 57 169 23 98 39 115 93 67 146 186 21 234 228 125 137 192 40 16 24 223 46 222 193 124 93 175 23 239 77 47 183 203 13 132 147 151 216 204 94 210 11 82 252 77 34 46 53 16 195 215 92 36 172 73 100 5 59 255 93 21 71 108 170 134 33 142 213 152 139 146 219 1 255 153 158 116 132 110 82 24 89 95 154 103 182 4 239 167 231 113 221 251 194 54 119 73 172 129 114 216 80 72 70 172 100 129 110 49 126 64 192 199 236 89 102 137 129 199 217 29 57 88 45 78 94 161 4 17 54 100 90 35 173 55)
#f
())
#(163
"oid with invalid node"
#vu8(49 50 51 52 48 48)
#vu8(184 44 36 162 118 139 77 212 133 37 101 33 135 149 135 103 147 170 217 113 43 67 67 175 227 14 203 208 58 145 18 212 115 120 133 154 20 69 160 161 63 71 195 6 228 83 84 18 40 232 169 39 56 41 170 208 101 61 84 162 18 107 160 101 138 44 11 115 14 170 31 141 83 83 56 111 22 1 154 37 142 230 144 88 163 9 18 203 220 94 80 203 132 237 71 246 223 104 23 19 96 61 191 181 31 164 107 61 49 169 245 233 207 147 123 52 128 34 219 79 111 81 44 26 166 9 116 190 188 107 18 90 4 152 148 194 189 77 239 11 85 175 93 219 109 138 34 142 160 43 158 172 44 70 200 53 173 0 233 78 245 149 41 151 183 98 108 55 216 153 191 38 9 162 36 229 76 45 210 124 9 193 120 166 129 165 168 16 213 148 242 221 185 63 189 244 78 186 33 176 224 146 186 153 184 167 233 172 163 48 99 114 229 82 41 59 81 182 177 118 70 187 208 106 63 186 194 84 247 84 158 84 74 77 30 56 34 173 175 188 70 194 153 249 242 69 11 10 226 103 255 78 212 113 126 63 76 47 239 129 99 63 154 20 153 249 13 196 54 171 47 10 89 142 83 144 166 151 143 86 173 13 253 108 141 154 159 140 127 77 83 112 105 157 27 138 134 199 121 72 139 107 106 145 112 209 168 46 109 228 120 51 119 74 215 111 6 160 95 25 16 92 153 54 20 110 152 200 163 166 181 218 212 246 230 229 218 160 29 192 184 3 251 76 254 69 95 32 198 119 255 80 30 204 204 177 197 255 253 177 17 100 88 53 24 60 192 108 55 99 190 186 93 117 58 110 222 4 172 160 63 95 150 21 93 230 173 147 178 17 178 235 42 112 215 46 60 37 122 228 241 160 203 174 86 66 185 253 72 129 227 108 105 188 158 70 85 250 144 8 207 215 130 31 215 35 145 32 146 65 246 4 187 43 0 234 153 216 245 69 201 187 173 98 88 161 26 15 194 38 24 203 68 231 19 173 190 65 118 237 217 195 6 133 240 191 118 228 222 151 134 45 71 192 193 171 184 11 71 182 50 59 105 183 116 81 213 155 191 39 70 25 55 76 179 116 87 37 213 173 44 130 143 238 136 130 146 134 163 82 113 78)
#f
())
#(164
"oid with invalid node"
#vu8(49 50 51 52 48 48)
#vu8(67 247 54 234 238 197 181 174 3 177 198 140 70 14 17 93 32 166 193 180 86 245 132 117 153 174 217 175 41 0 198 49 107 192 144 114 157 70 106 131 182 135 152 52 16 141 218 3 37 119 9 19 241 75 36 138 113 112 122 82 250 41 130 219 54 143 134 180 234 181 45 204 163 28 7 204 94 126 241 99 76 106 27 37 226 115 251 53 211 248 2 87 18 120 247 155 140 39 166 207 42 23 2 5 196 147 252 69 114 72 23 14 203 202 78 189 11 66 188 61 3 25 132 137 104 15 203 94 88 187 49 194 178 45 42 161 185 157 140 140 60 207 66 251 120 76 135 143 60 118 50 166 86 120 30 246 56 56 28 54 4 176 244 216 79 199 8 108 0 0 102 79 182 186 179 62 85 16 93 253 93 251 239 99 73 5 218 251 193 45 162 162 93 243 189 133 48 68 15 166 54 129 45 163 156 95 175 38 231 98 97 164 255 148 119 149 21 110 157 21 157 107 213 176 201 201 184 110 225 129 141 49 218 195 245 65 164 187 107 37 160 45 248 32 87 190 79 147 32 200 190 151 100 233 137 170 234 183 45 133 89 221 53 187 27 252 34 25 64 98 77 176 111 70 228 103 147 107 190 177 185 112 24 183 230 50 215 112 68 123 223 117 83 217 246 150 182 239 86 242 183 55 170 97 113 121 29 117 108 8 9 179 213 12 92 222 115 116 146 184 122 156 85 23 198 96 125 247 124 161 38 224 142 52 19 150 100 19 123 107 211 12 226 230 217 122 158 43 140 77 77 68 65 199 22 151 105 123 195 255 117 252 217 128 214 230 94 138 216 160 179 210 155 201 82 224 124 25 165 188 15 95 9 53 124 182 100 220 139 121 239 114 121 240 71 255 26 117 146 181 172 139 27 201 139 153 164 38 218 8 162 23 143 118 217 102 36 206 132 225 153 110 59 74 249 233 120 224 65 197 227 38 243 201 224 219 15 221 119 135 226 193 56 6 61 180 65 81 130 233 175 135 199 76 211 111 239 150 118 23 3 229 132 58 202 76 57 99 244 132 185 11 27 128 13 24 159 247 39 222 186 162 119 62 8 200 202 112 198 247 98 187 201 53 104 127 75 177 3 181 56 5 73 92 192 189 108 174 222 232 52 235)
#f
())
#(165
"long form encoding of length of null"
#vu8(49 50 51 52 48 48)
#vu8(169 232 15 17 209 28 106 28 7 49 151 136 131 121 57 252 197 91 118 202 225 199 51 142 88 88 229 106 162 80 52 59 58 59 44 137 142 14 71 98 63 79 60 193 250 100 153 255 127 18 189 216 212 59 76 129 28 6 123 166 115 153 88 220 186 108 132 154 127 29 217 36 177 42 100 66 166 191 229 234 96 135 100 82 184 101 137 169 4 215 27 123 153 122 29 196 72 107 193 180 242 169 119 105 72 224 195 209 218 136 124 32 190 18 109 180 20 86 100 37 164 9 87 126 239 105 105 131 107 184 74 251 113 95 248 231 244 52 80 85 3 25 59 169 227 152 187 122 21 223 11 19 43 202 190 152 214 78 5 174 248 0 123 154 204 135 177 121 34 131 70 139 167 127 168 23 53 133 65 29 168 115 8 243 113 93 12 175 149 127 68 176 95 95 174 87 149 81 161 17 40 139 252 142 58 44 43 212 29 179 221 116 26 227 199 11 205 159 1 80 65 116 217 17 125 174 27 250 226 243 139 3 145 163 119 210 48 166 220 36 108 85 43 79 228 28 123 196 231 151 218 175 93 197 180 33 209 181 231 216 140 105 197 213 215 180 220 218 211 162 168 84 147 92 1 252 126 68 251 204 232 94 100 25 81 27 211 25 28 151 60 101 144 224 36 221 33 228 108 10 81 68 231 27 79 113 102 244 187 105 69 95 89 198 230 23 238 69 125 15 209 170 188 159 119 181 106 5 57 124 206 174 108 74 125 253 165 117 142 82 246 201 74 137 73 212 38 230 245 84 178 170 134 118 125 50 172 230 136 95 76 99 118 119 117 234 43 201 37 50 93 159 223 102 93 188 148 29 108 235 204 3 133 245 144 186 54 16 14 104 72 227 9 211 210 226 205 5 35 250 122 185 95 168 113 215 133 16 169 120 169 136 195 78 16 32 79 29 102 154 79 120 133 143 180 150 114 193 62 159 72 159 202 35 107 145 63 223 7 90 113 103 209 226 126 69 166 179 97 78 85 247 129 127 25 28 178 224 159 163 201 138 106 119 173 3 48 56 90 240 200 117 196 113 1 14 51 168 193 99 58 35 186 220 3 247 4 106 108 38 52 5 72 146 214 13 91 61 160 174 179 241 66 130 116 158 126 94 98 201 118 13)
#f
())
#(166
"length of null contains leading 0"
#vu8(49 50 51 52 48 48)
#vu8(192 136 110 136 34 73 220 216 29 214 83 244 109 150 229 219 9 60 66 22 195 117 228 231 207 115 23 37 79 151 140 132 108 17 211 66 32 180 70 10 178 6 35 9 208 89 198 49 69 99 181 193 40 166 140 70 218 23 47 201 240 127 86 157 80 67 179 40 228 138 24 239 90 89 174 21 184 54 136 32 137 31 163 107 136 60 167 30 161 70 50 152 94 97 24 20 145 231 27 96 121 98 242 87 79 149 233 191 149 235 34 55 11 171 247 51 97 183 4 202 200 60 129 76 92 5 151 189 69 101 143 237 234 221 13 93 135 103 28 127 103 246 130 93 13 24 97 143 51 126 77 94 85 6 47 71 75 36 42 8 252 177 131 25 22 212 102 72 186 85 200 87 200 151 243 203 136 104 177 156 59 97 121 150 111 183 159 5 134 2 14 59 106 190 104 98 31 72 0 77 244 34 201 233 166 149 52 84 42 209 181 88 94 194 240 82 118 138 103 71 19 87 192 53 3 35 243 206 55 38 9 98 22 146 196 113 74 103 43 66 19 143 39 76 239 74 109 71 4 114 24 87 110 159 236 197 6 245 188 170 35 57 56 57 114 170 174 173 247 241 239 163 228 236 241 174 48 7 53 210 124 185 25 193 54 110 237 130 242 237 168 51 21 76 150 235 167 165 249 235 126 69 80 77 255 3 32 192 161 33 129 36 79 71 48 59 119 75 146 95 195 136 114 89 0 60 245 219 154 218 235 149 109 55 72 170 238 175 24 224 214 123 0 0 118 33 4 112 175 112 7 75 199 99 59 32 208 110 214 211 185 249 207 88 104 254 228 128 236 47 128 251 90 208 209 21 81 82 73 180 167 46 37 106 230 202 234 24 122 137 219 54 145 222 61 99 191 76 110 236 55 239 42 77 249 155 157 166 196 124 196 84 108 227 145 17 238 201 152 59 141 53 47 125 52 231 169 117 137 59 234 254 233 46 12 91 80 244 15 145 225 91 228 248 175 140 79 234 28 200 193 118 190 35 139 222 102 233 204 7 120 234 13 139 85 228 202 190 55 158 0 41 4 225 181 238 117 123 254 99 43 79 8 88 244 46 7 137 213 125 234 206 244 50 250 82 128 69 51 100 55 234 23 82 115 12 114 201 52 94 179 247)
#f
())
#(167
"wrong length of null"
#vu8(49 50 51 52 48 48)
#vu8(154 79 226 40 38 241 198 78 156 136 225 120 239 208 127 78 249 89 145 198 195 233 193 203 16 191 207 10 12 157 2 140 240 82 7 233 62 223 58 195 2 183 45 41 97 7 60 209 17 62 165 200 179 186 5 160 227 201 19 83 88 57 136 78 181 149 171 24 158 232 28 94 103 118 50 104 244 127 167 227 19 149 30 101 168 65 101 251 9 110 220 127 26 131 24 230 109 116 12 97 216 189 144 49 215 129 137 18 2 98 210 185 229 11 246 57 167 189 112 136 30 158 89 143 143 125 131 222 86 121 60 249 96 151 27 96 219 178 79 59 110 130 9 216 116 100 119 110 85 212 205 98 145 207 143 165 120 162 217 67 254 3 37 24 152 170 189 71 123 116 141 191 18 113 47 48 180 204 87 50 130 99 24 183 107 214 56 120 141 43 171 155 23 142 18 210 132 51 229 40 86 183 244 102 161 85 227 254 162 228 94 125 62 87 0 116 235 108 34 39 176 250 60 230 163 55 47 68 143 119 145 242 199 71 26 12 252 176 152 6 11 222 183 0 114 154 83 229 35 107 94 53 234 254 118 93 103 38 39 1 76 148 69 2 137 168 246 43 144 196 249 40 118 131 114 172 227 101 139 209 88 240 42 121 83 134 53 151 240 240 119 74 70 49 37 224 181 238 166 67 242 209 4 149 20 229 198 89 12 254 44 40 236 157 220 237 60 97 133 213 203 38 86 206 161 101 6 163 2 182 80 112 235 163 47 138 135 58 135 49 100 189 168 56 116 74 13 90 49 94 55 115 158 228 198 107 81 29 3 102 97 17 77 74 4 67 178 251 142 189 67 58 187 208 69 210 25 66 62 206 10 45 109 127 63 46 36 184 165 221 136 152 142 170 150 252 248 121 237 165 240 28 38 161 151 40 249 237 145 122 103 65 68 143 158 61 214 75 2 200 235 5 156 19 190 190 192 214 223 133 164 75 227 136 123 139 37 121 121 65 210 37 47 134 5 220 195 240 231 211 174 212 91 209 16 182 199 154 205 101 173 200 214 216 85 19 69 202 139 39 125 230 114 121 242 49 92 10 25 36 11 213 116 102 187 98 99 221 254 164 116 116 66 11 27 232 42 55 226 246 91 236 127 151 60 21 201 97 213 219 191 85)
#f
())
#(168
"uint32 overflow in length of null"
#vu8(49 50 51 52 48 48)
#vu8(36 70 50 44 11 207 237 114 171 217 92 87 248 231 216 21 173 162 165 161 209 95 152 197 103 245 104 205 3 60 10 236 132 175 96 47 231 55 106 136 81 102 246 17 212 19 157 217 247 139 181 129 179 241 236 55 60 71 73 71 199 117 30 103 172 217 12 124 102 189 178 51 129 29 160 77 93 223 157 190 217 198 181 96 241 68 246 206 212 124 129 1 66 50 81 3 187 218 71 252 181 101 150 136 174 86 230 120 193 23 243 63 224 30 200 176 29 225 250 240 255 64 162 124 87 248 81 228 239 57 157 129 8 194 41 71 18 5 165 211 160 138 65 6 154 247 39 100 132 35 20 136 125 60 20 29 24 153 146 107 219 109 130 90 6 22 160 214 53 196 236 171 196 50 76 15 86 65 142 125 176 222 26 127 148 169 134 28 233 20 143 157 164 126 3 65 87 181 34 214 11 236 51 135 166 89 187 167 209 74 99 211 31 186 88 101 215 167 176 97 215 95 135 190 75 200 48 97 124 132 68 93 126 239 165 60 92 79 119 167 48 247 224 99 53 179 250 79 90 226 1 131 76 170 91 183 58 20 145 109 196 230 197 119 160 53 112 57 200 252 238 21 90 197 31 71 176 193 156 166 146 183 62 193 148 215 219 1 52 6 94 89 191 120 77 222 219 135 35 56 89 230 57 251 103 94 168 14 164 69 139 127 120 59 108 45 229 186 211 49 56 68 180 167 203 222 102 82 21 151 207 150 78 72 236 216 249 206 151 254 126 64 221 47 50 71 25 42 56 38 148 243 208 186 93 201 93 100 2 143 140 10 17 175 168 112 134 81 203 249 216 4 56 160 66 100 36 24 47 155 25 240 100 174 114 148 213 75 170 190 53 130 85 226 88 234 18 156 200 17 51 3 43 115 57 137 66 67 6 87 183 150 101 90 109 74 33 226 132 66 95 202 2 63 125 134 9 248 15 245 100 227 77 73 25 193 22 139 72 50 42 50 198 243 128 142 185 119 199 230 150 254 127 7 9 229 225 0 28 235 23 35 59 84 82 252 241 244 181 147 155 79 3 2 202 144 137 112 115 23 15 10 110 252 58 83 121 144 90 241 168 19 179 132 243 200 80 166 157 112 15 3 117 250 188 14 67 104 13 132 126 83)
#f
())
#(169
"uint64 overflow in length of null"
#vu8(49 50 51 52 48 48)
#vu8(117 49 113 12 229 24 127 183 90 99 3 138 236 164 226 78 76 100 182 116 99 32 178 49 236 209 7 63 232 200 208 2 162 248 250 125 235 236 179 167 161 86 204 148 133 219 180 82 208 195 153 34 230 236 159 224 221 186 15 6 141 138 54 21 164 89 200 194 120 126 82 36 3 64 148 236 24 167 68 80 133 144 114 53 35 73 43 224 195 7 240 162 65 84 159 92 18 200 191 158 242 86 28 64 47 178 196 177 152 156 53 28 151 70 19 62 117 187 59 14 222 251 216 29 51 76 70 220 156 24 32 143 46 165 86 20 237 172 159 1 255 224 38 136 227 245 131 29 229 128 174 46 2 183 14 57 37 174 47 121 26 247 46 153 42 189 130 197 199 145 34 216 30 50 219 96 59 42 177 158 72 78 91 161 62 28 49 156 177 74 210 62 116 110 144 251 32 145 22 88 34 168 130 137 196 80 149 217 248 35 25 109 156 98 196 208 34 44 83 174 177 146 181 246 154 175 247 153 125 136 231 108 146 57 66 225 173 136 158 128 174 122 175 51 162 37 172 242 62 20 196 27 100 157 247 201 76 235 160 75 185 235 83 241 146 32 131 92 153 140 201 197 91 224 34 244 3 122 2 124 14 37 237 46 173 117 141 138 48 92 53 252 62 148 242 196 16 161 231 212 157 117 224 195 76 208 28 121 36 207 228 247 221 118 212 76 34 255 83 227 248 67 63 140 24 72 108 153 186 126 37 175 227 221 46 178 72 75 240 26 242 60 36 230 29 146 204 10 49 209 243 166 9 82 2 2 105 230 64 233 178 39 136 223 35 194 142 129 50 251 161 101 91 174 93 240 61 162 203 250 135 164 22 210 222 193 158 196 39 167 51 243 40 76 249 174 190 43 145 81 19 224 151 108 175 97 16 87 118 135 231 61 8 130 214 214 101 56 68 162 43 130 204 174 148 45 253 163 124 102 158 184 26 255 6 139 114 77 47 33 199 176 177 180 74 111 254 27 125 207 2 114 177 252 53 85 149 106 93 217 127 46 228 96 229 0 208 17 6 124 178 250 143 43 67 225 95 102 173 72 230 60 26 38 240 5 22 249 145 76 5 180 93 13 170 133 74 199 245 163 190 120 41 246 203 206 174 127 189 85 140 250)
#f
())
#(170
"length of null = 2**31 - 1"
#vu8(49 50 51 52 48 48)
#vu8(110 115 125 183 162 39 58 120 159 3 142 148 186 206 58 237 207 126 245 232 137 182 133 158 28 199 90 74 136 84 119 51 104 243 42 80 14 155 250 191 115 37 72 163 179 244 254 175 98 208 194 10 11 95 79 119 49 242 223 236 99 221 21 97 252 204 207 13 156 145 175 71 235 6 76 21 231 136 58 65 201 180 156 191 243 238 89 246 18 161 182 57 97 123 232 65 172 46 15 191 197 234 72 42 78 217 162 69 248 172 138 10 46 98 74 177 164 72 46 238 163 229 241 225 63 18 12 35 130 158 227 58 226 182 226 213 185 13 236 59 111 104 234 192 105 172 80 99 76 229 43 127 79 134 83 244 142 62 146 211 135 65 114 235 125 114 29 87 215 130 71 94 137 21 180 68 118 65 82 96 189 105 238 212 241 92 45 153 226 205 207 194 177 239 93 156 239 75 16 93 0 239 186 223 171 242 99 146 177 191 123 79 6 52 186 151 10 135 234 180 38 2 93 113 25 26 199 142 40 171 172 222 217 210 251 153 207 221 61 45 190 189 104 7 218 150 197 64 231 4 177 57 97 136 192 119 140 2 43 157 12 233 45 217 247 11 210 201 110 171 43 71 223 203 170 47 42 101 70 118 79 175 209 106 222 157 217 198 172 101 251 188 203 121 6 19 138 210 139 238 180 173 116 216 125 30 71 126 246 7 99 235 49 41 84 248 193 179 234 207 3 83 243 155 12 254 125 165 137 214 114 167 64 63 165 236 208 200 60 207 136 121 8 118 57 207 112 78 219 9 69 154 186 211 50 43 11 109 92 1 19 143 75 25 173 239 225 160 42 184 111 73 205 150 79 244 99 232 57 242 51 74 57 180 75 179 102 30 128 165 92 209 83 67 173 174 87 224 232 249 88 206 80 238 22 147 180 12 74 97 196 142 17 157 5 218 152 1 109 198 242 157 133 148 10 100 215 165 182 5 245 19 19 165 134 252 30 249 147 0 115 173 97 96 17 173 102 98 239 67 200 92 153 133 126 216 165 253 15 111 125 248 177 128 251 28 7 164 19 116 202 124 15 187 131 52 21 146 67 246 48 182 62 118 240 104 218 129 198 206 7 200 185 246 250 84 62 16 71 65 140 18 100 81 245 40 229 206 143 73 80 57)
#f
())
#(171
"length of null = 2**32 - 1"
#vu8(49 50 51 52 48 48)
#vu8(159 184 198 142 39 172 9 206 55 6 140 9 213 109 58 76 53 77 87 16 148 82 83 7 138 164 127 49 193 231 9 205 45 214 213 59 232 94 180 85 53 194 170 12 225 57 208 220 236 176 147 116 145 147 187 85 208 141 138 246 47 20 45 185 160 125 209 120 2 43 48 62 208 93 73 235 97 225 9 71 152 243 62 205 172 121 174 111 87 38 48 109 236 127 101 44 88 190 95 177 150 194 185 71 159 8 6 177 154 222 161 84 72 211 89 152 126 147 119 243 112 98 144 225 231 82 55 101 115 16 85 93 92 219 187 206 248 61 207 201 12 175 177 201 138 175 253 12 39 124 107 115 198 224 2 62 198 97 54 230 10 107 227 55 94 17 64 216 126 188 188 17 167 83 170 166 121 184 228 178 171 141 104 109 73 84 176 184 83 101 240 112 163 93 96 15 24 179 65 81 70 2 39 238 59 73 210 119 14 7 190 220 255 28 182 156 207 221 251 220 101 65 243 39 57 144 182 243 199 8 192 235 64 134 63 187 105 28 245 207 142 25 184 119 70 39 12 247 203 130 124 182 73 132 204 59 231 185 53 124 102 176 13 138 144 6 61 42 245 28 52 188 61 163 133 127 7 238 242 112 152 159 202 88 176 148 53 212 177 83 53 114 47 181 178 20 150 84 148 237 216 169 221 10 192 171 229 82 62 198 35 103 216 193 25 165 237 99 122 151 165 7 40 103 5 208 101 32 231 223 64 119 222 36 220 229 224 135 191 245 118 234 226 15 155 204 75 101 26 134 48 235 2 94 220 126 162 138 210 223 25 48 86 88 226 13 180 171 190 177 139 56 172 234 185 198 17 218 108 207 18 116 41 202 77 12 68 138 255 84 52 36 49 179 217 159 198 144 16 148 92 239 239 185 5 164 220 99 222 245 194 173 171 247 27 201 240 38 145 179 91 249 54 116 8 244 64 140 49 92 160 248 160 242 132 102 248 181 167 176 105 237 118 207 145 128 192 18 94 86 223 139 81 92 245 144 193 189 109 97 244 67 252 190 88 78 6 149 182 140 155 9 124 33 225 44 29 6 241 173 1 119 37 40 34 71 75 187 178 194 155 111 72 16 231 73 247 27 24 179 6 129 37 37 196 46 114 127 146 241 185 73)
#f
())
#(172
"length of null = 2**40 - 1"
#vu8(49 50 51 52 48 48)
#vu8(191 125 74 172 183 111 65 116 182 120 122 113 13 163 11 203 201 17 88 87 181 23 15 111 152 212 170 78 159 116 136 143 205 52 24 36 229 218 18 194 109 5 97 43 89 29 74 236 100 192 8 219 88 194 113 15 69 14 221 177 252 113 252 239 38 202 95 60 186 194 191 229 63 97 31 127 11 79 57 9 253 118 52 129 207 74 167 110 37 215 85 227 60 62 122 46 61 122 42 184 207 157 73 210 235 233 82 240 38 55 205 144 30 135 132 85 110 228 148 7 165 144 29 154 27 108 199 119 181 240 54 101 13 230 147 68 13 190 197 180 102 239 184 64 83 215 60 121 50 170 241 131 80 249 198 172 186 28 254 226 31 135 78 199 121 240 229 215 86 175 233 54 100 68 89 237 197 146 226 23 250 217 61 121 156 155 255 132 146 26 33 89 234 239 185 169 120 2 30 139 193 103 63 142 26 128 151 151 211 23 188 140 61 76 225 195 138 225 233 149 205 195 124 80 69 122 22 213 83 207 202 162 205 88 227 107 180 53 87 239 112 225 88 139 192 246 164 252 89 96 79 146 26 189 222 87 162 176 83 117 196 221 236 242 60 90 192 207 211 70 90 54 74 99 135 50 120 68 170 230 142 151 50 183 118 224 67 48 116 66 150 66 146 0 190 137 19 106 206 214 188 50 158 71 21 222 107 232 219 4 125 72 16 198 43 193 156 140 45 237 94 52 230 207 140 207 0 5 99 179 66 182 172 45 242 131 50 50 209 43 224 190 223 33 157 221 193 135 236 241 166 31 153 66 37 240 78 173 249 110 51 12 47 141 212 47 183 3 93 103 133 50 143 143 42 87 85 19 239 242 35 144 236 251 147 187 249 165 123 151 164 69 142 149 191 222 108 103 106 155 143 202 118 94 173 147 205 254 153 39 226 51 12 193 112 97 218 95 40 96 160 41 21 19 54 29 171 78 229 189 123 250 145 175 104 87 209 175 196 127 170 183 48 6 106 201 119 123 105 128 79 73 31 14 33 6 54 17 97 253 200 63 30 137 173 24 230 26 28 234 79 177 40 223 166 129 209 18 107 179 251 17 97 10 112 113 150 92 159 112 99 71 178 197 33 246 60 110 89 221 229 36 207 16 116 3 32 94 144 93 14 186)
#f
())
#(173
"length of null = 2**64 - 1"
#vu8(49 50 51 52 48 48)
#vu8(91 101 38 80 179 210 111 28 91 52 81 72 60 77 216 7 45 231 107 99 155 52 237 149 159 19 50 141 242 2 137 4 34 100 166 77 118 215 17 167 179 61 252 11 110 101 168 216 161 238 138 116 123 126 78 21 17 197 50 0 116 43 27 84 186 222 86 254 167 137 94 202 117 87 164 93 169 42 202 113 218 239 222 62 86 205 220 18 102 122 6 172 170 96 155 239 117 15 241 239 218 129 73 14 207 236 56 56 88 60 26 77 100 83 207 172 61 231 149 141 192 238 79 182 80 213 13 54 237 119 36 197 56 25 165 61 227 225 73 138 143 209 202 177 131 165 103 65 124 33 122 16 240 40 237 191 212 195 91 51 156 75 90 175 208 200 224 74 71 75 118 113 104 27 128 233 92 52 116 112 43 38 8 71 138 227 237 10 139 12 239 51 216 38 92 152 219 87 88 162 197 194 22 104 51 203 86 10 11 136 185 210 181 235 15 56 57 38 133 207 133 145 238 227 211 141 102 170 176 163 59 136 224 13 204 160 79 10 42 91 71 211 103 217 51 144 48 94 31 192 164 158 112 236 17 120 54 230 250 212 215 205 84 146 55 154 97 43 43 6 52 246 97 149 82 154 64 41 59 28 8 184 125 235 3 206 211 50 16 114 26 99 188 83 78 126 0 118 23 137 212 154 39 203 52 139 46 137 223 161 194 56 215 51 219 236 236 136 217 233 98 189 50 251 237 71 219 193 52 252 121 153 13 15 172 77 190 183 72 75 20 154 155 8 22 158 233 171 70 241 201 41 127 161 149 4 248 247 6 8 88 187 87 133 35 134 6 60 4 213 224 161 196 224 84 93 87 189 169 208 243 66 87 79 2 199 227 162 239 136 132 40 114 70 21 19 189 82 68 87 133 107 36 228 194 90 179 241 101 39 233 201 15 249 138 233 236 38 51 88 214 232 193 146 37 124 2 105 219 113 72 3 207 46 248 163 230 192 210 3 201 57 173 189 189 239 30 125 55 99 60 84 135 59 166 182 172 90 38 232 16 15 23 248 180 190 30 100 255 136 76 64 190 254 247 196 14 126 129 12 176 59 30 115 142 102 40 255 66 76 32 210 202 6 77 249 185 42 31 51 123 153 5 169 24 187 148 143 185 224 62 82)
#f
())
#(174
"incorrect length of null"
#vu8(49 50 51 52 48 48)
#vu8(141 224 235 206 254 150 27 232 29 245 207 191 33 44 134 72 16 113 201 59 137 200 118 39 37 151 233 161 224 105 222 179 103 122 140 194 115 194 242 146 51 238 6 54 17 207 122 157 66 175 4 233 225 212 168 193 72 240 21 46 123 123 115 229 182 254 184 126 150 75 107 215 29 118 102 204 37 249 105 71 68 40 68 169 21 66 90 243 135 168 118 98 60 64 249 118 14 221 40 191 47 106 81 37 29 184 184 19 146 102 160 75 19 37 138 98 148 219 208 139 209 233 235 81 84 38 93 105 26 254 170 252 79 209 163 134 208 159 183 31 140 34 65 22 63 184 75 154 193 143 98 148 195 211 255 209 5 21 83 46 197 1 153 140 47 115 121 14 142 21 7 86 69 6 30 154 195 16 156 238 11 59 35 228 158 231 219 49 81 44 210 81 174 203 213 54 174 250 67 91 84 152 13 109 38 104 129 47 237 149 22 174 142 62 15 126 35 94 51 143 64 212 251 25 45 18 110 25 215 9 235 137 44 46 84 245 94 21 212 62 8 55 63 3 88 247 255 232 116 210 53 150 182 62 243 69 17 245 155 105 42 32 227 134 244 16 194 35 143 70 183 213 213 70 97 147 41 121 12 141 205 248 37 233 188 215 165 37 28 101 15 37 248 202 213 235 74 197 7 53 160 77 218 47 208 58 215 89 235 28 94 28 182 31 75 239 190 150 243 189 67 42 74 199 136 47 227 247 168 170 236 86 160 217 208 237 78 242 155 19 50 173 60 1 85 211 6 157 228 182 252 109 210 153 195 25 186 103 209 21 101 73 242 255 100 3 160 135 242 21 89 208 132 173 74 14 110 153 197 90 159 225 239 187 108 177 235 169 38 103 61 24 44 161 18 162 212 42 232 196 2 242 77 84 196 248 236 240 194 213 20 8 80 179 220 214 118 117 77 124 251 66 60 92 77 161 251 160 193 238 37 126 178 40 100 182 72 27 171 50 40 216 228 46 128 104 153 58 135 175 25 231 139 222 137 207 122 252 6 67 18 24 128 23 125 129 127 4 82 61 201 231 146 185 135 191 201 110 228 213 170 244 209 132 101 160 230 210 143 80 233 112 29 200 76 52 115 2 183 206 229 254 125 4 141 7 190 142 230 32 163 76)
#f
())
#(175
"appending 0's to null"
#vu8(49 50 51 52 48 48)
#vu8(47 204 50 128 212 139 123 109 94 155 202 165 212 220 190 112 202 209 186 226 43 28 79 64 117 145 2 31 74 250 181 12 10 31 69 67 41 248 186 76 223 166 159 74 123 182 251 236 103 68 227 44 120 217 189 198 213 133 243 1 96 225 113 23 250 54 70 56 33 85 49 175 190 246 130 46 189 170 110 216 151 8 52 62 20 200 67 162 74 108 21 40 32 185 225 48 177 161 164 6 39 15 80 219 91 15 46 182 50 4 223 220 142 66 48 115 138 185 244 59 185 130 162 67 89 136 225 228 76 160 139 119 218 222 12 85 229 123 53 219 39 228 203 154 249 163 93 99 74 105 246 134 145 16 178 25 178 216 210 49 206 146 170 92 28 45 139 250 120 214 124 172 51 158 74 240 26 35 142 108 191 93 251 213 139 146 118 93 120 24 150 63 104 225 7 219 83 136 253 43 67 11 21 65 242 86 12 121 168 97 40 140 23 189 6 109 81 103 40 102 174 143 151 150 172 83 133 234 75 76 22 95 40 96 219 185 80 67 93 131 12 249 217 32 247 154 66 80 122 249 62 232 40 118 192 45 192 151 182 196 124 86 166 191 59 27 22 91 152 189 52 196 51 90 178 18 182 108 153 196 56 148 246 122 226 14 62 87 48 251 31 193 175 56 51 63 70 244 170 140 116 94 208 245 139 93 47 91 72 169 143 173 117 233 34 134 78 235 67 227 57 185 255 135 104 247 31 146 163 191 197 128 110 52 224 47 47 55 105 198 211 111 58 77 155 193 61 147 153 68 187 190 20 73 115 95 157 132 141 42 70 129 224 223 212 38 17 83 151 188 161 223 134 234 87 57 135 23 34 176 25 29 218 141 191 147 190 41 168 184 236 193 84 239 72 16 2 37 0 83 52 37 137 25 145 195 200 253 85 64 38 58 105 161 63 174 60 220 199 44 51 125 126 55 87 30 154 58 89 14 130 206 106 5 218 162 96 234 56 247 253 162 87 55 113 106 197 163 181 88 187 203 80 85 228 115 240 216 124 200 161 113 164 118 100 50 230 106 184 65 119 249 36 238 198 232 80 79 101 133 113 239 115 127 70 100 7 113 127 48 199 39 99 6 153 88 49 72 126 209 198 3 27 250 137 41 182 142 81 251 52 31)
#f
())
#(176
"appending null value to null"
#vu8(49 50 51 52 48 48)
#vu8(111 118 164 228 51 192 194 112 46 11 239 135 55 156 184 39 146 123 147 80 249 166 83 122 166 123 199 129 36 87 196 64 109 231 104 75 169 97 78 9 231 90 180 165 74 224 151 23 199 20 124 105 172 12 232 185 185 98 245 132 46 237 115 171 168 43 162 219 113 195 147 55 148 143 180 162 250 0 172 1 139 92 241 158 13 217 130 79 91 131 110 169 192 74 200 117 171 216 184 239 220 255 231 230 225 126 117 120 43 76 147 206 11 193 134 169 158 133 103 217 254 8 157 218 5 26 167 123 130 243 41 220 229 143 247 34 143 222 136 13 94 134 52 46 61 4 145 24 248 228 201 3 79 45 88 111 51 118 133 30 173 49 126 182 145 233 151 95 8 241 118 123 223 140 93 179 33 66 143 167 137 158 35 235 190 17 226 181 231 87 88 5 49 154 59 24 161 224 251 126 118 63 99 144 67 77 242 236 80 98 244 164 34 59 53 59 209 39 96 208 150 54 130 154 116 12 179 182 118 21 54 193 170 127 80 243 103 17 24 14 210 146 93 26 170 107 221 56 213 213 196 91 155 95 156 9 222 71 117 20 73 173 105 98 207 252 204 110 185 164 147 159 117 81 161 143 60 251 61 207 225 63 28 22 14 239 157 231 104 178 63 175 133 180 128 162 52 34 22 35 140 233 60 89 210 2 216 97 218 187 105 54 57 105 92 187 216 0 145 81 255 100 229 227 234 179 188 181 230 165 57 189 216 212 187 84 52 243 10 18 161 46 169 42 229 210 29 250 206 203 245 89 162 206 29 201 229 8 46 34 23 206 166 193 34 179 70 143 1 199 55 240 190 3 145 114 60 132 72 243 55 45 136 201 220 70 205 64 4 30 17 165 146 96 111 100 9 193 253 131 31 213 31 214 173 200 204 237 73 230 46 148 102 203 167 13 23 122 219 10 41 80 25 1 29 70 59 21 60 94 5 166 193 23 117 72 195 223 172 58 193 178 232 151 142 57 206 25 35 36 76 241 13 171 101 45 37 11 44 214 171 174 3 223 150 10 221 148 233 81 157 216 1 244 220 242 36 44 213 194 46 40 123 52 9 31 196 47 102 68 232 48 6 64 45 252 226 184 43 248 172 235 212 182 90 151 56 100 41 99 191 130)
#f
())
#(177
"truncated length of null"
#vu8(49 50 51 52 48 48)
#vu8(177 203 61 249 197 216 224 74 144 203 175 131 160 62 30 151 101 53 219 29 102 55 44 78 250 51 112 148 142 84 108 195 16 216 39 250 217 34 122 126 53 146 61 139 47 197 109 250 16 57 210 89 104 249 132 229 242 38 20 203 45 208 229 222 200 225 113 159 199 189 112 24 132 56 137 227 252 160 201 233 255 166 222 71 253 246 124 38 99 152 222 150 28 81 231 131 20 117 176 184 2 26 12 88 118 23 214 46 239 65 123 147 230 117 99 12 162 109 143 65 17 27 32 217 68 195 159 71 173 175 241 182 54 215 250 30 224 0 252 168 82 3 139 60 203 176 93 153 162 253 102 74 80 18 158 80 98 184 229 171 4 166 84 118 170 96 223 200 114 52 91 224 19 159 78 48 241 7 247 225 212 10 122 1 167 136 149 146 197 171 64 194 191 177 136 243 69 211 8 106 247 231 37 181 162 9 66 7 152 227 0 132 86 31 213 172 22 38 233 60 203 196 46 156 31 40 48 115 191 145 35 44 180 143 87 28 50 199 30 75 71 194 87 82 149 114 99 64 207 182 145 18 135 117 1 97 133 117 116 141 168 30 127 143 198 248 152 0 58 184 154 17 168 215 227 100 124 114 244 56 157 48 178 101 2 14 153 129 78 168 191 4 6 189 117 41 42 165 94 105 197 161 104 245 145 91 177 233 223 48 190 27 252 31 9 123 207 231 141 111 126 169 99 248 240 72 47 42 18 45 27 61 60 102 70 91 109 125 3 90 197 36 157 74 58 44 84 253 174 38 10 157 80 242 156 132 204 57 222 253 83 182 22 199 133 218 118 168 98 252 96 166 25 226 89 3 190 242 7 207 28 147 232 199 101 161 63 135 2 124 155 215 115 111 192 68 239 79 109 211 207 55 82 190 218 36 179 210 137 15 9 237 133 229 244 92 2 253 204 71 78 203 172 16 141 99 244 187 2 102 245 240 141 74 76 192 158 82 23 121 62 209 101 50 208 121 107 194 47 5 96 127 111 38 93 150 126 66 78 71 215 58 60 72 101 50 239 188 145 216 247 189 151 12 201 65 47 191 22 80 205 172 235 153 99 88 133 183 138 190 43 128 71 211 224 75 7 87 48 24 165 200 185 81 141 38 242 95 198 182 79 246)
#f
())
#(178
"changing tag value of null"
#vu8(49 50 51 52 48 48)
#vu8(180 251 157 146 60 87 161 63 215 30 39 194 92 240 237 248 114 222 90 115 69 240 76 45 94 0 42 154 66 68 95 130 62 151 111 7 143 205 155 36 1 77 116 179 28 35 128 249 83 0 122 253 61 163 255 166 110 137 240 52 37 250 237 43 239 235 17 205 199 114 94 154 3 18 119 190 110 44 98 22 176 242 208 165 59 184 36 47 5 91 128 252 71 9 41 43 28 86 161 129 1 242 194 171 174 185 188 93 220 198 173 49 132 230 174 133 98 195 2 22 226 43 67 200 137 206 39 205 241 70 159 217 150 237 144 172 9 5 15 49 38 76 217 48 81 80 122 174 115 234 178 44 100 166 58 40 21 13 224 107 67 179 180 9 154 237 167 149 129 28 221 71 226 183 53 21 194 202 210 96 155 157 138 223 165 67 237 42 177 34 40 90 18 191 183 223 33 145 81 240 237 223 219 75 228 90 86 36 98 30 29 69 236 81 30 123 80 92 146 81 107 112 188 121 129 173 97 172 107 139 16 55 181 224 10 171 233 133 30 53 119 212 227 53 36 79 50 222 98 122 127 207 158 147 119 21 191 49 65 75 244 50 211 57 198 90 184 206 234 73 191 172 111 93 218 164 237 10 157 43 215 245 210 171 178 152 25 255 221 125 222 169 199 28 59 213 117 235 24 196 214 159 80 217 140 73 85 55 52 8 101 26 225 155 210 173 131 154 177 252 180 63 88 129 253 41 10 194 16 157 249 193 111 198 193 74 134 166 20 252 85 9 183 50 158 125 253 129 151 187 246 89 150 103 1 161 57 90 95 73 137 136 196 133 2 90 37 130 36 35 239 183 119 92 155 68 173 63 60 124 121 239 179 41 115 91 33 51 150 17 231 117 106 83 45 254 0 210 196 38 178 180 25 66 214 92 72 190 99 249 24 143 11 133 19 72 64 93 218 12 227 222 51 63 184 46 168 14 61 204 183 244 242 69 52 21 171 134 191 90 92 248 81 44 111 91 193 132 105 97 253 235 161 149 91 150 165 20 92 244 71 170 52 214 250 34 178 38 188 102 150 219 41 165 14 52 85 71 71 84 219 134 21 80 101 221 89 111 148 18 202 200 128 160 19 43 30 31 236 94 208 21 177 200 220 139 104 43 167 113 2 28)
#f
())
#(179
"changing tag value of null"
#vu8(49 50 51 52 48 48)
#vu8(152 161 22 248 137 170 130 9 54 106 15 244 97 188 58 34 131 195 127 120 185 144 98 46 228 158 112 70 175 29 251 141 91 86 194 198 105 231 30 74 15 161 241 204 80 36 211 135 214 249 245 217 129 232 253 240 145 66 218 88 215 96 193 207 16 206 76 232 242 180 103 240 84 169 194 110 236 244 171 238 69 211 181 130 249 248 129 231 125 98 107 59 48 5 69 7 239 207 162 212 68 77 202 138 48 117 120 13 48 111 87 128 222 118 247 13 176 122 87 224 164 159 128 136 59 240 217 232 56 202 87 112 240 124 237 120 78 160 158 78 238 65 45 2 226 4 17 238 94 196 138 168 83 48 197 226 199 169 58 222 14 195 56 58 192 248 33 224 134 135 28 32 113 68 71 42 71 174 54 225 91 91 110 181 197 100 3 27 21 129 175 227 33 222 0 190 32 229 18 92 244 250 1 210 203 126 81 15 133 235 105 12 50 187 203 247 157 225 157 111 22 40 5 196 182 48 210 240 18 33 118 34 39 153 185 229 236 103 41 188 21 14 54 15 247 229 173 40 116 22 38 87 121 38 239 175 133 65 51 106 155 193 173 180 209 32 94 11 46 126 238 115 116 3 87 206 33 89 159 245 65 64 130 210 40 240 137 242 226 24 244 19 16 159 204 32 189 97 218 198 33 141 132 249 12 41 38 166 222 224 18 237 240 105 173 244 0 116 101 168 227 87 64 51 196 190 84 190 219 81 171 218 155 178 206 192 129 209 238 42 166 22 23 138 160 140 176 254 72 54 236 117 54 100 156 235 210 162 155 144 86 81 11 74 111 171 198 185 28 114 252 163 196 101 114 243 151 116 148 134 228 177 24 223 82 55 112 59 227 222 59 94 251 191 49 3 57 5 48 12 80 239 206 42 170 127 10 129 155 129 154 206 136 25 132 112 123 177 236 102 128 185 171 151 24 107 6 150 233 207 16 67 174 67 172 179 253 156 172 159 186 48 93 117 108 68 6 65 142 93 209 72 3 79 107 59 135 226 7 251 157 26 195 172 36 188 189 95 104 22 69 119 49 119 208 156 115 232 193 72 116 188 167 99 199 159 135 58 40 83 231 66 174 239 112 180 199 79 136 226 178 200 176 148 222 173 142 208 136 220 162 148)
#f
())
#(180
"changing tag value of null"
#vu8(49 50 51 52 48 48)
#vu8(170 76 213 66 75 119 206 125 190 6 84 167 96 156 226 115 215 124 178 178 176 162 38 42 9 63 78 229 60 212 252 196 187 1 225 111 181 10 19 178 0 35 254 111 48 3 172 99 93 31 199 20 131 24 116 91 82 228 223 10 136 167 42 32 186 96 51 79 181 180 69 249 230 127 49 220 188 8 176 147 61 16 211 32 204 72 176 171 66 108 205 190 86 88 214 220 102 21 157 98 42 11 53 80 169 112 228 185 13 231 158 118 241 187 94 95 7 63 120 2 166 39 73 61 205 245 232 194 47 59 211 204 107 72 177 238 64 119 82 123 117 251 56 162 62 10 178 255 179 2 247 197 10 133 33 92 186 201 154 73 53 122 209 60 188 18 73 108 36 149 251 112 96 140 36 33 24 227 191 1 235 208 166 61 194 89 230 5 197 66 28 184 62 16 3 100 58 111 250 150 227 133 187 255 63 73 161 125 230 132 111 84 99 28 149 212 83 79 58 144 105 6 156 87 138 64 202 36 139 224 229 145 94 110 73 154 66 207 17 242 101 43 217 184 23 25 117 15 14 10 151 7 186 48 117 55 113 175 18 114 106 254 35 169 196 227 139 3 227 76 11 209 142 176 204 147 119 10 111 0 84 57 102 209 112 155 101 151 128 163 90 248 43 50 194 89 212 111 25 239 226 108 181 31 6 45 20 47 137 124 201 153 64 190 247 103 128 92 50 172 138 27 218 3 213 226 12 127 96 56 87 32 226 212 117 68 248 221 89 153 253 199 102 175 216 201 136 117 17 17 82 19 129 66 45 252 200 129 107 134 44 66 35 114 233 184 106 93 152 89 190 50 216 223 192 43 214 245 230 31 107 187 166 207 127 69 49 237 123 18 52 28 145 83 49 51 217 4 2 208 102 133 82 252 23 71 12 33 187 132 60 179 107 138 79 166 163 219 36 176 212 37 75 62 22 185 37 21 211 27 175 111 118 185 136 204 236 42 66 13 15 14 149 145 150 45 233 47 222 221 27 97 151 17 65 122 244 87 2 215 225 213 206 13 175 46 240 21 75 252 70 198 70 4 146 168 133 93 135 233 165 4 96 113 169 144 214 231 251 12 166 60 3 177 91 18 196 44 26 213 176 162 12 192 71 45 197 224 2 140 100 42)
#f
())
#(181
"changing tag value of null"
#vu8(49 50 51 52 48 48)
#vu8(95 149 21 213 109 134 230 93 86 86 52 173 149 0 43 149 149 242 94 207 186 244 220 68 137 122 125 70 141 60 113 39 129 49 68 77 72 177 203 241 158 100 9 182 117 111 231 83 235 108 58 193 199 63 214 57 29 76 214 225 231 190 159 15 192 68 205 18 77 177 163 219 87 80 70 105 141 20 13 71 122 76 109 149 165 235 6 222 17 216 187 188 139 46 108 4 248 24 64 8 203 35 136 87 79 239 81 174 203 143 24 138 178 32 109 160 147 51 207 83 109 0 77 253 51 137 12 178 75 226 175 104 45 2 187 186 198 143 177 252 250 106 92 175 211 38 110 244 176 154 117 140 102 124 203 222 217 175 252 55 193 62 226 157 170 157 13 178 193 175 222 63 110 123 7 14 42 155 90 155 59 125 117 224 135 30 78 96 216 104 216 206 56 254 231 38 196 10 39 252 79 84 40 127 167 135 46 95 113 145 152 242 11 120 135 186 82 66 98 254 218 6 215 81 166 112 220 24 39 55 76 210 253 37 51 10 24 14 33 188 164 207 141 255 239 68 90 205 238 88 234 168 198 174 163 207 229 94 198 237 150 60 5 183 212 146 231 152 79 151 109 110 228 131 28 78 161 230 91 132 10 29 25 15 28 73 179 205 127 141 40 156 58 39 81 196 136 92 214 54 143 23 191 208 218 83 59 178 255 222 238 239 66 129 161 239 169 54 103 185 251 7 4 46 12 227 209 124 124 148 211 159 223 129 195 72 187 58 156 170 23 185 107 2 143 208 79 137 187 218 171 163 124 163 200 103 181 176 111 145 59 108 59 214 247 193 218 188 130 190 60 219 212 161 132 177 238 48 221 221 40 176 11 79 1 87 101 204 149 219 24 199 72 71 131 156 205 58 192 47 57 151 206 71 246 63 38 201 242 13 2 220 26 234 87 219 199 104 119 133 52 168 70 15 136 85 77 237 56 122 100 252 101 32 156 4 19 252 191 168 29 194 74 155 138 8 30 20 80 159 209 194 203 192 90 170 144 226 2 172 176 104 141 166 124 235 205 62 176 235 134 126 170 219 164 18 203 108 136 240 254 156 120 11 47 97 179 63 71 206 45 112 6 11 129 70 166 204 90 232 37 177 237 196 146 168 139 78 57 127 92 5)
#f
())
#(182
"changing tag value of null"
#vu8(49 50 51 52 48 48)
#vu8(85 15 188 245 8 4 193 26 147 222 191 191 38 159 187 100 55 177 113 254 0 185 233 48 118 202 127 199 219 136 233 23 101 238 67 155 204 196 23 214 71 209 69 148 62 215 153 67 36 181 20 162 212 167 5 39 216 248 87 255 89 51 244 164 113 104 180 159 89 32 100 28 73 202 95 40 123 4 151 206 135 136 87 246 76 81 175 207 54 245 241 21 180 168 232 73 18 134 233 114 245 77 238 193 111 253 196 184 182 2 181 235 118 216 167 41 211 95 169 100 253 104 88 19 187 126 243 174 101 41 214 97 10 246 239 204 130 94 178 52 228 86 25 115 149 108 11 12 228 249 60 75 219 188 103 135 65 138 106 115 139 119 113 84 125 238 199 116 196 4 88 158 250 103 107 200 0 1 154 158 200 166 143 79 71 157 12 3 183 204 126 127 4 68 79 188 222 159 139 17 128 219 154 126 96 167 252 130 239 127 78 124 162 19 8 51 197 245 104 58 176 110 36 76 169 4 231 145 223 208 27 224 169 108 189 85 182 156 251 49 214 64 244 188 219 114 222 172 44 236 111 203 4 95 60 37 159 245 152 232 44 82 179 75 150 166 224 243 226 85 139 110 132 232 185 5 145 235 236 16 198 111 128 156 55 115 131 73 204 110 38 145 240 45 105 233 90 45 185 149 16 204 23 231 105 147 165 216 96 215 241 159 33 89 63 107 227 144 122 58 86 174 228 231 158 178 213 246 29 156 135 50 121 110 56 148 0 43 192 154 133 80 230 130 217 172 201 47 163 251 173 33 80 59 17 124 106 99 130 101 29 8 234 183 119 204 135 220 6 38 103 9 98 93 127 22 39 57 83 46 241 184 226 95 160 37 74 113 172 29 251 0 199 126 165 181 147 38 123 20 47 214 15 86 92 104 37 152 88 18 225 168 193 228 115 83 236 183 67 162 234 82 241 101 195 48 165 240 162 90 10 46 220 81 92 207 218 151 220 175 64 183 116 20 14 19 6 230 137 17 147 33 112 225 3 174 210 255 225 8 239 210 25 122 5 24 143 159 24 177 245 155 245 156 101 113 242 126 242 13 18 189 31 11 18 213 19 36 61 14 17 118 48 176 245 33 226 158 64 28 218 144 74 4 132 238 237 158 207 29 4 156)
#f
())
#(183
"composed null"
#vu8(49 50 51 52 48 48)
#vu8(120 198 188 198 226 43 32 81 245 220 186 38 237 210 13 104 5 54 234 21 170 93 94 212 56 219 146 179 178 236 206 14 181 157 212 108 36 150 218 254 172 62 73 145 29 188 114 248 149 202 12 246 103 159 54 199 112 132 118 70 233 158 161 2 100 139 143 204 61 110 65 70 108 95 191 176 163 67 217 133 252 149 244 88 43 103 22 80 217 145 118 132 3 228 247 93 133 40 86 164 80 128 78 226 158 2 3 192 118 115 96 118 174 121 146 154 136 211 7 192 126 250 9 146 228 95 228 146 5 246 112 97 247 174 42 220 44 170 55 205 212 174 62 75 145 87 152 56 52 5 91 213 33 18 67 96 232 224 48 33 247 3 171 75 36 91 163 11 78 66 21 5 203 50 99 217 85 198 211 21 251 207 208 141 186 5 110 46 185 109 171 162 138 191 218 20 144 132 176 5 42 159 0 19 89 54 146 163 93 82 243 132 58 118 237 53 206 63 12 142 138 163 65 138 83 188 235 157 92 239 97 184 76 118 102 72 86 59 240 15 243 222 246 167 29 2 160 58 203 227 69 134 121 173 139 113 2 37 84 74 245 196 247 20 43 207 2 137 229 79 118 180 171 13 34 115 166 81 221 175 79 86 90 215 111 35 30 237 140 128 181 217 132 129 235 109 213 7 218 85 57 108 111 236 101 113 216 28 48 8 8 28 124 180 121 44 71 2 94 243 63 137 51 42 79 40 240 59 206 211 17 28 137 92 95 72 253 182 79 171 169 125 237 209 193 141 134 51 91 224 182 106 51 65 19 160 20 156 103 220 173 83 4 13 138 210 50 95 214 193 27 64 53 10 146 240 63 206 13 153 16 52 226 82 114 239 54 101 210 188 255 200 245 43 124 8 162 61 130 31 184 36 113 61 4 25 96 117 176 94 130 211 19 140 6 49 151 89 232 89 199 151 60 225 92 58 175 27 170 43 249 14 190 210 96 248 122 65 62 240 161 127 166 84 195 90 237 252 203 78 73 102 18 185 71 35 85 34 236 165 177 14 25 95 115 65 149 28 171 227 224 219 102 53 50 168 251 108 216 238 160 106 54 103 225 252 196 0 42 10 11 187 203 77 123 126 32 187 99 90 73 52 245 130 19 119 86 147 237 44 100 248)
#f
())
#(184
"incorrect null"
#vu8(49 50 51 52 48 48)
#vu8(30 204 113 253 46 52 252 204 1 21 138 70 246 143 228 26 201 99 221 159 74 82 121 234 92 168 126 129 25 91 5 36 26 143 71 153 168 98 251 188 50 80 171 126 134 188 80 143 143 227 42 30 230 80 7 249 13 11 49 157 174 14 34 107 159 60 234 223 54 42 84 136 175 189 58 76 34 217 165 145 120 86 245 247 237 240 47 97 221 202 238 110 37 114 4 6 195 250 218 154 242 78 178 249 177 231 130 104 144 246 33 188 38 131 122 130 191 241 83 36 72 254 228 145 133 198 83 91 60 21 97 248 69 172 167 189 125 147 76 101 17 241 81 52 40 185 40 238 4 101 21 122 130 146 132 232 150 57 183 111 81 79 250 28 237 224 127 198 216 140 201 202 159 141 192 159 23 236 101 177 250 107 8 130 11 137 95 64 129 148 253 252 23 185 141 41 182 172 213 179 101 4 236 140 97 107 4 118 20 54 34 229 19 240 168 173 51 23 146 73 155 177 130 113 236 58 215 148 103 124 250 189 178 45 25 41 36 238 152 47 116 187 208 98 172 255 220 142 183 11 210 243 22 29 216 189 14 11 19 13 142 99 249 64 98 11 137 1 15 118 228 230 239 3 155 127 200 242 252 167 219 86 63 95 91 128 218 105 102 39 53 235 71 235 45 239 151 48 234 221 177 100 219 97 68 91 178 84 226 42 139 247 25 66 229 178 207 221 202 213 216 209 193 25 231 200 194 102 61 179 181 38 220 138 38 93 3 69 79 179 91 24 146 58 244 200 218 25 250 240 140 111 119 14 61 223 195 140 92 57 136 164 227 2 253 156 140 146 173 92 190 176 209 139 29 228 60 184 187 234 109 118 225 176 229 122 73 175 61 58 46 36 47 209 243 144 247 27 222 150 139 108 233 18 48 209 4 1 212 102 254 123 111 210 250 26 232 202 88 153 155 128 134 112 255 183 100 136 136 42 136 15 75 158 175 212 20 172 187 138 42 188 62 45 188 121 54 44 223 103 162 130 66 232 235 195 147 240 101 218 182 101 156 48 6 133 79 87 126 52 216 118 187 224 175 169 116 132 175 14 190 69 78 68 188 169 137 215 227 143 140 66 224 9 212 185 170 17 143 142 44 86 13 115 32 7 74 119 127 175 185 166)
#f
())
#(185
"long form encoding of length of digest"
#vu8(49 50 51 52 48 48)
#vu8(138 191 180 73 217 3 244 8 161 7 24 206 92 114 214 22 13 102 43 3 207 255 171 254 82 205 160 39 36 125 42 248 172 157 135 4 70 168 182 87 180 150 251 248 215 77 157 142 54 211 150 242 224 216 93 57 72 64 71 136 253 204 2 245 70 43 224 99 41 239 217 1 247 17 199 126 131 1 79 243 160 39 81 186 143 61 210 140 178 243 12 207 227 169 88 239 41 69 192 248 163 198 211 49 227 138 92 101 52 231 22 18 195 240 180 93 200 19 150 65 14 77 85 199 211 20 1 174 124 122 21 73 16 76 113 139 186 203 201 98 54 55 112 90 35 66 242 97 195 123 190 53 237 48 198 77 135 190 23 172 16 162 99 162 205 248 41 71 183 49 68 209 69 248 113 22 147 237 187 81 231 7 241 188 117 166 62 200 117 87 47 111 25 19 70 155 217 232 206 79 125 203 84 46 211 197 166 30 130 246 113 163 159 105 137 95 12 54 2 51 176 97 60 115 173 104 59 180 210 183 119 28 123 122 36 255 236 83 125 142 147 130 192 177 162 116 217 110 236 198 165 65 230 167 168 17 92 176 119 103 215 255 64 191 18 102 223 75 34 187 175 73 200 241 209 3 163 185 211 170 179 59 251 5 223 206 213 177 224 74 132 42 221 143 24 164 98 196 115 99 121 61 112 127 79 213 252 230 253 29 43 228 143 175 83 37 35 149 90 219 210 45 114 148 221 102 229 197 134 233 10 89 190 97 39 119 179 230 97 57 167 47 203 96 131 41 194 151 203 132 19 79 32 229 86 34 214 245 110 150 83 135 112 66 177 83 44 20 58 45 156 0 0 74 91 180 53 94 178 144 105 85 36 195 138 69 249 122 13 103 235 77 27 180 135 211 150 115 73 226 95 212 221 91 24 35 165 69 71 141 173 32 238 77 238 147 28 102 55 255 202 79 136 84 158 173 95 54 216 110 121 158 231 87 204 85 95 145 8 53 7 127 39 63 92 56 201 80 142 141 26 147 33 105 97 141 175 98 105 226 200 86 118 197 21 243 161 144 220 218 187 11 241 199 72 163 133 254 248 191 16 140 215 22 236 9 207 34 81 145 107 164 44 32 214 127 23 143 208 133 61 64 169 3 39 5 60 171 213 216 153 127)
#f
())
#(186
"length of digest contains leading 0"
#vu8(49 50 51 52 48 48)
#vu8(51 235 179 40 254 74 130 32 110 227 219 64 213 141 158 48 129 181 58 165 30 243 54 37 175 194 215 120 200 239 86 193 116 191 64 173 42 32 211 82 70 117 38 158 252 146 87 155 204 195 50 177 177 175 90 227 48 146 163 87 157 33 172 117 106 35 44 164 193 143 106 94 115 235 177 253 5 71 225 139 107 202 153 205 141 199 21 247 21 252 38 36 97 245 135 178 235 244 194 247 191 65 201 162 28 212 84 85 212 146 213 223 190 186 88 140 189 194 173 0 24 58 61 252 219 169 235 172 2 190 213 66 91 167 29 8 144 239 169 93 12 173 221 156 135 28 244 20 242 53 122 233 122 40 180 139 101 107 39 179 206 30 254 233 178 145 20 236 85 28 42 251 40 196 5 116 81 213 44 140 161 5 4 68 188 204 136 99 192 184 234 101 244 92 152 82 100 2 42 118 125 36 93 63 178 214 119 183 188 86 0 125 85 204 200 93 213 114 210 207 102 152 85 227 139 65 234 105 183 95 42 111 64 90 85 196 149 218 255 215 90 222 15 8 110 207 243 78 59 137 221 128 98 112 65 22 90 145 190 141 146 181 138 68 102 76 50 187 123 174 181 179 144 106 71 94 94 253 104 10 133 160 163 188 10 172 233 188 218 27 95 131 35 157 136 241 216 240 133 20 156 59 249 180 221 151 36 68 211 136 95 38 109 75 48 187 95 242 57 176 95 42 221 247 226 232 182 88 143 228 106 225 55 171 127 185 231 149 163 123 234 116 118 111 121 147 139 13 86 210 223 129 189 60 127 247 156 56 121 9 70 61 221 254 54 2 146 117 186 24 199 252 125 47 80 160 66 180 226 166 94 203 238 139 137 249 156 194 165 228 93 52 225 212 212 40 85 242 211 106 42 142 36 89 173 86 74 201 189 131 184 122 93 115 228 153 202 255 245 124 55 66 198 82 250 134 81 206 177 4 86 179 103 62 170 86 78 77 114 53 46 127 79 36 225 90 22 186 148 231 103 63 156 88 76 217 161 38 112 203 240 241 251 214 118 78 21 84 74 23 158 158 28 218 218 28 66 206 142 161 137 208 212 187 154 39 91 195 16 42 24 15 68 11 9 223 239 179 85 165 111 12 116 173 128 171 137 84 198 227 87 103)
#f
())
#(187
"wrong length of digest"
#vu8(49 50 51 52 48 48)
#vu8(159 128 4 11 51 113 207 155 43 203 172 192 104 240 54 69 161 20 183 60 115 49 59 62 20 109 44 32 232 198 212 188 173 36 240 137 59 253 50 15 235 214 153 19 121 236 142 167 150 250 239 163 56 75 146 137 243 2 62 180 161 136 67 156 121 173 92 80 28 220 8 7 99 14 231 249 97 122 79 251 14 0 253 161 103 73 114 234 219 245 118 146 245 22 245 43 60 167 196 20 102 148 202 217 93 84 37 125 118 171 211 169 59 110 42 48 17 66 23 210 67 153 89 217 223 29 33 139 149 238 254 54 228 160 20 86 170 233 49 25 50 187 186 163 74 235 18 237 33 3 157 100 53 36 70 44 126 11 253 214 71 87 106 60 237 107 42 40 85 130 48 206 51 222 198 58 81 35 102 109 21 34 249 178 230 36 87 79 238 34 130 126 205 115 20 189 46 43 162 140 181 176 255 251 14 120 121 141 168 166 27 27 117 39 83 246 5 59 103 222 247 177 153 54 227 95 217 160 103 26 18 204 84 208 153 167 219 92 68 41 179 158 180 223 32 186 50 94 191 71 134 117 229 83 44 247 155 158 83 74 150 18 157 199 18 37 233 205 51 114 7 252 26 6 7 52 193 50 132 51 23 176 92 139 11 42 37 51 102 221 52 10 125 101 230 31 130 90 139 150 175 38 59 53 26 19 195 18 20 28 127 112 121 74 4 140 112 66 148 177 82 169 24 226 28 21 70 176 229 6 148 193 47 161 254 181 233 153 178 7 109 222 65 143 43 58 141 76 144 104 36 169 115 95 128 240 145 78 148 116 3 102 253 173 129 160 41 17 205 64 225 165 144 165 135 219 220 49 209 81 150 105 139 143 29 101 130 98 165 216 135 82 160 193 2 32 143 76 36 192 230 26 102 86 17 117 203 113 179 218 252 181 153 172 50 126 205 183 43 252 71 148 86 142 60 165 105 110 29 11 100 3 156 170 242 210 128 141 159 82 141 151 64 36 61 120 19 89 249 180 185 182 130 68 163 129 234 116 2 63 139 92 126 183 112 239 24 155 28 38 56 250 18 52 236 247 64 55 173 15 111 3 214 43 202 241 13 247 117 88 70 216 209 255 49 34 61 32 176 84 63 57 9 46 64 213 170 201 110 60 95 88)
#f
())
#(188
"wrong length of digest"
#vu8(49 50 51 52 48 48)
#vu8(114 22 183 31 128 28 92 73 118 169 219 28 219 164 38 47 65 88 228 36 100 75 156 159 157 173 251 61 231 100 129 117 237 27 79 87 242 255 162 95 107 89 119 21 61 5 147 102 232 11 176 118 25 236 93 155 168 101 205 176 4 191 254 230 91 6 111 194 133 164 130 152 145 209 126 80 35 55 153 27 170 192 50 19 141 133 198 240 179 57 142 48 41 52 48 16 251 125 223 166 217 228 68 2 44 212 153 41 24 165 94 93 247 191 6 4 18 13 154 223 37 179 14 186 33 114 81 5 7 124 187 107 20 46 0 174 151 240 58 126 169 67 246 16 126 78 122 200 198 57 252 228 7 243 163 53 202 230 154 150 13 212 35 165 17 128 46 141 31 178 95 126 115 106 73 216 235 252 76 220 205 238 65 104 114 110 186 34 36 111 159 33 206 4 131 230 240 116 153 214 55 81 88 167 118 31 254 254 129 148 139 89 212 127 14 154 69 168 191 16 75 25 83 101 53 213 179 21 250 50 83 65 196 193 153 179 220 238 213 146 179 176 109 16 245 184 34 54 68 231 232 82 135 3 143 113 207 247 48 46 245 234 28 172 2 81 30 71 170 223 245 48 16 232 191 67 58 200 4 223 95 12 128 247 30 88 15 28 251 167 131 186 117 139 143 209 246 42 98 120 234 200 26 121 140 205 228 177 94 60 225 144 157 222 167 36 206 156 204 103 67 32 227 224 35 250 12 53 187 90 112 91 241 120 117 186 98 62 76 48 254 239 14 111 253 211 79 76 48 62 4 45 85 31 90 131 255 24 18 15 159 68 193 4 207 138 96 79 169 205 14 48 13 174 198 41 133 129 207 100 38 185 248 159 75 127 190 183 222 104 28 99 138 40 115 194 126 115 82 131 98 195 35 50 185 207 123 176 53 96 243 5 88 209 250 12 59 26 216 179 71 137 17 174 65 191 28 147 155 89 133 37 112 82 158 238 159 118 21 16 159 28 162 40 165 236 120 37 142 87 39 107 251 162 255 119 246 234 113 92 43 208 17 59 242 142 123 188 21 45 236 33 29 20 204 216 251 48 231 33 73 189 140 9 126 168 182 221 130 212 148 129 220 135 148 177 32 22 78 224 217 203 249 162 119 130 22 171 174 203 244 250)
#f
())
#(189
"uint32 overflow in length of digest"
#vu8(49 50 51 52 48 48)
#vu8(193 26 100 173 252 198 113 28 107 128 84 154 114 156 49 30 207 48 214 108 162 199 211 30 170 46 127 126 134 123 60 59 81 1 20 111 65 97 170 17 246 228 71 86 33 94 192 152 89 96 32 81 199 207 98 56 220 73 207 58 252 254 162 38 131 196 206 240 205 221 171 30 232 115 101 217 153 148 69 192 131 197 250 40 35 69 151 189 177 155 144 120 154 132 57 60 114 174 244 183 118 118 148 179 224 192 158 98 180 162 168 100 82 94 67 232 88 225 233 161 66 77 126 162 154 68 242 64 56 191 162 202 199 69 1 21 110 63 219 125 121 86 202 226 48 245 211 239 231 38 216 23 152 131 81 232 147 179 114 118 67 163 167 138 72 77 145 16 58 92 80 251 128 239 219 143 213 133 46 157 99 1 156 141 128 161 236 250 4 55 131 201 24 212 94 53 108 85 43 9 87 172 146 132 31 58 202 243 142 114 95 210 207 247 152 233 65 202 154 99 213 60 148 165 120 201 233 54 20 12 44 14 167 242 97 200 207 230 55 111 210 11 195 23 27 48 251 56 109 156 173 72 162 79 191 23 137 103 129 208 197 109 118 53 217 230 19 72 103 61 239 199 255 29 220 210 83 13 211 183 214 168 176 156 12 148 164 74 228 80 101 43 9 84 103 30 231 140 147 160 197 33 59 14 151 220 239 83 183 56 254 233 19 33 86 132 228 133 138 111 59 214 83 53 145 172 137 136 185 31 27 96 220 218 96 241 126 211 240 222 19 136 101 101 137 221 215 140 93 97 228 10 178 40 14 124 76 207 131 160 166 192 192 132 91 48 54 213 91 72 190 1 0 240 148 90 134 163 189 83 159 77 36 33 205 147 167 34 238 160 132 168 57 247 11 33 121 10 80 58 92 92 94 232 157 221 174 195 251 228 243 92 235 111 222 131 47 40 27 142 46 186 53 217 220 219 15 221 171 17 167 198 252 108 54 92 188 14 181 150 7 227 220 179 126 232 225 92 244 115 245 17 139 168 114 126 189 112 86 19 167 162 206 45 248 15 33 175 35 82 44 88 93 73 154 37 3 241 22 20 160 251 127 41 73 248 231 136 44 172 73 224 250 7 123 109 84 53 201 164 158 63 7 20 221 17 135 9 249 90 39 229)
#f
())
#(190
"uint64 overflow in length of digest"
#vu8(49 50 51 52 48 48)
#vu8(25 114 71 165 21 251 74 18 232 116 164 212 201 190 149 206 229 55 130 239 71 85 119 223 97 224 231 14 60 59 205 91 212 233 134 124 14 92 158 229 222 205 237 197 54 3 245 170 165 183 131 215 86 39 159 79 116 205 235 54 169 58 165 27 246 174 61 185 209 100 126 230 47 106 7 146 134 57 28 15 105 29 42 237 193 55 142 131 222 21 69 114 219 97 27 97 184 240 106 132 233 59 148 168 104 183 230 242 209 52 106 207 231 225 84 152 110 73 175 225 159 144 107 105 243 232 244 32 181 119 116 222 178 68 210 107 81 94 136 252 19 62 238 113 119 134 218 66 161 102 222 71 215 186 39 54 189 166 34 126 198 61 8 154 55 6 65 48 217 94 22 5 200 72 64 123 56 174 157 53 133 10 59 73 136 162 43 134 112 120 160 31 160 56 40 28 95 122 90 189 148 122 158 209 42 33 33 167 78 61 166 178 181 10 125 140 36 0 159 236 221 112 24 51 90 29 232 216 102 119 162 162 206 156 87 36 27 72 5 49 6 8 254 122 94 126 217 210 157 70 249 159 99 248 159 28 74 80 18 244 28 161 105 99 131 217 178 180 209 155 249 43 125 3 2 99 151 151 180 220 85 118 160 89 39 139 173 241 218 71 95 196 115 27 234 109 98 119 17 125 3 244 147 158 213 15 152 144 149 40 109 93 252 72 78 83 95 121 41 207 1 145 197 224 6 248 135 101 39 22 154 73 243 204 251 139 155 33 169 250 72 163 113 218 89 96 255 123 57 154 195 207 137 161 204 13 208 49 91 35 32 126 191 255 136 108 240 52 34 160 20 5 221 140 112 152 202 146 111 101 219 123 220 143 50 173 145 70 172 44 216 31 116 53 104 32 125 221 82 176 68 32 166 253 184 97 147 135 144 35 75 58 233 35 226 244 131 188 105 5 221 197 160 132 230 38 91 57 164 67 23 138 186 121 7 158 51 231 209 131 21 168 106 10 196 45 110 197 19 227 168 140 6 25 224 156 178 81 149 174 168 86 53 91 179 223 0 130 10 133 110 23 48 166 17 150 186 226 139 137 252 25 20 205 165 206 15 151 68 124 88 23 121 133 22 180 140 13 212 55 149 58 231 202 23 161 200 69 2 179 17 152)
#f
())
#(191
"length of digest = 2**31 - 1"
#vu8(49 50 51 52 48 48)
#vu8(86 142 159 229 149 75 157 119 100 58 255 16 230 152 210 76 167 52 187 152 138 101 145 188 189 56 101 150 56 229 142 139 167 213 176 58 145 20 201 220 140 212 201 22 19 165 233 14 33 168 62 205 176 136 68 166 180 38 57 225 196 162 146 151 84 238 247 64 183 221 33 98 109 42 61 15 147 209 167 142 100 2 54 30 164 6 101 45 152 219 132 226 53 133 140 108 53 170 74 232 49 51 253 208 136 7 251 167 120 37 102 140 15 110 54 175 90 219 181 66 45 180 181 189 226 201 102 159 214 151 62 86 220 18 134 109 72 225 50 190 115 147 169 90 238 73 97 61 248 58 4 44 110 195 137 213 31 223 46 56 172 79 158 129 110 179 250 84 103 245 13 89 57 72 30 222 113 201 69 119 9 93 47 148 250 31 9 252 178 82 158 134 238 14 149 72 180 85 238 183 212 53 177 71 100 253 153 54 176 176 0 182 21 124 223 177 148 14 188 196 244 171 36 112 145 63 169 175 64 128 66 244 205 9 166 227 43 234 51 1 161 171 9 62 169 48 65 60 35 13 204 114 54 3 145 185 94 152 25 228 226 69 82 155 10 30 117 81 28 171 143 45 77 60 16 195 127 43 209 194 84 140 166 136 243 219 132 194 116 214 110 249 52 214 174 85 164 142 166 142 139 155 55 33 76 253 165 16 54 165 38 243 55 68 191 43 165 166 59 125 139 224 164 230 245 3 148 157 56 188 239 157 251 129 55 152 74 217 200 124 68 231 231 156 0 160 168 45 0 197 117 120 35 210 196 159 74 199 63 5 88 154 154 195 249 123 221 175 162 8 165 224 113 113 249 178 229 219 182 146 190 196 170 76 113 34 167 32 132 52 110 166 101 184 125 162 39 227 29 135 115 244 158 8 108 107 161 210 207 234 223 179 86 65 155 60 105 90 54 52 105 63 46 176 35 235 163 1 214 33 134 133 153 60 32 30 218 66 106 55 115 16 248 83 175 228 245 235 1 113 215 114 8 156 99 250 239 46 115 65 20 84 8 215 163 44 229 207 45 18 18 64 132 70 200 224 75 181 162 255 88 186 218 228 1 154 86 169 157 100 201 93 175 246 0 216 236 224 55 249 141 124 118 63 155 105 145 54 16 111 234 181)
#f
())
#(192
"length of digest = 2**32 - 1"
#vu8(49 50 51 52 48 48)
#vu8(157 86 152 196 36 185 194 213 152 10 89 19 175 201 250 152 138 81 21 224 230 137 185 104 74 198 161 248 148 116 149 97 70 120 4 209 31 218 31 210 230 251 123 152 55 39 244 34 41 190 130 147 142 203 160 233 196 70 188 174 159 33 61 114 43 174 240 143 226 56 110 73 7 18 16 77 121 95 233 57 238 124 239 167 139 218 201 230 61 35 188 154 39 245 169 63 53 119 81 123 118 7 180 50 205 11 4 91 171 175 36 28 159 182 242 188 74 187 15 113 11 123 112 122 238 88 36 152 55 250 193 109 58 11 135 69 113 54 17 8 45 80 50 125 170 217 107 87 232 249 178 86 231 46 10 50 193 30 67 154 186 162 29 22 147 222 126 3 1 107 252 227 150 179 89 29 39 208 105 97 106 142 11 220 52 13 248 52 0 72 176 7 58 75 36 223 252 131 240 214 98 165 142 207 84 155 24 33 207 113 244 172 172 48 193 86 108 149 241 79 2 247 220 62 122 183 95 145 130 114 132 197 65 123 71 227 165 19 191 186 42 138 52 225 92 37 60 92 78 205 135 164 212 112 207 253 73 204 203 68 241 185 78 14 67 115 142 82 110 47 189 231 167 93 121 132 211 23 210 247 208 227 223 242 77 92 14 221 164 119 206 30 205 232 225 186 115 184 69 117 251 247 125 157 190 80 17 43 158 19 5 129 248 88 125 199 162 222 173 62 46 82 205 154 229 88 187 116 36 58 234 32 251 236 38 201 50 62 69 179 13 217 204 108 104 241 208 254 189 137 9 32 216 154 160 250 30 171 41 184 101 140 115 49 214 87 144 218 158 18 196 169 41 69 238 84 179 140 185 177 39 149 215 75 92 185 188 231 6 51 176 7 166 5 21 22 212 128 24 208 21 122 148 106 27 130 151 213 65 125 143 213 64 132 172 97 27 172 46 242 223 32 96 12 59 209 182 5 109 42 41 201 212 54 152 144 149 139 160 48 235 37 207 211 62 160 4 85 198 130 189 44 54 191 210 75 2 168 134 32 96 254 179 218 159 67 124 237 127 175 242 175 190 90 21 127 160 173 228 53 233 65 22 250 23 246 116 36 250 243 208 28 34 118 63 149 201 72 110 3 202 12 70 82 119 105 57 61 71 186 45 170)
#f
())
#(193
"length of digest = 2**40 - 1"
#vu8(49 50 51 52 48 48)
#vu8(166 58 32 140 204 107 236 192 47 197 200 180 51 211 75 78 56 14 35 46 74 3 160 185 91 141 242 202 134 214 165 196 2 133 45 58 158 60 164 143 101 175 103 51 235 173 191 153 34 107 53 34 219 106 124 133 24 115 130 47 133 158 190 108 18 1 78 233 215 146 186 202 167 185 23 192 184 64 143 241 235 50 139 190 49 163 104 50 176 114 147 68 163 138 96 238 20 15 63 247 8 182 78 26 245 56 216 136 52 91 90 253 112 21 22 63 87 73 210 208 37 188 201 253 226 218 16 163 161 147 68 127 251 182 185 241 16 218 44 250 190 251 155 78 0 189 21 26 231 133 92 53 211 218 55 240 58 23 73 14 2 65 110 167 184 7 84 49 243 40 10 250 144 77 248 143 184 197 228 211 187 10 127 42 82 198 113 52 216 200 23 86 84 9 33 201 236 130 115 152 48 121 196 187 186 105 225 26 226 66 64 114 92 106 78 217 12 216 206 19 17 183 83 25 8 178 203 42 88 173 139 73 234 162 8 165 187 198 124 66 147 217 125 52 245 7 177 32 151 26 186 15 27 201 197 57 170 238 195 219 225 249 162 82 226 3 228 139 5 238 249 85 224 162 174 198 82 211 48 164 118 103 5 167 63 108 78 218 205 157 165 180 251 92 188 32 211 158 158 209 149 78 44 128 172 21 245 154 191 190 109 143 95 255 169 88 98 244 193 81 19 42 43 17 196 209 167 182 21 205 111 92 27 38 88 89 60 67 18 74 211 213 218 20 195 211 146 63 193 29 208 231 151 222 202 231 60 226 91 88 150 108 93 0 228 143 173 99 175 196 32 76 82 178 121 133 244 177 80 18 171 171 217 201 1 220 129 215 246 55 151 253 211 80 231 72 134 46 86 34 143 127 192 81 106 147 243 233 90 209 92 29 36 1 236 202 190 24 90 83 61 66 99 14 148 183 203 236 42 32 10 89 64 83 80 165 169 57 157 131 197 141 204 58 100 66 156 109 159 234 49 203 25 23 170 107 49 36 22 189 25 185 198 198 17 59 159 68 216 18 215 232 54 144 213 169 18 13 75 207 60 174 194 199 209 230 41 168 64 165 1 67 218 44 36 43 42 118 17 147 253 250 61 51 112 125 202 199 208 149 99 218)
#f
())
#(194
"length of digest = 2**64 - 1"
#vu8(49 50 51 52 48 48)
#vu8(182 48 42 109 194 197 201 225 59 75 57 49 118 155 162 113 217 127 13 247 229 75 123 99 110 50 117 239 105 240 107 82 21 99 188 95 92 161 204 49 112 112 95 177 128 5 0 230 124 151 223 206 93 73 134 81 79 78 141 204 103 200 49 143 222 87 148 225 237 19 143 159 80 247 72 166 111 253 239 201 235 12 34 124 184 189 182 176 3 254 99 85 140 102 152 203 252 177 44 213 59 95 152 108 233 119 237 167 190 84 230 42 201 234 82 63 195 140 162 85 153 139 116 76 143 249 7 169 157 216 191 219 3 5 224 177 216 231 156 131 19 234 12 120 212 125 107 118 162 93 237 13 162 72 80 40 0 204 180 75 22 101 209 121 61 226 7 226 15 236 208 145 82 238 240 218 220 153 210 79 192 19 229 92 152 62 154 75 48 151 137 93 65 195 140 198 233 199 3 75 34 93 229 160 63 225 27 250 244 170 47 44 194 144 186 7 101 115 42 220 178 71 150 172 154 124 62 42 209 89 133 103 80 204 148 23 66 124 160 19 226 111 233 17 210 163 27 168 116 109 163 10 231 23 223 232 102 68 107 107 106 218 47 233 165 185 19 122 185 230 94 42 184 253 121 216 234 143 85 213 247 33 94 35 79 213 234 214 195 52 239 52 5 197 103 153 158 11 58 84 14 148 103 173 23 173 32 219 166 172 125 227 156 17 84 94 134 226 217 115 195 159 10 131 225 90 98 210 43 98 139 75 136 144 48 21 204 197 194 237 18 129 140 159 34 252 151 169 235 225 211 47 66 106 203 174 151 35 247 27 134 247 172 123 111 218 247 7 91 159 177 70 32 72 106 33 141 164 237 117 87 138 171 228 96 15 42 57 76 198 134 90 178 245 195 89 19 205 203 125 117 128 40 94 192 131 137 237 157 142 202 147 167 73 0 152 200 156 114 11 241 175 126 31 55 136 159 184 92 166 180 190 196 213 82 120 79 255 111 206 11 229 198 42 121 230 204 240 95 4 139 188 208 51 230 199 33 12 19 17 196 136 118 211 231 57 130 124 237 78 131 68 183 71 124 229 203 229 245 97 202 50 166 27 25 39 208 175 20 25 231 95 56 58 94 160 27 17 123 244 234 76 158 12 100 5 47 35 103 175 139 74)
#f
())
#(195
"incorrect length of digest"
#vu8(49 50 51 52 48 48)
#vu8(86 198 116 221 24 25 209 27 69 70 190 114 142 37 225 156 35 255 5 41 201 39 1 62 129 214 55 160 130 178 208 174 19 226 246 249 244 135 39 243 185 227 24 214 241 93 78 115 126 238 99 167 224 16 74 230 193 21 83 156 210 108 65 51 186 56 107 245 38 93 45 159 201 25 151 211 242 98 181 60 49 31 43 84 231 95 252 113 104 68 216 6 238 48 165 171 70 61 27 189 99 95 136 46 24 139 103 176 98 16 194 175 202 86 123 196 122 245 12 118 209 188 247 3 57 117 18 211 11 103 193 152 175 49 156 42 250 190 52 63 208 54 108 168 9 155 78 139 249 37 187 1 243 157 223 218 151 193 240 243 187 127 98 184 40 90 214 219 212 39 136 155 180 210 155 238 120 143 244 180 107 41 221 143 244 197 229 175 145 158 97 229 203 212 36 42 14 70 161 175 106 38 173 153 216 222 57 161 134 69 1 243 114 78 52 139 98 68 86 115 169 215 27 153 122 254 35 72 191 140 198 249 202 38 46 129 185 85 229 16 155 2 88 80 42 217 172 138 36 197 226 32 83 107 153 190 105 8 81 22 156 62 165 106 18 94 238 123 43 55 77 175 159 107 149 238 237 175 151 248 21 31 97 143 20 153 37 102 86 175 206 219 143 239 209 165 36 18 128 104 206 101 201 129 98 249 181 70 127 227 228 31 115 178 3 157 5 103 69 84 77 146 126 214 63 138 88 140 130 10 139 69 173 123 191 76 222 20 79 222 162 242 65 86 1 153 235 140 228 91 24 104 73 131 133 103 122 19 186 63 61 185 242 236 175 139 85 152 90 57 138 140 149 236 46 2 218 233 93 78 76 12 248 100 175 243 250 201 32 193 241 45 118 133 150 27 182 230 129 179 30 148 77 88 202 34 214 77 56 50 45 102 210 142 45 125 177 187 230 64 223 66 161 8 218 162 117 221 242 5 12 169 60 173 238 67 63 58 101 232 142 126 82 115 61 74 53 45 171 20 73 186 246 156 158 250 115 100 39 68 60 38 181 135 187 14 53 157 229 221 183 82 83 97 86 84 179 50 70 241 160 53 162 62 238 219 47 21 7 4 88 158 152 106 82 203 131 84 105 127 51 234 135 64 121 203 130 139 224 13 86 202)
#f
())
#(196
"lonely octet string tag"
#vu8(49 50 51 52 48 48)
#vu8(135 109 157 44 159 228 11 61 60 155 53 137 172 117 205 136 118 181 227 182 95 209 93 57 207 97 218 161 87 218 191 182 89 172 13 65 30 93 165 164 252 105 237 189 51 243 242 220 43 221 18 181 226 164 151 199 160 214 72 108 220 206 240 202 142 225 246 84 170 250 232 0 237 118 70 112 163 77 47 45 100 145 169 119 36 230 216 201 51 163 24 114 107 249 23 101 186 240 107 172 113 120 129 120 229 101 173 140 175 18 196 193 0 62 212 247 36 215 251 131 171 9 207 5 206 191 102 13 170 68 254 137 24 182 188 101 37 231 54 28 228 25 6 37 197 36 66 188 153 172 54 87 242 90 10 206 56 144 185 14 185 71 216 34 154 220 207 25 31 123 115 98 235 218 95 98 121 77 224 53 137 183 67 125 133 153 28 145 253 85 240 18 59 108 72 158 24 81 76 10 151 122 121 139 169 4 83 244 191 69 33 244 56 182 192 150 242 207 118 53 46 45 72 115 122 40 203 194 111 207 21 21 238 84 230 189 169 149 36 185 194 251 69 74 187 202 169 131 95 54 247 53 9 237 127 223 27 54 123 227 128 40 63 13 57 26 31 246 169 129 155 255 230 41 231 20 74 229 251 224 63 213 250 155 185 172 185 191 192 194 144 106 186 9 248 215 151 195 128 70 201 150 244 88 162 229 95 20 81 220 172 32 224 130 37 125 110 187 19 246 150 107 12 44 190 228 184 223 158 117 211 27 69 114 5 168 181 52 239 236 219 191 216 112 106 168 37 139 42 133 102 150 65 254 158 232 19 46 111 179 86 221 252 161 99 68 50 159 146 69 184 86 174 253 38 63 164 167 79 236 73 94 40 234 204 80 238 187 130 39 146 196 0 178 179 192 116 16 19 218 136 13 95 115 155 252 94 210 59 15 82 60 113 149 136 243 161 244 196 91 143 48 88 121 64 19 238 73 205 96 72 136 161 71 123 50 39 201 222 2 48 33 4 121 219 237 219 31 221 107 148 87 49 65 32 13 179 218 121 166 202 174 43 1 24 250 142 242 139 146 75 113 22 179 4 210 242 180 105 219 135 87 251 70 58 5 196 149 186 172 109 99 167 97 25 237 74 140 73 16 4 142 183 129 63 220 134 235 155 157 177 222)
#f
())
#(197
"appending 0's to digest"
#vu8(49 50 51 52 48 48)
#vu8(176 247 110 239 241 70 47 142 230 231 60 82 76 143 198 121 37 71 119 77 23 192 15 56 223 133 51 84 109 128 44 13 142 190 25 45 35 165 241 71 46 175 86 36 35 196 35 211 100 108 18 87 79 105 247 200 95 237 26 237 0 131 83 45 30 82 5 0 83 168 161 17 227 207 78 36 162 75 9 68 240 241 74 251 215 15 229 54 21 118 69 36 169 113 94 51 54 191 171 173 71 108 18 250 174 202 29 242 28 1 98 183 237 154 92 145 234 100 178 184 221 251 229 215 209 181 1 73 179 21 35 211 150 230 201 110 167 197 249 194 253 32 251 189 203 105 154 109 117 250 0 173 195 144 255 106 185 93 226 180 5 195 20 161 174 115 152 8 127 77 84 243 123 104 5 49 143 200 8 138 73 186 70 178 177 247 220 214 221 22 136 26 100 29 146 42 174 128 227 205 11 170 130 207 27 193 218 155 13 58 242 77 75 4 187 251 29 21 112 178 56 92 132 140 173 25 2 8 63 158 120 35 253 143 106 254 132 5 27 165 76 118 219 157 115 19 35 137 89 121 31 226 176 148 124 239 40 178 149 66 52 165 110 163 130 52 51 255 95 207 190 179 125 216 209 143 106 4 210 2 199 117 125 47 12 14 145 214 56 74 144 55 16 64 65 218 189 114 202 66 154 59 100 147 21 197 231 0 197 29 53 193 106 88 91 14 155 107 158 1 154 179 108 145 104 161 113 112 252 195 139 76 141 191 175 65 59 20 139 50 23 239 238 113 62 10 68 84 4 152 249 44 179 62 132 57 236 88 93 3 251 156 93 219 68 50 83 145 75 10 201 15 249 124 108 144 147 0 59 241 12 176 86 82 172 89 204 42 79 181 78 146 255 100 56 243 152 94 124 237 204 15 199 255 24 226 226 104 61 91 196 30 175 184 189 38 123 59 181 11 99 112 177 100 253 132 240 83 172 172 216 221 56 162 108 8 163 202 26 232 82 132 36 155 91 148 25 8 10 109 234 148 81 145 66 21 4 161 234 243 35 14 248 209 168 179 83 250 104 69 42 255 20 35 245 2 30 59 155 108 125 41 12 158 235 3 16 25 9 249 106 59 2 216 122 18 57 102 62 52 96 198 202 4 83 245 178 193 123 194 240 138)
#f
())
#(198
"prepending 0's to digest"
#vu8(49 50 51 52 48 48)
#vu8(154 183 109 49 141 121 168 64 199 216 26 21 251 103 186 243 128 144 29 218 2 109 106 211 146 238 233 202 210 82 10 125 135 166 89 164 155 101 213 222 231 115 179 12 13 49 157 197 127 49 129 137 2 36 120 104 165 88 116 242 16 177 224 184 98 159 77 86 86 38 131 126 224 99 222 238 101 217 92 139 86 159 60 56 103 49 114 196 138 214 140 186 202 238 45 140 105 252 62 34 82 63 149 171 117 245 135 175 21 213 190 82 157 149 131 95 114 193 99 181 74 249 217 40 49 174 143 63 255 12 247 146 13 87 194 138 136 162 48 132 100 156 178 10 104 33 100 88 174 103 182 217 157 84 56 127 192 13 132 81 116 226 243 233 48 193 160 224 137 205 165 98 115 234 79 103 58 241 150 181 107 85 146 75 87 170 11 145 173 238 3 182 158 152 67 139 18 239 157 60 58 101 247 186 6 215 197 142 95 193 14 174 200 37 60 182 252 218 238 213 195 31 23 114 145 148 91 240 198 158 123 250 39 61 48 80 76 198 233 79 123 125 96 117 65 53 17 116 17 173 91 37 182 0 62 168 107 128 138 216 14 254 209 153 165 89 249 200 79 71 63 161 245 84 238 169 133 231 17 29 203 45 244 196 190 225 170 226 46 88 254 2 22 196 160 201 55 170 8 214 43 146 34 131 63 222 50 217 145 228 248 236 166 25 208 53 60 39 112 230 27 163 171 224 142 155 113 222 41 251 183 28 16 238 109 130 32 240 172 98 137 201 196 37 244 152 31 194 144 249 250 255 230 94 246 210 7 87 32 85 165 205 90 51 202 246 166 31 78 235 98 5 199 104 135 172 207 243 129 89 28 81 73 154 50 163 16 165 10 196 121 180 94 193 163 240 92 27 255 228 211 141 31 8 57 38 162 8 217 239 110 139 158 133 42 98 97 203 74 146 36 211 91 14 171 139 206 209 163 224 148 103 54 230 212 158 219 40 133 50 90 1 188 14 127 137 165 140 235 87 248 140 215 4 124 91 0 33 4 251 24 4 21 9 66 81 228 155 237 89 17 46 236 203 125 223 153 151 125 26 37 84 76 219 165 177 5 22 215 246 249 92 158 146 117 180 132 250 214 75 126 46 37 217 149 165 65 210 132 72 50 157)
#f
())
#(199
"appending null value to digest"
#vu8(49 50 51 52 48 48)
#vu8(29 33 116 63 81 250 31 225 3 139 129 38 246 237 158 98 249 154 15 204 194 168 182 69 253 144 185 150 222 142 232 215 110 7 82 200 62 201 101 227 66 168 124 2 194 72 185 102 101 65 61 224 58 167 205 65 60 166 123 23 247 75 249 136 108 159 216 34 60 217 77 215 28 152 248 116 71 102 103 238 150 195 17 251 64 225 127 142 116 70 98 74 65 192 39 145 114 110 98 192 72 154 204 220 235 255 203 222 6 187 227 204 174 29 102 150 103 240 246 21 123 70 62 239 228 71 78 232 159 46 156 110 240 123 109 99 193 88 44 69 112 248 71 62 7 178 215 208 190 114 238 116 70 99 59 124 165 247 131 142 146 185 119 85 132 68 88 15 13 48 93 186 138 199 78 53 66 176 39 124 108 33 213 20 145 193 165 252 106 191 62 206 103 22 117 228 138 65 194 84 247 142 29 42 88 194 213 160 41 78 212 114 14 81 25 133 224 53 2 69 129 8 32 15 180 123 160 12 227 121 218 15 66 152 119 182 45 109 96 19 63 35 29 235 174 145 162 155 148 12 142 141 210 120 247 85 27 181 223 136 42 131 58 50 5 210 5 137 88 160 241 22 133 179 188 13 240 223 213 184 178 186 219 142 2 196 68 159 17 68 253 116 78 189 194 69 37 34 171 50 222 75 186 89 163 171 238 115 201 186 161 32 167 68 116 215 154 91 65 70 69 237 130 126 211 177 152 66 167 142 155 184 63 3 206 42 152 92 213 236 235 246 231 115 89 74 246 14 40 86 56 167 171 111 165 219 85 80 21 70 15 3 254 63 226 228 232 21 121 33 8 213 163 159 47 197 254 98 1 69 231 137 144 1 203 114 43 28 21 36 192 196 9 216 32 126 72 231 52 26 210 9 255 194 85 46 79 164 235 9 199 73 195 32 249 86 140 249 254 31 76 15 26 4 194 14 187 82 47 167 122 29 32 22 48 90 117 218 184 6 255 63 93 250 73 161 145 190 208 70 143 197 188 214 128 224 245 244 199 48 18 53 113 64 141 110 60 61 70 111 181 173 184 56 233 190 3 93 133 136 241 252 144 85 71 50 0 207 165 105 69 75 220 90 49 83 29 154 245 231 134 31 3 81 25 177 88 67 86 199 245 5)
#f
())
#(200
"truncated length of digest"
#vu8(49 50 51 52 48 48)
#vu8(128 117 84 213 180 175 24 69 10 181 88 76 13 129 169 141 163 194 205 65 112 72 57 156 6 15 220 141 69 216 254 63 98 26 6 247 235 240 137 83 192 145 21 112 20 187 156 85 86 115 170 107 175 223 207 246 155 242 123 98 153 42 246 105 75 20 38 35 108 255 105 253 173 55 63 17 4 77 35 82 37 145 68 173 115 243 112 37 189 35 178 169 251 155 157 49 14 237 239 28 135 92 38 145 148 88 76 150 114 242 41 175 118 34 116 187 255 32 30 156 192 250 243 168 234 75 10 192 96 86 102 170 53 139 135 198 58 209 44 79 214 68 17 63 192 73 249 141 175 43 7 106 190 130 103 15 133 133 60 162 186 128 88 72 11 18 68 97 5 123 225 63 105 0 87 169 207 104 207 240 202 177 32 222 33 198 209 139 123 106 9 154 10 60 214 12 155 180 15 198 131 193 154 77 239 101 154 217 216 6 223 168 118 162 134 12 111 99 188 72 201 107 183 93 14 59 235 193 254 109 169 98 81 112 50 100 185 101 125 74 60 53 95 105 43 39 96 142 247 45 92 200 139 4 21 39 60 55 23 245 163 128 159 209 186 177 190 146 136 129 239 232 172 89 104 5 4 148 3 15 187 51 43 202 49 90 107 43 49 221 180 51 207 235 29 207 212 168 170 187 80 211 219 98 243 56 34 204 109 104 217 111 30 96 15 200 62 219 75 135 132 147 12 11 156 155 126 187 34 177 34 24 132 15 198 92 100 103 112 60 233 97 177 157 122 100 174 244 205 76 42 205 53 7 121 223 77 219 16 80 66 154 8 88 87 10 177 85 177 116 201 40 225 104 184 24 223 205 49 30 13 45 33 53 199 210 214 57 239 94 102 194 184 6 255 186 16 237 198 231 137 243 129 107 125 231 107 207 132 224 219 94 117 9 186 190 92 44 192 87 216 53 66 138 234 129 241 58 93 229 227 141 90 74 52 221 101 124 114 135 76 33 6 92 2 180 240 189 132 27 207 88 225 195 90 227 241 33 77 113 159 135 144 241 200 115 186 63 13 122 112 209 134 34 56 45 148 208 70 140 47 91 24 52 181 122 188 211 61 30 205 113 255 156 193 143 243 152 160 193 74 136 162 239 7 56 216 102 199 103 216 177)
#f
())
#(201
"Replacing digest with NULL"
#vu8(49 50 51 52 48 48)
#vu8(123 198 132 9 204 171 66 153 0 119 126 247 153 107 6 124 245 119 235 92 80 5 248 36 78 10 235 194 208 159 53 218 233 245 85 198 179 193 3 252 1 223 148 61 144 214 213 127 246 89 77 71 240 128 220 72 102 7 223 0 47 203 243 8 205 242 160 41 31 112 44 35 18 125 120 86 233 228 66 171 12 173 250 163 147 221 106 12 186 60 7 198 110 134 79 143 212 136 236 107 48 146 103 161 139 211 9 155 232 243 140 49 235 1 106 123 160 13 42 116 16 58 120 231 135 115 101 218 102 243 193 106 127 178 22 90 157 225 232 184 29 126 43 163 63 61 104 114 152 84 90 246 17 202 32 89 18 183 154 92 99 66 95 140 150 89 255 39 208 4 26 222 14 240 42 28 178 4 88 128 0 163 119 51 222 59 32 153 214 235 122 221 176 186 242 203 214 201 201 46 163 107 57 195 137 67 214 85 13 19 173 204 212 71 170 201 60 102 78 252 33 0 244 138 10 111 156 212 144 226 102 141 228 98 153 52 125 4 9 15 57 176 29 230 144 50 205 82 126 43 150 28 254 144 248 136 5 60 193 119 254 152 234 173 179 235 177 184 235 68 161 178 50 170 14 40 109 111 127 254 187 122 192 164 170 234 103 17 193 240 185 93 184 142 198 221 16 226 184 78 131 198 114 228 1 94 220 167 96 137 157 105 240 247 128 30 185 90 80 214 103 50 32 150 141 184 215 69 158 167 73 130 239 62 144 124 175 8 237 66 52 58 72 214 15 82 159 166 64 17 234 69 127 105 210 252 246 147 1 62 214 218 110 174 165 232 9 101 212 210 24 253 243 179 212 100 69 237 8 29 71 233 177 72 172 42 167 102 155 63 26 218 79 91 17 12 203 75 171 156 134 159 132 155 209 148 122 173 48 202 218 179 107 105 238 13 230 20 118 83 21 183 146 96 85 211 112 74 160 173 161 123 157 16 145 17 229 56 235 228 49 221 183 69 198 164 145 13 254 39 110 218 5 98 145 38 66 45 112 220 61 148 144 203 121 205 37 98 92 187 150 179 0 225 28 14 214 138 42 193 15 135 50 33 41 73 68 104 153 154 194 154 123 47 24 113 166 208 111 164 2 153 3 189 196 65 199 188 106 248 121 250)
#f
())
#(202
"changing tag value of digest"
#vu8(49 50 51 52 48 48)
#vu8(63 217 112 155 213 233 98 68 54 70 178 99 236 72 105 218 166 250 238 197 148 51 204 226 242 55 253 209 161 198 196 55 59 183 112 188 65 114 203 35 116 217 55 171 173 205 18 171 222 82 135 112 91 163 183 199 106 170 54 233 44 115 228 75 13 198 41 81 75 166 194 76 232 45 175 134 124 33 48 13 87 57 112 135 123 88 140 18 146 226 223 168 233 235 109 218 70 107 214 76 31 72 78 10 64 250 37 136 95 140 211 104 93 231 72 223 88 226 254 50 3 69 20 33 179 170 12 237 212 85 89 226 199 35 116 127 180 214 60 66 255 7 132 121 181 46 249 141 176 173 85 141 239 133 111 35 237 144 147 255 142 122 54 180 117 198 105 147 238 19 202 110 194 171 141 39 217 2 27 81 149 207 229 124 13 72 252 81 191 146 55 167 135 109 105 59 187 39 207 209 102 131 6 191 90 170 198 118 170 106 64 149 200 105 29 119 183 90 62 152 114 93 44 248 10 49 54 246 77 43 125 17 194 103 53 249 139 63 73 0 10 103 203 179 126 211 154 152 92 195 203 58 243 255 228 239 67 130 11 75 201 219 34 210 197 215 236 116 181 43 123 42 193 220 237 202 97 66 101 221 223 48 6 111 204 194 23 4 61 203 55 193 212 10 55 14 96 57 161 73 15 65 131 11 232 119 102 65 93 198 240 66 62 59 151 158 144 244 236 12 199 56 236 17 192 60 236 155 254 124 177 188 168 76 144 134 224 130 76 220 181 95 205 224 223 64 186 31 164 172 170 81 210 197 72 165 140 255 166 155 20 252 113 243 79 54 196 87 152 157 167 24 249 171 46 213 244 40 51 123 205 114 17 234 152 40 121 89 55 36 184 173 138 52 123 241 168 178 96 191 86 223 224 153 78 33 4 192 13 92 193 246 250 220 255 146 123 78 18 206 83 162 183 132 67 10 91 85 173 82 161 146 124 106 108 148 159 173 31 161 33 176 6 31 200 56 230 146 62 194 39 52 201 71 88 179 209 237 3 60 161 245 195 35 95 191 121 253 219 97 97 139 98 11 118 186 205 50 15 252 32 224 17 12 142 16 110 241 252 139 164 111 76 212 39 134 166 137 193 237 128 223 102 221 226 200 247 103 22 197 203 247)
#f
())
#(203
"changing tag value of digest"
#vu8(49 50 51 52 48 48)
#vu8(14 105 143 122 221 96 69 8 181 86 198 249 160 44 182 93 60 139 73 78 104 212 64 253 206 2 55 87 129 194 100 228 176 18 11 181 164 23 193 241 180 126 53 93 198 136 33 165 210 167 43 211 189 84 36 225 249 103 26 18 103 199 103 42 65 30 30 100 18 153 138 30 244 95 128 217 106 17 229 10 101 133 105 99 137 37 15 143 132 223 205 140 158 53 127 195 94 220 2 32 132 186 153 234 226 175 85 136 95 177 69 219 19 99 106 129 165 247 234 82 238 247 156 146 104 207 152 205 244 63 26 71 103 77 174 227 60 177 223 95 122 9 248 117 198 95 127 153 120 68 40 39 187 193 86 206 212 46 86 64 112 171 68 213 81 190 188 125 33 134 23 169 209 236 74 95 72 97 158 89 135 98 144 96 112 11 193 136 239 139 144 164 129 55 245 179 30 239 71 16 213 238 117 97 105 24 50 160 175 119 223 147 59 186 255 57 43 227 178 181 152 181 122 203 56 36 10 91 32 79 249 178 139 10 82 151 47 39 137 25 168 193 77 1 222 182 68 127 199 142 150 89 195 42 201 230 135 6 193 177 111 141 179 48 50 144 238 12 148 181 195 61 177 39 231 65 246 152 13 24 104 169 21 113 172 45 114 227 161 116 221 62 180 23 243 115 154 214 28 104 17 11 12 232 236 120 202 230 178 12 197 154 110 122 7 168 202 124 179 114 20 16 95 28 208 68 71 18 113 68 136 45 195 204 123 134 251 206 40 39 185 183 86 222 172 63 145 30 17 163 85 153 219 80 156 202 111 65 226 183 24 168 80 190 251 116 1 119 42 91 52 83 223 220 249 155 23 129 249 244 20 17 225 246 125 34 220 207 42 194 224 219 123 82 79 234 199 46 162 2 156 200 174 47 248 52 174 23 3 29 78 5 38 82 173 149 117 147 202 106 4 37 1 218 177 168 176 0 214 73 157 122 121 116 27 11 115 235 191 73 112 35 230 133 71 83 204 227 10 67 253 1 203 61 182 98 201 224 109 162 94 23 18 39 51 152 124 193 86 206 190 174 68 214 127 60 12 90 190 104 15 225 5 210 184 181 1 150 15 117 191 178 57 113 48 241 211 172 12 92 19 174 232 65 243 229 192 172 166 33 48 14)
#f
())
#(204
"changing tag value of digest"
#vu8(49 50 51 52 48 48)
#vu8(6 149 107 152 117 253 91 79 126 11 194 82 161 251 86 3 3 209 213 234 176 182 118 182 170 85 91 11 250 155 230 49 0 53 124 116 160 86 36 249 186 187 190 152 10 148 181 230 139 55 32 32 130 214 174 113 59 77 253 10 118 137 173 94 211 255 112 233 170 251 164 95 126 144 90 198 185 170 158 71 23 150 144 101 213 28 0 61 35 186 216 242 200 33 231 9 116 110 245 138 159 255 238 58 153 220 120 40 17 184 175 48 80 29 40 214 134 93 15 82 137 157 243 192 139 34 84 177 153 250 166 64 47 249 203 171 22 177 104 200 1 189 169 6 229 55 240 29 154 84 27 235 215 127 17 41 71 72 15 29 125 71 10 221 148 65 30 5 152 231 240 137 91 30 222 59 162 241 185 7 237 4 177 14 212 21 252 56 128 4 56 113 103 118 36 202 11 116 173 231 241 143 110 1 190 220 13 25 49 152 110 41 231 235 14 126 37 20 116 47 130 136 121 204 134 104 209 16 244 187 148 13 31 117 115 131 90 80 75 166 2 29 96 117 206 203 181 161 228 233 8 164 24 245 107 28 199 237 199 121 87 48 85 33 83 79 224 14 145 157 108 208 63 240 163 185 65 110 68 253 243 28 237 190 2 180 121 50 166 217 91 112 36 24 236 111 230 227 230 156 229 203 171 116 91 236 21 166 18 43 94 116 220 50 191 122 210 185 132 242 91 244 1 141 75 98 254 146 177 1 5 88 2 75 40 0 154 114 204 79 114 65 42 85 157 132 85 155 151 209 44 84 156 197 105 242 206 78 194 90 49 86 121 48 207 133 202 164 205 211 65 23 231 117 244 135 80 182 181 199 13 129 155 158 110 85 121 0 145 121 235 143 223 119 155 184 184 152 104 111 3 97 117 1 217 41 62 202 165 223 71 155 4 104 25 112 109 115 169 179 175 160 237 98 146 170 48 80 75 101 171 115 171 165 193 172 248 72 84 114 188 238 167 37 101 64 160 14 108 70 36 98 50 134 201 228 132 113 114 136 27 9 31 64 229 32 224 166 209 40 12 186 20 171 215 116 235 13 179 56 247 106 13 134 206 170 93 247 206 79 237 85 75 137 15 236 127 50 135 71 152 38 93 24 56 165 144 190 134 52 194 23)
#f
())
#(205
"changing tag value of digest"
#vu8(49 50 51 52 48 48)
#vu8(122 254 190 229 68 7 91 212 129 174 20 104 90 15 210 195 145 236 162 42 197 220 83 121 162 223 207 156 250 162 31 242 203 195 52 199 238 72 149 114 201 207 48 243 79 239 22 69 125 214 15 57 31 133 195 4 119 148 130 191 226 221 254 133 115 52 95 177 104 96 246 14 52 137 244 49 79 151 29 22 158 138 78 187 145 14 5 1 57 101 56 72 48 117 14 109 130 228 221 167 179 102 238 17 55 46 99 141 226 219 186 177 193 203 179 67 159 69 229 122 136 99 189 122 190 124 83 214 31 5 12 10 82 182 59 172 245 233 47 228 126 62 116 72 241 109 223 115 210 87 107 210 34 236 100 102 87 42 19 78 84 146 27 161 167 194 155 108 110 112 73 202 8 23 46 29 85 205 160 188 170 188 127 106 56 225 112 51 217 43 93 129 229 198 196 95 225 23 35 15 189 203 17 84 31 1 154 252 164 126 229 19 45 147 104 144 58 201 70 229 82 43 99 111 189 48 44 144 19 240 229 205 42 202 224 124 247 232 6 254 126 150 237 51 144 242 20 118 159 254 122 120 251 118 135 152 32 153 12 207 119 153 153 22 149 40 105 68 181 65 106 170 9 232 95 206 41 172 19 96 240 85 231 255 105 138 17 196 13 224 190 108 93 93 57 184 233 105 85 45 160 144 39 79 178 249 150 160 183 186 245 125 117 230 54 105 239 213 17 54 103 247 50 169 26 239 229 124 159 193 128 34 236 131 209 134 95 133 140 116 163 151 128 101 136 195 132 154 48 35 87 73 189 215 219 221 63 61 141 235 170 146 212 201 28 189 224 143 189 146 144 115 188 157 157 88 85 97 68 21 235 84 202 81 141 194 185 30 209 185 12 13 46 194 122 20 157 24 246 234 0 106 188 162 203 204 241 253 217 192 61 70 218 184 39 233 207 66 15 253 201 16 157 216 80 90 13 183 69 49 45 25 188 59 182 137 111 153 205 156 161 36 188 78 212 237 252 251 151 42 189 152 177 254 96 102 98 204 215 116 113 163 91 138 227 244 5 214 136 204 140 107 46 39 57 159 220 137 209 137 184 174 182 112 49 19 140 113 104 175 222 245 11 155 43 249 194 49 145 253 25 32 59 164 233 208 180 98 158 90 13 212)
#f
())
#(206
"changing tag value of digest"
#vu8(49 50 51 52 48 48)
#vu8(128 108 191 51 185 183 192 88 113 68 3 234 80 75 171 216 172 120 65 107 10 62 119 180 248 33 230 254 33 97 248 97 4 112 63 46 207 158 116 123 230 5 18 170 230 96 254 143 124 29 186 205 222 119 180 33 23 43 94 104 174 199 141 118 70 174 142 132 159 220 135 139 141 238 85 148 126 88 222 184 2 53 241 215 153 153 222 223 178 150 126 82 178 85 67 80 237 121 84 178 23 16 201 101 55 213 142 226 255 180 243 49 14 119 216 102 63 214 177 255 146 239 176 251 213 101 141 117 124 136 123 146 200 79 141 121 193 123 204 73 133 67 163 142 151 33 144 41 52 63 89 235 13 103 176 241 110 128 191 116 213 3 97 121 137 153 183 120 63 146 87 93 58 228 254 138 214 239 181 19 70 254 162 14 108 11 234 238 162 245 106 245 208 115 220 69 135 142 110 151 91 186 185 99 45 56 248 77 168 41 97 101 50 6 82 196 253 234 174 184 207 23 229 163 186 114 174 164 228 109 145 0 141 225 18 20 77 119 10 215 206 120 238 35 11 41 108 178 223 91 74 21 133 198 52 101 102 186 137 99 100 135 80 195 116 74 23 222 61 173 69 250 215 23 2 188 15 3 150 150 156 214 255 230 54 139 98 116 65 141 35 181 109 228 82 241 72 148 219 80 114 15 101 123 242 227 112 6 53 205 30 31 216 15 198 29 228 82 151 251 127 24 13 2 212 86 62 221 36 231 87 196 97 152 122 6 236 7 99 139 218 15 54 42 91 60 162 202 29 114 114 214 3 157 76 241 97 226 202 219 188 117 91 163 209 145 87 212 251 243 32 132 94 156 114 66 38 88 7 173 212 177 143 89 82 34 158 77 173 13 30 170 93 34 93 77 26 234 20 78 131 37 78 108 150 144 39 46 51 18 153 90 179 55 214 115 162 133 112 127 238 73 158 114 112 26 82 131 224 207 88 2 196 157 7 161 19 56 61 101 227 73 109 227 123 61 187 253 236 43 144 223 72 73 11 217 233 220 33 174 41 65 68 117 148 52 167 24 60 156 135 103 224 216 239 202 226 166 189 27 199 148 120 31 141 240 0 67 22 100 37 107 13 30 52 19 130 67 23 234 198 219 151 121 55 228 127 46 64 26 124 112)
#f
())
#(207
"dropping value of digest"
#vu8(49 50 51 52 48 48)
#vu8(76 158 93 1 90 39 187 189 255 255 63 239 167 23 1 80 4 241 218 164 151 6 15 165 214 118 96 98 26 232 44 20 141 209 40 207 44 59 106 34 18 238 116 48 62 222 151 54 50 125 86 183 155 217 103 219 228 89 62 196 69 213 81 88 47 0 148 228 214 87 63 20 37 50 87 120 177 169 114 9 73 212 166 122 217 128 25 131 147 20 218 172 25 4 68 114 251 180 99 229 118 245 22 78 160 129 91 1 55 115 171 138 186 245 125 137 83 22 230 183 186 164 254 166 22 139 45 95 98 47 136 234 55 97 43 117 65 112 22 237 146 222 250 180 222 144 105 81 223 71 42 209 7 0 177 30 161 63 143 67 235 232 188 39 169 68 87 42 196 67 94 143 3 119 42 196 39 187 121 75 255 197 44 178 107 215 240 88 117 10 153 29 43 252 181 234 162 5 161 237 50 20 135 231 162 216 1 87 246 211 148 234 31 180 245 26 229 70 184 248 24 156 65 65 92 214 169 131 252 54 52 34 238 12 209 188 156 107 14 63 81 113 250 197 20 6 175 107 147 244 122 148 73 192 186 39 69 132 200 51 45 98 83 170 150 118 144 229 150 113 89 31 156 199 131 208 69 248 205 46 83 174 105 93 43 67 198 219 239 8 57 143 23 203 83 250 255 161 238 69 71 88 121 189 107 23 99 195 97 175 68 81 117 114 60 111 197 95 29 210 241 8 213 31 158 34 73 230 177 192 177 30 138 17 52 220 74 163 72 148 44 162 129 141 241 26 132 190 126 249 5 107 87 208 112 30 65 55 57 9 176 183 242 172 187 236 153 124 32 249 196 197 182 251 55 51 150 96 143 142 44 191 77 36 107 90 183 190 248 62 172 64 97 202 239 81 137 90 216 86 131 156 139 119 101 34 173 33 127 140 223 84 49 23 32 194 141 166 74 181 217 163 57 202 130 212 59 169 142 172 87 184 83 44 86 6 220 109 26 156 127 203 32 218 182 23 236 116 152 66 70 179 38 221 242 89 99 38 38 125 217 12 221 212 21 134 236 34 121 162 92 39 152 250 251 104 104 77 249 0 54 243 187 171 133 204 239 141 80 32 159 179 23 175 4 130 94 166 156 132 75 97 61 15 131 136 219 156 44 239 129 156)
#f
())
#(208
"using composition for digest"
#vu8(49 50 51 52 48 48)
#vu8(27 79 168 110 148 55 167 64 57 111 1 223 199 25 179 0 188 48 1 62 242 7 2 168 134 1 143 115 255 96 9 226 11 10 234 22 157 108 141 63 142 91 57 147 142 219 19 126 33 24 250 223 108 107 102 163 82 136 13 8 253 89 208 219 142 86 130 33 79 210 52 74 103 206 109 206 150 228 231 208 188 166 114 17 73 139 60 178 104 141 195 18 201 123 5 27 253 203 110 149 12 25 237 173 119 157 65 223 52 136 138 137 171 103 233 237 53 40 144 168 226 154 156 144 9 208 194 47 172 243 241 131 81 250 163 235 187 198 23 190 38 237 38 120 114 8 232 198 2 133 52 21 95 233 131 232 168 86 173 222 205 227 148 231 235 24 33 119 227 33 121 88 47 62 239 160 111 141 177 73 21 246 80 83 231 229 161 117 117 85 23 116 190 72 72 192 12 141 120 25 132 230 228 33 223 93 46 44 246 165 159 215 4 156 42 42 41 155 241 251 190 26 236 103 110 204 48 226 226 6 86 65 13 152 234 202 186 169 222 28 33 111 22 54 48 151 232 27 73 187 7 131 166 17 171 50 221 25 234 244 222 161 249 124 75 161 32 76 239 95 109 193 241 178 14 200 174 36 108 62 188 206 87 214 29 13 205 19 172 71 101 255 143 15 54 192 242 231 36 155 133 185 23 140 203 69 74 74 174 242 201 165 208 91 238 142 20 100 64 64 54 244 225 127 161 198 220 49 170 98 47 78 19 14 230 196 71 238 133 215 136 82 180 36 187 254 85 51 2 101 210 240 19 145 94 223 115 109 161 163 135 29 60 98 223 90 27 0 7 48 103 6 40 111 166 195 137 126 234 99 111 178 222 63 76 182 160 243 194 50 148 164 131 29 56 139 77 221 15 223 242 20 97 168 205 39 184 77 160 161 45 30 53 64 94 39 38 7 28 122 10 200 82 61 25 37 74 21 41 103 55 168 160 134 48 167 103 170 190 46 166 238 172 39 39 20 121 225 252 161 202 43 19 235 254 131 65 197 36 17 171 211 5 109 0 148 127 104 178 67 77 148 18 154 15 96 75 63 199 103 52 211 46 94 166 80 120 175 2 51 5 67 212 231 247 40 152 133 6 9 89 37 169 194 21 241 184 238 14 115 78 196)
#f
())
#(209
"modify first byte of digest"
#vu8(49 50 51 52 48 48)
#vu8(91 45 20 5 205 55 38 24 65 63 204 241 73 45 218 125 221 42 186 94 72 241 240 57 108 213 110 79 81 168 114 140 103 211 225 39 131 155 143 212 72 113 22 94 43 14 242 95 49 230 18 254 233 97 79 90 214 161 17 47 32 233 40 60 167 144 110 185 60 190 117 41 13 1 91 201 9 87 229 112 50 70 137 228 102 255 136 34 134 49 120 252 205 73 30 90 175 52 176 225 107 240 9 134 171 209 94 33 23 82 54 67 118 31 69 238 203 215 190 237 77 89 252 139 227 36 115 135 47 44 188 145 177 116 16 163 93 85 186 220 59 251 116 108 234 95 114 88 99 220 188 106 237 208 34 143 86 233 79 80 33 204 251 213 34 197 210 95 107 142 200 107 165 193 95 120 75 77 129 158 145 172 98 46 220 119 76 180 134 56 68 174 18 12 53 229 254 120 236 119 123 216 21 176 125 249 150 206 182 121 215 65 65 104 67 88 170 80 249 108 71 148 1 87 174 212 97 228 101 214 170 253 22 177 226 44 133 233 51 54 249 60 190 207 169 205 17 62 114 175 65 1 35 116 168 188 20 63 149 0 71 5 146 91 53 241 114 67 105 0 12 204 60 7 236 87 45 188 254 54 160 210 156 254 153 185 251 93 111 198 32 134 74 113 123 133 86 201 49 224 93 50 238 147 103 76 9 32 37 207 1 243 126 54 236 33 211 75 150 49 179 206 63 164 8 147 55 106 191 218 162 247 170 210 106 96 129 113 6 101 22 96 148 139 140 165 104 18 131 72 83 76 130 119 138 240 201 27 198 32 76 230 182 188 186 104 33 70 36 73 3 208 198 236 18 19 0 5 201 125 57 9 119 247 30 208 163 172 185 254 92 105 182 45 182 236 192 186 169 77 96 138 76 149 166 47 152 202 103 249 212 88 60 201 108 152 206 223 241 245 99 206 146 84 212 228 204 136 209 39 215 75 127 158 110 89 189 131 160 58 211 199 32 204 104 126 16 44 222 91 223 248 191 160 180 150 155 240 55 18 107 46 171 234 244 214 123 189 143 25 68 154 193 175 16 68 44 89 118 240 217 158 87 7 13 111 175 208 198 74 37 236 143 188 56 12 183 30 249 82 241 32 83 15 57 64 34 125 13 230 200 193)
#f
())
#(210
"modify last byte of digest"
#vu8(49 50 51 52 48 48)
#vu8(14 207 220 158 143 102 235 0 145 253 75 162 199 2 195 190 53 102 79 235 74 143 44 182 97 43 58 166 88 81 128 200 221 28 184 25 86 176 255 132 221 116 99 160 13 0 123 210 107 212 19 47 41 252 84 11 143 111 210 162 152 6 252 235 177 103 206 49 207 233 211 7 85 141 235 96 219 142 104 246 194 47 193 83 173 151 150 134 224 188 130 188 25 149 0 161 167 28 234 231 179 204 237 65 65 201 93 253 84 254 13 138 241 92 15 169 62 65 101 37 137 45 48 234 104 144 234 69 28 4 37 219 42 210 67 127 109 215 125 4 135 250 251 150 111 45 130 246 117 36 86 248 96 74 102 234 147 103 199 253 94 125 174 142 74 130 55 218 44 186 220 151 129 79 224 91 227 251 141 167 168 38 49 81 69 19 0 232 246 172 5 29 31 39 87 146 13 89 213 19 129 129 196 22 73 183 134 248 149 114 70 163 69 154 41 145 119 245 232 149 212 125 17 86 189 178 221 224 33 178 10 30 97 83 175 248 152 251 219 177 120 36 3 108 176 192 150 90 181 8 241 163 35 4 79 202 168 187 121 85 202 145 136 170 66 186 56 7 197 149 173 39 99 43 123 56 26 33 156 241 98 208 168 13 86 245 140 123 80 137 161 103 221 7 102 230 205 119 245 161 175 41 69 161 147 7 82 180 106 60 114 146 51 246 216 73 166 174 161 221 19 237 58 46 122 145 238 11 139 208 11 207 76 88 136 84 47 234 2 121 35 103 212 42 154 103 93 59 60 151 60 143 20 151 129 29 111 226 122 139 216 43 190 91 139 74 191 179 156 172 76 34 101 218 97 154 1 251 88 71 229 164 253 66 54 116 178 211 148 157 38 32 149 128 85 85 89 126 73 48 162 137 91 172 64 184 225 140 113 18 35 174 123 44 226 61 213 86 172 23 156 1 36 166 241 172 50 120 7 232 84 11 20 151 225 199 36 153 117 116 104 177 234 140 57 232 233 185 165 5 141 180 52 8 70 196 16 204 180 221 108 71 116 132 239 60 150 177 131 182 88 111 167 144 84 176 111 242 36 117 221 111 167 170 8 187 107 195 69 29 255 141 228 69 117 35 164 192 253 131 32 7 57 110 207 247 107 22 173 25 1 123)
#f
())
#(211
"truncated digest"
#vu8(49 50 51 52 48 48)
#vu8(151 183 107 239 24 239 125 54 35 68 53 235 89 203 78 124 147 211 130 11 130 81 34 177 156 46 8 36 242 85 204 166 72 106 255 110 214 242 203 167 96 62 129 225 124 88 57 103 139 110 73 142 65 192 149 158 201 84 21 236 200 121 90 9 22 85 121 12 221 51 90 193 47 199 190 39 21 135 67 58 226 184 206 192 141 35 117 193 106 2 175 202 84 180 166 143 219 99 227 100 86 120 151 126 203 95 5 105 111 166 104 238 6 162 227 144 228 128 87 153 159 1 142 152 239 159 173 147 139 18 77 134 189 74 71 57 40 47 82 115 209 152 51 159 170 223 13 100 136 228 182 169 104 172 37 215 160 202 136 234 124 248 175 240 222 84 80 153 112 254 233 191 153 20 119 59 242 71 182 34 247 71 29 13 247 34 238 94 127 218 253 24 195 58 217 44 102 115 212 100 201 225 240 222 70 12 16 109 74 84 190 28 117 56 36 143 101 0 78 183 202 148 170 191 252 79 55 204 233 244 230 40 253 232 26 61 131 0 224 238 72 107 82 85 92 148 212 24 46 94 124 209 235 99 40 248 114 249 177 82 141 14 19 55 210 11 201 108 174 59 87 68 174 136 219 144 189 159 58 92 179 186 109 100 233 73 233 182 77 132 196 126 197 245 183 175 2 176 143 208 106 130 11 77 242 43 128 130 3 208 249 227 39 171 100 165 66 130 163 10 209 42 189 221 3 185 190 184 59 134 71 137 124 82 168 137 231 3 150 50 252 99 180 12 60 213 168 85 79 13 201 110 55 39 250 36 148 141 151 207 14 162 100 79 136 129 41 204 106 69 8 64 204 82 107 155 201 68 100 48 57 61 87 30 64 129 161 14 111 174 133 110 21 234 151 181 133 44 203 37 53 23 189 141 178 206 237 242 62 80 229 28 27 53 0 145 158 14 76 145 90 62 243 183 92 134 34 144 188 11 109 253 136 18 145 149 239 79 180 177 104 55 160 6 76 96 81 50 70 241 212 172 6 135 84 172 160 245 154 168 71 171 92 112 134 239 101 211 113 7 94 212 202 240 52 91 178 42 105 22 48 137 214 131 70 93 72 210 124 255 77 90 32 10 28 201 62 84 190 160 3 59 96 130 213 44 222 197 114 108 155 185)
#f
())
#(212
"truncated digest"
#vu8(49 50 51 52 48 48)
#vu8(80 189 123 110 228 174 166 218 26 126 146 162 67 152 23 221 62 82 16 48 213 95 251 153 136 150 129 169 233 56 249 255 15 197 12 74 50 156 228 57 248 98 184 193 39 68 253 86 95 15 24 6 59 194 115 87 250 238 51 188 175 36 136 122 114 241 88 81 222 108 1 70 100 80 25 84 173 126 39 202 223 162 161 200 82 187 223 33 41 40 128 123 224 24 94 245 29 17 23 81 149 232 98 29 171 245 210 154 88 207 162 141 150 161 170 199 154 96 191 131 219 246 80 143 232 145 23 127 82 19 136 225 63 254 246 232 112 97 74 53 198 2 83 197 113 112 32 214 233 31 134 12 63 68 127 3 141 101 137 28 215 131 208 96 149 182 21 191 16 22 176 215 49 131 191 65 117 33 187 5 208 7 246 252 35 238 92 70 233 228 51 7 176 226 239 53 186 179 215 200 102 1 197 76 221 124 249 212 149 164 165 20 160 232 4 224 132 245 50 53 186 139 112 80 252 234 108 133 142 182 124 23 244 95 27 170 159 74 251 125 124 192 192 223 79 255 131 1 255 76 195 165 117 74 198 169 194 149 110 120 236 62 211 250 186 16 153 70 33 184 71 73 130 128 148 24 18 79 131 146 161 35 171 249 45 139 219 113 123 148 232 219 232 127 166 32 193 200 245 151 64 30 231 243 8 124 209 118 93 155 192 8 219 139 192 23 250 21 24 96 201 40 9 132 219 136 124 199 76 148 41 181 3 65 59 108 45 41 118 90 59 176 76 112 218 210 84 213 152 16 75 236 255 195 113 115 200 146 4 140 73 13 244 138 221 245 151 1 147 247 72 235 81 197 83 102 146 230 28 33 246 243 63 90 71 40 69 92 169 22 227 215 7 5 59 109 120 21 53 172 60 117 189 51 161 246 4 141 54 50 176 146 252 237 79 66 20 166 224 96 170 240 230 252 181 21 63 31 101 205 62 98 214 88 66 232 88 123 55 140 3 16 217 250 97 151 241 152 26 220 239 181 179 57 54 118 57 69 112 77 246 184 113 215 2 106 58 45 1 30 67 174 200 101 16 32 176 25 2 22 140 33 108 207 227 103 237 177 17 24 74 192 18 171 255 125 193 161 136 253 254 93 142 134 93 178 127 217 206 74 74 245)
#f
())
#(213
"wrong hash in padding"
#vu8(49 50 51 52 48 48)
#vu8(138 163 158 56 44 216 96 124 20 134 6 203 150 147 236 55 89 27 244 246 99 176 172 64 137 38 86 5 14 87 221 148 66 203 251 243 77 27 69 214 230 178 186 36 251 89 16 198 82 22 39 196 90 88 10 248 178 107 194 196 220 65 23 148 160 17 93 17 88 143 231 194 67 36 102 26 208 64 35 232 112 15 9 88 189 112 14 115 25 104 94 94 52 148 151 3 122 157 255 128 157 93 138 43 137 182 43 177 231 83 15 53 245 2 78 169 39 164 173 76 64 174 9 115 111 204 221 150 125 14 89 219 161 122 243 61 128 48 97 228 52 158 25 6 109 146 236 252 50 124 214 96 253 125 191 40 99 161 251 102 133 181 167 185 56 108 35 47 183 223 150 254 231 36 79 55 165 223 36 228 160 57 147 26 65 206 227 118 57 25 84 75 177 187 109 20 226 173 251 136 96 122 184 15 192 228 52 85 58 94 76 33 134 6 74 156 13 132 69 113 100 73 119 218 49 214 229 187 112 209 234 49 154 108 210 112 152 61 34 215 62 34 111 101 165 165 188 12 128 66 114 235 188 69 83 207 150 102 189 9 133 169 125 223 103 103 136 208 152 137 178 211 35 36 28 111 172 7 225 59 116 64 85 71 52 210 192 174 225 243 184 130 8 95 58 38 107 69 46 210 251 105 213 24 48 76 82 137 178 194 166 72 74 185 63 138 84 14 109 31 66 58 239 21 168 68 20 133 229 118 140 208 233 244 124 190 189 184 93 125 207 4 90 93 39 20 240 212 34 250 47 246 167 115 37 213 253 223 225 148 239 249 240 63 176 42 57 20 9 106 144 120 208 217 84 233 129 231 84 44 151 95 207 67 80 61 42 168 6 188 228 155 44 108 220 151 27 41 11 59 47 228 91 62 11 108 16 108 214 254 14 112 3 16 63 210 50 70 101 248 0 6 143 10 140 230 53 182 170 61 224 33 174 82 178 207 51 206 253 84 185 232 116 160 102 94 243 31 184 88 78 248 13 246 238 202 94 28 50 63 238 179 109 128 66 102 207 33 147 201 166 96 239 198 199 145 217 245 113 194 45 227 146 150 222 237 54 241 15 89 172 185 59 21 88 161 93 93 160 36 87 74 26 92 25 14 168 13 232 217 204 151)
#f
())
#(214
"wrong hash in padding"
#vu8(49 50 51 52 48 48)
#vu8(189 226 137 81 236 50 87 239 192 84 244 139 179 76 67 250 35 0 9 19 18 68 240 169 9 187 187 56 117 39 232 37 29 149 148 210 46 67 93 179 15 165 92 1 196 52 33 221 81 171 56 220 188 35 206 226 128 24 13 116 182 169 193 195 15 220 188 160 32 112 206 62 8 104 65 157 159 40 176 77 203 16 19 115 75 254 150 120 247 193 111 21 111 56 37 150 217 86 31 195 47 168 185 222 139 123 27 188 0 71 164 162 222 172 122 221 154 7 54 240 176 84 105 86 41 29 35 29 57 181 61 25 229 51 217 153 36 200 35 125 240 255 145 189 116 165 19 31 79 54 29 126 84 16 131 221 79 61 113 28 228 236 154 168 105 160 130 228 217 58 201 206 200 64 205 0 105 6 41 215 170 48 69 73 145 161 141 141 52 47 213 130 216 5 78 182 108 107 196 29 243 231 201 139 71 181 14 247 209 149 82 21 213 202 39 248 13 43 145 154 117 194 95 108 24 191 66 124 170 243 67 29 100 226 121 105 182 0 44 241 37 117 131 22 55 143 224 90 38 227 178 205 13 162 248 96 22 165 169 168 88 117 119 70 53 146 174 12 2 249 92 11 9 159 43 176 172 33 67 161 59 145 49 186 134 175 139 50 65 77 51 198 61 76 194 129 213 177 180 66 166 128 51 219 219 68 85 145 171 136 211 61 24 75 77 135 232 78 160 159 192 71 38 31 108 222 241 132 98 234 131 146 239 159 133 147 183 26 203 206 161 95 129 250 104 201 65 142 243 119 32 200 7 125 115 132 249 84 79 133 165 25 97 74 110 144 15 23 143 87 83 87 97 203 56 143 96 253 21 239 248 171 50 31 73 188 21 38 38 194 116 155 195 3 63 70 189 194 14 133 62 43 93 152 41 124 79 116 217 176 182 50 208 189 27 107 100 52 108 182 112 74 252 184 175 233 73 121 202 186 79 86 113 60 76 150 108 238 233 188 13 125 31 36 139 181 93 202 28 88 181 95 208 68 34 200 242 195 144 35 140 31 164 119 141 111 49 181 74 63 254 118 84 250 221 139 203 20 84 3 51 202 58 238 147 24 78 161 2 43 53 90 144 35 115 215 222 155 96 243 120 84 101 102 139 176 171 122 37 66 189 134)
#f
())
#(215
"wrong hash in signature"
#vu8(49 50 51 52 48 48)
#vu8(201 150 249 188 117 82 8 185 35 31 247 76 126 179 134 87 47 174 73 74 161 239 20 217 6 148 125 142 57 42 140 151 41 223 8 117 120 135 22 1 12 192 182 92 46 127 196 69 66 90 62 15 63 38 138 152 24 134 234 130 250 102 56 238 179 153 177 62 56 44 105 156 156 33 32 25 3 21 223 188 171 217 108 100 204 101 37 28 173 200 234 163 68 253 72 191 177 57 167 243 184 77 11 155 162 232 186 115 8 7 232 243 144 53 103 47 79 204 110 22 149 158 119 179 52 87 136 26 247 95 101 138 211 73 61 200 204 16 232 235 238 226 95 106 176 196 53 182 96 143 161 117 76 227 97 10 114 154 143 98 10 181 0 127 233 88 102 254 234 185 18 222 172 161 68 184 220 252 104 43 175 208 215 102 55 45 55 202 79 120 206 87 189 177 128 7 159 87 123 162 168 179 135 84 215 132 145 121 223 111 183 108 38 251 110 116 77 42 229 188 30 198 34 234 220 119 220 88 120 158 105 17 96 243 105 224 44 20 144 49 106 50 54 221 137 56 187 23 98 126 154 46 10 100 80 186 102 23 182 93 6 140 162 44 62 47 211 44 148 161 237 242 93 5 35 29 250 24 72 167 153 89 243 39 202 46 178 165 148 95 60 101 32 246 251 238 20 244 39 30 34 180 124 83 135 159 30 150 137 121 240 130 50 97 154 170 130 229 71 118 146 237 241 223 118 206 92 117 136 191 206 205 50 152 99 96 238 119 255 145 141 52 183 250 129 223 157 150 48 207 187 233 231 137 56 38 121 171 54 12 150 35 164 20 203 132 114 234 27 184 81 132 9 154 102 229 48 116 211 93 140 107 253 138 126 42 182 15 222 53 29 37 58 105 245 247 92 16 58 67 69 112 36 242 80 12 1 117 240 154 248 102 148 226 120 246 215 201 103 68 81 149 193 9 77 147 181 188 29 56 113 166 115 186 64 56 229 154 180 228 163 224 52 177 206 35 133 237 226 82 230 202 93 139 64 120 95 227 192 249 252 2 7 29 184 14 151 222 255 39 223 249 217 185 102 121 239 92 37 232 230 141 26 213 193 123 30 53 238 5 77 122 62 126 155 200 251 151 182 137 24 151 151 65 248 215 59 247 91 169 16 240)
#f
())
#(216
"wrong hash in signature"
#vu8(49 50 51 52 48 48)
#vu8(181 253 238 215 240 246 158 76 12 42 235 7 211 110 134 140 130 125 46 126 204 244 9 167 126 232 189 184 16 210 222 223 51 125 251 191 114 59 207 148 17 197 53 118 80 248 233 44 169 24 158 216 33 221 43 173 218 180 102 8 77 52 139 5 128 177 154 203 157 199 52 103 57 163 20 132 106 170 89 213 194 142 49 32 98 27 150 27 93 11 12 29 77 228 151 57 205 149 238 214 39 115 140 193 228 81 40 129 86 142 65 238 148 167 123 155 10 225 156 124 79 7 189 166 144 12 1 10 94 16 172 159 141 17 15 46 223 54 134 105 0 45 37 133 177 57 74 255 6 135 233 142 187 126 136 168 251 29 149 11 213 99 231 124 140 152 82 250 175 148 30 23 64 92 29 127 18 165 30 138 195 56 245 192 214 166 5 237 36 69 129 76 20 238 148 154 120 28 101 211 24 207 46 70 6 78 208 235 140 254 104 251 176 151 1 21 170 206 113 114 43 108 86 73 1 113 37 104 90 121 234 23 92 48 209 208 173 160 57 212 83 165 108 89 244 208 19 51 148 142 118 149 128 219 41 12 39 28 21 229 128 7 6 219 107 90 183 117 130 43 41 59 231 198 44 100 127 66 254 178 239 252 39 13 80 172 207 134 109 193 177 150 22 231 178 215 197 201 30 41 141 248 96 68 223 97 240 10 196 142 190 41 87 37 138 215 217 244 214 146 102 98 122 10 167 172 206 131 80 188 221 45 19 154 14 138 100 29 56 184 80 112 238 122 144 158 167 29 61 16 249 16 131 36 165 186 130 136 19 123 50 35 103 217 115 229 166 168 168 161 44 36 66 235 147 135 155 180 179 179 73 89 96 164 183 4 247 218 185 105 12 68 82 141 43 212 66 207 45 89 124 30 217 104 31 147 82 7 123 254 97 119 179 236 177 87 23 124 197 114 219 112 129 17 62 69 117 13 136 80 49 74 73 231 252 56 195 27 76 215 151 9 22 27 135 209 243 18 128 244 150 240 125 57 128 77 139 99 136 25 210 80 165 117 91 0 68 12 145 190 21 17 78 18 68 189 216 229 167 131 166 29 169 134 136 175 87 129 207 243 71 254 166 20 69 88 1 3 188 215 84 34 212 59 205 119 23 124 126 160 181 84)
#f
())
#(217
"wrong hash in signature"
#vu8(49 50 51 52 48 48)
#vu8(134 130 213 186 197 27 179 43 242 131 184 202 177 23 45 110 128 84 219 252 103 45 230 243 95 51 169 247 179 240 102 47 225 158 192 26 116 213 203 230 217 3 81 132 62 43 18 157 12 227 8 132 253 189 207 201 98 210 114 31 236 91 59 127 106 157 180 169 91 19 222 241 17 199 55 207 174 114 209 58 239 77 14 169 194 145 129 137 21 5 160 210 140 92 136 83 206 92 55 71 102 84 112 62 162 231 198 142 213 37 145 193 130 188 5 27 93 131 126 243 190 6 73 1 190 69 73 103 190 82 249 199 212 6 183 64 158 147 48 139 116 168 38 211 209 230 174 221 138 186 63 95 151 24 36 120 65 103 223 83 208 66 120 27 124 45 60 172 41 66 140 125 161 251 196 81 104 12 194 17 81 127 145 117 255 27 44 0 248 25 145 109 109 37 88 21 66 200 240 84 121 170 207 194 69 229 137 71 99 219 142 121 132 157 62 45 216 215 23 138 56 205 76 183 176 52 54 193 80 196 103 84 13 252 221 0 29 108 137 148 178 248 179 50 112 91 43 90 224 200 65 112 140 131 218 220 125 100 122 225 94 84 116 3 214 137 160 10 107 212 222 134 2 99 52 67 224 183 237 240 96 187 123 82 158 10 254 177 180 23 31 112 169 67 161 79 105 197 151 32 180 181 174 89 49 51 37 104 92 16 45 153 38 69 253 35 175 18 243 184 248 222 121 57 156 198 200 15 154 12 0 108 49 111 247 166 150 58 31 142 245 138 103 209 7 229 180 159 216 215 7 155 212 95 35 239 103 246 168 49 39 218 21 127 84 254 249 220 1 65 90 108 247 169 87 245 255 161 84 87 161 168 191 131 18 115 244 143 146 123 168 189 231 157 166 35 168 162 120 78 125 137 80 197 252 190 239 88 104 49 26 203 183 147 205 250 84 199 2 32 144 115 173 133 153 196 199 75 49 206 59 102 35 153 120 159 235 179 109 146 45 119 205 223 99 193 222 58 106 186 33 214 216 237 84 161 180 143 72 149 86 2 208 246 164 245 235 85 70 19 21 97 128 146 54 240 199 27 131 116 41 1 6 184 147 171 112 246 254 193 251 195 187 110 245 230 192 38 58 124 140 217 12 40 153 104 103 23 68 232 83 215)
#f
())
#(218
"wrong hash in signature"
#vu8(49 50 51 52 48 48)
#vu8(8 139 239 100 107 190 7 239 12 45 139 25 27 160 179 100 32 163 92 161 168 95 34 43 217 98 42 247 120 73 126 200 228 137 254 0 240 183 178 54 231 165 148 172 131 150 61 143 7 7 158 151 57 123 139 151 52 2 34 82 21 210 250 184 221 251 193 26 179 222 72 127 191 159 183 4 165 224 205 17 145 172 253 214 16 49 231 42 185 49 64 112 41 169 253 245 25 222 111 211 158 97 248 156 111 135 115 181 136 177 100 91 161 147 222 156 68 207 158 35 124 74 171 5 118 122 198 177 59 18 91 57 185 227 3 209 117 243 137 82 213 54 205 31 10 74 169 40 114 254 107 191 99 4 20 190 233 74 130 79 6 61 172 98 56 248 70 255 130 158 164 218 193 172 70 3 122 177 21 170 211 254 118 197 140 40 191 209 90 15 67 180 69 224 210 202 2 247 168 134 202 18 63 177 158 230 185 104 91 74 112 71 150 227 92 46 5 195 189 215 16 110 253 224 162 252 63 71 143 183 52 179 158 31 111 230 80 125 136 4 216 6 125 197 122 2 246 104 122 94 250 133 22 129 49 219 51 27 27 66 106 15 134 166 194 88 28 179 16 27 27 170 53 226 76 47 197 216 18 122 216 199 73 207 203 98 233 79 11 209 198 131 65 204 156 104 10 162 160 103 210 66 177 8 92 198 114 77 84 17 225 231 31 208 116 123 42 23 64 131 113 116 11 44 149 246 149 99 133 147 106 180 50 44 151 125 149 208 61 195 32 98 155 216 172 147 38 22 156 7 60 44 26 135 244 227 107 218 85 70 118 108 45 138 31 101 153 226 10 172 1 13 68 116 88 184 79 81 96 225 134 134 16 150 240 53 242 140 68 207 166 230 164 86 94 226 91 143 26 40 104 253 192 121 225 233 59 238 170 12 45 161 90 219 234 26 242 244 222 84 180 1 82 24 66 14 48 156 51 4 118 188 167 30 48 59 178 145 14 222 195 57 255 231 249 4 141 22 217 140 14 62 111 76 88 44 80 253 204 133 197 78 17 183 37 66 202 123 31 228 80 112 149 176 251 169 202 191 229 255 149 150 173 233 239 221 175 226 102 215 165 66 234 133 73 187 166 197 41 16 167 108 205 245 206 41 98 113 56 14 246 179)
#f
())
#(219
"message not hashed"
#vu8(49 50 51 52 48 48)
#vu8(179 99 171 85 124 68 54 52 147 73 113 236 122 144 83 124 50 67 241 196 10 167 101 183 111 2 136 60 75 255 137 211 43 210 117 101 228 163 74 209 252 195 106 214 214 87 223 8 92 25 243 234 12 66 141 187 187 13 239 39 98 49 46 78 57 23 214 88 215 167 224 252 126 212 176 115 223 128 172 103 31 212 16 107 206 77 221 52 147 155 44 35 194 5 233 131 129 35 201 90 15 198 211 237 114 145 140 9 209 91 147 170 133 107 61 26 115 111 171 86 206 84 143 148 125 153 99 72 52 4 158 111 149 148 231 5 186 3 126 252 182 223 164 111 115 143 73 239 99 22 120 248 54 104 151 178 97 237 190 205 41 254 177 62 189 178 125 190 185 93 67 34 24 218 218 234 60 49 53 71 252 95 147 140 61 220 214 33 109 98 80 68 30 13 137 209 165 138 13 115 110 169 234 51 182 59 183 10 230 116 90 51 248 146 62 108 124 76 102 95 50 64 48 172 233 74 249 34 225 234 173 169 182 65 9 23 153 224 76 179 185 163 167 242 53 234 145 90 149 92 160 190 38 121 160 12 197 57 88 15 247 111 214 98 114 232 210 254 79 155 242 243 47 206 215 83 142 223 12 112 58 10 192 156 140 169 9 197 187 37 133 19 3 38 164 74 23 45 174 7 226 28 241 11 35 88 241 206 240 75 196 167 175 243 50 73 63 190 64 158 99 74 155 55 4 35 54 142 178 222 102 34 88 209 247 78 167 156 121 98 228 80 55 114 54 195 245 164 3 28 10 136 86 181 51 96 141 194 63 223 166 94 173 100 169 12 30 14 0 194 144 11 203 77 240 11 3 5 168 239 127 36 78 74 26 142 98 131 34 91 38 205 106 83 125 232 93 11 99 73 55 146 107 78 229 205 75 65 239 103 243 198 169 30 96 167 235 49 156 22 60 109 72 202 230 195 42 214 1 94 235 200 93 250 194 227 71 72 177 132 217 48 214 220 161 16 88 238 203 1 198 79 116 29 83 225 149 92 30 77 142 175 134 113 248 139 11 43 82 193 182 185 87 27 231 60 141 142 66 227 142 92 102 92 200 50 255 155 50 28 207 99 219 73 230 2 109 176 131 119 137 227 85 164 174 190 205 71 61 246 52 75)
#f
())
#(220
"message not hashed"
#vu8(49 50 51 52 48 48)
#vu8(122 247 38 119 37 16 97 118 159 16 132 173 154 224 31 170 247 113 177 40 122 195 80 241 241 31 162 173 65 164 22 228 100 203 196 21 130 88 82 170 210 113 127 146 72 27 32 39 255 215 42 140 93 230 224 251 182 130 211 134 209 159 116 48 95 241 142 166 92 139 70 244 109 74 30 192 223 109 172 123 115 137 96 114 239 215 185 204 248 61 84 211 103 220 39 55 158 5 138 175 161 107 196 43 115 75 2 87 206 240 178 68 63 88 32 116 61 133 81 48 203 98 160 251 129 149 92 212 119 53 74 213 9 59 243 112 226 44 8 60 40 196 222 229 236 0 1 216 63 5 235 224 105 225 222 129 112 60 136 55 220 52 99 142 191 188 145 17 198 7 22 248 59 150 3 246 10 144 65 120 43 54 12 188 191 222 174 237 163 69 144 114 236 118 32 99 5 252 200 24 44 48 199 106 29 210 55 107 225 9 211 233 92 10 55 219 111 231 108 79 119 127 62 103 78 143 175 222 241 118 133 131 45 181 104 114 140 193 203 22 172 235 229 132 209 157 134 49 119 6 20 79 146 189 154 53 87 219 204 2 12 5 130 145 109 77 38 213 70 79 75 187 177 78 44 189 130 135 0 36 157 148 57 206 99 75 195 231 63 72 48 39 163 125 38 253 1 175 243 229 167 234 167 241 9 190 67 207 0 143 116 247 81 123 150 98 12 26 46 73 11 185 80 72 90 242 249 242 21 192 94 195 195 221 143 139 64 100 106 94 71 105 28 202 1 133 243 146 63 30 131 106 141 183 113 85 22 74 51 90 140 180 189 156 253 186 192 19 184 149 231 222 52 4 25 196 202 136 78 108 57 238 204 47 196 32 186 191 221 219 6 102 159 81 21 89 239 100 173 154 31 84 25 139 130 129 10 158 53 195 11 195 233 183 234 21 148 227 114 209 194 149 132 203 106 247 20 68 176 125 64 153 208 39 191 235 66 221 165 148 121 13 173 230 31 71 176 0 25 247 143 111 225 64 128 136 1 140 95 243 166 211 51 65 115 55 157 201 24 243 147 147 48 222 83 222 82 114 230 219 152 241 94 181 215 141 51 194 221 244 133 194 126 52 39 151 50 255 130 237 34 48 190 72 222 6 128 70 252 37 213 107)
#f
())
#(221
"using PKCS#1 encryption padding: 0002ff...00<asn wrapped hash>"
#vu8(49 50 51 52 48 48)
#vu8(99 100 186 106 233 139 201 53 105 0 35 217 223 95 75 205 162 142 9 227 68 113 149 151 238 66 154 230 111 66 113 220 4 32 195 102 194 238 51 154 25 100 217 121 76 245 245 200 241 184 35 99 144 136 160 167 161 188 85 62 219 141 182 149 172 116 232 73 141 229 205 52 161 217 82 72 176 93 229 109 160 135 141 35 246 70 7 46 188 55 7 90 76 98 95 114 17 73 16 69 120 33 61 234 17 107 38 191 114 110 210 85 11 69 31 184 147 251 144 191 214 150 63 50 152 246 193 6 41 212 37 132 223 247 200 220 125 80 96 181 47 147 73 44 141 255 183 28 211 181 87 86 185 58 194 117 105 172 178 96 45 191 247 26 149 206 116 202 254 110 245 117 157 203 133 148 156 20 35 132 180 241 91 5 144 112 219 192 81 23 52 237 151 122 215 11 190 29 194 164 93 199 36 232 215 9 85 156 151 90 115 27 97 158 95 249 115 125 176 199 250 28 119 253 231 106 99 51 78 143 218 118 21 49 211 93 41 36 40 177 153 165 242 224 140 212 234 42 55 213 178 191 71 182 143 193 143 14 160 198 181 249 3 241 14 89 127 76 118 129 36 102 142 216 50 249 214 168 253 23 200 187 253 53 38 133 25 108 247 183 168 246 182 197 90 164 177 251 15 197 22 191 155 97 139 162 54 97 212 159 183 10 78 8 39 185 67 159 119 134 252 41 19 39 82 226 88 38 30 216 246 226 160 106 134 157 133 226 228 132 137 17 75 99 101 88 237 239 235 26 214 222 152 162 17 37 225 242 64 28 178 14 118 73 96 55 216 1 215 205 175 240 251 92 211 200 23 239 199 166 122 48 250 179 22 89 62 154 109 72 113 21 168 47 243 44 166 78 183 148 131 202 51 125 172 24 232 177 127 111 153 139 204 91 250 254 249 55 251 18 51 252 192 106 47 21 25 130 162 122 194 123 48 5 86 146 81 234 109 25 149 218 254 79 130 245 146 220 206 128 136 130 98 27 162 69 97 155 10 127 244 251 26 68 91 89 138 60 205 122 204 7 40 100 114 156 85 114 216 164 200 194 7 221 126 175 201 56 90 68 230 166 224 123 90 116 71 149 199 74 26 120 158 26 53 32 228 62 175 6 100 14)
#f
())
#(222
"using PKCS#1 encryption padding: 0002ff...00<hash>"
#vu8(49 50 51 52 48 48)
#vu8(113 4 1 27 33 52 93 114 210 200 185 38 75 136 65 219 61 180 54 237 43 29 73 67 89 106 117 97 68 98 109 225 102 58 95 244 242 148 195 189 173 255 73 152 161 39 194 149 34 198 60 68 216 174 122 244 154 14 103 21 85 26 42 125 167 59 246 152 102 255 229 91 210 10 155 38 32 184 19 178 29 64 75 229 210 168 236 133 122 149 209 96 173 202 145 241 91 184 217 95 93 83 172 167 162 163 38 17 177 19 235 250 105 163 234 144 63 218 245 211 52 136 57 77 213 116 172 109 19 89 219 197 132 176 2 24 194 191 52 21 186 236 39 194 40 96 84 119 10 199 93 229 105 54 214 160 66 157 27 70 253 154 195 93 251 160 255 45 35 233 53 185 112 135 76 18 137 112 135 106 224 230 3 38 210 247 241 23 167 46 47 32 91 187 99 217 243 59 246 36 174 222 243 97 181 214 13 41 92 186 4 74 67 207 252 7 148 81 21 136 18 167 148 181 22 170 198 244 240 134 5 158 26 26 219 148 80 76 173 123 62 79 98 150 193 74 22 38 85 229 79 214 143 149 87 103 130 112 10 250 81 53 113 68 72 92 212 149 156 242 203 185 194 190 113 143 57 33 2 97 217 11 150 63 142 108 201 189 148 68 42 19 249 141 43 199 23 138 228 96 231 73 215 44 182 72 219 183 217 150 107 151 0 239 187 144 143 3 148 135 171 198 7 191 136 253 78 125 249 164 240 69 249 152 129 9 114 230 136 17 193 195 150 21 86 224 236 133 128 141 62 164 9 63 240 224 177 11 209 208 102 245 173 185 222 184 82 167 38 105 11 198 41 79 161 15 131 217 40 30 220 56 12 12 254 94 112 230 234 52 77 223 220 45 7 28 55 36 120 33 234 90 41 15 114 178 206 80 148 6 150 136 83 214 250 75 44 235 99 90 97 36 134 204 144 60 1 187 118 211 76 25 212 188 117 179 145 80 222 103 251 193 37 231 2 43 55 116 208 18 96 192 214 46 107 198 234 170 24 158 187 112 160 11 27 185 168 186 37 86 74 254 0 73 141 84 16 16 219 205 239 130 165 151 173 49 56 113 53 113 21 248 175 61 231 143 54 108 63 13 148 57 172 220 121 85 108 138 59 230 96 75)
#f
())
#(223
"using PKCS#1 encryption padding: 0002ff...00<message>"
#vu8(49 50 51 52 48 48)
#vu8(112 95 17 195 247 34 196 155 57 90 88 40 93 55 197 42 144 46 194 188 114 205 192 185 230 34 4 236 150 7 146 227 148 139 23 122 134 155 34 199 203 120 201 211 202 209 255 68 246 220 54 230 131 133 121 236 131 209 175 116 230 79 162 172 25 193 105 134 7 130 182 152 132 95 188 103 10 165 175 0 208 250 198 169 2 107 22 201 8 216 200 49 82 103 242 115 214 41 85 29 216 51 39 241 80 32 54 204 6 118 123 249 168 181 138 181 158 136 230 227 254 11 163 51 179 250 1 37 209 246 173 152 183 172 156 74 55 67 215 147 130 56 76 110 54 53 190 132 30 14 223 151 61 69 209 181 67 29 109 113 220 161 167 225 144 224 66 10 66 53 37 218 5 104 114 132 46 247 36 214 179 61 99 130 116 199 149 95 76 125 135 63 217 94 95 141 69 146 215 14 141 243 55 116 239 243 218 121 215 14 117 225 231 167 45 66 29 47 76 196 135 246 43 221 196 103 158 43 85 207 173 242 105 221 4 236 2 27 190 79 242 54 32 200 155 227 8 57 117 216 135 158 23 138 55 92 165 100 174 228 134 138 34 255 30 236 190 29 145 210 96 78 208 227 188 175 186 82 64 47 7 121 157 8 69 46 219 19 175 68 211 16 156 44 63 133 117 30 163 131 22 117 90 223 59 47 24 92 109 26 233 4 32 9 252 212 222 63 20 219 143 134 126 232 97 76 101 36 150 203 195 156 48 157 212 252 160 110 230 149 141 186 59 149 255 185 56 22 52 239 188 255 59 235 102 230 28 194 50 126 86 211 156 191 225 88 205 165 3 149 99 204 38 58 206 28 104 69 33 178 209 158 250 48 7 163 191 38 230 233 47 23 94 82 17 101 234 94 238 79 190 243 128 157 100 154 153 89 251 170 122 90 31 126 225 75 239 71 56 95 69 170 231 42 68 181 40 45 140 153 60 198 167 192 124 186 255 55 18 232 123 35 250 1 87 251 64 220 6 127 147 64 177 190 140 162 98 37 236 116 189 91 27 34 77 208 102 46 207 112 54 159 128 123 33 105 198 2 42 52 224 172 9 25 11 203 49 250 235 212 165 134 221 238 0 126 127 122 30 196 23 54 112 124 26 37 6 144 104 234 212 128)
#f
())
#(224
"using PKCS#1 encryption padding: 0002ff...00"
#vu8(49 50 51 52 48 48)
#vu8(137 189 155 55 151 73 156 1 50 139 76 63 165 110 134 144 210 237 70 193 83 51 237 84 221 247 140 225 30 161 134 76 214 140 27 100 67 187 41 155 217 243 63 154 224 88 7 197 80 101 208 156 49 199 156 135 87 119 43 195 254 188 44 110 166 21 33 165 187 184 199 49 20 7 36 4 97 242 139 255 191 155 241 167 200 191 15 96 223 148 136 92 146 22 3 99 168 208 132 111 147 175 149 121 10 232 242 0 116 209 175 130 142 230 56 191 253 199 87 11 168 91 254 149 146 216 45 207 255 39 13 35 61 216 71 132 55 167 133 70 136 72 65 170 70 64 127 151 232 17 254 252 58 9 116 105 171 195 236 17 133 219 180 255 215 244 144 5 206 155 168 156 18 125 229 223 196 25 49 7 134 150 246 118 63 32 141 228 219 45 40 254 195 224 208 6 170 42 225 212 171 146 176 157 39 87 164 243 44 150 102 9 18 91 212 35 99 108 77 76 84 125 142 246 218 68 111 164 142 16 143 248 129 220 183 138 6 179 134 138 197 68 223 113 98 44 94 40 16 242 192 182 62 134 108 27 219 183 64 218 131 132 108 28 130 226 18 109 62 83 84 213 137 131 122 54 159 213 71 217 84 146 90 243 144 152 28 111 213 64 131 198 228 22 17 71 136 78 148 133 22 183 119 233 195 165 101 111 23 37 44 16 66 48 165 75 250 88 227 51 51 241 108 130 157 27 167 58 140 61 242 230 146 0 54 241 248 52 220 15 101 132 106 65 28 178 153 126 143 44 188 60 46 251 158 3 37 140 82 83 157 188 75 103 135 66 70 82 144 178 113 202 50 28 157 113 152 205 98 105 255 191 234 93 207 188 124 96 74 55 116 21 236 41 171 87 181 171 220 95 211 5 14 5 109 57 9 249 53 190 232 200 112 110 183 221 54 36 1 172 251 53 151 242 5 66 228 98 37 125 108 217 189 118 216 200 127 184 229 253 22 7 224 252 150 232 249 119 3 229 161 117 239 126 120 19 219 36 211 216 102 181 200 68 203 2 14 227 158 41 25 147 98 127 138 126 223 19 37 215 240 51 245 39 201 55 191 61 34 226 138 252 134 27 117 189 148 189 139 118 156 233 98 54 9 12 11 141 86 102 235 118)
#f
())
#(225
"invalid PKCS#1 signature padding: 0001ff...ee00"
#vu8(49 50 51 52 48 48)
#vu8(96 72 216 20 156 76 55 68 195 91 49 81 23 233 131 212 122 192 113 156 132 23 180 30 125 0 26 240 185 220 244 101 219 147 99 29 126 207 212 153 64 134 64 157 57 207 187 43 44 176 138 48 198 155 212 90 215 77 99 0 126 8 83 247 99 221 80 6 209 241 249 180 87 213 253 230 15 184 105 4 182 105 224 243 213 55 158 239 22 141 215 79 13 51 152 156 48 138 128 252 178 107 97 0 42 129 161 221 214 25 213 201 187 180 249 251 215 196 249 158 178 212 223 39 227 125 13 73 132 236 40 83 71 92 251 83 59 92 172 206 156 49 214 95 6 215 251 6 97 53 48 217 66 105 111 244 39 21 14 17 43 228 253 6 81 125 100 62 80 197 158 224 229 248 252 40 173 47 138 34 3 153 189 170 102 86 148 146 219 193 168 23 191 118 223 208 125 157 153 252 210 194 144 166 162 137 228 245 3 5 8 239 77 7 199 127 161 246 16 132 205 20 188 48 65 178 13 22 114 179 148 138 77 227 0 94 55 9 225 38 196 110 177 236 31 99 223 240 7 133 205 180 193 108 208 38 69 167 172 193 186 185 105 98 89 119 210 3 122 122 217 16 24 92 76 129 9 221 114 41 77 85 62 248 183 57 152 193 42 17 140 79 238 180 12 39 250 143 244 250 201 141 168 236 183 181 136 63 34 224 148 135 219 135 19 81 184 157 72 77 17 61 88 218 176 223 171 228 44 6 253 70 84 117 136 197 63 92 241 16 136 2 93 84 246 31 114 70 35 39 91 24 212 195 97 236 2 19 121 242 250 80 223 125 43 234 158 250 240 40 209 58 165 246 160 36 220 217 52 84 178 120 121 8 68 188 66 205 57 175 137 108 35 164 108 55 245 219 189 127 183 145 189 142 83 120 213 223 104 239 5 50 100 113 12 34 79 232 10 25 124 154 147 56 164 67 63 23 75 231 60 55 226 90 243 17 88 197 191 253 113 252 72 5 20 86 13 180 120 85 58 222 221 227 31 187 101 237 93 40 32 30 59 241 87 80 243 40 131 78 90 150 61 15 194 218 164 148 157 240 65 245 74 106 25 110 188 183 137 240 35 8 78 72 67 56 32 129 94 215 229 197 53 157 58 15 255 218 174 139 52 244)
#f
())
#(226
"PKCS#1 padding too short: 000001ff..."
#vu8(49 50 51 52 48 48)
#vu8(129 253 93 34 227 110 139 206 54 100 76 71 70 117 89 191 131 194 170 232 122 34 3 41 34 246 224 174 245 130 228 199 153 178 161 46 200 83 65 131 201 130 255 28 217 126 199 65 14 114 3 195 173 66 110 214 169 126 250 21 130 97 199 217 72 110 255 237 54 64 196 105 166 68 74 91 30 67 235 247 195 89 176 74 163 113 53 188 81 222 87 80 81 146 49 246 130 192 237 111 199 21 215 140 52 191 82 223 78 60 205 40 237 208 204 228 130 128 66 211 137 67 129 251 153 66 154 163 6 179 38 191 89 240 48 183 82 83 89 20 211 36 40 78 187 80 115 193 76 227 204 16 0 224 214 92 169 15 6 141 221 224 94 45 123 34 186 87 91 64 154 239 190 55 209 16 249 42 235 74 251 88 212 208 61 20 15 116 254 4 182 119 43 82 201 96 187 17 32 211 89 178 112 240 188 146 107 188 33 208 164 45 125 139 197 108 87 86 219 221 208 179 42 247 253 225 232 147 14 25 88 116 245 144 0 31 207 99 150 140 170 117 191 154 207 48 103 242 42 100 55 14 166 131 2 187 54 252 254 53 177 195 159 126 105 188 105 50 138 182 175 27 91 103 254 63 134 192 109 200 35 227 79 134 82 160 245 227 143 105 101 249 48 227 236 74 186 234 62 154 179 184 17 50 161 75 97 53 122 174 72 187 167 149 245 133 164 248 122 129 188 170 97 44 165 100 255 254 4 62 102 61 216 70 156 202 164 168 243 136 251 245 220 73 139 204 178 63 114 203 253 167 168 83 201 193 50 192 255 39 67 90 107 175 64 215 123 122 82 173 142 142 231 237 111 13 101 36 205 240 96 227 232 67 181 56 229 134 250 205 138 95 95 61 217 119 18 239 66 111 34 157 128 58 198 214 238 101 103 235 208 204 196 103 178 48 31 86 124 146 225 196 115 26 65 52 193 142 220 0 197 87 121 215 163 74 108 21 88 35 50 9 20 21 127 233 215 34 105 7 167 117 11 183 143 123 107 97 177 52 193 129 51 222 125 212 53 122 119 99 248 143 211 136 109 149 212 116 73 166 56 82 67 205 227 191 185 117 115 142 150 7 140 248 117 157 81 107 49 38 140 0 82 4 86 53 206 80 248 128 95 240)
#f
())
#(227
"CVE-2017-11185: signature=n"
#vu8(49 50 51 52 48 48)
#vu8(201 167 101 194 102 27 70 116 207 243 72 14 154 94 70 42 208 173 47 201 188 111 190 246 40 71 179 17 61 32 153 31 101 57 103 151 28 40 37 39 83 245 251 172 206 1 44 42 138 181 146 145 77 38 158 250 250 114 79 164 185 32 227 64 147 12 16 111 123 54 247 156 235 240 230 46 136 224 228 118 136 142 159 14 34 24 106 205 182 196 82 58 35 43 101 180 255 44 194 45 196 79 138 85 149 39 215 157 124 215 220 243 119 50 18 247 187 154 161 51 195 17 101 204 102 54 144 191 18 61 115 146 60 131 137 41 204 175 238 89 214 199 9 91 141 74 116 186 242 209 146 201 164 232 124 78 18 188 88 1 48 120 178 138 119 137 232 46 159 49 222 31 77 106 42 166 232 6 50 190 142 75 223 38 62 141 73 176 148 22 251 25 196 136 192 122 216 175 114 42 183 145 130 178 48 40 167 30 6 93 2 65 42 158 235 196 109 125 143 78 3 215 146 56 216 192 203 74 151 169 161 32 14 187 110 198 64 66 235 236 202 217 86 117 38 238 239 18 193 125 148 193 4 156 136 153 112 185 110 148 204 53 49 114 162 104 164 156 94 139 238 19 193 91 57 222 196 79 44 122 26 163 122 122 11 111 114 41 10 202 218 50 177 216 175 31 195 220 138 137 72 123 168 19 71 203 235 19 80 146 93 48 249 35 149 129 6 180 153 89 200 113 231 193 219 165 93 160 119 46 54 44 248 98 29 120 97 8 104 184 148 225 110 93 254 201 104 116 169 58 76 243 121 180 126 126 49 140 227 21 6 109 112 238 57 56 20 10 96 20 143 32 80 133 206 248 167 112 12 163 197 61 82 165 117 106 99 179 177 111 21 48 98 182 18 98 166 132 150 33 12 139 228 239 63 144 41 202 14 160 227 179 160 213 214 210 38 237 187 244 77 175 143 4 93 194 134 222 211 196 236 77 182 180 83 71 7 159 51 234 249 142 60 149 180 182 14 121 239 74 48 147 254 236 84 55 3 66 43 167 74 17 133 17 194 25 59 84 254 139 99 56 102 237 44 112 92 203 198 231 217 211 101 104 9 236 61 51 86 231 64 10 150 72 236 55 80 80 65 227 227 26 241 192 46 239 233 36 166 112 71 211)
#f
())
#(228
"the signature is 2 bytes too long"
#vu8(49 50 51 52 48 48)
#vu8(201 167 101 194 102 27 70 116 207 243 72 14 154 94 70 42 208 173 47 201 188 111 190 246 40 71 179 17 61 32 153 31 101 57 103 151 28 40 37 39 83 245 251 172 206 1 44 42 138 181 146 145 77 38 158 250 250 114 79 164 185 32 227 64 147 12 16 111 123 54 247 156 235 240 230 46 136 224 228 118 136 142 159 14 34 24 106 205 182 196 82 58 35 43 101 180 255 44 194 45 196 79 138 85 149 39 215 157 124 215 220 243 119 50 18 247 187 154 161 51 195 17 101 204 102 54 144 191 18 61 115 146 60 131 137 41 204 175 238 89 214 199 9 91 141 74 116 186 242 209 146 201 164 232 124 78 18 188 88 1 48 120 178 138 119 137 232 46 159 49 222 31 77 106 42 166 232 6 50 190 142 75 223 38 62 141 73 176 148 22 251 25 196 136 192 122 216 175 114 42 183 145 130 178 48 40 167 30 6 93 2 65 42 158 235 196 109 125 143 78 3 215 146 56 216 192 203 74 151 169 161 32 14 187 110 198 64 66 235 236 202 217 86 117 38 238 239 18 193 125 148 193 4 156 136 153 112 185 110 148 204 53 49 114 162 104 164 156 94 139 238 19 193 91 57 222 196 79 44 122 26 163 122 122 11 111 114 41 10 202 218 50 177 216 175 31 195 220 138 137 72 123 168 19 71 203 235 19 80 146 93 48 249 35 149 129 6 180 153 89 200 113 231 193 219 165 93 160 119 46 54 44 248 98 29 120 97 8 104 184 148 225 110 93 254 201 104 116 169 58 76 243 121 180 126 126 49 140 227 21 6 109 112 238 57 56 20 10 96 20 143 32 80 133 206 248 167 112 12 163 197 61 82 165 117 106 99 179 177 111 21 48 98 182 18 98 166 132 150 33 12 139 228 239 63 144 41 202 14 160 227 179 160 213 214 210 38 237 187 244 77 175 143 4 93 194 134 222 211 196 236 77 182 180 83 71 7 159 51 234 249 142 60 149 180 182 14 121 239 74 48 147 254 236 84 55 3 66 43 167 74 17 133 17 194 25 59 84 254 139 99 56 102 237 44 112 92 203 198 231 217 211 101 104 9 236 61 51 86 231 64 10 150 72 236 55 80 80 65 227 227 26 241 192 46 239 233 36 166 112 71 211 0 0)
#f
())
#(229
"the signature is empty"
#vu8(49 50 51 52 48 48)
#vu8()
#f
())
#(230
"the signature has value 0"
#vu8(49 50 51 52 48 48)
#vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
#f
())
#(231
"the signature has value 1"
#vu8(49 50 51 52 48 48)
#vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1)
#f
())
#(232
"the signature has value 2"
#vu8(49 50 51 52 48 48)
#vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2)
#f
())
#(233
"the signature has value n-1"
#vu8(49 50 51 52 48 48)
#vu8(201 167 101 194 102 27 70 116 207 243 72 14 154 94 70 42 208 173 47 201 188 111 190 246 40 71 179 17 61 32 153 31 101 57 103 151 28 40 37 39 83 245 251 172 206 1 44 42 138 181 146 145 77 38 158 250 250 114 79 164 185 32 227 64 147 12 16 111 123 54 247 156 235 240 230 46 136 224 228 118 136 142 159 14 34 24 106 205 182 196 82 58 35 43 101 180 255 44 194 45 196 79 138 85 149 39 215 157 124 215 220 243 119 50 18 247 187 154 161 51 195 17 101 204 102 54 144 191 18 61 115 146 60 131 137 41 204 175 238 89 214 199 9 91 141 74 116 186 242 209 146 201 164 232 124 78 18 188 88 1 48 120 178 138 119 137 232 46 159 49 222 31 77 106 42 166 232 6 50 190 142 75 223 38 62 141 73 176 148 22 251 25 196 136 192 122 216 175 114 42 183 145 130 178 48 40 167 30 6 93 2 65 42 158 235 196 109 125 143 78 3 215 146 56 216 192 203 74 151 169 161 32 14 187 110 198 64 66 235 236 202 217 86 117 38 238 239 18 193 125 148 193 4 156 136 153 112 185 110 148 204 53 49 114 162 104 164 156 94 139 238 19 193 91 57 222 196 79 44 122 26 163 122 122 11 111 114 41 10 202 218 50 177 216 175 31 195 220 138 137 72 123 168 19 71 203 235 19 80 146 93 48 249 35 149 129 6 180 153 89 200 113 231 193 219 165 93 160 119 46 54 44 248 98 29 120 97 8 104 184 148 225 110 93 254 201 104 116 169 58 76 243 121 180 126 126 49 140 227 21 6 109 112 238 57 56 20 10 96 20 143 32 80 133 206 248 167 112 12 163 197 61 82 165 117 106 99 179 177 111 21 48 98 182 18 98 166 132 150 33 12 139 228 239 63 144 41 202 14 160 227 179 160 213 214 210 38 237 187 244 77 175 143 4 93 194 134 222 211 196 236 77 182 180 83 71 7 159 51 234 249 142 60 149 180 182 14 121 239 74 48 147 254 236 84 55 3 66 43 167 74 17 133 17 194 25 59 84 254 139 99 56 102 237 44 112 92 203 198 231 217 211 101 104 9 236 61 51 86 231 64 10 150 72 236 55 80 80 65 227 227 26 241 192 46 239 233 36 166 112 71 210)
#f
())
#(234
"the signature has value n+1"
#vu8(49 50 51 52 48 48)
#vu8(201 167 101 194 102 27 70 116 207 243 72 14 154 94 70 42 208 173 47 201 188 111 190 246 40 71 179 17 61 32 153 31 101 57 103 151 28 40 37 39 83 245 251 172 206 1 44 42 138 181 146 145 77 38 158 250 250 114 79 164 185 32 227 64 147 12 16 111 123 54 247 156 235 240 230 46 136 224 228 118 136 142 159 14 34 24 106 205 182 196 82 58 35 43 101 180 255 44 194 45 196 79 138 85 149 39 215 157 124 215 220 243 119 50 18 247 187 154 161 51 195 17 101 204 102 54 144 191 18 61 115 146 60 131 137 41 204 175 238 89 214 199 9 91 141 74 116 186 242 209 146 201 164 232 124 78 18 188 88 1 48 120 178 138 119 137 232 46 159 49 222 31 77 106 42 166 232 6 50 190 142 75 223 38 62 141 73 176 148 22 251 25 196 136 192 122 216 175 114 42 183 145 130 178 48 40 167 30 6 93 2 65 42 158 235 196 109 125 143 78 3 215 146 56 216 192 203 74 151 169 161 32 14 187 110 198 64 66 235 236 202 217 86 117 38 238 239 18 193 125 148 193 4 156 136 153 112 185 110 148 204 53 49 114 162 104 164 156 94 139 238 19 193 91 57 222 196 79 44 122 26 163 122 122 11 111 114 41 10 202 218 50 177 216 175 31 195 220 138 137 72 123 168 19 71 203 235 19 80 146 93 48 249 35 149 129 6 180 153 89 200 113 231 193 219 165 93 160 119 46 54 44 248 98 29 120 97 8 104 184 148 225 110 93 254 201 104 116 169 58 76 243 121 180 126 126 49 140 227 21 6 109 112 238 57 56 20 10 96 20 143 32 80 133 206 248 167 112 12 163 197 61 82 165 117 106 99 179 177 111 21 48 98 182 18 98 166 132 150 33 12 139 228 239 63 144 41 202 14 160 227 179 160 213 214 210 38 237 187 244 77 175 143 4 93 194 134 222 211 196 236 77 182 180 83 71 7 159 51 234 249 142 60 149 180 182 14 121 239 74 48 147 254 236 84 55 3 66 43 167 74 17 133 17 194 25 59 84 254 139 99 56 102 237 44 112 92 203 198 231 217 211 101 104 9 236 61 51 86 231 64 10 150 72 236 55 80 80 65 227 227 26 241 192 46 239 233 36 166 112 71 212)
#f
())
#(235
"the signature has value -1"
#vu8(49 50 51 52 48 48)
#vu8(255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255)
#f
())
#(236
"RSASSA-PSS signature"
#vu8(49 50 51 52 48 48)
#vu8(158 89 25 128 233 236 61 98 226 237 195 22 58 200 32 111 192 159 224 38 162 247 230 34 220 90 109 2 151 109 48 236 241 65 41 83 53 0 141 145 162 35 238 152 161 67 84 20 148 204 247 203 6 161 170 97 222 82 79 181 187 75 55 154 103 237 44 237 68 124 123 57 92 87 166 37 248 53 222 198 132 76 59 103 168 90 170 225 14 39 61 57 2 245 243 5 57 113 31 152 215 63 134 190 204 215 152 185 133 65 168 74 3 204 179 55 158 142 255 136 193 156 136 170 199 183 234 153 117 129 148 255 166 102 1 83 212 242 44 18 82 221 27 123 87 78 25 179 73 47 40 204 9 125 62 227 243 15 107 136 87 107 198 41 149 18 249 248 116 158 11 41 114 149 188 39 92 165 159 128 86 222 207 202 159 57 128 230 248 214 224 123 115 225 168 174 139 56 71 85 108 214 122 183 123 150 97 137 121 237 55 116 75 226 214 188 159 43 103 22 21 241 212 196 193 180 25 240 80 54 20 129 130 173 76 99 117 249 227 199 203 55 187 117 209 108 68 134 233 124 10 197 104 89 149 205 142 93 118 69 41 52 178 97 5 190 144 116 178 248 218 235 26 221 19 201 177 39 220 162 133 142 92 128 230 134 121 26 111 152 205 152 229 64 189 242 125 33 178 220 159 200 78 9 86 29 249 104 215 60 25 11 48 129 41 61 102 107 231 217 145 118 31 71 34 69 10 194 73 166 235 75 205 241 144 194 20 99 12 133 36 58 108 89 112 24 78 37 124 0 197 162 161 139 205 32 25 95 208 65 136 127 0 30 6 212 166 4 158 33 12 206 98 53 111 153 133 63 61 162 82 45 61 99 115 159 187 47 243 21 230 138 180 160 91 161 226 158 91 147 128 141 245 26 234 206 213 37 57 215 185 86 219 47 34 153 153 172 9 166 212 194 239 135 20 239 157 71 131 245 56 85 159 41 175 157 133 11 247 27 0 31 35 18 112 135 79 184 220 96 241 209 85 79 96 250 105 205 101 113 18 83 14 34 86 63 205 226 108 60 134 19 126 71 106 47 193 216 186 74 21 221 164 45 77 138 32 251 186 215 88 111 71 43 113 109 110 162 238 48 241 193 17 189 187 61 184 229 226 217 51 168)
#f
())
#(237
"RSASSA-PSS signature"
#vu8(49 50 51 52 48 48)
#vu8(35 225 152 213 130 208 72 135 76 228 230 230 159 90 129 35 76 160 139 225 252 156 240 247 190 5 69 73 151 250 216 125 168 240 92 47 175 114 133 167 169 202 122 165 15 119 43 129 117 71 155 123 236 133 145 145 98 184 167 235 124 212 193 184 240 170 166 74 143 55 30 35 236 44 52 40 215 216 52 17 242 75 189 75 128 118 42 117 250 14 93 228 104 167 29 190 155 172 56 43 64 114 36 30 60 112 133 237 43 158 114 236 55 121 193 247 11 189 15 36 104 52 243 232 30 191 254 225 51 18 209 51 225 221 174 181 139 132 209 172 27 68 31 49 30 225 226 201 105 62 48 8 98 205 245 180 165 216 32 223 222 135 13 162 39 70 190 11 18 223 185 67 120 12 11 169 40 198 87 197 75 234 13 132 219 55 254 80 240 150 92 234 185 5 242 236 63 241 119 66 27 17 195 14 132 106 217 50 18 72 94 127 110 82 215 213 26 241 201 111 49 254 241 116 171 56 207 177 177 251 89 97 207 173 172 81 138 106 73 145 255 45 86 26 125 141 173 197 173 67 12 148 180 12 4 162 151 1 47 129 230 232 76 160 40 121 253 130 183 55 68 196 55 46 192 47 20 26 230 196 206 117 89 85 89 243 244 204 158 75 122 122 109 147 99 100 135 227 73 56 8 43 63 213 240 147 102 160 98 72 77 24 32 88 106 114 10 150 24 236 24 217 128 201 105 162 141 116 200 31 228 254 123 182 25 134 118 154 137 113 108 150 90 127 5 106 255 96 233 23 85 39 119 130 16 234 226 62 83 226 68 185 115 178 69 47 64 171 55 82 34 98 26 137 225 245 242 171 254 80 57 112 143 42 101 149 83 88 47 118 15 13 38 79 133 72 64 208 105 232 196 219 2 70 115 138 241 105 123 5 152 12 31 83 161 186 78 239 142 8 88 55 129 193 58 147 208 62 177 157 183 94 113 189 208 96 43 145 144 138 136 91 65 240 184 217 88 141 110 5 121 108 138 111 141 34 9 34 239 155 205 176 38 175 155 179 40 172 125 150 212 7 130 5 186 26 191 0 238 164 91 156 38 14 59 85 218 3 104 100 191 91 192 204 45 57 68 253 188 199 230 69 57 164 82 56 187 32 97 33 5 20)
#f
())
#(238
"RSASSA-PSS signature"
#vu8(49 50 51 52 48 48)
#vu8(74 128 202 251 226 166 9 95 142 134 99 246 40 152 120 81 77 126 231 218 186 12 27 10 7 124 239 179 51 202 205 247 193 22 171 137 176 160 28 171 49 97 198 140 172 146 160 138 174 125 17 124 154 52 22 214 115 101 98 29 163 56 10 133 255 52 167 163 181 18 132 96 72 172 209 236 89 87 175 148 39 33 194 65 161 128 165 220 93 143 111 111 229 77 77 159 203 55 9 205 227 112 129 226 35 59 79 255 162 1 210 2 146 65 147 45 161 112 165 186 208 217 39 168 3 167 246 40 159 201 247 177 212 28 193 166 201 76 191 88 141 84 146 179 99 146 13 12 152 64 79 93 169 235 148 87 100 142 42 78 154 3 75 46 35 40 199 248 192 231 148 119 22 65 169 129 223 118 88 135 181 186 25 183 105 21 107 55 85 53 145 30 26 45 166 139 182 163 126 170 14 248 221 237 76 227 234 197 202 255 78 141 195 87 112 63 4 9 208 11 174 237 243 251 203 214 137 93 211 147 142 31 3 221 159 19 31 156 151 158 34 228 252 190 160 197 135 33 188 114 209 244 151 110 147 252 26 118 73 162 55 69 192 49 1 129 3 26 195 75 34 0 223 180 232 254 155 212 205 181 42 35 195 20 22 116 85 33 170 72 97 234 234 125 236 78 162 193 138 233 247 95 169 211 108 155 97 189 196 24 94 67 79 140 176 145 205 115 22 7 183 73 163 153 5 133 203 190 162 177 192 224 255 244 245 137 165 71 211 32 188 121 35 184 166 181 148 197 134 96 149 223 156 145 76 202 128 205 108 14 154 163 214 145 226 96 127 157 230 67 34 3 28 207 237 4 217 200 5 34 108 180 118 211 36 109 108 170 27 4 198 51 114 167 118 104 213 237 240 99 101 130 123 128 57 26 106 189 102 1 14 142 27 135 59 216 61 180 220 201 148 68 225 9 239 162 65 76 110 83 25 243 10 113 142 180 58 18 86 178 20 42 250 35 130 49 110 55 174 189 227 45 165 191 236 147 232 157 42 220 57 246 42 202 37 162 40 153 51 167 205 130 52 215 42 155 60 106 0 29 39 86 15 140 138 45 154 35 59 172 11 81 155 52 244 247 146 136 234 44 176 138 135 36 41 83 172 36 234 20 65 67)
#f
())
#(239
"RSASSA-PSS signature"
#vu8(49 50 51 52 48 48)
#vu8(114 127 16 125 32 160 44 42 46 83 10 120 253 204 142 232 136 22 186 222 161 32 77 76 106 59 17 103 118 33 127 134 246 252 230 97 44 172 180 74 162 136 153 17 70 103 92 192 144 112 148 181 249 10 6 240 233 64 200 134 192 123 81 87 96 81 2 198 112 170 153 39 253 15 34 34 183 55 137 13 28 185 5 240 254 75 71 230 125 37 78 111 239 15 32 4 190 100 201 75 166 48 131 145 153 179 101 106 190 44 110 181 158 132 88 75 182 82 161 129 166 72 149 213 45 70 170 235 203 70 189 213 236 164 101 94 238 76 52 6 73 164 154 94 237 96 162 211 201 87 98 191 130 95 98 43 196 141 5 253 104 19 57 61 57 2 28 13 181 178 16 65 134 245 205 0 178 3 180 60 168 57 193 146 117 91 64 168 217 70 209 219 107 13 45 125 246 236 105 41 229 101 83 150 217 53 206 157 69 189 115 100 177 232 226 187 195 22 145 141 51 202 246 160 143 241 200 64 79 182 108 198 121 240 63 158 214 197 153 127 114 229 45 165 223 65 175 88 137 49 41 188 207 47 227 242 171 113 115 250 34 127 36 195 4 56 224 100 192 193 233 157 58 185 188 201 41 57 24 147 24 123 150 131 204 16 38 84 107 109 33 192 47 237 40 254 28 67 191 30 182 121 250 165 96 55 93 68 90 244 52 253 194 121 78 164 79 234 100 69 168 232 158 214 193 67 121 247 86 7 2 39 178 12 194 192 173 211 166 112 155 227 150 128 238 229 239 172 150 151 244 93 33 34 165 30 230 79 154 227 16 198 169 184 93 11 48 5 40 184 88 88 29 89 229 156 119 85 160 118 76 89 203 129 211 85 57 96 66 207 129 80 201 19 118 102 11 199 55 211 49 68 250 123 109 114 49 251 212 60 22 167 157 6 222 15 209 138 83 65 90 203 53 32 101 207 22 158 130 171 249 74 51 55 230 181 37 221 195 210 94 182 81 98 8 233 248 50 22 143 175 60 58 34 70 18 201 121 19 105 186 42 184 90 112 30 131 50 183 56 191 41 66 205 32 151 93 46 218 194 236 232 86 141 16 26 184 96 45 88 251 223 101 37 128 181 0 139 73 154 160 96 98 187 153 105 124 65 206 142 52 187)
#f
())))
| false |
aec3d8264bcacd0b607f7c9682b85c567a8a3441 | df0ba5a0dea3929f29358805fe8dcf4f97d89969 | /exercises/informatics-2/exam-1/a/3.scm | 810314ffdfbf2b6f2f15d7b8957c55924a15ab96 | [
"MIT"
]
| permissive | triffon/fp-2019-20 | 1c397e4f0bf521bf5397f465bd1cc532011e8cf1 | a74dcde683538be031186cf18367993e70dc1a1c | refs/heads/master | 2021-12-15T00:32:28.583751 | 2021-12-03T13:57:04 | 2021-12-03T13:57:04 | 210,043,805 | 14 | 31 | MIT | 2019-12-23T23:39:09 | 2019-09-21T19:41:41 | Racket | UTF-8 | Scheme | false | false | 1,141 | scm | 3.scm | (require rackunit rackunit/text-ui)
(define (repeat n x)
(if (= n 0)
'()
(cons x (repeat (- n 1) x))))
(define (deep-repeat-help l level)
(cond ((null? l) '())
((null? (car l)) (cons '() (deep-repeat-help (cdr l) level))) ; corner case
((pair? (car l)) (cons (deep-repeat-help (car l) (+ level 1))
(deep-repeat-help (cdr l) level)))
(else (append (repeat level (car l))
(deep-repeat-help (cdr l) level)))))
(define (deep-repeat l)
(deep-repeat-help l 1))
(define deep-repeat-tests
(test-suite
"Tests for deep-repeat"
(check-equal? (deep-repeat '())
'())
(check-equal? (deep-repeat '(((())))) ; tricky corner case
'(((()))))
(check-equal? (deep-repeat '(((6))))
'(((6 6 6))))
(check-equal? (deep-repeat '((2 3) 4 ((6))))
'((2 2 3 3) 4 ((6 6 6))))
(check-equal? (deep-repeat '(1 (2 3) 4 (5 (6))))
'(1 (2 2 3 3) 4 (5 5 (6 6 6))))))
(run-tests deep-repeat-tests)
| false |
ffcb4933c61346a1a0305fed54baf2ce9f2c8fb7 | e664b089c0965409606ced0ae8f377d69ab21bf5 | /test/benchmark-file-io/count-lines.scm | 11986bec29ec791f581bad2b3c28fe3327b21ad6 | [
"MIT"
]
| permissive | gregr/dbKanren | 127a6555afcc73697eae7ba4bf34ae916300dba7 | 21bdac516db14c3f83ef7db388416a28d462d8ad | refs/heads/master | 2023-08-30T23:29:35.212245 | 2023-08-24T19:12:57 | 2023-08-24T19:12:57 | 243,429,366 | 38 | 8 | null | null | null | null | UTF-8 | Scheme | false | false | 2,485 | scm | count-lines.scm | ;; 37GB
;(define in (open-file-input-port "rtx-kg2-s3/rtx-kg2_edges_2.8.1.tsv" (file-options) 'none))
;; 4.8GB
(define in (open-file-input-port "rtx-kg2-s3/rtx-kg2_nodes_2.8.1.tsv" (file-options) 'none))
;(#%$assembly-output #t)
(optimize-level 3)
(let ()
;(define buffer-size 65536)
;(define buffer-size 32768)
(define buffer-size 16384)
;(define buffer-size 8192)
;(define buffer-size 4096)
(write
(time (let ((buffer (make-bytevector buffer-size)))
(let loop.outer ((count 0))
(let ((size (get-bytevector-some! in buffer 0 buffer-size)))
(if (eof-object? size)
count
(let loop.inner ((i 0) (count count))
(if (fx= i size)
(loop.outer count)
(let ((b (bytevector-u8-ref buffer i)))
(loop.inner (fx+ i 1) (fx+ count (fx- b 10)))))
))))))))
;(let ()
; ;(define buffer-size 65536)
; ;(define buffer-size 32768)
; (define buffer-size 16384)
; ;(define buffer-size 8192)
; ;(define buffer-size 4096)
; (write
; (time (let ((buffer (make-bytevector buffer-size)))
; (let loop.outer ((count 0))
; (let ((size (get-bytevector-some! in buffer 0 buffer-size)))
; (if (eof-object? size)
; count
; (let loop.inner ((i 0) (count count))
; (if (fx= i size)
; (loop.outer count)
; (let ((b (bytevector-u8-ref buffer i)))
; (loop.inner (fx+ i 1) (if (fx= b 10) (fx+ count 1) count))))
; ))))))))
;(let ()
; ;(define buffer-size 65536)
; ;(define buffer-size 32768)
; (define buffer-size 16384)
; ;(define buffer-size 8192)
; ;(define buffer-size 4096)
; (write
; (time (let ((buffer (make-bytevector buffer-size)))
; (let loop.outer ((count.outer 0))
; (let ((size (get-bytevector-some! in buffer 0 buffer-size)))
; (if (eof-object? size)
; count.outer
; (let loop.inner ((i 0) (count 0))
; (if (fx= i size)
; (loop.outer (fx+ count count.outer))
; (let ((b (bytevector-u8-ref buffer i)))
; (loop.inner (fx+ i 1) (if (fx= b 10) (fx+ count 1) count))))
; ))))))))
| false |
8555422d9dd6e90d275e00a10a08866854cc6cfe | 7d4ac63b85ea8cbd48daffb359aaf3c82f5d9536 | /newsboatctl.scm | b2b098c5dc4379375368194781e5d4a8d2d7d214 | [
"Unlicense"
]
| permissive | wasamasa/tools | dd1b878e915d923a3b95d09f6683c003808d9e2f | 164dae35bfecf07ac1fb5ba56cdb774f94fb6c15 | refs/heads/master | 2020-05-09T19:10:12.975215 | 2020-04-28T21:31:48 | 2020-04-28T21:31:48 | 181,369,466 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 5,966 | scm | newsboatctl.scm | (import scheme)
(import (chicken base))
(import (chicken file))
(import (chicken file posix))
(import (chicken format))
(import (chicken io))
(import (chicken irregex))
(import (chicken port))
(import (chicken process))
(import (chicken process-context))
(import (chicken string))
(import (srfi 1))
(import scsh-process)
(import sql-de-lite)
(define (xdg-path environment-variable fallback path)
(let ((home (get-environment-variable environment-variable)))
(if (and home (eqv? (string-ref home 0) #\/))
(string-append home path)
(string-append (get-environment-variable "HOME") fallback path))))
(define urls-file (xdg-path "XDG_CONFIG_HOME" "/.config" "/newsboat/urls"))
(define db-file (xdg-path "XDG_DATA_HOME" "/.local/share" "/newsboat/cache.db"))
(define (die message . args)
(with-output-to-port (current-error-port)
(lambda () (apply print message args)))
(exit 1))
(define (table-columns db table)
(query fetch-column
(sql db "SELECT name FROM pragma_table_info(?);") table))
(define (schema-check db)
(let ((rss-feed-cols (table-columns db "rss_feed"))
(rss-item-cols (table-columns db "rss_item")))
(and (lset<= string=? '("rssurl") rss-feed-cols)
(lset<= string=? '("title" "url" "feedurl" "unread") rss-item-cols))))
(define (sanity-check)
(when (not (file-exists? urls-file))
(die "No URLs file at " urls-file))
(when (not (file-exists? db-file))
(die "No DB file at " db-file))
(when (not (call-with-database db-file schema))
(die "No schema found for DB"))
(when (not (call-with-database db-file schema-check))
(die "Unexpected schema")))
(define (add-feed! url)
(let ((fd (file-open urls-file (+ open/wronly open/append))))
(file-write fd (string-append url "\n"))
(file-close fd)))
(define (reload-feeds!)
(run (newsboat "-x" "reload") (> "/dev/null")))
(define (unread-feeds db)
(query fetch-all
(sql db "SELECT url, title FROM rss_item WHERE unread = 1;")))
(define (print-unread!)
(for-each
(lambda (row) (apply printf "~a ~a\n" row))
(call-with-database db-file unread-feeds)))
(define (catch-up-with-all! db)
(exec (sql db "UPDATE rss_item SET unread = 0 WHERE unread = 1;")))
(define (known-feed? db feed-url)
(query fetch-value
(sql db "SELECT 1 FROM rss_feed WHERE rssurl = ?;") feed-url))
(define (catch-up-with-feed! db feed-url)
(when (not (known-feed? db feed-url))
(die "Unknown feed url"))
(exec (sql db "UPDATE rss_item SET unread = 0 WHERE unread = 1 AND feedurl = ?;") feed-url))
(define (catch-up! #!optional feed-url)
(if (not feed-url)
(call-with-database db-file catch-up-with-all!)
(call-with-database db-file (cut catch-up-with-feed! <> feed-url))))
(define (db-feed-urls)
(call-with-database db-file
(lambda (db) (query fetch-column (sql db "SELECT rssurl FROM rss_feed;")))))
(define (url? line)
(and-let* ((index (substring-index "http" line 0)))
(zero? index)))
(define (file-feed-urls)
(let* ((lines (call-with-input-file urls-file read-lines))
(url-lines (filter url? lines)))
(map (lambda (line) (car (string-split line))) url-lines)))
(define ie10-user-agent "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)")
(define custom-user-agent "linux:newsboatctl:0.0.1 (wasamasa)")
(define (http-header-lines header pattern subexp)
(filter-map
(lambda (line)
(let ((match (irregex-search pattern line)))
(if match
(irregex-match-substring match subexp)
#f)))
header))
(define (dbg thing)
(display "XXX: ")
(write thing)
(newline)
thing)
(define (http-status-codes header)
(map string->number
(http-header-lines header "^HTTP/[0-9](.[0-9])? ([0-9]+) " 2)))
(define (http-locations header)
(http-header-lines header "^Location: (.*)$" 1))
(define (check-feed url)
(receive
(in out pid)
(process "curl" (list "-siLA" custom-user-agent url))
(close-output-port out)
(let ((lines (read-lines in)))
(close-input-port in)
(if (null? lines)
#f
(let ((status-codes (http-status-codes lines)))
(map (lambda (status)
(cond
((< status 300) (list 'ok status))
((< status 400) (list 'redirect status (http-locations lines)))
(else (list 'error status))))
status-codes))))))
(define (check-feeds!)
(for-each (lambda (url)
(let ((status-codes (check-feed url)))
(if status-codes
(map (lambda (status)
(let ((type (car status))
(code (cadr status)))
(case type
((ok) (print code " OK: " url))
((redirect) (apply print code " Redirect(s): "
(list-ref status 2)))
((error) (print code " Error: " url)))))
status-codes)
(print "Failed checking url: " url))))
(file-feed-urls)))
(define prog "newsboatctl")
(define usage
(format "usage:
~a add-feed <url>
~a reload-feeds
~a print-unread
~a catch-up [url]
~a check-feeds" prog prog prog prog prog))
(define (main)
(sanity-check)
(when (null? (command-line-arguments))
(die usage))
(let ((command (string->symbol (car (command-line-arguments))))
(args (cdr (command-line-arguments))))
(case command
((add-feed)
(when (null? args)
(die "add-url command requires an URL argument"))
(add-feed! (car args)))
((reload-feeds) (reload-feeds!))
((print-unread) (print-unread!))
((catch-up)
(if (null? args)
(catch-up!)
(catch-up! (car args))))
((check-feeds) (check-feeds!))
(else (die "Invalid command given")))))
(main)
| false |
0069123f45ad0eeb67534f74fb963c764fc1de5b | cc1b70c61dc6ed659ce2ba06aa9e04bf5dfb47e8 | /examples/simple.scm | 20ac76d072584c1ba7c81742b2b3577c6e6ce453 | []
| no_license | philhofer/srcc | a99a6c496ad77706fe4a07e4b2d9f27d11ad69a5 | fd78a8c8987df2ec4b034c202bcb00bdb951be23 | refs/heads/master | 2023-08-27T21:38:59.031046 | 2019-06-06T01:10:54 | 2019-06-06T01:10:54 | 190,252,580 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 119 | scm | simple.scm | (loopback)
(wireless "wlan0")
(ether "eth0")
(bundle "net-wired"
"eth0"
"lo")
(bundle "net-wireless"
"wlan0"
"lo")
| false |
1a8faf148e764a969a7b6d442c141032a8dcd24d | de21ee2b90a109c443485ed2e25f84daf4327af3 | /exercise/section3/3.64.scm | b039cc1d52052e543fbd3520d6cf2be2c582cab0 | []
| no_license | s-tajima/SICP | ab82518bdc0551bb4c99447ecd9551f8d3a2ea1d | 9ceff8757269adab850d01f238225d871748d5dc | refs/heads/master | 2020-12-18T08:56:31.032661 | 2016-11-10T11:37:52 | 2016-11-10T11:37:52 | 18,719,524 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,485 | scm | 3.64.scm | ;= Question =============================================================================
;
; 引数としてストリームと数値(許容誤差)をとる手続きstream-limitを書け.
; それはストリームを調べて相続く二つの要素が絶対値で許容誤差より小さくなるのを見つけ,
; その二つの要素の二番目を返す.
;
; これを使えば
;
; (define (sqrt x tolerance)
; (stream-limit (sqrt-stream x) tolerance))
;
; により, 平方根を与えられた許容誤差まで計算出来る.
;
;= Prepared =============================================================================
(load "./stream.scm")
(define (sqrt-improve guess x)
(average guess (/ x guess)))
(define (sqrt-stream x)
(define guesses
(cons-stream 1.0
(stream-map (lambda (guess)
(sqrt-improve guess x))
guesses)))
guesses)
(define (average x y)
(/ (+ x y) 2))
(define (sqrt x tolerance)
(stream-limit (sqrt-stream x) tolerance))
;= Answer ===============================================================================
(define (stream-limit s tolerance)
(let ((a (stream-car s))
(b (stream-car (stream-cdr s))))
(if (< (abs (- a b)) tolerance)
b
(stream-limit (stream-cdr s) tolerance))))
;= Test =================================================================================
(print (sqrt 3 0.000001))
| false |
2dd73097d41d3942182d3b150649c69751f00795 | fb9a1b8f80516373ac709e2328dd50621b18aa1a | /ch3/exercise3-78.scm | 09a8b79173936bef5e0c329cbc77db19328079fc | []
| no_license | da1/sicp | a7eacd10d25e5a1a034c57247755d531335ff8c7 | 0c408ace7af48ef3256330c8965a2b23ba948007 | refs/heads/master | 2021-01-20T11:57:47.202301 | 2014-02-16T08:57:55 | 2014-02-16T08:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 65 | scm | exercise3-78.scm | ;; 問題3.78
;; 図3.35のダイアグラムをschemeにする
| false |
375c55d87c2189ab2cc9f7eeb96114e15bfaca9f | defeada37d39bca09ef76f66f38683754c0a6aa0 | /System/system/net/digest-session.sls | 99ea44e1a19ab470881b070f25789410abab2912 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,665 | sls | digest-session.sls | (library (system net digest-session)
(export new
is?
digest-session?
parse?
authenticate
algorithm
realm
nonce
opaque
qop
cnonce
last-use)
(import (ironscheme-clr-port))
(define-syntax new
(lambda (e)
(syntax-case e ()
((_ a ...) #'(clr-new System.Net.DigestSession a ...)))))
(define (is? a) (clr-is System.Net.DigestSession a))
(define (digest-session? a) (clr-is System.Net.DigestSession a))
(define-method-port
parse?
System.Net.DigestSession
Parse
(System.Boolean System.String))
(define-method-port
authenticate
System.Net.DigestSession
Authenticate
(System.Net.Authorization
System.Net.WebRequest
System.Net.ICredentials))
(define-field-port
algorithm
#f
#f
(property:)
System.Net.DigestSession
Algorithm
System.String)
(define-field-port
realm
#f
#f
(property:)
System.Net.DigestSession
Realm
System.String)
(define-field-port
nonce
#f
#f
(property:)
System.Net.DigestSession
Nonce
System.String)
(define-field-port
opaque
#f
#f
(property:)
System.Net.DigestSession
Opaque
System.String)
(define-field-port
qop
#f
#f
(property:)
System.Net.DigestSession
QOP
System.String)
(define-field-port
cnonce
#f
#f
(property:)
System.Net.DigestSession
CNonce
System.String)
(define-field-port
last-use
#f
#f
(property:)
System.Net.DigestSession
LastUse
System.DateTime))
| true |
9a1c7758a93d0a597693f003e88fa0f85dda3c31 | 370ebaf71b077579ebfc4d97309ce879f97335f7 | /seasonedSchemer/testsCh20.sld | 488d09ed8847c643eaf86dff78927508b5b002a9 | []
| no_license | jgonis/sicp | 7f14beb5b65890a86892a05ba9e7c59fc8bceb80 | fd46c80b98c408e3fd18589072f02ba444d35f53 | refs/heads/master | 2023-08-17T11:52:23.344606 | 2023-08-13T22:20:42 | 2023-08-13T22:20:42 | 376,708,557 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 465 | sld | testsCh20.sld | (define-library (seasoned-schemer tests ch20)
(export run-tests-ch20)
(import (scheme base)
(scheme write)
(srfi 78)
(seasoned-schemer ch20))
(begin
(define run-tests-ch20
(lambda ()
(check-reset!)
(check-set-mode! 'report-failed)
(test-jeff-ch20)
(check-report)
(check-reset!)))
(define test-jeff-ch20
(lambda ()
(check (jeff-ch20 2)
=> 4)))))
| false |
2e1fdfb6963180d27cb646eed6275a4fcef1c268 | ebc5db754946092d65c73d0b55649c50d0536bd9 | /2017/day09.scm | 6d50e6b723a967dd73ee292b94f77b2a96e4835b | []
| no_license | shawnw/adventofcode | 6456affda0d7423442d0365a2ddfb7b704c0aa91 | f0ecba80168289305d438c56f3632d8ca89c54a9 | refs/heads/master | 2022-12-07T22:54:04.957724 | 2022-12-02T07:26:06 | 2022-12-02T07:26:06 | 225,129,064 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,342 | scm | day09.scm | ;;; $ kawa day09.scm < day09.txt
;;; $ csi -R r7rs -S day09.scm < day09.txt
(import (srfi 1))
(define (count-groups str)
(let ((results
(string-fold
(lambda (c acc)
(if (fourth acc)
(cond ; Garbage cases
((fifth acc) ; char after a !
(list (first acc) (second acc) (third acc) #t #f))
((char=? c #\>)
(list (first acc) (second acc) (third acc) #f))
((char=? c #\!)
(list (first acc) (second acc) (third acc) #t #t))
(else
(cons* (first acc) (second acc) (+ 1 (third acc))
(cdddr acc))))
(cond ; Regular cases
((char=? c #\<)
(list (first acc) (second acc) (third acc) #t #f))
((char=? c #\{)
(cons* (+ (first acc) 1 (second acc)) (+ 1 (second acc))
(cddr acc)))
((char=? c #\})
(cons* (first acc) (- (second acc) 1) (cddr acc)))
((char=? c #\,)
acc))))
(list 0 0 0 #f) str)))
(values (first results) (third results))))
(receive (part1 part2) (count-groups (read-line))
(format #t "Part 1: ~A~%Part 2: ~A~%" part1 part2))
| false |
d3e81004c25843e125556affd18fd26a1a1b59e1 | 320a615ef54449a39e2ca9e59847106e30cc8d7a | /test-qm/24-hexane.scm | 131ebd10cb1a4da497e593cfc91a59d4e72c3f64 | []
| no_license | alexei-matveev/bgy3d | 5cf08ea24a5c0f7b0d6e1d572effdeef8232f173 | 0facadd04c6143679033202d18017ae2a533b453 | refs/heads/master | 2021-01-01T17:47:22.766959 | 2015-07-10T09:21:49 | 2015-07-10T09:21:49 | 38,872,299 | 2 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 2,926 | scm | 24-hexane.scm | ;;
;; hexane ECP, RKS.
;;
((operations
(operations_symm #t)
(operations_integral #t)
(operations_scf #t)
(operations_dipole #t)
(operations_properties #t))
(main_options
(integrals_on_file #f) ; This is faster
(relativistic "false") ; This is an ECP calculation
(spin_restricted #t)) ; hexane is closed shell
(geo
(units angstrom)
("C" (1.709 -2.812 0.0))
("C" (1.684 -1.278 0.0))
("C" (0.245 -0.753 0.0))
("C" (0.241 0.779 0.0))
("C" (-1.198 1.304 0.0))
("C" (-1.206 2.834 0.0))
("H" (2.236 -3.164 0.887))
("H" (2.232 -3.164 -0.89))
("H" (0.691 -3.204 0.003))
("H" (2.202 -0.914 -0.888))
("H" (2.201 -0.914 0.89))
("H" (-0.273 -1.115 0.889))
("H" (-0.272 -1.115 -0.89))
("H" (0.757 1.142 -0.89))
("H" (0.757 1.141 0.89))
("H" (-1.716 0.944 0.89))
("H" (-1.716 0.944 -0.89))
("H" (-0.696 3.204 -0.89))
("H" (-0.696 3.204 0.89))
("H" (-2.236 3.19 0.0)))
(mixing (chmix 0.5) (start_after_cycle 5))
(grid (sym_reduce #t) (weight_grads #t))
(rep 20 (gridatom (nrad 30) (nang 131)))
(xc_control (xc "pbe"))
(ecp "nwchem" "C" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(ecp "nwchem" "C" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(ecp "nwchem" "C" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(ecp "nwchem" "C" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(ecp "nwchem" "C" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(ecp "nwchem" "C" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(bas "nwchem" "H" "crenbl_ecp" "ahlrichs_coulomb_fitting")
(properties
(plot_orbitals #t))
(orbital_plot
(n_input_lines 0)
(density_plot #t)
(density_tot #t)))
;;;
;;; BGY3d input follows. The parameter solute specifies the table to
;;; take the site-specific force field parameters. The names of the
;;; sites are those specified in PG input above:
;;;
((solute "hexane")
(solvent "hydrogen chloride")
(L 10.0) ; box size, A
(N 64) ; grid dimension
(rho 0.018) ; solvent number density, A^-3
(beta 1.1989)) ; inverse temperature, kcal^-1
| false |
c4902dfa1658e3808479665cbcdffe44fa29995e | bcfa2397f02d5afa93f4f53c0b0a98c204caafc1 | /scheme/chapter2/ex2_69.scm | 91c8852100c5aecc3a61b7b67fa80d9be5f11f4b | []
| no_license | rahulkumar96/sicp-study | ec4aa6e1076b46c47dbc7a678ac88e757191c209 | 4dcd1e1eb607aa1e32277e1c232a321c5de9c0f0 | refs/heads/master | 2020-12-03T00:37:39.576611 | 2017-07-05T12:58:48 | 2017-07-05T12:58:48 | 96,050,670 | 0 | 0 | null | 2017-07-02T21:46:09 | 2017-07-02T21:46:09 | null | UTF-8 | Scheme | false | false | 4,598 | scm | ex2_69.scm | ;; SICP 2.69
;; Exercise 2.69. The following procedure takes as its argument a
;; list of symbol-frequency pairs (where no symbol appears in more
;; than one pair) and generates a Huffman encoding tree according to
;; the Huffman algorithm.
;; (define (generate-huffman-tree pairs)
;; (successive-merge (make-leaf-set pairs)))
;; Make-leaf-set is the procedure given above that transforms the list
;; of pairs into an ordered set of leaves. Successive-merge is the
;; procedure you must write, using make-code-tree to successively
;; merge the smallest-weight elements of the set until there is only
;; one element left, which is the desired Huffman tree. (This
;; procedure is slightly tricky, but not really complicated. If you
;; find yourself designing a complex procedure, then you are almost
;; certainly doing something wrong. You can take significant advantage
;; of the fact that we are using an ordered set representation.)
;; LIBRARY FUNCTIONS -------------------------------------------------
(define (adjoin-set x set)
(cond ((null? set) (list x))
((< (weight x) (weight (car set))) (cons x set))
(else (cons (car set)
(adjoin-set x (cdr set))))))
(define (make-leaf symbol weight)
(list 'leaf symbol weight))
(define (leaf? object)
(eq? (car object) 'leaf))
(define (symbol-leaf x) (cadr x))
(define (weight-leaf x) (caddr x))
(define (make-code-tree left right)
(list left
right
(append (symbols left) (symbols right))
(+ (weight left) (weight right))))
(define (left-branch tree) (car tree))
(define (right-branch tree) (cadr tree))
(define (symbols tree)
(if (leaf? tree)
(list (symbol-leaf tree))
(caddr tree)))
(define (weight tree)
(if (leaf? tree)
(weight-leaf tree)
(cadddr tree)))
(define (decode bits tree)
(define (decode-1 bits current-branch)
(if (null? bits)
'()
(let ((next-branch
(choose-branch (car bits) current-branch)))
(if (leaf? next-branch)
(cons (symbol-leaf next-branch)
(decode-1 (cdr bits) tree))
(decode-1 (cdr bits) next-branch)))))
(decode-1 bits tree))
(define (choose-branch bit branch)
(cond ((= bit 0) (left-branch branch))
((= bit 1) (right-branch branch))
(else (error "bad bit -- CHOOSE-BRANCH" bit))))
(define (make-leaf-set pairs)
(if (null? pairs)
'()
(let ((pair (car pairs)))
(adjoin-set (make-leaf (car pair) ; symbol
(cadr pair)) ; frequency
(make-leaf-set (cdr pairs))))))
(define (encode message tree)
(if (null? message)
'()
(append (encode-symbol (car message) tree)
(encode (cdr message) tree))))
(define (encode-symbol symbol tree)
(define (loop tree)
(cond ((leaf? tree) ())
((member symbol (symbols (left-branch tree)))
(cons 0 (loop (left-branch tree))))
(else (cons 1 (loop (right-branch tree))))))
(if (member symbol (symbols tree))
(loop tree)
(error "Symbol not found")))
;; ANSWER ------------------------------------------------------------
(define (generate-huffman-tree pairs)
(successive-merge (make-leaf-set pairs)))
(define (successive-merge ordered-pairs)
(cond ((null? ordered-pairs) ())
((null? (cdr ordered-pairs)) (car ordered-pairs))
(else (successive-merge
(adjoin-set
(make-code-tree (car ordered-pairs)
(cadr ordered-pairs))
(cddr ordered-pairs))))))
;; Data from Exercise 2.70 -------------------------------------------
(define sample-pairs '((A 2)
(NA 16)
(BOOM 1)
(SHA 3)
(GET 2)
(YIP 9)
(JOB 2)
(WAH 1)))
(define tree (generate-huffman-tree sample-pairs))
(define song '(Get a job
Sha na na na na na na na na
Get a job
Sha na na na na na na na na
Wah yip yip yip yip yip yip yip yip yip
Sha boom))
(define answer (encode song tree))
; => (1 1 1 1 1 1 1 0 0 1 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1
; 1 0 0 1 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1
; 0 1 0 1 0 1 0 1 0 1 1 1 0 1 1 0 1 1)
;; 84 bits were required for the encoding. Encoding 36 words with an
;; 8 bit encoding would use 288 bits.
| false |
3c6b67fffc871328ea6130b0745ca2d83485ce3c | 6fe3cf1c6fabcf6020aae0df8154b1d3ffb334b1 | /cogen-abssyn.scm | 47d5c5e1ee222a9b61cf7d5109bd85ec57e858f5 | []
| no_license | tonyg/pgg | bd4eae9196abcca94f316e0198408b9bd90a7820 | 1625eba59e529b92572cb51b3749015e793d3563 | refs/heads/master | 2020-06-04T04:30:57.758708 | 2012-04-11T01:11:50 | 2012-04-11T01:11:50 | 3,988,925 | 5 | 0 | null | null | null | null | WINDOWS-1252 | Scheme | false | false | 20,815 | scm | cogen-abssyn.scm | ;;; cogen-abssyn.scm
;;; copyright © 1996-2000 by Peter Thiemann
;;; non-commercial use is free as long as the original copright notice
;;; remains intact
;;; abstract syntax for annotated programs
;;; definitions
;;; formals are #f if no formals are available
(define (annMakeDef name formals body)
(vector 'DEF name formals body 'btvar 'evar #t))
(define (annMakeDefMutable name formals body)
(vector 'MUTABLE-DEF name formals body 'btvar 'evar #f))
(define (annMakeDefWithoutMemoization name formals body)
(vector 'DEF name formals body 'btvar 'evar #f))
(define (annIsDefMutable? d)
(eq? (vector-ref d 0) 'MUTABLE-DEF))
(define (annIsDef? d)
(eq? (vector-ref d 0) 'DEF))
(define (annDefFetchProcName d)
(vector-ref d 1))
(define (annDefFetchProcFormals d)
(vector-ref d 2))
(define (annDefFetchProcBody d)
(vector-ref d 3))
(define (annDefSetProcBody d body)
(vector-set! d 3 body))
(define (annDefSetProcBTVar! d tv)
(vector-set! d 4 tv))
(define (annDefFetchProcBTVar d)
(vector-ref d 4))
(define (annDefFetchProcEVar d)
(vector-ref d 5))
(define (annDefSetProcEVar! d ocs)
(vector-set! d 5 ocs))
(define (annDefFetchProcAutoMemo d)
(vector-ref d 6))
(define (annDefSetProcAutoMemo! d f)
(vector-set! d 6 f))
(define (annDefLookup name d*)
(let loop ((d* d*))
(and (not (null? d*))
(let ((d (car d*)))
(if (eq? (annDefFetchProcName d) name)
d
(loop (cdr d*)))))))
;;; expressions
;;; general layout:
;;; #(tag sub-object level type memo effect)
(define (annMakeExpr tag sub-object)
(vector tag sub-object 0 #f #f #f))
(define-syntax annExprFetchTag
(syntax-rules ()
((_ e) (vector-ref e 0))))
(define (annExprSetTag! e t)
(vector-set! e 0 t))
(define-syntax annExprFetchSubobject
(syntax-rules ()
((_ e) (vector-ref e 1))
((_ e i) (vector-ref (vector-ref e 1) i))))
(define-syntax annExprSetSubobject!
(syntax-rules ()
((_ e so) (vector-set! e 1 so))
((_ e i so) (vector-set! (vector-ref e 1) i so))))
(define (annExprFetchLevel e)
(vector-ref e 2))
(define (annExprSetLevel! e lv)
(vector-set! e 2 lv))
(define (annExprFetchType e)
(vector-ref e 3))
(define (annExprSetType! e bt)
(vector-set! e 3 bt))
(define (annExprFetchMemo e)
(vector-ref e 4))
(define (annExprSetMemo! e bt)
(vector-set! e 4 bt))
(define (annExprFetchEffect e)
(vector-ref e 5))
(define (annExprSetEffect! e bt)
(vector-set! e 5 bt))
;;; variable
(define (annMakeVar v)
(annMakeExpr 'VAR (vector v #f #f)))
(define (annIsVar? e)
(eq? 'VAR (annExprFetchTag e)))
(define (annFetchVar e)
(annExprFetchSubobject e 0))
(define (annFetchVarGlobal e)
(annExprFetchSubobject e 1))
(define (annSetVarGlobal! e prop)
(annExprSetSubobject! e 1 prop))
(define (annFetchVarCall e)
(annExprFetchSubobject e 2))
(define (annSetVarCall! e prop)
(annExprSetSubobject! e 2 prop))
;;; constant
(define (annMakeConst c)
(annMakeExpr 'CONST c))
(define (annIsConst? e)
(eq? 'CONST (annExprFetchTag e)))
(define (annFetchConst e)
(annExprFetchSubobject e))
;;; conditional
(define (annMakeCond e-cond e-then e-else)
(annMakeExpr 'IF (vector e-cond e-then e-else)))
(define (annIsCond? e)
(eq? 'IF (annExprFetchTag e)))
(define (annFetchCondTest e)
(annExprFetchSubobject e 0))
(define (annFetchCondThen e)
(annExprFetchSubobject e 1))
(define (annFetchCondElse e)
(annExprFetchSubobject e 2))
;;; primitive operations
(define INTERNAL-IDENTITY (list '???lift))
(define (annMakeOp op args)
(annMakeExpr 'OP (vector op args #f #f #f #f)))
(define (annMakePureOp op args)
(annMakeExpr 'OP (vector op args #t #f #f #f)))
(define (annMakeFullOp op opaque property pp type args)
(annMakeExpr 'OP (vector op args opaque property pp type)))
(define (annMakeOp1 opaque property pp type)
(lambda (op args) (annMakeFullOp op opaque property pp type args)))
(define (annMakeOpCoerce opaque property pp type)
(lambda (op args)
(annMakeFullOp op opaque property pp type
(map ann-maybe-coerce args))))
(define (annIsOp? e)
(eq? 'OP (annExprFetchTag e)))
(define (annFetchOpName e)
(annExprFetchSubobject e 0))
(define (annFetchOpArgs e)
(annExprFetchSubobject e 1))
(define (annFetchOpDiscardability e)
(annExprFetchSubobject e 2))
(define (annFetchOpProperty e)
(annExprFetchSubobject e 3))
(define (annFetchOpPostprocessor e)
(annExprFetchSubobject e 4))
(define (annFetchOpType e)
(annExprFetchSubobject e 5))
;;; procedure call
(define (annMakeCall fname args)
(annMakeExpr 'CALL (vector fname args)))
(define (annIsCall? e)
(eq? 'CALL (annExprFetchTag e)))
(define (annFetchCallName e)
(annExprFetchSubobject e 0))
(define (annFetchCallArgs e)
(annExprFetchSubobject e 1))
;;; let, one variable
(define (annMakeLet v e1 e2)
(annMakeExpr 'LET (vector v e1 e2 #f 0)))
(define (annIsLet? e)
(eq? 'LET (annExprFetchTag e)))
(define (annFetchLetVar e)
(annExprFetchSubobject e 0))
(define (annFetchLetHeader e)
(annExprFetchSubobject e 1))
(define (annFetchLetBody e)
(annExprFetchSubobject e 2))
(define (annFetchLetUnfoldability e)
(annExprFetchSubobject e 3))
(define (annSetLetUnfoldability! e prop)
(annExprSetSubobject! e 3 prop))
(define (annFetchLetUseCount e)
(annExprFetchSubobject e 4))
(define (annSetLetUseCount! e count)
(annExprSetSubobject! e 4 count))
;;; begin, two expressions
(define (annMakeBegin e1 e2)
(annMakeExpr 'BEGIN (vector e1 e2 #f)))
(define (annIsBegin? e)
(eq? 'BEGIN (annExprFetchTag e)))
(define (annFetchBeginHeader e)
(annExprFetchSubobject e 0))
(define (annFetchBeginBody e)
(annExprFetchSubobject e 1))
(define (annFetchBeginUnfoldability e)
(annExprFetchSubobject e 2))
(define (annSetBeginUnfoldability! e prop)
(annExprSetSubobject! e 2 prop))
;;; vlambda
(define (annMakeVLambda label fixed-formals var-formal body)
(annMakeExpr 'VLAMBDA (vector fixed-formals var-formal body label #f)))
(define (annIsVLambda? e)
(eq? 'VLAMBDA (annExprFetchTag e)))
(define (annFetchVLambdaFixedVars e)
(annExprFetchSubobject e 0))
(define (annFetchVLambdaVar e)
(annExprFetchSubobject e 1))
(define (annFetchVLambdaBody e)
(annExprFetchSubobject e 2))
(define (annSetVLambdaBody! e body)
(annExprSetSubobject! e 2 body))
(define (annFetchVLambdaLabel e)
(annExprFetchSubobject e 3))
(define (annFetchVLambdaBTVars e)
(annExprFetchSubobject e 4))
(define (annSetVLambdaBTVars! e btv)
(annExprSetSubobject! e 4 btv))
;;; lambda
(define (annMakeLambda label formals body poly?)
(annMakeExpr 'LAMBDA (vector formals body label #f poly?)))
(define (annIsLambda? e)
(eq? 'LAMBDA (annExprFetchTag e)))
(define (annFetchLambdaVars e)
(annExprFetchSubobject e 0))
(define (annFetchLambdaBody e)
(annExprFetchSubobject e 1))
(define (annSetLambdaBody! e body)
(annExprSetSubobject! e 1 body))
(define (annFetchLambdaLabel e)
(annExprFetchSubobject e 2))
(define (annFetchLambdaBTVars e)
(annExprFetchSubobject e 3))
(define (annSetLambdaBTVars! e btv)
(annExprSetSubobject! e 3 btv))
(define (annFetchLambdaPoly e)
(annExprFetchSubobject e 4))
(define (annSetLambdaPoly! e poly?)
(annExprSetSubobject! e 4 poly?))
;;; application
(define (annMakeApp rator rands)
(annMakeExpr 'APPLY (vector rator rands)))
(define (annIsApp? e)
(eq? 'APPLY (annExprFetchTag e)))
(define (annFetchAppRator e)
(annExprFetchSubobject e 0))
(define (annFetchAppRands e)
(annExprFetchSubobject e 1))
;;; constructor
(define (annMakeCtor ctor label desc args)
(annMakeExpr 'CTOR (vector ctor desc args label)))
(define (annIsCtor? e)
(eq? 'CTOR (annExprFetchTag e)))
(define (annFetchCtorName e)
(annExprFetchSubobject e 0))
(define (annFetchCtorDesc e)
(annExprFetchSubobject e 1))
(define (annFetchCtorArgs e)
(annExprFetchSubobject e 2))
(define (annFetchCtorLabel e)
(annExprFetchSubobject e 3))
;;; selector
(define (annMakeSel ctor-sel the-ctor desc sel arg)
(annMakeExpr 'SEL (vector ctor-sel desc sel arg the-ctor)))
(define (annMakeSel1 the-ctor desc sel)
(lambda (ctor-sel args)
(annMakeSel ctor-sel the-ctor desc sel (car args))))
(define (annIsSel? e)
(eq? 'SEL (annExprFetchTag e)))
(define (annFetchSelName e)
(annExprFetchSubobject e 0))
(define (annFetchSelDesc e)
(annExprFetchSubobject e 1))
(define (annFetchSelComp e)
(annExprFetchSubobject e 2))
(define (annFetchSelArg e)
(annExprFetchSubobject e 3))
(define (annFetchSelCtor e)
(annExprFetchSubobject e 4))
;;; constructor test
(define (annMakeTest ctor-test desc arg)
(annMakeExpr 'TEST (vector ctor-test desc arg)))
(define (annMakeTest1 ctor desc)
(lambda (ctor-test args) (annMakeTest ctor-test desc (car args))))
(define (annIsTest? e)
(eq? 'TEST (annExprFetchTag e)))
(define (annFetchTestName e)
(annExprFetchSubobject e 0))
(define (annFetchTestDesc e)
(annExprFetchSubobject e 1))
(define (annFetchTestArg e)
(annExprFetchSubobject e 2))
;;; reference creation:
(define (annMakeRef label arg)
(annMakeExpr 'REF (vector label arg)))
(define (annIsRef? e)
(eq? 'REF (annExprFetchTag e)))
(define (annFetchRefLabel e)
(annExprFetchSubobject e 0))
(define (annFetchRefArg e)
(annExprFetchSubobject e 1))
;;; dereferencing:
(define (annMakeDeref arg)
(annMakeExpr 'DEREF arg))
(define (annIsDeref? e)
(eq? 'DEREF (annExprFetchTag e)))
(define (annFetchDerefArg e)
(annExprFetchSubobject e))
;;; assignment
(define (annMakeAssign label ref arg)
(annMakeExpr 'ASSIGN (vector label ref arg)))
(define (annIsAssign? e)
(eq? 'ASSIGN (annExprFetchTag e)))
(define (annFetchAssignLabel e)
(annExprFetchSubobject e 0))
(define (annFetchAssignRef e)
(annExprFetchSubobject e 1))
(define (annFetchAssignArg e)
(annExprFetchSubobject e 2))
;;; pointer equality
(define (annMakeCellEq args)
(annMakeExpr 'CELLEQ args))
(define (annIsCellEq? e)
(eq? 'CELLEQ (annExprFetchTag e)))
(define (annFetchCellEqArgs e)
(annExprFetchSubobject e))
;;; vector creation: make-vector
(define (annMakeVector label size arg)
(annMakeExpr 'MAKE-VECTOR (vector label size arg)))
(define (annIsVector? e)
(eq? 'MAKE-VECTOR (annExprFetchTag e)))
(define (annFetchVectorLabel e)
(annExprFetchSubobject e 0))
(define (annFetchVectorSize e)
(annExprFetchSubobject e 1))
(define (annFetchVectorArg e)
(annExprFetchSubobject e 2))
;;; dereferencing:
(define (annMakeVref arg index)
(annMakeExpr 'VREF (vector arg index)))
(define (annIsVref? e)
(eq? 'VREF (annExprFetchTag e)))
(define (annFetchVrefArg e)
(annExprFetchSubobject e 0))
(define (annFetchVrefIndex e)
(annExprFetchSubobject e 1))
;;; vector-length (like dereferencing):
(define (annMakeVlen vec)
(annMakeExpr 'VLEN vec))
(define (annIsVlen? e)
(eq? 'VLEN (annExprFetchTag e)))
(define (annFetchVlenVec e)
(annExprFetchSubobject e))
;;; assignment
(define (annMakeVset label vec index arg)
(annMakeExpr 'VSET (vector label vec index arg)))
(define (annIsVset? e)
(eq? 'VSET (annExprFetchTag e)))
(define (annFetchVsetLabel e)
(annExprFetchSubobject e 0))
(define (annFetchVsetVec e)
(annExprFetchSubobject e 1))
(define (annFetchVsetIndex e)
(annExprFetchSubobject e 2))
(define (annFetchVsetArg e)
(annExprFetchSubobject e 3))
;;; vector-fill! (like assignment):
(define (annMakeVfill label vec arg)
(annMakeExpr 'VFILL (vector label vec arg)))
(define (annIsVfill? e)
(eq? 'VFILL (annExprFetchTag e)))
(define (annFetchVfillLabel e)
(annExprFetchSubobject e 0))
(define (annFetchVfillVec e)
(annExprFetchSubobject e 1))
(define (annFetchVfillArg e)
(annExprFetchSubobject e 2))
;;; special form:
(define (annMakeEval eval args)
(annMakeExpr 'EVAL (vector (car args) 0 #f)))
(define (annIsEval? e)
(eq? 'EVAL (annExprFetchTag e)))
(define (annFetchEvalBody e)
(annExprFetchSubobject e 0))
(define (annFetchEvalDiff e)
(annExprFetchSubobject e 1))
(define (annSetEvalDiff! e ld)
(annExprSetSubobject! e 1 ld))
(define (annFetchEvalQuoted e)
(annExprFetchSubobject e 2))
(define (annSetEvalQuoted! e b)
(annExprSetSubobject! e 2 b))
;;; subject to discussion:
;;; lift
(define (annIntroduceLift e lv ld)
(let ((body (list->vector (vector->list e))))
(annExprSetTag! e 'LIFT)
(annExprSetLevel! e lv)
(annExprSetSubobject! e (vector ld body))))
(define (annMakeLift ld body)
(annMakeExpr 'LIFT (vector ld body)))
(define (annIsLift? e)
(eq? 'LIFT (annExprFetchTag e)))
(define (annSetLiftDiff! e ld)
(annExprSetSubobject! e 0 ld))
(define (annFetchLiftDiff e)
(annExprFetchSubobject e 0))
(define (annFetchLiftBody e)
(annExprFetchSubobject e 1))
;;; subject to discussion:
;;; memoization
(define (annIntroduceMemo e bt lv vars)
(annIntroduceMemo1 e bt lv vars (list->vector (vector->list e)) #f))
(define (annIntroduceMemo1 e bt lv vars body special)
(annExprSetTag! e 'MEMO)
(annExprSetLevel! e bt)
(annExprSetSubobject! e (vector lv vars body special)))
(define (annMakeMemo body)
(annMakeExpr 'MEMO (vector 0 '() body)))
(define (annIsMemo? e)
(eq? 'MEMO (annExprFetchTag e)))
(define (annSetMemoVars! e args)
(annExprSetSubobject! e 1 args))
(define (annFetchMemoVars e)
(annExprFetchSubobject e 1))
(define (annFetchMemoBody e)
(annExprFetchSubobject e 2))
(define (annFetchMemoLevel e)
(annExprFetchSubobject e 0))
(define (annFetchMemoSpecial e)
(annExprFetchSubobject e 3))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (ann-replace e1 e2)
(let loop ((i (- (vector-length e1) 1)))
(if (>= i 0)
(begin
(vector-set! e1 i (vector-ref e2 i))
(loop (- i 1))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (ann-maybe-coerce e)
(if *abssyn-maybe-coerce*
(annMakeOp INTERNAL-IDENTITY (list e))
e))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (annFreeVars e)
(let loop ((e e))
(cond
((annIsVar? e)
(if (annFetchVarCall e)
'()
(list e)))
((annIsConst? e)
'())
((annIsCond? e)
(var-union (loop (annFetchCondTest e))
(loop (annFetchCondThen e))
(loop (annFetchCondElse e))))
((annIsOp? e)
(apply var-union (map loop (annFetchOpArgs e))))
((annIsCall? e)
(apply var-union (map loop (annFetchCallArgs e))))
((annIsLet? e)
(var-union (loop (annFetchLetHeader e))
(var-difference (loop (annFetchLetBody e))
(list (annFetchLetVar e)))))
((annIsBegin? e)
(var-union (loop (annFetchBeginHeader e))
(loop (annFetchBeginBody e))))
((annIsVLambda? e)
(var-difference (loop (annFetchVLambdaBody e))
(cons (annFetchVLambdaVar e)
(annFetchVLambdaFixedVars e))))
((annIsLambda? e)
(var-difference (loop (annFetchLambdaBody e))
(annFetchLambdaVars e)))
((annIsApp? e)
(apply var-union (cons (loop (annFetchAppRator e))
(map loop (annFetchAppRands e)))))
((annIsCtor? e)
(apply var-union (map loop (annFetchCtorArgs e))))
((annIsSel? e)
(loop (annFetchSelArg e)))
((annIsTest? e)
(loop (annFetchTestArg e)))
((annIsRef? e)
(loop (annFetchRefArg e)))
((annIsDeref? e)
(loop (annFetchDerefArg e)))
((annIsAssign? e)
(var-union (loop (annFetchAssignRef e))
(loop (annFetchAssignArg e))))
((annIsCellEq? e)
(apply var-union (map loop (annFetchCellEqArgs e))))
((annIsVector? e)
(var-union (loop (annFetchVectorSize e))
(loop (annFetchVectorArg e))))
((annIsVref? e)
(var-union (loop (annFetchVrefArg e))
(loop (annFetchVrefIndex e))))
((annIsVlen? e)
(loop (annFetchVlenVec e)))
((annIsVset? e)
(var-union (loop (annFetchVsetArg e))
(loop (annFetchVsetIndex e))
(loop (annFetchVsetVec e))))
((annIsVfill? e)
(var-union (loop (annFetchVfillArg e))
(loop (annFetchVfillVec e))))
((annIsLift? e)
(loop (annFetchLiftBody e)))
((annIsEval? e)
(loop (annFetchEvalBody e)))
((annIsMemo? e)
(loop (annFetchMemoBody e)))
(else
(error 'annFreeVars "Unknown syntax construction")))))
(define (var-member v vs)
(let ((vname (annFetchVar v)))
(var-member-1 vname vs)))
(define (var-member-1 vname vs)
(let loop ((vs vs))
(if (null? vs)
#f
(or (eq? (annFetchVar (car vs)) vname)
(loop (cdr vs))))))
(define (var-union . args)
(if (null? args)
'()
(let ((s1 (car args))
(s2 (apply var-union (cdr args))))
(let loop ((s1 s1))
(if (null? s1)
s2
(if (var-member (car s1) s2)
(loop (cdr s1))
(cons (car s1) (loop (cdr s1)))))))))
(define (var-member-2 v vv)
(let ((vname (annFetchVar v)))
(let loop ((vv vv))
(if (null? vv)
#f
(or (eq? vname (car vv))
(loop (cdr vv)))))))
(define (var-difference vs1 vv2)
(let loop ((vs1 vs1))
(if (null? vs1)
'()
(if (var-member-2 (car vs1) vv2)
(loop (cdr vs1))
(cons (car vs1) (loop (cdr vs1)))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (annExprTerminates? e)
(let loop ((e e))
(cond
((annIsVar? e)
#t)
((annIsConst? e)
#t)
((annIsCond? e)
(and (loop (annFetchCondTest e))
(loop (annFetchCondThen e))
(loop (annFetchCondElse e))))
((annIsOp? e)
(and (annFetchOpDiscardability e)
(and-map loop (annFetchOpArgs e))))
((annIsCall? e)
#f)
((annIsLet? e)
(and (loop (annFetchLetHeader e))
(loop (annFetchLetBody e))))
((annIsBegin? e)
(and (loop (annFetchBeginHeader e))
(loop (annFetchBeginBody e))))
((annIsVLambda? e)
#t)
((annIsLambda? e)
#t)
((annIsApp? e)
#f)
((annIsCtor? e)
(and-map loop (annFetchCtorArgs e)))
((annIsSel? e)
(loop (annFetchSelArg e)))
((annIsTest? e)
(loop (annFetchTestArg e)))
((annIsLift? e)
#t)
((annIsRef? e)
#f)
((annIsDeref? e)
#f)
((annIsAssign? e)
#f)
((annIsCellEq? e)
(and-map loop (annFetchCellEqArgs e)))
((annIsVector? e)
#f)
((annIsVref? e)
#f)
((annIsVlen? e)
#f)
((annIsVset? e)
#f)
((annIsVfill? e)
#f)
((annIsEval? e)
(loop (annFetchEvalBody e)))
((annIsMemo? e)
(loop (annFetchMemoBody e)))
(else
(error 'annExprTerminates? "Unknown syntax construction")))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define (ann-dsp-e e)
(let loop ((e e))
(cond
((annIsVar? e)
(annFetchVar e))
((annIsConst? e)
`(',(annFetchConst e)))
((annIsCond? e)
`(IF ,(loop (annFetchCondTest e))
,(loop (annFetchCondThen e))
,(loop (annFetchCondElse e))))
((annIsOp? e)
`(,(annFetchOpName e)
,@(map loop (annFetchOpArgs e))))
((annIsCall? e)
`(,(annFetchCallName e)
,@(map loop (annFetchCallArgs e))))
((annIsLet? e)
`(LET ((,(annFetchLetVar e) ,(loop (annFetchLetHeader e))))
,(loop (annFetchLetBody e))))
((annIsBegin? e)
`(BEGIN ,(loop (annFetchBeginHeader e))
,(loop (annFetchBeginBody e))))
((annIsVLambda? e)
`(LAMBDA (,@(annFetchVLambdaFixedVars e)
. ,(annFetchVLambdaVar e))
,(loop (annFetchVLambdaBody e))))
((annIsLambda? e)
`(LAMBDA ,(annFetchLambdaVars e)
,(loop (annFetchLambdaBody e))))
((annIsApp? e)
`(,(loop (annFetchAppRator e))
,@(map loop (annFetchAppRands e))))
((annIsCtor? e)
`(,(annFetchCtorName e)
,@(map loop (annFetchCtorArgs e))))
((annIsSel? e)
`(,(annFetchSelName e)
,(loop (annFetchSelArg e))))
((annIsTest? e)
`(,(annFetchTestName e)
,(loop (annFetchTestArg e))))
((annIsEval? e)
`(EVAL ,(loop (annFetchEvalBody e))))
((annIsRef? e)
`(MAKE-CELL ,(annFetchRefLabel e) ,(loop (annFetchRefArg e))))
((annIsDeref? e)
`(CELL-REF ,(loop (annFetchDerefArg e))))
((annIsAssign? e)
`(CELL-SET! ,(loop (annFetchAssignRef e))
,(loop (annFetchAssignArg e))))
((annIsCellEq? e)
`(CELL-EQ? ,@(map loop (annFetchCellEqArgs e))))
((annIsVector? e)
`(MAKE-VECTOR ,(annFetchVectorSize e) ,(annFetchVectorArg e)))
((annIsVref? e)
`(VECTOR-REF ,(annFetchVrefArg e) ,(annFetchVrefIndex e)))
((annIsVlen? e)
`(VECTOR-LENGTH ,(annFetchVlenVec e)))
((annIsVset? e)
`(VECTOR-SET! ,(annFetchVsetVec e) ,(annFetchVsetIndex e) ,(annFetchVsetArg e)))
((annIsVfill? e)
`(VECTOR-FILL! ,(annFetchVfillVec e) ,(annFetchVfillArg e)))
(else
'unknown-expression))))
(define (ann-dsp-d* d*)
(for-each
(lambda (d)
(let ((name (annDefFetchProcName d))
(formals (annDefFetchProcFormals d))
(body (annDefFetchProcBody d)))
(display `(define (,name ,@formals)
,(ann-dsp-e body)))
(newline)))
d*))
| true |
195a7e3db7b2f8fa78b5c9646c1ad6d2674474ad | 2767601ac7d7cf999dfb407a5255c5d777b7b6d6 | /sandbox/examples/lullaby.ss | d3018b5f0f00968f4badd9c7625680bb11adc8f4 | []
| no_license | manbaum/moby-scheme | 7fa8143f3749dc048762db549f1bcec76b4a8744 | 67fdf9299e9cf573834269fdcb3627d204e402ab | refs/heads/master | 2021-01-18T09:17:10.335355 | 2011-11-08T01:07:46 | 2011-11-08T01:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 3,386 | ss | lullaby.ss | #lang s-exp "../moby-lang.ss"
;; A silencing music player. Plays a song
;; whose volume will decrease with time.
;; The world is the amount of time that's
;; passed since the start, and the volume.
(define-struct world (playlist time volume))
(define init-time 40)
(define fade-time 30)
(define init-volume 75)
(define UNINITIALIZED 'uninitialized)
;; The world is a number counting the number
;; of seconds until the music turns off
(define initial-world
(make-world UNINITIALIZED init-time init-volume))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; tick: world -> world
;; Decrease the volume after a threshold.
(define (tick a-world)
(cond
[(eq? (world-playlist a-world) UNINITIALIZED)
a-world]
[else
(local [(define t
(sub1 (world-time a-world)))]
(make-world
(world-playlist a-world)
t
(cond
[(< t 0) 0]
[(< t fade-time)
(quotient (* t init-volume)
fade-time)]
[else init-volume])))]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; shake: world -> world
;; On a shake, resets the world by returning
;; initial-world.
(define (shake a-world)
(make-world (world-playlist a-world)
init-time
init-volume))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; get-effects: world -> (listof effect)
;; We react with the external world by playing
;; a song, setting its volume, and making sure
;; the phone doesn't sleep during a playthrough.
(define (get-effects a-world)
(list (change-volume a-world)
(play-music a-world)
(sleep-check a-world)))
;; On a tick, we set the volume.
;; change-volume: world -> effect
(define (change-volume a-world)
(make-effect:set-sound-volume
(world-volume a-world)))
;; play-music: world -> effect
(define (play-music a-world)
(cond
[(eq? (world-playlist a-world) UNINITIALIZED)
empty]
[else
(cond
[(> (world-volume a-world) 0)
(make-effect:play-sound (world-playlist a-world))]
[(<= (world-volume a-world) 0)
(make-effect:pause-sound (world-playlist a-world))])]))
;; sleep-check: world -> effect
(define (sleep-check a-world)
(cond [(should-stay-awake? a-world)
(make-effect:set-wake-lock 6)]
[else
(make-effect:release-wake-lock)]))
;; should-stay-awake?: world -> boolean
(define (should-stay-awake? a-world)
(>= (sub1 (world-time a-world)) 0))
(define (update-playlist a-world a-playlist)
(make-world a-playlist
(world-time a-world)
(world-volume a-world)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; draw: world -> DOM-sexp
;;
;; Produces an HTML page for the user interface.
(define (draw a-world)
(list (js-div '(("id" "top")))
(list (js-button!
identity
(lambda (w)
(make-effect:pick-playlist update-playlist)))
(list (js-text "Pick playlist")))
(list (js-p '(("id" "aPara")))
(list (js-text
(string-append
"volume = "
(number->string
(world-volume a-world))))))))
;; draw-css: world -> CSS-sexp
;; Produces a stylesheet to decorate the user
;; interface.
(define (draw-css a-world)
'(("top" ("border-style" "solid"))
("aPara" ("font-size" "30px"))))
(js-big-bang initial-world
(on-tick! 1 tick get-effects)
(on-shake! shake get-effects)
(on-draw draw draw-css)) | false |
b5204547523c65b02787220a8991e164f8f2aed6 | defeada37d39bca09ef76f66f38683754c0a6aa0 | /mscorlib/system/text/decoder-fallback.sls | 38a4745e33c24dfee547479ff4a2646c71b03753 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 991 | sls | decoder-fallback.sls | (library (system text decoder-fallback)
(export is?
decoder-fallback?
create-fallback-buffer
exception-fallback
max-char-count
replacement-fallback)
(import (ironscheme-clr-port))
(define (is? a) (clr-is System.Text.DecoderFallback a))
(define (decoder-fallback? a) (clr-is System.Text.DecoderFallback a))
(define-method-port
create-fallback-buffer
System.Text.DecoderFallback
CreateFallbackBuffer
(System.Text.DecoderFallbackBuffer))
(define-field-port
exception-fallback
#f
#f
(static: property:)
System.Text.DecoderFallback
ExceptionFallback
System.Text.DecoderFallback)
(define-field-port
max-char-count
#f
#f
(property:)
System.Text.DecoderFallback
MaxCharCount
System.Int32)
(define-field-port
replacement-fallback
#f
#f
(static: property:)
System.Text.DecoderFallback
ReplacementFallback
System.Text.DecoderFallback))
| false |
414769862690b841f89c2ada2052daa51e526be4 | 6c6cf6e4b77640825c2457e54052a56d5de6f4d2 | /ch3/s3_3_3-assoc.scm | f8680096c0ecc777d96f3833e2d31260c51b44b7 | []
| no_license | leonacwa/sicp | a469c7bc96e0c47e4658dccd7c5309350090a746 | d880b482d8027b7111678eff8d1c848e156d5374 | refs/heads/master | 2018-12-28T07:20:30.118868 | 2015-02-07T16:40:10 | 2015-02-07T16:40:10 | 11,738,761 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 170 | scm | s3_3_3-assoc.scm | ;sector 3.3.3 table assoc
(define (assoc key records)
(cond ((null? records) false)
((equal? key (caar records)) (car records))
(else (assoc key (cdr records)))))
| false |
fe164756a0a99c3e9006d5a9a75964a8b7b8df10 | d8d4bcb61e4af58a86fd1a02503e608b03d8c89f | /tests/errata/validator.scm | ca360ecdc384201dc0ccc6c299f338965fd4ed83 | [
"BSD-2-Clause"
]
| permissive | tabe/errata | b81cbb66b86e3bc1aaae4814b32ef03bfc5ed52e | 23b30c26b59d6b049a198788fbce37049ad02e3f | refs/heads/master | 2020-05-03T01:45:39.955636 | 2010-08-19T02:32:49 | 2010-08-19T02:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 4,648 | scm | validator.scm | #!r6rs
(import (rnrs)
(only (core) format)
(ypsilon gcrypt)
(only (lunula validation) guide)
(errata validator)
(xunit))
(define-syntax assert-validator
(syntax-rules ()
((_ name)
#t)
((_ name ((valid0 valid1 ...)) e ...)
(begin
(guide (name 'valid0 'valid1 ...)
(lambda _ (fail! (format "~a: ~s seems invalid" 'name '(valid0 valid1 ...))))
values)
(assert-validator name e ...)))
((_ name ((invalid0 invalid1 ...) message0 message1 ...) e ...)
(begin
(guide (name 'invalid0 'invalid1 ...)
(lambda (ht)
(define (symbol<? s0 s1) (string<? (symbol->string s0) (symbol->string s1)))
(assert-equal? (vector-sort symbol<? '#(message0 message1 ...))
(vector-sort symbol<? (hashtable-keys ht))))
(lambda _ (fail! (format "~a: ~s seems valid" 'name '(invalid0 invalid1 ...)))))
(assert-validator name e ...)))))
(gcry_check_version "1.4.5") ; you might modify the version
(gcry_control GCRYCTL_DISABLE_SECMEM)
(gcry_control GCRYCTL_INITIALIZATION_FINISHED)
(assert-validator validate-year
(("2009"))
(("2000"))
(("1980"))
(("") invalid-year)
(("794") invalid-year)
(("3000") invalid-year)
(("12345") invalid-year)
)
(assert-validator validate-month
(("01"))
(("02"))
(("03"))
(("04"))
(("05"))
(("06"))
(("07"))
(("08"))
(("09"))
(("10"))
(("11"))
(("12"))
(("") invalid-month)
(("0") invalid-month)
(("00") invalid-month)
(("1") invalid-month)
(("2") invalid-month)
(("3") invalid-month)
(("4") invalid-month)
(("5") invalid-month)
(("6") invalid-month)
(("7") invalid-month)
(("8") invalid-month)
(("9") invalid-month)
(("13") invalid-month)
(("123") invalid-month)
)
(assert-validator validate-day
(("01"))
(("02"))
(("03"))
(("04"))
(("05"))
(("06"))
(("07"))
(("08"))
(("09"))
(("10"))
(("11"))
(("12"))
(("13"))
(("14"))
(("15"))
(("16"))
(("17"))
(("18"))
(("19"))
(("20"))
(("21"))
(("22"))
(("23"))
(("24"))
(("25"))
(("26"))
(("27"))
(("28"))
(("29"))
(("30"))
(("31"))
(("") invalid-day)
(("0") invalid-day)
(("1") invalid-day)
(("2") invalid-day)
(("3") invalid-day)
(("4") invalid-day)
(("5") invalid-day)
(("6") invalid-day)
(("7") invalid-day)
(("8") invalid-day)
(("9") invalid-day)
(("32") invalid-day)
(("300") invalid-day)
)
(assert-validator validate-/isbn10/revision-name/year/month/day
((("4894712741" "初版第15刷" "2006" "06" "15")))
((("489471274" "初版第15刷" "2006" "06" "15")) invalid-isbn10)
((("489471274" "" "2006" "06" "15")) invalid-isbn10 name-is-blank)
((("489471274" "初版第15刷" "200" "06" "1")) invalid-isbn10 invalid-year invalid-day)
)
(assert-validator validate-/uuid
((("1")))
((("f9a7b492-b33f-438d-8a5a-0208d885e2a5")))
((("")) uuid-is-blank)
((("f9a7b492-b33f-438d-8a5a-0208d885e2a%")) uuid-invalid-char)
((("f9a7b492-b33f-438d-8a5a-0208d885e2a5-")) uuid-too-long)
((("f9a7b492-b33f-438d-8a5a-0208d885e2a%-")) uuid-invalid-char uuid-too-long)
)
(report)
| true |
9ec61876a1da94c886e306d0237460fd813111e0 | 464f876b034b518d8cf8a0b77ea4851f05148916 | /Chapter1/ex1_37.scm | b89aa3acd67feceec6a8f3b6f4395e569ba43be0 | []
| no_license | billy1kaplan/sicp | 3302e6772af205fa8d1ac77c2d203cb329f5958b | 71d3f93921e32567ae2becec3c9659cfdf013287 | refs/heads/master | 2021-03-22T01:01:15.409369 | 2019-02-10T04:13:56 | 2019-02-10T04:13:56 | 98,474,397 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,673 | scm | ex1_37.scm | ( define tolerance 0.0001 )
( define (cont-frac n d k )
( define ( frac count )
( let (( num ( n count ))
( den ( d count )))
( if ( = count k )
0
( / num ( + den ( frac ( + count 1 )))))))
( frac 0 ))
;( define ( cont-frac-iter n d k )
; ( define ( iter num den num1 den1 num2 den2 count )
; ( let (( newn ( n count ))
; ( newd ( d count )))
; if ( = count k )
; ( / num den )
; ( iter ( + ( * num newn ) num2 ) ( + ( * den newd ) den2 ) num den num1 den1 ( + count 1 ))))
; ( iter 1 1 0 ( n 2 ) 0 0 0 ))
( define ( cont-frac-iter n d k )
( define ( iter result count )
( if ( = 0 count )
result
( iter ( / ( n count ) ( + result ( d count ))) ( - count 1 ))))
( iter 0.0 k ))
( define ( frac k )
( cont-frac (lambda ( i ) 1.0)
(lambda ( i ) 1.0)
k ))
( define ( countsteps f target )
( define ( close-enough? v1 v2 )
( < ( abs ( - v1 v2 ) ) tolerance ))
( define ( try val count )
( let (( next ( f count )))
( if ( close-enough? target val)
count
( try next ( + count 1 )))))
( try 0 0))
;( countsteps frac ( / 1 1.61803398875 ))
( cont-frac-iter (lambda ( i ) 1.0)
(lambda ( i ) 1.0)
1000 )
| false |
745f075e241d400d7ba954cbacfabe724ee5f3e3 | e2ddea183de2acd9b77249692a8ce5dcb8708024 | /Lab5/test-utilities.scm | 0081e00eeb1a2363f2d8ed4f441ee6459a215cea | []
| no_license | dasyias/cs1581 | ce2f04d3883f157fbd76e08cea9a6b12d92d3fee | e99749f75c75c2ce8426a8d8a494ec407a7759a8 | refs/heads/master | 2020-08-03T23:05:24.500506 | 2019-09-30T17:21:12 | 2019-09-30T17:21:12 | 211,914,429 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,170 | scm | test-utilities.scm | ;; This module provides utilities to aid in the testing of
;; lab exercise procedures
(module test-utilities racket
(require racket/pretty)
(pretty-print-columns 50)
(provide display-results
assert)
;; To help display test results in a readable way
(define display-results
(lambda (exercise)
(newline)
(display
"**************************************************************")
(newline)
(display "Results for Exercise ")
(display exercise)
(newline)
(newline)))
;; This defines an assert macro which allows a test to use, e.g.
;; (assert (= x y))
;; rather than
;; (assert "(= x y)") or (assert '(= x y))
(define-syntax-rule (assert condition)
(do-assert 'condition))
(define do-assert
(lambda (condition)
(let ((out (open-output-string)))
(pretty-display condition out)
(let ((condition-string (get-output-string out)))
(if (not (eval condition))
(error (format "Assertion failed:\n~a\n" condition-string))
(display (format "Assertion OK:\n~a\n" condition-string)))))))) | true |
49293b2b6576d46bc77938be6b5fb1104842cdb6 | bf53777c39bedba5ea6cfb943de653b601b0d105 | /src/timer.sld | 6a21a3b65696036a1e44aaa75430a2353bd3afc0 | []
| no_license | ktakashi/r7rs-timer | a541b36ff1847f1524e8c4a00c7f476620f731a3 | 912961db892a9a31af5c1239d5af5dc60cd7efea | refs/heads/master | 2021-01-01T20:11:53.947080 | 2015-04-23T07:57:23 | 2015-04-23T07:57:23 | 29,242,508 | 4 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 13,660 | sld | timer.sld | ;;; -*- mode:scheme; coding:utf-8 -*-
;;;
;;; timer.sld - R7RS+SRFI portable timer API
;;;
;;; Copyright (c) 2015 Takashi Kato <[email protected]>
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;; 1. Redistributions of source code must retain the above copyright
;;; notice, this list of conditions and the following disclaimer.
;;;
;;; 2. Redistributions in binary form must reproduce the above copyright
;;; notice, this list of conditions and the following disclaimer in the
;;; documentation and/or other materials provided with the distribution.
;;;
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
;;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
;;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
;;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
;;; OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
;;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
;;; TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
;;; PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
;;; LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
;;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
;;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;;;
;; this library requires SRFi-18, 19, 69 and 114
(define-library (timer)
(import (scheme base)
(scheme case-lambda)
(srfi 18)
(srfi 19)
(srfi 69)
(srfi 114))
;; APIs
(export make-timer timer?
timer-cancel!
timer-schedule! timer-reschedule!
timer-task-remove! timer-task-exists?
make-timer-delta timer-delta?
)
(begin
;; priority queue
;; hope it'll soon enough be a SRFI.
;; for now very naive implementation
(define-record-type <priority-queue>
(make-raw-priority-queue comparator storage size)
priority-queue?
(comparator priority-queue-comparator)
(storage priority-queue-storage)
;; queue and storage size.
(size priority-queue-size priority-queue-size-set!))
(define (make-priority-queue comparator)
;; storage can be destructively modified
;; pre allocate vector storage
(make-raw-priority-queue comparator (list (vector 10 #f)) 0))
;; we define only what we need and very naive way
;; helper, R7RS even doesn't have any sorting procedure...
;; i'm lazy to implement fancy algorithm so use quicksort
(define (vector-sort! comp vec end)
(define (quicksort comp vec lo hi)
(define (partition comp vec lo hi)
(define (swap! vec a b)
(let ((t (vector-ref vec b)))
(vector-set! vec b (vector-ref vec a))
(vector-set! vec a t)))
;; lazy enough to choose pivot. so do with following assumption
;; - input vector is already sorted but the last element
;; - thus middle is the median value
(let* ((pi (quotient (+ hi lo) 2))
(pv (vector-ref vec pi))
(end (- hi 1)))
(swap! vec pi end)
(let loop ((i lo) (si lo))
(if (= i hi)
(begin (swap! vec si end) si)
(loop (+ i 1)
(cond ((comp (vector-ref vec i) pv)
(swap! vec i si)
(+ si 1))
(else si)))))))
(if (< lo hi)
(let ((pivot (partition comp vec lo hi)))
(quicksort comp vec lo pivot) ;; hi is exclusive
(quicksort comp vec (+ pivot 1) hi))
vec))
(quicksort comp vec 0 end))
;; this still only takes O(log N)
(define (priority-queue-push! pq obj)
(let ((storage (priority-queue-storage pq))
(size (priority-queue-size pq)))
(if (= (vector-length (car storage)) size)
;; re-allocate it
(let ((new-vec (make-vector (+ size 10))))
(vector-copy! new-vec 0 (car storage) 0 size)
(set-car! storage new-vec)
;; retry
(priority-queue-push! pq obj))
(let ((vec (car storage))
(new-size (+ size 1))
(comparator (priority-queue-comparator pq)))
(vector-set! vec size obj)
(priority-queue-size-set! pq new-size)
;; we do this with reverse order so that
;; we just need to reduce the size when we need to pop
(vector-sort! (lambda (a b)
(> (comparator-compare comparator a b) 0))
vec new-size)))))
;; O(1)
(define (priority-queue-pop! pq)
(let ((storage (priority-queue-storage pq))
(size (priority-queue-size pq)))
(let ((v (vector-ref (car storage) (- size 1))))
(priority-queue-size-set! pq (- size 1))
v)))
;; O(1)
(define (priority-queue-min pq)
(let ((storage (priority-queue-storage pq))
(size (priority-queue-size pq)))
(vector-ref (car storage) (- size 1))))
;; O(N)
(define (priority-queue-remove! pq obj)
(define (set-mark! vec size comparator)
(let loop ((i 0))
(cond ((= i size) (error "queue doesn't contain the given value" obj))
((comparator-equal? comparator (vector-ref vec i) obj)
(vector-set! vec i #f)
i)
(else (loop (+ i 1))))))
(let ((storage (priority-queue-storage pq))
(size (priority-queue-size pq))
(comparator (priority-queue-comparator pq)))
(let ((index (set-mark! (car storage) size comparator)))
(vector-copy! (car storage) index (car storage) (+ index 1) size)
(priority-queue-size-set! pq (- size 1)))))
(define (priority-queue-empty? pq) (zero? (priority-queue-size pq)))
(define-record-type <timer-delta>
(make-raw-timer-delta time)
timer-delta?
(time timer-delta-time))
(define (make-timer-delta n unit)
(define (microseconds->sec&nano n)
(values (quotient n 1000000)
(* (modulo n 1000000) 1000)))
(define (nanoseconds->sec&nano n)
(values (quotient n 1000000000) (modulo n 1000000000)))
(let-values (((sec nsec)
(case unit
((h) (values (* 3600 n) 0))
((m) (values (* n 60) 0))
((s) (values n 0))
((ms) (milliseconds->sec&nano n))
((us) (microseconds->sec&nano n))
((ns) (nanoseconds->sec&nano n))
(else
(error "make-timer-delta: unsupported unit" unit)))))
(make-raw-timer-delta (make-time time-duration nsec sec))))
;; timer task
(define-record-type <timer-task>
(make-raw-timer-task id thunk next period running?)
timer-task?
(id timer-task-id)
(thunk timer-task-thunk)
(next timer-task-next timer-task-next-set!) ;; time object
(period timer-task-period timer-task-period-set!)
(running? timer-task-running? timer-task-running-set!))
(define (make-timer-task id thunk next period)
(make-raw-timer-task id thunk next period #f))
(define task-comparator
(let ()
(define (task=? a b)
(time=? (timer-task-next a) (timer-task-next b)))
(define (task<? a b)
(time=? (timer-task-next a) (timer-task-next b)))
(make-comparator timer-task? task=?
(make-comparison=/< task=? task<?)
#f)))
;; timer
(define-record-type <timer>
(make-raw-timer queue done? lock waiter worker next-id active)
timer?
(queue timer-queue)
(done? timer-done? timer-done-set!)
(lock timer-lock)
(waiter timer-waiter)
(worker timer-worker timer-worker-set!)
(next-id timer-next-id timer-next-id-set!)
;; task table
(active timer-active))
(define (%make-timer)
(make-raw-timer (make-priority-queue task-comparator)
#f
(make-mutex)
(make-condition-variable)
#f 1 (make-hash-table eqv?)))
;; utility macro to wait condition variable
(define-syntax wait-cv
(syntax-rules ()
((_ mutex cv)
(wait-cv mutex cv #f))
((_ mutex cv timeout)
(let ((m mutex)
(c cv)
(to timeout))
(when (mutex-unlock! m c to)
(mutex-lock! mutex))))))
(define (milliseconds->sec&nano msec)
(let ((sec (quotient msec 1000))
(nsec (* (modulo msec 1000) 1000000)))
(values sec nsec)))
(define default-error-handler raise)
(define make-timer
(case-lambda
(() (make-timer default-error-handler))
((error-handler)
(define (timer-start! t)
(define (main-loop t)
(unless (timer-done? t)
(let ((queue (timer-queue t)))
(if (priority-queue-empty? queue)
(wait-cv (timer-lock t) (timer-waiter t))
(let* ((first (priority-queue-min queue))
(now (current-time))
(next (timer-task-next first)))
(if (time>=? now next)
(let ((first (priority-queue-pop! queue)))
(timer-task-running-set! first #t)
(mutex-unlock! (timer-lock t))
(guard (e (else (error-handler e)))
((timer-task-thunk first)))
(mutex-lock! (timer-lock t))
(if (timer-task-running? first)
(let ((p (timer-task-period first)))
(timer-task-running-set! first #f)
(if (and (time? p)
(or (positive? (time-nanosecond p))
(positive? (time-second p))))
(let ((next (add-duration next p)))
(timer-task-next-set! first next)
(priority-queue-push! queue first))
(hash-table-delete!
(timer-active t)
(timer-task-id first))))
(hash-table-delete! (timer-active t)
(timer-task-id first))))
(wait-cv (timer-lock t) (timer-waiter t)
(timer-task-next first))))))
(main-loop t)))
(lambda ()
(dynamic-wind
(lambda () (mutex-lock! (timer-lock t)))
(lambda () (main-loop t))
(lambda () (mutex-unlock! (timer-lock t))))))
(let ((t (%make-timer)))
(timer-worker-set! t (thread-start! (make-thread (timer-start! t))))
t))))
(define (timer-cancel! t)
(mutex-lock! (timer-lock t))
(timer-done-set! t #t)
(condition-variable-broadcast! (timer-waiter t))
(mutex-unlock! (timer-lock t))
(thread-join! (timer-worker t)))
(define (check-positive who v msg)
(when (negative? v) (error msg who v)))
(define (millisecond->time-duration msec)
(let-values (((sec nsec) (milliseconds->sec&nano msec)))
(make-time time-duration nsec sec)))
(define (current-time+millisecond msec)
(let ((t (current-time)))
(if (zero? msec)
t
(add-duration t (millisecond->time-duration msec)))))
(define (check-period who period)
(or (and (number? period) (check-positive who period "negative period"))
(and (timer-delta? period)
(eq? (time-type (timer-delta-time period)) time-duration))
(error who "positive number or timer-delta is required" period)))
(define timer-schedule!
(case-lambda
((timer thunk first) (timer-schedule! timer thunk first 0))
((timer thunk first period)
(define (allocate-timer-id timer)
(let ((c (timer-next-id timer)))
(timer-next-id-set! timer (+ c 1))
c))
(define (check v msg) (check-positive 'timer-schedule! v msg))
(unless (timer-delta? first) (check first "negative delay"))
(check-period 'timer-schedule! period)
(mutex-lock! (timer-lock timer))
(let* ((id (allocate-timer-id timer))
(first (if (timer-delta? first)
(add-duration (current-time) (timer-delta-time first))
(current-time+millisecond first)))
(p (cond ((timer-delta? period) (timer-delta-time period))
((zero? period) period)
(else (millisecond->time-duration period))))
(task (make-timer-task id thunk first p)))
(hash-table-set! (timer-active timer) id task)
(priority-queue-push! (timer-queue timer) task)
(condition-variable-broadcast! (timer-waiter timer))
(mutex-unlock! (timer-lock timer))
id))))
(define timer-reschedule!
(case-lambda
((timer id first) (timer-schedule! timer id first 0))
((timer id first period)
(define (check v msg) (check-positive 'timer-reschedule! v msg))
(unless (timer-delta? first) (check first "negative delay"))
(check-period 'timer-reschedule! period)
(let ((lock (timer-lock timer)))
(mutex-lock! lock)
(let ((task (hash-table-ref/default (timer-active timer) id #f)))
;; task has next
(when task
(let ((old (timer-task-next task))
(next (if (timer-delta? first)
(add-duration (current-time first)
(timer-delta-time first))
(current-time+millisecond first)))
(p (cond ((timer-delta? period) (timer-delta-time period))
((zero? period) period)
(else (millisecond->time-duration period))))
(queue (timer-queue timer)))
;; should be able to delete here...
(priority-queue-remove! queue task)
;; update period
(timer-task-period-set! task p)
(timer-task-next-set! task next)
;; now reschedule it
(priority-queue-push! queue task)
;; let them know
(condition-variable-broadcast! (timer-waiter timer))))
(mutex-unlock! lock)))
id)))
(define (timer-task-remove! timer id)
(let ((lock (timer-lock timer)))
(mutex-lock! lock)
(let ((task (hash-table-ref/default (timer-active timer) id #f)))
(cond ((not task) (mutex-unlock! lock) #f)
(else
(if (timer-task-running? task)
(timer-task-running-set! task #f)
(priority-queue-remove! (timer-queue timer) task))
(hash-table-delete! (timer-active timer) id)
(condition-variable-broadcast! (timer-waiter timer))
(mutex-unlock! lock)
#t)))))
(define (timer-task-exists? timer id)
(let ((lock (timer-lock timer)))
(mutex-lock! lock)
(let ((r (hash-table-exists? (timer-active timer) id)))
(mutex-unlock! lock)
r)))
)
)
| true |
edd4bc2eb6455523613624155a1cd986eb9a5dd3 | ac6ca831a64544efd82dd1e6c8fc44c35a9538a2 | /test/module2.scm | d7a4a974988d5a2ee40f5a9fe11af2652227b6e8 | [
"MIT"
]
| permissive | ypyf/fscm | 4bce4622cccccbfce8a5a1b4f482880ed14fa7c7 | 8be570e1c85a7ad6e1b888a2e3069ddcf4319569 | refs/heads/master | 2023-09-04T04:47:07.247132 | 2023-08-29T13:38:22 | 2023-08-29T13:59:56 | 5,802,289 | 5 | 1 | null | 2015-05-17T01:10:29 | 2012-09-13T23:10:28 | Scheme | UTF-8 | Scheme | false | false | 82 | scm | module2.scm | (define mvar 11)
(define (f n)
(define (g m)
(+ m m))
(g n)) | false |
7895d8d1f73051a2a32e916038e525509515e21d | 404799b4b2d5f83ee5304392826a69defc25da77 | /ex2-9.scm | f64eb28927c454df141f876c8c04ab01c70cb970 | []
| no_license | WuzhangFang/SICP-exercise | 38ae650c63e74bb7c6639bf984285e06743db925 | d9977009ec3e32a74edb13b4f13f6ebbbc44ab32 | refs/heads/master | 2020-04-16T16:01:18.058287 | 2019-10-01T21:52:40 | 2019-10-01T21:52:40 | 165,722,260 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 291 | scm | ex2-9.scm | ;;; Exercise 2.9
;two intervels are (x1,x2) (y1,y2)
;widths are (x2-x1)/2 and (y2-y1)/2
;add-interval is (x1+y1, x2+y2)
;width of add-interval is ((x2+y2)-(x1+y1))/2 = (x2-x1)/2 + (y2-y1)/2
;sub-interval is (x1-y2,x2-y1)
;width of sub-intervel is ((x2-y1)-(x1-y2))/2 = (x2-x1)/2 + (y2-y1)/2
| false |
7b2dc7c1c3920244a434526de43b3cad8c5dcf47 | 7aeb920de21547a1d9c714b029bbf3a9e7df449e | /scheme/chip-remote/item/access.scm | b62b840ebef44b9a4a47903e21823f1238b0bb7d | [
"BSD-2-Clause"
]
| permissive | ft/chip-remote | f8ac5a2d7597d24f44ac287836be3422a32283d4 | 2a64df611214f7e3eb55d4ead76e270351158cdb | refs/heads/master | 2023-04-30T08:38:16.483240 | 2023-01-05T04:01:44 | 2023-01-05T04:01:44 | 117,028,633 | 2 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 884 | scm | access.scm | ;; Copyright (c) 2019-2021 chip-remote workers, All rights reserved.
;;
;; Terms for redistribution and use can be found in LICENCE.
(define-module (chip-remote item access)
#:use-module (srfi srfi-9 gnu)
#:use-module (chip-remote item)
#:use-module (chip-remote utilities)
#:export (make-access
none ro wo rw
readable?
writeable?
read+write?))
(define-immutable-record-type <access-ctrl>
(make-access kind)
access-ctrl?
(kind ac-kind))
(define (none) (make-access '()))
(define (ro) (make-access '(read)))
(define (wo) (make-access '(write)))
(define (rw) (make-access '(read write)))
(define (iac-kind x) (ac-kind (item-access x)))
(define (readable? x) (!! (member 'read (iac-kind x))))
(define (writeable? x) (!! (member 'write (iac-kind x))))
(define (read+write? x) (and (readable? x) (writeable? x)))
| false |
e20601c7c292b0d3931b3fe284fd11b34113a61a | 309e1d67d6ad76d213811bf1c99b5f82fa2f4ee2 | /A15-test-code.ss | c5760ae71ce0f83df950c2d8a52fb159cd5e31f0 | []
| no_license | lix4/CSSE304-Programming-Language-Concept-Code | d8c14c18a1baa61ab5d3df0b1ac650bdebc59526 | dd94262865d880a357e85f6def697661e11c8e7a | refs/heads/master | 2020-08-06T02:50:53.307301 | 2016-11-12T03:03:56 | 2016-11-12T03:03:56 | 73,528,000 | 1 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 19,249 | ss | A15-test-code.ss | ;; Test code for CSSE 304 Assignment 15
(define (test-member?-cps)
(let ([correct '(
#t
(#f)
3
)]
[answers
(list
(member?-cps 1 (quote (3 2 4 1 5)) (lambda (x) x))
(member?-cps 7 (quote (3 2 4 1 5)) list)
(member?-cps 2 (quote (1 3 2 4)) (lambda (x) (if x 3 4)))
)])
(display-results correct answers equal?)))
(define (test-set?-cps)
(let ([correct '(
#f
(#t #t)
4
)]
[answers
(list
(set?-cps (quote (a b c b d))
(lambda (v) v))
(set?-cps (quote (a b c))
(lambda (v)
(set?-cps (quote ())
(lambda (w) (list v w)))))
(set?-cps (quote (a b c a))
(lambda (x) (if x 3 4)))
)])
(display-results correct answers equal?)))
(define (test-1st-cps)
(let ([correct '(
2
)]
[answers
(list
(1st-cps '((1 2) (3 4)) cadr)
)])
(display-results correct answers equal?)))
(define (test-set-of-cps)
(let ([correct '(
4
14
(#t)
#f
)]
[answers
(list
(set-of-cps '(a c b b c d a b) length)
(set-of-cps '(a c b b c e a b d e)
(lambda (v)
(apply max (map (lambda (x)
(string->number x 16))
(map symbol->string v)))))
(set-of-cps '(a c b b c d a b)
(lambda (v)
(set?-cps v list)))
(set-of-cps '(a c b b c d a b)
(lambda (v)
(member?-cps 'b v not)))
)])
(display-results correct answers equal?)))
(define (test-map-cps)
(let ([correct '(
(4 3 2)
((#t #t #f #f #f))
((3 4 5 6) 3 4 5 6)
)]
[answers
(list
(map-cps (lambda (x k)
(apply-continuation k (add1 x)))
'(1 2 3)
reverse)
(map-cps set?-cps
'((a b c) () (a b c b) (a b c c) (a b c a))
list)
(let ([add1-cps (make-cps add1)])
(map-cps add1-cps '(1 2 3 4)
(lambda (v)
(map-cps add1-cps
v
(lambda (v) (cons v v))))))
)])
(display-results correct answers equal?)))
(define (test-domain-cps)
(let ([correct '(
(4 4 1)
#t
"The result is a set"
(#f #f #t #f #t #t #t)
)]
[answers
(list
(domain-cps '((1 3) (2 4) (1 5) (2 2) (3 6) (2 1) (4 4))
(lambda (v) (list (length v) (apply max v) (apply min v))))
(domain-cps '((1 3) (5 4) (1 5) (2 2) (3 6) (2 1)(4 4))
(lambda (v) (member?-cps 6 v not)))
(domain-cps '((1 3) (5 4) (1 5) (2 2) (3 6) (2 1)(4 4))
(lambda (v)
(set?-cps v
(lambda (vv)
(format "The result is ~aa set"
(if vv "" "not "))))))
(domain-cps '((1 3) (5 4) (1 5) (2 2) (3 6) (2 14 4))
(lambda (v)
(map-cps (lambda (x k)
(member?-cps x v k))
'(1 2 3 4 5 6 7)
reverse)))
)])
(display-results correct answers equal?)))
; not used for this assignment in 201510
(define (test-intersection-cps)
(let ([correct '(
(b c e)
((b c e))
3
)]
[answers
(list
(intersection-cps (quote (a b c d e)) (quote (f e t b c)) (lambda (x) x))
(intersection-cps (quote (a b c d e)) (quote (f e t b c)) list)
(intersection-cps (quote (a b c)) (quote (d e f)) (lambda (x) (if (null? x) 3 4)))
)])
(display-results correct answers equal?)))
(define (test-make-cps)
(let ([correct '(
(1)
#t
#f
)]
[answers
(list
(let ((car-cps (make-cps car)))
(car-cps (quote (1 2 3)) list))
(let ((number?-cps (make-cps number?))
(car-cps (make-cps car)))
(car-cps (quote (1 2 3))
(lambda (x)
(number?-cps x
(lambda (x) x)))))
((make-cps list?) (quote (1 2 3)) (lambda (x) (not x)))
)])
(display-results correct answers equal?)))
; not used for 201510
(define (test-matrix?-cps)
(let ([correct '(
#t
#t
#t
#t
#f
#t
#f
#t
#t
#t
#t
(#f #t)
)]
[answers
(list
(matrix?-cps (quote (())) not)
(matrix?-cps (quote ()) not)
(matrix?-cps (quote ((a b) (1 2 3))) not)
(matrix?-cps (quote ((a b 3 4) (1 2 3))) not)
(matrix?-cps (quote ((a b) (1 2) (1 2))) not)
(matrix?-cps (quote ((a b) (1 2) (1 2))) (lambda (x) x))
(matrix?-cps (quote ((a b) (1 2 v) (1 2))) (lambda (x) x))
(matrix?-cps (quote ((a b) (1 2))) (lambda (x) x))
(matrix?-cps (quote ((a))) (lambda (x) x))
(matrix?-cps (quote ((a b 5) (1 2 3) (1 3 v))) (lambda (x) x))
(matrix?-cps (quote ((a b 3 3) (1 2 q q) (6 5 4 3) (1 0 1 0))) (lambda (x) x))
(matrix?-cps (quote ((a b 3 3) (1 2 q q) (6 5 4) (1 0 1 0)))
(lambda (x) (matrix?-cps (quote ((3)))
(lambda (y)
(list x y)))))
)])
(display-results correct answers equal?)))
(define (test-andmap-cps)
(let ([correct '(
(#t)
(#f)
(#t)
#t
(#f 4)
)]
[answers
(list
(andmap-cps (make-cps number?) (quote (2 3 4 5)) list)
(andmap-cps (make-cps number?) (quote (2 3 a 5)) list)
(andmap-cps (lambda (L k) (member?-cps (quote a) L k)) (quote ((b a) (c b a))) list)
(andmap-cps (lambda (L k) (member?-cps (quote a) L k)) (quote ((b a) (c b))) not)
(let ([t 0])
(andmap-cps (lambda (x k)
(set! t (+ 1 t)) (k x))
(quote (#t #t #t #f #t))
(lambda (v) (list v t))))
)])
(display-results correct answers equal?)))
(define (test-cps-snlist-recur)
(let ([correct '(
300
-4
2
(2)
#t
((1))
(2 1)
(3 ((2 1)))
(a (c b) () ((f e) d))
((a (b c) () (d (e f))))
(0)
0
-2
2
)]
[answers
(list
(sn-list-depth-cps '((1 2 3 4 0) (2 () (3) 4 5)) (lambda (x) (* 100 x)))
(sn-list-depth-cps '((1 2 3 4 0) (2 3 (4 () (6)) 5)) -)
(sn-list-depth-cps '(1 2 3 4) add1)
(sn-list-depth-cps '(()) list)
(sn-list-reverse-cps '() null?)
(sn-list-reverse-cps '(1) list)
(sn-list-reverse-cps '(1 2) (lambda (x) x))
(sn-list-reverse-cps '((((1 2)) 3)) car)
(sn-list-reverse-cps '(a (b c) () (d (e f))) reverse)
(sn-list-reverse-cps '(a (b c) () (d (e f)))
(lambda (v) (sn-list-reverse-cps v list)))
(sn-list-occur-cps '*sore-thumb* '() list)
(sn-list-occur-cps '*sore-thumb* '(x () *sore-thumb* x) sub1)
(sn-list-occur-cps '*sore-thumb*
'(x (*sore-thumb*) x ((y *sore-thumb* ())))
-)
(sn-list-occur-cps '*sore-head*
'((*sore-head*)
(*sore-thumb* x (x x))
x
(x (*sore-head*)) x)
+)
)])
(display-results correct answers equal?)))
; It's easy to get the correct answer. If properly memoized, that will happen much faster than if not.
; The test code on the server attempts to check for this. A time-out probably meand "not properly memoized)
(define (test-memoized-fib)
(let ([correct '(
(317811 317811 317811 317811 317811 317811 317811 317811 317811 317811 317811
317811 317811 317811 317811 317811 317811 317811 317811 317811 196418
196418 196418 196418 196418 196418 196418 196418 196418 196418 196418
196418 196418 196418 196418 196418 196418 196418 196418)
)]
[answers
(list
(letrec ([fib (lambda (n)
(if (< n 2)
1
(+ (fib (- n 1))
(fib (- n 2)))))])
(let ([fib-memo (memoize fib car equal?)])
(map fib-memo (append (make-list 20 27) (make-list 19 26)))))
)])
(display-results correct answers equal?)))
(define (test-memoized-comb)
(let ([correct '(
(((1)) ((1) (1 1)) ((1) (1 1) (1 2 1))
((1) (1 1) (1 2 1) (1 3 3 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1)
(1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14
1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1)
(1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14 1)
(1 15 105 455 1365 3003 5005 6435 6435 5005 3003 1365 455
105 15 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1)
(1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14 1)
(1 15 105 455 1365 3003 5005 6435 6435 5005 3003 1365 455
105 15 1)
(1 16 120 560 1820 4368 8008 11440 12870 11440 8008 4368
1820 560 120 16 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1)
(1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14 1)
(1 15 105 455 1365 3003 5005 6435 6435 5005 3003 1365 455
105 15 1)
(1 16 120 560 1820 4368 8008 11440 12870 11440 8008 4368
1820 560 120 16 1)
(1 17 136 680 2380 6188 12376 19448 24310 24310 19448 12376
6188 2380 680 136 17 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1)
(1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14 1)
(1 15 105 455 1365 3003 5005 6435 6435 5005 3003 1365 455
105 15 1)
(1 16 120 560 1820 4368 8008 11440 12870 11440 8008 4368
1820 560 120 16 1)
(1 17 136 680 2380 6188 12376 19448 24310 24310 19448 12376
6188 2380 680 136 17 1)
(1 18 153 816 3060 8568 18564 31824 43758 48620 43758 31824
18564 8568 3060 816 153 18 1))
((1) (1 1) (1 2 1) (1 3 3 1) (1 4 6 4 1) (1 5 10 10 5 1)
(1 6 15 20 15 6 1) (1 7 21 35 35 21 7 1)
(1 8 28 56 70 56 28 8 1) (1 9 36 84 126 126 84 36 9 1)
(1 10 45 120 210 252 210 120 45 10 1)
(1 11 55 165 330 462 462 330 165 55 11 1)
(1 12 66 220 495 792 924 792 495 220 66 12 1)
(1 13 78 286 715 1287 1716 1716 1287 715 286 78 13 1)
(1 14 91 364 1001 2002 3003 3432 3003 2002 1001 364 91 14 1)
(1 15 105 455 1365 3003 5005 6435 6435 5005 3003 1365 455
105 15 1)
(1 16 120 560 1820 4368 8008 11440 12870 11440 8008 4368
1820 560 120 16 1)
(1 17 136 680 2380 6188 12376 19448 24310 24310 19448 12376
6188 2380 680 136 17 1)
(1 18 153 816 3060 8568 18564 31824 43758 48620 43758 31824
18564 8568 3060 816 153 18 1)
(1 19 171 969 3876 11628 27132 50388 75582 92378 92378 75582
50388 27132 11628 3876 969 171 19 1))) )]
[answers
(list
(letrec (
[comb
(lambda (n k)
(if (or (= k n) (zero? k))
1
(+ (comb (- n 1) k) (comb (- n 1) (- k 1)))))]
[map
(lambda (proc ls)
(if (null? ls)
'()
(let ([new-car (proc (car ls))])
(cons new-car (map proc (cdr ls))))))])
(let*
([comb-memo
(memoize comb
(lambda (x) (+ (* 100 (car x))
(min (cadr x) (- (car x) (cadr x)))))
(lambda (x y)
(and (= (car x) (car y))
(or (= (cadr x) (cadr y))
(= (cadr x) (- (car y) (cadr y)))))))]
[pascal-triangle
(lambda (max)
(let row-loop ([n max] [row-accumulator '()])
(if (< n 0)
row-accumulator
(row-loop (- n 1)
(cons
(let col-loop ([k n] [col-accumulator '()])
(if (< k 0)
col-accumulator
(col-loop (- k 1)
(cons (comb-memo n k)
col-accumulator))))
row-accumulator)))))])
(map pascal-triangle (iota 20))))
)])
(display-results correct answers equal?)))
(define (test-subst-leftmost)
(let ([correct '(
()
(k b)
(a k a b)
(a ((k b)) a b)
((c d a (e () f k (c b)) (a b)) (b))
(c (b e) a d)
)]
[answers
(list
(subst-leftmost 'k 'b '() eq?)
(subst-leftmost 'k 'b '(b b) eq?)
(subst-leftmost 'k 'b '(a b a b) eq?)
(subst-leftmost 'k 'b '(a ((b b)) a b) eq?)
(subst-leftmost 'k 'b '((c d a (e () f b (c b)) (a b)) (b)) eq?)
(subst-leftmost 'b 'a '(c (A e) a d)
(lambda (x y)
(string-ci=?
(symbol->string x)
(symbol->string y))))
)])
(display-results correct answers equal?)))
;-----------------------------------------------
(define display-results
(lambda (correct results test-procedure?)
(display ": ")
(pretty-print
(if (andmap test-procedure? correct results)
'All-correct
`(correct: ,correct yours: ,results)))))
(define sequal?-grading
(lambda (l1 l2)
(cond
((null? l1) (null? l2))
((null? l2) (null? l1))
((or (not (set?-grading l1))
(not (set?-grading l2)))
#f)
((member (car l1) l2) (sequal?-grading
(cdr l1)
(rember-grading
(car l1)
l2)))
(else #f))))
(define set?-grading
(lambda (s)
(cond [(null? s) #t]
[(not (list? s)) #f]
[(member (car s) (cdr s)) #f]
[else (set?-grading (cdr s))])))
(define rember-grading
(lambda (a ls)
(cond
((null? ls) ls)
((equal? a (car ls)) (cdr ls))
(else (cons (car ls) (rember-grading a (cdr ls)))))))
(define set-equals? sequal?-grading)
(define find-edges ; e know that this node is in the graph before we do the call
(lambda (graph node)
(let loop ([graph graph])
(if (eq? (caar graph) node)
(cadar graph)
(loop (cdr graph))))))
;; Problem 8 graph?
(define set? ;; Is this list a set? If not, it is not a graph.
(lambda (list)
(if (null? list) ;; it's an empty set.
#t
(if (member (car list) (cdr list))
#f
(set? (cdr list))))))
(define graph?
(lambda (obj)
(and (list? obj)
(let ([syms (map car obj)])
(and (set? syms)
(andmap symbol? syms)
(andmap (lambda (x)
(andmap (lambda (y) (member y (remove (car x) syms)))
(cadr x)))
obj))))))
(define graph-equal?
(lambda (a b)
(and
(graph? a)
(graph? b)
(let ([a-nodes (map car a)]
[b-nodes (map car b)])
(and
(set-equals? a-nodes b-nodes)
; Now See if the edges from each node are equivalent in the two graphs.
(let loop ([a-nodes a-nodes])
(if (null? a-nodes)
#t
(let ([a-edges (find-edges a (car a-nodes))]
[b-edges (find-edges b (car a-nodes))])
(and (set-equals? a-edges b-edges)
(loop (cdr a-nodes)))))))))))
(define (test-graph-equal)
(list
(graph-equal? '((a (b)) (b (a))) '((b (a)) (a (b))))
(graph-equal? '((a (b c d)) (b (a c d)) (c (a b d)) (d (a b c)))
'((b (a c d)) (c (a b d)) (a (b d c)) (d (b a c))))
(graph-equal? '((a ())) '((a ())))
(graph-equal? '((a (b c)) (b (a c)) (c (a b))) '((a (b c)) (b (a c)) (c (a b))))
(graph-equal? '() '())
))
(define g test-graph-equal)
;You can run the tests individually, or run them all
;#by loading this file (and your solution) and typing (r)
(define (run-all)
(display 'member?-cps)
(test-member?-cps )
(display 'set?-cps)
(test-set?-cps)
; (display 'intersection-cps) ; removed in 201510, but tests
; (test-intersection-cps) ; are here in case you want extra practice
; domain-cps and its helpers:
(display '1st-cps)
(test-1st-cps)
(display 'set-of-cps)
(test-set-of-cps)
(display 'map-cps)
(test-map-cps)
(display 'domain-cps)
(test-domain-cps)
(display 'make-cps)
(test-make-cps)
(display 'andmap-cps)
(test-andmap-cps)
; display 'matrix?-cps) ; also removed in 201510
; (test-matrix?-cps)
(display 'cps-snlist-recur)
(test-cps-snlist-recur)
(display 'memoized-fib)
(test-memoized-fib)
(display 'memoized-comb)
(test-memoized-comb)
(display 'subst-leftmost)
(test-subst-leftmost)
)
(define r run-all)
| false |
c500f6507b413caf6f549e10ec928d09eb67819d | 378e5f5664461f1cc3031c54d243576300925b40 | /rsauex/packages/x3270.scm | 32b3a7baabb5f3b3bb7af26992886d3bdf15ae02 | []
| no_license | rsauex/dotfiles | 7a787f003a768699048ffd068f7d2b53ff673e39 | 77e405cda4277e282725108528874b6d9ebee968 | refs/heads/master | 2023-08-07T17:07:40.074456 | 2023-07-30T12:59:48 | 2023-07-30T12:59:48 | 97,400,340 | 2 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 1,733 | scm | x3270.scm | (define-module (rsauex packages x3270)
#:use-module ((gnu packages m4) #:prefix m4:)
#:use-module ((gnu packages ncurses) #:prefix ncurses:)
#:use-module ((gnu packages tcl) #:prefix tcl:)
#:use-module ((gnu packages xml) #:prefix xml:)
#:use-module ((gnu packages xorg) #:prefix xorg:)
#:use-module ((guix build-system gnu) #:prefix gnu-build-system:)
#:use-module ((guix download) #:prefix download:)
#:use-module ((guix licenses) #:prefix licenses:)
#:use-module ((guix packages)))
(define-public x3270
(define v-major "4")
(define v-minor "2")
(define v-suffix "ga9")
(package
(name "x3270")
(version (string-append v-major "." v-minor v-suffix))
(source (origin
(method download:url-fetch)
(uri (string-append
"http://x3270.bgp.nu/download/0" v-major ".0" v-minor
"/suite3270-" version "-src.tgz"))
(sha256
(base32
"01i81lh8xbpz2nbj4hv2yfdh6mpv46jq6nb7b2c3w2pmhcvhq32z"))))
(build-system gnu-build-system:gnu-build-system)
(arguments
`(#:configure-flags (list
(string-append "--with-fontdir=" %output "/share/fonts/X11"))
#:tests? #f))
(native-inputs
(list m4:m4))
(inputs
(list xml:expat
xorg:libx11
xorg:libxt
xorg:libxaw
xorg:libxmu
xorg:bdftopcf
xorg:mkfontdir
tcl:tcl
ncurses:ncurses))
(home-page "http://x3270.bgp.nu/index.html")
(synopsis "3270 Terminal Emulator")
(description
"IBM 3270 terminal emulator for the X Window System")
(license licenses:bsd-3)))
| false |
b8ebda95fc9a11b8718ec2cebc73316b7e82753a | 03e4064a7a55b5d00937e74cddb587ab09cf7af9 | /nscheme/old/old-5/lib/extended-test.scm | 67ad6979f837db7cd33c31b0015189ab75352ac1 | [
"BSD-2-Clause"
]
| permissive | gregr/ina | 29f28396cd47aa443319147ecde5235d11e1c3d1 | 16188050caa510899ae22ff303a67897985b1c3b | refs/heads/master | 2023-08-25T13:31:44.131598 | 2023-08-14T16:46:48 | 2023-08-14T16:46:48 | 40,606,975 | 17 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 2,255 | scm | extended-test.scm | ((require language:base module:base-primitive module:base language:extended
premodule module:premodule module-apply namespace-link* test))
(define ns (namespace-link* '() (list module:base-primitive module:base)))
(define name=>lang (list (cons 'base language:base)
(cons 'extended language:extended)))
(define (ev form)
(define pm (premodule '() #f '() #f '(base extended) (list form)))
(module-apply (module:premodule name=>lang pm) ns))
(test 'cond-3
(ev '(cond (#f 3)
(8)
(4 5)))
8)
(test 'cond-4
(ev '(cond (#f 3)
((car '(#f 4)) 5)
(else 6)))
6)
(test 'cond-5
(ev '(cond (#f 3)
((car '(#f 4)) 5)
('the => (lambda (v) (cons v 'answer)))
(else 6)))
'(the . answer))
(test 'qq-1
(ev '`one)
'one)
(test 'qq-2
(ev '`((a 1) (b 2)))
'((a 1) (b 2)))
(test 'qq-3
(ev '`((a 1) ,(cons 'b `(3))))
'((a 1) (b 3)))
(test 'qq-4
(ev '`(1 `,(cons 2 3) ,(cons 4 5) `(,(cons 6 ,(cons 7 8))) 100))
(list 1 '`,(cons 2 3) (cons 4 5)
(list 'quasiquote (list (list 'unquote (list 'cons 6 (cons 7 8)))))
100))
(test 'qq-5
(ev '`(1 ,@(cons 2 (cons 3 '())) 4))
'(1 2 3 4))
(test 'qq-6
(ev '`#(1 ,(cons 2 (cons 3 '())) 4))
'#(1 (2 3) 4))
(test 'qq-7
(ev '`#(1 ,@(cons 2 (cons 3 '())) 4))
'#(1 2 3 4))
(test 'case-1
(ev '(case 3 (else 'ok)))
'ok)
(test 'case-2
(ev '(case 3
((4) 'four)
(((3 4)) 'multiple)
((3) 'three)
((foo bar) 'foobar)
(else 'fail)))
'three)
(test 'case-3
(ev '(case 'foo
((4) 'four)
(((3 4)) 'multiple)
((3) 'three)
((foo bar) 'foobar)
(else 'fail)))
'foobar)
(test 'case-4
(ev '(case 'bar
((4) 'four)
(((3 4)) 'multiple)
((3) 'three)
((foo bar) 'foobar)
(else 'fail)))
'foobar)
(test 'case-5
(ev '(case 'baz
((4) 'four)
(((3 4)) 'multiple)
((3) 'three)
((foo bar) 'foobar)
(else 'fail)))
'fail)
(test 'case-6
(ev '(case '(3 4)
((4) 'four)
(((3 4)) 'multiple)
((3) 'three)
((foo bar) 'foobar)
(else 'fail)))
'multiple)
| false |
691653fe9a0931693c6f9a0c32c55802fb842a02 | defeada37d39bca09ef76f66f38683754c0a6aa0 | /System.Xml/system/xml/xpath/attribute-iterator.sls | aaffe1fdc75f7d618c5a398316d800f7f5e5d9a9 | []
| no_license | futsuki/ironscheme-port | 2dbac82c0bda4f4ff509208f7f00a5211d1f7cd5 | 4e7a81b0fbeac9a47440464988e53fb118286c54 | refs/heads/master | 2016-09-06T17:13:11.462593 | 2015-09-26T18:20:40 | 2015-09-26T18:20:40 | 42,757,369 | 0 | 0 | null | null | null | null | UTF-8 | Scheme | false | false | 681 | sls | attribute-iterator.sls | (library (system xml xpath attribute-iterator)
(export new is? attribute-iterator? move-next-core? clone)
(import (ironscheme-clr-port))
(define-syntax new
(lambda (e)
(syntax-case e ()
((_ a ...)
#'(clr-new System.Xml.XPath.AttributeIterator a ...)))))
(define (is? a) (clr-is System.Xml.XPath.AttributeIterator a))
(define (attribute-iterator? a)
(clr-is System.Xml.XPath.AttributeIterator a))
(define-method-port
move-next-core?
System.Xml.XPath.AttributeIterator
MoveNextCore
(System.Boolean))
(define-method-port
clone
System.Xml.XPath.AttributeIterator
Clone
(System.Xml.XPath.XPathNodeIterator)))
| true |
4fc4bc9d91285719985677049d0be27b9d1350d5 | 73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10 | /tinyos-2.x-contrib/sensorscheme/support/sdk/pltscheme/specialize.scm | f540bad70c4892a049e741bb7fbdb520505c8fc7 | []
| no_license | x3ro/tinyos-legacy | 101d19f9e639f5a9d59d3edd4ed04b1f53221e63 | cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a | refs/heads/master | 2021-01-16T19:20:21.744228 | 2015-06-30T20:23:05 | 2015-06-30T20:23:05 | 38,358,728 | 0 | 1 | null | null | null | null | UTF-8 | Scheme | false | false | 13,374 | scm | specialize.scm | #lang scheme
(require (file "modules.scm") srfi/1 srfi/26)
(provide specialize-module)
(define *verbose* #t)
(define *parteval-ns* (make-base-namespace))
; auxillary funcitons for variables in environments
(define (constant-var? exp) (eq? (second exp) 'const))
(define (constant-value c) (third c))
(define (specialize-module-exprs exprs defs mdl)
(define (lookup var env)
(or (assoc var env) (find-global var)))
; find a global variable in the module's definitions. if success and this is
; the first reference of the variable, move its definition to the used list
(define (find-global name)
;(printi "find-global ~s //~s~n" name (map car defs))
(let ([def-val (assoc name defs)])
(if def-val def-val
(let ([val (hash-ref (ssmodule-defines mdl) name #f)])
(if val (begin (when *verbose* (printi "defined ~s: ~s~n" name val))
(cond [(eq? (first val) 'const)
(set! defs (cons (cons name `(define ,(second val))) defs))
(let ([c-val (specialize-expr '() (second val))])
(set! defs (map (lambda (d) (if (eq? (car d) name) `(,name const ,c-val) d)) defs))
(printi "const defined ~s ~s~n" name (third (assoc name defs))))]
[else (set! defs (cons (cons name val) defs))])
(assoc name defs))
(error (ssmodule-name mdl) "not found global ~s~n" name))))))
(define (find-primitive name)
(let ([val (hash-ref (ssmodule-defines mdl) name #f)])
(if val (if (eq? (first val) 'primitive) (second val) #f) #f)))
(define (constant-expr? exp)
(match exp
[(list '%proc% _ _ _ ...) #t]
[(list 'quote val) #t]
[(or (? number? _) (? string? _) (? null? _) (? boolean? _)) #t]
[(list _ ...) #f]
[(? symbol? _) #f]
[c (printi "constant? ~s~n" c) #f]))
(define (specialize-app env fn exprs)
(define (specialize-global-app name args params)
(printi "specialize-global-app ~s ~s~n" args params)
(let loop ([name (symbol->string name)] [args args] [params params] [call-args null] [call-params null] [call-env null])
(if (null? params) ; done parsing parameters?
(values (string->symbol name) (reverse call-args) (reverse call-params) call-env)
(if (constant-expr? (car args))
(loop (string-append name "<" (symbol->string (car params)) ":"
(let ([out (open-output-string)])
(write (car args) out)
(get-output-string out)) ">")
(cdr args) (cdr params) call-args call-params (cons (list (car params) 'const (car args)) call-env))
(loop name (cdr args) (cdr params) (cons (car args) call-args) (cons (car params) call-params)
(cons (list (car params) 'var) call-env))))))
(define (specialize-lambda-app args params)
(printi "specialize-lambda-app ~s ~s~n" args params)
(let loop ([args args] [params params] [call-args null] [call-params null] [call-env null])
(if (null? params) ; done parsing parameters?
(values (reverse call-args) (reverse call-params) call-env)
(if (constant-expr? (car args))
(loop (cdr args) (cdr params) call-args call-params (cons (list (car params) 'const (car args)) call-env))
(loop (cdr args) (cdr params) (cons (car args) call-args) (cons (car params) call-params)
(cons (list (car params) 'var) call-env))))))
(define (make-global-app sp-fn sp-exprs)
(printi " make-global-app ~s :: ~s with ~s~n" `(,fn ,@sp-exprs) (cddr sp-fn) env)
(when (not (eq? (first sp-fn) '%proc%))
(raise-user-error 'specialize-program "trying to specialize non-function ~s" fn))
(let-values ([(sp-name call-args call-params call-env) (specialize-global-app fn sp-exprs (third sp-fn))])
(when (not (assoc sp-name defs)) ; not yet created this funtion, do specialize now!
(printi "creating specialized function ~s ~s ~s ~n" sp-name call-args call-params)
(set! defs (cons `(,sp-name define #f) defs))
(let*-values ([(new-env) (append call-env (second sp-fn))]
[(new-body) (map (cut specialize-expr new-env <>) (cdddr sp-fn))])
(set! defs (map (lambda (d) (if (eq? (car d) sp-name) `(,sp-name const (%proc% ,env ,call-params ,@new-body)) d)) defs))))
(let ([new-fun (third (assoc sp-name defs))])
(printi "fun ~s = ~s~n" sp-name new-fun)
(if new-fun
(let ([new-body (cdddr new-fun)])
(printi "body: ~s~n" new-body)
(cond ; specialize the result. if application can be made more simple, do so here!!
[(every (cut constant-expr? <>) new-body) (last new-body)]
[(and (null? call-params) (null? (cdr new-body))) (car new-body)]
[else `(,sp-name ,@call-args)]))
`(,sp-name ,@call-args)))))
(define (make-lambda-app fn exprs)
;(printi "make-lambda-app ~s : ~s with ~s~n" fn exprs env)
(when (not (eq? (first fn) '%proc%))
(raise-user-error 'specialize-program "trying to specialize non-lambda form ~s" fn))
(let*-values ([(call-args call-params call-env) (specialize-lambda-app exprs (third fn))]
[(new-env) (append call-env (second fn))]
[(new-body) (map (cut specialize-expr new-env <>) (cdddr fn))])
(cond ; specialize the result. if application can be made more simple, do so here!!
[(every (cut constant-expr? <>) new-body) (last new-body)]
[(and (null? call-params) (null? (cdr new-body))) (car new-body)]
[else
(printi "specialized lambda call ~s~n" `((%proc% ,(second fn) ,call-params ,@new-body) ,@call-args))
`((%proc% ,(second fn) ,call-params ,@new-body) ,@call-args)])))
(define (make-const-val val)
(if (or (symbol? val) (pair? val) (null? val)) `(quote ,val) val))
(let ([sp-fn (specialize-expr env fn)]
[sp-exprs (map (cut specialize-expr env <>) exprs)])
(if (constant-expr? sp-fn)
(if (symbol? fn)
(if (assoc fn env) ; local variable
(begin (printi "calling constant local variable ~s on ~s~n" fn sp-exprs)
(make-lambda-app sp-fn sp-exprs))
;else global var
(make-global-app sp-fn sp-exprs))
(make-lambda-app sp-fn sp-exprs))
;else, fn not a constant, so just leave it in
(let ([prim (find-primitive fn)])
(printi "prim ~s : ~s~n" fn prim)
(if (and prim (pair? (cddr prim)) (every constant-expr? sp-exprs))
(begin (printi "evaluate prim!!! ~s" `(,(third prim) ,@sp-exprs))
(printi " : ~s~n" (eval `(,(third prim) ,@sp-exprs) *parteval-ns*))
(make-const-val (eval `(,(third prim) ,@sp-exprs) *parteval-ns*)))
`(,fn ,@sp-exprs))))))
(define (specialize-if env pred conseq alt)
(let ([sp-pred (specialize-expr env pred)])
(if (constant-expr? sp-pred)
(if sp-pred ; the actual constant
(specialize-expr env conseq)
(specialize-expr env alt))
(let ([left (specialize-expr env conseq)]
[right (specialize-expr env alt)])
(cond [(equal? left right) left]
[else `(if ,sp-pred ,left ,right)])))))
(define (specialize-expr env expr)
(printi-up "specialize-expr ~s with ~s~n" expr env)
(let ([res (match expr
[(or (list 'quote _) (? number? _) (? null? _) (? boolean? _) (? string? _)) expr]
[(list '%include% syms ...) (printi "syms: ~s~n" syms) (map find-global syms) expr]
[(list 'if pred conseq alt) (specialize-if env pred conseq alt)]
[(list 'if pred conseq) (specialize-if env pred conseq #f)]
[(list 'set! (? symbol? var) val) (lookup var env) `(set! ,var ,(specialize-expr env val))]
[(list '%lambda% params body ...)
`(%proc% ,env ,params ,@(map (cut specialize-expr (append (reverse (map (lambda (p) (list p 'var)) params)) env) <>) body))]
[(list '%proc% _ params body ...) `(%proc% ,env ,params ,@body)]
[(list fn exprs ...) (specialize-app env fn exprs)]
[(? symbol? sym) (cond [(lookup sym env) => (lambda (v) (if (constant-var? v) (constant-value v) sym))]
[else (raise-user-error 'specialize-program "reference of unknown variable ~s" sym)])]
[expr (raise-user-error 'specialize-expr "illegal expression: ~s" expr)])])
(printi-dn "specialize-expr result ~s : ~s~n" expr res)
res))
(printi "specialize-module-exprs ~s~n" exprs)
(values (map (cut specialize-expr null <>) exprs)
(reverse defs)))
; transforms, collects and rename after specialization in a single passob
; collect only those definitions that are referred
; transform proc into lanbda, and remove include statements
; renames all local variables to the numeric local-variable names,
(define (transform-rename defs inits)
(define (varlist l n)
(cond ((null? l) null)
((symbol? l) (cons (cons l (string->symbol (string-append "%l" (number->string n)))) null))
(else (cons (cons (car l) (string->symbol (string-append "%l" (number->string n))))
(varlist (cdr l) (+ n 1))))))
(define (replace-vars v al)
(cond ((null? v) null)
((symbol? v) (cdr (assoc v al)))
(else (cons (cdr (assoc (car v) al)) (replace-vars (cdr v) al)))))
(define (transform-inner expr locals)
(match expr
[(list '%include% syms ...) '()]
[(list 'if pred conseq alt) `(if ,(transform-inner pred locals) ,(transform-inner conseq locals) ,(transform-inner alt locals))]
[(list 'if pred conseq) `(if ,(transform-inner pred locals) ,(transform-inner conseq locals))]
[(list 'quote val) expr]
[(list 'set! (? symbol? var) val) `(set! var ,(transform-inner val locals))]
[(list '%lambda% params body ...) (raise-user-error transform-rename "no lambda's should occur here: ~s" expr)]
[(list '%proc% _ params body ...)
(let* ([ll (varlist params (length locals))]
[nvars (replace-vars params ll)]
[nlocs (append ll locals)])
`(%lambda% ,nvars ,@(map (lambda (x) (transform-inner x nlocs)) body)))]
[(list exprs ...) (map (lambda (x) (transform-inner x locals)) exprs)]
[(? symbol? sym) (let ((r (assoc sym locals)))
(if r (cdr r) sym))]
[(or (? number? _) (? null? _) (? boolean? _) (? string? _)) expr]
[expr (raise-user-error transform-rename "illegal expression: ~s" expr)]
))
(values (map (match-lambda [(list name kind val) (list name kind (transform-inner val null))]
[expr (raise-user-error transform-rename "unknown format of definition: ~s" expr)]) defs)
(map (cut transform-inner <> null) inits)))
; main funciotn of the module: specialize code wrt constants and prepare to make message.
(define (specialize-module mod-name node-id)
(define (specialize-all todo-mdls done-mdls)
(printi "specialize-module ~s ~s~n" (map ssmodule-name todo-mdls) (map ssmodule-name done-mdls))
(if (or (null? todo-mdls) (member (car todo-mdls) done-mdls)) (values '() '() '())
(let-values ([(mdls1 defs1 inits1)
(specialize-all (ssmodule-requires (car todo-mdls)) done-mdls)])
(let*-values ([(new-inits new-defs) (specialize-module-exprs (ssmodule-init (car todo-mdls)) defs1 (car todo-mdls))])
(printi "~nmodule ~s defs: ~s~n inits: ~s~n"
(ssmodule-name (car todo-mdls)) new-defs new-inits)
(let-values ([(mdls2 defs2 inits2) (specialize-all (cdr todo-mdls) (cons (car todo-mdls) done-mdls))])
(values (append (list (car todo-mdls)) mdls1 mdls2)
(append new-defs defs2) (append new-inits inits1 inits2)))))))
(let ([s-mod (process-module mod-name)])
(when (number? node-id) (hash-set! (ssmodule-defines s-mod) 'id `(const ,node-id)))
(let*-values ([(mdls defs inits) (specialize-all (list s-mod) null)]
[(sel-defs sel-inits) (transform-rename defs inits)])
(values mdls sel-defs sel-inits))))
(define s-e-cnt 0)
(define (s-e-cnt-same)
(make-string s-e-cnt #\space))
(define (s-e-cnt-up)
(begin0 (make-string s-e-cnt #\space) (set! s-e-cnt (+ 1 s-e-cnt))))
(define (s-e-cnt-dn)
(begin (set! s-e-cnt (- s-e-cnt 1)) (make-string s-e-cnt #\space)))
(define (printi fmt . args)
(printf "~a~a" (s-e-cnt-same) (apply format fmt args)))
(define (printi-up fmt . args)
(printf "~a~a" (s-e-cnt-up) (apply format fmt args)))
(define (printi-dn fmt . args)
(printf "~a~a" (s-e-cnt-dn) (apply format fmt args)))
| false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.