From 0d2c53817a04557bbdb73fa1e92137761ac8f68c Mon Sep 17 00:00:00 2001 From: Ajay Brahmakshatriya Date: Thu, 4 Apr 2024 23:45:27 -0400 Subject: [PATCH] Added sample outputs --- samples/outputs.var_names/sample56 | 57 ++++++++++++++++++++++++++++++ samples/outputs/sample56 | 57 ++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 samples/outputs.var_names/sample56 create mode 100644 samples/outputs/sample56 diff --git a/samples/outputs.var_names/sample56 b/samples/outputs.var_names/sample56 new file mode 100644 index 0000000..4844794 --- /dev/null +++ b/samples/outputs.var_names/sample56 @@ -0,0 +1,57 @@ +FUNC_DECL + SCALAR_TYPE (VOID) + STMT_BLOCK + DECL_STMT + NAMED_TYPE (my_type) + VAR (a_0) + NO_INITIALIZATION + DECL_STMT + NAMED_TYPE (custom_struct0) + VAR (b_1) + NO_INITIALIZATION + EXPR_STMT + ASSIGN_EXPR + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (a_0) + VAR_EXPR + VAR (b_1) + EXPR_STMT + ASSIGN_EXPR + MEMBER_ACCESS_EXPR (mem0) + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (a_0) + MEMBER_ACCESS_EXPR (mem0) + VAR_EXPR + VAR (a_0) + EXPR_STMT + MINUS_EXPR + ASSIGN_EXPR + MEMBER_ACCESS_EXPR (mem1) + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (a_0) + PLUS_EXPR + MEMBER_ACCESS_EXPR (mem1) + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (a_0) + INT_CONST (1) + INT_CONST (1) +struct custom_struct0 { + int mem0; + float mem1; +}; +struct my_type { + custom_struct0 nested; + int mem0; +}; +void bar (void) { + my_type a_0; + custom_struct0 b_1; + a_0.nested = b_1; + (a_0.nested).mem0 = a_0.mem0; + ((a_0.nested).mem1 = (a_0.nested).mem1 + 1) - 1; +} + diff --git a/samples/outputs/sample56 b/samples/outputs/sample56 new file mode 100644 index 0000000..b10f3aa --- /dev/null +++ b/samples/outputs/sample56 @@ -0,0 +1,57 @@ +FUNC_DECL + SCALAR_TYPE (VOID) + STMT_BLOCK + DECL_STMT + NAMED_TYPE (my_type) + VAR (var0) + NO_INITIALIZATION + DECL_STMT + NAMED_TYPE (custom_struct0) + VAR (var1) + NO_INITIALIZATION + EXPR_STMT + ASSIGN_EXPR + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (var0) + VAR_EXPR + VAR (var1) + EXPR_STMT + ASSIGN_EXPR + MEMBER_ACCESS_EXPR (mem0) + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (var0) + MEMBER_ACCESS_EXPR (mem0) + VAR_EXPR + VAR (var0) + EXPR_STMT + MINUS_EXPR + ASSIGN_EXPR + MEMBER_ACCESS_EXPR (mem1) + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (var0) + PLUS_EXPR + MEMBER_ACCESS_EXPR (mem1) + MEMBER_ACCESS_EXPR (nested) + VAR_EXPR + VAR (var0) + INT_CONST (1) + INT_CONST (1) +struct custom_struct0 { + int mem0; + float mem1; +}; +struct my_type { + custom_struct0 nested; + int mem0; +}; +void bar (void) { + my_type var0; + custom_struct0 var1; + var0.nested = var1; + (var0.nested).mem0 = var0.mem0; + ((var0.nested).mem1 = (var0.nested).mem1 + 1) - 1; +} +