You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type of scratch_int * (*regs16 = scratch2_uint) is int due to the LHS being an int and the RHS being an unsigned short. It is promoted to unsigned int before the subtraction. A counterexample generated by CBMC was - scratch_int = 33793, scratch_uint = 2181038080, scratch2_uint (division result) = 64541. scratch_int * scratch2_uint = 2181034013 does not fit inside a 4-byte int.
Detected using Frama-C (eva) and CBMC while doing a project for the Software Verification and Analysis course under Prof @mksrivas at CMI
The text was updated successfully, but these errors were encountered:
Post macro-expansion, the code in
8086tiny/8086tiny.c
Line 391 in c79ca2a
The type of
scratch_int * (*regs16 = scratch2_uint)
isint
due to the LHS being anint
and the RHS being anunsigned short
. It is promoted tounsigned int
before the subtraction. A counterexample generated by CBMC was -scratch_int
= 33793,scratch_uint
= 2181038080,scratch2_uint
(division result) = 64541.scratch_int * scratch2_uint
= 2181034013 does not fit inside a 4-byteint
.Detected using Frama-C (eva) and CBMC while doing a project for the Software Verification and Analysis course under Prof @mksrivas at CMI
The text was updated successfully, but these errors were encountered: