@@ -466,7 +466,7 @@ matchPointsTos opts sc cc spec prepost = go False []
466
466
MS. SetupVar i -> Set. singleton i
467
467
MS. SetupTerm _ -> Set. empty
468
468
MS. SetupNull () -> Set. empty
469
- MS. SetupGlobal () _ -> Set. empty
469
+ MS. SetupGlobal empty _ -> absurd empty
470
470
MS. SetupStruct empty _ _ -> absurd empty
471
471
MS. SetupArray empty _ -> absurd empty
472
472
MS. SetupElem empty _ _ -> absurd empty
@@ -580,13 +580,7 @@ matchArg opts sc cc cs prepost actual@(RVal ref) expectedTy setupval =
580
580
p <- liftIO (CJ. refIsNull sym ref)
581
581
addAssert p (Crucible. SimError (cs ^. MS. csLoc) (Crucible. AssertFailureSimError (" null-equality " ++ stateCond prepost) " " ))
582
582
583
- MS. SetupGlobal () name ->
584
- do let mem = () -- FIXME cc^.ccLLVMEmptyMem
585
- sym <- Ov. getSymInterface
586
- ref' <- liftIO $ doResolveGlobal sym mem name
587
-
588
- p <- liftIO (CJ. refIsEqual sym ref ref')
589
- addAssert p (Crucible. SimError (cs ^. MS. csLoc) (Crucible. AssertFailureSimError (" global-equality " ++ stateCond prepost) " " ))
583
+ MS. SetupGlobal empty _ -> absurd empty
590
584
591
585
_ -> failure (cs ^. MS. csLoc) =<<
592
586
mkStructuralMismatch opts cc sc cs actual setupval expectedTy
@@ -937,7 +931,7 @@ instantiateSetupValue sc s v =
937
931
MS. SetupVar _ -> return v
938
932
MS. SetupTerm tt -> MS. SetupTerm <$> doTerm tt
939
933
MS. SetupNull () -> return v
940
- MS. SetupGlobal () _ -> return v
934
+ MS. SetupGlobal empty _ -> absurd empty
941
935
MS. SetupStruct empty _ _ -> absurd empty
942
936
MS. SetupArray empty _ -> absurd empty
943
937
MS. SetupElem empty _ _ -> absurd empty
@@ -1026,7 +1020,3 @@ decodeJVMVal ty v =
1026
1020
asRVal :: W4. ProgramLoc -> JVMVal -> OverrideMatcher CJ. JVM w JVMRefVal
1027
1021
asRVal _ (RVal ptr) = return ptr
1028
1022
asRVal loc _ = failure loc BadPointerCast
1029
-
1030
- doResolveGlobal :: Sym -> () -> String -> IO JVMRefVal
1031
- doResolveGlobal _sym _mem _name = fail " doResolveGlobal: FIXME"
1032
- -- FIXME: replace () with whatever type we need to look up global/static references
0 commit comments