@@ -38,12 +38,12 @@ Vtree* sdd_vtree_read(const char* filename) {
3838//prints a vtree node
3939void print_vtree_node (FILE * file , const Vtree * vnode ) {
4040 if (LEAF (vnode )) {
41- fprintf (file ,"L %" PRIsS " %" PRIlitS "" ,vnode -> position ,vnode -> var );
41+ fprintf (file ,"L %" PRIlitS " %" PRIlitS "" ,vnode -> position ,vnode -> var );
4242 }
4343 else { // internal node
4444 print_vtree_node (file ,vnode -> left );
4545 print_vtree_node (file ,vnode -> right );
46- fprintf (file ,"I %" PRIsS " %" PRIsS " %" PRIsS "" ,vnode -> position ,vnode -> left -> position ,vnode -> right -> position );
46+ fprintf (file ,"I %" PRIlitS " %" PRIlitS " %" PRIlitS "" ,vnode -> position ,vnode -> left -> position ,vnode -> right -> position );
4747 }
4848 fprintf (file ,"\n" );
4949}
@@ -66,7 +66,7 @@ void print_vtree_header(FILE* file) {
6666void print_vtree (FILE * file , const Vtree * vtree ) {
6767 SddLiteral count = 2 * (vtree -> var_count ) - 1 ;
6868 print_vtree_header (file );
69- fprintf (file ,"vtree %" PRIsS "\n" ,count );
69+ fprintf (file ,"vtree %" PRIlitS "\n" ,count );
7070 print_vtree_node (file ,vtree );
7171}
7272
@@ -91,13 +91,13 @@ void print_vtree_nodes_as_dot(FILE* file, const Vtree* vtree) {
9191 if (LEAF (vtree )) {
9292 SddLiteral var = vtree -> var ;
9393 char * var_string = literal_to_label (var );
94- fprintf (file ,"\nn%" PRIsS " [label=\"%s\",fontname=\"Times-Italic\","
94+ fprintf (file ,"\nn%" PRIlitS " [label=\"%s\",fontname=\"Times-Italic\","
9595 "fontsize=14,shape=\"%s\",fixedsize=true,width=.25,height=.25"
9696 "]; " ,position ,var_string ,shape );
9797 free (var_string );
9898 }
9999 else {
100- fprintf (file ,"\nn%" PRIsS " [label=\"%" PRIsS "\",fontname=\"Times\","
100+ fprintf (file ,"\nn%" PRIlitS " [label=\"%" PRIsS "\",fontname=\"Times\","
101101 "shape=\"%s\",fontsize=12,fixedsize=true,width=.2,height=.18]; " ,
102102 position ,position ,shape );
103103 print_vtree_nodes_as_dot (file ,vtree -> left );
@@ -110,14 +110,14 @@ void print_vtree_edges_as_dot(FILE* file, const Vtree* vtree, const Vtree* paren
110110 if (LEAF (vtree )) {
111111 if (parent != NULL ) {
112112 SddLiteral parent_position = vtree -> parent -> position ;
113- fprintf (file ,"\nn%" PRIsS "->n%" PRIsS " [headclip=true,arrowhead=none,headlabel=\"%" PRIsS "\","
113+ fprintf (file ,"\nn%" PRIlitS "->n%" PRIlitS " [headclip=true,arrowhead=none,headlabel=\"%" PRIlitS "\","
114114 "labelfontname=\"Times\",labelfontsize=10];" ,parent_position ,position ,position );
115115 }
116116 }
117117 else { //internal node
118118 if (parent != NULL ) {
119119 SddLiteral parent_position = vtree -> parent -> position ;
120- fprintf (file ,"\nn%" PRIsS "->n%" PRIsS " [arrowhead=none];" ,parent_position ,position );
120+ fprintf (file ,"\nn%" PRIlitS "->n%" PRIlitS " [arrowhead=none];" ,parent_position ,position );
121121 }
122122 print_vtree_edges_as_dot (file ,vtree -> left ,vtree );
123123 print_vtree_edges_as_dot (file ,vtree -> right ,vtree ); // right first?
0 commit comments