-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgroup__Model.html
848 lines (798 loc) · 52.1 KB
/
group__Model.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
<!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: Model Inspection</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> </div>
<div class="headertitle">
<div class="title">Model Inspection<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>Inspection of models and a high-level interface to add constraints during solving. </p>
<p>For an example, see <a class="el" href="model_8c-example.html">model.c</a>. </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:gab0b16771d9e76c9508ff60aa55b50904"><td class="memItemLeft" align="right" valign="top"><a id="gab0b16771d9e76c9508ff60aa55b50904"></a>
typedef struct clingo_solve_control </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a></td></tr>
<tr class="memdesc:gab0b16771d9e76c9508ff60aa55b50904"><td class="mdescLeft"> </td><td class="mdescRight">Object to add clauses during search. <br /></td></tr>
<tr class="separator:gab0b16771d9e76c9508ff60aa55b50904"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaaf9a93819f023f3cb8aa80598c46556b"><td class="memItemLeft" align="right" valign="top"><a id="gaaf9a93819f023f3cb8aa80598c46556b"></a>
typedef struct clingo_model </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a></td></tr>
<tr class="memdesc:gaaf9a93819f023f3cb8aa80598c46556b"><td class="mdescLeft"> </td><td class="mdescRight">Object representing a model. <br /></td></tr>
<tr class="separator:gaaf9a93819f023f3cb8aa80598c46556b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga13f511e3162055cd337c7f5e2ada31a1"><td class="memItemLeft" align="right" valign="top"><a id="ga13f511e3162055cd337c7f5e2ada31a1"></a>
typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga13f511e3162055cd337c7f5e2ada31a1">clingo_model_type_t</a></td></tr>
<tr class="memdesc:ga13f511e3162055cd337c7f5e2ada31a1"><td class="mdescLeft"> </td><td class="mdescRight">Corresponding type to <a class="el" href="group__Model.html#ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a" title="Enumeration for the different model types.">clingo_model_type_e</a>. <br /></td></tr>
<tr class="separator:ga13f511e3162055cd337c7f5e2ada31a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gafe9df0b81b3b423f1c68dec3f64ad564"><td class="memItemLeft" align="right" valign="top"><a id="gafe9df0b81b3b423f1c68dec3f64ad564"></a>
typedef unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gafe9df0b81b3b423f1c68dec3f64ad564">clingo_show_type_bitset_t</a></td></tr>
<tr class="memdesc:gafe9df0b81b3b423f1c68dec3f64ad564"><td class="mdescLeft"> </td><td class="mdescRight">Corresponding type to <a class="el" href="group__Model.html#ga72e8ba23a84af09dfd93739ebaa6ecf8" title="Enumeration of bit flags to select symbols in models.">clingo_show_type_e</a>. <br /></td></tr>
<tr class="separator:gafe9df0b81b3b423f1c68dec3f64ad564"><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:ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a">clingo_model_type_e</a> { <a class="el" href="group__Model.html#gga2a8b4c9ddcd63dcfd57a61d1aa9bd77aa26c979a76b39d052f9e4475b5479bbdf">clingo_model_type_stable_model</a> = 0,
<a class="el" href="group__Model.html#gga2a8b4c9ddcd63dcfd57a61d1aa9bd77aa6a84892300ae13401572c5b5a9bd69db">clingo_model_type_brave_consequences</a> = 1,
<a class="el" href="group__Model.html#gga2a8b4c9ddcd63dcfd57a61d1aa9bd77aa4ae425fae120bbeb34c5f983833b66d7">clingo_model_type_cautious_consequences</a> = 2
}</td></tr>
<tr class="memdesc:ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a"><td class="mdescLeft"> </td><td class="mdescRight">Enumeration for the different model types. <a href="group__Model.html#ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a">More...</a><br /></td></tr>
<tr class="separator:ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga72e8ba23a84af09dfd93739ebaa6ecf8"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga72e8ba23a84af09dfd93739ebaa6ecf8">clingo_show_type_e</a> { <br />
  <a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8a82a698ef41cd919cb370d22fc0b44826">clingo_show_type_shown</a> = 2,
<a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8ae4881b426be40132ce254553a1f7c78e">clingo_show_type_atoms</a> = 4,
<a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8a25cc3101d9085b55be080510077c11cb">clingo_show_type_terms</a> = 8,
<a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8a16c45c043dc9a4220d77476c6fb372cb">clingo_show_type_theory</a> = 16,
<br />
  <a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8ac551bc7db5006075983eb6d458afb5e7">clingo_show_type_all</a> = 31,
<a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8a764756fce5bfb41ba2d3bf23c4c85e09">clingo_show_type_complement</a> = 32
<br />
}</td></tr>
<tr class="memdesc:ga72e8ba23a84af09dfd93739ebaa6ecf8"><td class="mdescLeft"> </td><td class="mdescRight">Enumeration of bit flags to select symbols in models. <a href="group__Model.html#ga72e8ba23a84af09dfd93739ebaa6ecf8">More...</a><br /></td></tr>
<tr class="separator:ga72e8ba23a84af09dfd93739ebaa6ecf8"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Functions for Inspecting Models</h2></td></tr>
<tr class="memitem:gac8518ada9fb583de14c833c8cb897075"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gac8518ada9fb583de14c833c8cb897075">clingo_model_type</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__Model.html#ga13f511e3162055cd337c7f5e2ada31a1">clingo_model_type_t</a> *type)</td></tr>
<tr class="memdesc:gac8518ada9fb583de14c833c8cb897075"><td class="mdescLeft"> </td><td class="mdescRight">Get the type of the model. <a href="group__Model.html#gac8518ada9fb583de14c833c8cb897075">More...</a><br /></td></tr>
<tr class="separator:gac8518ada9fb583de14c833c8cb897075"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gad3b875d4e6f4f99dee0a4abd38ed9f53"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gad3b875d4e6f4f99dee0a4abd38ed9f53">clingo_model_number</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, uint64_t *number)</td></tr>
<tr class="memdesc:gad3b875d4e6f4f99dee0a4abd38ed9f53"><td class="mdescLeft"> </td><td class="mdescRight">Get the running number of the model. <a href="group__Model.html#gad3b875d4e6f4f99dee0a4abd38ed9f53">More...</a><br /></td></tr>
<tr class="separator:gad3b875d4e6f4f99dee0a4abd38ed9f53"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga5c6c30cef0e3a29a192577a1a739ca69"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga5c6c30cef0e3a29a192577a1a739ca69">clingo_model_symbols_size</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__Model.html#gafe9df0b81b3b423f1c68dec3f64ad564">clingo_show_type_bitset_t</a> show, size_t *size)</td></tr>
<tr class="memdesc:ga5c6c30cef0e3a29a192577a1a739ca69"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of symbols of the selected types in the model. <a href="group__Model.html#ga5c6c30cef0e3a29a192577a1a739ca69">More...</a><br /></td></tr>
<tr class="separator:ga5c6c30cef0e3a29a192577a1a739ca69"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga05d849166d689a3d4ae8d40fba070d91"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga05d849166d689a3d4ae8d40fba070d91">clingo_model_symbols</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__Model.html#gafe9df0b81b3b423f1c68dec3f64ad564">clingo_show_type_bitset_t</a> show, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> *symbols, size_t size)</td></tr>
<tr class="memdesc:ga05d849166d689a3d4ae8d40fba070d91"><td class="mdescLeft"> </td><td class="mdescRight">Get the symbols of the selected types in the model. <a href="group__Model.html#ga05d849166d689a3d4ae8d40fba070d91">More...</a><br /></td></tr>
<tr class="separator:ga05d849166d689a3d4ae8d40fba070d91"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga3b0e04c1b45a2151778f589d111aa376"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga3b0e04c1b45a2151778f589d111aa376">clingo_model_contains</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> atom, bool *contained)</td></tr>
<tr class="memdesc:ga3b0e04c1b45a2151778f589d111aa376"><td class="mdescLeft"> </td><td class="mdescRight">Constant time lookup to test whether an atom is in a model. <a href="group__Model.html#ga3b0e04c1b45a2151778f589d111aa376">More...</a><br /></td></tr>
<tr class="separator:ga3b0e04c1b45a2151778f589d111aa376"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0cfb2dd3627487289586b9641f510631"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga0cfb2dd3627487289586b9641f510631">clingo_model_is_true</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> literal, bool *result)</td></tr>
<tr class="memdesc:ga0cfb2dd3627487289586b9641f510631"><td class="mdescLeft"> </td><td class="mdescRight">Check if a program literal is true in a model. <a href="group__Model.html#ga0cfb2dd3627487289586b9641f510631">More...</a><br /></td></tr>
<tr class="separator:ga0cfb2dd3627487289586b9641f510631"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga8991efca630d11e38a8bc2ead86d6129"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga8991efca630d11e38a8bc2ead86d6129">clingo_model_cost_size</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, size_t *size)</td></tr>
<tr class="memdesc:ga8991efca630d11e38a8bc2ead86d6129"><td class="mdescLeft"> </td><td class="mdescRight">Get the number of cost values of a model. <a href="group__Model.html#ga8991efca630d11e38a8bc2ead86d6129">More...</a><br /></td></tr>
<tr class="separator:ga8991efca630d11e38a8bc2ead86d6129"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacee15ff23fa5ae68b4bbac655c7fe8b6"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gacee15ff23fa5ae68b4bbac655c7fe8b6">clingo_model_cost</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, int64_t *costs, size_t size)</td></tr>
<tr class="memdesc:gacee15ff23fa5ae68b4bbac655c7fe8b6"><td class="mdescLeft"> </td><td class="mdescRight">Get the cost vector of a model. <a href="group__Model.html#gacee15ff23fa5ae68b4bbac655c7fe8b6">More...</a><br /></td></tr>
<tr class="separator:gacee15ff23fa5ae68b4bbac655c7fe8b6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga9840eaa86225e25324dd89ae1d97b2ee"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga9840eaa86225e25324dd89ae1d97b2ee">clingo_model_optimality_proven</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, bool *proven)</td></tr>
<tr class="memdesc:ga9840eaa86225e25324dd89ae1d97b2ee"><td class="mdescLeft"> </td><td class="mdescRight">Whether the optimality of a model has been proven. <a href="group__Model.html#ga9840eaa86225e25324dd89ae1d97b2ee">More...</a><br /></td></tr>
<tr class="separator:ga9840eaa86225e25324dd89ae1d97b2ee"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga47561e2e454918ca1a60fc83b7e72e0a"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga47561e2e454918ca1a60fc83b7e72e0a">clingo_model_thread_id</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__BasicTypes.html#gac7aaf88deb591e91b94ff38aa1e3472e">clingo_id_t</a> *id)</td></tr>
<tr class="memdesc:ga47561e2e454918ca1a60fc83b7e72e0a"><td class="mdescLeft"> </td><td class="mdescRight">Get the id of the solver thread that found the model. <a href="group__Model.html#ga47561e2e454918ca1a60fc83b7e72e0a">More...</a><br /></td></tr>
<tr class="separator:ga47561e2e454918ca1a60fc83b7e72e0a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gacbcbc15ab76ea4a810b266391477800d"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#gacbcbc15ab76ea4a810b266391477800d">clingo_model_extend</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> *model, <a class="el" href="group__Symbols.html#ga6c75c60fa57c3b97505265ff08f6f951">clingo_symbol_t</a> const *symbols, size_t size)</td></tr>
<tr class="memdesc:gacbcbc15ab76ea4a810b266391477800d"><td class="mdescLeft"> </td><td class="mdescRight">Add symbols to the model. <a href="group__Model.html#gacbcbc15ab76ea4a810b266391477800d">More...</a><br /></td></tr>
<tr class="separator:gacbcbc15ab76ea4a810b266391477800d"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Functions for Adding Clauses</h2></td></tr>
<tr class="memitem:ga12ccee6f0a8545d7282a329a80f08735"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga12ccee6f0a8545d7282a329a80f08735">clingo_model_context</a> (<a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const *model, <a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a> **control)</td></tr>
<tr class="memdesc:ga12ccee6f0a8545d7282a329a80f08735"><td class="mdescLeft"> </td><td class="mdescRight">Get the associated solve control object of a model. <a href="group__Model.html#ga12ccee6f0a8545d7282a329a80f08735">More...</a><br /></td></tr>
<tr class="separator:ga12ccee6f0a8545d7282a329a80f08735"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga4549d179079cad4215bbfbaa9d6b372f"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga4549d179079cad4215bbfbaa9d6b372f">clingo_solve_control_symbolic_atoms</a> (<a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a> const *control, <a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> const **atoms)</td></tr>
<tr class="memdesc:ga4549d179079cad4215bbfbaa9d6b372f"><td class="mdescLeft"> </td><td class="mdescRight">Get an object to inspect the symbolic atoms. <a href="group__Model.html#ga4549d179079cad4215bbfbaa9d6b372f">More...</a><br /></td></tr>
<tr class="separator:ga4549d179079cad4215bbfbaa9d6b372f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga05c89e3be94aed7f10452ff204de86e6"><td class="memItemLeft" align="right" valign="top">CLINGO_VISIBILITY_DEFAULT bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Model.html#ga05c89e3be94aed7f10452ff204de86e6">clingo_solve_control_add_clause</a> (<a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a> *control, <a class="el" href="group__BasicTypes.html#gaa95dd19334e536397bbad174c8fa4ff8">clingo_literal_t</a> const *clause, size_t size)</td></tr>
<tr class="memdesc:ga05c89e3be94aed7f10452ff204de86e6"><td class="mdescLeft"> </td><td class="mdescRight">Add a clause that applies to the current solving step during model enumeration. <a href="group__Model.html#ga05c89e3be94aed7f10452ff204de86e6">More...</a><br /></td></tr>
<tr class="separator:ga05c89e3be94aed7f10452ff204de86e6"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a">◆ </a></span>clingo_model_type_e</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__Model.html#ga2a8b4c9ddcd63dcfd57a61d1aa9bd77a">clingo_model_type_e</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Enumeration for the different model types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga2a8b4c9ddcd63dcfd57a61d1aa9bd77aa26c979a76b39d052f9e4475b5479bbdf"></a>clingo_model_type_stable_model </td><td class="fielddoc"><p>The model represents a stable model. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2a8b4c9ddcd63dcfd57a61d1aa9bd77aa6a84892300ae13401572c5b5a9bd69db"></a>clingo_model_type_brave_consequences </td><td class="fielddoc"><p>The model represents a set of brave consequences. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga2a8b4c9ddcd63dcfd57a61d1aa9bd77aa4ae425fae120bbeb34c5f983833b66d7"></a>clingo_model_type_cautious_consequences </td><td class="fielddoc"><p>The model represents a set of cautious consequences. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga72e8ba23a84af09dfd93739ebaa6ecf8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga72e8ba23a84af09dfd93739ebaa6ecf8">◆ </a></span>clingo_show_type_e</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__Model.html#ga72e8ba23a84af09dfd93739ebaa6ecf8">clingo_show_type_e</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Enumeration of bit flags to select symbols in models. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga72e8ba23a84af09dfd93739ebaa6ecf8a82a698ef41cd919cb370d22fc0b44826"></a>clingo_show_type_shown </td><td class="fielddoc"><p>Select shown atoms and terms. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga72e8ba23a84af09dfd93739ebaa6ecf8ae4881b426be40132ce254553a1f7c78e"></a>clingo_show_type_atoms </td><td class="fielddoc"><p>Select all atoms. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga72e8ba23a84af09dfd93739ebaa6ecf8a25cc3101d9085b55be080510077c11cb"></a>clingo_show_type_terms </td><td class="fielddoc"><p>Select all terms. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga72e8ba23a84af09dfd93739ebaa6ecf8a16c45c043dc9a4220d77476c6fb372cb"></a>clingo_show_type_theory </td><td class="fielddoc"><p>Select symbols added by theory. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga72e8ba23a84af09dfd93739ebaa6ecf8ac551bc7db5006075983eb6d458afb5e7"></a>clingo_show_type_all </td><td class="fielddoc"><p>Select everything. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga72e8ba23a84af09dfd93739ebaa6ecf8a764756fce5bfb41ba2d3bf23c4c85e09"></a>clingo_show_type_complement </td><td class="fielddoc"><p>Select false instead of true atoms (<a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8ae4881b426be40132ce254553a1f7c78e" title="Select all atoms.">clingo_show_type_atoms</a>) or terms (<a class="el" href="group__Model.html#gga72e8ba23a84af09dfd93739ebaa6ecf8a25cc3101d9085b55be080510077c11cb" title="Select all terms.">clingo_show_type_terms</a>). </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3b0e04c1b45a2151778f589d111aa376"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3b0e04c1b45a2151778f589d111aa376">◆ </a></span>clingo_model_contains()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_contains </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</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>atom</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>contained</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Constant time lookup to test whether an atom is in a model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">atom</td><td>the atom to lookup </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">contained</td><td>whether the atom is contained </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a id="ga12ccee6f0a8545d7282a329a80f08735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga12ccee6f0a8545d7282a329a80f08735">◆ </a></span>clingo_model_context()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_context </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a> ** </td>
<td class="paramname"><em>control</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the associated solve control object of a model. </p>
<p>This object allows for adding clauses during model enumeration. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">control</td><td>the resulting solve control object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a id="gacee15ff23fa5ae68b4bbac655c7fe8b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacee15ff23fa5ae68b4bbac655c7fe8b6">◆ </a></span>clingo_model_cost()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_cost </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t * </td>
<td class="paramname"><em>costs</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>Get the cost vector of a model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">costs</td><td>the resulting costs </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of costs </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> if the size is too small</li>
</ul>
</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__Model.html#ga8991efca630d11e38a8bc2ead86d6129" title="Get the number of cost values of a model.">clingo_model_cost_size()</a> </dd>
<dd>
<a class="el" href="group__Model.html#ga9840eaa86225e25324dd89ae1d97b2ee" title="Whether the optimality of a model has been proven.">clingo_model_optimality_proven()</a> </dd></dl>
</div>
</div>
<a id="ga8991efca630d11e38a8bc2ead86d6129"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8991efca630d11e38a8bc2ead86d6129">◆ </a></span>clingo_model_cost_size()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_cost_size </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</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>Get the number of cost values of a model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">size</td><td>the number of costs </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a id="gacbcbc15ab76ea4a810b266391477800d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacbcbc15ab76ea4a810b266391477800d">◆ </a></span>clingo_model_extend()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_extend </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> * </td>
<td class="paramname"><em>model</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> const * </td>
<td class="paramname"><em>symbols</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 symbols to the model. </p>
<p>These symbols will appear in clingo's output, which means that this function is only meaningful if there is an underlying clingo application. Only models passed to the <a class="el" href="group__SolveHandle.html#ga721ae13385f81fca6b6c6b8f5b0fa416" title="Callback function called during search to notify when the search is finished or a model is ready.">clingo_solve_event_callback_t</a> are extendable.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">symbols</td><td>the symbols to add </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of symbols to add </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a id="ga0cfb2dd3627487289586b9641f510631"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0cfb2dd3627487289586b9641f510631">◆ </a></span>clingo_model_is_true()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_is_true </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</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> </td>
<td class="paramname"><em>literal</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>result</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if a program literal is true in a model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">literal</td><td>the literal to lookup </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">result</td><td>whether the literal is true </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a id="gad3b875d4e6f4f99dee0a4abd38ed9f53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad3b875d4e6f4f99dee0a4abd38ed9f53">◆ </a></span>clingo_model_number()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_number </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t * </td>
<td class="paramname"><em>number</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the running number of the model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">number</td><td>the number of the model </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="model_8c-example.html#a10">model.c</a>.</dd>
</dl>
</div>
</div>
<a id="ga9840eaa86225e25324dd89ae1d97b2ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9840eaa86225e25324dd89ae1d97b2ee">◆ </a></span>clingo_model_optimality_proven()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_optimality_proven </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool * </td>
<td class="paramname"><em>proven</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Whether the optimality of a model has been proven. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">proven</td><td>whether the optimality has been proven </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__Model.html#gacee15ff23fa5ae68b4bbac655c7fe8b6" title="Get the cost vector of a model.">clingo_model_cost()</a> </dd></dl>
</div>
</div>
<a id="ga05d849166d689a3d4ae8d40fba070d91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga05d849166d689a3d4ae8d40fba070d91">◆ </a></span>clingo_model_symbols()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_symbols </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Model.html#gafe9df0b81b3b423f1c68dec3f64ad564">clingo_show_type_bitset_t</a> </td>
<td class="paramname"><em>show</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>symbols</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>Get the symbols of the selected types in the model. </p>
<dl class="section note"><dt>Note</dt><dd>CSP assignments are represented using functions with name "$" where the first argument is the name of the CSP variable and the second one its value.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">show</td><td>which symbols to select </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">symbols</td><td>the resulting symbols </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the number of selected symbols </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> if the size is too small</li>
</ul>
</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__Model.html#ga5c6c30cef0e3a29a192577a1a739ca69" title="Get the number of symbols of the selected types in the model.">clingo_model_symbols_size()</a> </dd></dl>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="ast_8c-example.html#a4">ast.c</a>, <a class="el" href="backend_8c-example.html#a4">backend.c</a>, <a class="el" href="configuration_8c-example.html#a4">configuration.c</a>, <a class="el" href="control_8c-example.html#a4">control.c</a>, <a class="el" href="model_8c-example.html#a5">model.c</a>, <a class="el" href="propagator_8c-example.html#a22">propagator.c</a>, <a class="el" href="solve-async_8c-example.html#a4">solve-async.c</a>, <a class="el" href="statistics_8c-example.html#a4">statistics.c</a>, and <a class="el" href="theory-atoms_8c-example.html#a4">theory-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a id="ga5c6c30cef0e3a29a192577a1a739ca69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5c6c30cef0e3a29a192577a1a739ca69">◆ </a></span>clingo_model_symbols_size()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_symbols_size </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Model.html#gafe9df0b81b3b423f1c68dec3f64ad564">clingo_show_type_bitset_t</a> </td>
<td class="paramname"><em>show</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>Get the number of symbols of the selected types in the model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">show</td><td>which symbols to select </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">size</td><td>the number symbols </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="ast_8c-example.html#a0">ast.c</a>, <a class="el" href="backend_8c-example.html#a0">backend.c</a>, <a class="el" href="configuration_8c-example.html#a0">configuration.c</a>, <a class="el" href="control_8c-example.html#a0">control.c</a>, <a class="el" href="model_8c-example.html#a4">model.c</a>, <a class="el" href="propagator_8c-example.html#a20">propagator.c</a>, <a class="el" href="solve-async_8c-example.html#a0">solve-async.c</a>, <a class="el" href="statistics_8c-example.html#a0">statistics.c</a>, and <a class="el" href="theory-atoms_8c-example.html#a0">theory-atoms.c</a>.</dd>
</dl>
</div>
</div>
<a id="ga47561e2e454918ca1a60fc83b7e72e0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47561e2e454918ca1a60fc83b7e72e0a">◆ </a></span>clingo_model_thread_id()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_thread_id </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</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>id</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the id of the solver thread that found the model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">id</td><td>the resulting thread id </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
<a id="gac8518ada9fb583de14c833c8cb897075"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac8518ada9fb583de14c833c8cb897075">◆ </a></span>clingo_model_type()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_model_type </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gaaf9a93819f023f3cb8aa80598c46556b">clingo_model_t</a> const * </td>
<td class="paramname"><em>model</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__Model.html#ga13f511e3162055cd337c7f5e2ada31a1">clingo_model_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>Get the type of the model. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">model</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">type</td><td>the type of the model </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="model_8c-example.html#a6">model.c</a>.</dd>
</dl>
</div>
</div>
<a id="ga05c89e3be94aed7f10452ff204de86e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga05c89e3be94aed7f10452ff204de86e6">◆ </a></span>clingo_solve_control_add_clause()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_solve_control_add_clause </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a> * </td>
<td class="paramname"><em>control</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>clause</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 clause that applies to the current solving step during model enumeration. </p>
<dl class="section note"><dt>Note</dt><dd>The <a class="el" href="group__Propagator.html">Theory Propagation</a> module provides a more sophisticated interface to add clauses - even on partial assignments.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">control</td><td>the target </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">clause</td><td>array of literals representing the clause </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the size of the literal array </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> if adding the clause fails </li>
</ul>
</dd></dl>
</div>
</div>
<a id="ga4549d179079cad4215bbfbaa9d6b372f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4549d179079cad4215bbfbaa9d6b372f">◆ </a></span>clingo_solve_control_symbolic_atoms()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">CLINGO_VISIBILITY_DEFAULT bool clingo_solve_control_symbolic_atoms </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__Model.html#gab0b16771d9e76c9508ff60aa55b50904">clingo_solve_control_t</a> const * </td>
<td class="paramname"><em>control</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__SymbolicAtoms.html#ga48f4026c13a49553efce213e76ab32aa">clingo_symbolic_atoms_t</a> const ** </td>
<td class="paramname"><em>atoms</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get an object to inspect the symbolic atoms. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">control</td><td>the target </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">atoms</td><td>the resulting object </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>whether the call was successful </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 16 2022 19:52:36 for Clingo C API by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>