Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct node;
- typedef struct node {
- int data;
- int counter;
- struct node *next;
- } Node;
- void phase_6(char *input_string);
- void phase_6(char *input_string) {
- Node node1;
- Node node2;
- Node node3;
- Node node4;
- Node node5;
- Node node6;
- node1.data = 0x322;
- node1.counter = 1;
- node1.next = &node2;
- node2.data = 0xD2;
- node2.counter = 2;
- node2.next = &node3;
- node3.data = 0x302;
- node3.counter = 3;
- node3.next = &node4;
- node4.data = 0x7D;
- node4.counter = 4;
- node4.next = &node5;
- node4.data = 0x191;
- node4.counter = 5;
- node4.next = &node6;
- node4.data = 0x171;
- node4.counter = 6;
- node4.next = NULL;
- Node *pNVar1;
- Node **ppNVar2;
- Node *pNVar3;
- Node *node_address;
- int inc2;
- long offset;
- int inc1;
- int *address_of_mynum;
- Node *local_78[6];
- int my_numbers[6] = {6, 5, 4, 3, 2, 1};
- address_of_mynum = my_numbers;
- inc1 = 0;
- while (1) {
- /* each number has to be between 1 and 6 inclusive */
- if (5 < *address_of_mynum - 1U) {
- printf("First explosion point\n");
- }
- inc1 = inc1 + 1;
- inc2 = inc1;
- if (inc1 == 6) break;
- do {
- /* each number must be distinct */
- if (*address_of_mynum == my_numbers[inc2]) {
- printf("Second explosion point\n");
- }
- inc2 = inc2 + 1;
- } while (inc2 < 6);
- address_of_mynum = address_of_mynum + 1;
- }
- offset = 0;
- do {
- if (*(int *) ((long) my_numbers + offset) < 2) {
- node_address = &node1;
- } else {
- inc1 = 1;
- node_address = &node1;
- do {
- node_address = node_address->next;
- inc1 = inc1 + 1;
- } while (inc1 != *(int *) ((long) my_numbers + offset));
- }
- *(Node **) ((long) local_78 + offset * 2) = node_address;
- offset = offset + 4;
- /* offset != 6 */
- } while (offset != 0x18);
- ppNVar2 = local_78 + 1;
- pNVar3 = local_78[0];
- do {
- pNVar1 = *ppNVar2;
- pNVar3->next = pNVar1;
- ppNVar2 = ppNVar2 + 1;
- pNVar3 = pNVar1;
- } while (ppNVar2 != (Node **) my_numbers);
- pNVar1->next = (Node *) 0x0;
- inc1 = 5;
- do {
- if (local_78[0]->data < local_78[0]->next->data) {
- printf("Third explosion point\n");
- }
- local_78[0] = local_78[0]->next;
- inc1 = inc1 + -1;
- } while (inc1 != 0);
- return;
- }
- int main() {
- char *input;
- phase_6(input);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement