 *** Welcome to SAD Ver.1.4.4.2k64 built at 2026-10-19 14:46:59 +0900 ***
 *** Today: 22:14:33 Monday 11/16/2026 ***
 OFF LOG;ON ECHO;READ 77 ;           1
FFS;
 *** SADScript Initialization: /mnt/d/work/SAD-master/SAD-master/Packages/init.n ***
 *** Run time Environment:     /mnt/d/work/SAD-master/SAD-master/Packages/init.local.n ***
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   F     F     F     T     F     F     T     F     F     T     F     T
 (* 括弧・関数の中の ; は CompoundExpression の区切り。最後の式の値が返り、末尾が ; なら Null *)
 f[x_] := (a = x; a^2);
 g[x_] := (a = x; a^2;);
 Print["f[3] = ", f[3], "   g[3] = ", g[3], "   Head[g[3]] = ", Head[g[3]]];
f[3] = 9   g[3] = Null   Head[g[3]] = Symbol
 h = (1; 2; 3);
 Print["h = ", h];
h = 3
 Print["Module  ", Module[{t = 2}, t; t^2]];
Module  4
 Print["Module trailing ; ", Module[{t = 2}, t; t^2;]];
Module trailing ; Null
 Print["If      ", If[1 > 0, a = 1; a + 10, a = 2; a + 20]];
If      11
 Print["If trailing ; ", If[1 > 0, a = 1; a + 10;, 0]];
If trailing ; Null
 Print["Block   ", Block[{u = 1}, u += 1; u*5]];
Block   10
 Print["Do value ", Do[a = 1; a, {2}]];
Do value Null
 Print["CompoundExpression ", CompoundExpression[1, 2, 3]];
CompoundExpression 3
 Print["Print returns ", Head[Print["  (prints)"]]];
  (prints)
Print returns Symbol
 k = 0;
 Do[k++; k++, {3}];
 Print["k = ", k];
k = 6
 r = (Print["step1"]; Print["step2"]; 42);
step1
step2
 Print["r = ", r];
r = 42
 Print["Table with ; ", Table[a = i; a^2, {i, 3}]];
Table with ; {1,4,9}
 Exit;
Out[1]:= Exit
 FFS                  end:  CPU time =     0.000 sec
 Design orbit length =   1.0000000000000000     
 RFSW RADCOD RAD  FLUC  INTRA POL   COD  DAPER EMIOU K64   FOURI SMEAR
   T     F     F     T     F     F     T     F     F     T     F     T
 In[2]:=  ???-getbuf-end of input stream
