returnU8.wrap(U8.unwrap(x)+U8.unwrap(y));// FIXME: should detect possible overflow here
}
contractC{
U8x=U8.wrap(254);
functioninc()public{
x=x+U8.wrap(1);// FIXME: should detect possible overflow here
}
functioncheck()viewpublic{
U8y=x;
assert(U8.unwrap(y)<256);
}
}
// ====
// SMTEngine: all
// ----
// Warning 6756: (274-288): User-defined operators are not yet supported by SMTChecker. This invocation of operator + has been ignored, which may lead to incorrect results.