├── VERSION ├── doc ├── .gitignore ├── _static │ ├── .placeholder │ ├── logo.png │ └── favicon.ico ├── scripts │ └── .gitignore ├── index.html ├── hilti │ ├── examples │ │ ├── builder-hello-world-compile.cc │ │ ├── builder-hello-world.hlt │ │ └── builder-hello-world-output.log │ ├── overview.rst │ ├── c-api-overview.rst │ ├── c-api-types.rst │ ├── libhilti.rst │ ├── old │ │ └── dev-api.rst │ ├── machine-model │ │ ├── types.rst │ │ ├── types │ │ │ ├── map.rst │ │ │ ├── set.rst │ │ │ ├── file.rst │ │ │ ├── hook.rst │ │ │ ├── list.rst │ │ │ ├── port.rst │ │ │ ├── time.rst │ │ │ ├── enum_.rst │ │ │ ├── timer.rst │ │ │ ├── tuple.rst │ │ │ ├── bitset.rst │ │ │ ├── double_.rst │ │ │ ├── string.rst │ │ │ ├── struct_.rst │ │ │ ├── thread.rst │ │ │ ├── address.rst │ │ │ ├── boolean.rst │ │ │ ├── channel.rst │ │ │ ├── integer.rst │ │ │ ├── interval.rst │ │ │ ├── network.rst │ │ │ ├── overlay.rst │ │ │ ├── exception.rst │ │ │ ├── ioSource.rst │ │ │ ├── caddr.rst │ │ │ ├── classifier.rst │ │ │ ├── timer_mgr.rst │ │ │ └── regexp.rst │ │ ├── debug.rst │ │ ├── operator_.rst │ │ └── flow.rst │ ├── builder.rst │ └── development.rst └── spicy │ ├── internals.rst │ └── c-api.rst ├── libhilti ├── file. ├── justrx │ ├── .gitignore │ ├── src │ │ └── Makefile │ ├── test │ │ └── Makefile │ ├── README │ └── doc │ │ └── CMakeLists.txt ├── 3rdparty │ ├── khash │ │ └── khash_types.h │ └── libtask │ │ └── testdelay1.c ├── cmake-config.h.in └── hilti-linux.ld ├── spicy ├── parser │ └── CMakeLists.txt ├── codegen │ ├── coercion-builder.cc │ ├── coercion-builder.h │ └── codegen. ├── operators │ └── tmp │ │ └── test-address.cc.tmp ├── scope.cc └── replace-hilti ├── .dockerignore ├── libspicy └── 3rdparty │ ├── libb64-1.2 │ ├── TODO │ └── src │ │ └── depend │ ├── libb64 │ ├── sha2 │ ├── READM.hilti │ └── Makefile │ └── rc4 │ ├── rc4 │ └── README.hilti ├── .update-changes.cfg ├── bro ├── benchmarks │ ├── .gitignore │ ├── acl2hlt │ │ └── .gitignore │ └── scripts │ │ └── hello-world.bro ├── tests │ ├── Baseline │ │ ├── logs.dns-compiler │ │ │ ├── output │ │ │ └── dns.log.diff │ │ ├── logs.dns-spicy │ │ │ ├── output │ │ │ └── dns.log.diff │ │ ├── logs.http-spicy │ │ │ ├── output │ │ │ └── http.log.diff │ │ ├── compiler.protocols.dns │ │ │ └── output │ │ ├── logs.http-compiler │ │ │ ├── output │ │ │ └── http.log.diff │ │ ├── compiler.global-id │ │ │ └── output │ │ ├── compiler.protocols.dns-opt │ │ │ └── output │ │ ├── compiler.protocols.http-opt │ │ │ └── output │ │ ├── compiler.protocols.http │ │ │ └── output │ │ ├── logs.dns-spicy-compiler-opt │ │ │ └── output │ │ ├── logs.dns-spicy-compiler │ │ │ └── output │ │ ├── logs.http-spicy-compiler │ │ │ ├── output │ │ │ └── http.log.diff │ │ ├── logs.http-spicy-compiler-opt │ │ │ ├── output │ │ │ └── http.log.diff │ │ ├── compiler.event-var │ │ │ └── output │ │ ├── compiler.expression.mod │ │ │ └── output │ │ ├── compiler.locals │ │ │ └── output │ │ ├── compiler.queue │ │ │ └── output │ │ ├── compiler.anon-function │ │ │ └── output │ │ ├── compiler.types.table-default │ │ │ └── output │ │ ├── compiler.expression.assign-name │ │ │ └── output │ │ ├── compiler.expression.cond │ │ │ └── output │ │ ├── compiler.expression.field │ │ │ └── output │ │ ├── compiler.expression.neg │ │ │ └── output │ │ ├── compiler.statement.if │ │ │ └── output │ │ ├── spicy.export-enum │ │ │ └── output │ │ ├── compiler.bifs-varargs │ │ │ └── output │ │ ├── compiler.expression.div │ │ │ └── output │ │ ├── compiler.expression.record-ctor │ │ │ └── output │ │ ├── compiler.expression.size │ │ │ └── output │ │ ├── compiler.globals │ │ │ └── output │ │ ├── compiler.custom-hilti-code.basic │ │ │ └── output │ │ ├── compiler.expression.set-ctor │ │ │ └── output │ │ ├── compiler.expression.times │ │ │ └── output │ │ ├── compiler.functions │ │ │ └── output │ │ ├── compiler.indirect-call-conn-record │ │ │ └── output │ │ ├── compiler.statement.add │ │ │ └── output │ │ ├── compiler.statement.del-table │ │ │ └── output │ │ ├── compiler.expression.not │ │ │ └── output │ │ ├── compiler.expression.add │ │ │ └── output │ │ ├── compiler.expression.has-field │ │ │ └── output │ │ ├── compiler.expression.remove-from │ │ │ └── output │ │ ├── compiler.hello-world │ │ │ └── output │ │ ├── compiler.hook │ │ │ └── output │ │ ├── compiler.more-locals │ │ │ └── output │ │ ├── compiler.statement.next │ │ │ └── output │ │ ├── spicy.tuple-arg │ │ │ └── output │ │ ├── compiler.expression.add-to │ │ │ └── output │ │ ├── compiler.bifs │ │ │ └── output │ │ ├── compiler.expression.assign-table │ │ │ └── output │ │ ├── compiler.statement.event │ │ │ └── output │ │ ├── compiler.expression.assign-vector │ │ │ └── output │ │ ├── compiler.types.table-default-function │ │ │ └── output │ │ ├── compiler.expression.incr │ │ │ └── output │ │ ├── compiler.expression.record-coerce │ │ │ └── output │ │ ├── compiler.expression.sub │ │ │ └── output │ │ ├── compiler.expression.assign-field │ │ │ └── output │ │ ├── spicy.double-event │ │ │ └── output │ │ ├── spicy.event-cond │ │ │ └── output │ │ ├── compiler.direct-and-indirect-calls │ │ │ └── output │ │ ├── compiler.expression.equal │ │ │ └── output │ │ ├── spicy.tuple-enum │ │ │ └── output │ │ ├── compiler.statement.break │ │ │ └── output │ │ ├── spicy.gzip-header │ │ │ └── output │ │ ├── compiler.types.record-field-default │ │ │ └── output │ │ ├── compiler.expression.bool │ │ │ └── output │ │ ├── compiler.statement.del-record │ │ │ └── output │ │ ├── spicy.tuple-optional │ │ │ └── output │ │ ├── compiler.custom-hilti-code.conn-event-no-compile-no-bro │ │ │ └── output │ │ ├── compiler.custom-hilti-code.conn-event-with-compile-no-bro │ │ │ └── output │ │ ├── compiler.expression.in │ │ │ └── output │ │ ├── compiler.expression.index │ │ │ └── output │ │ ├── compiler.expression.index-error │ │ │ └── output │ │ └── compiler.statement.for-vector │ │ │ └── output │ ├── .gitignore │ ├── Traces │ │ ├── dns.trace │ │ ├── rtmp.trace │ │ ├── bacnet │ │ │ ├── NPDU.pcap │ │ │ ├── rpm.pcap │ │ │ ├── who-has.pcap │ │ │ ├── who-is-i-am.pcap │ │ │ ├── BBMD_Results.pcap │ │ │ ├── atomic-read-file.pcap │ │ │ ├── read-properties.pcap │ │ │ ├── bacnet-property-error.pcap │ │ │ └── README │ │ ├── http │ │ │ ├── get.trace │ │ │ ├── get-gzip.trace │ │ │ └── pipelined-requests.trace │ │ ├── tls │ │ │ ├── google.pcap │ │ │ ├── tls1.2.trace │ │ │ └── tls-conn-with-extensions.trace │ │ ├── ssh-single-conn.trace │ │ └── gzip-single-request.trace │ └── Scripts │ │ ├── bro-events-canonifier │ │ ├── diff-canonifier │ │ └── bro-log-canonifier ├── scripts │ ├── bif │ │ └── __load__.bro │ └── bro │ │ └── hilti │ │ └── base │ │ └── __load__.bro ├── src │ └── events.bif └── spicy │ ├── tls.bro │ └── ssh.spicy ├── tests ├── Baseline │ ├── hilti.double.eq │ │ └── output │ ├── hilti.double.lt │ │ └── output │ ├── hilti.jit.fibo │ │ └── output │ ├── spicy.list.size │ │ └── output │ ├── hilti.core.empty-function │ │ └── output │ ├── hilti.core.ref-cnt-call-a │ │ └── output │ ├── hilti.core.ref-cnt-call-b │ │ └── output │ ├── hilti.core.unused-local │ │ └── output │ ├── hilti.core.wrong-order │ │ └── output │ ├── hilti.debug.assert-debug-2 │ │ └── output │ ├── hilti.debug.assert-release │ │ └── output │ ├── hilti.double.eq-2 │ │ └── output │ ├── hilti.double.lt-2 │ │ └── output │ ├── hilti.double.lt-3 │ │ └── output │ ├── hilti.enum.dup-label │ │ └── output │ ├── hilti.hooks.basic-empty │ │ └── output │ ├── hilti.integer.add-2 │ │ └── output │ ├── hilti.integer.add-3 │ │ └── output │ ├── hilti.integer.add │ │ └── output │ ├── hilti.integer.binary │ │ └── output │ ├── hilti.integer.div-2 │ │ └── output │ ├── hilti.integer.div │ │ └── output │ ├── hilti.integer.eq-2 │ │ └── output │ ├── hilti.integer.eq │ │ └── output │ ├── hilti.integer.ext │ │ └── output │ ├── hilti.integer.geq-2 │ │ └── output │ ├── hilti.integer.geq-3 │ │ └── output │ ├── hilti.integer.geq │ │ └── output │ ├── hilti.integer.leq-2 │ │ └── output │ ├── hilti.integer.leq-3 │ │ └── output │ ├── hilti.integer.leq │ │ └── output │ ├── hilti.integer.lt-2 │ │ └── output │ ├── hilti.integer.lt-3 │ │ └── output │ ├── hilti.integer.lt │ │ └── output │ ├── hilti.integer.mul │ │ └── output │ ├── hilti.integer.shortcuts-2 │ │ └── output │ ├── hilti.integer.shortcuts-3 │ │ └── output │ ├── hilti.integer.shortcuts-4 │ │ └── output │ ├── hilti.integer.shortcuts │ │ └── output │ ├── hilti.integer.sub-2 │ │ └── output │ ├── hilti.integer.sub-3 │ │ └── output │ ├── hilti.integer.sub-4 │ │ └── output │ ├── hilti.integer.sub │ │ └── output │ ├── hilti.jit.dtor │ │ └── output │ ├── hilti.map.iterator-empty │ │ └── output │ ├── hilti.misc.fibo │ │ └── output │ ├── hilti.set.iterator-empty │ │ └── output │ ├── hilti.string.empty │ │ └── output │ ├── hilti.string.length │ │ └── output │ ├── hilti.tuple.index │ │ └── output │ ├── spicy.optional.wrong-const │ │ └── output │ ├── spicy.unit.ctor │ │ └── output │ ├── spicy.unit.var │ │ └── output │ ├── hilti.bytes.ctor-empty │ │ └── output │ ├── hilti.bytes.ctor │ │ └── output │ ├── hilti.callable.liveness │ │ └── output │ ├── hilti.callable.void │ │ └── output │ ├── hilti.core.select │ │ └── output │ ├── hilti.debug.assert-release-2 │ │ └── output │ ├── hilti.double.add-2 │ │ └── output │ ├── hilti.double.add │ │ └── output │ ├── hilti.double.div │ │ └── output │ ├── hilti.double.sub │ │ └── output │ ├── hilti.enum.global-init │ │ └── output │ ├── hilti.hooks.basic-empty-ref │ │ └── output │ ├── hilti.integer.binary-2 │ │ └── output │ ├── hilti.integer.binary-3 │ │ └── output │ ├── hilti.integer.mul-2 │ │ └── output │ ├── hilti.integer.pow │ │ └── output │ ├── hilti.libhilti.print-2 │ │ └── output │ ├── hilti.port.pack │ │ └── output │ ├── hilti.string.concat-3 │ │ └── output │ ├── hilti.string.length-2 │ │ └── output │ ├── hilti.time.wall │ │ └── output │ ├── hilti.tuple.assign-7 │ │ └── output │ ├── hilti.tuple.coerce │ │ └── output │ ├── hilti.tuple.length │ │ └── output │ ├── spicy.enum.cast-int │ │ └── output │ ├── spicy.integer.coerce │ │ └── output │ ├── spicy.list.ctor │ │ └── output │ ├── spicy.list.methods │ │ └── output │ ├── spicy.sink.reassembler.policy │ │ └── output │ ├── spicy.sink.size │ │ └── output │ ├── spicy.unit.new │ │ └── output │ ├── hilti.bytes.global │ │ └── output │ ├── hilti.core.import-global │ │ └── output │ ├── hilti.double.div-2 │ │ └── output │ ├── hilti.double.div-3 │ │ └── output │ ├── hilti.double.mul-2 │ │ └── output │ ├── hilti.double.mul │ │ └── output │ ├── hilti.double.sub-2 │ │ └── output │ ├── hilti.function.value │ │ └── output │ ├── hilti.integer.trunc │ │ └── output │ ├── hilti.map.exists │ │ └── output │ ├── hilti.map.get-default │ │ └── output │ ├── hilti.map.get-map-default │ │ └── output │ ├── hilti.misc.hello-world-int │ │ └── output │ ├── hilti.ref.coerce-null-var │ │ └── output │ ├── hilti.set.invert │ │ └── output │ ├── hilti.string.concat-2 │ │ └── output │ ├── hilti.struct.double-set │ │ └── output │ ├── hilti.struct.get │ │ └── output │ ├── hilti.threads.context-no-copy │ │ └── output │ ├── hilti.tuple.assign │ │ └── output │ ├── hilti.tuple.equal │ │ └── output │ ├── hilti.union.inline-type │ │ └── output │ ├── spicy.composer.bytes │ │ └── output │ ├── spicy.composer.list-count │ │ └── output │ ├── spicy.core.ifif │ │ └── output │ ├── spicy.enum.scope-across-mods │ │ └── output │ ├── spicy.function.hilti-func │ │ └── output │ ├── spicy.function.hlt-func │ │ └── output │ ├── spicy.function.locals │ │ └── output │ ├── spicy.list.constants │ │ └── output │ ├── spicy.list.multiple-lists │ │ └── output │ ├── spicy.unit.convert-regexp │ │ └── output │ ├── spicy.unit.offset-switch │ │ └── output │ ├── spicy.unit.regexp-at-eod │ │ └── output │ ├── spicy.unit.switch-bytes │ │ └── output │ ├── hilti.bytes.append-empty │ │ └── output │ ├── hilti.bytes.case-conv │ │ └── output │ ├── hilti.bytes.copy │ │ └── output │ ├── hilti.callable.result │ │ └── output │ ├── hilti.core.dead-target-ref-cnt │ │ └── output │ ├── hilti.core.declare-global │ │ └── output │ ├── hilti.core.unequal │ │ └── output │ ├── hilti.enum.scoped-type │ │ └── output │ ├── hilti.enum.to-int │ │ └── output │ ├── hilti.function.value-in-struct │ │ └── output │ ├── hilti.jit.hello-world │ │ └── output │ ├── hilti.list.basic-ref │ │ └── output │ ├── hilti.map.insert-repeat │ │ └── output │ ├── hilti.misc.hello-world │ │ └── output │ ├── hilti.ref.cast-bool │ │ └── output │ ├── hilti.ref.coerce-null-const │ │ └── output │ ├── hilti.string.concat │ │ └── output │ ├── hilti.struct.get-default │ │ └── output │ ├── hilti.timer.simple │ │ └── output │ ├── hilti.tuple.assign-2 │ │ └── output │ ├── hilti.tuple.assign-3 │ │ └── output │ ├── hilti.tuple.assign-4 │ │ └── output │ ├── hilti.tuple.assign-5 │ │ └── output │ ├── hilti.tuple.assign-6 │ │ └── output │ ├── spicy.bytes.derived-length │ │ └── output │ ├── spicy.bytes.startswith │ │ └── output │ ├── spicy.composer.convert │ │ └── output │ ├── spicy.composer.switch │ │ └── output │ ├── spicy.core.ifelse-coerce │ │ └── output │ ├── spicy.enum.coerce-bool │ │ └── output │ ├── spicy.integer.cast-into-unit │ │ └── output │ ├── spicy.integer.operator-unit │ │ └── output │ ├── spicy.misc.hello-world │ │ └── output │ ├── spicy.parsers.http.gc-release │ │ └── gc-leaks │ ├── spicy.unit.attr │ │ └── output │ ├── spicy.unit.convert-enum │ │ └── output │ ├── spicy.unit.convert │ │ └── output │ ├── spicy.unit.has-attr │ │ └── output │ ├── spicy.unit.input │ │ └── output │ ├── spicy.unit.local-var-init │ │ └── output │ ├── hilti.bytes.incr-by │ │ └── output │ ├── hilti.channel.write-read │ │ └── output │ ├── hilti.core.locals-init │ │ └── output │ ├── hilti.core.no-return-in-dead-block │ │ └── output │ ├── hilti.core.switch-int │ │ └── output │ ├── hilti.double.geq │ │ └── output │ ├── hilti.double.leq │ │ └── output │ ├── hilti.file.hello-world-bytes │ │ └── output │ ├── hilti.integer.const-promotion │ │ └── output │ ├── hilti.map.ctor │ │ └── output │ ├── hilti.map.exists-struct │ │ └── output │ ├── hilti.misc.hello-world-str │ │ └── output │ ├── hilti.opt.hello-world-jit │ │ └── output │ ├── hilti.port.from-string │ │ └── output │ ├── hilti.set.enum │ │ └── output │ ├── hilti.struct.get-default-2 │ │ └── output │ ├── hilti.struct.get-default-3 │ │ └── output │ ├── hilti.threads.local-vars-and-threads │ │ └── output │ ├── hilti.tuple.equal-nested │ │ └── output │ ├── hilti.vector.iterator-mod │ │ └── output │ ├── spicy.bytes.join │ │ └── output │ ├── spicy.bytes.to-int │ │ └── output │ ├── spicy.composer.ignore-parse │ │ └── output │ ├── spicy.composer.parse-vs-compose │ │ └── output │ ├── spicy.core.assign │ │ └── output │ ├── spicy.core.ternary │ │ └── output │ ├── spicy.enum.basic │ │ └── output │ ├── spicy.enum.print │ │ └── output │ ├── spicy.function.hilti-func-from-hook │ │ └── output │ ├── spicy.integer.cast-to-interval │ │ └── output │ ├── spicy.integer.parse-const │ │ └── output │ ├── spicy.list.eof │ │ └── output │ ├── spicy.list.parse-lahead-empty │ │ └── output │ ├── spicy.parsers.http.gc-release-chunked │ │ └── gc-leaks │ ├── spicy.parsers.http.gc-release-sink │ │ ├── gc-leaks │ │ └── size │ ├── spicy.sink.map │ │ └── output │ ├── spicy.unit.assign-field │ │ └── output │ ├── spicy.unit.input-sink │ │ └── output │ ├── spicy.unit.switch-scope │ │ └── output │ ├── hilti.builder.hello-world-jit │ │ └── output │ ├── hilti.bytes.concat │ │ └── output │ ├── hilti.callable.excpt-caught │ │ └── output │ ├── hilti.classifier.bytes-prefix │ │ └── output │ ├── hilti.classifier.matching │ │ └── output │ ├── hilti.core.chained-blocks │ │ └── output │ ├── hilti.core.clear │ │ └── output │ ├── hilti.core.default-ctor │ │ └── output │ ├── hilti.core.no-return-in-dead-block-chain │ │ └── output │ ├── hilti.core.switch-string │ │ └── output │ ├── hilti.enum.from-init │ │ └── output │ ├── hilti.exceptions.catch │ │ └── output │ ├── hilti.file.hello-world-string │ │ └── output │ ├── hilti.integer.operators │ │ └── output │ ├── hilti.map.ctor-default │ │ └── output │ ├── hilti.map.get-default-str │ │ └── output │ ├── hilti.port.eq │ │ └── output │ ├── hilti.regexp.ctor-set │ │ └── output │ ├── hilti.regexp.ctor │ │ └── output │ ├── hilti.set.insert-repeat │ │ └── output │ ├── hilti.string.constants │ │ └── output │ ├── hilti.threads.global-init-func │ │ └── output │ ├── hilti.unset.coerce │ │ └── output │ ├── hilti.vector.push_back │ │ └── output │ ├── spicy.bytes.append │ │ └── output │ ├── spicy.bytes.plus │ │ └── output │ ├── spicy.core.hello │ │ └── output │ ├── spicy.enum.parse-bitfield-enum │ │ └── output │ ├── spicy.function.overloaded │ │ └── output │ ├── spicy.unit.external-hooks-unit-arg │ │ └── output │ ├── spicy.unit.filter │ │ └── output │ ├── spicy.unit.hide │ │ └── output │ ├── spicy.unit.offset │ │ └── output │ ├── spicy.unit.print-attr │ │ └── output │ ├── spicy.unit.regexp │ │ └── output │ ├── spicy.unit.void │ │ └── output │ ├── hilti.bool.unpack │ │ └── output │ ├── hilti.bytes.clone │ │ └── output │ ├── hilti.bytes.find │ │ └── output │ ├── hilti.bytes.sub │ │ └── output │ ├── hilti.callable.unbound-3 │ │ └── output │ ├── hilti.classifier.simple-direct │ │ └── output │ ├── hilti.core.clone-atomic │ │ └── output │ ├── hilti.integer.mask │ │ └── output │ ├── hilti.list.iterator │ │ └── output │ ├── hilti.map.enums │ │ └── output │ ├── hilti.map.get-default-tuple │ │ └── output │ ├── hilti.overlay.detached │ │ └── output │ ├── hilti.set.basic-int │ │ └── output │ ├── hilti.set.basic-str │ │ └── output │ ├── hilti.struct.isset │ │ └── output │ ├── hilti.struct.unset │ │ └── output │ ├── hilti.timer.simple-with-default-mgr │ │ └── output │ ├── hilti.timer.simple-with-global-time │ │ └── output │ ├── hilti.vector.iterator │ │ └── output │ ├── spicy.function.hilti-spicy-func │ │ └── output │ ├── spicy.integer.bitfield-order │ │ └── output │ ├── spicy.integer.parse-unit-byteorder │ │ └── output │ ├── spicy.libspicy.mktime │ │ └── output │ ├── spicy.list.comprehension │ │ └── output │ ├── spicy.list.parse-length-zero │ │ └── output │ ├── spicy.list.parse-list-until │ │ └── output │ ├── spicy.list.parse-list-while │ │ └── output │ ├── spicy.map.bytes │ │ └── output │ ├── spicy.misc.hello-world-spicy-driver │ │ └── output │ ├── spicy.time.smb-calc │ │ └── output │ ├── spicy.unit.bytes-until │ │ └── output │ ├── spicy.unit.convert-integer-signed │ │ └── output │ ├── spicy.unit.sink-filter │ │ └── output │ ├── spicy.unit.var-hooks │ │ └── output │ ├── hilti.addr.eq │ │ └── output │ ├── hilti.bytes.unpack-exact │ │ └── output │ ├── hilti.caddr.operators │ │ └── output │ ├── hilti.callable.clone │ │ └── output │ ├── hilti.callable.unbound-4 │ │ └── output │ ├── hilti.classifier.simple-no-prio │ │ └── output │ ├── hilti.core.complex-abi-args │ │ └── output │ ├── hilti.core.constants │ │ └── output │ ├── hilti.enum.eq │ │ └── output │ ├── hilti.exceptions.catch-call │ │ └── output │ ├── hilti.exceptions.catch-double-2 │ │ └── output │ ├── hilti.exceptions.catch-double │ │ └── output │ ├── hilti.exceptions.catch-internal │ │ └── output │ ├── hilti.file.threads │ │ └── output.log.sorted │ ├── hilti.jit.bytes-sub │ │ └── output │ ├── hilti.map.basic-int │ │ └── output │ ├── hilti.map.basic-str │ │ └── output │ ├── hilti.misc.block-series │ │ └── output │ ├── hilti.overlay.static-get │ │ └── output │ ├── hilti.struct.cycle │ │ └── output │ ├── hilti.threads.yield-until │ │ └── output │ ├── hilti.union.coerce-bool │ │ └── output │ ├── spicy.bytes.case-convert │ │ └── output │ ├── spicy.enum.parse-enum │ │ └── output │ ├── spicy.integer.parse-module-byteorder │ │ └── output │ ├── spicy.list.parse-list-foreach │ │ └── output │ ├── spicy.tuple.enum │ │ └── output │ ├── spicy.unit.field-init │ │ └── output │ ├── spicy.unit.filter-double │ │ └── output │ ├── spicy.unit.set-input │ │ └── output │ ├── spicy.unit.sink-unit-filter │ │ └── output │ ├── spicy.unit.switch-if │ │ └── output │ ├── hilti.addr.to-net │ │ └── output │ ├── hilti.bytes.trim │ │ └── output │ ├── hilti.c-api.c-interface │ │ └── output │ ├── hilti.callable.unbound │ │ └── output │ ├── hilti.core.foreach-next │ │ └── output │ ├── hilti.core.globals │ │ └── output │ ├── hilti.core.uninitialized │ │ └── output │ ├── hilti.file.hello-world-append │ │ └── foo.txt │ ├── hilti.file.threads-same │ │ └── output.log.sorted │ ├── hilti.hooks.basic │ │ └── output │ ├── hilti.hooks.stop │ │ └── output │ ├── hilti.integer.unpack-bits │ │ └── output │ ├── hilti.integer.unpack-host │ │ └── output │ ├── hilti.net.eq-net │ │ └── output │ ├── hilti.overlay.simple │ │ └── output │ ├── hilti.set.iterator │ │ └── output │ ├── hilti.threads.global-vars-and-threads │ │ └── output │ ├── hilti.timer.time-with-default │ │ └── output │ ├── spicy.bytes.chunked-len │ │ └── output │ ├── spicy.bytes.chunked-until │ │ └── output │ ├── spicy.double.parse │ │ └── output │ ├── spicy.function.hilti-c-func │ │ └── output │ ├── spicy.list.parse-list-until-including │ │ └── output │ ├── spicy.objects.middle │ │ └── output │ ├── spicy.objects.postfix │ │ └── output │ ├── spicy.objects.prefix │ │ └── output │ ├── spicy.unit.bitfield │ │ └── output │ ├── spicy.unit.ctor-list │ │ └── output │ ├── spicy.unit.enums-accross-imports │ │ └── output │ ├── spicy.unit.input-parse │ │ └── output │ ├── spicy.unit.print-id │ │ └── output │ ├── spicy.unit.sink-double-filter │ │ └── output │ ├── hilti.addr.from-string │ │ └── output │ ├── hilti.bytes.join │ │ └── output │ ├── hilti.bytes.pack │ │ └── output │ ├── hilti.c-api.c-interface-noyield │ │ └── output │ ├── hilti.callable.ctor-hook │ │ └── output │ ├── hilti.callable.hook-void │ │ └── output │ ├── hilti.callable.unbound-2 │ │ └── output │ ├── hilti.exceptions.catch-multiple │ │ └── output │ ├── hilti.port.protocol │ │ └── output │ ├── hilti.set.basic-tuple-key │ │ └── output │ ├── hilti.string.find │ │ └── output │ ├── hilti.string.join │ │ └── output │ ├── hilti.union.get │ │ └── output │ ├── spicy.bytes.chunked-eod │ │ └── output │ ├── spicy.enum.compare-enum │ │ └── output │ ├── spicy.optional.consts │ │ └── output │ ├── spicy.sink.reassembler.custom-length │ │ └── output │ ├── spicy.unit.on-hooks │ │ └── output │ ├── spicy.unit.subunit │ │ └── output │ ├── spicy.unit.switch-void │ │ └── output │ ├── spicy.unit.tokens │ │ └── output │ ├── hilti.bytes.contains │ │ └── output │ ├── hilti.bytes.freeze │ │ └── output │ ├── hilti.core.foreach-break │ │ └── output │ ├── hilti.core.hash │ │ └── output │ ├── hilti.enum.val-assign │ │ └── output │ ├── hilti.hooks.basic-reordered │ │ └── output │ ├── hilti.map.basic-tuple-key │ │ └── output │ ├── hilti.struct.func-return │ │ └── output │ ├── hilti.union.get-by-type │ │ └── output │ ├── hilti.vector.basic │ │ └── output │ ├── hilti.vector.exists │ │ └── output │ ├── spicy.bytes.length │ │ └── output │ ├── spicy.core.ifelse │ │ └── output │ ├── spicy.function.spicy-func │ │ └── output │ ├── spicy.integer.parse-uint64 │ │ ├── output │ │ └── spicy.int.parse-uint64 │ │ │ └── output │ ├── spicy.tuple.operators │ │ └── output │ ├── spicy.unit.external-global-vars │ │ └── output │ ├── spicy.unit.parse-attr │ │ └── output │ ├── spicy.unit.switch-blocks │ │ └── output │ ├── hilti.bytes.startswith │ │ └── output │ ├── hilti.bytes.strip │ │ └── output │ ├── hilti.callable.multiple │ │ └── output │ ├── hilti.core.module-named-twice │ │ └── output │ ├── hilti.exceptions.catch-multiple-reordered │ │ └── output │ ├── hilti.exceptions.catch-plus-print │ │ └── output │ ├── hilti.map.foreach │ │ └── output │ ├── hilti.map.tuple │ │ └── output │ ├── hilti.regexp.bytes-partial │ │ └── output │ ├── hilti.string.clone │ │ └── output │ ├── hilti.string.substr │ │ └── output │ ├── hilti.tuple.clone │ │ └── output │ ├── hilti.tuple.map │ │ └── output │ ├── spicy.addr.parse │ │ └── output │ ├── spicy.double.mixed-ints │ │ └── output │ ├── spicy.enum.operators │ │ └── output │ ├── spicy.integer.cast │ │ └── output │ ├── spicy.list.parse-lahead-int-longest │ │ └── output │ ├── spicy.list.parse-lahead-int-variable │ │ └── output │ ├── spicy.list.parse-list-count │ │ └── output │ ├── spicy.unit.nested │ │ └── output │ ├── spicy.unit.print │ │ └── output │ ├── spicy.unit.vars-hooks │ │ └── output │ ├── hilti.enum.print │ │ └── output │ ├── hilti.hooks.basic-params │ │ └── output │ ├── hilti.hooks.prio │ │ └── output │ ├── hilti.libhilti.print │ │ └── output │ ├── hilti.list.clone │ │ └── output │ ├── hilti.map.basic-tuple-value │ │ └── output │ ├── hilti.net.eq-addr │ │ └── output │ ├── hilti.struct.set │ │ └── output │ ├── spicy.bytes.parse-const-lahead │ │ └── output │ ├── spicy.double.parse-byteorder │ │ └── output │ ├── spicy.integer.parse-int │ │ └── output │ ├── spicy.integer.parse-uint │ │ └── output │ ├── spicy.list.parse-list-until-including-foreach │ │ └── output │ ├── spicy.parsers.tftp.test │ │ └── output │ ├── spicy.tuple.optional │ │ └── output │ ├── spicy.unit.condition │ │ └── output │ ├── spicy.unit.ctor-expr │ │ └── output │ ├── spicy.vector.ops │ │ └── output │ ├── hilti.bytes.cmp │ │ └── output │ ├── hilti.bytes.marks │ │ └── output │ ├── hilti.bytes.strip-with-args │ │ └── output │ ├── hilti.bytes.unpack-delim-multi │ │ └── output │ ├── hilti.caddr.function │ │ └── output │ ├── hilti.hooks.result-nostop-empty │ │ └── output │ ├── hilti.set.clone │ │ └── output │ ├── spicy.list.append │ │ └── output │ ├── spicy.misc.spicy-driver-jit │ │ └── output │ ├── spicy.synchronize.child │ │ └── output │ ├── hilti.addr.pack │ │ └── output │ ├── hilti.file.hello-world-multiple │ │ └── output │ ├── hilti.net.length │ │ └── output │ ├── hilti.regexp.bytes-groups-no-match │ │ └── output │ ├── spicy.list.comprehension-conversion │ │ └── output │ ├── spicy.sink.reassembler.basic │ │ └── output │ ├── spicy.sink.reassembler.init-seq │ │ └── output │ ├── spicy.unit.hooks-on-assign │ │ └── output │ ├── spicy.unit.skip-property-disable │ │ └── output │ ├── spicy.unit.typedef │ │ └── output │ ├── spicy.unit.vars │ │ └── output │ ├── hilti.addr.family │ │ └── output │ ├── hilti.bitset.print │ │ └── output │ ├── hilti.bytes.iterator │ │ └── output │ ├── hilti.callable.ctor │ │ └── output │ ├── hilti.channel.blocking-read │ │ └── output │ ├── hilti.core.init-function │ │ └── output │ ├── hilti.integer.limits │ │ └── output │ ├── hilti.net.family │ │ └── output │ ├── hilti.regexp.bytes-find │ │ └── output │ ├── hilti.set.foreach │ │ └── output │ ├── hilti.union.const │ │ └── output │ ├── hilti.vector.foreach │ │ └── output │ ├── spicy.integer.parse-bitfield │ │ └── output │ ├── hilti.bytes.index │ │ └── output │ ├── hilti.file.clone │ │ └── output │ ├── hilti.hooks.module │ │ └── output │ ├── hilti.list.append │ │ └── output │ ├── hilti.opt.ctor-pass │ │ └── output │ ├── hilti.regexp.bytes-set-find │ │ └── output │ ├── hilti.regexp.bytes-span │ │ └── output │ ├── hilti.threads.yield-exception │ │ └── output │ ├── spicy.libspicy.fmt │ │ └── output │ ├── spicy.synchronize.field-length-atomic │ │ └── output │ ├── spicy.synchronize.sync-at-object │ │ └── output │ ├── spicy.unit.bytes-empty-regexp │ │ └── output │ ├── spicy.unit.external-hooks-same-module │ │ └── output │ ├── spicy.unit.params │ │ └── output │ ├── hilti.integer.shift │ │ └── output │ ├── hilti.regexp.clone │ │ └── output │ ├── hilti.struct.ctor │ │ └── output │ ├── spicy.composer.bitfield │ │ └── output │ ├── spicy.composer.list-until │ │ └── output │ ├── spicy.objects.multiple │ │ └── output │ ├── spicy.sink.export │ │ └── output │ ├── spicy.synchronize.field-length-child │ │ └── output │ ├── spicy.unit.delayed-init │ │ └── output │ ├── hilti.bool.logic │ │ └── output │ ├── hilti.callable.threads │ │ └── output │ ├── hilti.integer.series │ │ └── output │ ├── hilti.list.ctor │ │ └── output │ ├── hilti.list.exceptions-2 │ │ └── output │ ├── hilti.list.exceptions-3 │ │ └── output │ ├── hilti.list.exceptions-4 │ │ └── output │ ├── hilti.list.exceptions │ │ └── output │ ├── hilti.map.get-except │ │ └── output │ ├── hilti.port.unpack │ │ └── output │ ├── hilti.struct.print │ │ └── output │ ├── hilti.threads.vid │ │ └── output │ ├── hilti.union.print │ │ └── output │ ├── hilti.vector.clone │ │ └── output │ ├── spicy.composer.convert-enum │ │ └── output │ ├── spicy.composer.subunit │ │ └── output │ ├── spicy.list.parse-lahead-int-regexp │ │ └── output │ ├── spicy.sink.reassembler.sequence │ │ └── output │ ├── spicy.sink.reassembler.skip │ │ └── output │ ├── spicy.sink.suspend │ │ └── output │ ├── spicy.unit.convert-integer │ │ └── output │ ├── hilti.channel.deep-copy │ │ └── output │ ├── hilti.channel.empty-except │ │ └── output │ ├── hilti.channel.full-except │ │ └── output │ ├── hilti.misc.terminate │ │ └── output │ ├── hilti.struct.ctor-empty │ │ └── output │ ├── hilti.threads.context-call │ │ └── output │ ├── hilti.vector.index-error │ │ └── output │ ├── spicy.addr.basic │ │ └── output │ ├── spicy.bytes.chunked-sink │ │ └── output │ ├── spicy.composer.bitfield-in-list │ │ └── output │ ├── spicy.composer.bitfield-order │ │ └── output │ ├── spicy.composer.list-until-including │ │ └── output │ ├── spicy.list.parse-lahead-two │ │ └── output │ ├── spicy.unit.external-hooks-import │ │ └── output │ ├── spicy.unit.wrong-id-3 │ │ └── output │ ├── hilti.c-api.callable │ │ └── output │ ├── hilti.classifier.simple │ │ └── output │ ├── hilti.core.foreach-enum-set │ │ └── output │ ├── hilti.hooks.result │ │ └── output │ ├── hilti.integer.wrong-unpack-len │ │ └── output │ ├── hilti.list.exceptions-iter-2 │ │ └── output │ ├── hilti.list.exceptions-iter-3 │ │ └── output │ ├── hilti.list.exceptions-iter-4 │ │ └── output │ ├── hilti.list.exceptions-iter │ │ └── output │ ├── hilti.timer.update-expt │ │ └── output │ ├── spicy.bytes.equal │ │ └── output │ ├── spicy.bytes.iterator │ │ └── output │ ├── spicy.composer.convert-dollardollar │ │ └── output │ ├── spicy.list.parse-lahead-int-regexp-longest │ │ └── output │ ├── spicy.list.parse-lahead │ │ └── output │ ├── spicy.list.parse-until │ │ └── output │ ├── spicy.unit.bytes-eod │ │ └── output │ ├── spicy.unit.debug-hooks │ │ └── output │ ├── spicy.unit.dynamic-byteorder │ │ └── output │ ├── hilti.classifier.no-match-excpt │ │ └── output │ ├── hilti.double.unpack │ │ └── output │ ├── hilti.opt.ctor-pass-functions │ │ ├── output │ │ └── ctors │ ├── hilti.regexp.bytes-set-find-custom-id │ │ └── output │ ├── hilti.regexp.bytes-set-span │ │ └── output │ ├── hilti.timer.two-mgrs-excpt │ │ └── output │ ├── spicy.list.parse-lahead-eod │ │ └── output │ ├── spicy.set.operators │ │ └── output │ ├── spicy.synchronize.sync-at-bytes │ │ └── output │ ├── spicy.synchronize.sync-at-mark │ │ └── output │ ├── spicy.unit.child-length │ │ └── output │ ├── hilti.bytes.freeze-excpt │ │ └── output │ ├── hilti.callable.hook-result │ │ └── output │ ├── hilti.map.clone │ │ └── output │ ├── hilti.regexp.bytes-groups │ │ └── output │ ├── hilti.string.cmp │ │ └── output │ ├── hilti.threads.deep-copy-args │ │ └── output │ ├── spicy.list.parse-foreach │ │ └── output │ ├── spicy.synchronize.sync-after-bytes │ │ └── output │ ├── spicy.synchronize.sync-after-object │ │ └── output │ ├── spicy.synchronize.sync-at-regexp │ │ └── output │ ├── spicy.unit.init-done │ │ └── output │ ├── hilti.c-api.c-hilti-excpt │ │ └── output │ ├── hilti.threads.arguments │ │ └── output │ ├── spicy.unit.defaults │ │ └── output │ ├── spicy.unit.sink-attach │ │ └── output │ ├── hilti.bitset.ops │ │ └── output │ ├── hilti.bytes.append │ │ └── output │ ├── hilti.integer.signed-unsigned │ │ └── output │ ├── hilti.interval.unix │ │ └── output │ ├── hilti.union.dispatch │ │ └── output │ ├── hilti.bytes.hoist │ │ └── output │ ├── hilti.bytes.offset-future │ │ └── output │ ├── hilti.exceptions.throw │ │ └── output │ ├── hilti.struct.get-expt │ │ └── output │ ├── hilti.time.add │ │ └── output │ ├── hilti.union.const-coerce │ │ └── output │ ├── spicy.list.parse-count │ │ └── output │ ├── spicy.list.parse-length │ │ └── output │ ├── spicy.synchronize.wrong-sync │ │ └── output │ ├── spicy.unit.detached-hooks │ │ └── output │ ├── spicy.unit.sink-disconnect │ │ └── output │ ├── hilti.bytes.unpack-delim │ │ └── output │ ├── hilti.c-api.fiber │ │ └── output │ ├── hilti.double.series │ │ └── output │ ├── hilti.hooks.result-nostop │ │ └── output │ ├── hilti.map.iterator │ │ └── output │ ├── hilti.set.remove │ │ └── output │ ├── hilti.struct.get-expt-2 │ │ └── output │ ├── hilti.vector.ctor │ │ └── output │ ├── spicy.objects.missing │ │ └── output │ ├── spicy.unit.switch-blocks-with-lists │ │ └── output │ ├── hilti.debug.msg │ │ └── output │ ├── hilti.exceptions.hooks │ │ └── output │ ├── hilti.hooks.across-mods-no-import │ │ └── output │ ├── hilti.libhilti.fmt │ │ └── output │ ├── spicy.list.parse-length-insufficient │ │ └── output │ ├── spicy.unit.sink │ │ └── output │ ├── spicy.unit.wrong-id-2 │ │ └── output │ ├── spicy.unit.wrong-id │ │ └── output │ ├── hilti.integer.pack │ │ └── output │ ├── spicy.bytes.strip │ │ └── output │ ├── spicy.list.parse-atomic │ │ └── output │ ├── spicy.synchronize.wrong-field-length-child │ │ └── output │ ├── spicy.unit.cyclic │ │ └── output │ ├── spicy.vector.parse-param │ │ └── output │ ├── hilti.c-api.struct-params │ │ └── output │ ├── hilti.callable.excpt-uncaught │ │ └── output │ ├── hilti.core.select-value │ │ └── output │ ├── hilti.map.remove │ │ └── output │ ├── hilti.overlay.not-attached │ │ └── output │ ├── hilti.regexp.bytes-set-groups │ │ └── output │ ├── spicy.bytes.match │ │ └── output │ ├── spicy.integer.div-by-zero │ │ └── output │ ├── spicy.synchronize.sync-after-regexp │ │ └── output │ ├── spicy.unit.hooks-across-imports │ │ └── output │ ├── hilti.bytes.append-incr │ │ └── output │ ├── hilti.bytes.length │ │ └── output │ ├── hilti.bytes.to-int-binary │ │ └── output │ ├── hilti.core.uncaught-exception │ │ └── output │ ├── hilti.double.nops │ │ └── output │ ├── spicy.integer.bitops │ │ └── output │ ├── spicy.sink.reassembler.wrong-seq │ │ └── output │ ├── hilti.double.div-by-zero-except │ │ └── output │ ├── hilti.exceptions.throw-2 │ │ └── output │ ├── hilti.exceptions.throw-3 │ │ └── output │ ├── hilti.integer.div-by-zero-except │ │ └── output │ ├── hilti.tuple.wrong-index-2 │ │ └── output │ ├── spicy.unit.backtrack │ │ └── output │ ├── hilti.bytes.to-int │ │ └── output │ ├── hilti.c-api.struct-return │ │ └── output │ ├── hilti.core.module │ │ └── output │ ├── hilti.debug.assert-debug │ │ └── output │ ├── spicy.bytes.split │ │ └── output │ ├── spicy.composer.int │ │ └── output │ ├── spicy.unit.bytes │ │ └── hlt-debug.log │ ├── hilti.core.module-7 │ │ └── output │ ├── spicy.bytes.parse-const │ │ └── hlt-debug.log │ ├── spicy.composer.addr │ │ └── output │ ├── spicy.integer.wrong-assign │ │ └── output │ ├── spicy.integer.wrong-int-mix │ │ └── output │ ├── spicy.sink.reassembler.auto-trim │ │ └── output │ ├── spicy.unit.transient │ │ └── hlt-debug.log │ ├── spicy.unit.wrong-type │ │ └── output │ ├── hilti.core.module-2 │ │ └── output │ ├── hilti.core.module-3 │ │ └── output │ ├── hilti.core.module-4 │ │ └── output │ ├── hilti.core.module-5 │ │ └── output │ ├── hilti.core.module-6 │ │ └── output │ ├── spicy.interval.ops │ │ └── output │ ├── spicy.unit.backtrack-on-error │ │ └── output │ ├── spicy.unit.sink-mime │ │ └── output │ ├── spicy.unit.switch-duplicate-case │ │ └── output │ ├── hilti.bytes.unpack-fixed-or-eod │ │ └── output │ ├── hilti.c-api.yield │ │ └── output │ ├── hilti.core.no-run │ │ └── output │ ├── hilti.core.wrong-decls-2 │ │ └── output │ ├── hilti.core.wrong-decls-4 │ │ └── output │ ├── hilti.core.no-run-2 │ │ └── output │ ├── hilti.enum.wrong-labels │ │ └── output │ ├── hilti.file.hello-world-bytes-mixed │ │ └── output │ ├── hilti.integer.wrong-width │ │ └── output │ ├── hilti.map.get-map-default-func │ │ └── output │ └── hilti.set.expire-clear │ │ └── output ├── .gitignore ├── spicy │ ├── parsers │ │ ├── tftp │ │ │ └── tftp-rrq.dat │ │ ├── dns │ │ │ └── single.dat │ │ ├── x509 │ │ │ ├── google.der │ │ │ └── v1cert.der │ │ ├── tar │ │ │ └── data.tar.bz2 │ │ ├── zip │ │ │ └── archive.zip.dat │ │ ├── asf │ │ │ ├── charley-header.wmv │ │ │ └── wildlife-header.wmv │ │ ├── smb2 │ │ │ ├── create-request.dat │ │ │ ├── write-request.dat │ │ │ ├── getinfo-response.dat │ │ │ ├── setinfo-request.dat │ │ │ ├── create-response-file.dat │ │ │ ├── tree-connect-request.dat │ │ │ └── create-response-file-error.dat │ │ ├── ms-cert │ │ │ └── data.ms-root-certs.sst │ │ └── http │ │ │ └── request.dat │ ├── list │ │ ├── size.spicy │ │ └── ctor.spicy │ ├── misc │ │ └── hello-world-spicy-driver.spicy │ ├── integer │ │ └── cast-to-interval.spicy │ └── bytes │ │ └── join.spicy ├── hilti │ ├── iosrc │ │ └── trace.pcap │ └── analysis │ │ ├── flow-fibo.hlt │ │ ├── flow-foreach.hlt │ │ ├── flow-exceptions.hlt │ │ └── flow-hello-world.hlt ├── Scripts │ ├── remove-ansi │ └── canonify-hilti-prof └── Failing │ └── README ├── .gitignore ├── hilti ├── codegen │ ├── instructions │ │ └── old │ │ │ └── .gitignore │ ├── libffi │ │ ├── testsuite │ │ │ └── config │ │ │ │ └── default.exp │ │ └── doc │ │ │ ├── stamp-vti │ │ │ └── version.texi │ └── common.h ├── builder │ └── builder.h └── TODO ├── docker ├── hello-world.spicy ├── ssh-single-conn.trace └── ssh-banner.bro ├── ast └── type.cc ├── scripts ├── llvm-ranlib-wrapper └── llvm-ar-wrapper ├── cmake └── CommonCMakeConfig.cmake └── util └── CMakeLists.txt /VERSION: -------------------------------------------------------------------------------- 1 | 0.5-23 2 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /libhilti/file.: -------------------------------------------------------------------------------- 1 | c 2 | -------------------------------------------------------------------------------- /doc/_static/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spicy/parser/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | build 3 | -------------------------------------------------------------------------------- /doc/scripts/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /libspicy/3rdparty/libb64-1.2/TODO: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spicy/codegen/coercion-builder.cc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spicy/codegen/coercion-builder.h: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.update-changes.cfg: -------------------------------------------------------------------------------- 1 | show_authors=1 2 | -------------------------------------------------------------------------------- /bro/benchmarks/.gitignore: -------------------------------------------------------------------------------- 1 | .tmp 2 | -------------------------------------------------------------------------------- /doc/index.html: -------------------------------------------------------------------------------- 1 | ./_templates/index.html -------------------------------------------------------------------------------- /libhilti/justrx/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /libspicy/3rdparty/libb64: -------------------------------------------------------------------------------- 1 | libb64-1.2 -------------------------------------------------------------------------------- /spicy/codegen/codegen.: -------------------------------------------------------------------------------- 1 | c c 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.dns-compiler/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.dns-spicy/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-spicy/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libspicy/3rdparty/libb64-1.2/src/depend: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.eq/output: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.lt/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.jit.fibo/output: -------------------------------------------------------------------------------- 1 | 55 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.size/output: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.protocols.dns/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.dns-spicy/dns.log.diff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-compiler/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-spicy/http.log.diff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libhilti/3rdparty/khash/khash_types.h: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.empty-function/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.ref-cnt-call-a/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.ref-cnt-call-b/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.unused-local/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.wrong-order/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.debug.assert-debug-2/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.debug.assert-release/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.eq-2/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.lt-2/output: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.lt-3/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.dup-label/output: -------------------------------------------------------------------------------- 1 | A 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.basic-empty/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.add-2/output: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.add-3/output: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.add/output: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.binary/output: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.div-2/output: -------------------------------------------------------------------------------- 1 | 20 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.div/output: -------------------------------------------------------------------------------- 1 | 20 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.eq-2/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.eq/output: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.ext/output: -------------------------------------------------------------------------------- 1 | 50 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.geq-2/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.geq-3/output: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.geq/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.leq-2/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.leq-3/output: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.leq/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.lt-2/output: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.lt-3/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.lt/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.mul/output: -------------------------------------------------------------------------------- 1 | 100 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.shortcuts-2/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.shortcuts-3/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.shortcuts-4/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.shortcuts/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.sub-2/output: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.sub-3/output: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.sub-4/output: -------------------------------------------------------------------------------- 1 | 58 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.sub/output: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.jit.dtor/output: -------------------------------------------------------------------------------- 1 | 1223 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.iterator-empty/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.misc.fibo/output: -------------------------------------------------------------------------------- 1 | 55 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.iterator-empty/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.empty/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.length/output: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.index/output: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.optional.wrong-const/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.ctor/output: -------------------------------------------------------------------------------- 1 | CTOR 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.var/output: -------------------------------------------------------------------------------- 1 | b"Foo!" 2 | -------------------------------------------------------------------------------- /bro/benchmarks/acl2hlt/.gitignore: -------------------------------------------------------------------------------- 1 | *tmp* 2 | *.log 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.global-id/output: -------------------------------------------------------------------------------- 1 | 1 X 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.protocols.dns-opt/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.protocols.http-opt/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.protocols.http/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.dns-compiler/dns.log.diff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.dns-spicy-compiler-opt/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.dns-spicy-compiler/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-compiler/http.log.diff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-spicy-compiler/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.ctor-empty/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.ctor/output: -------------------------------------------------------------------------------- 1 | Hey you! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.liveness/output: -------------------------------------------------------------------------------- 1 | a 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.void/output: -------------------------------------------------------------------------------- 1 | Foo! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.select/output: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.debug.assert-release-2/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.add-2/output: -------------------------------------------------------------------------------- 1 | 4.200000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.add/output: -------------------------------------------------------------------------------- 1 | 12.630000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.div/output: -------------------------------------------------------------------------------- 1 | 20.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.sub/output: -------------------------------------------------------------------------------- 1 | 10.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.global-init/output: -------------------------------------------------------------------------------- 1 | A 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.basic-empty-ref/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.binary-2/output: -------------------------------------------------------------------------------- 1 | 16 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.binary-3/output: -------------------------------------------------------------------------------- 1 | 85 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.mul-2/output: -------------------------------------------------------------------------------- 1 | 100 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.pow/output: -------------------------------------------------------------------------------- 1 | 512 2 | 8 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.libhilti.print-2/output: -------------------------------------------------------------------------------- 1 | Foo! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.port.pack/output: -------------------------------------------------------------------------------- 1 | \x01\x02 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.concat-3/output: -------------------------------------------------------------------------------- 1 | Foo! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.length-2/output: -------------------------------------------------------------------------------- 1 | 4 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.time.wall/output: -------------------------------------------------------------------------------- 1 | d:1XXX... 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign-7/output: -------------------------------------------------------------------------------- 1 | () 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.coerce/output: -------------------------------------------------------------------------------- 1 | (1,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.length/output: -------------------------------------------------------------------------------- 1 | 3 2 | 0 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.cast-int/output: -------------------------------------------------------------------------------- 1 | 1 2 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.coerce/output: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.ctor/output: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.methods/output: -------------------------------------------------------------------------------- 1 | [hello] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.policy/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.size/output: -------------------------------------------------------------------------------- 1 | Size 10 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.new/output: -------------------------------------------------------------------------------- 1 | <> 2 | <> 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .tags 2 | build 3 | hilti-docker-build.tmp 4 | -------------------------------------------------------------------------------- /bro/scripts/bif/__load__.bro: -------------------------------------------------------------------------------- 1 | 2 | @load ./testing.bro 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-spicy-compiler-opt/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-spicy-compiler/http.log.diff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.global/output: -------------------------------------------------------------------------------- 1 | 123 2 | 1234 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.import-global/output: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.div-2/output: -------------------------------------------------------------------------------- 1 | 14.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.div-3/output: -------------------------------------------------------------------------------- 1 | -14.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.mul-2/output: -------------------------------------------------------------------------------- 1 | 100.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.mul/output: -------------------------------------------------------------------------------- 1 | 4284.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.sub-2/output: -------------------------------------------------------------------------------- 1 | 10.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.function.value/output: -------------------------------------------------------------------------------- 1 | 42 2 | 44 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.trunc/output: -------------------------------------------------------------------------------- 1 | 257 2 | 1 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.exists/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.get-default/output: -------------------------------------------------------------------------------- 1 | 10 2 | 42 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.get-map-default/output: -------------------------------------------------------------------------------- 1 | 100 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.misc.hello-world-int/output: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.ref.coerce-null-var/output: -------------------------------------------------------------------------------- 1 | (Null) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.invert/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.concat-2/output: -------------------------------------------------------------------------------- 1 | B\u00e4r! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.double-set/output: -------------------------------------------------------------------------------- 1 | 2222 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.get/output: -------------------------------------------------------------------------------- 1 | 100 2 | Hurz 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.context-no-copy/output: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign/output: -------------------------------------------------------------------------------- 1 | (42,foo,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.equal/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.inline-type/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.bytes/output: -------------------------------------------------------------------------------- 1 | 1234567890 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.list-count/output: -------------------------------------------------------------------------------- 1 | 12345 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.core.ifif/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 1 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.scope-across-mods/output: -------------------------------------------------------------------------------- 1 | A 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.hilti-func/output: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.hlt-func/output: -------------------------------------------------------------------------------- 1 | b"Foo" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.locals/output: -------------------------------------------------------------------------------- 1 | b"X" 21 42 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.constants/output: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.multiple-lists/output: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.convert-regexp/output: -------------------------------------------------------------------------------- 1 | 12346 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.offset-switch/output: -------------------------------------------------------------------------------- 1 | 8 2 | 8 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.regexp-at-eod/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-bytes/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.event-var/output: -------------------------------------------------------------------------------- 1 | addr:0xXXX 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.mod/output: -------------------------------------------------------------------------------- 1 | 5 2 | 5 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.locals/output: -------------------------------------------------------------------------------- 1 | 0 2 | 2 3 | 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.queue/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/logs.http-spicy-compiler-opt/http.log.diff: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /doc/hilti/examples/builder-hello-world-compile.cc: -------------------------------------------------------------------------------- 1 | MISSING 2 | -------------------------------------------------------------------------------- /libhilti/cmake-config.h.in: -------------------------------------------------------------------------------- 1 | 2 | #cmakedefine HAVE_MALLINFO 3 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | diag.log 2 | .tmp 3 | .btest.failed.dat 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.append-empty/output: -------------------------------------------------------------------------------- 1 | cdef 2 | f 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.case-conv/output: -------------------------------------------------------------------------------- 1 | abcd 2 | ABCD 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.copy/output: -------------------------------------------------------------------------------- 1 | HalloDuDaHalloDuDa 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.result/output: -------------------------------------------------------------------------------- 1 | Arg was ICSI 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.dead-target-ref-cnt/output: -------------------------------------------------------------------------------- 1 | done 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.declare-global/output: -------------------------------------------------------------------------------- 1 | Test 2 | 42 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.unequal/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.scoped-type/output: -------------------------------------------------------------------------------- 1 | Undef 2 | DEF 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.to-int/output: -------------------------------------------------------------------------------- 1 | 10 2 | 30 3 | -1 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.function.value-in-struct/output: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.jit.hello-world/output: -------------------------------------------------------------------------------- 1 | Hello, World! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.basic-ref/output: -------------------------------------------------------------------------------- 1 | [A, B, C, D, E] 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.insert-repeat/output: -------------------------------------------------------------------------------- 1 | 30 2 | 40 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.misc.hello-world/output: -------------------------------------------------------------------------------- 1 | Hello, World! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.ref.cast-bool/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.ref.coerce-null-const/output: -------------------------------------------------------------------------------- 1 | (Null) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.concat/output: -------------------------------------------------------------------------------- 1 | Foo!B\u00e4r! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.get-default/output: -------------------------------------------------------------------------------- 1 | field value 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.timer.simple/output: -------------------------------------------------------------------------------- 1 | Yippie! 2 | 42 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign-2/output: -------------------------------------------------------------------------------- 1 | (42,foo,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign-3/output: -------------------------------------------------------------------------------- 1 | (42,foo,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign-4/output: -------------------------------------------------------------------------------- 1 | (42,foo,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign-5/output: -------------------------------------------------------------------------------- 1 | (42,foo,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.assign-6/output: -------------------------------------------------------------------------------- 1 | (42,foo,True) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.derived-length/output: -------------------------------------------------------------------------------- 1 | b"ABC" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.startswith/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.convert/output: -------------------------------------------------------------------------------- 1 | AABB567890 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.switch/output: -------------------------------------------------------------------------------- 1 | 123452234532345 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.core.ifelse-coerce/output: -------------------------------------------------------------------------------- 1 | i1 2 | !i2 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.coerce-bool/output: -------------------------------------------------------------------------------- 1 | True False 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.cast-into-unit/output: -------------------------------------------------------------------------------- 1 | b"WORKS" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.operator-unit/output: -------------------------------------------------------------------------------- 1 | 4 2 | 1 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.misc.hello-world/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.parsers.http.gc-release/gc-leaks: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.attr/output: -------------------------------------------------------------------------------- 1 | b"1234" 2 | b"567890" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.convert-enum/output: -------------------------------------------------------------------------------- 1 | A 2 | B 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.convert/output: -------------------------------------------------------------------------------- 1 | b"aabb" 2 | 567890 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.has-attr/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.input/output: -------------------------------------------------------------------------------- 1 | 49 2 | 50 3 | 51 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.local-var-init/output: -------------------------------------------------------------------------------- 1 | b"1234" 2 | -------------------------------------------------------------------------------- /tests/spicy/parsers/tftp/tftp-rrq.dat: -------------------------------------------------------------------------------- 1 | archive.zipnetascii -------------------------------------------------------------------------------- /bro/scripts/bro/hilti/base/__load__.bro: -------------------------------------------------------------------------------- 1 | 2 | @load ./main.bro 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.anon-function/output: -------------------------------------------------------------------------------- 1 | anon-func arg 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.types.table-default/output: -------------------------------------------------------------------------------- 1 | 21 2 | 42 3 | -------------------------------------------------------------------------------- /doc/hilti/overview.rst: -------------------------------------------------------------------------------- 1 | Overview [Missing] 2 | ~~~~~~~~~~~~~~~~~~ 3 | -------------------------------------------------------------------------------- /hilti/codegen/instructions/old/.gitignore: -------------------------------------------------------------------------------- 1 | _build 2 | _generated 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.incr-by/output: -------------------------------------------------------------------------------- 1 | 12345 2 | 1234567890 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.channel.write-read/output: -------------------------------------------------------------------------------- 1 | 42 2 | 15 3 | 42 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.locals-init/output: -------------------------------------------------------------------------------- 1 | 42 2 | foo 3 | bar 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.no-return-in-dead-block/output: -------------------------------------------------------------------------------- 1 | yes 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.switch-int/output: -------------------------------------------------------------------------------- 1 | 3 2 | 2 3 | 1 4 | -1 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.geq/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | True 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.leq/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.hello-world-bytes/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.const-promotion/output: -------------------------------------------------------------------------------- 1 | 42 2 | 5 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.ctor/output: -------------------------------------------------------------------------------- 1 | { a: 1, b: 2 } 2 | { } 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.exists-struct/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.misc.hello-world-str/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.opt.hello-world-jit/output: -------------------------------------------------------------------------------- 1 | Hello, World! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.port.from-string/output: -------------------------------------------------------------------------------- 1 | 80/tcp 2 | 53/udp 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.enum/output: -------------------------------------------------------------------------------- 1 | { A, B } 2 | True 3 | False 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.get-default-2/output: -------------------------------------------------------------------------------- 1 | ins_default 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.get-default-3/output: -------------------------------------------------------------------------------- 1 | struct_default 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.local-vars-and-threads/output: -------------------------------------------------------------------------------- 1 | 54 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.equal-nested/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.iterator-mod/output: -------------------------------------------------------------------------------- 1 | 10 2 | 88 3 | 99 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.join/output: -------------------------------------------------------------------------------- 1 | b"www.icsi.berkeley.edu" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.to-int/output: -------------------------------------------------------------------------------- 1 | -123 2 | 123 3 | 160 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.ignore-parse/output: -------------------------------------------------------------------------------- 1 | 1234567890 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.parse-vs-compose/output: -------------------------------------------------------------------------------- 1 | 124356 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.core.assign/output: -------------------------------------------------------------------------------- 1 | 42 2 | True 3 | False 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.core.ternary/output: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 10 4 | 20 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.basic/output: -------------------------------------------------------------------------------- 1 | AAA BBB CCC CCC Undef 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.print/output: -------------------------------------------------------------------------------- 1 | A 2 | Undef 3 | Undef 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.hilti-func-from-hook/output: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.cast-to-interval/output: -------------------------------------------------------------------------------- 1 | 42.000000s 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-const/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.eof/output: -------------------------------------------------------------------------------- 1 | 49 2 | 50 3 | 51 4 | 52 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-empty/output: -------------------------------------------------------------------------------- 1 | b"BBB\x0a" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.parsers.http.gc-release-chunked/gc-leaks: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.parsers.http.gc-release-sink/gc-leaks: -------------------------------------------------------------------------------- 1 | 8 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.map/output: -------------------------------------------------------------------------------- 1 | Connecting sink... 2 | b"b" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.assign-field/output: -------------------------------------------------------------------------------- 1 | b"Overwritten!" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.input-sink/output: -------------------------------------------------------------------------------- 1 | 49 2 | 50 3 | 51 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-scope/output: -------------------------------------------------------------------------------- 1 | b"1" 2 | b b"2" 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.assign-name/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.cond/output: -------------------------------------------------------------------------------- 1 | YES 2 | NO 3 | - 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.field/output: -------------------------------------------------------------------------------- 1 | 42 2 | DeFaUlT 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.neg/output: -------------------------------------------------------------------------------- 1 | -42 2 | -3.140000 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.if/output: -------------------------------------------------------------------------------- 1 | yes 2 | yes 3 | yes 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.export-enum/output: -------------------------------------------------------------------------------- 1 | TupleEnum::TestEnum_A 2 | -------------------------------------------------------------------------------- /docker/hello-world.spicy: -------------------------------------------------------------------------------- 1 | module Test; 2 | 3 | print "Hello, world!"; 4 | -------------------------------------------------------------------------------- /libspicy/3rdparty/sha2/READM.hilti: -------------------------------------------------------------------------------- 1 | From https://github.com/ogay/sha2. 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.builder.hello-world-jit/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.concat/output: -------------------------------------------------------------------------------- 1 | 123456 2 | 456 3 | 123 4 | 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.excpt-caught/output: -------------------------------------------------------------------------------- 1 | Caught it! 2 | init 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.classifier.bytes-prefix/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.classifier.matching/output: -------------------------------------------------------------------------------- 1 | rule two 2 | rule two 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.chained-blocks/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | -1 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.clear/output: -------------------------------------------------------------------------------- 1 | foo 2 | (1,2) 3 | 4 | (0,0) 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.default-ctor/output: -------------------------------------------------------------------------------- 1 | 0 2 | (0,) 3 | (Null) 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.no-return-in-dead-block-chain/output: -------------------------------------------------------------------------------- 1 | yes 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.switch-string/output: -------------------------------------------------------------------------------- 1 | 3 2 | 2 3 | 1 4 | -1 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.from-init/output: -------------------------------------------------------------------------------- 1 | A 2 | DEF 3 | Unknown-42 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch/output: -------------------------------------------------------------------------------- 1 | A 2 | Caught it! 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.hello-world-string/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.operators/output: -------------------------------------------------------------------------------- 1 | 3 2 | 0 3 | 2 4 | 0 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.ctor-default/output: -------------------------------------------------------------------------------- 1 | { a: 1, b: 2 } 2 | 10 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.get-default-str/output: -------------------------------------------------------------------------------- 1 | Foo 2 | April April 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.port.eq/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | False 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.ctor-set/output: -------------------------------------------------------------------------------- 1 | /abc/ | /def/ | /ghi/ 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.ctor/output: -------------------------------------------------------------------------------- 1 | abc 2 | def 3 | ghi 4 | ghi 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.insert-repeat/output: -------------------------------------------------------------------------------- 1 | { (Bar,2), (Foo,1) } 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.constants/output: -------------------------------------------------------------------------------- 1 | Foo 2 | "xyz" 3 | x""yz 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.global-init-func/output: -------------------------------------------------------------------------------- 1 | 6 10 2 | 6 20 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.unset.coerce/output: -------------------------------------------------------------------------------- 1 | 2 | addr:(nil) 3 | (Null) 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.push_back/output: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 30 4 | 3 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.append/output: -------------------------------------------------------------------------------- 1 | b"DEFGHI" 2 | b"ABCDEFGHI" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.plus/output: -------------------------------------------------------------------------------- 1 | b"123456789" 2 | b"ABCDEFGHI" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.core.hello/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | 42 3 | True 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.parse-bitfield-enum/output: -------------------------------------------------------------------------------- 1 | A 2 | Unknown-3 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.overloaded/output: -------------------------------------------------------------------------------- 1 | b"bytes" 2 | b"int" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.parsers.http.gc-release-sink/size: -------------------------------------------------------------------------------- 1 | SIZE 102400 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.external-hooks-unit-arg/output: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.filter/output: -------------------------------------------------------------------------------- 1 | b"My little filter test!\x0a" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.hide/output: -------------------------------------------------------------------------------- 1 | < 2 | a=12, 3 | c=90 4 | > 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.offset/output: -------------------------------------------------------------------------------- 1 | 4 2 | 10 3 | 15 4 | b"FGHJI" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.print-attr/output: -------------------------------------------------------------------------------- 1 | b"1234" 2 | b"567890" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.regexp/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.void/output: -------------------------------------------------------------------------------- 1 | b"1234" 2 | void 3 | b"567890" 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.bifs-varargs/output: -------------------------------------------------------------------------------- 1 | foo 42 2 | 12.03.0 secs 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.div/output: -------------------------------------------------------------------------------- 1 | 2 2 | 2 3 | 2.000000 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.record-ctor/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.size/output: -------------------------------------------------------------------------------- 1 | 3 2 | 3 3 | 3 4 | 3 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.globals/output: -------------------------------------------------------------------------------- 1 | 0 2 | 2 3 | 4 | 5 5 | 8 6 | -------------------------------------------------------------------------------- /hilti/codegen/libffi/testsuite/config/default.exp: -------------------------------------------------------------------------------- 1 | load_lib "standard.exp" 2 | -------------------------------------------------------------------------------- /libhilti/justrx/src/Makefile: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | all: 4 | ( cd .. && make ) 5 | -------------------------------------------------------------------------------- /libhilti/justrx/test/Makefile: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | 3 | all: 4 | ( cd .. && make ) 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bool.unpack/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | False 4 | True 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.clone/output: -------------------------------------------------------------------------------- 1 | FooBar 2 | Foo 3 | -- 4 | Bar 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.find/output: -------------------------------------------------------------------------------- 1 | 4567890 2 | 1234567890 3 | 0 4 | 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.sub/output: -------------------------------------------------------------------------------- 1 | 01234567890 2 | 2345 3 | 01234567890 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.unbound-3/output: -------------------------------------------------------------------------------- 1 | 10.000000/20.000000 2 | 30 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.classifier.simple-direct/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | 42 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.clone-atomic/output: -------------------------------------------------------------------------------- 1 | 64 2 | True 3 | 42.420000 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.mask/output: -------------------------------------------------------------------------------- 1 | 15 2 | 3 3 | 0 4 | 1 5 | 15 6 | 3 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.iterator/output: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 30 4 | 40 5 | 50 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.enums/output: -------------------------------------------------------------------------------- 1 | { A: a, B: b } 2 | True 3 | False 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.get-default-tuple/output: -------------------------------------------------------------------------------- 1 | (Foo,1) 2 | (FooBar,42) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.overlay.detached/output: -------------------------------------------------------------------------------- 1 | 10203 2 | 4050607 3 | 8090a0b 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.basic-int/output: -------------------------------------------------------------------------------- 1 | { 10, 20 } 2 | True 3 | True 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.basic-str/output: -------------------------------------------------------------------------------- 1 | { Bar, Foo } 2 | True 3 | True 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.isset/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | True 4 | False 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.unset/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | False 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.timer.simple-with-default-mgr/output: -------------------------------------------------------------------------------- 1 | Yippie! 2 | 42 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.timer.simple-with-global-time/output: -------------------------------------------------------------------------------- 1 | Yippie! 2 | 42 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.iterator/output: -------------------------------------------------------------------------------- 1 | 10 2 | 0 3 | 11 4 | 0 5 | 12 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.hilti-spicy-func/output: -------------------------------------------------------------------------------- 1 | addr:(nil) 2 | 42 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.bitfield-order/output: -------------------------------------------------------------------------------- 1 | 0 2 2 | 1 0 3 | 1 0 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-unit-byteorder/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.libspicy.mktime/output: -------------------------------------------------------------------------------- 1 | 2000-01-02T11:04:05.000000000Z 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.comprehension/output: -------------------------------------------------------------------------------- 1 | [2, 4, 6, 8] 2 | [2, 4, 8] 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-length-zero/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-list-until/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-list-while/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.map.bytes/output: -------------------------------------------------------------------------------- 1 | b"AA" b"AA" 2 | b"L-A" 3 | b"L-A" 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.misc.hello-world-spicy-driver/output: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.time.smb-calc/output: -------------------------------------------------------------------------------- 1 | 2009-04-23T06:18:23.000000000Z 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.bytes-until/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.convert-integer-signed/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink-filter/output: -------------------------------------------------------------------------------- 1 | b"My little filter test!\x0a" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.var-hooks/output: -------------------------------------------------------------------------------- 1 | FOO1 b"Foo!" 2 | FOO2 b"Foo!" 3 | -------------------------------------------------------------------------------- /bro/tests/.gitignore: -------------------------------------------------------------------------------- 1 | .tmp 2 | .btest.failed.dat 3 | diag.log 4 | coverage.log 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.custom-hilti-code.basic/output: -------------------------------------------------------------------------------- 1 | Hello from HILTI! 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.set-ctor/output: -------------------------------------------------------------------------------- 1 | { } 2 | { 3, 1, 2 } 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.times/output: -------------------------------------------------------------------------------- 1 | 200 2 | 200 3 | 200.000000 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.functions/output: -------------------------------------------------------------------------------- 1 | foo1 2 | foo2 3 | foo3 4 | foo4 42 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.indirect-call-conn-record/output: -------------------------------------------------------------------------------- 1 | -> 131.159.14.23 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.add/output: -------------------------------------------------------------------------------- 1 | { 1, 2 } 2 | { (2,B), (1,A) } 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.del-table/output: -------------------------------------------------------------------------------- 1 | { } 2 | { (2,3,4): B } 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.addr.eq/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | True 5 | False 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.unpack-exact/output: -------------------------------------------------------------------------------- 1 | sub=\x01\x02\x03\x04\x05 diff=5 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.caddr.operators/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | False 4 | True 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.clone/output: -------------------------------------------------------------------------------- 1 | s/ab/10.100000 2 | s/a/20.200000 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.unbound-4/output: -------------------------------------------------------------------------------- 1 | ICSI/ICIR/10.000000/20.000000 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.classifier.simple-no-prio/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | 43 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.complex-abi-args/output: -------------------------------------------------------------------------------- 1 | (256,42) 2 | (12345,23456,42) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.constants/output: -------------------------------------------------------------------------------- 1 | 42 2 | Hello world! 3 | abc 4 | def 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.eq/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | True 5 | True 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-call/output: -------------------------------------------------------------------------------- 1 | Foo 2 | Caught it! 3 | Done 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-double-2/output: -------------------------------------------------------------------------------- 1 | A 2 | Caught it 2! 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-double/output: -------------------------------------------------------------------------------- 1 | A 2 | Caught it 1! 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-internal/output: -------------------------------------------------------------------------------- 1 | A 2 | Caught it! 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.threads/output.log.sorted: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.jit.bytes-sub/output: -------------------------------------------------------------------------------- 1 | 01234567890 2 | 2345 3 | 01234567890 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.basic-int/output: -------------------------------------------------------------------------------- 1 | { 10: Foo, 20: Bar } 2 | Foo 3 | Bar 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.basic-str/output: -------------------------------------------------------------------------------- 1 | { Bar: 20, Foo: 10 } 2 | 10 3 | 20 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.misc.block-series/output: -------------------------------------------------------------------------------- 1 | 1! 2 | 2! 3 | 3! 4 | 4! 5 | 5! 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.overlay.static-get/output: -------------------------------------------------------------------------------- 1 | 10203 2 | 4050607 3 | 8090a0b 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.cycle/output: -------------------------------------------------------------------------------- 1 | > 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.yield-until/output: -------------------------------------------------------------------------------- 1 | Part 1. 2 | Part 1. Part 2! 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.coerce-bool/output: -------------------------------------------------------------------------------- 1 | False 2 | <3.140000> True 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.case-convert/output: -------------------------------------------------------------------------------- 1 | b"12AWSEDRF3" 2 | b"12awsedrf3" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.parse-enum/output: -------------------------------------------------------------------------------- 1 | 10 2 | A 3 | Unknown-65535 4 | F 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-module-byteorder/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-list-foreach/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.tuple.enum/output: -------------------------------------------------------------------------------- 1 | (A,2,3) 2 | True 3 | False 4 | A A C 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.field-init/output: -------------------------------------------------------------------------------- 1 | A b"" 2 | B 0 3 | C [] 4 | 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.filter-double/output: -------------------------------------------------------------------------------- 1 | b"My little filter test!\x0a" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.set-input/output: -------------------------------------------------------------------------------- 1 | b"12345" b"67890" b"67890" b"67890" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink-unit-filter/output: -------------------------------------------------------------------------------- 1 | My little filter test!\x0a 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-if/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /ast/type.cc: -------------------------------------------------------------------------------- 1 | 2 | #include "type.h" 3 | 4 | ast::type::Trait::~Trait() 5 | { 6 | } 7 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.not/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | False 4 | True 5 | -------------------------------------------------------------------------------- /doc/_static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/doc/_static/logo.png -------------------------------------------------------------------------------- /doc/hilti/c-api-overview.rst: -------------------------------------------------------------------------------- 1 | 2 | Overview [Missing] 3 | ================== 4 | 5 | -------------------------------------------------------------------------------- /doc/spicy/internals.rst: -------------------------------------------------------------------------------- 1 | 2 | Internals [Missing] 3 | =================== 4 | 5 | 6 | -------------------------------------------------------------------------------- /scripts/llvm-ranlib-wrapper: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | 3 | # We just ignore this. 4 | -------------------------------------------------------------------------------- /spicy/operators/tmp/test-address.cc.tmp: -------------------------------------------------------------------------------- 1 | 2 | #include "test-address.h" 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.addr.to-net/output: -------------------------------------------------------------------------------- 1 | 192.168.1.1/32 2 | 2001:db8::1428:57ab/128 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.trim/output: -------------------------------------------------------------------------------- 1 | 012345ABCDEF 2 | 345ABCDEF 3 | ABCDEF 4 | DEF 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.c-interface/output: -------------------------------------------------------------------------------- 1 | 21 2 | True 3 | C: 42 4 | C: FooFoo 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.unbound/output: -------------------------------------------------------------------------------- 1 | ICSI/ICIR/10.000000/20.000000 2 | 30 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.foreach-next/output: -------------------------------------------------------------------------------- 1 | A 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | B 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.globals/output: -------------------------------------------------------------------------------- 1 | 42 2 | [A, B, C] 3 | hurz 4 | [1, 2, 3] 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.uninitialized/output: -------------------------------------------------------------------------------- 1 | |0||False|0.000000|(,0,0.000000)|0x0| 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.hello-world-append/foo.txt: -------------------------------------------------------------------------------- 1 | Out of band 2 | Hello, world! 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.threads-same/output.log.sorted: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.basic/output: -------------------------------------------------------------------------------- 1 | 1st hook function. 2 | 2nd hook function. 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.stop/output: -------------------------------------------------------------------------------- 1 | 3rd hook function. 2 | 2nd hook function. 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.unpack-bits/output: -------------------------------------------------------------------------------- 1 | hex=0xff dec=255 2 | hex=0x1 dec=1 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.unpack-host/output: -------------------------------------------------------------------------------- 1 | hex=0x1020304 dec=16909060 diff=4 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.net.eq-net/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | True 5 | False 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.overlay.simple/output: -------------------------------------------------------------------------------- 1 | 10203 2 | 4050607 3 | 8090a0b 4 | c0d0e0f 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.iterator/output: -------------------------------------------------------------------------------- 1 | BBB 2 | FFF 3 | CCC 4 | DDD 5 | AAA 6 | EEE 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.global-vars-and-threads/output: -------------------------------------------------------------------------------- 1 | 5 4 2 | 5 8 3 | 5 16 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.timer.time-with-default/output: -------------------------------------------------------------------------------- 1 | 1970-01-01T00:00:05.000000000Z 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.chunked-len/output: -------------------------------------------------------------------------------- 1 | b"123" 2 | b"456" 3 | b"789" 4 | b"0" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.chunked-until/output: -------------------------------------------------------------------------------- 1 | b"123" 2 | b"456" 3 | b"789" 4 | b"" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.double.parse/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.hilti-c-func/output: -------------------------------------------------------------------------------- 1 | In C: 2 | foo 3 | (1,True,abc) 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-list-until-including/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.objects.middle/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.objects.postfix/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.objects.prefix/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.bitfield/output: -------------------------------------------------------------------------------- 1 | 1 2 | 3 3 | 3 4 | 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.ctor-list/output: -------------------------------------------------------------------------------- 1 | ctor 2 | ctor 3 | ctor 4 | ctor 5 | ctor 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.enums-accross-imports/output: -------------------------------------------------------------------------------- 1 | switch-A 2 | > 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.input-parse/output: -------------------------------------------------------------------------------- 1 | b"1234" b"5678" b"1234567890" b"90" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.print-id/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink-double-filter/output: -------------------------------------------------------------------------------- 1 | b"My little filter test!\x0a" 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.add/output: -------------------------------------------------------------------------------- 1 | 3 2 | ab 3 | 3.000000 4 | 60.000000s 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.has-field/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | False 4 | True 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.remove-from/output: -------------------------------------------------------------------------------- 1 | 90 2 | 90.000000 3 | 90.000000s 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.hello-world/output: -------------------------------------------------------------------------------- 1 | Hello HILTI World! 2 | True 3 | foobar 4 | -------------------------------------------------------------------------------- /cmake/CommonCMakeConfig.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) 2 | -------------------------------------------------------------------------------- /doc/_static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/doc/_static/favicon.ico -------------------------------------------------------------------------------- /doc/hilti/c-api-types.rst: -------------------------------------------------------------------------------- 1 | 2 | Type Mappings [Missing] 3 | ======================= 4 | 5 | -------------------------------------------------------------------------------- /doc/spicy/c-api.rst: -------------------------------------------------------------------------------- 1 | 2 | .. _spicy_c-api: 3 | 4 | C API [Missing] 5 | ================ 6 | -------------------------------------------------------------------------------- /libhilti/justrx/README: -------------------------------------------------------------------------------- 1 | 2 | TODO: Write README and installation instructions. 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.addr.from-string/output: -------------------------------------------------------------------------------- 1 | 1.2.3.4 2 | 2001:db8:85a3::8a2e:370:7334 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.join/output: -------------------------------------------------------------------------------- 1 | foo.bar 2 | foobar 3 | fooXXXbar 4 | 1.2.3 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.pack/output: -------------------------------------------------------------------------------- 1 | FooX 2 | FooXY 3 | \x00\x03Foo 4 | \x03\x00Foo 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.c-interface-noyield/output: -------------------------------------------------------------------------------- 1 | 21 2 | True 3 | C: 42 4 | C: FooFoo 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.ctor-hook/output: -------------------------------------------------------------------------------- 1 | 1st hook function. 2 | 2nd hook function. 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.hook-void/output: -------------------------------------------------------------------------------- 1 | 1st hook function. 2 | 2nd hook function. 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.unbound-2/output: -------------------------------------------------------------------------------- 1 | ICSI/ICIR/10.000000/20.000000 2 | hurra 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-multiple/output: -------------------------------------------------------------------------------- 1 | A 2 | Caught the right one! 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.port.protocol/output: -------------------------------------------------------------------------------- 1 | 80/tcp 2 | TCP 3 | 53/udp 4 | UDP 5 | 80 53 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.basic-tuple-key/output: -------------------------------------------------------------------------------- 1 | { (Foo,1), (Bar,2) } 2 | True 3 | True 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.find/output: -------------------------------------------------------------------------------- 1 | 1 2 | -1 3 | 0 4 | 3 5 | -1 6 | 2 7 | 1 8 | 0 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.join/output: -------------------------------------------------------------------------------- 1 | foo.bar 2 | foobar 3 | fooXXXbar 4 | 1.2.3 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.get/output: -------------------------------------------------------------------------------- 1 | 2 | 42 3 | True 4 | False 5 | Caught it! 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.chunked-eod/output: -------------------------------------------------------------------------------- 1 | b"123" 2 | b"456" 3 | b"789" 4 | b"0\x0a" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.compare-enum/output: -------------------------------------------------------------------------------- 1 | equal 2 | not equal 3 | equal 4 | not equal 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.optional.consts/output: -------------------------------------------------------------------------------- 1 | 1 2 | ABC 3 | ABC 4 | (not set) 5 | b"ABC" 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.custom-length/output: -------------------------------------------------------------------------------- 1 | b"0000011111222223333344444" 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.on-hooks/output: -------------------------------------------------------------------------------- 1 | 1a 2 | 1b 3 | 2a 4 | 2b 5 | 2c 6 | b"567890" 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.subunit/output: -------------------------------------------------------------------------------- 1 | 2 | , b=b"567890"> 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-void/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 or 3 3 | 2 or 3 4 | something else 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.tokens/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.hook/output: -------------------------------------------------------------------------------- 1 | 3 1 2 | 2 1 3 | False 4 | 3 2 5 | 2 2 6 | 1 2 7 | True 8 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.more-locals/output: -------------------------------------------------------------------------------- 1 | Foo_B 2 | Foo_C 3 | Foo_A 4 | 0 5 | 1 6 | 42 7 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.next/output: -------------------------------------------------------------------------------- 1 | B 3 2 | B 1 3 | C 3 4 | C 1 5 | A 3 6 | A 1 7 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.tuple-arg/output: -------------------------------------------------------------------------------- 1 | [i=1, s=OpenSSH_3.9p1] 2 | [i=1, s=OpenSSH_3.8.1p1] 3 | -------------------------------------------------------------------------------- /doc/hilti/libhilti.rst: -------------------------------------------------------------------------------- 1 | Run-Time Library [Missing] 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | 4 | 5 | -------------------------------------------------------------------------------- /libspicy/3rdparty/rc4/rc4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/libspicy/3rdparty/rc4/rc4 -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.contains/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | True 4 | False 5 | True 6 | True 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.freeze/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | False 4 | False 5 | True 6 | False 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.foreach-break/output: -------------------------------------------------------------------------------- 1 | A 2 | 1 1 3 | 2 1 4 | 3 1 5 | 4 1 6 | 5 1 7 | B 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.hash/output: -------------------------------------------------------------------------------- 1 | 101574 2 | 4611813965503076163 3 | 1470130017921685458 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.val-assign/output: -------------------------------------------------------------------------------- 1 | A = 10 2 | BC = 11 3 | DEF = 30 4 | Undef = -1 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.basic-reordered/output: -------------------------------------------------------------------------------- 1 | 1st hook function. 2 | 2nd hook function. 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.basic-tuple-key/output: -------------------------------------------------------------------------------- 1 | { (Foo,1): 10, (Bar,2): 20 } 2 | 10 3 | 20 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.func-return/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.get-by-type/output: -------------------------------------------------------------------------------- 1 | <42> 2 | 42 3 | True 4 | False 5 | Caught it! 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.basic/output: -------------------------------------------------------------------------------- 1 | 10 2 | 0 3 | 11 4 | 0 5 | 12 6 | 0 7 | 4000 8 | 4001 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.exists/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | True 4 | False 5 | True 6 | False 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.length/output: -------------------------------------------------------------------------------- 1 | b"Test" 4 2 | b"" 0 3 | b"" 0 4 | b"Test" 4 5 | b"" 0 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.core.ifelse/output: -------------------------------------------------------------------------------- 1 | b"yes" 2 | b"no" 3 | constant yes 4 | constant yes 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.function.spicy-func/output: -------------------------------------------------------------------------------- 1 | b"foo" 2 | b"foo" 3 | b"bar" 4 | b"servus" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-uint64/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.tuple.operators/output: -------------------------------------------------------------------------------- 1 | (1, foo, True) 2 | True 3 | False 4 | 1 foo True 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.external-global-vars/output: -------------------------------------------------------------------------------- 1 | > 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.parse-attr/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-blocks/output: -------------------------------------------------------------------------------- 1 | 2 | b"2" 3 | b"345" 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.add-to/output: -------------------------------------------------------------------------------- 1 | 20 2 | 20.000000 3 | 20.000000s 4 | FooBar 5 | -------------------------------------------------------------------------------- /bro/tests/Traces/dns.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/dns.trace -------------------------------------------------------------------------------- /bro/tests/Traces/rtmp.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/rtmp.trace -------------------------------------------------------------------------------- /docker/ssh-single-conn.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/docker/ssh-single-conn.trace -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.startswith/output: -------------------------------------------------------------------------------- 1 | True 2 | True 3 | False 4 | False 5 | False 6 | True 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.strip/output: -------------------------------------------------------------------------------- 1 | |ABC| 2 | |ABC| 3 | |ABC| 4 | |ABC| 5 | || 6 | || 7 | || 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.multiple/output: -------------------------------------------------------------------------------- 1 | Arg was ICSI1 2 | Arg was ICSI2 3 | Arg was ICSI3 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-named-twice/output: -------------------------------------------------------------------------------- 1 | global.a 2 | global.b 3 | global.a 4 | global.b 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-multiple-reordered/output: -------------------------------------------------------------------------------- 1 | A 2 | Caught the right one! 3 | C 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.catch-plus-print/output: -------------------------------------------------------------------------------- 1 | Caught it! 2 | 3 | init 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.foreach/output: -------------------------------------------------------------------------------- 1 | A 2 | (4,D) 3 | (1,A) 4 | (5,E) 5 | (2,B) 6 | (3,C) 7 | B 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.tuple/output: -------------------------------------------------------------------------------- 1 | { (1.2.3.4,123/tcp,2.3.4.5,456/tcp,True): test } 2 | True 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-partial/output: -------------------------------------------------------------------------------- 1 | 2 | Foo|Bar!!! 3 | -1 4 | -1 5 | 1 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.clone/output: -------------------------------------------------------------------------------- 1 | Foo 2 | Foo 3 | False 4 | -- 5 | 6 | 7 | 0x0 8 | 0x0 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.substr/output: -------------------------------------------------------------------------------- 1 | Foo 2 | Foo! 3 | o 4 | ! 5 | 6 | B\u00e4r 7 | ! 8 | 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.clone/output: -------------------------------------------------------------------------------- 1 | (101,True,XY,3.140000) 2 | (101,True,X,3.140000) 3 | -- 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.map/output: -------------------------------------------------------------------------------- 1 | { (1.2.3.4,123/tcp,2.3.4.5,456/tcp,True): test } 2 | True 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.addr.parse/output: -------------------------------------------------------------------------------- 1 | 1.2.3.4 2 | 4.3.2.1 3 | 102:304:506:708:910:1112:1314:1516 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.double.mixed-ints/output: -------------------------------------------------------------------------------- 1 | 31.000000 2 | 46.500000 3 | 17.500000 4 | 13.500000 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.enum.operators/output: -------------------------------------------------------------------------------- 1 | Undef Red Green 2 | True 3 | True 4 | False 5 | False 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.cast/output: -------------------------------------------------------------------------------- 1 | 511 2 | 511 3 | 511 4 | 255 5 | 255 6 | 255 7 | -1 8 | -1 9 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-int-longest/output: -------------------------------------------------------------------------------- 1 | , ], b=258> 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-int-variable/output: -------------------------------------------------------------------------------- 1 | , ], b=2> 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-list-count/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.nested/output: -------------------------------------------------------------------------------- 1 | b"GET" 2 | b"index.html" 3 | b"HTTP/1.0" 4 | b"Message" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.print/output: -------------------------------------------------------------------------------- 1 | A 2 | b"567890" 3 | 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.vars-hooks/output: -------------------------------------------------------------------------------- 1 | B< 0 2 | V1 1 3 | B> 1 4 | DONE< 1 5 | V1 2 6 | DONE> 2 7 | -------------------------------------------------------------------------------- /tests/hilti/iosrc/trace.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/hilti/iosrc/trace.pcap -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.bifs/output: -------------------------------------------------------------------------------- 1 | True 2 | FooMangledGlobal 3 | FooMangledModule 4 | foobar 5 | 6 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.assign-table/output: -------------------------------------------------------------------------------- 1 | { a: 1, b: 2 } 2 | { (a,A): 1, (b,B): 2 } 3 | -------------------------------------------------------------------------------- /libhilti/justrx/doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_custom_target(doc doxygen ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.print/output: -------------------------------------------------------------------------------- 1 | BC 2 | As string: BC 3 | As int: 2 4 | Undef 5 | A 6 | BC 7 | DEF 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.basic-params/output: -------------------------------------------------------------------------------- 1 | 1st hook function. 2 | 42 3 | 2nd hook function. 4 | 42 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.prio/output: -------------------------------------------------------------------------------- 1 | 3rd hook function. 2 | 2nd hook function. 3 | 1st hook function. 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.libhilti.print/output: -------------------------------------------------------------------------------- 1 | Foo! 2 | B\u00e4r! 3 | True 4 | 43 5 | ABC 6 | (XXX,True) 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.clone/output: -------------------------------------------------------------------------------- 1 | [1, 2, 3, XY, 4] 2 | [1, 2, 3, X] 3 | XY 4 | -- 5 | [4] 6 | [] 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.basic-tuple-value/output: -------------------------------------------------------------------------------- 1 | { 10: (Foo,1), 20: (Bar,2) } 2 | (Foo,1) 3 | (Bar,2) 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.net.eq-addr/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | True 4 | True 5 | False 6 | True 7 | False 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.set/output: -------------------------------------------------------------------------------- 1 | 100 2 | True 3 | 101 4 | True 5 | False 6 | Abrakadraba 7 | True 8 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.parse-const-lahead/output: -------------------------------------------------------------------------------- 1 | [, , ] 2 | b"Foo" 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.double.parse-byteorder/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-int/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-uint/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-list-until-including-foreach/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | [1, 2, 3, 4] 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.parsers.tftp.test/output: -------------------------------------------------------------------------------- 1 | > 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.tuple.optional/output: -------------------------------------------------------------------------------- 1 | (1, string, (not set), foo) 2 | (1, string, (not set), Xfoo) 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.condition/output: -------------------------------------------------------------------------------- 1 | b"567890" 2 | b"C-not-set" 3 | b"B-not-set" 4 | b"567890" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.ctor-expr/output: -------------------------------------------------------------------------------- 1 | 2 | <_i1=1, _i2=string, _i4=b"foo"> 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.vector.ops/output: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | [] 3 | [foo, bar] 4 | foo 5 | bar 6 | XYZ 7 | 3 8 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.event/output: -------------------------------------------------------------------------------- 1 | event foo1a 2 | event foo1b 3 | event foo2 with arg test 4 | -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/NPDU.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/NPDU.pcap -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/rpm.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/rpm.pcap -------------------------------------------------------------------------------- /bro/tests/Traces/http/get.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/http/get.trace -------------------------------------------------------------------------------- /bro/tests/Traces/tls/google.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/tls/google.pcap -------------------------------------------------------------------------------- /bro/tests/Traces/tls/tls1.2.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/tls/tls1.2.trace -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.cmp/output: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | -1 4 | 1 5 | -1 6 | 1 7 | 0 8 | True 9 | False 10 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.marks/output: -------------------------------------------------------------------------------- 1 | 1 abcdef 2 | 2 def 3 | 3 4 | 4 5 | 5 defghijkl 6 | 6 jkl 7 | 7 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.strip-with-args/output: -------------------------------------------------------------------------------- 1 | |ABC| 2 | |ABC | 3 | | ABC| 4 | |ABC| 5 | |123ABC456| 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.unpack-delim-multi/output: -------------------------------------------------------------------------------- 1 | sub=\x00\x05\x00\x01\x02\x03 diff=9 2 | Delim not found 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.caddr.function/output: -------------------------------------------------------------------------------- 1 | (addr:0x448680,addr:0x4487b0) 2 | (addr:0x448680,addr:0x4487b0) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.result-nostop-empty/output: -------------------------------------------------------------------------------- 1 | -- Starting. 2 | -- Done. Result is: 3 | initial value 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.clone/output: -------------------------------------------------------------------------------- 1 | { XY, 1, 2, 3, 4 } 2 | { X, 1, 2, 3 } 3 | XY 4 | -- 5 | { 4 } 6 | { } 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.append/output: -------------------------------------------------------------------------------- 1 | [1, 2, 3] 2 | [4, 5, 6] 3 | 4 | [1, 2, 3, 4, 5, 6] 5 | [4, 5, 6] 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.misc.spicy-driver-jit/output: -------------------------------------------------------------------------------- 1 | A 2 | b"567890" 3 | 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.child/output: -------------------------------------------------------------------------------- 1 | %synced 2 | %done: , l2=, l3=> 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.assign-vector/output: -------------------------------------------------------------------------------- 1 | [0: A, 1: B, 2: (Null), 3: (Null), 4: (Null), 5: C] 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.types.table-default-function/output: -------------------------------------------------------------------------------- 1 | True 2 | xyz 3 | False 4 | x-42 5 | False 6 | y-42 7 | -------------------------------------------------------------------------------- /libspicy/3rdparty/rc4/README.hilti: -------------------------------------------------------------------------------- 1 | From https://github.com/ogay/rc4. 2 | 3 | Changed to use stdint.h. 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.addr.pack/output: -------------------------------------------------------------------------------- 1 | \xc0\xa8\x01\x01 2 | \x01\x0d\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x14(W\xab 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.hello-world-multiple/output: -------------------------------------------------------------------------------- 1 | Hello, world! 1. 2 | Hello, world! 2. 3 | Hello, world! 3. 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.net.length/output: -------------------------------------------------------------------------------- 1 | 192.168.1.0/24 2 | 24 3 | 2001:db8::/48 4 | 48 5 | 192.168.1.0/24 6 | 24 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-groups-no-match/output: -------------------------------------------------------------------------------- 1 | 2 | A(.*)X(.*)Y(.*)B 3 | xxA123456789Bxx 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.comprehension-conversion/output: -------------------------------------------------------------------------------- 1 | [b"aa", b"bb", b"cc"] 2 | [20, 40, 60] 3 | [2, 3, 4] 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.basic/output: -------------------------------------------------------------------------------- 1 | b"0123" 2 | b"01234567" 3 | b"0123456789" 4 | b"0123456789" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.init-seq/output: -------------------------------------------------------------------------------- 1 | b"0123" 2 | b"01234567" 3 | b"0123456789" 4 | b"0123456789" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.hooks-on-assign/output: -------------------------------------------------------------------------------- 1 | a1: b"1234" 2 | a1: b"HURZ" 3 | a2: b"1234" 4 | a2: b"HURZ" 5 | b 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.skip-property-disable/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.typedef/output: -------------------------------------------------------------------------------- 1 | [, , , , ] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.vars/output: -------------------------------------------------------------------------------- 1 | 2 | b"567890" 21 42 3 | -------------------------------------------------------------------------------- /tests/spicy/parsers/dns/single.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/dns/single.dat -------------------------------------------------------------------------------- /tests/spicy/parsers/x509/google.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/x509/google.der -------------------------------------------------------------------------------- /tests/spicy/parsers/x509/v1cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/x509/v1cert.der -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.incr/output: -------------------------------------------------------------------------------- 1 | 10 2 | 11 3 | 10 4 | 10 5 | 6 | 10 7 | 11 8 | 10 9 | 10 10 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.record-coerce/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/who-has.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/who-has.pcap -------------------------------------------------------------------------------- /bro/tests/Traces/http/get-gzip.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/http/get-gzip.trace -------------------------------------------------------------------------------- /bro/tests/Traces/ssh-single-conn.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/ssh-single-conn.trace -------------------------------------------------------------------------------- /tests/Baseline/hilti.addr.family/output: -------------------------------------------------------------------------------- 1 | 192.168.1.1 2 | IPv4 3 | 2001:db8::1428:57ab 4 | IPv6 5 | 192.168.1.1 6 | IPv4 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bitset.print/output: -------------------------------------------------------------------------------- 1 | Bit0 2 | As string: Bit0 3 | As int: 1 4 | Bit0 5 | Bit1 6 | Bit23 7 | Bit24 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.iterator/output: -------------------------------------------------------------------------------- 1 | 48 2 | 49 3 | 50 4 | 51 5 | 52 6 | 53 7 | 54 8 | 55 9 | 56 10 | 57 11 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.ctor/output: -------------------------------------------------------------------------------- 1 | ICSI/ICIR/10.000000/20.000000 2 | 30 3 | ICIR/ICSI/20.000000/30.000000 4 | 50 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.channel.blocking-read/output: -------------------------------------------------------------------------------- 1 | doing read 2 | doing other 3 | doing write 4 | done with read 5 | 42 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.init-function/output: -------------------------------------------------------------------------------- 1 | Init function 1 called! 2 | Init function 2 called! 3 | Run is running. 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.limits/output: -------------------------------------------------------------------------------- 1 | -2147483648 2 | 2147483647 3 | -9223372036854775808 4 | 9223372036854775807 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.net.family/output: -------------------------------------------------------------------------------- 1 | 192.168.1.0/24 2 | IPv4 3 | 2001:db8::/48 4 | IPv6 5 | 192.168.1.0/24 6 | IPv4 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-find/output: -------------------------------------------------------------------------------- 1 | 2 | Foo|Bar 3 | 1 4 | 1 5 | -1 6 | ^(Foo|Bar) 7 | 1 8 | -1 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.foreach/output: -------------------------------------------------------------------------------- 1 | 4 2 | 1 3 | 5 4 | 2 5 | 3 6 | 7 | (2,B) 8 | (1,A) 9 | (3,B) 10 | 11 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.const/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | test=TeSt3 4 | TeSt4 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.foreach/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 7 | (1,A) 8 | (2,B) 9 | (3,B) 10 | 11 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-bitfield/output: -------------------------------------------------------------------------------- 1 | 2 | (x1=1, x2=3, x3=3) 3 | 1 4 | 3 5 | 3 6 | -------------------------------------------------------------------------------- /tests/spicy/parsers/tar/data.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/tar/data.tar.bz2 -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.sub/output: -------------------------------------------------------------------------------- 1 | -1 2 | 10 3 | -1.000000 4 | 10.000000s 5 | 2013-11-16T05:50:00.000000000Z 6 | -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/who-is-i-am.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/who-is-i-am.pcap -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.index/output: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | 10 12 | 11 13 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.clone/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | False 4 | Instance A, 1 5 | Instance B, 1 6 | Instance B, 2 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.module/output: -------------------------------------------------------------------------------- 1 | Before hook.run. 2 | 1st hook function. 3 | 2nd hook function. 4 | After hook.run. 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.append/output: -------------------------------------------------------------------------------- 1 | [foo, bar] 2 | [foo, bar, 123, 456] 3 | [123, 456] 4 | [foo, bar, 123, 456] 5 | [] 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.opt.ctor-pass/output: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | True 4 | False 5 | 2 6 | Y 7 | [A, B] 8 | [A, B] 9 | [A, B] 10 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-set-find/output: -------------------------------------------------------------------------------- 1 | 2 | /Foo/ | /Bar/ | /Hurz/ 3 | 1 4 | 2 5 | 3 6 | 3 7 | -1 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-span/output: -------------------------------------------------------------------------------- 1 | 2 | A.*B 3 | 1234AxyxyxyB5678 4 | AxyxyxyB 5 | 1234XYZ5678 6 | 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.yield-exception/output: -------------------------------------------------------------------------------- 1 | before yield1 2 | after yield1 3 | after yield2 4 | Caught exception 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.libspicy.fmt/output: -------------------------------------------------------------------------------- 1 | bytes: Foo 42 1.200000 2 | string: Foo 42 1.200000 3 | bytes: 42 4 | string: 42 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.field-length-atomic/output: -------------------------------------------------------------------------------- 1 | %sync 2 | %done 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-at-object/output: -------------------------------------------------------------------------------- 1 | %done: 2 | %synced 3 | %done: ]> 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.bytes-empty-regexp/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.external-hooks-same-module/output: -------------------------------------------------------------------------------- 1 | FOO init 2 | FOO a b"1234" 3 | FOO b b"567890" 4 | FOO foo b"x" 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.params/output: -------------------------------------------------------------------------------- 1 | 42 b"1234" 2 | , b=b"567890"> 3 | -------------------------------------------------------------------------------- /tests/Scripts/remove-ansi: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Strips out ANSI escape codes. 4 | 5 | sed 's:.\[[0-9;]*[mK]::g' 6 | -------------------------------------------------------------------------------- /tests/spicy/parsers/zip/archive.zip.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/zip/archive.zip.dat -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.assign-field/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.double-event/output: -------------------------------------------------------------------------------- 1 | 1, OpenSSH_3.9p1 2 | 2, OpenSSH_3.9p1 3 | 1, OpenSSH_3.8.1p1 4 | 2, OpenSSH_3.8.1p1 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.event-cond/output: -------------------------------------------------------------------------------- 1 | 1, OpenSSH_3.9p1 2 | 3, OpenSSH_3.9p1 3 | 1, OpenSSH_3.8.1p1 4 | 4, OpenSSH_3.8.1p1 5 | -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/BBMD_Results.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/BBMD_Results.pcap -------------------------------------------------------------------------------- /bro/tests/Traces/gzip-single-request.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/gzip-single-request.trace -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.shift/output: -------------------------------------------------------------------------------- 1 | 1020 2 | 63 3 | 63 4 | 5 | 255 6 | 255 7 | 255 8 | 9 | -4 10 | 63 11 | -1 12 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.clone/output: -------------------------------------------------------------------------------- 1 | /abc/ | /def/ | /ghi/ 2 | /abc/ | /def/ | /ghi/ 3 | False 4 | -- 5 | . 6 | . 7 | False 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.ctor/output: -------------------------------------------------------------------------------- 1 | , r2=(not set)> 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.bitfield/output: -------------------------------------------------------------------------------- 1 | 00000000 ff ff ff ff |....| 2 | 00000004 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.list-until/output: -------------------------------------------------------------------------------- 1 | 00000000 01 02 03 04 |....| 2 | 00000004 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.objects.multiple/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.export/output: -------------------------------------------------------------------------------- 1 | Sub 2 | Main > 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.field-length-child/output: -------------------------------------------------------------------------------- 1 | %sync 2 | %done 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.delayed-init/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/spicy/parsers/asf/charley-header.wmv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/asf/charley-header.wmv -------------------------------------------------------------------------------- /tests/spicy/parsers/asf/wildlife-header.wmv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/asf/wildlife-header.wmv -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/create-request.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/create-request.dat -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/write-request.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/write-request.dat -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/atomic-read-file.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/atomic-read-file.pcap -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/read-properties.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/read-properties.pcap -------------------------------------------------------------------------------- /tests/Baseline/hilti.bool.logic/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | False 4 | 5 | True 6 | True 7 | False 8 | 9 | False 10 | True 11 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.threads/output: -------------------------------------------------------------------------------- 1 | vid 1 - ICSI1 2 | vid 2 - ICSI2 3 | vid 3 - ICSI3 4 | vid 4 - ICSI4 5 | vid 5 - ICSI5 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.series/output: -------------------------------------------------------------------------------- 1 | 30 2 | 10 3 | 300 4 | 75 5 | 1 6 | 0 7 | 1 8 | 0 9 | 0 10 | 30000 11 | 31 12 | 31 13 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.ctor/output: -------------------------------------------------------------------------------- 1 | [True, False, True] 2 | [False, True, False] 3 | [foo, bar] 4 | [123, 345] 5 | [1, 2, 3] 6 | [] 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-2/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, Underflow (from /home/robin/work/hilti/libhilti/list.c:344) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-3/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, Underflow (from /home/robin/work/hilti/libhilti/list.c:332) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-4/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, Underflow (from /home/robin/work/hilti/libhilti/list.c:344) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, Underflow (from /home/robin/work/hilti/libhilti/list.c:332) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.get-except/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, IndexError (from /home/robin/work/hilti/libhilti/map_set.c:360) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.port.unpack/output: -------------------------------------------------------------------------------- 1 | port=513/tcp diff=2 2 | port=513/udp diff=2 3 | port=258/tcp diff=2 4 | port=258/udp diff=2 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.print/output: -------------------------------------------------------------------------------- 1 | , r2=(not set)> 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.vid/output: -------------------------------------------------------------------------------- 1 | num -1 vid -1 2 | num 1 vid 1 3 | num 2 vid 2 4 | num 3 vid 3 5 | num 4 vid 4 6 | num 5 vid 5 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.print/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <3.140000> 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.clone/output: -------------------------------------------------------------------------------- 1 | [0: 1, 1: 2, 2: 3, 3: XY, 4: 4] 2 | [0: 1, 1: 2, 2: 3, 3: X] 3 | XY 4 | -- 5 | [0: 4] 6 | [] 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.convert-enum/output: -------------------------------------------------------------------------------- 1 | 0000000 000 012 000 012 377 377 000 002 2 | 0000008 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.subunit/output: -------------------------------------------------------------------------------- 1 | 00000000 31 32 33 34 01 35 36 37 38 39 30 |1234.567890| 2 | 0000000b 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-int-regexp/output: -------------------------------------------------------------------------------- 1 | , ], b=b"XXX", c=5> 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.sequence/output: -------------------------------------------------------------------------------- 1 | 2 2 | 2 3 | 2 4 | 2 5 | 4 6 | 4 7 | 4 8 | 4 9 | 10 10 | b"0123456789" 11 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.skip/output: -------------------------------------------------------------------------------- 1 | Skipped to position 6 2 | b"01236789" 3 | 4 | Skipped to position 6 5 | b"016789" 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.suspend/output: -------------------------------------------------------------------------------- 1 | Sub 2 | Main > 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.convert-integer/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/getinfo-response.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/getinfo-response.dat -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/setinfo-request.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/setinfo-request.dat -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.direct-and-indirect-calls/output: -------------------------------------------------------------------------------- 1 | foo1 direct call True 2 | Result 1 3 | foo2 indirect call True 4 | Result 2 5 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.equal/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | False 4 | True 5 | 6 | True 7 | False 8 | False 9 | True 10 | -------------------------------------------------------------------------------- /bro/tests/Traces/http/pipelined-requests.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/http/pipelined-requests.trace -------------------------------------------------------------------------------- /doc/hilti/old/dev-api.rst: -------------------------------------------------------------------------------- 1 | 2 | C/C++ API 3 | ========= 4 | 5 | The Broxygen-generated API documentation is `here `_. 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.channel.deep-copy/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.channel.empty-except/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, WouldBlock (from /home/robin/work/hilti/libhilti/channel.c:293) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.channel.full-except/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, WouldBlock (from /home/robin/work/hilti/libhilti/channel.c:253) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.misc.terminate/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, Termination (from /home/robin/work/hilti/libhilti/module/misc.c:16) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.ctor-empty/output: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.context-call/output: -------------------------------------------------------------------------------- 1 | FuncConn: vid -1 ctx 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.index-error/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, IndexError (from /home/robin/work/hilti/libhilti/vector.c:222) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.addr.basic/output: -------------------------------------------------------------------------------- 1 | 1.2.3.4 2 | 2001:db8:85a3:8d3:1319:8a2e:370:7348 3 | 1.2.3.4 4 | False 5 | True 6 | IPv4 7 | IPv6 8 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.chunked-sink/output: -------------------------------------------------------------------------------- 1 | s b"1234" 2 | s b"5678" 3 | s b"90ab" 4 | s b"cde" 5 | Done Main > 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.bitfield-in-list/output: -------------------------------------------------------------------------------- 1 | 0000000 377 377 2 | 0000002 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.bitfield-order/output: -------------------------------------------------------------------------------- 1 | 0000000 100 001 100 001 100 001 2 | 0000006 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.list-until-including/output: -------------------------------------------------------------------------------- 1 | 00000000 01 02 03 04 |....| 2 | 00000004 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-two/output: -------------------------------------------------------------------------------- 1 | [, , , ] 2 | [, , , ] 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.external-hooks-import/output: -------------------------------------------------------------------------------- 1 | FOO init 2 | FOO a b"1234" 3 | FOO foo b"y" 4 | FOO b b"567890" 5 | FOO foo b"x" 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.wrong-id-3/output: -------------------------------------------------------------------------------- 1 | : internal error, $$ not bound in CodeBuilder::visit(expression::ParserState* p) 2 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.tuple-enum/output: -------------------------------------------------------------------------------- 1 | 2 | [i=TupleEnum::TestEnum_A, j=83] 3 | 4 | [i=TupleEnum::TestEnum_A, j=83] 5 | -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/bacnet-property-error.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/bacnet/bacnet-property-error.pcap -------------------------------------------------------------------------------- /libhilti/3rdparty/libtask/testdelay1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | taskmain(int argc, char *argv[]) 5 | { 6 | taskdelay(1000); 7 | } 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.callable/output: -------------------------------------------------------------------------------- 1 | HILTI: ICSI/10.000000 2 | === 3 | HILTI: ICSI/10.000000/ABCDE/10000 4 | C: ICSI/10.000000/ABCDE/10000 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.classifier.simple/output: -------------------------------------------------------------------------------- 1 | 2 | True 3 | False 4 | 42 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.foreach-enum-set/output: -------------------------------------------------------------------------------- 1 | A 2 | A A 3 | A B 4 | A C 5 | B A 6 | B B 7 | B C 8 | C A 9 | C B 10 | C C 11 | B 12 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.result/output: -------------------------------------------------------------------------------- 1 | -- Starting. 2 | 1st hook function. 3 | 2nd hook function. 4 | -- Done. Result is: 5 | 2st had stopped 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.wrong-unpack-len/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, WouldBlock (from /home/robin/work/hilti/libhilti/bytes.c:1339) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-iter-2/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, InvalidIterator (from /home/robin/work/hilti/libhilti/list.c:361) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-iter-3/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, InvalidIterator (from /home/robin/work/hilti/libhilti/list.c:366) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-iter-4/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, InvalidIterator (from /home/robin/work/hilti/libhilti/list.c:419) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.list.exceptions-iter/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, InvalidIterator (from /home/robin/work/hilti/libhilti/list.c:366) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.timer.update-expt/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, TimerNotScheduled (from /home/robin/work/hilti/libhilti/timer.c:178) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.equal/output: -------------------------------------------------------------------------------- 1 | A T True 2 | A F False 3 | A F False 4 | A T True 5 | B T True 6 | B F True 7 | C T True 8 | C F False 9 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.iterator/output: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 7 | 2 8 | 3 9 | 4 10 | 5 11 | 2 12 | 3 13 | 3 14 | 5 15 | 5 16 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.convert-dollardollar/output: -------------------------------------------------------------------------------- 1 | 0000000 000 012 2 | 0000002 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-int-regexp-longest/output: -------------------------------------------------------------------------------- 1 | , ], b=b"AAA", c=5> 2 | 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead/output: -------------------------------------------------------------------------------- 1 | [, , , , ] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-until/output: -------------------------------------------------------------------------------- 1 | [, , , , ] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.bytes-eod/output: -------------------------------------------------------------------------------- 1 | 2 | ======== 3 | 4 | ======== 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.debug-hooks/output: -------------------------------------------------------------------------------- 1 | -- 2 | FOO A.inline 3 | FOO A b"1234" 4 | FOO foo.inline 5 | FOO foo b"foo" 6 | FOO B b"567890" 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.dynamic-byteorder/output: -------------------------------------------------------------------------------- 1 | > 2 | > 3 | -------------------------------------------------------------------------------- /tests/spicy/parsers/ms-cert/data.ms-root-certs.sst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/ms-cert/data.ms-root-certs.sst -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/create-response-file.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/create-response-file.dat -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/tree-connect-request.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/tree-connect-request.dat -------------------------------------------------------------------------------- /bro/tests/Traces/tls/tls-conn-with-extensions.trace: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/bro/tests/Traces/tls/tls-conn-with-extensions.trace -------------------------------------------------------------------------------- /hilti/codegen/libffi/doc/stamp-vti: -------------------------------------------------------------------------------- 1 | @set UPDATED 29 December 2009 2 | @set UPDATED-MONTH December 2009 3 | @set EDITION 3.0.9 4 | @set VERSION 3.0.9 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.classifier.no-match-excpt/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, IndexError (from /home/robin/work/hilti/libhilti/classifier.c:225) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.unpack/output: -------------------------------------------------------------------------------- 1 | double=3.140000 diff=4 2 | double=-4.150000 diff=4 3 | double=12.345679 diff=8 4 | double=12.345679 diff=8 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.opt.ctor-pass-functions/output: -------------------------------------------------------------------------------- 1 | A 2 | B 3 | + 4 | (42,X) 5 | (42,X) 6 | - 7 | A 8 | B 9 | + 10 | (42,X) 11 | (42,X) 12 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-set-find-custom-id/output: -------------------------------------------------------------------------------- 1 | 2 | /Foo{#41}/ | /Bar{#42}/ | /Hurz{#43}/ 3 | 41 4 | 42 5 | 43 6 | 43 7 | -1 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-set-span/output: -------------------------------------------------------------------------------- 1 | 2 | /Foo/ | /5.7/ | /A.*B/ 3 | 1234AxyxyxyB5678 4 | AxyxyxyB 5 | 1234XYZ5678 6 | 567 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.timer.two-mgrs-excpt/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, TimerAlreadyScheduled (from /home/robin/work/hilti/libhilti/timer.c:277) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-lahead-eod/output: -------------------------------------------------------------------------------- 1 | [, , , , ] 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.set.operators/output: -------------------------------------------------------------------------------- 1 | {3, 1, 2} 2 | {} 3 | True 4 | False 5 | True 6 | True 7 | False 8 | 4 9 | 3 10 | 1 11 | 0 12 | 0 13 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-at-bytes/output: -------------------------------------------------------------------------------- 1 | %synced 2 | %done: , ]> 3 | %synced 4 | %done: , ]> 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-at-mark/output: -------------------------------------------------------------------------------- 1 | %synced 2 | %done: , ]> 3 | %synced 4 | %done: , ]> 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.child-length/output: -------------------------------------------------------------------------------- 1 | , , , , ]>, c=b"bbb"> 2 | -------------------------------------------------------------------------------- /bro/src/events.bif: -------------------------------------------------------------------------------- 1 | 2 | event spicy_analyzer_for_port%(a: Analyzer::Tag, p: port%); 3 | event spicy_analyzer_for_mime_type%(a: Files::Tag, mt: string%); 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.break/output: -------------------------------------------------------------------------------- 1 | 3 2 | | 3 | 1 4 | | 5 | 2 6 | 3 7 | | 8 | 1 9 | | 10 | 2 11 | 3 12 | | 13 | 1 14 | | 15 | 2 16 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.gzip-header/output: -------------------------------------------------------------------------------- 1 | Fd9ncVdfB4on16V3a, 8, [ftext=0, fhrcr=0, fextra=0, fname=0, fcomment=0], 1380302739.000000, 0, gzip::OS_UNIX 2 | -------------------------------------------------------------------------------- /bro/tests/Traces/bacnet/README: -------------------------------------------------------------------------------- 1 | All traces in this directory have been downloaded http://kargs.net/captures/. 2 | 3 | Used with permission of the author. 4 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types.rst: -------------------------------------------------------------------------------- 1 | 2 | Data Types 3 | ========== 4 | 5 | .. toctree:: 6 | :maxdepth: 1 7 | :glob: 8 | 9 | types/* 10 | -------------------------------------------------------------------------------- /hilti/codegen/libffi/doc/version.texi: -------------------------------------------------------------------------------- 1 | @set UPDATED 29 December 2009 2 | @set UPDATED-MONTH December 2009 3 | @set EDITION 3.0.9 4 | @set VERSION 3.0.9 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.freeze-excpt/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | hilti: uncaught exception, ValueError (from /home/robin/work/hilti/libhilti/bytes.c:675) 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.hook-result/output: -------------------------------------------------------------------------------- 1 | -- Starting. 2 | 1st hook function. 3 | 2nd hook function. 4 | -- Done. Result is: 5 | 2nd had stopped 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.clone/output: -------------------------------------------------------------------------------- 1 | { XY: XXYY, 1: 11, 2: 22, 3: 33, 4: 44 } 2 | { X: XX, 1: 11, 2: 22, 3: 33 } 3 | XY 4 | -- 5 | { 4: 44 } 6 | { } 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-groups/output: -------------------------------------------------------------------------------- 1 | 2 | A(.*)X(.*)Y(.*)B 3 | xxA1234X5678Y9012Bxx 4 | A1234X5678Y9012B 5 | 1234 6 | 5678 7 | 9012 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.string.cmp/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | True 4 | False 5 | False 6 | True 7 | False 8 | False 9 | False 10 | False 11 | True 12 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.deep-copy-args/output: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 2 5 | 2 6 | 2 7 | 3 8 | 3 9 | 3 10 | 4 11 | 4 12 | 4 13 | 5 14 | 5 15 | 5 16 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-foreach/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-after-bytes/output: -------------------------------------------------------------------------------- 1 | %synced 2 | %done: , ]> 3 | %synced 4 | %done: , ]> 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-after-object/output: -------------------------------------------------------------------------------- 1 | %synced 2 | %done: , ]> 3 | %synced 4 | %done: , ]> 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-at-regexp/output: -------------------------------------------------------------------------------- 1 | %synced 2 | %done: , ]> 3 | %synced 4 | %done: , ]> 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.init-done/output: -------------------------------------------------------------------------------- 1 | INIT-unit <> 2 | INIT-module <> 3 | DONE-unit 4 | DONE-module 5 | -------------------------------------------------------------------------------- /tests/spicy/parsers/smb2/create-response-file-error.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rsmmr/hilti/HEAD/tests/spicy/parsers/smb2/create-response-file-error.dat -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.types.record-field-default/output: -------------------------------------------------------------------------------- 1 | 42 2 | { } 3 | { } 4 | { B, A } 5 | { a: 1, b: 2 } 6 | 7 | [] 8 | [0: 1, 1: 2, 2: 3] 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.c-hilti-excpt/output: -------------------------------------------------------------------------------- 1 | A 2 | myException (from /home/robin/work/hilti/tests/.tmp/hilti.c-api.c-hilti-excpt/c-hilti-excpt.hlt:19-20) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.threads.arguments/output: -------------------------------------------------------------------------------- 1 | RUN 1 2 | Hello! 3 | RUN 2 4 | Hello! 5 | RUN 3 6 | Hello! 7 | RUN 4 8 | Hello! 9 | RUN 5 10 | Hello! 11 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.defaults/output: -------------------------------------------------------------------------------- 1 | b"1234" b"foo" 42 2 | b"1234" b"567890" 2016424056 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink-attach/output: -------------------------------------------------------------------------------- 1 | Sub 2 | Sub2 3 | Main > 4 | -------------------------------------------------------------------------------- /bro/benchmarks/scripts/hello-world.bro: -------------------------------------------------------------------------------- 1 | 2 | event bro_init() 3 | { 4 | print fmt("# compiled = %s", Hilti::is_compiled()); 5 | print "Hello, world!"; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.bool/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | False 4 | False 5 | 6 | True 7 | True 8 | True 9 | False 10 | 11 | False 12 | True 13 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.del-record/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /bro/tests/Scripts/bro-events-canonifier: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | 3 | # Not sure why the file IDs aren't stable. 4 | sed 's/, F[a-zA-Z0-9]\{16,17\}/, FXXXXXXX/g' 5 | -------------------------------------------------------------------------------- /spicy/scope.cc: -------------------------------------------------------------------------------- 1 | 2 | #include "scope.h" 3 | 4 | using namespace spicy; 5 | 6 | Scope::Scope(shared_ptr parent) : ast::Scope(parent) 7 | { 8 | } 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bitset.ops/output: -------------------------------------------------------------------------------- 1 | Bit0 2 | Bit0|Bit23 3 | Bit23 4 | True 5 | False 6 | Bit0|Bit1|Bit23|Bit24 7 | Bit23|Bit24 8 | True 9 | 10 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.append/output: -------------------------------------------------------------------------------- 1 | Hallo 2 | T\xc3\xa4\xc3\xa4\xc3\xa4! 3 | HalloT\xc3\xa4\xc3\xa4\xc3\xa4! 4 | HalloT\u00e4\u00e4\u00e4! 5 | HalloT??????! 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.signed-unsigned/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | 4 | True 5 | False 6 | 7 | False 8 | True 9 | ###### 10 | -1 11 | -1 12 | 255 13 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.interval.unix/output: -------------------------------------------------------------------------------- 1 | 1000.420000s | 1000 | 1000.420000 2 | 2000.000000s | 2000 | 2000.000000 3 | 4 | 1000.420000 5 | 1000 6 | 1000420000000 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.dispatch/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | int 4 | 5 | 6 | bool 7 | 8 | 9 | default 10 | 11 | 12 | default 13 | -------------------------------------------------------------------------------- /tests/Failing/README: -------------------------------------------------------------------------------- 1 | This directory contains that are currently failing, but supposed to 2 | work eventually. These tests are specifically excluded in btest.cfg. 3 | -------------------------------------------------------------------------------- /bro/tests/Baseline/spicy.tuple-optional/output: -------------------------------------------------------------------------------- 1 | [i=83, j=83, k=, s=H-, ss=] 2 | [i=83, j=83, k=, s=H-, ss=] 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.hoist/output: -------------------------------------------------------------------------------- 1 | 12 2 | 111111111111111111111111111111111111111111111111111111111111112 3 | 34 4 | Foo 5 | ABCDE 6 | abcde 7 | AbCdE 8 | 1.2.3 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.offset-future/output: -------------------------------------------------------------------------------- 1 | ABCDEFGHIJKL 2 | ABCDEFGHIJKL 3 | ABCDEFGHIJKLMNO 4 | ABCDEFGHIJKLMNOPQR 5 | ABCDEFGHIJKLMNO 6 | ABCDEFGHIJKLMNOPQRST 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.throw/output: -------------------------------------------------------------------------------- 1 | A 2 | hilti: uncaught exception, myException (from /home/robin/work/hilti/tests/.tmp/hilti.exceptions.throw/throw.hlt:17-18) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.get-expt/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, UndefinedValue (from /home/robin/work/hilti/tests/.tmp/hilti.struct.get-expt/get-expt.hlt:25-26) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.time.add/output: -------------------------------------------------------------------------------- 1 | 2011-01-19T05:31:50.000000000Z 2 | 3600.000000s 3 | 2011-01-19T06:31:50.000000000Z 4 | d: 1295415110.000000 5 | d: 1295415111.000000 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.union.const-coerce/output: -------------------------------------------------------------------------------- 1 | 2 | True 3 | True 4 | False 5 | 6 | 7 | True 8 | xxx 9 | True 10 | True 11 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.parse-uint64/spicy.int.parse-uint64/output: -------------------------------------------------------------------------------- 1 | [spicy] test 2 | [spicy] f1 = '72623859790382856' 3 | [spicy] f2 = '578437695752307201' 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-count/output: -------------------------------------------------------------------------------- 1 | , , , , ], last=b"XXX\x0a"> 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-length/output: -------------------------------------------------------------------------------- 1 | 2 | 3 | , ], b=7> 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.wrong-sync/output: -------------------------------------------------------------------------------- 1 | wrong-sync.spicy:9-9: error, cannot &synchronize on field 2 | wrong-sync.spicy: Aborting due to compilation error. 3 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.detached-hooks/output: -------------------------------------------------------------------------------- 1 | A 2 | A-unit-global 3 | A-module-global 4 | b"567890" 5 | 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink-disconnect/output: -------------------------------------------------------------------------------- 1 | Sub in progress 2 | Sub2 3 | Main > 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.custom-hilti-code.conn-event-no-compile-no-bro/output: -------------------------------------------------------------------------------- 1 | From HILTI: 2 | -------------------------------------------------------------------------------- /bro/tests/Scripts/diff-canonifier: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | # 3 | # Default canonifier used with the tests in testing/btest/*. 4 | 5 | `dirname $0`/diff-remove-timestamps 6 | -------------------------------------------------------------------------------- /doc/hilti/builder.rst: -------------------------------------------------------------------------------- 1 | 2 | Builder Interface (Missing) 3 | =========================== 4 | 5 | TODO. 6 | 7 | (Note some out-of-date text is in ``old/builder-old.rst``.) 8 | -------------------------------------------------------------------------------- /doc/hilti/examples/builder-hello-world.hlt: -------------------------------------------------------------------------------- 1 | 2 | module Main 3 | 4 | import Hilti 5 | 6 | void run() 7 | { 8 | call Hilti::print ("Hello, world!") 9 | } 10 | 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/map.rst: -------------------------------------------------------------------------------- 1 | 2 | Map 3 | --- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-map.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/set.rst: -------------------------------------------------------------------------------- 1 | 2 | Set 3 | --- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-set.rst 11 | -------------------------------------------------------------------------------- /hilti/codegen/common.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef HILTI_CODEGEN_COMMON_H 3 | #define HILTI_CODEGEN_COMMON_H 4 | 5 | #include "../common.h" 6 | #include "llvm-common.h" 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.unpack-delim/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, WouldBlock (from /home/robin/work/hilti/tests/.tmp/hilti.bytes.unpack-delim/unpack-delim.hlt:23-24) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.fiber/output: -------------------------------------------------------------------------------- 1 | Init 2 | In fiber (p=0x1234567890) 3 | Fiber yielded 4 | Back in fiber 5 | Fiber yielded again 6 | Done with fiber 7 | Fiber finished 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.series/output: -------------------------------------------------------------------------------- 1 | 126.000000 2 | 100.000000 3 | 12600.000000 4 | 300.000000 5 | 1 6 | 0 7 | 1 8 | 0 9 | 0 10 | 126000.000000 11 | 127.000000 12 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.result-nostop/output: -------------------------------------------------------------------------------- 1 | -- Starting. 2 | 1st hook function. 3 | 2nd hook function. 4 | 3rd hook function. 5 | -- Done. Result is: 6 | initial value 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.iterator/output: -------------------------------------------------------------------------------- 1 | (BBB,(False,True)) 2 | (FFF,(True,True)) 3 | (CCC,(True,False)) 4 | (DDD,(True,True)) 5 | (AAA,(False,False)) 6 | (EEE,(True,True)) 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.remove/output: -------------------------------------------------------------------------------- 1 | { } 2 | 2 3 | { Bar, Foo } 4 | 0 5 | { } 6 | False 7 | False 8 | 2 9 | { Bar, Foo } 10 | True 11 | True 12 | 0 13 | { } 14 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.struct.get-expt-2/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, UndefinedValue (from /home/robin/work/hilti/tests/.tmp/hilti.struct.get-expt-2/get-expt.hlt:22-23) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.vector.ctor/output: -------------------------------------------------------------------------------- 1 | [0: True, 1: False, 2: True] 2 | [0: False, 1: True, 2: False] 3 | [0: foo, 1: bar] 4 | [0: 123, 1: 345] 5 | [0: 1, 1: 2, 2: 3] 6 | [] 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.objects.missing/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, SpicyHilti::ParseError with argument 'embedded object of type string expected' (from :) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-blocks-with-lists/output: -------------------------------------------------------------------------------- 1 | 2 | x 3 | 4 | -------------------------------------------------------------------------------- /tests/hilti/analysis/flow-fibo.hlt: -------------------------------------------------------------------------------- 1 | # @TEST-EXEC: hiltic -p -c ${TEST_BASE}/hilti/misc/fibo.hlt | ${SCRIPTS}/remove-ansi >output 2 | # @TEST-EXEC: btest-diff output 3 | 4 | -------------------------------------------------------------------------------- /bro/spicy/tls.bro: -------------------------------------------------------------------------------- 1 | module TLS; 2 | 3 | export { 4 | type SignatureAndHashAlgorithm: record { 5 | hash: HashAlgorithm; 6 | signature: SignatureAlgorithm; 7 | }; 8 | } 9 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.custom-hilti-code.conn-event-with-compile-no-bro/output: -------------------------------------------------------------------------------- 1 | From HILTI: 2 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/file.rst: -------------------------------------------------------------------------------- 1 | 2 | File 3 | ---- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-file.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/hook.rst: -------------------------------------------------------------------------------- 1 | 2 | Hook 3 | ---- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-hook.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/list.rst: -------------------------------------------------------------------------------- 1 | 2 | List 3 | ---- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-list.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/port.rst: -------------------------------------------------------------------------------- 1 | 2 | Port 3 | ---- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-port.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/time.rst: -------------------------------------------------------------------------------- 1 | 2 | Time 3 | ---- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-time.rst 11 | -------------------------------------------------------------------------------- /spicy/replace-hilti: -------------------------------------------------------------------------------- 1 | for i in *.h *.cc; do cat $i | sed 's/HILTI_/SPICY_/g' | sed 's/namespace hilti/namespace spicy/g' | sed 's/hilti::/spicy::/g' >$i.tmp && \mv $i.tmp $i; done 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.debug.msg/output: -------------------------------------------------------------------------------- 1 | 00000001 [test/main-thread] My little test debug msg 1: 42 2 | 00000002 [test/main-thread] My little test debug msg 2 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.hooks/output: -------------------------------------------------------------------------------- 1 | A 2 | h1-a 3 | hilti: uncaught exception, myException (from /home/robin/work/hilti/tests/.tmp/hilti.exceptions.hooks/hooks.hlt:25-26) 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.hooks.across-mods-no-import/output: -------------------------------------------------------------------------------- 1 | external hook function. 2 | 3 | internal other_hook function. 4 | 5 | internal hook function. 6 | 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.libhilti.fmt/output: -------------------------------------------------------------------------------- 1 | Test1 2 | Test2 % 3 | Test Foo|1|True 4 | Test 1|Foo|True 5 | Test 1|Foo|True 6 | |42|0| 7 | |-42|1| 8 | |-3.140000| 9 | |0x0| 10 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-length-insufficient/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, SpicyHilti::ParseError with argument '&length area not fully parsed' (from :) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink/output: -------------------------------------------------------------------------------- 1 | Sub b"Foo" True 2 | Sub2 3 | Main > 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.wrong-id-2/output: -------------------------------------------------------------------------------- 1 | 2 | >>> b 3 | wrong-id.spicy:6-6: error, unknown unit item [pass::spicy::Validator] 4 | wrong-id.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.wrong-id/output: -------------------------------------------------------------------------------- 1 | 2 | >>> xxx 3 | wrong-id.spicy:9-9: error, unknown ID xxx [pass::spicy::IDResolver] 4 | wrong-id.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /tests/hilti/analysis/flow-foreach.hlt: -------------------------------------------------------------------------------- 1 | # @TEST-EXEC: hiltic -p -c ${TEST_BASE}/hilti/core/foreach.hlt | ${SCRIPTS}/remove-ansi >output 2 | # @TEST-EXEC: btest-diff output 3 | 4 | -------------------------------------------------------------------------------- /bro/tests/Scripts/bro-log-canonifier: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | 3 | base=`dirname $0` 4 | brobase=`${base}/get-bro-base` 5 | 6 | ${brobase}/testing/scripts/diff-canonifier-external $1 7 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/enum_.rst: -------------------------------------------------------------------------------- 1 | 2 | Enum 3 | ---- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-enum_.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/timer.rst: -------------------------------------------------------------------------------- 1 | 2 | Timer 3 | ----- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-timer.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/tuple.rst: -------------------------------------------------------------------------------- 1 | 2 | Tuple 3 | ----- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-tuple.rst 11 | -------------------------------------------------------------------------------- /docker/ssh-banner.bro: -------------------------------------------------------------------------------- 1 | 2 | event ssh::banner(c: connection, is_orig: bool, version: string, software: string) 3 | { 4 | print "SSH banner", c$id, is_orig, version, software; 5 | } 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.pack/output: -------------------------------------------------------------------------------- 1 | \x01\x02\x03\x04 2 | \x04\x03\x02\x01 3 | \x04 4 | \x03\x04 5 | \x01\x02\x03\x04 6 | \xff\xff\xff\xff 7 | \x00\x00\x00\xff 8 | \x00\x0f\xf0\x00 9 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.strip/output: -------------------------------------------------------------------------------- 1 | b"|1212|" 2 | b"|abc|" 3 | b"|abc|" 4 | b"|abc|" 5 | b"||" 6 | b"||" 7 | 8 | b"|ABC|" 9 | b"|ABC |" 10 | b"| ABC|" 11 | b"|ABC|" 12 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.list.parse-atomic/output: -------------------------------------------------------------------------------- 1 | b"AAA\x0a" 2 | b"BBB\x0a" 3 | b"CCC\x0a" 4 | b"DDD\x0a" 5 | b"EEE\x0a" 6 | [b"AAA\x0a", b"BBB\x0a", b"CCC\x0a", b"DDD\x0a", b"EEE\x0a"] 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.wrong-field-length-child/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, SpicyHilti::ParseError with argument 'bytes constant expected (b"AB")' (from :) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.cyclic/output: -------------------------------------------------------------------------------- 1 | , ]>>]>, data2=b"ABCDE"> 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.vector.parse-param/output: -------------------------------------------------------------------------------- 1 | [] 2 | [] 3 | , ], last=b"EEE\x0a"> 4 | -------------------------------------------------------------------------------- /tests/Scripts/canonify-hilti-prof: -------------------------------------------------------------------------------- 1 | #! /usr/bin/awk -f 2 | 3 | /^#!/ { print; } 4 | /^#/ { next; } 5 | { print $1, "-", $3, $4, $5, "-", $7, "-", "-", "-", "-", $12; } 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/hilti/analysis/flow-exceptions.hlt: -------------------------------------------------------------------------------- 1 | # @TEST-EXEC: hiltic -p -c ${TEST_BASE}/hilti/exceptions/catch.hlt | ${SCRIPTS}/remove-ansi >output 2 | # @TEST-EXEC: btest-diff output 3 | 4 | -------------------------------------------------------------------------------- /tests/hilti/analysis/flow-hello-world.hlt: -------------------------------------------------------------------------------- 1 | # @TEST-EXEC: hiltic -p -c ${TEST_BASE}/hilti/misc/hello-world.hlt | ${SCRIPTS}/remove-ansi >output 2 | # @TEST-EXEC: btest-diff output 3 | 4 | -------------------------------------------------------------------------------- /util/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include(DefaultCompilerSettings) 3 | 4 | add_library (util OBJECT 5 | util.cc 6 | file-cache.cc 7 | ) 8 | 9 | include(ShowCompilerSettings) 10 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.in/output: -------------------------------------------------------------------------------- 1 | True 2 | False 3 | True 4 | False 5 | 6 | True 7 | False 8 | True 9 | False 10 | 11 | True 12 | False 13 | 14 | True 15 | False 16 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.index/output: -------------------------------------------------------------------------------- 1 | A 2 | AA 3 | 4 | B 5 | 6 | 1 7 | 12 8 | 123456 9 | 0123456789 10 | 8 11 | 789 12 | 13 | 14 | 15 | 16 | 17 | 2 18 | 1 19 | -------------------------------------------------------------------------------- /doc/hilti/examples/builder-hello-world-output.log: -------------------------------------------------------------------------------- 1 | module Main 2 | 3 | import Hilti 4 | 5 | void run() 6 | { 7 | call Hilti::print ("Hello, world!") 8 | } 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/bitset.rst: -------------------------------------------------------------------------------- 1 | 2 | Bitset 3 | ------ 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-bitset.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/double_.rst: -------------------------------------------------------------------------------- 1 | 2 | Double 3 | ------ 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-double_.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/string.rst: -------------------------------------------------------------------------------- 1 | 2 | String 3 | ------ 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-string.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/struct_.rst: -------------------------------------------------------------------------------- 1 | 2 | Struct 3 | ------ 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-struct_.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/thread.rst: -------------------------------------------------------------------------------- 1 | 2 | Thread 3 | ------ 4 | 5 | TODO. 6 | 7 | Instructions 8 | ~~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-thread.rst 11 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.struct-params/output: -------------------------------------------------------------------------------- 1 | start 2 | 1 3 | 1 4 | 1 5 | 1 6 | 1 2 7 | 1 2 8 | 1 2 9 | 1 2 10 | 1 2 3 11 | 1 2 3 12 | 1 2 13 | 42.000000 OK 14 | 42.000000 99 15 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.callable.excpt-uncaught/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, myException (from /home/robin/work/hilti/tests/.tmp/hilti.callable.excpt-uncaught/excpt-uncaught.hlt:16-17) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.select-value/output: -------------------------------------------------------------------------------- 1 | 30 2 | -1 3 | hilti: uncaught exception, ValueError (from /home/robin/work/hilti/tests/.tmp/hilti.core.select-value/select-value.hlt:20-21) 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.remove/output: -------------------------------------------------------------------------------- 1 | { } 2 | 2 3 | { Bar: 20, Foo: 10 } 4 | 0 5 | { } 6 | False 7 | False 8 | 2 9 | { Bar: 20, Foo: 10 } 10 | True 11 | True 12 | 0 13 | { } 14 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.overlay.not-attached/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, OverlayNotAttached (from /home/robin/work/hilti/tests/.tmp/hilti.overlay.not-attached/not-attached.hlt:23-25) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.regexp.bytes-set-groups/output: -------------------------------------------------------------------------------- 1 | 2 | /Foo/ | /Bar/ | /Hurz/ 3 | hilti: uncaught exception, PatternError (from /home/robin/work/hilti/libhilti/regexp.c:461) 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.match/output: -------------------------------------------------------------------------------- 1 | b"12345ABBBBC67890" 2 | b"ABBBBC" 3 | b"BBBB" 4 | b"" 5 | b"" 6 | b"" 7 | b"Content-Type: multipart/mixed; boundary="frontier"" 8 | b""frontier"" 9 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.div-by-zero/output: -------------------------------------------------------------------------------- 1 | 2 | >>> a 3 | div-by-zero.spicy:6-8: error, division by zero [pass::spicy::Validator] 4 | div-by-zero.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.synchronize.sync-after-regexp/output: -------------------------------------------------------------------------------- 1 | %synced ]> 2 | %done: , ]> 3 | %synced ]> 4 | %done: , ]> 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.hooks-across-imports/output: -------------------------------------------------------------------------------- 1 | tA 2 | tA: a b"12345" 3 | tB 4 | tB: x-1 $ b"66666" 5 | tB: x-2 $ b"66666" 6 | tA: x-1 b"66666" 7 | tA: x-2 b"66666" 8 | tB: y $ 77777 9 | -------------------------------------------------------------------------------- /tests/spicy/list/size.spicy: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @TEST-EXEC: spicy-driver-test %INPUT >output 2>&1 4 | # @TEST-EXEC: btest-diff output 5 | 6 | module Test; 7 | 8 | print |list(1, 2, 3)|; 9 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/debug.rst: -------------------------------------------------------------------------------- 1 | 2 | Debug Support 3 | ------------- 4 | 5 | TODO. 6 | 7 | Instructions 8 | ~~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-debug.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/operator_.rst: -------------------------------------------------------------------------------- 1 | 2 | Operators 3 | --------- 4 | 5 | TODO. 6 | 7 | Instructions 8 | ~~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-operator_.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/address.rst: -------------------------------------------------------------------------------- 1 | 2 | Address 3 | ------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-address.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/boolean.rst: -------------------------------------------------------------------------------- 1 | 2 | Booelean 3 | -------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-boolean.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/channel.rst: -------------------------------------------------------------------------------- 1 | 2 | Channel 3 | ------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-channel.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/integer.rst: -------------------------------------------------------------------------------- 1 | 2 | Integer 3 | ------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-integer.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/interval.rst: -------------------------------------------------------------------------------- 1 | 2 | Interval 3 | -------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-interval.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/network.rst: -------------------------------------------------------------------------------- 1 | 2 | Network 3 | ------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-network.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/overlay.rst: -------------------------------------------------------------------------------- 1 | 2 | Overlay 3 | ------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-overlay.rst 11 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.append-incr/output: -------------------------------------------------------------------------------- 1 | 65 2 | 66 3 | 67 4 | --- 5 | 68 6 | 69 7 | 70 8 | --- 9 | 71 10 | 72 11 | 73 12 | --- 13 | --- 14 | 74 15 | 75 16 | 76 17 | --- 18 | --- 19 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.length/output: -------------------------------------------------------------------------------- 1 | 0 2 | True 3 | Hallo 4 | 5 5 | 5 6 | Hallo 7 | False 8 | T\xc3\xa4\xc3\xa4\xc3\xa4! 9 | 8 10 | 5 11 | T\xc3\xa4\xc3\xa4\xc3\xa4! 12 | False 13 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.to-int-binary/output: -------------------------------------------------------------------------------- 1 | \x01\x02\x03\x04 -> 1020304 2 | \x01\x02\x03\x04 -> 4030201 3 | \x81 -> 81 4 | \x81 -> ffffffffffffff81 5 | \xff\xff\xff\xd6 -> ffffffffffffffd6 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.uncaught-exception/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, DivisionByZero (from /home/robin/work/hilti/tests/.tmp/hilti.core.uncaught-exception/uncaught-exception.hlt:11-12) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.nops/output: -------------------------------------------------------------------------------- 1 | False 2 | True 3 | 10.000000 4 | 5.000000 5 | 15 6 | -15 7 | 15 8 | 1024.000000 9 | 1024.000000 10 | 0.125000 11 | 42.000000 12 | -42.000000 13 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.bitops/output: -------------------------------------------------------------------------------- 1 | 1 2 | 257 3 | 3 4 | 3 5 | 767 6 | 767 7 | 126 8 | 126 9 | 63 10 | 63 11 | 1020 12 | 1020 13 | -4 14 | -4 15 | 16383 16 | 4611686018427387903 17 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.wrong-seq/output: -------------------------------------------------------------------------------- 1 | b"0123" 2 | hilti: uncaught exception, ValueError with argument 'invalid sequence number' (from /home/robin/work/hilti/libspicy/sink.c:160) 3 | -------------------------------------------------------------------------------- /tests/spicy/list/ctor.spicy: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @TEST-EXEC: spicy-driver-test %INPUT >output 2>&1 4 | # @TEST-EXEC: btest-diff output 5 | 6 | module Test; 7 | 8 | print list(1, 2, 3); 9 | -------------------------------------------------------------------------------- /bro/spicy/ssh.spicy: -------------------------------------------------------------------------------- 1 | 2 | module SSH; 3 | 4 | export type Banner = unit { 5 | magic : /SSH-/; 6 | version : /[^-]*/; 7 | dash : /-/; 8 | software: /[^\r\n]*/; 9 | }; 10 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.expression.index-error/output: -------------------------------------------------------------------------------- 1 | A 2 | error in , line 1: event/function bro_init raised exception: IndexError (from /home/robin/work/hilti/libhilti/map_set.c:360) 3 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/flow.rst: -------------------------------------------------------------------------------- 1 | 2 | 3 | Control Flow 4 | ============ 5 | 6 | TODO. 7 | 8 | Instructions 9 | ------------ 10 | 11 | .. include:: /build/autogen/hilti-instr-flow.rst 12 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/exception.rst: -------------------------------------------------------------------------------- 1 | 2 | Exception 3 | --------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-exception.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/ioSource.rst: -------------------------------------------------------------------------------- 1 | 2 | I/O Source 3 | ---------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-ioSource.rst 11 | -------------------------------------------------------------------------------- /hilti/builder/builder.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef HILTI_BUILDER_BUILDER_H 3 | #define HILTI_BUILDER_BUILDER_H 4 | 5 | #include "block.h" 6 | #include "module.h" 7 | #include "nodes.h" 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.double.div-by-zero-except/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, DivisionByZero (from /home/robin/work/hilti/tests/.tmp/hilti.double.div-by-zero-except/div-by-zero-except.hlt:11-13) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.throw-2/output: -------------------------------------------------------------------------------- 1 | A 2 | hilti: uncaught exception, myException with argument 'hallo' (from /home/robin/work/hilti/tests/.tmp/hilti.exceptions.throw-2/throw.hlt:13-14) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.exceptions.throw-3/output: -------------------------------------------------------------------------------- 1 | A 2 | hilti: uncaught exception, myException2 with argument 'hallo' (from /home/robin/work/hilti/tests/.tmp/hilti.exceptions.throw-3/throw.hlt:14-15) 3 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.div-by-zero-except/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, DivisionByZero (from /home/robin/work/hilti/tests/.tmp/hilti.integer.div-by-zero-except/div-by-zero-except.hlt:11-13) 2 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.opt.ctor-pass-functions/ctors: -------------------------------------------------------------------------------- 1 | call f_const (__opt_ctor_3) 2 | call f_non_const (b"B") 3 | call ft_const ((42, __opt_ctor_4)) 4 | call ft_non_const ((42, b"X")) 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.tuple.wrong-index-2/output: -------------------------------------------------------------------------------- 1 | 2 | >>> b = tuple.index a b 3 | wrong-index.hlt:8-9: error, operand must be a constant [pass::hilti::Validator] 4 | error running hiltic, aborting 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.backtrack/output: -------------------------------------------------------------------------------- 1 | Foo.a 2 | Backtracking 3 | Bar.a 4 | Bar.b 5 | Bar.c 6 | , b=b"567890"> 7 | -------------------------------------------------------------------------------- /tests/spicy/misc/hello-world-spicy-driver.spicy: -------------------------------------------------------------------------------- 1 | # 2 | # @TEST-EXEC: spicy-driver-test %INPUT >output 3 | # @TEST-EXEC: btest-diff output 4 | # 5 | 6 | module Test; 7 | 8 | print "Hello, world!"; 9 | -------------------------------------------------------------------------------- /tests/spicy/parsers/http/request.dat: -------------------------------------------------------------------------------- 1 | GET / HTTP/1.1 2 | User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 3 | Host: www.icir.org 4 | Accept: */* 5 | 6 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/caddr.rst: -------------------------------------------------------------------------------- 1 | 2 | C-level Address 3 | --------------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-caddr.rst 11 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/classifier.rst: -------------------------------------------------------------------------------- 1 | 2 | Classifier 3 | ---------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-classifier.rst 11 | -------------------------------------------------------------------------------- /libspicy/3rdparty/sha2/Makefile: -------------------------------------------------------------------------------- 1 | all: sha2 2 | 3 | sha2: sha2.o 4 | $(CC) $< -o $@ 5 | 6 | sha2.o: sha2.c sha2.h 7 | $(CC) -DTEST_VECTORS -c $< 8 | 9 | clean: 10 | -rm -rf *.o sha2 11 | 12 | -------------------------------------------------------------------------------- /scripts/llvm-ar-wrapper: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | 3 | shift # Remove command 4 | output=$1 5 | shift 6 | inputs=$@ 7 | 8 | llvm-link -o $output -disable-debug-info-type-map $inputs 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.to-int/output: -------------------------------------------------------------------------------- 1 | (12345,12345) 2 | (-12345,-12345) 3 | (ff,255) 4 | (,0) 5 | (99,99) 6 | hilti: uncaught exception, ValueError (from /home/robin/work/hilti/libhilti/bytes.c:1827) 7 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.struct-return/output: -------------------------------------------------------------------------------- 1 | (1) 2 | (1) 3 | (1) 4 | (1) 5 | (1,2) 6 | (1,2) 7 | (1,2) 8 | (1,2) 9 | (1,2,3) 10 | (1,2,3) 11 | (1,2) 12 | (42.000000,OK) 13 | (42.000000,99) 14 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module/output: -------------------------------------------------------------------------------- 1 | module.hlt:12.1-6: error, syntax error, unexpected "'module'", expecting '{' 2 | module.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.debug.assert-debug/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, AssertionError with argument 'Test False' (from /home/robin/work/hilti/tests/.tmp/hilti.debug.assert-debug/assert-debug.hlt:11-11) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.split/output: -------------------------------------------------------------------------------- 1 | (b"1", b"2 3") 2 | [b"1", b"2", b"3"] 3 | (b"1", b"X2XX3") 4 | [b"1", b"", b"2", b"", b"3"] 5 | (b"1", b"2XX3") 6 | [b"1", b"2", b"3"] 7 | (b"1", b"") 8 | [b"1"] 9 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.int/output: -------------------------------------------------------------------------------- 1 | 00000000 01 ff 01 02 01 02 01 02 03 04 01 02 03 04 05 06 |................| 2 | 00000010 07 08 |..| 3 | 00000012 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.bytes/hlt-debug.log: -------------------------------------------------------------------------------- 1 | 00000001 [spicy/main-thread] test 2 | 00000002 [spicy/main-thread] a = 1234 3 | 00000003 [spicy/main-thread] b = 567890 4 | -------------------------------------------------------------------------------- /tests/spicy/integer/cast-to-interval.spicy: -------------------------------------------------------------------------------- 1 | # $Id$ 2 | # 3 | # @TEST-EXEC: spicy-driver-test %INPUT >output 4 | # @TEST-EXEC: btest-diff output 5 | 6 | module Test; 7 | 8 | print cast(42); 9 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/timer_mgr.rst: -------------------------------------------------------------------------------- 1 | 2 | Timer Manager 3 | ------------- 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-timer_mgr.rst 11 | -------------------------------------------------------------------------------- /hilti/TODO: -------------------------------------------------------------------------------- 1 | - Many ast::rtti::tryCast should be ast::rtti::checkedCast (they used 2 | to be ast::as before we had the checked version). 3 | - Move implementation of instructions to *.cc where not done yet. 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-7/output: -------------------------------------------------------------------------------- 1 | 2 | >>> Bar 3 | module.hlt:4-4: error, unknown ID Bar [pass::hilti::IdResolver] 4 | module.hlt: Aborting due to verification error. 5 | error running hiltic, aborting 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.bytes.parse-const/hlt-debug.log: -------------------------------------------------------------------------------- 1 | 00000001 [spicy/main-thread] test 2 | 00000002 [spicy/main-thread] a = 1234 3 | 00000003 [spicy/main-thread] b = 567890 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.composer.addr/output: -------------------------------------------------------------------------------- 1 | 00000000 01 02 03 04 01 02 03 04 01 02 03 04 05 06 07 08 |................| 2 | 00000010 09 10 11 12 13 14 15 16 |........| 3 | 00000018 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.wrong-assign/output: -------------------------------------------------------------------------------- 1 | 2 | >>> a 3 | wrong-assign.spicy:6-8: error, incompatible type for assigment [pass::spicy::Validator] 4 | wrong-assign.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.integer.wrong-int-mix/output: -------------------------------------------------------------------------------- 1 | 2 | >>> a 3 | wrong-int-mix.spicy:6-8: error, incompatible integer operands [pass::spicy::Validator] 4 | wrong-int-mix.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.sink.reassembler.auto-trim/output: -------------------------------------------------------------------------------- 1 | hilti: uncaught exception, NotImplemeneted with argument 'disabling sink auto-trim not yet supported' (from /home/robin/work/hilti/libspicy/sink.c:775) 2 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.transient/hlt-debug.log: -------------------------------------------------------------------------------- 1 | 00000001 [spicy/main-thread] test 2 | 00000002 [spicy/main-thread] a = 1234 3 | 00000003 [spicy/main-thread] b = 567890 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.wrong-type/output: -------------------------------------------------------------------------------- 1 | 2 | >>> new test 3 | wrong-type.spicy:11-11: error, incompatible type for assigment [pass::spicy::Validator] 4 | wrong-type.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /doc/hilti/development.rst: -------------------------------------------------------------------------------- 1 | 2 | Development Documentation (Missing) 3 | =================================== 4 | 5 | TODO. 6 | 7 | (Note some out-of-date text is in ``old/developer-old.rst`` and ``old/dev-*.rst``). 8 | -------------------------------------------------------------------------------- /doc/hilti/machine-model/types/regexp.rst: -------------------------------------------------------------------------------- 1 | 2 | Regular Expression 3 | ------------------ 4 | 5 | TODO. 6 | 7 | Instruction 8 | ~~~~~~~~~~~ 9 | 10 | .. include:: /build/autogen/hilti-instr-regexp.rst 11 | -------------------------------------------------------------------------------- /libhilti/hilti-linux.ld: -------------------------------------------------------------------------------- 1 | SECTIONS 2 | { 3 | .rel.rodata.llvm_stackmaps : { 4 | PROVIDE(__start_LLVM_STACKMAPS = .); 5 | *(.llvm_stackmaps) 6 | } 7 | } 8 | 9 | INSERT AFTER .text; 10 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-2/output: -------------------------------------------------------------------------------- 1 | module.hlt:1.1-2.6: error, syntax error, unexpected "'struct'", expecting "'module'" 2 | module.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-3/output: -------------------------------------------------------------------------------- 1 | module.hlt:1.1-2.6: error, syntax error, unexpected "'global'", expecting "'module'" 2 | module.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-4/output: -------------------------------------------------------------------------------- 1 | module.hlt:1.1-2.4: error, syntax error, unexpected "'void'", expecting "'module'" 2 | module.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-5/output: -------------------------------------------------------------------------------- 1 | module.hlt:1.1-2.7: error, syntax error, unexpected "'declare'", expecting "'module'" 2 | module.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.module-6/output: -------------------------------------------------------------------------------- 1 | module.hlt:1.1-2.3: error, syntax error, unexpected identifier, expecting "'module'" 2 | module.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.interval.ops/output: -------------------------------------------------------------------------------- 1 | 12.500000s 2 | 7.500000s 3 | 20.000000s 4 | 5.000000s 5 | 25.000000s 6 | 25.000000s 7 | False 8 | True 9 | False 10 | True 11 | 12.500000 12 | 7 13 | 12500000000 14 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.backtrack-on-error/output: -------------------------------------------------------------------------------- 1 | Foo.a 2 | Error, backtracking 3 | Bar.a 4 | Bar.b 5 | Bar.c 6 | , b=b"567890"> 7 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.sink-mime/output: -------------------------------------------------------------------------------- 1 | Sub 2 | Sub3 3 | Sub2 4 | MT b"application/bar" 5 | Main > 6 | -------------------------------------------------------------------------------- /tests/Baseline/spicy.unit.switch-duplicate-case/output: -------------------------------------------------------------------------------- 1 | 2 | >>> 2 3 | switch-duplicate-case.spicy:15-15: error, duplicate case [pass::spicy::Validator] 4 | switch-duplicate-case.spicy: Aborting due to input error. 5 | -------------------------------------------------------------------------------- /tests/spicy/bytes/join.spicy: -------------------------------------------------------------------------------- 1 | # 2 | # @TEST-EXEC: spicy-driver-test %INPUT >output 2>&1 3 | # @TEST-EXEC: btest-diff output 4 | 5 | module Test; 6 | 7 | print b".".join(list("www", "icsi", "berkeley", "edu")); 8 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.bytes.unpack-fixed-or-eod/output: -------------------------------------------------------------------------------- 1 | sub=\x00\x05\x00\x01\x02 diff=5 2 | sub=\x00\x05\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f diff=18 3 | sub=\x00\x01\x02 diff=3 4 | sub= diff=0 5 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.c-api.yield/output: -------------------------------------------------------------------------------- 1 | Starting in C 2 | 1 3 | Back in C and resuming 4 | 2 5 | Back in C and resuming 6 | 3 7 | Back in C and resuming 8 | 4 9 | Back in C and resuming 10 | 5 11 | Done in C 12 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.no-run/output: -------------------------------------------------------------------------------- 1 | no-run.hlt:9-9: error, module Main must define a run() function [pass::hilti::Validator] 2 | no-run.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.wrong-decls-2/output: -------------------------------------------------------------------------------- 1 | wrong-decls.hlt:5.15: error, syntax error, unexpected '*', expecting integer 2 | wrong-decls.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.wrong-decls-4/output: -------------------------------------------------------------------------------- 1 | wrong-decls.hlt:4.12: error, syntax error, unexpected '*', expecting integer 2 | wrong-decls.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /bro/tests/Baseline/compiler.statement.for-vector/output: -------------------------------------------------------------------------------- 1 | [0: 1, 1: 2, 2: 3, 3: 4] 2 | 0 1 3 | 1 2 4 | 2 3 5 | 3 4 6 | 7 | [0: A, 1: B, 2: C] 8 | 0 A 9 | 1 B 10 | 2 C 11 | 12 | 0 A 13 | 14 | 0 A 15 | 2 C 16 | 17 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.core.no-run-2/output: -------------------------------------------------------------------------------- 1 | no-run.hlt:4-4: error, in module Main, ID 'run' must be a function [pass::hilti::Validator] 2 | no-run.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.enum.wrong-labels/output: -------------------------------------------------------------------------------- 1 | 2 | >>> A 3 | wrong-labels.hlt:14-14: error, unknown ID A [pass::hilti::IdResolver] 4 | wrong-labels.hlt: Aborting due to verification error. 5 | error running hiltic, aborting 6 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.file.hello-world-bytes-mixed/output: -------------------------------------------------------------------------------- 1 | 00000000 5c 78 30 31 00 5c 78 30 32 00 5c 78 30 33 00 5c |\x01.\x02.\x03.\| 2 | 00000010 78 30 34 00 0a 01 02 03 04 |x04......| 3 | 00000019 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.integer.wrong-width/output: -------------------------------------------------------------------------------- 1 | wrong-width.hlt:10.15-17: error, syntax error, unexpected identifier, expecting '<' 2 | wrong-width.hlt: Aborting due to verification error. 3 | error running hiltic, aborting 4 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.map.get-map-default-func/output: -------------------------------------------------------------------------------- 1 | { a: A, b: B } 2 | unknown 3 | xyz-unknown 4 | { 10.000000: 1, 20.000000: 2 } 5 | 1000.000000 6 | 314 7 | { 30.000000: 3, 20.000000: 2 } 8 | 2000.000000 9 | 628 10 | -------------------------------------------------------------------------------- /tests/Baseline/hilti.set.expire-clear/output: -------------------------------------------------------------------------------- 1 | { C-5, B-0, D-5, E-10, A-0, F-10 } 2 | 3 | { } 4 | 5 | --------------------------------------------------------------------------------