From 697ded4141eed92ffd95231c1e40ae9bdd3da59d Mon Sep 17 00:00:00 2001 From: theshank Date: Tue, 2 Dec 2025 21:55:10 -0500 Subject: [PATCH 1/3] Update path for DataflowPass shared library --- part3_pointer_aware_data_flow_analysis/DivZero/test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part3_pointer_aware_data_flow_analysis/DivZero/test/Makefile b/part3_pointer_aware_data_flow_analysis/DivZero/test/Makefile index 33d093c..eaf87cf 100644 --- a/part3_pointer_aware_data_flow_analysis/DivZero/test/Makefile +++ b/part3_pointer_aware_data_flow_analysis/DivZero/test/Makefile @@ -6,7 +6,7 @@ all: simple0.out simple1.out branch0.out branch1.out branch2.out branch3.out bra clang -emit-llvm -S -fno-discard-value-names -Xclang -disable-O0-optnone -c -o $@ $< %.out: %.opt.ll - opt -load ../build/DataflowPass.so -DivZero $< -disable-output > $@ 2> $*.err + opt -load ../../build/DivZero/libDataflowPass.so -DivZero $< -disable-output > $@ 2> $*.err clean: rm -f *.ll *.out *.err From 60f13f40c31051ff86e5eef47702162d5cc0831e Mon Sep 17 00:00:00 2001 From: theshank Date: Wed, 3 Dec 2025 14:54:17 -0500 Subject: [PATCH 2/3] Update paths for InstrumentPass in Makefile --- part4_instrumentation/DivZeroInstrument/test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/part4_instrumentation/DivZeroInstrument/test/Makefile b/part4_instrumentation/DivZeroInstrument/test/Makefile index bb73669..9b840c6 100644 --- a/part4_instrumentation/DivZeroInstrument/test/Makefile +++ b/part4_instrumentation/DivZeroInstrument/test/Makefile @@ -4,8 +4,8 @@ all: ${TARGETS} %: %.c clang -emit-llvm -S -fno-discard-value-names -c -o $@.ll $< -g - opt -load ../build/InstrumentPass.so -Instrument -S $@.ll -o $@.instrumented.ll - clang -o $@ -L${PWD}/../build -lruntime $@.instrumented.ll + opt -load ../../build/DivZeroInstrument/libInstrumentPass.so -Instrument -S $@.ll -o $@.instrumented.ll + clang -o $@ -L${PWD}/../../build/DivZeroInstrument -lruntime $@.instrumented.ll clean: rm -f *.ll *.cov ${TARGETS} From 59532ca2c902fd3e07664250d86d5343d1b8e4bb Mon Sep 17 00:00:00 2001 From: theshank Date: Wed, 3 Dec 2025 20:51:29 -0500 Subject: [PATCH 3/3] test Makefile | add "calc" target --- part4_instrumentation/DivZeroInstrument/test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/part4_instrumentation/DivZeroInstrument/test/Makefile b/part4_instrumentation/DivZeroInstrument/test/Makefile index 9b840c6..ddcc859 100644 --- a/part4_instrumentation/DivZeroInstrument/test/Makefile +++ b/part4_instrumentation/DivZeroInstrument/test/Makefile @@ -1,4 +1,4 @@ -TARGETS=simple0 simple1 simple2 simple3 simple4 simple5 simple6 simple7 simple8 simple9 +TARGETS=calc simple0 simple1 simple2 simple3 simple4 simple5 simple6 simple7 simple8 simple9 all: ${TARGETS}