interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / tests / regalloc_om / hazard-branch-sign-proof.txt

22 lines · 1505 bytes Raw Blame History
1hazard-branch-sign: EQUIVALENT, not killed and not counted in mutant totals.
2Source: om/codegen/bw_hazard.om:224-237, omega-mv seeded compiler e5b32567.
3Mutation: s = or s 3221225472 -> s = or s 1073741824.
4
5w0,w1 are uint32 words. If w1's high bit is clear, neither variant executes
6this assignment. Otherwise s = w1 >> 2 is an integer in [0,2^30), and both
7constants have no bits in that interval. Therefore the two OR operations
8are exactly s+3221225472 and s+1073741824. The next operation is
9(s << 6) & 4294967295. Its low six bits are clear; OR with
10l = (w0 >> 18) & 63 is exactly addition of l. Equal u implies the identical
11signed conversion, +1 with int32 wrap, and written target thereafter.
12
13WolframLanguageEvaluator 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}}
15Observed result:
16{False, True, {0, 0, 32}}
17
18Reduce searched the entire normalized domain, not sampled w0/w1 pairs.
19False means no differing pair exists. FullSimplify independently gives True
20for all integer s,l. The last two zero bit intersections establish disjoint
21OR/addition; the difference shifted by six is an integer number (32) of
22uint32 moduli. No floating-point calculation is involved.