# Region A: method check if req.method not in {"GET","POST"}: return # Region B: path check if not req.path.startswith("/api/"): return # Region C: authentication token if not valid_token(req.headers["Auth"]): return # Region D: admin endpoint if req.path == "/api/admin" and req.headers["Role"]=="root": crash() # Region U: unreachable if req.method=="GET" and req.method=="POST": unreachable() METHOD: GET PATH: /api/x Auth: invalid_token Role: user Inputs Program