Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/seferim-agi-g16 / apps/agi_core/main.cpp |
| Date | Not specified in source |
| Repository | Janady13/seferim-agi-g16 |
| Revision | 25f281b08b2f786f5a235b5abebfc39bf44d1044 |
| Branch | main |
| Path or archive member | apps/agi_core/main.cpp |
| Original SHA-256 | cf830c0125334936e2d0e5d4c37e70f0bfa7ecdb515e6c2841bc8116adfbd157 |
| Git blob SHA | 07e04a6e0d5b48323ed16469b57583a701c8895d |
| Reading-copy SHA-256 | cf830c0125334936e2d0e5d4c37e70f0bfa7ecdb515e6c2841bc8116adfbd157 |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/seferim-agi-g16 / apps/agi_core/main.cpp | main | 25f281b08b2f786f5a235b5abebfc39bf44d1044 | Open original |
| Janady13/seferim-agi-g16 / apps/agi_core/main.cpp | copilot/update-code-libraries | 393af96a270295f79582b2b2a77bb49dd1a9a990 | Open original |
Recovered source transcript
Download complete source text ↓36 lines · 1.0 KB
#include "common/g16_core.hpp"
#include <iostream>
#include <string>
using namespace common;
int main(int argc, char** argv) {
MetaState s0{}; // zero-init
MetaState s_1{}; // previous
Inputs in{};
// Simple CLI flags
int steps = 1;
for (int i = 1; i < argc; ++i) {
std::string a = argv[i];
if (a == "--dx" && i + 1 < argc) in.dx_norm = std::stod(argv[++i]);
else if (a == "--err" && i + 1 < argc) in.ed_error = std::stod(argv[++i]);
else if (a == "--util" && i + 1 < argc) in.utility = std::stod(argv[++i]);
else if (a == "--stab" && i + 1 < argc) in.stability = std::stod(argv[++i]);
else if (a == "--steps" && i + 1 < argc) steps = std::stoi(argv[++i]);
else if (a == "--help") {
std::cout << "agi_core --dx <v> --err <v> --util <v> --stab <v> --steps <n>\n";
return 0;
}
}
for (int t = 0; t < steps; ++t) {
MetaState s1 = update_meta_state(s0, s_1, in);
std::cout << "t=" << t << " " << summarize(s1) << "\n";
s_1 = s0;
s0 = s1;
}
return 0;
}