// Test various combinations of (BigInt R BigInt) and ensures the result is consistent with // (BigInt R⁻¹ BigInt). This test doesn't aim to cover the overall correctness of (BigInt R BigInt), // but merely ensures the possible combinations are properly handled in CacheIR.
function testLessThan() { for (var i = 0; i < 100; ++i) { var j = i % xs.length; var x = xs[j]; var isNegative = j < (xs.length >> 1); var isPositive = j > (xs.length >> 1);
function testLessThanEquals() { for (var i = 0; i < 100; ++i) { var j = i % xs.length; var x = xs[j]; var isNegativeOrZero = j <= (xs.length >> 1); var isPositiveOrZero = j >= (xs.length >> 1);
function testGreaterThan() { for (var i = 0; i < 100; ++i) { var j = i % xs.length; var x = xs[j]; var isNegative = j < (xs.length >> 1); var isPositive = j > (xs.length >> 1);
function testGreaterThanEquals() { for (var i = 0; i < 100; ++i) { var j = i % xs.length; var x = xs[j]; var isNegativeOrZero = j <= (xs.length >> 1); var isPositiveOrZero = j >= (xs.length >> 1);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.