pla.h

来自「Implement the step 2 of two-level logic 」· C头文件 代码 · 共 36 行

H
36
字号
#include <stdio.h>#include <string.h>#include <stdlib.h>#ifndef BPI#define BPI 32#endif#define DASH 3#define ONE  1#define ZERO 2/* define structure type */typedef unsigned int set, *pset;typedef struct cublist {   pset cube;   struct cublist *next;} cublist;typedef struct Pla {   int inputs;          /* number of inputs in this pla */   int wsize;           /* size of each set in 'ints' */   int cubes;           /* number of cubes */   pset *cubarr;        /* cube array */   int *lit;            /* literals of each cube */   int onno;            /* number of on-set terms */   cublist *onset;      /* on-set numbers */} Pla, *pPla;/*define functions */void findcost(pPla func, char *mpath, int *mcost, int *mlit);pPla readpla(FILE *fp);void print_cube(int inputs, pset cube);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?