def argh() -> None:
flags = [] # type: List[Tuple[int, ...]]
for (flag, *args) in flags:
pass
We generate the following code that assigns the correct values to the flag variable before the loop, which raises a verification error because the precondition of getitem may not hold:
We get an unwanted exception for code like this:
We generate the following code that assigns the correct values to the
flag
variable before the loop, which raises a verification error because the precondition of getitem may not hold: