-
Notifications
You must be signed in to change notification settings - Fork 2
/
ptb2.c
44 lines (32 loc) · 847 Bytes
/
ptb2.c
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
#include <stdio.h>
#include <limits.h>
#include "gen.h"
#include <malloc.h>
#include <assert.h>
char out[90000];
char inp[90000];
Cell aligns[10000];
int naligns=0;
LifeList ptb[10000];
LifeList nb1, nb2, exp, orig;
LifeList tmp;
extern Cell *convolution, *scratch1, *scratch2, *oldAlignments;
void makeWorkSpace(int n);
main(int argc, char *argv[]) {
int i, nconv, nol;
int gens, thisgen, nptb;
int iptb;
int depth=1;
int maxgen=50;
int mingen=0;
int maxvanish=0;
if (argc<3) return;
readCellsColor(&orig, argv[1], 1);
nptb=readPatList(ptb, argv[2]);
if (argc>3) sscanf(argv[3], "%d", &maxgen);
if (argc>4) sscanf(argv[4], "%d", &depth);
if (argc>5) sscanf(argv[5], "%d", &mingen);
if (argc>6) sscanf(argv[6], "%d", &maxvanish);
perturbEnum(&orig, ptb, nptb,
0, depth, mingen, maxgen, maxvanish);
}