2023-01-10 00:07:49 +01:00
|
|
|
node test (i: real) returns (o: real);
|
|
|
|
var x, y: real;
|
2023-01-03 19:43:24 +01:00
|
|
|
let
|
2023-01-10 00:07:49 +01:00
|
|
|
x = (1.0 / i) when (i <> 0.0);
|
|
|
|
y = 0.0 when (not (i <> 0.0));
|
|
|
|
o = merge (i <> 0.0) x y;
|
2023-01-03 19:43:24 +01:00
|
|
|
tel
|
|
|
|
|
2023-01-10 00:07:49 +01:00
|
|
|
node main (i: real) returns (o: real);
|
2023-01-03 19:43:24 +01:00
|
|
|
let
|
2023-01-10 00:07:49 +01:00
|
|
|
-- The idea is to pass `0.0` as the input to acknowledge that the division by zero isn't computed.
|
|
|
|
o = test(i);
|
2023-01-03 19:43:24 +01:00
|
|
|
tel
|