7.9 KiB
7.9 KiB
1 | test001 | Returns a value (6) |
---|---|---|
2 | test002 | For loop with variable x incrementing ++x to 6 |
3 | test003 | While loop with incrementing ++x values up to 6 |
4 | test004 | If/else statement including += and == operators |
5 | test005 | Nested for loop using ++x |
6 | test006 | Nested while loop using ++x |
7 | test007 | Switch statement based on matching ‘x’ and returning 6 |
8 | test008 | Struct statement based on returning a member 6 |
9 | test009 | Array example incrementing from 0 - 10, returning the 6th member of array |
10 | test010 | Nested switch statement, returning ‘x’ then ‘6’ |
11 | test011 | Addition using variables, x(6) = i(2) + t(4) |
12 | test012 | Subtraction using variables, x(6) = i(8) - t(2) |
13 | test013 | Multiplication using variables, x(6) = i(3) * t(2) |
14 | test014 | Division using variables, x(6) = i(30) / t(5) |
15 | test015 | Modulus using variables, x(6) = i(26) % t(20) |
16 | test016 | Unary plus (+a) operator, increase data size of char from 2 to 4 |
17 | test017 | Unary minus (-a) operator, convert 10 to -10 and check all three variables |
18 | test018 | Increment (++a) operator, ++5 returns 6 |
19 | test019 | Decrement (--a) operator, --7 returns 6 |
20 | test020 | Greater Than (>) Relational Logic Operator, if x>y, return x (6) |
21 | test021 | Greater Than or Equal (>=) Relational Logic Operator, if x>y, return x (6) |
22 | test022 | Less Than (<) Relational Logic Operator, if x<y, return x (6) |
23 | test023 | Less Than or Equal (<=) Logic Operator, if x<=y, return x (6) |
24 | test024 | Equal (==) Relational Logic Operator, if x==y, return x (6) |
25 | test025 | Not Equal (!=) Relational Logic Operator, if x!=y, return x (6) |
26 | test026 | And (&&) Relational Logic Operator, if x==y && x==z, return x (6) |
27 | test027 | OR (||) Relational Logic Operator, if x==y || x!=z, return x (6) |
28 | test028 | NOT (~a) Bitwise Operator, b=~(-7)a, return (6) |
29 | test029 | AND (a&b) Bitwise Operator, c(6)=a(6)&b(15), return (6) |
30 | test030 | OR (a|b) Bitwise Operator, c(6)=a(2)|b(4), return (6) |
31 | test031 | XOR (a^b) Bitwise Operator, c(6)=a(9)^b(15), return (6) |
32 | test032 | Binary Shift Left (a<<b) Bitwise Operator, b(6)=a(3)<<1, return (6) |
33 | test033 | Binary Shift Right (a>>b) Bitwise Operator, b(6)=a(13)>>1, return (6) |
34 | test034 | Compound Addition (a+=b) Assignment Operator, a(3)+=b(3), return a(6) |
35 | test035 | Compound Subtraction (a+=b) Assignment Operator, a(9)-=b(3), return a(6) |
36 | test036 | Compound Multiplication (a*=) Assignment Operator, a(2)*=b(3), return a(6) |
37 | test037 | Compound Division (a/=b) Assignment Operator, a(30)/=b(5), return a(6) |
38 | test038 | Compound Modulus (a%=b) Assignment Operator, a(20)%=b(14), return a(6) |
39 | test039 | AND (a&=b) Compound Assignment Bitwise Operator, a(6)&=b(15), return a(6) |
40 | test040 | OR (a|=b) Compound Assignment Bitwise Operator, a(2)|=b(4), return a(6) |
41 | test041 | XOR (a^=b) Compound Assignment Bitwise Operator, a(9)^=b(15), return a(6) |
42 | test042 | Binary Shift Left (a<<=b) Compound Assignment B. Operator, a(3)<<=1, return a(6) |
43 | test043 | Binary Shift Right (a>>=) Compound Assignment B. Operator, a(13)>>=1, return a(6) |
44 | test044 | Declaring ‘char’, char a(’A’), ia=a, ia-59, return ia(6) |
45 | test045 | Declaring ‘signed char’, signed char a(’A’), ia=a, ia-59, return ia(6) |
46 | test046 | Declaring ‘unsigned char’, unsigned char a(’A’), ia=a, ia-59, return ia(6) |
47 | test047 | Declaring ‘int’, int a(6), return a(6) |
48 | test048 | Declaring ‘short int’, short int a(6), ia=a, ia=(int)a, return ia(6) |
49 | test049 | Declaring ‘long int’, long int a(6), ia=a, ia=(int)a, return ia(6) |
50 | test050 | Declaring ‘signed int’, signed int a(6), ia=a, ia=(int)a, return ia(6) |
51 | test051 | Declaring ‘unsigned int’, unsigned int a(6), ia=a, ia=(int)a, return ia(6) |
52 | test052 | Declaring ‘float’, float a(6.0), ia=a, ia=(int)a, return ia(6) |
53 | test053 | Declaring ‘double’, double a(6.0), ia=a, ia=(int)a, return ia(6) |
54 | test054 | Declaring ‘long double’, long double a(6.0), ia=a, ia=(int)a, return ia(6) |
55 | test055 | Declaring ‘short’, short a(6), ia=a, ia=(int)a, return ia(6) |
56 | test056 | Declaring ‘signed short’, signed short a(6), ia=a, ia=(int)a, return ia(6) |
57 | test057 | Declaring ‘unsigned short’, unsigned short a(6), ia=a, ia=(int)a, return ia(6) |
58 | test058 | Declaring ‘signed short int’, signed short int a(6), ia=a, ia=(int)a, return ia(6) |
59 | test059 | Declaring ‘unsigned short int’, unsigned short int a(6), ia=a, ia=(int)a, return ia(6) |
60 | test060 | Declaring ‘long’, long a(6), ia=a, ia=(int)a, return ia(6) |
61 | test061 | Declaring ‘signed long’, signed long a(6), ia=a, ia=(int)a, return ia(6) |
62 | test062 | Declaring ‘unsigned long’, unsigned long a(6), ia=a, ia=(int)a, return ia(6) |
63 | test063 | Declaring ‘signed long int’, signed long int a(6), ia=a, ia=(int)a, return ia(6) |
64 | test064 | Declaring ‘unsigned long int’, unsigned long int a(6), ia=a, ia=(int)a, return ia(6) |
65 | test065 | Declaring ‘long long’, signed long a(6), ia=a, ia=(int)a, return ia(6) |
66 | test066 | Declaring ‘long long int’, long long int a(6), ia=a, ia=(int)a, return ia(6) |
67 | test067 | Declaring ‘signed long long’, signed long long a(6), ia=a, ia=(int)a, return ia(6) |
68 | test068 | Declaring ‘unsigned long long’, unsigned long long a(6), ia=a, ia=(int)a, return ia(6) |
69 | test069 | Declaring ‘signed long long int’, signed long long int a(6), ia=a, ia=(int)a, return ia(6) |
70 | test070 | Declaring ‘unsigned long long int’, unsigned long long int a(6), ia=a, ia=(int)a, return ia(6) |
71 | test071 | Executes an if statement, returns x(6) |
72 | test072 | Executes an else/if statement, else option returns 6 |
73 | test073 | Executes a do/while statement, while x==0, return 6 |
74 | test074 | Executes a break/continue statement, x++, if x<15 continue, if x==10 break, return 6 |
75 | test075 | Executes a Goto-Label statement, goto label (skips an infinite loop), return 6 |
76 | test076 | Declares and returns the value of an integer pointer, return 6 |
77 | test077 | Declares a char pointer and compares the value to return 6 |
78 | test078 | Assigned a NULL pointer and checks to make sure it returns 0, return 6 |
79 | test079 | Declares a double pointer and confirms its value located at address x, return 6 |
80 | test080 | Declares a float pointer and confirms its value located at address x, return 6 |
81 | test081 | Properly uses an address-of value (&) variable and returns the value-at address (*), return 6 |
82 | test082 | Tests a pointer to a structure (->) and returns 6 |
83 | test083 | Declares an array and uses a pointer to return 6 (cannot announce arrays: a[2]={1,6};) |
84 | test084 | Increments a pointer via int, Subtracts two memory addresses and adds 2 to return 6 |
85 | test085 | Decrements a pointer via int, Subtracts two memory addresses and adds 2 to return 6 |
86 | test086 | Increments a pointer via char, Subrtracts two memory addresses and adds 2 to return 6 |
87 | test087 | Decrements a pointer via char, Subtracts two memory addresses and adds 2 to return 6 |
88 | test088 | Tests a Multi-Dimensional Array Uses a pointer to access address [1][1] and returns 6 |
89 | test089 | Tests an executed data-packing structure, returns 6 |
90 | test090 | Tests an executed union and checks if the data size is correct, returns 6 |
91 | test091 | Tests an executed union and returns a member (6) |
92 | test092 | Tests to see if the CBE can pass a structure into a function, returns 6 |
93 | test093 | Tests if the CBE will execute a nested structure properly, returns 6 |
94 | test094 | Tests if the CBE will execute a structure using typedef properly, returns 6 |
95 | test095 | Tests if the CBE will execute an array of structures, returns 6 |
96 | test096 | Tests if the CBE will execute a self-referencing structure, returns 6 |
97 | test097 | Tests if the CBE can handle a simple addition function, returns 6 |
98 | test098 | Tests if the CBE can handle static variables, returns 6 |
99 | test099 | Tests if the CBE can handle register variables, returns 6 |
100 | test100 | Tests if the CBE can handle a recursive function, returns 6 |
101 | test101 | Tests if the CBE can handle a fibonacci numbers example, returns 6 |
102 | test102 | Tests if the CBE will execute a function pointer, returns 6 |
103 | test103 | Tests if the CBE will execute Macro Substitution, returns 6 |
104 | test104 | Tests if the CBE will execute a tail recursion example, returns 6 |
105 | test105 | Tests if the CBE will execute a head recursion example, returns 6 |