File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
cbmc-incr-smt2/bitvector-bitwise-operators Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ shift_right.c
5
5
\[main\.assertion\.2\] line \d+ Right shifting a positive number has a lower bound of 0: SUCCESS
6
6
\[main\.assertion\.3\] line \d+ Right shifting a negative number has a lower bound value of -1: SUCCESS
7
7
second=128
8
- result_unsigned=64
8
+ result_unsigned=(64|'@')
9
9
^EXIT=10$
10
10
^SIGNAL=0$
11
11
--
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ activate-multi-line-match
5
5
^EXIT=10$
6
6
^SIGNAL=0$
7
7
VERIFICATION FAILED
8
- <full_lhs>u8</full_lhs>\s*<full_lhs_value binary="01100001">97 </full_lhs_value>
8
+ <full_lhs>u8</full_lhs>\s*<full_lhs_value binary="01100001">(97|'a') </full_lhs_value>
9
9
<full_lhs>u16</full_lhs>\s*<full_lhs_value binary="0{12}1000">8</full_lhs_value>
10
10
<full_lhs>u32</full_lhs>\s*<full_lhs_value binary="0{27}10000">16ul?</full_lhs_value>
11
11
<full_lhs>u64</full_lhs>\s*<full_lhs_value binary="0{58}100000">32ull?</full_lhs_value>
Original file line number Diff line number Diff line change 1
1
CORE
2
2
main.c
3
3
--trace
4
- ^\s*ub.*=\(char \*\)&dynamic_object \+ \d+
4
+ ^\s*ub.*=( \(char \*\)&)? dynamic_object \+ \d+
5
5
^\s*offset_ubp1=\d+ul* \(00000000 1[0 ]+1\)$
6
6
^VERIFICATION FAILED$
7
7
^EXIT=10$
8
8
^SIGNAL=0$
9
9
--
10
10
^warning: ignoring
11
- ^\s*ub.*=\(char \*\)&dynamic_object \+ -\d+
11
+ ^\s*ub.*=( \(char \*\)&)? dynamic_object \+ -\d+
12
12
^\s*offset_ubp1=\d+ul* \(11111111 1
13
13
--
14
14
Verifies that all offsets use unsigned arithmetic.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ test-signed.json
3
3
--dump-c
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- signed char rol8=\(unsigned char\)'8' << 3 % 8 \| \(unsigned char\)'8' >> 8 - 3 % 8;
6
+ signed char rol8=\(unsigned char\)( '8'|56) << 3 % 8 \| \(unsigned char\)( '8'|56) >> 8 - 3 % 8;
7
7
--
8
8
irep
9
9
--
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ test.json
3
3
--dump-c
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- unsigned char rol8=56 << 3 % 8 \| 56 >> 8 - 3 % 8;
6
+ unsigned char rol8=(56|'8') << 3 % 8 \| (56|'8') >> 8 - 3 % 8;
7
7
--
8
8
irep
9
9
--
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ test-signed.json
3
3
--dump-c
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- signed char ror8=\(unsigned char\)'8' >> 3 % 8 \| \(unsigned char\)'8' << 8 - 3 % 8;
6
+ signed char ror8=\(unsigned char\)( '8'|56) >> 3 % 8 \| \(unsigned char\)( '8'|56) << 8 - 3 % 8;
7
7
--
8
8
irep
9
9
--
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ test.json
3
3
--dump-c
4
4
^EXIT=0$
5
5
^SIGNAL=0$
6
- unsigned char ror8=56 >> 3 % 8 \| 56 << 8 - 3 % 8;
6
+ unsigned char ror8=(56|'8') >> 3 % 8 \| (56|'8') << 8 - 3 % 8;
7
7
--
8
8
irep
9
9
--
You can’t perform that action at this time.
0 commit comments