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 <santo@dcariotti.me> Co-authored-by: geno <gabriele.genovese2@studio.unibo.it> Co-authored-by: geno <gabrigeno@gmail.com> --- test/2a.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/2a.py (limited to 'test/2a.py') diff --git a/test/2a.py b/test/2a.py new file mode 100644 index 0000000..f45041a --- /dev/null +++ b/test/2a.py @@ -0,0 +1,12 @@ +n = int(input()) +x = int(input()) +m = 1 +while n > 1: + tmp = 2 * x + m = m * tmp + n = n - 1 +c = 0 +for i in range(m): + g = 2 * m + c = c + i + g +print(m + c) -- cgit v1.2.3-18-g5258