asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Missing cast instruction #23

Closed perimosocordiae closed 3 years ago

perimosocordiae commented 3 years ago

Context: https://github.com/perimosocordiae/advent-of-icarus-2020/blob/main/day01.ic

Running this results in:

[140271454439264 ./ir/instruction/set.h:70 operator()] Failed to find instruction N4base4MetaIN2ir15CastInstructionIllEEEE
icarus: external/com_google_absl/absl/container/internal/raw_hash_set.h:517: auto absl::container_internal::AssertIsFull(absl::container_internal::ctrl_t *)::(anonymous class)::operator()() const: Assertion `false && "(ctrl != nullptr && IsFull(*ctrl)) && \"Invalid operation on iterator. The element might have \" \"been erased, or the table might have rehashed.\""' failed.

I think it has something to do with the math operations I'm doing in the nested loops, but I can't say for sure. The invalid iterator operation seems pretty suspect.