From ce49d20a5fe3726e1800bc495a25c7617212abf4 Mon Sep 17 00:00:00 2001 From: Emanuele Grasso <96300448+L0P0P@users.noreply.github.com> Date: Sun, 14 Jul 2024 18:48:09 +0200 Subject: Reaching definition analysis (#17) Co-authored-by: Santo Cariotti Co-authored-by: geno Co-authored-by: geno --- progs/test.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'progs/test.py') diff --git a/progs/test.py b/progs/test.py index 4ccfb1a..ef59445 100644 --- a/progs/test.py +++ b/progs/test.py @@ -1,3 +1,8 @@ +n = int(input()) +x = int(input()) m = 1 -for i in range(10): - m = m + 1 +while n > 1: + tmp = 2 * x + m = m * tmp + n = n - 1 +print(m + tmp) -- cgit v1.2.3-18-g5258