-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
from probably.pgcl.compiler import compile_pgcl
compile_pgcl("""
nat s;
nat c;
nat tmp;
tmp :=((1-(1-(c*c))^(1/2))/c)
""")Results in
CheckFail(location=BinopExpr(operator=Binop.POWER,
lhs=BinopExpr(operator=Binop.MINUS,
lhs=NatLitExpr(1),
rhs=BinopExpr(operator=Binop.TIMES, lhs=VarExpr('c'), rhs=VarExpr('c'))
),
rhs=RealLitExpr("1/2")),
message='Expected value of type NatType(bounds=None), got RealType().')Metadata
Metadata
Assignees
Labels
No labels