1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754
|
/* Doxumentation for the C language interface.
Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com)
This file is part of the Parma Polyhedra Library (PPL).
The PPL is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
The PPL is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
For the most up-to-date information see the Parma Polyhedra Library
site: http://bugseng.com/products/ppl/ . */
/*! \interface ppl_Polyhedron_tag
\brief
Types and functions for the domains of C and NNC convex polyhedra.
The types and functions for convex polyhedra provide a single interface
for accessing both topologically closed (C) and not necessarily closed
(NNC) convex polyhedra.
The distinction between C and NNC polyhedra need only be explicitly
stated when <em>creating</em> or <em>assigning</em> a polyhedron object,
by means of one of the functions <code>ppl_new_*</code> and
<code>ppl_assign_*</code>.
Having a single datatype does not mean that C and NNC polyhedra can be
freely interchanged: as specified in the main manual, most library
functions require their arguments to be topologically and/or
space-dimension compatible.
*/
#if !defined(PPL_DOXYGEN_CONFIGURED_MANUAL)
/*! \brief Opaque pointer \ingroup Datatypes */
typedef struct ppl_Polyhedron_tag* ppl_Polyhedron_t;
/*! \brief Opaque pointer to const object \ingroup Datatypes */
typedef struct ppl_Polyhedron_tag const* ppl_const_Polyhedron_t;
#endif /* !defined(PPL_DOXYGEN_CONFIGURED_MANUAL) */
/*! \brief \name Constructors and Assignment for C_Polyhedron */
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Builds a C polyhedron of dimension \p d and writes an handle to it
at address \p pph. If \p empty is different from zero, the newly created
polyhedron will be empty; otherwise, it will be a universe polyhedron.
*/
int
ppl_new_C_Polyhedron_from_space_dimension
(ppl_Polyhedron_t* pph, ppl_dimension_type d, int empty);
/*! \relates ppl_Polyhedron_tag \brief
Builds a C polyhedron that is a copy of \p ph; writes a handle
for the newly created polyhedron at address \p pph.
*/
int
ppl_new_C_Polyhedron_from_C_Polyhedron
(ppl_Polyhedron_t* pph, ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Builds a C polyhedron that is a copy of \p ph;
writes a handle for the newly created polyhedron at address \p pph.
\note
The complexity argument is ignored.
*/
int
ppl_new_C_Polyhedron_from_C_Polyhedron_with_complexity
(ppl_Polyhedron_t* pph, ppl_const_Polyhedron_t ph, int complexity);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new C polyhedron from the system of constraints
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
*/
int
ppl_new_C_Polyhedron_from_Constraint_System
(ppl_Polyhedron_t* pph, ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new C polyhedron recycling the system of constraints
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
\warning
This function modifies the constraint system referenced by \p cs:
upon return, no assumption can be made on its value.
*/
int
ppl_new_C_Polyhedron_recycle_Constraint_System
(ppl_Polyhedron_t* pph, ppl_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new C polyhedron from the system of congruences \p cs
and writes a handle for the newly created polyhedron at address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
*/
int
ppl_new_C_Polyhedron_from_Congruence_System
(ppl_Polyhedron_t* pph, ppl_const_Congruence_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new C polyhedron recycling the system of congruences
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
\warning
This function modifies the congruence system referenced by \p cs:
upon return, no assumption can be made on its value.
*/
int
ppl_new_C_Polyhedron_recycle_Congruence_System
(ppl_Polyhedron_t* pph, ppl_Congruence_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Assigns a copy of the C polyhedron \p src to the C polyhedron \p dst.
*/
int
ppl_assign_C_Polyhedron_from_C_Polyhedron
(ppl_Polyhedron_t dst, ppl_const_Polyhedron_t src);
/*@}*/ /* Constructors and Assignment for C_Polyhedron */
/*! \brief \name Constructors and Assignment for NNC_Polyhedron */
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Builds an NNC polyhedron of dimension \p d and writes an handle to it
at address \p pph. If \p empty is different from zero, the newly created
polyhedron will be empty; otherwise, it will be a universe polyhedron.
*/
int
ppl_new_NNC_Polyhedron_from_space_dimension
(ppl_Polyhedron_t* pph, ppl_dimension_type d, int empty);
/*! \relates ppl_Polyhedron_tag \brief
Builds an NNC polyhedron that is a copy of \p ph; writes a handle
for the newly created polyhedron at address \p pph.
*/
int
ppl_new_NNC_Polyhedron_from_NNC_Polyhedron
(ppl_Polyhedron_t* pph, ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Builds an NNC polyhedron that is a copy of \p ph;
writes a handle for the newly created polyhedron at address \p pph.
\note
The complexity argument is ignored.
*/
int
ppl_new_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity
(ppl_Polyhedron_t* pph, ppl_const_Polyhedron_t ph, int complexity);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new NNC polyhedron from the system of constraints
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
*/
int
ppl_new_NNC_Polyhedron_from_Constraint_System
(ppl_Polyhedron_t* pph, ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new NNC polyhedron recycling the system of constraints
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
\warning
This function modifies the constraint system referenced by \p cs:
upon return, no assumption can be made on its value.
*/
int
ppl_new_NNC_Polyhedron_recycle_Constraint_System
(ppl_Polyhedron_t* pph, ppl_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new NNC polyhedron from the system of congruences
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
*/
int
ppl_new_NNC_Polyhedron_from_Congruence_System
PPL_PROTO((ppl_Polyhedron_t* pph, ppl_const_Congruence_System_t cs));
/*! \relates ppl_Polyhedron_tag \brief
Builds a new NNC polyhedron recycling the system of congruences
\p cs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p cs.
\warning
This function modifies the congruence system referenced by \p cs:
upon return, no assumption can be made on its value.
*/
int
ppl_new_NNC_Polyhedron_recycle_Congruence_System
PPL_PROTO((ppl_Polyhedron_t* pph, ppl_Congruence_System_t cs));
/*! \relates ppl_Polyhedron_tag \brief
Assigns a copy of the NNC polyhedron \p src to the NNC
polyhedron \p dst.
*/
int
ppl_assign_NNC_Polyhedron_from_NNC_Polyhedron
(ppl_Polyhedron_t dst, ppl_const_Polyhedron_t src);
/*@}*/ /* Constructors and Assignment for NNC Polyhedron */
/*! \name Constructors Behaving as Conversion Operators
Besides the conversions listed here below, the library also
provides conversion operators that build a semantic geometric
description starting from \b any other semantic geometric
description (e.g., ppl_new_Grid_from_C_Polyhedron,
ppl_new_C_Polyhedron_from_BD_Shape_mpq_class, etc.).
Clearly, the conversion operators are only available if both
the source and the target semantic geometric descriptions have
been enabled when configuring the library.
The conversions also taking as argument a complexity class
sometimes provide non-trivial precision/efficiency trade-offs.
*/
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Builds a C polyhedron that is a copy of the topological closure
of the NNC polyhedron \p ph; writes a handle for the newly created
polyhedron at address \p pph.
*/
int
ppl_new_C_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t* pph,
ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Builds a C polyhedron that approximates NNC_Polyhedron \p ph,
using an algorithm whose complexity does not exceed \p complexity;
writes a handle for the newly created polyhedron at address \p pph.
\note
The complexity argument, which can take values
\c PPL_COMPLEXITY_CLASS_POLYNOMIAL, \c PPL_COMPLEXITY_CLASS_SIMPLEX
and \c PPL_COMPLEXITY_CLASS_ANY, is ignored since the exact constructor
has polynomial complexity.
*/
int
ppl_new_C_Polyhedron_from_NNC_Polyhedron_with_complexity
(ppl_Polyhedron_t* pph, ppl_const_Polyhedron_t ph, int complexity);
/*! \relates ppl_Polyhedron_tag \brief
Builds an NNC polyhedron that is a copy of the C polyhedron \p ph;
writes a handle for the newly created polyhedron at address \p pph.
*/
int
ppl_new_NNC_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t* pph,
ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Builds an NNC polyhedron that approximates C_Polyhedron \p ph,
using an algorithm whose complexity does not exceed \p complexity;
writes a handle for the newly created polyhedron at address \p pph.
\note
The complexity argument, which can take values
\c PPL_COMPLEXITY_CLASS_POLYNOMIAL, \c PPL_COMPLEXITY_CLASS_SIMPLEX
and \c PPL_COMPLEXITY_CLASS_ANY, is ignored since the exact constructor
has polynomial complexity.
*/
int
ppl_new_NNC_Polyhedron_from_C_Polyhedron_with_complexity
(ppl_Polyhedron_t* pph, ppl_const_Polyhedron_t ph, int complexity);
/*@}*/ /* Constructors Behaving as Conversion Operators */
/*! \brief \name Destructor for (C or NNC) Polyhedra */
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Invalidates the handle \p ph: this makes sure the corresponding
resources will eventually be released.
*/
int
ppl_delete_Polyhedron(ppl_const_Polyhedron_t ph);
/*@}*/ /* Destructor for (C or NNC) Polyhedra */
/*! \brief \name Functions that Do Not Modify the Polyhedron */
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Writes to \p m the dimension of the vector space enclosing \p ph.
*/
int
ppl_Polyhedron_space_dimension
(ppl_const_Polyhedron_t ph, ppl_dimension_type* m);
/*! \relates ppl_Polyhedron_tag \brief
Writes to \p m the affine dimension of \p ph (not to be confused with the
dimension of its enclosing vector space) or 0, if \p ph is empty.
*/
int
ppl_Polyhedron_affine_dimension
(ppl_const_Polyhedron_t ph, ppl_dimension_type* m);
/*! \relates ppl_Polyhedron_tag \brief
Checks the relation between the polyhedron \p ph and the constraint \p c.
If successful, returns a non-negative integer that is
obtained as the bitwise or of the bits (chosen among
PPL_POLY_CON_RELATION_IS_DISJOINT
PPL_POLY_CON_RELATION_STRICTLY_INTERSECTS,
PPL_POLY_CON_RELATION_IS_INCLUDED, and
PPL_POLY_CON_RELATION_SATURATES) that describe the relation between
\p ph and \p c.
*/
int
ppl_Polyhedron_relation_with_Constraint
(ppl_const_Polyhedron_t ph, ppl_const_Constraint_t c);
/*! \relates ppl_Polyhedron_tag \brief
Checks the relation between the polyhedron \p ph and the generator \p g.
If successful, returns a non-negative integer that is
obtained as the bitwise or of the bits (only
PPL_POLY_GEN_RELATION_SUBSUMES, at present) that describe the
relation between \p ph and \p g.
*/
int
ppl_Polyhedron_relation_with_Generator
(ppl_const_Polyhedron_t ph, ppl_const_Generator_t g);
int
ppl_Polyhedron_relation_with_Congruence
(ppl_const_Polyhedron_t ph, ppl_const_Congruence_t c);
/*! \relates ppl_Polyhedron_tag \brief
Writes a const handle to the constraint system defining the
polyhedron \p ph at address \p pcs.
*/
int
ppl_Polyhedron_get_constraints
(ppl_const_Polyhedron_t ph, ppl_const_Constraint_System_t* pcs);
/*! \relates ppl_Polyhedron_tag \brief
Writes at address \p pcs a const handle to a system of congruences
approximating the polyhedron \p ph.
*/
int
ppl_Polyhedron_get_congruences
(ppl_const_Polyhedron_t ph, ppl_const_Congruence_System_t* pcs);
/*! \relates ppl_Polyhedron_tag \brief
Writes a const handle to the minimized constraint system defining the
polyhedron \p ph at address \p pcs.
*/
int
ppl_Polyhedron_get_minimized_constraints
(ppl_const_Polyhedron_t ph, ppl_const_Constraint_System_t* pcs);
/*! \relates ppl_Polyhedron_tag \brief
Writes at address \p pcs a const handle to a system of minimized
congruences approximating the polyhedron \p ph.
*/
int
ppl_Polyhedron_get_minimized_congruences
(ppl_const_Polyhedron_t ph, ppl_const_Congruence_System_t* pcs);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is empty; returns 0 if \p ph is
not empty.
*/
int
ppl_Polyhedron_is_empty(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is a universe polyhedron;
returns 0 if it is not.
*/
int
ppl_Polyhedron_is_universe(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is bounded; returns 0 if \p ph is
unbounded.
*/
int
ppl_Polyhedron_is_bounded(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph contains at least one integer
point; returns 0 otherwise.
*/
int
ppl_Polyhedron_contains_integer_point(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is topologically closed;
returns 0 if \p ph is not topologically closed.
*/
int
ppl_Polyhedron_is_topologically_closed(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is a discrete set;
returns 0 if \p ph is not a discrete set.
*/
int
ppl_Polyhedron_is_discrete(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph constrains \p var;
returns 0 if \p ph does not constrain \p var.
*/
int
ppl_Polyhedron_constrains
(ppl_Polyhedron_t ph, ppl_dimension_type var);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p le is bounded from above in \p ph;
returns 0 otherwise.
*/
int
ppl_Polyhedron_bounds_from_above
(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p le is bounded from below in \p ph;
returns 0 otherwise.
*/
int
ppl_Polyhedron_bounds_from_below
(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is not empty
and \p le is bounded from above in \p ph, in which case
the supremum value and a point where \p le reaches it are computed.
\param ph
The polyhedron constraining \p le;
\param le
The linear expression to be maximized subject to \p ph;
\param sup_n
Will be assigned the numerator of the supremum value;
\param sup_d
Will be assigned the denominator of the supremum value;
\param pmaximum
Will store 1 in this location if the supremum is also the maximum,
will store 0 otherwise;
\param point
Will be assigned the point or closure point where \p le reaches the
extremum value.
If \p ph is empty or \p le is not bounded from above,
0 will be returned and \p sup_n, \p sup_d, \p *pmaximum and \p point
will be left untouched.
*/
int
ppl_Polyhedron_maximize_with_point
(ppl_const_Polyhedron_t ph,
ppl_const_Linear_Expression_t le,
ppl_Coefficient_t sup_n,
ppl_Coefficient_t sup_d,
int* pmaximum,
ppl_Generator_t point);
/*! \relates ppl_Polyhedron_tag \brief
The same as ppl_Polyhedron_maximize_with_point, but without the
output argument for the location where the supremum value is reached.
*/
int
ppl_Polyhedron_maximize
(ppl_const_Polyhedron_t ph,
ppl_const_Linear_Expression_t le,
ppl_Coefficient_t sup_n,
ppl_Coefficient_t sup_d,
int* pmaximum);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is not empty
and \p le is bounded from below in \p ph, in which case
the infimum value and a point where \p le reaches it are computed.
\param ph
The polyhedron constraining \p le;
\param le
The linear expression to be minimized subject to \p ph;
\param inf_n
Will be assigned the numerator of the infimum value;
\param inf_d
Will be assigned the denominator of the infimum value;
\param pminimum
Will store 1 in this location if the infimum is also the minimum,
will store 0 otherwise;
\param point
Will be assigned the point or closure point where \p le reaches the
extremum value.
If \p ph is empty or \p le is not bounded from below,
0 will be returned and \p sup_n, \p sup_d, \p *pmaximum and \p point
will be left untouched.
*/
int
ppl_Polyhedron_minimize_with_point
(ppl_const_Polyhedron_t ph,
ppl_const_Linear_Expression_t le,
ppl_Coefficient_t inf_n,
ppl_Coefficient_t inf_d,
int* pminimum,
ppl_Generator_t point);
/*! \relates ppl_Polyhedron_tag \brief
The same as ppl_Polyhedron_minimize_with_point, but without the
output argument for the location where the infimum value is reached.
*/
int
ppl_Polyhedron_minimize_with_point
(ppl_const_Polyhedron_t ph,
ppl_const_Linear_Expression_t le,
ppl_Coefficient_t inf_n,
ppl_Coefficient_t inf_d,
int* pminimum);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p x contains or is equal to \p y;
returns 0 if it does not.
*/
int
ppl_Polyhedron_contains_Polyhedron
(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p x strictly contains \p y; returns 0
if it does not.
*/
int
ppl_Polyhedron_strictly_contains_Polyhedron
(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p x and \p y are disjoint; returns 0
if they are not.
*/
int
ppl_Polyhedron_is_disjoint_from_Polyhedron
(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p x and \p y are the same polyhedron;
returns 0 if they are different.
Note that \p x and \p y may be topology- and/or dimension-incompatible
polyhedra: in those cases, the value 0 is returned.
*/
int
ppl_Polyhedron_equals_Polyhedron
(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Returns a positive integer if \p ph is well formed, i.e., if it
satisfies all its implementation invariants; returns 0 and perhaps
makes some noise if \p ph is broken. Useful for debugging purposes.
*/
int
ppl_Polyhedron_OK(ppl_const_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Writes to \p sz a lower bound to the size in bytes of the memory
managed by \p ph.
*/
int
ppl_Polyhedron_external_memory_in_bytes
(ppl_const_Polyhedron_t ph, size_t* sz);
/*! \relates ppl_Polyhedron_tag \brief
Writes to \p sz a lower bound to the size in bytes of the memory
managed by \p ph.
*/
int
ppl_Polyhedron_total_memory_in_bytes
(ppl_const_Polyhedron_t ph, size_t* sz);
/*@}*/ /* Functions that Do Not Modify the Polyhedron */
/*! \brief \name Space Dimension Preserving Functions that May Modify the Polyhedron */
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Adds a copy of the constraint \p c to the system of constraints of \p ph.
*/
int
ppl_Polyhedron_add_constraint
(ppl_Polyhedron_t ph, ppl_const_Constraint_t c);
/*! \relates ppl_Polyhedron_tag \brief
Adds a copy of the congruence \p c to polyhedron of \p ph.
*/
int
ppl_Polyhedron_add_congruence
(ppl_Polyhedron_t ph, ppl_const_Congruence_t c);
/*! \relates ppl_Polyhedron_tag \brief
Adds a copy of the system of constraints \p cs to the system of
constraints of \p ph.
*/
int
ppl_Polyhedron_add_constraints
(ppl_Polyhedron_t ph, ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Adds a copy of the system of congruences \p cs to the polyhedron \p ph.
*/
int
ppl_Polyhedron_add_congruences
(ppl_Polyhedron_t ph, ppl_const_Congruence_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Adds the system of constraints \p cs to the system of constraints of
\p ph.
\warning
This function modifies the constraint system referenced by \p cs:
upon return, no assumption can be made on its value.
*/
int
ppl_Polyhedron_add_recycled_constraints
(ppl_Polyhedron_t ph, ppl_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Adds the system of congruences \p cs to the polyhedron \p ph.
\warning
This function modifies the congruence system referenced by \p cs:
upon return, no assumption can be made on its value.
*/
int
ppl_Polyhedron_add_recycled_congruences
(ppl_Polyhedron_t ph, ppl_Congruence_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Refines \p ph using constraint \p c.
*/
int
ppl_Polyhedron_refine_with_constraint
(ppl_Polyhedron_t ph, ppl_const_Constraint_t c);
/*! \relates ppl_Polyhedron_tag \brief
Refines \p ph using congruence \p c.
*/
int
ppl_Polyhedron_refine_with_congruence
(ppl_Polyhedron_t ph, ppl_const_Congruence_t c);
/*! \relates ppl_Polyhedron_tag \brief
Refines \p ph using the constraints in \p cs.
*/
int
ppl_Polyhedron_refine_with_constraints
(ppl_Polyhedron_t ph, ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Refines \p ph using the congruences in \p cs.
*/
int
ppl_Polyhedron_refine_with_congruences
(ppl_Polyhedron_t ph, ppl_const_Congruence_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
Intersects \p x with polyhedron \p y and assigns the result to \p x.
*/
int
ppl_Polyhedron_intersection_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p x an upper bound of \p x and \p y.
For the domain of polyhedra, this is the same as
<CODE>ppl_Polyhedron_poly_hull_assign(x, y)</CODE>.
*/
int
ppl_Polyhedron_upper_bound_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Same as ppl_Polyhedron_poly_difference_assign(x, y).
*/
int
ppl_Polyhedron_difference_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p x the
\extref{Meet_Preserving_Simplification, meet-preserving simplification}
of \p x with respect to context \p y. Returns a positive integer if
\p x and \p y have a nonempty intersection; returns \c 0 if they
are disjoint.
*/
int
ppl_Polyhedron_simplify_using_context_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p x the \extref{Time_Elapse_Operator, time-elapse} between
the polyhedra \p x and \p y.
*/
int
ppl_Polyhedron_time_elapse_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph its topological closure.
*/
int
ppl_Polyhedron_topological_closure_assign(ppl_Polyhedron_t ph);
/*! \relates ppl_Polyhedron_tag \brief
Modifies \p ph by \extref{Cylindrification, unconstraining}
the space dimension \p var.
*/
int
ppl_Polyhedron_unconstrain_space_dimension
(ppl_Polyhedron_t ph, ppl_dimension_type var);
/*! \relates ppl_Polyhedron_tag \brief
Modifies \p ph by \extref{Cylindrification, unconstraining}
the space dimensions that are specified in the first \p n positions
of the array \p ds.
The presence of duplicates in \p ds is a waste but an innocuous one.
*/
int
ppl_Polyhedron_unconstrain_space_dimensions
(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
/*! \relates ppl_Polyhedron_tag \brief
Transforms the polyhedron \p ph, assigning an affine expression
to the specified variable.
\param ph
The polyhedron that is transformed;
\param var
The variable to which the affine expression is assigned;
\param le
The numerator of the affine expression;
\param d
The denominator of the affine expression.
*/
int
ppl_Polyhedron_affine_image
(ppl_Polyhedron_t ph,
ppl_dimension_type var,
ppl_const_Linear_Expression_t le,
ppl_const_Coefficient_t d);
/*! \relates ppl_Polyhedron_tag \brief
Transforms the polyhedron \p ph, substituting an affine expression
to the specified variable.
\param ph
The polyhedron that is transformed;
\param var
The variable to which the affine expression is substituted;
\param le
The numerator of the affine expression;
\param d
The denominator of the affine expression.
*/
int
ppl_Polyhedron_affine_preimage
(ppl_Polyhedron_t ph,
ppl_dimension_type var,
ppl_const_Linear_Expression_t le,
ppl_const_Coefficient_t d);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the image of \p ph with respect to the
\extref{Generalized_Affine_Relations, generalized affine transfer relation}
\f$\frac{\mathrm{lb}}{\mathrm{d}}
\leq \mathrm{var}'
\leq \frac{\mathrm{ub}}{\mathrm{d}}\f$.
\param ph
The polyhedron that is transformed;
\param var
The variable bounded by the generalized affine transfer relation;
\param lb
The numerator of the lower bounding affine expression;
\param ub
The numerator of the upper bounding affine expression;
\param d
The (common) denominator of the lower and upper bounding affine expressions.
*/
int
ppl_Polyhedron_bounded_affine_image
(ppl_Polyhedron_t ph,
ppl_dimension_type var,
ppl_const_Linear_Expression_t lb,
ppl_const_Linear_Expression_t ub,
ppl_const_Coefficient_t d);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the preimage of \p ph with respect to the
\extref{Generalized_Affine_Relations, generalized affine transfer relation}
\f$\frac{\mathrm{lb}}{\mathrm{d}}
\leq \mathrm{var}'
\leq \frac{\mathrm{ub}}{\mathrm{d}}\f$.
\param ph
The polyhedron that is transformed;
\param var
The variable bounded by the generalized affine transfer relation;
\param lb
The numerator of the lower bounding affine expression;
\param ub
The numerator of the upper bounding affine expression;
\param d
The (common) denominator of the lower and upper bounding affine expressions.
*/
int
ppl_Polyhedron_bounded_affine_preimage
(ppl_Polyhedron_t ph,
ppl_dimension_type var,
ppl_const_Linear_Expression_t lb,
ppl_const_Linear_Expression_t ub,
ppl_const_Coefficient_t d);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the image of \p ph with respect to the
\extref{Generalized_Affine_Relations, generalized affine transfer relation}
\f$\mathrm{var}' \relsym \frac{\mathrm{le}}{\mathrm{d}}\f$,
where \f$\mathord{\relsym}\f$ is the relation symbol encoded
by \p relsym.
\param ph
The polyhedron that is transformed;
\param var
The left hand side variable of the generalized affine transfer relation;
\param relsym
The relation symbol;
\param le
The numerator of the right hand side affine expression;
\param d
The denominator of the right hand side affine expression.
*/
int
ppl_Polyhedron_generalized_affine_image
(ppl_Polyhedron_t ph,
ppl_dimension_type var,
enum ppl_enum_Constraint_Type relsym,
ppl_const_Linear_Expression_t le,
ppl_const_Coefficient_t d);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the preimage of \p ph with respect to the
\extref{Generalized_Affine_Relations, generalized affine transfer relation}
\f$\mathrm{var}' \relsym \frac{\mathrm{le}}{\mathrm{d}}\f$,
where \f$\mathord{\relsym}\f$ is the relation symbol encoded
by \p relsym.
\param ph
The polyhedron that is transformed;
\param var
The left hand side variable of the generalized affine transfer relation;
\param relsym
The relation symbol;
\param le
The numerator of the right hand side affine expression;
\param d
The denominator of the right hand side affine expression.
*/
int
ppl_Polyhedron_generalized_affine_preimage
(ppl_Polyhedron_t ph,
ppl_dimension_type var,
enum ppl_enum_Constraint_Type relsym,
ppl_const_Linear_Expression_t le,
ppl_const_Coefficient_t d);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the image of \p ph with respect to the
\extref{Generalized_Affine_Relations, generalized affine transfer relation}
\f$\mathrm{lhs}' \relsym \mathrm{rhs}\f$, where
\f$\mathord{\relsym}\f$ is the relation symbol encoded by \p relsym.
\param ph
The polyhedron that is transformed;
\param lhs
The left hand side affine expression;
\param relsym
The relation symbol;
\param rhs
The right hand side affine expression.
*/
int
ppl_Polyhedron_generalized_affine_image_lhs_rhs
(ppl_Polyhedron_t ph,
ppl_const_Linear_Expression_t lhs,
enum ppl_enum_Constraint_Type relsym,
ppl_const_Linear_Expression_t rhs);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the preimage of \p ph with respect to the
\extref{Generalized_Affine_Relations, generalized affine transfer relation}
\f$\mathrm{lhs}' \relsym \mathrm{rhs}\f$, where
\f$\mathord{\relsym}\f$ is the relation symbol encoded by \p relsym.
\param ph
The polyhedron that is transformed;
\param lhs
The left hand side affine expression;
\param relsym
The relation symbol;
\param rhs
The right hand side affine expression.
*/
int
ppl_Polyhedron_generalized_affine_preimage_lhs_rhs
(ppl_Polyhedron_t ph,
ppl_const_Linear_Expression_t lhs,
enum ppl_enum_Constraint_Type relsym,
ppl_const_Linear_Expression_t rhs);
/*@}*/ /* Space Dimension Preserving Functions that May Modify [...] */
/*! \brief \name Functions that May Modify the Dimension of the Vector Space */
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Seeing a polyhedron as a set of tuples (its points), assigns
to \p x all the tuples that can be obtained by concatenating,
in the order given, a tuple of \p x with a tuple of \p y.
*/
int
ppl_Polyhedron_concatenate_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Adds \p d new dimensions to the space enclosing the polyhedron \p ph
and to \p ph itself.
*/
int
ppl_Polyhedron_add_space_dimensions_and_embed
(ppl_Polyhedron_t ph, ppl_dimension_type d);
/*! \relates ppl_Polyhedron_tag \brief
Adds \p d new dimensions to the space enclosing the polyhedron \p ph.
*/
int
ppl_Polyhedron_add_space_dimensions_and_project
(ppl_Polyhedron_t ph, ppl_dimension_type d);
/*! \relates ppl_Polyhedron_tag \brief
Removes from the vector space enclosing \p ph the space dimensions that
are specified in first \p n positions of the array \p ds. The presence
of duplicates in \p ds is a waste but an innocuous one.
*/
int
ppl_Polyhedron_remove_space_dimensions
(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
/*! \relates ppl_Polyhedron_tag \brief
Removes the higher dimensions from the vector space enclosing \p ph
so that, upon successful return, the new space dimension is \p d.
*/
int
ppl_Polyhedron_remove_higher_space_dimensions
(ppl_Polyhedron_t ph, ppl_dimension_type d);
/*! \relates ppl_Polyhedron_tag \brief
Remaps the dimensions of the vector space according to a
\extref{Mapping_the_Dimensions_of_the_Vector_Space, partial function}.
This function is specified by means of the \p maps array,
which has \p n entries.
The partial function is defined on dimension <CODE>i</CODE>
if <CODE>i < n</CODE> and <CODE>maps[i] != ppl_not_a_dimension</CODE>;
otherwise it is undefined on dimension <CODE>i</CODE>.
If the function is defined on dimension <CODE>i</CODE>, then dimension
<CODE>i</CODE> is mapped onto dimension <CODE>maps[i]</CODE>.
The result is undefined if \p maps does not encode a partial
function with the properties described in the
\extref{Mapping_the_Dimensions_of_the_Vector_Space,
specification of the mapping operator}.
*/
int
ppl_Polyhedron_map_space_dimensions
(ppl_Polyhedron_t ph, ppl_dimension_type maps[], size_t n);
/*! \relates ppl_Polyhedron_tag \brief
\extref{expand_space_dimension, Expands} the \f$d\f$-th dimension of
the vector space enclosing \p ph to \p m new space dimensions.
*/
int
ppl_Polyhedron_expand_space_dimension
(ppl_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m);
/*! \relates ppl_Polyhedron_tag \brief
Modifies \p ph by \extref{fold_space_dimensions, folding} the
space dimensions contained in the first \p n positions of the array \p ds
into dimension \p d. The presence of duplicates in \p ds is a waste
but an innocuous one.
*/
int
ppl_Polyhedron_fold_space_dimensions
(ppl_Polyhedron_t ph,
ppl_dimension_type ds[],
size_t n,
ppl_dimension_type d);
/*@}*/ /* Functions that May Modify the Dimension of the Vector Space */
/*! \brief \name Input/Output Functions */
/*@{*/
/*! \relates ppl_Polyhedron_tag
\brief Prints \p x to \c stdout.
*/
int
ppl_io_print_Polyhedron(ppl_const_Polyhedron_t x);
/*! \relates ppl_Polyhedron_tag
\brief Prints \p x to the given output \p stream.
*/
int
ppl_io_fprint_Polyhedron(FILE* stream, ppl_const_Polyhedron_t x);
/*! \relates ppl_Polyhedron_tag \brief
Prints \p x to a malloc-allocated string, a pointer to which
is returned via \p strp.
*/
int
ppl_io_asprint_Polyhedron(char** strp, ppl_const_Polyhedron_t x);
/*! \relates ppl_Polyhedron_tag
\brief Dumps an ascii representation of \p x on \p stream.
*/
int
ppl_Polyhedron_ascii_dump(ppl_const_Polyhedron_t x, FILE* stream);
/*! \relates ppl_Polyhedron_tag
\brief Loads an ascii representation of \p x from \p stream.
*/
int
ppl_Polyhedron_ascii_load(ppl_Polyhedron_t x, FILE* stream);
/*@}*/ /* Input-Output Functions */
/*! \name Ad Hoc Functions for (C or NNC) Polyhedra
The functions listed here below, being specific of the polyhedron domains,
do not have a correspondence in other semantic geometric descriptions.
*/
/*@{*/
/*! \relates ppl_Polyhedron_tag \brief
Builds a new C polyhedron from the system of generators
\p gs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p gs.
*/
int
ppl_new_C_Polyhedron_from_Generator_System
(ppl_Polyhedron_t* pph, ppl_const_Generator_System_t gs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new C polyhedron recycling the system of generators
\p gs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p gs.
\warning
This function modifies the generator system referenced by \p gs:
upon return, no assumption can be made on its value.
*/
int
ppl_new_C_Polyhedron_recycle_Generator_System
(ppl_Polyhedron_t* pph, ppl_Generator_System_t gs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new NNC polyhedron from the system of generators
\p gs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p gs.
*/
int
ppl_new_NNC_Polyhedron_from_Generator_System
(ppl_Polyhedron_t* pph, ppl_const_Generator_System_t gs);
/*! \relates ppl_Polyhedron_tag \brief
Builds a new NNC polyhedron recycling the system of generators
\p gs and writes a handle for the newly created polyhedron at
address \p pph.
The new polyhedron will inherit the space dimension of \p gs.
\warning
This function modifies the generator system referenced by \p gs:
upon return, no assumption can be made on its value.
*/
int
ppl_new_NNC_Polyhedron_recycle_Generator_System
(ppl_Polyhedron_t* pph, ppl_Generator_System_t gs);
/*! \relates ppl_Polyhedron_tag \brief
Writes a const handle to the generator system defining the
polyhedron \p ph at address \p pgs.
*/
int
ppl_Polyhedron_get_generators
(ppl_const_Polyhedron_t ph, ppl_const_Generator_System_t* pgs);
/*! \relates ppl_Polyhedron_tag \brief
Writes a const handle to the minimized generator system defining the
polyhedron \p ph at address \p pgs.
*/
int
ppl_Polyhedron_get_minimized_generators
(ppl_const_Polyhedron_t ph, ppl_const_Generator_System_t* pgs);
/*! \relates ppl_Polyhedron_tag \brief
Adds a copy of the generator \p g to the system of generators of \p ph.
*/
int
ppl_Polyhedron_add_generator
(ppl_Polyhedron_t ph, ppl_const_Generator_t g);
/*! \relates ppl_Polyhedron_tag \brief
Adds a copy of the system of generators \p gs to the system of
generators of \p ph.
*/
int
ppl_Polyhedron_add_generators
(ppl_Polyhedron_t ph, ppl_const_Generator_System_t gs);
/*! \relates ppl_Polyhedron_tag \brief
Adds the system of generators \p gs to the system of generators of
\p ph.
\warning
This function modifies the generator system referenced by \p gs:
upon return, no assumption can be made on its value.
*/
int
ppl_Polyhedron_add_recycled_generators
(ppl_Polyhedron_t ph, ppl_Generator_System_t gs);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p x the poly-hull of \p x and \p y.
*/
int
ppl_Polyhedron_poly_hull_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p x the \extref{Convex_Polyhedral_Difference, poly-difference}
of \p x and \p y.
*/
int
ppl_Polyhedron_poly_difference_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
Assigns to \p ph the polyhedron obtained from \p ph by "wrapping" the vector
space defined by the first \p n space dimensions in \p ds[].
\param ph
The polyhedron that is transformed;
\param ds[]
Specifies the space dimensions to be wrapped.
\param n
The first \p n space dimensions in the array \p ds[] will be wrapped.
\param w
The width of the bounded integer type corresponding to
all the dimensions to be wrapped.
\param r
The representation of the bounded integer type corresponding to
all the dimensions to be wrapped.
\param o
The overflow behavior of the bounded integer type corresponding to
all the dimensions to be wrapped.
\param pcs
Possibly null pointer to a constraint system whose space dimensions
are the first \p n dimensions in \p ds[]. If <CODE>*pcs</CODE>
depends on variables not in \p vars, the behavior is undefined.
When non-null, the constraint system is assumed to
represent the conditional or looping construct guard with respect
to which wrapping is performed. Since wrapping requires the
computation of upper bounds and due to non-distributivity of
constraint refinement over upper bounds, passing a constraint
system in this way can be more precise than refining the result of
the wrapping operation with the constraints in <CODE>cs</CODE>.
\param complexity_threshold
A precision parameter where higher values result in possibly improved
precision.
\param wrap_individually
Non-zero if the dimensions should be wrapped individually
(something that results in much greater efficiency to the detriment of
precision).
*/
int wrap_assign(ppl_Polyhedron_t ph,
ppl_dimension_type ds[],
size_t n,
ppl_enum_Bounded_Integer_Type_Width w,
ppl_enum_Bounded_Integer_Type_Representation r,
ppl_enum_Bounded_Integer_Type_Overflow o,
const ppl_const_Constraint_System_t* pcs,
unsigned complexity_threshold,
int wrap_individually);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{BHRZ03_widening, BHRZ03-widening} of
\p x and \p y. If \p tp is not the null pointer, the
\extref{Widening_with_Tokens, widening with tokens} delay technique
is applied with <CODE>*tp</CODE> available tokens.
*/
int
ppl_Polyhedron_BHRZ03_widening_assign_with_tokens
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y, unsigned* tp);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{H79_widening, H79-widening} of \p x
and \p y. If \p tp is not the null pointer, the
\extref{Widening_with_Tokens, widening with tokens} delay technique is
applied with <CODE>*tp</CODE> available tokens.
*/
int
ppl_Polyhedron_H79_widening_assign_with_tokens
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y, unsigned* tp);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{BHRZ03_widening, BHRZ03-widening} of
\p x and \p y.
*/
int
ppl_Polyhedron_BHRZ03_widening_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{H79_widening, H79-widening} of \p x
and \p y.
*/
int
ppl_Polyhedron_H79_widening_assign
(ppl_Polyhedron_t x, ppl_const_Polyhedron_t y);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{BHRZ03_widening, BHRZ03-widening} of
\p x and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x. If \p tp is not the null pointer,
the \extref{Widening_with_Tokens, widening with tokens} delay technique
is applied with <CODE>*tp</CODE> available tokens.
*/
int
ppl_Polyhedron_limited_BHRZ03_extrapolation_assign_with_tokens
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs,
unsigned* tp);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{H79_widening, H79-widening} of \p x
and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x. If \p tp is not the null
pointer, the \extref{Widening_with_Tokens, widening with tokens} delay
technique is applied with <CODE>*tp</CODE> available tokens.
*/
int
ppl_Polyhedron_limited_H79_extrapolation_assign_with_tokens
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs,
unsigned* tp);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{BHRZ03_widening, BHRZ03-widening} of
\p x and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x.
*/
int
ppl_Polyhedron_limited_BHRZ03_extrapolation_assign
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{H79_widening, H79-widening} of \p x
and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x.
*/
int
ppl_Polyhedron_limited_H79_extrapolation_assign
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{BHRZ03_widening, BHRZ03-widening} of
\p x and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x, further intersected with all
the constraints of the form \f$\pm v \leq r\f$ and \f$\pm v < r\f$,
with \f$r \in \Qset\f$, that are satisfied by all the points of \p
x. If \p tp is not the null pointer,
the \extref{Widening_with_Tokens, widening with tokens} delay technique
is applied with <CODE>*tp</CODE> available tokens.
*/
int
ppl_Polyhedron_bounded_BHRZ03_extrapolation_assign_with_tokens
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs,
unsigned* tp);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{H79_widening, H79-widening} of \p x
and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x, further intersected with all
the constraints of the form \f$\pm v \leq r\f$ and \f$\pm v < r\f$,
with \f$r \in \Qset\f$, that are satisfied by all the points of \p x.
If \p tp is not the null pointer,
the \extref{Widening_with_Tokens, widening with tokens} delay technique
is applied with <CODE>*tp</CODE> available tokens.
*/
int
ppl_Polyhedron_bounded_H79_extrapolation_assign_with_tokens
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs,
unsigned* tp);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{BHRZ03_widening, BHRZ03-widening} of
\p x and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x, further intersected with all
the constraints of the form \f$\pm v \leq r\f$ and \f$\pm v < r\f$,
with \f$r \in \Qset\f$, that are satisfied by all the points of \p x.
*/
int
ppl_Polyhedron_bounded_BHRZ03_extrapolation_assign
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs);
/*! \relates ppl_Polyhedron_tag \brief
If the polyhedron \p y is contained in (or equal to) the polyhedron
\p x, assigns to \p x the \extref{H79_widening, H79-widening} of \p x
and \p y intersected with the constraints in \p cs that are
satisfied by all the points of \p x, further intersected with all
the constraints of the form \f$\pm v \leq r\f$ and \f$\pm v < r\f$,
with \f$r \in \Qset\f$, that are satisfied by all the points of \p x.
*/
int
ppl_Polyhedron_bounded_H79_extrapolation_assign
(ppl_Polyhedron_t x,
ppl_const_Polyhedron_t y,
ppl_const_Constraint_System_t cs);
/*@}*/ /* Ad Hoc Functions for (C or NNC) Polyhedra */
/*! \interface ppl_Pointset_Powerset_C_Polyhedron_tag
\brief
Types and functions for the Pointset_Powerset of C_Polyhedron objects.
The powerset domains can be instantiated by taking as a base domain
any fixed semantic geometric description
(C and NNC polyhedra, BD and octagonal shapes, boxes and grids).
An element of the powerset domain represents a disjunctive collection
of base objects (its disjuncts), all having the same space dimension.
Besides the functions that are available in all semantic geometric
descriptions (whose documentation is not repeated here),
the powerset domain also provides several ad hoc functions.
In particular, the iterator types allow for the examination and
manipulation of the collection of disjuncts.
*/
#if !defined(PPL_DOXYGEN_CONFIGURED_MANUAL)
/*! \brief Opaque pointer \ingroup Datatypes */
typedef struct ppl_Pointset_Powerset_C_Polyhedron_tag*
ppl_Pointset_Powerset_C_Polyhedron_t;
/*! \brief Opaque pointer to const object \ingroup Datatypes */
typedef struct ppl_Pointset_Powerset_C_Polyhedron_tag const*
ppl_const_Pointset_Powerset_C_Polyhedron_t;
/*! \interface ppl_Pointset_Powerset_C_Polyhedron_iterator_tag
\brief
Types and functions for iterating on the disjuncts of a
ppl_Pointset_Powerset_C_Polyhedron_tag.
*/
/*! \brief Opaque pointer \ingroup Datatypes */
typedef struct ppl_Pointset_Powerset_C_Polyhedron_iterator_tag*
ppl_Pointset_Powerset_C_Polyhedron_iterator_t;
/*! \brief Opaque pointer to const object \ingroup Datatypes */
typedef struct ppl_Pointset_Powerset_C_Polyhedron_iterator_tag const*
ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t;
/*! \interface ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag
\brief
Types and functions for iterating on the disjuncts of a
const ppl_Pointset_Powerset_C_Polyhedron_tag.
*/
/*! \brief Opaque pointer \ingroup Datatypes */
typedef struct ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag*
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t;
/*! \brief Opaque pointer to const object \ingroup Datatypes */
typedef struct ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag const*
ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t;
#endif /* !defined(PPL_DOXYGEN_CONFIGURED_MANUAL) */
/*! \brief \name Construction, Initialization and Destruction */
/*@{*/
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Builds a new `iterator' and writes a handle to it
at address \p pit.
*/
int
ppl_new_Pointset_Powerset_C_Polyhedron_iterator
(ppl_Pointset_Powerset_C_Polyhedron_iterator_t* pit);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Builds a copy of \p y and writes a handle to it at address \p pit.
*/
int
ppl_new_Pointset_Powerset_C_Polyhedron_iterator_from_iterator
(ppl_Pointset_Powerset_C_Polyhedron_iterator_t* pit,
ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t y);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Builds a new `const iterator' and writes a handle to it
at address \p pit.
*/
int
ppl_new_Pointset_Powerset_C_Polyhedron_const_iterator
(ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t* pit);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Builds a copy of \p y and writes a handle to it at address \p pit.
*/
int
ppl_new_Pointset_Powerset_C_Polyhedron_const_iterator_from_const_iterator
(ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t* pit,
ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t y);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Assigns to \p psit an iterator "pointing" to the beginning of
the sequence of disjuncts of \p ps.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_iterator_begin
(ppl_Pointset_Powerset_C_Polyhedron_t ps,
ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Assigns to \p psit a const iterator "pointing" to the beginning of
the sequence of disjuncts of \p ps.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_begin
(ppl_const_Pointset_Powerset_C_Polyhedron_t ps,
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Assigns to \p psit an iterator "pointing" past the end of
the sequence of disjuncts of \p ps.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_iterator_end
(ppl_Pointset_Powerset_C_Polyhedron_t ps,
ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Assigns to \p psit a const iterator "pointing" past the end of
the sequence of disjuncts of \p ps.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_end
(ppl_const_Pointset_Powerset_C_Polyhedron_t ps,
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Invalidates the handle \p it: this makes sure the corresponding
resources will eventually be released.
*/
int
ppl_delete_Pointset_Powerset_C_Polyhedron_iterator
(ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t it);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Invalidates the handle \p it: this makes sure the corresponding
resources will eventually be released.
*/
int
ppl_delete_Pointset_Powerset_C_Polyhedron_const_iterator
(ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t it);
/*@}*/ /* Construction, Initialization and Destruction */
/*! \brief \name Dereferencing, Increment, Decrement and Equality Testing */
/*@{*/
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Dereferences \p it writing a const handle to the resulting disjunct
at address \p d.
\note
Even though \p it is an non-const iterator, dereferencing it results
in a handle to a \b const disjunct. This is because mutable iterators
are meant to allow for the modification of the sequence of disjuncts
(e.g., by dropping elements), while preventing direct modifications
of the disjuncts they point to.
\warning
On exit, the disjunct \p d is still owned by the powerset object:
any function call on the owning powerset object may invalidate it.
Moreover, \p d should \b not be deleted directly: its resources will
be released when deleting the owning powerset.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_iterator_dereference
(ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t it,
ppl_const_Polyhedron_t* d);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Dereferences \p it writing a const handle to the resulting disjunct
at address \p d.
\warning
On exit, the disjunct \p d is still owned by the powerset object:
any function call on the owning powerset object may invalidate it.
Moreover, \p d should \b not be deleted directly: its resources will
be released when deleting the owning powerset.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_dereference
(ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t it,
ppl_const_Polyhedron_t* d);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Increments \p it so that it "points" to the next disjunct.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_iterator_increment
(ppl_Pointset_Powerset_C_Polyhedron_iterator_t it);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Increments \p it so that it "points" to the next disjunct.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_increment
(ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t it);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Decrements \p it so that it "points" to the previous disjunct.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_iterator_decrement
(ppl_Pointset_Powerset_C_Polyhedron_iterator_t it);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Decrements \p it so that it "points" to the previous disjunct.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_decrement
(ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t it);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_iterator_tag \brief
Returns a positive integer if the iterators corresponding to \p x and
\p y are equal; returns 0 if they are different.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_iterator_equal_test
(ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t x,
ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t y);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_const_iterator_tag \brief
Returns a positive integer if the iterators corresponding to \p x and
\p y are equal; returns 0 if they are different.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_const_iterator_equal_test
(ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t x,
ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t y);
/*@}*/ /* Dereferencing, Increment, Decrement and Equality Testing */
/*! \brief \name Ad Hoc Functions for Pointset_Powerset domains */
/*@{*/
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Drops from the sequence of disjuncts in \p ps all the
non-maximal elements so that \p ps is non-redundant.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_omega_reduce
(ppl_const_Pointset_Powerset_C_Polyhedron_t ps);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Writes to \p sz the number of disjuncts in \p ps.
\note
If present, Omega-redundant elements will be counted too.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_size
(ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t* sz);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Returns a positive integer if powerset \p x geometrically covers
powerset \p y; returns 0 otherwise.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_geometrically_covers_Pointset_Powerset_C_Polyhedron
(ppl_const_Pointset_Powerset_C_Polyhedron_t x,
ppl_const_Pointset_Powerset_C_Polyhedron_t y);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Returns a positive integer if powerset \p x is geometrically
equal to powerset \p y; returns 0 otherwise.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_geometrically_equals_Pointset_Powerset_C_Polyhedron
(ppl_const_Pointset_Powerset_C_Polyhedron_t x,
ppl_const_Pointset_Powerset_C_Polyhedron_t y);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Adds to \p ps a copy of disjunct \p d.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_add_disjunct
(ppl_Pointset_Powerset_C_Polyhedron_t ps, ppl_const_Polyhedron_t d);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Drops from \p ps the disjunct pointed to by \p cit,
assigning to \p it an iterator to the disjunct following \p cit.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_drop_disjunct
(ppl_Pointset_Powerset_C_Polyhedron_t ps,
ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t cit,
ppl_Pointset_Powerset_C_Polyhedron_iterator_t it);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Drops from \p ps all the disjuncts from \p first to \p last (excluded).
*/
int
ppl_Pointset_Powerset_C_Polyhedron_drop_disjuncts
(ppl_Pointset_Powerset_C_Polyhedron_t ps,
ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t first,
ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t last);
/*! \relates ppl_Pointset_Powerset_C_Polyhedron_tag \brief
Modifies \p ps by (recursively) merging together the pairs of
disjuncts whose upper-bound is the same as their set-theoretical union.
*/
int
ppl_Pointset_Powerset_C_Polyhedron_pairwise_reduce
(ppl_Pointset_Powerset_C_Polyhedron_t ps);
/*@}*/ /* Ad Hoc Functions for Pointset_Powerset domains */
|