Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/tests/regalloc_om/hazard-branch-sign-proof.txt # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / tests / regalloc_om / hazard-branch-sign-proof.txt` 22 lines · 1505 bytes Raw Blame History 1 hazard-branch-sign: EQUIVALENT, not killed and not counted in mutant totals. 2 Source: om/codegen/bw_hazard.om:224-237, omega-mv seeded compiler `e5b32567`. 3 Mutation: s = or s `3221225472` -> s = or s `1073741824`. 4 5 w0,w1 are uint32 words. If w1's high bit is clear, neither variant executes 6 this assignment. Otherwise s = w1 >> 2 is an integer in [0,2^30), and both 7 constants have no bits in that interval. Therefore the two OR operations 8 are exactly s+`3221225472` and s+`1073741824`. The next operation is 9 (s << 6) & `4294967295`. Its low six bits are clear; OR with 10 l = (w0 >> 18) & 63 is exactly addition of l. Equal u implies the identical 11 signed conversion, +1 with int32 wrap, and written target thereafter. 12 13 WolframLanguageEvaluator query (executed): 14 {Reduce[0 <= s < 2^30 && 0 <= l < 64 && Mod[64 (s + `3221225472`) + l, `4294967296`] != Mod[64 (s + `1073741824`) + l, `4294967296`], {s,l}, Integers], FullSimplify[Mod[64 (s + `3221225472`) + l, `4294967296`] == Mod[64 (s + `1073741824`) + l, `4294967296`], Element[{s,l},Integers]], {BitAnd[`3221225472`,2^30-1],BitAnd[`1073741824`,2^30-1],64 (`3221225472`-`1073741824`)/`4294967296`}} 15 Observed result: 16 {False, True, {0, 0, 32}} 17 18 Reduce searched the entire normalized domain, not sampled w0/w1 pairs. 19 False means no differing pair exists. FullSimplify independently gives True 20 for all integer s,l. The last two zero bit intersections establish disjoint 21 OR/addition; the difference shifted by six is an integer number (32) of 22 uint32 moduli. No floating-point calculation is involved.