File tree 2 files changed +10
-6
lines changed 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -169,8 +169,10 @@ always present
169
169
- ` full_lhs ` : original lhs expression (after dereferencing)
170
170
171
171
- ` full_lhs_value ` : a constant with the new value.
172
- - if the type is a floating point number type, there will be an attribute` binary `
173
- showing its value.
172
+ - If the type of data can be represented as a fixed width sequence of bits
173
+ then, there will be an attribute ` binary ` containing the binary
174
+ representation. If the data type is signed and the value is negative
175
+ then the binary will be encoded using two's complement.
174
176
175
177
** Example** :
176
178
@@ -181,7 +183,7 @@ always present
181
183
<location .. />
182
184
<type>signed int</type>
183
185
<full_lhs>b</full_lhs>
184
- <full_lhs_value>-1879048192</full_lhs_value>
186
+ <full_lhs_value binary="10010000000000000000000000000000" >-1879048192</full_lhs_value>
185
187
</assignment>
186
188
<assignment assignment_type="state" base_name="d" display_name="main::1::d" hidden="false" identifier="main::1::d" mode="C" step_nr="26" thread="0">
187
189
<location file="main.i" function="main" line="3" working-directory="/home/tkiley/workspace/cbmc/regression/cbmc/Float24"/>
Original file line number Diff line number Diff line change @@ -149,8 +149,10 @@ \subsection{Trace Steps in XML}
149
149
\item \texttt {full\_ lhs }: original lhs expression (after dereferencing)
150
150
\item \texttt {full\_ lhs\_ value }: a constant with the new value.
151
151
\begin {itemize }
152
- \item if the type is a floating point number type, there will be an attribute
153
- \texttt {binary } showing its value.
152
+ \item If the type of data can be represented as a fixed width sequence of bits
153
+ then, there will be an attribute \texttt {`binary` } containing the binary
154
+ representation. If the data type is signed and the value is negative
155
+ then the binary will be encoded using two's complement.
154
156
\end {itemize }
155
157
156
158
\end {itemize }
@@ -164,7 +166,7 @@ \subsection{Trace Steps in XML}
164
166
<location .. />
165
167
<type>signed int</type>
166
168
<full_lhs>b</full_lhs>
167
- <full_lhs_value>-1879048192</full_lhs_value>
169
+ <full_lhs_value binary="10010000000000000000000000000000 " > -1879048192</full_lhs_value>
168
170
</assignment>
169
171
<assignment assignment_type="state" base_name="d" display_name="main::1::d" hidden="false" identifier="main::1::d" mode="C" step_nr="26" thread="0">
170
172
<location ../>
You can’t perform that action at this time.
0 commit comments