Skip to content

Instantly share code, notes, and snippets.

@UplinkCoder
Created September 25, 2021 10:36
Show Gist options
  • Select an option

  • Save UplinkCoder/6918d472bd33e1a2859258d5feb849a3 to your computer and use it in GitHub Desktop.

Select an option

Save UplinkCoder/6918d472bd33e1a2859258d5feb849a3 to your computer and use it in GitHub Desktop.
void f(int[] a, int[] b)
{
a[0..16] = b[0..16];
}
fbody: BlockStatement = {
internalPointer: unhandled,
serial: 31523,
astTypeName: "CompoundStatement",
location: Location = {
filename: "",
line: 0,
column: 0,
},
statements: [
ExpressionStatement = {
internalPointer: unhandled,
serial: 602,
astTypeName: "ExpStatement",
location: Location = {
filename: "txx.d",
line: 5,
column: 5,
},
exp: BinaryExpression = {
internalPointer: unhandled,
serial: 601,
astTypeName: "AssignExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 14,
},
type: TypeRef to 'int[]',
op: "=",
left: SliceExpression = {
internalPointer: unhandled,
serial: 31498,
astTypeName: "SliceExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 6,
},
type: TypeRef to 'int[]',
exp: VariableExpression = {
internalPointer: unhandled,
serial: 31497,
astTypeName: "VarExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 5,
},
type: TypeRef to 'int[]',
var: DeclarationRef to 'a',
},
lowerIndex: IntegerLiteral = {
internalPointer: unhandled,
serial: 31503,
astTypeName: "IntegerExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 7,
},
type: TypeBasic = {
internalPointer: unhandled,
serial: 141,
astTypeName: "TypeBasic",
kind: "ulong",
alignSize: 8,
size: 8,
identifier: "ulong",
_unqualified: null,
},
value: 0,
},
upperIndex: IntegerLiteral = {
internalPointer: unhandled,
serial: 31504,
astTypeName: "IntegerExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 10,
},
type: TypeRef to 'ulong',
value: 16,
},
},
right: SliceExpression = {
internalPointer: unhandled,
serial: 31507,
astTypeName: "SliceExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 17,
},
type: TypeSlice = {
internalPointer: unhandled,
serial: 585,
astTypeName: "TypeDArray",
kind: "darray",
alignSize: 8,
size: 16,
identifier: "const(int[])",
_unqualified: TypeSlice = {
internalPointer: unhandled,
serial: 585,
astTypeName: "TypeDArray",
kind: "darray",
alignSize: 8,
size: 16,
identifier: "const(int)[]",
_unqualified: null,
nextOf: TypeBasic = {
internalPointer: unhandled,
serial: 138,
astTypeName: "TypeBasic",
kind: "int",
alignSize: 4,
size: 4,
identifier: "const(int)",
_unqualified: TypeRef to 'int',
},
},
nextOf: TypeRef to 'const(int)',
},
exp: VariableExpression = {
internalPointer: unhandled,
serial: 31506,
astTypeName: "VarExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 16,
},
type: TypeRef to 'int[]',
var: DeclarationRef to 'b',
},
lowerIndex: IntegerLiteral = {
internalPointer: unhandled,
serial: 31511,
astTypeName: "IntegerExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 18,
},
type: TypeRef to 'ulong',
value: 0,
},
upperIndex: IntegerLiteral = {
internalPointer: unhandled,
serial: 31512,
astTypeName: "IntegerExp",
location: Location = {
filename: "txx.d",
line: 5,
column: 21,
},
type: TypeRef to 'ulong',
value: 16,
},
},
},
},
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment