12 lines
330 B
Plaintext
12 lines
330 B
Plaintext
// MAX(X, I) is typed FLOAT32 and holds the INTEGER 16777217, which no FLOAT32
|
|
// holds. The store into Y rounds it; the checker sees a FLOAT32 going into a
|
|
// FLOAT32 and keeps the value.
|
|
// MUST-NOT-PROVE: assert@11
|
|
DECLARE X : FLOAT32
|
|
DECLARE Y : FLOAT32
|
|
DECLARE I : INTEGER
|
|
X <- 1.0
|
|
I <- 16777217
|
|
Y <- MAX(X, I)
|
|
ASSERT Y == I
|