We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2304753 commit b854f4cCopy full SHA for b854f4c
chb/invariants/XXprUtil.py
@@ -1372,7 +1372,13 @@ def xmemory_dereference_lval(
1372
xaddr = xxpr_to_ast_def_expr(address, xdata, iaddr, astree)
1373
if xaddr.is_ast_binary_op:
1374
xaddr = cast(AST.ASTBinaryOp, xaddr)
1375
- if xaddr.exp1.is_ast_lval_expr:
+ if xaddr.exp1.is_ast_startof:
1376
+ xalval = cast(AST.ASTStartOf, xaddr.exp1)
1377
+ astoffset = astree.mk_expr_index_offset(xaddr.exp2)
1378
+ lvalhost = xalval.lval.lhost
1379
+ return astree.mk_lval(lvalhost, astoffset)
1380
+
1381
+ elif xaddr.exp1.is_ast_lval_expr:
1382
xlval = cast(AST.ASTLvalExpr, xaddr.exp1)
1383
xlvaltype = xlval.ctype(astree.ctyper)
1384
if xlvaltype is not None and xlvaltype.is_array:
0 commit comments