-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
150 lines (109 loc) · 3.28 KB
/
main.cpp
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
// MAIN.CPP - MAIN FILE CARRYING THE MAIN FUNCTION FOR YOUR AI MODEL
// MAIN FILE FOR HEADER.H
// including all headers
#include "main.h"
// namespaces
using namespace std;
// main function
int main(int argc, char *argv[]) {
int q;
std::string arguments;
if (argc > 1) {
for (int i=1; i<argc; i++) {
arguments.append(argv[i]);
arguments.append(",");
}
arguments.pop_back();
std::cout << std::endl << "ARG: " << arguments << std::endl << std::endl;
}
std::cout << "~:: how many queries to run? : ";
cin >> q; // number of queries for steering
//initialize_runtime_check(); // checks for file integrity
steering(q); // steers the AI (class) code
//steering(1);
return 0;
}
// old main function
// int main(int argc, char *argv[]) {
// int loopvar=0; // use loopvar in recounting xl[1024]
// char * xl[1024];
// if (logging_is_enabled==true) {
// cout << std::endl << "-:: enabled logging." << std::endl;
// }
// // arguments
// for (int i=0, loopvar=0; i<argc && i<1024; i++, loopvar++) {
// xl[i] = *(argv+i); // use loopvar in recounting xl[1024]
// std::cout << std::endl << "_ARGV(debug): " << argv[i] << " -- " << xl[i] << std::endl << std::endl;
// }
// // splash AI model
// splash();
// // pass arguments here
// // class instances
// AI ai(argc);
// // rollouts
// ai.rollout(9); // rollout comodos
// ai.rollout(1);
// // health
// chk();
// // auto patch
// ai.auto_patch();
// // checking AI functions
// //ai.check_functions();
// //ai modules
// ai.mod();
// // hash function checks file hashes
// ai.hashtype("my string"); // checking integrity
// // logical kill chain (uncomment next line)
// //ai.kill(9);
// // stepping engine
// ai.stepping();
// bool crc32=true;
// // check bool conditional
// if (crc32 == true) {
// cout << endl;
// // starting AI
// ai.sample();
// // test run (NEXT LINE IS BETA TESTING)
// // ai.test_run(runtime_testing); // 1001 = All modules (module: 1-5)
// } else {
// exit(1);
// }
// // curl attempt site "curled_url" [std::string]
// int x = ai.curl("https://model-ai.com");
// // stage down and decouple logic (graceful shutdown)
// ai.decouple();
// return 0;
// }
// //cout << "Working Directory: ";
// //system("pwd");
// //cout << endl;
// // start artificial life
// //HAL hal; // will automatically start living
// // ltctap
// // cout << endl << endl;
// // cout << "-:: tap the ltctap." << endl;
// // for (int i=0; i<10; i++) {
// // entropyr(); // cognitive pattern
// // entropyw(); // tl "more lorem ipsum"
// // cout << "\t-:: -:: psht -:: <tap>" << endl;
// // fcltaptaptap(); // hussle
// // cout << "::- insert the tam tam reading -::" << endl;
// // lt1tlt1();
// // t1tl();
// // tl();
// // t1();
// // cout << "-:: swapping sequence." << endl << endl;
// // }
// // void lt1tlt1() {std::cout << "holy";}
// // void t1tl() {std::cout << "taplc";}
// // void tl() { std::cout << "ltct";}
// // int t1() { std::cout << "tapsh";}
// // // trousers
// // void lt1tlt1(int t) {std::cout << "tap";}
// // void tlt1(int t) {std::cout << "tap";}
// // int t1(int t) {std::cout << "tap";}
// // closing program
// // grace routine in decouple() - kill off any AI functions and unloading modules
// //return 0;
// //}
// // eof