[INFO] cloning repository https://github.com/tanin47/lilit [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tanin47/lilit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftanin47%2Flilit", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftanin47%2Flilit'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cb20b46c045ca64e99fd3e7edf4ce2d81a8d48b5 [INFO] testing tanin47/lilit against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftanin47%2Flilit" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tanin47/lilit on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tanin47/lilit [INFO] finished tweaking git repo https://github.com/tanin47/lilit [INFO] tweaked toml for git repo https://github.com/tanin47/lilit written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/tanin47/lilit already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c7767a604dd69a98999a2976b60eac65db332347b167cce95d4f393df2a1ef3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6c7767a604dd69a98999a2976b60eac65db332347b167cce95d4f393df2a1ef3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c7767a604dd69a98999a2976b60eac65db332347b167cce95d4f393df2a1ef3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c7767a604dd69a98999a2976b60eac65db332347b167cce95d4f393df2a1ef3", kill_on_drop: false }` [INFO] [stdout] 6c7767a604dd69a98999a2976b60eac65db332347b167cce95d4f393df2a1ef3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4cd42e81d47f790219657790278a0b675dbb1a8ee3195b186aba01cb08143c5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c4cd42e81d47f790219657790278a0b675dbb1a8ee3195b186aba01cb08143c5", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling ucd-util v0.1.2 [INFO] [stderr] Compiling proc-macro2 v0.4.23 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling inkwell v0.1.0 (https://github.com/tanin47/inkwell?rev=46d576c63a7bec3a5ff4c81efbe74842f850ff0a#46d576c6) [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling aho-corasick v0.6.9 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Compiling syn v0.15.20 [INFO] [stderr] Compiling enum-methods v0.0.8 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling llvm-sys v60.2.0 [INFO] [stderr] Compiling serde_json v1.0.51 [INFO] [stderr] Compiling inkwell_internal_macros v0.1.0 (https://github.com/tanin47/inkwell?rev=46d576c63a7bec3a5ff4c81efbe74842f850ff0a#46d576c6) [INFO] [stderr] Compiling lilit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the type `CompilationUnit` does not permit zero-initialization [INFO] [stdout] --> src/parse/mod.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | unit: unsafe { std::mem::MaybeUninit::zeroed().assume_init() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] note: `std::ptr::Unique` must be non-null (in this struct field) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 03s [INFO] running `Command { std: "docker" "inspect" "c4cd42e81d47f790219657790278a0b675dbb1a8ee3195b186aba01cb08143c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4cd42e81d47f790219657790278a0b675dbb1a8ee3195b186aba01cb08143c5", kill_on_drop: false }` [INFO] [stdout] c4cd42e81d47f790219657790278a0b675dbb1a8ee3195b186aba01cb08143c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d60e160391c6ba7c739ff94dc8bc868a4894fecf9c6544b52ced6d4983eea2e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8d60e160391c6ba7c739ff94dc8bc868a4894fecf9c6544b52ced6d4983eea2e", kill_on_drop: false }` [INFO] [stdout] warning: the type `CompilationUnit` does not permit zero-initialization [INFO] [stdout] --> src/parse/mod.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | unit: unsafe { std::mem::MaybeUninit::zeroed().assume_init() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] note: `std::ptr::Unique` must be non-null (in this struct field) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lilit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the type `CompilationUnit` does not permit zero-initialization [INFO] [stdout] --> src/parse/mod.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | unit: unsafe { std::mem::MaybeUninit::zeroed().assume_init() }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] note: `std::ptr::Unique` must be non-null (in this struct field) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 10.11s [INFO] running `Command { std: "docker" "inspect" "8d60e160391c6ba7c739ff94dc8bc868a4894fecf9c6544b52ced6d4983eea2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d60e160391c6ba7c739ff94dc8bc868a4894fecf9c6544b52ced6d4983eea2e", kill_on_drop: false }` [INFO] [stdout] 8d60e160391c6ba7c739ff94dc8bc868a4894fecf9c6544b52ced6d4983eea2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5a01286eae384aeb1c0a319579177191ac2eb362c6f92fd54e7b3dc43f130660 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5a01286eae384aeb1c0a319579177191ac2eb362c6f92fd54e7b3dc43f130660", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: the type `CompilationUnit` does not permit zero-initialization [INFO] [stderr] --> src/parse/mod.rs:43:24 [INFO] [stderr] | [INFO] [stderr] 43 | unit: unsafe { std::mem::MaybeUninit::zeroed().assume_init() }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] note: `std::ptr::Unique` must be non-null (in this struct field) [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] warning: the type `CompilationUnit` does not permit zero-initialization [INFO] [stderr] --> src/parse/mod.rs:43:24 [INFO] [stderr] | [INFO] [stderr] 43 | unit: unsafe { std::mem::MaybeUninit::zeroed().assume_init() }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] note: `std::ptr::Unique` must be non-null (in this struct field) [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/lilit-b5b4eb64c59f3d13 [INFO] [stdout] [INFO] [stderr] ; ModuleID = 'main' [INFO] [stdout] running 42 tests [INFO] [stderr] source_filename = "main" [INFO] [stdout] test analyse::tests::test_simple ... ok [INFO] [stderr] [INFO] [stdout] test analyse::tests::test_full ... ok [INFO] [stderr] %Int = type { %Native__Int* } [INFO] [stdout] test analyse::expr::member_access::tests::test_simple ... ok [INFO] [stderr] %Native__Int = type { i64 } [INFO] [stdout] test analyse::expr::literal_string::tests::test_simple ... ok [INFO] [stderr] [INFO] [stdout] test parse::def::method::tests::test_no_params ... ok [INFO] [stderr] define void @lilit_user_space__test() { [INFO] [stdout] test parse::def::method::tests::test_with_params ... ok [INFO] [stderr] first_block: [INFO] [stdout] test parse::def::params::tests::test_empty ... ok [INFO] [stderr] %"alloca assignment" = alloca %Int* [INFO] [stderr] %malloc = call i8* @GC_malloc(i64 ptrtoint (i64* getelementptr (i64, i64* null, i32 1) to i64)) [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stderr] %cast = bitcast i8* %malloc to %Native__Int* [INFO] [stderr] %"Gep for the native value of the class Native__Int" = getelementptr inbounds %Native__Int, %Native__Int* %cast, i32 0, i32 0 [INFO] [stderr] store i64 2, i64* %"; ModuleID = 'Gemainp' [INFO] [stderr] source_filename = "fmoari nt" [INFO] [stderr] he native v [INFO] [stderr] a%luStringe = type { of% Native__Stringt*h }e [INFO] [stderr] %cNative__Stringl = type a{ sis8 *N }a [INFO] [stderr] t%iIntv = type e{ _%_Native__IntI*n }t [INFO] [stderr] "% [INFO] [stderr] Native__Int = type { %imalloc164 = }call [INFO] [stderr] [INFO] [stderr] idefine 8i*64 @@GC_mallocnative__vprintf((ii648 *ptrtoint % (0i, 1...*)* {getelementptr [INFO] [stderr] (first_blocki:1 [INFO] [stderr] * , %iva_list1 = **alloca null{ , ii32, 32i 321, )i to 8i*64, )i)8 [INFO] [stderr] * }call [INFO] [stderr] voidcall @void GC_register_finalizer@(llvm.va_starti(8*{ i%32malloc1, , ivoid32 (, ii88**, , ii88**) }** @%GC_finalizerva_list, )i [INFO] [stderr] 8 *% "nullI, nvoidv (oik8e* , nia8t*i)v*e* mnulle, tih8o*d* vnullp)r [INFO] [stderr] i n%tcast2f = "bitcast = calli i864* @%vprintfmalloc1( to i%8Int** [INFO] [stderr] % 0%, "{ Gie32p, if32o, ri 8t*h, ei 8f*i }e*ld %#va_list0) [INFO] [stderr] o fcall tvoidh e@ llvm.va_endc(l{ ais32s, iI32n, ti"8 = *getelementptr, inboundsi 8%*Int },* %%Intva_list*) [INFO] [stderr] % cast2ret, ii3264 0%, "iI32n v0o [INFO] [stderr] k estore n%aNative__Intt*i v%ecast , m%eNative__Intt*h*o d% "vGperpi nftofr" [INFO] [stderr] t} [INFO] [stderr] h [INFO] [stderr] e f; Function Attrs: inounwinde [INFO] [stderr] ldeclared void# 0@ llvm.va_starto(fi 8t*h %e0 )c #l0a [INFO] [stderr] s [INFO] [stderr] sdeclare Iin64t "@ [INFO] [stderr] vprintf (storei 8%*Int %*0 , %{ cast2i, 32%, Inti*32*, i%8"*a, lil8o*c }a* %a1s)s [INFO] [stderr] i [INFO] [stderr] g; Function Attrs: nnounwindm [INFO] [stderr] edeclaren tvoid" [INFO] [stderr] @ llvm.va_endret( voidi [INFO] [stderr] 8} [INFO] [stderr] * [INFO] [stderr] %declare0 ) #0noalias [INFO] [stderr] [INFO] [stderr] idefine 8void* @@lilit_user_space__printlnGC_malloc((%iString64* % %00), [INFO] [stderr] % [INFO] [stderr] Intdeclare* %1void, %@IntGC_finalizer*( %i28)* { % [INFO] [stderr] 0first_block, :i [INFO] [stderr] 8 *% %"1P)a [INFO] [stderr] r [INFO] [stderr] adeclarem void0 @oGC_register_finalizerf( im8e*t %h0o, dvoid (pir8i*n, til8n*") = *alloca % 1%, Stringi*8 [INFO] [stderr] * %store2 , %voidString (*i 8%*0, , i%8String**)** * %%3", Pia8r*a*m % 40) [INFO] [stderr] of method println" [INFO] [stderr] %"Param 1 of method println" = alloca %Int* [INFO] [stderr] store %Int* %1, %Int** %"Param 1 of method println" [INFO] [stderr] %"Param 2 of method println" = alloca %Int* [INFO] [stderr] store %Int* %2, %Int** %"Param 2 of method println" [INFO] [stderr] %"Read ptr into String" = load %String*, %String** %"Param 0 of method println" [INFO] [stderr] %"Gep field 0 of String" = getelementptr inbounds %String, %String* %"Read ptr into String", i32 0, i32 0 [INFO] [stderr] %"Load field underlying for identifier underlying" = load %Native__String*, %Native__String** %"Gep field 0 of String" [INFO] [stderr] %"Gep the native value" = getelementptr inbounds %Native__String, %Native__String* %"Load field underlying for identifier underlying", i32 0, i32 0 [INFO] [stderr] %"Load the native value" = load i8*, i8** %"Gep the native value" [INFO] [stderr] %"Read ptr into Int" = load %Int*, %Int** %"Param 1 of method println" [INFO] [stdout] test emit::expr::assignment::tests::test_full ... ok [INFO] [stderr] %"Gep; ModuleID = 'main' [INFO] [stdout] test parse::def::params::tests::test_simple ... ok [INFO] [stderr] source_filename = "main" [INFO] [stdout] test analyse::expr::literal_char::tests::test_simple ... ok [INFO] [stderr] [INFO] [stdout] test parse::expr::atom::invoke::tests::test_simple ... ok [INFO] [stderr] %Char = type { %Native__Char* } [INFO] [stdout] test analyse::expr::identifier::tests::test_class_param ... ok [INFO] [stderr] %Native__Char = type { i8 } [INFO] [stdout] test analyse::expr::invoke::tests::test_instance_method ... ok [INFO] [stderr] [INFO] [stdout] test analyse::expr::int::tests::test_simple ... ok [INFO] [stderr] define %Char* @lilit_user_space__test() { [INFO] [stdout] test analyse::expr::assignment::tests::test_simple ... ok [INFO] [stderr] first_block: [INFO] [stdout] test emit::expr::literal_char::tests::test_full ... ok [INFO] [stderr] %malloc = call i8* @GC_malloc(i64 ptrtoint (i8* getelementptr (i8, i8* null, i32 1) to i64)) [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stderr] %cast = bitcast i8* %malloc to %Native__Char* [INFO] [stderr] %"Gep for the native value of the class Native__Char" = getelementptr inbounds %Native__Char, %Native__Char* %cast, i32 0, i32 0 [INFO] [stderr] store i8 97, i8* %"Gep for the native value of the class Native__Char" [INFO] [stderr] %malloc1 = call i8* @GC_malloc(i64 ptrtoint (i1** getelementptr (i1*, i1** null, i32 1) to i64)) [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc1, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stderr] %cast2 = bitcast i8* %malloc1 to %Char* [INFO] [stderr] %"Gep for the field #0 of the class Char" = getelementptr inbounds %Char, %Char* %cast2, i32 0, i32 0 [INFO] [stderr] store %Native__Char* %cast, %Native__Char** %"Gep for the field #0 of the class Char" [INFO] [stderr] ret %Char* %cast2 [INFO] [stderr] } [INFO] [stderr] [INFO] [stderr] declare noalias i8* @GC_malloc(i64 %0) [INFO] [stderr] [INFO] [stderr] declare void @GC_finalizer(i8* %0, i8* %1) [INFO] [stderr] [INFO] [stderr] declare void @GC_register_finalizer(i8* %0, void (i8*, i8*)* %1, i8* %2, void (i8*, i8*)** %3, i8** %4) [INFO] [stderr] ; ModuleID = 'main' [INFO] [stderr] source_filename = "main" [INFO] [stderr] [INFO] [stderr] %String = type { %Native__String* } [INFO] [stderr] %Native__String = type { i8* } [INFO] [stderr] %Int = type { %Native__Int* } [INFO] [stderr] %Native__Int = type { i64 } [INFO] [stderr] [INFO] [stderr] define void @native__printf(i8* %0) { [INFO] [stderr] first_block: [INFO] [stderr] call void @printf(i8* %0) [INFO] [stderr] ret void [INFO] [stderr] } [INFO] [stderr] [INFO] [stderr] declare void @printf(i8* %0) [INFO] [stderr] [INFO] [stderr] define void @lilit_user_space__println(%String* %0) { [INFO] [stderr] first_block: [INFO] [stderr] %"Param 0 of method println" = alloca %String* [INFO] [stderr] store %String* %0, %String** %"Param 0 of method println" [INFO] [stderr] %"Read ptr into String" = load %String*, %String** %"Param 0 of method println" [INFO] [stderr] %"Gep field 0 of String" = getelementptr inbounds %String, %String* %"Read ptr into String", i32 0, i32 0 [INFO] [stderr] %"Load field underlying for identifier underlying" = load %Native__String*, %Native__String** %"Gep field 0 of String" [INFO] [stderr] %"Gep the native value" = getelementptr inbounds %Native__String, %Native__String* %"Load field underlying for identifier underlying", i32 0, i32 0 [INFO] [stderr] %"Load the native value" = load i8*, i8** %"Gep the native value" [INFO] [stderr] call void @native__printf(i8* %"Load the native value") [INFO] [stderr] ret void [INFO] [stderr] } [INFO] [stderr] [INFO] [stderr] define %Int* @native__main() { [INFO] [stderr] first_block: [INFO] [stderr] %malloc = call i8* @GC_malloc(i64 mul nuw (i64 ptrtoint (i8* getelementptr (i8, i8* null, i32 1) to i64), i64 13)) [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stderr] %"Cast pointer to ArrayType" = bitcast i8* %malloc to [13 x i8]* [INFO] [stderr] %"Gep char 0 of string Hello world!" = getelementptr inbounds [13 x i8], [13 x i8]* %"Cast pointer to ArrayType", i32 0, i32 0 [INFO] [stderr] store i8 72, i8* %"Gep char 0 of string Hello world!" [INFO] [stderr] %"Gep char 1 of string Hello world!" = getelementptr inbounds [13 x i8], [13 x i8]* %"Cast pointer to ArrayType", i32 0, i32 1 [INFO] [stderr] store i8 101, i8* %"Gep char 1 of string Hello world!" [INFO] [stderr] %"Gep char 2 of string Hello world!" = getelementptr inbounds [13 x i8], [13 x i8]* %"Cast pointer to ArrayType", i32 0, i32 2 [INFO] [stderr] store i8 108, i8* %"Gep char 2 of string Hello world!" [INFO] [stderr] %"Gep char 3 of string Hello world!" = getelementptr inbounds [13 x i8], [13 x i8]* %"Cast pointer to ArrayType", i32 0, i32 3 [INFO] [stderr] store i8 108, i8* %"Gep char 3 of string Hello world!" [INFO] [stderr] %"Gep char 4 of string Hello world!" = getelementptr inbounds [13 x i8], [13 x i8]* %"Cast pointer to ArrayType", i32 0, i32 4 [INFO] [stderr] store i8 111, i8* %"Gep char 4 of string Hello world!" [INFO] [stdout] test tokenize::tests::test_empty_string ... ok [INFO] [stderr] %"Gep char 5 of string Hello field 0 of Int" = getelementptr inbounds %Int, %Int* %"Read ptr into Int", i32 0, i32 0 [INFO] [stdout] test tokenize::tests::test_bit ... ok [INFO] [stderr] %"Load field underlying for identifier underlying1" = load %Native__Int*, %Native__Int** %"Gep field 0 of Int" [INFO] [stdout] test tokenize::tests::test_char ... ok [INFO] [stderr] %"Gep the native value2" = getelementptr inbounds %Native__Int, %Native__Int* %"Load field underlying for identifier underlying1", i32 0, i32 0 [INFO] [stdout] test tokenize::tests::test_escaped_backslash_char ... ok [INFO] [stderr] %"Load the native value3" = load i64, i64* %"Gep the native value2" [INFO] [stdout] test tokenize::tests::test_empty_char ... ok [INFO] [stderr] %"Read ptr into Int4" = load %Int*, %Int** %"Param 2 of method println" [INFO] [stdout] test parse::tests::test_simple ... ok [INFO] [stderr] %"Gep field 0 of Int5" = getelementptr inbounds %Int, %Int* %"Read ptr into Int4", i32 0, i32 0 [INFO] [stdout] test index::tests::test_simple ... ok [INFO] [stderr] %"Load field underlying for identifier underlying6" = load %Native__Int*, %Native__Int** %"Gep field 0 of Int5" [INFO] [stdout] test parse::def::class::tests::test_simple ... ok [INFO] [stderr] %"Gep the native value7" = getelementptr inbounds %Native__Int, %Native__Int* %"Load field underlying for identifier underlying6", i32 0, i32 0 [INFO] [stdout] test emit::expr::identifier::tests::test_simple ... ok [INFO] [stderr] %"Load the native value8" = load i64, i64* %"Gep the native value7" [INFO] [stdout] test tokenize::tests::test_escaped_backslash_string_3 ... ok [INFO] [stderr] %native__vprintf = call i64 (i8*, ...) @native__vprintf(i8* %"Load the native value", i64 %"Load the native value3", i64 %"Load the native value8") [INFO] [stdout] test tokenize::tests::test_word ... ok [INFO] [stderr] %malloc = call i8* @GC_malloc(i64 ptrtoint (i64* getelementptr (i64, i64* null, i32 1) to i64)) [INFO] [stdout] test tokenize::tests::test_unicode ... ok [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stdout] test tokenize::tests::test_symbol ... ok [INFO] [stderr] %cast = bitcast i8* %malloc to %Native__Int* [INFO] [stdout] test tokenize::tests::test_escaped_backslash_string_2 ... ok [INFO] [stderr] %"Gep for the native param of the class Native__Int" = getelementptr inbounds %Native__Int, %Native__Int* %cast, i32 0, i32 0 [INFO] [stdout] test tokenize::tests::test_escaped_backslash_string ... ok [INFO] [stderr] store i64 %native__vprintf, i64* %"Gep for the native param of the class Native__Int" [INFO] [stdout] test tokenize::tests::test_escaped_char ... ok [INFO] [stderr] ret void [INFO] [stdout] test tokenize::tests::test_float ... ok [INFO] [stderr] } [INFO] [stdout] test tokenize::tests::test_hex ... ok [INFO] [stderr] [INFO] [stdout] test tokenize::tests::test_int ... ok [INFO] [stderr] declare noalias i8* @GC_malloc(i64 %0) [INFO] [stdout] test parse::expr::atom::new_instance::tests::test_simple ... ok [INFO] [stderr] [INFO] [stdout] test parse::expr::level_010::tests::test_dot ... ok [INFO] [stderr] declare void @GC_finalizer(i8* %0, i8* %1) [INFO] [stdout] test tokenize::tests::test_complex ... ok [INFO] [stderr] [INFO] [stderr] declare void @GC_register_finalizer(i8* %0, void (i8*, i8*)* %1, i8* %2, void (i8*, i8*)** %3, i8** %4) [INFO] [stderr] [INFO] [stderr] define void @lilit_user_space__test() { [INFO] [stderr] first_block: [INFO] [stderr] %malloc = call i8* @GC_malloc(i64 mul nuw (i64 ptrtoint (i8* getelementptr (i8, i8* null, i32 1) to i64), i64 11)) [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stderr] %"Cast pointer to ArrayType" = bitcast i8* %malloc to [11 x i8]* [INFO] [stderr] %"Gep char 0 of string Test %d %d" = getelementptr inbounds [11 x i8], [11 x i8]* %"Cast pointer to ArrayType", i32 0, i32 0 [INFO] [stderr] store i8 84, i8* %"Gep char 0 of string Test %d %d" [INFO] [stderr] %"Gep char 1 of string Test %d %d" = getelementptr inbounds [11 x i8], [11 x i8]* %"Cast pointer to ArrayType", i32 0, i32 1 [INFO] [stderr] store i8 101, i8* %"Gep char 1 of string Test %d %d" [INFO] [stderr] %"Gep char 2 of stri; ModuleID = 'main' [INFO] [stderr] source_filename = "main" [INFO] [stderr] [INFO] [stderr] %Int = type {} [INFO] [stderr] %Test = type { %Int* } [INFO] [stderr] [INFO] [stderr] define %Int* @lilit_user_space__test(%Test* %0) { [INFO] [stderr] first_block: [INFO] [stderr] %"Param 0 of method test" = alloca %Test* [INFO] [stderr] store %Test* %0, %Test** %"Param 0 of method test" [INFO] [stderr] %"Read ptr into Test" = load %Test*, %Test** %"Param 0 of method test" [INFO] [stderr] %"Gep field 0 of Test" = getelementptr inbounds %Test, %Test* %"Read ptr into Test", i32 0, i32 0 [INFO] [stderr] %"Load field a for identifier -" = load %Int*, %Int** %"Gep field 0 of Test" [INFO] [stderr] ret %Int* %"Load field a for identifier -" [INFO] [stderr] } [INFO] [stderr] world!" = getelementptr inbounds [13 x i8], [13 x i8]* %"Cast pointer to ArrayType", i32 0, i32 5 [INFO] [stderr] store i8 32, i8* %"Gep char 5 of string Hello world!"n [INFO] [stderr] g %T"eGsetp %cdh a%rd "6 = ogetelementptrf inbounds s t[ri11n x gi 8H]e,l l[o11 x wio8r]l*d !"% = "getelementptrC inboundsa s[t13 x pio8i]n,t e[r13 x tio8 ]A*r r%a"yCTayspe", i32 0, i32 2 [INFO] [stderr] store i8 115, i8* %t" Gep char 2 of string Test %d %d" [INFO] [stderr] %"Gep charp o3inter to ArrayType", i32 0 , oif32 s6t [INFO] [stderr] r instoreg iT8est %d %d" = 119getelementptr, inboundsi 8[*11 x %i"8G]e,p [c11h x air8 ]6* o%f" Csatsrting Hello world!" [INFO] [stderr] %"Gep char 7 of sptoriinntge rH etlol oA rwroarylTdy!p"e = "getelementptr, inboundsi 32[ 130 x , ii832] ,3 [INFO] [stderr] [ 13 x storei 8i]8* 116%", Cia8s*t %p"oGienpt ecrh atro 3A rorfa ysTtyrpien"g, iT32e s0t, i%32d 7% [INFO] [stderr] d "store [INFO] [stderr] %i"8G e111p, ic8h*a r% "4G eopf cshtarri n7g oTfe sstt r%idn g% dH"e = lgetelementptrl inboundso [w11o x ril8d]!," [INFO] [stderr] [ 11% x "iG8e]p* c%h"aCra s8t opfo isnttreirn gt oH eAlrlroa ywToyrpled"!, "i = 32getelementptr inbounds0 , [i1332 x i48 [INFO] [stderr] ] ,store [i138 x i328, ]i*8 *% "%C"aGsetp pcohianrt e4r otfo sAtrrrianygT yTpees"t, i%32d 0%, di"32 [INFO] [stderr] 8% [INFO] [stderr] " Gstoree pi 8c h114a, ri 85* o%f" Gsetpr icnhga rT e8s to f% ds t%rdi"n = ggetelementptr inboundsH e[l11l x oi 8w]o,r l[d11! x "i [INFO] [stderr] 8 ]%*" G%e"pC acshta rp o9i notfe rs ttroi nAgr rHaeylTlyop ew"o, ril32d !0", = igetelementptr32 inbounds 5[ [INFO] [stderr] 13 x storei 8i]8, 37[, 13i x 8i*8 ]%*" G%e"pC acshta rp o5i notfe rs ttroi nAgr rTaeysTty p%ed" , %id32" [INFO] [stderr] 0 , %i"32G e9p [INFO] [stderr] cstoreh air8 6108 , oif8 *s t%r"iGnegp Tcehsatr %9d o%fd "s = tgetelementptrr inboundsi n[g11 x Hie8l]l,o w[o11r x lid8!]"* [INFO] [stderr] %%""CGaespt cphoairn t1e0r otfo sAtrrrianygT yHpeel"l, oi 32w o0r, lid32! "6 = [INFO] [stderr] getelementptr inboundsstore [i138 x i1008, ]i,8 *[ 13% x "iG8e]p* c%h"aCra s6t opfo isnttreirn gt oT eAsrtr a%ydT y%pde"" [INFO] [stderr] , i%32" G0e, pi c32h a10r [INFO] [stderr] 7store oif8 s100t, rii8n*g %T"eGsetp %cdh a%rd "1 = 0getelementptr inboundso f[ 11s x tir8i]n,g [H11e x lil8o] *w o%r"lCda!s"t [INFO] [stderr] p%o"iGnetpe rc htaor A1r1r aoyfT yspter"i, nig32 H0e, lil32o 7w [INFO] [stderr] o rstorel di!8" = 32getelementptr, inboundsi 8[*13 x %i"8G]e,p [c13h x air8 ]7* o%f" Csatsrti npgo iTnetsetr %tdo %Adr"r [INFO] [stderr] a y%T"yGpeep" , cih32a r0 , 8i 32o f 11s [INFO] [stderr] t rstorei nig8 T33e, sit8 *% d% "%Gde"p = getelementptrc inboundsh a[r11 x 1i18 ]o,f [s11t x rii8n]g* H%e"lClaos tw oprolidn!t"e [INFO] [stderr] r t%o" GAerpr atyhTey plea"s, ti 32p o0s, iit32i o8n [INFO] [stderr] fstoreo r it8h e37 , tie8r*m i%n"aGteipn gc hsayrm b8o lo fo fs tsrtirnign gT eHsetl l%od w%odr"l [INFO] [stderr] d !%"" = Ggetelementptre inboundsp [c13h x air8 ]9, o[f13 x sit8r]i*n g% "TCeasstt %pdo i%ndt"e = rgetelementptr inboundst o[ 11A x rir8a]y,T yp[e11" x , ii832] *0 , %i"32C a12s [INFO] [stderr] t storep oii8n t0e, ri 8t*o %A"rGreapy Ttyhpee "l, ais32t 0p, ois32i t9i [INFO] [stderr] o nstore fio8r 100t, hie8 *t e%r"mGienpa tcihnagr s9y mobfo ls torfi nsgt rTiensgt H%edl l%od "wo [INFO] [stderr] r l%d"!G"e [INFO] [stderr] p %t"hCea slta stto peolsiimtiinoant ef otrh et hsei ztee rimnifnoa"t = ibitcastn g[ s13y x mib8o]l* o%f" Csatsrti npgo iTnetsetr %tdo A%rdr"a = ygetelementptrT inboundsy p[e"11 to x ii88*] [INFO] [stderr] , %[malloc111 = x calli8] *i 8%*" C@aGC_mallocs(t ip64o inptrtointt (eri 1t*o* Agetelementptrr (ria1y*T, yip1e*"*, i32null , 0i, 32i 321 )10 to [INFO] [stderr] i 64store) )i [INFO] [stderr] 8 call0, ivoid8 *@ %GC_register_finalizer"(Gie8p* t%hmalloc1e, voidl (ais8t* , pio8s*i)t*i o@nGC_finalizer , fio8r* thnulle, voidt (eir8m*i, nia8t*i)n*g* snully, mib8ol* *o fnull )s [INFO] [stderr] t r%icastn = gbitcast Tie8s*t %%malloc1d to %%dNative__String"* [INFO] [stderr] [INFO] [stderr] %%""CGaespt ftoor etlhiem innaattiev et hvea lsuiez eo fi ntfhoe" = cbitcastl a[s11s x iN8a]t*i v%e_"_CSatsrti npgo"i = ngetelementptrt inboundse r% tNative__Stringo, A%rNative__Stringr*a y%Tcasty, pie32" to i08, *i [INFO] [stderr] 32 %0malloc1 [INFO] [stderr] = callstore ii88** %@"GC_mallocC(ais64t tptrtointo ( ie1l*i*m igetelementptrn (ait1e* , tih1e* *s inullz, ei 32i n1f)o to "i, 64i)8)* [INFO] [stderr] * call% "voidG e@pGC_register_finalizer (fio8r* t%hmalloc1e, voidn (ait8i*v, ei 8v*a)l*u e@ GC_finalizero, fi 8t*h enull , cvoidl (ais8s* , Nia8t*i)v*e*_ _nullS, tir8i*n*g "null [INFO] [stderr] ) [INFO] [stderr] % malloc2% = castcall = bitcasti 8i*8 *@ GC_malloc%(malloc1i to 64% Native__Stringptrtoint* ( [INFO] [stderr] i 1%*"*G egetelementptrp ( if1o*r, it1h*e* nnulla, tiiv32e 1v)a to liu64e) )o [INFO] [stderr] f callth evoid c@lGC_register_finalizera(sis8 *N a%tmalloc2i, vevoid_ (_iS8t*r, iin8g*") = *getelementptr inbounds@ GC_finalizer%, Native__Stringi,8 *% Native__Stringnull*, void% (casti, 8i*32, i08, *i)32* *0 [INFO] [stderr] null , storei 8i*8** null%)" [INFO] [stderr] C a%scast3t = bitcastt oi 8e*l i%mmalloc2i to n%aStringt*e [INFO] [stderr] t%h"eG espi zfeo ri ntfhoe" , fii8e*l*d %#"0G eopf ftohre tchlea snsa tSitvrei nvga"l = getelementptru inboundse %oStringf, t%hStringe* c%lcast3a, sis32 N0a, tii32v e0_ [INFO] [stderr] _ Sstoretr i%nNative__Stringg*" [INFO] [stderr] % cast%, malloc2% = Native__Stringcall* *i 8%*" G@eGC_mallocp( if64o rptrtoint (tih1e* *f igetelementptre (lid1 *#, 0i 1o*f* tnullh, ei 32c l1a)s to si 64S)t)r [INFO] [stderr] i ncallg "void [INFO] [stderr] @callGC_register_finalizer (voidi 8@* lilit_user_space__println%(malloc2%, Stringvoid* ( i%8cast3*), [INFO] [stderr] i 8%*malloc4) = *call @iGC_finalizer8, *i 8@*GC_malloc (nulli, 64void (iptrtoint8 (*i, 64i*8 *getelementptr) (*i*64 , nulli, 64i*8 *null*, inull32) [INFO] [stderr] 1 )% to cast3i = 64bitcast) )i [INFO] [stderr] 8 *call %voidmalloc2 to @%GC_register_finalizerString(*i [INFO] [stderr] 8 *% "%Gmalloc4e, pvoid (fio8r* , tih8e* )f*i e@lGC_finalizerd, i#80* onullf, voidt (hie8 *c, lia8s*s) *S*t rnulli, nig8"* = *getelementptr inboundsnull )% [INFO] [stderr] String ,% cast5% = Stringbitcast* i%8cast3*, i%32malloc4 to 0%, Native__Inti*32 [INFO] [stderr] 0% [INFO] [stderr] " Gstoree p% Native__Stringf*o r% castt, h%eNative__String *n*a t%i"vGee pv afloure tohfe tfhiee lcdl a#s0s oNfa ttihvee _c_lIansts" = Sgetelementptrt inboundsr i%nNative__Intg," [INFO] [stderr] % Native__Int%*malloc4 = %callcast5 , ii832* 0@, GC_malloci(32i 640 [INFO] [stderr] ptrtoint (storei 64i*64 getelementptr123 (, ii6464, *i 64%*" Gnulle, pi 32f or1 )t to hie64 )n)a [INFO] [stderr] t icallv evoid v@aGC_register_finalizerl(uie8 *o f% malloc4t, hvoide ( ic8l*a, sis8 *N)a*t i@vGC_finalizere, _i_8I*n tnull", [INFO] [stderr] void (%imalloc68 = *call, i 8i*8)** *@ GC_mallocnull(, ii648 **ptrtoint (nulli)1 [INFO] [stderr] * *% cast5getelementptr = (bitcasti 1i*, 8i*1 *%*malloc4 to null%, Native__Inti*32 [INFO] [stderr] 1%)" to Gie64p) )f [INFO] [stderr] o rcall tvoidh e@ nGC_register_finalizera(tii8v*e %vmalloc6a, lvoidu (ei 8o*f, it8h*e) *c l@aGC_finalizers, si 8N*a tnulli, vvoide (_i_8I*n, ti"8 = *getelementptr) inbounds* *% Native__Intnull,, i%8Native__Int*** %nullcast5), [INFO] [stderr] i 32% cast70 = , bitcasti 32i 80* [INFO] [stderr] %storemalloc6 to i%64Int *1 [INFO] [stderr] , i%64"*G e%p" Gfeopr ftohre tfhiee lnda t#i0v eo fv atlhuee colfa stsh eI nctl"a = sgetelementptrs inbounds N%aIntt,i v%eInt_*_ I%ncast7t, "i [INFO] [stderr] 32 %0malloc6, = icall32 i08 [INFO] [stderr] * store@ GC_malloc%(Native__Inti*64 %ptrtointcast5 (, i%1Native__Int**** getelementptr% ("iG1e*p, if1o*r* tnullh, ei 32f i1e)l to di 64#)0) [INFO] [stderr] o fcall tvoidh e@ GC_register_finalizerc(lia8s*s %Imalloc6n, tvoid" ( [INFO] [stderr] i 8ret* , %iInt8** )%*cast7 [INFO] [stderr] @GC_finalizer} [INFO] [stderr] , [INFO] [stderr] i8declare* null, voidnoalias ( ii88**, i@8GC_malloc*()i*64* null %, 0i)8* [INFO] [stderr] * [INFO] [stderr] nulldeclare) [INFO] [stderr] void %@cast7GC_finalizer = (bitcasti 8i*8 %*0 , %imalloc68 to *% %Int1*) [INFO] [stderr] [INFO] [stderr] [INFO] [stdout] test tokenize::tests::test_oneline_comment ... ok [INFO] [stderr] %declare" Gvoide p for the field #0 of the class Int" = getelementptr inbounds %Int, %Int* %cast7, i32 0, i32 0 [INFO] [stdout] test tokenize::tests::test_string ... ok [INFO] [stderr] store %Native__Int* %cast5, %Native__Int** %"Gep for the field #0 of the class Int" [INFO] [stdout] test emit::expr::invoke::tests::test_full ... ok [INFO] [stderr] %malloc8 = call i8* @GC_malloc(i64 ptrtoint (i64* getelementptr (i64, i64* null, i32 1) to i64)) [INFO] [stdout] test emit::tests::test_full ... ok [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc8, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stdout] [INFO] [stderr] %cast9 = bitcast i8* %malloc8 to %Native__Int* [INFO] [stdout] test result: ok. 42 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stderr] %"Gep for the native value of the class Native__Int10" = getelementptr inbounds %Native__Int, %Native__Int* %cast9, i32 0, i32 0 [INFO] [stdout] [INFO] [stderr] store i64 2, i64* %"Gep for the native value of the class Native__Int10" [INFO] [stderr] %malloc11 = call i8* @GC_malloc(i64 ptrtoint (i1** getelementptr (i1*, i1** null, i32 1) to i64)) [INFO] [stderr] call void @GC_register_finalizer(i8* %malloc11, void (i8*, i8*)* @GC_finalizer, i8* null, void (i8*, i8*)** null, i8** null) [INFO] [stderr] %cast12 = bitcast i8* %malloc11 to %Int* [INFO] [stderr] %"Gep for the field #0 of the class Int13" = getelementptr inbounds %Int, %Int* %cast12, i32 0, i32 0 [INFO] [stderr] store %Native__Int* %cast9, %Native__Int** %"Gep for the field #0 of the class Int13" [INFO] [stderr] call void @lilit_user_space__println(%String* %cast3, %Int* %cast7, %Int* %cast12) [INFO] [stderr] ret void [INFO] [stderr] } [INFO] [stderr] [INFO] [stderr] attributes #0 = { nounwind } [INFO] [stderr] @GC_register_finalizer(i8* %0, void (i8*, i8*)* %1, i8* %2, void (i8*, i8*)** %3, i8** %4) [INFO] [stderr] [INFO] [stderr] define i32 @main(i32 %0, i8** %1) { [INFO] [stderr] first_block: [INFO] [stderr] %main = call %Int* @native__main() [INFO] [stderr] %"Gep for the first param of Int" = getelementptr inbounds %Int, %Int* %main, i32 0, i32 0 [INFO] [stderr] %"Load the first param of Int" = load %Native__Int*, %Native__Int** %"Gep for the first param of Int" [INFO] [stderr] %"Gep for the first param of Native__Int" = getelementptr inbounds %Native__Int, %Native__Int* %"Load the first param of Int", i32 0, i32 0 [INFO] [stderr] %"Load the first param of Native__Int" = load i64, i64* %"Gep for the first param of Native__Int" [INFO] [stderr] %"Cast return type" = trunc i64 %"Load the first param of Native__Int" to i32 [INFO] [stderr] ret i32 %"Cast return type" [INFO] [stderr] } [INFO] [stderr] Running /opt/rustwide/target/debug/deps/lilit-645621bad9d3c533 [INFO] [stdout] [INFO] [stderr] Doc-tests lilit [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5a01286eae384aeb1c0a319579177191ac2eb362c6f92fd54e7b3dc43f130660", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a01286eae384aeb1c0a319579177191ac2eb362c6f92fd54e7b3dc43f130660", kill_on_drop: false }` [INFO] [stdout] 5a01286eae384aeb1c0a319579177191ac2eb362c6f92fd54e7b3dc43f130660