We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdad847 commit 4cb5beaCopy full SHA for 4cb5bea
1 file changed
cpp/ql/test/library-tests/ir/range-analysis/SimpleRangeAnalysis_tests.cpp
@@ -997,3 +997,15 @@ void test_overflow() {
997
range(x + y); // $ range===-2147483393
998
}
999
1000
+
1001
+void test_negate_unsigned(unsigned u) {
1002
+ if(10 < u && u < 20) {
1003
+ range<unsigned>(-u); // underflows
1004
+ }
1005
+}
1006
1007
+void test_negate_signed(int s) {
1008
+ if(10 < s && s < 20) {
1009
+ range<int>(-s); // $ MISSING: range=<=-11 range=>=-19
1010
1011
0 commit comments