@@ -345,16 +345,16 @@ trait PUnaryOp extends POperator with PSignaturesOp
345
345
trait PBinaryOp extends POperator with PSignaturesOp with LeftSpace with RightSpace
346
346
trait PArithOp extends PBinaryOp {
347
347
override def signatures = List (
348
- Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Int ),
349
- Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Perm , POpApp .pResS -> Perm ))
348
+ Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Perm , POpApp .pResS -> Perm ),
349
+ Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Int ))
350
350
}
351
351
trait PIntOp extends PBinaryOp {
352
352
override def signatures = List (Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Int ))
353
353
}
354
354
trait PCmpOp extends PBinaryOp {
355
355
override def signatures = List (
356
- Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Bool ),
357
- Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Perm , POpApp .pResS -> Bool ))
356
+ Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Perm , POpApp .pResS -> Bool ),
357
+ Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Bool ))
358
358
}
359
359
trait PLogicalOp extends PBinaryOp {
360
360
override def signatures = List (Map (POpApp .pArgS(0 ) -> Bool , POpApp .pArgS(1 ) -> Bool , POpApp .pResS -> Bool ))
@@ -409,11 +409,10 @@ object PSymOp {
409
409
}
410
410
case object Div extends PSym (" /" ) with PSymbolOp with PBinaryOp {
411
411
override def signatures = List (
412
- // The following two are not necessary if `Int` is a subtype of `Perm`
413
- Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Perm ),
412
+ Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Perm , POpApp .pResS -> Perm ),
414
413
Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Perm ),
414
+ Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Perm ),
415
415
Map (POpApp .pArgS(0 ) -> Int , POpApp .pArgS(1 ) -> Int , POpApp .pResS -> Int ),
416
- Map (POpApp .pArgS(0 ) -> Perm , POpApp .pArgS(1 ) -> Perm , POpApp .pResS -> Perm ),
417
416
)
418
417
}
419
418
case object ArithDiv extends PSym (" \\ " ) with PSymbolOp with PBinaryOp with PIntOp
@@ -428,8 +427,8 @@ object PSymOp {
428
427
429
428
case object Neg extends PSym (" -" ) with PSymbolOp with PUnaryOp {
430
429
override def signatures = List (
431
- Map (POpApp .pArgS(0 ) -> Int , POpApp .pResS -> Int ),
432
- Map (POpApp .pArgS(0 ) -> Perm , POpApp .pResS -> Perm ))
430
+ Map (POpApp .pArgS(0 ) -> Perm , POpApp .pResS -> Perm ),
431
+ Map (POpApp .pArgS(0 ) -> Int , POpApp .pResS -> Int ))
433
432
}
434
433
case object Not extends PSym (" !" ) with PSymbolOp with PUnaryOp {
435
434
override def signatures = List (Map (POpApp .pArgS(0 ) -> Bool , POpApp .pResS -> Bool ))
0 commit comments