ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: APPS/CC/STRUCT.CC

Source reference: APPS/CC/STRUCT.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path APPS/CC/STRUCT.CC
Lines 18
Bytes 179
SHA-256 c18c1f378bffbc868d47e8e04eb936946a9a17e7c37ce6932e3e47d791cbda3c
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
6 main

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

struct Point {
  int x;
  int y;
};

int main() {
  Point p;
  int i;
  int s;
  p.x = 3;
  p.y = 4;
  s = 0;
  for (i = 0; i < 3; i = i + 1) {
    s = s + p.x;
  }
  return s;
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-c18c1f378bffbc86 Reviewed source: da3df29cb397 Class: generated-source-reference