diff --git a/Orchid/Code/Comp1/Instance b/Orchid/Code/Comp1/Instance new file mode 100644 index 0000000..40d864a Binary files /dev/null and b/Orchid/Code/Comp1/Instance differ diff --git a/Orchid/Code/Comp1/Instance.c b/Orchid/Code/Comp1/Instance.c new file mode 100644 index 0000000..f8d6d0d --- /dev/null +++ b/Orchid/Code/Comp1/Instance.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +int main(int argc, char const *argv[]) +{ + FILE *A_fil = fopen("Instrc_r1.txt", "r"); + FILE *B_fil = fopen("Instrc_r2.txt", "r"); + FILE *Type_fil = fopen("Instrc_r3.txt", "r"); + FILE *O_fil = fopen("Instrc_s.txt", "w"); + + char A_char[5]; + char B_char[5]; + char Type_char[5]; + char O_char[5]; + + double A_Float; + double B_Float; + double O_Float; + + fgets(Type_char, 4, Type_fil); + + if (strcmp(Type_char, "IF=") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "T"); + } + else + { + strcpy(O_char, "F"); + } + } + if (strcmp(Type_char, "IF!") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "F"); + } + else + { + strcpy(O_char, "T"); + } + } + if (strcmp(Type_char, "A") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float + B_Float), 4, O_char); + } + if (strcmp(Type_char, "S") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float - B_Float), 4, O_char); + } + if (strcmp(Type_char, "M") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float * B_Float), 4, O_char); + } + if (strcmp(Type_char, "D") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float / B_Float), 4, O_char); + } + fprintf(O_fil, "%s",O_char); + + return 0; +} \ No newline at end of file diff --git a/Orchid/Code/Comp1/Instance.dSYM/Contents/Info.plist b/Orchid/Code/Comp1/Instance.dSYM/Contents/Info.plist new file mode 100644 index 0000000..1b60105 --- /dev/null +++ b/Orchid/Code/Comp1/Instance.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.Instance + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Orchid/Code/Comp1/Instance.dSYM/Contents/Resources/DWARF/Instance b/Orchid/Code/Comp1/Instance.dSYM/Contents/Resources/DWARF/Instance new file mode 100644 index 0000000..1390a5a Binary files /dev/null and b/Orchid/Code/Comp1/Instance.dSYM/Contents/Resources/DWARF/Instance differ diff --git a/Orchid/Code/Comp1/Instrc_r1.txt b/Orchid/Code/Comp1/Instrc_r1.txt new file mode 100644 index 0000000..74e0f12 --- /dev/null +++ b/Orchid/Code/Comp1/Instrc_r1.txt @@ -0,0 +1 @@ +! \ No newline at end of file diff --git a/Orchid/Code/Comp1/Instrc_r2.txt b/Orchid/Code/Comp1/Instrc_r2.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/Orchid/Code/Comp1/Instrc_r2.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Orchid/Code/Comp1/Instrc_r3.txt b/Orchid/Code/Comp1/Instrc_r3.txt new file mode 100644 index 0000000..beed0e6 --- /dev/null +++ b/Orchid/Code/Comp1/Instrc_r3.txt @@ -0,0 +1 @@ +IF= \ No newline at end of file diff --git a/Orchid/Code/Comp1/Instrc_s.txt b/Orchid/Code/Comp1/Instrc_s.txt new file mode 100644 index 0000000..c137216 --- /dev/null +++ b/Orchid/Code/Comp1/Instrc_s.txt @@ -0,0 +1 @@ +F \ No newline at end of file diff --git a/Orchid/Code/Comp1/start.sh b/Orchid/Code/Comp1/start.sh new file mode 100644 index 0000000..85e78d8 --- /dev/null +++ b/Orchid/Code/Comp1/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd Comp1 +gcc -Ofast -g Instance.c -o Instance + + +while true +do +./Instance +#python3 Instance.py +done \ No newline at end of file diff --git a/Orchid/Code/Comp2/Instance b/Orchid/Code/Comp2/Instance new file mode 100644 index 0000000..b3353ef Binary files /dev/null and b/Orchid/Code/Comp2/Instance differ diff --git a/Orchid/Code/Comp2/Instance.c b/Orchid/Code/Comp2/Instance.c new file mode 100644 index 0000000..f8d6d0d --- /dev/null +++ b/Orchid/Code/Comp2/Instance.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +int main(int argc, char const *argv[]) +{ + FILE *A_fil = fopen("Instrc_r1.txt", "r"); + FILE *B_fil = fopen("Instrc_r2.txt", "r"); + FILE *Type_fil = fopen("Instrc_r3.txt", "r"); + FILE *O_fil = fopen("Instrc_s.txt", "w"); + + char A_char[5]; + char B_char[5]; + char Type_char[5]; + char O_char[5]; + + double A_Float; + double B_Float; + double O_Float; + + fgets(Type_char, 4, Type_fil); + + if (strcmp(Type_char, "IF=") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "T"); + } + else + { + strcpy(O_char, "F"); + } + } + if (strcmp(Type_char, "IF!") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "F"); + } + else + { + strcpy(O_char, "T"); + } + } + if (strcmp(Type_char, "A") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float + B_Float), 4, O_char); + } + if (strcmp(Type_char, "S") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float - B_Float), 4, O_char); + } + if (strcmp(Type_char, "M") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float * B_Float), 4, O_char); + } + if (strcmp(Type_char, "D") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float / B_Float), 4, O_char); + } + fprintf(O_fil, "%s",O_char); + + return 0; +} \ No newline at end of file diff --git a/Orchid/Code/Comp2/Instance.dSYM/Contents/Info.plist b/Orchid/Code/Comp2/Instance.dSYM/Contents/Info.plist new file mode 100644 index 0000000..1b60105 --- /dev/null +++ b/Orchid/Code/Comp2/Instance.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.Instance + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Orchid/Code/Comp2/Instance.dSYM/Contents/Resources/DWARF/Instance b/Orchid/Code/Comp2/Instance.dSYM/Contents/Resources/DWARF/Instance new file mode 100644 index 0000000..39655ea Binary files /dev/null and b/Orchid/Code/Comp2/Instance.dSYM/Contents/Resources/DWARF/Instance differ diff --git a/Orchid/Code/Comp2/Instrc_r1.txt b/Orchid/Code/Comp2/Instrc_r1.txt new file mode 100644 index 0000000..f89d5ed --- /dev/null +++ b/Orchid/Code/Comp2/Instrc_r1.txt @@ -0,0 +1 @@ +wC \ No newline at end of file diff --git a/Orchid/Code/Comp2/Instrc_r2.txt b/Orchid/Code/Comp2/Instrc_r2.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/Orchid/Code/Comp2/Instrc_r2.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Orchid/Code/Comp2/Instrc_r3.txt b/Orchid/Code/Comp2/Instrc_r3.txt new file mode 100644 index 0000000..beed0e6 --- /dev/null +++ b/Orchid/Code/Comp2/Instrc_r3.txt @@ -0,0 +1 @@ +IF= \ No newline at end of file diff --git a/Orchid/Code/Comp2/Instrc_s.txt b/Orchid/Code/Comp2/Instrc_s.txt new file mode 100644 index 0000000..c137216 --- /dev/null +++ b/Orchid/Code/Comp2/Instrc_s.txt @@ -0,0 +1 @@ +F \ No newline at end of file diff --git a/Orchid/Code/Comp2/start.sh b/Orchid/Code/Comp2/start.sh new file mode 100644 index 0000000..14f3f53 --- /dev/null +++ b/Orchid/Code/Comp2/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd Comp2 +gcc -Ofast -g Instance.c -o Instance + + +while true +do +./Instance +#python3 Instance.py +done \ No newline at end of file diff --git a/Orchid/Code/Comp3/Instance b/Orchid/Code/Comp3/Instance new file mode 100644 index 0000000..70d01ad Binary files /dev/null and b/Orchid/Code/Comp3/Instance differ diff --git a/Orchid/Code/Comp3/Instance.c b/Orchid/Code/Comp3/Instance.c new file mode 100644 index 0000000..f8d6d0d --- /dev/null +++ b/Orchid/Code/Comp3/Instance.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +int main(int argc, char const *argv[]) +{ + FILE *A_fil = fopen("Instrc_r1.txt", "r"); + FILE *B_fil = fopen("Instrc_r2.txt", "r"); + FILE *Type_fil = fopen("Instrc_r3.txt", "r"); + FILE *O_fil = fopen("Instrc_s.txt", "w"); + + char A_char[5]; + char B_char[5]; + char Type_char[5]; + char O_char[5]; + + double A_Float; + double B_Float; + double O_Float; + + fgets(Type_char, 4, Type_fil); + + if (strcmp(Type_char, "IF=") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "T"); + } + else + { + strcpy(O_char, "F"); + } + } + if (strcmp(Type_char, "IF!") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "F"); + } + else + { + strcpy(O_char, "T"); + } + } + if (strcmp(Type_char, "A") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float + B_Float), 4, O_char); + } + if (strcmp(Type_char, "S") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float - B_Float), 4, O_char); + } + if (strcmp(Type_char, "M") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float * B_Float), 4, O_char); + } + if (strcmp(Type_char, "D") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float / B_Float), 4, O_char); + } + fprintf(O_fil, "%s",O_char); + + return 0; +} \ No newline at end of file diff --git a/Orchid/Code/Comp3/Instance.dSYM/Contents/Info.plist b/Orchid/Code/Comp3/Instance.dSYM/Contents/Info.plist new file mode 100644 index 0000000..1b60105 --- /dev/null +++ b/Orchid/Code/Comp3/Instance.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.Instance + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Orchid/Code/Comp3/Instance.dSYM/Contents/Resources/DWARF/Instance b/Orchid/Code/Comp3/Instance.dSYM/Contents/Resources/DWARF/Instance new file mode 100644 index 0000000..37760bf Binary files /dev/null and b/Orchid/Code/Comp3/Instance.dSYM/Contents/Resources/DWARF/Instance differ diff --git a/Orchid/Code/Comp3/Instrc_r1.txt b/Orchid/Code/Comp3/Instrc_r1.txt new file mode 100644 index 0000000..74b9b61 --- /dev/null +++ b/Orchid/Code/Comp3/Instrc_r1.txt @@ -0,0 +1 @@ +qwL \ No newline at end of file diff --git a/Orchid/Code/Comp3/Instrc_r2.txt b/Orchid/Code/Comp3/Instrc_r2.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/Orchid/Code/Comp3/Instrc_r2.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Orchid/Code/Comp3/Instrc_r3.txt b/Orchid/Code/Comp3/Instrc_r3.txt new file mode 100644 index 0000000..beed0e6 --- /dev/null +++ b/Orchid/Code/Comp3/Instrc_r3.txt @@ -0,0 +1 @@ +IF= \ No newline at end of file diff --git a/Orchid/Code/Comp3/Instrc_s.txt b/Orchid/Code/Comp3/Instrc_s.txt new file mode 100644 index 0000000..c137216 --- /dev/null +++ b/Orchid/Code/Comp3/Instrc_s.txt @@ -0,0 +1 @@ +F \ No newline at end of file diff --git a/Orchid/Code/Comp3/start.sh b/Orchid/Code/Comp3/start.sh new file mode 100644 index 0000000..d21976e --- /dev/null +++ b/Orchid/Code/Comp3/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd Comp3 +gcc -Ofast -g Instance.c -o Instance + + +while true +do +./Instance +#python3 Instance.py +done \ No newline at end of file diff --git a/Orchid/Code/Comp4/Instance b/Orchid/Code/Comp4/Instance new file mode 100644 index 0000000..f7b3709 Binary files /dev/null and b/Orchid/Code/Comp4/Instance differ diff --git a/Orchid/Code/Comp4/Instance.c b/Orchid/Code/Comp4/Instance.c new file mode 100644 index 0000000..f8d6d0d --- /dev/null +++ b/Orchid/Code/Comp4/Instance.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +int main(int argc, char const *argv[]) +{ + FILE *A_fil = fopen("Instrc_r1.txt", "r"); + FILE *B_fil = fopen("Instrc_r2.txt", "r"); + FILE *Type_fil = fopen("Instrc_r3.txt", "r"); + FILE *O_fil = fopen("Instrc_s.txt", "w"); + + char A_char[5]; + char B_char[5]; + char Type_char[5]; + char O_char[5]; + + double A_Float; + double B_Float; + double O_Float; + + fgets(Type_char, 4, Type_fil); + + if (strcmp(Type_char, "IF=") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "T"); + } + else + { + strcpy(O_char, "F"); + } + } + if (strcmp(Type_char, "IF!") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "F"); + } + else + { + strcpy(O_char, "T"); + } + } + if (strcmp(Type_char, "A") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float + B_Float), 4, O_char); + } + if (strcmp(Type_char, "S") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float - B_Float), 4, O_char); + } + if (strcmp(Type_char, "M") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float * B_Float), 4, O_char); + } + if (strcmp(Type_char, "D") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float / B_Float), 4, O_char); + } + fprintf(O_fil, "%s",O_char); + + return 0; +} \ No newline at end of file diff --git a/Orchid/Code/Comp4/Instance.dSYM/Contents/Info.plist b/Orchid/Code/Comp4/Instance.dSYM/Contents/Info.plist new file mode 100644 index 0000000..1b60105 --- /dev/null +++ b/Orchid/Code/Comp4/Instance.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.Instance + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Orchid/Code/Comp4/Instance.dSYM/Contents/Resources/DWARF/Instance b/Orchid/Code/Comp4/Instance.dSYM/Contents/Resources/DWARF/Instance new file mode 100644 index 0000000..988534e Binary files /dev/null and b/Orchid/Code/Comp4/Instance.dSYM/Contents/Resources/DWARF/Instance differ diff --git a/Orchid/Code/Comp4/Instrc_r1.txt b/Orchid/Code/Comp4/Instrc_r1.txt new file mode 100644 index 0000000..544584b --- /dev/null +++ b/Orchid/Code/Comp4/Instrc_r1.txt @@ -0,0 +1 @@ +qqw. \ No newline at end of file diff --git a/Orchid/Code/Comp4/Instrc_r2.txt b/Orchid/Code/Comp4/Instrc_r2.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/Orchid/Code/Comp4/Instrc_r2.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Orchid/Code/Comp4/Instrc_r3.txt b/Orchid/Code/Comp4/Instrc_r3.txt new file mode 100644 index 0000000..beed0e6 --- /dev/null +++ b/Orchid/Code/Comp4/Instrc_r3.txt @@ -0,0 +1 @@ +IF= \ No newline at end of file diff --git a/Orchid/Code/Comp4/Instrc_s.txt b/Orchid/Code/Comp4/Instrc_s.txt new file mode 100644 index 0000000..c137216 --- /dev/null +++ b/Orchid/Code/Comp4/Instrc_s.txt @@ -0,0 +1 @@ +F \ No newline at end of file diff --git a/Orchid/Code/Comp4/start.sh b/Orchid/Code/Comp4/start.sh new file mode 100644 index 0000000..ca79ead --- /dev/null +++ b/Orchid/Code/Comp4/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd Comp4 +gcc -Ofast -g Instance.c -o Instance + + +while true +do +./Instance +#python3 Instance.py +done \ No newline at end of file diff --git a/Orchid/Code/Comp5/Instance b/Orchid/Code/Comp5/Instance new file mode 100644 index 0000000..4b6c2d5 Binary files /dev/null and b/Orchid/Code/Comp5/Instance differ diff --git a/Orchid/Code/Comp5/Instance.c b/Orchid/Code/Comp5/Instance.c new file mode 100644 index 0000000..f8d6d0d --- /dev/null +++ b/Orchid/Code/Comp5/Instance.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +int main(int argc, char const *argv[]) +{ + FILE *A_fil = fopen("Instrc_r1.txt", "r"); + FILE *B_fil = fopen("Instrc_r2.txt", "r"); + FILE *Type_fil = fopen("Instrc_r3.txt", "r"); + FILE *O_fil = fopen("Instrc_s.txt", "w"); + + char A_char[5]; + char B_char[5]; + char Type_char[5]; + char O_char[5]; + + double A_Float; + double B_Float; + double O_Float; + + fgets(Type_char, 4, Type_fil); + + if (strcmp(Type_char, "IF=") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "T"); + } + else + { + strcpy(O_char, "F"); + } + } + if (strcmp(Type_char, "IF!") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "F"); + } + else + { + strcpy(O_char, "T"); + } + } + if (strcmp(Type_char, "A") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float + B_Float), 4, O_char); + } + if (strcmp(Type_char, "S") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float - B_Float), 4, O_char); + } + if (strcmp(Type_char, "M") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float * B_Float), 4, O_char); + } + if (strcmp(Type_char, "D") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float / B_Float), 4, O_char); + } + fprintf(O_fil, "%s",O_char); + + return 0; +} \ No newline at end of file diff --git a/Orchid/Code/Comp5/Instance.dSYM/Contents/Info.plist b/Orchid/Code/Comp5/Instance.dSYM/Contents/Info.plist new file mode 100644 index 0000000..1b60105 --- /dev/null +++ b/Orchid/Code/Comp5/Instance.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.Instance + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Orchid/Code/Comp5/Instance.dSYM/Contents/Resources/DWARF/Instance b/Orchid/Code/Comp5/Instance.dSYM/Contents/Resources/DWARF/Instance new file mode 100644 index 0000000..d8440b1 Binary files /dev/null and b/Orchid/Code/Comp5/Instance.dSYM/Contents/Resources/DWARF/Instance differ diff --git a/Orchid/Code/Comp5/Instrc_r1.txt b/Orchid/Code/Comp5/Instrc_r1.txt new file mode 100644 index 0000000..5b4ee05 --- /dev/null +++ b/Orchid/Code/Comp5/Instrc_r1.txt @@ -0,0 +1 @@ +qqqwQ \ No newline at end of file diff --git a/Orchid/Code/Comp5/Instrc_r2.txt b/Orchid/Code/Comp5/Instrc_r2.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/Orchid/Code/Comp5/Instrc_r2.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Orchid/Code/Comp5/Instrc_r3.txt b/Orchid/Code/Comp5/Instrc_r3.txt new file mode 100644 index 0000000..beed0e6 --- /dev/null +++ b/Orchid/Code/Comp5/Instrc_r3.txt @@ -0,0 +1 @@ +IF= \ No newline at end of file diff --git a/Orchid/Code/Comp5/Instrc_s.txt b/Orchid/Code/Comp5/Instrc_s.txt new file mode 100644 index 0000000..c137216 --- /dev/null +++ b/Orchid/Code/Comp5/Instrc_s.txt @@ -0,0 +1 @@ +F \ No newline at end of file diff --git a/Orchid/Code/Comp5/start.sh b/Orchid/Code/Comp5/start.sh new file mode 100644 index 0000000..c567002 --- /dev/null +++ b/Orchid/Code/Comp5/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd Comp5 +gcc -Ofast -g Instance.c -o Instance + + +while true +do +./Instance +#python3 Instance.py +done \ No newline at end of file diff --git a/Orchid/Code/Comp6/Instance b/Orchid/Code/Comp6/Instance new file mode 100644 index 0000000..ba6e831 Binary files /dev/null and b/Orchid/Code/Comp6/Instance differ diff --git a/Orchid/Code/Comp6/Instance.c b/Orchid/Code/Comp6/Instance.c new file mode 100644 index 0000000..f8d6d0d --- /dev/null +++ b/Orchid/Code/Comp6/Instance.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +int main(int argc, char const *argv[]) +{ + FILE *A_fil = fopen("Instrc_r1.txt", "r"); + FILE *B_fil = fopen("Instrc_r2.txt", "r"); + FILE *Type_fil = fopen("Instrc_r3.txt", "r"); + FILE *O_fil = fopen("Instrc_s.txt", "w"); + + char A_char[5]; + char B_char[5]; + char Type_char[5]; + char O_char[5]; + + double A_Float; + double B_Float; + double O_Float; + + fgets(Type_char, 4, Type_fil); + + if (strcmp(Type_char, "IF=") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "T"); + } + else + { + strcpy(O_char, "F"); + } + } + if (strcmp(Type_char, "IF!") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + if (strcmp(A_char, B_char) == 0) + { + strcpy(O_char, "F"); + } + else + { + strcpy(O_char, "T"); + } + } + if (strcmp(Type_char, "A") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float + B_Float), 4, O_char); + } + if (strcmp(Type_char, "S") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float - B_Float), 4, O_char); + } + if (strcmp(Type_char, "M") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float * B_Float), 4, O_char); + } + if (strcmp(Type_char, "D") == 0) + { + fgets(A_char, 4, A_fil); + fgets(B_char, 4, B_fil); + + A_Float = atof(A_char); + B_Float = atof(B_char); + + gcvt((A_Float / B_Float), 4, O_char); + } + fprintf(O_fil, "%s",O_char); + + return 0; +} \ No newline at end of file diff --git a/Orchid/Code/Comp6/Instance.dSYM/Contents/Info.plist b/Orchid/Code/Comp6/Instance.dSYM/Contents/Info.plist new file mode 100644 index 0000000..1b60105 --- /dev/null +++ b/Orchid/Code/Comp6/Instance.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.Instance + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/Orchid/Code/Comp6/Instance.dSYM/Contents/Resources/DWARF/Instance b/Orchid/Code/Comp6/Instance.dSYM/Contents/Resources/DWARF/Instance new file mode 100644 index 0000000..58da723 Binary files /dev/null and b/Orchid/Code/Comp6/Instance.dSYM/Contents/Resources/DWARF/Instance differ diff --git a/Orchid/Code/Comp6/Instrc_r1.txt b/Orchid/Code/Comp6/Instrc_r1.txt new file mode 100644 index 0000000..aac9f36 --- /dev/null +++ b/Orchid/Code/Comp6/Instrc_r1.txt @@ -0,0 +1 @@ +qqqqqE \ No newline at end of file diff --git a/Orchid/Code/Comp6/Instrc_r2.txt b/Orchid/Code/Comp6/Instrc_r2.txt new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/Orchid/Code/Comp6/Instrc_r2.txt @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/Orchid/Code/Comp6/Instrc_r3.txt b/Orchid/Code/Comp6/Instrc_r3.txt new file mode 100644 index 0000000..beed0e6 --- /dev/null +++ b/Orchid/Code/Comp6/Instrc_r3.txt @@ -0,0 +1 @@ +IF= \ No newline at end of file diff --git a/Orchid/Code/Comp6/Instrc_s.txt b/Orchid/Code/Comp6/Instrc_s.txt new file mode 100644 index 0000000..c137216 --- /dev/null +++ b/Orchid/Code/Comp6/Instrc_s.txt @@ -0,0 +1 @@ +F \ No newline at end of file diff --git a/Orchid/Code/Comp6/start.sh b/Orchid/Code/Comp6/start.sh new file mode 100644 index 0000000..156a0c8 --- /dev/null +++ b/Orchid/Code/Comp6/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd Comp6 +gcc -Ofast -g Instance.c -o Instance + + +while true +do +./Instance +#python3 Instance.py +done \ No newline at end of file diff --git a/Orchid/Code/Instrc_s.txt b/Orchid/Code/Instrc_s.txt new file mode 100644 index 0000000..e69de29 diff --git a/Orchid/Code/Public/Compiler.py b/Orchid/Code/Public/Compiler.py new file mode 100644 index 0000000..e67efd5 --- /dev/null +++ b/Orchid/Code/Public/Compiler.py @@ -0,0 +1,36 @@ +import re + +pattern1 = r'^(.*)=$' +pattern2 = r'^(.*):$' + +if_statement = open("Code/Input_Code/test.py", "r").read().splitlines() + + +#if_statement = "if A != B: A+1 else: pass" +out = open("Code/Input_Code/out.py", "w") +out.write("") +out = open("Code/Input_Code/out.py", "a") +for i2 in range(len(if_statement)): + if1=if_statement[i2].split(None) + + if if_statement[i2].find("if") == -1: + out.write(if_statement[i2]+"\n") + if if_statement[i2].find(":") != -1: + out.write("\t") + for i in range(len(if1)): + if if1[i] == "if": + A = if1[i+1] + B = if1[i+2] + C = if1[i+3] + match = re.match(pattern1, B) + if match: + B = match.group(1) + + match = re.match(pattern2, C) + if match: + C = match.group(1) + + + out.write(f"C1.Process({A}, {C}, 'if{B}')\n") + i2=i2+1 + out.write(f"if C1.Read():\n") \ No newline at end of file diff --git a/Orchid/Code/Public/Dig1.py b/Orchid/Code/Public/Dig1.py new file mode 100644 index 0000000..2ad8402 --- /dev/null +++ b/Orchid/Code/Public/Dig1.py @@ -0,0 +1,115 @@ +from Lib1 import Instance +from multiprocessing import Process + +def D1(alp, password, C1): + for i2 in range(len(alp)): + + test=""+alp[i2] + C1.Process(test,password,"IF=") + if C1.Read() == True: + print("password found! "+test) + quit() +def D2(alp, password, C2): + for i in range(len(alp)): + test1 = alp[i] + for i2 in range(len(alp)): + + test=test1+alp[i2] + + C2.Process(test,password,"IF=") + if C2.Read() == True: + print("password found! "+test) + quit() +def D3(alp, password, C3): + for i3 in range(len(alp)): + test2=alp[i3] + for i in range(len(alp)): + test1 = alp[i] + for i2 in range(len(alp)): + + test=test2+test1+alp[i2] + + C3.Process(test,password,"IF=") + if C3.Read() == True: + print("password found! "+test) + quit() +def D4(alp, password, C4): + for i4 in range(len(alp)): + test3=alp[i4] + for i3 in range(len(alp)): + test2=alp[i3] + for i in range(len(alp)): + test1 = alp[i] + for i2 in range(len(alp)): + + test=test3+test2+test1+alp[i2] + + C4.Process(test,password,"IF=") + if C4.Read() == True: + print("password found! "+test) + quit() +def D5(alp, password, C5): + for i5 in range(len(alp)): + test4=alp[i5] + for i4 in range(len(alp)): + test3=alp[i4] + for i3 in range(len(alp)): + test2=alp[i3] + for i in range(len(alp)): + test1 = alp[i] + for i2 in range(len(alp)): + + test=test4+test3+test2+test1+alp[i2] + + C5.Process(test,password,"IF=") + if C5.Read() == True: + print("password found! "+test) + quit() +def D6(alp, password, C6): + for i6 in range(len(alp)): + test5=alp[i6] + for i5 in range(len(alp)): + test4=alp[i5] + for i4 in range(len(alp)): + test3=alp[i4] + for i3 in range(len(alp)): + test2=alp[i3] + for i in range(len(alp)): + test1 = alp[i] + for i2 in range(len(alp)): + + test=test5+test4+test3+test2+test1+alp[i2] + + C6.Process(test,password,"IF=") + if C6.Read() == True: + print("password found! "+test) + quit() + +if __name__ == "__main__": + + C1 = Instance("1") + C2 = Instance("2") + C3 = Instance("3") + C4 = Instance("4") + C5 = Instance("5") + C6 = Instance("6") + + alp = "qwertyuiop1234567890asdfghjklzxcvbnm,./;'[]-=\\`~@#$\%^&*()_+QWEERTYUIOP\{\}|ASDFGHJKL:\"ZXCVBNM<>?!" + password = input("Enter a password less than 6 digits: \t") + + if len(password) > 6: + print("Your password is greater than 6 digits!") + + Proc1 = Process(target=D1, args=(alp, password, C1)) + Proc2 = Process(target=D2, args=(alp, password, C2)) + Proc3 = Process(target=D3, args=(alp, password, C3)) + Proc4 = Process(target=D4, args=(alp, password, C4)) + Proc5 = Process(target=D5, args=(alp, password, C5)) + Proc6 = Process(target=D6, args=(alp, password, C6)) + + Proc1.start() + Proc2.start() + Proc3.start() + Proc4.start() + Proc5.start() + Proc6.start() \ No newline at end of file diff --git a/Orchid/Code/Public/Lib1.py b/Orchid/Code/Public/Lib1.py new file mode 100644 index 0000000..3cbef3c --- /dev/null +++ b/Orchid/Code/Public/Lib1.py @@ -0,0 +1,41 @@ +import time + +class Instance(): + def __init__(self, UUID): + self.UUID = UUID + def Process(self, A, B, Type): + A_fil = open("Comp"+str(self.UUID)+"/Instrc_r1.txt", "w") + B_fil = open("Comp"+str(self.UUID)+"/Instrc_r2.txt", "w") + Type_fil = open("Comp"+str(self.UUID)+"/Instrc_r3.txt", "w") + if Type == "IF=": + A_fil.write(str(A)) + B_fil.write(str(B)) + elif Type == "IF!": + A_fil.write(str(A)) + B_fil.write(str(B)) + else: + A_fil.write(str(float(A))) + B_fil.write(str(float(B))) + A_fil.close() + B_fil.close() + Type_fil.write(str(Type)) + Type_fil.close() + def Read(self): + time.sleep(0.1) + A_fil = open("Comp"+str(self.UUID)+"/Instrc_s.txt", "r") + while(True): + A_str = A_fil.read() + if A_str == "": + pass + else: + if A_str == "F": + A_fil.close() + + return False + if A_str == "T": + A_fil.close() + + return True + A_fil.close() + + return A_str \ No newline at end of file diff --git a/Orchid/Code/Public/Sample.py b/Orchid/Code/Public/Sample.py new file mode 100644 index 0000000..b7b2025 --- /dev/null +++ b/Orchid/Code/Public/Sample.py @@ -0,0 +1,12 @@ +from Lib1 import Instance + +C1 = Instance("1") +C2 = Instance("2") + +for i in range(100): + C1.Process(i, 3, "M") + C2.Process(str(C1.Read()), 9, "A") + + print(i) + print(C1.Read()) + print(C2.Read()) diff --git a/Orchid/Code/Public/__pycache__/Lib1.cpython-310.pyc b/Orchid/Code/Public/__pycache__/Lib1.cpython-310.pyc new file mode 100644 index 0000000..7dd6a80 Binary files /dev/null and b/Orchid/Code/Public/__pycache__/Lib1.cpython-310.pyc differ diff --git a/Orchid/Code/Public/__pycache__/Lib1.cpython-311.pyc b/Orchid/Code/Public/__pycache__/Lib1.cpython-311.pyc new file mode 100644 index 0000000..1d9380e Binary files /dev/null and b/Orchid/Code/Public/__pycache__/Lib1.cpython-311.pyc differ diff --git a/Orchid/Code/Public/__pycache__/Paths.cpython-310.pyc b/Orchid/Code/Public/__pycache__/Paths.cpython-310.pyc new file mode 100644 index 0000000..2c113fa Binary files /dev/null and b/Orchid/Code/Public/__pycache__/Paths.cpython-310.pyc differ diff --git a/Orchid/Code/Public/__pycache__/Paths.cpython-311.pyc b/Orchid/Code/Public/__pycache__/Paths.cpython-311.pyc new file mode 100644 index 0000000..ac67ef6 Binary files /dev/null and b/Orchid/Code/Public/__pycache__/Paths.cpython-311.pyc differ diff --git a/Orchid/Code/Public/lib.c b/Orchid/Code/Public/lib.c new file mode 100644 index 0000000..bba6ae4 --- /dev/null +++ b/Orchid/Code/Public/lib.c @@ -0,0 +1,72 @@ +#include +#include +#include +#include + +#define BUF_SIZE 1024 + +typedef struct Instance { + char UUID[BUF_SIZE]; +} Instance; + +void Instance_Init(Instance* instance, char* UUID) { + strcpy(instance->UUID, UUID); +} + +void Instance_Process(Instance* instance, int A, int B, char* Type) { + char instrc_n_path[BUF_SIZE], instrc_r_path[BUF_SIZE], instrc_s_path[BUF_SIZE]; + snprintf(instrc_n_path, BUF_SIZE, "Comp%s/Instrc_n.txt", instance->UUID); + snprintf(instrc_r_path, BUF_SIZE, "Comp%s/Instrc_r.txt", instance->UUID); + snprintf(instrc_s_path, BUF_SIZE, "Comp%s/Instrc_s.txt", instance->UUID); + + FILE* instrc_n_file = fopen(instrc_n_path, "w"); + fprintf(instrc_n_file, "n"); + fclose(instrc_n_file); + + FILE* instrc_r_file = fopen(instrc_r_path, "w"); + FILE* instrc_s_file = fopen(instrc_s_path, "w"); + fprintf(instrc_s_file, "P"); + fclose(instrc_s_file); + + instrc_s_file = fopen(instrc_s_path, "r"); + fprintf(instrc_r_file, "%d %d %s", A, B, Type); + fclose(instrc_r_file); + + char buf[BUF_SIZE]; + do { + fseek(instrc_s_file, 0, SEEK_SET); + fread(buf, sizeof(char), BUF_SIZE, instrc_s_file); + usleep(10000); + } while (buf[0] == 'P'); + + instrc_n_file = fopen(instrc_n_path, "w"); + fclose(instrc_n_file); +} + +char* Instance_Read(Instance* instance) { + usleep(100000); + char instrc_s_path[BUF_SIZE]; + snprintf(instrc_s_path, BUF_SIZE, "Comp%s/Instrc_s.txt", instance->UUID); + FILE* instrc_s_file = fopen(instrc_s_path, "r"); + char* result = NULL; + while (1) { + char buf[BUF_SIZE]; + fgets(buf, BUF_SIZE, instrc_s_file); + if (buf[0] == '\0') { + continue; + } else { + if (buf[0] == 'F') { + fclose(instrc_s_file); + return "False"; + } else if (buf[0] == 'T') { + fclose(instrc_s_file); + return "True"; + } else { + result = strdup(buf); + break; + } + } + } + fclose(instrc_s_file); + return result; +} diff --git a/Orchid/Code/__pycache__/Lib1.cpython-311.pyc b/Orchid/Code/__pycache__/Lib1.cpython-311.pyc new file mode 100644 index 0000000..dd75cc9 Binary files /dev/null and b/Orchid/Code/__pycache__/Lib1.cpython-311.pyc differ diff --git a/Orchid/Code/__pycache__/Paths.cpython-311.pyc b/Orchid/Code/__pycache__/Paths.cpython-311.pyc new file mode 100644 index 0000000..c37c459 Binary files /dev/null and b/Orchid/Code/__pycache__/Paths.cpython-311.pyc differ diff --git a/Orchid/compile.py b/Orchid/compile.py new file mode 100644 index 0000000..929f8ba --- /dev/null +++ b/Orchid/compile.py @@ -0,0 +1,39 @@ +import py_compile +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig1.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig1_0.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig1_1.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig1_1.pyc", optimize=2) + +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_0.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_1.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_1.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_2.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_2.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_3.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig2_3.pyc", optimize=2) + +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_0.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_1.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_1.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_2.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_2.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_3.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_3.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_4.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_5.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_5.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_6.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_6.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_7.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig3_7.pyc", optimize=2) + +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_1.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_2.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_3.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_4.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_5.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_6.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_7.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_8.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_9.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_10.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_11.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_12.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_13.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_14.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4_15.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig4.pyc", optimize=2) + +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig5.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig5.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig6.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Code/Dig6.pyc", optimize=2) +py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Interperet/Test.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/Computer1/Interperet/Test.pyc", optimize=2) +#py_compile.compile('C:/Users/Administrator/Desktop/Code/Orchestrator/REF/Lib1.py',"C:/Users/Administrator/Desktop/Code/Orchestrator/REF/Lib1.pyc", optimize=2) \ No newline at end of file diff --git a/Orchid/int.sh b/Orchid/int.sh new file mode 100644 index 0000000..73a7fc3 --- /dev/null +++ b/Orchid/int.sh @@ -0,0 +1,21 @@ +cd Code +chmod +x Comp1/start.sh +chmod +x Comp2/start.sh +chmod +x Comp3/start.sh +chmod +x Comp4/start.sh +chmod +x Comp5/start.sh + +chmod +x Comp1/Instance +chmod +x Comp2/Instance +chmod +x Comp3/Instance +chmod +x Comp4/Instance +chmod +x Comp5/Instance +chmod +x Comp6/Instance + + +./Comp1/start.sh & +./Comp2/start.sh & +./Comp3/start.sh & +./Comp4/start.sh & +./Comp5/start.sh & +./Comp6/start.sh & \ No newline at end of file diff --git a/Orchid/start.sh b/Orchid/start.sh new file mode 100644 index 0000000..9b0adf0 --- /dev/null +++ b/Orchid/start.sh @@ -0,0 +1,2 @@ +cd Code +python3 Public/Dig1.py \ No newline at end of file