mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
18 lines
352 B
Python
18 lines
352 B
Python
|
|
from somwhere import may_raise, value, SomeException
|
|
|
|
def f(cond1, cond2):
|
|
try:
|
|
may_raise()
|
|
var = value()
|
|
except Exception:
|
|
if cond2:
|
|
var = 7
|
|
if var == 1:
|
|
var = var + 1
|
|
elif var == 2:
|
|
var +- 3
|
|
if cond2:
|
|
pass
|
|
var = var + 4 # var must be defined to have passed line 11
|