-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgroup__ProgramBuilder.html
1265 lines (1203 loc) · 74.6 KB
/
group__ProgramBuilder.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Clingo C API: Program Building</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="clingo.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Clingo C API
</div>
<div id="projectbrief">C API for clingo providing high level functions to control grounding and solving.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Program Building<div class="ingroups"><a class="el" href="group__Control.html">Grounding and Solving</a></div></div> </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Add non-ground program representations (ASTs) to logic programs or extend the ground (aspif) program. </p>
<p>For an example about ground logic programs, see <a class="el" href="backend_8c-example.html">backend.c</a>. For an example about non-ground logic programs, see <a class="el" href="ast_8c-example.html">ast.c</a> and the <a class="el" href="group__AST.html">Abstract Syntax Trees</a> module. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gaed138282bbb10e4cfbba41224a6e4cb7"><td class="memItemLeft" align="right" valign="top"><a id="gaed138282bbb10e4cfbba41224a6e4cb7"></a>
typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaed138282bbb10e4cfbba41224a6e4cb7">clingo_theory_sequence_type_t</a></td></tr>
<tr class="memdesc:gaed138282bbb10e4cfbba41224a6e4cb7"><td class="mdescLeft"> </td><td class="mdescRight">Corresponding type to <a class="el" href="group__ProgramBuilder.html#gaacc66378b792734156ff72a390ced0eb" title="Enumeration of theory sequence types.">clingo_theory_sequence_type_e</a>. <br /></td></tr>
<tr class="separator:gaed138282bbb10e4cfbba41224a6e4cb7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5e9458723e4631599ada46f8748ca577"><td class="memItemLeft" align="right" valign="top"><a id="ga5e9458723e4631599ada46f8748ca577"></a>
typedef struct clingo_backend </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a></td></tr>
<tr class="memdesc:ga5e9458723e4631599ada46f8748ca577"><td class="mdescLeft"> </td><td class="mdescRight">Handle to the backend to add directives in aspif format. <br /></td></tr>
<tr class="separator:ga5e9458723e4631599ada46f8748ca577"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gaacc66378b792734156ff72a390ced0eb"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaacc66378b792734156ff72a390ced0eb">clingo_theory_sequence_type_e</a> { <a class="el" href="group__ProgramBuilder.html#ggaacc66378b792734156ff72a390ced0eba616c96969f88655a36be8cd5fafa4c1f">clingo_theory_sequence_type_tuple</a>,
<a class="el" href="group__ProgramBuilder.html#ggaacc66378b792734156ff72a390ced0eba356a4f2d4d957e2096d210bbb540f829">clingo_theory_sequence_type_list</a>,
<a class="el" href="group__ProgramBuilder.html#ggaacc66378b792734156ff72a390ced0ebaf6919737ecbc3bddaf95b638bab8baca">clingo_theory_sequence_type_set</a>
}</td></tr>
<tr class="memdesc:gaacc66378b792734156ff72a390ced0eb"><td class="mdescLeft"> </td><td class="mdescRight">Enumeration of theory sequence types. <a href="group__ProgramBuilder.html#gaacc66378b792734156ff72a390ced0eb">More...</a><br /></td></tr>
<tr class="separator:gaacc66378b792734156ff72a390ced0eb"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6217af7361e4969b262f2c26318f53bb"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga6217af7361e4969b262f2c26318f53bb">clingo_backend_begin</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend)</td></tr>
<tr class="memdesc:ga6217af7361e4969b262f2c26318f53bb"><td class="mdescLeft"> </td><td class="mdescRight">Prepare the backend for usage. <a href="group__ProgramBuilder.html#ga6217af7361e4969b262f2c26318f53bb">More...</a><br /></td></tr>
<tr class="separator:ga6217af7361e4969b262f2c26318f53bb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaed5313f4057777ac42f3bd75de3863d5"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaed5313f4057777ac42f3bd75de3863d5">clingo_backend_end</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend)</td></tr>
<tr class="memdesc:gaed5313f4057777ac42f3bd75de3863d5"><td class="mdescLeft"> </td><td class="mdescRight">Finalize the backend after using it. <a href="group__ProgramBuilder.html#gaed5313f4057777ac42f3bd75de3863d5">More...</a><br /></td></tr>
<tr class="separator:gaed5313f4057777ac42f3bd75de3863d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga89dd64e084d6432e48b097a049d0bf8f"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga89dd64e084d6432e48b097a049d0bf8f">clingo_backend_rule</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, bool choice, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> const *head, size_t head_size, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const *body, size_t body_size)</td></tr>
<tr class="memdesc:ga89dd64e084d6432e48b097a049d0bf8f"><td class="mdescLeft"> </td><td class="mdescRight">Add a rule to the program. <a href="group__ProgramBuilder.html#ga89dd64e084d6432e48b097a049d0bf8f">More...</a><br /></td></tr>
<tr class="separator:ga89dd64e084d6432e48b097a049d0bf8f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga93c29b4d865012d12ac900f4c727390a"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga93c29b4d865012d12ac900f4c727390a">clingo_backend_weight_rule</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, bool choice, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> const *head, size_t head_size, <a class="el" href="group__BasicTypes.html#gaee5a30c2cd2c2b664a62bd81ecd5509f">clingo_weight_t</a> lower_bound, <a class="el" href="group__BasicTypes.html#ga33e745a3827608ff66701f061b3c6a83">clingo_weighted_literal_t</a> const *body, size_t body_size)</td></tr>
<tr class="memdesc:ga93c29b4d865012d12ac900f4c727390a"><td class="mdescLeft"> </td><td class="mdescRight">Add a weight rule to the program. <a href="group__ProgramBuilder.html#ga93c29b4d865012d12ac900f4c727390a">More...</a><br /></td></tr>
<tr class="separator:ga93c29b4d865012d12ac900f4c727390a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa53a501cd64547a9fa84728b5bbeb9dc"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaa53a501cd64547a9fa84728b5bbeb9dc">clingo_backend_minimize</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#gaee5a30c2cd2c2b664a62bd81ecd5509f">clingo_weight_t</a> priority, <a class="el" href="group__BasicTypes.html#ga33e745a3827608ff66701f061b3c6a83">clingo_weighted_literal_t</a> const *literals, size_t size)</td></tr>
<tr class="memdesc:gaa53a501cd64547a9fa84728b5bbeb9dc"><td class="mdescLeft"> </td><td class="mdescRight">Add a minimize constraint (or weak constraint) to the program. <a href="group__ProgramBuilder.html#gaa53a501cd64547a9fa84728b5bbeb9dc">More...</a><br /></td></tr>
<tr class="separator:gaa53a501cd64547a9fa84728b5bbeb9dc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga08794c1459758bd5489fe61647c31b9b"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga08794c1459758bd5489fe61647c31b9b">clingo_backend_project</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> const *atoms, size_t size)</td></tr>
<tr class="memdesc:ga08794c1459758bd5489fe61647c31b9b"><td class="mdescLeft"> </td><td class="mdescRight">Add a projection directive. <a href="group__ProgramBuilder.html#ga08794c1459758bd5489fe61647c31b9b">More...</a><br /></td></tr>
<tr class="separator:ga08794c1459758bd5489fe61647c31b9b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf28c97d97c7b0c4f3cada4730c437640"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaf28c97d97c7b0c4f3cada4730c437640">clingo_backend_external</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> atom, <a class="el" href="group__ProgramInspection.html#ga176cf284ec38d9b3626d6584b3cb407e">clingo_external_type_t</a> type)</td></tr>
<tr class="memdesc:gaf28c97d97c7b0c4f3cada4730c437640"><td class="mdescLeft"> </td><td class="mdescRight">Add an external statement. <a href="group__ProgramBuilder.html#gaf28c97d97c7b0c4f3cada4730c437640">More...</a><br /></td></tr>
<tr class="separator:gaf28c97d97c7b0c4f3cada4730c437640"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga69a31ef4ff7c667e461c3e40c3b7d273"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga69a31ef4ff7c667e461c3e40c3b7d273">clingo_backend_assume</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const *literals, size_t size)</td></tr>
<tr class="memdesc:ga69a31ef4ff7c667e461c3e40c3b7d273"><td class="mdescLeft"> </td><td class="mdescRight">Add an assumption directive. <a href="group__ProgramBuilder.html#ga69a31ef4ff7c667e461c3e40c3b7d273">More...</a><br /></td></tr>
<tr class="separator:ga69a31ef4ff7c667e461c3e40c3b7d273"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8d15b08eac4eab5f7b1dca6d7d68aef2"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga8d15b08eac4eab5f7b1dca6d7d68aef2">clingo_backend_heuristic</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> atom, <a class="el" href="group__ProgramInspection.html#gaa67a416799cd19c6b46ed02233ea6947">clingo_heuristic_type_t</a> type, int bias, unsigned priority, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const *condition, size_t size)</td></tr>
<tr class="memdesc:ga8d15b08eac4eab5f7b1dca6d7d68aef2"><td class="mdescLeft"> </td><td class="mdescRight">Add an heuristic directive. <a href="group__ProgramBuilder.html#ga8d15b08eac4eab5f7b1dca6d7d68aef2">More...</a><br /></td></tr>
<tr class="separator:ga8d15b08eac4eab5f7b1dca6d7d68aef2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaaaa6b4b9c8f553d2d41e78c9ad22cdc2"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaaaa6b4b9c8f553d2d41e78c9ad22cdc2">clingo_backend_acyc_edge</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, int node_u, int node_v, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const *condition, size_t size)</td></tr>
<tr class="memdesc:gaaaa6b4b9c8f553d2d41e78c9ad22cdc2"><td class="mdescLeft"> </td><td class="mdescRight">Add an edge directive. <a href="group__ProgramBuilder.html#gaaaa6b4b9c8f553d2d41e78c9ad22cdc2">More...</a><br /></td></tr>
<tr class="separator:gaaaa6b4b9c8f553d2d41e78c9ad22cdc2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4d4d88d3bfe5ce9a4b5a91bd2a42684d"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga4d4d88d3bfe5ce9a4b5a91bd2a42684d">clingo_backend_add_atom</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> *symbol, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> *atom)</td></tr>
<tr class="memdesc:ga4d4d88d3bfe5ce9a4b5a91bd2a42684d"><td class="mdescLeft"> </td><td class="mdescRight">Get a fresh atom to be used in aspif directives. <a href="group__ProgramBuilder.html#ga4d4d88d3bfe5ce9a4b5a91bd2a42684d">More...</a><br /></td></tr>
<tr class="separator:ga4d4d88d3bfe5ce9a4b5a91bd2a42684d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga6bb07f45d9b90e3132713a407b146afc"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga6bb07f45d9b90e3132713a407b146afc">clingo_backend_theory_term_number</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, int number, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *term_id)</td></tr>
<tr class="memdesc:ga6bb07f45d9b90e3132713a407b146afc"><td class="mdescLeft"> </td><td class="mdescRight">Add a numeric theory term. <a href="group__ProgramBuilder.html#ga6bb07f45d9b90e3132713a407b146afc">More...</a><br /></td></tr>
<tr class="separator:ga6bb07f45d9b90e3132713a407b146afc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga29b565475d844c90808429759f2bf4d8"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga29b565475d844c90808429759f2bf4d8">clingo_backend_theory_term_string</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, char const *string, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *term_id)</td></tr>
<tr class="memdesc:ga29b565475d844c90808429759f2bf4d8"><td class="mdescLeft"> </td><td class="mdescRight">Add a theory term representing a string. <a href="group__ProgramBuilder.html#ga29b565475d844c90808429759f2bf4d8">More...</a><br /></td></tr>
<tr class="separator:ga29b565475d844c90808429759f2bf4d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa7ae2af023815e2ef4640e66d522bd6a"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaa7ae2af023815e2ef4640e66d522bd6a">clingo_backend_theory_term_sequence</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__ProgramBuilder.html#gaed138282bbb10e4cfbba41224a6e4cb7">clingo_theory_sequence_type_t</a> type, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const *arguments, size_t size, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *term_id)</td></tr>
<tr class="memdesc:gaa7ae2af023815e2ef4640e66d522bd6a"><td class="mdescLeft"> </td><td class="mdescRight">Add a theory term representing a sequence of theory terms. <a href="group__ProgramBuilder.html#gaa7ae2af023815e2ef4640e66d522bd6a">More...</a><br /></td></tr>
<tr class="separator:gaa7ae2af023815e2ef4640e66d522bd6a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga84375b88c833ddd848ecb020f546acd9"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga84375b88c833ddd848ecb020f546acd9">clingo_backend_theory_term_function</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, char const *name, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const *arguments, size_t size, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *term_id)</td></tr>
<tr class="memdesc:ga84375b88c833ddd848ecb020f546acd9"><td class="mdescLeft"> </td><td class="mdescRight">Add a theory term representing a function. <a href="group__ProgramBuilder.html#ga84375b88c833ddd848ecb020f546acd9">More...</a><br /></td></tr>
<tr class="separator:ga84375b88c833ddd848ecb020f546acd9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0f2e437905d712acba275d2d140b13b8"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga0f2e437905d712acba275d2d140b13b8">clingo_backend_theory_term_symbol</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> symbol, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *term_id)</td></tr>
<tr class="memdesc:ga0f2e437905d712acba275d2d140b13b8"><td class="mdescLeft"> </td><td class="mdescRight">Convert the given symbol into a theory term. <a href="group__ProgramBuilder.html#ga0f2e437905d712acba275d2d140b13b8">More...</a><br /></td></tr>
<tr class="separator:ga0f2e437905d712acba275d2d140b13b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gadc2199690eb5b2064d1ddbc4fe648b9d"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gadc2199690eb5b2064d1ddbc4fe648b9d">clingo_backend_theory_element</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const *tuple, size_t tuple_size, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const *condition, size_t condition_size, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *element_id)</td></tr>
<tr class="memdesc:gadc2199690eb5b2064d1ddbc4fe648b9d"><td class="mdescLeft"> </td><td class="mdescRight">Add a theory atom element. <a href="group__ProgramBuilder.html#gadc2199690eb5b2064d1ddbc4fe648b9d">More...</a><br /></td></tr>
<tr class="separator:gadc2199690eb5b2064d1ddbc4fe648b9d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa01105a7f9ac7fe0011a477b420d1de8"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#gaa01105a7f9ac7fe0011a477b420d1de8">clingo_backend_theory_atom</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> atom_id_or_zero, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> term_id, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const *elements, size_t size)</td></tr>
<tr class="memdesc:gaa01105a7f9ac7fe0011a477b420d1de8"><td class="mdescLeft"> </td><td class="mdescRight">Add a theory atom without a guard. <a href="group__ProgramBuilder.html#gaa01105a7f9ac7fe0011a477b420d1de8">More...</a><br /></td></tr>
<tr class="separator:gaa01105a7f9ac7fe0011a477b420d1de8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga88a4590cd3382356ebff189a702f9853"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__ProgramBuilder.html#ga88a4590cd3382356ebff189a702f9853">clingo_backend_theory_atom_with_guard</a> (<a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> *backend, <a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> atom_id_or_zero, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> term_id, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const *elements, size_t size, char const *operator_name, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> right_hand_side_id)</td></tr>
<tr class="memdesc:ga88a4590cd3382356ebff189a702f9853"><td class="mdescLeft"> </td><td class="mdescRight">Add a theory atom with a guard. <a href="group__ProgramBuilder.html#ga88a4590cd3382356ebff189a702f9853">More...</a><br /></td></tr>
<tr class="separator:ga88a4590cd3382356ebff189a702f9853"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="gaacc66378b792734156ff72a390ced0eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaacc66378b792734156ff72a390ced0eb">◆ </a></span>clingo_theory_sequence_type_e</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__ProgramBuilder.html#gaacc66378b792734156ff72a390ced0eb">clingo_theory_sequence_type_e</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Enumeration of theory sequence types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ggaacc66378b792734156ff72a390ced0eba616c96969f88655a36be8cd5fafa4c1f"></a>clingo_theory_sequence_type_tuple </td><td class="fielddoc"><p>Theory tuples "(t1,...,tn)". </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaacc66378b792734156ff72a390ced0eba356a4f2d4d957e2096d210bbb540f829"></a>clingo_theory_sequence_type_list </td><td class="fielddoc"><p>Theory lists "[t1,...,tn]". </p>
</td></tr>
<tr><td class="fieldname"><a id="ggaacc66378b792734156ff72a390ced0ebaf6919737ecbc3bddaf95b638bab8baca"></a>clingo_theory_sequence_type_set </td><td class="fielddoc"><p>Theory sets "{t1,...,tn}". </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaaaa6b4b9c8f553d2d41e78c9ad22cdc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaaa6b4b9c8f553d2d41e78c9ad22cdc2">◆ </a></span>clingo_backend_acyc_edge()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_acyc_edge </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>node_u</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>node_v</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const * </td>
<td class="paramname"><em>condition</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add an edge directive. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">node_u</td><td>the start vertex of the edge </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">node_v</td><td>the end vertex of the edge </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">condition</td><td>the condition under which the edge is part of the graph </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of atoms in the condition </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga4d4d88d3bfe5ce9a4b5a91bd2a42684d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4d4d88d3bfe5ce9a4b5a91bd2a42684d">◆ </a></span>clingo_backend_add_atom()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_add_atom </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> * </td>
<td class="paramname"><em>symbol</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> * </td>
<td class="paramname"><em>atom</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get a fresh atom to be used in aspif directives. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">symbol</td><td>optional symbol to associate the atom with </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">atom</td><td>the resulting atom </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="backend_8c-example.html#a25">backend.c</a>.</dd>
</dl>
</div>
</div>
<a id="ga69a31ef4ff7c667e461c3e40c3b7d273"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga69a31ef4ff7c667e461c3e40c3b7d273">◆ </a></span>clingo_backend_assume()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_assume </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const * </td>
<td class="paramname"><em>literals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add an assumption directive. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">literals</td><td>the literals to assume (positive literals are true and negative literals false for the next solve call) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of atoms </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga6217af7361e4969b262f2c26318f53bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6217af7361e4969b262f2c26318f53bb">◆ </a></span>clingo_backend_begin()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_begin </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Prepare the backend for usage. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a></li>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaf43eebc9503fef8d1b2b85f99bb63221" title="errors only detectable at runtime like invalid input">clingo_error_runtime</a> </li>
</ul>
</dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="backend_8c-example.html#a24">backend.c</a>.</dd>
</dl>
</div>
</div>
<a id="gaed5313f4057777ac42f3bd75de3863d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaed5313f4057777ac42f3bd75de3863d5">◆ </a></span>clingo_backend_end()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_end </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Finalize the backend after using it. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a></li>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaf43eebc9503fef8d1b2b85f99bb63221" title="errors only detectable at runtime like invalid input">clingo_error_runtime</a> </li>
</ul>
</dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="backend_8c-example.html#a28">backend.c</a>.</dd>
</dl>
</div>
</div>
<a id="gaf28c97d97c7b0c4f3cada4730c437640"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf28c97d97c7b0c4f3cada4730c437640">◆ </a></span>clingo_backend_external()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_external </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> </td>
<td class="paramname"><em>atom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__ProgramInspection.html#ga176cf284ec38d9b3626d6584b3cb407e">clingo_external_type_t</a> </td>
<td class="paramname"><em>type</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add an external statement. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">atom</td><td>the external atom </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>the type of the external statement </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga8d15b08eac4eab5f7b1dca6d7d68aef2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8d15b08eac4eab5f7b1dca6d7d68aef2">◆ </a></span>clingo_backend_heuristic()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_heuristic </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> </td>
<td class="paramname"><em>atom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__ProgramInspection.html#gaa67a416799cd19c6b46ed02233ea6947">clingo_heuristic_type_t</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>bias</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned </td>
<td class="paramname"><em>priority</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const * </td>
<td class="paramname"><em>condition</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add an heuristic directive. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">atom</td><td>the target atom </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">type</td><td>the type of the heuristic modification </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">bias</td><td>the heuristic bias </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">priority</td><td>the heuristic priority </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">condition</td><td>the condition under which to apply the heuristic modification </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of atoms in the condition </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="gaa53a501cd64547a9fa84728b5bbeb9dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa53a501cd64547a9fa84728b5bbeb9dc">◆ </a></span>clingo_backend_minimize()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_minimize </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaee5a30c2cd2c2b664a62bd81ecd5509f">clingo_weight_t</a> </td>
<td class="paramname"><em>priority</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga33e745a3827608ff66701f061b3c6a83">clingo_weighted_literal_t</a> const * </td>
<td class="paramname"><em>literals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a minimize constraint (or weak constraint) to the program. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">priority</td><td>the priority of the constraint </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">literals</td><td>the weighted literals whose sum to minimize </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of weighted literals </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga08794c1459758bd5489fe61647c31b9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga08794c1459758bd5489fe61647c31b9b">◆ </a></span>clingo_backend_project()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_project </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> const * </td>
<td class="paramname"><em>atoms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a projection directive. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">atoms</td><td>the atoms to project on </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of atoms </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga89dd64e084d6432e48b097a049d0bf8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga89dd64e084d6432e48b097a049d0bf8f">◆ </a></span>clingo_backend_rule()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_rule </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>choice</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> const * </td>
<td class="paramname"><em>head</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>head_size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const * </td>
<td class="paramname"><em>body</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>body_size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a rule to the program. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">choice</td><td>determines if the head is a choice or a disjunction </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">head</td><td>the head atoms </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">head_size</td><td>the number of atoms in the head </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">body</td><td>the body literals </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">body_size</td><td>the number of literals in the body </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="backend_8c-example.html#a26">backend.c</a>.</dd>
</dl>
</div>
</div>
<a id="gaa01105a7f9ac7fe0011a477b420d1de8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa01105a7f9ac7fe0011a477b420d1de8">◆ </a></span>clingo_backend_theory_atom()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_theory_atom </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> </td>
<td class="paramname"><em>atom_id_or_zero</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> </td>
<td class="paramname"><em>term_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const * </td>
<td class="paramname"><em>elements</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a theory atom without a guard. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">atom_id_or_zero</td><td>a program atom or zero for theory directives </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">term_id</td><td>the term id of the term associated with the theory atom </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">elements</td><td>an array of element ids for the theory atoms's elements </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of elements </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga88a4590cd3382356ebff189a702f9853"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga88a4590cd3382356ebff189a702f9853">◆ </a></span>clingo_backend_theory_atom_with_guard()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_theory_atom_with_guard </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#ga6480ac77dd156ea3c4bda71f161166c5">clingo_atom_t</a> </td>
<td class="paramname"><em>atom_id_or_zero</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> </td>
<td class="paramname"><em>term_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const * </td>
<td class="paramname"><em>elements</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char const * </td>
<td class="paramname"><em>operator_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> </td>
<td class="paramname"><em>right_hand_side_id</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a theory atom with a guard. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">atom_id_or_zero</td><td>a program atom or zero for theory directives </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">term_id</td><td>the term id of the term associated with the theory atom </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">elements</td><td>an array of element ids for the theory atoms's elements </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of elements </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">operator_name</td><td>the string representation of a theory operator </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">right_hand_side_id</td><td>the term id of the right hand side term </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="gadc2199690eb5b2064d1ddbc4fe648b9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc2199690eb5b2064d1ddbc4fe648b9d">◆ </a></span>clingo_backend_theory_element()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_theory_element </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const * </td>
<td class="paramname"><em>tuple</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>tuple_size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const * </td>
<td class="paramname"><em>condition</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>condition_size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> * </td>
<td class="paramname"><em>element_id</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a theory atom element. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">tuple</td><td>the array of term ids represeting the tuple </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">tuple_size</td><td>the size of the tuple </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">condition</td><td>an array of program literals represeting the condition </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">condition_size</td><td>the size of the condition </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">element_id</td><td>the resulting element id </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga84375b88c833ddd848ecb020f546acd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga84375b88c833ddd848ecb020f546acd9">◆ </a></span>clingo_backend_theory_term_function()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_theory_term_function </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char const * </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> const * </td>
<td class="paramname"><em>arguments</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> * </td>
<td class="paramname"><em>term_id</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Add a theory term representing a function. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">backend</td><td>the target backend </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>the name of the function </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">arguments</td><td>an array of term ids for the theory terms in the arguments </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of arguments </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">term_id</td><td>the resulting term id </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful; might set one of the following error codes:<ul>
<li><a class="el" href="group__BasicTypes.html#ggaebdf91a4187db9abdd2c6ceb971cf13eaa14a0926eb3e653fcc13299b33d8d348" title="memory could not be allocated">clingo_error_bad_alloc</a> </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga6bb07f45d9b90e3132713a407b146afc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6bb07f45d9b90e3132713a407b146afc">◆ </a></span>clingo_backend_theory_term_number()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_backend_theory_term_number </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__ProgramBuilder.html#ga5e9458723e4631599ada46f8748ca577">clingo_backend_t</a> * </td>
<td class="paramname"><em>backend</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>number</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> * </td>
<td class="paramname"><em>term_id</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>