18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_ci/// The address of a variable or field is likely always to be non-zero. 38c2ecf20Sopenharmony_ci/// 48c2ecf20Sopenharmony_ci// Confidence: High 58c2ecf20Sopenharmony_ci// Copyright: (C) 2012 Julia Lawall, INRIA/LIP6. 68c2ecf20Sopenharmony_ci// Copyright: (C) 2012 Gilles Muller, INRIA/LiP6. 78c2ecf20Sopenharmony_ci// URL: http://coccinelle.lip6.fr/ 88c2ecf20Sopenharmony_ci// Comments: 98c2ecf20Sopenharmony_ci// Options: --no-includes --include-headers 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_civirtual org 128c2ecf20Sopenharmony_civirtual report 138c2ecf20Sopenharmony_civirtual context 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci@r@ 168c2ecf20Sopenharmony_ciexpression x; 178c2ecf20Sopenharmony_cistatement S1,S2; 188c2ecf20Sopenharmony_ciposition p; 198c2ecf20Sopenharmony_ci@@ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci*if@p (&x) 228c2ecf20Sopenharmony_ci S1 else S2 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci@script:python depends on org@ 258c2ecf20Sopenharmony_cip << r.p; 268c2ecf20Sopenharmony_ci@@ 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_cicocci.print_main("test of a variable/field address",p) 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci@script:python depends on report@ 318c2ecf20Sopenharmony_cip << r.p; 328c2ecf20Sopenharmony_ci@@ 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_cimsg = "ERROR: test of a variable/field address" 358c2ecf20Sopenharmony_cicoccilib.report.print_report(p[0],msg) 36