Skip to content

Commit 06d2f20

Browse files
committed
Fixed not transfering parameters
1 parent 19bd985 commit 06d2f20

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

synth/semantic/evaluator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def compress(self, program: Program, allow_constants: bool = True) -> Program:
4646
Note for data saving/loading purposes, partial applications are left untouched.
4747
"""
4848
if isinstance(program, Function):
49-
args = [self.compress(p) for p in program.arguments]
49+
args = [
50+
self.compress(p, allow_constants=allow_constants)
51+
for p in program.arguments
52+
]
5053
if len(program.type.returns().arguments()) == 0 and all(
5154
not a.uses_variables() for a in args
5255
):

0 commit comments

Comments
 (0)