LLUBI(1)

๐Ÿ“ฆ
version 23.1.4 ยท 4 versions
, in arch rolling

LLUBI(1) ๐Ÿ’…โœจ

This is the LLVM manual page for llubi, the UB-aware interpreter, and weโ€™re doing it in group-chat voice because you deserve to actually get it. ๐Ÿซถ

๐ŸŒธ NAME ๐ŸŒธ

llubi โ€” LLVM UB-aware Interpreter.

โœจ SYNOPSIS โœจ

llubi [options] [filename] [program args]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Okay so llubi directly executes programs in LLVM bitcode format and tracks values in LLVM IR semantics. Unlike lli, llubi is designed to be aware of undefined behaviors during execution. It detects immediate undefined behaviors such as integer division by zero, and it respects poison generating flags like nsw and nuw. Because it captures most of the guardable undefined behaviors, it is highly suitable for constructing an interesting-ness test for miscompilation bugs. No cap, thatโ€™s the whole point. ๐Ÿ”ฅ

If filename is not specified, then llubi reads the LLVM bitcode for the program from standard input. ๐Ÿซถ

The optional args specified on the command line are passed to the program as arguments. Periodt. ๐Ÿ’…

๐Ÿ’– GENERAL OPTIONS ๐Ÿ’–

  • -fake-argv0=executable โ€” Override the argv[0] value passed into the executing program. ๐ŸŽ€
  • -entry-function=function โ€” Specify the name of the function to execute as the programโ€™s entry point. By default, llubi uses the function named main. ๐Ÿ‘‘
  • -help โ€” Print a summary of command line options. ๐ŸŒธ
  • -verbose โ€” Print results for each instruction executed. ๐Ÿ”
  • -version โ€” Print out the version of llubi and exit without doing anything else. โœจ

๐Ÿงš INTERPRETER OPTIONS ๐Ÿงš

  • -max-mem=N โ€” Limit the amount of memory (in bytes) that can be allocated by the program, including stack, heap, and global variables. If the limit is exceeded, execution will be terminated. By default, there is no limit (N = 0). ๐Ÿ’พ
  • -max-stack-depth=N โ€” Limit the maximum stack depth to N. If the limit is exceeded, execution will be terminated. The default limit is 256. Set N to 0 to disable the limit. ๐Ÿฅž
  • -max-steps=N โ€” Limit the number of instructions executed to N. If the limit is reached, execution will be terminated. By default, there is no limit (N = 0). ๐Ÿ‘Ÿ
  • -vscale=N โ€” Set the value of llvm.vscale to N. The default value is 4. ๐Ÿ“
  • -seed=N โ€” Set the seed for random number generator to N. By default, the seed is 0. ๐ŸŽฒ
  • -undef-behavior=mode โ€” Set the behavior for undefined values (e.g., load from uninitialized memory or freeze a poison value). The options for mode are:
    • nondet โ€” Each load from the same uninitialized byte yields a freshly random value. This is the default behavior. ๐ŸŒ€
    • zero โ€” Uninitialized values are treated as zero. 0๏ธโƒฃ
  • -nan-behavior=mode โ€” Set the behavior for payload preserving behavior of floating-point NaN values. The options for mode are:
    • nondet โ€” The actual behavior is randomly chosen from the modes below. This is the default behavior. ๐ŸŽฐ
    • preferred โ€” The quiet bit is set and the payload is all-zero. ๐ŸงŠ
    • quieting โ€” The quiet bit is set and the payload is copied from any input operand that is a NaN. ๐Ÿคซ
    • unchanged โ€” The quiet bit and payload are copied from any input operand that is a NaN. ๐Ÿชž
    • target-specific โ€” The quiet bit is set and the payload is picked from a known target-specific set of extra possible NaN payloads. ๐ŸŽฏ
  • -deterministic โ€” Disable interpreter-introduced non-determinism (off by default). This option implies -undef-behavior=zero and -nan-behavior=preferred. ๐Ÿ”’
  • -fuse-fmuladd โ€” Treat llvm.fmuladd.* as llvm.fma.*. It is the default behavior. Otherwise, it is expanded into a * b + c. ๐Ÿงฎ
  • -disable-verify โ€” Disable the validation of the input LLVM IR. The user is responsible for the validity of inputs. The verifier is executed by default.
Bestie, -disable-verify is a โ€œyou break it, you own itโ€ situation: the user is responsible for the validity of inputs. The verifier is executed by default. โš ๏ธ

๐ŸŒˆ EXIT STATUS ๐ŸŒˆ

If llubi fails to load the program, or an error occurs during execution (e.g., an immediate undefined behavior is triggered), it will exit with an exit code of 1. If the return type of entry function is not an integer type, it will return 0. Otherwise, it will return the exit code of the program. ๐Ÿ’€โœจ

๐Ÿ‘‘ Author ๐Ÿ‘‘

Maintained by the LLVM Team (https://llvm.org/). ๐Ÿซถ

2003-2026, LLVM Project ๐Ÿ’œ


LLVM 23 ยท 2026-10-20 ยท LLUBI(1) โ€” thatโ€™s the page, bestie; go run some bitcode ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from
  • arch rolling: llvm 23.1.4-1 ยท Apache-2.0 WITH LLVM-exception
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms