We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb1d8f commit 5247d07Copy full SHA for 5247d07
1 file changed
synth/semantic/evaluator.py
@@ -44,7 +44,7 @@ def compress(self, program: Program) -> Program:
44
if isinstance(program, Function):
45
args = [self.compress(p) for p in program.arguments]
46
if len(program.type.returns().arguments()) == 0 and all(
47
- a.is_constant() for a in args
+ not a.uses_variables() for a in args
48
):
49
before = self.use_cache
50
self.use_cache = False
0 commit comments