Repository navigation
Conversation
1829452 to
99a4bbf
Compare
There was a problem hiding this comment.
Why did you remove these guards? The project uses them
There was a problem hiding this comment.
Understood. The original #ifndef / #define header guards were restored across all public headers in commit ce52517 to adhere strictly to the project standard.
| #define MX_NEXT() \ | ||
| do { \ | ||
| if (vm->interrupt) { \ | ||
| if (luai_unlikely(vm->interrupt)) { \ |
There was a problem hiding this comment.
Where does this come from and why is it being used?
There was a problem hiding this comment.
Agreed. Manual branch prediction annotations (luai_unlikely) were removed in commit ce52517. The dispatch loop now uses standard conditional checks, leaving branch weighting to the compiler and PGO.
There was a problem hiding this comment.
Does this stay keep up to date with source? What exactly does this check that isn't clear via source?
There was a problem hiding this comment.
This is an offline verification utility rather than an active build step. It uses Z3 to formally verify that the x86 assembly sequence emitted for IR_IDIV and IR_IMOD matches Lua 5.4 floor division semantics across all 64-bit signed inputs, particularly for negative operands and INT64_MIN where x86 truncated division diverges from Lua.
| } | ||
| mx_main_exit_t status = mx_main_run_all(vm, prog, &cmd, argv, cmd.is_interactive || is_auto, is_version); | ||
| mx_mem_free(cmd.steps); | ||
| mx_main_cmd_free(&cmd); |
There was a problem hiding this comment.
This project does not use out params!
There was a problem hiding this comment.
Resolved in commit 212f139. The &cmd pointer passing was removed. Step memory allocation and cleanup now follow standard value semantics and mx_mem_free(cmd.steps).
No, you've moved it away from how the headers worked. This is making it less fitting with our standard What does the SMT do? Is it just checking x86 math by hand?
Is this better than PGO? Where do these locations come from? I don't want them what is essentially blessed by hand or worse added via an AI that hasn't profiled what is likely.
Explain to me in your words (not AI) what this means... I see a lot of dense buzz words and technical things. What does this... do for the runtime? |
|
all I know is hello world |
…l phase to luapattern
Summary
Testing