GitNexus/gitnexus/test/fixtures/move/aptos-stdlib/math64/sources/math64.move
zwxxb 1c58114e57 feat(move): add compiler-first graph ingestion
Integrate Move compiler facts across indexing, persistence, and MCP queries while keeping shared ingestion language-agnostic and incremental updates safe.

Co-authored-by: GotenJBZ <marco@freemaker.it>
2026-07-18 15:37:42 +02:00

19 lines
579 B
Text

module aptos_std::math64 {
/// Inline helper — produces NO CALLS edges in the GitNexus graph.
/// Used by `consumer::compound` below; the inline-fun gotcha skill
/// applies here.
public inline fun max(a: u64, b: u64): u64 {
if (a > b) a else b
}
public inline fun min(a: u64, b: u64): u64 {
if (a < b) a else b
}
/// Non-inline neighbour so a baseline CALLS edge exists for comparison.
public fun clamp(x: u64, lo: u64, hi: u64): u64 {
if (x < lo) { lo }
else if (x > hi) { hi }
else { x }
}
}