Skip to content

Commit 3eb25ca

Browse files
committed
ASTI: remove exit from active defuse-high locations
1 parent f132402 commit 3eb25ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chb/astinterface/ASTIProvenance.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# ------------------------------------------------------------------------------
55
# The MIT License (MIT)
66
#
7-
# Copyright (c) 2022-2024 Aarno Labs LLC
7+
# Copyright (c) 2022-2025 Aarno Labs LLC
88
#
99
# Permission is hereby granted, free of charge, to any person obtaining a copy
1010
# of this software and associated documentation files (the "Software"), to deal
@@ -351,6 +351,8 @@ def has_active_lval_defuse_high(self, lvalid: int) -> bool:
351351
if lvalid in self.lval_defuses_high:
352352
defuseshigh = self.lval_defuses_high[lvalid]
353353
locations = [str(x) for x in defuseshigh.uselocations]
354+
if "exit" in locations:
355+
locations.remove("exit")
354356
inactivated = self.defuses_high_inactivated_for(lvalid)
355357
active = set(locations).difference(inactivated)
356358
return len(active) > 0

0 commit comments

Comments
 (0)